@sideboard-ai/core 0.1.314 → 0.1.316
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/{abletime-T5YSJLNZ.js → abletime-NZ2ABWAL.js} +4 -4
- package/dist/{abletime-SJUVZVRU.js → abletime-TKAFNXCM.js} +4 -4
- package/dist/{abletime-oauth-73TFJME4.js → abletime-oauth-CBFFBINA.js} +3 -3
- package/dist/{abletime-oauth-2TOOZ2FN.js → abletime-oauth-S4AXA4WR.js} +3 -3
- package/dist/{abletime-rest-PNUGH2FS.js → abletime-rest-NSOP72AI.js} +3 -3
- package/dist/{abletime-rest-5TDRIFEV.js → abletime-rest-ORBELZQO.js} +3 -3
- package/dist/{agents-KIC6CNXF.js → agents-5XJ7EHGU.js} +6 -6
- package/dist/{agents-S7VBS5JL.js → agents-Y3M3EKLY.js} +6 -6
- package/dist/{app-settings-CC65VPBL.js → app-settings-CZVFMOI5.js} +3 -1
- package/dist/{app-settings-DZ5AY7N5.js → app-settings-RQAFJZCD.js} +3 -1
- package/dist/{chunk-6EGQPMSR.js → chunk-4ISF5XUA.js} +47 -26
- package/dist/{chunk-EGTCXNQM.js → chunk-53OCOGND.js} +2 -2
- package/dist/{chunk-DLGGLV2M.js → chunk-5CTG5W7S.js} +2 -2
- package/dist/{chunk-YK77HB3W.js → chunk-7BLIY2DD.js} +45 -25
- package/dist/{chunk-CFTOKVQN.js → chunk-7SCVGGF6.js} +5 -5
- package/dist/{chunk-7UP4D5XI.js → chunk-ATSZXRFQ.js} +6 -5
- package/dist/{chunk-BIPXOHZI.js → chunk-BPBDGJ43.js} +2 -2
- package/dist/{chunk-CW4FIIDE.js → chunk-CCUGIVYN.js} +3 -3
- package/dist/{chunk-HG25AYBV.js → chunk-CHUPIJP7.js} +14 -0
- package/dist/{chunk-5QYCCXXQ.js → chunk-DNWO6PQJ.js} +6 -5
- package/dist/{chunk-JWW66PO3.js → chunk-ELBK34TY.js} +5 -5
- package/dist/{chunk-A45QMSVB.js → chunk-FVTR54LY.js} +5 -5
- package/dist/{chunk-PHMFAU35.js → chunk-GCHSJCCX.js} +96 -64
- package/dist/{chunk-ZSVKUOFH.js → chunk-GFM63DTU.js} +8 -5
- package/dist/{chunk-OLSLE3LO.js → chunk-GXSV3X3L.js} +3 -3
- package/dist/{chunk-JARCAPKL.js → chunk-I5CLCWUK.js} +3 -3
- package/dist/{chunk-TO5UL7VN.js → chunk-MBYGWNLQ.js} +1 -1
- package/dist/{chunk-7DBL5AF4.js → chunk-NKVNHBDB.js} +4 -4
- package/dist/{chunk-U4WACWBC.js → chunk-NXNNYY3Q.js} +2 -2
- package/dist/{chunk-NMPQ7GIS.js → chunk-OLYNM52B.js} +2 -2
- package/dist/{chunk-S3KYDK6W.js → chunk-PN32Z4JL.js} +8 -5
- package/dist/{chunk-ZQLZ2A3I.js → chunk-S3U4HR5F.js} +2 -2
- package/dist/{chunk-3UDRWMIM.js → chunk-U35AHE2P.js} +14 -0
- package/dist/{chunk-A2YXQC65.js → chunk-U7PNCYNX.js} +96 -64
- package/dist/{chunk-SZ3XS2WM.js → chunk-VVV7EI6T.js} +3 -2
- package/dist/{chunk-6424BACS.js → chunk-VZAJVX36.js} +3 -2
- package/dist/{conductor-IIDQ2U24.js → conductor-CFLBKVHJ.js} +5 -5
- package/dist/{conductor-G6TKCMIW.js → conductor-NZ4V5CJX.js} +5 -5
- package/dist/{coordinator-prompt-EXJSULAR.js → coordinator-prompt-HUZC4DZ2.js} +4 -4
- package/dist/{coordinator-prompt-5USNNCG6.js → coordinator-prompt-SPOYUZG5.js} +4 -4
- package/dist/{global-workspace-ZGPIGJ6J.js → global-workspace-3NNDDTFD.js} +4 -4
- package/dist/{global-workspace-UDRTONQE.js → global-workspace-SK4JQBPN.js} +4 -4
- package/dist/index.cjs +448 -71
- package/dist/index.d.cts +81 -55
- package/dist/index.d.ts +81 -55
- package/dist/index.js +310 -27
- package/dist/mcp/run-stdio.cjs +152 -63
- package/dist/mcp/run-stdio.js +15 -14
- package/dist/{optional-cli-MLZSE6KW.js → optional-cli-EMSZBYDE.js} +3 -3
- package/dist/{optional-cli-SI4BCPRH.js → optional-cli-LMSRZNH4.js} +4 -4
- package/dist/{orchestrator-AM7VT2BD.js → orchestrator-7342RGRU.js} +9 -9
- package/dist/{orchestrator-V6NLIPLH.js → orchestrator-KXEPWTG5.js} +9 -9
- package/dist/{thread-store-HY22M5A7.js → thread-store-5OF6M6VZ.js} +1 -1
- package/dist/{thread-store-XMUQDO5O.js → thread-store-GOVVXQV2.js} +1 -1
- package/dist/{workspaces-3TTODHKN.js → workspaces-52L6NZ3P.js} +4 -4
- package/dist/{workspaces-TATO466L.js → workspaces-EYNZDL45.js} +4 -4
- package/dist/{worktree-C5VI46RZ.js → worktree-BP5ICYQ2.js} +3 -3
- package/dist/{worktree-FMK57ULT.js → worktree-UCOSAI7J.js} +3 -3
- package/package.json +1 -1
|
@@ -55,6 +55,73 @@ function coerceOrchestratorAgent(agent, fallback = "claude") {
|
|
|
55
55
|
return isOrchestratorCapableAgent(agent) ? agent : fallback;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
// src/store/thread-option-defaults.ts
|
|
59
|
+
function normalizeAutonomy(value) {
|
|
60
|
+
return value === "default" || value === "full" ? value : void 0;
|
|
61
|
+
}
|
|
62
|
+
function getDefaultAgent(settings = loadAppSettings()) {
|
|
63
|
+
return settings.defaults.agent ?? "claude";
|
|
64
|
+
}
|
|
65
|
+
function getDefaultModel(settings = loadAppSettings()) {
|
|
66
|
+
const model = settings.defaults.model?.trim();
|
|
67
|
+
return model || null;
|
|
68
|
+
}
|
|
69
|
+
function getDefaultEffort(settings = loadAppSettings()) {
|
|
70
|
+
return normalizeThinkingEffort(settings.defaults.effort) ?? "high";
|
|
71
|
+
}
|
|
72
|
+
function getDefaultFast(settings = loadAppSettings()) {
|
|
73
|
+
return settings.defaults.fast === true;
|
|
74
|
+
}
|
|
75
|
+
function getDefaultAutonomy(settings = loadAppSettings()) {
|
|
76
|
+
return settings.defaults.autonomy === "default" ? "default" : "full";
|
|
77
|
+
}
|
|
78
|
+
function resolveThreadDefaults(settings = loadAppSettings()) {
|
|
79
|
+
return {
|
|
80
|
+
agent: getDefaultAgent(settings),
|
|
81
|
+
model: getDefaultModel(settings),
|
|
82
|
+
effort: getDefaultEffort(settings),
|
|
83
|
+
fast: getDefaultFast(settings),
|
|
84
|
+
autonomy: getDefaultAutonomy(settings)
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
function resolveOrchestratorDefaults(settings = loadAppSettings()) {
|
|
88
|
+
const account = resolveThreadDefaults(settings);
|
|
89
|
+
const orch = settings.defaults.orchestrator;
|
|
90
|
+
const agent = coerceOrchestratorAgent(orch?.agent ?? account.agent);
|
|
91
|
+
let model = orch ? orch.model?.trim() || null : account.model;
|
|
92
|
+
if (model && agent !== "cursor" && /^(default|auto)$/i.test(model.trim())) {
|
|
93
|
+
model = null;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
agent,
|
|
97
|
+
model,
|
|
98
|
+
effort: orch?.effort ?? account.effort,
|
|
99
|
+
fast: orch?.fast ?? account.fast,
|
|
100
|
+
autonomy: orch?.autonomy ?? account.autonomy
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
function mergeThreadOptionOverrides(defaults, overrides) {
|
|
104
|
+
const effort = overrides.effort === void 0 || overrides.effort === null ? defaults.effort : normalizeThinkingEffort(overrides.effort) ?? defaults.effort;
|
|
105
|
+
const agent = overrides.agent ?? defaults.agent;
|
|
106
|
+
let model = overrides.model === void 0 ? defaults.model : overrides.model?.trim() || null;
|
|
107
|
+
if (model && agent !== "cursor" && /^(default|auto)$/i.test(model.trim())) {
|
|
108
|
+
model = null;
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
agent,
|
|
112
|
+
model,
|
|
113
|
+
effort,
|
|
114
|
+
fast: overrides.fast === void 0 || overrides.fast === null ? defaults.fast : Boolean(overrides.fast),
|
|
115
|
+
autonomy: overrides.autonomy == null ? defaults.autonomy : normalizeAutonomy(overrides.autonomy) ?? defaults.autonomy
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
function resolveNewThreadOptions(overrides = {}, settings = loadAppSettings()) {
|
|
119
|
+
return mergeThreadOptionOverrides(resolveThreadDefaults(settings), overrides);
|
|
120
|
+
}
|
|
121
|
+
function resolveNewOrchestratorOptions(overrides = {}, settings = loadAppSettings()) {
|
|
122
|
+
return mergeThreadOptionOverrides(resolveOrchestratorDefaults(settings), overrides);
|
|
123
|
+
}
|
|
124
|
+
|
|
58
125
|
// src/store/account-profile.ts
|
|
59
126
|
var PROFILE_NOTES_MAX = 2e3;
|
|
60
127
|
var LEGACY_ROLE_LABELS = {
|
|
@@ -1025,6 +1092,8 @@ function normalizeOrchestratorDefaults(raw) {
|
|
|
1025
1092
|
if (typeof source.fast === "boolean") {
|
|
1026
1093
|
out.fast = source.fast;
|
|
1027
1094
|
}
|
|
1095
|
+
const autonomy = normalizeAutonomy(source.autonomy);
|
|
1096
|
+
if (autonomy) out.autonomy = autonomy;
|
|
1028
1097
|
return Object.keys(out).length > 0 ? out : void 0;
|
|
1029
1098
|
}
|
|
1030
1099
|
function normalizeDefaults(raw) {
|
|
@@ -1044,6 +1113,8 @@ function normalizeDefaults(raw) {
|
|
|
1044
1113
|
if (typeof source.fast === "boolean") {
|
|
1045
1114
|
out.fast = source.fast;
|
|
1046
1115
|
}
|
|
1116
|
+
const autonomy = normalizeAutonomy(source.autonomy);
|
|
1117
|
+
if (autonomy) out.autonomy = autonomy;
|
|
1047
1118
|
const notes = foldLegacyRolesIntoNotes(source.roles, source.role, source.notes);
|
|
1048
1119
|
if (notes) out.notes = notes;
|
|
1049
1120
|
const orchestrator = normalizeOrchestratorDefaults(source.orchestrator);
|
|
@@ -1709,6 +1780,14 @@ function applyOrchestratorDefaultsPatch(current, patch) {
|
|
|
1709
1780
|
next.fast = Boolean(patch.fast);
|
|
1710
1781
|
}
|
|
1711
1782
|
}
|
|
1783
|
+
if ("autonomy" in patch) {
|
|
1784
|
+
if (patch.autonomy == null) {
|
|
1785
|
+
delete next.autonomy;
|
|
1786
|
+
} else {
|
|
1787
|
+
const autonomy = normalizeAutonomy(patch.autonomy);
|
|
1788
|
+
if (autonomy) next.autonomy = autonomy;
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1712
1791
|
return Object.keys(next).length > 0 ? next : void 0;
|
|
1713
1792
|
}
|
|
1714
1793
|
function updateDefaultsSettings(patch) {
|
|
@@ -1743,6 +1822,14 @@ function updateDefaultsSettings(patch) {
|
|
|
1743
1822
|
defaults.fast = Boolean(patch.fast);
|
|
1744
1823
|
}
|
|
1745
1824
|
}
|
|
1825
|
+
if ("autonomy" in patch) {
|
|
1826
|
+
if (patch.autonomy == null) {
|
|
1827
|
+
delete defaults.autonomy;
|
|
1828
|
+
} else {
|
|
1829
|
+
const autonomy = normalizeAutonomy(patch.autonomy);
|
|
1830
|
+
if (autonomy) defaults.autonomy = autonomy;
|
|
1831
|
+
}
|
|
1832
|
+
}
|
|
1746
1833
|
if ("notes" in patch) {
|
|
1747
1834
|
const notes = normalizeProfileNotes(patch.notes);
|
|
1748
1835
|
if (!notes) delete defaults.notes;
|
|
@@ -1792,19 +1879,6 @@ function resolveProjectReviewLabel(settings, repoPath) {
|
|
|
1792
1879
|
if (!key) return "";
|
|
1793
1880
|
return settings.projects[key]?.reviewLabel?.trim() || "";
|
|
1794
1881
|
}
|
|
1795
|
-
function getDefaultAgent(settings = loadAppSettings()) {
|
|
1796
|
-
return settings.defaults.agent ?? "claude";
|
|
1797
|
-
}
|
|
1798
|
-
function getDefaultModel(settings = loadAppSettings()) {
|
|
1799
|
-
const model = settings.defaults.model?.trim();
|
|
1800
|
-
return model || null;
|
|
1801
|
-
}
|
|
1802
|
-
function getDefaultEffort(settings = loadAppSettings()) {
|
|
1803
|
-
return normalizeThinkingEffort(settings.defaults.effort) ?? "high";
|
|
1804
|
-
}
|
|
1805
|
-
function getDefaultFast(settings = loadAppSettings()) {
|
|
1806
|
-
return settings.defaults.fast === true;
|
|
1807
|
-
}
|
|
1808
1882
|
function resolveAccountProfileFromSettings(settings = loadAppSettings()) {
|
|
1809
1883
|
return resolveViewerProfile(settings.defaults);
|
|
1810
1884
|
}
|
|
@@ -1869,49 +1943,6 @@ function writeViewerContext(input) {
|
|
|
1869
1943
|
updateDefaultsSettings({ notes: proposed || null });
|
|
1870
1944
|
return { ok: true, scope: "account", context: proposed };
|
|
1871
1945
|
}
|
|
1872
|
-
function resolveThreadDefaults(settings = loadAppSettings()) {
|
|
1873
|
-
return {
|
|
1874
|
-
agent: getDefaultAgent(settings),
|
|
1875
|
-
model: getDefaultModel(settings),
|
|
1876
|
-
effort: getDefaultEffort(settings),
|
|
1877
|
-
fast: getDefaultFast(settings)
|
|
1878
|
-
};
|
|
1879
|
-
}
|
|
1880
|
-
function resolveOrchestratorDefaults(settings = loadAppSettings()) {
|
|
1881
|
-
const account = resolveThreadDefaults(settings);
|
|
1882
|
-
const orch = settings.defaults.orchestrator;
|
|
1883
|
-
const agent = coerceOrchestratorAgent(orch?.agent ?? account.agent);
|
|
1884
|
-
let model = orch ? orch.model?.trim() || null : account.model;
|
|
1885
|
-
if (model && agent !== "cursor" && /^(default|auto)$/i.test(model.trim())) {
|
|
1886
|
-
model = null;
|
|
1887
|
-
}
|
|
1888
|
-
return {
|
|
1889
|
-
agent,
|
|
1890
|
-
model,
|
|
1891
|
-
effort: orch?.effort ?? account.effort,
|
|
1892
|
-
fast: orch?.fast ?? account.fast
|
|
1893
|
-
};
|
|
1894
|
-
}
|
|
1895
|
-
function mergeThreadOptionOverrides(defaults, overrides) {
|
|
1896
|
-
const effort = overrides.effort === void 0 || overrides.effort === null ? defaults.effort : normalizeThinkingEffort(overrides.effort) ?? defaults.effort;
|
|
1897
|
-
const agent = overrides.agent ?? defaults.agent;
|
|
1898
|
-
let model = overrides.model === void 0 ? defaults.model : overrides.model?.trim() || null;
|
|
1899
|
-
if (model && agent !== "cursor" && /^(default|auto)$/i.test(model.trim())) {
|
|
1900
|
-
model = null;
|
|
1901
|
-
}
|
|
1902
|
-
return {
|
|
1903
|
-
agent,
|
|
1904
|
-
model,
|
|
1905
|
-
effort,
|
|
1906
|
-
fast: overrides.fast === void 0 || overrides.fast === null ? defaults.fast : Boolean(overrides.fast)
|
|
1907
|
-
};
|
|
1908
|
-
}
|
|
1909
|
-
function resolveNewThreadOptions(overrides = {}, settings = loadAppSettings()) {
|
|
1910
|
-
return mergeThreadOptionOverrides(resolveThreadDefaults(settings), overrides);
|
|
1911
|
-
}
|
|
1912
|
-
function resolveNewOrchestratorOptions(overrides = {}, settings = loadAppSettings()) {
|
|
1913
|
-
return mergeThreadOptionOverrides(resolveOrchestratorDefaults(settings), overrides);
|
|
1914
|
-
}
|
|
1915
1946
|
function isLinearConnected(settings = loadAppSettings()) {
|
|
1916
1947
|
return hasLinearCredentials(settings.integrations);
|
|
1917
1948
|
}
|
|
@@ -2319,6 +2350,15 @@ export {
|
|
|
2319
2350
|
isOrchestratorCapableAgent,
|
|
2320
2351
|
assertOrchestratorCapableAgent,
|
|
2321
2352
|
coerceOrchestratorAgent,
|
|
2353
|
+
getDefaultAgent,
|
|
2354
|
+
getDefaultModel,
|
|
2355
|
+
getDefaultEffort,
|
|
2356
|
+
getDefaultFast,
|
|
2357
|
+
getDefaultAutonomy,
|
|
2358
|
+
resolveThreadDefaults,
|
|
2359
|
+
resolveOrchestratorDefaults,
|
|
2360
|
+
resolveNewThreadOptions,
|
|
2361
|
+
resolveNewOrchestratorOptions,
|
|
2322
2362
|
PROFILE_NOTES_MAX,
|
|
2323
2363
|
foldLegacyRolesIntoNotes,
|
|
2324
2364
|
resolveAccountProfile,
|
|
@@ -2372,18 +2412,10 @@ export {
|
|
|
2372
2412
|
updateDefaultsSettings,
|
|
2373
2413
|
updateProjectProfileSettings,
|
|
2374
2414
|
resolveProjectReviewLabel,
|
|
2375
|
-
getDefaultAgent,
|
|
2376
|
-
getDefaultModel,
|
|
2377
|
-
getDefaultEffort,
|
|
2378
|
-
getDefaultFast,
|
|
2379
2415
|
resolveAccountProfileFromSettings,
|
|
2380
2416
|
resolveViewerProfileForRepo,
|
|
2381
2417
|
readViewerContext,
|
|
2382
2418
|
writeViewerContext,
|
|
2383
|
-
resolveThreadDefaults,
|
|
2384
|
-
resolveOrchestratorDefaults,
|
|
2385
|
-
resolveNewThreadOptions,
|
|
2386
|
-
resolveNewOrchestratorOptions,
|
|
2387
2419
|
isLinearConnected,
|
|
2388
2420
|
saveLinearOAuth,
|
|
2389
2421
|
disconnectLinearConnection,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
ensureGhPreferOrigin,
|
|
4
4
|
resolveGithubRepoSlug,
|
|
5
5
|
resolveRepoRoot
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BPBDGJ43.js";
|
|
7
7
|
import {
|
|
8
8
|
allocateTeamName,
|
|
9
9
|
createEmptyThread,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
teamSlugFromName,
|
|
13
13
|
updateThread,
|
|
14
14
|
writeThread
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CHUPIJP7.js";
|
|
16
16
|
import {
|
|
17
17
|
ATTACHMENTS_DIR,
|
|
18
18
|
attachmentsGitignoreBody
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
resolveThreadDefaults,
|
|
30
30
|
resolveViewerProfile,
|
|
31
31
|
resolveViewerProfileForRepo
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-U7PNCYNX.js";
|
|
33
33
|
import {
|
|
34
34
|
appDataDir,
|
|
35
35
|
globalAgentCwd,
|
|
@@ -663,7 +663,8 @@ function createGlobalChat(opts) {
|
|
|
663
663
|
agent: opts.agent,
|
|
664
664
|
model: opts.model,
|
|
665
665
|
effort: opts.effort,
|
|
666
|
-
fast: opts.fast
|
|
666
|
+
fast: opts.fast,
|
|
667
|
+
autonomy: opts.autonomy
|
|
667
668
|
});
|
|
668
669
|
const agent = assertOrchestratorCapableAgent(resolved.agent);
|
|
669
670
|
const worktreePath = globalAgentCwd();
|
|
@@ -677,7 +678,7 @@ function createGlobalChat(opts) {
|
|
|
677
678
|
worktreePath,
|
|
678
679
|
repoPath: GLOBAL_WORKSPACE_ID,
|
|
679
680
|
agent,
|
|
680
|
-
autonomy:
|
|
681
|
+
autonomy: resolved.autonomy,
|
|
681
682
|
model: resolved.model,
|
|
682
683
|
effort: resolved.effort,
|
|
683
684
|
fast: resolved.fast,
|
|
@@ -754,6 +755,7 @@ function ensureSlackCoordinator(teamId, userId, agent, opts) {
|
|
|
754
755
|
if (existing.model !== defaults.model) patch.model = defaults.model;
|
|
755
756
|
if (existing.effort !== defaults.effort) patch.effort = defaults.effort;
|
|
756
757
|
if (existing.fast !== defaults.fast) patch.fast = defaults.fast;
|
|
758
|
+
if (existing.autonomy !== defaults.autonomy) patch.autonomy = defaults.autonomy;
|
|
757
759
|
}
|
|
758
760
|
if (Object.keys(patch).length > 0) {
|
|
759
761
|
return updateThread(existing.id, patch);
|
|
@@ -812,6 +814,7 @@ function ensureCloudCoordinator(agent) {
|
|
|
812
814
|
if (existing.model !== defaults.model) patch.model = defaults.model;
|
|
813
815
|
if (existing.effort !== defaults.effort) patch.effort = defaults.effort;
|
|
814
816
|
if (existing.fast !== defaults.fast) patch.fast = defaults.fast;
|
|
817
|
+
if (existing.autonomy !== defaults.autonomy) patch.autonomy = defaults.autonomy;
|
|
815
818
|
}
|
|
816
819
|
if (Object.keys(patch).length > 0) {
|
|
817
820
|
return updateThread(existing.id, patch);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
abletimeRestUrl,
|
|
3
3
|
textFromAbleTimeDoc
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VVV7EI6T.js";
|
|
5
5
|
import {
|
|
6
6
|
assertAbleTimeCredential,
|
|
7
7
|
callAbleTimeTool,
|
|
8
8
|
normalizeAbleTimeHost,
|
|
9
9
|
rewriteAbleTimeError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ELBK34TY.js";
|
|
11
11
|
import {
|
|
12
12
|
httpFetch
|
|
13
13
|
} from "./chunk-JAT3JFOS.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
getAbleTimeHost,
|
|
21
21
|
isAbleTimeConnected,
|
|
22
22
|
saveAbleTimeConnection
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-U7PNCYNX.js";
|
|
24
24
|
|
|
25
25
|
// src/integrations/issue-attachments.ts
|
|
26
26
|
import { existsSync, mkdirSync, writeFileSync } from "fs";
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import {
|
|
4
4
|
abletimeRestUrl,
|
|
5
5
|
textFromAbleTimeDoc
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VZAJVX36.js";
|
|
7
7
|
import {
|
|
8
8
|
assertAbleTimeCredential,
|
|
9
9
|
callAbleTimeTool,
|
|
10
10
|
normalizeAbleTimeHost,
|
|
11
11
|
rewriteAbleTimeError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7SCVGGF6.js";
|
|
13
13
|
import {
|
|
14
14
|
httpFetch
|
|
15
15
|
} from "./chunk-2GPQZZLY.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
getAbleTimeHost,
|
|
23
23
|
isAbleTimeConnected,
|
|
24
24
|
saveAbleTimeConnection
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-GCHSJCCX.js";
|
|
26
26
|
|
|
27
27
|
// src/integrations/issue-attachments.ts
|
|
28
28
|
import { existsSync, mkdirSync, writeFileSync } from "fs";
|
|
@@ -125,7 +125,7 @@ async function connectedCliPresence(integrations) {
|
|
|
125
125
|
const ids = connectedOptionalServices(integrations).filter((spec) => spec.cli).map((spec) => spec.id);
|
|
126
126
|
if (ids.length === 0) return void 0;
|
|
127
127
|
try {
|
|
128
|
-
const { optionalCliPresence } = await import("./optional-cli-
|
|
128
|
+
const { optionalCliPresence } = await import("./optional-cli-EMSZBYDE.js");
|
|
129
129
|
return await optionalCliPresence(ids);
|
|
130
130
|
} catch {
|
|
131
131
|
return void 0;
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
} from "./chunk-7Q327QF2.js";
|
|
13
13
|
import {
|
|
14
14
|
isOrchestratorThread
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GFM63DTU.js";
|
|
16
16
|
import {
|
|
17
17
|
codexUnattendedGitConfigArgs,
|
|
18
18
|
mergeAgentGitAuthEnv,
|
|
19
19
|
resolveAgentGitAuthEnv,
|
|
20
20
|
resolveCodexGitWritableRoots
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-BPBDGJ43.js";
|
|
22
22
|
import {
|
|
23
23
|
loadBrightsyConfig
|
|
24
24
|
} from "./chunk-RSA47QYR.js";
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
loadAppSettings,
|
|
77
77
|
resolveAgentExecutable,
|
|
78
78
|
resolveClaudeExecutable
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-U7PNCYNX.js";
|
|
80
80
|
import {
|
|
81
81
|
isElectronLikeCommand,
|
|
82
82
|
unwrapStrippedElectronLaunch
|
|
@@ -2609,7 +2609,7 @@ var claudeAdapter = {
|
|
|
2609
2609
|
);
|
|
2610
2610
|
}
|
|
2611
2611
|
const mode = permissionMode(thread);
|
|
2612
|
-
const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-
|
|
2612
|
+
const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-3NNDDTFD.js");
|
|
2613
2613
|
const isOrchestrator = isOrchestratorThread2(thread);
|
|
2614
2614
|
const rpc = worktreeAgentRpc(isOrchestrator);
|
|
2615
2615
|
const injectedServers = await buildInjectedMcpServers({
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-QVN2WOKJ.js";
|
|
8
8
|
import {
|
|
9
9
|
resolveAgentExecutable
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-U7PNCYNX.js";
|
|
11
11
|
|
|
12
12
|
// src/agents/install.ts
|
|
13
13
|
import { existsSync } from "fs";
|
|
@@ -265,7 +265,7 @@ async function loginAgent(agent) {
|
|
|
265
265
|
};
|
|
266
266
|
}
|
|
267
267
|
async function loginManagedAccount(accountId) {
|
|
268
|
-
const { loadAppSettings } = await import("./app-settings-
|
|
268
|
+
const { loadAppSettings } = await import("./app-settings-RQAFJZCD.js");
|
|
269
269
|
const { loginEnvPrefix } = await import("./managed-accounts-JJTAKHMG.js");
|
|
270
270
|
const account = loadAppSettings().accounts.accounts.find((a) => a.id === accountId);
|
|
271
271
|
if (!account) {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
loadAppSettings,
|
|
6
6
|
saveAppSettings
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-U7PNCYNX.js";
|
|
8
8
|
|
|
9
9
|
// src/integrations/optional-services.ts
|
|
10
10
|
var OPTIONAL_SERVICE_IDS = ["vercel", "supabase", "posthog", "sentry"];
|
|
@@ -273,7 +273,7 @@ async function connectedCliPresence(integrations) {
|
|
|
273
273
|
const ids = connectedOptionalServices(integrations).filter((spec) => spec.cli).map((spec) => spec.id);
|
|
274
274
|
if (ids.length === 0) return void 0;
|
|
275
275
|
try {
|
|
276
|
-
const { optionalCliPresence } = await import("./optional-cli-
|
|
276
|
+
const { optionalCliPresence } = await import("./optional-cli-LMSRZNH4.js");
|
|
277
277
|
return await optionalCliPresence(ids);
|
|
278
278
|
} catch {
|
|
279
279
|
return void 0;
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ensureGhPreferOrigin,
|
|
6
6
|
resolveGithubRepoSlug,
|
|
7
7
|
resolveRepoRoot
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5CTG5W7S.js";
|
|
9
9
|
import {
|
|
10
10
|
ATTACHMENTS_DIR,
|
|
11
11
|
attachmentsGitignoreBody
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
resolveThreadDefaults,
|
|
23
23
|
resolveViewerProfile,
|
|
24
24
|
resolveViewerProfileForRepo
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-GCHSJCCX.js";
|
|
26
26
|
import {
|
|
27
27
|
allocateTeamName,
|
|
28
28
|
createEmptyThread,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
teamSlugFromName,
|
|
32
32
|
updateThread,
|
|
33
33
|
writeThread
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-U35AHE2P.js";
|
|
35
35
|
import {
|
|
36
36
|
appDataDir,
|
|
37
37
|
globalAgentCwd,
|
|
@@ -618,7 +618,8 @@ function createGlobalChat(opts) {
|
|
|
618
618
|
agent: opts.agent,
|
|
619
619
|
model: opts.model,
|
|
620
620
|
effort: opts.effort,
|
|
621
|
-
fast: opts.fast
|
|
621
|
+
fast: opts.fast,
|
|
622
|
+
autonomy: opts.autonomy
|
|
622
623
|
});
|
|
623
624
|
const agent = assertOrchestratorCapableAgent(resolved.agent);
|
|
624
625
|
const worktreePath = globalAgentCwd();
|
|
@@ -632,7 +633,7 @@ function createGlobalChat(opts) {
|
|
|
632
633
|
worktreePath,
|
|
633
634
|
repoPath: GLOBAL_WORKSPACE_ID,
|
|
634
635
|
agent,
|
|
635
|
-
autonomy:
|
|
636
|
+
autonomy: resolved.autonomy,
|
|
636
637
|
model: resolved.model,
|
|
637
638
|
effort: resolved.effort,
|
|
638
639
|
fast: resolved.fast,
|
|
@@ -709,6 +710,7 @@ function ensureSlackCoordinator(teamId, userId, agent, opts) {
|
|
|
709
710
|
if (existing.model !== defaults.model) patch.model = defaults.model;
|
|
710
711
|
if (existing.effort !== defaults.effort) patch.effort = defaults.effort;
|
|
711
712
|
if (existing.fast !== defaults.fast) patch.fast = defaults.fast;
|
|
713
|
+
if (existing.autonomy !== defaults.autonomy) patch.autonomy = defaults.autonomy;
|
|
712
714
|
}
|
|
713
715
|
if (Object.keys(patch).length > 0) {
|
|
714
716
|
return updateThread(existing.id, patch);
|
|
@@ -767,6 +769,7 @@ function ensureCloudCoordinator(agent) {
|
|
|
767
769
|
if (existing.model !== defaults.model) patch.model = defaults.model;
|
|
768
770
|
if (existing.effort !== defaults.effort) patch.effort = defaults.effort;
|
|
769
771
|
if (existing.fast !== defaults.fast) patch.fast = defaults.fast;
|
|
772
|
+
if (existing.autonomy !== defaults.autonomy) patch.autonomy = defaults.autonomy;
|
|
770
773
|
}
|
|
771
774
|
if (Object.keys(patch).length > 0) {
|
|
772
775
|
return updateThread(existing.id, patch);
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
OPTIONAL_SERVICES,
|
|
3
3
|
isOptionalServiceId,
|
|
4
4
|
optionalServiceSpec
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OLYNM52B.js";
|
|
6
6
|
import {
|
|
7
7
|
installNpmGlobalPackage,
|
|
8
8
|
whichOnPath
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NXNNYY3Q.js";
|
|
10
10
|
import {
|
|
11
11
|
enrichPathWithNpmGlobalBin
|
|
12
12
|
} from "./chunk-QVN2WOKJ.js";
|
|
@@ -1029,6 +1029,19 @@ function normalizeRunScriptRequest(raw) {
|
|
|
1029
1029
|
error: req.error ?? null
|
|
1030
1030
|
};
|
|
1031
1031
|
}
|
|
1032
|
+
function sanitizeIssueBlockedBy(value) {
|
|
1033
|
+
if (!Array.isArray(value)) return void 0;
|
|
1034
|
+
const out = [];
|
|
1035
|
+
const seen = /* @__PURE__ */ new Set();
|
|
1036
|
+
for (const item of value) {
|
|
1037
|
+
const id = String(item ?? "").trim();
|
|
1038
|
+
const key = id.toLowerCase();
|
|
1039
|
+
if (!id || seen.has(key)) continue;
|
|
1040
|
+
seen.add(key);
|
|
1041
|
+
out.push(id);
|
|
1042
|
+
}
|
|
1043
|
+
return out;
|
|
1044
|
+
}
|
|
1032
1045
|
function normalizeThread(raw) {
|
|
1033
1046
|
return {
|
|
1034
1047
|
...raw,
|
|
@@ -1053,6 +1066,7 @@ function normalizeThread(raw) {
|
|
|
1053
1066
|
prIsInMergeQueue: Boolean(raw.prIsInMergeQueue),
|
|
1054
1067
|
prLabels: Array.isArray(raw.prLabels) ? raw.prLabels : [],
|
|
1055
1068
|
prChecksFailed: typeof raw.prChecksFailed === "boolean" ? raw.prChecksFailed : void 0,
|
|
1069
|
+
issueBlockedBy: sanitizeIssueBlockedBy(raw.issueBlockedBy),
|
|
1056
1070
|
skipAutoArchiveOnMerge: Boolean(raw.skipAutoArchiveOnMerge),
|
|
1057
1071
|
cowboy: Boolean(raw.cowboy),
|
|
1058
1072
|
stackId: raw.stackId ?? null,
|