@sayknow-cli/coding-agent 0.7.23 → 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 +6 -0
- package/dist/types/sdk/session.d.ts +6 -1
- package/dist/types/task/executor.d.ts +2 -0
- package/dist/types/tools/index.d.ts +5 -0
- package/package.json +7 -7
- package/src/sdk/session.ts +13 -2
- package/src/task/executor.ts +3 -0
- package/src/task/index.ts +2 -0
- package/src/tools/index.ts +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
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
|
+
|
|
5
11
|
## [0.7.23] - 2026-11-12
|
|
6
12
|
|
|
7
13
|
### Fixed
|
|
@@ -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 */
|
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.
|
|
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.
|
|
58
|
-
"@sayknow-cli/agent-core": "0.7.
|
|
59
|
-
"@sayknow-cli/ai": "0.7.
|
|
60
|
-
"@sayknow-cli/natives": "0.7.
|
|
61
|
-
"@sayknow-cli/tui": "0.7.
|
|
62
|
-
"@sayknow-cli/utils": "0.7.
|
|
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",
|
package/src/sdk/session.ts
CHANGED
|
@@ -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(
|
|
923
|
-
|
|
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 (
|
package/src/task/executor.ts
CHANGED
|
@@ -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,
|
package/src/tools/index.ts
CHANGED
|
@@ -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 */
|