@adhdev/daemon-core 0.8.35 → 0.8.37
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/boot/daemon-lifecycle.d.ts +4 -0
- package/dist/commands/router.d.ts +3 -0
- package/dist/config/config.d.ts +5 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +458 -154
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +457 -154
- package/dist/index.mjs.map +1 -1
- package/dist/shared-types.d.ts +248 -16
- package/dist/status/builders.d.ts +5 -1
- package/dist/status/normalize.d.ts +11 -1
- package/dist/status/normalize.js +36 -16
- package/dist/status/normalize.js.map +1 -1
- package/dist/status/normalize.mjs +35 -16
- package/dist/status/normalize.mjs.map +1 -1
- package/dist/status/reporter.d.ts +4 -0
- package/dist/status/snapshot.d.ts +5 -5
- package/dist/types.d.ts +1 -1
- package/node_modules/@adhdev/session-host-core/package.json +1 -1
- package/package.json +1 -1
- package/src/boot/daemon-lifecycle.ts +7 -0
- package/src/commands/chat-commands.ts +192 -17
- package/src/commands/router.ts +25 -0
- package/src/commands/stream-commands.ts +14 -10
- package/src/config/config.ts +8 -0
- package/src/index.d.ts +2 -2
- package/src/index.ts +32 -1
- package/src/shared-types.d.ts +125 -16
- package/src/shared-types.ts +279 -16
- package/src/status/builders.ts +110 -54
- package/src/status/normalize.ts +54 -19
- package/src/status/reporter.ts +88 -13
- package/src/status/snapshot.ts +79 -41
- package/src/types.ts +1 -1
|
@@ -47,6 +47,10 @@ export interface DaemonInitConfig {
|
|
|
47
47
|
tickIntervalMs?: number;
|
|
48
48
|
/** CDP scan interval (ms), default 30000 */
|
|
49
49
|
cdpScanIntervalMs?: number;
|
|
50
|
+
/** Canonical status identity used by on-demand snapshot commands */
|
|
51
|
+
statusInstanceId?: string;
|
|
52
|
+
statusVersion?: string;
|
|
53
|
+
statusDaemonMode?: boolean;
|
|
50
54
|
}
|
|
51
55
|
export interface DaemonComponents {
|
|
52
56
|
providerLoader: ProviderLoader;
|
|
@@ -64,6 +64,9 @@ export interface CommandRouterDeps {
|
|
|
64
64
|
getCdpLogFn?: (ideType: string) => (msg: string) => void;
|
|
65
65
|
/** Package name for upgrade detection ('adhdev' or '@adhdev/daemon-standalone') */
|
|
66
66
|
packageName?: string;
|
|
67
|
+
/** Canonical daemon status identity used by snapshot commands */
|
|
68
|
+
statusInstanceId?: string;
|
|
69
|
+
statusVersion?: string;
|
|
67
70
|
/** Session host control plane */
|
|
68
71
|
sessionHostControl?: SessionHostControlPlane | null;
|
|
69
72
|
}
|
package/dist/config/config.d.ts
CHANGED
|
@@ -10,6 +10,11 @@ export type { SavedProviderSessionEntry } from './saved-sessions.js';
|
|
|
10
10
|
export type { DaemonState } from './state-store.js';
|
|
11
11
|
export interface ADHDevConfig {
|
|
12
12
|
serverUrl: string;
|
|
13
|
+
/**
|
|
14
|
+
* Allow server-relayed REST/API commands to reach the daemon.
|
|
15
|
+
* Disabled by default so cloud dashboard traffic stays P2P-only.
|
|
16
|
+
*/
|
|
17
|
+
allowServerApiProxy?: boolean;
|
|
13
18
|
selectedIde: string | null;
|
|
14
19
|
configuredIdes: string[];
|
|
15
20
|
installedExtensions: string[];
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Core logic for daemon: CDP, Provider, IDE detection, CLI/ACP adapters and more.
|
|
5
5
|
*/
|
|
6
6
|
export type { ChatMessage, ExtensionInfo, CommandResult as CoreCommandResult, ProviderConfig, DaemonEvent, StatusResponse, SystemInfo, DetectedIde, ProviderInfo, AgentEntry, } from './types.js';
|
|
7
|
-
export type { SessionEntry, CompactSessionEntry, CompactDaemonEntry, SessionTransport, SessionKind, SessionCapability, AgentSessionStream, AvailableProviderInfo, AcpConfigOption, AcpMode, ProviderControlSchema, StatusReportPayload, MachineInfo, DetectedIdeInfo, WorkspaceEntry, ProviderStatus, ProviderErrorReason, ActiveChatData, IdeProviderState, CliProviderState, AcpProviderState, ExtensionProviderState, } from './shared-types.js';
|
|
7
|
+
export type { SessionEntry, CompactSessionEntry, CompactDaemonEntry, CloudDaemonSummaryEntry, DashboardBootstrapDaemonEntry, CloudStatusReportPayload, DaemonStatusEventPayload, DashboardStatusEventPayload, SessionTransport, SessionKind, SessionCapability, AgentSessionStream, ReadChatCursor, ReadChatSyncMode, ReadChatSyncResult, TransportTopic, SessionChatTailSubscriptionParams, MachineRuntimeSubscriptionParams, SessionHostDiagnosticsSubscriptionParams, SessionModalSubscriptionParams, DaemonMetadataSubscriptionParams, SessionChatTailUpdate, MachineRuntimeUpdate, SessionHostDiagnosticsUpdate, SessionModalUpdate, DaemonMetadataUpdate, TopicUpdateEnvelope, SubscribeRequest, UnsubscribeRequest, StandaloneWsStatusPayload, AvailableProviderInfo, AcpConfigOption, AcpMode, ProviderControlSchema, StatusReportPayload, MachineInfo, SessionHostDiagnosticsSnapshot, SessionHostRecord, SessionHostWriteOwner, SessionHostAttachedClient, SessionHostLogEntry, SessionHostRequestTrace, SessionHostRuntimeTransition, DetectedIdeInfo, WorkspaceEntry, ProviderState, ProviderStatus, ProviderErrorReason, ActiveChatData, IdeProviderState, CliProviderState, AcpProviderState, ExtensionProviderState, } from './shared-types.js';
|
|
8
8
|
import type { RuntimeWriteOwner as _RuntimeWriteOwner } from './shared-types-extra.js';
|
|
9
9
|
import type { RuntimeAttachedClient as _RuntimeAttachedClient } from './shared-types-extra.js';
|
|
10
10
|
import type { RecentLaunchEntry as _RecentLaunchEntry } from './shared-types.js';
|
|
@@ -45,7 +45,7 @@ export { maybeRunDaemonUpgradeHelperFromEnv, spawnDetachedDaemonUpgradeHelper }
|
|
|
45
45
|
export type { DaemonUpgradeHelperPayload } from './commands/upgrade-helper.js';
|
|
46
46
|
export { DaemonStatusReporter } from './status/reporter.js';
|
|
47
47
|
export { buildSessionEntries, findCdpManager, hasCdpManager, isCdpConnected } from './status/builders.js';
|
|
48
|
-
export { buildStatusSnapshot } from './status/snapshot.js';
|
|
48
|
+
export { buildStatusSnapshot, buildMachineInfo } from './status/snapshot.js';
|
|
49
49
|
export { normalizeManagedStatus, isManagedStatusWorking, isManagedStatusWaiting, normalizeActiveChatData } from './status/normalize.js';
|
|
50
50
|
export type { ManagedStatus } from './status/normalize.js';
|
|
51
51
|
export type { StatusSnapshotOptions, StatusSnapshot } from './status/snapshot.js';
|