@fosenai/cord 0.1.0-alpha.17 → 0.1.0-alpha.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +26 -19
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @fosenai/cord
2
2
 
3
- Cord Rust CLI — install via npm,跑的是 native binary
3
+ Cord Rust CLI — installed via npm, runs as a native binary.
4
4
 
5
5
  ## Install
6
6
 
@@ -8,37 +8,44 @@ Cord Rust CLI — install via npm,跑的是 native binary。
8
8
  npm install -g @fosenai/cord
9
9
  ```
10
10
 
11
- npm 会按你机器的 OS / arch 自动拉对应平台的 binary(`@fosenai/cord-darwin-arm64` /
12
- `-darwin-x64` / `-linux-x64` / `-linux-arm64`)。
11
+ npm picks the right prebuilt binary for your OS/arch automatically
12
+ (`@fosenai/cord-darwin-arm64` / `-darwin-x64` / `-linux-x64` / `-linux-arm64`).
13
13
 
14
- ## Usage
14
+ ## Quick start
15
15
 
16
16
  ```bash
17
- cord whoami # 临时 keypair peerId
18
- cord serve --port 0 # 起节点 + 注册 echo cap
19
- --api-port 7878 # + HTTP 管理面(GET /info /capabilities, POST /call)
20
- --bridge codex=codex # + codex CLI 包成一个 P2P cap
21
- --bridge-mode prompt-arg
22
- --mdns # + 局域网 mDNS 发现
23
- cord call --peer <multiaddr> # dial peer 调它的 cap
24
- --cap echo --input '{"x":1}'
25
- cord info --api http://... # 查正在跑的 daemon 状态
17
+ cord # first run: interactive setup wizard
18
+ cord cmd "<what you want>" # natural-language cord subcommand
19
+ # (router-only, no daemon needed)
20
+ cord status # is the daemon running?
21
+ cord install-skill claude # teach claude (or codex) to use cord during chat
26
22
  ```
27
23
 
28
- ## Build from source
24
+ ## Common commands
25
+
26
+ ```bash
27
+ cord find "Chinese-to-English translation" # search the network for a cap
28
+ cord call --peer-id 12D3KooW... --capability translator \
29
+ --input '{"text":"hello"}' # invoke a remote cap
30
+ cord publish agent claude # expose your claude to friends
31
+ cord chat # interactive cap roster + chat
32
+ ```
33
+
34
+ Type `cord help` for the full verb list, or `cord cmd "<phrase>"` if you
35
+ forget the exact verb.
29
36
 
30
- 不想用 prebuilt binary:
37
+ ## Build from source
31
38
 
32
39
  ```bash
33
- git clone https://github.com/your-org/cord.git
34
- cd cord/rust
40
+ git clone https://github.com/YapengTeng/blockchain-multi-agent.git
41
+ cd blockchain-multi-agent/rust
35
42
  cargo install --path crates/cord-cli
36
43
  ```
37
44
 
38
- ONNX bge-m3 模型支持(embed-server):
45
+ With ONNX bge-m3 model support (for running your own embed-server):
39
46
 
40
47
  ```bash
41
48
  cargo install --path crates/cord-embed-server --features embed-onnx
42
49
  ```
43
50
 
44
- 详见 https://github.com/your-org/cord/tree/rust
51
+ See https://github.com/YapengTeng/blockchain-multi-agent/tree/rust for details.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fosenai/cord",
3
- "version": "0.1.0-alpha.17",
3
+ "version": "0.1.0-alpha.19",
4
4
  "description": "Cord Rust CLI — install via npm, runs as native binary",
5
5
  "license": "BUSL-1.1",
6
6
  "bin": {
@@ -15,10 +15,10 @@
15
15
  "postinstall": "node scripts/install.js"
16
16
  },
17
17
  "optionalDependencies": {
18
- "@fosenai/cord-darwin-arm64": "0.1.0-alpha.17",
19
- "@fosenai/cord-darwin-x64": "0.1.0-alpha.17",
20
- "@fosenai/cord-linux-x64": "0.1.0-alpha.17",
21
- "@fosenai/cord-linux-arm64": "0.1.0-alpha.17"
18
+ "@fosenai/cord-darwin-arm64": "0.1.0-alpha.19",
19
+ "@fosenai/cord-darwin-x64": "0.1.0-alpha.19",
20
+ "@fosenai/cord-linux-x64": "0.1.0-alpha.19",
21
+ "@fosenai/cord-linux-arm64": "0.1.0-alpha.19"
22
22
  },
23
23
  "engines": {
24
24
  "node": ">=18"