@wrongstack/cli 0.306.3 → 0.307.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/dist/{auth-L3WGSGDX.js → auth-TVOOHL4Q.js} +45 -106
- package/dist/boot/short-circuit-flags.d.ts +2 -2
- package/dist/chimera-cascade-evidence.d.ts +1 -1
- package/dist/chunk-2VMJ3E5Z.js +71 -0
- package/dist/{chunk-5N34EWJR.js → chunk-2ZNBRZ4W.js} +2 -2
- package/dist/{chunk-RHLQT3EV.js → chunk-CB35UVXO.js} +1636 -1528
- package/dist/{chunk-YKBRFSGL.js → chunk-DOJLAULS.js} +28 -28
- package/dist/{chunk-JUHRI6OV.js → chunk-G7337TTK.js} +24 -5
- package/dist/{chunk-KXN5HZDL.js → chunk-PKHGLWUJ.js} +24 -6
- package/dist/{chunk-HITHEXE3.js → chunk-TOG7OMKJ.js} +2 -2
- package/dist/{chunk-ARWGQUB3.js → chunk-XSG33WHN.js} +15 -5
- package/dist/{cli-main-3PUWFKSL.js → cli-main-YDOZZOZA.js} +29026 -28205
- package/dist/cli-main.d.ts +0 -20
- package/dist/{execution-4IG5XKOL.js → execution-CGT6J5ZN.js} +306 -274
- package/dist/fleet/host-learning-scheduler.d.ts +27 -0
- package/dist/fleet/host-shadow-manager.d.ts +64 -0
- package/dist/fleet/host.d.ts +5 -140
- package/dist/{hq-ZK6PGN3W.js → hq-PA6RH2UW.js} +2 -2
- package/dist/hq-server/mailbox-gateway-manager.d.ts +32 -0
- package/dist/hq-server/routes/auth/bootstrap-routes.d.ts +5 -0
- package/dist/hq-server/routes/auth/common.d.ts +11 -0
- package/dist/hq-server/routes/auth/password-routes.d.ts +9 -0
- package/dist/hq-server/routes/auth/session-audit-routes.d.ts +6 -0
- package/dist/hq-server/routes/auth/totp-routes.d.ts +9 -0
- package/dist/hq-server/routes/auth-handlers.d.ts +5 -132
- package/dist/hq-server/routes/command-handlers.d.ts +7 -0
- package/dist/hq-server/routes/data-handlers.d.ts +8 -0
- package/dist/hq-server/routes/mailbox-handlers.d.ts +22 -0
- package/dist/hq-server/routes.d.ts +3 -3
- package/dist/hq-server/server-lifecycle.d.ts +37 -0
- package/dist/hq-server/snapshot.d.ts +6 -5
- package/dist/hq-server/types.d.ts +4 -0
- package/dist/hq-server/upgrade-handler.d.ts +34 -0
- package/dist/hq-server/ws-client-events.d.ts +25 -0
- package/dist/hq-server/ws-leader.d.ts +47 -0
- package/dist/hq-server/ws-resume.d.ts +27 -0
- package/dist/hq-server/ws.d.ts +4 -71
- package/dist/{hq-server-IVZLVCFV.js → hq-server-PBRU275L.js} +2 -2
- package/dist/hq-server.d.ts +0 -38
- package/dist/index.js +1267 -122
- package/dist/{mcp-JNWEQ6T2.js → mcp-CMLFHRG2.js} +19 -9
- package/dist/mcp-serve.d.ts +31 -1
- package/dist/{modeldiag-6VS5KDP5.js → modeldiag-ICMPHT5L.js} +868 -831
- package/dist/{project-manifest-GE25PW4S.js → project-manifest-YFTJ3D5N.js} +2 -2
- package/dist/{project-picker-BOCWHBXP.js → project-picker-R5TYAE3Q.js} +3 -3
- package/dist/{providers-models-HQN3AT3K.js → providers-models-4FAKM2WO.js} +4 -4
- package/dist/repl-eternal-loop.d.ts +8 -0
- package/dist/repl-goal-banner.d.ts +21 -0
- package/dist/slash-commands/brain-council.d.ts +36 -0
- package/dist/slash-commands/brain-status.d.ts +12 -0
- package/dist/slash-commands/fallback.d.ts +6 -0
- package/dist/slash-commands/kanban-board-handlers.d.ts +13 -0
- package/dist/slash-commands/kanban-lifecycle-diagnostics.d.ts +16 -0
- package/dist/slash-commands/kanban-task-subcommands.d.ts +8 -0
- package/dist/slash-commands/memory-audience.d.ts +14 -0
- package/dist/slash-commands/memory-gather.d.ts +9 -0
- package/dist/slash-commands/memory-stats.d.ts +5 -0
- package/dist/slash-commands/settings-mutations.d.ts +6 -0
- package/dist/slash-commands/settings-view.d.ts +5 -0
- package/dist/subcommands/handlers/modeldiag-bench.d.ts +10 -0
- package/dist/subcommands/handlers/modeldiag-eval.d.ts +27 -0
- package/dist/subcommands/handlers/modeldiag-test.d.ts +8 -0
- package/dist/{version-help-ASKQYXDJ.js → version-help-TFD6VPF3.js} +2 -2
- package/dist/vibe-protocol-wiring.d.ts +10 -0
- package/dist/webui-server/credential-watcher.d.ts +15 -0
- package/dist/webui-server/domain-handlers.d.ts +21 -0
- package/dist/webui-server/route-contexts.d.ts +41 -0
- package/dist/{webui-server-FTG7JAZU.js → webui-server-IPHGJGXE.js} +515 -437
- package/dist/wiring/cli-execute-builder.d.ts +88 -0
- package/dist/wiring/cli-heap-watchdog.d.ts +33 -0
- package/dist/wiring/cli-prompt-and-tools-setup.d.ts +25 -0
- package/dist/wiring/cli-slash-commands-setup.d.ts +79 -0
- package/dist/wiring/heap-watchdog-setup.d.ts +53 -0
- package/dist/wiring/metrics.d.ts +1 -0
- package/dist/wiring/replay-governance-setup.d.ts +31 -0
- package/package.json +27 -27
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
loadManifest,
|
|
6
6
|
saveManifest,
|
|
7
7
|
touchProjectInManifest
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-G7337TTK.js";
|
|
9
9
|
import "./chunk-7OCVIDC7.js";
|
|
10
10
|
export {
|
|
11
11
|
ensureProjectDataDir,
|
|
@@ -15,4 +15,4 @@ export {
|
|
|
15
15
|
saveManifest,
|
|
16
16
|
touchProjectInManifest
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=project-manifest-
|
|
18
|
+
//# sourceMappingURL=project-manifest-YFTJ3D5N.js.map
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
filterItems,
|
|
5
5
|
runProjectPicker,
|
|
6
6
|
skipDivider
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-2ZNBRZ4W.js";
|
|
8
|
+
import "./chunk-G7337TTK.js";
|
|
9
9
|
import "./chunk-7OCVIDC7.js";
|
|
10
10
|
export {
|
|
11
11
|
buildPickerItems,
|
|
@@ -14,4 +14,4 @@ export {
|
|
|
14
14
|
runProjectPicker,
|
|
15
15
|
skipDivider
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=project-picker-
|
|
17
|
+
//# sourceMappingURL=project-picker-R5TYAE3Q.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
visibleModelIds
|
|
3
3
|
} from "./chunk-VUVOMXWP.js";
|
|
4
|
-
import {
|
|
5
|
-
mutateConfigProviders
|
|
6
|
-
} from "./chunk-SZ42FYPT.js";
|
|
7
4
|
import {
|
|
8
5
|
activeProfileConfigPath
|
|
9
6
|
} from "./chunk-YMXXOOFN.js";
|
|
7
|
+
import {
|
|
8
|
+
mutateConfigProviders
|
|
9
|
+
} from "./chunk-SZ42FYPT.js";
|
|
10
10
|
import "./chunk-7OCVIDC7.js";
|
|
11
11
|
|
|
12
12
|
// src/subcommands/handlers/providers-models.ts
|
|
@@ -661,4 +661,4 @@ export {
|
|
|
661
661
|
modelsCmd,
|
|
662
662
|
providersCmd
|
|
663
663
|
};
|
|
664
|
-
//# sourceMappingURL=providers-models-
|
|
664
|
+
//# sourceMappingURL=providers-models-4FAKM2WO.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* REPL eternal and parallel autonomy iteration loop handlers.
|
|
3
|
+
*
|
|
4
|
+
* @module repl-eternal-loop
|
|
5
|
+
*/
|
|
6
|
+
import type { ReplOptions } from './repl-options.js';
|
|
7
|
+
export declare function runReplEternalLoop(opts: ReplOptions, onInterruptsReset: () => void): Promise<boolean>;
|
|
8
|
+
//# sourceMappingURL=repl-eternal-loop.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* REPL goal banner rendering and safe goal file loading.
|
|
3
|
+
*
|
|
4
|
+
* @module repl-goal-banner
|
|
5
|
+
*/
|
|
6
|
+
import type { GoalFile } from '@wrongstack/core/goal';
|
|
7
|
+
import type { ReplOptions } from './repl-options.js';
|
|
8
|
+
/**
|
|
9
|
+
* Read the persisted goal file safely. Returns null on any error so the
|
|
10
|
+
* REPL never crashes because /goal infrastructure is missing.
|
|
11
|
+
*/
|
|
12
|
+
export declare function loadGoalSafe(opts: ReplOptions): Promise<GoalFile | null>;
|
|
13
|
+
/**
|
|
14
|
+
* Print a one-line status banner about the active goal — only when a
|
|
15
|
+
* goal file exists. If the previous session left the engine in 'running'
|
|
16
|
+
* state, prompt the user (y/N) to resume eternal mode directly so they
|
|
17
|
+
* don't have to retype the slash command. Default is N (safe path) — a
|
|
18
|
+
* stray Enter after an unexpected crash shouldn't auto-burn tokens.
|
|
19
|
+
*/
|
|
20
|
+
export declare function renderGoalBanner(opts: ReplOptions): Promise<void>;
|
|
21
|
+
//# sourceMappingURL=repl-goal-banner.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Brain council command parsing, seat grammar, and subcommand execution.
|
|
3
|
+
*
|
|
4
|
+
* @module slash-commands/brain-council
|
|
5
|
+
*/
|
|
6
|
+
import { type BrainConfigPatch, type BrainConfigSnapshot } from '@wrongstack/core/execution';
|
|
7
|
+
import type { BrainCouncilVoterConfig } from '@wrongstack/core/types';
|
|
8
|
+
import type { SlashCommandContext } from './command-context.js';
|
|
9
|
+
export declare const COUNCIL_RISKS: ReadonlySet<string>;
|
|
10
|
+
export declare const COUNCIL_DISTINCTNESS: ReadonlySet<string>;
|
|
11
|
+
export declare const COUNCIL_NUMERIC_OPS: Record<string, string | undefined>;
|
|
12
|
+
export declare function parseRefEntry(ref: string): {
|
|
13
|
+
provider?: string;
|
|
14
|
+
model: string;
|
|
15
|
+
} | null;
|
|
16
|
+
export declare function compactEntry(entry: {
|
|
17
|
+
provider?: string | undefined;
|
|
18
|
+
model: string;
|
|
19
|
+
}): string;
|
|
20
|
+
export declare function judgeSummary(s: {
|
|
21
|
+
judgeLabel: string | undefined;
|
|
22
|
+
judgeIsVoter: boolean;
|
|
23
|
+
council: {
|
|
24
|
+
judge?: {
|
|
25
|
+
provider?: string | undefined;
|
|
26
|
+
model: string;
|
|
27
|
+
} | undefined;
|
|
28
|
+
};
|
|
29
|
+
}): string;
|
|
30
|
+
export declare function parseSeat(token: string): BrainCouncilVoterConfig | null;
|
|
31
|
+
export declare function handleBrainCouncilSubcommand(rest: string[], opts: SlashCommandContext, applyPatch: (patch: BrainConfigPatch, describe: (snapshot: BrainConfigSnapshot) => string) => Promise<{
|
|
32
|
+
message: string;
|
|
33
|
+
}>): Promise<{
|
|
34
|
+
message: string;
|
|
35
|
+
}>;
|
|
36
|
+
//# sourceMappingURL=brain-council.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Brain status, stats, ledger, rules, and heuristics display formatters.
|
|
3
|
+
*
|
|
4
|
+
* @module slash-commands/brain-status
|
|
5
|
+
*/
|
|
6
|
+
import type { SlashCommandContext } from './command-context.js';
|
|
7
|
+
export declare const DETERMINISTIC_TIER_NAMES: string[];
|
|
8
|
+
export declare function fmtAge(at: number): string;
|
|
9
|
+
export declare function formatBrainStatus(opts: SlashCommandContext): string;
|
|
10
|
+
export declare function formatBrainStats(opts: SlashCommandContext): string;
|
|
11
|
+
export declare function readLedgerEntries(ledgerPath: string, limit: number): Promise<string>;
|
|
12
|
+
//# sourceMappingURL=brain-status.d.ts.map
|
|
@@ -17,6 +17,12 @@ import type { SlashCommandContext } from './command-context.js';
|
|
|
17
17
|
* bridge set <ref> Set the single continuity route tried before the chain.
|
|
18
18
|
* bridge clear Disable the continuity bridge.
|
|
19
19
|
* auto on|off Toggle the smart default (config.fallbackAuto).
|
|
20
|
+
* profile use <name> Select a named profile (config.fallbackProfile).
|
|
21
|
+
* profile none Deselect it.
|
|
22
|
+
*
|
|
23
|
+
* Resolution order at runtime: explicit `fallbackModels` → selected profile →
|
|
24
|
+
* smart default. The view renders the real `resolveCandidates` order, not just
|
|
25
|
+
* the explicit list.
|
|
20
26
|
*/
|
|
21
27
|
export declare function buildFallbackCommand(opts: SlashCommandContext): SlashCommand;
|
|
22
28
|
//# sourceMappingURL=fallback.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SlashCommandContext } from './command-context.js';
|
|
2
|
+
export declare function handlePruneSubcommand(projectRoot: string, rest: string[]): Promise<{
|
|
3
|
+
message: string;
|
|
4
|
+
}>;
|
|
5
|
+
export declare function handleGraphSubcommand(opts: SlashCommandContext, projectRoot: string, args: string[], showHelp: () => {
|
|
6
|
+
message: string;
|
|
7
|
+
}): Promise<{
|
|
8
|
+
message: string;
|
|
9
|
+
}>;
|
|
10
|
+
export declare function handleBoardGenerate(projectRoot: string, restJoined: string): Promise<{
|
|
11
|
+
message: string;
|
|
12
|
+
}>;
|
|
13
|
+
//# sourceMappingURL=kanban-board-handlers.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type KanbanBoard } from '@wrongstack/kanban';
|
|
2
|
+
export declare function formatLifecycleDiagnosis(err: unknown, action: string): string;
|
|
3
|
+
export declare const LIFECYCLE_STAGE_ALIASES: Record<string, string>;
|
|
4
|
+
export declare function resolveColumnReference(board: KanbanBoard, requested: string): string | null;
|
|
5
|
+
export interface TaskEvidenceFlags {
|
|
6
|
+
attachment?: string | undefined;
|
|
7
|
+
note?: string | undefined;
|
|
8
|
+
tickChecks: {
|
|
9
|
+
checkId: string;
|
|
10
|
+
checkStatus: 'passed' | 'failed' | 'skipped';
|
|
11
|
+
}[];
|
|
12
|
+
positional: string[];
|
|
13
|
+
warnings: string[];
|
|
14
|
+
}
|
|
15
|
+
export declare function parseTaskEvidenceFlags(tokens: readonly string[]): TaskEvidenceFlags;
|
|
16
|
+
//# sourceMappingURL=kanban-lifecycle-diagnostics.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SlashCommandContext } from './command-context.js';
|
|
2
|
+
export declare function extractSpawnedSubagentId(summary: string): string | undefined;
|
|
3
|
+
export declare function handleTaskSubcommand(opts: SlashCommandContext, projectRoot: string, args: string[], showHelp: () => {
|
|
4
|
+
message: string;
|
|
5
|
+
}): Promise<{
|
|
6
|
+
message: string;
|
|
7
|
+
}>;
|
|
8
|
+
//# sourceMappingURL=kanban-task-subcommands.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { MemoryAudienceSelector, SageSurface } from '@wrongstack/sage';
|
|
2
|
+
export interface ParsedAudienceFlags {
|
|
3
|
+
roles?: string[];
|
|
4
|
+
taskTypes?: string[];
|
|
5
|
+
modes?: string[];
|
|
6
|
+
errors: string[];
|
|
7
|
+
}
|
|
8
|
+
export declare function parseAudienceFlags(tokens: string[]): ParsedAudienceFlags;
|
|
9
|
+
export declare function hasAudienceSelector(parsed: ParsedAudienceFlags): boolean;
|
|
10
|
+
export declare function formatAudienceSelector(audience: MemoryAudienceSelector): string;
|
|
11
|
+
export declare function runAudienceMemory(store: SageSurface, rest: string[]): Promise<{
|
|
12
|
+
message: string;
|
|
13
|
+
}>;
|
|
14
|
+
//# sourceMappingURL=memory-audience.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SageSurface } from '@wrongstack/sage';
|
|
2
|
+
import type { SlashCommandContext } from './command-context.js';
|
|
3
|
+
export declare function runPathMemory(store: NonNullable<SlashCommandContext['memoryStore']>, targetPath: string, includeAncestors: boolean): Promise<{
|
|
4
|
+
message: string;
|
|
5
|
+
}>;
|
|
6
|
+
export declare function runGatherCommand(Sage: SageSurface | null | undefined, rest: string[]): Promise<{
|
|
7
|
+
message: string;
|
|
8
|
+
}>;
|
|
9
|
+
//# sourceMappingURL=memory-gather.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SlashCommandContext } from './command-context.js';
|
|
2
|
+
export declare const ALL_SETTINGS_KEYS: string[];
|
|
3
|
+
export declare function executeSettingsSubcommand(sub: string, rest: string[], opts: SlashCommandContext): Promise<{
|
|
4
|
+
message: string;
|
|
5
|
+
}>;
|
|
6
|
+
//# sourceMappingURL=settings-mutations.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { SlashCommandContext } from './command-context.js';
|
|
2
|
+
export declare const SETTINGS_HELP: string;
|
|
3
|
+
export declare function formatSettingsDefaults(): string;
|
|
4
|
+
export declare function formatCurrentSettingsView(opts: SlashCommandContext): string;
|
|
5
|
+
//# sourceMappingURL=settings-view.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model benchmark subcommand handler for `wrongstack modeldiag bench`.
|
|
3
|
+
*
|
|
4
|
+
* @module subcommands/handlers/modeldiag-bench
|
|
5
|
+
*/
|
|
6
|
+
import type { SubcommandDeps } from '../index.js';
|
|
7
|
+
import { type ModelDiagConfig } from './modeldiag-eval.js';
|
|
8
|
+
import { type CacheProvider } from './modeldiag-profiles.js';
|
|
9
|
+
export declare function runModeldiagBench(args: string[], deps: SubcommandDeps, providers: CacheProvider[], config: ModelDiagConfig, hasKey: (pid: string) => boolean): Promise<number>;
|
|
10
|
+
//# sourceMappingURL=modeldiag-bench.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model competency evaluation handler for `wrongstack modeldiag eval`.
|
|
3
|
+
*
|
|
4
|
+
* @module subcommands/handlers/modeldiag-eval
|
|
5
|
+
*/
|
|
6
|
+
import { makeProviderFromConfig } from '@wrongstack/providers';
|
|
7
|
+
import type { SubcommandDeps } from '../index.js';
|
|
8
|
+
import { type CacheProvider } from './modeldiag-profiles.js';
|
|
9
|
+
export type ModelDiagConfig = {
|
|
10
|
+
provider: string;
|
|
11
|
+
model?: string;
|
|
12
|
+
providers?: Record<string, import('@wrongstack/core/types').ProviderConfig>;
|
|
13
|
+
modelMatrix?: Record<string, import('@wrongstack/core/types').ModelMatrixEntry>;
|
|
14
|
+
apiKey?: string;
|
|
15
|
+
baseUrl?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare function createProviderForId(providerId: string, cfg: {
|
|
18
|
+
providers?: Record<string, import('@wrongstack/core/types').ProviderConfig>;
|
|
19
|
+
apiKey?: string;
|
|
20
|
+
baseUrl?: string;
|
|
21
|
+
}): ReturnType<typeof makeProviderFromConfig> | undefined;
|
|
22
|
+
export declare function rankResponses(provider: ReturnType<typeof makeProviderFromConfig>, leaderModel: string, taskPrompt: string, responses: Array<{
|
|
23
|
+
model: string;
|
|
24
|
+
text: string;
|
|
25
|
+
}>): Promise<number[]>;
|
|
26
|
+
export declare function runModeldiagEval(args: string[], deps: SubcommandDeps, providers: CacheProvider[], config: ModelDiagConfig, hasKey: (pid: string) => boolean): Promise<number>;
|
|
27
|
+
//# sourceMappingURL=modeldiag-eval.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modeldiag live smoke-test subcommand handler.
|
|
3
|
+
*
|
|
4
|
+
* @module subcommands/handlers/modeldiag-test
|
|
5
|
+
*/
|
|
6
|
+
import type { SubcommandDeps } from '../index.js';
|
|
7
|
+
export declare function runModeldiagTest(args: string[], deps: SubcommandDeps, config: Record<string, unknown>): Promise<number>;
|
|
8
|
+
//# sourceMappingURL=modeldiag-test.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
helpCmd,
|
|
3
3
|
versionCmd
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XSG33WHN.js";
|
|
5
5
|
import "./chunk-XJXDOF63.js";
|
|
6
6
|
import "./chunk-7OCVIDC7.js";
|
|
7
7
|
export {
|
|
8
8
|
helpCmd,
|
|
9
9
|
versionCmd
|
|
10
10
|
};
|
|
11
|
-
//# sourceMappingURL=version-help-
|
|
11
|
+
//# sourceMappingURL=version-help-TFD6VPF3.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AgentPipelines } from '@wrongstack/core/agent';
|
|
2
|
+
export declare const VIBE_PROTOCOL_META_KEY = "vibeProtocol";
|
|
3
|
+
/**
|
|
4
|
+
* Installs the VIBE protocol on the shared Agent pipelines used by CLI, TUI,
|
|
5
|
+
* WebUI, and single-shot runs. A tagged user turn receives the synthesized spec
|
|
6
|
+
* and coder contract before the model runs; the first final text response is
|
|
7
|
+
* then audited and receives the durable three-stage report.
|
|
8
|
+
*/
|
|
9
|
+
export declare function installVibeProtocol(pipelines: AgentPipelines): void;
|
|
10
|
+
//# sourceMappingURL=vibe-protocol-wiring.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hot-reload provider credentials and routing configuration when config.json changes on disk.
|
|
3
|
+
*
|
|
4
|
+
* @module webui-server/credential-watcher
|
|
5
|
+
*/
|
|
6
|
+
import type { CliWebUIOptions } from '../webui-server-options.js';
|
|
7
|
+
import type { WSServerMessage } from './contracts.js';
|
|
8
|
+
export interface CredentialWatcherOptions {
|
|
9
|
+
opts: CliWebUIOptions;
|
|
10
|
+
profileConfigPath: string;
|
|
11
|
+
broadcast: (msg: WSServerMessage) => void;
|
|
12
|
+
broadcastSaved: (providers: Record<string, unknown>) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare function startWebuiCredentialWatcher({ opts, profileConfigPath, broadcast, broadcastSaved, }: CredentialWatcherOptions): (() => void) | undefined;
|
|
15
|
+
//# sourceMappingURL=credential-watcher.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Domain-specific WebSocket handlers (Goal, Worktree, Terminal, Specs, SDD).
|
|
3
|
+
*
|
|
4
|
+
* @module webui-server/domain-handlers
|
|
5
|
+
*/
|
|
6
|
+
import type { TrustBoundary } from '@wrongstack/core/security';
|
|
7
|
+
import { resolveWstackPaths } from '@wrongstack/core/utils';
|
|
8
|
+
import { GoalWebSocketHandler, SddBoardWebSocketHandler, SddWizardWebSocketHandler, SpecsWebSocketHandler, TerminalWebSocketHandler, WorktreeWebSocketHandler } from '@wrongstack/webui-server';
|
|
9
|
+
import type { CliWebUIOptions } from '../webui-server-options.js';
|
|
10
|
+
import type { KanbanRunMirror } from './kanban-run-mirror.js';
|
|
11
|
+
export interface DomainHandlersResult {
|
|
12
|
+
goalHandler: GoalWebSocketHandler;
|
|
13
|
+
worktreeHandler: WorktreeWebSocketHandler;
|
|
14
|
+
terminalHandler: TerminalWebSocketHandler;
|
|
15
|
+
specsHandler: SpecsWebSocketHandler;
|
|
16
|
+
sddBoardHandler: SddBoardWebSocketHandler;
|
|
17
|
+
sddWizardHandler: SddWizardWebSocketHandler | null;
|
|
18
|
+
specsPaths: ReturnType<typeof resolveWstackPaths> | null;
|
|
19
|
+
}
|
|
20
|
+
export declare function createWebuiDomainHandlers(opts: CliWebUIOptions, trustBoundary: TrustBoundary, kanbanRunMirror: KanbanRunMirror | null): DomainHandlersResult;
|
|
21
|
+
//# sourceMappingURL=domain-handlers.d.ts.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Route contexts assembly for embedded message router.
|
|
3
|
+
*
|
|
4
|
+
* @module webui-server/route-contexts
|
|
5
|
+
*/
|
|
6
|
+
import { type BrainHandlerContext, type CustomModeStore, type DesignContext, type EmbeddedAgentConfigContext, type EmbeddedConversationContext, type EmbeddedProjectContext, type EmbeddedSessionContext, type IntrospectionRouteContext, type PendingConfirm, type PrefsHandlerContext, type PromptsContext, type SkillsContext } from '@wrongstack/webui-server';
|
|
7
|
+
import type { WebSocket } from 'ws';
|
|
8
|
+
import type { CliWebUIOptions } from '../webui-server-options.js';
|
|
9
|
+
import type { WSServerMessage } from './contracts.js';
|
|
10
|
+
export interface RouteContextsParams {
|
|
11
|
+
opts: CliWebUIOptions;
|
|
12
|
+
profileConfigPath: string;
|
|
13
|
+
profileDir: string;
|
|
14
|
+
globalRoot: string;
|
|
15
|
+
sessionStartedAt: number;
|
|
16
|
+
currentSessionId: () => string;
|
|
17
|
+
getCustomModeStore: () => Promise<CustomModeStore>;
|
|
18
|
+
buildSessionStartPayload: (overrides?: Record<string, unknown>) => Promise<Record<string, unknown>>;
|
|
19
|
+
prefSnapshot: () => Record<string, unknown>;
|
|
20
|
+
persistPrefs: (patch: Record<string, unknown>) => Promise<void>;
|
|
21
|
+
pendingConfirms: Map<string, PendingConfirm>;
|
|
22
|
+
abortControllers: Map<string, AbortController>;
|
|
23
|
+
getAbortController: () => AbortController | null;
|
|
24
|
+
clearAbortController: () => void;
|
|
25
|
+
send: (ws: WebSocket, msg: WSServerMessage) => void;
|
|
26
|
+
broadcast: (msg: WSServerMessage) => void;
|
|
27
|
+
}
|
|
28
|
+
export declare function createWebuiRouteContexts({ opts, profileConfigPath, profileDir, globalRoot, sessionStartedAt, currentSessionId, getCustomModeStore, buildSessionStartPayload, prefSnapshot, persistPrefs, pendingConfirms, abortControllers, getAbortController, clearAbortController, send, broadcast, }: RouteContextsParams): {
|
|
29
|
+
brainCtx: BrainHandlerContext;
|
|
30
|
+
introspectionCtx: IntrospectionRouteContext;
|
|
31
|
+
skillsCtx: SkillsContext;
|
|
32
|
+
promptsCtx: PromptsContext;
|
|
33
|
+
designCtx: DesignContext;
|
|
34
|
+
agentConfigCtx: EmbeddedAgentConfigContext;
|
|
35
|
+
prefsCtx: PrefsHandlerContext;
|
|
36
|
+
projectsCtx: EmbeddedProjectContext;
|
|
37
|
+
mailboxRoutes: import("@wrongstack/webui-server").MailboxRouteHandlers;
|
|
38
|
+
sessionsCtx: EmbeddedSessionContext;
|
|
39
|
+
connectionCtx: EmbeddedConversationContext;
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=route-contexts.d.ts.map
|