@adhdev/daemon-core 0.8.52 → 0.8.54
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/commands/cli-manager.d.ts +8 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +896 -299
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +887 -300
- package/dist/index.mjs.map +1 -1
- package/dist/providers/acp-provider-instance.d.ts +2 -1
- package/dist/providers/cli-provider-instance.d.ts +3 -1
- package/dist/providers/cli-script-results.d.ts +8 -0
- package/dist/providers/contracts.d.ts +58 -9
- package/dist/providers/control-effects.d.ts +4 -1
- package/dist/providers/io-contracts.d.ts +91 -0
- package/dist/providers/provider-schema.d.ts +5 -0
- package/dist/session-host/runtime-surface.d.ts +16 -0
- package/dist/session-host/startup-restore-policy.d.ts +1 -0
- package/dist/shared-types.d.ts +6 -0
- package/dist/types.d.ts +3 -3
- package/node_modules/@adhdev/session-host-core/dist/index.d.mts +16 -1
- package/node_modules/@adhdev/session-host-core/dist/index.d.ts +16 -1
- package/node_modules/@adhdev/session-host-core/dist/index.js +59 -0
- package/node_modules/@adhdev/session-host-core/dist/index.js.map +1 -1
- package/node_modules/@adhdev/session-host-core/dist/index.mjs +54 -0
- package/node_modules/@adhdev/session-host-core/dist/index.mjs.map +1 -1
- package/node_modules/@adhdev/session-host-core/package.json +1 -1
- package/package.json +1 -1
- package/src/commands/cdp-commands.ts +27 -0
- package/src/commands/chat-commands.ts +7 -2
- package/src/commands/cli-manager.ts +9 -5
- package/src/commands/handler.ts +1 -9
- package/src/commands/stream-commands.ts +26 -36
- package/src/daemon/dev-server.ts +4 -18
- package/src/index.d.ts +3 -0
- package/src/index.ts +12 -1
- package/src/providers/acp-provider-instance.ts +156 -14
- package/src/providers/cli-provider-instance.ts +54 -5
- package/src/providers/cli-script-results.ts +39 -0
- package/src/providers/contracts.ts +72 -19
- package/src/providers/control-effects.ts +86 -1
- package/src/providers/io-contracts.ts +340 -0
- package/src/providers/provider-loader.ts +18 -13
- package/src/providers/provider-schema.ts +154 -0
- package/src/session-host/runtime-surface.ts +80 -0
- package/src/session-host/startup-restore-policy.d.ts +1 -0
- package/src/session-host/startup-restore-policy.js +7 -0
- package/src/session-host/startup-restore-policy.ts +7 -0
- package/src/shared-types.ts +6 -0
- package/src/status/builders.ts +5 -81
- package/src/types.ts +3 -3
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { ProviderInstanceManager } from '../providers/provider-instance-manager.js';
|
|
8
8
|
import { ProviderLoader } from '../providers/provider-loader.js';
|
|
9
|
-
import type
|
|
9
|
+
import { type ProviderModule, type ProviderResumeCapability } from '../providers/contracts.js';
|
|
10
10
|
import type { CliAdapter } from '../cli-adapter-types.js';
|
|
11
11
|
import type { PtyTransportFactory } from '../cli-adapters/pty-transport.js';
|
|
12
12
|
import type { SessionRegistry } from '../sessions/registry.js';
|
|
@@ -52,7 +52,14 @@ export interface HostedCliRuntimeDescriptor {
|
|
|
52
52
|
providerSessionId?: string;
|
|
53
53
|
managedBy?: string;
|
|
54
54
|
}
|
|
55
|
+
type CliLaunchMode = 'new' | 'resume' | 'manual';
|
|
56
|
+
type CliSessionBinding = {
|
|
57
|
+
cliArgs?: string[];
|
|
58
|
+
providerSessionId?: string;
|
|
59
|
+
launchMode: CliLaunchMode;
|
|
60
|
+
};
|
|
55
61
|
export declare function supportsExplicitSessionResume(resume?: ProviderResumeCapability): boolean;
|
|
62
|
+
export declare function resolveCliSessionBinding(provider: ProviderModule | undefined, normalizedType: string, cliArgs?: string[], requestedResumeSessionId?: string): CliSessionBinding;
|
|
56
63
|
export declare class DaemonCliManager {
|
|
57
64
|
readonly adapters: Map<string, CliAdapter>;
|
|
58
65
|
private deps;
|
package/dist/index.d.ts
CHANGED
|
@@ -69,7 +69,8 @@ export { ProviderInstanceManager } from './providers/provider-instance-manager.j
|
|
|
69
69
|
export { IdeProviderInstance } from './providers/ide-provider-instance.js';
|
|
70
70
|
export { CliProviderInstance } from './providers/cli-provider-instance.js';
|
|
71
71
|
export { AcpProviderInstance } from './providers/acp-provider-instance.js';
|
|
72
|
-
export type { ProviderModule, CdpTargetFilter, ProviderResumeCapability } from './providers/contracts.js';
|
|
72
|
+
export type { ProviderModule, CdpTargetFilter, ProviderResumeCapability, InputEnvelope, InputPart, MessagePart, ControlListResult, ControlSetResult, ControlInvokeResult } from './providers/contracts.js';
|
|
73
|
+
export { normalizeInputEnvelope, normalizeMessageParts, flattenMessageParts } from './providers/io-contracts.js';
|
|
73
74
|
export { VersionArchive, detectAllVersions } from './providers/version-archive.js';
|
|
74
75
|
export type { ProviderVersionInfo, VersionHistory } from './providers/version-archive.js';
|
|
75
76
|
export { DevServer } from './daemon/dev-server.js';
|
|
@@ -81,6 +82,9 @@ export { SessionHostPtyTransportFactory } from './cli-adapters/session-host-tran
|
|
|
81
82
|
export type { HostedCliRuntimeDescriptor, CliTransportFactoryParams } from './commands/cli-manager.js';
|
|
82
83
|
export { DEFAULT_SESSION_HOST_APP_NAME, DEFAULT_STANDALONE_SESSION_HOST_APP_NAME, resolveSessionHostAppName, } from './session-host/app-name.js';
|
|
83
84
|
export { ensureSessionHostReady, listHostedCliRuntimes } from './session-host/runtime-support.js';
|
|
85
|
+
export { getSessionHostRecoveryLabel, getSessionHostSurfaceKind, isSessionHostLiveRuntime, isSessionHostRecoverySnapshot, partitionSessionHostDiagnosticsSessions, partitionSessionHostRecords, } from './session-host/runtime-surface.js';
|
|
86
|
+
export type { SessionHostSurfaceKind, SessionHostSurfaceRecordLike } from './session-host/runtime-surface.js';
|
|
87
|
+
export { shouldAutoRestoreHostedSessionsOnStartup } from './session-host/startup-restore-policy.js';
|
|
84
88
|
export type { SessionHostEndpoint } from '@adhdev/session-host-core';
|
|
85
89
|
export { getAIExtensions, installExtensions, launchIDE, isExtensionInstalled } from './installer.js';
|
|
86
90
|
export type { ExtensionInfo as InstallerExtensionInfo } from './installer.js';
|