@adhdev/daemon-core 0.9.82-rc.485 → 0.9.82-rc.487
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/git/git-status.d.ts +23 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +343 -55
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +342 -55
- package/dist/index.mjs.map +1 -1
- package/dist/mesh/mesh-queue-assignment.d.ts +4 -0
- package/dist/mesh/mesh-refine-gates.d.ts +29 -0
- package/dist/mesh/mesh-work-queue.d.ts +9 -0
- package/dist/repo-mesh-types.d.ts +18 -2
- package/dist/shared-types.d.ts +8 -0
- package/dist/status/snapshot.d.ts +1 -0
- package/package.json +3 -3
- package/src/commands/handler.ts +21 -1
- package/src/commands/high-family/mesh-coordinator-launch.ts +17 -1
- package/src/commands/high-family/mesh-status.ts +8 -0
- package/src/commands/med-family/cli-agent.ts +29 -0
- package/src/commands/router-refine.ts +27 -2
- package/src/git/git-status.ts +84 -29
- package/src/index.ts +1 -1
- package/src/mesh/coordinator-prompt.ts +4 -1
- package/src/mesh/mesh-queue-assignment.ts +164 -27
- package/src/mesh/mesh-refine-gates.ts +113 -7
- package/src/mesh/mesh-work-queue.ts +14 -0
- package/src/repo-mesh-types.ts +28 -3
- package/src/shared-types.ts +8 -0
- package/src/status/builders.ts +45 -2
- package/src/status/snapshot.ts +1 -1
package/dist/git/git-status.d.ts
CHANGED
|
@@ -67,6 +67,29 @@ export interface GitStatusOptions {
|
|
|
67
67
|
*/
|
|
68
68
|
export declare const GIT_FETCH_THROTTLE_MS = 30000;
|
|
69
69
|
export declare function getGitRepoStatus(workspace: string, options?: GitStatusOptions): Promise<GitRepoStatus>;
|
|
70
|
+
/** Coarse change-impact verdict produced from a changed-file list. */
|
|
71
|
+
export interface ChangedPackageClassification {
|
|
72
|
+
isDaemonAffecting: boolean;
|
|
73
|
+
affectedPackages: string[];
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Ref-parameterized change-impact classification for a repo/worktree, reusing the
|
|
77
|
+
* exact daemon-vs-web bucketing that the stale-build detector uses — but over an
|
|
78
|
+
* arbitrary `fromRef..toRef` range (e.g. a refine base head → branch head) instead
|
|
79
|
+
* of the live daemon's build commit → HEAD, and WITHOUT any daemonBuildInfo caching.
|
|
80
|
+
*
|
|
81
|
+
* Policy is resolved the same way as getGitRepoStatus: an explicit
|
|
82
|
+
* `options.changeImpactConfig` wins; otherwise the repo's `.adhdev/change-impact.*`
|
|
83
|
+
* is auto-loaded; otherwise the built-in ADHDev default policy applies. The
|
|
84
|
+
* classification uses `git diff --name-only fromRef..toRef`.
|
|
85
|
+
*
|
|
86
|
+
* FAIL-OPEN on error: if the diff can't be collected (bad ref, not a repo), the
|
|
87
|
+
* caller should treat "no verdict" as "run everything" — so we throw rather than
|
|
88
|
+
* returning a misleading benign verdict. Callers wrap this in try/catch and leave
|
|
89
|
+
* changeImpact undefined on failure. Unclassified/new packages still default to
|
|
90
|
+
* isDaemonAffecting:true (never silently skipped).
|
|
91
|
+
*/
|
|
92
|
+
export declare function classifyChangedPackages(repoPath: string, fromRef: string, toRef: string, options?: GitStatusOptions): Promise<ChangedPackageClassification>;
|
|
70
93
|
interface ParsedPorcelainStatus {
|
|
71
94
|
branch: string | null;
|
|
72
95
|
/** Full HEAD object id from `# branch.oid`, or null when detached/unborn. */
|
package/dist/index.d.ts
CHANGED
|
@@ -102,7 +102,7 @@ export { maybeRunDaemonUpgradeHelperFromEnv, spawnDetachedDaemonUpgradeHelper, r
|
|
|
102
102
|
export type { DaemonUpgradeHelperPayload, CurrentGlobalInstallSurface, PinnedGlobalInstallCommand, NpmExecOptions, } from './commands/upgrade-helper.js';
|
|
103
103
|
export { DaemonStatusReporter } from './status/reporter.js';
|
|
104
104
|
export { buildSessionEntries, findCdpManager, hasCdpManager, isCdpConnected } from './status/builders.js';
|
|
105
|
-
export { buildStatusSnapshot, buildMachineInfo, getLastDisplayMessage } from './status/snapshot.js';
|
|
105
|
+
export { buildStatusSnapshot, buildMachineInfo, buildAvailableProviders, getLastDisplayMessage } from './status/snapshot.js';
|
|
106
106
|
export { getDaemonBuildInfo } from './build-info.js';
|
|
107
107
|
export type { DaemonBuildInfo } from './build-info.js';
|
|
108
108
|
export { normalizeManagedStatus, isManagedStatusWorking, isManagedStatusWaiting, normalizeActiveChatData } from './status/normalize.js';
|