@adhdev/daemon-core 0.6.77 → 0.7.0
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/index.d.mts +2342 -0
- package/dist/index.d.ts +86 -932
- package/dist/index.js +879 -664
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14702 -0
- package/dist/index.mjs.map +1 -0
- package/dist/normalize-S2PmiRgB.d.mts +843 -0
- package/dist/normalize-S2PmiRgB.d.ts +843 -0
- package/dist/status/normalize.d.mts +1 -0
- package/dist/status/normalize.d.ts +1 -0
- package/dist/status/normalize.js +73 -0
- package/dist/status/normalize.js.map +1 -0
- package/dist/status/normalize.mjs +45 -0
- package/dist/status/normalize.mjs.map +1 -0
- package/package.json +8 -1
- package/src/agent-stream/manager.ts +213 -150
- package/src/agent-stream/poller.ts +57 -45
- package/src/boot/daemon-lifecycle.ts +30 -12
- package/src/cdp/initializer.ts +47 -0
- package/src/cdp/manager.ts +45 -4
- package/src/cdp/setup.ts +26 -11
- package/src/commands/chat-commands.ts +136 -88
- package/src/commands/cli-manager.ts +31 -6
- package/src/commands/handler.ts +71 -109
- package/src/commands/router.ts +4 -20
- package/src/commands/stream-commands.ts +34 -156
- package/src/daemon-core.ts +3 -9
- package/src/index.ts +8 -5
- package/src/logging/command-log.ts +1 -1
- package/src/providers/acp-provider-instance.ts +4 -0
- package/src/providers/provider-instance-manager.ts +1 -0
- package/src/sessions/registry.ts +76 -0
- package/src/shared-types.ts +45 -54
- package/src/status/builders.ts +157 -120
- package/src/status/normalize.ts +64 -0
- package/src/status/reporter.ts +16 -15
- package/src/status/snapshot.ts +3 -11
package/src/status/snapshot.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { loadConfig } from '../config/config.js';
|
|
|
11
11
|
import { getWorkspaceState } from '../config/workspaces.js';
|
|
12
12
|
import { getWorkspaceActivity } from '../config/workspace-activity.js';
|
|
13
13
|
import { getHostMemorySnapshot } from '../system/host-memory.js';
|
|
14
|
-
import {
|
|
14
|
+
import { buildSessionEntries, isCdpConnected } from './builders.js';
|
|
15
15
|
import type { ProviderState } from '../providers/provider-instance.js';
|
|
16
16
|
import type {
|
|
17
17
|
AvailableProviderInfo,
|
|
@@ -80,15 +80,9 @@ export function buildStatusSnapshot(options: StatusSnapshotOptions): StatusSnaps
|
|
|
80
80
|
const cfg = loadConfig();
|
|
81
81
|
const wsState = getWorkspaceState(cfg);
|
|
82
82
|
const memSnap = getHostMemorySnapshot();
|
|
83
|
-
const
|
|
83
|
+
const sessions = buildSessionEntries(
|
|
84
84
|
options.allStates,
|
|
85
85
|
options.cdpManagers as Map<string, any>,
|
|
86
|
-
{
|
|
87
|
-
detectedIdes: options.detectedIdes.map((ide) => ({
|
|
88
|
-
id: ide.id,
|
|
89
|
-
installed: ide.installed !== false,
|
|
90
|
-
})),
|
|
91
|
-
},
|
|
92
86
|
);
|
|
93
87
|
|
|
94
88
|
return {
|
|
@@ -111,9 +105,7 @@ export function buildStatusSnapshot(options: StatusSnapshotOptions): StatusSnaps
|
|
|
111
105
|
timestamp: options.timestamp ?? Date.now(),
|
|
112
106
|
detectedIdes: buildDetectedIdeInfos(options.detectedIdes, options.cdpManagers),
|
|
113
107
|
...(options.p2p ? { p2p: options.p2p } : {}),
|
|
114
|
-
|
|
115
|
-
managedClis,
|
|
116
|
-
managedAcps,
|
|
108
|
+
sessions,
|
|
117
109
|
workspaces: wsState.workspaces,
|
|
118
110
|
defaultWorkspaceId: wsState.defaultWorkspaceId,
|
|
119
111
|
defaultWorkspacePath: wsState.defaultWorkspacePath,
|