@sideboard-ai/core 0.1.73 → 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.
Files changed (32) hide show
  1. package/dist/agents/cursor-runner.cjs +1 -1
  2. package/dist/agents/cursor-runner.js +1 -1
  3. package/dist/{agents-77GE7VRW.js → agents-LKUHPPEQ.js} +3 -3
  4. package/dist/{agents-GUFUYXKP.js → agents-XJV6J3K2.js} +4 -4
  5. package/dist/{caffeinate-hold-KLC6SABD.js → caffeinate-hold-EAZNWJBE.js} +5 -1
  6. package/dist/caffeinate-hold-OHAUWOA6.js +20 -0
  7. package/dist/{chunk-AFW3M6LU.js → chunk-2FJI5JXX.js} +17 -11
  8. package/dist/{chunk-CXT2PLO7.js → chunk-2ZIPJRJE.js} +1 -1
  9. package/dist/{chunk-CYKPUTXN.js → chunk-75U65MBE.js} +1 -1
  10. package/dist/{chunk-V4ACEJX2.js → chunk-EEKSZTMU.js} +14 -12
  11. package/dist/{chunk-POW7JCB5.js → chunk-GWTLKXXP.js} +1 -1
  12. package/dist/chunk-MFF2RE3I.js +168 -0
  13. package/dist/{chunk-WSFZPOPH.js → chunk-QD37IILI.js} +17 -11
  14. package/dist/chunk-RV6DBEDQ.js +170 -0
  15. package/dist/{chunk-3WJAUKIL.js → chunk-SEOICVGB.js} +1 -1
  16. package/dist/{chunk-NF6Y4GTE.js → chunk-VERLUKN2.js} +1 -1
  17. package/dist/{chunk-6RFPKZNC.js → chunk-XJNCWYFR.js} +14 -12
  18. package/dist/{coordinator-prompt-4U2QNHGT.js → coordinator-prompt-LLFJUO2R.js} +1 -1
  19. package/dist/{coordinator-prompt-ZHBDHMZB.js → coordinator-prompt-MRCMMRSF.js} +1 -1
  20. package/dist/{global-workspace-VF56FTPY.js → global-workspace-TWHMYLTZ.js} +2 -2
  21. package/dist/{global-workspace-S3B6ESZS.js → global-workspace-YNMNO4CL.js} +2 -2
  22. package/dist/index.cjs +1203 -468
  23. package/dist/index.d.cts +177 -23
  24. package/dist/index.d.ts +177 -23
  25. package/dist/index.js +1049 -401
  26. package/dist/mcp/run-stdio.cjs +848 -306
  27. package/dist/mcp/run-stdio.js +656 -182
  28. package/dist/{workspaces-ZJ45O4CD.js → workspaces-GQ4XKBD3.js} +3 -3
  29. package/dist/{workspaces-R66324S7.js → workspaces-O3U5BENH.js} +3 -3
  30. package/package.json +1 -1
  31. package/dist/caffeinate-hold-BEJIYPJ7.js +0 -107
  32. package/dist/chunk-JAWEDVVA.js +0 -106
@@ -6,9 +6,9 @@ import {
6
6
  listWorkspaces,
7
7
  removeWorkspace,
8
8
  syncWorkspacesFromThreads
9
- } from "./chunk-CXT2PLO7.js";
10
- import "./chunk-POW7JCB5.js";
11
- import "./chunk-6RFPKZNC.js";
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-CYKPUTXN.js";
8
- import "./chunk-NF6Y4GTE.js";
9
- import "./chunk-V4ACEJX2.js";
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@sideboard-ai/core",
3
- "version": "0.1.73",
3
+ "version": "0.1.77",
4
4
  "description": "Sideboard core — orchestration, agents, git worktrees, MCP server",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -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
- };
@@ -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
- };