@adhdev/daemon-core 0.9.82-rc.540 → 0.9.82-rc.541
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/dist/cli-adapters/cli-state-engine.d.ts +12 -0
- package/dist/commands/chat-commands-read.d.ts +3 -0
- package/dist/index.js +740 -588
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +747 -595
- package/dist/index.mjs.map +1 -1
- package/dist/providers/spec/types.d.ts +57 -2
- package/package.json +3 -3
- package/src/cli-adapters/cli-state-engine.ts +76 -1
- package/src/commands/chat-commands-read.ts +28 -1
- package/src/mesh/coordinator-prompt.ts +2 -1
- package/src/providers/spec/native-history-executor.ts +174 -9
- package/src/providers/spec/types.ts +54 -2
|
@@ -214,6 +214,18 @@ export declare class CliStateEngine {
|
|
|
214
214
|
private applyError;
|
|
215
215
|
private maybeScheduleProviderErrorRetry;
|
|
216
216
|
private applyIdle;
|
|
217
|
+
/**
|
|
218
|
+
* FALSE-IDLE (screen-quiet gate): has the visible terminal screen content been
|
|
219
|
+
* byte-identical for at least SCREEN_QUIET_IDLE_MS continuously?
|
|
220
|
+
*
|
|
221
|
+
* `lastScreenChangeAt` is bumped by the adapter every time the normalized screen
|
|
222
|
+
* snapshot changes (spinner frame, streaming command output, etc.), so
|
|
223
|
+
* `now - lastScreenChangeAt` is the real screen-diff quiet age. Reads the LIVE
|
|
224
|
+
* transport snapshot so the deferred idleFinish timeout re-checks current screen
|
|
225
|
+
* state, not the stale snapshot from when the timer was armed. A never-changed
|
|
226
|
+
* screen (lastScreenChangeAt === 0) is treated as quiet.
|
|
227
|
+
*/
|
|
228
|
+
private hasScreenBeenQuietForIdle;
|
|
217
229
|
/**
|
|
218
230
|
* FALSE-IDLE (Fix 2): should applyIdle suppress the idle/finish for the current
|
|
219
231
|
* turn because we are inside the post-approval resume grace?
|
|
@@ -21,5 +21,8 @@ export declare function __resetProviderSessionPinsForTest(): void;
|
|
|
21
21
|
*/
|
|
22
22
|
export declare function __getProviderSessionPinForTest(meshSessionId: string): string | undefined;
|
|
23
23
|
export declare function normalizeNativeHistoryMessages(providerType: string, messages: ChatMessage[], nativeSessionId?: string): ChatMessage[];
|
|
24
|
+
/** Test hook for the symlink-safe workspace comparison used by the
|
|
25
|
+
* native-history workspace-safety gate. */
|
|
26
|
+
export declare function __normalizeComparableWorkspaceForTest(value: unknown): string;
|
|
24
27
|
export declare function handleChatHistory(h: CommandHelpers, args: any): Promise<CommandResult>;
|
|
25
28
|
export declare function handleReadChat(h: CommandHelpers, args: any): Promise<CommandResult>;
|