replicas-cli 0.3.262 → 0.3.264
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/index.cjs +15 -6
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -17171,7 +17171,7 @@ var init_pull_requests = __esm({
|
|
|
17171
17171
|
});
|
|
17172
17172
|
|
|
17173
17173
|
// ../shared/src/routes/mothership.ts
|
|
17174
|
-
var linearRuleFields, withLabelIds, mothershipLinearRuleSchema, storedMothershipLinearRuleSchema, SUBAGENT_SERVICE_TIERS, mothershipSubagentSettingsSchema, DEPLOYED_SHOWN_MS, MOTHERSHIP_SHIPPING_LOOKBACK_MS;
|
|
17174
|
+
var linearRuleFields, withLabelIds, mothershipLinearRuleSchema, storedMothershipLinearRuleSchema, SUBAGENT_SERVICE_TIERS, mothershipSubagentSettingsSchema, QUEUE_SECTIONS, MOTHERSHIP_QUEUE_GROUPS, DEPLOYED_SHOWN_MS, MOTHERSHIP_SHIPPING_LOOKBACK_MS;
|
|
17175
17175
|
var init_mothership = __esm({
|
|
17176
17176
|
"../shared/src/routes/mothership.ts"() {
|
|
17177
17177
|
"use strict";
|
|
@@ -17202,6 +17202,12 @@ var init_mothership = __esm({
|
|
|
17202
17202
|
goal_mode: external_exports.boolean(),
|
|
17203
17203
|
plan_mode: external_exports.boolean()
|
|
17204
17204
|
});
|
|
17205
|
+
QUEUE_SECTIONS = [
|
|
17206
|
+
{ label: "Open PRs", groups: ["needs_you", "ready_to_merge", "ready_to_review"] },
|
|
17207
|
+
{ label: "Working", groups: ["working"] },
|
|
17208
|
+
{ label: "Shipping", groups: ["shipping"] }
|
|
17209
|
+
];
|
|
17210
|
+
MOTHERSHIP_QUEUE_GROUPS = QUEUE_SECTIONS.flatMap((section) => section.groups);
|
|
17205
17211
|
DEPLOYED_SHOWN_MS = 3 * 60 * 6e4;
|
|
17206
17212
|
MOTHERSHIP_SHIPPING_LOOKBACK_MS = 3 * 24 * 60 * 6e4;
|
|
17207
17213
|
}
|
|
@@ -21002,6 +21008,10 @@ function stringifyDisplayValue(value) {
|
|
|
21002
21008
|
return String(value);
|
|
21003
21009
|
}
|
|
21004
21010
|
}
|
|
21011
|
+
function markTurnEnd(messages, completedAt) {
|
|
21012
|
+
const last = messages.at(-1);
|
|
21013
|
+
if (last?.type === "agent") messages[messages.length - 1] = { ...last, endsTurn: true, ...completedAt ? { completedAt } : {} };
|
|
21014
|
+
}
|
|
21005
21015
|
function upsertDisplayMessage(messages, message2) {
|
|
21006
21016
|
const index = messages.findIndex((candidate) => candidate.id === message2.id);
|
|
21007
21017
|
if (index === -1) messages.push(message2);
|
|
@@ -28861,8 +28871,7 @@ function codexTurnMessages(turn) {
|
|
|
28861
28871
|
const message2 = messageForItem(item);
|
|
28862
28872
|
return [...message2 ? [message2] : [], ...skillMessagesForItem(item)];
|
|
28863
28873
|
});
|
|
28864
|
-
|
|
28865
|
-
if (last?.type === "agent" && normalizeCodexAspTranscriptStatus(turn.status) !== "in_progress") messages[messages.length - 1] = { ...last, endsTurn: true, ...turn.completedAt ? { completedAt: turn.completedAt } : {} };
|
|
28874
|
+
if (normalizeCodexAspTranscriptStatus(turn.status) !== "in_progress") markTurnEnd(messages, turn.completedAt);
|
|
28866
28875
|
if (turn.error) {
|
|
28867
28876
|
messages.push({
|
|
28868
28877
|
id: `error-${turn.id}`,
|
|
@@ -29540,6 +29549,7 @@ function parseCursorEvents(events) {
|
|
|
29540
29549
|
const displayStatus = cursorStatusToDisplayStatus(status);
|
|
29541
29550
|
finalizeActiveThinking(displayStatus);
|
|
29542
29551
|
finalizeOpenCalls(messages, callIndexes, displayStatus);
|
|
29552
|
+
markTurnEnd(messages);
|
|
29543
29553
|
activeThinking = null;
|
|
29544
29554
|
activeAssistant = null;
|
|
29545
29555
|
}
|
|
@@ -30600,8 +30610,7 @@ function parseClaudeEvents(events, parentToolUseId) {
|
|
|
30600
30610
|
}
|
|
30601
30611
|
if (event.type === "claude-result") {
|
|
30602
30612
|
const payload = coerceClaudeResultPayload(event.payload);
|
|
30603
|
-
|
|
30604
|
-
if (last?.type === "agent") replaceMessage(messages.length - 1, { ...last, endsTurn: true });
|
|
30613
|
+
markTurnEnd(messages);
|
|
30605
30614
|
if (isClaudeResultError(payload)) {
|
|
30606
30615
|
const genuineErrors = stripAgentDiagnosticErrors(payload.errors ?? []);
|
|
30607
30616
|
messages.push({
|
|
@@ -31594,7 +31603,7 @@ var CLI_VERSION;
|
|
|
31594
31603
|
var init_cli_version = __esm({
|
|
31595
31604
|
"../shared/src/cli-version.ts"() {
|
|
31596
31605
|
"use strict";
|
|
31597
|
-
CLI_VERSION = "0.3.
|
|
31606
|
+
CLI_VERSION = "0.3.264";
|
|
31598
31607
|
}
|
|
31599
31608
|
});
|
|
31600
31609
|
|