mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-10-01 20:33:50 +00:00
OpenServer 0.2: the provider says how to install its CLI (#171)
A directory that lists a host's plans is asked the next question at once: how do I drive this thing from a terminal? Every provider answers it on a page of its own, in its own words, and a reader that wants the install line has to find and read that page for each host. nichedb.dev's hosting collection just did exactly that for 46 providers, copying the commands off each vendor's guide, and the exercise is the argument for putting the facts in the descriptor. `provider.developer` names the official CLI, its install commands keyed by package manager and copied as the guide prints them, the install guide and source, the API docs, the Terraform provider and the GitHub organisation. A provider with no CLI says `"cli": null`, which is a fact, while a missing block means unknown. Commands are copied, never composed: a reader that invents `brew install <name>` sends a buyer to a formula that may not exist. c0mpute.md gains the same block for the compute market, with the one install line c0mpute.com prints, and the landing page says what 0.2 adds. Claude-Session: https://claude.ai/code/session_01Khk1C6Ese6xjdHAWLVstca Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
df57b54bde
commit
85426e2ae0
3 changed files with 50 additions and 6 deletions
|
|
@ -32,6 +32,32 @@ OpenSwarm adds nothing to how a node joins or bids. It adds workload types
|
|||
the node can bid on, a second identity the node registers as a payee, and
|
||||
per-byte income that arrives without any auction.
|
||||
|
||||
## 1.1 The CLI, and how a directory learns it
|
||||
|
||||
c0mpute is CLI-first. The install line, as c0mpute.com prints it:
|
||||
|
||||
```sh
|
||||
curl -fsSL https://c0mpute.com/install.sh | sh
|
||||
```
|
||||
|
||||
That installs the `c0mpute` binary and its module CLIs into `~/.c0mpute/bin`, each pulled from its own release feed. Source is [github.com/profullstack/c0mpute](https://github.com/profullstack/c0mpute).
|
||||
|
||||
A directory should not have to read this page to learn that. c0mpute.com is a peer-to-peer compute market, so it serves an [OpenServer](/docs/openserver) descriptor at `/.well-known/openserver.json` whose offers are the network's current asks, and since OpenServer 0.2 the `provider.developer` block carries the same facts in a shape every reader agrees on:
|
||||
|
||||
```json
|
||||
"developer": {
|
||||
"cli": {
|
||||
"name": "c0mpute",
|
||||
"install": { "curl": "curl -fsSL https://c0mpute.com/install.sh | sh" },
|
||||
"docs": "https://c0mpute.com/docs/cli",
|
||||
"repo": "https://github.com/profullstack/c0mpute"
|
||||
},
|
||||
"github": "https://github.com/profullstack"
|
||||
}
|
||||
```
|
||||
|
||||
The commands in that block are copied from the install page, never composed by the reader. The hosting collection at [nichedb.dev](https://nichedb.dev/c/hosting) is the first directory that shows them.
|
||||
|
||||
## 2. Node identity and payout
|
||||
|
||||
A node derives an OpenSwarm identity from its libp2p key:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue