@tryarcanist/cli 0.1.50 → 0.1.52

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.js +20 -20
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -524,7 +524,7 @@ function isRecord(value) {
524
524
  // ../../shared/transcript/projector.ts
525
525
  var DUPLICATE_TEXT_DELTA_MIN_CHARS = 24;
526
526
  var SUBAGENT_EVENT_TYPES = /* @__PURE__ */ new Set(["subagent_start", "subagent_complete", "subagent_tool_call", "subagent_text"]);
527
- var RAW_OPENCODE_NOISE = /* @__PURE__ */ new Set([
527
+ var RAW_CODEX_NOISE = /* @__PURE__ */ new Set([
528
528
  "session.updated",
529
529
  "session.diff",
530
530
  "server.heartbeat",
@@ -610,7 +610,7 @@ function getRawSessionEventKind(event) {
610
610
  return bridgeEventType ?? "agent_timeline";
611
611
  case "idle":
612
612
  return bridgeEventType ?? "session_idle";
613
- case "opencode.session.create":
613
+ case "codex.session.create":
614
614
  case "git.push":
615
615
  case "pr.open":
616
616
  case "session.create":
@@ -911,13 +911,13 @@ function projectSessionResumedCold(data, index) {
911
911
  ...resolvePromptId(data) ? { promptId: resolvePromptId(data) } : {}
912
912
  };
913
913
  }
914
- function projectRawOpencode(data, index) {
914
+ function projectRawCodex(data, index) {
915
915
  const partType = typeof data?.partType === "string" ? data.partType : void 0;
916
916
  const eventType = typeof data?.eventType === "string" ? data.eventType : void 0;
917
917
  if (partType === "text") return null;
918
- if (eventType && RAW_OPENCODE_NOISE.has(eventType)) return null;
918
+ if (eventType && RAW_CODEX_NOISE.has(eventType)) return null;
919
919
  return {
920
- type: "raw_opencode",
920
+ type: "raw_codex",
921
921
  id: resolveEventId(data, "raw", index),
922
922
  ...resolvePromptId(data) ? { promptId: resolvePromptId(data) } : {},
923
923
  ...partType ? { partType } : {},
@@ -1066,8 +1066,8 @@ function flattenSessionEvents(raw) {
1066
1066
  case "session_resumed_cold":
1067
1067
  pushEvent(state, projectSessionResumedCold(data, state.merged.length));
1068
1068
  break;
1069
- case "raw_opencode":
1070
- pushEvent(state, projectRawOpencode(data, state.merged.length));
1069
+ case "raw_codex":
1070
+ pushEvent(state, projectRawCodex(data, state.merged.length));
1071
1071
  break;
1072
1072
  case "reasoning":
1073
1073
  projectStream("reasoning", data, state);
@@ -1216,12 +1216,12 @@ var ERROR_CODES = [
1216
1216
  "sandbox_terminated",
1217
1217
  "sandbox_disconnected",
1218
1218
  "sandbox_callback",
1219
- "opencode_startup_timeout",
1220
- "opencode_api_readiness_timeout",
1221
- "opencode_session_create_timeout",
1222
- "opencode_prompt_dispatch_timeout",
1223
- "opencode_not_ready",
1224
- "opencode_unrecoverable",
1219
+ "codex_startup_timeout",
1220
+ "codex_api_readiness_timeout",
1221
+ "codex_session_create_timeout",
1222
+ "codex_prompt_dispatch_timeout",
1223
+ "codex_not_ready",
1224
+ "codex_unrecoverable",
1225
1225
  "unknown"
1226
1226
  ];
1227
1227
  var ERROR_CODE_SET = new Set(ERROR_CODES);
@@ -1250,12 +1250,12 @@ var ERROR_CODE_LABELS = {
1250
1250
  sandbox_terminated: "Sandbox terminated",
1251
1251
  sandbox_disconnected: "Sandbox disconnected",
1252
1252
  sandbox_callback: "Sandbox callback failed",
1253
- opencode_startup_timeout: "OpenCode startup timed out",
1254
- opencode_api_readiness_timeout: "OpenCode API readiness timed out",
1255
- opencode_session_create_timeout: "OpenCode session creation timed out",
1256
- opencode_prompt_dispatch_timeout: "OpenCode prompt dispatch timed out",
1257
- opencode_not_ready: "OpenCode did not become ready",
1258
- opencode_unrecoverable: "OpenCode unrecoverable failure",
1253
+ codex_startup_timeout: "Codex startup timed out",
1254
+ codex_api_readiness_timeout: "Codex API readiness timed out",
1255
+ codex_session_create_timeout: "Codex session creation timed out",
1256
+ codex_prompt_dispatch_timeout: "Codex prompt dispatch timed out",
1257
+ codex_not_ready: "Codex did not become ready",
1258
+ codex_unrecoverable: "Codex unrecoverable failure",
1259
1259
  unknown: "Unknown failure"
1260
1260
  };
1261
1261
  function isErrorCode(value) {
@@ -1350,7 +1350,7 @@ ${event.answer ? `**Answer:** ${event.answer}
1350
1350
  case "customer_activity":
1351
1351
  return `**${event.title}:** ${event.summary}
1352
1352
  `;
1353
- case "raw_opencode":
1353
+ case "raw_codex":
1354
1354
  return "";
1355
1355
  }
1356
1356
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryarcanist/cli",
3
- "version": "0.1.50",
3
+ "version": "0.1.52",
4
4
  "description": "CLI for Arcanist — create and manage coding agent sessions",
5
5
  "type": "module",
6
6
  "bin": {