@staff0rd/assist 0.291.1 → 0.292.0
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/commands/sessions/web/bundle.js +62 -62
- package/dist/index.js +13 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.
|
|
9
|
+
version: "0.292.0",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -18897,7 +18897,12 @@ function handleHello(state, msg) {
|
|
|
18897
18897
|
function handleCreated(state, msg) {
|
|
18898
18898
|
daemonLog(`windows daemon: created session ${nsId(msg)}`);
|
|
18899
18899
|
const client = state.pendingCreators.shift();
|
|
18900
|
-
if (client)
|
|
18900
|
+
if (client)
|
|
18901
|
+
sendTo(client, {
|
|
18902
|
+
type: "created",
|
|
18903
|
+
sessionId: nsId(msg),
|
|
18904
|
+
isNew: msg.isNew
|
|
18905
|
+
});
|
|
18901
18906
|
else daemonLog("windows daemon: created with no pending creator (dropped)");
|
|
18902
18907
|
}
|
|
18903
18908
|
function handleSessions(state, msg) {
|
|
@@ -19603,10 +19608,10 @@ function safeParse2(line) {
|
|
|
19603
19608
|
}
|
|
19604
19609
|
|
|
19605
19610
|
// src/commands/sessions/daemon/dispatchMessage.ts
|
|
19606
|
-
function creator(spawn12) {
|
|
19611
|
+
function creator(isNew, spawn12) {
|
|
19607
19612
|
return (client, m, d) => {
|
|
19608
19613
|
if (m.windowsProxy.route(client, d)) return;
|
|
19609
|
-
sendTo(client, { type: "created", sessionId: spawn12(m, d) });
|
|
19614
|
+
sendTo(client, { type: "created", sessionId: spawn12(m, d), isNew });
|
|
19610
19615
|
};
|
|
19611
19616
|
}
|
|
19612
19617
|
function handleHistory(client) {
|
|
@@ -19634,9 +19639,11 @@ var handlers = {
|
|
|
19634
19639
|
ping: (client) => sendTo(client, { type: "pong", pid: process.pid }),
|
|
19635
19640
|
hello: (client) => sendTo(client, buildHello()),
|
|
19636
19641
|
create: creator(
|
|
19642
|
+
true,
|
|
19637
19643
|
(m, d) => m.spawn(d.prompt, d.cwd)
|
|
19638
19644
|
),
|
|
19639
19645
|
"create-run": creator(
|
|
19646
|
+
true,
|
|
19640
19647
|
(m, d) => m.spawnRun(
|
|
19641
19648
|
d.runName,
|
|
19642
19649
|
d.runArgs ?? [],
|
|
@@ -19644,12 +19651,14 @@ var handlers = {
|
|
|
19644
19651
|
)
|
|
19645
19652
|
),
|
|
19646
19653
|
"create-assist": creator(
|
|
19654
|
+
true,
|
|
19647
19655
|
(m, d) => m.spawnAssist(
|
|
19648
19656
|
d.assistArgs ?? [],
|
|
19649
19657
|
d.cwd
|
|
19650
19658
|
)
|
|
19651
19659
|
),
|
|
19652
19660
|
resume: creator(
|
|
19661
|
+
false,
|
|
19653
19662
|
(m, d) => m.resume(
|
|
19654
19663
|
d.sessionId,
|
|
19655
19664
|
d.cwd,
|