@adhdev/daemon-core 0.9.82-rc.337 → 0.9.82-rc.339
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.ts +1 -1
- package/dist/index.js +19 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -7
- package/dist/index.mjs.map +1 -1
- package/dist/providers/contracts.d.ts +9 -0
- package/dist/shared-types.d.ts +7 -0
- package/dist/status/snapshot.d.ts +25 -0
- package/package.json +2 -2
- package/src/index.ts +1 -1
- package/src/providers/cli-provider-instance.ts +8 -1
- package/src/providers/contracts.ts +9 -0
- package/src/providers/provider-loader.ts +8 -0
- package/src/shared-types.ts +7 -0
- package/src/status/snapshot.ts +11 -1
package/dist/index.d.ts
CHANGED
|
@@ -87,7 +87,7 @@ export { maybeRunDaemonUpgradeHelperFromEnv, spawnDetachedDaemonUpgradeHelper, r
|
|
|
87
87
|
export type { DaemonUpgradeHelperPayload, CurrentGlobalInstallSurface, PinnedGlobalInstallCommand, NpmExecOptions, } from './commands/upgrade-helper.js';
|
|
88
88
|
export { DaemonStatusReporter } from './status/reporter.js';
|
|
89
89
|
export { buildSessionEntries, findCdpManager, hasCdpManager, isCdpConnected } from './status/builders.js';
|
|
90
|
-
export { buildStatusSnapshot, buildMachineInfo } from './status/snapshot.js';
|
|
90
|
+
export { buildStatusSnapshot, buildMachineInfo, getLastDisplayMessage } from './status/snapshot.js';
|
|
91
91
|
export { getDaemonBuildInfo } from './build-info.js';
|
|
92
92
|
export type { DaemonBuildInfo } from './build-info.js';
|
|
93
93
|
export { normalizeManagedStatus, isManagedStatusWorking, isManagedStatusWaiting, normalizeActiveChatData } from './status/normalize.js';
|
package/dist/index.js
CHANGED
|
@@ -316,10 +316,10 @@ function readInjected(value) {
|
|
|
316
316
|
}
|
|
317
317
|
function getDaemonBuildInfo() {
|
|
318
318
|
if (cached) return cached;
|
|
319
|
-
const commit = readInjected(true ? "
|
|
320
|
-
const commitShort = readInjected(true ? "
|
|
321
|
-
const version = readInjected(true ? "0.9.82-rc.
|
|
322
|
-
const builtAt = readInjected(true ? "2026-06-
|
|
319
|
+
const commit = readInjected(true ? "042075899bbd2feb9c22f9ccd01990408323443d" : void 0) ?? "unknown";
|
|
320
|
+
const commitShort = readInjected(true ? "04207589" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
321
|
+
const version = readInjected(true ? "0.9.82-rc.339" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
322
|
+
const builtAt = readInjected(true ? "2026-06-20T12:40:45.079Z" : void 0);
|
|
323
323
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
324
324
|
return cached;
|
|
325
325
|
}
|
|
@@ -17900,6 +17900,7 @@ __export(index_exports, {
|
|
|
17900
17900
|
getGitFileDiff: () => getGitFileDiff,
|
|
17901
17901
|
getGitRepoStatus: () => getGitRepoStatus,
|
|
17902
17902
|
getHostMemorySnapshot: () => getHostMemorySnapshot,
|
|
17903
|
+
getLastDisplayMessage: () => getLastDisplayMessage,
|
|
17903
17904
|
getLedgerDir: () => getLedgerDir,
|
|
17904
17905
|
getLedgerSummary: () => getLedgerSummary,
|
|
17905
17906
|
getLogLevel: () => getLogLevel,
|
|
@@ -35455,7 +35456,14 @@ var CliProviderInstance = class _CliProviderInstance {
|
|
|
35455
35456
|
chatTitle: pending.chatTitle,
|
|
35456
35457
|
duration: pending.duration,
|
|
35457
35458
|
timestamp: pending.timestamp,
|
|
35458
|
-
|
|
35459
|
+
// When finalization is forced past the timeout on a `parsed_status:` block
|
|
35460
|
+
// (the parser never confirmed a final assistant turn) we previously rode an
|
|
35461
|
+
// empty `finalSummary` unconditionally. That empty value propagates to the
|
|
35462
|
+
// mesh coordinator's mirror preview (meshSessionLastMessagePreview), leaving a
|
|
35463
|
+
// delegated session's inbox preview blank — or, for a LOCAL worktree session,
|
|
35464
|
+
// stuck on the dispatched user task. If the parser DID surface assistant text,
|
|
35465
|
+
// prefer it; only fall back to '' when no assistant summary can be derived.
|
|
35466
|
+
finalSummary: blockReason.startsWith("parsed_status:") ? this.completionFinalSummary(this.adapter?.getScriptParsedStatus()?.messages) ?? "" : this.completionFinalSummary(this.adapter?.getScriptParsedStatus()?.messages),
|
|
35459
35467
|
completionDiagnostic
|
|
35460
35468
|
});
|
|
35461
35469
|
this.completedDebouncePending = null;
|
|
@@ -40034,6 +40042,7 @@ function synthesizeControlsFromControlBar(specControls) {
|
|
|
40034
40042
|
const actionType = ctl?.action?.type;
|
|
40035
40043
|
if (!id || !actionType) return;
|
|
40036
40044
|
const label = typeof ctl?.label === "string" && ctl.label.trim() ? ctl.label : id;
|
|
40045
|
+
const visibleWhenState = Array.isArray(ctl?.visible_when_state) ? ctl.visible_when_state.filter((s) => typeof s === "string") : void 0;
|
|
40037
40046
|
if (actionType === "open_picker") {
|
|
40038
40047
|
out.push({
|
|
40039
40048
|
id,
|
|
@@ -40044,7 +40053,8 @@ function synthesizeControlsFromControlBar(specControls) {
|
|
|
40044
40053
|
listScript: id,
|
|
40045
40054
|
setScript: id,
|
|
40046
40055
|
readFrom: id,
|
|
40047
|
-
order: index
|
|
40056
|
+
order: index,
|
|
40057
|
+
...visibleWhenState && visibleWhenState.length > 0 ? { visibleWhenState } : {}
|
|
40048
40058
|
});
|
|
40049
40059
|
} else if (actionType === "send_keys") {
|
|
40050
40060
|
out.push({
|
|
@@ -40054,7 +40064,8 @@ function synthesizeControlsFromControlBar(specControls) {
|
|
|
40054
40064
|
placement: "bar",
|
|
40055
40065
|
invokeScript: id,
|
|
40056
40066
|
resultDisplay: "none",
|
|
40057
|
-
order: index
|
|
40067
|
+
order: index,
|
|
40068
|
+
...visibleWhenState && visibleWhenState.length > 0 ? { visibleWhenState } : {}
|
|
40058
40069
|
});
|
|
40059
40070
|
}
|
|
40060
40071
|
});
|
|
@@ -59916,6 +59927,7 @@ var V1_CONTRACT_VERSION = "1.0.0";
|
|
|
59916
59927
|
getGitFileDiff,
|
|
59917
59928
|
getGitRepoStatus,
|
|
59918
59929
|
getHostMemorySnapshot,
|
|
59930
|
+
getLastDisplayMessage,
|
|
59919
59931
|
getLedgerDir,
|
|
59920
59932
|
getLedgerSummary,
|
|
59921
59933
|
getLogLevel,
|