@sideboard-ai/core 0.1.74 → 0.1.79
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-H7M5CQY2.js → agents-EWPHOM6Y.js} +6 -6
- package/dist/{agents-2S2JVLZ6.js → agents-GRAPUXWW.js} +5 -5
- package/dist/{app-settings-3TLA2EJ7.js → app-settings-6IOQYGBK.js} +7 -1
- package/dist/{app-settings-P42Z3VOB.js → app-settings-NILNWNNQ.js} +7 -1
- package/dist/{caffeinate-hold-KLC6SABD.js → caffeinate-hold-EAZNWJBE.js} +5 -1
- package/dist/caffeinate-hold-OHAUWOA6.js +20 -0
- package/dist/{chunk-77W62MTX.js → chunk-5LXWTU3J.js} +6 -6
- package/dist/{chunk-GJ2LZQJI.js → chunk-5VTWBI3I.js} +2 -2
- package/dist/{chunk-2NKSHIRI.js → chunk-6T2SKGCS.js} +3 -3
- package/dist/{chunk-OE7YBB5X.js → chunk-FUUVPN4A.js} +108 -3
- package/dist/{chunk-HCWAIEBU.js → chunk-HCGEFU3J.js} +8 -7
- package/dist/{chunk-XA2FQJTN.js → chunk-HSLQXL6M.js} +6 -5
- package/dist/{chunk-W7YOTDVO.js → chunk-IFPN6TER.js} +47 -2
- package/dist/chunk-MFF2RE3I.js +168 -0
- package/dist/{chunk-KBKPVKYZ.js → chunk-P33ZQ7ZC.js} +3 -3
- package/dist/{chunk-DG3S2UXP.js → chunk-PW5YHHP3.js} +2 -2
- package/dist/chunk-RV6DBEDQ.js +170 -0
- package/dist/{chunk-5KJMNNCB.js → chunk-SHCR6RPU.js} +3 -3
- package/dist/{chunk-PTJJIQK7.js → chunk-XKNBSYA7.js} +47 -2
- package/dist/{chunk-MF2YMEGD.js → chunk-YVVXWWCC.js} +110 -3
- package/dist/{coordinator-prompt-3XXSG7M2.js → coordinator-prompt-2OVON2LQ.js} +4 -4
- package/dist/{coordinator-prompt-RTUCCPCI.js → coordinator-prompt-K2R34A5T.js} +3 -3
- package/dist/{global-workspace-PJU6HISJ.js → global-workspace-RI367AM6.js} +4 -4
- package/dist/{global-workspace-CSIS62Z4.js → global-workspace-VG44RZUH.js} +5 -5
- package/dist/index.cjs +1548 -614
- package/dist/index.d.cts +226 -28
- package/dist/index.d.ts +226 -28
- package/dist/index.js +1277 -575
- package/dist/mcp/run-stdio.cjs +3153 -2509
- package/dist/mcp/run-stdio.js +690 -262
- package/dist/{workspaces-L4TXMUNM.js → workspaces-BQWQEZWE.js} +5 -5
- package/dist/{workspaces-W72KZL4B.js → workspaces-TYPJNUSM.js} +6 -6
- package/dist/{worktree-VOCH3WS3.js → worktree-5VLLFI5W.js} +5 -1
- package/dist/{worktree-KWXHMKRN.js → worktree-UNSOCYZU.js} +5 -1
- package/package.json +1 -1
- package/dist/caffeinate-hold-BEJIYPJ7.js +0 -107
- package/dist/chunk-JAWEDVVA.js +0 -106
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
listWorkspaces,
|
|
7
7
|
removeWorkspace,
|
|
8
8
|
syncWorkspacesFromThreads
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-5VTWBI3I.js";
|
|
10
|
+
import "./chunk-6T2SKGCS.js";
|
|
11
|
+
import "./chunk-HSLQXL6M.js";
|
|
12
|
+
import "./chunk-FUUVPN4A.js";
|
|
13
13
|
import "./chunk-B3SJXYIJ.js";
|
|
14
14
|
import "./chunk-7FD7COKE.js";
|
|
15
15
|
import "./chunk-AE5VBOFE.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-XKNBSYA7.js";
|
|
17
17
|
import "./chunk-NSTQ6QKD.js";
|
|
18
18
|
import "./chunk-KGZBYWZ3.js";
|
|
19
19
|
import "./chunk-7MV3RXSC.js";
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
listWorkspaces,
|
|
5
5
|
removeWorkspace,
|
|
6
6
|
syncWorkspacesFromThreads
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-JT7R45JB.js";
|
|
12
|
-
import "./chunk-MF2YMEGD.js";
|
|
7
|
+
} from "./chunk-PW5YHHP3.js";
|
|
8
|
+
import "./chunk-5LXWTU3J.js";
|
|
9
|
+
import "./chunk-HCGEFU3J.js";
|
|
10
|
+
import "./chunk-YVVXWWCC.js";
|
|
13
11
|
import "./chunk-FKOIHGKV.js";
|
|
12
|
+
import "./chunk-IFPN6TER.js";
|
|
13
|
+
import "./chunk-JT7R45JB.js";
|
|
14
14
|
import "./chunk-FWJYLBO6.js";
|
|
15
15
|
import "./chunk-77WWLBCI.js";
|
|
16
16
|
import "./chunk-M37RITA6.js";
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
getPrMeta,
|
|
19
19
|
ghHeadRef,
|
|
20
20
|
ghRepoSelectArgs,
|
|
21
|
+
githubAgentGitEnv,
|
|
21
22
|
isDirty,
|
|
22
23
|
isPlaceholderBranch,
|
|
23
24
|
isSideboardScratchPath,
|
|
@@ -43,8 +44,10 @@ import {
|
|
|
43
44
|
worktreeDisplayLabel,
|
|
44
45
|
worktreeDisplayLabelForGroup,
|
|
45
46
|
worktreeNameFromPath
|
|
46
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-YVVXWWCC.js";
|
|
47
48
|
import "./chunk-FKOIHGKV.js";
|
|
49
|
+
import "./chunk-IFPN6TER.js";
|
|
50
|
+
import "./chunk-JT7R45JB.js";
|
|
48
51
|
import "./chunk-FWJYLBO6.js";
|
|
49
52
|
import "./chunk-77WWLBCI.js";
|
|
50
53
|
import "./chunk-M37RITA6.js";
|
|
@@ -69,6 +72,7 @@ export {
|
|
|
69
72
|
getPrMeta,
|
|
70
73
|
ghHeadRef,
|
|
71
74
|
ghRepoSelectArgs,
|
|
75
|
+
githubAgentGitEnv,
|
|
72
76
|
isDirty,
|
|
73
77
|
isPlaceholderBranch,
|
|
74
78
|
isSideboardScratchPath,
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
getPrMeta,
|
|
21
21
|
ghHeadRef,
|
|
22
22
|
ghRepoSelectArgs,
|
|
23
|
+
githubAgentGitEnv,
|
|
23
24
|
isDirty,
|
|
24
25
|
isPlaceholderBranch,
|
|
25
26
|
isSideboardScratchPath,
|
|
@@ -45,10 +46,12 @@ import {
|
|
|
45
46
|
worktreeDisplayLabel,
|
|
46
47
|
worktreeDisplayLabelForGroup,
|
|
47
48
|
worktreeNameFromPath
|
|
48
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-FUUVPN4A.js";
|
|
49
50
|
import "./chunk-B3SJXYIJ.js";
|
|
50
51
|
import "./chunk-7FD7COKE.js";
|
|
51
52
|
import "./chunk-AE5VBOFE.js";
|
|
53
|
+
import "./chunk-XKNBSYA7.js";
|
|
54
|
+
import "./chunk-NSTQ6QKD.js";
|
|
52
55
|
import "./chunk-KGZBYWZ3.js";
|
|
53
56
|
import "./chunk-7MV3RXSC.js";
|
|
54
57
|
export {
|
|
@@ -71,6 +74,7 @@ export {
|
|
|
71
74
|
getPrMeta,
|
|
72
75
|
ghHeadRef,
|
|
73
76
|
ghRepoSelectArgs,
|
|
77
|
+
githubAgentGitEnv,
|
|
74
78
|
isDirty,
|
|
75
79
|
isPlaceholderBranch,
|
|
76
80
|
isSideboardScratchPath,
|
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
|
-
};
|