replicas-cli 0.3.351 → 0.3.352

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.
Files changed (2) hide show
  1. package/dist/index.cjs +20 -4
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -25401,6 +25401,7 @@ In agent mode the CLI hides commands that don't make sense for in-workspace agen
25401
25401
  | \`replicas service ...\` | Run long-lived services detached so they survive workspace sleep/wake (see below) |
25402
25402
  | \`replicas media ...\` | Upload, list, share, revoke, or delete workspace media; follow \`MEDIA.md\` for destination embedding |
25403
25403
  | \`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 |
25404
+ | \`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
25405
  | \`replicas slack thread ...\` | Attach or switch Slack thread routing (covered in \`SLACK.md\`) |
25405
25406
 
25406
25407
  \`replicas <command> --help\` is always the source of truth for flags.
@@ -34706,6 +34707,19 @@ var init_steps = __esm({
34706
34707
  }
34707
34708
  });
34708
34709
 
34710
+ // ../shared/src/display-message/quiet.ts
34711
+ var init_quiet = __esm({
34712
+ "../shared/src/display-message/quiet.ts"() {
34713
+ "use strict";
34714
+ init_urls();
34715
+ init_workspace_target();
34716
+ init_format2();
34717
+ init_mothership_events();
34718
+ init_steps();
34719
+ init_turns();
34720
+ }
34721
+ });
34722
+
34709
34723
  // ../shared/src/html.ts
34710
34724
  var init_html = __esm({
34711
34725
  "../shared/src/html.ts"() {
@@ -37028,6 +37042,7 @@ var init_display_message = __esm({
37028
37042
  init_subagent_tools();
37029
37043
  init_steps();
37030
37044
  init_turns();
37045
+ init_quiet();
37031
37046
  init_final_response();
37032
37047
  init_chat_thread();
37033
37048
  init_parsers();
@@ -37660,7 +37675,7 @@ var CLI_VERSION;
37660
37675
  var init_cli_version = __esm({
37661
37676
  "../shared/src/cli-version.ts"() {
37662
37677
  "use strict";
37663
- CLI_VERSION = "0.3.351";
37678
+ CLI_VERSION = "0.3.352";
37664
37679
  }
37665
37680
  });
37666
37681
 
@@ -54888,14 +54903,15 @@ var init_history = __esm({
54888
54903
 
54889
54904
  // src/commands/skills.ts
54890
54905
  async function skillsSuggestCommand(file2, options) {
54891
- const body = { content: (0, import_node_fs4.readFileSync)(file2, "utf-8"), title: options.title };
54906
+ const body = options.delete ? { remove: options.delete } : file2 && options.title ? { content: (0, import_node_fs4.readFileSync)(file2, "utf-8"), title: options.title } : null;
54907
+ if (!body) throw new Error("Pass a SKILL.md file with --title, or --delete <name-or-id>");
54892
54908
  const { id, name, update } = await agentFetch("/v1/learned-skills/suggestions", {
54893
54909
  method: "POST",
54894
54910
  body
54895
54911
  });
54896
54912
  const link = `[${name}](${MONOLITH_URL}/v1/learned-skills/suggestions/${id})`;
54897
54913
  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.`);
54914
+ 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
54915
  console.log("Put this link on its own line in your reply; it renders as a chip where the user can review it:");
54900
54916
  console.log(link);
54901
54917
  });
@@ -55633,7 +55649,7 @@ ${VISUAL_PAGE_RULES}`).action(run(visualizeCommand));
55633
55649
  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
55650
  }
55635
55651
  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 <file>").description("Suggest saving a SKILL.md as an organization skill; the user reviews it before it is saved").requiredOption("--title <text>", 'Short title shown to the user, e.g. "Always use Conventional Commits"').action(run(skillsSuggestCommand));
55652
+ 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
55653
  program.command("computer").description("Drive the workspace Linux desktop through replicas-computer");
55638
55654
  const allowed = /* @__PURE__ */ new Set([
55639
55655
  "identity",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.3.351",
3
+ "version": "0.3.352",
4
4
  "description": "CLI for managing Replicas workspaces - SSH into cloud dev environments with automatic port forwarding",
5
5
  "main": "dist/index.cjs",
6
6
  "bin": {