external-subagent 0.5.3 → 0.5.4
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/cli/constants.mjs
CHANGED
|
@@ -12,7 +12,7 @@ const IS_DEBUG_VARIANT = process.env.EXTERNAL_SUBAGENT_VARIANT === 'debug';
|
|
|
12
12
|
|
|
13
13
|
export const PRODUCT_NAME = IS_DEBUG_VARIANT ? 'external-subagent-debug' : 'external-subagent';
|
|
14
14
|
export const PRODUCT_ID = IS_DEBUG_VARIANT ? 'external_subagent_debug' : 'external_subagent';
|
|
15
|
-
export const VERSION = '0.5.
|
|
15
|
+
export const VERSION = '0.5.4';
|
|
16
16
|
export const LAUNCH_AGENT_LABEL = IS_DEBUG_VARIANT ? 'com.external-subagent-debug.daemon' : 'com.external-subagent.daemon';
|
|
17
17
|
export const DAEMON_BIN_NAME = IS_DEBUG_VARIANT ? 'external-subagent-debugd' : 'external-subagentd';
|
|
18
18
|
export const MCP_BIN_NAME = IS_DEBUG_VARIANT ? 'external-subagent-debug-mcp' : 'external-subagent-mcp';
|
package/cli/install/dsh.mjs
CHANGED
|
@@ -140,7 +140,7 @@ function managedBlock(binding, socket) {
|
|
|
140
140
|
SENTINEL,
|
|
141
141
|
'- insert:',
|
|
142
142
|
` - id: ${MCP_ENTRY_ID}`,
|
|
143
|
-
`
|
|
143
|
+
` name: ${yamlScalar(MCP_CLIENT_PACKAGE)}`,
|
|
144
144
|
' config:',
|
|
145
145
|
` serverName: ${yamlScalar('external_subagent')}`,
|
|
146
146
|
` transport: ${yamlScalar('stdio')}`,
|
|
@@ -394,15 +394,22 @@ function verifyWithDump(dshHome, profileName, options = {}) {
|
|
|
394
394
|
// composition (an older manual row, another profile's leftovers in a
|
|
395
395
|
// copied fixture) could otherwise satisfy a substring check and mask a
|
|
396
396
|
// silently-dropped managed row. The composed dump re-serializes the
|
|
397
|
-
// entry
|
|
398
|
-
//
|
|
399
|
-
//
|
|
400
|
-
//
|
|
401
|
-
|
|
397
|
+
// entry with its id first (dsh emits `id`, `name`, `config` in key
|
|
398
|
+
// order), so anchor on OUR entry id and require both the plugin name and
|
|
399
|
+
// the serverName in the same mapping block. Anchoring on the id is what
|
|
400
|
+
// makes this structural: a sibling `- id:`/`- name:` regression (two list
|
|
401
|
+
// items instead of one) drops the id from the composed entry, and this
|
|
402
|
+
// check then fails even though a bare `name:` line still exists for some
|
|
403
|
+
// other mcp-client row in the dump. The dump may render the package name
|
|
404
|
+
// quoted or bare depending on the dsh version, so accept both spellings.
|
|
405
|
+
const anchor = out.indexOf(`- id: ${MCP_ENTRY_ID}\n`);
|
|
402
406
|
if (anchor === -1) {
|
|
403
|
-
throw new CliError('DSH_BINDING_UNVERIFIABLE',
|
|
407
|
+
throw new CliError('DSH_BINDING_UNVERIFIABLE', `the managed entry id ${MCP_ENTRY_ID} is absent from the composed profile dump`);
|
|
404
408
|
}
|
|
405
409
|
const window = out.slice(anchor, anchor + 1200);
|
|
410
|
+
if (!window.includes(`name: ${MCP_CLIENT_PACKAGE}`) && !window.includes(`name: '${MCP_CLIENT_PACKAGE}'`)) {
|
|
411
|
+
throw new CliError('DSH_BINDING_UNVERIFIABLE', 'the managed entry is present but does not carry the mcp-client plugin name');
|
|
412
|
+
}
|
|
406
413
|
if (!window.includes('serverName: external_subagent')) {
|
|
407
414
|
throw new CliError('DSH_BINDING_UNVERIFIABLE', 'the managed mcp-client entry is present but its serverName is missing from the composed dump');
|
|
408
415
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "external-subagent",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "Manage bounded ZCode, DeepSeek Harness (DSH), Codex, and Google Antigravity (agy) subagent tasks through a local MCP service for any local host (Codex, ZCode, or a custom MCP client)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|