@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.
@@ -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';