@wrongstack/core 0.109.1 → 0.119.1
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/{agent-bridge-mOxbpFcg.d.ts → agent-bridge-PRAbEX-9.d.ts} +1 -1
- package/dist/{agent-subagent-runner-DukQLUcS.d.ts → agent-subagent-runner-DXWImnNV.d.ts} +7 -8
- package/dist/{brain-Dfv4Y82E.d.ts → brain-NZZqL8sn.d.ts} +1 -1
- package/dist/{compactor-DXLxLcmU.d.ts → compactor-C3stu664.d.ts} +1 -1
- package/dist/{config-BSU-6vah.d.ts → config-DZV9VK9n.d.ts} +104 -3
- package/dist/{context-CNRYfhUv.d.ts → context-hvXINa6a.d.ts} +31 -1
- package/dist/coordination/index.d.ts +12 -13
- package/dist/coordination/index.js +198 -0
- package/dist/coordination/index.js.map +1 -1
- package/dist/defaults/index.d.ts +26 -27
- package/dist/defaults/index.js +243 -35
- package/dist/defaults/index.js.map +1 -1
- package/dist/execution/index.d.ts +15 -16
- package/dist/execution/index.js +209 -5
- package/dist/execution/index.js.map +1 -1
- package/dist/extension/index.d.ts +6 -7
- package/dist/{goal-preamble-CI8lxeY1.d.ts → goal-preamble-COpt55W8.d.ts} +10 -10
- package/dist/{index-DIKEcfgC.d.ts → index-4VVHuTZF.d.ts} +7 -6
- package/dist/{index-BWRN6wOb.d.ts → index-Cj3le7TI.d.ts} +9 -10
- package/dist/index.d.ts +40 -41
- package/dist/index.js +298 -43
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/index.d.ts +6 -7
- package/dist/kernel/index.d.ts +10 -11
- package/dist/llm-selector-Bmx4PsVM.d.ts +58 -0
- package/dist/{mcp-servers-CXCsANdY.d.ts → mcp-servers-CofNHOqn.d.ts} +3 -3
- package/dist/{mode-ARA3HrkY.d.ts → mode-CZlO9iU1.d.ts} +1 -1
- package/dist/models/index.d.ts +157 -53
- package/dist/models/index.js +423 -1
- package/dist/models/index.js.map +1 -1
- package/dist/{models-registry-DU64QxQa.d.ts → models-registry-BzlsjKcy.d.ts} +1 -1
- package/dist/{multi-agent-coordinator-51LvnXkD.d.ts → multi-agent-coordinator-CmDmUgq2.d.ts} +1 -1
- package/dist/{null-fleet-bus-D09hMzFQ.d.ts → null-fleet-bus-CyH2YqP4.d.ts} +6 -6
- package/dist/observability/index.d.ts +2 -2
- package/dist/{parallel-eternal-engine-B2CbsKpc.d.ts → parallel-eternal-engine-uxVm4y4V.d.ts} +8 -8
- package/dist/{path-resolver-DDJiMAtX.d.ts → path-resolver-gfoGxpdd.d.ts} +3 -3
- package/dist/{permission-BDv7z0mk.d.ts → permission-DhLrgA30.d.ts} +1 -1
- package/dist/{permission-policy-dF74EpDp.d.ts → permission-policy-DGOvne7i.d.ts} +2 -2
- package/dist/{pipeline-BqiA_UMr.d.ts → pipeline-CqF7uju2.d.ts} +2 -2
- package/dist/{plan-templates-BdDxl9cI.d.ts → plan-templates-DoKhzenv.d.ts} +6 -6
- package/dist/{provider-runner-BUunikwY.d.ts → provider-runner-BPlI5sPZ.d.ts} +3 -3
- package/dist/{retry-policy-BcmuT_V0.d.ts → retry-policy-B4Q-FZgE.d.ts} +1 -1
- package/dist/sdd/index.d.ts +8 -9
- package/dist/sdd/index.js +198 -0
- package/dist/sdd/index.js.map +1 -1
- package/dist/{secret-vault-DrOhc2i5.d.ts → secret-vault-B7GnL6o9.d.ts} +1 -1
- package/dist/security/index.d.ts +4 -4
- package/dist/{selector-C7wcdqMA.d.ts → selector-BakeMnWR.d.ts} +1 -1
- package/dist/{session-event-bridge-BpJ5trO9.d.ts → session-event-bridge-DE5Oekwx.d.ts} +1 -1
- package/dist/{session-reader-DDz1Ek4V.d.ts → session-reader-DFC81-4p.d.ts} +1 -1
- package/dist/storage/index.d.ts +11 -12
- package/dist/storage/index.js +43 -34
- package/dist/storage/index.js.map +1 -1
- package/dist/types/index.d.ts +19 -20
- package/dist/types/index.js +35 -1
- package/dist/types/index.js.map +1 -1
- package/dist/utils/index.d.ts +3 -4
- package/dist/utils/index.js +2 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/{wstack-paths-_lqjzErq.d.ts → wstack-paths-DD50Omgn.d.ts} +3 -0
- package/package.json +1 -1
- package/dist/models-registry-B6_KfS65.d.ts +0 -95
|
@@ -54,6 +54,9 @@ interface WstackPaths {
|
|
|
54
54
|
projectMeta: string;
|
|
55
55
|
/** ~/.wrongstack/projects/<hash>/config.local.json — optional override */
|
|
56
56
|
projectLocalConfig: string;
|
|
57
|
+
/** <project>/.wrongstack/config.json — per-project settings (safe fields only).
|
|
58
|
+
* This lives inside the project root so it can be gitignored or shared. */
|
|
59
|
+
inProjectConfig: string;
|
|
57
60
|
/** <project>/.wrongstack/AGENTS.md — committed project memory. */
|
|
58
61
|
inProjectAgentsFile: string;
|
|
59
62
|
/** <project>/.wrongstack/skills — committed project skills. */
|
package/package.json
CHANGED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Mirror of the models.dev/api.json schema. Top-level is keyed by provider id.
|
|
3
|
-
* We keep `unknown` for fields we don't read so the cached payload stays faithful.
|
|
4
|
-
*/
|
|
5
|
-
interface ModelsDevModel {
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
family?: string | undefined;
|
|
9
|
-
attachment?: boolean | undefined;
|
|
10
|
-
reasoning?: boolean | undefined;
|
|
11
|
-
tool_call?: boolean | undefined;
|
|
12
|
-
temperature?: boolean | undefined;
|
|
13
|
-
knowledge?: string | undefined;
|
|
14
|
-
release_date?: string | undefined;
|
|
15
|
-
last_updated?: string | undefined;
|
|
16
|
-
open_weights?: boolean | undefined;
|
|
17
|
-
modalities?: {
|
|
18
|
-
input?: string[] | undefined;
|
|
19
|
-
output?: string[] | undefined;
|
|
20
|
-
};
|
|
21
|
-
cost?: {
|
|
22
|
-
input?: number | undefined;
|
|
23
|
-
output?: number | undefined;
|
|
24
|
-
cache_read?: number | undefined;
|
|
25
|
-
cache_write?: number | undefined;
|
|
26
|
-
[k: string]: number | undefined;
|
|
27
|
-
};
|
|
28
|
-
limit?: {
|
|
29
|
-
context?: number | undefined;
|
|
30
|
-
output?: number | undefined;
|
|
31
|
-
};
|
|
32
|
-
[k: string]: unknown;
|
|
33
|
-
}
|
|
34
|
-
interface ModelsDevProvider {
|
|
35
|
-
id: string;
|
|
36
|
-
name: string;
|
|
37
|
-
/** Env vars that hold the API key, in priority order. */
|
|
38
|
-
env?: string[] | undefined;
|
|
39
|
-
/** Identifies the wire format family (e.g. @ai-sdk/anthropic). */
|
|
40
|
-
npm?: string | undefined;
|
|
41
|
-
/** Default base URL when not provided by SDK defaults. */
|
|
42
|
-
api?: string | undefined;
|
|
43
|
-
/** Documentation URL. */
|
|
44
|
-
doc?: string | undefined;
|
|
45
|
-
models: Record<string, ModelsDevModel>;
|
|
46
|
-
}
|
|
47
|
-
type ModelsDevPayload = Record<string, ModelsDevProvider>;
|
|
48
|
-
/**
|
|
49
|
-
* Canonical wire-format families WrongStack knows how to speak natively.
|
|
50
|
-
* Used by the provider registry to pick a transport.
|
|
51
|
-
*/
|
|
52
|
-
type WireFamily = 'anthropic' | 'openai' | 'openai-compatible' | 'google' | 'unsupported';
|
|
53
|
-
interface ResolvedProvider {
|
|
54
|
-
id: string;
|
|
55
|
-
name: string;
|
|
56
|
-
family: WireFamily;
|
|
57
|
-
apiBase?: string | undefined;
|
|
58
|
-
envVars: string[];
|
|
59
|
-
doc?: string | undefined;
|
|
60
|
-
models: ModelsDevModel[];
|
|
61
|
-
npm?: string | undefined;
|
|
62
|
-
}
|
|
63
|
-
interface ResolvedModel {
|
|
64
|
-
providerId: string;
|
|
65
|
-
modelId: string;
|
|
66
|
-
capabilities: {
|
|
67
|
-
tools: boolean;
|
|
68
|
-
vision: boolean;
|
|
69
|
-
reasoning: boolean;
|
|
70
|
-
maxContext: number;
|
|
71
|
-
maxOutput?: number | undefined;
|
|
72
|
-
knowledge?: string | undefined;
|
|
73
|
-
};
|
|
74
|
-
cost?: ModelsDevModel['cost'] | undefined;
|
|
75
|
-
}
|
|
76
|
-
interface ModelsRegistry {
|
|
77
|
-
/** Load (from cache or network). Idempotent; second call returns cached value. */
|
|
78
|
-
load(opts?: {
|
|
79
|
-
force?: boolean | undefined;
|
|
80
|
-
}): Promise<ModelsDevPayload>;
|
|
81
|
-
/** Force-refresh from network and overwrite cache. */
|
|
82
|
-
refresh(): Promise<ModelsDevPayload>;
|
|
83
|
-
/** All providers, classified by wire family. */
|
|
84
|
-
listProviders(): Promise<ResolvedProvider[]>;
|
|
85
|
-
/** A single provider by id, or undefined. */
|
|
86
|
-
getProvider(id: string): Promise<ResolvedProvider | undefined>;
|
|
87
|
-
/** A model lookup with capabilities + cost. */
|
|
88
|
-
getModel(providerId: string, modelId: string): Promise<ResolvedModel | undefined>;
|
|
89
|
-
/** Suggest a default model for the given provider (latest by release_date). */
|
|
90
|
-
suggestModel(providerId: string): Promise<string | undefined>;
|
|
91
|
-
/** Cache freshness in seconds since last successful network fetch (Infinity if never). */
|
|
92
|
-
ageSeconds(): Promise<number>;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export type { ModelsRegistry as M, ResolvedProvider as R, WireFamily as W, ModelsDevPayload as a, ResolvedModel as b, ModelsDevProvider as c };
|