@clawos-dev/clawd 0.2.609 → 0.2.610
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.cjs
CHANGED
|
@@ -71700,7 +71700,7 @@ function assertGuestPath(ctx, absPath, personaRoot, method, usersRoot) {
|
|
|
71700
71700
|
}
|
|
71701
71701
|
}
|
|
71702
71702
|
function buildHistoryHandlers(deps) {
|
|
71703
|
-
const { manager, history, getHistoryReader, store, personaRoot, usersRoot } = deps;
|
|
71703
|
+
const { manager, history, getHistoryReader, store, personaRoot, usersRoot, logger } = deps;
|
|
71704
71704
|
const projects = async (_frame, _client, ctx) => {
|
|
71705
71705
|
const list2 = await history.listProjects();
|
|
71706
71706
|
if (ctx?.principal.kind === "guest" && personaRoot) {
|
|
@@ -71740,15 +71740,41 @@ function buildHistoryHandlers(deps) {
|
|
|
71740
71740
|
}
|
|
71741
71741
|
}
|
|
71742
71742
|
if (!f2.toolSessionId) {
|
|
71743
|
+
logger?.info("chatflow.history.daemon.result", {
|
|
71744
|
+
sessionId: args.sessionId,
|
|
71745
|
+
toolSessionId: null,
|
|
71746
|
+
reason: "no-tool-session-id",
|
|
71747
|
+
messages: 0,
|
|
71748
|
+
total: 0
|
|
71749
|
+
});
|
|
71743
71750
|
return {
|
|
71744
71751
|
response: { type: "history:read", messages: [], total: 0, offset: 0 }
|
|
71745
71752
|
};
|
|
71746
71753
|
}
|
|
71747
|
-
|
|
71748
|
-
|
|
71754
|
+
let res;
|
|
71755
|
+
try {
|
|
71756
|
+
res = await getHistoryReader(f2.tool ?? "claude").read({
|
|
71757
|
+
cwd: f2.cwd,
|
|
71758
|
+
toolSessionId: f2.toolSessionId,
|
|
71759
|
+
limit: args.limit,
|
|
71760
|
+
offset: args.offset
|
|
71761
|
+
});
|
|
71762
|
+
} catch (err) {
|
|
71763
|
+
logger?.warn("chatflow.history.daemon.error", {
|
|
71764
|
+
sessionId: args.sessionId,
|
|
71765
|
+
toolSessionId: f2.toolSessionId,
|
|
71766
|
+
tool: f2.tool ?? "claude",
|
|
71767
|
+
errorCode: err instanceof ClawdError ? err.code : null
|
|
71768
|
+
});
|
|
71769
|
+
throw err;
|
|
71770
|
+
}
|
|
71771
|
+
logger?.info("chatflow.history.daemon.result", {
|
|
71772
|
+
sessionId: args.sessionId,
|
|
71749
71773
|
toolSessionId: f2.toolSessionId,
|
|
71750
|
-
|
|
71751
|
-
|
|
71774
|
+
tool: f2.tool ?? "claude",
|
|
71775
|
+
messages: res.messages.length,
|
|
71776
|
+
total: res.total,
|
|
71777
|
+
offset: res.offset
|
|
71752
71778
|
});
|
|
71753
71779
|
const messages = args.slim ? slimHistoryMessages(res.messages) : res.messages;
|
|
71754
71780
|
return { response: { type: "history:read", ...res, messages } };
|
|
@@ -73431,7 +73457,7 @@ function computeMethodAccess(args) {
|
|
|
73431
73457
|
}
|
|
73432
73458
|
|
|
73433
73459
|
// src/version.ts
|
|
73434
|
-
var version = "0.2.
|
|
73460
|
+
var version = "0.2.610".length > 0 ? "0.2.610" : "dev";
|
|
73435
73461
|
|
|
73436
73462
|
// src/cli-probe/probe.ts
|
|
73437
73463
|
var fs83 = __toESM(require("fs"), 1);
|