@namzu/cli 26.2.0 → 27.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 +312 -0
- package/README.md +49 -34
- package/dist/bin.js +7 -0
- package/dist/bin.js.map +1 -1
- package/dist/checkpoints/store.d.ts +17 -4
- package/dist/checkpoints/store.d.ts.map +1 -1
- package/dist/checkpoints/store.js +20 -5
- package/dist/checkpoints/store.js.map +1 -1
- package/dist/cli.js +2 -2
- package/dist/cli.js.map +1 -1
- package/dist/commands/acp.d.ts +23 -1
- package/dist/commands/acp.d.ts.map +1 -1
- package/dist/commands/acp.js +41 -2
- package/dist/commands/acp.js.map +1 -1
- package/dist/commands/drain.d.ts +69 -2
- package/dist/commands/drain.d.ts.map +1 -1
- package/dist/commands/drain.js +214 -134
- package/dist/commands/drain.js.map +1 -1
- package/dist/commands/eval.js +1 -1
- package/dist/commands/eval.js.map +1 -1
- package/dist/commands/provider-wait.d.ts +5 -5
- package/dist/commands/provider-wait.d.ts.map +1 -1
- package/dist/commands/provider-wait.js +2 -2
- package/dist/commands/resident.d.ts.map +1 -1
- package/dist/commands/resident.js +2 -1
- package/dist/commands/resident.js.map +1 -1
- package/dist/commands/run-flags.d.ts +7 -7
- package/dist/commands/run-flags.js +4 -4
- package/dist/commands/run-stream.d.ts +16 -12
- package/dist/commands/run-stream.d.ts.map +1 -1
- package/dist/commands/run-stream.js +142 -98
- package/dist/commands/run-stream.js.map +1 -1
- package/dist/commands/run.d.ts +6 -4
- package/dist/commands/run.d.ts.map +1 -1
- package/dist/commands/run.js +129 -45
- package/dist/commands/run.js.map +1 -1
- package/dist/commands/serve.js +2 -2
- package/dist/commands/serve.js.map +1 -1
- package/dist/commands/state.js +8 -8
- package/dist/commands/state.js.map +1 -1
- package/dist/config/load.d.ts +1 -1
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/load.js +17 -5
- package/dist/config/load.js.map +1 -1
- package/dist/config/run-limits.d.ts +20 -8
- package/dist/config/run-limits.d.ts.map +1 -1
- package/dist/config/run-limits.js +28 -46
- package/dist/config/run-limits.js.map +1 -1
- package/dist/config/schema.d.ts +44 -19
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js.map +1 -1
- package/dist/config/tool-result-screens.js +1 -1
- package/dist/context/directories.d.ts +37 -0
- package/dist/context/directories.d.ts.map +1 -0
- package/dist/context/directories.js +69 -0
- package/dist/context/directories.js.map +1 -0
- package/dist/context/environment.d.ts +55 -0
- package/dist/context/environment.d.ts.map +1 -1
- package/dist/context/environment.js +96 -0
- package/dist/context/environment.js.map +1 -1
- package/dist/context/project-tracker.d.ts +3 -3
- package/dist/context/project-tracker.d.ts.map +1 -1
- package/dist/context/project-tracker.js +3 -3
- package/dist/context/project-tracker.js.map +1 -1
- package/dist/context/project.d.ts +1 -1
- package/dist/context/project.js +1 -1
- package/dist/context/sandbox.d.ts +22 -3
- package/dist/context/sandbox.d.ts.map +1 -1
- package/dist/context/sandbox.js +42 -4
- package/dist/context/sandbox.js.map +1 -1
- package/dist/doctor/checks/chain.d.ts +1 -1
- package/dist/doctor/checks/chain.js +5 -5
- package/dist/doctor/checks/chain.js.map +1 -1
- package/dist/doctor/checks/invariants.d.ts +2 -2
- package/dist/doctor/checks/invariants.js +5 -5
- package/dist/doctor/checks/invariants.js.map +1 -1
- package/dist/doctor/checks/logging.js +1 -1
- package/dist/doctor/checks/logging.js.map +1 -1
- package/dist/doctor/checks/sandbox.js +1 -1
- package/dist/doctor/checks/sandbox.js.map +1 -1
- package/dist/doctor/checks/session-export.d.ts +1 -1
- package/dist/doctor/checks/session-export.js +2 -2
- package/dist/doctor/checks/session-export.js.map +1 -1
- package/dist/doctor/checks/telemetry.d.ts +1 -1
- package/dist/doctor/checks/telemetry.js +1 -1
- package/dist/doctor/registry.js +2 -2
- package/dist/doctor/registry.js.map +1 -1
- package/dist/exit-codes.d.ts +2 -2
- package/dist/exit-codes.js +2 -2
- package/dist/integrations/mcp/servers.d.ts +1 -1
- package/dist/integrations/providers/chain-capabilities.d.ts +6 -6
- package/dist/integrations/providers/chain-capabilities.js +8 -8
- package/dist/integrations/providers/chain-capabilities.js.map +1 -1
- package/dist/integrations/providers/index.d.ts +1 -1
- package/dist/integrations/providers/index.d.ts.map +1 -1
- package/dist/integrations/providers/index.js +1 -1
- package/dist/integrations/providers/index.js.map +1 -1
- package/dist/integrations/providers/register.d.ts +1 -1
- package/dist/integrations/providers/register.js +1 -1
- package/dist/integrations/providers/registry.d.ts +74 -1
- package/dist/integrations/providers/registry.d.ts.map +1 -1
- package/dist/integrations/providers/registry.js +75 -0
- package/dist/integrations/providers/registry.js.map +1 -1
- package/dist/integrations/resident/inspection.d.ts +4 -1
- package/dist/integrations/resident/inspection.d.ts.map +1 -1
- package/dist/integrations/resident/inspection.js +53 -34
- package/dist/integrations/resident/inspection.js.map +1 -1
- package/dist/integrations/resident/learning-storage.d.ts +7 -2
- package/dist/integrations/resident/learning-storage.d.ts.map +1 -1
- package/dist/integrations/resident/learning-storage.js +12 -8
- package/dist/integrations/resident/learning-storage.js.map +1 -1
- package/dist/integrations/resident/runner-store.d.ts +1 -1
- package/dist/integrations/resident/runner-store.d.ts.map +1 -1
- package/dist/integrations/resident/runner-store.js +5 -2
- package/dist/integrations/resident/runner-store.js.map +1 -1
- package/dist/integrations/resident/runner-worker.js +1 -0
- package/dist/integrations/resident/runner-worker.js.map +1 -1
- package/dist/integrations/resident/session-log-reads.d.ts +37 -0
- package/dist/integrations/resident/session-log-reads.d.ts.map +1 -0
- package/dist/integrations/resident/session-log-reads.js +125 -0
- package/dist/integrations/resident/session-log-reads.js.map +1 -0
- package/dist/integrations/resident/session-step.d.ts +2 -0
- package/dist/integrations/resident/session-step.d.ts.map +1 -1
- package/dist/integrations/resident/session-step.js +15 -13
- package/dist/integrations/resident/session-step.js.map +1 -1
- package/dist/integrations/resident/storage.d.ts +23 -1
- package/dist/integrations/resident/storage.d.ts.map +1 -1
- package/dist/integrations/resident/storage.js +60 -17
- package/dist/integrations/resident/storage.js.map +1 -1
- package/dist/integrations/resident/tool-evidence.d.ts +4 -2
- package/dist/integrations/resident/tool-evidence.d.ts.map +1 -1
- package/dist/integrations/resident/tool-evidence.js +36 -30
- package/dist/integrations/resident/tool-evidence.js.map +1 -1
- package/dist/integrations/resident/verification.d.ts +2 -2
- package/dist/integrations/resident/verification.d.ts.map +1 -1
- package/dist/integrations/resident/verification.js +4 -4
- package/dist/integrations/resident/verification.js.map +1 -1
- package/dist/integrations/sessions/checkpoint-view.d.ts +13 -0
- package/dist/integrations/sessions/checkpoint-view.d.ts.map +1 -0
- package/dist/integrations/sessions/checkpoint-view.js +48 -0
- package/dist/integrations/sessions/checkpoint-view.js.map +1 -0
- package/dist/integrations/sessions/context-inventory.js +1 -1
- package/dist/integrations/sessions/context-inventory.js.map +1 -1
- package/dist/integrations/sessions/conversation-search.d.ts +16 -20
- package/dist/integrations/sessions/conversation-search.d.ts.map +1 -1
- package/dist/integrations/sessions/conversation-search.js +305 -731
- package/dist/integrations/sessions/conversation-search.js.map +1 -1
- package/dist/integrations/sessions/evidence-page-validation.d.ts +4 -4
- package/dist/integrations/sessions/evidence-page-validation.d.ts.map +1 -1
- package/dist/integrations/sessions/evidence-page-validation.js +1 -1
- package/dist/integrations/sessions/evidence-page-validation.js.map +1 -1
- package/dist/integrations/sessions/evidence-recall.d.ts +40 -2
- package/dist/integrations/sessions/evidence-recall.d.ts.map +1 -1
- package/dist/integrations/sessions/evidence-recall.js +41 -97
- package/dist/integrations/sessions/evidence-recall.js.map +1 -1
- package/dist/integrations/sessions/store.d.ts +153 -85
- package/dist/integrations/sessions/store.d.ts.map +1 -1
- package/dist/integrations/sessions/store.js +414 -484
- package/dist/integrations/sessions/store.js.map +1 -1
- package/dist/integrations/sessions/task-context.d.ts +15 -2
- package/dist/integrations/sessions/task-context.d.ts.map +1 -1
- package/dist/integrations/sessions/task-context.js +34 -11
- package/dist/integrations/sessions/task-context.js.map +1 -1
- package/dist/integrations/sessions/transcript-export.d.ts +13 -6
- package/dist/integrations/sessions/transcript-export.d.ts.map +1 -1
- package/dist/integrations/sessions/transcript-export.js +148 -263
- package/dist/integrations/sessions/transcript-export.js.map +1 -1
- package/dist/integrations/state/home.d.ts +4 -16
- package/dist/integrations/state/home.d.ts.map +1 -1
- package/dist/integrations/state/home.js +6 -42
- package/dist/integrations/state/home.js.map +1 -1
- package/dist/integrations/state/project.d.ts +6 -7
- package/dist/integrations/state/project.d.ts.map +1 -1
- package/dist/integrations/state/project.js +7 -9
- package/dist/integrations/state/project.js.map +1 -1
- package/dist/integrations/state/report.d.ts +27 -41
- package/dist/integrations/state/report.d.ts.map +1 -1
- package/dist/integrations/state/report.js +172 -464
- package/dist/integrations/state/report.js.map +1 -1
- package/dist/integrations/state/retention.d.ts +18 -0
- package/dist/integrations/state/retention.d.ts.map +1 -0
- package/dist/integrations/state/retention.js +18 -0
- package/dist/integrations/state/retention.js.map +1 -0
- package/dist/integrations/subagents/activity.d.ts +36 -31
- package/dist/integrations/subagents/activity.d.ts.map +1 -1
- package/dist/integrations/subagents/activity.js +27 -23
- package/dist/integrations/subagents/activity.js.map +1 -1
- package/dist/integrations/subagents/batches.d.ts +91 -0
- package/dist/integrations/subagents/batches.d.ts.map +1 -0
- package/dist/integrations/subagents/batches.js +172 -0
- package/dist/integrations/subagents/batches.js.map +1 -0
- package/dist/integrations/subagents/parent.d.ts +26 -11
- package/dist/integrations/subagents/parent.d.ts.map +1 -1
- package/dist/integrations/subagents/parent.js +13 -28
- package/dist/integrations/subagents/parent.js.map +1 -1
- package/dist/integrations/subagents/policy.d.ts +2 -2
- package/dist/integrations/subagents/policy.d.ts.map +1 -1
- package/dist/integrations/subagents/policy.js +2 -2
- package/dist/integrations/subagents/policy.js.map +1 -1
- package/dist/integrations/subagents/replay.d.ts +91 -26
- package/dist/integrations/subagents/replay.d.ts.map +1 -1
- package/dist/integrations/subagents/replay.js +216 -114
- package/dist/integrations/subagents/replay.js.map +1 -1
- package/dist/integrations/subagents/runtime.d.ts +50 -26
- package/dist/integrations/subagents/runtime.d.ts.map +1 -1
- package/dist/integrations/subagents/runtime.js +132 -126
- package/dist/integrations/subagents/runtime.js.map +1 -1
- package/dist/integrations/subagents/saved-agents.d.ts +57 -0
- package/dist/integrations/subagents/saved-agents.d.ts.map +1 -0
- package/dist/integrations/subagents/saved-agents.js +102 -0
- package/dist/integrations/subagents/saved-agents.js.map +1 -0
- package/dist/integrations/subagents/slash.d.ts +55 -0
- package/dist/integrations/subagents/slash.d.ts.map +1 -0
- package/dist/integrations/subagents/slash.js +45 -0
- package/dist/integrations/subagents/slash.js.map +1 -0
- package/dist/integrations/telemetry/session-export.d.ts +6 -6
- package/dist/integrations/telemetry/session-export.d.ts.map +1 -1
- package/dist/integrations/telemetry/session-export.js +2 -2
- package/dist/memory/presentation.d.ts +11 -0
- package/dist/memory/presentation.d.ts.map +1 -1
- package/dist/memory/presentation.js +25 -0
- package/dist/memory/presentation.js.map +1 -1
- package/dist/memory/store.d.ts +13 -7
- package/dist/memory/store.d.ts.map +1 -1
- package/dist/memory/store.js +37 -11
- package/dist/memory/store.js.map +1 -1
- package/dist/memory/typed.d.ts +116 -0
- package/dist/memory/typed.d.ts.map +1 -0
- package/dist/memory/typed.js +336 -0
- package/dist/memory/typed.js.map +1 -0
- package/dist/permissions/checks.d.ts +1 -1
- package/dist/permissions/checks.js +1 -1
- package/dist/permissions/headless-trust.d.ts +2 -2
- package/dist/permissions/headless-trust.d.ts.map +1 -1
- package/dist/permissions/headless-trust.js +3 -3
- package/dist/permissions/headless-trust.js.map +1 -1
- package/dist/permissions/mode.d.ts +4 -4
- package/dist/permissions/mode.js +1 -1
- package/dist/permissions/rules.d.ts +1 -1
- package/dist/permissions/rules.js +1 -1
- package/dist/termination.d.ts +75 -0
- package/dist/termination.d.ts.map +1 -0
- package/dist/termination.js +143 -0
- package/dist/termination.js.map +1 -0
- package/dist/tui/AgentExplorer.d.ts +2 -2
- package/dist/tui/AgentExplorer.js +4 -4
- package/dist/tui/AgentExplorer.js.map +1 -1
- package/dist/tui/App.d.ts +9 -1
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/App.js +458 -304
- package/dist/tui/App.js.map +1 -1
- package/dist/tui/LiveActivity.d.ts +1 -1
- package/dist/tui/LiveActivity.d.ts.map +1 -1
- package/dist/tui/PermissionOverlay.d.ts +8 -0
- package/dist/tui/PermissionOverlay.d.ts.map +1 -1
- package/dist/tui/PermissionOverlay.js +25 -2
- package/dist/tui/PermissionOverlay.js.map +1 -1
- package/dist/tui/Picker.d.ts +14 -1
- package/dist/tui/Picker.d.ts.map +1 -1
- package/dist/tui/Picker.js +598 -132
- package/dist/tui/Picker.js.map +1 -1
- package/dist/tui/agent.d.ts +208 -132
- package/dist/tui/agent.d.ts.map +1 -1
- package/dist/tui/agent.js +523 -313
- package/dist/tui/agent.js.map +1 -1
- package/dist/tui/conversation-evidence-view.js +3 -3
- package/dist/tui/conversation-evidence-view.js.map +1 -1
- package/dist/tui/conversation-history.d.ts +4 -21
- package/dist/tui/conversation-history.d.ts.map +1 -1
- package/dist/tui/conversation-history.js +4 -28
- package/dist/tui/conversation-history.js.map +1 -1
- package/dist/tui/index.d.ts.map +1 -1
- package/dist/tui/index.js +27 -1
- package/dist/tui/index.js.map +1 -1
- package/dist/tui/log-pane.js +1 -1
- package/dist/tui/markdownParser.d.ts +1 -1
- package/dist/tui/markdownParser.js +1 -1
- package/dist/tui/model-choices.d.ts.map +1 -1
- package/dist/tui/model-choices.js +20 -1
- package/dist/tui/model-choices.js.map +1 -1
- package/dist/tui/permission-review.d.ts +16 -0
- package/dist/tui/permission-review.d.ts.map +1 -1
- package/dist/tui/permission-review.js +25 -2
- package/dist/tui/permission-review.js.map +1 -1
- package/dist/tui/provider-list.d.ts +206 -41
- package/dist/tui/provider-list.d.ts.map +1 -1
- package/dist/tui/provider-list.js +248 -52
- package/dist/tui/provider-list.js.map +1 -1
- package/dist/tui/slashCommands.d.ts +29 -40
- package/dist/tui/slashCommands.d.ts.map +1 -1
- package/dist/tui/slashCommands.js +70 -61
- package/dist/tui/slashCommands.js.map +1 -1
- package/dist/tui/terminal-choice-text.d.ts +22 -0
- package/dist/tui/terminal-choice-text.d.ts.map +1 -1
- package/dist/tui/terminal-choice-text.js +81 -0
- package/dist/tui/terminal-choice-text.js.map +1 -1
- package/dist/tui/{run-interruption.d.ts → turn-interruption.d.ts} +4 -4
- package/dist/tui/turn-interruption.d.ts.map +1 -0
- package/dist/tui/{run-interruption.js → turn-interruption.js} +20 -20
- package/dist/tui/turn-interruption.js.map +1 -0
- package/dist/tui/turn-limits-settings.d.ts +39 -0
- package/dist/tui/turn-limits-settings.d.ts.map +1 -0
- package/dist/tui/{run-limits-settings.js → turn-limits-settings.js} +18 -18
- package/dist/tui/turn-limits-settings.js.map +1 -0
- package/dist/tui/types.d.ts +3 -3
- package/dist/tui/types.d.ts.map +1 -1
- package/dist/user-commands/store.d.ts +1 -1
- package/dist/user-commands/store.js +1 -1
- package/package.json +8 -8
- package/dist/integrations/sessions/compaction-evidence.d.ts +0 -5
- package/dist/integrations/sessions/compaction-evidence.d.ts.map +0 -1
- package/dist/integrations/sessions/compaction-evidence.js +0 -59
- package/dist/integrations/sessions/compaction-evidence.js.map +0 -1
- package/dist/integrations/sessions/database.d.ts +0 -5
- package/dist/integrations/sessions/database.d.ts.map +0 -1
- package/dist/integrations/sessions/database.js +0 -34
- package/dist/integrations/sessions/database.js.map +0 -1
- package/dist/integrations/sessions/paths.d.ts +0 -7
- package/dist/integrations/sessions/paths.d.ts.map +0 -1
- package/dist/integrations/sessions/paths.js +0 -14
- package/dist/integrations/sessions/paths.js.map +0 -1
- package/dist/integrations/sessions/run-discovery.d.ts +0 -24
- package/dist/integrations/sessions/run-discovery.d.ts.map +0 -1
- package/dist/integrations/sessions/run-discovery.js +0 -142
- package/dist/integrations/sessions/run-discovery.js.map +0 -1
- package/dist/integrations/sessions/turn-evidence.d.ts +0 -129
- package/dist/integrations/sessions/turn-evidence.d.ts.map +0 -1
- package/dist/integrations/sessions/turn-evidence.js +0 -517
- package/dist/integrations/sessions/turn-evidence.js.map +0 -1
- package/dist/integrations/subagents/history.d.ts +0 -26
- package/dist/integrations/subagents/history.d.ts.map +0 -1
- package/dist/integrations/subagents/history.js +0 -76
- package/dist/integrations/subagents/history.js.map +0 -1
- package/dist/integrations/subagents/runs.d.ts +0 -72
- package/dist/integrations/subagents/runs.d.ts.map +0 -1
- package/dist/integrations/subagents/runs.js +0 -155
- package/dist/integrations/subagents/runs.js.map +0 -1
- package/dist/tui/run-interruption.d.ts.map +0 -1
- package/dist/tui/run-interruption.js.map +0 -1
- package/dist/tui/run-limits-settings.d.ts +0 -39
- package/dist/tui/run-limits-settings.d.ts.map +0 -1
- package/dist/tui/run-limits-settings.js.map +0 -1
|
@@ -48,7 +48,7 @@ export function describeIsolationHealth(environment) {
|
|
|
48
48
|
return {
|
|
49
49
|
status: 'warn',
|
|
50
50
|
message: `${environment} enforces nothing — commands run unconfined`,
|
|
51
|
-
remediation: 'Run the agent inside a container per task (@namzu/sandbox, container tier), or pass requireIsolation so a
|
|
51
|
+
remediation: 'Run the agent inside a container per task (@namzu/sandbox, container tier), or pass requireIsolation so a turn refuses rather than proceeding unconfined.',
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox.js","sourceRoot":"","sources":["../../../src/doctor/checks/sandbox.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE1F;;;;;;;;;;;;;;;;;;GAkBG;AAEH,2EAA2E;AAC3E,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE;IACzB,MAAM,IAAI,GAAG,GAAG,EAAE,GAAE,CAAC,CAAA;IACrB,MAAM,IAAI,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE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Y,OAAO,EAAE;QACjE,WAAW,EACV,kIAAkI;KACnI,CAAA;AACF,CAAC;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAgB;IAChD,EAAE,EAAE,kBAAkB;IACtB,QAAQ,EAAE,SAAS;IACnB,GAAG,EAAE,KAAK,IAAgC,EAAE;QAC3C,IAAI,CAAC;YACJ,OAAO,uBAAuB,CAAC,IAAI,oBAAoB,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,CAAA;QAClF,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,OAAO;gBACN,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,yBAAyB,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;gBAC1F,WAAW,EACV,8HAA8H;aAC/H,CAAA;QACF,CAAC;IACF,CAAC;CACD,CAAA"}
|
|
@@ -6,7 +6,7 @@ import { type TelemetryLoader } from '../../integrations/telemetry/session-expor
|
|
|
6
6
|
*
|
|
7
7
|
* A doctor row rather than only a boot line, because the two answer for
|
|
8
8
|
* different people at different moments: the boot narrative tells whoever
|
|
9
|
-
* started the
|
|
9
|
+
* started the turn, and `namzu doctor` is what somebody runs when they are
|
|
10
10
|
* asked "does this tool send our transcripts off the box" and need an answer
|
|
11
11
|
* they can paste.
|
|
12
12
|
*
|
|
@@ -4,7 +4,7 @@ import { describeSessionExportOff, } from '../../integrations/telemetry/session-
|
|
|
4
4
|
*
|
|
5
5
|
* A doctor row rather than only a boot line, because the two answer for
|
|
6
6
|
* different people at different moments: the boot narrative tells whoever
|
|
7
|
-
* started the
|
|
7
|
+
* started the turn, and `namzu doctor` is what somebody runs when they are
|
|
8
8
|
* asked "does this tool send our transcripts off the box" and need an answer
|
|
9
9
|
* they can paste.
|
|
10
10
|
*
|
|
@@ -41,7 +41,7 @@ export async function describeSessionExportStatus(config, loader) {
|
|
|
41
41
|
const redactorCount = configured.redactors?.length ?? 1;
|
|
42
42
|
const typePhrase = configured.eventTypes
|
|
43
43
|
? `${configured.eventTypes.length} event type(s)`
|
|
44
|
-
: 'every
|
|
44
|
+
: 'every session event';
|
|
45
45
|
return {
|
|
46
46
|
status: 'pass',
|
|
47
47
|
message: `Session export is ON: ${typePhrase} is written to ${configured.destination}, with ${redactorCount} redactor(s) installed.`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-export.js","sourceRoot":"","sources":["../../../src/doctor/checks/session-export.ts"],"names":[],"mappings":"AAGA,OAAO,EAEN,wBAAwB,GACxB,MAAM,gDAAgD,CAAA;AAEvD;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAChD,MAAsB,EACtB,MAAwB;IAExB,MAAM,UAAU,GAAG,MAAM,CAAC,SAAS,EAAE,aAAa,CAAA;IAClD,IAAI,CAAC,UAAU,EAAE,CAAC;QACjB,MAAM,GAAG,GAAG,MAAM,wBAAwB,CAAC,MAAM,CAAC,CAAA;QAClD,OAAO;YACN,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,GAAG,IAAI,mEAAmE;SACnF,CAAA;IACF,CAAC;IAED,uEAAuE;IACvE,yEAAyE;IACzE,mEAAmE;IACnE,mCAAmC;IACnC,MAAM,GAAG,GAAG,MAAM,wBAAwB,CAAC,MAAM,CAAC,CAAA;IAClD,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;QAClB,qEAAqE;QACrE,uEAAuE;QACvE,gEAAgE;QAChE,OAAO;YACN,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,uDAAuD,UAAU,CAAC,WAAW,0EAA0E;YAChK,WAAW,EACV,wLAAwL;SACzL,CAAA;IACF,CAAC;IAED,MAAM,aAAa,GAAG,UAAU,CAAC,SAAS,EAAE,MAAM,IAAI,CAAC,CAAA;IACvD,MAAM,UAAU,GAAG,UAAU,CAAC,UAAU;QACvC,CAAC,CAAC,GAAG,UAAU,CAAC,UAAU,CAAC,MAAM,gBAAgB;QACjD,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"session-export.js","sourceRoot":"","sources":["../../../src/doctor/checks/session-export.ts"],"names":[],"mappings":"AAGA,OAAO,EAEN,wBAAwB,GACxB,MAAM,gDAAgD,CAAA;AAEvD;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAChD,MAAsB,EACtB,MAAwB;IAExB,MAAM,UAAU,GAAG,MAAM,CAAC,SAAS,EAAE,aAAa,CAAA;IAClD,IAAI,CAAC,UAAU,EAAE,CAAC;QACjB,MAAM,GAAG,GAAG,MAAM,wBAAwB,CAAC,MAAM,CAAC,CAAA;QAClD,OAAO;YACN,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,GAAG,IAAI,mEAAmE;SACnF,CAAA;IACF,CAAC;IAED,uEAAuE;IACvE,yEAAyE;IACzE,mEAAmE;IACnE,mCAAmC;IACnC,MAAM,GAAG,GAAG,MAAM,wBAAwB,CAAC,MAAM,CAAC,CAAA;IAClD,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;QAClB,qEAAqE;QACrE,uEAAuE;QACvE,gEAAgE;QAChE,OAAO;YACN,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,uDAAuD,UAAU,CAAC,WAAW,0EAA0E;YAChK,WAAW,EACV,wLAAwL;SACzL,CAAA;IACF,CAAC;IAED,MAAM,aAAa,GAAG,UAAU,CAAC,SAAS,EAAE,MAAM,IAAI,CAAC,CAAA;IACvD,MAAM,UAAU,GAAG,UAAU,CAAC,UAAU;QACvC,CAAC,CAAC,GAAG,UAAU,CAAC,UAAU,CAAC,MAAM,gBAAgB;QACjD,CAAC,CAAC,qBAAqB,CAAA;IACxB,OAAO;QACN,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,yBAAyB,UAAU,kBAAkB,UAAU,CAAC,WAAW,UAAU,aAAa,yBAAyB;QACpI,GAAG,CAAC,aAAa,KAAK,CAAC;YACtB,CAAC,CAAC;gBACA,WAAW,EACV,6KAA6K;aAC9K;YACF,CAAC,CAAC,EAAE,CAAC;KACN,CAAA;AACF,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,MAAsB,EAAE,MAAwB;IAClF,OAAO;QACN,EAAE,EAAE,0BAA0B;QAC9B,QAAQ,EAAE,WAAW;QACrB,GAAG,EAAE,GAA+B,EAAE,CAAC,2BAA2B,CAAC,MAAM,EAAE,MAAM,CAAC;KAClF,CAAA;AACF,CAAC"}
|
|
@@ -4,7 +4,7 @@ import type { DoctorCheck, DoctorCheckResult } from '@namzu/sdk';
|
|
|
4
4
|
*
|
|
5
5
|
* Per ses_004 D1=B, `@namzu/telemetry` is a separate optional package.
|
|
6
6
|
* This check reports whether it is installed; absence is informational
|
|
7
|
-
* (not a failure). Endpoint reachability + dry-
|
|
7
|
+
* (not a failure). Endpoint reachability + dry-turn span export are
|
|
8
8
|
* deferred to a follow-up check that the consumer can register
|
|
9
9
|
* themselves once their telemetry config is known.
|
|
10
10
|
*
|
|
@@ -5,7 +5,7 @@ const TELEMETRY = '@namzu/telemetry';
|
|
|
5
5
|
*
|
|
6
6
|
* Per ses_004 D1=B, `@namzu/telemetry` is a separate optional package.
|
|
7
7
|
* This check reports whether it is installed; absence is informational
|
|
8
|
-
* (not a failure). Endpoint reachability + dry-
|
|
8
|
+
* (not a failure). Endpoint reachability + dry-turn span export are
|
|
9
9
|
* deferred to a follow-up check that the consumer can register
|
|
10
10
|
* themselves once their telemetry config is known.
|
|
11
11
|
*
|
package/dist/doctor/registry.js
CHANGED
|
@@ -49,7 +49,7 @@ export class DoctorRegistry {
|
|
|
49
49
|
if (completed.has(record.id))
|
|
50
50
|
return;
|
|
51
51
|
completed.set(record.id, record);
|
|
52
|
-
// Fire onCheckComplete exactly once per id, isolated from the
|
|
52
|
+
// Fire onCheckComplete exactly once per id, isolated from the turn.
|
|
53
53
|
this.invokeCallback('onCheckComplete', () => opts.onCheckComplete?.(record));
|
|
54
54
|
};
|
|
55
55
|
const inFlight = filteredChecks.map(async (check) => {
|
|
@@ -206,7 +206,7 @@ function buildReport(records, version) {
|
|
|
206
206
|
*
|
|
207
207
|
* - `fail` outranks `inconclusive`. A definite failure is the actionable
|
|
208
208
|
* fact, and `1` does not claim health, so nothing is lost by reporting it
|
|
209
|
-
* even when part of the
|
|
209
|
+
* even when part of the turn is also unknown.
|
|
210
210
|
* - `2` stays above `inconclusive` because an empty run has no checks to be
|
|
211
211
|
* inconclusive about; the two cannot both be true.
|
|
212
212
|
* - `skipped` never moves this off `0`. A skipped check is an ordinary state
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/doctor/registry.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAE5C,MAAM,4BAA4B,GAAG,KAAK,CAAA;AAC1C,MAAM,6BAA6B,GAAG,MAAM,CAAA;AAmC5C,MAAM,OAAO,cAAc;IACT,MAAM,GAA6B,IAAI,GAAG,EAAE,CAAA;IACrD,GAAG,CAAS;IAEpB,SAAS,CAAC,GAAW;QACpB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAA;IACtD,CAAC;IAED,QAAQ,CAAC,KAAkB;QAC1B,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC;YAC/B,MAAM,IAAI,KAAK,CACd,yBAAyB,KAAK,CAAC,EAAE,qEAAqE,CACtG,CAAA;QACF,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAAA;IACjC,CAAC;IAED,UAAU,CAAC,EAAU;QACpB,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;IAC9B,CAAC;IAED,KAAK;QACJ,IAAI,CAAC,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C,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;IACnF,OAAO,MAAM,CAAC,MAAM,CAAC;QACpB,OAAO;QACP,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QACnC,MAAM,EAAE,OAAO;QACf,OAAO;QACP,IAAI;KACJ,CAAC,CAAA;AACH,CAAC;AAED,SAAS,KAAK,CAAC,EAAU;IACxB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,EAAE,CAAC,CAAC,CAAA;AAC7E,CAAC"}
|
package/dist/exit-codes.d.ts
CHANGED
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
* not been trusted, so a headless run refused to
|
|
33
33
|
* start. Its own code because a caller has to be
|
|
34
34
|
* able to tell it from 64 (your arguments are
|
|
35
|
-
* wrong) and from 1 (the
|
|
35
|
+
* wrong) and from 1 (the turn failed): this one is
|
|
36
36
|
* fixed by a human decision about a folder, and
|
|
37
37
|
* nothing else is. A caller who cannot tell them
|
|
38
38
|
* apart matches on the message string, and then
|
|
39
39
|
* the message can never be reworded.
|
|
40
40
|
* 78 EXIT_BAD_CONFIG — sysexits EX_CONFIG; a config source is present
|
|
41
41
|
* and cannot be read or contains a known setting
|
|
42
|
-
* with an invalid value, so the
|
|
42
|
+
* with an invalid value, so the turn refuses rather
|
|
43
43
|
* than silently substituting another setting.
|
|
44
44
|
* Distinct from 2 for
|
|
45
45
|
* the reason 2 is distinct from 0: "namzu is not
|
package/dist/exit-codes.js
CHANGED
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
* not been trusted, so a headless run refused to
|
|
33
33
|
* start. Its own code because a caller has to be
|
|
34
34
|
* able to tell it from 64 (your arguments are
|
|
35
|
-
* wrong) and from 1 (the
|
|
35
|
+
* wrong) and from 1 (the turn failed): this one is
|
|
36
36
|
* fixed by a human decision about a folder, and
|
|
37
37
|
* nothing else is. A caller who cannot tell them
|
|
38
38
|
* apart matches on the message string, and then
|
|
39
39
|
* the message can never be reworded.
|
|
40
40
|
* 78 EXIT_BAD_CONFIG — sysexits EX_CONFIG; a config source is present
|
|
41
41
|
* and cannot be read or contains a known setting
|
|
42
|
-
* with an invalid value, so the
|
|
42
|
+
* with an invalid value, so the turn refuses rather
|
|
43
43
|
* than silently substituting another setting.
|
|
44
44
|
* Distinct from 2 for
|
|
45
45
|
* the reason 2 is distinct from 0: "namzu is not
|
|
@@ -95,7 +95,7 @@ export interface McpServerSpec {
|
|
|
95
95
|
* legacy — because either answer settles it immediately. It costs THIS
|
|
96
96
|
* long against a legacy server old enough to stay silent on a method it
|
|
97
97
|
* has never heard of, once per origin or per resolved command, not once
|
|
98
|
-
* per
|
|
98
|
+
* per turn. Lower it for a stdio server known to be that old and slow to
|
|
99
99
|
* connect, so the probe gives up sooner and leaves more of
|
|
100
100
|
* `connectTimeoutMs` for the handshake that will actually answer.
|
|
101
101
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do the members of a provider chain agree about what they can do?
|
|
3
3
|
*
|
|
4
|
-
* The runtime negotiates capabilities ONCE per
|
|
4
|
+
* The runtime negotiates capabilities ONCE per turn, against the provider it was
|
|
5
5
|
* handed, and that answer decides whether tool surfaces go into the prompt and
|
|
6
6
|
* whether image and document attachments are mapped. A chain whose members
|
|
7
7
|
* disagree therefore cannot be honoured by taking the strongest answer: if the
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* chain. That is worse, and worse in the direction that matters. An operator who
|
|
14
14
|
* adds a weaker fallback to gain resilience would find their PRIMARY had quietly
|
|
15
15
|
* lost tool support, permanently, with nothing saying so — a capability given up
|
|
16
|
-
* on every
|
|
16
|
+
* on every turn to guard against a failure that happens rarely. So a disagreement
|
|
17
17
|
* is refused and named, and an operator who wants the intersection anyway says
|
|
18
18
|
* so explicitly.
|
|
19
19
|
*
|
|
@@ -28,18 +28,18 @@
|
|
|
28
28
|
* provider IS. A check that overstates its authority is how someone later finds
|
|
29
29
|
* the runtime disagreed with it and stops believing it.
|
|
30
30
|
*
|
|
31
|
-
* ## And it is a property of the CHAIN, not of a
|
|
31
|
+
* ## And it is a property of the CHAIN, not of a turn
|
|
32
32
|
*
|
|
33
33
|
* Every sentence here says what becomes unavailable IF the chain falls over,
|
|
34
|
-
* and that stays the right tense now that it does. A
|
|
34
|
+
* and that stays the right tense now that it does. A turn negotiates
|
|
35
35
|
* capabilities once, against the primary, and keeps that answer across a swap —
|
|
36
36
|
* so at the moment this check runs, no degradation has happened and claiming
|
|
37
37
|
* one would be a confident statement about a turn that may never come.
|
|
38
38
|
*
|
|
39
39
|
* The conditional is also what makes the refusal worth having. Because the
|
|
40
40
|
* negotiated answer does NOT follow the swap, a chain that disagrees would put
|
|
41
|
-
* a
|
|
42
|
-
* here, before a
|
|
41
|
+
* a turn on a member holding a request shaped for someone else. Catching that
|
|
42
|
+
* here, before a turn starts, is cheaper than discovering it during one.
|
|
43
43
|
*/
|
|
44
44
|
import type { ResolvedProviderCapabilities } from '@namzu/sdk';
|
|
45
45
|
import { type ProviderChoice } from './preferences.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do the members of a provider chain agree about what they can do?
|
|
3
3
|
*
|
|
4
|
-
* The runtime negotiates capabilities ONCE per
|
|
4
|
+
* The runtime negotiates capabilities ONCE per turn, against the provider it was
|
|
5
5
|
* handed, and that answer decides whether tool surfaces go into the prompt and
|
|
6
6
|
* whether image and document attachments are mapped. A chain whose members
|
|
7
7
|
* disagree therefore cannot be honoured by taking the strongest answer: if the
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* chain. That is worse, and worse in the direction that matters. An operator who
|
|
14
14
|
* adds a weaker fallback to gain resilience would find their PRIMARY had quietly
|
|
15
15
|
* lost tool support, permanently, with nothing saying so — a capability given up
|
|
16
|
-
* on every
|
|
16
|
+
* on every turn to guard against a failure that happens rarely. So a disagreement
|
|
17
17
|
* is refused and named, and an operator who wants the intersection anyway says
|
|
18
18
|
* so explicitly.
|
|
19
19
|
*
|
|
@@ -28,18 +28,18 @@
|
|
|
28
28
|
* provider IS. A check that overstates its authority is how someone later finds
|
|
29
29
|
* the runtime disagreed with it and stops believing it.
|
|
30
30
|
*
|
|
31
|
-
* ## And it is a property of the CHAIN, not of a
|
|
31
|
+
* ## And it is a property of the CHAIN, not of a turn
|
|
32
32
|
*
|
|
33
33
|
* Every sentence here says what becomes unavailable IF the chain falls over,
|
|
34
|
-
* and that stays the right tense now that it does. A
|
|
34
|
+
* and that stays the right tense now that it does. A turn negotiates
|
|
35
35
|
* capabilities once, against the primary, and keeps that answer across a swap —
|
|
36
36
|
* so at the moment this check runs, no degradation has happened and claiming
|
|
37
37
|
* one would be a confident statement about a turn that may never come.
|
|
38
38
|
*
|
|
39
39
|
* The conditional is also what makes the refusal worth having. Because the
|
|
40
40
|
* negotiated answer does NOT follow the swap, a chain that disagrees would put
|
|
41
|
-
* a
|
|
42
|
-
* here, before a
|
|
41
|
+
* a turn on a member holding a request shaped for someone else. Catching that
|
|
42
|
+
* here, before a turn starts, is cheaper than discovering it during one.
|
|
43
43
|
*/
|
|
44
44
|
import { chainPositionName } from './preferences.js';
|
|
45
45
|
import { PROVIDER_REGISTRY } from './registry.js';
|
|
@@ -126,7 +126,7 @@ export function chainCapabilityDisagreements(members, resolved) {
|
|
|
126
126
|
return out;
|
|
127
127
|
}
|
|
128
128
|
/**
|
|
129
|
-
* A smaller output ceiling is the same problem wearing a number: a
|
|
129
|
+
* A smaller output ceiling is the same problem wearing a number: a turn served by
|
|
130
130
|
* that member produces shorter replies than the chain was configured for.
|
|
131
131
|
* Reported against the LARGEST declared ceiling, for the reason the booleans are
|
|
132
132
|
* reported against the first member that has the capability.
|
|
@@ -195,7 +195,7 @@ export function describeCapabilityRefusal(disagreements) {
|
|
|
195
195
|
'The providers in your chain declare different capabilities, so namzu cannot honour the chain as written:',
|
|
196
196
|
...disagreements.map((d) => ` - ${d.sentence}`),
|
|
197
197
|
'',
|
|
198
|
-
'Taking the strongest answer would advertise abilities a fallback does not have. Taking the weakest would cost your primary a capability on every
|
|
198
|
+
'Taking the strongest answer would advertise abilities a fallback does not have. Taking the weakest would cost your primary a capability on every turn, to guard against a failure that happens rarely. Neither is chosen for you.',
|
|
199
199
|
'Either drop the member that disagrees, or set "allowCapabilityMismatch": true in ~/.namzu/preferences.json to accept the limitation — it is printed on every launch.',
|
|
200
200
|
].join('\n');
|
|
201
201
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chain-capabilities.js","sourceRoot":"","sources":["../../../src/integrations/providers/chain-capabilities.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAIH,OAAO,EAAuB,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAgBjD;;;;;;;GAOG;AACH,MAAM,oBAAoB,GAUrB;IACJ;QACC,GAAG,EAAE,eAAe;QACpB,GAAG,EAAE,mBAAmB;QACxB,KAAK,EAAE,sBAAsB;QAC7B,WAAW,EAAE,0BAA0B;KACvC;IACD;QACC,GAAG,EAAE,yBAAyB;QAC9B,GAAG,EAAE,8BAA8B;QACnC,KAAK,EAAE,sCAAsC;QAC7C,WAAW,EAAE,sCAAsC;KACnD;IACD;QACC,GAAG,EAAE,mBAAmB;QACxB,GAAG,EAAE,uBAAuB;QAC5B,KAAK,EAAE,0BAA0B;QACjC,WAAW,EAAE,wBAAwB;KACrC;IACD;QACC,GAAG,EAAE,gBAAgB;QACrB,GAAG,EAAE,+BAA+B;QACpC,KAAK,EAAE,kCAAkC;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AACX,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,yBAAyB,CACxC,aAAgD;IAEhD,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAA;IAC3C,OAAO;QACN,0GAA0G;QAC1G,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC;QAChD,EAAE;QACF,
|
|
1
|
+
{"version":3,"file":"chain-capabilities.js","sourceRoot":"","sources":["../../../src/integrations/providers/chain-capabilities.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAIH,OAAO,EAAuB,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAgBjD;;;;;;;GAOG;AACH,MAAM,oBAAoB,GAUrB;IACJ;QACC,GAAG,EAAE,eAAe;QACpB,GAAG,EAAE,mBAAmB;QACxB,KAAK,EAAE,sBAAsB;QAC7B,WAAW,EAAE,0BAA0B;KACvC;IACD;QACC,GAAG,EAAE,yBAAyB;QAC9B,GAAG,EAAE,8BAA8B;QACnC,KAAK,EAAE,sCAAsC;QAC7C,WAAW,EAAE,sCAAsC;KACnD;IACD;QACC,GAAG,EAAE,mBAAmB;QACxB,GAAG,EAAE,uBAAuB;QAC5B,KAAK,EAAE,0BAA0B;QACjC,WAAW,EAAE,wBAAwB;KACrC;IACD;QACC,GAAG,EAAE,gBAAgB;QACrB,GAAG,EAAE,+BAA+B;QACpC,KAAK,EAAE,kCAAkC;QACzC,WAAW,EAAE,mCAAmC;KAChD;IACD;QACC,GAAG,EAAE,mBAAmB;QACxB,GAAG,EAAE,kCAAkC;QACvC,KAAK,EAAE,qCAAqC;QAC5C,WAAW,EAAE,sCAAsC;KACnD;CACD,CAAA;AAED,SAAS,QAAQ,CAAC,KAAa,EAAE,MAAsB;IACt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C,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC;QAChD,EAAE;QACF,mOAAmO;QACnO,sKAAsK;KACtK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACb,CAAC;AAED,oFAAoF;AACpF,MAAM,UAAU,wBAAwB,CACvC,aAAgD;IAEhD,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAA;IAC3C,OAAO;QACN,yFAAyF;QACzF,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC;KAChD,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACb,CAAC"}
|
|
@@ -9,6 +9,6 @@ export { CredentialPublicationError, CredentialRefreshRejectedError, CredentialW
|
|
|
9
9
|
export { beginSubscriptionLogin, type LoginOutcome, parsePastedInput, type SubscriptionLogin, type SubscriptionLoginOptions, subscriptionDetectedProvider, } from './subscription-login.js';
|
|
10
10
|
export { type CapabilityDisagreement, chainCapabilityDisagreements, describeAcceptedMismatch, describeCapabilityRefusal, type MemberCapabilities, unresolvedMembers, } from './chain-capabilities.js';
|
|
11
11
|
export { chainPositionName, type Preferences, PREFERENCES_FILE_VERSION, PreferencesError, preferencesPath, primaryProvider, type ProviderChoice, type ReadResult, readPreferences, writePreferences, } from './preferences.js';
|
|
12
|
-
export { ALL_PROVIDER_IDS, missingCredentialMessage, PROVIDER_REGISTRY, type ProviderId, type ProviderRegistryEntry, type SubscriptionProviderId, type SdkProviderType, unsupportedProviderMessage, } from './registry.js';
|
|
12
|
+
export { ALL_PROVIDER_IDS, missingCredentialMessage, PROVIDER_REGISTRY, providerEntriesOfVendor, type ProviderId, type ProviderRegistryEntry, type SubscriptionProviderId, type SdkProviderType, unsupportedProviderMessage, VENDOR_NAMES, type VendorId, } from './registry.js';
|
|
13
13
|
export { ensureRegistered, isRegistered, resolveChainCapabilities, } from './register.js';
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/providers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,iBAAiB,EACjB,YAAY,EACZ,6BAA6B,GAC7B,MAAM,eAAe,CAAA;AACtB,OAAO,EACN,KAAK,oBAAoB,EACzB,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,GACvB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACN,KAAK,oBAAoB,EACzB,qBAAqB,EACrB,2BAA2B,GAC3B,MAAM,eAAe,CAAA;AACtB,OAAO,EACN,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC5B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACN,yBAAyB,EACzB,iCAAiC,EACjC,0BAA0B,EAC1B,wBAAwB,EACxB,oBAAoB,EACpB,eAAe,EACf,gCAAgC,EAChC,yBAAyB,EACzB,4BAA4B,EAC5B,KAAK,qBAAqB,EAC1B,iCAAiC,EACjC,0BAA0B,GAC1B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACN,gCAAgC,EAChC,KAAK,yBAAyB,GAC9B,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO,EACN,0BAA0B,EAC1B,8BAA8B,EAC9B,wBAAwB,EACxB,KAAK,gBAAgB,EACrB,yBAAyB,EACzB,KAAK,aAAa,EAClB,0BAA0B,EAC1B,sBAAsB,EACtB,mBAAmB,GACnB,MAAM,YAAY,CAAA;AACnB,OAAO,EACN,sBAAsB,EACtB,KAAK,YAAY,EACjB,gBAAgB,EAChB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,4BAA4B,GAC5B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACN,KAAK,sBAAsB,EAC3B,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EACzB,KAAK,kBAAkB,EACvB,iBAAiB,GACjB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACN,iBAAiB,EACjB,KAAK,WAAW,EAChB,wBAAwB,EACxB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,eAAe,EACf,gBAAgB,GAChB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACN,gBAAgB,EAChB,wBAAwB,EACxB,iBAAiB,EACjB,KAAK,UAAU,EACf,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,0BAA0B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/providers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,iBAAiB,EACjB,YAAY,EACZ,6BAA6B,GAC7B,MAAM,eAAe,CAAA;AACtB,OAAO,EACN,KAAK,oBAAoB,EACzB,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,GACvB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACN,KAAK,oBAAoB,EACzB,qBAAqB,EACrB,2BAA2B,GAC3B,MAAM,eAAe,CAAA;AACtB,OAAO,EACN,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC5B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACN,yBAAyB,EACzB,iCAAiC,EACjC,0BAA0B,EAC1B,wBAAwB,EACxB,oBAAoB,EACpB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ublicationError, CredentialRefreshRejectedError, CredentialW
|
|
|
9
9
|
export { beginSubscriptionLogin, parsePastedInput, subscriptionDetectedProvider, } from './subscription-login.js';
|
|
10
10
|
export { chainCapabilityDisagreements, describeAcceptedMismatch, describeCapabilityRefusal, unresolvedMembers, } from './chain-capabilities.js';
|
|
11
11
|
export { chainPositionName, PREFERENCES_FILE_VERSION, PreferencesError, preferencesPath, primaryProvider, readPreferences, writePreferences, } from './preferences.js';
|
|
12
|
-
export { ALL_PROVIDER_IDS, missingCredentialMessage, PROVIDER_REGISTRY, unsupportedProviderMessage, } from './registry.js';
|
|
12
|
+
export { ALL_PROVIDER_IDS, missingCredentialMessage, PROVIDER_REGISTRY, providerEntriesOfVendor, unsupportedProviderMessage, VENDOR_NAMES, } from './registry.js';
|
|
13
13
|
export { ensureRegistered, isRegistered, resolveChainCapabilities, } from './register.js';
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/integrations/providers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAIN,iBAAiB,EACjB,YAAY,EACZ,6BAA6B,GAC7B,MAAM,eAAe,CAAA;AACtB,OAAO,EAEN,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,GACvB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAEN,qBAAqB,EACrB,2BAA2B,GAC3B,MAAM,eAAe,CAAA;AACtB,OAAO,EACN,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,GAIrB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACN,yBAAyB,EACzB,iCAAiC,EACjC,0BAA0B,EAC1B,wBAAwB,EACxB,oBAAoB,EACpB,eAAe,EACf,gCAAgC,EAChC,yBAAyB,EACzB,4BAA4B,EAE5B,iCAAiC,EACjC,0BAA0B,GAC1B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACN,gCAAgC,GAEhC,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO,EACN,0BAA0B,EAC1B,8BAA8B,EAC9B,wBAAwB,EAExB,yBAAyB,EAEzB,0BAA0B,EAC1B,sBAAsB,EACtB,mBAAmB,GACnB,MAAM,YAAY,CAAA;AACnB,OAAO,EACN,sBAAsB,EAEtB,gBAAgB,EAGhB,4BAA4B,GAC5B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAEN,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EAEzB,iBAAiB,GACjB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACN,iBAAiB,EAEjB,wBAAwB,EACxB,gBAAgB,EAChB,eAAe,EACf,eAAe,EAGf,eAAe,EACf,gBAAgB,GAChB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACN,gBAAgB,EAChB,wBAAwB,EACxB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/integrations/providers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAIN,iBAAiB,EACjB,YAAY,EACZ,6BAA6B,GAC7B,MAAM,eAAe,CAAA;AACtB,OAAO,EAEN,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,GACvB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAEN,qBAAqB,EACrB,2BAA2B,GAC3B,MAAM,eAAe,CAAA;AACtB,OAAO,EACN,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,GAIrB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACN,yBAAyB,EACzB,iCAAiC,EACjC,0BAA0B,EAC1B,wBAAwB,EACxB,oBAAoB,EACpB,eAAe,EACf,gCAAgC,EAChC,yBAAyB,EACzB,4BAA4B,EAE5B,iCAAiC,EACjC,0BAA0B,GAC1B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACN,gCAAgC,GAEhC,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO,EACN,0BAA0B,EAC1B,8BAA8B,EAC9B,wBAAwB,EAExB,yBAAyB,EAEzB,0BAA0B,EAC1B,sBAAsB,EACtB,mBAAmB,GACnB,MAAM,YAAY,CAAA;AACnB,OAAO,EACN,sBAAsB,EAEtB,gBAAgB,EAGhB,4BAA4B,GAC5B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAEN,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EAEzB,iBAAiB,GACjB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACN,iBAAiB,EAEjB,wBAAwB,EACxB,gBAAgB,EAChB,eAAe,EACf,eAAe,EAGf,eAAe,EACf,gBAAgB,GAChB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACN,gBAAgB,EAChB,wBAAwB,EACxB,iBAAiB,EACjB,uBAAuB,EAKvB,0BAA0B,EAC1B,YAAY,GAEZ,MAAM,eAAe,CAAA;AACtB,OAAO,EACN,gBAAgB,EAChB,YAAY,EACZ,wBAAwB,GACxB,MAAM,eAAe,CAAA"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* This is the only place the wired driver packages are imported, so it decides
|
|
5
5
|
* what a `namzu` invocation actually pulls in and when. The imports are dynamic
|
|
6
|
-
* for that reason: a
|
|
6
|
+
* for that reason: a turn on one provider does not load the other drivers, and a
|
|
7
7
|
* command that never touches a model loads none.
|
|
8
8
|
*
|
|
9
9
|
* ## Why it lives here rather than in the session module
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* This is the only place the wired driver packages are imported, so it decides
|
|
5
5
|
* what a `namzu` invocation actually pulls in and when. The imports are dynamic
|
|
6
|
-
* for that reason: a
|
|
6
|
+
* for that reason: a turn on one provider does not load the other drivers, and a
|
|
7
7
|
* command that never touches a model loads none.
|
|
8
8
|
*
|
|
9
9
|
* ## Why it lives here rather than in the session module
|
|
@@ -9,9 +9,72 @@ export type ProviderId = 'anthropic' | 'codex' | 'google' | 'openai' | 'openrout
|
|
|
9
9
|
/** SDK type passed to `ProviderRegistry.create({type, ...})`. */
|
|
10
10
|
export type SdkProviderType = ProviderId;
|
|
11
11
|
export type SubscriptionProviderId = 'anthropic' | 'codex';
|
|
12
|
+
/**
|
|
13
|
+
* What each vendor's row in the provider picker is called, keyed by the vendor
|
|
14
|
+
* an entry names.
|
|
15
|
+
*
|
|
16
|
+
* A vendor's name is written ONCE here rather than on every entry belonging to
|
|
17
|
+
* it. Two entries carrying the same string are two entries that can disagree,
|
|
18
|
+
* and which name a reader sees would then depend on which one a lookup reached
|
|
19
|
+
* first. `VendorId` is derived from these keys, so a `vendor` field naming a
|
|
20
|
+
* vendor that is not named here does not compile, and adding a vendor here is
|
|
21
|
+
* adding one the type system knows about in the same edit.
|
|
22
|
+
*
|
|
23
|
+
* ## What is one vendor, and what only looks like one
|
|
24
|
+
*
|
|
25
|
+
* `openai` and `codex` are one vendor. They are one product reached two ways —
|
|
26
|
+
* a subscription sign-in, or an API key — which is the shape `anthropic` has
|
|
27
|
+
* always had in this registry: one id taking an API key, a token variable, or a
|
|
28
|
+
* signed-in session. Two rows for it said the same vendor's name twice, and the
|
|
29
|
+
* one holding the key had to work out which of the two rows was theirs.
|
|
30
|
+
*
|
|
31
|
+
* `zen` and `zen-go` are NOT merged, and the reason is the rule above rather
|
|
32
|
+
* than a preference. They are one company's two services: separate catalogues,
|
|
33
|
+
* separate billing routes, and disjoint keys — a key for one is not a way in to
|
|
34
|
+
* the other. Merging them would put a product decision (which catalogue to run
|
|
35
|
+
* on) inside a chooser whose title is about how to authenticate, and would hide
|
|
36
|
+
* the one word — `Go` — that tells an operator they are choosing between two
|
|
37
|
+
* priced things. `ollama` and `lmstudio` are two different local servers and
|
|
38
|
+
* stay two rows for the same reason.
|
|
39
|
+
*
|
|
40
|
+
* A vendor with one member is a vendor too, and says so here: the field is
|
|
41
|
+
* required on every entry so that no provider can fall outside the grouping by
|
|
42
|
+
* omission.
|
|
43
|
+
*/
|
|
44
|
+
export declare const VENDOR_NAMES: Readonly<{
|
|
45
|
+
readonly anthropic: "Anthropic (Claude)";
|
|
46
|
+
readonly openai: "OpenAI";
|
|
47
|
+
readonly google: "Google (Gemini)";
|
|
48
|
+
readonly deepseek: "DeepSeek";
|
|
49
|
+
readonly openrouter: "OpenRouter";
|
|
50
|
+
readonly zen: "Zen";
|
|
51
|
+
readonly 'zen-go': "Zen Go";
|
|
52
|
+
readonly ollama: "Ollama (local)";
|
|
53
|
+
readonly lmstudio: "LM Studio (local)";
|
|
54
|
+
readonly bedrock: "AWS Bedrock";
|
|
55
|
+
readonly http: "Custom HTTP (OpenAI-compatible)";
|
|
56
|
+
}>;
|
|
57
|
+
/** The vendor a registry entry belongs to. Derived from `VENDOR_NAMES`. */
|
|
58
|
+
export type VendorId = keyof typeof VENDOR_NAMES;
|
|
12
59
|
export interface ProviderRegistryEntry {
|
|
13
60
|
readonly id: ProviderId;
|
|
14
61
|
readonly label: string;
|
|
62
|
+
/**
|
|
63
|
+
* The vendor whose picker row this entry belongs to.
|
|
64
|
+
*
|
|
65
|
+
* One row per vendor, not one per id: `codex` and `openai` are two ways to
|
|
66
|
+
* authenticate one product, and drawing them as two rows named the same
|
|
67
|
+
* vendor twice — a subscription session on one line and the API key it
|
|
68
|
+
* wanted on the next.
|
|
69
|
+
*
|
|
70
|
+
* A field rather than a table beside the picker, because which ids are one
|
|
71
|
+
* vendor is a fact ABOUT THE PROVIDERS. The picker is only the first surface
|
|
72
|
+
* to need it: the doctor, the chain validator and anything else that will
|
|
73
|
+
* ever group providers reads this registry, and a table in the screen would
|
|
74
|
+
* be a second list of providers — the thing `ALL_PROVIDER_IDS` is derived to
|
|
75
|
+
* avoid. See `VENDOR_NAMES` for which ids are one vendor and why.
|
|
76
|
+
*/
|
|
77
|
+
readonly vendor: VendorId;
|
|
15
78
|
/** Env vars searched in order for an API key. First non-empty wins. */
|
|
16
79
|
readonly envVars: readonly string[];
|
|
17
80
|
/** Default base URL if the provider has one (else SDK default). */
|
|
@@ -25,7 +88,7 @@ export interface ProviderRegistryEntry {
|
|
|
25
88
|
* Default model when the user does not pick one in the picker.
|
|
26
89
|
*
|
|
27
90
|
* **These are namzu's picks, not the provider's, and they go stale.** A
|
|
28
|
-
* hardcoded default fails silently: nothing errors, the
|
|
91
|
+
* hardcoded default fails silently: nothing errors, the turn just happens on
|
|
29
92
|
* an older model than the operator assumes, and only a reader who already
|
|
30
93
|
* knows the current generation would notice. One sat two generations behind
|
|
31
94
|
* for exactly that reason.
|
|
@@ -86,6 +149,16 @@ export declare const PROVIDER_REGISTRY: Readonly<Record<ProviderId, ProviderRegi
|
|
|
86
149
|
* omission.
|
|
87
150
|
*/
|
|
88
151
|
export declare const ALL_PROVIDER_IDS: readonly ProviderId[];
|
|
152
|
+
/**
|
|
153
|
+
* The entries one vendor is made of, in registry order.
|
|
154
|
+
*
|
|
155
|
+
* Derived by filtering `ALL_PROVIDER_IDS`, never listed: a vendor's members are
|
|
156
|
+
* whatever says `vendor: <id>`, so an entry added to a vendor is a member of it
|
|
157
|
+
* with no second edit. Registry order and not a preferred order — a caller that
|
|
158
|
+
* needs "the first one that takes a typed credential" is asking a question
|
|
159
|
+
* about the registry, and the registry answers it in the order it is written.
|
|
160
|
+
*/
|
|
161
|
+
export declare function providerEntriesOfVendor(vendor: VendorId): readonly ProviderRegistryEntry[];
|
|
89
162
|
/**
|
|
90
163
|
* The one sentence every refusal of an unbuildable provider uses.
|
|
91
164
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/integrations/providers/registry.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,MAAM,UAAU,GACnB,WAAW,GACX,OAAO,GACP,QAAQ,GACR,QAA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