@adhdev/daemon-standalone 0.9.82-rc.124 → 0.9.82-rc.126
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.js +40 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/public/assets/index-BPgFikoY.css +1 -0
- package/public/assets/index-Clz6amfD.js +100 -0
- package/public/index.html +2 -2
- package/vendor/session-host-daemon/index.js +6 -1
- package/vendor/session-host-daemon/index.js.map +1 -1
- package/vendor/session-host-daemon/index.mjs +6 -1
- package/vendor/session-host-daemon/index.mjs.map +1 -1
package/dist/index.js
CHANGED
|
@@ -32363,6 +32363,7 @@ ${lastSnapshot}`;
|
|
|
32363
32363
|
const live = sessionStatusFromNodes(opts.nodes, dispatch.nodeId, dispatch.sessionId);
|
|
32364
32364
|
const status = terminalStatus || live.status || "assigned";
|
|
32365
32365
|
const terminalRow = Boolean(terminal && terminal.kind !== "task_approval_needed");
|
|
32366
|
+
const ledgerOnlyStaleReason = !terminalRow && (status === "idle" || !terminalStatus && !live.status) ? "direct task dispatch has no provider acknowledgement, transcript append, or active runtime transition" : void 0;
|
|
32366
32367
|
const message = readString2(dispatch.payload?.message) || readString2(dispatch.payload?.summary) || "";
|
|
32367
32368
|
const { title, summary: summary2 } = summarizeMessage(message);
|
|
32368
32369
|
const record2 = {
|
|
@@ -32383,13 +32384,13 @@ ${lastSnapshot}`;
|
|
|
32383
32384
|
terminal: terminalRow,
|
|
32384
32385
|
terminalKind: terminal?.kind,
|
|
32385
32386
|
terminalAt: terminal?.timestamp,
|
|
32386
|
-
staleReason: live.staleReason
|
|
32387
|
+
staleReason: live.staleReason || ledgerOnlyStaleReason
|
|
32387
32388
|
};
|
|
32388
32389
|
if (terminalRow) {
|
|
32389
32390
|
terminalDirectWork.push(record2);
|
|
32390
32391
|
if (opts.includeTerminalDirect !== true) continue;
|
|
32391
32392
|
}
|
|
32392
|
-
if (live.staleReason && !terminalRow) {
|
|
32393
|
+
if ((live.staleReason || ledgerOnlyStaleReason) && !terminalRow) {
|
|
32393
32394
|
staleDirectWork.push(record2);
|
|
32394
32395
|
continue;
|
|
32395
32396
|
}
|
|
@@ -39102,12 +39103,17 @@ ${effect.notification.body || ""}`.trim();
|
|
|
39102
39103
|
const nativeMessages = args.nativeMessages || [];
|
|
39103
39104
|
const ptyMessages = args.ptyMessages || [];
|
|
39104
39105
|
const returnedMessages = args.returnedMessages || [];
|
|
39106
|
+
const identityStatus = args.selected === "native-history" ? "safe" : args.fallbackReason === "native_history_not_safely_mapped" ? "ambiguous_session_identity" : args.fallbackReason?.startsWith("native_history_unavailable") ? "transcript_unmapped" : void 0;
|
|
39105
39107
|
return {
|
|
39106
39108
|
selected: args.selected,
|
|
39107
39109
|
provider: args.provider,
|
|
39108
39110
|
providerType: args.provider,
|
|
39111
|
+
...identityStatus ? { identityStatus } : {},
|
|
39109
39112
|
...args.nativeHandle ? { nativeHandle: args.nativeHandle } : {},
|
|
39110
39113
|
...args.nativeHandle ? { nativeSessionId: args.nativeHandle } : {},
|
|
39114
|
+
...args.sessionWorkspace ? { sessionWorkspace: args.sessionWorkspace } : {},
|
|
39115
|
+
...args.intendedWorkspace ? { intendedWorkspace: args.intendedWorkspace } : {},
|
|
39116
|
+
...args.transcriptWorkspace ? { transcriptWorkspace: args.transcriptWorkspace } : {},
|
|
39111
39117
|
...args.fallbackReason ? { fallbackReason: args.fallbackReason } : {},
|
|
39112
39118
|
...args.nativeSource ? { nativeSource: args.nativeSource } : {},
|
|
39113
39119
|
...args.sourcePath ? { sourcePath: args.sourcePath } : {},
|
|
@@ -39126,7 +39132,10 @@ ${effect.notification.body || ""}`.trim();
|
|
|
39126
39132
|
nativeMessageCount: nativeMessages.length,
|
|
39127
39133
|
ptyMessageCount: ptyMessages.length,
|
|
39128
39134
|
returnedMessageCount: returnedMessages.length,
|
|
39129
|
-
safeMapping: args.safeMapping === true
|
|
39135
|
+
safeMapping: args.safeMapping === true,
|
|
39136
|
+
// true when native-history was selected: PTY message bodies are suppressed and
|
|
39137
|
+
// must not be treated as chat content. PTY only contributes status/approval/screen evidence.
|
|
39138
|
+
ptyMessagesSuppressed: args.selected === "native-history"
|
|
39130
39139
|
}
|
|
39131
39140
|
};
|
|
39132
39141
|
}
|
|
@@ -39638,7 +39647,14 @@ ${effect.notification.body || ""}`.trim();
|
|
|
39638
39647
|
activeModal: readResult.activeModal,
|
|
39639
39648
|
messagesTail: Array.isArray(readResult.messages) ? readResult.messages.slice(-20) : [],
|
|
39640
39649
|
debugReadChat: readResult.debugReadChat
|
|
39641
|
-
} : {
|
|
39650
|
+
} : {
|
|
39651
|
+
success: false,
|
|
39652
|
+
error: readResult.error,
|
|
39653
|
+
code: readResult.code,
|
|
39654
|
+
messageSource: readResult.messageSource,
|
|
39655
|
+
transcriptProvenance: readResult.transcriptProvenance,
|
|
39656
|
+
debugReadChat: readResult.debugReadChat
|
|
39657
|
+
};
|
|
39642
39658
|
} catch (error48) {
|
|
39643
39659
|
readChat = { success: false, error: error48?.message || String(error48) };
|
|
39644
39660
|
}
|
|
@@ -39870,17 +39886,21 @@ ${effect.notification.body || ""}`.trim();
|
|
|
39870
39886
|
let selectedProviderSessionId = providerSessionId;
|
|
39871
39887
|
let selectedTranscriptAuthority = transcriptAuthority;
|
|
39872
39888
|
let selectedCoverage = coverage;
|
|
39889
|
+
const sessionWorkspace = typeof h.currentSession?.workspace === "string" ? h.currentSession.workspace : typeof adapter.workingDir === "string" ? adapter.workingDir : void 0;
|
|
39890
|
+
const intendedWorkspace = typeof args?.workspace === "string" ? args.workspace : void 0;
|
|
39873
39891
|
let messageSource = buildCliMessageSourceProvenance({
|
|
39874
39892
|
selected: "pty-parser",
|
|
39875
39893
|
provider: adapter.cliType,
|
|
39876
39894
|
fallbackReason: supportsCliNativeTranscript(providerType, provider) ? "native_history_not_checked" : "provider_native_transcript_not_supported",
|
|
39895
|
+
sessionWorkspace,
|
|
39896
|
+
intendedWorkspace,
|
|
39877
39897
|
ptyMessages: returnedMessages,
|
|
39878
39898
|
returnedMessages,
|
|
39879
39899
|
ptyStatusApprovalOnly: false
|
|
39880
39900
|
});
|
|
39881
39901
|
if (supportsCliNativeTranscript(providerType, provider) && isNativeSourceCanonicalHistory(provider?.canonicalHistory)) {
|
|
39882
39902
|
const agentStr = provider?.type || args?.agentType || getCurrentProviderType(h, adapter.cliType);
|
|
39883
|
-
const workspace =
|
|
39903
|
+
const workspace = sessionWorkspace;
|
|
39884
39904
|
const nativeHistoryLimit = Math.max(
|
|
39885
39905
|
normalizeReadChatTailLimit(args) || 0,
|
|
39886
39906
|
returnedMessages.length,
|
|
@@ -39909,6 +39929,8 @@ ${effect.notification.body || ""}`.trim();
|
|
|
39909
39929
|
selected: "pty-parser",
|
|
39910
39930
|
provider: adapter.cliType,
|
|
39911
39931
|
fallbackReason,
|
|
39932
|
+
sessionWorkspace,
|
|
39933
|
+
intendedWorkspace,
|
|
39912
39934
|
ptyMessages: returnedMessages,
|
|
39913
39935
|
returnedMessages,
|
|
39914
39936
|
ptyStatusApprovalOnly: false
|
|
@@ -39922,6 +39944,7 @@ ${effect.notification.body || ""}`.trim();
|
|
|
39922
39944
|
const partialReason = typeof nativeHistory?.partialReason === "string" ? nativeHistory.partialReason : void 0;
|
|
39923
39945
|
const unavailableReason = typeof nativeHistory?.unavailableReason === "string" ? nativeHistory.unavailableReason : void 0;
|
|
39924
39946
|
const lookup = nativeHistory.lookup === "workspace" ? "workspace" : "session";
|
|
39947
|
+
const transcriptWorkspace = typeof nativeHistory?.workspace === "string" ? nativeHistory.workspace : nativeMessages.map((message) => typeof message?.workspace === "string" ? message.workspace.trim() : "").find(Boolean);
|
|
39925
39948
|
const nativeHistorySessionForMapping = adapter.cliType === "antigravity-cli" && historyProviderSessionId && nativeHistorySessionId && historyProviderSessionId !== nativeHistorySessionId ? void 0 : nativeHistorySessionId;
|
|
39926
39949
|
const safeMapping = hasSafeNativeHistoryMapping({
|
|
39927
39950
|
historySessionId: lookup === "workspace" ? void 0 : nativeHistorySessionForMapping,
|
|
@@ -39947,6 +39970,9 @@ ${effect.notification.body || ""}`.trim();
|
|
|
39947
39970
|
selected: "native-history",
|
|
39948
39971
|
provider: adapter.cliType,
|
|
39949
39972
|
nativeHandle: selectedProviderSessionId || nativeHistorySessionId || historySessionId,
|
|
39973
|
+
sessionWorkspace,
|
|
39974
|
+
intendedWorkspace,
|
|
39975
|
+
transcriptWorkspace,
|
|
39950
39976
|
nativeSource: nativeHistory.source,
|
|
39951
39977
|
sourcePath: nativeHistory.sourcePath,
|
|
39952
39978
|
sourceMtimeMs: nativeHistory.sourceMtimeMs,
|
|
@@ -39975,6 +40001,9 @@ ${effect.notification.body || ""}`.trim();
|
|
|
39975
40001
|
selected: "pty-parser",
|
|
39976
40002
|
provider: adapter.cliType,
|
|
39977
40003
|
nativeHandle: historyProviderSessionId || nativeHistorySessionId || historySessionId,
|
|
40004
|
+
sessionWorkspace,
|
|
40005
|
+
intendedWorkspace,
|
|
40006
|
+
transcriptWorkspace,
|
|
39978
40007
|
fallbackReason,
|
|
39979
40008
|
nativeSource: nativeHistory.source,
|
|
39980
40009
|
sourcePath: nativeHistory.sourcePath,
|
|
@@ -40020,7 +40049,8 @@ ${effect.notification.body || ""}`.trim();
|
|
|
40020
40049
|
const historyLimit = normalizeReadChatTailLimit(args);
|
|
40021
40050
|
try {
|
|
40022
40051
|
const agentStr = provider?.type || args?.agentType || getCurrentProviderType(h);
|
|
40023
|
-
const workspace = typeof
|
|
40052
|
+
const workspace = typeof h.currentSession?.workspace === "string" ? h.currentSession.workspace : void 0;
|
|
40053
|
+
const intendedWorkspace = typeof args?.workspace === "string" ? args.workspace : void 0;
|
|
40024
40054
|
const exactNativeHistoryScope = Boolean(
|
|
40025
40055
|
typeof args?.targetSessionId === "string" && args.targetSessionId.trim() || typeof args?.historySessionId === "string" && args.historySessionId.trim() || typeof args?.providerSessionId === "string" && args.providerSessionId.trim() || h.currentSession?.sessionId === args?.targetSessionId && typeof h.currentSession?.providerSessionId === "string" && h.currentSession.providerSessionId.trim()
|
|
40026
40056
|
);
|
|
@@ -40049,6 +40079,7 @@ ${effect.notification.body || ""}`.trim();
|
|
|
40049
40079
|
const nativeHistoryCoverage = typeof history?.nativeHistoryCoverage === "string" ? history.nativeHistoryCoverage : void 0;
|
|
40050
40080
|
const partialReason = typeof history?.partialReason === "string" ? history.partialReason : void 0;
|
|
40051
40081
|
const unavailableReason = typeof history?.unavailableReason === "string" ? history.unavailableReason : void 0;
|
|
40082
|
+
const transcriptWorkspace = typeof history?.workspace === "string" ? history.workspace : historyMessages.map((message) => typeof message?.workspace === "string" ? message.workspace.trim() : "").find(Boolean);
|
|
40052
40083
|
const safeMapping = supportsCliNativeTranscript(agentStr, provider) ? hasSafeNativeHistoryMapping({
|
|
40053
40084
|
historySessionId: lookup === "workspace" ? void 0 : historySessionId,
|
|
40054
40085
|
providerSessionId: lookup === "workspace" ? void 0 : historyProviderSessionId,
|
|
@@ -40060,6 +40091,9 @@ ${effect.notification.body || ""}`.trim();
|
|
|
40060
40091
|
selected: nativeSelected ? "native-history" : "pty-parser",
|
|
40061
40092
|
provider: agentStr,
|
|
40062
40093
|
nativeHandle: historyProviderSessionId || historySessionId,
|
|
40094
|
+
sessionWorkspace: workspace,
|
|
40095
|
+
intendedWorkspace,
|
|
40096
|
+
transcriptWorkspace,
|
|
40063
40097
|
fallbackReason: nativeSelected ? void 0 : buildNativeHistoryFallbackReason({
|
|
40064
40098
|
providerType: agentStr,
|
|
40065
40099
|
provider,
|