@nelsonlongxiang/dsh-open-a2a-net 0.6.37 → 0.6.39

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 (52) hide show
  1. package/README.md +340 -335
  2. package/README_zh.md +241 -236
  3. package/assets/nexusDist/assets/index-C7HagaGy.css +1 -1
  4. package/assets/nexusDist/assets/index-NkNSeIx6.js +9 -9
  5. package/cli/a2a.mjs +44 -6
  6. package/cli/serve.mjs +132 -0
  7. package/cordis.patch.yml +21 -21
  8. package/lib/canvas-discovery.js +29 -0
  9. package/lib/canvas-id.js +27 -0
  10. package/lib/canvas-store.js +7 -1
  11. package/lib/client.js +63 -63
  12. package/lib/config.js +125 -0
  13. package/lib/direct-forward.js +105 -37
  14. package/lib/faces/admin.js +14 -1
  15. package/lib/faces/wire.js +41 -10
  16. package/lib/flood-guard.js +3 -1
  17. package/lib/index.js +116 -155
  18. package/lib/live-roots.js +39 -0
  19. package/lib/origin-claim.js +4 -3
  20. package/lib/peer-directory.js +1 -1
  21. package/lib/queue-guard.js +3 -1
  22. package/lib/skill/references/cli.md +214 -199
  23. package/lib/skill/references/pitfalls.md +1 -1
  24. package/lib/skill/references/routing.md +4 -0
  25. package/lib/skill/references/setup.md +5 -9
  26. package/lib/task-auth.js +15 -11
  27. package/lib/task-ledger-rows.js +32 -4
  28. package/lib/task-ledger.js +11 -5
  29. package/lib/tools/info.js +12 -5
  30. package/lib/types/canvas-discovery.d.ts +20 -0
  31. package/lib/types/canvas-id.d.ts +9 -0
  32. package/lib/types/config.d.ts +278 -0
  33. package/lib/types/direct-forward.d.ts +33 -2
  34. package/lib/types/faces/admin.d.ts +12 -0
  35. package/lib/types/faces/wire.d.ts +10 -1
  36. package/lib/types/index.d.ts +3 -277
  37. package/lib/types/live-roots.d.ts +35 -0
  38. package/lib/types/origin-claim.d.ts +5 -1
  39. package/lib/types/queue-guard.d.ts +2 -0
  40. package/lib/types/task-auth.d.ts +5 -0
  41. package/lib/types/task-ledger-rows.d.ts +16 -5
  42. package/lib/types/task-ledger.d.ts +3 -0
  43. package/lib/types/tools/info.d.ts +3 -0
  44. package/lib/types/types.d.ts +2 -0
  45. package/nexus-stage/package-lock.json +2262 -2262
  46. package/nexus-stage/scripts/__pycache__/mockhost.cpython-312.pyc +0 -0
  47. package/nexus-stage/src/edges.ts +72 -72
  48. package/nexus-stage/src/layout-wire.ts +158 -158
  49. package/nexus-stage/src/seat.ts +35 -35
  50. package/nexus-stage/src/stage-name.ts +13 -13
  51. package/nexus-stage/src/tokens.ts +31 -31
  52. package/package.json +218 -218
