@sideboard-ai/core 0.1.74 → 0.1.77
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/{agents-2S2JVLZ6.js → agents-LKUHPPEQ.js} +3 -3
- package/dist/{agents-H7M5CQY2.js → agents-XJV6J3K2.js} +3 -3
- package/dist/{caffeinate-hold-KLC6SABD.js → caffeinate-hold-EAZNWJBE.js} +5 -1
- package/dist/caffeinate-hold-OHAUWOA6.js +20 -0
- package/dist/{chunk-KBKPVKYZ.js → chunk-2FJI5JXX.js} +2 -2
- package/dist/{chunk-GJ2LZQJI.js → chunk-2ZIPJRJE.js} +1 -1
- package/dist/{chunk-DG3S2UXP.js → chunk-75U65MBE.js} +1 -1
- package/dist/{chunk-HCWAIEBU.js → chunk-EEKSZTMU.js} +3 -2
- package/dist/{chunk-2NKSHIRI.js → chunk-GWTLKXXP.js} +1 -1
- package/dist/chunk-MFF2RE3I.js +168 -0
- package/dist/{chunk-5KJMNNCB.js → chunk-QD37IILI.js} +2 -2
- package/dist/chunk-RV6DBEDQ.js +170 -0
- package/dist/{chunk-77W62MTX.js → chunk-VERLUKN2.js} +1 -1
- package/dist/{chunk-XA2FQJTN.js → chunk-XJNCWYFR.js} +3 -2
- package/dist/{coordinator-prompt-3XXSG7M2.js → coordinator-prompt-LLFJUO2R.js} +1 -1
- package/dist/{coordinator-prompt-RTUCCPCI.js → coordinator-prompt-MRCMMRSF.js} +1 -1
- package/dist/{global-workspace-PJU6HISJ.js → global-workspace-TWHMYLTZ.js} +2 -2
- package/dist/{global-workspace-CSIS62Z4.js → global-workspace-YNMNO4CL.js} +2 -2
- package/dist/index.cjs +1050 -438
- package/dist/index.d.cts +144 -21
- package/dist/index.d.ts +144 -21
- package/dist/index.js +926 -389
- package/dist/mcp/run-stdio.cjs +709 -276
- package/dist/mcp/run-stdio.js +543 -171
- package/dist/{workspaces-L4TXMUNM.js → workspaces-GQ4XKBD3.js} +3 -3
- package/dist/{workspaces-W72KZL4B.js → workspaces-O3U5BENH.js} +3 -3
- package/package.json +1 -1
- package/dist/caffeinate-hold-BEJIYPJ7.js +0 -107
- package/dist/chunk-JAWEDVVA.js +0 -106
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
listWorkspaces,
|
|
7
7
|
removeWorkspace,
|
|
8
8
|
syncWorkspacesFromThreads
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-2ZIPJRJE.js";
|
|
10
|
+
import "./chunk-GWTLKXXP.js";
|
|
11
|
+
import "./chunk-XJNCWYFR.js";
|
|
12
12
|
import "./chunk-OE7YBB5X.js";
|
|
13
13
|
import "./chunk-B3SJXYIJ.js";
|
|
14
14
|
import "./chunk-7FD7COKE.js";
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
listWorkspaces,
|
|
5
5
|
removeWorkspace,
|
|
6
6
|
syncWorkspacesFromThreads
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-75U65MBE.js";
|
|
8
|
+
import "./chunk-VERLUKN2.js";
|
|
9
|
+
import "./chunk-EEKSZTMU.js";
|
|
10
10
|
import "./chunk-W7YOTDVO.js";
|
|
11
11
|
import "./chunk-JT7R45JB.js";
|
|
12
12
|
import "./chunk-MF2YMEGD.js";
|
package/package.json
CHANGED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
writePrivateFile
|
|
5
|
-
} from "./chunk-NSTQ6QKD.js";
|
|
6
|
-
import {
|
|
7
|
-
appDataDir
|
|
8
|
-
} from "./chunk-7MV3RXSC.js";
|
|
9
|
-
|
|
10
|
-
// src/store/caffeinate-hold.ts
|
|
11
|
-
import { spawn } from "child_process";
|
|
12
|
-
import { existsSync, readFileSync, unlinkSync } from "fs";
|
|
13
|
-
import { join } from "path";
|
|
14
|
-
var hooks = {};
|
|
15
|
-
function setCaffeinateHoldHooks(next) {
|
|
16
|
-
hooks = next;
|
|
17
|
-
}
|
|
18
|
-
function caffeinateHoldPath() {
|
|
19
|
-
return join(appDataDir(), "caffeinate-hold.json");
|
|
20
|
-
}
|
|
21
|
-
function processAlive(pid) {
|
|
22
|
-
if (hooks.processAlive) return hooks.processAlive(pid);
|
|
23
|
-
try {
|
|
24
|
-
process.kill(pid, 0);
|
|
25
|
-
return true;
|
|
26
|
-
} catch {
|
|
27
|
-
return false;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
function killPid(pid) {
|
|
31
|
-
if (hooks.kill) {
|
|
32
|
-
hooks.kill(pid);
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
try {
|
|
36
|
-
process.kill(pid, "SIGTERM");
|
|
37
|
-
} catch {
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
function readHold() {
|
|
41
|
-
const path = caffeinateHoldPath();
|
|
42
|
-
if (!existsSync(path)) return null;
|
|
43
|
-
try {
|
|
44
|
-
const parsed = JSON.parse(readFileSync(path, "utf8"));
|
|
45
|
-
if (typeof parsed?.pid === "number" && parsed.pid > 0) return parsed;
|
|
46
|
-
} catch {
|
|
47
|
-
}
|
|
48
|
-
return null;
|
|
49
|
-
}
|
|
50
|
-
function writeHold(pid) {
|
|
51
|
-
writePrivateFile(caffeinateHoldPath(), `${JSON.stringify({ pid })}
|
|
52
|
-
`);
|
|
53
|
-
}
|
|
54
|
-
function clearHold() {
|
|
55
|
-
try {
|
|
56
|
-
unlinkSync(caffeinateHoldPath());
|
|
57
|
-
} catch {
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
function getCaffeinateHold() {
|
|
61
|
-
const platform = hooks.platform ?? process.platform;
|
|
62
|
-
const hold = readHold();
|
|
63
|
-
if (!hold) {
|
|
64
|
-
return { held: false, pid: null, running: false, platform };
|
|
65
|
-
}
|
|
66
|
-
const running = processAlive(hold.pid);
|
|
67
|
-
if (!running) {
|
|
68
|
-
clearHold();
|
|
69
|
-
return { held: false, pid: null, running: false, platform };
|
|
70
|
-
}
|
|
71
|
-
return { held: true, pid: hold.pid, running: true, platform };
|
|
72
|
-
}
|
|
73
|
-
function setCaffeinateHold(enabled) {
|
|
74
|
-
const platform = hooks.platform ?? process.platform;
|
|
75
|
-
const current = getCaffeinateHold();
|
|
76
|
-
if (!enabled) {
|
|
77
|
-
if (current.pid) killPid(current.pid);
|
|
78
|
-
clearHold();
|
|
79
|
-
return { held: false, pid: null, running: false, platform };
|
|
80
|
-
}
|
|
81
|
-
if (current.running && current.pid) return current;
|
|
82
|
-
if (platform !== "darwin") {
|
|
83
|
-
return { held: false, pid: null, running: false, platform };
|
|
84
|
-
}
|
|
85
|
-
const spawnImpl = hooks.spawn ?? spawn;
|
|
86
|
-
const child = spawnImpl("caffeinate", ["-dimsu"], {
|
|
87
|
-
detached: true,
|
|
88
|
-
stdio: "ignore"
|
|
89
|
-
});
|
|
90
|
-
const pid = child.pid;
|
|
91
|
-
if (!pid) {
|
|
92
|
-
try {
|
|
93
|
-
child.kill();
|
|
94
|
-
} catch {
|
|
95
|
-
}
|
|
96
|
-
return { held: false, pid: null, running: false, platform };
|
|
97
|
-
}
|
|
98
|
-
child.unref();
|
|
99
|
-
writeHold(pid);
|
|
100
|
-
return { held: true, pid, running: true, platform };
|
|
101
|
-
}
|
|
102
|
-
export {
|
|
103
|
-
caffeinateHoldPath,
|
|
104
|
-
getCaffeinateHold,
|
|
105
|
-
setCaffeinateHold,
|
|
106
|
-
setCaffeinateHoldHooks
|
|
107
|
-
};
|
package/dist/chunk-JAWEDVVA.js
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
writePrivateFile
|
|
3
|
-
} from "./chunk-JT7R45JB.js";
|
|
4
|
-
import {
|
|
5
|
-
appDataDir
|
|
6
|
-
} from "./chunk-M37RITA6.js";
|
|
7
|
-
|
|
8
|
-
// src/store/caffeinate-hold.ts
|
|
9
|
-
import { spawn } from "child_process";
|
|
10
|
-
import { existsSync, readFileSync, unlinkSync } from "fs";
|
|
11
|
-
import { join } from "path";
|
|
12
|
-
var hooks = {};
|
|
13
|
-
function setCaffeinateHoldHooks(next) {
|
|
14
|
-
hooks = next;
|
|
15
|
-
}
|
|
16
|
-
function caffeinateHoldPath() {
|
|
17
|
-
return join(appDataDir(), "caffeinate-hold.json");
|
|
18
|
-
}
|
|
19
|
-
function processAlive(pid) {
|
|
20
|
-
if (hooks.processAlive) return hooks.processAlive(pid);
|
|
21
|
-
try {
|
|
22
|
-
process.kill(pid, 0);
|
|
23
|
-
return true;
|
|
24
|
-
} catch {
|
|
25
|
-
return false;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function killPid(pid) {
|
|
29
|
-
if (hooks.kill) {
|
|
30
|
-
hooks.kill(pid);
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
try {
|
|
34
|
-
process.kill(pid, "SIGTERM");
|
|
35
|
-
} catch {
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
function readHold() {
|
|
39
|
-
const path = caffeinateHoldPath();
|
|
40
|
-
if (!existsSync(path)) return null;
|
|
41
|
-
try {
|
|
42
|
-
const parsed = JSON.parse(readFileSync(path, "utf8"));
|
|
43
|
-
if (typeof parsed?.pid === "number" && parsed.pid > 0) return parsed;
|
|
44
|
-
} catch {
|
|
45
|
-
}
|
|
46
|
-
return null;
|
|
47
|
-
}
|
|
48
|
-
function writeHold(pid) {
|
|
49
|
-
writePrivateFile(caffeinateHoldPath(), `${JSON.stringify({ pid })}
|
|
50
|
-
`);
|
|
51
|
-
}
|
|
52
|
-
function clearHold() {
|
|
53
|
-
try {
|
|
54
|
-
unlinkSync(caffeinateHoldPath());
|
|
55
|
-
} catch {
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
function getCaffeinateHold() {
|
|
59
|
-
const platform = hooks.platform ?? process.platform;
|
|
60
|
-
const hold = readHold();
|
|
61
|
-
if (!hold) {
|
|
62
|
-
return { held: false, pid: null, running: false, platform };
|
|
63
|
-
}
|
|
64
|
-
const running = processAlive(hold.pid);
|
|
65
|
-
if (!running) {
|
|
66
|
-
clearHold();
|
|
67
|
-
return { held: false, pid: null, running: false, platform };
|
|
68
|
-
}
|
|
69
|
-
return { held: true, pid: hold.pid, running: true, platform };
|
|
70
|
-
}
|
|
71
|
-
function setCaffeinateHold(enabled) {
|
|
72
|
-
const platform = hooks.platform ?? process.platform;
|
|
73
|
-
const current = getCaffeinateHold();
|
|
74
|
-
if (!enabled) {
|
|
75
|
-
if (current.pid) killPid(current.pid);
|
|
76
|
-
clearHold();
|
|
77
|
-
return { held: false, pid: null, running: false, platform };
|
|
78
|
-
}
|
|
79
|
-
if (current.running && current.pid) return current;
|
|
80
|
-
if (platform !== "darwin") {
|
|
81
|
-
return { held: false, pid: null, running: false, platform };
|
|
82
|
-
}
|
|
83
|
-
const spawnImpl = hooks.spawn ?? spawn;
|
|
84
|
-
const child = spawnImpl("caffeinate", ["-dimsu"], {
|
|
85
|
-
detached: true,
|
|
86
|
-
stdio: "ignore"
|
|
87
|
-
});
|
|
88
|
-
const pid = child.pid;
|
|
89
|
-
if (!pid) {
|
|
90
|
-
try {
|
|
91
|
-
child.kill();
|
|
92
|
-
} catch {
|
|
93
|
-
}
|
|
94
|
-
return { held: false, pid: null, running: false, platform };
|
|
95
|
-
}
|
|
96
|
-
child.unref();
|
|
97
|
-
writeHold(pid);
|
|
98
|
-
return { held: true, pid, running: true, platform };
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export {
|
|
102
|
-
setCaffeinateHoldHooks,
|
|
103
|
-
caffeinateHoldPath,
|
|
104
|
-
getCaffeinateHold,
|
|
105
|
-
setCaffeinateHold
|
|
106
|
-
};
|