@wrongstack/core 0.260.0 → 0.264.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-BbskZ7HH.d.ts → agent-bridge-D8sa1vtv.d.ts} +1 -1
- package/dist/{agent-subagent-runner-BNIGZx18.d.ts → agent-subagent-runner-c9DLkaas.d.ts} +11 -9
- package/dist/{brain-C2yDd7Lw.d.ts → brain-O1IdKPaK.d.ts} +2 -2
- package/dist/{compactor-t0R_AIt_.d.ts → compactor-BBy0rCtB.d.ts} +1 -1
- package/dist/{config-FG6As4H5.d.ts → config-Dz2F3H2K.d.ts} +7 -1
- package/dist/{context-JFOVvu6z.d.ts → context-BGSpZNSE.d.ts} +11 -0
- package/dist/coordination/index.d.ts +1681 -15
- package/dist/coordination/index.js +2648 -388
- package/dist/coordination/index.js.map +1 -1
- package/dist/defaults/index.d.ts +25 -25
- package/dist/defaults/index.js +1414 -1387
- package/dist/defaults/index.js.map +1 -1
- package/dist/dispatcher-types.d-BBeXBQgS.d.ts +66 -0
- package/dist/execution/index.d.ts +15 -15
- package/dist/execution/index.js +410 -388
- package/dist/execution/index.js.map +1 -1
- package/dist/execution/prompt-enhancer.d.ts +2 -2
- package/dist/execution/prompt-enhancer.js +7 -1
- package/dist/execution/prompt-enhancer.js.map +1 -1
- package/dist/extension/index.d.ts +6 -6
- package/dist/extension/index.js.map +1 -1
- package/dist/{goal-preamble-B1IXJtLX.d.ts → goal-preamble-DzjFuN3p.d.ts} +21 -9
- package/dist/{goal-store-CPXz6Mml.d.ts → goal-store-CxWmCGbH.d.ts} +1 -1
- package/dist/{index-CebbJB94.d.ts → index-CYIQrXVF.d.ts} +8 -8
- package/dist/{index-BPcg4N3M.d.ts → index-CbLSI66_.d.ts} +5 -5
- package/dist/index.d.ts +45 -91
- package/dist/index.js +14976 -12551
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/index.d.ts +6 -6
- package/dist/kernel/index.d.ts +9 -9
- package/dist/kernel/index.js +6 -1
- package/dist/kernel/index.js.map +1 -1
- package/dist/{llm-selector-DXxI2tlu.d.ts → llm-selector-DzxuZnNz.d.ts} +2 -2
- package/dist/{mcp-servers-OwNHo43-.d.ts → mcp-servers-DC4QRPUI.d.ts} +3 -3
- package/dist/models/index.d.ts +5 -5
- package/dist/models/index.js +6 -1
- package/dist/models/index.js.map +1 -1
- package/dist/{models-registry-Djlmq4uB.d.ts → models-registry-B_siPxqN.d.ts} +1 -1
- package/dist/{multi-agent-coordinator-CEmrSCMJ.d.ts → multi-agent-coordinator-CK5Jdj9K.d.ts} +2 -2
- package/dist/{null-fleet-bus-DT92xqgJ.d.ts → null-fleet-bus-DgvD4SCO.d.ts} +6 -6
- package/dist/observability/index.d.ts +2 -2
- package/dist/observability/index.js +8 -3
- package/dist/observability/index.js.map +1 -1
- package/dist/{parallel-eternal-engine-0SItuq5r.d.ts → parallel-eternal-engine-bK0JQBR_.d.ts} +9 -9
- package/dist/{path-resolver-DKBh6Jlo.d.ts → path-resolver-BPEDlN38.d.ts} +3 -3
- package/dist/{permission-BJ7eO9Vl.d.ts → permission-4yvGmMRB.d.ts} +1 -1
- package/dist/{permission-policy-DEXOfnpm.d.ts → permission-policy-C6XpsBOy.d.ts} +2 -2
- package/dist/{pipeline-zflkI2dp.d.ts → pipeline-CXCeMz8J.d.ts} +58 -3
- package/dist/{plan-templates-BFXyRkEK.d.ts → plan-templates-BvzRBkJc.d.ts} +5 -5
- package/dist/{provider-runner-BC-uywtT.d.ts → provider-runner-C5aQpDWE.d.ts} +3 -3
- package/dist/{retry-policy-Cavrzmtk.d.ts → retry-policy-CFhdtRzz.d.ts} +1 -1
- package/dist/sdd/index.d.ts +8 -8
- package/dist/sdd/index.js +39 -29
- package/dist/sdd/index.js.map +1 -1
- package/dist/{secret-vault-CDvDYXWX.d.ts → secret-vault-CxiVLbt1.d.ts} +1 -1
- package/dist/security/index.d.ts +4 -4
- package/dist/security/index.js +208 -203
- package/dist/security/index.js.map +1 -1
- package/dist/{selector-B7AivHsu.d.ts → selector-gIuhRTkN.d.ts} +1 -1
- package/dist/{session-event-bridge-BmIDxdJd.d.ts → session-event-bridge-DkvvrpDt.d.ts} +8 -2
- package/dist/{session-reader-DtofsB-2.d.ts → session-reader-KdfVwkKP.d.ts} +1 -1
- package/dist/skills/index.js +67 -64
- package/dist/skills/index.js.map +1 -1
- package/dist/storage/index.d.ts +31 -12
- package/dist/storage/index.js +441 -360
- package/dist/storage/index.js.map +1 -1
- package/dist/tools/index.d.ts +57 -0
- package/dist/tools/index.js +411 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/types/index.d.ts +19 -19
- package/dist/types/index.js +703 -694
- package/dist/types/index.js.map +1 -1
- package/dist/utils/error.d.ts +7 -0
- package/dist/utils/error.js +8 -0
- package/dist/utils/error.js.map +1 -0
- package/dist/utils/index.d.ts +7 -67
- package/dist/utils/index.js +17 -5
- package/dist/utils/index.js.map +1 -1
- package/package.json +5 -1
- package/dist/package-outdated-watcher-C70ag2G9.d.ts +0 -581
package/dist/sdd/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { h as Specification, S as SpecAnalysis, g as SpecValidationResult, e as SpecStatus, f as SpecTemplate, b as SpecRequirement } from '../spec-TBi3Jr6T.js';
|
|
2
2
|
import { d as TaskGraph, e as TaskNode, i as TaskFilter, j as TaskSort, c as TaskProgress, T as TaskType, a as TaskPriority } from '../task-graph-u1q9Jkyk.js';
|
|
3
|
-
import { E as EventBus } from '../brain-
|
|
4
|
-
import { D as DoneCondition, g as Agent, h as AgentFactory, f as TaskResult } from '../agent-subagent-runner-
|
|
5
|
-
import '../context-
|
|
6
|
-
import '../index-
|
|
3
|
+
import { E as EventBus } from '../brain-O1IdKPaK.js';
|
|
4
|
+
import { D as DoneCondition, g as Agent, h as AgentFactory, f as TaskResult } from '../agent-subagent-runner-c9DLkaas.js';
|
|
5
|
+
import '../context-BGSpZNSE.js';
|
|
6
|
+
import '../index-CbLSI66_.js';
|
|
7
7
|
import '../logger-B63L5bTg.js';
|
|
8
|
-
import '../pipeline-
|
|
9
|
-
import '../config-
|
|
8
|
+
import '../pipeline-CXCeMz8J.js';
|
|
9
|
+
import '../config-Dz2F3H2K.js';
|
|
10
10
|
import '../observability-D-HZN_mF.js';
|
|
11
|
-
import '../permission-
|
|
12
|
-
import '../retry-policy-
|
|
11
|
+
import '../permission-4yvGmMRB.js';
|
|
12
|
+
import '../retry-policy-CFhdtRzz.js';
|
|
13
13
|
|
|
14
14
|
declare class SpecParser {
|
|
15
15
|
parse(content: string): Specification;
|
package/dist/sdd/index.js
CHANGED
|
@@ -80,7 +80,12 @@ async function withFileLock(targetPath, fn, opts = {}) {
|
|
|
80
80
|
await handle.writeFile(`${process.pid}:${Date.now()}`);
|
|
81
81
|
break;
|
|
82
82
|
} catch (err) {
|
|
83
|
-
|
|
83
|
+
const code = err.code;
|
|
84
|
+
if (code === "ENOENT") {
|
|
85
|
+
await fs.mkdir(dir, { recursive: true });
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
if (code !== "EEXIST") throw err;
|
|
84
89
|
try {
|
|
85
90
|
const stat2 = await fs.stat(lockPath);
|
|
86
91
|
if (Date.now() - stat2.mtimeMs > staleMs) {
|
|
@@ -622,6 +627,35 @@ function topologicalSort(graph) {
|
|
|
622
627
|
return result;
|
|
623
628
|
}
|
|
624
629
|
|
|
630
|
+
// src/utils/error.ts
|
|
631
|
+
function toErrorMessage(err) {
|
|
632
|
+
return err instanceof Error ? err.message : String(err);
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
// src/utils/string.ts
|
|
636
|
+
function truncate(s, max) {
|
|
637
|
+
return s.length <= max ? s : `${s.slice(0, max - 1)}\u2026`;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
// src/utils/expect-defined.ts
|
|
641
|
+
function expectDefined(value, label) {
|
|
642
|
+
if (value === null || value === void 0) {
|
|
643
|
+
const err = new Error("Expected value to be defined");
|
|
644
|
+
err.name = "ExpectDefinedError";
|
|
645
|
+
throw err;
|
|
646
|
+
}
|
|
647
|
+
return value;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
// src/utils/assert-never.ts
|
|
651
|
+
function assertNever(x, message) {
|
|
652
|
+
const err = new Error(
|
|
653
|
+
`Unhandled case: ${JSON.stringify(x)}`
|
|
654
|
+
);
|
|
655
|
+
err.name = "AssertNeverError";
|
|
656
|
+
throw err;
|
|
657
|
+
}
|
|
658
|
+
|
|
625
659
|
// src/types/errors.ts
|
|
626
660
|
var ERROR_CODES = {
|
|
627
661
|
// Provider
|
|
@@ -929,7 +963,7 @@ var TaskTracker = class {
|
|
|
929
963
|
this.opts.onPersistError ? this.opts.onPersistError(err) : console.warn(JSON.stringify({
|
|
930
964
|
level: "warn",
|
|
931
965
|
event: "task_tracker.save_graph_failed",
|
|
932
|
-
message:
|
|
966
|
+
message: toErrorMessage(err),
|
|
933
967
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
934
968
|
}));
|
|
935
969
|
});
|
|
@@ -1358,16 +1392,6 @@ var TaskGraphStore = class {
|
|
|
1358
1392
|
}
|
|
1359
1393
|
};
|
|
1360
1394
|
|
|
1361
|
-
// src/utils/expect-defined.ts
|
|
1362
|
-
function expectDefined(value, label) {
|
|
1363
|
-
if (value === null || value === void 0) {
|
|
1364
|
-
const err = new Error("Expected value to be defined");
|
|
1365
|
-
err.name = "ExpectDefinedError";
|
|
1366
|
-
throw err;
|
|
1367
|
-
}
|
|
1368
|
-
return value;
|
|
1369
|
-
}
|
|
1370
|
-
|
|
1371
1395
|
// src/sdd/spec-builder.ts
|
|
1372
1396
|
function buildQuestioningPrompt(session, min, max) {
|
|
1373
1397
|
const answered = session.answers.length;
|
|
@@ -1609,7 +1633,7 @@ var AISpecBuilder = class {
|
|
|
1609
1633
|
* ENOSPC / EACCES doesn't silently strand session edits in memory. */
|
|
1610
1634
|
autoSave() {
|
|
1611
1635
|
this.saveSession().catch((err) => {
|
|
1612
|
-
const detail =
|
|
1636
|
+
const detail = toErrorMessage(err);
|
|
1613
1637
|
process.emitWarning(
|
|
1614
1638
|
`SpecBuilder autoSave failed: ${detail}`,
|
|
1615
1639
|
"SpecBuilderWarning"
|
|
@@ -2021,11 +2045,6 @@ function templateToMarkdown(template, title) {
|
|
|
2021
2045
|
return lines.join("\n");
|
|
2022
2046
|
}
|
|
2023
2047
|
|
|
2024
|
-
// src/utils/string.ts
|
|
2025
|
-
function truncate(s, max) {
|
|
2026
|
-
return s.length <= max ? s : `${s.slice(0, max - 1)}\u2026`;
|
|
2027
|
-
}
|
|
2028
|
-
|
|
2029
2048
|
// src/sdd/task-visualizer.ts
|
|
2030
2049
|
var STATUS_ICON = {
|
|
2031
2050
|
pending: "\u25CB",
|
|
@@ -2348,15 +2367,6 @@ function computeParallelGroups(graph, blockedByMap) {
|
|
|
2348
2367
|
return groups;
|
|
2349
2368
|
}
|
|
2350
2369
|
|
|
2351
|
-
// src/utils/assert-never.ts
|
|
2352
|
-
function assertNever(x, message) {
|
|
2353
|
-
const err = new Error(
|
|
2354
|
-
`Unhandled case: ${JSON.stringify(x)}`
|
|
2355
|
-
);
|
|
2356
|
-
err.name = "AssertNeverError";
|
|
2357
|
-
throw err;
|
|
2358
|
-
}
|
|
2359
|
-
|
|
2360
2370
|
// src/sdd/spec-versioning.ts
|
|
2361
2371
|
var SpecVersioning = class {
|
|
2362
2372
|
versions = /* @__PURE__ */ new Map();
|
|
@@ -3416,7 +3426,7 @@ function classifySubagentError(err, hints = {}) {
|
|
|
3416
3426
|
const baseMessage2 = err.describe();
|
|
3417
3427
|
return providerErrorToSubagentError(err, baseMessage2, cause);
|
|
3418
3428
|
}
|
|
3419
|
-
const baseMessage =
|
|
3429
|
+
const baseMessage = toErrorMessage(err);
|
|
3420
3430
|
if (err instanceof BudgetExceededError) {
|
|
3421
3431
|
const map = {
|
|
3422
3432
|
iterations: "budget_iterations",
|
|
@@ -7117,7 +7127,7 @@ var SddParallelRun = class {
|
|
|
7117
7127
|
const failCount = results.length - successCount;
|
|
7118
7128
|
for (let i = 0; i < results.length; i++) {
|
|
7119
7129
|
const result = expectDefined(results[i]);
|
|
7120
|
-
const taskId = expectDefined(
|
|
7130
|
+
const taskId = expectDefined(tasks[i]).id;
|
|
7121
7131
|
if (result.status === "success") {
|
|
7122
7132
|
this.opts.tracker.updateNodeStatus(taskId, "completed");
|
|
7123
7133
|
this.retryMap.delete(taskId);
|