@clawos-dev/clawd 0.2.93-beta.173.df765cf → 0.2.93-beta.174.78b779b
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 +12 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -11319,6 +11319,7 @@ function parseClaudeObjectInner(obj) {
|
|
|
11319
11319
|
}
|
|
11320
11320
|
if (type === "assistant") {
|
|
11321
11321
|
const message = obj.message;
|
|
11322
|
+
if (message?.model === "<synthetic>") return events;
|
|
11322
11323
|
if (message) {
|
|
11323
11324
|
const mModel = message.model;
|
|
11324
11325
|
if (typeof mModel === "string" && mModel.length > 0) {
|
|
@@ -25883,7 +25884,8 @@ var SessionObserver = class {
|
|
|
25883
25884
|
pollTimer: null,
|
|
25884
25885
|
lastSize: size,
|
|
25885
25886
|
buf: "",
|
|
25886
|
-
adapter: args.adapter
|
|
25887
|
+
adapter: args.adapter,
|
|
25888
|
+
prevIsRejectSentinel: false
|
|
25887
25889
|
};
|
|
25888
25890
|
try {
|
|
25889
25891
|
import_node_fs14.default.mkdirSync(import_node_path15.default.dirname(filePath), { recursive: true });
|
|
@@ -25956,6 +25958,15 @@ var SessionObserver = class {
|
|
|
25956
25958
|
while ((newlineIndex = w2.buf.indexOf("\n")) >= 0) {
|
|
25957
25959
|
const line = w2.buf.slice(0, newlineIndex);
|
|
25958
25960
|
w2.buf = w2.buf.slice(newlineIndex + 1);
|
|
25961
|
+
let parsed = null;
|
|
25962
|
+
try {
|
|
25963
|
+
parsed = line.trim() ? JSON.parse(line) : null;
|
|
25964
|
+
} catch {
|
|
25965
|
+
parsed = null;
|
|
25966
|
+
}
|
|
25967
|
+
const skipAsMarker = w2.prevIsRejectSentinel && parsed !== null && isUserPlainTextLine(parsed);
|
|
25968
|
+
w2.prevIsRejectSentinel = parsed !== null ? isRejectSentinelLine(parsed) : false;
|
|
25969
|
+
if (skipAsMarker) continue;
|
|
25959
25970
|
const events = w2.adapter.parseLine(line);
|
|
25960
25971
|
this.maybeReportUserMessage(w2.sessionId, line);
|
|
25961
25972
|
if (events.length > 0) {
|
package/package.json
CHANGED