@amaster.ai/dsh-a2a 0.1.39 → 0.1.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.
- package/README.md +3 -3
- package/lib/bridge.js +4 -10
- package/package.json +19 -19
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ dsh plugin --profile my-agent add @amaster.ai/dsh-a2a
|
|
|
14
14
|
|
|
15
15
|
## Native inbox execution
|
|
16
16
|
|
|
17
|
-
`inbox.enabled: true` uses the official DSH inbox (`Agent.send`) for ordinary `next-turn` input and `next-step` steering. Tested with the unmodified npm runtime `0.2.
|
|
17
|
+
`inbox.enabled: true` uses the official DSH inbox (`Agent.send`) for ordinary `next-turn` input and `next-step` steering. Requires `@deepseek-ai/dsh-agent >=0.2.2-rc.1` for model selection through agent options. Tested with the unmodified npm runtime `0.2.2-rc.1`; no core patch is required. Cold task recovery scans committed input once per batch and groups it by task, preserving input order. The queue and its durable projection belong to DSH. The plugin only materializes messages, attaches A2A task identities, and translates execution events.
|
|
18
18
|
|
|
19
19
|
Standard `SendMessage` / `SendStreamingMessage`, task queries, cancellation and task subscriptions keep their official meanings. Optional inbox metadata forwards `target` and `wakeup` to DSH. `wakeup: false` leaves an idle driver parked; it does not prevent an active driver from consuming pending input. A later real waking message releases pending input.
|
|
20
20
|
|
|
@@ -411,9 +411,9 @@ dsh ships **no authentication or authorization**. The server binds `127.0.0.1` b
|
|
|
411
411
|
|
|
412
412
|
## Compatibility
|
|
413
413
|
|
|
414
|
-
Optional Goal integration requires `@deepseek-ai/dsh-goal >=0.2.0-rc.2 || >=0.2.1-alpha.1` and the official Goal round driver (both tested at `0.2.
|
|
414
|
+
Optional Goal integration requires `@deepseek-ai/dsh-goal >=0.2.0-rc.2 || >=0.2.1-alpha.1 || >=0.2.2-rc.1` and the official Goal round driver (both tested at `0.2.2-rc.1`).
|
|
415
415
|
|
|
416
|
-
Pinned dsh/cordis versions live in the [root compat matrix](../../README.md#compatibility). Event payloads ride pre-release dsh APIs (`@deepseek-ai/dsh-{agent,session,llm,attachment,tools}@0.2.
|
|
416
|
+
Pinned dsh/cordis versions live in the [root compat matrix](../../README.md#compatibility). Event payloads ride pre-release dsh APIs (`@deepseek-ai/dsh-{agent,session,llm,attachment,tools}@0.2.2-rc.1` — the attachment store is an optional peer) — the session peer floor is `>=0.2.1-rc.5 || >=0.2.2-rc.1` for the owner-scoped `SessionStore.flush` checkpoint barrier; check the `TODO(verify)` markers in `src/` before upgrading dsh.
|
|
417
417
|
|
|
418
418
|
## Standard A2A notifications
|
|
419
419
|
|
package/lib/bridge.js
CHANGED
|
@@ -190,15 +190,9 @@ export class A2aBridge {
|
|
|
190
190
|
if (presets) {
|
|
191
191
|
agentPreset = (await presets.resolve(this.options.preset || undefined)).id;
|
|
192
192
|
}
|
|
193
|
-
const agentOptions = selection
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
// The loop's `{{model}}` prompt variable and request routing resolve from
|
|
197
|
-
// the agent's installed model selection (dsh-agent-loop's variables read
|
|
198
|
-
// agent.options; the scoped waterfalls wire provider/model into prompt
|
|
199
|
-
// assembly and the request config). Verified against
|
|
200
|
-
// @deepseek-ai/dsh-headless@0.1.6-alpha.2's run() — entry points are
|
|
201
|
-
// expected to resolve the deployment default themselves.
|
|
193
|
+
const agentOptions = selection ? { ...selection } : undefined;
|
|
194
|
+
// DSH 0.2.2 reads the initial route and effort from agent options;
|
|
195
|
+
// installModelSelection only adds scoped model-switch notices.
|
|
202
196
|
const setup = selection || agentPreset
|
|
203
197
|
? async (agentCtx) => {
|
|
204
198
|
if (selection) {
|
|
@@ -206,7 +200,7 @@ export class A2aBridge {
|
|
|
206
200
|
// be invoked as the setup commit and immediately unwired. Likewise
|
|
207
201
|
// the mount result must not escape — setup's return value is
|
|
208
202
|
// commit()-shaped to the factory.
|
|
209
|
-
installModelSelection(agentCtx
|
|
203
|
+
installModelSelection(agentCtx);
|
|
210
204
|
}
|
|
211
205
|
if (agentPreset)
|
|
212
206
|
await presets.mount(agentCtx, agentPreset);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amaster.ai/dsh-a2a",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.40",
|
|
4
4
|
"description": "A2A protocol (JSON-RPC + SSE) server plugin for DeepSeek Harness: expose dsh agents as A2A agents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
41
|
-
"@deepseek-ai/dsh-agent": ">=0.2.
|
|
42
|
-
"@deepseek-ai/dsh-attachment": ">=0.1.5-rc.1 || >=0.1.6-alpha.1 || >=0.1.7-alpha.1 || >=0.2.0-rc.1 || >=0.2.1-rc.1",
|
|
43
|
-
"@deepseek-ai/dsh-goal": ">=0.2.0-rc.2 || >=0.2.1-alpha.1",
|
|
44
|
-
"@deepseek-ai/dsh-llm": ">=0.1.5-rc.1 || >=0.1.6-alpha.1 || >=0.1.7-alpha.1 || >=0.2.0-rc.1 || >=0.2.1-rc.1",
|
|
45
|
-
"@deepseek-ai/dsh-session": ">=0.2.1-rc.5",
|
|
46
|
-
"@deepseek-ai/dsh-session-persistence": ">=0.2.0-rc.2 || >=0.2.1-alpha.1",
|
|
47
|
-
"@deepseek-ai/dsh-tools": ">=0.1.5-rc.1 || >=0.1.6-alpha.1 || >=0.1.7-alpha.1 || >=0.2.0-rc.1 || >=0.2.1-rc.1",
|
|
48
|
-
"@deepseek-ai/dsh-user-approval": ">=0.1.6-alpha.2 || >=0.1.7-alpha.1 || >=0.2.0-rc.1 || >=0.2.1-rc.1",
|
|
41
|
+
"@deepseek-ai/dsh-agent": ">=0.2.2-rc.1",
|
|
42
|
+
"@deepseek-ai/dsh-attachment": ">=0.1.5-rc.1 || >=0.1.6-alpha.1 || >=0.1.7-alpha.1 || >=0.2.0-rc.1 || >=0.2.1-rc.1 || >=0.2.2-rc.1",
|
|
43
|
+
"@deepseek-ai/dsh-goal": ">=0.2.0-rc.2 || >=0.2.1-alpha.1 || >=0.2.2-rc.1",
|
|
44
|
+
"@deepseek-ai/dsh-llm": ">=0.1.5-rc.1 || >=0.1.6-alpha.1 || >=0.1.7-alpha.1 || >=0.2.0-rc.1 || >=0.2.1-rc.1 || >=0.2.2-rc.1",
|
|
45
|
+
"@deepseek-ai/dsh-session": ">=0.2.1-rc.5 || >=0.2.2-rc.1",
|
|
46
|
+
"@deepseek-ai/dsh-session-persistence": ">=0.2.0-rc.2 || >=0.2.1-alpha.1 || >=0.2.2-rc.1",
|
|
47
|
+
"@deepseek-ai/dsh-tools": ">=0.1.5-rc.1 || >=0.1.6-alpha.1 || >=0.1.7-alpha.1 || >=0.2.0-rc.1 || >=0.2.1-rc.1 || >=0.2.2-rc.1",
|
|
48
|
+
"@deepseek-ai/dsh-user-approval": ">=0.1.6-alpha.2 || >=0.1.7-alpha.1 || >=0.2.0-rc.1 || >=0.2.1-rc.1 || >=0.2.2-rc.1",
|
|
49
49
|
"@google-cloud/storage": "^7.0.0",
|
|
50
50
|
"ioredis": "^5.0.0",
|
|
51
51
|
"@grpc/grpc-js": "^1.11.0",
|
|
@@ -80,16 +80,16 @@
|
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@a2a-js/sdk-v03": "npm:@a2a-js/sdk@0.3.14",
|
|
82
82
|
"@bufbuild/protobuf": "2.10.2",
|
|
83
|
-
"@deepseek-ai/cordis": "4.0
|
|
84
|
-
"@deepseek-ai/dsh-agent": "0.2.
|
|
85
|
-
"@deepseek-ai/dsh-attachment": "0.2.
|
|
86
|
-
"@deepseek-ai/dsh-goal": "0.2.
|
|
87
|
-
"@deepseek-ai/dsh-llm": "0.2.
|
|
88
|
-
"@deepseek-ai/dsh-session": "0.2.
|
|
89
|
-
"@deepseek-ai/dsh-session-persistence": "0.2.
|
|
90
|
-
"@deepseek-ai/dsh-session-projection": "0.2.
|
|
91
|
-
"@deepseek-ai/dsh-tools": "0.2.
|
|
92
|
-
"@deepseek-ai/dsh-user-approval": "0.2.
|
|
83
|
+
"@deepseek-ai/cordis": "4.1.0",
|
|
84
|
+
"@deepseek-ai/dsh-agent": "0.2.2-rc.1",
|
|
85
|
+
"@deepseek-ai/dsh-attachment": "0.2.2-rc.1",
|
|
86
|
+
"@deepseek-ai/dsh-goal": "0.2.2-rc.1",
|
|
87
|
+
"@deepseek-ai/dsh-llm": "0.2.2-rc.1",
|
|
88
|
+
"@deepseek-ai/dsh-session": "0.2.2-rc.1",
|
|
89
|
+
"@deepseek-ai/dsh-session-persistence": "0.2.2-rc.1",
|
|
90
|
+
"@deepseek-ai/dsh-session-projection": "0.2.2-rc.1",
|
|
91
|
+
"@deepseek-ai/dsh-tools": "0.2.2-rc.1",
|
|
92
|
+
"@deepseek-ai/dsh-user-approval": "0.2.2-rc.1",
|
|
93
93
|
"@google-cloud/storage": "^7.0.0",
|
|
94
94
|
"@grpc/grpc-js": "1.14.4",
|
|
95
95
|
"@types/express": "^4.17.21",
|