@joeyshi12/casper 0.15.6 → 0.15.7
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/mcp.js +1 -1
- package/dist/server.js +18 -2
- package/package.json +1 -1
package/dist/mcp.js
CHANGED
|
@@ -369,7 +369,7 @@ function handleMessage(req, version) {
|
|
|
369
369
|
}
|
|
370
370
|
|
|
371
371
|
// server/src/mcp/server.ts
|
|
372
|
-
var VERSION = true ? "0.15.
|
|
372
|
+
var VERSION = true ? "0.15.7" : "dev";
|
|
373
373
|
function runMcpServer() {
|
|
374
374
|
const rl = createInterface({ input: process.stdin });
|
|
375
375
|
rl.on("line", (line) => {
|
package/dist/server.js
CHANGED
|
@@ -1456,6 +1456,21 @@ var init_SubagentTracker = __esm({
|
|
|
1456
1456
|
}
|
|
1457
1457
|
return resolved;
|
|
1458
1458
|
}
|
|
1459
|
+
/** Called when the parent turn ends. The `subagent` tool call blocks the turn, so
|
|
1460
|
+
* any subagent still working was stopped with it, and kiro does not always send a
|
|
1461
|
+
* list_update saying so. Returns whether anything changed. */
|
|
1462
|
+
turnEnded(now = () => (/* @__PURE__ */ new Date()).toISOString()) {
|
|
1463
|
+
let changed = this.pendingCalls.length > 0;
|
|
1464
|
+
this.pendingCalls.length = 0;
|
|
1465
|
+
for (const s of this.byChild.values()) {
|
|
1466
|
+
if (s.status !== "working") continue;
|
|
1467
|
+
s.status = "failed";
|
|
1468
|
+
s.activity = "Stopped";
|
|
1469
|
+
s.updatedAt = now();
|
|
1470
|
+
changed = true;
|
|
1471
|
+
}
|
|
1472
|
+
return changed;
|
|
1473
|
+
}
|
|
1459
1474
|
/** Started stages plus a synthetic 'pending' row for each declared stage that
|
|
1460
1475
|
* hasn't started, so a stage waiting on a dependency still shows up. */
|
|
1461
1476
|
listForCall(toolCallId) {
|
|
@@ -2400,6 +2415,7 @@ ${tail}` : err.message;
|
|
|
2400
2415
|
s.cancelTimer = void 0;
|
|
2401
2416
|
s.running = false;
|
|
2402
2417
|
s.lastActivity = Date.now();
|
|
2418
|
+
if (s.subagents.turnEnded()) s.record({ kind: "subagents_changed", subagents: s.subagents.list() });
|
|
2403
2419
|
});
|
|
2404
2420
|
}
|
|
2405
2421
|
saveEnding(chatId, ending) {
|
|
@@ -4641,7 +4657,7 @@ var init_server2 = __esm({
|
|
|
4641
4657
|
"server/src/mcp/server.ts"() {
|
|
4642
4658
|
"use strict";
|
|
4643
4659
|
init_protocol();
|
|
4644
|
-
VERSION = true ? "0.15.
|
|
4660
|
+
VERSION = true ? "0.15.7" : "dev";
|
|
4645
4661
|
}
|
|
4646
4662
|
});
|
|
4647
4663
|
|
|
@@ -8021,7 +8037,7 @@ var program = new Command();
|
|
|
8021
8037
|
// server/src/cli/program.ts
|
|
8022
8038
|
init_paths();
|
|
8023
8039
|
init_settings();
|
|
8024
|
-
var VERSION2 = true ? "0.15.
|
|
8040
|
+
var VERSION2 = true ? "0.15.7" : "dev";
|
|
8025
8041
|
async function bootstrap() {
|
|
8026
8042
|
const file = configFilePath();
|
|
8027
8043
|
const settings = readSettings(file);
|