@wrongstack/cli 1.0.24 → 1.0.26
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/data/providers.json +44 -0
- package/dist/{acp-AJWSKWE5.js → acp-LI665LO2.js} +5 -5
- package/dist/ascii-mode-SG4PRNLP.js +7 -0
- package/dist/{auth-GRBZ7Y3D.js → auth-TE55JF4Z.js} +14 -14
- package/dist/{bench-N5K7Z5O3.js → bench-GTLPM22B.js} +2 -2
- package/dist/boot/append-system-prompt.d.ts +10 -0
- package/dist/boot/ascii-mode.d.ts +12 -0
- package/dist/boot/container-wiring.d.ts +4 -2
- package/dist/boot/dispatch-singleshot.d.ts +4 -1
- package/dist/boot/mcp-config-flag.d.ts +22 -0
- package/dist/boot/piped-stdin.d.ts +40 -0
- package/dist/boot/restricted-mode.d.ts +15 -0
- package/dist/boot/safe-mode.d.ts +30 -0
- package/dist/boot/single-shot-budget.d.ts +30 -0
- package/dist/boot/stream-json.d.ts +36 -0
- package/dist/boot/structured-output.d.ts +16 -0
- package/dist/boot/system-prompt-builder.d.ts +2 -0
- package/dist/boot/tool-restriction-flags.d.ts +36 -0
- package/dist/boot/worktree-sessions.d.ts +21 -0
- package/dist/boot-provider-selection.d.ts +67 -0
- package/dist/boot.d.ts +1 -38
- package/dist/{chunk-LFMVHT3R.js → chunk-2ERX3RPN.js} +11 -13
- package/dist/chunk-4TVYGG6G.js +62 -0
- package/dist/chunk-5JYDKG5B.js +154 -0
- package/dist/{chunk-3VXYY5JC.js → chunk-5UZBUV2H.js} +3 -19
- package/dist/chunk-BEHGRNOQ.js +58 -0
- package/dist/chunk-CZTXF6HY.js +140 -0
- package/dist/{chunk-SKPDE62W.js → chunk-EPR42SWM.js} +36 -6
- package/dist/{chunk-YBUCXXYZ.js → chunk-F5DCFAKI.js} +1 -1
- package/dist/chunk-HLSHFXTO.js +97 -0
- package/dist/{chunk-BLD5DSVA.js → chunk-KJS5543T.js} +2 -2
- package/dist/{chunk-QFPQXKCG.js → chunk-KOEO4CJG.js} +21 -6
- package/dist/chunk-LBPLTTZ6.js +105 -0
- package/dist/{chunk-3OCUS3VN.js → chunk-LDCGZJTC.js} +4 -4
- package/dist/chunk-LKPEBZBE.js +143 -0
- package/dist/{chunk-DRM7PSW7.js → chunk-OAVBM55Q.js} +3 -3
- package/dist/chunk-PZQBGUVZ.js +18 -0
- package/dist/{chunk-MHEBWVXL.js → chunk-Q4INH2DG.js} +46 -2
- package/dist/{chunk-ZZRSG7VK.js → chunk-RZ4ZDRYA.js} +3 -3
- package/dist/{chunk-U46QR4WR.js → chunk-TI7KLHYX.js} +132 -3
- package/dist/{chunk-PGKJ2OQP.js → chunk-WQV2NP57.js} +5 -5
- package/dist/chunk-X756ZS72.js +329 -0
- package/dist/{chunk-JF2MULWF.js → chunk-YHYINL47.js} +47 -15
- package/dist/{cli-context-34Q5IJRA.js → cli-context-UVGAN3NO.js} +407 -327
- package/dist/{cli-main-AELJDBGU.js → cli-main-TN3KZ2P6.js} +2652 -1978
- package/dist/cli-update-notice.d.ts +2 -1
- package/dist/config-doctor.d.ts +1 -1
- package/dist/{diag-doctor-WIFJH3XH.js → diag-doctor-BIZAFIAT.js} +2 -2
- package/dist/{execution-PYC5FCS4.js → execution-7QIP6GRY.js} +1948 -1666
- package/dist/fleet/host-types.d.ts +3 -1
- package/dist/goal-commands.d.ts +47 -0
- package/dist/goal-host.d.ts +1 -14
- package/dist/{hq-JTUTFI4L.js → hq-GLZ7QESM.js} +6 -6
- package/dist/{hq-server-PC7GZMPT.js → hq-server-YTKDVQPY.js} +2 -2
- package/dist/{hq-service-NW56MUP2.js → hq-service-BMMJAHRT.js} +4 -4
- package/dist/import-claude-code-32PCSIQI.js +236 -0
- package/dist/index.js +12 -8
- package/dist/{mailbox-serve-WDOCH6KR.js → mailbox-serve-NW5VZG7R.js} +3 -3
- package/dist/{modeldiag-36OGAL5C.js → modeldiag-36VODVIH.js} +8 -8
- package/dist/{per-subcommand-help-XE77MTGJ.js → per-subcommand-help-QDAQASPZ.js} +2 -2
- package/dist/permission-prompt.d.ts +14 -0
- package/dist/permission-rules-view.d.ts +18 -0
- package/dist/{permissions-CFDLXETM.js → permissions-PL27UHYD.js} +67 -45
- package/dist/{plugin-usage-S5LVGMBW.js → plugin-usage-CIGOOTX3.js} +2 -2
- package/dist/{plugins-RHBIVLI7.js → plugins-HQTXUD6A.js} +4 -2
- package/dist/preflight.d.ts +1 -1
- package/dist/{projects-LMNAGGEU.js → projects-T4CZCA25.js} +3 -6
- package/dist/provider-helpers.d.ts +7 -11
- package/dist/{providers-models-2CFG46RD.js → providers-models-5Z2PJTEW.js} +5 -5
- package/dist/release-asset-download.d.ts +10 -0
- package/dist/release-attestation.d.ts +28 -0
- package/dist/remote/remote-session.d.ts +64 -0
- package/dist/remote/remote-target.d.ts +69 -0
- package/dist/remote-O5WXHLWV.js +561 -0
- package/dist/{replay-Z3FTJEMM.js → replay-DEI566CW.js} +2 -2
- package/dist/services/commit-message.d.ts +2 -1
- package/dist/session-move-P2EC2COA.js +44 -0
- package/dist/session-move.d.ts +20 -0
- package/dist/session-stats.d.ts +10 -0
- package/dist/{sessions-config-IQUH2GXT.js → sessions-config-SXTTLNXA.js} +35 -5
- package/dist/short-circuit-flags-74Y5N6CF.js +10 -0
- package/dist/slash-commands/command-context.d.ts +15 -5
- package/dist/slash-commands/goal-refiner.d.ts +4 -49
- package/dist/slash-commands/mcp.d.ts +2 -1
- package/dist/slash-commands/permissions.d.ts +4 -0
- package/dist/slash-commands/settings-context-mutations.d.ts +5 -0
- package/dist/slash-commands/settings-limits-mutations.d.ts +12 -0
- package/dist/standalone-auto-update-TOTRGCSA.js +249 -0
- package/dist/standalone-auto-update.d.ts +65 -0
- package/dist/standalone-update-LZO3MNLH.js +24 -0
- package/dist/standalone-update.d.ts +37 -1
- package/dist/subcommands/handlers/import-claude-code.d.ts +42 -0
- package/dist/subcommands/handlers/permissions.d.ts +9 -3
- package/dist/subcommands/handlers/remote.d.ts +6 -0
- package/dist/subcommands/handlers/version-help.d.ts +5 -0
- package/dist/{subcommands-ZTSIN7LG.js → subcommands-Q6ORSB2E.js} +2 -2
- package/dist/tui-resume-callback.d.ts +18 -0
- package/dist/{typesafe-HVEVPA6R.js → typesafe-U7YB2RRV.js} +5 -5
- package/dist/{typesafe-topic-replay-4W73BOLV.js → typesafe-topic-replay-ZILIU3WS.js} +18 -2
- package/dist/{update-7XIOEXTD.js → update-TDZX4IL2.js} +4 -4
- package/dist/{update-check-2POMBHFB.js → update-check-J5ZVKS73.js} +3 -3
- package/dist/version-JB2UAV2A.js +11 -0
- package/dist/version-help-XJJQ7YSH.js +10 -0
- package/dist/webui-server/route-contexts.d.ts +1 -1
- package/dist/webui-server/session-start-payload.d.ts +5 -1
- package/dist/{webui-server-L2SICPTB.js → webui-server-YTHLRFD2.js} +509 -366
- package/dist/webui-server-lifecycle.d.ts +57 -0
- package/dist/webui-server.d.ts +0 -14
- package/dist/wiring/brain-and-orchestration.d.ts +3 -1
- package/dist/wiring/cli-prompt-and-tools-setup.d.ts +9 -0
- package/dist/wiring/cli-slash-commands-setup.d.ts +1 -0
- package/dist/wiring/lifecycle-plugins.d.ts +4 -2
- package/dist/wiring/metrics.d.ts +9 -1
- package/dist/wiring/pipeline.d.ts +2 -7
- package/dist/wiring/plugins.d.ts +3 -0
- package/dist/wiring/provider-status.d.ts +1 -0
- package/dist/wiring/provider-utility-tools.d.ts +3 -1
- package/package.json +28 -28
- package/dist/chunk-2BKFWIER.js +0 -98
- package/dist/chunk-424ORSE7.js +0 -56
- package/dist/chunk-QBBF7GIK.js +0 -65
- package/dist/short-circuit-flags-SDT53OML.js +0 -10
- package/dist/standalone-update-MW47J3AK.js +0 -164
- package/dist/version-help-WZ623NWM.js +0 -10
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import type { SubcommandHandler } from '../contracts.js';
|
|
2
2
|
/**
|
|
3
|
+
* `wstack permissions rules [--json]`
|
|
3
4
|
* `wstack permissions explain <tool> --input '<json>' [--json]`
|
|
4
5
|
*
|
|
5
|
-
* Side-effect-free permission
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* Side-effect-free views of the permission policy. Both build the policy the
|
|
7
|
+
* agent itself runs under (`createProjectPermissionPolicy`: directory rules,
|
|
8
|
+
* trust file, YOLO and `autonomy.yoloConfirm` from the config) for a fresh
|
|
9
|
+
* session, without prompting the user, writing to trust files, or mutating
|
|
10
|
+
* session state. `rules` lists every rule in the order they are checked;
|
|
11
|
+
* `explain` traces one call and names the rule that decided it. Inside a
|
|
12
|
+
* session, `/permissions` shows the same with that session's YOLO, answers
|
|
13
|
+
* and session rules.
|
|
8
14
|
*/
|
|
9
15
|
export declare const permissionsCmd: SubcommandHandler;
|
|
10
16
|
//# sourceMappingURL=permissions.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TerminalRenderer } from '../../renderer.js';
|
|
2
|
+
import type { SubcommandHandler } from '../contracts.js';
|
|
3
|
+
export declare function runRemoteCommand(args: string[], flags: Record<string, string | boolean>, renderer: Pick<TerminalRenderer, 'writeLine'>): Promise<number>;
|
|
4
|
+
/** Registry entry; `boot()` normally dispatches `remote` before loading any config. */
|
|
5
|
+
export declare const remoteCmd: SubcommandHandler;
|
|
6
|
+
//# sourceMappingURL=remote.d.ts.map
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { SubcommandHandler } from '../contracts.js';
|
|
2
2
|
export declare const versionCmd: SubcommandHandler;
|
|
3
|
+
/**
|
|
4
|
+
* Global help. Every row here must name something the CLI actually reads —
|
|
5
|
+
* `wstack <command> --help` carries the per-command detail, so this page
|
|
6
|
+
* groups by what the user is trying to do rather than listing everything.
|
|
7
|
+
*/
|
|
3
8
|
export declare const helpCmd: SubcommandHandler;
|
|
4
9
|
//# sourceMappingURL=version-help.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { SessionLoadProgress } from '@wrongstack/core/types';
|
|
2
|
+
export declare function createTuiResumeCallback({ state, agent, tokenCounter, switchProviderAndModel, events, }: {
|
|
3
|
+
state: import('./boot/tui-runtime-state.js').TuiRuntimeState;
|
|
4
|
+
agent: import('@wrongstack/core/agent').Agent;
|
|
5
|
+
tokenCounter: import('@wrongstack/core/types').TokenCounter;
|
|
6
|
+
switchProviderAndModel: (providerId: string, modelId: string) => string | Promise<string | null> | null;
|
|
7
|
+
events: import('@wrongstack/core/kernel').EventBus;
|
|
8
|
+
}): (sessionId: string, onLoadProgress?: (progress: SessionLoadProgress) => void, onStage?: (stage: string) => void) => Promise<{
|
|
9
|
+
entries: unknown[];
|
|
10
|
+
nextId: number;
|
|
11
|
+
sessionId: string;
|
|
12
|
+
attached: boolean;
|
|
13
|
+
warnings: string[];
|
|
14
|
+
contextSnapshot?: import("@wrongstack/core/types").ContextSnapshot | undefined;
|
|
15
|
+
lastAssistantText?: string | undefined;
|
|
16
|
+
nextSteps: string[];
|
|
17
|
+
}>;
|
|
18
|
+
//# sourceMappingURL=tui-resume-callback.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
activeProfileConfigPath
|
|
3
|
-
} from "./chunk-YMXXOOFN.js";
|
|
4
1
|
import {
|
|
5
2
|
maskedKey,
|
|
6
3
|
mutateConfigProviders
|
|
7
4
|
} from "./chunk-LUMETJFO.js";
|
|
5
|
+
import {
|
|
6
|
+
activeProfileConfigPath
|
|
7
|
+
} from "./chunk-YMXXOOFN.js";
|
|
8
8
|
|
|
9
9
|
// src/subcommands/handlers/typesafe.ts
|
|
10
10
|
import { execFile } from "node:child_process";
|
|
@@ -67,7 +67,7 @@ var typesafeCmd = async (args, deps) => {
|
|
|
67
67
|
case "lint-conventions":
|
|
68
68
|
return await lintConventions(deps, write);
|
|
69
69
|
case "replay-topic-shift":
|
|
70
|
-
return await (await import("./typesafe-topic-replay-
|
|
70
|
+
return await (await import("./typesafe-topic-replay-ZILIU3WS.js")).replayTopicShift(deps, write);
|
|
71
71
|
case "replay-memory-triage":
|
|
72
72
|
return await (await import("./typesafe-triage-replay-FGAW7QM7.js")).replayMemoryTriage(deps, write);
|
|
73
73
|
case "replay-brain-ledger":
|
|
@@ -313,4 +313,4 @@ async function lintConventions(deps, write) {
|
|
|
313
313
|
export {
|
|
314
314
|
typesafeCmd
|
|
315
315
|
};
|
|
316
|
-
//# sourceMappingURL=typesafe-
|
|
316
|
+
//# sourceMappingURL=typesafe-U7YB2RRV.js.map
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveRuntimeMaxContext
|
|
3
|
+
} from "./chunk-CZTXF6HY.js";
|
|
1
4
|
import {
|
|
2
5
|
createProviderForId
|
|
3
6
|
} from "./chunk-BBHWW6LR.js";
|
|
@@ -85,10 +88,23 @@ async function replayTopicShift(deps, write) {
|
|
|
85
88
|
return 2;
|
|
86
89
|
}
|
|
87
90
|
const limit = Math.max(1, Number(flags["limit"]) || 40);
|
|
88
|
-
const maxContext = Math.max(1, Number(flags["max-context"]) || 2e5);
|
|
89
91
|
const sessionsRoot = typeof flags["sessions"] === "string" ? path.resolve(flags["sessions"]) : path.join(deps.paths.projectDir, "sessions");
|
|
90
92
|
const providerId = typeof flags["provider"] === "string" ? flags["provider"] : deps.config.provider;
|
|
91
93
|
const model = typeof flags["model"] === "string" ? flags["model"] : deps.config.model;
|
|
94
|
+
const flagMaxContext = Number(flags["max-context"]);
|
|
95
|
+
const maxContext = Number.isFinite(flagMaxContext) && flagMaxContext > 0 ? Math.floor(flagMaxContext) : await resolveRuntimeMaxContext({
|
|
96
|
+
modelsRegistry: deps.modelsRegistry,
|
|
97
|
+
config: deps.config,
|
|
98
|
+
provider: { capabilities: { maxContext: 0 } },
|
|
99
|
+
providerId,
|
|
100
|
+
modelId: model
|
|
101
|
+
}).catch(() => 0);
|
|
102
|
+
if (maxContext <= 0) {
|
|
103
|
+
write(
|
|
104
|
+
`${color.red("\u2717")} Context window of ${providerId}/${model} is unknown. Pass --max-context <tokens>.`
|
|
105
|
+
);
|
|
106
|
+
return 2;
|
|
107
|
+
}
|
|
92
108
|
const provider = flags["no-llm"] === true ? void 0 : createProviderForId(providerId, deps.config);
|
|
93
109
|
const judge = { client: account.client, model: account.model, feature: "topicShift" };
|
|
94
110
|
const reached = [];
|
|
@@ -215,4 +231,4 @@ async function replayTopicShift(deps, write) {
|
|
|
215
231
|
export {
|
|
216
232
|
replayTopicShift
|
|
217
233
|
};
|
|
218
|
-
//# sourceMappingURL=typesafe-topic-replay-
|
|
234
|
+
//# sourceMappingURL=typesafe-topic-replay-ZILIU3WS.js.map
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
detectUpdatePackageName,
|
|
4
4
|
runUpdateCommand,
|
|
5
5
|
updateCmd
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KOEO4CJG.js";
|
|
7
7
|
import "./chunk-U3SS4NRH.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-RZ4ZDRYA.js";
|
|
9
|
+
import "./chunk-F5DCFAKI.js";
|
|
10
10
|
export {
|
|
11
11
|
detectUpdatePackageManager,
|
|
12
12
|
detectUpdatePackageName,
|
|
13
13
|
runUpdateCommand,
|
|
14
14
|
updateCmd
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=update-
|
|
16
|
+
//# sourceMappingURL=update-TDZX4IL2.js.map
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
fetchLatestFromNpm,
|
|
6
6
|
getUpdateNotification,
|
|
7
7
|
isNewer
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-RZ4ZDRYA.js";
|
|
9
|
+
import "./chunk-F5DCFAKI.js";
|
|
10
10
|
export {
|
|
11
11
|
cachePath,
|
|
12
12
|
checkForUpdate,
|
|
@@ -15,4 +15,4 @@ export {
|
|
|
15
15
|
getUpdateNotification,
|
|
16
16
|
isNewer
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=update-check-
|
|
18
|
+
//# sourceMappingURL=update-check-J5ZVKS73.js.map
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @module webui-server/route-contexts
|
|
5
5
|
*/
|
|
6
6
|
import type { Agent } from '@wrongstack/core/agent';
|
|
7
|
-
import type
|
|
7
|
+
import { type SessionWriter } from '@wrongstack/core/types';
|
|
8
8
|
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';
|
|
9
9
|
import type { WebSocket } from 'ws';
|
|
10
10
|
import type { CliWebUIOptions } from '../webui-server-options.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Context } from '@wrongstack/core/agent';
|
|
2
|
-
import type { ModelsRegistry } from '@wrongstack/core/types';
|
|
2
|
+
import type { Config, ModelsRegistry } from '@wrongstack/core/types';
|
|
3
3
|
import type { UpdateInfo } from '../update-check.js';
|
|
4
4
|
/** @see UpdateInfo in ../update-check.ts for the canonical shape. */
|
|
5
5
|
export type BootUpdateInfo = UpdateInfo;
|
|
@@ -25,6 +25,10 @@ export interface SessionStartPayloadDeps {
|
|
|
25
25
|
*/
|
|
26
26
|
getSessionContext?: ((sessionId: string) => Context | undefined) | undefined;
|
|
27
27
|
modelsRegistry?: ModelsRegistry | undefined;
|
|
28
|
+
/** Saved providers, to find an alias's catalog entry (`work` → `anthropic`). */
|
|
29
|
+
appConfig?: {
|
|
30
|
+
providers?: Config['providers'];
|
|
31
|
+
} | undefined;
|
|
28
32
|
statusTracker?: import('@wrongstack/core/coordination').ProviderModelStatusTracker | undefined;
|
|
29
33
|
modeId?: string | undefined;
|
|
30
34
|
projectRoot?: string | undefined;
|