replicas-cli 0.3.280 → 0.3.282
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 +8 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -20723,11 +20723,12 @@ function normalizeBackgroundTaskStatus(status) {
|
|
|
20723
20723
|
}
|
|
20724
20724
|
return "in_progress";
|
|
20725
20725
|
}
|
|
20726
|
-
var BACKGROUND_TASK_SUBTYPES;
|
|
20726
|
+
var RUN_STEP_TYPES, BACKGROUND_TASK_SUBTYPES;
|
|
20727
20727
|
var init_types6 = __esm({
|
|
20728
20728
|
"../shared/src/display-message/types.ts"() {
|
|
20729
20729
|
"use strict";
|
|
20730
20730
|
init_type_guards();
|
|
20731
|
+
RUN_STEP_TYPES = ["agent", "reasoning", "command", "file_change", "patch", "tool_call", "web_search", "todo_list", "skill", "subagent"];
|
|
20731
20732
|
BACKGROUND_TASK_SUBTYPES = /* @__PURE__ */ new Set([
|
|
20732
20733
|
"task_started",
|
|
20733
20734
|
"task_progress",
|
|
@@ -21104,7 +21105,7 @@ function stringifyDisplayValue(value) {
|
|
|
21104
21105
|
}
|
|
21105
21106
|
function markTurnEnd(messages, completedAt) {
|
|
21106
21107
|
const last = messages.at(-1);
|
|
21107
|
-
if (last
|
|
21108
|
+
if (last && isRunStep(last)) messages[messages.length - 1] = { ...last, endsTurn: true, ...last.type === "agent" && completedAt ? { completedAt } : {} };
|
|
21108
21109
|
}
|
|
21109
21110
|
function upsertDisplayMessage(messages, message2) {
|
|
21110
21111
|
const index = messages.findIndex((candidate) => candidate.id === message2.id);
|
|
@@ -21203,14 +21204,17 @@ function insertDisplayMessageByTimestamp(messages, message2) {
|
|
|
21203
21204
|
while (index > 0 && parseTimestampMs(messages[index - 1].timestamp) > messageMs) index--;
|
|
21204
21205
|
messages.splice(index, 0, message2);
|
|
21205
21206
|
}
|
|
21206
|
-
var INTERRUPTED_MESSAGE_REGEX, READ_TOOL_NAMES;
|
|
21207
|
+
var INTERRUPTED_MESSAGE_REGEX, runStepTypes, isRunStep, READ_TOOL_NAMES;
|
|
21207
21208
|
var init_utils = __esm({
|
|
21208
21209
|
"../shared/src/display-message/parsers/utils.ts"() {
|
|
21209
21210
|
"use strict";
|
|
21211
|
+
init_types6();
|
|
21210
21212
|
init_agent_event_utils();
|
|
21211
21213
|
init_json();
|
|
21212
21214
|
init_type_guards();
|
|
21213
21215
|
INTERRUPTED_MESSAGE_REGEX = /^\[Request interrupted by user.*\]$/;
|
|
21216
|
+
runStepTypes = new Set(RUN_STEP_TYPES);
|
|
21217
|
+
isRunStep = (message2) => runStepTypes.has(message2.type);
|
|
21214
21218
|
READ_TOOL_NAMES = /* @__PURE__ */ new Set(["read", "read_file", "readfile", "view"]);
|
|
21215
21219
|
}
|
|
21216
21220
|
});
|
|
@@ -31697,7 +31701,7 @@ var CLI_VERSION;
|
|
|
31697
31701
|
var init_cli_version = __esm({
|
|
31698
31702
|
"../shared/src/cli-version.ts"() {
|
|
31699
31703
|
"use strict";
|
|
31700
|
-
CLI_VERSION = "0.3.
|
|
31704
|
+
CLI_VERSION = "0.3.282";
|
|
31701
31705
|
}
|
|
31702
31706
|
});
|
|
31703
31707
|
|