@namzu/cli 29.1.0 → 32.0.0
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/CHANGELOG.md +296 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +5 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/acp.d.ts +20 -2
- package/dist/commands/acp.d.ts.map +1 -1
- package/dist/commands/acp.js +42 -5
- package/dist/commands/acp.js.map +1 -1
- package/dist/commands/drain.d.ts.map +1 -1
- package/dist/commands/drain.js +2 -1
- package/dist/commands/drain.js.map +1 -1
- package/dist/commands/exec-json.d.ts.map +1 -1
- package/dist/commands/exec-json.js +24 -1
- package/dist/commands/exec-json.js.map +1 -1
- package/dist/commands/exec.d.ts.map +1 -1
- package/dist/commands/exec.js +5 -1
- package/dist/commands/exec.js.map +1 -1
- package/dist/commands/prior-messages.d.ts.map +1 -1
- package/dist/commands/prior-messages.js +42 -2
- package/dist/commands/prior-messages.js.map +1 -1
- package/dist/commands/schedule.d.ts.map +1 -1
- package/dist/commands/schedule.js +7 -5
- package/dist/commands/schedule.js.map +1 -1
- package/dist/config/composer-triggers.d.ts +41 -0
- package/dist/config/composer-triggers.d.ts.map +1 -0
- package/dist/config/composer-triggers.js +80 -0
- package/dist/config/composer-triggers.js.map +1 -0
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/load.js +58 -0
- package/dist/config/load.js.map +1 -1
- package/dist/config/schema.d.ts +34 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js.map +1 -1
- package/dist/context/doctrine.d.ts +3 -3
- package/dist/context/doctrine.d.ts.map +1 -1
- package/dist/context/doctrine.js +3 -3
- package/dist/context/doctrine.js.map +1 -1
- package/dist/context/environment.d.ts +26 -3
- package/dist/context/environment.d.ts.map +1 -1
- package/dist/context/environment.js +68 -9
- package/dist/context/environment.js.map +1 -1
- package/dist/context/runtime-message.d.ts.map +1 -1
- package/dist/context/runtime-message.js +4 -0
- package/dist/context/runtime-message.js.map +1 -1
- package/dist/integrations/mcp/servers.d.ts +72 -5
- package/dist/integrations/mcp/servers.d.ts.map +1 -1
- package/dist/integrations/mcp/servers.js +144 -23
- package/dist/integrations/mcp/servers.js.map +1 -1
- package/dist/integrations/notifications/desktop.d.ts +2 -0
- package/dist/integrations/notifications/desktop.d.ts.map +1 -1
- package/dist/integrations/notifications/desktop.js +6 -5
- package/dist/integrations/notifications/desktop.js.map +1 -1
- package/dist/integrations/plugins/runtime.d.ts +10 -2
- package/dist/integrations/plugins/runtime.d.ts.map +1 -1
- package/dist/integrations/plugins/runtime.js +16 -29
- package/dist/integrations/plugins/runtime.js.map +1 -1
- package/dist/integrations/providers/harness-credentials.d.ts +9 -4
- package/dist/integrations/providers/harness-credentials.d.ts.map +1 -1
- package/dist/integrations/providers/harness-credentials.js +16 -8
- package/dist/integrations/providers/harness-credentials.js.map +1 -1
- package/dist/integrations/resident/session-step.d.ts.map +1 -1
- package/dist/integrations/resident/session-step.js +2 -1
- package/dist/integrations/resident/session-step.js.map +1 -1
- package/dist/integrations/sessions/store.d.ts.map +1 -1
- package/dist/integrations/sessions/store.js +20 -2
- package/dist/integrations/sessions/store.js.map +1 -1
- package/dist/integrations/subagents/NamzuCliAgent.d.ts +8 -0
- package/dist/integrations/subagents/NamzuCliAgent.d.ts.map +1 -0
- package/dist/integrations/subagents/NamzuCliAgent.js +9 -0
- package/dist/integrations/subagents/NamzuCliAgent.js.map +1 -0
- package/dist/integrations/subagents/runtime.d.ts +5 -4
- package/dist/integrations/subagents/runtime.d.ts.map +1 -1
- package/dist/integrations/subagents/runtime.js +46 -11
- package/dist/integrations/subagents/runtime.js.map +1 -1
- package/dist/integrations/web/open-url.d.ts +24 -0
- package/dist/integrations/web/open-url.d.ts.map +1 -0
- package/dist/integrations/web/open-url.js +73 -0
- package/dist/integrations/web/open-url.js.map +1 -0
- package/dist/integrations/web/search.d.ts.map +1 -1
- package/dist/integrations/web/search.js +8 -6
- package/dist/integrations/web/search.js.map +1 -1
- package/dist/permissions/rules.d.ts +5 -1
- package/dist/permissions/rules.d.ts.map +1 -1
- package/dist/permissions/rules.js +85 -3
- package/dist/permissions/rules.js.map +1 -1
- package/dist/schedule/build.d.ts +26 -2
- package/dist/schedule/build.d.ts.map +1 -1
- package/dist/schedule/build.js +139 -20
- package/dist/schedule/build.js.map +1 -1
- package/dist/schedule/changes.d.ts +6 -0
- package/dist/schedule/changes.d.ts.map +1 -1
- package/dist/schedule/changes.js +23 -0
- package/dist/schedule/changes.js.map +1 -1
- package/dist/schedule/commands/add.d.ts +1 -1
- package/dist/schedule/commands/add.d.ts.map +1 -1
- package/dist/schedule/commands/add.js +188 -54
- package/dist/schedule/commands/add.js.map +1 -1
- package/dist/schedule/commands/lifecycle.d.ts.map +1 -1
- package/dist/schedule/commands/lifecycle.js +2 -1
- package/dist/schedule/commands/lifecycle.js.map +1 -1
- package/dist/schedule/commands/list.d.ts +2 -0
- package/dist/schedule/commands/list.d.ts.map +1 -1
- package/dist/schedule/commands/list.js +69 -20
- package/dist/schedule/commands/list.js.map +1 -1
- package/dist/schedule/daemon/daemon.d.ts +1 -1
- package/dist/schedule/daemon/daemon.d.ts.map +1 -1
- package/dist/schedule/daemon/daemon.js +22 -5
- package/dist/schedule/daemon/daemon.js.map +1 -1
- package/dist/schedule/daemon/notify.d.ts +29 -2
- package/dist/schedule/daemon/notify.d.ts.map +1 -1
- package/dist/schedule/daemon/notify.js +71 -2
- package/dist/schedule/daemon/notify.js.map +1 -1
- package/dist/schedule/env.d.ts +8 -4
- package/dist/schedule/env.d.ts.map +1 -1
- package/dist/schedule/env.js +13 -6
- package/dist/schedule/env.js.map +1 -1
- package/dist/schedule/fire/calls.d.ts +49 -0
- package/dist/schedule/fire/calls.d.ts.map +1 -0
- package/dist/schedule/fire/calls.js +114 -0
- package/dist/schedule/fire/calls.js.map +1 -0
- package/dist/schedule/fire/fire.d.ts +1 -1
- package/dist/schedule/fire/fire.d.ts.map +1 -1
- package/dist/schedule/fire/fire.js +209 -15
- package/dist/schedule/fire/fire.js.map +1 -1
- package/dist/schedule/fire/result.d.ts +1 -1
- package/dist/schedule/fire/result.d.ts.map +1 -1
- package/dist/schedule/fire/result.js +2 -1
- package/dist/schedule/fire/result.js.map +1 -1
- package/dist/schedule/fire/run-script.d.ts +46 -0
- package/dist/schedule/fire/run-script.d.ts.map +1 -0
- package/dist/schedule/fire/run-script.js +81 -0
- package/dist/schedule/fire/run-script.js.map +1 -0
- package/dist/schedule/fire/unattended-note.d.ts +8 -0
- package/dist/schedule/fire/unattended-note.d.ts.map +1 -1
- package/dist/schedule/fire/unattended-note.js +5 -0
- package/dist/schedule/fire/unattended-note.js.map +1 -1
- package/dist/schedule/fire/wake-gate.d.ts +39 -0
- package/dist/schedule/fire/wake-gate.d.ts.map +1 -0
- package/dist/schedule/fire/wake-gate.js +90 -0
- package/dist/schedule/fire/wake-gate.js.map +1 -0
- package/dist/schedule/floor.d.ts +28 -8
- package/dist/schedule/floor.d.ts.map +1 -1
- package/dist/schedule/floor.js +624 -114
- package/dist/schedule/floor.js.map +1 -1
- package/dist/schedule/policy.d.ts +40 -0
- package/dist/schedule/policy.d.ts.map +1 -1
- package/dist/schedule/policy.js +36 -0
- package/dist/schedule/policy.js.map +1 -1
- package/dist/schedule/script-check.d.ts +53 -0
- package/dist/schedule/script-check.d.ts.map +1 -0
- package/dist/schedule/script-check.js +145 -0
- package/dist/schedule/script-check.js.map +1 -0
- package/dist/schedule/script-shell.d.ts +3 -0
- package/dist/schedule/script-shell.d.ts.map +1 -0
- package/dist/schedule/script-shell.js +5 -0
- package/dist/schedule/script-shell.js.map +1 -0
- package/dist/schedule/service/index.d.ts +1 -1
- package/dist/schedule/service/index.d.ts.map +1 -1
- package/dist/schedule/service/index.js +20 -11
- package/dist/schedule/service/index.js.map +1 -1
- package/dist/schedule/service/manifest.js +1 -1
- package/dist/schedule/service/manifest.js.map +1 -1
- package/dist/schedule/service/windows-task.d.ts +7 -0
- package/dist/schedule/service/windows-task.d.ts.map +1 -1
- package/dist/schedule/service/windows-task.js +65 -0
- package/dist/schedule/service/windows-task.js.map +1 -1
- package/dist/schedule/service/wsl.d.ts +13 -1
- package/dist/schedule/service/wsl.d.ts.map +1 -1
- package/dist/schedule/service/wsl.js +16 -6
- package/dist/schedule/service/wsl.js.map +1 -1
- package/dist/schedule/store/atomic.d.ts +5 -2
- package/dist/schedule/store/atomic.d.ts.map +1 -1
- package/dist/schedule/store/atomic.js +7 -4
- package/dist/schedule/store/atomic.js.map +1 -1
- package/dist/schedule/store/claims.js +1 -1
- package/dist/schedule/store/claims.js.map +1 -1
- package/dist/schedule/store/history.d.ts +1 -1
- package/dist/schedule/store/history.d.ts.map +1 -1
- package/dist/schedule/store/history.js +4 -1
- package/dist/schedule/store/history.js.map +1 -1
- package/dist/schedule/store/jobs.d.ts +19 -3
- package/dist/schedule/store/jobs.d.ts.map +1 -1
- package/dist/schedule/store/jobs.js +83 -16
- package/dist/schedule/store/jobs.js.map +1 -1
- package/dist/schedule/store/state.js +1 -1
- package/dist/schedule/store/state.js.map +1 -1
- package/dist/schedule/types.d.ts +98 -6
- package/dist/schedule/types.d.ts.map +1 -1
- package/dist/schedule/types.js +25 -1
- package/dist/schedule/types.js.map +1 -1
- package/dist/schedule/visible-source.d.ts +18 -0
- package/dist/schedule/visible-source.d.ts.map +1 -0
- package/dist/schedule/visible-source.js +59 -0
- package/dist/schedule/visible-source.js.map +1 -0
- package/dist/skills/directory.d.ts +38 -0
- package/dist/skills/directory.d.ts.map +1 -0
- package/dist/skills/directory.js +51 -0
- package/dist/skills/directory.js.map +1 -0
- package/dist/test-support/toolset.d.ts +23 -0
- package/dist/test-support/toolset.d.ts.map +1 -0
- package/dist/test-support/toolset.js +27 -0
- package/dist/test-support/toolset.js.map +1 -0
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/App.js +343 -64
- package/dist/tui/App.js.map +1 -1
- package/dist/tui/ChoicePicker.d.ts +2 -0
- package/dist/tui/ChoicePicker.d.ts.map +1 -1
- package/dist/tui/ChoicePicker.js +10 -2
- package/dist/tui/ChoicePicker.js.map +1 -1
- package/dist/tui/Composer.d.ts +62 -3
- package/dist/tui/Composer.d.ts.map +1 -1
- package/dist/tui/Composer.js +162 -25
- package/dist/tui/Composer.js.map +1 -1
- package/dist/tui/ComposerFrame.d.ts +1 -1
- package/dist/tui/ComposerFrame.js +3 -3
- package/dist/tui/ComposerFrame.js.map +1 -1
- package/dist/tui/EffortSlider.d.ts +8 -9
- package/dist/tui/EffortSlider.d.ts.map +1 -1
- package/dist/tui/EffortSlider.js +15 -12
- package/dist/tui/EffortSlider.js.map +1 -1
- package/dist/tui/PermissionOverlay.d.ts +13 -1
- package/dist/tui/PermissionOverlay.d.ts.map +1 -1
- package/dist/tui/PermissionOverlay.js +26 -4
- package/dist/tui/PermissionOverlay.js.map +1 -1
- package/dist/tui/StatusBar.d.ts +12 -12
- package/dist/tui/StatusBar.d.ts.map +1 -1
- package/dist/tui/StatusBar.js +15 -15
- package/dist/tui/StatusBar.js.map +1 -1
- package/dist/tui/agent.d.ts +73 -12
- package/dist/tui/agent.d.ts.map +1 -1
- package/dist/tui/agent.js +430 -180
- package/dist/tui/agent.js.map +1 -1
- package/dist/tui/hypermode.d.ts +37 -0
- package/dist/tui/hypermode.d.ts.map +1 -0
- package/dist/tui/hypermode.js +58 -0
- package/dist/tui/hypermode.js.map +1 -0
- package/dist/tui/open-browser.d.ts +29 -1
- package/dist/tui/open-browser.d.ts.map +1 -1
- package/dist/tui/open-browser.js +83 -11
- package/dist/tui/open-browser.js.map +1 -1
- package/dist/tui/permission-review.d.ts +11 -2
- package/dist/tui/permission-review.d.ts.map +1 -1
- package/dist/tui/permission-review.js +176 -19
- package/dist/tui/permission-review.js.map +1 -1
- package/dist/tui/schedule/host-commands.d.ts.map +1 -1
- package/dist/tui/schedule/host-commands.js +95 -33
- package/dist/tui/schedule/host-commands.js.map +1 -1
- package/dist/tui/schedule/integration.d.ts +6 -2
- package/dist/tui/schedule/integration.d.ts.map +1 -1
- package/dist/tui/schedule/integration.js +3 -1
- package/dist/tui/schedule/integration.js.map +1 -1
- package/dist/tui/schedule/resume.d.ts.map +1 -1
- package/dist/tui/schedule/resume.js +10 -1
- package/dist/tui/schedule/resume.js.map +1 -1
- package/dist/tui/schedule/tool-host.d.ts +18 -1
- package/dist/tui/schedule/tool-host.d.ts.map +1 -1
- package/dist/tui/schedule/tool-host.js +384 -84
- package/dist/tui/schedule/tool-host.js.map +1 -1
- package/dist/tui/slashCommands.d.ts +23 -5
- package/dist/tui/slashCommands.d.ts.map +1 -1
- package/dist/tui/slashCommands.js +80 -31
- package/dist/tui/slashCommands.js.map +1 -1
- package/dist/tui/theme.d.ts +10 -4
- package/dist/tui/theme.d.ts.map +1 -1
- package/dist/tui/theme.js +4 -3
- package/dist/tui/theme.js.map +1 -1
- package/dist/tui/triggers/analyze.d.ts +57 -0
- package/dist/tui/triggers/analyze.d.ts.map +1 -0
- package/dist/tui/triggers/analyze.js +221 -0
- package/dist/tui/triggers/analyze.js.map +1 -0
- package/dist/tui/triggers/context-text.d.ts +21 -0
- package/dist/tui/triggers/context-text.d.ts.map +1 -0
- package/dist/tui/triggers/context-text.js +44 -0
- package/dist/tui/triggers/context-text.js.map +1 -0
- package/dist/tui/triggers/copy.d.ts +38 -0
- package/dist/tui/triggers/copy.d.ts.map +1 -0
- package/dist/tui/triggers/copy.js +163 -0
- package/dist/tui/triggers/copy.js.map +1 -0
- package/dist/tui/triggers/detect.d.ts +83 -0
- package/dist/tui/triggers/detect.d.ts.map +1 -0
- package/dist/tui/triggers/detect.js +295 -0
- package/dist/tui/triggers/detect.js.map +1 -0
- package/dist/tui/triggers/fold.d.ts +34 -0
- package/dist/tui/triggers/fold.d.ts.map +1 -0
- package/dist/tui/triggers/fold.js +44 -0
- package/dist/tui/triggers/fold.js.map +1 -0
- package/dist/tui/triggers/pattern.d.ts +66 -0
- package/dist/tui/triggers/pattern.d.ts.map +1 -0
- package/dist/tui/triggers/pattern.js +243 -0
- package/dist/tui/triggers/pattern.js.map +1 -0
- package/dist/tui/triggers/provenance.d.ts +58 -0
- package/dist/tui/triggers/provenance.d.ts.map +1 -0
- package/dist/tui/triggers/provenance.js +98 -0
- package/dist/tui/triggers/provenance.js.map +1 -0
- package/dist/tui/triggers/registry.d.ts +113 -0
- package/dist/tui/triggers/registry.d.ts.map +1 -0
- package/dist/tui/triggers/registry.js +164 -0
- package/dist/tui/triggers/registry.js.map +1 -0
- package/dist/tui/triggers/setting.d.ts +18 -0
- package/dist/tui/triggers/setting.d.ts.map +1 -0
- package/dist/tui/triggers/setting.js +61 -0
- package/dist/tui/triggers/setting.js.map +1 -0
- package/dist/tui/triggers/verbs.d.ts +29 -0
- package/dist/tui/triggers/verbs.d.ts.map +1 -0
- package/dist/tui/triggers/verbs.js +140 -0
- package/dist/tui/triggers/verbs.js.map +1 -0
- package/dist/tui/types.d.ts +3 -1
- package/dist/tui/types.d.ts.map +1 -1
- package/package.json +12 -12
- package/skills/README.md +5 -0
- package/skills/schedule-task/SKILL.md +123 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAChE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAEtE;;;;;;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;IACxC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,SAAS,CAAC,YAAY,GAAG,SAAS,GAAG,SAAS,CAAC,EAAE,CAAA;IAC7E;;;;;;OAMG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,mBAAmB,GAAG,WAAW,CAAA;IACtD;;;OAGG;IACH,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;CACnC;AAED,eAAO,MAAM,cAAc,EAAE,cAG3B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAogBH,MAAM,CAAC,MAAM,cAAc,GAAmB,MAAM,CAAC,MAAM,CAAC;IAC3D,MAAM,EAAE,MAAM;IACd,KAAK,EAAE,KAAK;CACZ,CAAC,CAAA"}
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* reaches which reader: the working doctrine goes to the parent and to every
|
|
12
12
|
* delegated sub-agent; the delegation doctrine, which names `task_create` and
|
|
13
13
|
* `Agent`, goes to the parent only; the plan-mode text only while the session
|
|
14
|
-
* is in `plan` mode; the
|
|
15
|
-
* session's
|
|
14
|
+
* is in `plan` mode; the hypermode text only for a turn sent while the
|
|
15
|
+
* session's hypermode (`/hypermode`) is on, and never without the
|
|
16
16
|
* delegation doctrine it strengthens.
|
|
17
17
|
*
|
|
18
18
|
* These are joined as raw strings into the system prompt rather than
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
* string in a fixed order — identity, doctrine, environment, memory — and the
|
|
21
21
|
* contribution would land after the environment and memory blocks.
|
|
22
22
|
*/
|
|
23
|
-
export { CODING_AGENT_DELEGATION_DOCTRINE as NAMZU_DELEGATION_DOCTRINE,
|
|
23
|
+
export { CODING_AGENT_DELEGATION_DOCTRINE as NAMZU_DELEGATION_DOCTRINE, CODING_AGENT_HYPERMODE_DOCTRINE as NAMZU_HYPERMODE_DOCTRINE, CODING_AGENT_WORKING_DOCTRINE as NAMZU_WORKING_DOCTRINE, PLAN_MODE_DOCTRINE as NAMZU_PLAN_MODE_DOCTRINE, } from '@namzu/sdk';
|
|
24
24
|
//# sourceMappingURL=doctrine.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctrine.d.ts","sourceRoot":"","sources":["../../src/context/doctrine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EACN,gCAAgC,IAAI,yBAAyB,EAC7D,
|
|
1
|
+
{"version":3,"file":"doctrine.d.ts","sourceRoot":"","sources":["../../src/context/doctrine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EACN,gCAAgC,IAAI,yBAAyB,EAC7D,+BAA+B,IAAI,wBAAwB,EAC3D,6BAA6B,IAAI,sBAAsB,EACvD,kBAAkB,IAAI,wBAAwB,GAC9C,MAAM,YAAY,CAAA"}
|
package/dist/context/doctrine.js
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* reaches which reader: the working doctrine goes to the parent and to every
|
|
12
12
|
* delegated sub-agent; the delegation doctrine, which names `task_create` and
|
|
13
13
|
* `Agent`, goes to the parent only; the plan-mode text only while the session
|
|
14
|
-
* is in `plan` mode; the
|
|
15
|
-
* session's
|
|
14
|
+
* is in `plan` mode; the hypermode text only for a turn sent while the
|
|
15
|
+
* session's hypermode (`/hypermode`) is on, and never without the
|
|
16
16
|
* delegation doctrine it strengthens.
|
|
17
17
|
*
|
|
18
18
|
* These are joined as raw strings into the system prompt rather than
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
* string in a fixed order — identity, doctrine, environment, memory — and the
|
|
21
21
|
* contribution would land after the environment and memory blocks.
|
|
22
22
|
*/
|
|
23
|
-
export { CODING_AGENT_DELEGATION_DOCTRINE as NAMZU_DELEGATION_DOCTRINE,
|
|
23
|
+
export { CODING_AGENT_DELEGATION_DOCTRINE as NAMZU_DELEGATION_DOCTRINE, CODING_AGENT_HYPERMODE_DOCTRINE as NAMZU_HYPERMODE_DOCTRINE, CODING_AGENT_WORKING_DOCTRINE as NAMZU_WORKING_DOCTRINE, PLAN_MODE_DOCTRINE as NAMZU_PLAN_MODE_DOCTRINE, } from '@namzu/sdk';
|
|
24
24
|
//# sourceMappingURL=doctrine.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctrine.js","sourceRoot":"","sources":["../../src/context/doctrine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EACN,gCAAgC,IAAI,yBAAyB,EAC7D,
|
|
1
|
+
{"version":3,"file":"doctrine.js","sourceRoot":"","sources":["../../src/context/doctrine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EACN,gCAAgC,IAAI,yBAAyB,EAC7D,+BAA+B,IAAI,wBAAwB,EAC3D,6BAA6B,IAAI,sBAAsB,EACvD,kBAAkB,IAAI,wBAAwB,GAC9C,MAAM,YAAY,CAAA"}
|
|
@@ -62,8 +62,13 @@ export interface WslFacts {
|
|
|
62
62
|
readonly distro: string | null;
|
|
63
63
|
/** Windows executables can be started from the Linux side. */
|
|
64
64
|
readonly interop: boolean;
|
|
65
|
-
/** Windows drives mounted under
|
|
65
|
+
/** Windows drives mounted under the mount root, as `/mnt/<letter>` by default. */
|
|
66
66
|
readonly drives: readonly string[];
|
|
67
|
+
/**
|
|
68
|
+
* Where the drives are mounted, with a trailing slash: `[automount] root`
|
|
69
|
+
* in `/etc/wsl.conf`. Absent means `/mnt/`.
|
|
70
|
+
*/
|
|
71
|
+
readonly mountRoot?: string;
|
|
67
72
|
}
|
|
68
73
|
/**
|
|
69
74
|
* WSL, or `undefined` on any other Linux.
|
|
@@ -72,8 +77,9 @@ export interface WslFacts {
|
|
|
72
77
|
* process it starts, and `WSL_INTEROP` names the interop socket when interop
|
|
73
78
|
* is on. Interop also counts as on when its binfmt handler is registered
|
|
74
79
|
* (`/proc/sys/fs/binfmt_misc/WSLInterop`), which survives a shell that
|
|
75
|
-
* dropped the variable. Drives are the one-letter directories under
|
|
76
|
-
*
|
|
80
|
+
* dropped the variable. Drives are the one-letter directories under the
|
|
81
|
+
* mount root (`/mnt/` unless `/etc/wsl.conf` moves it) — `/mnt/wsl` and
|
|
82
|
+
* `/mnt/wslg` are WSL's own and are not drives.
|
|
77
83
|
*
|
|
78
84
|
* Every probe is injectable so a test can describe a machine it is not
|
|
79
85
|
* running on; the defaults read this one.
|
|
@@ -81,7 +87,24 @@ export interface WslFacts {
|
|
|
81
87
|
export declare function detectWsl(env?: NodeJS.ProcessEnv, probe?: {
|
|
82
88
|
readonly exists?: (path: string) => boolean;
|
|
83
89
|
readonly list?: (path: string) => readonly string[];
|
|
90
|
+
/** The mount root; absent reads `/etc/wsl.conf`. */
|
|
91
|
+
readonly mountRoot?: string;
|
|
84
92
|
}): WslFacts | undefined;
|
|
93
|
+
/** Where WSL mounts the Windows drives unless `/etc/wsl.conf` moves them. */
|
|
94
|
+
export declare const DEFAULT_WSL_MOUNT_ROOT = "/mnt/";
|
|
95
|
+
/**
|
|
96
|
+
* The `[automount] root` of a `wsl.conf`, with a trailing slash; `/mnt/` when
|
|
97
|
+
* the file, the section or the key is absent, or the value is not absolute.
|
|
98
|
+
*
|
|
99
|
+
* The same reading `@namzu/browser` makes (`parseWslMountRoot` there), kept
|
|
100
|
+
* here because the CLI's leaf packages do not import one another: sections
|
|
101
|
+
* and keys in any case, `#`/`;` comments, quotes around the value, a BOM.
|
|
102
|
+
*/
|
|
103
|
+
export declare function parseWslMountRoot(wslConf: string | undefined): string;
|
|
104
|
+
/** This machine's mount root, from `/etc/wsl.conf`; `/mnt/` when it cannot be read. */
|
|
105
|
+
export declare function readWslMountRoot(readFile?: (path: string) => string | undefined): string;
|
|
106
|
+
/** Windows' `System32` as WSL mounts it: `/mnt/c/Windows/System32` under the default root. */
|
|
107
|
+
export declare function wslSystem32(mountRoot?: string): string;
|
|
85
108
|
export interface EnvironmentFacts {
|
|
86
109
|
/** ISO calendar date, `YYYY-MM-DD`, in the machine's own timezone. */
|
|
87
110
|
readonly today: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../src/context/environment.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAWH;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IACjC,0EAA0E;IAC1E,QAAQ,CAAC,OAAO,CAAC,EAAE;QAClB,mEAAmE;QACnE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;QAC5B,4EAA4E;QAC5E,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;KACpC,CAAA;IACD;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,KAAK,GAAG,YAAY,GAAG,SAAS,CAAA;IACjD,uEAAuE;IACvE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAA;CAC7B;AAED,4DAA4D;AAC5D,MAAM,WAAW,QAAQ;IACxB,0DAA0D;IAC1D,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,8DAA8D;IAC9D,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB
|
|
1
|
+
{"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../src/context/environment.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAWH;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IACjC,0EAA0E;IAC1E,QAAQ,CAAC,OAAO,CAAC,EAAE;QAClB,mEAAmE;QACnE,QAAQ,CAAC,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,wBAAgB,WAAW,CAAC,SAAS,GAAE,MAA+B,GAAG,MAAM,CAE9E;AAED,MAAM,WAAW,gBAAgB;IAChC,sEAAsE;IACtE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,oFAAoF;IACpF,QAAQ,CAAC,qBAAqB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IAClD,2EAA2E;IAC3E,QAAQ,CAAC,QAAQ,CAAC,EAAE,iBAAiB,CAAA;IACrC,gCAAgC;IAChC,QAAQ,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAA;IACvB;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAA;CAC9B;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,IAAI,GAAG,MAAM,CAG9C;AAeD,wBAAsB,oBAAoB,CACzC,GAAG,EAAE,MAAM,EACX,GAAG,GAAE,IAAiB,GACpB,OAAO,CAAC,gBAAgB,CAAC,CAmB3B;AAED,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,gBAAgB,GAAG,MAAM,CAsBxE"}
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
* exactly when a cache hit would have been wrong.
|
|
33
33
|
*/
|
|
34
34
|
import { execFile } from 'node:child_process';
|
|
35
|
-
import { existsSync, readdirSync } from 'node:fs';
|
|
35
|
+
import { existsSync, readFileSync, readdirSync } from 'node:fs';
|
|
36
36
|
import { promisify } from 'node:util';
|
|
37
37
|
const run = promisify(execFile);
|
|
38
38
|
/** Bound on a single git call. A wedged repository must not stall a turn. */
|
|
@@ -44,8 +44,9 @@ const GIT_TIMEOUT_MS = 2_000;
|
|
|
44
44
|
* process it starts, and `WSL_INTEROP` names the interop socket when interop
|
|
45
45
|
* is on. Interop also counts as on when its binfmt handler is registered
|
|
46
46
|
* (`/proc/sys/fs/binfmt_misc/WSLInterop`), which survives a shell that
|
|
47
|
-
* dropped the variable. Drives are the one-letter directories under
|
|
48
|
-
*
|
|
47
|
+
* dropped the variable. Drives are the one-letter directories under the
|
|
48
|
+
* mount root (`/mnt/` unless `/etc/wsl.conf` moves it) — `/mnt/wsl` and
|
|
49
|
+
* `/mnt/wslg` are WSL's own and are not drives.
|
|
49
50
|
*
|
|
50
51
|
* Every probe is injectable so a test can describe a machine it is not
|
|
51
52
|
* running on; the defaults read this one.
|
|
@@ -66,11 +67,66 @@ export function detectWsl(env = process.env, probe = {}) {
|
|
|
66
67
|
}
|
|
67
68
|
});
|
|
68
69
|
const interop = socket !== null || exists('/proc/sys/fs/binfmt_misc/WSLInterop');
|
|
69
|
-
const
|
|
70
|
+
const mountRoot = probe.mountRoot ?? readWslMountRoot();
|
|
71
|
+
const drives = list(mountRoot === '/' ? '/' : mountRoot.slice(0, -1))
|
|
70
72
|
.filter((name) => /^[a-z]$/i.test(name))
|
|
71
73
|
.sort()
|
|
72
|
-
.map((name) =>
|
|
73
|
-
return { distro, interop, drives };
|
|
74
|
+
.map((name) => `${mountRoot}${name}`);
|
|
75
|
+
return { distro, interop, drives, mountRoot };
|
|
76
|
+
}
|
|
77
|
+
/** Where WSL mounts the Windows drives unless `/etc/wsl.conf` moves them. */
|
|
78
|
+
export const DEFAULT_WSL_MOUNT_ROOT = '/mnt/';
|
|
79
|
+
/**
|
|
80
|
+
* The `[automount] root` of a `wsl.conf`, with a trailing slash; `/mnt/` when
|
|
81
|
+
* the file, the section or the key is absent, or the value is not absolute.
|
|
82
|
+
*
|
|
83
|
+
* The same reading `@namzu/browser` makes (`parseWslMountRoot` there), kept
|
|
84
|
+
* here because the CLI's leaf packages do not import one another: sections
|
|
85
|
+
* and keys in any case, `#`/`;` comments, quotes around the value, a BOM.
|
|
86
|
+
*/
|
|
87
|
+
export function parseWslMountRoot(wslConf) {
|
|
88
|
+
if (!wslConf)
|
|
89
|
+
return DEFAULT_WSL_MOUNT_ROOT;
|
|
90
|
+
let inAutomount = false;
|
|
91
|
+
let root;
|
|
92
|
+
for (const raw of wslConf.replace(/^\uFEFF/, '').split(/\r?\n/)) {
|
|
93
|
+
const line = raw.trim();
|
|
94
|
+
if (line.length === 0 || line.startsWith('#') || line.startsWith(';'))
|
|
95
|
+
continue;
|
|
96
|
+
const section = /^\[([^\]]+)\]$/.exec(line);
|
|
97
|
+
if (section) {
|
|
98
|
+
inAutomount = (section[1] ?? '').trim().toLowerCase() === 'automount';
|
|
99
|
+
continue;
|
|
100
|
+
}
|
|
101
|
+
const eq = line.indexOf('=');
|
|
102
|
+
if (!inAutomount || eq <= 0 || line.slice(0, eq).trim().toLowerCase() !== 'root')
|
|
103
|
+
continue;
|
|
104
|
+
let value = line
|
|
105
|
+
.slice(eq + 1)
|
|
106
|
+
.replace(/\s[#;].*$/, '')
|
|
107
|
+
.trim();
|
|
108
|
+
if (/^(["']).*\1$/.test(value))
|
|
109
|
+
value = value.slice(1, -1);
|
|
110
|
+
root = value;
|
|
111
|
+
}
|
|
112
|
+
if (!root || !root.startsWith('/'))
|
|
113
|
+
return DEFAULT_WSL_MOUNT_ROOT;
|
|
114
|
+
return root.endsWith('/') ? root : `${root}/`;
|
|
115
|
+
}
|
|
116
|
+
/** This machine's mount root, from `/etc/wsl.conf`; `/mnt/` when it cannot be read. */
|
|
117
|
+
export function readWslMountRoot(readFile = (path) => {
|
|
118
|
+
try {
|
|
119
|
+
return readFileSync(path, 'utf8');
|
|
120
|
+
}
|
|
121
|
+
catch {
|
|
122
|
+
return undefined;
|
|
123
|
+
}
|
|
124
|
+
}) {
|
|
125
|
+
return parseWslMountRoot(readFile('/etc/wsl.conf'));
|
|
126
|
+
}
|
|
127
|
+
/** Windows' `System32` as WSL mounts it: `/mnt/c/Windows/System32` under the default root. */
|
|
128
|
+
export function wslSystem32(mountRoot = DEFAULT_WSL_MOUNT_ROOT) {
|
|
129
|
+
return `${mountRoot}c/Windows/System32`;
|
|
74
130
|
}
|
|
75
131
|
/**
|
|
76
132
|
* The machine's local calendar date.
|
|
@@ -179,14 +235,17 @@ function wslLines(wsl, boundary) {
|
|
|
179
235
|
: boundary?.interactive === false
|
|
180
236
|
? 'a file tool reaching them is refused in this session, since nobody is here to approve it'
|
|
181
237
|
: 'a file tool reaching them asks for approval first, like any other outside path';
|
|
238
|
+
// The paths below are ones the model will type, so they follow the mount
|
|
239
|
+
// root; under the default one the text is what it always was.
|
|
240
|
+
const root = wsl.mountRoot ?? DEFAULT_WSL_MOUNT_ROOT;
|
|
182
241
|
const drives = wsl.drives.length > 0
|
|
183
|
-
? `Windows drives are mounted under ${wsl.drives.map((d) => `\`${d}\``).join(', ')} (\`C:\\Users\` is
|
|
184
|
-
:
|
|
242
|
+
? `Windows drives are mounted under ${wsl.drives.map((d) => `\`${d}\``).join(', ')} (\`C:\\Users\` is \`${root}c/Users\`; \`wslpath -w\` and \`wslpath -u\` convert).`
|
|
243
|
+
: `No Windows drive is mounted under \`${root === '/' ? '/' : root.slice(0, -1)}\` right now.`;
|
|
185
244
|
const reach = sandboxed
|
|
186
245
|
? 'They are outside the sandbox, so a command there needs `/add-dir` or the sandbox escape.'
|
|
187
246
|
: `They are outside the working directory, so ${fileTools}.`;
|
|
188
247
|
const interop = wsl.interop
|
|
189
|
-
? `Windows programs start from the shell through WSL interop, by their \`.exe\` name: \`powershell.exe -NoProfile -Command ...\`, \`cmd.exe /c ...\`, \`explorer.exe
|
|
248
|
+
? `Windows programs start from the shell through WSL interop, by their \`.exe\` name: \`powershell.exe -NoProfile -Command ...\`, \`cmd.exe /c ...\`, \`explorer.exe .\` (it exits 1 even when it succeeds). \`cmd.exe\` started from a Linux directory warns that UNC paths are unsupported and falls back to C:\\Windows, so \`cd\` under \`${root}c\` first or use \`powershell.exe\`. If a name is not found, the Windows side of \`PATH\` was not appended; \`cmd.exe\` is under \`${wslSystem32(root)}\` and \`powershell.exe\` under its \`WindowsPowerShell/v1.0\`.${sandboxed ? ' The sandbox does not mount the Windows drives those programs live on, so running one needs the sandbox escape.' : ''}`
|
|
190
249
|
: 'WSL interop is off here, so Windows `.exe` programs cannot be started from the shell.';
|
|
191
250
|
return [
|
|
192
251
|
`This machine is Windows Subsystem for Linux${wsl.distro ? ` (distro \`${wsl.distro}\`)` : ''}. ${drives} ${reach}`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environment.js","sourceRoot":"","sources":["../../src/context/environment.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"environment.js","sourceRoot":"","sources":["../../src/context/environment.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAErC,MAAM,GAAG,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAA;AAE/B,6EAA6E;AAC7E,MAAM,cAAc,GAAG,KAAK,CAAA;AA2C5B;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,SAAS,CACxB,MAAyB,OAAO,CAAC,GAAG,EACpC,QAKI,EAAE;IAEN,MAAM,MAAM,GAAG,GAAG,CAAC,eAAe,EAAE,IAAI,EAAE,IAAI,IAAI,CAAA;IAClD,MAAM,MAAM,GAAG,GAAG,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,IAAI,CAAA;IAC9C,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM;QAAE,OAAO,SAAS,CAAA;IACxC,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,IAAI,UAAU,CAAA;IACzC,MAAM,IAAI,GACT,KAAK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AAC,0FAA0F;QAC5F,CAAC,CAAC,8CAA8C,SAAS,GAAG,CAAA;IAC7D,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO;QAC1B,CAAC,CAAC,8UAA8U,IAAI,sIAAsI,WAAW,CAAC,IAAI,CAAC,kEAAkE,SAAS,CAAC,CAAC,CAAC,iHAAiH,CAAC,CAAC,CAAC,EAAE,EAAE;QACjrB,CAAC,CAAC,uFAAuF,CAAA;IAC1F,OAAO;QACN,8CAA8C,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,cAAc,GAAG,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,MAAM,IAAI,KAAK,EAAE;QACnH,OAAO;KACP,CAAA;AACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-message.d.ts","sourceRoot":"","sources":["../../src/context/runtime-message.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAA;AAE3D,0EAA0E;AAC1E,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,yBAAyB,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"runtime-message.d.ts","sourceRoot":"","sources":["../../src/context/runtime-message.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAA;AAE3D,0EAA0E;AAC1E,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,yBAAyB,GAAG,MAAM,CA2B3E"}
|
|
@@ -13,6 +13,10 @@ export function runtimeContextLabel(kind) {
|
|
|
13
13
|
return 'Background job exit';
|
|
14
14
|
case 'limit-finalization':
|
|
15
15
|
return 'Limit finalization request';
|
|
16
|
+
case 'peer-message':
|
|
17
|
+
return 'Message from another session';
|
|
18
|
+
case 'peer-notice':
|
|
19
|
+
return 'Notice from another session';
|
|
16
20
|
case 'repeat-call':
|
|
17
21
|
return 'Repeat-call advisory';
|
|
18
22
|
case 'steering':
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-message.js","sourceRoot":"","sources":["../../src/context/runtime-message.ts"],"names":[],"mappings":"AAEA,0EAA0E;AAC1E,MAAM,UAAU,mBAAmB,CAAC,IAA+B;IAClE,QAAQ,IAAI,EAAE,CAAC;QACd,KAAK,cAAc;YAClB,OAAO,cAAc,CAAA;QACtB,KAAK,UAAU;YACd,OAAO,iBAAiB,CAAA;QACzB,KAAK,eAAe;YACnB,OAAO,wBAAwB,CAAA;QAChC,KAAK,mBAAmB;YACvB,OAAO,wBAAwB,CAAA;QAChC,KAAK,UAAU;YACd,OAAO,qBAAqB,CAAA;QAC7B,KAAK,oBAAoB;YACxB,OAAO,4BAA4B,CAAA;QACpC,KAAK,aAAa;YACjB,OAAO,sBAAsB,CAAA;QAC9B,KAAK,UAAU;YACd,OAAO,kBAAkB,CAAA;QAC1B,KAAK,mBAAmB;YACvB,OAAO,yBAAyB,CAAA;QACjC,KAAK,iBAAiB;YACrB,OAAO,yBAAyB,CAAA;IAClC,CAAC;AACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"runtime-message.js","sourceRoot":"","sources":["../../src/context/runtime-message.ts"],"names":[],"mappings":"AAEA,0EAA0E;AAC1E,MAAM,UAAU,mBAAmB,CAAC,IAA+B;IAClE,QAAQ,IAAI,EAAE,CAAC;QACd,KAAK,cAAc;YAClB,OAAO,cAAc,CAAA;QACtB,KAAK,UAAU;YACd,OAAO,iBAAiB,CAAA;QACzB,KAAK,eAAe;YACnB,OAAO,wBAAwB,CAAA;QAChC,KAAK,mBAAmB;YACvB,OAAO,wBAAwB,CAAA;QAChC,KAAK,UAAU;YACd,OAAO,qBAAqB,CAAA;QAC7B,KAAK,oBAAoB;YACxB,OAAO,4BAA4B,CAAA;QACpC,KAAK,cAAc;YAClB,OAAO,8BAA8B,CAAA;QACtC,KAAK,aAAa;YACjB,OAAO,6BAA6B,CAAA;QACrC,KAAK,aAAa;YACjB,OAAO,sBAAsB,CAAA;QAC9B,KAAK,UAAU;YACd,OAAO,kBAAkB,CAAA;QAC1B,KAAK,mBAAmB;YACvB,OAAO,yBAAyB,CAAA;QACjC,KAAK,iBAAiB;YACrB,OAAO,yBAAyB,CAAA;IAClC,CAAC;AACF,CAAC"}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* "search": { "url": "https://tools.example.internal/mcp" }
|
|
15
15
|
* }
|
|
16
16
|
*
|
|
17
|
-
* Its tools arrive prefixed with the server's name (`
|
|
17
|
+
* Its tools arrive prefixed with the server's name (`mcp__tickets__create`), so
|
|
18
18
|
* two servers offering `search` do not collide and the transcript says where a
|
|
19
19
|
* call went.
|
|
20
20
|
*
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
* and a headless run has nobody to read anything, so it refuses. This module
|
|
32
32
|
* reports; the callers decide.
|
|
33
33
|
*/
|
|
34
|
-
import { type MCPTransportUnion, type ToolDefinition } from '@namzu/sdk';
|
|
34
|
+
import { type MCPToolDrift, type MCPTransportUnion, type ToolDefinition, type Toolset } from '@namzu/sdk';
|
|
35
35
|
/**
|
|
36
36
|
* How long a single server gets to connect, hand shake and list its tools.
|
|
37
37
|
*
|
|
@@ -55,6 +55,15 @@ export interface McpServerSpec {
|
|
|
55
55
|
/** Stdio: the executable to run. */
|
|
56
56
|
readonly command?: string;
|
|
57
57
|
readonly args?: readonly string[];
|
|
58
|
+
/**
|
|
59
|
+
* A value may reference the operator's own environment with a bare
|
|
60
|
+
* `${VAR_NAME}` — no `${VAR:-default}` fallback, and an unset
|
|
61
|
+
* `VAR_NAME` fails this server with a named reason rather than running
|
|
62
|
+
* with an empty string. See {@link expandEnvRefsInRecord}. Prefer
|
|
63
|
+
* `inheritEnv` below for a plain "grant this variable under its own
|
|
64
|
+
* name"; use `${VAR_NAME}` here to rename a variable into whatever key
|
|
65
|
+
* the server expects.
|
|
66
|
+
*/
|
|
58
67
|
readonly env?: Readonly<Record<string, string>>;
|
|
59
68
|
/**
|
|
60
69
|
* Variables from the operator's own environment this server may have.
|
|
@@ -72,6 +81,11 @@ export interface McpServerSpec {
|
|
|
72
81
|
readonly cwd?: string;
|
|
73
82
|
/** HTTP: the server's endpoint. */
|
|
74
83
|
readonly url?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Same `${VAR_NAME}` expansion as `env` above — the only secret-safe
|
|
86
|
+
* option for a header value, since `inheritEnv` reaches the stdio
|
|
87
|
+
* child's process environment only, never an HTTP header.
|
|
88
|
+
*/
|
|
75
89
|
readonly headers?: Readonly<Record<string, string>>;
|
|
76
90
|
/**
|
|
77
91
|
* How long THIS server gets to connect, hand shake and list its tools, in
|
|
@@ -100,6 +114,18 @@ export interface McpServerSpec {
|
|
|
100
114
|
* `connectTimeoutMs` for the handshake that will actually answer.
|
|
101
115
|
*/
|
|
102
116
|
readonly eraProbeTimeoutMs?: number;
|
|
117
|
+
/** Server-reported names admitted from tools, prompts and resources. */
|
|
118
|
+
readonly allow?: readonly string[];
|
|
119
|
+
/** Server-reported names refused even if `allow` includes them. */
|
|
120
|
+
readonly deny?: readonly string[];
|
|
121
|
+
/** Retries only tool calls the SDK marks safe to repeat. Defaults to none. */
|
|
122
|
+
readonly maxRetries?: number;
|
|
123
|
+
/** Require a person to approve every call this server contributes. */
|
|
124
|
+
readonly requireApproval?: boolean;
|
|
125
|
+
/** Trust this server's read-only hints for review exemptions. Defaults to false. */
|
|
126
|
+
readonly readOnlyHintTrusted?: boolean;
|
|
127
|
+
/** Include the server's own initialize instructions as untrusted turn context. Default false. */
|
|
128
|
+
readonly instructions?: boolean;
|
|
103
129
|
}
|
|
104
130
|
export type McpServersConfig = Readonly<Record<string, McpServerSpec>>;
|
|
105
131
|
export interface ConnectedMcpServer {
|
|
@@ -109,11 +135,21 @@ export interface ConnectedMcpServer {
|
|
|
109
135
|
* What this server actually contributes, by tool name.
|
|
110
136
|
*
|
|
111
137
|
* Carried from the listing rather than recovered later. The names arrive
|
|
112
|
-
* prefixed with the server's own (`
|
|
138
|
+
* prefixed with the server's own (`mcp__tickets__create`), so a caller COULD
|
|
113
139
|
* split them back apart — but that turns an encoding this file owns into a
|
|
114
140
|
* format two places have to agree about, and the list is free right here.
|
|
115
141
|
*/
|
|
116
142
|
readonly tools: readonly string[];
|
|
143
|
+
/** The server's current initialize instructions, if it supplied any. */
|
|
144
|
+
readonly instructions?: string;
|
|
145
|
+
/** Names changed since this connection's first listing; changed definitions remain held. */
|
|
146
|
+
readonly drift?: MCPToolDrift;
|
|
147
|
+
/** Current allow/deny refusals, by server-reported name. */
|
|
148
|
+
readonly refused?: readonly {
|
|
149
|
+
kind: 'tools' | 'prompts' | 'resources';
|
|
150
|
+
name: string;
|
|
151
|
+
reason: 'not_allowed' | 'denied';
|
|
152
|
+
}[];
|
|
117
153
|
}
|
|
118
154
|
export interface FailedMcpServer {
|
|
119
155
|
readonly name: string;
|
|
@@ -121,8 +157,13 @@ export interface FailedMcpServer {
|
|
|
121
157
|
readonly reason: string;
|
|
122
158
|
}
|
|
123
159
|
export interface McpConnection {
|
|
124
|
-
/**
|
|
160
|
+
/** Current definitions from every connected server, read from its live toolsets. */
|
|
125
161
|
readonly tools: readonly ToolDefinition[];
|
|
162
|
+
/**
|
|
163
|
+
* Two live entries per connected server: its configured main tools and its
|
|
164
|
+
* always-deferred resource tools. Both carry the `mcp:<server>` source.
|
|
165
|
+
*/
|
|
166
|
+
readonly toolsets: readonly Toolset[];
|
|
126
167
|
/** One coherent live snapshot; use this when successes and failures are shown together. */
|
|
127
168
|
current(): {
|
|
128
169
|
readonly connected: readonly ConnectedMcpServer[];
|
|
@@ -142,6 +183,32 @@ export interface McpConnection {
|
|
|
142
183
|
*/
|
|
143
184
|
close(): Promise<void>;
|
|
144
185
|
}
|
|
186
|
+
/**
|
|
187
|
+
* Expand `${VAR}` references inside `env`/`headers` values against the
|
|
188
|
+
* operator's own environment.
|
|
189
|
+
*
|
|
190
|
+
* Deliberately narrower than the interpolation some other MCP clients'
|
|
191
|
+
* configs use (see docs/cli/mcp-servers.md): bare `${VAR}` only, no
|
|
192
|
+
* `${VAR:-default}` fallback, and only inside `env` and `headers` values —
|
|
193
|
+
* never `command`, `args`, `url` or `cwd`, which have no legitimate secret
|
|
194
|
+
* use case and would only widen the surface for an accidental literal `${`
|
|
195
|
+
* to break. A referenced variable that is unset is refused with a named
|
|
196
|
+
* reason, not silently substituted with an empty string: that is exactly
|
|
197
|
+
* the footgun a `:-default` fallback would reintroduce, and this module's
|
|
198
|
+
* whole design is "every failure is named" rather than a server running
|
|
199
|
+
* quietly with a secret it never got.
|
|
200
|
+
*
|
|
201
|
+
* `inheritEnv` stays the primary idiom for "grant this named variable to
|
|
202
|
+
* the child process under its own name" — this is for the config VALUE
|
|
203
|
+
* itself, letting an operator rename an env var into whatever key or
|
|
204
|
+
* header a server expects, and giving `headers` a secret-safe option it
|
|
205
|
+
* has never had (`inheritEnv` only reaches the stdio child's process env,
|
|
206
|
+
* not header values).
|
|
207
|
+
*
|
|
208
|
+
* Returns the expanded record, or a reason string naming the first unset
|
|
209
|
+
* variable a value referenced.
|
|
210
|
+
*/
|
|
211
|
+
export declare function expandEnvRefsInRecord(record: Readonly<Record<string, string>>, env: NodeJS.ProcessEnv): Readonly<Record<string, string>> | string;
|
|
145
212
|
/**
|
|
146
213
|
* Turn one spec into a transport, or say why it is not one.
|
|
147
214
|
*
|
|
@@ -149,7 +216,7 @@ export interface McpConnection {
|
|
|
149
216
|
* operator who edited one into a file that already had the other, and picking
|
|
150
217
|
* either would run something they did not mean to run.
|
|
151
218
|
*/
|
|
152
|
-
export declare function transportFor(spec: McpServerSpec, defaultCwd: string): MCPTransportUnion | string;
|
|
219
|
+
export declare function transportFor(spec: McpServerSpec, defaultCwd: string, env?: NodeJS.ProcessEnv): MCPTransportUnion | string;
|
|
153
220
|
/**
|
|
154
221
|
* The connect deadline a spec asks for, or why it cannot have it.
|
|
155
222
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"servers.d.ts","sourceRoot":"","sources":["../../../src/integrations/mc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