@wrongstack/cli 0.313.1 → 0.316.2
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/dist/{acp-LQMSMV32.js → acp-CEQINXWB.js} +2 -2
- package/dist/acp-registry-cache.d.ts +0 -2
- package/dist/acp-server-agent.d.ts +2 -1
- package/dist/arg-parser.d.ts +2 -1
- package/dist/{auth-VQMSZGKE.js → auth-GZ5A5OF5.js} +3 -3
- package/dist/auth-menu/local.d.ts +3 -2
- package/dist/boot/boot-auto-thin.d.ts +44 -0
- package/dist/boot/brain-decision-log.d.ts +2 -1
- package/dist/boot/config-backup-recovery.d.ts +2 -6
- package/dist/boot/dispatch-singleshot.d.ts +2 -1
- package/dist/boot/dispatch-webui.d.ts +5 -1
- package/dist/boot/event-wiring.d.ts +1 -1
- package/dist/boot/execution-mode.d.ts +2 -1
- package/dist/boot/governance-shadow-bridge.d.ts +4 -3
- package/dist/boot/governance-trace-context.d.ts +4 -4
- package/dist/boot/launch-menu.d.ts +2 -2
- package/dist/boot/system-prompt-builder.d.ts +1 -1
- package/dist/boot/system-prompt-menu.d.ts +10 -58
- package/dist/boot/system-prompt.d.ts +3 -3
- package/dist/boot/tool-registry.d.ts +3 -1
- package/dist/boot/tui-coordinator-callbacks.d.ts +2 -1
- package/dist/boot/tui-coordinator-setup.d.ts +3 -2
- package/dist/boot/tui-goal-wiring.d.ts +2 -1
- package/dist/boot/tui-live-sessions.d.ts +3 -1
- package/dist/boot/tui-session-resume.d.ts +82 -10
- package/dist/boot/tui-session-stub-enrich.d.ts +7 -1
- package/dist/boot/tui-settings-adapter.d.ts +3 -2
- package/dist/boot/tui-theme-adapter.d.ts +3 -2
- package/dist/boot/webui-session-child.d.ts +2 -12
- package/dist/boot-auto-thin-BZ675EVT.js +102 -0
- package/dist/boot-config.d.ts +1 -1
- package/dist/brain-menu/panel-service.d.ts +2 -1
- package/dist/chimera-cascade-evidence.d.ts +4 -21
- package/dist/chimera-review-task.d.ts +0 -7
- package/dist/chimera-subagent-ladder.d.ts +2 -2
- package/dist/{chunk-USYOJIV2.js → chunk-32MTOI2I.js} +2 -2
- package/dist/{chunk-CNQZ4HG4.js → chunk-37SPPLUD.js} +57 -8
- package/dist/chunk-ALE5KHCA.js +1 -0
- package/dist/{chunk-GWVLRUVH.js → chunk-G3IMKQRH.js} +25 -6
- package/dist/{chunk-BZJ4MP32.js → chunk-GKHUHAIK.js} +8 -3
- package/dist/{chunk-3JPTNADJ.js → chunk-GPPRNAKW.js} +1 -1
- package/dist/{chunk-KE7E7DPX.js → chunk-HXJYHAR4.js} +1 -1
- package/dist/{chunk-X3N5TS2S.js → chunk-JACOMTIH.js} +2 -76
- package/dist/{chunk-DGXNL7OT.js → chunk-JHUJUIOH.js} +1 -18
- package/dist/{chunk-WOTGMHAH.js → chunk-KG4X5F7Z.js} +1 -1
- package/dist/{chunk-NUIHRGPY.js → chunk-NV3JDK4F.js} +1 -1
- package/dist/{chunk-E3X4KM7T.js → chunk-NZZOYLQ7.js} +5 -10
- package/dist/{chunk-H6C7SO5H.js → chunk-QC5I4VWZ.js} +1 -1
- package/dist/chunk-SXJTVNWF.js +78 -0
- package/dist/{chunk-AOAIPYFB.js → chunk-SYIBTG3X.js} +2 -2
- package/dist/{chunk-PKHGLWUJ.js → chunk-T642Q732.js} +5 -4
- package/dist/{chunk-BGFM3PD7.js → chunk-UZ2TMHNH.js} +1 -1
- package/dist/{chunk-4S52MIIM.js → chunk-VXCCBI2W.js} +2 -2
- package/dist/{chunk-FKWHSFX4.js → chunk-XYKYXFEE.js} +1 -1
- package/dist/cli-entry-point.d.ts +9 -0
- package/dist/cli-eternal-flag.d.ts +1 -1
- package/dist/{cli-main-UOQ2ICUO.js → cli-main-IEAM6SK7.js} +3578 -1626
- package/dist/cli-main-helpers.d.ts +3 -3
- package/dist/config-doctor.d.ts +34 -3
- package/dist/context-limit.d.ts +4 -3
- package/dist/{diag-doctor-OPTB2NWY.js → diag-doctor-LFCCBPMD.js} +3 -3
- package/dist/execute-deps.d.ts +36 -7
- package/dist/{execution-L4CXQEND.js → execution-TZUGCKFU.js} +459 -77
- package/dist/execution-chimera-cascade.d.ts +1 -1
- package/dist/execution-chimera-review.d.ts +1 -1
- package/dist/execution-cleanup.d.ts +2 -1
- package/dist/execution-kanban-dispatch.d.ts +2 -1
- package/dist/execution-repl-fleet-callbacks.d.ts +3 -2
- package/dist/fleet/budget-source.d.ts +2 -1
- package/dist/fleet/host-context.d.ts +8 -1
- package/dist/fleet/host-director-event-bridges.d.ts +28 -3
- package/dist/fleet/host-event-bridge.d.ts +6 -1
- package/dist/fleet/host-explore-companion-registry.d.ts +60 -0
- package/dist/fleet/host-explore-companion.d.ts +7 -3
- package/dist/fleet/host-provider.d.ts +2 -1
- package/dist/fleet/host-session-writer.d.ts +9 -1
- package/dist/fleet/host-shadow-manager.d.ts +82 -20
- package/dist/fleet/host-shadow-pass.d.ts +9 -1
- package/dist/fleet/host-spawn-types.d.ts +9 -0
- package/dist/fleet/host-status.d.ts +2 -1
- package/dist/fleet/host-subagent-factory.d.ts +2 -1
- package/dist/fleet/host-subagent-session-audit.d.ts +56 -0
- package/dist/fleet/host-supervisor.d.ts +11 -1
- package/dist/fleet/host-task-result-report.d.ts +2 -1
- package/dist/fleet/host.d.ts +38 -6
- package/dist/fleet/status-broadcast.d.ts +2 -1
- package/dist/fleet-statusline.d.ts +2 -1
- package/dist/goal-host.d.ts +3 -2
- package/dist/{governance-V2Z42RBE.js → governance-JSGHHA2R.js} +1 -1
- package/dist/governance-hq-telemetry.d.ts +2 -2
- package/dist/{hq-2XIXGAER.js → hq-NDTJRRX3.js} +3 -3
- package/dist/hq-publisher.d.ts +1 -1
- package/dist/hq-recovery-html.d.ts +1 -6
- package/dist/hq-server/auth-state.d.ts +2 -1
- package/dist/hq-server/auth.d.ts +3 -2
- package/dist/hq-server/login-attempt-store.d.ts +2 -1
- package/dist/hq-server/mailbox-gateway-manager.d.ts +2 -1
- package/dist/hq-server/preflight.d.ts +3 -2
- package/dist/hq-server/server-lifecycle.d.ts +2 -1
- package/dist/hq-server/snapshot.d.ts +0 -9
- package/dist/hq-server/startup.d.ts +2 -3
- package/dist/hq-server/types.d.ts +2 -2
- package/dist/hq-server/upgrade-handler.d.ts +2 -1
- package/dist/hq-server/ws-leader.d.ts +0 -6
- package/dist/{hq-server-DBT3OOYD.js → hq-server-OH3SPSE2.js} +3 -13
- package/dist/hq-server.d.ts +1 -6
- package/dist/hq-static-serve.d.ts +2 -1
- package/dist/{hq-ttl-U2FAYFAT.js → hq-ttl-KUO3AU7X.js} +2 -2
- package/dist/{hq-tunnel-RFKGC4HI.js → hq-tunnel-LO55RCZE.js} +1 -1
- package/dist/hq-tunnel.d.ts +2 -1
- package/dist/index.js +113 -109
- package/dist/input-reader.d.ts +2 -1
- package/dist/kanban-dispatch-route.d.ts +27 -2
- package/dist/kanban-hq-sync.d.ts +2 -1
- package/dist/launch-hints.d.ts +2 -1
- package/dist/mailbox-bridge-bootstrap.d.ts +2 -3
- package/dist/{mailbox-serve-5S3PHG5D.js → mailbox-serve-VKQIRCCB.js} +47 -28
- package/dist/{mcp-RRPKNRSN.js → mcp-AQKSASHD.js} +1 -1
- package/dist/mcp-serve.d.ts +2 -1
- package/dist/{modeldiag-H6DKWJ2N.js → modeldiag-4NYBRSFP.js} +1 -1
- package/dist/next-task-predictor.d.ts +3 -2
- package/dist/permission-prompt.d.ts +2 -1
- package/dist/picker.d.ts +0 -18
- package/dist/plugin-management.d.ts +3 -14
- package/dist/{plugin-usage-GCTYOZPH.js → plugin-usage-AP7SJCDA.js} +2 -2
- package/dist/{plugins-EEKHCMBE.js → plugins-HQ5FU2AM.js} +3 -5
- package/dist/preflight.d.ts +2 -1
- package/dist/{proxy-wiring-G26YGP7S.js → proxy-wiring-EQB5X5YH.js} +3 -3
- package/dist/renderer.d.ts +18 -1
- package/dist/repl-client-registration.d.ts +2 -1
- package/dist/repl.d.ts +1 -1
- package/dist/{replay-XU6ZD7GM.js → replay-FJ2JBXUA.js} +1 -1
- package/dist/{sdd-runtime-GFZ3NJKS.js → sdd-runtime-FLKCSTYV.js} +3 -5
- package/dist/services/commit-message.d.ts +2 -1
- package/dist/services/sdd/state.d.ts +0 -2
- package/dist/services/sdd-runtime.d.ts +1 -1
- package/dist/services/statusline-config.d.ts +27 -4
- package/dist/session-event-wiring.d.ts +3 -5
- package/dist/{sessions-config-7Q7QJBKJ.js → sessions-config-P2LK2L32.js} +5 -1
- package/dist/sessions-doctor-EXHAZSSE.js +146 -0
- package/dist/settings-menu.d.ts +2 -1
- package/dist/shutdown-cleanup.d.ts +3 -2
- package/dist/{simpleui-dist-33VO3QHF.js → simpleui-dist-JKNRCRRK.js} +1 -1
- package/dist/simpleui-dist.d.ts +3 -2
- package/dist/slash-commands/brain-council.d.ts +0 -4
- package/dist/slash-commands/brain-status.d.ts +0 -1
- package/dist/slash-commands/command-context.d.ts +16 -2
- package/dist/slash-commands/fix-classifier.d.ts +2 -1
- package/dist/slash-commands/kanban-agent-helpers.d.ts +2 -1
- package/dist/slash-commands/kanban-board-handlers.d.ts +2 -1
- package/dist/slash-commands/kanban-lifecycle-diagnostics.d.ts +2 -1
- package/dist/slash-commands/kanban-task-subcommands.d.ts +0 -1
- package/dist/slash-commands/memory-audience.d.ts +1 -10
- package/dist/slash-commands/memory-flags.d.ts +2 -1
- package/dist/slash-commands/sdd-command-helpers.d.ts +3 -2
- package/dist/slash-commands/sdd.d.ts +2 -2
- package/dist/slash-commands/settings-mutations.d.ts +0 -1
- package/dist/slash-commands/statusline.d.ts +4 -4
- package/dist/slash-commands/telegram-pairing.d.ts +2 -2
- package/dist/slash-commands/telegram-setup.d.ts +2 -1
- package/dist/slash-commands/tier.d.ts +13 -0
- package/dist/subcommands/handlers/acp-connection-gate.d.ts +4 -3
- package/dist/subcommands/handlers/bench-run-help.d.ts +3 -8
- package/dist/subcommands/handlers/daemon-inventory.d.ts +3 -2
- package/dist/subcommands/handlers/governance.d.ts +2 -1
- package/dist/subcommands/handlers/model-smoke-test.d.ts +3 -2
- package/dist/subcommands/handlers/modeldiag-eval.d.ts +0 -4
- package/dist/subcommands/handlers/modeldiag-profiles.d.ts +1 -1
- package/dist/subcommands/handlers/models-add-help.d.ts +3 -8
- package/dist/subcommands/handlers/sessions-doctor.d.ts +3 -0
- package/dist/subcommands/handlers/update.d.ts +1 -1
- package/dist/terminal-format.d.ts +3 -2
- package/dist/tui-resource-menus.d.ts +2 -1
- package/dist/tuneup.d.ts +5 -5
- package/dist/{update-ZXNC6I6G.js → update-XKARO3CY.js} +3 -3
- package/dist/{update-check-WARHSVZA.js → update-check-LICQNYFK.js} +2 -2
- package/dist/update-check.d.ts +1 -1
- package/dist/utils/hq-ttl.d.ts +2 -1
- package/dist/webui-server/connection-handler.d.ts +34 -2
- package/dist/webui-server/prefs-seeding.d.ts +11 -1
- package/dist/webui-server/route-contexts.d.ts +45 -5
- package/dist/webui-server/session-start-payload.d.ts +13 -0
- package/dist/webui-server/setup-events.d.ts +14 -1
- package/dist/{webui-server-I53IYBW4.js → webui-server-LZOEH7O6.js} +374 -169
- package/dist/webui-server-options.d.ts +30 -4
- package/dist/wiring/brain-and-orchestration.d.ts +3 -3
- package/dist/wiring/cli-execute-builder.d.ts +3 -0
- package/dist/wiring/cli-heap-watchdog.d.ts +2 -1
- package/dist/wiring/cli-prompt-and-tools-setup.d.ts +10 -8
- package/dist/wiring/codebase-index.d.ts +2 -1
- package/dist/wiring/command-host-state.d.ts +61 -5
- package/dist/wiring/controllers.d.ts +3 -4
- package/dist/wiring/dep-watcher-bridge.d.ts +3 -2
- package/dist/wiring/dep-watcher.d.ts +2 -1
- package/dist/wiring/design-studio.d.ts +2 -1
- package/dist/wiring/director-setup.d.ts +3 -2
- package/dist/wiring/domain-terms-mirror.d.ts +2 -1
- package/dist/wiring/external-plugins.d.ts +3 -2
- package/dist/wiring/fleet-command-handlers.d.ts +2 -2
- package/dist/wiring/heap-watchdog-setup.d.ts +2 -1
- package/dist/wiring/hq-telemetry.d.ts +3 -2
- package/dist/wiring/lifecycle-plugins.d.ts +2 -2
- package/dist/wiring/management-tools.d.ts +30 -2
- package/dist/wiring/metrics.d.ts +2 -2
- package/dist/wiring/plugins.d.ts +0 -1
- package/dist/wiring/prompt-journal-recorder.d.ts +1 -1
- package/dist/wiring/provider-runtime-setup.d.ts +9 -2
- package/dist/wiring/provider-runtime.d.ts +23 -3
- package/dist/wiring/provider-status.d.ts +2 -1
- package/dist/wiring/provider-utility-tools.d.ts +2 -1
- package/dist/wiring/provider.d.ts +2 -1
- package/dist/wiring/replay-governance-setup.d.ts +2 -1
- package/dist/wiring/replay.d.ts +2 -1
- package/dist/wiring/resume-candidate.d.ts +27 -0
- package/dist/wiring/runtime-controller-deps.d.ts +8 -1
- package/dist/wiring/runtime-dispatch-state.d.ts +2 -1
- package/dist/wiring/runtime-lifecycle-deps.d.ts +2 -1
- package/dist/wiring/runtime-picker-deps.d.ts +2 -1
- package/dist/wiring/session-command-handlers.d.ts +2 -2
- package/dist/wiring/session-establishment.d.ts +2 -1
- package/dist/wiring/session-registry.d.ts +3 -2
- package/dist/wiring/session-runtime.d.ts +1 -1
- package/dist/wiring/slash-commands.d.ts +5 -4
- package/dist/wiring/teardown-registrar.d.ts +3 -2
- package/dist/wiring/vector-memory-setup.d.ts +3 -2
- package/dist/wiring/wrongtrace-hooks.d.ts +1 -1
- package/dist/wiring/wrongtrace-telemetry.d.ts +2 -1
- package/dist/{wrongtrace-telemetry-6M2CCBX5.js → wrongtrace-telemetry-FNLANZ5I.js} +1 -1
- package/package.json +31 -31
- package/dist/auth-menu.d.ts +0 -7
- package/dist/chunk-WHOIR577.js +0 -1
- package/dist/webui-server/terminal-log-view.d.ts +0 -47
- package/dist/wiring/tools.d.ts +0 -29
|
@@ -5,10 +5,10 @@ import type { Config, Logger, ModelsRegistry } from '@wrongstack/core/types';
|
|
|
5
5
|
import type { BootstrapGovernanceRuntimeOptions, GovernanceRuntimeBootstrapCloseResult, GovernanceRuntimeBootstrapHandle, GovernanceRuntimeBootstrapResult } from '@wrongstack/runtime/governance-bootstrap';
|
|
6
6
|
import { buildPickableProviders } from './provider-helpers.js';
|
|
7
7
|
export declare const WRONGSTACK_GOVERNANCE_ENV = "WRONGSTACK_GOVERNANCE";
|
|
8
|
-
|
|
8
|
+
interface BootstrapCliGovernanceOptions extends BootstrapGovernanceRuntimeOptions {
|
|
9
9
|
readonly environment: Readonly<Record<string, string | undefined>>;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
type CliGovernanceBootstrapResult = {
|
|
12
12
|
readonly mode: 'disabled';
|
|
13
13
|
readonly reason: 'feature_flag_off';
|
|
14
14
|
} | GovernanceRuntimeBootstrapResult | {
|
|
@@ -41,7 +41,7 @@ export declare function setupCliGovernance(input: {
|
|
|
41
41
|
readonly planPath: string;
|
|
42
42
|
readonly captureWorkspaceCheckpoint: () => Promise<import('@wrongstack/core/types').WorkspaceCheckpointRef | undefined>;
|
|
43
43
|
}): Promise<CliGovernanceRuntimeHandle | undefined>;
|
|
44
|
-
|
|
44
|
+
interface CliMainEventSource {
|
|
45
45
|
on(event: string, handler: (...args: unknown[]) => void): void;
|
|
46
46
|
off(event: string, handler: (...args: unknown[]) => void): void;
|
|
47
47
|
}
|
package/dist/config-doctor.d.ts
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* string "true" for a boolean field); anything ambiguous is reported as a
|
|
14
14
|
* non-fixable finding instead of guessed at.
|
|
15
15
|
*/
|
|
16
|
-
import type { JSONSchema } from '@wrongstack/core/types';
|
|
17
|
-
|
|
16
|
+
import type { Config, JSONSchema } from '@wrongstack/core/types';
|
|
17
|
+
type DoctorSeverity = 'error' | 'warning';
|
|
18
18
|
export interface DoctorFinding {
|
|
19
19
|
/** Dot path of the offending value, e.g. `autonomy.defaultMode`. */
|
|
20
20
|
path: string;
|
|
@@ -23,7 +23,7 @@ export interface DoctorFinding {
|
|
|
23
23
|
/** Present when the finding is auto-fixable; describes the repair. */
|
|
24
24
|
fix?: string | undefined;
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
interface DoctorReport {
|
|
27
27
|
findings: DoctorFinding[];
|
|
28
28
|
/** Deep copy of the input with every fixable finding repaired. */
|
|
29
29
|
fixed: Record<string, unknown>;
|
|
@@ -35,5 +35,36 @@ export interface PluginSchemaInfo {
|
|
|
35
35
|
name: string;
|
|
36
36
|
configSchema?: JSONSchema | undefined;
|
|
37
37
|
}
|
|
38
|
+
/** Every key that may legitimately appear in a persisted config file.
|
|
39
|
+
* Mirrors the `Config` interface in @wrongstack/core types/config.ts.
|
|
40
|
+
*
|
|
41
|
+
* Kept honest by `ConfigKeyCoverage` below, which is the guard this list
|
|
42
|
+
* went without for its whole life. It had drifted in BOTH directions:
|
|
43
|
+
* eight real fields — `systemPrompt`, `themePreset`, `modelTiers`,
|
|
44
|
+
* `chronicle`, `cloudSync`, `activeProfile`, `fallbackProfile`,
|
|
45
|
+
* `fallbackGateSeconds` — were reported to the user as "unknown key" even
|
|
46
|
+
* though WrongStack writes them itself (`/theme` writes `themePreset` on
|
|
47
|
+
* every theme change), and a phantom `agents` entry (that field is nested
|
|
48
|
+
* under `acp`, never top-level) waved a stray top-level `agents` block
|
|
49
|
+
* through. Add a field to `Config` and `tsc` now names it here. */
|
|
50
|
+
declare const KNOWN_TOP_LEVEL_KEYS: readonly ['version', 'activeProfile', 'provider', 'model', 'apiKey', 'baseUrl', 'maxConcurrent', 'uiLocale', 'themePreset', 'providers', 'models', 'modelMatrix', 'modelTiers', 'favoriteModels', 'favoriteModelsOnly', 'modelAvailabilitySchedule', 'context', 'tools', 'mcpServers', 'acp', 'fallbackModels', 'fallbackBridge', 'fallbackProfiles', 'fallbackProfile', 'fallbackAuto', 'fallbackMaxLastResortCandidates', 'fallbackStickiness', 'fallbackGateSeconds', 'hooks', 'plugins', 'pluginManager', 'log', 'features', 'Sage', 'skills', 'yolo', 'nextPrediction', 'cwd', 'autonomy', 'hints', 'debugStream', 'configScope', 'indexing', 'circuitBreaker', 'adaptiveConcurrency', 'launch', 'session', 'chronicle', 'modelRuntime', 'systemPrompt', 'hq', 'fleet', 'brain', 'sync', 'cloudSync', 'git', 'extensions'];
|
|
51
|
+
/** Compile-time `never` assertion: instantiating it with a non-empty union
|
|
52
|
+
* fails and the TS error text spells out the offending key names. */
|
|
53
|
+
type AssertNever<T extends never> = T;
|
|
54
|
+
/** `Config` fields the doctor would report as unknown. Must be `never`. */
|
|
55
|
+
type UncoveredConfigKey = Exclude<keyof Config, (typeof KNOWN_TOP_LEVEL_KEYS)[number]>;
|
|
56
|
+
/** Keys the list invents that `Config` does not have. Must be `never`. */
|
|
57
|
+
type PhantomDoctorKey = Exclude<(typeof KNOWN_TOP_LEVEL_KEYS)[number], keyof Config>;
|
|
58
|
+
/**
|
|
59
|
+
* The drift gate. Exported so `noUnusedVariables` keeps it, and because the
|
|
60
|
+
* name is what a future reader greps for when `tsc` points here.
|
|
61
|
+
*
|
|
62
|
+
* A runtime test cannot do this job: `keyof Config` does not survive to
|
|
63
|
+
* runtime, so the previous safety net was a hand-written list of keys inside
|
|
64
|
+
* `slash-doctor.test.ts` — which drifted alongside the list it was meant to
|
|
65
|
+
* pin. This resolves to `never` only while both directions are clean.
|
|
66
|
+
*/
|
|
67
|
+
export type ConfigKeyCoverage = AssertNever<UncoveredConfigKey> | AssertNever<PhantomDoctorKey>;
|
|
38
68
|
export declare function diagnoseConfig(cfg: Record<string, unknown>, plugins?: PluginSchemaInfo[]): DoctorReport;
|
|
69
|
+
export {};
|
|
39
70
|
//# sourceMappingURL=config-doctor.d.ts.map
|
package/dist/context-limit.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Config, CustomModelDefinition, Logger, ModelsRegistry, Provider, ProviderConfig } from '@wrongstack/core/types';
|
|
2
|
-
|
|
2
|
+
interface ResolveMaxContextInput {
|
|
3
3
|
modelsRegistry?: ModelsRegistry | undefined;
|
|
4
4
|
config: {
|
|
5
5
|
provider?: string | undefined;
|
|
@@ -58,7 +58,7 @@ export interface ResolveMaxContextInput {
|
|
|
58
58
|
* that silently shrinks the window). See {@link resolveRuntimeMaxContextDetailed}.
|
|
59
59
|
*/
|
|
60
60
|
export type MaxContextBranch = 'explicit-config-fallback' | 'provider-override' | 'sibling-capabilities' | 'sibling-direct-model' | 'catalog-capabilities' | 'catalog-direct-model' | 'family-default' | 'diverging-baseurl-family-default' | 'unknown';
|
|
61
|
-
|
|
61
|
+
interface ResolvedMaxContext {
|
|
62
62
|
/** The resolved window (0 = unknown). */
|
|
63
63
|
maxContext: number;
|
|
64
64
|
/** The priority-chain branch that produced {@link maxContext}. */
|
|
@@ -76,7 +76,7 @@ export declare function resolveRuntimeMaxContextDetailed(input: ResolveMaxContex
|
|
|
76
76
|
* for callers and tests that only need the number.
|
|
77
77
|
*/
|
|
78
78
|
export declare function resolveRuntimeMaxContext(input: ResolveMaxContextInput): Promise<number>;
|
|
79
|
-
|
|
79
|
+
interface MaxContextChangeTelemetry {
|
|
80
80
|
/** Log severity for this change: 'warn' for a suspicious shrink, else 'debug'. */
|
|
81
81
|
level: 'warn' | 'debug';
|
|
82
82
|
/** Fully-rendered log line. */
|
|
@@ -105,4 +105,5 @@ export declare function refreshRuntimeModelCatalog(input: {
|
|
|
105
105
|
logger?: Pick<Logger, 'debug' | 'warn'> | undefined;
|
|
106
106
|
reason?: string | undefined;
|
|
107
107
|
}): Promise<boolean>;
|
|
108
|
+
export {};
|
|
108
109
|
//# sourceMappingURL=context-limit.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
startProxyProbe
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-G3IMKQRH.js";
|
|
4
4
|
import {
|
|
5
5
|
formatGateCounterReport,
|
|
6
6
|
loadWrongTraceGateCounters
|
|
@@ -162,7 +162,7 @@ var proxyCmd = async (_args, deps) => {
|
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
164
|
if (persisted?.enabled === true && persisted.url) {
|
|
165
|
-
const runner = startProxyProbe(
|
|
165
|
+
const runner = startProxyProbe();
|
|
166
166
|
await runner.poke();
|
|
167
167
|
}
|
|
168
168
|
const cfg = getProxyConfig();
|
|
@@ -384,4 +384,4 @@ export {
|
|
|
384
384
|
doctorCmd,
|
|
385
385
|
proxyCmd
|
|
386
386
|
};
|
|
387
|
-
//# sourceMappingURL=diag-doctor-
|
|
387
|
+
//# sourceMappingURL=diag-doctor-LFCCBPMD.js.map
|
package/dist/execute-deps.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ import type { ReadlineInputReader } from './input-reader.js';
|
|
|
25
25
|
import type { LiveSettingsInput } from './live-settings-input.js';
|
|
26
26
|
import type { TerminalRenderer } from './renderer.js';
|
|
27
27
|
import type { AutonomyMode } from './services/autonomy-mode.js';
|
|
28
|
+
import type { StatuslineLines } from '@wrongstack/core/statusline';
|
|
28
29
|
import type { StatuslineConfigKey } from './services/statusline-config.js';
|
|
29
30
|
import type { SessionStats } from './session-stats.js';
|
|
30
31
|
import type { UpdateInfo } from './update-check.js';
|
|
@@ -80,7 +81,7 @@ export interface RestoredToolCall {
|
|
|
80
81
|
outputLines?: number | undefined;
|
|
81
82
|
}
|
|
82
83
|
/** Always-required runtime essentials. */
|
|
83
|
-
|
|
84
|
+
interface CoreDeps {
|
|
84
85
|
agent: Agent;
|
|
85
86
|
events: EventBus;
|
|
86
87
|
config: Config;
|
|
@@ -120,7 +121,7 @@ export interface CoreDeps {
|
|
|
120
121
|
webuiSessionChild?: WebuiSessionChildOptions | undefined;
|
|
121
122
|
}
|
|
122
123
|
/** Session + state stores. */
|
|
123
|
-
|
|
124
|
+
interface SessionDeps {
|
|
124
125
|
session: SessionWriter;
|
|
125
126
|
context: Context;
|
|
126
127
|
attachments: AttachmentStore;
|
|
@@ -146,7 +147,7 @@ export interface SessionDeps {
|
|
|
146
147
|
needsSetup?: boolean | undefined;
|
|
147
148
|
}
|
|
148
149
|
/** Provider/model registry, selection and switching. */
|
|
149
|
-
|
|
150
|
+
interface ProviderDeps {
|
|
150
151
|
statusTracker?: import('@wrongstack/core/coordination').ProviderModelStatusTracker | undefined;
|
|
151
152
|
modelsRegistry: ModelsRegistry;
|
|
152
153
|
savedProviderCfg: ProviderConfig | undefined;
|
|
@@ -176,7 +177,7 @@ export interface ProviderDeps {
|
|
|
176
177
|
sddSubagentFactory?: AgentFactory | undefined;
|
|
177
178
|
}
|
|
178
179
|
/** I/O surface components. */
|
|
179
|
-
|
|
180
|
+
interface UiDeps {
|
|
180
181
|
renderer: TerminalRenderer;
|
|
181
182
|
reader: ReadlineInputReader;
|
|
182
183
|
/** Mutable bridge replaced by the TUI while Ink owns stdin. */
|
|
@@ -192,9 +193,17 @@ export interface UiDeps {
|
|
|
192
193
|
modeId?: string | undefined;
|
|
193
194
|
}
|
|
194
195
|
/** Director, multi-agent, and fleet-related state. */
|
|
195
|
-
|
|
196
|
+
interface FleetDeps {
|
|
196
197
|
director: Director | null;
|
|
197
198
|
getDirector?: (() => Director | null) | undefined;
|
|
199
|
+
/**
|
|
200
|
+
* Drop the host-side helpers pinned to a conversation whose tab closed —
|
|
201
|
+
* its explore companion and its shadow-review bookkeeping. Not a fleet
|
|
202
|
+
* teardown: a background run outlives the tab that started it (that is
|
|
203
|
+
* `stopSessionFleet`, on Stop). Absent for hosts with one conversation,
|
|
204
|
+
* where nothing is ever released before `dispose()`.
|
|
205
|
+
*/
|
|
206
|
+
releaseSessionHelpers?: ((sessionId: string) => void) | undefined;
|
|
198
207
|
coordinatorController?: Record<string, unknown> | undefined;
|
|
199
208
|
fleetRoster?: Record<string, {
|
|
200
209
|
name: string;
|
|
@@ -215,8 +224,14 @@ export interface FleetDeps {
|
|
|
215
224
|
agentTranscripts?: {
|
|
216
225
|
getTranscript(subagentId: string, limit?: number): import('@wrongstack/core/coordination').AgentTimelineEntry[];
|
|
217
226
|
getAllSessions(): import('@wrongstack/core/coordination').AgentVirtualSession[];
|
|
218
|
-
/**
|
|
219
|
-
|
|
227
|
+
/**
|
|
228
|
+
* Ring + on-disk transcripts, for surfaces that survive a process
|
|
229
|
+
* restart. `only` restricts the result to named subagents — the
|
|
230
|
+
* transcripts directory is shared by every session of the project, so
|
|
231
|
+
* an unfiltered read hands each of four open tabs the union of all
|
|
232
|
+
* four tabs' workers.
|
|
233
|
+
*/
|
|
234
|
+
loadSessionsFromDisk(only?: readonly string[]): Promise<import('@wrongstack/core/coordination').AgentVirtualSession[]>;
|
|
220
235
|
} | undefined;
|
|
221
236
|
authHost?: import('@wrongstack/tui').AuthPanelHost | undefined;
|
|
222
237
|
onPanelOpen?: {
|
|
@@ -233,6 +248,14 @@ export interface ControllerDeps {
|
|
|
233
248
|
setEnabled: (enabled: boolean) => void;
|
|
234
249
|
} | undefined;
|
|
235
250
|
getEnhancerReasoning?: ((providerId?: string, modelId?: string) => import('@wrongstack/core/types').ReasoningRequest | undefined | Promise<import('@wrongstack/core/types').ReasoningRequest | undefined>) | undefined;
|
|
251
|
+
/**
|
|
252
|
+
* Reasoning-effort levels the ACTIVE model documents (models.dev
|
|
253
|
+
* reasoningConfig), resolved synchronously for the /settings picker.
|
|
254
|
+
* Undefined = vocabulary undocumented; the picker then cycles the full
|
|
255
|
+
* canonical set. Mirrors getEnhancerReasoning's active-model fast path
|
|
256
|
+
* (same freshness contract: tracks model switches via the builder).
|
|
257
|
+
*/
|
|
258
|
+
getActiveModelReasoningEffortLevels?: (() => string[] | undefined) | undefined;
|
|
236
259
|
/** Build an ephemeral Provider for retrying a failed refinement on another model (no session switch). */
|
|
237
260
|
buildEnhancerProvider?: ((providerId: string, modelId: string) => Promise<import('@wrongstack/core/types').Provider | undefined>) | undefined;
|
|
238
261
|
/** Resolve the one-key "retry with another model" fallback ref for refinement failures. */
|
|
@@ -242,6 +265,11 @@ export interface ControllerDeps {
|
|
|
242
265
|
statuslineHiddenItems: StatuslineConfigKey[];
|
|
243
266
|
setStatuslineHiddenItems: (items: StatuslineConfigKey[]) => void;
|
|
244
267
|
saveStatuslineHiddenItems: (items: StatuslineConfigKey[]) => Promise<void>;
|
|
268
|
+
/** Per-chip statusline line assignment (schema v2). Optional: hosts that
|
|
269
|
+
* don't load it (older embedders, tests) keep the contract defaults. */
|
|
270
|
+
statuslineLines?: StatuslineLines | undefined;
|
|
271
|
+
setStatuslineLines?: ((lines: StatuslineLines) => void) | undefined;
|
|
272
|
+
saveStatuslineLines?: ((lines: StatuslineLines) => Promise<void>) | undefined;
|
|
245
273
|
getYolo?: (() => boolean) | undefined;
|
|
246
274
|
onYolo?: ((setTo?: boolean) => boolean) | undefined;
|
|
247
275
|
getAutonomy?: (() => AutonomyMode) | undefined;
|
|
@@ -326,4 +354,5 @@ export interface ExecuteDeps {
|
|
|
326
354
|
picker?: PickerDeps | undefined;
|
|
327
355
|
lifecycles?: LifecycleDeps | undefined;
|
|
328
356
|
}
|
|
357
|
+
export {};
|
|
329
358
|
//# sourceMappingURL=execute-deps.d.ts.map
|