replicas-cli 0.2.733 → 0.2.734

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 +1 -148
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -7701,8 +7701,6 @@ var AGENT = {
7701
7701
  CLAUDE: "claude",
7702
7702
  CODEX: "codex",
7703
7703
  CURSOR: "cursor",
7704
- FX: "fx",
7705
- KIMI: "kimi",
7706
7704
  MUSE: "muse",
7707
7705
  OPENCODE: "opencode",
7708
7706
  PI: "pi",
@@ -7745,16 +7743,6 @@ var AGENT_PROVIDER_OPTIONS = [
7745
7743
  label: "Cursor",
7746
7744
  description: "Use Cursor for tasks"
7747
7745
  },
7748
- {
7749
- value: "fx",
7750
- label: "fx",
7751
- description: "Use fx for tasks"
7752
- },
7753
- {
7754
- value: "kimi",
7755
- label: "Kimi Code",
7756
- description: "Use Kimi Code for tasks"
7757
- },
7758
7746
  {
7759
7747
  value: "muse",
7760
7748
  label: "Muse Code",
@@ -7782,8 +7770,6 @@ var THINKING_LEVELS_BY_AGENT = {
7782
7770
  claude: [...STANDARD_THINKING_LEVELS, "ultracode"],
7783
7771
  codex: [...STANDARD_THINKING_LEVELS, "ultra"],
7784
7772
  cursor: STANDARD_THINKING_LEVELS,
7785
- fx: STANDARD_THINKING_LEVELS,
7786
- kimi: STANDARD_THINKING_LEVELS,
7787
7773
  muse: VALID_THINKING_LEVELS.filter((level) => level !== "max" && level !== "ultracode"),
7788
7774
  opencode: STANDARD_THINKING_LEVELS,
7789
7775
  pi: STANDARD_THINKING_LEVELS,
@@ -7804,10 +7790,6 @@ function getProviderDisplayName(provider, variant = "short") {
7804
7790
  return "Codex";
7805
7791
  case "cursor":
7806
7792
  return "Cursor";
7807
- case "fx":
7808
- return "fx";
7809
- case "kimi":
7810
- return variant === "long" ? "Kimi Code" : "Kimi";
7811
7793
  case "muse":
7812
7794
  return variant === "long" ? "Muse Code" : "Muse";
7813
7795
  case "opencode":
@@ -7843,7 +7825,6 @@ var CREDENTIAL_METHOD = {
7843
7825
  OPENCODE_GO: "opencode-go",
7844
7826
  ASTER: "aster",
7845
7827
  OPENROUTER: "openrouter",
7846
- AI_GATEWAY: "ai-gateway",
7847
7828
  MUSE_OAUTH: "muse-oauth"
7848
7829
  };
7849
7830
  var CREDENTIAL_TYPE = {
@@ -7860,7 +7841,6 @@ var CREDENTIAL_TYPE = {
7860
7841
  OPENCODE_GO_API_KEY: "opencode_go_api_key",
7861
7842
  ASTER_API_KEY: "aster_api_key",
7862
7843
  OPENROUTER_API_KEY: "openrouter_api_key",
7863
- AI_GATEWAY_API_KEY: "ai_gateway_api_key",
7864
7844
  MUSE_OAUTH: "muse_oauth",
7865
7845
  MUSE_API_KEY: "muse_api_key"
7866
7846
  };
@@ -7888,13 +7868,6 @@ var AGENT_CREDENTIAL_METHODS_IN_ORDER = {
7888
7868
  [AGENT.CURSOR]: [
7889
7869
  { method: CREDENTIAL_METHOD.API_KEY, credentialType: CREDENTIAL_TYPE.CURSOR_API_KEY }
7890
7870
  ],
7891
- [AGENT.FX]: [
7892
- { method: CREDENTIAL_METHOD.AI_GATEWAY, credentialType: CREDENTIAL_TYPE.AI_GATEWAY_API_KEY }
7893
- ],
7894
- [AGENT.KIMI]: [
7895
- { method: CREDENTIAL_METHOD.AI_GATEWAY, credentialType: CREDENTIAL_TYPE.AI_GATEWAY_API_KEY },
7896
- { method: CREDENTIAL_METHOD.OLLAMA, credentialType: CREDENTIAL_TYPE.OLLAMA }
7897
- ],
7898
7871
  [AGENT.MUSE]: [
7899
7872
  { method: CREDENTIAL_METHOD.MUSE_OAUTH, credentialType: CREDENTIAL_TYPE.MUSE_OAUTH },
7900
7873
  { method: CREDENTIAL_METHOD.API_KEY, credentialType: CREDENTIAL_TYPE.MUSE_API_KEY }
@@ -22622,8 +22595,6 @@ var GLM_5_3_FLASH_MODEL = "z-ai/glm-5.3-flash";
22622
22595
  var OX_ALPHA_MODEL = "stealth/ox-alpha";
22623
22596
  var DEEPSEEK_V4_PRO_MODEL = "deepseek/deepseek-v4-pro-0813";
22624
22597
  var DEEPSEEK_V4_FLASH_MODEL = "deepseek/deepseek-v4-flash-0731";
22625
- var DEFAULT_FX_MODEL = "zai/glm-5.2";
22626
- var DEFAULT_KIMI_MODEL = "moonshotai/kimi-k2.6";
22627
22598
  var MUSE_SPARK_1_3_MODEL = "muse-spark-1.3";
22628
22599
  var DEFAULT_MUSE_MODEL = "muse-spark-1.2";
22629
22600
  var DEFAULT_OPENROUTER_MODELS = [
@@ -22722,8 +22693,6 @@ var AGENT_MODELS = {
22722
22693
  CLAUDE_HAIKU_4_5_MODEL,
22723
22694
  "kimi-k2.5"
22724
22695
  ],
22725
- fx: [DEFAULT_FX_MODEL],
22726
- kimi: [DEFAULT_KIMI_MODEL],
22727
22696
  muse: [MUSE_SPARK_1_3_MODEL, DEFAULT_MUSE_MODEL],
22728
22697
  opencode: [...DEFAULT_OPENROUTER_MODELS, ...ASTER_MODELS],
22729
22698
  pi: [...DEFAULT_OPENROUTER_MODELS, ...ASTER_MODELS],
@@ -25789,116 +25758,6 @@ function parseCursorEvents(events) {
25789
25758
  return messages;
25790
25759
  }
25791
25760
 
25792
- // ../shared/src/display-message/parsers/acp-parser.ts
25793
- var FX_CONTEXT_DIAGNOSTIC = /^\[context\] skill catalog omitted .*?(?:\r?\n|$)/;
25794
- function getAcpTextChunk(update, kind) {
25795
- if (!isRecord(update) || update.sessionUpdate !== kind || !isRecord(update.content) || update.content.type !== "text") return null;
25796
- return typeof update.content.text === "string" && update.content.text.length > 0 ? update.content.text : null;
25797
- }
25798
- function isProviderEvent(event, provider, suffix) {
25799
- return event.type === `acp-${suffix}` && (event.payload.provider === void 0 || event.payload.provider === provider) || event.type === `${provider}-${suffix}`;
25800
- }
25801
- function parseAcpEvents(events, provider) {
25802
- const messages = [];
25803
- const activeChunks = {};
25804
- const inputState = { requests: /* @__PURE__ */ new Map(), resolutions: /* @__PURE__ */ new Map() };
25805
- let chunkSequence = 0;
25806
- for (const event of events) {
25807
- const userContent = getUserMessage(event);
25808
- if (userContent !== null) {
25809
- activeChunks.agent_message_chunk = void 0;
25810
- activeChunks.agent_thought_chunk = void 0;
25811
- if (userContent.trim()) {
25812
- messages.push({
25813
- id: getUserMessageId(event) ?? `${provider}-user-${event.timestamp}`,
25814
- type: "user",
25815
- content: userContent,
25816
- timestamp: event.timestamp
25817
- });
25818
- }
25819
- continue;
25820
- }
25821
- if (isProviderEvent(event, provider, "error")) {
25822
- messages.push({
25823
- id: `${provider}-error-${event.timestamp}`,
25824
- type: "error",
25825
- message: typeof event.payload.message === "string" ? event.payload.message : `${provider} failed`,
25826
- timestamp: event.timestamp
25827
- });
25828
- continue;
25829
- }
25830
- if (isProviderEvent(event, provider, "turn-complete")) {
25831
- for (const message of messages) {
25832
- if (message.type === "reasoning" && message.status === "in_progress") message.status = "completed";
25833
- }
25834
- activeChunks.agent_message_chunk = void 0;
25835
- activeChunks.agent_thought_chunk = void 0;
25836
- continue;
25837
- }
25838
- if (applyToolInputEvent(event, messages, provider, inputState)) continue;
25839
- if (!isProviderEvent(event, provider, "session-update") || !isRecord(event.payload.update)) continue;
25840
- const update = event.payload.update;
25841
- const kind = update.sessionUpdate;
25842
- if (kind === "agent_message_chunk" || kind === "agent_thought_chunk") {
25843
- const content = getAcpTextChunk(update, kind);
25844
- if (content === null) continue;
25845
- const explicitId = typeof update.messageId === "string" && update.messageId.length > 0 ? `${provider}-${kind}-${update.messageId}` : null;
25846
- const id = explicitId ?? activeChunks[kind] ?? `${provider}-${kind}-${chunkSequence++}`;
25847
- activeChunks[kind] = id;
25848
- const otherKind = kind === "agent_message_chunk" ? "agent_thought_chunk" : "agent_message_chunk";
25849
- if (!explicitId) activeChunks[otherKind] = void 0;
25850
- const existing = messages.find((message) => message.id === id);
25851
- const text = `${existing && "content" in existing && typeof existing.content === "string" ? existing.content : ""}${content}`.replace(provider === "fx" ? FX_CONTEXT_DIAGNOSTIC : /$^/, "");
25852
- if (!text) continue;
25853
- upsertDisplayMessage(messages, kind === "agent_thought_chunk" ? { id, type: "reasoning", content: text, status: "in_progress", timestamp: existing?.timestamp ?? event.timestamp } : { id, type: "agent", content: text, timestamp: existing?.timestamp ?? event.timestamp });
25854
- continue;
25855
- }
25856
- activeChunks.agent_message_chunk = void 0;
25857
- activeChunks.agent_thought_chunk = void 0;
25858
- if ((kind === "tool_call" || kind === "tool_call_update") && typeof update.toolCallId === "string") {
25859
- const id = `${provider}-tool-${update.toolCallId}`;
25860
- const existing = messages.find((message) => message.id === id && message.type === "tool_call");
25861
- const status = update.status === "completed" || update.status === "failed" ? update.status === "failed" ? "failed" : "completed" : "in_progress";
25862
- const contentOutput = Array.isArray(update.content) && update.content.length > 0 ? stringifyDisplayValue(update.content) : void 0;
25863
- upsertDisplayMessage(messages, createCallDisplayMessage({
25864
- id,
25865
- server: provider,
25866
- tool: typeof update.name === "string" && update.name ? update.name : typeof update.title === "string" && update.title ? update.title : existing?.tool ?? (typeof update.kind === "string" ? update.kind : "tool"),
25867
- input: update.rawInput === void 0 ? existing?.input : isRecord(update.rawInput) ? update.rawInput : stringifyDisplayValue(update.rawInput),
25868
- output: update.rawOutput === void 0 ? contentOutput ?? existing?.output : stringifyDisplayValue(update.rawOutput),
25869
- status,
25870
- timestamp: existing?.timestamp ?? event.timestamp
25871
- }));
25872
- continue;
25873
- }
25874
- const plan = kind === "plan" ? update : isRecord(update.plan) ? update.plan : void 0;
25875
- if ((kind === "plan" || kind === "plan_update") && plan && Array.isArray(plan.entries)) {
25876
- const items = plan.entries.flatMap((entry) => {
25877
- if (!isRecord(entry) || typeof entry.content !== "string") return [];
25878
- const itemStatus = entry.status === "completed" || entry.status === "in_progress" ? entry.status : "pending";
25879
- return [{
25880
- text: entry.content,
25881
- completed: entry.status === "completed",
25882
- itemStatus
25883
- }];
25884
- });
25885
- upsertDisplayMessage(messages, {
25886
- id: `${provider}-plan-${typeof plan.planId === "string" ? plan.planId : "current"}`,
25887
- type: "todo_list",
25888
- items,
25889
- status: items.every((item) => item.completed) ? "completed" : "in_progress",
25890
- timestamp: event.timestamp
25891
- });
25892
- }
25893
- }
25894
- return messages;
25895
- }
25896
-
25897
- // ../shared/src/display-message/parsers/fx-parser.ts
25898
- function parseFxEvents(events) {
25899
- return parseAcpEvents(events, "fx");
25900
- }
25901
-
25902
25761
  // ../shared/src/errors.ts
25903
25762
  var TRANSIENT_NETWORK_ERROR_PATTERNS = [
25904
25763
  /socket connection was closed unexpectedly/,
@@ -26983,12 +26842,6 @@ function parseAgentEvents(events, agentType) {
26983
26842
  if (agentType === "cursor") {
26984
26843
  return parseCursorEvents(events);
26985
26844
  }
26986
- if (agentType === "fx") {
26987
- return parseFxEvents(events);
26988
- }
26989
- if (agentType === "kimi") {
26990
- return parseAcpEvents(events, "kimi");
26991
- }
26992
26845
  if (agentType === "muse") {
26993
26846
  return parseMuseEvents(events);
26994
26847
  }
@@ -27262,7 +27115,7 @@ var headlessFilesystemAgentResultSchema = external_exports.object({
27262
27115
  });
27263
27116
 
27264
27117
  // ../shared/src/cli-version.ts
27265
- var CLI_VERSION = "0.2.733";
27118
+ var CLI_VERSION = "0.2.734";
27266
27119
 
27267
27120
  // ../shared/src/version.ts
27268
27121
  function compareVersions(v1, v2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.2.733",
3
+ "version": "0.2.734",
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": {