@sema-agent/cli 1.0.31 → 1.0.32

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.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@sema-agent/cli",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@sema-agent/cli",
9
- "version": "1.0.31",
9
+ "version": "1.0.32",
10
10
  "license": "BUSL-1.1",
11
11
  "dependencies": {
12
12
  "@sema-agent/sdk": "0.0.58",
@@ -629,9 +629,9 @@
629
629
  }
630
630
  },
631
631
  "node_modules/@sema-agent/core": {
632
- "version": "1.335.0",
633
- "resolved": "https://registry.npmjs.org/@sema-agent/core/-/core-1.335.0.tgz",
634
- "integrity": "sha512-2bDOEdfNlNg/l7CbnxHXtoP3Knwuxu0cso9ARF8I0/2cpjmro9k5SwjnkoRLfN1ebBe1EK3QlCQCR04EPmT9ZQ==",
632
+ "version": "1.336.0",
633
+ "resolved": "https://registry.npmjs.org/@sema-agent/core/-/core-1.336.0.tgz",
634
+ "integrity": "sha512-e+lJGX1sIefQrYApLPLYA/aJhaxOx1Th51ONhAcXDCzMQjZSRVlc0AkBS/NyjNXdVR7a4IWeq2HOfcrjVCohUQ==",
635
635
  "license": "BUSL-1.1",
636
636
  "dependencies": {
637
637
  "@modelcontextprotocol/sdk": "1.29.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sema-agent/cli",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "description": "Sema — your own Claude Code-grade coding agent, in the terminal.",
5
5
  "license": "BUSL-1.1",
6
6
  "bin": {
@@ -25,10 +25,10 @@
25
25
  "@sema-agent/server": "1.230.0"
26
26
  },
27
27
  "overrides": {
28
- "@sema-agent/core": "1.335.0",
28
+ "@sema-agent/core": "1.336.0",
29
29
  "@sema-agent/registry-core": "0.10.19"
30
30
  },
31
- "semaEngineVersion": "server 1.230.0 / core 1.335.0 / registry-core 0.10.19",
31
+ "semaEngineVersion": "server 1.230.0 / core 1.336.0 / registry-core 0.10.19",
32
32
  "engines": {
33
33
  "node": ">=18"
34
34
  }
package/sema.js CHANGED
@@ -406224,29 +406224,33 @@ function renderWorkflowToolUseMessage(input, { verbose }) {
406224
406224
  return `${name}${d4}${resume2}`;
406225
406225
  }
406226
406226
  function renderWorkflowToolResultMessage(content, _progress, { verbose }) {
406227
- const text2 = typeof content === "string" ? content : Array.isArray(content) ? content.map((b3) => b3 && typeof b3 === "object" && "text" in b3 ? String(b3.text) : "").join("") : "";
406227
+ const text2 = typeof content === "string" ? content : Array.isArray(content) ? content.map((b3) => b3 && typeof b3 === "object" && "text" in b3 ? String(b3.text) : "").join("") : content && typeof content === "object" ? JSON.stringify(content) : "";
406228
406228
  try {
406229
406229
  const parsed = JSON.parse(text2);
406230
406230
  if (typeof parsed.runId === "string") {
406231
406231
  const status3 = typeof parsed.status === "string" ? parsed.status : "started";
406232
406232
  const line = status3 === "started" ? `Running in the background (runId ${parsed.runId}) \u2014 result arrives via notification / TaskOutput("${parsed.runId}")` : `${status3} (runId ${parsed.runId})`;
406233
- return /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)(ThemedText, { children: [
406234
- line,
406235
- verbose && typeof parsed.note === "string" ? /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)(ThemedText, { dimColor: true, children: [
406236
- " \u2014 ",
406237
- parsed.note
406238
- ] }) : null
406239
- ] });
406233
+ return (
406234
+ // MessageResponse = ⎿ 缩进 chrome(live 套件对拍逮出:裸 Text 顶格,CC 结果行恒有 ⎿)
406235
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(MessageResponse, { children: /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)(ThemedText, { children: [
406236
+ line,
406237
+ verbose && typeof parsed.note === "string" ? /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)(ThemedText, { dimColor: true, children: [
406238
+ " \u2014 ",
406239
+ parsed.note
406240
+ ] }) : null
406241
+ ] }) })
406242
+ );
406240
406243
  }
406241
406244
  } catch {
406242
406245
  }
406243
406246
  const shown = verbose || text2.length <= 400 ? text2 : `${text2.slice(0, 400)}\u2026`;
406244
- return /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(ThemedText, { children: shown || "(no content)" });
406247
+ return /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(MessageResponse, { children: /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(ThemedText, { children: shown || "(no content)" }) });
406245
406248
  }
406246
406249
  var import_jsx_runtime154;
406247
406250
  var init_UI24 = __esm({
406248
406251
  "build-src/src/tools/EngineWorkflowTool/UI.tsx"() {
406249
406252
  init_ink2();
406253
+ init_MessageResponse();
406250
406254
  import_jsx_runtime154 = __toESM(require_jsx_runtime(), 1);
406251
406255
  }
406252
406256
  });