package/package.json CHANGED
@@ -1,218 +1,218 @@
1
- {
2
- "name": "@nelsonlongxiang/dsh-open-a2a-net",
3
- "version": "0.6.37",
4
- "description": "Open A2A network plugin for DeepSeek Harness: signed agent cards, decentralized peer/zone discovery, direct routing model tools, and joinable session nodes with a sidebar control",
5
- "type": "module",
6
- "main": "lib/index.js",
7
- "types": "lib/types/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "types": "./lib/types/index.d.ts",
11
- "default": "./lib/index.js"
12
- },
13
- "./invariant": {
14
- "types": "./lib/types/invariant.d.ts",
15
- "default": "./lib/invariant.js"
16
- },
17
- "./client": {
18
- "types": "./lib/types/client/index.d.ts",
19
- "default": "./lib/client.js"
20
- },
21
- "./card": {
22
- "types": "./lib/types/card.d.ts",
23
- "default": "./lib/card.js"
24
- },
25
- "./receipt": {
26
- "types": "./lib/types/receipt.d.ts",
27
- "default": "./lib/receipt.js"
28
- },
29
- "./transport-caps": {
30
- "types": "./lib/types/transport-caps.d.ts",
31
- "default": "./lib/transport-caps.js"
32
- },
33
- "./a2a-client": {
34
- "types": "./lib/types/a2a-client.d.ts",
35
- "default": "./lib/a2a-client.js"
36
- },
37
- "./cordis.patch.yml": "./cordis.patch.yml",
38
- "./package.json": "./package.json"
39
- },
40
- "files": [
41
- "lib",
42
- "cli",
43
- "assets/nexusDist",
44
- "assets/stageDist",
45
- "images",
46
- "README_zh.md",
47
- "cordis.patch.yml",
48
- "README.md",
49
- "nexus-stage/src",
50
- "nexus-stage/scripts",
51
- "nexus-stage/package.json",
52
- "nexus-stage/package-lock.json",
53
- "nexus-stage/tsconfig.json",
54
- "nexus-stage/vite.config.ts"
55
- ],
56
- "bin": {
57
- "a2a-net": "cli/a2a.mjs"
58
- },
59
- "packageManager": "pnpm@11.28.5",
60
- "engines": {
61
- "pnpm": ">=11.24 <12"
62
- },
63
- "dsh": {
64
- "bundle": {
65
- "patch": "./cordis.patch.yml"
66
- },
67
- "client": {
68
- "platform": "web",
69
- "inject": [
70
- "@deepseek-ai/dsh-client-runtime",
71
- "@deepseek-ai/dsh-client-locale",
72
- "@deepseek-ai/dsh-client-ui-slots",
73
- "@deepseek-ai/dsh-client-ui-sidebar"
74
- ]
75
- }
76
- },
77
- "scripts": {
78
- "prepare": "pnpm build",
79
- "build": "tsc -p tsconfig.json && tsc -p tsconfig.client.json && tsdown && node scripts/copy-skill.mjs",
80
- "typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.client.json --noEmit",
81
- "test": "vitest run",
82
- "test:unit": "vitest run tests/unit",
83
- "test:wire": "vitest run tests/wire",
84
- "test:mesh": "vitest run tests/mesh",
85
- "test:live": "vitest run tests/live",
86
- "test:build-layout": "vitest run tests/gates/build-layout.spec.ts",
87
- "verify:docs": "node scripts/doc-drift.mjs",
88
- "reanchor:arch": "node scripts/reanchor-architecture.mjs",
89
- "verify:nexus": "node scripts/verify-nexus-ci.mjs && npm --prefix nexus-stage run build && npm --prefix nexus-stage run test && git diff --exit-code -- assets/nexusDist/assets && git diff --ignore-cr-at-eol --exit-code -- assets/nexusDist/index.html",
90
- "verify": "pnpm typecheck && pnpm verify:docs && pnpm build && pnpm test && pnpm test:build-layout && pnpm verify:nexus"
91
- },
92
- "peerDependencies": {
93
- "@deepseek-ai/cordis": ">=4.0.1",
94
- "@deepseek-ai/cordis-plugin-loader": ">=1.0.2",
95
- "@deepseek-ai/cordis-plugin-timer": ">=1.1.3",
96
- "@deepseek-ai/dsh-agent": ">=0.1.7-alpha.2",
97
- "@deepseek-ai/dsh-api-session-controller": ">=0.1.7-alpha.2",
98
- "@deepseek-ai/dsh-client-locale": ">=0.1.7-alpha.2",
99
- "@deepseek-ai/dsh-client-runtime": ">=0.1.1-rc.2",
100
- "@deepseek-ai/dsh-client-ui-primitives": ">=0.1.7-alpha.2",
101
- "@deepseek-ai/dsh-client-ui-sidebar": ">=0.1.7-alpha.2",
102
- "@deepseek-ai/dsh-client-ui-slots": ">=0.1.7-alpha.2",
103
- "@deepseek-ai/dsh-home-paths": ">=0.1.7-alpha.2",
104
- "@deepseek-ai/dsh-host-webserver": ">=0.1.7-alpha.2",
105
- "@deepseek-ai/dsh-invariants": ">=0.1.7-alpha.2",
106
- "@deepseek-ai/dsh-llm": ">=0.1.7-alpha.2",
107
- "@deepseek-ai/dsh-session": ">=0.1.7-alpha.2",
108
- "@deepseek-ai/dsh-session-persistence": ">=0.1.7-alpha.2",
109
- "@deepseek-ai/dsh-session-title": ">=0.1.7-alpha.2",
110
- "@deepseek-ai/dsh-tools": ">=0.1.7-alpha.2",
111
- "@deepseek-ai/schemastery": ">=3.18.1",
112
- "react": "^18.2.0"
113
- },
114
- "peerDependenciesMeta": {
115
- "@deepseek-ai/cordis": {
116
- "optional": true
117
- },
118
- "@deepseek-ai/cordis-plugin-loader": {
119
- "optional": true
120
- },
121
- "@deepseek-ai/cordis-plugin-timer": {
122
- "optional": true
123
- },
124
- "@deepseek-ai/dsh-agent": {
125
- "optional": true
126
- },
127
- "@deepseek-ai/dsh-client-locale": {
128
- "optional": true
129
- },
130
- "@deepseek-ai/dsh-client-runtime": {
131
- "optional": true
132
- },
133
- "@deepseek-ai/dsh-client-ui-primitives": {
134
- "optional": true
135
- },
136
- "@deepseek-ai/dsh-client-ui-sidebar": {
137
- "optional": true
138
- },
139
- "@deepseek-ai/dsh-client-ui-slots": {
140
- "optional": true
141
- },
142
- "@deepseek-ai/dsh-api-session-controller": {
143
- "optional": true
144
- },
145
- "@deepseek-ai/dsh-home-paths": {
146
- "optional": true
147
- },
148
- "@deepseek-ai/dsh-host-webserver": {
149
- "optional": true
150
- },
151
- "@deepseek-ai/dsh-invariants": {
152
- "optional": true
153
- },
154
- "@deepseek-ai/dsh-llm": {
155
- "optional": true
156
- },
157
- "@deepseek-ai/dsh-session": {
158
- "optional": true
159
- },
160
- "@deepseek-ai/dsh-session-persistence": {
161
- "optional": true
162
- },
163
- "@deepseek-ai/dsh-session-title": {
164
- "optional": true
165
- },
166
- "@deepseek-ai/dsh-tools": {
167
- "optional": true
168
- },
169
- "@deepseek-ai/schemastery": {
170
- "optional": true
171
- },
172
- "react": {
173
- "optional": true
174
- }
175
- },
176
- "devDependencies": {
177
- "@deepseek-ai/dsh-client-store": "0.2.0-rc.2",
178
- "@deepseek-ai/dsh-client-ui-primitives": "0.2.0-rc.2",
179
- "@deepseek-ai/dsh-scope": "0.0.1-rc.1",
180
- "@deepseek-ai/dsh-system-prompt": "0.1.0-rc.6",
181
- "@deepseek-ai/dsh-util-code-language": "0.1.7-rc.2",
182
- "@deepseek-ai/dsh-util-workspace-path": "0.1.2-alpha.2",
183
- "@shikijs/langs": "^4.5.0",
184
- "@testing-library/react": "^16.3.0",
185
- "@types/node": "^24.13.3",
186
- "@types/react": "~18.3.1",
187
- "@types/react-dom": "^18.3.7",
188
- "anser": "^2.3.5",
189
- "clsx": "^2.1.1",
190
- "diff": "^9.0.0",
191
- "jsdom": "^26.1.0",
192
- "katex": "^0.19.0",
193
- "lightningcss": "^1.33.0",
194
- "mdast-util-from-markdown": "^2.1.0",
195
- "mdast-util-gfm": "^3.1.0",
196
- "mdast-util-math": "^3.0.0",
197
- "micromark-core-commonmark": "^2.0.4",
198
- "micromark-extension-gfm": "^3.0.0",
199
- "micromark-extension-math": "^3.1.0",
200
- "micromark-factory-space": "^2.1.0",
201
- "micromark-util-character": "^2.1.1",
202
- "micromark-util-classify-character": "^2.0.1",
203
- "micromark-util-sanitize-uri": "^2.0.1",
204
- "micromark-util-symbol": "^2.0.1",
205
- "react": "^18.2.0",
206
- "react-dom": "^18.2.0",
207
- "shiki": "^4.5.0",
208
- "simple-icons": "^16.35.0",
209
- "tsdown": "0.22.2",
210
- "typescript": "^5.9.3",
211
- "vitest": "^4.1.8"
212
- },
213
- "license": "MIT",
214
- "repository": {
215
- "type": "git",
216
- "url": "git+https://gitee.com/NelsonLongXiang/dsh-open-a2a-net.git"
217
- }
218
- }
1
+ {
2
+ "name": "@nelsonlongxiang/dsh-open-a2a-net",
3
+ "version": "0.6.39",
4
+ "description": "Open A2A network plugin for DeepSeek Harness: signed agent cards, decentralized peer/zone discovery, direct routing model tools, and joinable session nodes with a sidebar control",
5
+ "type": "module",
6
+ "main": "lib/index.js",
7
+ "types": "lib/types/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./lib/types/index.d.ts",
11
+ "default": "./lib/index.js"
12
+ },
13
+ "./invariant": {
14
+ "types": "./lib/types/invariant.d.ts",
15
+ "default": "./lib/invariant.js"
16
+ },
17
+ "./client": {
18
+ "types": "./lib/types/client/index.d.ts",
19
+ "default": "./lib/client.js"
20
+ },
21
+ "./card": {
22
+ "types": "./lib/types/card.d.ts",
23
+ "default": "./lib/card.js"
24
+ },
25
+ "./receipt": {
26
+ "types": "./lib/types/receipt.d.ts",
27
+ "default": "./lib/receipt.js"
28
+ },
29
+ "./transport-caps": {
30
+ "types": "./lib/types/transport-caps.d.ts",
31
+ "default": "./lib/transport-caps.js"
32
+ },
33
+ "./a2a-client": {
34
+ "types": "./lib/types/a2a-client.d.ts",
35
+ "default": "./lib/a2a-client.js"
36
+ },
37
+ "./cordis.patch.yml": "./cordis.patch.yml",
38
+ "./package.json": "./package.json"
39
+ },
40
+ "files": [
41
+ "lib",
42
+ "cli",
43
+ "assets/nexusDist",
44
+ "assets/stageDist",
45
+ "images",
46
+ "README_zh.md",
47
+ "cordis.patch.yml",
48
+ "README.md",
49
+ "nexus-stage/src",
50
+ "nexus-stage/scripts",
51
+ "nexus-stage/package.json",
52
+ "nexus-stage/package-lock.json",
53
+ "nexus-stage/tsconfig.json",
54
+ "nexus-stage/vite.config.ts"
55
+ ],
56
+ "bin": {
57
+ "a2a-net": "cli/a2a.mjs"
58
+ },
59
+ "packageManager": "pnpm@11.28.5",
60
+ "engines": {
61
+ "pnpm": ">=11.24 <12"
62
+ },
63
+ "dsh": {
64
+ "bundle": {
65
+ "patch": "./cordis.patch.yml"
66
+ },
67
+ "client": {
68
+ "platform": "web",
69
+ "inject": [
70
+ "@deepseek-ai/dsh-client-runtime",
71
+ "@deepseek-ai/dsh-client-locale",
72
+ "@deepseek-ai/dsh-client-ui-slots",
73
+ "@deepseek-ai/dsh-client-ui-sidebar"
74
+ ]
75
+ }
76
+ },
77
+ "scripts": {
78
+ "prepare": "pnpm build",
79
+ "build": "tsc -p tsconfig.json && tsc -p tsconfig.client.json && tsdown && node scripts/copy-skill.mjs",
80
+ "typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.client.json --noEmit",
81
+ "test": "vitest run",
82
+ "test:unit": "vitest run tests/unit",
83
+ "test:wire": "vitest run tests/wire",
84
+ "test:mesh": "vitest run tests/mesh",
85
+ "test:live": "vitest run tests/live",
86
+ "test:build-layout": "vitest run tests/gates/build-layout.spec.ts",
87
+ "verify:docs": "node scripts/doc-drift.mjs",
88
+ "reanchor:arch": "node scripts/reanchor-architecture.mjs",
89
+ "verify:nexus": "node scripts/verify-nexus-ci.mjs && npm --prefix nexus-stage run build && npm --prefix nexus-stage run test && git diff --exit-code -- assets/nexusDist/assets && git diff --ignore-cr-at-eol --exit-code -- assets/nexusDist/index.html",
90
+ "verify": "pnpm typecheck && pnpm verify:docs && pnpm build && pnpm test && pnpm test:build-layout && pnpm verify:nexus"
91
+ },
92
+ "peerDependencies": {
93
+ "@deepseek-ai/cordis": ">=4.0.1",
94
+ "@deepseek-ai/cordis-plugin-loader": ">=1.0.2",
95
+ "@deepseek-ai/cordis-plugin-timer": ">=1.1.3",
96
+ "@deepseek-ai/dsh-agent": ">=0.1.7-alpha.2",
97
+ "@deepseek-ai/dsh-api-session-controller": ">=0.1.7-alpha.2",
98
+ "@deepseek-ai/dsh-client-locale": ">=0.1.7-alpha.2",
99
+ "@deepseek-ai/dsh-client-runtime": ">=0.1.1-rc.2",
100
+ "@deepseek-ai/dsh-client-ui-primitives": ">=0.1.7-alpha.2",
101
+ "@deepseek-ai/dsh-client-ui-sidebar": ">=0.1.7-alpha.2",
102
+ "@deepseek-ai/dsh-client-ui-slots": ">=0.1.7-alpha.2",
103
+ "@deepseek-ai/dsh-home-paths": ">=0.1.7-alpha.2",
104
+ "@deepseek-ai/dsh-host-webserver": ">=0.1.7-alpha.2",
105
+ "@deepseek-ai/dsh-invariants": ">=0.1.7-alpha.2",
106
+ "@deepseek-ai/dsh-llm": ">=0.1.7-alpha.2",
107
+ "@deepseek-ai/dsh-session": ">=0.1.7-alpha.2",
108
+ "@deepseek-ai/dsh-session-persistence": ">=0.1.7-alpha.2",
109
+ "@deepseek-ai/dsh-session-title": ">=0.1.7-alpha.2",
110
+ "@deepseek-ai/dsh-tools": ">=0.1.7-alpha.2",
111
+ "@deepseek-ai/schemastery": ">=3.18.1",
112
+ "react": "^18.2.0"
113
+ },
114
+ "peerDependenciesMeta": {
115
+ "@deepseek-ai/cordis": {
116
+ "optional": true
117
+ },
118
+ "@deepseek-ai/cordis-plugin-loader": {
119
+ "optional": true
120
+ },
121
+ "@deepseek-ai/cordis-plugin-timer": {
122
+ "optional": true
123
+ },
124
+ "@deepseek-ai/dsh-agent": {
125
+ "optional": true
126
+ },
127
+ "@deepseek-ai/dsh-client-locale": {
128
+ "optional": true
129
+ },
130
+ "@deepseek-ai/dsh-client-runtime": {
131
+ "optional": true
132
+ },
133
+ "@deepseek-ai/dsh-client-ui-primitives": {
134
+ "optional": true
135
+ },
136
+ "@deepseek-ai/dsh-client-ui-sidebar": {
137
+ "optional": true
138
+ },
139
+ "@deepseek-ai/dsh-client-ui-slots": {
140
+ "optional": true
141
+ },
142
+ "@deepseek-ai/dsh-api-session-controller": {
143
+ "optional": true
144
+ },
145
+ "@deepseek-ai/dsh-home-paths": {
146
+ "optional": true
147
+ },
148
+ "@deepseek-ai/dsh-host-webserver": {
149
+ "optional": true
150
+ },
151
+ "@deepseek-ai/dsh-invariants": {
152
+ "optional": true
153
+ },
154
+ "@deepseek-ai/dsh-llm": {
155
+ "optional": true
156
+ },
157
+ "@deepseek-ai/dsh-session": {
158
+ "optional": true
159
+ },
160
+ "@deepseek-ai/dsh-session-persistence": {
161
+ "optional": true
162
+ },
163
+ "@deepseek-ai/dsh-session-title": {
164
+ "optional": true
165
+ },
166
+ "@deepseek-ai/dsh-tools": {
167
+ "optional": true
168
+ },
169
+ "@deepseek-ai/schemastery": {
170
+ "optional": true
171
+ },
172
+ "react": {
173
+ "optional": true
174
+ }
175
+ },
176
+ "devDependencies": {
177
+ "@deepseek-ai/dsh-client-store": "0.2.0-rc.2",
178
+ "@deepseek-ai/dsh-client-ui-primitives": "0.2.0-rc.2",
179
+ "@deepseek-ai/dsh-scope": "0.0.1-rc.1",
180
+ "@deepseek-ai/dsh-system-prompt": "0.1.0-rc.6",
181
+ "@deepseek-ai/dsh-util-code-language": "0.1.7-rc.2",
182
+ "@deepseek-ai/dsh-util-workspace-path": "0.1.2-alpha.2",
183
+ "@shikijs/langs": "^4.5.0",
184
+ "@testing-library/react": "^16.3.0",
185
+ "@types/node": "^24.13.3",
186
+ "@types/react": "~18.3.1",
187
+ "@types/react-dom": "^18.3.7",
188
+ "anser": "^2.3.5",
189
+ "clsx": "^2.1.1",
190
+ "diff": "^9.0.0",
191
+ "jsdom": "^26.1.0",
192
+ "katex": "^0.19.0",
193
+ "lightningcss": "^1.33.0",
194
+ "mdast-util-from-markdown": "^2.1.0",
195
+ "mdast-util-gfm": "^3.1.0",
196
+ "mdast-util-math": "^3.0.0",
197
+ "micromark-core-commonmark": "^2.0.4",
198
+ "micromark-extension-gfm": "^3.0.0",
199
+ "micromark-extension-math": "^3.1.0",
200
+ "micromark-factory-space": "^2.1.0",
201
+ "micromark-util-character": "^2.1.1",
202
+ "micromark-util-classify-character": "^2.0.1",
203
+ "micromark-util-sanitize-uri": "^2.0.1",
204
+ "micromark-util-symbol": "^2.0.1",
205
+ "react": "^18.2.0",
206
+ "react-dom": "^18.2.0",
207
+ "shiki": "^4.5.0",
208
+ "simple-icons": "^16.35.0",
209
+ "tsdown": "0.22.2",
210
+ "typescript": "^5.9.3",
211
+ "vitest": "^4.1.8"
212
+ },
213
+ "license": "MIT",
214
+ "repository": {
215
+ "type": "git",
216
+ "url": "git+https://gitee.com/NelsonLongXiang/dsh-open-a2a-net.git"
217
+ }
218
+ }