@adhdev/daemon-core 0.8.60 → 0.8.62
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/provider-cli-adapter.d.ts +1 -0
- package/dist/cli-adapters/provider-cli-parse.d.ts +1 -0
- package/dist/cli-adapters/provider-cli-shared.d.ts +5 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +521 -343
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +511 -343
- package/dist/index.mjs.map +1 -1
- package/dist/providers/chat-message-normalization.d.ts +43 -0
- package/dist/providers/cli-provider-instance.d.ts +1 -0
- package/dist/providers/contracts.d.ts +5 -1
- package/dist/providers/control-effects.d.ts +2 -0
- package/dist/providers/extension-provider-instance.d.ts +2 -1
- package/dist/providers/ide-provider-instance.d.ts +2 -1
- package/dist/types.d.ts +2 -1
- package/node_modules/@adhdev/session-host-core/package.json +2 -2
- package/package.json +2 -2
- package/src/agent-stream/poller.ts +3 -5
- package/src/cli-adapters/provider-cli-adapter.ts +32 -10
- package/src/cli-adapters/provider-cli-parse.d.ts +1 -0
- package/src/cli-adapters/provider-cli-parse.ts +3 -0
- package/src/cli-adapters/provider-cli-shared.d.ts +2 -0
- package/src/cli-adapters/provider-cli-shared.ts +5 -2
- package/src/commands/chat-commands.ts +2 -1
- package/src/config/chat-history.ts +6 -5
- package/src/index.ts +13 -0
- package/src/providers/acp-provider-instance.ts +19 -24
- package/src/providers/chat-message-normalization.ts +68 -0
- package/src/providers/cli-provider-instance.ts +42 -29
- package/src/providers/contracts.ts +5 -1
- package/src/providers/control-effects.ts +72 -0
- package/src/providers/extension-provider-instance.ts +43 -31
- package/src/providers/ide-provider-instance.ts +42 -30
- package/src/types.ts +2 -1
|
@@ -135,6 +135,7 @@ export declare class ProviderCliAdapter implements CliAdapter {
|
|
|
135
135
|
private looksLikeVisibleAssistantCandidate;
|
|
136
136
|
private shouldRetryFinishResponse;
|
|
137
137
|
private hasRecentInteractiveActivity;
|
|
138
|
+
private shouldDeferIdleTimeoutFinish;
|
|
138
139
|
private getStartupConfirmationModal;
|
|
139
140
|
private shouldResolveModalWithEnter;
|
|
140
141
|
private waitForInteractivePrompt;
|
|
@@ -24,6 +24,7 @@ export declare function buildCliParseInput(options: {
|
|
|
24
24
|
terminalScreenText: string;
|
|
25
25
|
baseMessages: CliChatMessage[];
|
|
26
26
|
partialResponse: string;
|
|
27
|
+
isWaitingForResponse?: boolean;
|
|
27
28
|
scope?: TurnParseScope | null;
|
|
28
29
|
runtimeSettings: Record<string, any>;
|
|
29
30
|
}): CliScriptInput;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import type { ProviderResumeCapability } from '../providers/contracts.js';
|
|
2
|
+
import type { ChatMessageKind } from '../providers/chat-message-normalization.js';
|
|
2
3
|
import { sanitizeSpawnEnv } from './spawn-env.js';
|
|
3
4
|
export interface CliChatMessage {
|
|
4
5
|
role: 'user' | 'assistant';
|
|
5
6
|
content: string;
|
|
6
7
|
timestamp?: number;
|
|
7
8
|
receivedAt?: number;
|
|
8
|
-
kind?:
|
|
9
|
+
kind?: ChatMessageKind;
|
|
9
10
|
id?: string;
|
|
10
11
|
index?: number;
|
|
11
|
-
meta?: Record<string,
|
|
12
|
+
meta?: Record<string, unknown>;
|
|
12
13
|
senderName?: string;
|
|
13
14
|
}
|
|
14
15
|
export interface CliSessionStatus {
|
|
@@ -62,6 +63,7 @@ export interface CliScriptInput {
|
|
|
62
63
|
recentScreen: CliScreenSnapshot;
|
|
63
64
|
messages: CliChatMessage[];
|
|
64
65
|
partialResponse: string;
|
|
66
|
+
isWaitingForResponse?: boolean;
|
|
65
67
|
promptText?: string;
|
|
66
68
|
settings?: Record<string, any>;
|
|
67
69
|
args?: Record<string, any>;
|
|
@@ -70,6 +72,7 @@ export interface CliStatusInput {
|
|
|
70
72
|
tail: string;
|
|
71
73
|
screenText?: string;
|
|
72
74
|
rawBuffer?: string;
|
|
75
|
+
isWaitingForResponse?: boolean;
|
|
73
76
|
screen: CliScreenSnapshot;
|
|
74
77
|
tailScreen: CliScreenSnapshot;
|
|
75
78
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -73,6 +73,8 @@ export type { ProviderModule, CdpTargetFilter, ProviderResumeCapability, InputEn
|
|
|
73
73
|
export type { ProviderSourceConfigSnapshot, ProviderSourceConfigUpdate } from './config/provider-source-config.js';
|
|
74
74
|
export { parseProviderSourceConfigUpdate } from './config/provider-source-config.js';
|
|
75
75
|
export { normalizeInputEnvelope, normalizeMessageParts, flattenMessageParts } from './providers/io-contracts.js';
|
|
76
|
+
export { BUILTIN_CHAT_MESSAGE_KINDS, isBuiltinChatMessageKind, normalizeChatMessageKind, buildChatMessage, buildSystemChatMessage, buildRuntimeSystemChatMessage, buildAssistantChatMessage, buildUserChatMessage, normalizeChatMessage, normalizeChatMessages, } from './providers/chat-message-normalization.js';
|
|
77
|
+
export type { BuiltinChatMessageKind, ChatMessageKind } from './providers/chat-message-normalization.js';
|
|
76
78
|
export { VersionArchive, detectAllVersions } from './providers/version-archive.js';
|
|
77
79
|
export type { ProviderVersionInfo, VersionHistory } from './providers/version-archive.js';
|
|
78
80
|
export { DevServer } from './daemon/dev-server.js';
|