@sayknow-cli/coding-agent 0.7.22 → 0.7.24

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.7.24] - 2026-11-13
6
+
7
+ ### Changed
8
+
9
+ - A subagent's line in the live panel above the input now says what it is doing (for example "Running chromium stall control") instead of the start of its raw command. Subagents launched from an interactive session now fill the `_i` intent field, which they skipped before because they have no UI of their own. Sessions without a UI, such as print mode and RPC, still skip it, and `tools.intentTracing: false` still turns it off everywhere. Each subagent tool call costs a few more output tokens.
10
+
11
+ ## [0.7.23] - 2026-11-12
12
+
13
+ ### Fixed
14
+
15
+ - Reading a PDF works again. SKC pointed mupdf at its bundled 1.28.1 wasm in every install, but npm and bun installs resolve mupdf through markit-ai's `^1.27.0` range, and a loader from any other release (1.28.0, 1.28.6) cannot run that wasm (`m_[_] is not a function`). The bundled wasm is now used by compiled binaries only; other installs use the wasm that ships with the mupdf they resolved. 0.7.22 binaries were built with mupdf 1.28.6 and had the same failure; the build now pins mupdf to 1.28.1.
16
+
5
17
  ## [0.7.22] - 2026-11-12
6
18
 
7
19
  ### Added
