@wrongstack/core 0.68.0 → 0.77.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-D-j6OOBT.d.ts → agent-bridge-EWdqs8v6.d.ts} +1 -1
- package/dist/{agent-subagent-runner-DRZ9-NnR.d.ts → agent-subagent-runner-D8qW8OSC.d.ts} +13 -5
- package/dist/{config--86aHSln.d.ts → config-Dy0CK_o6.d.ts} +44 -1
- package/dist/coordination/index.d.ts +10 -10
- package/dist/coordination/index.js +74 -10
- package/dist/coordination/index.js.map +1 -1
- package/dist/defaults/index.d.ts +17 -17
- package/dist/defaults/index.js +160 -67
- package/dist/defaults/index.js.map +1 -1
- package/dist/{events-CIplI98R.d.ts → events-CYaoLN5_.d.ts} +45 -0
- package/dist/execution/index.d.ts +9 -9
- package/dist/execution/index.js +4 -4
- package/dist/execution/index.js.map +1 -1
- package/dist/extension/index.d.ts +5 -5
- package/dist/{index-b5uhfTSl.d.ts → index-DIxjTOga.d.ts} +6 -6
- package/dist/{index-DKUvyTvV.d.ts → index-Dsda0uCn.d.ts} +4 -4
- package/dist/index.d.ts +108 -33
- package/dist/index.js +388 -58
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/index.d.ts +5 -5
- package/dist/infrastructure/index.js +16 -2
- package/dist/infrastructure/index.js.map +1 -1
- package/dist/kernel/index.d.ts +7 -7
- package/dist/kernel/index.js.map +1 -1
- package/dist/{logger-bOzkF5LL.d.ts → logger-BppKxDqZ.d.ts} +9 -0
- package/dist/{mcp-servers-DwoNBf6r.d.ts → mcp-servers-T0O6UN_w.d.ts} +1 -1
- package/dist/{mode-CV077NjV.d.ts → mode-BO4SEUIv.d.ts} +7 -0
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +18 -9
- package/dist/models/index.js.map +1 -1
- package/dist/{multi-agent-coordinator-CWnH-CiX.d.ts → multi-agent-coordinator-DpbG3wiy.d.ts} +1 -1
- package/dist/{null-fleet-bus-CuN0ObJr.d.ts → null-fleet-bus-u5ys3lW_.d.ts} +28 -9
- package/dist/observability/index.d.ts +1 -1
- package/dist/{parallel-eternal-engine-0UwotoSx.d.ts → parallel-eternal-engine-Dn0P8Pbj.d.ts} +3 -3
- package/dist/{path-resolver-DVkEcIw8.d.ts → path-resolver-B32v2JIq.d.ts} +1 -1
- package/dist/{permission-C1A5whY5.d.ts → permission-V5BLOrY6.d.ts} +0 -4
- package/dist/{permission-policy-B2dK-T5N.d.ts → permission-policy-CBVx-d-8.d.ts} +1 -5
- package/dist/{plan-templates-Bprrzhbu.d.ts → plan-templates-BcUwLlMQ.d.ts} +8 -3
- package/dist/{provider-runner-mXvXGSIw.d.ts → provider-runner-CSi_7l0h.d.ts} +1 -1
- package/dist/sdd/index.d.ts +6 -6
- package/dist/sdd/index.js +3 -3
- package/dist/sdd/index.js.map +1 -1
- package/dist/security/index.d.ts +2 -2
- package/dist/security/index.js +0 -8
- package/dist/security/index.js.map +1 -1
- package/dist/skills/index.js +1 -0
- package/dist/skills/index.js.map +1 -1
- package/dist/storage/index.d.ts +4 -4
- package/dist/storage/index.js +48 -8
- package/dist/storage/index.js.map +1 -1
- package/dist/{system-prompt-b61lOd49.d.ts → system-prompt-CA11g6Jo.d.ts} +1 -1
- package/dist/types/index.d.ts +14 -14
- package/dist/types/index.js +35 -12
- package/dist/types/index.js.map +1 -1
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +14 -3
- package/dist/utils/index.js.map +1 -1
- package/dist/{wstack-paths-eMXnY1_X.d.ts → wstack-paths-D7evAFWM.d.ts} +8 -1
- package/package.json +1 -1
|
@@ -307,6 +307,43 @@ interface EventMap {
|
|
|
307
307
|
* for tools without a meaningful line count. */
|
|
308
308
|
outputLines?: number;
|
|
309
309
|
};
|
|
310
|
+
/**
|
|
311
|
+
* Fired by the `delegate` tool right before it hands work to a subagent
|
|
312
|
+
* and blocks on the result. Lets UIs render a "started delegating" line
|
|
313
|
+
* immediately instead of looking idle for the (often minutes-long) life
|
|
314
|
+
* of the subagent. Paired with `delegate.completed`.
|
|
315
|
+
*/
|
|
316
|
+
'delegate.started': {
|
|
317
|
+
/** Resolved roster role or free-form subagent name. */
|
|
318
|
+
target: string;
|
|
319
|
+
/** The task instruction handed to the subagent (untruncated — UIs trim). */
|
|
320
|
+
task: string;
|
|
321
|
+
};
|
|
322
|
+
/**
|
|
323
|
+
* Fired by the `delegate` tool once the subagent settles (success,
|
|
324
|
+
* timeout, budget exhaustion, error). Carries human-friendly, untruncated
|
|
325
|
+
* fields so UIs / the Telegram bridge can render a readable summary
|
|
326
|
+
* instead of the JSON-stringified, ~400-char-truncated `tool.executed`
|
|
327
|
+
* preview.
|
|
328
|
+
*/
|
|
329
|
+
'delegate.completed': {
|
|
330
|
+
/** Resolved roster role or free-form subagent name. */
|
|
331
|
+
target: string;
|
|
332
|
+
/** The task instruction handed to the subagent. */
|
|
333
|
+
task: string;
|
|
334
|
+
/** True only when the subagent finished its task cleanly. */
|
|
335
|
+
ok: boolean;
|
|
336
|
+
/** Task status — 'success' | 'timeout' | 'host_timeout' | 'stopped' | ... */
|
|
337
|
+
status?: string;
|
|
338
|
+
/** One-line human summary (from `buildDelegateSummary`), untruncated. */
|
|
339
|
+
summary: string;
|
|
340
|
+
durationMs: number;
|
|
341
|
+
iterations: number;
|
|
342
|
+
toolCalls: number;
|
|
343
|
+
/** Estimated subagent cost in USD, from the director usage snapshot when known. */
|
|
344
|
+
costUsd?: number;
|
|
345
|
+
subagentId?: string;
|
|
346
|
+
};
|
|
310
347
|
/**
|
|
311
348
|
* Fired on every `iteration.completed`. UIs subscribe to render a live
|
|
312
349
|
* context-window fill bar per agent (e.g. "67% ████████░░"). The
|
|
@@ -611,6 +648,14 @@ interface EventMap {
|
|
|
611
648
|
assigned: boolean;
|
|
612
649
|
}[];
|
|
613
650
|
};
|
|
651
|
+
/**
|
|
652
|
+
* The coordinator's max-concurrent subagent ceiling was changed at runtime
|
|
653
|
+
* (e.g. via `/fleet concurrency <n>`). `n` is the new ceiling. Lets the
|
|
654
|
+
* TUI/WebUI reflect the updated limit without polling the host.
|
|
655
|
+
*/
|
|
656
|
+
'concurrency.changed': {
|
|
657
|
+
n: number;
|
|
658
|
+
};
|
|
614
659
|
/**
|
|
615
660
|
* Git-worktree lifecycle, emitted by WorktreeManager. AutoPhase allocates one
|
|
616
661
|
* worktree per phase so parallelizable phases run isolated, then merges them
|
|
@@ -1,23 +1,23 @@
|
|
|
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-
|
|
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-Dn0P8Pbj.js';
|
|
2
2
|
import { m as Provider, d as Context } from '../context-y87Jc5ei.js';
|
|
3
3
|
import { a as Compactor, C as CompactReport } from '../compactor-D_ExJajC.js';
|
|
4
4
|
import { M as MessageSelector } from '../selector-RvBR_YRW.js';
|
|
5
|
-
import { E as EventBus } from '../events-
|
|
6
|
-
import { b as MiddlewareHandler } from '../system-prompt-
|
|
5
|
+
import { E as EventBus } from '../events-CYaoLN5_.js';
|
|
6
|
+
import { b as MiddlewareHandler } from '../system-prompt-CA11g6Jo.js';
|
|
7
7
|
import { a as SessionEventBridge } from '../session-event-bridge-CDHxcmQU.js';
|
|
8
|
-
import { e as ContextWindowAggressiveOn, i as ContextWindowPolicy } from '../config
|
|
9
|
-
import { A as Agent, D as DoneCondition } from '../agent-subagent-runner-
|
|
10
|
-
import { R as RunResult, S as SystemPromptContributor } from '../index-
|
|
8
|
+
import { e as ContextWindowAggressiveOn, i as ContextWindowPolicy } from '../config-Dy0CK_o6.js';
|
|
9
|
+
import { A as Agent, D as DoneCondition } from '../agent-subagent-runner-D8qW8OSC.js';
|
|
10
|
+
import { R as RunResult, S as SystemPromptContributor } from '../index-Dsda0uCn.js';
|
|
11
11
|
import { a as SkillLoader, b as SkillManifest, S as SkillEntry } from '../skill-CxuWrsKK.js';
|
|
12
|
-
import { a as WstackPaths } from '../wstack-paths-
|
|
12
|
+
import { a as WstackPaths } from '../wstack-paths-D7evAFWM.js';
|
|
13
13
|
import '../retry-policy-CG3qvH_e.js';
|
|
14
14
|
import '../models-registry-BcYJDKLm.js';
|
|
15
15
|
import '../goal-store-C7jcumEh.js';
|
|
16
|
-
import '../multi-agent-coordinator-
|
|
16
|
+
import '../multi-agent-coordinator-DpbG3wiy.js';
|
|
17
17
|
import 'node:events';
|
|
18
18
|
import '../logger-DDd5C--Z.js';
|
|
19
19
|
import '../observability-BhnVLBLS.js';
|
|
20
|
-
import '../permission-
|
|
20
|
+
import '../permission-V5BLOrY6.js';
|
|
21
21
|
import '../secret-scrubber-3MHDDAtm.js';
|
|
22
22
|
|
|
23
23
|
interface SkillLoaderOptions {
|
package/dist/execution/index.js
CHANGED
|
@@ -1530,7 +1530,7 @@ ${errorDetails}`,
|
|
|
1530
1530
|
const decision = await this.opts.permissionPolicy.evaluate(tool, use.input, ctx);
|
|
1531
1531
|
let effectivePermission = decision.permission;
|
|
1532
1532
|
const policy = this.opts.permissionPolicy;
|
|
1533
|
-
const yolo = policy.getYolo?.() === true || policy.getYoloDestructive?.() === true
|
|
1533
|
+
const yolo = policy.getYolo?.() === true || policy.getYoloDestructive?.() === true;
|
|
1534
1534
|
if (toolDangerousCaps.length > 0 && effectivePermission === "auto" && !yolo) {
|
|
1535
1535
|
effectivePermission = "confirm";
|
|
1536
1536
|
}
|
|
@@ -5921,7 +5921,7 @@ var DefaultMultiAgentCoordinator = class _DefaultMultiAgentCoordinator extends E
|
|
|
5921
5921
|
}
|
|
5922
5922
|
async spawn(subagent) {
|
|
5923
5923
|
const id = subagent.id || randomUUID();
|
|
5924
|
-
|
|
5924
|
+
const cfg = this.withNickname(subagent, id);
|
|
5925
5925
|
if (this.subagents.has(id)) {
|
|
5926
5926
|
throw new Error(`Subagent id "${id}" already exists \u2014 refusing to overwrite`);
|
|
5927
5927
|
}
|
|
@@ -5936,12 +5936,12 @@ var DefaultMultiAgentCoordinator = class _DefaultMultiAgentCoordinator extends E
|
|
|
5936
5936
|
maxConcurrent: this.config.maxConcurrent ?? 16
|
|
5937
5937
|
};
|
|
5938
5938
|
this.subagents.set(id, {
|
|
5939
|
-
config: { ...
|
|
5939
|
+
config: { ...cfg, id },
|
|
5940
5940
|
context,
|
|
5941
5941
|
status: "idle",
|
|
5942
5942
|
abortController: new AbortController()
|
|
5943
5943
|
});
|
|
5944
|
-
this.emit("subagent.started", { subagent: { ...
|
|
5944
|
+
this.emit("subagent.started", { subagent: { ...cfg, id } });
|
|
5945
5945
|
this.fleetBus?.emit({
|
|
5946
5946
|
subagentId: id,
|
|
5947
5947
|
ts: Date.now(),
|