@adhdev/daemon-core 0.9.82-rc.169 → 0.9.82-rc.170
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-adapter-types.d.ts +3 -0
- package/dist/cli-adapters/provider-cli-adapter.d.ts +2 -0
- package/dist/cli-adapters/provider-cli-shared.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +474 -74
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +467 -74
- package/dist/index.mjs.map +1 -1
- package/dist/mesh/mesh-events.d.ts +19 -0
- package/dist/providers/cli-provider-instance.d.ts +2 -1
- package/dist/providers/provider-instance.d.ts +3 -0
- package/dist/providers/spec/cli-adapter.d.ts +10 -0
- package/dist/providers/spec/driver.d.ts +1 -0
- package/dist/providers/types/interactive-prompt.d.ts +48 -0
- package/dist/shared-types.d.ts +3 -0
- package/package.json +1 -1
- package/src/cli-adapter-types.ts +3 -0
- package/src/cli-adapters/provider-cli-adapter.ts +6 -0
- package/src/cli-adapters/provider-cli-shared.ts +2 -0
- package/src/index.ts +15 -0
- package/src/mesh/mesh-events.ts +41 -0
- package/src/providers/cli-provider-instance.ts +61 -12
- package/src/providers/provider-instance.ts +3 -0
- package/src/providers/spec/cli-adapter.ts +109 -6
- package/src/providers/spec/driver.ts +4 -0
- package/src/providers/types/interactive-prompt.ts +297 -0
- package/src/shared-types.ts +3 -0
- package/src/status/builders.ts +1 -0
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Contract implemented by all CLI adapters (ProviderCliAdapter etc).
|
|
5
5
|
*/
|
|
6
6
|
import type { ChatMessage } from './types.js';
|
|
7
|
+
import type { InteractivePrompt, InteractivePromptResponse } from './providers/types/interactive-prompt.js';
|
|
7
8
|
export interface CliAdapterStatus {
|
|
8
9
|
status?: string;
|
|
9
10
|
messages?: ChatMessage[];
|
|
@@ -11,6 +12,7 @@ export interface CliAdapterStatus {
|
|
|
11
12
|
message: string;
|
|
12
13
|
buttons: string[];
|
|
13
14
|
} | null;
|
|
15
|
+
activeInteractivePrompt?: InteractivePrompt | null;
|
|
14
16
|
providerSessionId?: string;
|
|
15
17
|
errorMessage?: string;
|
|
16
18
|
errorReason?: string;
|
|
@@ -60,6 +62,7 @@ export interface CliAdapter {
|
|
|
60
62
|
setServerConn?(serverConn: unknown): void;
|
|
61
63
|
clearHistory?(): void;
|
|
62
64
|
resolveAction?(data: unknown): Promise<void>;
|
|
65
|
+
setInteractivePromptResponse?(response: InteractivePromptResponse): Promise<void>;
|
|
63
66
|
resolveModal?(buttonIndex: number): void;
|
|
64
67
|
isApprovalRecentlyResolved?(): boolean;
|
|
65
68
|
setOnPtyData?(callback: (data: string) => void): void;
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* compatibility: [{ ideVersion, scriptDir }] ← versioned scripts
|
|
15
15
|
*/
|
|
16
16
|
import type { CliAdapter } from '../cli-adapter-types.js';
|
|
17
|
+
import type { InteractivePromptResponse } from '../providers/types/interactive-prompt.js';
|
|
17
18
|
import { type PtyRuntimeMetadata, type PtyTransportFactory } from './pty-transport.js';
|
|
18
19
|
import { type CliProviderModule, type CliScripts, type CliSessionStatus, type CliTraceEntry, type ParsedSession } from './provider-cli-shared.js';
|
|
19
20
|
import { CliStateEngine, type CliBufferSnapshot } from './cli-state-engine.js';
|
|
@@ -164,6 +165,7 @@ export declare class ProviderCliAdapter implements CliAdapter {
|
|
|
164
165
|
* Uses resolveAction script if available, otherwise falls back to standard text.
|
|
165
166
|
*/
|
|
166
167
|
resolveAction(data: any): Promise<void>;
|
|
168
|
+
setInteractivePromptResponse(_response: InteractivePromptResponse): Promise<void>;
|
|
167
169
|
private isSubmitStuck;
|
|
168
170
|
private hasMeaningfulResponseBufferLocal;
|
|
169
171
|
private writeToPty;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ProviderResumeCapability } from '../providers/contracts.js';
|
|
2
2
|
import type { ChatMessageKind } from '../providers/chat-message-normalization.js';
|
|
3
3
|
import type { ChatBubbleState } from '../types.js';
|
|
4
|
+
import type { InteractivePrompt } from '../providers/types/interactive-prompt.js';
|
|
4
5
|
import { sanitizeSpawnEnv } from './spawn-env.js';
|
|
5
6
|
export interface CliChatMessage {
|
|
6
7
|
role: string;
|
|
@@ -26,6 +27,7 @@ export interface CliSessionStatus {
|
|
|
26
27
|
message: string;
|
|
27
28
|
buttons: string[];
|
|
28
29
|
} | null;
|
|
30
|
+
activeInteractivePrompt?: InteractivePrompt | null;
|
|
29
31
|
pendingOutboundCount?: number;
|
|
30
32
|
pendingOutboundMessages?: Array<{
|
|
31
33
|
id: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export type { ChatBubbleState, ChatMessage, ExtensionInfo, CommandResult as CoreCommandResult, ProviderConfig, DaemonEvent, StatusResponse, SystemInfo, DetectedIde, ProviderInfo, AgentEntry, } from './types.js';
|
|
7
7
|
export type { SessionEntry, CompactSessionEntry, CompactDaemonEntry, CloudDaemonSummaryEntry, DashboardBootstrapDaemonEntry, VersionUpdateReason, CloudStatusReportPayload, DaemonStatusEventPayload, DashboardStatusEventPayload, SessionTransport, SessionKind, SessionCapability, AgentSessionStream, ReadChatCursor, ReadChatSyncResult, TransportTopic, SessionChatTailSubscriptionParams, SessionRuntimeOutputSubscriptionParams, MachineRuntimeSubscriptionParams, SessionHostDiagnosticsSubscriptionParams, SessionModalSubscriptionParams, DaemonMetadataSubscriptionParams, WorkspaceGitSubscriptionParams, SessionChatTailUpdate, MachineRuntimeUpdate, SessionHostDiagnosticsUpdate, SessionModalUpdate, DaemonMetadataUpdate, TopicUpdateEnvelope, SubscribeRequest, UnsubscribeRequest, StandaloneWsStatusPayload, AvailableProviderInfo, AcpConfigOption, AcpMode, ProviderControlSchema, StatusReportPayload, MachineInfo, SessionHostDiagnosticsSnapshot, SessionHostRecord, SessionHostWriteOwner, SessionHostAttachedClient, SessionHostLogEntry, SessionHostRequestTrace, SessionHostRuntimeTransition, DetectedIdeInfo, WorkspaceEntry, ProviderSummaryItem, ProviderSummaryMetadata, ProviderState, ProviderStatus, ProviderErrorReason, SessionActiveChatData, ActiveChatData, IdeProviderState, CliProviderState, AcpProviderState, ExtensionProviderState, MessageInputSupport, InputMediaStrategyDescriptor, InputAttachmentStrategy, InputMediaType, } from './shared-types.js';
|
|
8
|
+
export type { InteractivePrompt, InteractiveQuestion, InteractiveOption, InteractivePromptResponse, InteractiveAnswer, } from './providers/types/interactive-prompt.js';
|
|
9
|
+
export { normalizeInteractivePrompt, normalizeInteractivePromptResponse, buildClaudeInteractiveToolResult, interactivePromptFromClaudeAskUserQuestion, detectClaudeAskUserQuestionPromptFromJson, } from './providers/types/interactive-prompt.js';
|
|
8
10
|
export type { RepoMesh, RepoMeshDaemonRole, RepoMeshHostMetadata, RepoMeshHostPairingMetadata, RepoMeshHostStatus, RepoMeshNode, RepoMeshNodeHealth, RepoMeshPolicy, RepoMeshNodePolicy, RepoMeshRelatedRepo, RepoMeshNodeCapabilities, DetectedCommand, ProjectContextSnapshot, ProjectContextSource, RepoMeshCoordinatorConfig, LocalMeshConfig, LocalMeshEntry, LocalMeshNodeEntry, RepoMeshStatus, RepoMeshNodeStatus, RepoMeshSessionStatus, RepoMeshQueueTask, RepoMeshQueueTaskStatus, RepoMeshQueueSummary, RepoMeshQueueStatus, RepoMeshLedgerEntryStatus, RepoMeshLedgerSummaryStatus, RepoMeshLedgerStatus, MeshAsyncJobLifecycle, } from './repo-mesh-types.js';
|
|
9
11
|
export { DEFAULT_MESH_POLICY } from './repo-mesh-types.js';
|
|
10
12
|
export * from './git/index.js';
|