@tangle-network/agent-runtime 0.58.0 → 0.59.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.js +1 -1
- package/dist/{chunk-MDFZSPHA.js → chunk-45D64J7B.js} +18 -11
- package/dist/chunk-45D64J7B.js.map +1 -0
- package/dist/{chunk-ISVIQDIX.js → chunk-4FEUFYOY.js} +2 -2
- package/dist/{chunk-ZGPQY6Z3.js → chunk-IN7WHMGZ.js} +2 -2
- package/dist/{chunk-E2L6PG5F.js → chunk-MMDIORZY.js} +3 -3
- package/dist/{chunk-VAGARXI5.js → chunk-ZWGEA722.js} +2 -2
- package/dist/{coordination-BydGBQCZ.d.ts → coordination-Biw19JzN.d.ts} +3 -2
- package/dist/index.js +4 -4
- package/dist/loop-runner-bin.js +3 -3
- package/dist/loops.d.ts +1 -1
- package/dist/loops.js +1 -1
- package/dist/mcp/bin.js +3 -3
- package/dist/mcp/index.d.ts +2 -2
- package/dist/mcp/index.js +4 -4
- package/dist/runtime.d.ts +8 -4
- package/dist/runtime.js +1 -1
- package/dist/workflow.js +1 -1
- package/package.json +3 -1
- package/dist/chunk-MDFZSPHA.js.map +0 -1
- /package/dist/{chunk-ISVIQDIX.js.map → chunk-4FEUFYOY.js.map} +0 -0
- /package/dist/{chunk-ZGPQY6Z3.js.map → chunk-IN7WHMGZ.js.map} +0 -0
- /package/dist/{chunk-E2L6PG5F.js.map → chunk-MMDIORZY.js.map} +0 -0
- /package/dist/{chunk-VAGARXI5.js.map → chunk-ZWGEA722.js.map} +0 -0
package/dist/agent.js
CHANGED
|
@@ -3516,9 +3516,14 @@ async function createWorktree(options) {
|
|
|
3516
3516
|
}
|
|
3517
3517
|
async function captureWorktreeDiff(options) {
|
|
3518
3518
|
const baseRef = options.baseRef ?? options.worktree.baseSha;
|
|
3519
|
-
|
|
3519
|
+
await runGitAsync(["add", "-A"], options.worktree.path, options.runGit);
|
|
3520
|
+
const patch = await runGitAsync(
|
|
3521
|
+
["diff", "--cached", baseRef],
|
|
3522
|
+
options.worktree.path,
|
|
3523
|
+
options.runGit
|
|
3524
|
+
);
|
|
3520
3525
|
const shortstat = await runGitAsync(
|
|
3521
|
-
["diff", "--shortstat", baseRef],
|
|
3526
|
+
["diff", "--cached", "--shortstat", baseRef],
|
|
3522
3527
|
options.worktree.path,
|
|
3523
3528
|
options.runGit
|
|
3524
3529
|
);
|
|
@@ -9800,16 +9805,18 @@ function toToolSpan(input, runId, seq, at) {
|
|
|
9800
9805
|
}
|
|
9801
9806
|
var obj = (v) => v && typeof v === "object" ? v : void 0;
|
|
9802
9807
|
var str = (v) => typeof v === "string" && v ? v : void 0;
|
|
9803
|
-
var decodeOpencodePart = (
|
|
9804
|
-
if (str(
|
|
9805
|
-
const
|
|
9806
|
-
const
|
|
9807
|
-
|
|
9808
|
+
var decodeOpencodePart = (raw) => {
|
|
9809
|
+
if (str(raw.type)?.toLowerCase() !== "tool" || !str(raw.tool)) return void 0;
|
|
9810
|
+
const part = raw;
|
|
9811
|
+
const state = obj(part.state);
|
|
9812
|
+
const status = state?.status;
|
|
9813
|
+
if (!status || status === "pending" || status === "running") return void 0;
|
|
9808
9814
|
return {
|
|
9809
|
-
toolName:
|
|
9815
|
+
toolName: part.tool,
|
|
9810
9816
|
args: state?.input ?? {},
|
|
9811
|
-
|
|
9812
|
-
|
|
9817
|
+
// ToolStateError carries 'error' OR 'failed' — the reverse-engineered decoder missed 'failed'.
|
|
9818
|
+
status: status === "error" || status === "failed" ? "error" : "ok",
|
|
9819
|
+
...str(part.callID) ? { callId: part.callID } : {}
|
|
9813
9820
|
};
|
|
9814
9821
|
};
|
|
9815
9822
|
var decodeAnthropicPart = (p) => {
|
|
@@ -10442,4 +10449,4 @@ export {
|
|
|
10442
10449
|
jjWorkspace,
|
|
10443
10450
|
runInWorkspace
|
|
10444
10451
|
};
|
|
10445
|
-
//# sourceMappingURL=chunk-
|
|
10452
|
+
//# sourceMappingURL=chunk-45D64J7B.js.map
|