@clawos-dev/clawd 0.2.57 → 0.2.58-beta.95.76ea881
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 +20 -4
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -21368,7 +21368,11 @@ function applyCommand(state, command, deps) {
|
|
|
21368
21368
|
void _win;
|
|
21369
21369
|
void _branch;
|
|
21370
21370
|
void _model;
|
|
21371
|
-
const nextFile = {
|
|
21371
|
+
const nextFile = {
|
|
21372
|
+
...rest,
|
|
21373
|
+
...command.nextToolSessionId ? { toolSessionId: command.nextToolSessionId } : {},
|
|
21374
|
+
updatedAt: nowIso(deps)
|
|
21375
|
+
};
|
|
21372
21376
|
next.file = nextFile;
|
|
21373
21377
|
next.buffer = [];
|
|
21374
21378
|
next.nextSeq = 0;
|
|
@@ -22628,10 +22632,14 @@ var SessionManager = class {
|
|
|
22628
22632
|
}
|
|
22629
22633
|
newSession(args) {
|
|
22630
22634
|
this.getFile(args.sessionId);
|
|
22635
|
+
const nextToolSessionId = this.deps.mode === "tui" ? v4_default() : void 0;
|
|
22631
22636
|
const runner = this.runners.get(args.sessionId);
|
|
22632
22637
|
if (runner) {
|
|
22633
22638
|
const { value, broadcast } = this.withCollector(() => {
|
|
22634
|
-
runner.input({
|
|
22639
|
+
runner.input({
|
|
22640
|
+
kind: "command",
|
|
22641
|
+
command: { kind: "new", ...nextToolSessionId ? { nextToolSessionId } : {} }
|
|
22642
|
+
});
|
|
22635
22643
|
return runner.getState().file;
|
|
22636
22644
|
});
|
|
22637
22645
|
return { response: value, broadcast };
|
|
@@ -22650,7 +22658,11 @@ var SessionManager = class {
|
|
|
22650
22658
|
void _win;
|
|
22651
22659
|
void _branch;
|
|
22652
22660
|
void _model;
|
|
22653
|
-
const updated = {
|
|
22661
|
+
const updated = {
|
|
22662
|
+
...rest,
|
|
22663
|
+
...nextToolSessionId ? { toolSessionId: nextToolSessionId } : {},
|
|
22664
|
+
updatedAt: nowIso2(this.deps)
|
|
22665
|
+
};
|
|
22654
22666
|
return { response: this.writeOwned(updated), broadcast: [] };
|
|
22655
22667
|
}
|
|
22656
22668
|
resume(args) {
|
|
@@ -22906,8 +22918,12 @@ var SessionManager = class {
|
|
|
22906
22918
|
);
|
|
22907
22919
|
}
|
|
22908
22920
|
const runner = this.ensureRunnerForScope(file, args.scope);
|
|
22921
|
+
const nextToolSessionId = this.deps.mode === "tui" ? v4_default() : void 0;
|
|
22909
22922
|
const { broadcast } = this.withCollector(() => {
|
|
22910
|
-
runner.input({
|
|
22923
|
+
runner.input({
|
|
22924
|
+
kind: "command",
|
|
22925
|
+
command: { kind: "new", ...nextToolSessionId ? { nextToolSessionId } : {} }
|
|
22926
|
+
});
|
|
22911
22927
|
});
|
|
22912
22928
|
return { response: { ok: true }, broadcast };
|
|
22913
22929
|
}
|
package/package.json
CHANGED