@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.
- package/dist/agents/cursor-runner.cjs +11 -4
- package/dist/agents/cursor-runner.js +11 -4
- package/dist/{agents-JSHCAZUZ.js → agents-3P4N6KHC.js} +12 -2
- package/dist/agents-LUB3Q773.js +82 -0
- package/dist/app-settings-7XVDQJ7F.js +80 -0
- package/dist/{app-settings-LYGVDGZY.js → app-settings-LZP632KI.js} +1 -1
- package/dist/{chunk-U3EQKJHA.js → chunk-3NAS4MWH.js} +1 -1
- package/dist/{chunk-ZNSM2DDD.js → chunk-5WYEJ3F3.js} +6 -2
- package/dist/chunk-7MV3RXSC.js +277 -0
- package/dist/chunk-DF5VQQKA.js +191 -0
- package/dist/chunk-E35APBHV.js +269 -0
- package/dist/chunk-EOYDCKQC.js +172 -0
- package/dist/chunk-GI7E5733.js +30 -0
- package/dist/chunk-GZXBYHJC.js +148 -0
- package/dist/chunk-HBJSHRY2.js +494 -0
- package/dist/chunk-ISY4EGF6.js +77 -0
- package/dist/chunk-KGZBYWZ3.js +23 -0
- package/dist/chunk-RQI4TOXK.js +2232 -0
- package/dist/chunk-S2LL5HA4.js +33 -0
- package/dist/{chunk-ANZ566Z5.js → chunk-SS34TVSY.js} +66 -7
- package/dist/{chunk-WYY3J7GR.js → chunk-T5QQVXK3.js} +6 -3
- package/dist/chunk-V4JRXYYU.js +122 -0
- package/dist/{chunk-6NAPN2N5.js → chunk-ZQCQIWIP.js} +1 -1
- package/dist/chunk-ZVV5EEQN.js +1892 -0
- package/dist/connected-teams-UBXHZGO4.js +24 -0
- package/dist/{coordinator-prompt-2XFYG3C5.js → coordinator-prompt-SPGDT7J5.js} +1 -1
- package/dist/coordinator-prompt-VG4BZ5JL.js +25 -0
- package/dist/cursor-recover-NNK7JPQM.js +44 -0
- package/dist/{global-workspace-YFOQUGWD.js → global-workspace-KSR3E63K.js} +3 -2
- package/dist/global-workspace-OJF4ENH4.js +40 -0
- package/dist/index.cjs +377 -30
- package/dist/index.d.cts +70 -11
- package/dist/index.d.ts +70 -11
- package/dist/index.js +5779 -193
- package/dist/mcp/run-stdio.cjs +331 -32
- package/dist/mcp/run-stdio.js +5618 -14
- package/dist/paths-2OFB7UJG.js +28 -0
- package/dist/run-HMRSRG3U.js +12 -0
- package/dist/thread-store-XICUWFNM.js +32 -0
- package/dist/title-4WAKWZRF.js +27 -0
- package/dist/workspaces-OZE7LRDO.js +24 -0
- package/dist/{workspaces-TIKLNDW3.js → workspaces-UJX7JIGH.js} +4 -3
- package/dist/worktree-XG5PCLZY.js +94 -0
- package/package.json +2 -2
- package/dist/chunk-I6QGZOOS.js +0 -5667
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
appDataDir,
|
|
5
|
+
globalAgentCwd,
|
|
6
|
+
locksDir,
|
|
7
|
+
repoSlug,
|
|
8
|
+
sideboardHomeDir,
|
|
9
|
+
sideboardReposDir,
|
|
10
|
+
sideboardWorkspacesDir,
|
|
11
|
+
threadFilePath,
|
|
12
|
+
threadLockPath,
|
|
13
|
+
threadsDir,
|
|
14
|
+
worktreesRoot
|
|
15
|
+
} from "./chunk-7MV3RXSC.js";
|
|
16
|
+
export {
|
|
17
|
+
appDataDir,
|
|
18
|
+
globalAgentCwd,
|
|
19
|
+
locksDir,
|
|
20
|
+
repoSlug,
|
|
21
|
+
sideboardHomeDir,
|
|
22
|
+
sideboardReposDir,
|
|
23
|
+
sideboardWorkspacesDir,
|
|
24
|
+
threadFilePath,
|
|
25
|
+
threadLockPath,
|
|
26
|
+
threadsDir,
|
|
27
|
+
worktreesRoot
|
|
28
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
appendMessage,
|
|
5
|
+
createEmptyThread,
|
|
6
|
+
deleteThreadRecord,
|
|
7
|
+
findThreadByRef,
|
|
8
|
+
listThreads,
|
|
9
|
+
normalizeThread,
|
|
10
|
+
readThread,
|
|
11
|
+
resolveThreadEffort,
|
|
12
|
+
setStatus,
|
|
13
|
+
updateThread,
|
|
14
|
+
withThreadLock,
|
|
15
|
+
writeThread
|
|
16
|
+
} from "./chunk-EOYDCKQC.js";
|
|
17
|
+
import "./chunk-KGZBYWZ3.js";
|
|
18
|
+
import "./chunk-7MV3RXSC.js";
|
|
19
|
+
export {
|
|
20
|
+
appendMessage,
|
|
21
|
+
createEmptyThread,
|
|
22
|
+
deleteThreadRecord,
|
|
23
|
+
findThreadByRef,
|
|
24
|
+
listThreads,
|
|
25
|
+
normalizeThread,
|
|
26
|
+
readThread,
|
|
27
|
+
resolveThreadEffort,
|
|
28
|
+
setStatus,
|
|
29
|
+
updateThread,
|
|
30
|
+
withThreadLock,
|
|
31
|
+
writeThread
|
|
32
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
// src/threads/title.ts
|
|
5
|
+
function titleFromPrompt(prompt, max = 60) {
|
|
6
|
+
let t = (prompt.trim().split(/\n/)[0] ?? "").trim().replace(/\s+/g, " ");
|
|
7
|
+
if (!t) return "";
|
|
8
|
+
const sentence = t.match(/^(.+?[.!?])(\s|$)/);
|
|
9
|
+
if (sentence?.[1] && sentence[1].length >= 12 && sentence[1].length <= max + 20) {
|
|
10
|
+
t = sentence[1];
|
|
11
|
+
}
|
|
12
|
+
t = t.replace(/[.?!]+$/g, "").trim();
|
|
13
|
+
const chatter = /^(hey[,!]?\s+|hi[,!]?\s+|hello[,!]?\s+|please\s+|can you\s+|could you\s+|would you\s+|i want (you )?to\s+|i need (you )?to\s+)/i;
|
|
14
|
+
for (let i = 0; i < 4 && chatter.test(t); i++) {
|
|
15
|
+
t = t.replace(chatter, "");
|
|
16
|
+
}
|
|
17
|
+
if (!t) return "";
|
|
18
|
+
t = t.charAt(0).toUpperCase() + t.slice(1);
|
|
19
|
+
if (t.length <= max) return t;
|
|
20
|
+
const sliced = t.slice(0, max - 1);
|
|
21
|
+
const lastSpace = sliced.lastIndexOf(" ");
|
|
22
|
+
const base = lastSpace > Math.floor(max * 0.4) ? sliced.slice(0, lastSpace) : sliced;
|
|
23
|
+
return `${base.trimEnd()}\u2026`;
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
titleFromPrompt
|
|
27
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
addWorkspace,
|
|
5
|
+
ensureWorkspace,
|
|
6
|
+
listWorkspaces,
|
|
7
|
+
removeWorkspace,
|
|
8
|
+
syncWorkspacesFromThreads
|
|
9
|
+
} from "./chunk-V4JRXYYU.js";
|
|
10
|
+
import "./chunk-DF5VQQKA.js";
|
|
11
|
+
import "./chunk-S2LL5HA4.js";
|
|
12
|
+
import "./chunk-GZXBYHJC.js";
|
|
13
|
+
import "./chunk-ZVV5EEQN.js";
|
|
14
|
+
import "./chunk-EOYDCKQC.js";
|
|
15
|
+
import "./chunk-ISY4EGF6.js";
|
|
16
|
+
import "./chunk-KGZBYWZ3.js";
|
|
17
|
+
import "./chunk-7MV3RXSC.js";
|
|
18
|
+
export {
|
|
19
|
+
addWorkspace,
|
|
20
|
+
ensureWorkspace,
|
|
21
|
+
listWorkspaces,
|
|
22
|
+
removeWorkspace,
|
|
23
|
+
syncWorkspacesFromThreads
|
|
24
|
+
};
|
|
@@ -4,9 +4,10 @@ import {
|
|
|
4
4
|
listWorkspaces,
|
|
5
5
|
removeWorkspace,
|
|
6
6
|
syncWorkspacesFromThreads
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-3NAS4MWH.js";
|
|
8
|
+
import "./chunk-5WYEJ3F3.js";
|
|
9
|
+
import "./chunk-GI7E5733.js";
|
|
10
|
+
import "./chunk-ZQCQIWIP.js";
|
|
10
11
|
import "./chunk-FV6FN6V5.js";
|
|
11
12
|
import "./chunk-O6W3P7V3.js";
|
|
12
13
|
import "./chunk-77WWLBCI.js";
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
FAMOUS_SOCCER_TEAMS,
|
|
5
|
+
allocateTeamName,
|
|
6
|
+
allocateTeamSlug,
|
|
7
|
+
branchDisplayLabel,
|
|
8
|
+
collectTakenTeamSlugs,
|
|
9
|
+
commitAll,
|
|
10
|
+
createOrUpdatePr,
|
|
11
|
+
createThreadWorktree,
|
|
12
|
+
currentBranch,
|
|
13
|
+
detectLocalMergeConflicts,
|
|
14
|
+
ensureGhPreferOrigin,
|
|
15
|
+
fetchPrHead,
|
|
16
|
+
getPr,
|
|
17
|
+
getPrChecks,
|
|
18
|
+
getPrDetails,
|
|
19
|
+
getPrMeta,
|
|
20
|
+
ghHeadRef,
|
|
21
|
+
ghRepoSelectArgs,
|
|
22
|
+
isDirty,
|
|
23
|
+
isPlaceholderBranch,
|
|
24
|
+
listBranches,
|
|
25
|
+
listPrs,
|
|
26
|
+
listWorktrees,
|
|
27
|
+
lookupSoccerTeam,
|
|
28
|
+
mergePr,
|
|
29
|
+
normalizeWorktreePath,
|
|
30
|
+
originGhRepoEnv,
|
|
31
|
+
parseGithubSlugFromRemoteUrl,
|
|
32
|
+
pushBranch,
|
|
33
|
+
removeWorktree,
|
|
34
|
+
resolveDefaultBranch,
|
|
35
|
+
resolveDiffBaseRef,
|
|
36
|
+
resolveGithubRepoSlug,
|
|
37
|
+
resolvePrSelector,
|
|
38
|
+
resolveRepoRoot,
|
|
39
|
+
resolveWorktreeStartPoint,
|
|
40
|
+
slugify,
|
|
41
|
+
suggestSlug,
|
|
42
|
+
threadDisplayLabel,
|
|
43
|
+
worktreeDisplayLabel,
|
|
44
|
+
worktreeDisplayLabelForGroup,
|
|
45
|
+
worktreeNameFromPath
|
|
46
|
+
} from "./chunk-ZVV5EEQN.js";
|
|
47
|
+
import "./chunk-EOYDCKQC.js";
|
|
48
|
+
import "./chunk-ISY4EGF6.js";
|
|
49
|
+
import "./chunk-KGZBYWZ3.js";
|
|
50
|
+
import "./chunk-7MV3RXSC.js";
|
|
51
|
+
export {
|
|
52
|
+
FAMOUS_SOCCER_TEAMS,
|
|
53
|
+
allocateTeamName,
|
|
54
|
+
allocateTeamSlug,
|
|
55
|
+
branchDisplayLabel,
|
|
56
|
+
collectTakenTeamSlugs,
|
|
57
|
+
commitAll,
|
|
58
|
+
createOrUpdatePr,
|
|
59
|
+
createThreadWorktree,
|
|
60
|
+
currentBranch,
|
|
61
|
+
detectLocalMergeConflicts,
|
|
62
|
+
ensureGhPreferOrigin,
|
|
63
|
+
fetchPrHead,
|
|
64
|
+
getPr,
|
|
65
|
+
getPrChecks,
|
|
66
|
+
getPrDetails,
|
|
67
|
+
getPrMeta,
|
|
68
|
+
ghHeadRef,
|
|
69
|
+
ghRepoSelectArgs,
|
|
70
|
+
isDirty,
|
|
71
|
+
isPlaceholderBranch,
|
|
72
|
+
listBranches,
|
|
73
|
+
listPrs,
|
|
74
|
+
listWorktrees,
|
|
75
|
+
lookupSoccerTeam,
|
|
76
|
+
mergePr,
|
|
77
|
+
normalizeWorktreePath,
|
|
78
|
+
originGhRepoEnv,
|
|
79
|
+
parseGithubSlugFromRemoteUrl,
|
|
80
|
+
pushBranch,
|
|
81
|
+
removeWorktree,
|
|
82
|
+
resolveDefaultBranch,
|
|
83
|
+
resolveDiffBaseRef,
|
|
84
|
+
resolveGithubRepoSlug,
|
|
85
|
+
resolvePrSelector,
|
|
86
|
+
resolveRepoRoot,
|
|
87
|
+
resolveWorktreeStartPoint,
|
|
88
|
+
slugify,
|
|
89
|
+
suggestSlug,
|
|
90
|
+
threadDisplayLabel,
|
|
91
|
+
worktreeDisplayLabel,
|
|
92
|
+
worktreeDisplayLabelForGroup,
|
|
93
|
+
worktreeNameFromPath
|
|
94
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sideboard-ai/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.49",
|
|
4
4
|
"description": "Sideboard core — orchestration, agents, git worktrees, MCP server",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"vitest": "^3.0.9"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
|
-
"build": "tsup src/index.ts src/agents/cursor-runner.ts
|
|
58
|
+
"build": "tsup src/index.ts src/agents/cursor-runner.ts --format esm,cjs --dts --clean && tsup --config tsup.mcp.config.ts && node scripts/add-bin-shebang.cjs",
|
|
59
59
|
"dev": "tsup src/index.ts src/agents/cursor-runner.ts src/mcp/run-stdio.ts --format esm,cjs --dts --watch",
|
|
60
60
|
"test": "vitest run",
|
|
61
61
|
"typecheck": "tsc --noEmit"
|