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/index.js
CHANGED
|
@@ -7709,9 +7709,12 @@ function buildDebugBundleText(bundle) {
|
|
|
7709
7709
|
].join("\n");
|
|
7710
7710
|
}
|
|
7711
7711
|
async function handleGetChatDebugBundle(h, args) {
|
|
7712
|
+
const targetSessionId = typeof args?.targetSessionId === "string" ? args.targetSessionId.trim() : "";
|
|
7713
|
+
if (!targetSessionId && !h.currentSession) {
|
|
7714
|
+
return { success: false, error: "No targetSessionId specified \u2014 cannot route command" };
|
|
7715
|
+
}
|
|
7712
7716
|
const provider = h.getProvider(args?.agentType);
|
|
7713
7717
|
const transport = getTargetTransport(h, provider);
|
|
7714
|
-
const targetSessionId = typeof args?.targetSessionId === "string" ? args.targetSessionId.trim() : "";
|
|
7715
7718
|
const providerType = provider?.type || getCurrentProviderType(h, args?.agentType || "");
|
|
7716
7719
|
const adapter = isCliLikeTransport(transport) ? getTargetedCliAdapter(h, args, provider?.type) : null;
|
|
7717
7720
|
const targetInstance = getTargetInstance(h, args);
|
|
@@ -10037,6 +10040,7 @@ var init_handler = __esm({
|
|
|
10037
10040
|
this.logCommandStart(cmd, args);
|
|
10038
10041
|
const sessionScopedCommands = /* @__PURE__ */ new Set([
|
|
10039
10042
|
"read_chat",
|
|
10043
|
+
"get_chat_debug_bundle",
|
|
10040
10044
|
"send_chat",
|
|
10041
10045
|
"list_chats",
|
|
10042
10046
|
"new_chat",
|
|
@@ -38970,6 +38974,8 @@ var init_router = __esm({
|
|
|
38970
38974
|
const wantsAll = args?.all === true;
|
|
38971
38975
|
const offset = wantsAll ? 0 : Math.max(0, Number(args?.offset) || 0);
|
|
38972
38976
|
const limit = wantsAll ? Number.MAX_SAFE_INTEGER : Math.max(1, Math.min(100, Number(args?.limit) || 30));
|
|
38977
|
+
const requestedWorkspace = typeof args?.workspace === "string" ? args.workspace.trim() : "";
|
|
38978
|
+
const requestedProviderSessionId = typeof args?.providerSessionId === "string" ? args.providerSessionId.trim() : typeof args?.activeProviderSessionId === "string" ? args.activeProviderSessionId.trim() : "";
|
|
38973
38979
|
const providerMeta = this.deps.providerLoader.resolve?.(providerType) || this.deps.providerLoader.getMeta(providerType);
|
|
38974
38980
|
const { sessions: historySessions, hasMore, source } = listProviderHistorySessions(providerType, {
|
|
38975
38981
|
canonicalHistory: providerMeta?.canonicalHistory,
|
|
@@ -38989,6 +38995,7 @@ var init_router = __esm({
|
|
|
38989
38995
|
sessions: historySessions.map((session) => {
|
|
38990
38996
|
const saved = savedSessionById.get(session.historySessionId);
|
|
38991
38997
|
const recent = recentSessionById.get(session.historySessionId);
|
|
38998
|
+
const workspace = saved?.workspace || recent?.workspace || session.workspace || (requestedWorkspace && requestedProviderSessionId === session.historySessionId ? requestedWorkspace : void 0);
|
|
38992
38999
|
return {
|
|
38993
39000
|
id: session.historySessionId,
|
|
38994
39001
|
providerSessionId: session.historySessionId,
|
|
@@ -38996,13 +39003,13 @@ var init_router = __esm({
|
|
|
38996
39003
|
providerName: saved?.providerName || recent?.providerName || providerType,
|
|
38997
39004
|
kind: saved?.kind || recent?.kind || kind,
|
|
38998
39005
|
title: saved?.title || recent?.title || session.sessionTitle || session.preview || providerType,
|
|
38999
|
-
workspace
|
|
39006
|
+
workspace,
|
|
39000
39007
|
summaryMetadata: saved?.summaryMetadata || recent?.summaryMetadata,
|
|
39001
39008
|
preview: session.preview,
|
|
39002
39009
|
messageCount: session.messageCount,
|
|
39003
39010
|
firstMessageAt: session.firstMessageAt,
|
|
39004
39011
|
lastMessageAt: session.lastMessageAt,
|
|
39005
|
-
canResume: !!
|
|
39012
|
+
canResume: !!workspace && canResumeById,
|
|
39006
39013
|
historySource: session.source,
|
|
39007
39014
|
sourcePath: session.sourcePath,
|
|
39008
39015
|
sourceMtimeMs: session.sourceMtimeMs
|
|
@@ -57291,7 +57298,7 @@ var init_adhdev_daemon = __esm({
|
|
|
57291
57298
|
init_version();
|
|
57292
57299
|
init_src();
|
|
57293
57300
|
init_runtime_defaults();
|
|
57294
|
-
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.
|
|
57301
|
+
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.50" });
|
|
57295
57302
|
AdhdevDaemon = class _AdhdevDaemon {
|
|
57296
57303
|
localHttpServer = null;
|
|
57297
57304
|
localWss = null;
|