@adhdev/daemon-standalone 0.9.49 → 0.9.50
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 +10 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/public/assets/index-BNCOpUZd.js +91 -0
- package/public/index.html +1 -1
- package/public/assets/index-CXnxi_4k.js +0 -91
package/dist/index.js
CHANGED
|
@@ -38942,9 +38942,12 @@ ${effect.notification.body || ""}`.trim();
|
|
|
38942
38942
|
].join("\n");
|
|
38943
38943
|
}
|
|
38944
38944
|
async function handleGetChatDebugBundle(h, args) {
|
|
38945
|
+
const targetSessionId = typeof args?.targetSessionId === "string" ? args.targetSessionId.trim() : "";
|
|
38946
|
+
if (!targetSessionId && !h.currentSession) {
|
|
38947
|
+
return { success: false, error: "No targetSessionId specified \u2014 cannot route command" };
|
|
38948
|
+
}
|
|
38945
38949
|
const provider = h.getProvider(args?.agentType);
|
|
38946
38950
|
const transport = getTargetTransport(h, provider);
|
|
38947
|
-
const targetSessionId = typeof args?.targetSessionId === "string" ? args.targetSessionId.trim() : "";
|
|
38948
38951
|
const providerType = provider?.type || getCurrentProviderType(h, args?.agentType || "");
|
|
38949
38952
|
const adapter = isCliLikeTransport(transport) ? getTargetedCliAdapter(h, args, provider?.type) : null;
|
|
38950
38953
|
const targetInstance = getTargetInstance(h, args);
|
|
@@ -41190,6 +41193,7 @@ ${effect.notification.body || ""}`.trim();
|
|
|
41190
41193
|
this.logCommandStart(cmd, args);
|
|
41191
41194
|
const sessionScopedCommands = /* @__PURE__ */ new Set([
|
|
41192
41195
|
"read_chat",
|
|
41196
|
+
"get_chat_debug_bundle",
|
|
41193
41197
|
"send_chat",
|
|
41194
41198
|
"list_chats",
|
|
41195
41199
|
"new_chat",
|
|
@@ -47722,6 +47726,8 @@ Run 'adhdev doctor' for detailed diagnostics.`
|
|
|
47722
47726
|
const wantsAll = args?.all === true;
|
|
47723
47727
|
const offset = wantsAll ? 0 : Math.max(0, Number(args?.offset) || 0);
|
|
47724
47728
|
const limit = wantsAll ? Number.MAX_SAFE_INTEGER : Math.max(1, Math.min(100, Number(args?.limit) || 30));
|
|
47729
|
+
const requestedWorkspace = typeof args?.workspace === "string" ? args.workspace.trim() : "";
|
|
47730
|
+
const requestedProviderSessionId = typeof args?.providerSessionId === "string" ? args.providerSessionId.trim() : typeof args?.activeProviderSessionId === "string" ? args.activeProviderSessionId.trim() : "";
|
|
47725
47731
|
const providerMeta = this.deps.providerLoader.resolve?.(providerType) || this.deps.providerLoader.getMeta(providerType);
|
|
47726
47732
|
const { sessions: historySessions, hasMore, source } = listProviderHistorySessions(providerType, {
|
|
47727
47733
|
canonicalHistory: providerMeta?.canonicalHistory,
|
|
@@ -47741,6 +47747,7 @@ Run 'adhdev doctor' for detailed diagnostics.`
|
|
|
47741
47747
|
sessions: historySessions.map((session) => {
|
|
47742
47748
|
const saved = savedSessionById.get(session.historySessionId);
|
|
47743
47749
|
const recent = recentSessionById.get(session.historySessionId);
|
|
47750
|
+
const workspace = saved?.workspace || recent?.workspace || session.workspace || (requestedWorkspace && requestedProviderSessionId === session.historySessionId ? requestedWorkspace : void 0);
|
|
47744
47751
|
return {
|
|
47745
47752
|
id: session.historySessionId,
|
|
47746
47753
|
providerSessionId: session.historySessionId,
|
|
@@ -47748,13 +47755,13 @@ Run 'adhdev doctor' for detailed diagnostics.`
|
|
|
47748
47755
|
providerName: saved?.providerName || recent?.providerName || providerType,
|
|
47749
47756
|
kind: saved?.kind || recent?.kind || kind,
|
|
47750
47757
|
title: saved?.title || recent?.title || session.sessionTitle || session.preview || providerType,
|
|
47751
|
-
workspace
|
|
47758
|
+
workspace,
|
|
47752
47759
|
summaryMetadata: saved?.summaryMetadata || recent?.summaryMetadata,
|
|
47753
47760
|
preview: session.preview,
|
|
47754
47761
|
messageCount: session.messageCount,
|
|
47755
47762
|
firstMessageAt: session.firstMessageAt,
|
|
47756
47763
|
lastMessageAt: session.lastMessageAt,
|
|
47757
|
-
canResume: !!
|
|
47764
|
+
canResume: !!workspace && canResumeById,
|
|
47758
47765
|
historySource: session.source,
|
|
47759
47766
|
sourcePath: session.sourcePath,
|
|
47760
47767
|
sourceMtimeMs: session.sourceMtimeMs
|