@wrongstack/cli 0.302.0 → 0.302.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/data/providers.json +41 -155
- package/dist/{acp-DATHHPNT.js → acp-XCE4JJF3.js} +4 -4
- package/dist/{audit-QRCLEHHW.js → audit-BBR22QH3.js} +2 -2
- package/dist/{auth-PJD3JRH2.js → auth-K7CYVVKH.js} +121 -78
- package/dist/auth-menu/index.d.ts +5 -5
- package/dist/auth-menu/local.d.ts +4 -5
- package/dist/auth-menu/openai-codex-oauth.d.ts +1 -1
- package/dist/{auto-discover-providers-DRW4OZHG.js → auto-discover-providers-MHFLDSD3.js} +2 -2
- package/dist/{bench-7ZDWSNEF.js → bench-XNDUJOSZ.js} +10 -11
- package/dist/boot/auto-discover-providers.d.ts +1 -1
- package/dist/boot/container-wiring.d.ts +3 -3
- package/dist/boot/dispatch-webui.d.ts +1 -1
- package/dist/boot/system-prompt.d.ts +1 -2
- package/dist/boot/tool-registry.d.ts +1 -1
- package/dist/boot/tui-coordinator-setup.d.ts +1 -1
- package/dist/boot/tui-project-picker-callback.d.ts +1 -1
- package/dist/boot-config.d.ts +2 -2
- package/dist/boot.d.ts +1 -1
- package/dist/{chunk-ETOEGL3V.js → chunk-3IC4IEZC.js} +7 -2
- package/dist/{chunk-PFVVUH5B.js → chunk-3JPTNADJ.js} +3 -2
- package/dist/{chunk-4GVH7V3S.js → chunk-52C7PD2H.js} +1 -1
- package/dist/{chunk-OP47B3IX.js → chunk-7YLN7YUA.js} +7 -2
- package/dist/{chunk-263G3FMB.js → chunk-B4JLSXZB.js} +11 -14
- package/dist/{chunk-I5MEUFDI.js → chunk-BXQG3H2Y.js} +8 -3
- package/dist/{chunk-MT6FGXO3.js → chunk-C5NXM2SI.js} +19 -6
- package/dist/{chunk-XTIXVJXP.js → chunk-DGXNL7OT.js} +1 -1
- package/dist/{chunk-3MOUBRKZ.js → chunk-FJVCVZIV.js} +974 -935
- package/dist/{chunk-MRLYDHQ7.js → chunk-JQURRYU4.js} +4 -6
- package/dist/{chunk-ZECLGUTF.js → chunk-KV6DNQT6.js} +2 -2
- package/dist/{chunk-F4PEGAJZ.js → chunk-NUIHRGPY.js} +1 -1
- package/dist/{chunk-GUHQQG63.js → chunk-RK7E3IXT.js} +2 -4
- package/dist/{chunk-PYTFS4MC.js → chunk-SSSJQVUY.js} +27 -16
- package/dist/{chunk-PJHET45A.js → chunk-SZ42FYPT.js} +3 -3
- package/dist/{chunk-2KDOFTTM.js → chunk-WOXUE2CN.js} +1067 -900
- package/dist/{chunk-A6Q5KGLV.js → chunk-YKBRFSGL.js} +5 -5
- package/dist/cli-context.d.ts +2 -2
- package/dist/cli-eternal-flag.d.ts +1 -2
- package/dist/{cli-main-EOJ74CI4.js → cli-main-PJMDZHDK.js} +2680 -2133
- package/dist/context-limit.d.ts +11 -5
- package/dist/{diag-doctor-OQ3AA63O.js → diag-doctor-ZF5BF2MK.js} +2 -3
- package/dist/execute-deps.d.ts +1 -1
- package/dist/{execution-CQ772VPS.js → execution-LZRYRGDD.js} +234 -143
- package/dist/{export-DOBGPY23.js → export-CCUXRJOU.js} +3 -11
- package/dist/fleet/host-supervisor.d.ts +1 -1
- package/dist/fleet/host.d.ts +1 -1
- package/dist/fleet/routing.d.ts +1 -2
- package/dist/goal-host.d.ts +2 -2
- package/dist/hooks-wiring.d.ts +1 -1
- package/dist/{hq-LN5CJHCM.js → hq-AHPAE7EN.js} +104 -55
- package/dist/hq-command-controller.d.ts +1 -1
- package/dist/hq-server/routes/system-handlers.d.ts +1 -2
- package/dist/hq-server/routes.d.ts +7 -7
- package/dist/{hq-server-S7HZG3PA.js → hq-server-KU2Z54QU.js} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2635 -2642
- package/dist/mailbox-bridge-bootstrap.d.ts +2 -2
- package/dist/{mcp-OHPJH73U.js → mcp-E5EBGOHF.js} +6 -6
- package/dist/mcp-serve.d.ts +1 -1
- package/dist/{modeldiag-3DOK4BWW.js → modeldiag-SIVUOX2Y.js} +18 -13
- package/dist/{permissions-FNYLZIL4.js → permissions-2PWBL4YU.js} +5 -3
- package/dist/picker.d.ts +1 -1
- package/dist/plugin-management.d.ts +1 -1
- package/dist/{plugin-usage-YEVLOR33.js → plugin-usage-PTEETL3J.js} +2 -2
- package/dist/{plugins-K3BAUP4D.js → plugins-XRGWC3NJ.js} +3 -3
- package/dist/pre-launch.d.ts +2 -2
- package/dist/{providers-models-WEZ4EGLL.js → providers-models-VV74TRQ2.js} +86 -37
- package/dist/repl.d.ts +1 -1
- package/dist/{replay-FCBNHW3K.js → replay-WBRMEWQ5.js} +2 -2
- package/dist/{rewind-AOD3JIYX.js → rewind-7RE6ONIC.js} +17 -17
- package/dist/{sdd-runtime-AIJCJGWC.js → sdd-runtime-GFZ3NJKS.js} +2 -2
- package/dist/{sessions-config-XXN7267N.js → sessions-config-YX2ZPAFM.js} +36 -32
- package/dist/{simpleui-dist-JIFGUJO7.js → simpleui-dist-33VO3QHF.js} +9 -2
- package/dist/slash-commands/agents.d.ts +14 -0
- package/dist/slash-commands/command-context.d.ts +2 -3
- package/dist/slash-commands/helpers.d.ts +1 -1
- package/dist/slash-commands/index.d.ts +1 -1
- package/dist/slash-commands/intake.d.ts +10 -0
- package/dist/slash-commands/memory-triage.d.ts +1 -1
- package/dist/slash-commands/provider-status.d.ts +1 -1
- package/dist/subcommands/handlers/hq.d.ts +20 -0
- package/dist/subcommands/handlers/per-subcommand-help-data.d.ts +1 -1
- package/dist/{update-MV6TUACD.js → update-LTDJGAFU.js} +3 -3
- package/dist/{update-check-UMYTOH7Z.js → update-check-WARHSVZA.js} +2 -2
- package/dist/webui-server/connection-handler.d.ts +1 -1
- package/dist/webui-server/context-breakdown.d.ts +1 -1
- package/dist/webui-server/cost-helpers.d.ts +1 -1
- package/dist/webui-server/lifecycle.d.ts +1 -1
- package/dist/webui-server/prefs-seeding.d.ts +1 -1
- package/dist/webui-server/setup-events.d.ts +1 -1
- package/dist/webui-server/static-serve.d.ts +1 -1
- package/dist/{webui-server-NFNRGNNT.js → webui-server-E3OPEKU5.js} +18 -10
- package/dist/webui-server-options.d.ts +1 -1
- package/dist/wiring/command-host-state.d.ts +2 -2
- package/dist/wiring/controllers.d.ts +1 -2
- package/dist/wiring/dep-watcher.d.ts +1 -1
- package/dist/wiring/director-setup.d.ts +3 -3
- package/dist/wiring/eternal-command-handlers.d.ts +2 -2
- package/dist/wiring/management-tools.d.ts +2 -2
- package/dist/wiring/provider-runtime.d.ts +1 -1
- package/dist/wiring/provider-status.d.ts +1 -1
- package/dist/wiring/provider-utility-tools.d.ts +3 -3
- package/dist/wiring/provider.d.ts +1 -1
- package/dist/wiring/replay.d.ts +1 -1
- package/dist/wiring/runtime-controller-deps.d.ts +1 -1
- package/dist/wiring/runtime-dispatch-state.d.ts +1 -2
- package/dist/wiring/runtime-lifecycle-deps.d.ts +2 -2
- package/dist/wiring/runtime-picker-deps.d.ts +1 -2
- package/dist/wiring/sage.d.ts +1 -1
- package/dist/wiring/session-command-handlers.d.ts +1 -2
- package/dist/wiring/session.d.ts +6 -1
- package/dist/wiring/slash-commands.d.ts +2 -3
- package/package.json +23 -23
package/dist/context-limit.d.ts
CHANGED
|
@@ -21,14 +21,20 @@ export interface ResolveMaxContextInput {
|
|
|
21
21
|
* Resolve the max context WrongStack should use for compaction/status UI.
|
|
22
22
|
*
|
|
23
23
|
* Priority chain (first hit wins):
|
|
24
|
-
* 1.
|
|
25
|
-
*
|
|
26
|
-
*
|
|
24
|
+
* 1. providers.<id>.capabilities.maxContext — explicit per-provider override.
|
|
25
|
+
* Provider-SCOPED, so it can't silently pin unrelated providers.
|
|
26
|
+
* 2. sibling catalog for OAuth families — anthropic-oauth/openai-codex/
|
|
27
27
|
* github-copilot share their models with a canonical models.dev provider
|
|
28
28
|
* (anthropic/openai) but aren't themselves listed, so resolve the real
|
|
29
29
|
* per-model window there (e.g. Opus 4.8 → 1M, gpt-5.5 → 1.05M)
|
|
30
|
-
*
|
|
30
|
+
* 3. models.dev catalog (capabilitiesFor → getModel) — the published per-model
|
|
31
31
|
* window, keyed by provider (e.g. 1M for an OpenRouter model)
|
|
32
|
+
* 4. config.context.effectiveMaxContext — global FALLBACK for models whose
|
|
33
|
+
* window nothing published. It deliberately ranks BELOW the catalog: it is a
|
|
34
|
+
* single model-agnostic number, so honoring it above per-model facts pins
|
|
35
|
+
* every model of every provider to one value forever, invisibly. (A stale
|
|
36
|
+
* 128k here once collapsed 1M-window models to 128k across the whole config.)
|
|
37
|
+
* To cap ONE provider on purpose, use (1) — that is what it is for.
|
|
32
38
|
* 5. provider.capabilities.maxContext — family default (may be 0)
|
|
33
39
|
*
|
|
34
40
|
* Returns 0 when the context window cannot be determined — callers should
|
|
@@ -48,7 +54,7 @@ export interface ResolveMaxContextInput {
|
|
|
48
54
|
* their cause (e.g. a family-default fallthrough or a diverging proxy baseUrl
|
|
49
55
|
* that silently shrinks the window). See {@link resolveRuntimeMaxContextDetailed}.
|
|
50
56
|
*/
|
|
51
|
-
export type MaxContextBranch = 'explicit-config' | 'provider-override' | 'sibling-capabilities' | 'sibling-direct-model' | 'catalog-capabilities' | 'catalog-direct-model' | 'family-default' | 'diverging-baseurl-family-default' | 'unknown';
|
|
57
|
+
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';
|
|
52
58
|
export interface ResolvedMaxContext {
|
|
53
59
|
/** The resolved window (0 = unknown). */
|
|
54
60
|
maxContext: number;
|
|
@@ -7,8 +7,7 @@ import "./chunk-7OCVIDC7.js";
|
|
|
7
7
|
import * as fs from "node:fs/promises";
|
|
8
8
|
import * as os from "node:os";
|
|
9
9
|
import * as path from "node:path";
|
|
10
|
-
import { color } from "@wrongstack/core/utils";
|
|
11
|
-
import { toErrorMessage } from "@wrongstack/core/utils";
|
|
10
|
+
import { color, toErrorMessage } from "@wrongstack/core/utils";
|
|
12
11
|
var diagCmd = async (_args, deps) => {
|
|
13
12
|
const cfg = deps.config;
|
|
14
13
|
const age = await deps.modelsRegistry.ageSeconds();
|
|
@@ -167,4 +166,4 @@ export {
|
|
|
167
166
|
diagCmd,
|
|
168
167
|
doctorCmd
|
|
169
168
|
};
|
|
170
|
-
//# sourceMappingURL=diag-doctor-
|
|
169
|
+
//# sourceMappingURL=diag-doctor-ZF5BF2MK.js.map
|
package/dist/execute-deps.d.ts
CHANGED
|
@@ -15,11 +15,11 @@ import type { JournalEntry } from '@wrongstack/core/goal';
|
|
|
15
15
|
import type { EventBus } from '@wrongstack/core/kernel';
|
|
16
16
|
import type { SlashCommandRegistry } from '@wrongstack/core/registry';
|
|
17
17
|
import type { QueueStore } from '@wrongstack/core/storage';
|
|
18
|
-
import type { WebuiSessionChildOptions } from './boot/webui-session-child.js';
|
|
19
18
|
import type { AttachmentStore, AutonomyStage, Config, ConfigStore, MemoryPort, Message, ModelsRegistry, ModeStore, PromptLoader, ProviderConfig, ResolvedProvider, SessionEvent, SessionStore, SessionWriter, SkillLoader, TokenCounter } from '@wrongstack/core/types';
|
|
20
19
|
import type { WstackPaths } from '@wrongstack/core/utils';
|
|
21
20
|
import type { MCPRegistry } from '@wrongstack/mcp';
|
|
22
21
|
import type { SddLifecycleResult, SddRunControl } from '@wrongstack/sdd';
|
|
22
|
+
import type { WebuiSessionChildOptions } from './boot/webui-session-child.js';
|
|
23
23
|
import type { ReadlineInputReader } from './input-reader.js';
|
|
24
24
|
import type { LiveSettingsInput } from './live-settings-input.js';
|
|
25
25
|
import type { TerminalRenderer } from './renderer.js';
|