@nelsonlongxiang/dsh-open-a2a-net 0.6.38 → 0.6.40

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