@adhdev/daemon-core 0.9.82-rc.187 → 0.9.82-rc.188
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 +1 -0
- package/dist/commands/cli-manager.d.ts +2 -1
- package/dist/commands/router.d.ts +5 -1
- package/dist/git/git-commands.d.ts +2 -0
- package/dist/git/git-types.d.ts +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +401 -33
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +400 -33
- package/dist/index.mjs.map +1 -1
- package/dist/providers/cli-provider-instance.d.ts +4 -0
- package/dist/providers/contracts.d.ts +31 -0
- package/dist/providers/sdk/v1/types/common/index.d.ts +35 -1
- package/dist/providers/spec/driver.d.ts +6 -1
- package/dist/providers/spec/schema.gen.d.ts +22 -0
- package/dist/providers/spec/types.d.ts +10 -0
- package/dist/repo-mesh-types.d.ts +6 -0
- package/package.json +1 -1
- package/src/boot/daemon-lifecycle.ts +2 -0
- package/src/commands/chat-commands.ts +26 -0
- package/src/commands/cli-manager.ts +52 -14
- package/src/commands/router.ts +35 -4
- package/src/git/git-commands.ts +20 -2
- package/src/git/git-status.ts +35 -6
- package/src/git/git-types.ts +2 -0
- package/src/index.ts +1 -1
- package/src/providers/cli-provider-instance.ts +110 -9
- package/src/providers/contracts.d.ts +55 -0
- package/src/providers/contracts.ts +35 -0
- package/src/providers/provider-schema.ts +56 -1
- package/src/providers/sdk/v1/schemas/cli/provider.schema.json +46 -0
- package/src/providers/sdk/v1/types/common/index.ts +19 -0
- package/src/providers/spec/driver.ts +68 -1
- package/src/providers/spec/schema.gen.ts +12 -1
- package/src/providers/spec/schema.json +21 -1
- package/src/providers/spec/types.ts +10 -0
- package/src/repo-mesh-types.ts +6 -0
|
@@ -37,6 +37,7 @@ export interface DaemonInitConfig {
|
|
|
37
37
|
enabledIdes?: string[];
|
|
38
38
|
/** Router transport-specific callbacks */
|
|
39
39
|
onStatusChange?: () => void;
|
|
40
|
+
onMeshStateChange?: (meshId: string) => void;
|
|
40
41
|
onPostChatCommand?: () => void;
|
|
41
42
|
sessionHostControl?: SessionHostControlPlane | null;
|
|
42
43
|
getCdpLogFn?: (ideType: string) => (msg: string) => void;
|
|
@@ -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 ProviderModule, type ProviderResumeCapability } from '../providers/contracts.js';
|
|
9
|
+
import { type MeshCoordinatorDelegatedWorkerIsolation, 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';
|
|
@@ -68,6 +68,7 @@ export interface CoordinatorDelegatedCliLaunchOptionsInput {
|
|
|
68
68
|
workspace: string;
|
|
69
69
|
cliArgs?: string[];
|
|
70
70
|
env?: Record<string, string>;
|
|
71
|
+
isolation?: MeshCoordinatorDelegatedWorkerIsolation;
|
|
71
72
|
}
|
|
72
73
|
export interface CoordinatorDelegatedCliLaunchOptions {
|
|
73
74
|
cliArgs: string[];
|
|
@@ -14,6 +14,7 @@ import { DaemonCliManager } from './cli-manager.js';
|
|
|
14
14
|
import type { ProviderLoader } from '../providers/provider-loader.js';
|
|
15
15
|
import type { ProviderInstanceManager } from '../providers/provider-instance-manager.js';
|
|
16
16
|
import { SessionRegistry } from '../sessions/registry.js';
|
|
17
|
+
export declare function readCachedInlineMeshActiveSessionDetails(node: any): Array<Record<string, unknown>>;
|
|
17
18
|
export interface SessionHostControlPlane {
|
|
18
19
|
getDiagnostics(payload?: {
|
|
19
20
|
includeSessions?: boolean;
|
|
@@ -55,12 +56,14 @@ export interface CommandRouterDeps {
|
|
|
55
56
|
value: any[];
|
|
56
57
|
};
|
|
57
58
|
sessionRegistry: SessionRegistry;
|
|
58
|
-
/** Callback
|
|
59
|
+
/** Callback after CDP manager created (transport-specific extras) */
|
|
59
60
|
onCdpManagerCreated?: (ideType: string, manager: DaemonCdpManager) => void;
|
|
60
61
|
/** Callback after IDE connected (e.g., startAgentStreamPolling) */
|
|
61
62
|
onIdeConnected?: () => void;
|
|
62
63
|
/** Callback after status change (stop_ide, restart) */
|
|
63
64
|
onStatusChange?: () => void;
|
|
65
|
+
/** Callback when a mesh state is invalidated */
|
|
66
|
+
onMeshStateChange?: (meshId: string) => void;
|
|
64
67
|
/** Callback after chat-related commands */
|
|
65
68
|
onPostChatCommand?: () => void;
|
|
66
69
|
/** Get a connected CDP manager (for agent stream reset check) */
|
|
@@ -98,6 +101,7 @@ export declare class DaemonCommandRouter {
|
|
|
98
101
|
private hydrateCachedAggregateMeshStatusFromInline;
|
|
99
102
|
private getCachedAggregateMeshStatus;
|
|
100
103
|
private rememberAggregateMeshStatus;
|
|
104
|
+
getCachedInlineMeshNodes(): any[];
|
|
101
105
|
getCachedInlineMesh(meshId: string, inlineMesh?: unknown): any | undefined;
|
|
102
106
|
private warmInlineMeshCache;
|
|
103
107
|
private getMeshForCommand;
|
|
@@ -47,6 +47,8 @@ export interface GitCommandServices {
|
|
|
47
47
|
getStatus?: (params: {
|
|
48
48
|
workspace: string;
|
|
49
49
|
refreshUpstream?: boolean;
|
|
50
|
+
includeSubmodules?: boolean;
|
|
51
|
+
submoduleIgnorePaths?: string[];
|
|
50
52
|
}) => Promise<GitRepoStatus> | GitRepoStatus;
|
|
51
53
|
getDiffSummary?: (params: {
|
|
52
54
|
workspace: string;
|
package/dist/git/git-types.d.ts
CHANGED
|
@@ -46,6 +46,8 @@ export interface GitRepoStatus extends GitRepoIdentity {
|
|
|
46
46
|
untracked: number;
|
|
47
47
|
deleted: number;
|
|
48
48
|
renamed: number;
|
|
49
|
+
/** Aggregate dirty flag including root worktree changes, conflicts, stash, and submodule drift. */
|
|
50
|
+
dirty: boolean;
|
|
49
51
|
hasConflicts: boolean;
|
|
50
52
|
conflictFiles: string[];
|
|
51
53
|
stashCount: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -72,7 +72,7 @@ export { DaemonCdpInitializer } from './cdp/initializer.js';
|
|
|
72
72
|
export type { CdpInitializerConfig } from './cdp/initializer.js';
|
|
73
73
|
export { DaemonCommandHandler } from './commands/handler.js';
|
|
74
74
|
export type { CommandResult, CommandContext } from './commands/handler.js';
|
|
75
|
-
export { DaemonCommandRouter } from './commands/router.js';
|
|
75
|
+
export { DaemonCommandRouter, readCachedInlineMeshActiveSessionDetails } from './commands/router.js';
|
|
76
76
|
export type { CommandRouterDeps, CommandRouterResult } from './commands/router.js';
|
|
77
77
|
export { maybeRunDaemonUpgradeHelperFromEnv, spawnDetachedDaemonUpgradeHelper, resolveCurrentGlobalInstallSurface, buildPinnedGlobalInstallCommand, execNpmCommandSync, getNpmExecOptions, } from './commands/upgrade-helper.js';
|
|
78
78
|
export type { DaemonUpgradeHelperPayload, CurrentGlobalInstallSurface, PinnedGlobalInstallCommand, NpmExecOptions, } from './commands/upgrade-helper.js';
|