replicas-cli 0.3.446 → 0.3.448

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 +184 -23
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -248,6 +248,7 @@ var init_urls = __esm({
248
248
  accountIntegrations: `${DASHBOARD_PATH}/account/integrations`,
249
249
  accountApiKeys: `${DASHBOARD_PATH}/account/api-keys`,
250
250
  accountPreferences: `${DASHBOARD_PATH}/account/preferences`,
251
+ accountKeyboardShortcuts: `${DASHBOARD_PATH}/account/keyboard-shortcuts`,
251
252
  fullscreenWorkspaces: "/workspaces"
252
253
  };
253
254
  UUID_PATTERN = "????????-????-????-????-????????????";
@@ -22427,7 +22428,7 @@ function codexTurnFromEvent(event) {
22427
22428
  const { turnId, status, error: error62 } = event.payload;
22428
22429
  return typeof turnId === "string" && typeof status === "string" ? { turnId, status, ...typeof error62 === "string" ? { error: error62 } : {} } : null;
22429
22430
  }
22430
- var MERGED_MESSAGE_SEPARATOR, engineStatusSnapshotSchema, updateChatDisplayNameRequestSchema, createChatRequestSchema, spawnSubagentRequestSchema, messageSubagentRequestSchema, waitSubagentRequestSchema, subagentResponseSchema, integrationErrorNotificationTargetSchema, sendChatMessageRequestSchema, CODEX_ITEM_FIELD_CHECKS, sendChatMessageResponseSchema, interruptChatRequestSchema, respondToolInputRequestSchema;
22431
+ var MERGED_MESSAGE_SEPARATOR, engineStatusSnapshotSchema, updateChatDisplayNameRequestSchema, createChatFields, createChatRequestSchema, createHarnessChatRequestSchema, spawnSubagentRequestSchema, messageSubagentRequestSchema, waitSubagentRequestSchema, subagentResponseSchema, integrationErrorNotificationTargetSchema, sendChatMessageRequestSchema, CODEX_ITEM_FIELD_CHECKS, sendChatMessageResponseSchema, interruptChatRequestSchema, respondToolInputRequestSchema;
22431
22432
  var init_v1 = __esm({
22432
22433
  "../shared/src/engine/v1.ts"() {
22433
22434
  "use strict";
@@ -22454,7 +22455,7 @@ var init_v1 = __esm({
22454
22455
  updateChatDisplayNameRequestSchema = external_exports.object({
22455
22456
  displayName: external_exports.string().trim().min(1).max(100)
22456
22457
  });
22457
- createChatRequestSchema = external_exports.object({
22458
+ createChatFields = external_exports.object({
22458
22459
  id: external_exports.string().uuid().optional(),
22459
22460
  createdAt: external_exports.string().datetime().optional(),
22460
22461
  provider: external_exports.enum(ENGINE_AGENT_PROVIDERS),
@@ -22465,9 +22466,11 @@ var init_v1 = __esm({
22465
22466
  kind: external_exports.enum(CHAT_KINDS).optional(),
22466
22467
  sideChat: external_exports.boolean().optional(),
22467
22468
  clientRequestId: external_exports.string().min(1).max(128).optional()
22468
- }).refine((request) => !request.sideChat || request.forkSourceChatId !== void 0 && request.parentChatId === request.forkSourceChatId, {
22469
+ });
22470
+ createChatRequestSchema = createChatFields.refine((request) => !request.sideChat || request.forkSourceChatId !== void 0 && request.parentChatId === request.forkSourceChatId, {
22469
22471
  message: "A side chat must fork its parent chat"
22470
22472
  });
22473
+ createHarnessChatRequestSchema = createChatFields.pick({ id: true, title: true }).extend({ provider: external_exports.literal(AGENT.REPLICAS) });
22471
22474
  spawnSubagentRequestSchema = external_exports.object({
22472
22475
  provider: external_exports.enum(ENGINE_AGENT_PROVIDERS),
22473
22476
  prompt: external_exports.string().min(1),
@@ -24067,7 +24070,7 @@ Every Replicas workspace is a remote Linux VM. Repositories are cloned under \`~
24067
24070
  | Piece | When it runs | Put here |
24068
24071
  | --- | --- | --- |
24069
24072
  | **Warm hook** | Once, while Replicas builds the warm-pool snapshot for the environment. Its *filesystem* state is baked into every new workspace; its *processes* are not. Default timeout 60 minutes. | Slow, deterministic setup: dependency installs from the lockfile, toolchain downloads, \`docker pull\`, one-time builds, code generation. |
24070
- | **Start hook** | On every workspace boot, before the agent starts working. Default timeout 5 minutes. | Fast per-boot reconciliation: start daemons and databases, run migrations against local services, launch dev servers with \`replicas service start\`, health checks. Must be idempotent. |
24073
+ | **Start hook** | On every workspace boot, alongside the agent, which is told to wait for it before using the setup. Default timeout 5 minutes. | Fast per-boot reconciliation: start daemons and databases, run migrations against local services, launch dev servers with \`replicas service start\`, health checks. Must be idempotent. |
24071
24074
  | **System prompt** | Injected into the agent's instructions for every workspace in the environment. | Only what an agent cannot learn from the repository itself: team conventions, review expectations, how to verify, gotchas you hit while setting up. |
24072
24075
  | **Variables** | Exported into every workspace (and available inside hooks). Values are encrypted. | API keys, tokens, feature flags, local service URLs. |
24073
24076
  | **Files** | Materialized on the workspace filesystem at boot. | \`.env\` files, dotfiles, config that must not be committed. |
@@ -26618,6 +26621,7 @@ var init_preferences = __esm({
26618
26621
  appshot_shortcut: "command",
26619
26622
  appshot_destination: "automatic",
26620
26623
  appshot_sound: true,
26624
+ keyboard_shortcuts: {},
26621
26625
  mothership_tour_seen: false,
26622
26626
  slack_settings_moved_notice: false,
26623
26627
  mothership_board_opened: false,
@@ -26633,7 +26637,10 @@ var init_preferences = __esm({
26633
26637
  workspace_alerts: {},
26634
26638
  automation_alerts: {},
26635
26639
  push_types: { needs_you: true, finished: true, automations: true, usage_limit: true },
26636
- push_when_active: "wait"
26640
+ push_when_active: "wait",
26641
+ chat_text_size: "default",
26642
+ app_font: "inter",
26643
+ code_font: "geist-mono"
26637
26644
  };
26638
26645
  DEFAULT_DEFAULT_SKILLS = {
26639
26646
  replicas_agent: {
@@ -37071,6 +37078,113 @@ var init_task_accumulator = __esm({
37071
37078
  }
37072
37079
  });
37073
37080
 
37081
+ // ../shared/src/display-message/parsers/replicas-parser.ts
37082
+ function contentBlocks(value) {
37083
+ return Array.isArray(value) ? value.filter(isRecord) : [];
37084
+ }
37085
+ function blockImages(blocks) {
37086
+ return blocks.flatMap((block) => block.type === "image" && typeof block.data === "string" && typeof block.mimeType === "string" ? [{ type: "image", mediaType: block.mimeType, data: block.data }] : []);
37087
+ }
37088
+ function toolCallMessage(id, name, args, timestamp, result) {
37089
+ const status = !result ? "in_progress" : result.isError ? "failed" : "completed";
37090
+ if (name === "bash" && typeof args.command === "string") {
37091
+ return { id, type: "command", command: args.command, output: result?.output, ...result?.exitCode !== void 0 ? { exitCode: result.exitCode } : {}, status, timestamp };
37092
+ }
37093
+ if ((name === "write" || name === "edit") && typeof args.path === "string") {
37094
+ return { id, type: "file_change", changes: [{ path: args.path, kind: name === "write" ? "add" : "update" }], status, timestamp };
37095
+ }
37096
+ return createCallDisplayMessage({ id, server: "replicas", tool: name, input: args, output: result?.output, status, timestamp });
37097
+ }
37098
+ function parseReplicasEvents(events) {
37099
+ const messages = [];
37100
+ const toolCalls = /* @__PURE__ */ new Map();
37101
+ const lastSavedAssistantMs = Math.max(0, ...events.filter((event) => event.type === `${HARNESS_EVENT_TYPE_PREFIX}assistant_message`).map((event) => Date.parse(event.timestamp)));
37102
+ events.forEach((event) => {
37103
+ const { payload, timestamp } = event;
37104
+ const message2 = isRecord(payload.message) ? payload.message : {};
37105
+ switch (event.type) {
37106
+ // The client's copy of a sent prompt, shown until the worker saves it under the same message id.
37107
+ case "event_msg": {
37108
+ if (payload.type !== "user_message" || typeof payload.message !== "string") return;
37109
+ const images = userMessageImages(payload.images);
37110
+ messages.push({ id: getUserMessageId(event) ?? `replicas-pending-${timestamp}`, type: "user", content: payload.message, ...images ? { images } : {}, timestamp });
37111
+ return;
37112
+ }
37113
+ case `${HARNESS_EVENT_TYPE_PREFIX}user_message`: {
37114
+ const images = blockImages(contentBlocks(message2.content));
37115
+ const messageId = payload[USER_MESSAGE_ID_PAYLOAD_KEY];
37116
+ messages.push({
37117
+ id: typeof messageId === "string" ? messageId : `replicas-user-${String(payload.seq)}`,
37118
+ type: "user",
37119
+ content: extractToolResultText(message2.content),
37120
+ ...images.length ? { images } : {},
37121
+ timestamp
37122
+ });
37123
+ return;
37124
+ }
37125
+ case `${HARNESS_EVENT_TYPE_PREFIX}assistant_message`: {
37126
+ contentBlocks(message2.content).forEach((block, blockIndex) => {
37127
+ const id = `replicas-${String(payload.seq)}-${blockIndex}`;
37128
+ if (block.type === "text" && typeof block.text === "string" && block.text) messages.push({ id, type: "agent", content: block.text, timestamp });
37129
+ if (block.type === "thinking" && typeof block.thinking === "string" && block.thinking) messages.push({ id, type: "reasoning", content: block.thinking, status: "completed", timestamp });
37130
+ if (block.type === "toolCall" && typeof block.id === "string" && typeof block.name === "string") {
37131
+ const call = { name: block.name, args: isRecord(block.arguments) ? block.arguments : {}, timestamp };
37132
+ toolCalls.set(block.id, call);
37133
+ messages.push(toolCallMessage(`replicas-tool-${block.id}`, call.name, call.args, timestamp));
37134
+ }
37135
+ });
37136
+ if (message2.stopReason === "error") {
37137
+ messages.push({
37138
+ id: `replicas-error-${String(payload.seq)}`,
37139
+ type: "error",
37140
+ message: formatInferenceError(typeof message2.errorMessage === "string" && message2.errorMessage ? message2.errorMessage : "The model request failed", {
37141
+ ...typeof message2.provider === "string" ? { provider: message2.provider } : {},
37142
+ ...typeof message2.model === "string" ? { model: message2.model } : {}
37143
+ }),
37144
+ timestamp
37145
+ });
37146
+ }
37147
+ return;
37148
+ }
37149
+ case `${HARNESS_EVENT_TYPE_PREFIX}tool_result`: {
37150
+ if (typeof message2.toolCallId !== "string") return;
37151
+ const call = toolCalls.get(message2.toolCallId) ?? { name: typeof message2.toolName === "string" ? message2.toolName : "tool", args: {}, timestamp };
37152
+ const exitCode = isRecord(message2.details) && typeof message2.details.exitCode === "number" ? message2.details.exitCode : void 0;
37153
+ upsertDisplayMessage(messages, toolCallMessage(`replicas-tool-${message2.toolCallId}`, call.name, call.args, call.timestamp, {
37154
+ output: extractToolResultText(message2.content) || void 0,
37155
+ isError: message2.isError === true,
37156
+ exitCode
37157
+ }));
37158
+ return;
37159
+ }
37160
+ case `${HARNESS_EVENT_TYPE_PREFIX}error`:
37161
+ messages.push({ id: `replicas-error-${String(payload.seq)}`, type: "error", message: stringifyDisplayValue(payload.message) ?? "The agent stopped with an error", timestamp });
37162
+ return;
37163
+ case CLAUDE_PARTIAL_MESSAGE_EVENT_TYPE: {
37164
+ const partial2 = coerceClaudePartialMessagePayload(payload);
37165
+ if (!partial2 || Date.parse(event.timestamp) <= lastSavedAssistantMs) return;
37166
+ if (partial2.thinking) upsertDisplayMessage(messages, { id: `replicas-partial-${partial2.streamId}-thinking`, type: "reasoning", content: partial2.thinking, status: "in_progress", timestamp });
37167
+ if (partial2.text) upsertDisplayMessage(messages, { id: `replicas-partial-${partial2.streamId}`, type: "agent", content: partial2.text, timestamp });
37168
+ return;
37169
+ }
37170
+ }
37171
+ });
37172
+ return messages;
37173
+ }
37174
+ var HARNESS_EVENT_TYPE_PREFIX;
37175
+ var init_replicas_parser = __esm({
37176
+ "../shared/src/display-message/parsers/replicas-parser.ts"() {
37177
+ "use strict";
37178
+ init_event();
37179
+ init_agent_event_utils();
37180
+ init_type_guards();
37181
+ init_task_accumulator();
37182
+ init_inference_error();
37183
+ init_utils();
37184
+ HARNESS_EVENT_TYPE_PREFIX = "harness-";
37185
+ }
37186
+ });
37187
+
37074
37188
  // ../shared/src/display-message/parsers/claude-parser.ts
37075
37189
  function fileOrCommandMessage(block, timestamp) {
37076
37190
  let template = toolMessageTemplates.get(block);
@@ -37382,7 +37496,7 @@ function parseClaudeEvents(events, parentToolUseId) {
37382
37496
  }
37383
37497
  if (event.type === "claude-assistant") {
37384
37498
  const messageId = event.payload.message?.id;
37385
- const contentBlocks = normalizeContentBlocks(event.payload.message?.content);
37499
+ const contentBlocks2 = normalizeContentBlocks(event.payload.message?.content);
37386
37500
  const messageKey = messageId || event.timestamp;
37387
37501
  const localCommand = event.payload.local_command_run;
37388
37502
  const goalArgs = isRecord(localCommand) && localCommand.command === GOAL_TOOL_NAME && typeof localCommand.args === "string" ? localCommand.args.trim() : "";
@@ -37404,12 +37518,12 @@ function parseClaudeEvents(events, parentToolUseId) {
37404
37518
  if (liveStreamId !== null && liveStreamId !== messageId) {
37405
37519
  supersededStreamIds.add(liveStreamId);
37406
37520
  }
37407
- if (contentBlocks.some((block) => block.type === "text" && block.text)) {
37521
+ if (contentBlocks2.some((block) => block.type === "text" && block.text)) {
37408
37522
  completedStreamIds.add(messageId);
37409
37523
  liveStreamId = null;
37410
37524
  }
37411
37525
  }
37412
- const thinkingBlocks = contentBlocks.flatMap(
37526
+ const thinkingBlocks = contentBlocks2.flatMap(
37413
37527
  (block) => block.type === "thinking" && typeof block.thinking === "string" ? [block.thinking] : []
37414
37528
  );
37415
37529
  if (thinkingBlocks.length > 0) {
@@ -37429,7 +37543,7 @@ function parseClaudeEvents(events, parentToolUseId) {
37429
37543
  upsertMessage(reasoningMessage);
37430
37544
  }
37431
37545
  }
37432
- contentBlocks.forEach((block) => {
37546
+ contentBlocks2.forEach((block) => {
37433
37547
  if (block.type === "text" && block.text) {
37434
37548
  const textIndex = assistantTextCounts.get(messageKey) ?? 0;
37435
37549
  assistantTextCounts.set(messageKey, textIndex + 1);
@@ -37743,6 +37857,9 @@ function parseProviderEvents(events, agentType, parentToolUseId) {
37743
37857
  if (agentType === "pi") {
37744
37858
  return parsePiEvents(events);
37745
37859
  }
37860
+ if (agentType === "replicas") {
37861
+ return parseReplicasEvents(events);
37862
+ }
37746
37863
  return parseClaudeEvents(events, parentToolUseId);
37747
37864
  }
37748
37865
  function parseDisplayMessages(events, agentType, options = {}) {
@@ -37916,11 +38033,13 @@ var init_parsers = __esm({
37916
38033
  init_opencode_parser();
37917
38034
  init_muse_parser();
37918
38035
  init_pi_parser();
38036
+ init_replicas_parser();
37919
38037
  init_claude_parser();
37920
38038
  init_codex_parser();
37921
38039
  init_cursor_parser();
37922
38040
  init_opencode_parser();
37923
38041
  init_pi_parser();
38042
+ init_replicas_parser();
37924
38043
  init_claude_parser();
37925
38044
  init_mcp();
37926
38045
  init_utils();
@@ -38451,9 +38570,9 @@ var init_keyboard_shortcuts = __esm({
38451
38570
  keys: { key: "ArrowDown", mod: true, alt: true, shift: true },
38452
38571
  linuxKeys: { key: "ArrowDown", alt: true, shift: true }
38453
38572
  },
38454
- jumpToWorkspace: { label: "Workspace 1\u20139 in the sidebar", group: "Navigation", desktopKeys: { key: "1", mod: true } },
38455
- goBack: { label: "Back", group: "Navigation", desktopKeys: { key: "[", mod: true } },
38456
- goForward: { label: "Forward", group: "Navigation", desktopKeys: { key: "]", mod: true } },
38573
+ jumpToWorkspace: { label: "Workspace 1\u20139 in the sidebar", group: "Navigation", desktopKeys: { key: "1", mod: true }, fixed: true },
38574
+ goBack: { label: "Back", group: "Navigation", desktopKeys: { key: "[", mod: true }, fixed: true },
38575
+ goForward: { label: "Forward", group: "Navigation", desktopKeys: { key: "]", mod: true }, fixed: true },
38457
38576
  stopAgent: { label: "Stop the agent", group: "Chat", keys: { key: "Escape" } },
38458
38577
  newChat: { label: "New chat", group: "Chat", desktopKeys: { key: "t", mod: true } },
38459
38578
  previousChat: {
@@ -38490,15 +38609,15 @@ var init_keyboard_shortcuts = __esm({
38490
38609
  keys: { key: "l", alt: true },
38491
38610
  macKeys: { key: "Tab", alt: true }
38492
38611
  },
38493
- send: { label: "Send", group: "Composer", keys: { key: "Enter" } },
38494
- sendAlternate: { label: "Queue or steer instead", group: "Composer", keys: { key: "Enter", alt: true } },
38495
- newLine: { label: "New line", group: "Composer", keys: { key: "Enter", shift: true } },
38612
+ send: { label: "Send", group: "Composer", keys: { key: "Enter" }, fixed: true },
38613
+ sendAlternate: { label: "Queue or steer instead", group: "Composer", keys: { key: "Enter", alt: true }, fixed: true },
38614
+ newLine: { label: "New line", group: "Composer", keys: { key: "Enter", shift: true }, fixed: true },
38496
38615
  toggleTaskMode: { label: "Switch Plan / Build", group: "Composer", keys: { key: "Tab", shift: true } },
38497
38616
  toggleVoiceInput: { label: "Voice input", group: "Composer", keys: { key: " ", mod: true, shift: true } },
38498
- previousPrompt: { label: "Previous prompt", group: "Composer", keys: { key: "ArrowUp" } },
38617
+ previousPrompt: { label: "Previous prompt", group: "Composer", keys: { key: "ArrowUp" }, fixed: true },
38499
38618
  searchPromptHistory: { label: "Search prompt history", group: "Composer", keys: { key: "r", ctrl: true } },
38500
- mentionFile: { label: "Mention a file", group: "Composer", keys: { key: "@" } },
38501
- slashCommand: { label: "Commands and skills", group: "Composer", keys: { key: "/" } },
38619
+ mentionFile: { label: "Mention a file", group: "Composer", keys: { key: "@" }, fixed: true },
38620
+ slashCommand: { label: "Commands and skills", group: "Composer", keys: { key: "/" }, fixed: true },
38502
38621
  previousCanvasItem: { label: "Previous item", group: "Canvas", keys: { key: "ArrowLeft" } },
38503
38622
  nextCanvasItem: { label: "Next item", group: "Canvas", keys: { key: "ArrowRight" } },
38504
38623
  exitCanvasFullScreen: { label: "Exit full screen", group: "Canvas", keys: { key: "Escape" } },
@@ -38754,7 +38873,7 @@ var init_organizations = __esm({
38754
38873
  });
38755
38874
 
38756
38875
  // ../shared/src/harness/types.ts
38757
- var HARNESS_THREAD_STATUSES, textSchema, imageSchema, userMessageSchema, assistantMessageSchema, toolResultMessageSchema, harnessInboxPayloadSchemas, harnessEventBodySchema;
38876
+ var HARNESS_THREAD_STATUSES, textSchema, imageSchema, userMessageSchema, assistantMessageSchema, toolResultMessageSchema, harnessInboxPayloadSchemas, harnessEventBodySchema, harnessLiveMessageSchema;
38758
38877
  var init_types8 = __esm({
38759
38878
  "../shared/src/harness/types.ts"() {
38760
38879
  "use strict";
@@ -38815,6 +38934,39 @@ var init_types8 = __esm({
38815
38934
  external_exports.object({ type: external_exports.literal("status"), payload: external_exports.looseObject({ status: external_exports.enum(HARNESS_THREAD_STATUSES) }) }),
38816
38935
  external_exports.object({ type: external_exports.literal("error"), payload: external_exports.looseObject({ message: external_exports.string() }) })
38817
38936
  ]);
38937
+ harnessLiveMessageSchema = external_exports.union([
38938
+ external_exports.object({ type: external_exports.literal("delta"), streamId: external_exports.string(), text: external_exports.string() }),
38939
+ external_exports.object({ type: external_exports.literal("delta"), streamId: external_exports.string(), thinking: external_exports.string() }),
38940
+ external_exports.object({ type: external_exports.literal("delta"), streamId: external_exports.string(), toolCall: external_exports.object({ id: external_exports.string(), name: external_exports.string(), argumentsDelta: external_exports.string() }) }),
38941
+ external_exports.object({ type: external_exports.literal("step_saved"), seq: external_exports.number() }),
38942
+ external_exports.object({ type: external_exports.literal("status"), status: external_exports.enum(HARNESS_THREAD_STATUSES) })
38943
+ ]);
38944
+ }
38945
+ });
38946
+
38947
+ // ../shared/src/harness/worker-routes.ts
38948
+ var harnessWorkerEngineRequestSchema, harnessWorkerEngineResponseSchema, harnessWorkerCredentialRequestSchema, harnessWorkerCredentialResponseSchema;
38949
+ var init_worker_routes = __esm({
38950
+ "../shared/src/harness/worker-routes.ts"() {
38951
+ "use strict";
38952
+ init_zod();
38953
+ init_types3();
38954
+ harnessWorkerEngineRequestSchema = external_exports.object({
38955
+ /** The engine we were given didn't answer, so the monolith checks the provider instead of trusting the workspace's status. */
38956
+ unreachable: external_exports.boolean().optional()
38957
+ });
38958
+ harnessWorkerEngineResponseSchema = external_exports.discriminatedUnion("status", [
38959
+ external_exports.object({ status: external_exports.literal("ready"), engineUrl: external_exports.string(), headers: external_exports.record(external_exports.string(), external_exports.string()) }),
38960
+ external_exports.object({ status: external_exports.literal("waking") })
38961
+ ]);
38962
+ harnessWorkerCredentialRequestSchema = external_exports.object({
38963
+ /** The credential the model rejected, so the monolith refreshes it or moves to the next one instead of handing it back. */
38964
+ failedCredential: agentCredentialSnapshotSchema.optional()
38965
+ });
38966
+ harnessWorkerCredentialResponseSchema = external_exports.discriminatedUnion("method", [
38967
+ external_exports.object({ method: external_exports.literal("oauth"), accessToken: external_exports.string(), expiresAt: external_exports.string(), credential: agentCredentialSnapshotSchema }),
38968
+ external_exports.object({ method: external_exports.literal("api_key"), apiKey: external_exports.string(), credential: agentCredentialSnapshotSchema })
38969
+ ]);
38818
38970
  }
38819
38971
  });
38820
38972
 
@@ -38882,7 +39034,7 @@ var CLI_VERSION;
38882
39034
  var init_cli_version = __esm({
38883
39035
  "../shared/src/cli-version.ts"() {
38884
39036
  "use strict";
38885
- CLI_VERSION = "0.3.445";
39037
+ CLI_VERSION = "0.3.448";
38886
39038
  }
38887
39039
  });
38888
39040
 
@@ -38916,6 +39068,7 @@ var init_chat_tabs = __esm({
38916
39068
  "../shared/src/engine/chat-tabs.ts"() {
38917
39069
  "use strict";
38918
39070
  init_types4();
39071
+ init_agent();
38919
39072
  init_chat_fork();
38920
39073
  }
38921
39074
  });
@@ -39065,7 +39218,7 @@ var init_git_invocations = __esm({
39065
39218
  });
39066
39219
 
39067
39220
  // ../shared/src/routes/command-protection.ts
39068
- var commandProtectionRepoStateSchema, commandProtectionEvaluateRequestSchema;
39221
+ var commandProtectionRepoStateSchema, commandProtectionEvaluateRequestSchema, commandProtectionEvaluateResponseSchema, COMMAND_PROTECTION_MAX_MESSAGE_FILE_BYTES;
39069
39222
  var init_command_protection = __esm({
39070
39223
  "../shared/src/routes/command-protection.ts"() {
39071
39224
  "use strict";
@@ -39083,8 +39236,8 @@ var init_command_protection = __esm({
39083
39236
  mergeInProgress: external_exports.boolean().optional()
39084
39237
  });
39085
39238
  commandProtectionEvaluateRequestSchema = external_exports.object({
39086
- provider: external_exports.enum(["claude", "codex", "cursor", "opencode", "pi"]),
39087
- source: external_exports.enum(["claude_pre_tool_use", "codex_approval_request", "cursor_pre_tool_use", "opencode_pre_tool_use", "pi_tool_call"]),
39239
+ provider: external_exports.enum(["claude", "codex", "cursor", "opencode", "pi", "harness"]),
39240
+ source: external_exports.enum(["claude_pre_tool_use", "codex_approval_request", "cursor_pre_tool_use", "opencode_pre_tool_use", "pi_tool_call", "harness_tool_call"]),
39088
39241
  toolName: external_exports.string(),
39089
39242
  toolInput: external_exports.unknown(),
39090
39243
  command: external_exports.string().nullish(),
@@ -39097,6 +39250,13 @@ var init_command_protection = __esm({
39097
39250
  messageFiles: external_exports.record(external_exports.string(), external_exports.string())
39098
39251
  }).optional()
39099
39252
  });
39253
+ commandProtectionEvaluateResponseSchema = external_exports.object({
39254
+ allowed: external_exports.boolean(),
39255
+ enabled: external_exports.boolean(),
39256
+ reason: external_exports.string().optional(),
39257
+ matchedSignals: external_exports.array(external_exports.string()).optional()
39258
+ });
39259
+ COMMAND_PROTECTION_MAX_MESSAGE_FILE_BYTES = 64 * 1024;
39100
39260
  }
39101
39261
  });
39102
39262
 
@@ -50242,6 +50402,7 @@ var init_src = __esm({
50242
50402
  init_replicas_mcp();
50243
50403
  init_subagent_mcp();
50244
50404
  init_types8();
50405
+ init_worker_routes();
50245
50406
  init_headless_agent();
50246
50407
  init_errors3();
50247
50408
  init_external_api_host();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.3.446",
3
+ "version": "0.3.448",
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": {