@sideboard-ai/core 0.1.45 → 0.1.49

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 (45) hide show
  1. package/dist/agents/cursor-runner.cjs +11 -4
  2. package/dist/agents/cursor-runner.js +11 -4
  3. package/dist/{agents-JSHCAZUZ.js → agents-3P4N6KHC.js} +12 -2
  4. package/dist/agents-LUB3Q773.js +82 -0
  5. package/dist/app-settings-7XVDQJ7F.js +80 -0
  6. package/dist/{app-settings-LYGVDGZY.js → app-settings-LZP632KI.js} +1 -1
  7. package/dist/{chunk-U3EQKJHA.js → chunk-3NAS4MWH.js} +1 -1
  8. package/dist/{chunk-ZNSM2DDD.js → chunk-5WYEJ3F3.js} +6 -2
  9. package/dist/chunk-7MV3RXSC.js +277 -0
  10. package/dist/chunk-DF5VQQKA.js +191 -0
  11. package/dist/chunk-E35APBHV.js +269 -0
  12. package/dist/chunk-EOYDCKQC.js +172 -0
  13. package/dist/chunk-GI7E5733.js +30 -0
  14. package/dist/chunk-GZXBYHJC.js +148 -0
  15. package/dist/chunk-HBJSHRY2.js +494 -0
  16. package/dist/chunk-ISY4EGF6.js +77 -0
  17. package/dist/chunk-KGZBYWZ3.js +23 -0
  18. package/dist/chunk-RQI4TOXK.js +2232 -0
  19. package/dist/chunk-S2LL5HA4.js +33 -0
  20. package/dist/{chunk-ANZ566Z5.js → chunk-SS34TVSY.js} +66 -7
  21. package/dist/{chunk-WYY3J7GR.js → chunk-T5QQVXK3.js} +6 -3
  22. package/dist/chunk-V4JRXYYU.js +122 -0
  23. package/dist/{chunk-6NAPN2N5.js → chunk-ZQCQIWIP.js} +1 -1
  24. package/dist/chunk-ZVV5EEQN.js +1892 -0
  25. package/dist/connected-teams-UBXHZGO4.js +24 -0
  26. package/dist/{coordinator-prompt-2XFYG3C5.js → coordinator-prompt-SPGDT7J5.js} +1 -1
  27. package/dist/coordinator-prompt-VG4BZ5JL.js +25 -0
  28. package/dist/cursor-recover-NNK7JPQM.js +44 -0
  29. package/dist/{global-workspace-YFOQUGWD.js → global-workspace-KSR3E63K.js} +3 -2
  30. package/dist/global-workspace-OJF4ENH4.js +40 -0
  31. package/dist/index.cjs +377 -30
  32. package/dist/index.d.cts +70 -11
  33. package/dist/index.d.ts +70 -11
  34. package/dist/index.js +5779 -193
  35. package/dist/mcp/run-stdio.cjs +331 -32
  36. package/dist/mcp/run-stdio.js +5618 -14
  37. package/dist/paths-2OFB7UJG.js +28 -0
  38. package/dist/run-HMRSRG3U.js +12 -0
  39. package/dist/thread-store-XICUWFNM.js +32 -0
  40. package/dist/title-4WAKWZRF.js +27 -0
  41. package/dist/workspaces-OZE7LRDO.js +24 -0
  42. package/dist/{workspaces-TIKLNDW3.js → workspaces-UJX7JIGH.js} +4 -3
  43. package/dist/worktree-XG5PCLZY.js +94 -0
  44. package/package.json +2 -2
  45. package/dist/chunk-I6QGZOOS.js +0 -5667
@@ -0,0 +1,77 @@
1
+ #!/usr/bin/env node
2
+
3
+
4
+ // src/git/run.ts
5
+ import { execa } from "execa";
6
+
7
+ // src/agents/path.ts
8
+ import { homedir } from "os";
9
+ import { delimiter } from "path";
10
+ var EXTRA_BIN_DIRS = [
11
+ ".local/bin",
12
+ ".cargo/bin",
13
+ ".nvm/current/bin",
14
+ ".asdf/shims",
15
+ // pnpm / npm global bins (where `@brightsy/cli` typically lands)
16
+ "Library/pnpm",
17
+ ".pnpm"
18
+ ];
19
+ function ensureAgentPath(env = process.env) {
20
+ const home = env.HOME || env.USERPROFILE || homedir();
21
+ const current = env.PATH ?? "";
22
+ const parts = current.split(delimiter).filter(Boolean);
23
+ const seen = new Set(parts);
24
+ const extras = [
25
+ ...EXTRA_BIN_DIRS.map((rel) => `${home}/${rel}`),
26
+ "/opt/homebrew/bin",
27
+ "/usr/local/bin"
28
+ ];
29
+ for (const dir of extras.reverse()) {
30
+ if (!dir || seen.has(dir)) continue;
31
+ parts.unshift(dir);
32
+ seen.add(dir);
33
+ }
34
+ const next = parts.join(delimiter);
35
+ env.PATH = next;
36
+ return next;
37
+ }
38
+
39
+ // src/git/run.ts
40
+ async function run(file, args, opts) {
41
+ ensureAgentPath();
42
+ try {
43
+ const result = await execa(file, args, {
44
+ cwd: opts?.cwd,
45
+ env: { ...process.env, ...opts?.env },
46
+ reject: opts?.reject ?? true
47
+ });
48
+ return {
49
+ stdout: result.stdout ?? "",
50
+ stderr: result.stderr ?? "",
51
+ exitCode: result.exitCode ?? 0
52
+ };
53
+ } catch (err) {
54
+ const e = err;
55
+ if (opts?.reject === false) {
56
+ return {
57
+ stdout: String(e.stdout ?? ""),
58
+ stderr: String(e.stderr ?? ""),
59
+ exitCode: e.exitCode ?? 1
60
+ };
61
+ }
62
+ throw err;
63
+ }
64
+ }
65
+ async function git(args, cwd, opts) {
66
+ return run("git", args, { cwd, reject: opts?.reject });
67
+ }
68
+ async function gh(args, cwd, opts) {
69
+ return run("gh", args, { cwd, reject: opts?.reject });
70
+ }
71
+
72
+ export {
73
+ ensureAgentPath,
74
+ run,
75
+ git,
76
+ gh
77
+ };
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env node
2
+
3
+
4
+ // src/types/thinking-effort.ts
5
+ var THINKING_EFFORTS = [
6
+ "low",
7
+ "medium",
8
+ "high",
9
+ "xhigh",
10
+ "max"
11
+ ];
12
+ var EFFORT_SET = new Set(THINKING_EFFORTS);
13
+ function normalizeThinkingEffort(value) {
14
+ if (typeof value !== "string") return null;
15
+ const v = value.trim().toLowerCase();
16
+ if (v === "normal") return "medium";
17
+ if (EFFORT_SET.has(v)) return v;
18
+ return null;
19
+ }
20
+
21
+ export {
22
+ normalizeThinkingEffort
23
+ };