switchroom 0.15.29 → 0.15.30
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/cli/switchroom.js
CHANGED
|
@@ -50513,8 +50513,8 @@ var {
|
|
|
50513
50513
|
} = import__.default;
|
|
50514
50514
|
|
|
50515
50515
|
// src/build-info.ts
|
|
50516
|
-
var VERSION = "0.15.
|
|
50517
|
-
var COMMIT_SHA = "
|
|
50516
|
+
var VERSION = "0.15.30";
|
|
50517
|
+
var COMMIT_SHA = "14e64ce2";
|
|
50518
50518
|
|
|
50519
50519
|
// src/cli/agent.ts
|
|
50520
50520
|
init_source();
|
|
@@ -22199,10 +22199,22 @@ function scheduleFrameBytes(view) {
|
|
|
22199
22199
|
function boundScheduleView(entries, recentByAgent) {
|
|
22200
22200
|
const slimEntries = entries.map(slimScheduleEntry);
|
|
22201
22201
|
const truncSummary = (r) => typeof r.outputSummary === "string" && r.outputSummary.length > SCHEDULE_OUTPUT_SUMMARY_MAX_CHARS ? { ...r, outputSummary: r.outputSummary.slice(0, SCHEDULE_OUTPUT_SUMMARY_MAX_CHARS) } : { ...r };
|
|
22202
|
+
const currentKeysByAgent = new Map;
|
|
22203
|
+
for (const e of entries) {
|
|
22204
|
+
let s = currentKeysByAgent.get(e.agent);
|
|
22205
|
+
if (!s) {
|
|
22206
|
+
s = new Set;
|
|
22207
|
+
currentKeysByAgent.set(e.agent, s);
|
|
22208
|
+
}
|
|
22209
|
+
s.add(e.promptKey);
|
|
22210
|
+
}
|
|
22202
22211
|
const boundedRecent = {};
|
|
22203
22212
|
for (const [agent, rows] of Object.entries(recentByAgent)) {
|
|
22213
|
+
const currentKeys = currentKeysByAgent.get(agent) ?? new Set;
|
|
22204
22214
|
const byKey = new Map;
|
|
22205
22215
|
for (const r of rows) {
|
|
22216
|
+
if (!currentKeys.has(r.promptKey))
|
|
22217
|
+
continue;
|
|
22206
22218
|
const arr = byKey.get(r.promptKey);
|
|
22207
22219
|
if (arr)
|
|
22208
22220
|
arr.push(r);
|
|
@@ -22214,7 +22226,8 @@ function boundScheduleView(entries, recentByAgent) {
|
|
|
22214
22226
|
for (const r of arr.slice(-SCHEDULE_MAX_FIRES_PER_CRON))
|
|
22215
22227
|
kept.push(truncSummary(r));
|
|
22216
22228
|
}
|
|
22217
|
-
|
|
22229
|
+
if (kept.length > 0)
|
|
22230
|
+
boundedRecent[agent] = kept;
|
|
22218
22231
|
}
|
|
22219
22232
|
let view = { entries: slimEntries, recentByAgent: boundedRecent };
|
|
22220
22233
|
if (scheduleFrameBytes(view) <= SCHEDULE_FRAME_BUDGET_BYTES)
|
package/package.json
CHANGED
|
@@ -54460,10 +54460,10 @@ function readTurnActiveMarkerAgeMs(stateDir, now) {
|
|
|
54460
54460
|
}
|
|
54461
54461
|
|
|
54462
54462
|
// ../src/build-info.ts
|
|
54463
|
-
var VERSION = "0.15.
|
|
54464
|
-
var COMMIT_SHA = "
|
|
54465
|
-
var COMMIT_DATE = "2026-06-
|
|
54466
|
-
var LATEST_PR =
|
|
54463
|
+
var VERSION = "0.15.30";
|
|
54464
|
+
var COMMIT_SHA = "14e64ce2";
|
|
54465
|
+
var COMMIT_DATE = "2026-06-15T10:03:13Z";
|
|
54466
|
+
var LATEST_PR = 2378;
|
|
54467
54467
|
var COMMITS_AHEAD_OF_TAG = 0;
|
|
54468
54468
|
|
|
54469
54469
|
// gateway/boot-version.ts
|