@sideboard-ai/core 0.1.324 → 0.1.326
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-CU2UPMJF.js → abletime-RDHYSZL2.js} +5 -4
- package/dist/{abletime-5ZY3ZUUO.js → abletime-RYYFGKMU.js} +6 -5
- package/dist/{abletime-oauth-7EOSBEFM.js → abletime-oauth-OYGS2DAU.js} +3 -3
- package/dist/{abletime-oauth-4TTCR3CT.js → abletime-oauth-QR2QDVMK.js} +3 -3
- package/dist/{abletime-rest-KOKE7V4B.js → abletime-rest-BKYKNPTC.js} +3 -3
- package/dist/{abletime-rest-3TG4G7LW.js → abletime-rest-QDPTWNS4.js} +3 -3
- package/dist/agents/claude-runner.cjs +59 -22
- package/dist/agents/claude-runner.js +39 -16
- package/dist/agents/cursor-runner.cjs +97 -32
- package/dist/agents/cursor-runner.js +74 -24
- package/dist/{agents-YK65UDLT.js → agents-HANWZNI6.js} +9 -8
- package/dist/{agents-LUSTCMDN.js → agents-QO7GKBYT.js} +12 -11
- package/dist/{app-settings-XIF4EC4K.js → app-settings-RXBH7KY4.js} +1 -1
- package/dist/{app-settings-I5HM5RMP.js → app-settings-TUVLZNDE.js} +1 -1
- package/dist/{chunk-7MQSYPAY.js → chunk-2EOLWHXH.js} +206 -188
- package/dist/{chunk-QOS4465Y.js → chunk-3Q4XNYHY.js} +1 -1
- package/dist/{chunk-RR4WCGNB.js → chunk-46FECFZU.js} +18 -15
- package/dist/{chunk-5GDJSFCT.js → chunk-4H5MWZ6J.js} +2 -2
- package/dist/{chunk-EQ52JR3Q.js → chunk-5MXLDDYF.js} +1 -1
- package/dist/{chunk-NCHOTN3C.js → chunk-5YCKATG6.js} +4 -3
- package/dist/{chunk-ROOZDDFA.js → chunk-75RPUXJS.js} +7 -8
- package/dist/{chunk-INBUV7HY.js → chunk-B244TJWC.js} +2 -2
- package/dist/{chunk-JH5SMVM5.js → chunk-BBNWKL4I.js} +268 -235
- package/dist/{chunk-ODH3XHMI.js → chunk-C7HUCBX7.js} +5 -5
- package/dist/{chunk-OIHRC2ZJ.js → chunk-D744HOI5.js} +25 -3
- package/dist/chunk-DBKHL7NC.js +214 -0
- package/dist/chunk-F6GE7V3Q.js +216 -0
- package/dist/{chunk-JE3JLHMO.js → chunk-FWVUGLBG.js} +3 -3
- package/dist/{chunk-DF5BM5OY.js → chunk-GP3RLZ6A.js} +207 -186
- package/dist/{chunk-FR3SAYUL.js → chunk-JM2TGOHP.js} +5 -5
- package/dist/{chunk-Y3WREIPQ.js → chunk-K7M7MIWL.js} +12 -210
- package/dist/{chunk-FUFNMUNR.js → chunk-KECHK3ZT.js} +7 -8
- package/dist/{chunk-EKU7FQVG.js → chunk-KXRF6RNL.js} +2 -2
- package/dist/chunk-LRHUBGEM.js +1259 -0
- package/dist/{chunk-MZIZTSR2.js → chunk-MAW7DIG7.js} +2 -2
- package/dist/{chunk-ZHGMRBSC.js → chunk-NURZOXGN.js} +4 -4
- package/dist/{chunk-QIC2JXHW.js → chunk-OOXRMTU6.js} +1 -1
- package/dist/{chunk-5XNT6BCG.js → chunk-OPXEJJBM.js} +1 -1
- package/dist/chunk-OYRN356W.js +80 -0
- package/dist/{chunk-7PVT73H6.js → chunk-PB6HW7SA.js} +12 -210
- package/dist/{chunk-B4CDSSRN.js → chunk-Q3FHTGIW.js} +2 -0
- package/dist/{chunk-7D5QIU3N.js → chunk-QG4CYRA3.js} +301 -268
- package/dist/{chunk-EJ66LEKH.js → chunk-QPSKQP6E.js} +24 -3
- package/dist/{chunk-Q3YJZPQI.js → chunk-RZVOX2MT.js} +3 -3
- package/dist/chunk-SO7G6O24.js +1445 -0
- package/dist/{chunk-YDUHLWI5.js → chunk-SUZOPJZC.js} +21 -7
- package/dist/chunk-TMCK5TLA.js +25 -0
- package/dist/chunk-W3ZLE4PO.js +77 -0
- package/dist/chunk-WUCAVIIP.js +28 -0
- package/dist/{chunk-BYUCNIXK.js → chunk-XLVLMQKN.js} +13 -9
- package/dist/{chunk-ZIRQZUZY.js → chunk-YGVGXQA7.js} +3 -3
- package/dist/{chunk-NXUN4U5P.js → chunk-YWQF7WAG.js} +2 -2
- package/dist/{chunk-IFWGG2M2.js → chunk-ZSHS46V5.js} +2 -0
- package/dist/{chunk-74OPNF7U.js → chunk-ZUAYA57W.js} +2 -2
- package/dist/{conductor-SPZOTC7W.js → conductor-4GVTHUUB.js} +7 -7
- package/dist/{conductor-JFABMXDA.js → conductor-TGWI6ETZ.js} +6 -6
- package/dist/{coordinator-prompt-K66RGNWK.js → coordinator-prompt-3E6SIDTM.js} +4 -4
- package/dist/{coordinator-prompt-Z6UFHFDH.js → coordinator-prompt-WEYJREV6.js} +4 -4
- package/dist/{cursor-recover-TEBFKAZ4.js → cursor-recover-7F46PAJ5.js} +1 -1
- package/dist/{cursor-recover-OWPQUHFH.js → cursor-recover-BDIAZIE3.js} +1 -1
- package/dist/{global-workspace-A6UO6PJV.js → global-workspace-FPDZKUPF.js} +4 -4
- package/dist/{global-workspace-RHEO55B4.js → global-workspace-UIEXAG2B.js} +4 -4
- package/dist/index.cjs +21094 -20840
- package/dist/index.d.cts +36 -17
- package/dist/index.d.ts +36 -17
- package/dist/index.js +343 -1678
- package/dist/linear-6S7MK5YK.js +69 -0
- package/dist/linear-Z2T4KUAQ.js +67 -0
- package/dist/linear-list-A37WLUBO.js +6 -0
- package/dist/linear-list-Q4M7AZO2.js +8 -0
- package/dist/mcp/run-stdio.cjs +15903 -15640
- package/dist/mcp/run-stdio.js +67 -1247
- package/dist/{optional-cli-RMMS5L6F.js → optional-cli-AANBL4U5.js} +3 -3
- package/dist/{optional-cli-Y3Z3GIPZ.js → optional-cli-CA4LL322.js} +4 -4
- package/dist/{orchestrator-7VTAUY24.js → orchestrator-7FVDBE7Y.js} +15 -13
- package/dist/{orchestrator-2O6OJQLX.js → orchestrator-RQXRZW7Z.js} +14 -12
- package/dist/{thread-store-3F7GR64A.js → thread-store-4ZN3DS2W.js} +1 -1
- package/dist/{thread-store-JRSL4HQY.js → thread-store-IC4BQXDW.js} +1 -1
- package/dist/{workspaces-NRKEXOYR.js → workspaces-LEW4UP56.js} +4 -4
- package/dist/{workspaces-42E6AGXD.js → workspaces-QONNLHNR.js} +4 -4
- package/dist/{worktree-ZDA2UJ7C.js → worktree-6GIONDQO.js} +3 -3
- package/dist/{worktree-4NGXCCUO.js → worktree-KFEJAQ2H.js} +3 -3
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
getAbleTimeHost,
|
|
8
8
|
isAbleTimeConnected
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-D744HOI5.js";
|
|
10
10
|
|
|
11
11
|
// src/integrations/abletime-mcp.ts
|
|
12
12
|
var DEFAULT_ABLETIME_HOST = "https://track.abletime.com";
|
|
@@ -155,7 +155,7 @@ function textsFromUnknown(value) {
|
|
|
155
155
|
return "";
|
|
156
156
|
}
|
|
157
157
|
async function abletimeMcpRequest(method, params, opts) {
|
|
158
|
-
const rawToken = opts?.token ?? await import("./abletime-oauth-
|
|
158
|
+
const rawToken = opts?.token ?? await import("./abletime-oauth-QR2QDVMK.js").then((m) => m.ensureAbleTimeAccessToken());
|
|
159
159
|
if (!rawToken?.trim()) {
|
|
160
160
|
throw new Error("AbleTime is not connected \u2014 paste a personal access token in Account settings");
|
|
161
161
|
}
|
|
@@ -226,9 +226,9 @@ async function callAbleTimeTool(name, args = {}, opts) {
|
|
|
226
226
|
if (!opts?.token && !isAbleTimeConnected()) {
|
|
227
227
|
throw new Error("AbleTime is not connected \u2014 paste a personal access token in Account settings");
|
|
228
228
|
}
|
|
229
|
-
const rawToken = opts?.token ?? await import("./abletime-oauth-
|
|
229
|
+
const rawToken = opts?.token ?? await import("./abletime-oauth-QR2QDVMK.js").then((m) => m.ensureAbleTimeAccessToken());
|
|
230
230
|
if (rawToken && ableTimeUsesRest(rawToken)) {
|
|
231
|
-
const { callAbleTimeRestTool } = await import("./abletime-rest-
|
|
231
|
+
const { callAbleTimeRestTool } = await import("./abletime-rest-QDPTWNS4.js");
|
|
232
232
|
return callAbleTimeRestTool(name, args, { ...opts, token: rawToken });
|
|
233
233
|
}
|
|
234
234
|
const requestOpts = { ...opts, pm: opts?.pm ?? abletimeToolUsesPm(name) };
|
|
@@ -244,7 +244,7 @@ async function callAbleTimeTool(name, args = {}, opts) {
|
|
|
244
244
|
return await call();
|
|
245
245
|
}
|
|
246
246
|
if (rawToken && ableTimeUsesRest(rawToken) && isAbleTimeRejectedCredential(message)) {
|
|
247
|
-
const { callAbleTimeRestTool } = await import("./abletime-rest-
|
|
247
|
+
const { callAbleTimeRestTool } = await import("./abletime-rest-QDPTWNS4.js");
|
|
248
248
|
return callAbleTimeRestTool(name, args, { ...opts, token: rawToken });
|
|
249
249
|
}
|
|
250
250
|
throw err instanceof Error ? new Error(rewriteAbleTimeError(err.message)) : err;
|
|
@@ -3,223 +3,31 @@
|
|
|
3
3
|
import {
|
|
4
4
|
abletimeRestUrl,
|
|
5
5
|
textFromAbleTimeDoc
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YWQF7WAG.js";
|
|
7
7
|
import {
|
|
8
8
|
assertAbleTimeCredential,
|
|
9
9
|
callAbleTimeTool,
|
|
10
10
|
normalizeAbleTimeHost,
|
|
11
11
|
rewriteAbleTimeError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JM2TGOHP.js";
|
|
13
|
+
import {
|
|
14
|
+
downloadAuthenticatedFile,
|
|
15
|
+
extractHttpUrls,
|
|
16
|
+
hostMatches,
|
|
17
|
+
issueAttachmentWorktreePath,
|
|
18
|
+
looksLikeFileUrl,
|
|
19
|
+
looksLikeHttpUrl,
|
|
20
|
+
mergeIssueAttachments
|
|
21
|
+
} from "./chunk-F6GE7V3Q.js";
|
|
13
22
|
import {
|
|
14
23
|
httpFetch
|
|
15
24
|
} from "./chunk-2GPQZZLY.js";
|
|
16
|
-
import {
|
|
17
|
-
ATTACHMENTS_DIR,
|
|
18
|
-
attachmentsGitignoreBody
|
|
19
|
-
} from "./chunk-N2WW62LF.js";
|
|
20
25
|
import {
|
|
21
26
|
getAbleTimeAccessToken,
|
|
22
27
|
getAbleTimeHost,
|
|
23
28
|
isAbleTimeConnected,
|
|
24
29
|
saveAbleTimeConnection
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
|
|
27
|
-
// src/integrations/issue-attachments.ts
|
|
28
|
-
import { existsSync, mkdirSync, writeFileSync } from "fs";
|
|
29
|
-
import { basename, extname, join } from "path";
|
|
30
|
-
import { randomUUID } from "crypto";
|
|
31
|
-
var ISSUE_ATTACHMENT_MAX_BYTES = 25 * 1024 * 1024;
|
|
32
|
-
var MARKDOWN_IMAGE_RE = /!\[[^\]]*]\(\s*<?(https?:\/\/[^)\s>]+)>?/gi;
|
|
33
|
-
var MARKDOWN_LINK_RE = /(?<!!)\[[^\]]*]\(\s*<?(https?:\/\/[^)\s>]+)>?/gi;
|
|
34
|
-
var HTML_SRC_RE = /\b(?:src|href)\s*=\s*["'](https?:\/\/[^"']+)["']/gi;
|
|
35
|
-
var BARE_URL_RE = /https?:\/\/[^\s<>"'`)]+/gi;
|
|
36
|
-
var EXT_BY_MIME = {
|
|
37
|
-
"image/png": ".png",
|
|
38
|
-
"image/jpeg": ".jpg",
|
|
39
|
-
"image/jpg": ".jpg",
|
|
40
|
-
"image/gif": ".gif",
|
|
41
|
-
"image/webp": ".webp",
|
|
42
|
-
"image/svg+xml": ".svg",
|
|
43
|
-
"application/pdf": ".pdf",
|
|
44
|
-
"text/plain": ".txt",
|
|
45
|
-
"text/markdown": ".md",
|
|
46
|
-
"application/json": ".json",
|
|
47
|
-
"application/zip": ".zip"
|
|
48
|
-
};
|
|
49
|
-
function issueAttachmentWorktreePath(repoPath) {
|
|
50
|
-
const raw = (repoPath ?? "").trim();
|
|
51
|
-
return raw || process.cwd();
|
|
52
|
-
}
|
|
53
|
-
function ensureIssueAttachmentsDir(worktreePath) {
|
|
54
|
-
const dir = join(worktreePath, ATTACHMENTS_DIR);
|
|
55
|
-
mkdirSync(dir, { recursive: true });
|
|
56
|
-
const gi = join(dir, ".gitignore");
|
|
57
|
-
if (!existsSync(gi)) {
|
|
58
|
-
writeFileSync(gi, attachmentsGitignoreBody(), "utf8");
|
|
59
|
-
}
|
|
60
|
-
return dir;
|
|
61
|
-
}
|
|
62
|
-
function hostnameOf(url) {
|
|
63
|
-
try {
|
|
64
|
-
return new URL(url).hostname.toLowerCase();
|
|
65
|
-
} catch {
|
|
66
|
-
return "";
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
function hostMatches(url, suffixes) {
|
|
70
|
-
const host = hostnameOf(url);
|
|
71
|
-
if (!host) return false;
|
|
72
|
-
return suffixes.some((suffix) => host === suffix || host.endsWith(`.${suffix}`));
|
|
73
|
-
}
|
|
74
|
-
function looksLikeHttpUrl(value) {
|
|
75
|
-
return /^https?:\/\//i.test(value.trim());
|
|
76
|
-
}
|
|
77
|
-
function looksLikeFileUrl(url) {
|
|
78
|
-
try {
|
|
79
|
-
const path = new URL(url).pathname;
|
|
80
|
-
return /\.[a-z0-9]{2,8}$/i.test(path);
|
|
81
|
-
} catch {
|
|
82
|
-
return false;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
function filenameFromUrl(url, fallback = "attachment") {
|
|
86
|
-
try {
|
|
87
|
-
const parsed = new URL(url);
|
|
88
|
-
const last = decodeURIComponent(basename(parsed.pathname)).replace(/[/\\]/g, "_");
|
|
89
|
-
if (last && last !== "/" && last !== ".") return last;
|
|
90
|
-
} catch {
|
|
91
|
-
}
|
|
92
|
-
return fallback;
|
|
93
|
-
}
|
|
94
|
-
function filenameFromContentDisposition(header) {
|
|
95
|
-
if (!header) return void 0;
|
|
96
|
-
const star = header.match(/filename\*\s*=\s*(?:UTF-8''|utf-8'')([^;]+)/i);
|
|
97
|
-
if (star?.[1]) {
|
|
98
|
-
try {
|
|
99
|
-
return decodeURIComponent(star[1].trim().replace(/^["']|["']$/g, ""));
|
|
100
|
-
} catch {
|
|
101
|
-
return star[1].trim().replace(/^["']|["']$/g, "");
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
const plain = header.match(/filename\s*=\s*("(?:\\.|[^"])*"|[^;]+)/i);
|
|
105
|
-
if (!plain?.[1]) return void 0;
|
|
106
|
-
return plain[1].trim().replace(/^["']|["']$/g, "").replace(/\\"/g, '"');
|
|
107
|
-
}
|
|
108
|
-
function uniqueAttachmentFileName(dir, originalName) {
|
|
109
|
-
const safe = originalName.replace(/[/\\]/g, "_").replace(/^\.+/, "") || "file";
|
|
110
|
-
if (!existsSync(join(dir, safe))) return safe;
|
|
111
|
-
const ext = extname(safe);
|
|
112
|
-
const stem = ext ? safe.slice(0, -ext.length) : safe;
|
|
113
|
-
for (let i = 1; i < 1e4; i++) {
|
|
114
|
-
const candidate = `${stem}-${i}${ext}`;
|
|
115
|
-
if (!existsSync(join(dir, candidate))) return candidate;
|
|
116
|
-
}
|
|
117
|
-
return `${stem}-${randomUUID()}${ext}`;
|
|
118
|
-
}
|
|
119
|
-
function extractHttpUrls(markdown) {
|
|
120
|
-
const text = markdown ?? "";
|
|
121
|
-
if (!text.trim()) return [];
|
|
122
|
-
const found = [];
|
|
123
|
-
const seen = /* @__PURE__ */ new Set();
|
|
124
|
-
const push = (raw) => {
|
|
125
|
-
const url = raw.replace(/[).,;]+$/, "");
|
|
126
|
-
if (!looksLikeHttpUrl(url) || seen.has(url)) return;
|
|
127
|
-
seen.add(url);
|
|
128
|
-
found.push(url);
|
|
129
|
-
};
|
|
130
|
-
for (const re of [MARKDOWN_IMAGE_RE, MARKDOWN_LINK_RE, HTML_SRC_RE, BARE_URL_RE]) {
|
|
131
|
-
re.lastIndex = 0;
|
|
132
|
-
let match;
|
|
133
|
-
while (match = re.exec(text)) {
|
|
134
|
-
if (match[1]) push(match[1]);
|
|
135
|
-
else if (re === BARE_URL_RE) push(match[0]);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
return found;
|
|
139
|
-
}
|
|
140
|
-
function mergeIssueAttachments(items) {
|
|
141
|
-
const out = [];
|
|
142
|
-
const seen = /* @__PURE__ */ new Set();
|
|
143
|
-
for (const item of items) {
|
|
144
|
-
if (!item) continue;
|
|
145
|
-
const url = item.url.trim();
|
|
146
|
-
const id = item.id.trim() || url;
|
|
147
|
-
if (!id && !url) continue;
|
|
148
|
-
const key = url || id;
|
|
149
|
-
if (seen.has(key) || seen.has(id)) continue;
|
|
150
|
-
seen.add(key);
|
|
151
|
-
if (id !== key) seen.add(id);
|
|
152
|
-
out.push({
|
|
153
|
-
id: id || url,
|
|
154
|
-
name: item.name.trim() || filenameFromUrl(url),
|
|
155
|
-
url,
|
|
156
|
-
...item.contentType ? { contentType: item.contentType } : {},
|
|
157
|
-
...item.sourceType ? { sourceType: item.sourceType } : {}
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
return out;
|
|
161
|
-
}
|
|
162
|
-
function extensionForContentType(contentType, name) {
|
|
163
|
-
if (extname(name)) return name;
|
|
164
|
-
const mime = (contentType ?? "").split(";")[0]?.trim().toLowerCase() ?? "";
|
|
165
|
-
const ext = EXT_BY_MIME[mime];
|
|
166
|
-
return ext ? `${name}${ext}` : name;
|
|
167
|
-
}
|
|
168
|
-
function assertNotHtml(contentType, url) {
|
|
169
|
-
const mime = (contentType ?? "").split(";")[0]?.trim().toLowerCase() ?? "";
|
|
170
|
-
if (mime === "text/html" || mime === "application/xhtml+xml") {
|
|
171
|
-
throw new Error(
|
|
172
|
-
`Attachment at ${url} returned HTML, not a file. Use the listed file URL (uploads / user-attachments), not a ticket or PR page.`
|
|
173
|
-
);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
async function downloadAuthenticatedFile(opts) {
|
|
177
|
-
const url = opts.url.trim();
|
|
178
|
-
if (!looksLikeHttpUrl(url)) {
|
|
179
|
-
throw new Error(`Attachment URL must be http(s) (got ${url || "empty"})`);
|
|
180
|
-
}
|
|
181
|
-
const res = await httpFetch(url, {
|
|
182
|
-
method: "GET",
|
|
183
|
-
redirect: "follow",
|
|
184
|
-
headers: {
|
|
185
|
-
Accept: "*/*",
|
|
186
|
-
...opts.headers ?? {}
|
|
187
|
-
}
|
|
188
|
-
});
|
|
189
|
-
if (!res.ok) {
|
|
190
|
-
const detail = await res.text().catch(() => "");
|
|
191
|
-
throw new Error(
|
|
192
|
-
`Attachment download failed ${res.status}${detail ? `: ${detail.slice(0, 200)}` : ""} (${url})`
|
|
193
|
-
);
|
|
194
|
-
}
|
|
195
|
-
const contentType = res.headers.get("content-type") ?? void 0;
|
|
196
|
-
assertNotHtml(contentType, url);
|
|
197
|
-
const lengthHeader = res.headers.get("content-length");
|
|
198
|
-
if (lengthHeader) {
|
|
199
|
-
const length = Number(lengthHeader);
|
|
200
|
-
if (Number.isFinite(length) && length > ISSUE_ATTACHMENT_MAX_BYTES) {
|
|
201
|
-
throw new Error(
|
|
202
|
-
`Attachment is ${length} bytes; max is ${ISSUE_ATTACHMENT_MAX_BYTES} (${url})`
|
|
203
|
-
);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
const buf = Buffer.from(await res.arrayBuffer());
|
|
207
|
-
if (buf.length > ISSUE_ATTACHMENT_MAX_BYTES) {
|
|
208
|
-
throw new Error(
|
|
209
|
-
`Attachment is ${buf.length} bytes; max is ${ISSUE_ATTACHMENT_MAX_BYTES} (${url})`
|
|
210
|
-
);
|
|
211
|
-
}
|
|
212
|
-
const dir = ensureIssueAttachmentsDir(opts.worktreePath);
|
|
213
|
-
const hinted = opts.name?.trim() || filenameFromContentDisposition(res.headers.get("content-disposition")) || filenameFromUrl(url);
|
|
214
|
-
const name = uniqueAttachmentFileName(dir, extensionForContentType(contentType, hinted));
|
|
215
|
-
writeFileSync(join(dir, name), buf);
|
|
216
|
-
return {
|
|
217
|
-
name,
|
|
218
|
-
path: `${ATTACHMENTS_DIR}/${name}`,
|
|
219
|
-
bytes: buf.length,
|
|
220
|
-
...contentType ? { contentType } : {}
|
|
221
|
-
};
|
|
222
|
-
}
|
|
30
|
+
} from "./chunk-D744HOI5.js";
|
|
223
31
|
|
|
224
32
|
// src/integrations/abletime-attachments.ts
|
|
225
33
|
function asRecord(value) {
|
|
@@ -841,12 +649,6 @@ async function verifyAbleTimeConnection(input) {
|
|
|
841
649
|
}
|
|
842
650
|
|
|
843
651
|
export {
|
|
844
|
-
issueAttachmentWorktreePath,
|
|
845
|
-
hostMatches,
|
|
846
|
-
looksLikeHttpUrl,
|
|
847
|
-
extractHttpUrls,
|
|
848
|
-
mergeIssueAttachments,
|
|
849
|
-
downloadAuthenticatedFile,
|
|
850
652
|
downloadAbleTimeAttachment,
|
|
851
653
|
taskUrl,
|
|
852
654
|
mapAbleTimeTask,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
normalizeTakenSlug,
|
|
5
5
|
normalizeWorktreePath,
|
|
6
6
|
takenSlugsFromThread
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZSHS46V5.js";
|
|
8
8
|
import {
|
|
9
9
|
ensureWorktreeSideboardIgnored
|
|
10
10
|
} from "./chunk-QKHEVSB5.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
getGithubGitAuthMode,
|
|
27
27
|
getGithubPat
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-QPSKQP6E.js";
|
|
29
29
|
import {
|
|
30
30
|
worktreesRoot
|
|
31
31
|
} from "./chunk-H4UEFJRI.js";
|
|
@@ -291,12 +291,11 @@ function codexSandboxWritableRootsArgs(roots) {
|
|
|
291
291
|
return ["-c", `sandbox_workspace_write.writable_roots=${JSON.stringify(abs)}`];
|
|
292
292
|
}
|
|
293
293
|
function codexUnattendedGitConfigArgs(sandbox, opts) {
|
|
294
|
-
const args = [
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
"-c",
|
|
298
|
-
|
|
299
|
-
];
|
|
294
|
+
const args = ["-c", 'shell_environment_policy.inherit="all"'];
|
|
295
|
+
for (const [key, value] of Object.entries(opts?.preserveEnv ?? {})) {
|
|
296
|
+
if (!/^GIT_CONFIG_KEY_\d+$/.test(key) || !value) continue;
|
|
297
|
+
args.push("-c", `shell_environment_policy.set.${key}=${JSON.stringify(value)}`);
|
|
298
|
+
}
|
|
300
299
|
if (sandbox === "workspace-write") {
|
|
301
300
|
args.push("-c", "sandbox_workspace_write.network_access=true");
|
|
302
301
|
args.push(...codexSandboxWritableRootsArgs(opts?.writableRoots ?? []));
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
normalizeAbleTimeCredential,
|
|
5
5
|
normalizeAbleTimeHost,
|
|
6
6
|
rewriteAbleTimeError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-C7HUCBX7.js";
|
|
8
8
|
import {
|
|
9
9
|
httpFetch
|
|
10
10
|
} from "./chunk-JAT3JFOS.js";
|
|
11
11
|
import {
|
|
12
12
|
getAbleTimeAccessToken,
|
|
13
13
|
getAbleTimeHost
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-QPSKQP6E.js";
|
|
15
15
|
|
|
16
16
|
// src/integrations/abletime-rest.ts
|
|
17
17
|
var ABLETIME_REST_PREFIX = "/api/public/v2";
|