adhdev 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/cli/index.js +11 -4
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -8229,9 +8229,12 @@ function buildDebugBundleText(bundle) {
|
|
|
8229
8229
|
].join("\n");
|
|
8230
8230
|
}
|
|
8231
8231
|
async function handleGetChatDebugBundle(h, args) {
|
|
8232
|
+
const targetSessionId = typeof args?.targetSessionId === "string" ? args.targetSessionId.trim() : "";
|
|
8233
|
+
if (!targetSessionId && !h.currentSession) {
|
|
8234
|
+
return { success: false, error: "No targetSessionId specified \u2014 cannot route command" };
|
|
8235
|
+
}
|
|
8232
8236
|
const provider = h.getProvider(args?.agentType);
|
|
8233
8237
|
const transport = getTargetTransport(h, provider);
|
|
8234
|
-
const targetSessionId = typeof args?.targetSessionId === "string" ? args.targetSessionId.trim() : "";
|
|
8235
8238
|
const providerType = provider?.type || getCurrentProviderType(h, args?.agentType || "");
|
|
8236
8239
|
const adapter = isCliLikeTransport(transport) ? getTargetedCliAdapter(h, args, provider?.type) : null;
|
|
8237
8240
|
const targetInstance = getTargetInstance(h, args);
|
|
@@ -10557,6 +10560,7 @@ var init_handler = __esm({
|
|
|
10557
10560
|
this.logCommandStart(cmd, args);
|
|
10558
10561
|
const sessionScopedCommands = /* @__PURE__ */ new Set([
|
|
10559
10562
|
"read_chat",
|
|
10563
|
+
"get_chat_debug_bundle",
|
|
10560
10564
|
"send_chat",
|
|
10561
10565
|
"list_chats",
|
|
10562
10566
|
"new_chat",
|
|
@@ -39927,6 +39931,8 @@ var init_router = __esm({
|
|
|
39927
39931
|
const wantsAll = args?.all === true;
|
|
39928
39932
|
const offset = wantsAll ? 0 : Math.max(0, Number(args?.offset) || 0);
|
|
39929
39933
|
const limit = wantsAll ? Number.MAX_SAFE_INTEGER : Math.max(1, Math.min(100, Number(args?.limit) || 30));
|
|
39934
|
+
const requestedWorkspace = typeof args?.workspace === "string" ? args.workspace.trim() : "";
|
|
39935
|
+
const requestedProviderSessionId = typeof args?.providerSessionId === "string" ? args.providerSessionId.trim() : typeof args?.activeProviderSessionId === "string" ? args.activeProviderSessionId.trim() : "";
|
|
39930
39936
|
const providerMeta = this.deps.providerLoader.resolve?.(providerType) || this.deps.providerLoader.getMeta(providerType);
|
|
39931
39937
|
const { sessions: historySessions, hasMore, source } = listProviderHistorySessions(providerType, {
|
|
39932
39938
|
canonicalHistory: providerMeta?.canonicalHistory,
|
|
@@ -39946,6 +39952,7 @@ var init_router = __esm({
|
|
|
39946
39952
|
sessions: historySessions.map((session) => {
|
|
39947
39953
|
const saved = savedSessionById.get(session.historySessionId);
|
|
39948
39954
|
const recent = recentSessionById.get(session.historySessionId);
|
|
39955
|
+
const workspace = saved?.workspace || recent?.workspace || session.workspace || (requestedWorkspace && requestedProviderSessionId === session.historySessionId ? requestedWorkspace : void 0);
|
|
39949
39956
|
return {
|
|
39950
39957
|
id: session.historySessionId,
|
|
39951
39958
|
providerSessionId: session.historySessionId,
|
|
@@ -39953,13 +39960,13 @@ var init_router = __esm({
|
|
|
39953
39960
|
providerName: saved?.providerName || recent?.providerName || providerType,
|
|
39954
39961
|
kind: saved?.kind || recent?.kind || kind,
|
|
39955
39962
|
title: saved?.title || recent?.title || session.sessionTitle || session.preview || providerType,
|
|
39956
|
-
workspace
|
|
39963
|
+
workspace,
|
|
39957
39964
|
summaryMetadata: saved?.summaryMetadata || recent?.summaryMetadata,
|
|
39958
39965
|
preview: session.preview,
|
|
39959
39966
|
messageCount: session.messageCount,
|
|
39960
39967
|
firstMessageAt: session.firstMessageAt,
|
|
39961
39968
|
lastMessageAt: session.lastMessageAt,
|
|
39962
|
-
canResume: !!
|
|
39969
|
+
canResume: !!workspace && canResumeById,
|
|
39963
39970
|
historySource: session.source,
|
|
39964
39971
|
sourcePath: session.sourcePath,
|
|
39965
39972
|
sourceMtimeMs: session.sourceMtimeMs
|
|
@@ -88433,7 +88440,7 @@ var init_adhdev_daemon = __esm({
|
|
|
88433
88440
|
init_version();
|
|
88434
88441
|
init_src();
|
|
88435
88442
|
init_runtime_defaults();
|
|
88436
|
-
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.
|
|
88443
|
+
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.50" });
|
|
88437
88444
|
AdhdevDaemon = class _AdhdevDaemon {
|
|
88438
88445
|
localHttpServer = null;
|
|
88439
88446
|
localWss = null;
|