replicas-cli 0.3.351 → 0.3.353
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 +23 -6
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -22345,7 +22345,7 @@ function parseCodexTurnRetryPayload(payload) {
|
|
|
22345
22345
|
const { attempt, maxAttempts, [CODEX_ASP_ITEM_ID_PAYLOAD_KEY]: turnId } = payload;
|
|
22346
22346
|
return typeof attempt === "number" && typeof maxAttempts === "number" && typeof turnId === "string" ? { attempt, maxAttempts, [CODEX_ASP_ITEM_ID_PAYLOAD_KEY]: turnId } : void 0;
|
|
22347
22347
|
}
|
|
22348
|
-
var CLAUDE_PARTIAL_MESSAGE_EVENT_TYPE, ACCEPTED_USER_MESSAGE_SOURCE, QUEUED_MESSAGE_REMOVED_EVENT_TYPE, REMOVED_MESSAGE_IDS_PAYLOAD_KEY, USER_MESSAGE_ID_PAYLOAD_KEY, REPLACED_MESSAGE_ID_PAYLOAD_KEY, CODEX_ASP_ITEM_ID_PAYLOAD_KEY, CODEX_ITEM_EVENT_TYPE, CODEX_ITEM_PARTIAL_EVENT_TYPE, CODEX_TURN_EVENT_TYPE, CODEX_TURN_RETRY_EVENT_TYPE, CODEX_QUOTA_STATUS_EVENT_TYPE, CHAT_INTERRUPTED_EVENT_TYPE, CHAT_MESSAGE_REJECTED_EVENT_TYPE, CHAT_TURN_LOST_EVENT_TYPE, CLAUDE_PEER_MESSAGE_EVENT_TYPE, AUTH_FALLBACK_EVENT_TYPE;
|
|
22348
|
+
var CLAUDE_PARTIAL_MESSAGE_EVENT_TYPE, ACCEPTED_USER_MESSAGE_SOURCE, QUEUED_MESSAGE_REMOVED_EVENT_TYPE, REMOVED_MESSAGE_IDS_PAYLOAD_KEY, USER_MESSAGE_ID_PAYLOAD_KEY, REPLACED_MESSAGE_ID_PAYLOAD_KEY, CODEX_ASP_ITEM_ID_PAYLOAD_KEY, CODEX_ITEM_EVENT_TYPE, CODEX_ITEM_PARTIAL_EVENT_TYPE, CODEX_TURN_EVENT_TYPE, CODEX_TURN_RETRY_EVENT_TYPE, CODEX_QUOTA_STATUS_EVENT_TYPE, CHAT_INTERRUPTED_EVENT_TYPE, CHAT_MESSAGE_REJECTED_EVENT_TYPE, CHAT_TURN_LOST_EVENT_TYPE, CHAT_TURN_LOST_MESSAGE, CLAUDE_PEER_MESSAGE_EVENT_TYPE, AUTH_FALLBACK_EVENT_TYPE;
|
|
22349
22349
|
var init_event = __esm({
|
|
22350
22350
|
"../shared/src/event.ts"() {
|
|
22351
22351
|
"use strict";
|
|
@@ -22368,6 +22368,7 @@ var init_event = __esm({
|
|
|
22368
22368
|
CHAT_INTERRUPTED_EVENT_TYPE = "replicas-interrupted";
|
|
22369
22369
|
CHAT_MESSAGE_REJECTED_EVENT_TYPE = "replicas-message-rejected";
|
|
22370
22370
|
CHAT_TURN_LOST_EVENT_TYPE = "replicas-turn-lost";
|
|
22371
|
+
CHAT_TURN_LOST_MESSAGE = "The workspace restarted and cut this turn off. It wasn't retried.";
|
|
22371
22372
|
CLAUDE_PEER_MESSAGE_EVENT_TYPE = "claude-peer-message";
|
|
22372
22373
|
AUTH_FALLBACK_EVENT_TYPE = "auth-fallback";
|
|
22373
22374
|
}
|
|
@@ -25401,6 +25402,7 @@ In agent mode the CLI hides commands that don't make sense for in-workspace agen
|
|
|
25401
25402
|
| \`replicas service ...\` | Run long-lived services detached so they survive workspace sleep/wake (see below) |
|
|
25402
25403
|
| \`replicas media ...\` | Upload, list, share, revoke, or delete workspace media; follow \`MEDIA.md\` for destination embedding |
|
|
25403
25404
|
| \`replicas skills suggest <SKILL.md> --title <text>\` | Suggest saving a lasting user instruction as a learning (an organization skill); the user accepts or dismisses it |
|
|
25405
|
+
| \`replicas skills suggest --delete <name-or-id>\` | When the user asks you to delete a learning, suggest removing it; the user accepts or dismisses it |
|
|
25404
25406
|
| \`replicas slack thread ...\` | Attach or switch Slack thread routing (covered in \`SLACK.md\`) |
|
|
25405
25407
|
|
|
25406
25408
|
\`replicas <command> --help\` is always the source of truth for flags.
|
|
@@ -34706,6 +34708,19 @@ var init_steps = __esm({
|
|
|
34706
34708
|
}
|
|
34707
34709
|
});
|
|
34708
34710
|
|
|
34711
|
+
// ../shared/src/display-message/quiet.ts
|
|
34712
|
+
var init_quiet = __esm({
|
|
34713
|
+
"../shared/src/display-message/quiet.ts"() {
|
|
34714
|
+
"use strict";
|
|
34715
|
+
init_urls();
|
|
34716
|
+
init_workspace_target();
|
|
34717
|
+
init_format2();
|
|
34718
|
+
init_mothership_events();
|
|
34719
|
+
init_steps();
|
|
34720
|
+
init_turns();
|
|
34721
|
+
}
|
|
34722
|
+
});
|
|
34723
|
+
|
|
34709
34724
|
// ../shared/src/html.ts
|
|
34710
34725
|
var init_html = __esm({
|
|
34711
34726
|
"../shared/src/html.ts"() {
|
|
@@ -36920,7 +36935,7 @@ function applyEngineNotices(messages, events) {
|
|
|
36920
36935
|
notices.push({
|
|
36921
36936
|
id: `turn-lost-${event.timestamp}-${index}`,
|
|
36922
36937
|
type: "error",
|
|
36923
|
-
message:
|
|
36938
|
+
message: CHAT_TURN_LOST_MESSAGE,
|
|
36924
36939
|
timestamp: event.timestamp
|
|
36925
36940
|
});
|
|
36926
36941
|
return;
|
|
@@ -37028,6 +37043,7 @@ var init_display_message = __esm({
|
|
|
37028
37043
|
init_subagent_tools();
|
|
37029
37044
|
init_steps();
|
|
37030
37045
|
init_turns();
|
|
37046
|
+
init_quiet();
|
|
37031
37047
|
init_final_response();
|
|
37032
37048
|
init_chat_thread();
|
|
37033
37049
|
init_parsers();
|
|
@@ -37660,7 +37676,7 @@ var CLI_VERSION;
|
|
|
37660
37676
|
var init_cli_version = __esm({
|
|
37661
37677
|
"../shared/src/cli-version.ts"() {
|
|
37662
37678
|
"use strict";
|
|
37663
|
-
CLI_VERSION = "0.3.
|
|
37679
|
+
CLI_VERSION = "0.3.353";
|
|
37664
37680
|
}
|
|
37665
37681
|
});
|
|
37666
37682
|
|
|
@@ -54888,14 +54904,15 @@ var init_history = __esm({
|
|
|
54888
54904
|
|
|
54889
54905
|
// src/commands/skills.ts
|
|
54890
54906
|
async function skillsSuggestCommand(file2, options) {
|
|
54891
|
-
const body = { content: (0, import_node_fs4.readFileSync)(file2, "utf-8"), title: options.title };
|
|
54907
|
+
const body = options.delete ? { remove: options.delete } : file2 && options.title ? { content: (0, import_node_fs4.readFileSync)(file2, "utf-8"), title: options.title } : null;
|
|
54908
|
+
if (!body) throw new Error("Pass a SKILL.md file with --title, or --delete <name-or-id>");
|
|
54892
54909
|
const { id, name, update } = await agentFetch("/v1/learned-skills/suggestions", {
|
|
54893
54910
|
method: "POST",
|
|
54894
54911
|
body
|
|
54895
54912
|
});
|
|
54896
54913
|
const link = `[${name}](${MONOLITH_URL}/v1/learned-skills/suggestions/${id})`;
|
|
54897
54914
|
output2({ id, name, update, link }, () => {
|
|
54898
|
-
console.log(`Suggested ${update ? "an update to the" : "a new"} learning '${name}'. It is saved only if the user accepts it.`);
|
|
54915
|
+
console.log(options.delete ? `Suggested removing the learning '${name}'. It is removed only if the user accepts it.` : `Suggested ${update ? "an update to the" : "a new"} learning '${name}'. It is saved only if the user accepts it.`);
|
|
54899
54916
|
console.log("Put this link on its own line in your reply; it renders as a chip where the user can review it:");
|
|
54900
54917
|
console.log(link);
|
|
54901
54918
|
});
|
|
@@ -55633,7 +55650,7 @@ ${VISUAL_PAGE_RULES}`).action(run(visualizeCommand));
|
|
|
55633
55650
|
gpu.command("delete [id]").description("Stop a GPU sandbox").option("-s, --sandbox <id>", "Sandbox ID (defaults to the only running sandbox)").action(run(gpuDeleteCommand));
|
|
55634
55651
|
}
|
|
55635
55652
|
program.command("history").description("Read past session history").command("transcript <name>").description("Download the full transcript of a session in INDEX.md and print its path").action(run(historyTranscriptCommand));
|
|
55636
|
-
skills.command("suggest
|
|
55653
|
+
skills.command("suggest [file]").description("Suggest saving a SKILL.md as an organization skill, or removing one with --delete; the user reviews it first").option("--title <text>", 'Short title shown to the user, e.g. "Always use Conventional Commits" (required with a file)').option("--delete <name-or-id>", "Suggest removing this organization skill instead").action(run(skillsSuggestCommand));
|
|
55637
55654
|
program.command("computer").description("Drive the workspace Linux desktop through replicas-computer");
|
|
55638
55655
|
const allowed = /* @__PURE__ */ new Set([
|
|
55639
55656
|
"identity",
|