@@ -406281,11 +406285,20 @@ var init_EngineWorkflowTool = __esm({
406281
406285
  )
406282
406286
  );
406283
406287
  outputSchema30 = lazySchema(
406284
- () => external_exports.object({
406285
- runId: external_exports.string().optional(),
406286
- status: external_exports.string().optional(),
406287
- note: external_exports.string().optional()
406288
- })
406288
+ () => (
406289
+ // 双形:引擎经 bridge 落壳的 toolUseResult 是 STRING(started JSON 信封原文)——
406290
+ // UserToolSuccessMessage 先 outputSchema.safeParse 把关,object-only 形会 parseFailed →
406291
+ // 渲染器被跳过 → generic 兜底直出 raw JSON(live 套件 W2 逮出)。string 臂放行后
406292
+ // renderToolResultMessage 才拿得到信封做人话化;object 臂兜结构化回放/存储形。
406293
+ external_exports.union([
406294
+ external_exports.string(),
406295
+ external_exports.object({
406296
+ runId: external_exports.string().optional(),
406297
+ status: external_exports.string().optional(),
406298
+ note: external_exports.string().optional()
406299
+ })
406300
+ ])
406301
+ )
406289
406302
  );
406290
406303
  EngineWorkflowTool = buildTool({
406291
406304
  name: "Workflow",
@@ -406320,7 +406333,7 @@ var init_EngineWorkflowTool = __esm({
406320
406333
  return {
406321
406334
  tool_use_id: toolUseID,
406322
406335
  type: "tool_result",
406323
- content: typeof output.runId === "string" ? `${output.status ?? "started"} (runId ${output.runId})${typeof output.note === "string" ? ` \u2014 ${output.note}` : ""}` : JSON.stringify(output)
406336
+ content: typeof output === "string" ? output : typeof output.runId === "string" ? `${output.status ?? "started"} (runId ${output.runId})${typeof output.note === "string" ? ` \u2014 ${output.note}` : ""}` : JSON.stringify(output)
406324
406337
  };
406325
406338
  },
406326
406339
  renderToolUseMessage: renderWorkflowToolUseMessage,
@@ -479751,8 +479764,8 @@ var init_sema_brand = __esm({
479751
479764
  "Slash-command gating wired to the fleet capability handshake"
479752
479765
  ]
479753
479766
  },
479754
- productVersion: "1.0.31",
479755
- announcement: "sema 1.0.31 \u2014 Workflow runs get a proper tool card (name, description, and a plain-language background receipt), thinking blocks collapse from anywhere in their body, and your terminal tab always reads Sema."
479767
+ productVersion: "1.0.32",
479768
+ announcement: "sema 1.0.32 \u2014 Workflow result lines now render as a proper indented receipt (no more raw JSON), fixing the second half of the workflow card styling."
479756
479769
  };
479757
479770
  }
479758
479771
  });
@@ -482686,8 +482699,8 @@ var require_sema_brand = __commonJS({
482686
482699
  "Slash-command gating wired to the fleet capability handshake"
482687
482700
  ]
482688
482701
  },
482689
- productVersion: "1.0.31",
482690
- announcement: "sema 1.0.31 \u2014 Workflow runs get a proper tool card (name, description, and a plain-language background receipt), thinking blocks collapse from anywhere in their body, and your terminal tab always reads Sema."
482702
+ productVersion: "1.0.32",
482703
+ announcement: "sema 1.0.32 \u2014 Workflow result lines now render as a proper indented receipt (no more raw JSON), fixing the second half of the workflow card styling."
482691
482704
  };
482692
482705
  }
482693
482706
  });
@@ -608171,8 +608184,8 @@ function _temp161() {
608171
608184
  var import_compiler_runtime316, import_react313, SETTINGS_ERRORS_NOTIFICATION_KEY;
608172
608185
  var init_useSettingsErrors = __esm({
608173
608186
  "build-src/src/hooks/notifs/useSettingsErrors.tsx"() {
608174
- import_compiler_runtime316 = __toESM(require_compiler_runtime(), 1);
608175
- import_react313 = __toESM(require_react(), 1);
608187
+ import_compiler_runtime316 = __toESM(require_compiler_runtime());
608188
+ import_react313 = __toESM(require_react());
608176
608189
  init_notifications();
608177
608190
  init_state();
608178
608191
  init_allErrors();
@@ -654329,7 +654342,7 @@ Auth: unix socket -R \u2192 local proxy`, "info");
654329
654342
  pendingHookMessages
654330
654343
  }, renderAndRun);
654331
654344
  }
654332
- }).version("sema 1.0.31", "-v, --version", "Output the version number");
654345
+ }).version("sema 1.0.32", "-v, --version", "Output the version number");
654333
654346
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
654334
654347
  program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
654335
654348
  if (canUserConfigureAdvisor()) {