@wrongstack/core 0.8.4 → 0.8.6
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-DPxcUVkn.d.ts → agent-bridge-Bad3ZGQ7.d.ts} +1 -1
- package/dist/{agent-subagent-runner-Cav3yEJM.d.ts → agent-subagent-runner-Cc8sRJOF.d.ts} +3 -3
- package/dist/coordination/index.d.ts +8 -8
- package/dist/coordination/index.js +8 -1
- package/dist/coordination/index.js.map +1 -1
- package/dist/defaults/index.d.ts +11 -11
- package/dist/defaults/index.js +41 -21
- package/dist/defaults/index.js.map +1 -1
- package/dist/{events-DyhxkstG.d.ts → events-yCpJD4wa.d.ts} +49 -0
- package/dist/execution/index.d.ts +7 -7
- package/dist/execution/index.js +22 -3
- package/dist/execution/index.js.map +1 -1
- package/dist/extension/index.d.ts +2 -2
- package/dist/index-BvZld4Dr.d.ts +200 -0
- package/dist/{index-oYZeWsuJ.d.ts → index-SxpnwRlJ.d.ts} +1 -1
- package/dist/index.d.ts +132 -21
- package/dist/index.js +862 -146
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/index.d.ts +2 -2
- package/dist/kernel/index.d.ts +16 -88
- package/dist/kernel/index.js +3 -1
- package/dist/kernel/index.js.map +1 -1
- package/dist/{multi-agent-CRMznZmf.d.ts → multi-agent-C8uY45AY.d.ts} +9 -1
- package/dist/{multi-agent-coordinator-IQKrMfXz.d.ts → multi-agent-coordinator-C7YbZUY8.d.ts} +2 -2
- package/dist/{null-fleet-bus-sKnVwEd8.d.ts → null-fleet-bus-Bb2jVLKr.d.ts} +5 -5
- package/dist/observability/index.d.ts +1 -1
- package/dist/{path-resolver-1CIYbH2Q.d.ts → path-resolver-DnC1nOjb.d.ts} +1 -1
- package/dist/{plan-templates-BnlpEkX8.d.ts → plan-templates-Cqdy6rtM.d.ts} +2 -2
- package/dist/{provider-runner-BrA0XR-l.d.ts → provider-runner-C4ouU7--.d.ts} +1 -1
- package/dist/sdd/index.d.ts +11 -11
- package/dist/sdd/index.js +10 -14
- package/dist/sdd/index.js.map +1 -1
- package/dist/security/index.js.map +1 -1
- package/dist/skills/index.js +7 -1
- package/dist/skills/index.js.map +1 -1
- package/dist/storage/index.d.ts +3 -3
- package/dist/storage/index.js +1 -3
- package/dist/storage/index.js.map +1 -1
- package/dist/{tool-executor-QwfWnQZ8.d.ts → tool-executor-Ch25BDwa.d.ts} +1 -1
- package/dist/types/index.d.ts +7 -7
- package/dist/types/index.js +22 -3
- package/dist/types/index.js.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +41 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/{wstack-paths-gCrJ631C.d.ts → wstack-paths-CJYrjQU8.d.ts} +4 -0
- package/package.json +1 -1
|
@@ -417,6 +417,55 @@ interface EventMap {
|
|
|
417
417
|
assigned: boolean;
|
|
418
418
|
}[];
|
|
419
419
|
};
|
|
420
|
+
/**
|
|
421
|
+
* Git-worktree lifecycle, emitted by WorktreeManager. AutoPhase allocates one
|
|
422
|
+
* worktree per phase so parallelizable phases run isolated, then merges them
|
|
423
|
+
* back sequentially. The WebUI/TUI subscribe to render live swim-lanes/DAG.
|
|
424
|
+
*/
|
|
425
|
+
'worktree.allocated': {
|
|
426
|
+
handleId: string;
|
|
427
|
+
ownerId: string;
|
|
428
|
+
ownerLabel: string;
|
|
429
|
+
slug: string;
|
|
430
|
+
dir: string;
|
|
431
|
+
branch: string;
|
|
432
|
+
baseBranch: string;
|
|
433
|
+
};
|
|
434
|
+
'worktree.committed': {
|
|
435
|
+
handleId: string;
|
|
436
|
+
ownerId: string;
|
|
437
|
+
branch: string;
|
|
438
|
+
committed: boolean;
|
|
439
|
+
insertions: number;
|
|
440
|
+
deletions: number;
|
|
441
|
+
files: number;
|
|
442
|
+
sha?: string;
|
|
443
|
+
};
|
|
444
|
+
'worktree.merged': {
|
|
445
|
+
handleId: string;
|
|
446
|
+
ownerId: string;
|
|
447
|
+
branch: string;
|
|
448
|
+
baseBranch: string;
|
|
449
|
+
squash: boolean;
|
|
450
|
+
};
|
|
451
|
+
'worktree.conflict': {
|
|
452
|
+
handleId: string;
|
|
453
|
+
ownerId: string;
|
|
454
|
+
branch: string;
|
|
455
|
+
conflictFiles: string[];
|
|
456
|
+
};
|
|
457
|
+
'worktree.released': {
|
|
458
|
+
handleId: string;
|
|
459
|
+
ownerId: string;
|
|
460
|
+
branch: string;
|
|
461
|
+
kept: boolean;
|
|
462
|
+
};
|
|
463
|
+
'worktree.failed': {
|
|
464
|
+
handleId: string;
|
|
465
|
+
ownerId: string;
|
|
466
|
+
branch?: string;
|
|
467
|
+
error: string;
|
|
468
|
+
};
|
|
420
469
|
error: {
|
|
421
470
|
err: Error;
|
|
422
471
|
phase: string;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export { C as CompactorOptions, a as DefaultErrorHandler, b as DefaultRetryPolicy, H as HybridCompactor, T as ToolExecutor } from '../tool-executor-
|
|
1
|
+
export { C as CompactorOptions, a as DefaultErrorHandler, b as DefaultRetryPolicy, H as HybridCompactor, T as ToolExecutor } from '../tool-executor-Ch25BDwa.js';
|
|
2
2
|
import { m as Provider, d as Context } from '../context-z2x5gv_V.js';
|
|
3
3
|
import { a as Compactor, C as CompactReport } from '../compactor-Mw7-rNyb.js';
|
|
4
4
|
import { M as MessageSelector } from '../selector-DkvgYVS4.js';
|
|
5
|
-
import { E as EventBus } from '../events-
|
|
5
|
+
import { E as EventBus } from '../events-yCpJD4wa.js';
|
|
6
6
|
import { b as MiddlewareHandler } from '../system-prompt-CWA6ml-d.js';
|
|
7
7
|
import { e as ContextWindowAggressiveOn, i as ContextWindowPolicy } from '../config-Bi4Q0fnz.js';
|
|
8
|
-
import { c as Agent, R as RunResult, w as SystemPromptContributor } from '../index-
|
|
9
|
-
import { D as DoneCondition } from '../multi-agent-
|
|
8
|
+
import { c as Agent, R as RunResult, w as SystemPromptContributor } from '../index-SxpnwRlJ.js';
|
|
9
|
+
import { D as DoneCondition } from '../multi-agent-C8uY45AY.js';
|
|
10
10
|
import { J as JournalEntry } from '../goal-store-C7jcumEh.js';
|
|
11
|
-
import { A as AgentFactory } from '../agent-subagent-runner-
|
|
12
|
-
import { f as DispatchClassifier, d as DefaultMultiAgentCoordinator } from '../multi-agent-coordinator-
|
|
11
|
+
import { A as AgentFactory } from '../agent-subagent-runner-Cc8sRJOF.js';
|
|
12
|
+
import { f as DispatchClassifier, d as DefaultMultiAgentCoordinator } from '../multi-agent-coordinator-C7YbZUY8.js';
|
|
13
13
|
import { a as SkillLoader, b as SkillManifest, S as SkillEntry } from '../skill-CxuWrsKK.js';
|
|
14
|
-
import { a as WstackPaths } from '../wstack-paths-
|
|
14
|
+
import { a as WstackPaths } from '../wstack-paths-CJYrjQU8.js';
|
|
15
15
|
import '../retry-policy-OwtKNxo8.js';
|
|
16
16
|
import '../models-registry-BcYJDKLm.js';
|
|
17
17
|
import '../logger-DDd5C--Z.js';
|
package/dist/execution/index.js
CHANGED
|
@@ -1240,7 +1240,7 @@ var ToolExecutor = class {
|
|
|
1240
1240
|
return { result, tool, durationMs: Date.now() - start };
|
|
1241
1241
|
}
|
|
1242
1242
|
if (hasMalformedArguments(use.input)) {
|
|
1243
|
-
const result = this.malformedInputResult(use);
|
|
1243
|
+
const result = this.malformedInputResult(use, extractMalformedRaw(use.input));
|
|
1244
1244
|
budget = this.decrementBudget(result, budget);
|
|
1245
1245
|
return { result, tool, durationMs: Date.now() - start };
|
|
1246
1246
|
}
|
|
@@ -1447,11 +1447,18 @@ var ToolExecutor = class {
|
|
|
1447
1447
|
is_error: true
|
|
1448
1448
|
};
|
|
1449
1449
|
}
|
|
1450
|
-
malformedInputResult(use) {
|
|
1450
|
+
malformedInputResult(use, raw) {
|
|
1451
|
+
let content = `Tool "${use.name}" received arguments that were not a valid JSON object, so they could not be parsed. Re-issue the call with the arguments encoded as a single well-formed JSON object matching the tool's input schema.`;
|
|
1452
|
+
if (raw) {
|
|
1453
|
+
const max = 800;
|
|
1454
|
+
const excerpt = raw.length > max ? `${raw.slice(0, max)}\u2026 (truncated, ${raw.length} chars total)` : raw;
|
|
1455
|
+
content += ` Common cause: a string field (e.g. code in old_string/new_string) contains literal newlines, quotes, or backslashes that must be JSON-escaped, or the payload was cut off mid-stream. The raw arguments received were:
|
|
1456
|
+
${excerpt}`;
|
|
1457
|
+
}
|
|
1451
1458
|
return {
|
|
1452
1459
|
type: "tool_result",
|
|
1453
1460
|
tool_use_id: use.id,
|
|
1454
|
-
content
|
|
1461
|
+
content,
|
|
1455
1462
|
is_error: true
|
|
1456
1463
|
};
|
|
1457
1464
|
}
|
|
@@ -1507,6 +1514,18 @@ function hasMalformedArguments(input) {
|
|
|
1507
1514
|
const keys = Object.keys(obj);
|
|
1508
1515
|
return keys.length === 1 && MALFORMED_ARG_MARKERS.includes(keys[0]);
|
|
1509
1516
|
}
|
|
1517
|
+
function extractMalformedRaw(input) {
|
|
1518
|
+
if (!hasMalformedArguments(input)) return void 0;
|
|
1519
|
+
const obj = input;
|
|
1520
|
+
const value = obj[Object.keys(obj)[0]];
|
|
1521
|
+
if (value === void 0 || value === null) return void 0;
|
|
1522
|
+
if (typeof value === "string") return value;
|
|
1523
|
+
try {
|
|
1524
|
+
return JSON.stringify(value);
|
|
1525
|
+
} catch {
|
|
1526
|
+
return String(value);
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1510
1529
|
|
|
1511
1530
|
// src/utils/regex-guard.ts
|
|
1512
1531
|
var MAX_PATTERN_LEN = 512;
|