@wrongstack/core 0.265.1 → 0.268.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/{agent-bridge-DrkBxszZ.d.ts → agent-bridge-UhojbpWx.d.ts} +1 -1
- package/dist/{agent-subagent-runner-DM2pP-B6.d.ts → agent-subagent-runner-Bvtf1o9K.d.ts} +25 -7
- package/dist/{brain-BXd_61kQ.d.ts → brain-69wzMKp1.d.ts} +73 -1
- package/dist/{compactor-B8pOf45Y.d.ts → compactor-CBQAJoDc.d.ts} +19 -1
- package/dist/{config-BMCj_XDs.d.ts → config-VKfOZ-6X.d.ts} +122 -3
- package/dist/{context-MRk5PhNv.d.ts → context-C0U8B9NF.d.ts} +88 -1
- package/dist/coordination/index.d.ts +57 -161
- package/dist/coordination/index.js +471 -177
- package/dist/coordination/index.js.map +1 -1
- package/dist/defaults/index.d.ts +26 -25
- package/dist/defaults/index.js +1818 -844
- package/dist/defaults/index.js.map +1 -1
- package/dist/execution/index.d.ts +72 -16
- package/dist/execution/index.js +1270 -265
- package/dist/execution/index.js.map +1 -1
- package/dist/execution/prompt-enhancer.d.ts +1 -1
- package/dist/extension/index.d.ts +7 -6
- package/dist/global-mailbox-KByEFFBa.d.ts +663 -0
- package/dist/{goal-preamble-DvHDSKSe.d.ts → goal-preamble-CrYjmdw4.d.ts} +28 -11
- package/dist/{goal-store-DtLMySNb.d.ts → goal-store-Y_zdLZ3q.d.ts} +1 -1
- package/dist/hq/index.d.ts +195 -0
- package/dist/hq/index.js +1884 -0
- package/dist/hq/index.js.map +1 -0
- package/dist/index-BfaS-f_m.d.ts +82 -0
- package/dist/{index-B-ch8K9C.d.ts → index-CtQnmkaS.d.ts} +8 -8
- package/dist/{index-CEDeNodM.d.ts → index-gCv830d7.d.ts} +5 -5
- package/dist/index.d.ts +124 -47
- package/dist/index.js +5600 -2662
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/index.d.ts +6 -6
- package/dist/infrastructure/index.js +117 -19
- package/dist/infrastructure/index.js.map +1 -1
- package/dist/kernel/index.d.ts +10 -9
- package/dist/kernel/index.js.map +1 -1
- package/dist/{pipeline-DPDxH_7m.d.ts → mailbox-types-Ct2hJq0P.d.ts} +1 -244
- package/dist/{mcp-servers-2x4w6Jn9.d.ts → mcp-servers-HT3Fi7Bl.d.ts} +10 -4
- package/dist/models/index.d.ts +5 -5
- package/dist/models/index.js +33 -3
- package/dist/models/index.js.map +1 -1
- package/dist/{models-registry-DmJlKuNp.d.ts → models-registry-Bvcl3Vaa.d.ts} +1 -1
- package/dist/{multi-agent-coordinator-DyCkCZnU.d.ts → multi-agent-coordinator-BACjsmkC.d.ts} +1 -1
- package/dist/{null-fleet-bus-CG9QY2aP.d.ts → null-fleet-bus-DA7fvhUg.d.ts} +14 -9
- package/dist/observability/index.d.ts +2 -2
- package/dist/{parallel-eternal-engine-Jw9uhEoT.d.ts → parallel-eternal-engine-Ci71gYu_.d.ts} +11 -15
- package/dist/{path-resolver-Dy2ej-gE.d.ts → path-resolver-O1IJnmKE.d.ts} +4 -3
- package/dist/{permission-B9SB45lp.d.ts → permission-Bd-57Lbl.d.ts} +1 -1
- package/dist/{permission-policy-CkjSXabK.d.ts → permission-policy-uNXC6Kge.d.ts} +2 -3
- package/dist/pipeline-BDNvENyV.d.ts +245 -0
- package/dist/{plan-templates-CzD9GnAU.d.ts → plan-templates-EMsalEtN.d.ts} +5 -5
- package/dist/{llm-selector-C0tfTCUe.d.ts → provider-model-resolve-CEb9x886.d.ts} +40 -3
- package/dist/{provider-runner-DMa70ODu.d.ts → provider-runner-DWJbpo70.d.ts} +3 -3
- package/dist/{retry-policy-CN0khdlj.d.ts → retry-policy-C3s_lvdK.d.ts} +1 -1
- package/dist/sdd/index.d.ts +9 -8
- package/dist/sdd/index.js +44 -14
- package/dist/sdd/index.js.map +1 -1
- package/dist/{secret-vault-B2yw84VT.d.ts → secret-vault-Cgduf5xL.d.ts} +2 -2
- package/dist/security/index.d.ts +5 -67
- package/dist/security/index.js +129 -99
- package/dist/security/index.js.map +1 -1
- package/dist/{selector-CzHh_igB.d.ts → selector-47LBnBVk.d.ts} +1 -1
- package/dist/{session-event-bridge-BUI6Jf-4.d.ts → session-event-bridge-Cw7oqmW2.d.ts} +1 -1
- package/dist/{session-reader-CMgdMSRP.d.ts → session-reader-DD4v2Obw.d.ts} +1 -1
- package/dist/storage/index.d.ts +14 -12
- package/dist/storage/index.js +144 -120
- package/dist/storage/index.js.map +1 -1
- package/dist/tools/index.d.ts +4 -2
- package/dist/tools/index.js +166 -31
- package/dist/tools/index.js.map +1 -1
- package/dist/types/index.d.ts +20 -19
- package/dist/types/index.js +1358 -476
- package/dist/types/index.js.map +1 -1
- package/dist/utils/index.d.ts +472 -405
- package/dist/utils/index.js +2321 -1193
- package/dist/utils/index.js.map +1 -1
- package/package.json +5 -1
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
export { C as CompactorOptions, a as DefaultErrorHandler, b as DefaultRetryPolicy, E as EternalAutonomyEngine, c as EternalAutonomyOptions, d as EternalEngineState, H as HybridCompactor, I as IterationStage, P as ParallelEngineState, e as ParallelEternalEngine, f as ParallelEternalOptions, g as ParallelIterationStage, T as ToolExecutor } from '../parallel-eternal-engine-
|
|
2
|
-
export { A as AutoCompactionMiddleware, a as AutonomousRunner, b as AutonomousRunnerOptions, c as AutonomyPromptContributorOptions, C as CompactorStrategy, D as DefaultSkillLoader, d as DoneCheckResult, e as DoneConditionChecker, I as IntelligentCompactor, f as IntelligentCompactorOptions, S as SelectiveCompactor, g as SelectiveCompactorOptions, h as SkillLoaderOptions, i as StrategyCompactorOptions, j as buildGoalPreamble, k as createStrategyCompactor, m as makeAutonomyPromptContributor } from '../goal-preamble-
|
|
3
|
-
import { P as Provider } from '../context-
|
|
4
|
-
import { e as BrainDecision, h as BrainDecisionRequest, B as BrainArbiter } from '../brain-
|
|
5
|
-
import '../
|
|
6
|
-
import '../
|
|
7
|
-
import '../
|
|
8
|
-
import '../index-
|
|
1
|
+
export { C as CompactorOptions, a as DefaultErrorHandler, b as DefaultRetryPolicy, E as EternalAutonomyEngine, c as EternalAutonomyOptions, d as EternalEngineState, H as HybridCompactor, I as IterationStage, P as ParallelEngineState, e as ParallelEternalEngine, f as ParallelEternalOptions, g as ParallelIterationStage, T as ToolExecutor } from '../parallel-eternal-engine-Ci71gYu_.js';
|
|
2
|
+
export { A as AutoCompactionMiddleware, a as AutonomousRunner, b as AutonomousRunnerOptions, c as AutonomyPromptContributorOptions, C as CompactorStrategy, l as ContextWindowBudgetSnapshot, D as DefaultSkillLoader, d as DoneCheckResult, e as DoneConditionChecker, I as IntelligentCompactor, f as IntelligentCompactorOptions, S as SelectiveCompactor, g as SelectiveCompactorOptions, h as SkillLoaderOptions, i as StrategyCompactorOptions, j as buildGoalPreamble, k as createStrategyCompactor, m as makeAutonomyPromptContributor } from '../goal-preamble-CrYjmdw4.js';
|
|
3
|
+
import { P as Provider, l as ReasoningConfig, R as Request } from '../context-C0U8B9NF.js';
|
|
4
|
+
import { e as BrainDecision, h as BrainDecisionRequest, B as BrainArbiter } from '../brain-69wzMKp1.js';
|
|
5
|
+
import { B as ModelRuntimeConfig } from '../config-VKfOZ-6X.js';
|
|
6
|
+
import '../retry-policy-C3s_lvdK.js';
|
|
7
|
+
import '../compactor-CBQAJoDc.js';
|
|
8
|
+
import '../index-gCv830d7.js';
|
|
9
9
|
import '../logger-B63L5bTg.js';
|
|
10
|
-
import '../pipeline-
|
|
10
|
+
import '../pipeline-BDNvENyV.js';
|
|
11
|
+
import '../mailbox-types-Ct2hJq0P.js';
|
|
11
12
|
import '../observability-D-HZN_mF.js';
|
|
12
|
-
import '../permission-
|
|
13
|
-
import '../agent-subagent-runner-
|
|
14
|
-
import '../goal-store-
|
|
15
|
-
import '../multi-agent-coordinator-
|
|
13
|
+
import '../permission-Bd-57Lbl.js';
|
|
14
|
+
import '../agent-subagent-runner-Bvtf1o9K.js';
|
|
15
|
+
import '../goal-store-Y_zdLZ3q.js';
|
|
16
|
+
import '../multi-agent-coordinator-BACjsmkC.js';
|
|
16
17
|
import 'node:events';
|
|
17
18
|
import '../skill-DGIXCtdv.js';
|
|
18
19
|
import '../wstack-paths-hOpNLmvf.js';
|
|
19
|
-
import '../selector-
|
|
20
|
-
import '../session-event-bridge-
|
|
20
|
+
import '../selector-47LBnBVk.js';
|
|
21
|
+
import '../session-event-bridge-Cw7oqmW2.js';
|
|
21
22
|
|
|
22
23
|
/**
|
|
23
24
|
* AutonomyBrain — a self-driving decision layer for autonomous workflows.
|
|
@@ -108,4 +109,59 @@ declare function createAutonomyBrain(opts: AutonomyBrainOptions): BrainArbiter;
|
|
|
108
109
|
*/
|
|
109
110
|
declare function formatDecisionSummary(decision: BrainDecision, request: BrainDecisionRequest): string;
|
|
110
111
|
|
|
111
|
-
|
|
112
|
+
/**
|
|
113
|
+
* Model-runtime resolver + request-pipeline middleware.
|
|
114
|
+
*
|
|
115
|
+
* Maps the shared `Config.modelRuntime` settings into the per-request
|
|
116
|
+
* `Request.reasoning` and `Request.cache` fields, gated by the active model's
|
|
117
|
+
* `reasoningConfig` capabilities so unsupported values are omitted (and
|
|
118
|
+
* surfaced as warnings) instead of triggering provider 400s.
|
|
119
|
+
*
|
|
120
|
+
* Wired once at boot (REPL/TUI/WebUI all go through the same `request`
|
|
121
|
+
* pipeline) — see `installModelRuntimeMiddleware()`. UIs only need to mutate
|
|
122
|
+
* `Config.modelRuntime` (and persist) for the change to take effect on the next
|
|
123
|
+
* request.
|
|
124
|
+
*/
|
|
125
|
+
|
|
126
|
+
interface ResolvedModelRuntime {
|
|
127
|
+
reasoning: Request['reasoning'];
|
|
128
|
+
cache: Request['cache'];
|
|
129
|
+
/** Human-readable warnings for settings that were ignored for this model. */
|
|
130
|
+
warnings: string[];
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Resolve user-facing runtime settings into request fields for a specific
|
|
134
|
+
* model capability profile. Pure function — safe to unit-test without a
|
|
135
|
+
* provider or event bus.
|
|
136
|
+
*
|
|
137
|
+
* @param settings `Config.modelRuntime` (may be undefined → no-op)
|
|
138
|
+
* @param reasoning The model's `reasoningConfig`, or undefined when unknown.
|
|
139
|
+
* When undefined the resolver is conservative: explicit
|
|
140
|
+
* on/off is suppressed (provider default wins) and effort is
|
|
141
|
+
* dropped, because we cannot tell whether the model will
|
|
142
|
+
* accept the fields.
|
|
143
|
+
*/
|
|
144
|
+
declare function resolveModelRuntime(settings: ModelRuntimeConfig | undefined, reasoning: ReasoningConfig | undefined): ResolvedModelRuntime;
|
|
145
|
+
declare function resolveReasoningForRequest(settings: ModelRuntimeConfig, rc: ReasoningConfig | undefined, warnings: string[]): Request['reasoning'];
|
|
146
|
+
declare function resolveCacheForRequest(settings: ModelRuntimeConfig, _warnings: string[]): Request['cache'];
|
|
147
|
+
interface ModelRuntimeMiddlewareOptions {
|
|
148
|
+
/** Provider id of the active model, for logging/diagnostics only. */
|
|
149
|
+
providerId?: string | undefined;
|
|
150
|
+
/** Model id of the active model, for logging/diagnostics only. */
|
|
151
|
+
modelId?: string | undefined;
|
|
152
|
+
/** Current runtime settings. Called per-request so live changes apply. */
|
|
153
|
+
getSettings(): ModelRuntimeConfig | undefined;
|
|
154
|
+
/** Current model capability profile. Called per-request. */
|
|
155
|
+
getReasoningConfig(): ReasoningConfig | undefined;
|
|
156
|
+
/** Optional sink for suppressed-setting warnings (e.g. emit to event bus). */
|
|
157
|
+
onWarning?: ((message: string) => void) | undefined;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Build a `request`-pipeline middleware that applies runtime settings. The
|
|
161
|
+
* returned function mutates the outgoing request by overlaying resolved
|
|
162
|
+
* `reasoning` / `cache` fields. Existing fields on the request are preserved
|
|
163
|
+
* only when the resolver produces nothing for that field.
|
|
164
|
+
*/
|
|
165
|
+
declare function applyModelRuntime(req: Request, opts: ModelRuntimeMiddlewareOptions): Request;
|
|
166
|
+
|
|
167
|
+
export { type AutonomyBrainOptions, type BrainAutoRisk, type ModelRuntimeMiddlewareOptions, type ResolvedModelRuntime, type TieredBrainArbiterOptions, applyModelRuntime, createAutonomyBrain, createTieredBrainArbiter, formatDecisionSummary, resolveCacheForRequest, resolveModelRuntime, resolveReasoningForRequest };
|