@openma/deepseek-harness-acp 0.4.16 → 0.4.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.
- package/cordis.patch.yml +15 -2
- package/dist/bridge.js +14 -5
- package/dist/plugin.js +14 -5
- package/dist/server.js +14 -5
- package/package.json +3 -2
package/cordis.patch.yml
CHANGED
|
@@ -97,8 +97,21 @@
|
|
|
97
97
|
disabled: true
|
|
98
98
|
|
|
99
99
|
- insert:
|
|
100
|
-
#
|
|
101
|
-
#
|
|
100
|
+
# Host-plane services must be loaded by the profile include so they come
|
|
101
|
+
# from the same dsh installation as AgentLoop and dsh-scope. Loading
|
|
102
|
+
# either one from the ACP package's development dependency tree would mix
|
|
103
|
+
# scope identities when --dsh-path points at a newer standalone host.
|
|
104
|
+
- id: agent-presets
|
|
105
|
+
name: '@deepseek-ai/dsh-agent-presets'
|
|
106
|
+
config:
|
|
107
|
+
default: standard
|
|
108
|
+
|
|
109
|
+
- id: cordis-host-runner
|
|
110
|
+
name: '@deepseek-ai/dsh-cordis-host-runner'
|
|
111
|
+
|
|
112
|
+
# ACP's surface service owns its bridge/session server, but no transport.
|
|
113
|
+
# The host-service rows above close this profile without borrowing another
|
|
114
|
+
# profile or relying on a development node_modules tree.
|
|
102
115
|
- id: acp-plugin
|
|
103
116
|
name: '@openma/deepseek-harness-acp/plugin'
|
|
104
117
|
config:
|
package/dist/bridge.js
CHANGED
|
@@ -1822,6 +1822,10 @@ async function apply3(ctx, config = {}) {
|
|
|
1822
1822
|
}
|
|
1823
1823
|
return void 0;
|
|
1824
1824
|
};
|
|
1825
|
+
const executeCommand = (agent, line, signal) => {
|
|
1826
|
+
const execute = commandRuntime.execute;
|
|
1827
|
+
return execute.length >= 4 ? execute.call(commandRuntime, agent, line, [], signal) : execute.call(commandRuntime, agent, line, signal);
|
|
1828
|
+
};
|
|
1825
1829
|
await ctx.plugin(tui_client_plugin_exports, { rpc, findAgent, advertisement: tuiClient });
|
|
1826
1830
|
const modelCandidates = () => {
|
|
1827
1831
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -2323,9 +2327,14 @@ async function apply3(ctx, config = {}) {
|
|
|
2323
2327
|
const permission = permissionService();
|
|
2324
2328
|
if (permission.names.includes(modeId)) {
|
|
2325
2329
|
let bundledApproval = record.approvals;
|
|
2326
|
-
permission.apply(
|
|
2327
|
-
|
|
2328
|
-
|
|
2330
|
+
permission.apply(
|
|
2331
|
+
record.agent.session,
|
|
2332
|
+
modeId,
|
|
2333
|
+
(policy) => {
|
|
2334
|
+
bundledApproval = policy;
|
|
2335
|
+
},
|
|
2336
|
+
"selection"
|
|
2337
|
+
);
|
|
2329
2338
|
setApprovalPolicy(record, bundledApproval);
|
|
2330
2339
|
record.modeId = permission.resolve(modeId).sandbox;
|
|
2331
2340
|
notify(sessionId, { sessionUpdate: "current_mode_update", currentModeId: modeId });
|
|
@@ -2957,7 +2966,7 @@ async function apply3(ctx, config = {}) {
|
|
|
2957
2966
|
if (commandMatch !== null && commandMatch[1] !== void 0) {
|
|
2958
2967
|
let execution;
|
|
2959
2968
|
try {
|
|
2960
|
-
execution = await
|
|
2969
|
+
execution = await executeCommand(
|
|
2961
2970
|
record.agent,
|
|
2962
2971
|
trimmed,
|
|
2963
2972
|
new AbortController().signal
|
|
@@ -3062,7 +3071,7 @@ async function apply3(ctx, config = {}) {
|
|
|
3062
3071
|
if (value !== "default" && value !== "plan") {
|
|
3063
3072
|
throw invalidParams(`unknown collaboration mode: ${value}`);
|
|
3064
3073
|
}
|
|
3065
|
-
const execution = await
|
|
3074
|
+
const execution = await executeCommand(
|
|
3066
3075
|
record.agent,
|
|
3067
3076
|
value === "plan" ? "/plan" : "/plan off",
|
|
3068
3077
|
new AbortController().signal
|
package/dist/plugin.js
CHANGED
|
@@ -1823,6 +1823,10 @@ async function apply3(ctx, config = {}) {
|
|
|
1823
1823
|
}
|
|
1824
1824
|
return void 0;
|
|
1825
1825
|
};
|
|
1826
|
+
const executeCommand = (agent, line, signal) => {
|
|
1827
|
+
const execute = commandRuntime.execute;
|
|
1828
|
+
return execute.length >= 4 ? execute.call(commandRuntime, agent, line, [], signal) : execute.call(commandRuntime, agent, line, signal);
|
|
1829
|
+
};
|
|
1826
1830
|
await ctx.plugin(tui_client_plugin_exports, { rpc, findAgent, advertisement: tuiClient });
|
|
1827
1831
|
const modelCandidates = () => {
|
|
1828
1832
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -2324,9 +2328,14 @@ async function apply3(ctx, config = {}) {
|
|
|
2324
2328
|
const permission = permissionService();
|
|
2325
2329
|
if (permission.names.includes(modeId)) {
|
|
2326
2330
|
let bundledApproval = record.approvals;
|
|
2327
|
-
permission.apply(
|
|
2328
|
-
|
|
2329
|
-
|
|
2331
|
+
permission.apply(
|
|
2332
|
+
record.agent.session,
|
|
2333
|
+
modeId,
|
|
2334
|
+
(policy) => {
|
|
2335
|
+
bundledApproval = policy;
|
|
2336
|
+
},
|
|
2337
|
+
"selection"
|
|
2338
|
+
);
|
|
2330
2339
|
setApprovalPolicy(record, bundledApproval);
|
|
2331
2340
|
record.modeId = permission.resolve(modeId).sandbox;
|
|
2332
2341
|
notify(sessionId, { sessionUpdate: "current_mode_update", currentModeId: modeId });
|
|
@@ -2958,7 +2967,7 @@ async function apply3(ctx, config = {}) {
|
|
|
2958
2967
|
if (commandMatch !== null && commandMatch[1] !== void 0) {
|
|
2959
2968
|
let execution;
|
|
2960
2969
|
try {
|
|
2961
|
-
execution = await
|
|
2970
|
+
execution = await executeCommand(
|
|
2962
2971
|
record.agent,
|
|
2963
2972
|
trimmed,
|
|
2964
2973
|
new AbortController().signal
|
|
@@ -3063,7 +3072,7 @@ async function apply3(ctx, config = {}) {
|
|
|
3063
3072
|
if (value !== "default" && value !== "plan") {
|
|
3064
3073
|
throw invalidParams(`unknown collaboration mode: ${value}`);
|
|
3065
3074
|
}
|
|
3066
|
-
const execution = await
|
|
3075
|
+
const execution = await executeCommand(
|
|
3067
3076
|
record.agent,
|
|
3068
3077
|
value === "plan" ? "/plan" : "/plan off",
|
|
3069
3078
|
new AbortController().signal
|
package/dist/server.js
CHANGED
|
@@ -1818,6 +1818,10 @@ async function apply3(ctx, config = {}) {
|
|
|
1818
1818
|
}
|
|
1819
1819
|
return void 0;
|
|
1820
1820
|
};
|
|
1821
|
+
const executeCommand = (agent, line, signal) => {
|
|
1822
|
+
const execute = commandRuntime.execute;
|
|
1823
|
+
return execute.length >= 4 ? execute.call(commandRuntime, agent, line, [], signal) : execute.call(commandRuntime, agent, line, signal);
|
|
1824
|
+
};
|
|
1821
1825
|
await ctx.plugin(tui_client_plugin_exports, { rpc, findAgent, advertisement: tuiClient });
|
|
1822
1826
|
const modelCandidates = () => {
|
|
1823
1827
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -2319,9 +2323,14 @@ async function apply3(ctx, config = {}) {
|
|
|
2319
2323
|
const permission = permissionService();
|
|
2320
2324
|
if (permission.names.includes(modeId)) {
|
|
2321
2325
|
let bundledApproval = record.approvals;
|
|
2322
|
-
permission.apply(
|
|
2323
|
-
|
|
2324
|
-
|
|
2326
|
+
permission.apply(
|
|
2327
|
+
record.agent.session,
|
|
2328
|
+
modeId,
|
|
2329
|
+
(policy) => {
|
|
2330
|
+
bundledApproval = policy;
|
|
2331
|
+
},
|
|
2332
|
+
"selection"
|
|
2333
|
+
);
|
|
2325
2334
|
setApprovalPolicy(record, bundledApproval);
|
|
2326
2335
|
record.modeId = permission.resolve(modeId).sandbox;
|
|
2327
2336
|
notify(sessionId, { sessionUpdate: "current_mode_update", currentModeId: modeId });
|
|
@@ -2953,7 +2962,7 @@ async function apply3(ctx, config = {}) {
|
|
|
2953
2962
|
if (commandMatch !== null && commandMatch[1] !== void 0) {
|
|
2954
2963
|
let execution;
|
|
2955
2964
|
try {
|
|
2956
|
-
execution = await
|
|
2965
|
+
execution = await executeCommand(
|
|
2957
2966
|
record.agent,
|
|
2958
2967
|
trimmed,
|
|
2959
2968
|
new AbortController().signal
|
|
@@ -3058,7 +3067,7 @@ async function apply3(ctx, config = {}) {
|
|
|
3058
3067
|
if (value !== "default" && value !== "plan") {
|
|
3059
3068
|
throw invalidParams(`unknown collaboration mode: ${value}`);
|
|
3060
3069
|
}
|
|
3061
|
-
const execution = await
|
|
3070
|
+
const execution = await executeCommand(
|
|
3062
3071
|
record.agent,
|
|
3063
3072
|
value === "plan" ? "/plan" : "/plan off",
|
|
3064
3073
|
new AbortController().signal
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.4.
|
|
6
|
+
"version": "0.4.19",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git+https://github.com/openma-ai/deepseek-harness-acp.git"
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"start": "node --import tsx src/index.ts",
|
|
37
37
|
"pretest": "npm run build",
|
|
38
38
|
"test": "vitest run --exclude test/profile-install.test.ts",
|
|
39
|
+
"test:host": "vitest run test/e2e.test.ts -t \"serves session controls through the host tree\"",
|
|
39
40
|
"test:install": "vitest run test/profile-install.test.ts",
|
|
40
41
|
"test:watch": "vitest",
|
|
41
42
|
"typecheck": "tsc --noEmit",
|
|
@@ -118,7 +119,7 @@
|
|
|
118
119
|
"zod": "^4.4.3"
|
|
119
120
|
},
|
|
120
121
|
"peerDependencies": {
|
|
121
|
-
"@deepseek-ai/dsh": "^0.1.0-rc.6"
|
|
122
|
+
"@deepseek-ai/dsh": "^0.1.0-rc.6 || ^0.1.1-rc.1"
|
|
122
123
|
},
|
|
123
124
|
"exports": {
|
|
124
125
|
".": "./dist/index.js",
|