@adhdev/daemon-core 0.8.59 → 0.8.61
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 +3 -0
- package/dist/cli-adapters/provider-cli-shared.d.ts +3 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +516 -350
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +506 -350
- 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 +35 -18
- package/src/cli-adapters/provider-cli-shared.ts +3 -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
|
@@ -95,10 +95,13 @@ export declare class ProviderCliAdapter implements CliAdapter {
|
|
|
95
95
|
private static readonly MAX_TRACE_ENTRIES;
|
|
96
96
|
private readonly providerResolutionMeta;
|
|
97
97
|
private static readonly IDLE_FINISH_CONFIRM_MS;
|
|
98
|
+
private static readonly HERMES_IDLE_FINISH_CONFIRM_MS;
|
|
98
99
|
private static readonly STATUS_ACTIVITY_HOLD_MS;
|
|
99
100
|
private static readonly FINISH_RETRY_DELAY_MS;
|
|
100
101
|
private static readonly MAX_FINISH_RETRIES;
|
|
101
102
|
private syncMessageViews;
|
|
103
|
+
private getIdleFinishConfirmMs;
|
|
104
|
+
private getStatusActivityHoldMs;
|
|
102
105
|
private setStatus;
|
|
103
106
|
private clearIdleFinishCandidate;
|
|
104
107
|
private armIdleFinishCandidate;
|
|
@@ -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 {
|
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';
|