@@ -172,6 +172,11 @@ export interface CreateAgentSessionOptions {
172
172
  settings?: Settings;
173
173
  /** Whether UI is available (enables interactive tools like ask). Default: false */
174
174
  hasUI?: boolean;
175
+ /**
176
+ * A parent UI renders this session's live progress (subagent panel). Enables intent
177
+ * tracing like `hasUI` does, without enabling interactive tools. Default: false
178
+ */
179
+ progressObserved?: boolean;
175
180
  /** Whether this host mode can own a notification session endpoint. Default: true. */
176
181
  notificationHostModeSupported?: boolean;
177
182
  /** Whether this host mode can own the root SDK endpoint. Default: true. */
@@ -275,5 +280,5 @@ export interface BuildSystemPromptOptions {
275
280
  export declare function buildSystemPrompt(options?: BuildSystemPromptOptions): Promise<BuildSystemPromptResult>;
276
281
  export { createAppendOnlyContextManager, providerSupportsAppendOnlyAuto, resolveAppendOnlyMode };
277
282
  export declare function createPluginHooksExtension(hooks: ConstrainedPluginHook[]): ExtensionFactory;
278
- export declare function resolveIntentTracingEnabled(intentTracingSetting: boolean | undefined, hasUI: boolean): boolean;
283
+ export declare function resolveIntentTracingEnabled(intentTracingSetting: boolean | undefined, hasUI: boolean, progressObserved?: boolean): boolean;
279
284
  export declare function createAgentSession(options?: CreateAgentSessionOptions): Promise<CreateAgentSessionResult>;
@@ -58,6 +58,8 @@ export interface ExecutorOptions {
58
58
  enableLsp?: boolean;
59
59
  signal?: AbortSignal;
60
60
  onProgress?: (progress: AgentProgress) => void;
61
+ /** A parent UI renders this subagent's live progress; enables intent tracing in the child. */
62
+ progressObserved?: boolean;
61
63
  sessionFile?: string | null;
62
64
  persistArtifacts?: boolean;
63
65
  artifactsDir?: string;
@@ -145,6 +145,11 @@ export interface ToolSession {
145
145
  cwd: string;
146
146
  /** Whether UI is available */
147
147
  hasUI: boolean;
148
+ /**
149
+ * A parent UI renders this session's live progress (the subagent panel), so tool
150
+ * calls carry intent even though `hasUI` is false. Propagates to nested subagents.
151
+ */
152
+ progressObserved?: boolean;
148
153
  /** Whether this session will bind a workflow-gate emitter after tool construction. */
149
154
  workflowGateEligible?: boolean;
150
155
  /** Skip Python kernel availability check and warmup */
@@ -1 +1 @@
1
- export declare function ensureMupdfWasmResolution(): void;
1
+ export declare function ensureMupdfWasmResolution(compiled?: boolean): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@sayknow-cli/coding-agent",
4
- "version": "0.7.22",
4
+ "version": "0.7.24",
5
5
  "description": "Sayknow-CLI CLI with read, bash, edit, write tools and session management",
6
6
  "homepage": "https://sayknow-cli.com",
7
7
  "author": "jaybeyond",
@@ -54,12 +54,12 @@
54
54
  "@agentclientprotocol/sdk": "1.3.0",
55
55
  "@babel/parser": "^7.29.3",
56
56
  "@mozilla/readability": "^0.6.0",
57
- "@sayknow-cli/stats": "0.7.22",
58
- "@sayknow-cli/agent-core": "0.7.22",
59
- "@sayknow-cli/ai": "0.7.22",
60
- "@sayknow-cli/natives": "0.7.22",
61
- "@sayknow-cli/tui": "0.7.22",
62
- "@sayknow-cli/utils": "0.7.22",
57
+ "@sayknow-cli/stats": "0.7.24",
58
+ "@sayknow-cli/agent-core": "0.7.24",
59
+ "@sayknow-cli/ai": "0.7.24",
60
+ "@sayknow-cli/natives": "0.7.24",
61
+ "@sayknow-cli/tui": "0.7.24",
62
+ "@sayknow-cli/utils": "0.7.24",
63
63
  "@puppeteer/browsers": "^2.13.0",
64
64
  "@types/turndown": "5.0.6",
65
65
  "@xterm/headless": "^6.0.0",
@@ -454,6 +454,11 @@ export interface CreateAgentSessionOptions {
454
454
 
455
455
  /** Whether UI is available (enables interactive tools like ask). Default: false */
456
456
  hasUI?: boolean;
457
+ /**
458
+ * A parent UI renders this session's live progress (subagent panel). Enables intent
459
+ * tracing like `hasUI` does, without enabling interactive tools. Default: false
460
+ */
461
+ progressObserved?: boolean;
457
462
  /** Whether this host mode can own a notification session endpoint. Default: true. */
458
463
  notificationHostModeSupported?: boolean;
459
464
  /** Whether this host mode can own the root SDK endpoint. Default: true. */
@@ -919,8 +924,12 @@ function withEmbeddedDefaultSkcSkills(skills: Skill[]): Skill[] {
919
924
  return withEmbeddedSkcSecuritySkills(withEmbeddedSkcUiSkills([...byName.values()]));
920
925
  }
921
926
 
922
- export function resolveIntentTracingEnabled(intentTracingSetting: boolean | undefined, hasUI: boolean): boolean {
923
- return (!!intentTracingSetting || $flag("PI_INTENT_TRACING")) && hasUI;
927
+ export function resolveIntentTracingEnabled(
928
+ intentTracingSetting: boolean | undefined,
929
+ hasUI: boolean,
930
+ progressObserved = false,
931
+ ): boolean {
932
+ return (!!intentTracingSetting || $flag("PI_INTENT_TRACING")) && (hasUI || progressObserved);
924
933
  }
925
934
 
926
935
  const MCP_CONFIG_PATH_AND_MANAGER_ERROR = "mcpConfigPath and mcpManager are mutually exclusive";
@@ -1430,6 +1439,7 @@ export async function createAgentSession(options: CreateAgentSessionOptions = {}
1430
1439
  return sessionManager.getCwd();
1431
1440
  },
1432
1441
  hasUI: options.hasUI ?? false,
1442
+ progressObserved: options.progressObserved ?? false,
1433
1443
  workflowGateEligible: true,
1434
1444
  enableLsp,
1435
1445
  get hasEditTool() {
@@ -2123,6 +2133,7 @@ export async function createAgentSession(options: CreateAgentSessionOptions = {}
2123
2133
  const intentTracingEnabled = resolveIntentTracingEnabled(
2124
2134
  settings.get("tools.intentTracing"),
2125
2135
  options.hasUI ?? false,
2136
+ options.progressObserved ?? false,
2126
2137
  );
2127
2138
  const intentField = intentTracingEnabled ? INTENT_FIELD : undefined;
2128
2139
  const rebuildSystemPrompt = async (
@@ -221,6 +221,8 @@ export interface ExecutorOptions {
221
221
  enableLsp?: boolean;
222
222
  signal?: AbortSignal;
223
223
  onProgress?: (progress: AgentProgress) => void;
224
+ /** A parent UI renders this subagent's live progress; enables intent tracing in the child. */
225
+ progressObserved?: boolean;
224
226
  sessionFile?: string | null;
225
227
  persistArtifacts?: boolean;
226
228
  artifactsDir?: string;
@@ -1668,6 +1670,7 @@ export async function runSubprocess(options: ExecutorOptions): Promise<SingleRes
1668
1670
  },
1669
1671
  sessionManager,
1670
1672
  hasUI: false,
1673
+ progressObserved: options.progressObserved === true,
1671
1674
  spawns: spawnsEnv,
1672
1675
  taskDepth: childDepth,
1673
1676
  currentAgentType: agent.name,
package/src/task/index.ts CHANGED
@@ -1595,6 +1595,7 @@ export class TaskTool implements AgentTool<TaskToolSchemaInstance, TaskToolDetai
1595
1595
  modelOverride: taskModelOverride,
1596
1596
  parentActiveModelPattern,
1597
1597
  parentSessionId: this.session.getSessionId?.() ?? undefined,
1598
+ progressObserved: this.session.hasUI || this.session.progressObserved === true,
1598
1599
  thinkingLevel: thinkingLevelOverride,
1599
1600
  outputSchema: effectiveOutputSchema,
1600
1601
  sessionFile: taskSessionFile,
@@ -1670,6 +1671,7 @@ export class TaskTool implements AgentTool<TaskToolSchemaInstance, TaskToolDetai
1670
1671
  resumeMessage: overrides?.resumeMessage ?? executionOverrides?.resumeMessage,
1671
1672
  subagentId: task.id,
1672
1673
  taskDepth,
1674
+ progressObserved: this.session.hasUI || this.session.progressObserved === true,
1673
1675
  modelOverride: taskModelOverride,
1674
1676
  parentActiveModelPattern,
1675
1677
  parentSessionId: this.session.getSessionId?.() ?? undefined,
@@ -225,6 +225,11 @@ export interface ToolSession {
225
225
  cwd: string;
226
226
  /** Whether UI is available */
227
227
  hasUI: boolean;
228
+ /**
229
+ * A parent UI renders this session's live progress (the subagent panel), so tool
230
+ * calls carry intent even though `hasUI` is false. Propagates to nested subagents.
231
+ */
232
+ progressObserved?: boolean;
228
233
  /** Whether this session will bind a workflow-gate emitter after tool construction. */
229
234
  workflowGateEligible?: boolean;
230
235
  /** Skip Python kernel availability check and warmup */
@@ -18,17 +18,25 @@
18
18
  * resolves in a workspace checkout but breaks every published install
19
19
  * (`bun install -g` / npm) where `@sayknow-cli/coding-agent` sits several
20
20
  * directories deeper and mupdf is hoisted elsewhere — that was the 0.5.8
21
- * startup crash. Refresh the vendored bytes from
22
- * `node_modules/mupdf/dist/mupdf-wasm.wasm` whenever markit-ai's mupdf
23
- * dependency moves.
21
+ * startup crash.
22
+ *
23
+ * MuPDF's JavaScript loader only runs the wasm built for the same release, so
24
+ * the hook is seeded in compiled binaries only. Anywhere else `mupdf` finds the
25
+ * wasm next to its own loader, which always matches, whatever version the
26
+ * installer resolved for markit-ai's `^1.27.0` range. A binary pairs these
27
+ * vendored bytes with the loader the lockfile resolves, so the root
28
+ * `overrides.mupdf` pin and the bytes
29
+ * (`node_modules/mupdf/dist/mupdf-wasm.wasm`) move together.
24
30
  *
25
31
  * This must run before the first `import("mupdf")` anywhere in the process.
26
32
  */
33
+ import { isCompiledBinary } from "@sayknow-cli/utils/env";
27
34
  import mupdfWasmPath from "../../vendor/mupdf/mupdf-wasm.wasm" with { type: "file" };
28
35
 
29
36
  const MODULE_CONFIG_KEY = "$libmupdf_wasm_Module";
30
37
 
31
- export function ensureMupdfWasmResolution(): void {
38
+ export function ensureMupdfWasmResolution(compiled: boolean = isCompiledBinary()): void {
39
+ if (!compiled) return;
32
40
  const globalScope = globalThis as typeof globalThis & Record<string, unknown>;
33
41
  if (globalScope[MODULE_CONFIG_KEY] !== undefined) return;
34
42
  globalScope[MODULE_CONFIG_KEY] = { locateFile: () => String(mupdfWasmPath) };