wildcrane-runner 0.6.32 → 0.6.34
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/LICENSE +201 -104
- package/README.md +3 -3
- package/dist/akb/dist/kanban.mjs +1206 -1123
- package/dist/akb/package.json +1 -1
- package/dist/akb-proxy.mjs +1 -1
- package/dist/launcher.mjs +310 -237
- package/dist/plugin.mjs +79483 -0
- package/dist/runner.mjs +794 -770
- package/dist/settings.mjs +338 -264
- package/package.json +2 -2
package/dist/runner.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// wildcrane-runner 0.6.
|
|
1
|
+
// wildcrane-runner 0.6.34 — built by runner/scripts/build.mjs. Do not edit.
|
|
2
2
|
import { createRequire as __ai4kanbanRequire } from 'node:module'
|
|
3
3
|
const require = __ai4kanbanRequire(import.meta.url)
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1158,14 +1158,14 @@ var require_util = __commonJS({
|
|
|
1158
1158
|
}
|
|
1159
1159
|
const port = url.port != null ? url.port : url.protocol === "https:" ? 443 : 80;
|
|
1160
1160
|
let origin = url.origin != null ? url.origin : `${url.protocol || ""}//${url.hostname || ""}:${port}`;
|
|
1161
|
-
let
|
|
1161
|
+
let path50 = url.path != null ? url.path : `${url.pathname || ""}${url.search || ""}`;
|
|
1162
1162
|
if (origin[origin.length - 1] === "/") {
|
|
1163
1163
|
origin = origin.slice(0, origin.length - 1);
|
|
1164
1164
|
}
|
|
1165
|
-
if (
|
|
1166
|
-
|
|
1165
|
+
if (path50 && path50[0] !== "/") {
|
|
1166
|
+
path50 = `/${path50}`;
|
|
1167
1167
|
}
|
|
1168
|
-
return new URL(`${origin}${
|
|
1168
|
+
return new URL(`${origin}${path50}`);
|
|
1169
1169
|
}
|
|
1170
1170
|
if (!isHttpOrHttpsPrefixed(url.origin || url.protocol)) {
|
|
1171
1171
|
throw new InvalidArgumentError("Invalid URL protocol: the URL must start with `http:` or `https:`.");
|
|
@@ -2000,9 +2000,9 @@ var require_diagnostics = __commonJS({
|
|
|
2000
2000
|
"undici:client:sendHeaders",
|
|
2001
2001
|
(evt) => {
|
|
2002
2002
|
const {
|
|
2003
|
-
request: { method, path:
|
|
2003
|
+
request: { method, path: path50, origin }
|
|
2004
2004
|
} = evt;
|
|
2005
|
-
debugLog("sending request to %s %s%s", method, origin,
|
|
2005
|
+
debugLog("sending request to %s %s%s", method, origin, path50);
|
|
2006
2006
|
}
|
|
2007
2007
|
);
|
|
2008
2008
|
}
|
|
@@ -2020,14 +2020,14 @@ var require_diagnostics = __commonJS({
|
|
|
2020
2020
|
"undici:request:headers",
|
|
2021
2021
|
(evt) => {
|
|
2022
2022
|
const {
|
|
2023
|
-
request: { method, path:
|
|
2023
|
+
request: { method, path: path50, origin },
|
|
2024
2024
|
response: { statusCode }
|
|
2025
2025
|
} = evt;
|
|
2026
2026
|
debugLog(
|
|
2027
2027
|
"received response to %s %s%s - HTTP %d",
|
|
2028
2028
|
method,
|
|
2029
2029
|
origin,
|
|
2030
|
-
|
|
2030
|
+
path50,
|
|
2031
2031
|
statusCode
|
|
2032
2032
|
);
|
|
2033
2033
|
}
|
|
@@ -2036,23 +2036,23 @@ var require_diagnostics = __commonJS({
|
|
|
2036
2036
|
"undici:request:trailers",
|
|
2037
2037
|
(evt) => {
|
|
2038
2038
|
const {
|
|
2039
|
-
request: { method, path:
|
|
2039
|
+
request: { method, path: path50, origin }
|
|
2040
2040
|
} = evt;
|
|
2041
|
-
debugLog("trailers received from %s %s%s", method, origin,
|
|
2041
|
+
debugLog("trailers received from %s %s%s", method, origin, path50);
|
|
2042
2042
|
}
|
|
2043
2043
|
);
|
|
2044
2044
|
diagnosticsChannel.subscribe(
|
|
2045
2045
|
"undici:request:error",
|
|
2046
2046
|
(evt) => {
|
|
2047
2047
|
const {
|
|
2048
|
-
request: { method, path:
|
|
2048
|
+
request: { method, path: path50, origin },
|
|
2049
2049
|
error
|
|
2050
2050
|
} = evt;
|
|
2051
2051
|
debugLog(
|
|
2052
2052
|
"request to %s %s%s errored - %s",
|
|
2053
2053
|
method,
|
|
2054
2054
|
origin,
|
|
2055
|
-
|
|
2055
|
+
path50,
|
|
2056
2056
|
error.message
|
|
2057
2057
|
);
|
|
2058
2058
|
}
|
|
@@ -2167,7 +2167,7 @@ var require_request = __commonJS({
|
|
|
2167
2167
|
var kHandler = /* @__PURE__ */ Symbol("handler");
|
|
2168
2168
|
var Request = class {
|
|
2169
2169
|
constructor(origin, {
|
|
2170
|
-
path:
|
|
2170
|
+
path: path50,
|
|
2171
2171
|
method,
|
|
2172
2172
|
body,
|
|
2173
2173
|
headers,
|
|
@@ -2184,11 +2184,11 @@ var require_request = __commonJS({
|
|
|
2184
2184
|
maxRedirections,
|
|
2185
2185
|
typeOfService
|
|
2186
2186
|
}, handler) {
|
|
2187
|
-
if (typeof
|
|
2187
|
+
if (typeof path50 !== "string") {
|
|
2188
2188
|
throw new InvalidArgumentError("path must be a string");
|
|
2189
|
-
} else if (
|
|
2189
|
+
} else if (path50[0] !== "/" && !(path50.startsWith("http://") || path50.startsWith("https://")) && method !== "CONNECT") {
|
|
2190
2190
|
throw new InvalidArgumentError("path must be an absolute URL or start with a slash");
|
|
2191
|
-
} else if (invalidPathRegex.test(
|
|
2191
|
+
} else if (invalidPathRegex.test(path50)) {
|
|
2192
2192
|
throw new InvalidArgumentError("invalid request path");
|
|
2193
2193
|
}
|
|
2194
2194
|
if (typeof method !== "string") {
|
|
@@ -2263,7 +2263,7 @@ var require_request = __commonJS({
|
|
|
2263
2263
|
this.completed = false;
|
|
2264
2264
|
this.aborted = false;
|
|
2265
2265
|
this.upgrade = upgrade || null;
|
|
2266
|
-
this.path = query ? serializePathWithQuery(
|
|
2266
|
+
this.path = query ? serializePathWithQuery(path50, query) : path50;
|
|
2267
2267
|
this.origin = origin;
|
|
2268
2268
|
this.protocol = getProtocolFromUrlString(origin);
|
|
2269
2269
|
this.idempotent = idempotent == null ? method === "HEAD" || method === "GET" : idempotent;
|
|
@@ -7507,7 +7507,7 @@ var require_client_h1 = __commonJS({
|
|
|
7507
7507
|
}
|
|
7508
7508
|
}
|
|
7509
7509
|
function writeH1(client, request2) {
|
|
7510
|
-
const { method, path:
|
|
7510
|
+
const { method, path: path50, host, upgrade, blocking, reset } = request2;
|
|
7511
7511
|
let { body, headers, contentLength } = request2;
|
|
7512
7512
|
const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH" || method === "QUERY" || method === "PROPFIND" || method === "PROPPATCH";
|
|
7513
7513
|
if (util.isFormDataLike(body)) {
|
|
@@ -7583,7 +7583,7 @@ var require_client_h1 = __commonJS({
|
|
|
7583
7583
|
socket[kBlocking] = true;
|
|
7584
7584
|
}
|
|
7585
7585
|
setTypeOfService(socket, request2);
|
|
7586
|
-
let header = `${method} ${
|
|
7586
|
+
let header = `${method} ${path50} HTTP/1.1\r
|
|
7587
7587
|
`;
|
|
7588
7588
|
if (typeof host === "string") {
|
|
7589
7589
|
header += `host: ${host}\r
|
|
@@ -8260,7 +8260,7 @@ var require_client_h2 = __commonJS({
|
|
|
8260
8260
|
const headersTimeout = request2.headersTimeout ?? client[kHeadersTimeout];
|
|
8261
8261
|
const bodyTimeout = request2.bodyTimeout ?? client[kBodyTimeout];
|
|
8262
8262
|
const session = client[kHTTP2Session];
|
|
8263
|
-
const { method, path:
|
|
8263
|
+
const { method, path: path50, host, upgrade, expectContinue, signal: signal2, protocol, headers: reqHeaders } = request2;
|
|
8264
8264
|
let { body } = request2;
|
|
8265
8265
|
if (upgrade != null && upgrade !== "websocket") {
|
|
8266
8266
|
util.errorRequest(client, request2, new InvalidArgumentError(`Custom upgrade "${upgrade}" not supported over HTTP/2`));
|
|
@@ -8329,7 +8329,7 @@ var require_client_h2 = __commonJS({
|
|
|
8329
8329
|
}
|
|
8330
8330
|
headers[HTTP2_HEADER_METHOD] = "CONNECT";
|
|
8331
8331
|
headers[HTTP2_HEADER_PROTOCOL] = "websocket";
|
|
8332
|
-
headers[HTTP2_HEADER_PATH] =
|
|
8332
|
+
headers[HTTP2_HEADER_PATH] = path50;
|
|
8333
8333
|
if (protocol === "ws:" || protocol === "wss:") {
|
|
8334
8334
|
headers[HTTP2_HEADER_SCHEME] = protocol === "ws:" ? "http" : "https";
|
|
8335
8335
|
} else {
|
|
@@ -8381,7 +8381,7 @@ var require_client_h2 = __commonJS({
|
|
|
8381
8381
|
stream.setTimeout(headersTimeout);
|
|
8382
8382
|
return true;
|
|
8383
8383
|
}
|
|
8384
|
-
headers[HTTP2_HEADER_PATH] =
|
|
8384
|
+
headers[HTTP2_HEADER_PATH] = path50;
|
|
8385
8385
|
headers[HTTP2_HEADER_SCHEME] = protocol === "http:" ? "http" : "https";
|
|
8386
8386
|
const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH";
|
|
8387
8387
|
if (body && typeof body.read === "function") {
|
|
@@ -10737,10 +10737,10 @@ var require_proxy_agent = __commonJS({
|
|
|
10737
10737
|
};
|
|
10738
10738
|
const {
|
|
10739
10739
|
origin,
|
|
10740
|
-
path:
|
|
10740
|
+
path: path50 = "/",
|
|
10741
10741
|
headers = {}
|
|
10742
10742
|
} = opts;
|
|
10743
|
-
opts.path = origin +
|
|
10743
|
+
opts.path = origin + path50;
|
|
10744
10744
|
if (!("host" in headers) && !("Host" in headers)) {
|
|
10745
10745
|
const { host } = new URL(origin);
|
|
10746
10746
|
headers.host = host;
|
|
@@ -12900,20 +12900,20 @@ var require_mock_utils = __commonJS({
|
|
|
12900
12900
|
}
|
|
12901
12901
|
return normalizedQp;
|
|
12902
12902
|
}
|
|
12903
|
-
function safeUrl(
|
|
12904
|
-
if (typeof
|
|
12905
|
-
return
|
|
12903
|
+
function safeUrl(path50) {
|
|
12904
|
+
if (typeof path50 !== "string") {
|
|
12905
|
+
return path50;
|
|
12906
12906
|
}
|
|
12907
|
-
const pathSegments =
|
|
12907
|
+
const pathSegments = path50.split("?", 3);
|
|
12908
12908
|
if (pathSegments.length !== 2) {
|
|
12909
|
-
return
|
|
12909
|
+
return path50;
|
|
12910
12910
|
}
|
|
12911
12911
|
const qp = new URLSearchParams(pathSegments.pop());
|
|
12912
12912
|
qp.sort();
|
|
12913
12913
|
return [...pathSegments, qp.toString()].join("?");
|
|
12914
12914
|
}
|
|
12915
|
-
function matchKey(mockDispatch2, { path:
|
|
12916
|
-
const pathMatch = matchValue(mockDispatch2.path,
|
|
12915
|
+
function matchKey(mockDispatch2, { path: path50, method, body, headers }) {
|
|
12916
|
+
const pathMatch = matchValue(mockDispatch2.path, path50);
|
|
12917
12917
|
const methodMatch = matchValue(mockDispatch2.method, method);
|
|
12918
12918
|
const bodyMatch = typeof mockDispatch2.body !== "undefined" ? matchValue(mockDispatch2.body, body) : true;
|
|
12919
12919
|
const headersMatch = matchHeaders(mockDispatch2, headers);
|
|
@@ -12938,8 +12938,8 @@ var require_mock_utils = __commonJS({
|
|
|
12938
12938
|
const basePath = key.query ? serializePathWithQuery(key.path, key.query) : key.path;
|
|
12939
12939
|
const resolvedPath = typeof basePath === "string" ? safeUrl(basePath) : basePath;
|
|
12940
12940
|
const resolvedPathWithoutTrailingSlash = removeTrailingSlash(resolvedPath);
|
|
12941
|
-
let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path:
|
|
12942
|
-
return ignoreTrailingSlash ? matchValue(removeTrailingSlash(safeUrl(
|
|
12941
|
+
let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path: path50, ignoreTrailingSlash }) => {
|
|
12942
|
+
return ignoreTrailingSlash ? matchValue(removeTrailingSlash(safeUrl(path50)), resolvedPathWithoutTrailingSlash) : matchValue(safeUrl(path50), resolvedPath);
|
|
12943
12943
|
});
|
|
12944
12944
|
if (matchedMockDispatches.length === 0) {
|
|
12945
12945
|
throw new MockNotMatchedError(`Mock dispatch not matched for path '${resolvedPath}'`);
|
|
@@ -12978,19 +12978,19 @@ var require_mock_utils = __commonJS({
|
|
|
12978
12978
|
mockDispatches.splice(index, 1);
|
|
12979
12979
|
}
|
|
12980
12980
|
}
|
|
12981
|
-
function removeTrailingSlash(
|
|
12982
|
-
while (
|
|
12983
|
-
|
|
12981
|
+
function removeTrailingSlash(path50) {
|
|
12982
|
+
while (path50.endsWith("/")) {
|
|
12983
|
+
path50 = path50.slice(0, -1);
|
|
12984
12984
|
}
|
|
12985
|
-
if (
|
|
12986
|
-
|
|
12985
|
+
if (path50.length === 0) {
|
|
12986
|
+
path50 = "/";
|
|
12987
12987
|
}
|
|
12988
|
-
return
|
|
12988
|
+
return path50;
|
|
12989
12989
|
}
|
|
12990
12990
|
function buildKey(opts) {
|
|
12991
|
-
const { path:
|
|
12991
|
+
const { path: path50, method, body, headers, query } = opts;
|
|
12992
12992
|
return {
|
|
12993
|
-
path:
|
|
12993
|
+
path: path50,
|
|
12994
12994
|
method,
|
|
12995
12995
|
body,
|
|
12996
12996
|
headers,
|
|
@@ -13680,10 +13680,10 @@ var require_pending_interceptors_formatter = __commonJS({
|
|
|
13680
13680
|
}
|
|
13681
13681
|
format(pendingInterceptors) {
|
|
13682
13682
|
const withPrettyHeaders = pendingInterceptors.map(
|
|
13683
|
-
({ method, path:
|
|
13683
|
+
({ method, path: path50, data: { statusCode }, persist, times, timesInvoked, origin }) => ({
|
|
13684
13684
|
Method: method,
|
|
13685
13685
|
Origin: origin,
|
|
13686
|
-
Path:
|
|
13686
|
+
Path: path50,
|
|
13687
13687
|
"Status code": statusCode,
|
|
13688
13688
|
Persistent: persist ? PERSISTENT : NOT_PERSISTENT,
|
|
13689
13689
|
Invocations: timesInvoked,
|
|
@@ -13765,9 +13765,9 @@ var require_mock_agent = __commonJS({
|
|
|
13765
13765
|
const acceptNonStandardSearchParameters = this[kMockAgentAcceptsNonStandardSearchParameters];
|
|
13766
13766
|
const dispatchOpts = { ...opts };
|
|
13767
13767
|
if (acceptNonStandardSearchParameters && dispatchOpts.path) {
|
|
13768
|
-
const [
|
|
13768
|
+
const [path50, searchParams] = dispatchOpts.path.split("?");
|
|
13769
13769
|
const normalizedSearchParams = normalizeSearchParams(searchParams, acceptNonStandardSearchParameters);
|
|
13770
|
-
dispatchOpts.path = `${
|
|
13770
|
+
dispatchOpts.path = `${path50}?${normalizedSearchParams}`;
|
|
13771
13771
|
}
|
|
13772
13772
|
return this[kAgent].dispatch(dispatchOpts, handler);
|
|
13773
13773
|
}
|
|
@@ -14168,12 +14168,12 @@ var require_snapshot_recorder = __commonJS({
|
|
|
14168
14168
|
* @return {Promise<void>} - Resolves when snapshots are loaded
|
|
14169
14169
|
*/
|
|
14170
14170
|
async loadSnapshots(filePath) {
|
|
14171
|
-
const
|
|
14172
|
-
if (!
|
|
14171
|
+
const path50 = filePath || this.#snapshotPath;
|
|
14172
|
+
if (!path50) {
|
|
14173
14173
|
throw new InvalidArgumentError("Snapshot path is required");
|
|
14174
14174
|
}
|
|
14175
14175
|
try {
|
|
14176
|
-
const data = await readFile(resolve2(
|
|
14176
|
+
const data = await readFile(resolve2(path50), "utf8");
|
|
14177
14177
|
const parsed = JSON.parse(data);
|
|
14178
14178
|
if (Array.isArray(parsed)) {
|
|
14179
14179
|
this.#snapshots.clear();
|
|
@@ -14187,7 +14187,7 @@ var require_snapshot_recorder = __commonJS({
|
|
|
14187
14187
|
if (error.code === "ENOENT") {
|
|
14188
14188
|
this.#snapshots.clear();
|
|
14189
14189
|
} else {
|
|
14190
|
-
throw new UndiciError(`Failed to load snapshots from ${
|
|
14190
|
+
throw new UndiciError(`Failed to load snapshots from ${path50}`, { cause: error });
|
|
14191
14191
|
}
|
|
14192
14192
|
}
|
|
14193
14193
|
}
|
|
@@ -14198,11 +14198,11 @@ var require_snapshot_recorder = __commonJS({
|
|
|
14198
14198
|
* @returns {Promise<void>} - Resolves when snapshots are saved
|
|
14199
14199
|
*/
|
|
14200
14200
|
async saveSnapshots(filePath) {
|
|
14201
|
-
const
|
|
14202
|
-
if (!
|
|
14201
|
+
const path50 = filePath || this.#snapshotPath;
|
|
14202
|
+
if (!path50) {
|
|
14203
14203
|
throw new InvalidArgumentError("Snapshot path is required");
|
|
14204
14204
|
}
|
|
14205
|
-
const resolvedPath = resolve2(
|
|
14205
|
+
const resolvedPath = resolve2(path50);
|
|
14206
14206
|
await mkdir(dirname(resolvedPath), { recursive: true });
|
|
14207
14207
|
const data = Array.from(this.#snapshots.entries()).map(([hash, snapshot]) => ({
|
|
14208
14208
|
hash,
|
|
@@ -14843,15 +14843,15 @@ var require_redirect_handler = __commonJS({
|
|
|
14843
14843
|
receivedAt: Date.now()
|
|
14844
14844
|
});
|
|
14845
14845
|
const { origin, pathname, search } = util.parseURL(new URL(this.location, this.opts.origin && new URL(this.opts.path, this.opts.origin)));
|
|
14846
|
-
const
|
|
14847
|
-
const redirectUrlString = `${origin}${
|
|
14846
|
+
const path50 = search ? `${pathname}${search}` : pathname;
|
|
14847
|
+
const redirectUrlString = `${origin}${path50}`;
|
|
14848
14848
|
for (const historyUrl of this.history) {
|
|
14849
14849
|
if (historyUrl.toString() === redirectUrlString) {
|
|
14850
14850
|
throw new InvalidArgumentError(`Redirect loop detected. Cannot redirect to ${origin}. This typically happens when using a Client or Pool with cross-origin redirects. Use an Agent for cross-origin redirects.`);
|
|
14851
14851
|
}
|
|
14852
14852
|
}
|
|
14853
14853
|
this.opts.headers = cleanRequestHeaders(this.opts.headers, statusCode === 303, this.opts.origin !== origin);
|
|
14854
|
-
this.opts.path =
|
|
14854
|
+
this.opts.path = path50;
|
|
14855
14855
|
this.opts.origin = origin;
|
|
14856
14856
|
this.opts.query = null;
|
|
14857
14857
|
}
|
|
@@ -16668,10 +16668,10 @@ var require_cache_handler = __commonJS({
|
|
|
16668
16668
|
}
|
|
16669
16669
|
return locationUrl.pathname + locationUrl.search;
|
|
16670
16670
|
}
|
|
16671
|
-
function deleteCachedUri(store, cacheKey,
|
|
16671
|
+
function deleteCachedUri(store, cacheKey, path50) {
|
|
16672
16672
|
deleteCachedValue(store, {
|
|
16673
16673
|
...cacheKey,
|
|
16674
|
-
path:
|
|
16674
|
+
path: path50
|
|
16675
16675
|
});
|
|
16676
16676
|
for (let i = 0; i < util.safeHTTPMethods.length; i++) {
|
|
16677
16677
|
const method = util.safeHTTPMethods[i];
|
|
@@ -16679,7 +16679,7 @@ var require_cache_handler = __commonJS({
|
|
|
16679
16679
|
deleteCachedValue(store, {
|
|
16680
16680
|
...cacheKey,
|
|
16681
16681
|
method,
|
|
16682
|
-
path:
|
|
16682
|
+
path: path50
|
|
16683
16683
|
});
|
|
16684
16684
|
}
|
|
16685
16685
|
}
|
|
@@ -16690,9 +16690,9 @@ var require_cache_handler = __commonJS({
|
|
|
16690
16690
|
}
|
|
16691
16691
|
const values = Array.isArray(headerValue) ? headerValue : [headerValue];
|
|
16692
16692
|
for (let i = 0; i < values.length; i++) {
|
|
16693
|
-
const
|
|
16694
|
-
if (
|
|
16695
|
-
deleteCachedUri(store, cacheKey,
|
|
16693
|
+
const path50 = getSameOriginPath(cacheKey, values[i]);
|
|
16694
|
+
if (path50 !== void 0) {
|
|
16695
|
+
deleteCachedUri(store, cacheKey, path50);
|
|
16696
16696
|
}
|
|
16697
16697
|
}
|
|
16698
16698
|
}
|
|
@@ -22180,11 +22180,11 @@ var require_fetch = __commonJS({
|
|
|
22180
22180
|
function dispatch({ body }) {
|
|
22181
22181
|
const url = requestCurrentURL(request2);
|
|
22182
22182
|
const agent = fetchParams.controller.dispatcher;
|
|
22183
|
-
const
|
|
22183
|
+
const path50 = url.pathname + url.search;
|
|
22184
22184
|
const hasTrailingQuestionMark = url.search.length === 0 && url.href[url.href.length - url.hash.length - 1] === "?";
|
|
22185
22185
|
return new Promise((resolve2, reject) => agent.dispatch(
|
|
22186
22186
|
{
|
|
22187
|
-
path: hasTrailingQuestionMark ? `${
|
|
22187
|
+
path: hasTrailingQuestionMark ? `${path50}?` : path50,
|
|
22188
22188
|
origin: url.origin,
|
|
22189
22189
|
method: request2.method,
|
|
22190
22190
|
body: agent.isMockActive ? request2.body && (request2.body.source || request2.body.stream) : body,
|
|
@@ -23131,9 +23131,9 @@ var require_util4 = __commonJS({
|
|
|
23131
23131
|
}
|
|
23132
23132
|
}
|
|
23133
23133
|
}
|
|
23134
|
-
function validateCookiePath(
|
|
23135
|
-
for (let i = 0; i <
|
|
23136
|
-
const code =
|
|
23134
|
+
function validateCookiePath(path50) {
|
|
23135
|
+
for (let i = 0; i < path50.length; ++i) {
|
|
23136
|
+
const code = path50.charCodeAt(i);
|
|
23137
23137
|
if (code < 32 || // exclude CTLs (0-31)
|
|
23138
23138
|
code > 126 || // exclude DEL and non-ascii
|
|
23139
23139
|
code === 59) {
|
|
@@ -26569,11 +26569,11 @@ var require_undici = __commonJS({
|
|
|
26569
26569
|
if (typeof opts.path !== "string") {
|
|
26570
26570
|
throw new InvalidArgumentError("invalid opts.path");
|
|
26571
26571
|
}
|
|
26572
|
-
let
|
|
26572
|
+
let path50 = opts.path;
|
|
26573
26573
|
if (!opts.path.startsWith("/")) {
|
|
26574
|
-
|
|
26574
|
+
path50 = `/${path50}`;
|
|
26575
26575
|
}
|
|
26576
|
-
url = new URL(util.parseOrigin(url).origin +
|
|
26576
|
+
url = new URL(util.parseOrigin(url).origin + path50);
|
|
26577
26577
|
} else {
|
|
26578
26578
|
if (!opts) {
|
|
26579
26579
|
opts = typeof url === "object" ? url : {};
|
|
@@ -26682,9 +26682,9 @@ ${captureLines}` : capture.stack;
|
|
|
26682
26682
|
}
|
|
26683
26683
|
});
|
|
26684
26684
|
|
|
26685
|
-
//
|
|
26685
|
+
// ../../../../cli/node_modules/react/cjs/react.production.js
|
|
26686
26686
|
var require_react_production = __commonJS({
|
|
26687
|
-
"
|
|
26687
|
+
"../../../../cli/node_modules/react/cjs/react.production.js"(exports) {
|
|
26688
26688
|
"use strict";
|
|
26689
26689
|
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
|
|
26690
26690
|
var REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal");
|
|
@@ -27134,9 +27134,9 @@ var require_react_production = __commonJS({
|
|
|
27134
27134
|
}
|
|
27135
27135
|
});
|
|
27136
27136
|
|
|
27137
|
-
//
|
|
27137
|
+
// ../../../../cli/node_modules/react/cjs/react.development.js
|
|
27138
27138
|
var require_react_development = __commonJS({
|
|
27139
|
-
"
|
|
27139
|
+
"../../../../cli/node_modules/react/cjs/react.development.js"(exports, module) {
|
|
27140
27140
|
"use strict";
|
|
27141
27141
|
"production" !== process.env.NODE_ENV && (function() {
|
|
27142
27142
|
function defineDeprecationWarning(methodName, info) {
|
|
@@ -28131,9 +28131,9 @@ var require_react_development = __commonJS({
|
|
|
28131
28131
|
}
|
|
28132
28132
|
});
|
|
28133
28133
|
|
|
28134
|
-
//
|
|
28134
|
+
// ../../../../cli/node_modules/react/index.js
|
|
28135
28135
|
var require_react = __commonJS({
|
|
28136
|
-
"
|
|
28136
|
+
"../../../../cli/node_modules/react/index.js"(exports, module) {
|
|
28137
28137
|
"use strict";
|
|
28138
28138
|
if (process.env.NODE_ENV === "production") {
|
|
28139
28139
|
module.exports = require_react_production();
|
|
@@ -28143,9 +28143,9 @@ var require_react = __commonJS({
|
|
|
28143
28143
|
}
|
|
28144
28144
|
});
|
|
28145
28145
|
|
|
28146
|
-
//
|
|
28146
|
+
// ../../../../cli/node_modules/react/cjs/react-jsx-runtime.production.js
|
|
28147
28147
|
var require_react_jsx_runtime_production = __commonJS({
|
|
28148
|
-
"
|
|
28148
|
+
"../../../../cli/node_modules/react/cjs/react-jsx-runtime.production.js"(exports) {
|
|
28149
28149
|
"use strict";
|
|
28150
28150
|
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
|
|
28151
28151
|
var REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
@@ -28173,9 +28173,9 @@ var require_react_jsx_runtime_production = __commonJS({
|
|
|
28173
28173
|
}
|
|
28174
28174
|
});
|
|
28175
28175
|
|
|
28176
|
-
//
|
|
28176
|
+
// ../../../../cli/node_modules/react/cjs/react-jsx-runtime.development.js
|
|
28177
28177
|
var require_react_jsx_runtime_development = __commonJS({
|
|
28178
|
-
"
|
|
28178
|
+
"../../../../cli/node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
|
|
28179
28179
|
"use strict";
|
|
28180
28180
|
"production" !== process.env.NODE_ENV && (function() {
|
|
28181
28181
|
function getComponentNameFromType(type) {
|
|
@@ -28444,9 +28444,9 @@ var require_react_jsx_runtime_development = __commonJS({
|
|
|
28444
28444
|
}
|
|
28445
28445
|
});
|
|
28446
28446
|
|
|
28447
|
-
//
|
|
28447
|
+
// ../../../../cli/node_modules/react/jsx-runtime.js
|
|
28448
28448
|
var require_jsx_runtime = __commonJS({
|
|
28449
|
-
"
|
|
28449
|
+
"../../../../cli/node_modules/react/jsx-runtime.js"(exports, module) {
|
|
28450
28450
|
"use strict";
|
|
28451
28451
|
if (process.env.NODE_ENV === "production") {
|
|
28452
28452
|
module.exports = require_react_jsx_runtime_production();
|
|
@@ -28456,9 +28456,9 @@ var require_jsx_runtime = __commonJS({
|
|
|
28456
28456
|
}
|
|
28457
28457
|
});
|
|
28458
28458
|
|
|
28459
|
-
//
|
|
28459
|
+
// ../../../../cli/node_modules/react-dom/cjs/react-dom.production.js
|
|
28460
28460
|
var require_react_dom_production = __commonJS({
|
|
28461
|
-
"
|
|
28461
|
+
"../../../../cli/node_modules/react-dom/cjs/react-dom.production.js"(exports) {
|
|
28462
28462
|
"use strict";
|
|
28463
28463
|
var React4 = require_react();
|
|
28464
28464
|
function formatProdErrorMessage(code) {
|
|
@@ -28613,9 +28613,9 @@ var require_react_dom_production = __commonJS({
|
|
|
28613
28613
|
}
|
|
28614
28614
|
});
|
|
28615
28615
|
|
|
28616
|
-
//
|
|
28616
|
+
// ../../../../cli/node_modules/react-dom/cjs/react-dom.development.js
|
|
28617
28617
|
var require_react_dom_development = __commonJS({
|
|
28618
|
-
"
|
|
28618
|
+
"../../../../cli/node_modules/react-dom/cjs/react-dom.development.js"(exports) {
|
|
28619
28619
|
"use strict";
|
|
28620
28620
|
"production" !== process.env.NODE_ENV && (function() {
|
|
28621
28621
|
function noop() {
|
|
@@ -28868,9 +28868,9 @@ var require_react_dom_development = __commonJS({
|
|
|
28868
28868
|
}
|
|
28869
28869
|
});
|
|
28870
28870
|
|
|
28871
|
-
//
|
|
28871
|
+
// ../../../../cli/node_modules/react-dom/index.js
|
|
28872
28872
|
var require_react_dom = __commonJS({
|
|
28873
|
-
"
|
|
28873
|
+
"../../../../cli/node_modules/react-dom/index.js"(exports, module) {
|
|
28874
28874
|
"use strict";
|
|
28875
28875
|
function checkDCE() {
|
|
28876
28876
|
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== "function") {
|
|
@@ -28894,9 +28894,9 @@ var require_react_dom = __commonJS({
|
|
|
28894
28894
|
}
|
|
28895
28895
|
});
|
|
28896
28896
|
|
|
28897
|
-
//
|
|
28897
|
+
// ../../../../cli/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.js
|
|
28898
28898
|
var require_react_dom_server_legacy_node_production = __commonJS({
|
|
28899
|
-
"
|
|
28899
|
+
"../../../../cli/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.js"(exports) {
|
|
28900
28900
|
"use strict";
|
|
28901
28901
|
var React4 = require_react();
|
|
28902
28902
|
var ReactDOM = require_react_dom();
|
|
@@ -34145,9 +34145,9 @@ A.finished.finally(function(){document.__reactViewTransition===A&&(document.__re
|
|
|
34145
34145
|
}
|
|
34146
34146
|
});
|
|
34147
34147
|
|
|
34148
|
-
//
|
|
34148
|
+
// ../../../../cli/node_modules/react-dom/cjs/react-dom-server.node.production.js
|
|
34149
34149
|
var require_react_dom_server_node_production = __commonJS({
|
|
34150
|
-
"
|
|
34150
|
+
"../../../../cli/node_modules/react-dom/cjs/react-dom-server.node.production.js"(exports) {
|
|
34151
34151
|
"use strict";
|
|
34152
34152
|
var util = __require("util");
|
|
34153
34153
|
var crypto9 = __require("crypto");
|
|
@@ -40319,9 +40319,9 @@ A.finished.finally(function(){document.__reactViewTransition===A&&(document.__re
|
|
|
40319
40319
|
}
|
|
40320
40320
|
});
|
|
40321
40321
|
|
|
40322
|
-
//
|
|
40322
|
+
// ../../../../cli/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js
|
|
40323
40323
|
var require_react_dom_server_legacy_node_development = __commonJS({
|
|
40324
|
-
"
|
|
40324
|
+
"../../../../cli/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js"(exports) {
|
|
40325
40325
|
"use strict";
|
|
40326
40326
|
"production" !== process.env.NODE_ENV && (function() {
|
|
40327
40327
|
function styleReplacer(match, prefix2, s, suffix2) {
|
|
@@ -47829,9 +47829,9 @@ A.finished.finally(function(){document.__reactViewTransition===A&&(document.__re
|
|
|
47829
47829
|
}
|
|
47830
47830
|
});
|
|
47831
47831
|
|
|
47832
|
-
//
|
|
47832
|
+
// ../../../../cli/node_modules/react-dom/cjs/react-dom-server.node.development.js
|
|
47833
47833
|
var require_react_dom_server_node_development = __commonJS({
|
|
47834
|
-
"
|
|
47834
|
+
"../../../../cli/node_modules/react-dom/cjs/react-dom-server.node.development.js"(exports) {
|
|
47835
47835
|
"use strict";
|
|
47836
47836
|
"production" !== process.env.NODE_ENV && (function() {
|
|
47837
47837
|
function styleReplacer(match, prefix2, s, suffix2) {
|
|
@@ -56128,9 +56128,9 @@ A.finished.finally(function(){document.__reactViewTransition===A&&(document.__re
|
|
|
56128
56128
|
}
|
|
56129
56129
|
});
|
|
56130
56130
|
|
|
56131
|
-
//
|
|
56131
|
+
// ../../../../cli/node_modules/react-dom/server.node.js
|
|
56132
56132
|
var require_server_node = __commonJS({
|
|
56133
|
-
"
|
|
56133
|
+
"../../../../cli/node_modules/react-dom/server.node.js"(exports) {
|
|
56134
56134
|
"use strict";
|
|
56135
56135
|
var l2;
|
|
56136
56136
|
var s;
|
|
@@ -56151,9 +56151,9 @@ var require_server_node = __commonJS({
|
|
|
56151
56151
|
}
|
|
56152
56152
|
});
|
|
56153
56153
|
|
|
56154
|
-
//
|
|
56154
|
+
// ../../../../cli/node_modules/sucrase/dist/parser/tokenizer/keywords.js
|
|
56155
56155
|
var require_keywords = __commonJS({
|
|
56156
|
-
"
|
|
56156
|
+
"../../../../cli/node_modules/sucrase/dist/parser/tokenizer/keywords.js"(exports) {
|
|
56157
56157
|
"use strict";
|
|
56158
56158
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
56159
56159
|
var ContextualKeyword;
|
|
@@ -56244,9 +56244,9 @@ var require_keywords = __commonJS({
|
|
|
56244
56244
|
}
|
|
56245
56245
|
});
|
|
56246
56246
|
|
|
56247
|
-
//
|
|
56247
|
+
// ../../../../cli/node_modules/sucrase/dist/parser/tokenizer/types.js
|
|
56248
56248
|
var require_types = __commonJS({
|
|
56249
|
-
"
|
|
56249
|
+
"../../../../cli/node_modules/sucrase/dist/parser/tokenizer/types.js"(exports) {
|
|
56250
56250
|
"use strict";
|
|
56251
56251
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
56252
56252
|
var TokenType;
|
|
@@ -56728,9 +56728,9 @@ var require_types = __commonJS({
|
|
|
56728
56728
|
}
|
|
56729
56729
|
});
|
|
56730
56730
|
|
|
56731
|
-
//
|
|
56731
|
+
// ../../../../cli/node_modules/sucrase/dist/parser/tokenizer/state.js
|
|
56732
56732
|
var require_state = __commonJS({
|
|
56733
|
-
"
|
|
56733
|
+
"../../../../cli/node_modules/sucrase/dist/parser/tokenizer/state.js"(exports) {
|
|
56734
56734
|
"use strict";
|
|
56735
56735
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
56736
56736
|
var _keywords = require_keywords();
|
|
@@ -56869,9 +56869,9 @@ var require_state = __commonJS({
|
|
|
56869
56869
|
}
|
|
56870
56870
|
});
|
|
56871
56871
|
|
|
56872
|
-
//
|
|
56872
|
+
// ../../../../cli/node_modules/sucrase/dist/parser/util/charcodes.js
|
|
56873
56873
|
var require_charcodes = __commonJS({
|
|
56874
|
-
"
|
|
56874
|
+
"../../../../cli/node_modules/sucrase/dist/parser/util/charcodes.js"(exports) {
|
|
56875
56875
|
"use strict";
|
|
56876
56876
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
56877
56877
|
var charCodes;
|
|
@@ -57092,9 +57092,9 @@ var require_charcodes = __commonJS({
|
|
|
57092
57092
|
}
|
|
57093
57093
|
});
|
|
57094
57094
|
|
|
57095
|
-
//
|
|
57095
|
+
// ../../../../cli/node_modules/sucrase/dist/parser/traverser/base.js
|
|
57096
57096
|
var require_base = __commonJS({
|
|
57097
|
-
"
|
|
57097
|
+
"../../../../cli/node_modules/sucrase/dist/parser/traverser/base.js"(exports) {
|
|
57098
57098
|
"use strict";
|
|
57099
57099
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57100
57100
|
function _interopRequireDefault(obj3) {
|
|
@@ -57155,9 +57155,9 @@ var require_base = __commonJS({
|
|
|
57155
57155
|
}
|
|
57156
57156
|
});
|
|
57157
57157
|
|
|
57158
|
-
//
|
|
57158
|
+
// ../../../../cli/node_modules/sucrase/dist/parser/traverser/util.js
|
|
57159
57159
|
var require_util7 = __commonJS({
|
|
57160
|
-
"
|
|
57160
|
+
"../../../../cli/node_modules/sucrase/dist/parser/traverser/util.js"(exports) {
|
|
57161
57161
|
"use strict";
|
|
57162
57162
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57163
57163
|
var _index = require_tokenizer();
|
|
@@ -57241,9 +57241,9 @@ var require_util7 = __commonJS({
|
|
|
57241
57241
|
}
|
|
57242
57242
|
});
|
|
57243
57243
|
|
|
57244
|
-
//
|
|
57244
|
+
// ../../../../cli/node_modules/sucrase/dist/parser/util/whitespace.js
|
|
57245
57245
|
var require_whitespace = __commonJS({
|
|
57246
|
-
"
|
|
57246
|
+
"../../../../cli/node_modules/sucrase/dist/parser/util/whitespace.js"(exports) {
|
|
57247
57247
|
"use strict";
|
|
57248
57248
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57249
57249
|
var _charcodes = require_charcodes();
|
|
@@ -57296,9 +57296,9 @@ var require_whitespace = __commonJS({
|
|
|
57296
57296
|
}
|
|
57297
57297
|
});
|
|
57298
57298
|
|
|
57299
|
-
//
|
|
57299
|
+
// ../../../../cli/node_modules/sucrase/dist/parser/util/identifier.js
|
|
57300
57300
|
var require_identifier = __commonJS({
|
|
57301
|
-
"
|
|
57301
|
+
"../../../../cli/node_modules/sucrase/dist/parser/util/identifier.js"(exports) {
|
|
57302
57302
|
"use strict";
|
|
57303
57303
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57304
57304
|
var _charcodes = require_charcodes();
|
|
@@ -57334,9 +57334,9 @@ var require_identifier = __commonJS({
|
|
|
57334
57334
|
}
|
|
57335
57335
|
});
|
|
57336
57336
|
|
|
57337
|
-
//
|
|
57337
|
+
// ../../../../cli/node_modules/sucrase/dist/parser/tokenizer/readWordTree.js
|
|
57338
57338
|
var require_readWordTree = __commonJS({
|
|
57339
|
-
"
|
|
57339
|
+
"../../../../cli/node_modules/sucrase/dist/parser/tokenizer/readWordTree.js"(exports) {
|
|
57340
57340
|
"use strict";
|
|
57341
57341
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57342
57342
|
var _keywords = require_keywords();
|
|
@@ -66643,9 +66643,9 @@ var require_readWordTree = __commonJS({
|
|
|
66643
66643
|
}
|
|
66644
66644
|
});
|
|
66645
66645
|
|
|
66646
|
-
//
|
|
66646
|
+
// ../../../../cli/node_modules/sucrase/dist/parser/tokenizer/readWord.js
|
|
66647
66647
|
var require_readWord = __commonJS({
|
|
66648
|
-
"
|
|
66648
|
+
"../../../../cli/node_modules/sucrase/dist/parser/tokenizer/readWord.js"(exports) {
|
|
66649
66649
|
"use strict";
|
|
66650
66650
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66651
66651
|
var _base = require_base();
|
|
@@ -66706,9 +66706,9 @@ var require_readWord = __commonJS({
|
|
|
66706
66706
|
}
|
|
66707
66707
|
});
|
|
66708
66708
|
|
|
66709
|
-
//
|
|
66709
|
+
// ../../../../cli/node_modules/sucrase/dist/parser/tokenizer/index.js
|
|
66710
66710
|
var require_tokenizer = __commonJS({
|
|
66711
|
-
"
|
|
66711
|
+
"../../../../cli/node_modules/sucrase/dist/parser/tokenizer/index.js"(exports) {
|
|
66712
66712
|
"use strict";
|
|
66713
66713
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66714
66714
|
function _interopRequireDefault(obj3) {
|
|
@@ -67460,9 +67460,9 @@ var require_tokenizer = __commonJS({
|
|
|
67460
67460
|
}
|
|
67461
67461
|
});
|
|
67462
67462
|
|
|
67463
|
-
//
|
|
67463
|
+
// ../../../../cli/node_modules/sucrase/dist/util/getImportExportSpecifierInfo.js
|
|
67464
67464
|
var require_getImportExportSpecifierInfo = __commonJS({
|
|
67465
|
-
"
|
|
67465
|
+
"../../../../cli/node_modules/sucrase/dist/util/getImportExportSpecifierInfo.js"(exports) {
|
|
67466
67466
|
"use strict";
|
|
67467
67467
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67468
67468
|
var _types = require_types();
|
|
@@ -67514,9 +67514,9 @@ var require_getImportExportSpecifierInfo = __commonJS({
|
|
|
67514
67514
|
}
|
|
67515
67515
|
});
|
|
67516
67516
|
|
|
67517
|
-
//
|
|
67517
|
+
// ../../../../cli/node_modules/sucrase/dist/parser/plugins/jsx/xhtml.js
|
|
67518
67518
|
var require_xhtml = __commonJS({
|
|
67519
|
-
"
|
|
67519
|
+
"../../../../cli/node_modules/sucrase/dist/parser/plugins/jsx/xhtml.js"(exports) {
|
|
67520
67520
|
"use strict";
|
|
67521
67521
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67522
67522
|
exports.default = /* @__PURE__ */ new Map([
|
|
@@ -67777,9 +67777,9 @@ var require_xhtml = __commonJS({
|
|
|
67777
67777
|
}
|
|
67778
67778
|
});
|
|
67779
67779
|
|
|
67780
|
-
//
|
|
67780
|
+
// ../../../../cli/node_modules/sucrase/dist/util/getJSXPragmaInfo.js
|
|
67781
67781
|
var require_getJSXPragmaInfo = __commonJS({
|
|
67782
|
-
"
|
|
67782
|
+
"../../../../cli/node_modules/sucrase/dist/util/getJSXPragmaInfo.js"(exports) {
|
|
67783
67783
|
"use strict";
|
|
67784
67784
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67785
67785
|
function getJSXPragmaInfo(options) {
|
|
@@ -67798,9 +67798,9 @@ var require_getJSXPragmaInfo = __commonJS({
|
|
|
67798
67798
|
}
|
|
67799
67799
|
});
|
|
67800
67800
|
|
|
67801
|
-
//
|
|
67801
|
+
// ../../../../cli/node_modules/sucrase/dist/transformers/Transformer.js
|
|
67802
67802
|
var require_Transformer = __commonJS({
|
|
67803
|
-
"
|
|
67803
|
+
"../../../../cli/node_modules/sucrase/dist/transformers/Transformer.js"(exports) {
|
|
67804
67804
|
"use strict";
|
|
67805
67805
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67806
67806
|
var Transformer = class {
|
|
@@ -67819,9 +67819,9 @@ var require_Transformer = __commonJS({
|
|
|
67819
67819
|
}
|
|
67820
67820
|
});
|
|
67821
67821
|
|
|
67822
|
-
//
|
|
67822
|
+
// ../../../../cli/node_modules/sucrase/dist/transformers/JSXTransformer.js
|
|
67823
67823
|
var require_JSXTransformer = __commonJS({
|
|
67824
|
-
"
|
|
67824
|
+
"../../../../cli/node_modules/sucrase/dist/transformers/JSXTransformer.js"(exports) {
|
|
67825
67825
|
"use strict";
|
|
67826
67826
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67827
67827
|
function _interopRequireDefault(obj3) {
|
|
@@ -67889,8 +67889,8 @@ var require_JSXTransformer = __commonJS({
|
|
|
67889
67889
|
}
|
|
67890
67890
|
if (this.isAutomaticRuntime) {
|
|
67891
67891
|
if (this.importProcessor) {
|
|
67892
|
-
for (const [
|
|
67893
|
-
prefix += `var ${resolvedName} = require("${
|
|
67892
|
+
for (const [path50, resolvedName] of Object.entries(this.cjsAutomaticModuleNameResolutions)) {
|
|
67893
|
+
prefix += `var ${resolvedName} = require("${path50}");`;
|
|
67894
67894
|
}
|
|
67895
67895
|
} else {
|
|
67896
67896
|
const { createElement: createElementResolution, ...otherResolutions } = this.esmAutomaticImportNameResolutions;
|
|
@@ -68083,11 +68083,11 @@ var require_JSXTransformer = __commonJS({
|
|
|
68083
68083
|
}
|
|
68084
68084
|
claimAutoImportedName(funcName, importPathSuffix) {
|
|
68085
68085
|
if (this.importProcessor) {
|
|
68086
|
-
const
|
|
68087
|
-
if (!this.cjsAutomaticModuleNameResolutions[
|
|
68088
|
-
this.cjsAutomaticModuleNameResolutions[
|
|
68086
|
+
const path50 = this.jsxImportSource + importPathSuffix;
|
|
68087
|
+
if (!this.cjsAutomaticModuleNameResolutions[path50]) {
|
|
68088
|
+
this.cjsAutomaticModuleNameResolutions[path50] = this.importProcessor.getFreeIdentifierForPath(path50);
|
|
68089
68089
|
}
|
|
68090
|
-
return `${this.cjsAutomaticModuleNameResolutions[
|
|
68090
|
+
return `${this.cjsAutomaticModuleNameResolutions[path50]}.${funcName}`;
|
|
68091
68091
|
} else {
|
|
68092
68092
|
if (!this.esmAutomaticImportNameResolutions[funcName]) {
|
|
68093
68093
|
this.esmAutomaticImportNameResolutions[funcName] = this.nameManager.claimFreeName(
|
|
@@ -68420,9 +68420,9 @@ var require_JSXTransformer = __commonJS({
|
|
|
68420
68420
|
}
|
|
68421
68421
|
});
|
|
68422
68422
|
|
|
68423
|
-
//
|
|
68423
|
+
// ../../../../cli/node_modules/sucrase/dist/util/getNonTypeIdentifiers.js
|
|
68424
68424
|
var require_getNonTypeIdentifiers = __commonJS({
|
|
68425
|
-
"
|
|
68425
|
+
"../../../../cli/node_modules/sucrase/dist/util/getNonTypeIdentifiers.js"(exports) {
|
|
68426
68426
|
"use strict";
|
|
68427
68427
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
68428
68428
|
function _interopRequireDefault(obj3) {
|
|
@@ -68461,9 +68461,9 @@ var require_getNonTypeIdentifiers = __commonJS({
|
|
|
68461
68461
|
}
|
|
68462
68462
|
});
|
|
68463
68463
|
|
|
68464
|
-
//
|
|
68464
|
+
// ../../../../cli/node_modules/sucrase/dist/CJSImportProcessor.js
|
|
68465
68465
|
var require_CJSImportProcessor = __commonJS({
|
|
68466
|
-
"
|
|
68466
|
+
"../../../../cli/node_modules/sucrase/dist/CJSImportProcessor.js"(exports) {
|
|
68467
68467
|
"use strict";
|
|
68468
68468
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
68469
68469
|
function _interopRequireDefault(obj3) {
|
|
@@ -68523,7 +68523,7 @@ var require_CJSImportProcessor = __commonJS({
|
|
|
68523
68523
|
*/
|
|
68524
68524
|
pruneTypeOnlyImports() {
|
|
68525
68525
|
this.nonTypeIdentifiers = _getNonTypeIdentifiers.getNonTypeIdentifiers.call(void 0, this.tokens, this.options);
|
|
68526
|
-
for (const [
|
|
68526
|
+
for (const [path50, importInfo] of this.importInfoByPath.entries()) {
|
|
68527
68527
|
if (importInfo.hasBareImport || importInfo.hasStarExport || importInfo.exportStarNames.length > 0 || importInfo.namedExports.length > 0) {
|
|
68528
68528
|
continue;
|
|
68529
68529
|
}
|
|
@@ -68533,7 +68533,7 @@ var require_CJSImportProcessor = __commonJS({
|
|
|
68533
68533
|
...importInfo.namedImports.map(({ localName }) => localName)
|
|
68534
68534
|
];
|
|
68535
68535
|
if (names2.every((name) => this.shouldAutomaticallyElideImportedName(name))) {
|
|
68536
|
-
this.importsToReplace.set(
|
|
68536
|
+
this.importsToReplace.set(path50, "");
|
|
68537
68537
|
}
|
|
68538
68538
|
}
|
|
68539
68539
|
}
|
|
@@ -68541,7 +68541,7 @@ var require_CJSImportProcessor = __commonJS({
|
|
|
68541
68541
|
return this.isTypeScriptTransformEnabled && !this.keepUnusedImports && !this.nonTypeIdentifiers.has(name);
|
|
68542
68542
|
}
|
|
68543
68543
|
generateImportReplacements() {
|
|
68544
|
-
for (const [
|
|
68544
|
+
for (const [path50, importInfo] of this.importInfoByPath.entries()) {
|
|
68545
68545
|
const {
|
|
68546
68546
|
defaultNames,
|
|
68547
68547
|
wildcardNames,
|
|
@@ -68551,17 +68551,17 @@ var require_CJSImportProcessor = __commonJS({
|
|
|
68551
68551
|
hasStarExport
|
|
68552
68552
|
} = importInfo;
|
|
68553
68553
|
if (defaultNames.length === 0 && wildcardNames.length === 0 && namedImports.length === 0 && namedExports.length === 0 && exportStarNames.length === 0 && !hasStarExport) {
|
|
68554
|
-
this.importsToReplace.set(
|
|
68554
|
+
this.importsToReplace.set(path50, `require('${path50}');`);
|
|
68555
68555
|
continue;
|
|
68556
68556
|
}
|
|
68557
|
-
const primaryImportName = this.getFreeIdentifierForPath(
|
|
68557
|
+
const primaryImportName = this.getFreeIdentifierForPath(path50);
|
|
68558
68558
|
let secondaryImportName;
|
|
68559
68559
|
if (this.enableLegacyTypeScriptModuleInterop) {
|
|
68560
68560
|
secondaryImportName = primaryImportName;
|
|
68561
68561
|
} else {
|
|
68562
|
-
secondaryImportName = wildcardNames.length > 0 ? wildcardNames[0] : this.getFreeIdentifierForPath(
|
|
68562
|
+
secondaryImportName = wildcardNames.length > 0 ? wildcardNames[0] : this.getFreeIdentifierForPath(path50);
|
|
68563
68563
|
}
|
|
68564
|
-
let requireCode = `var ${primaryImportName} = require('${
|
|
68564
|
+
let requireCode = `var ${primaryImportName} = require('${path50}');`;
|
|
68565
68565
|
if (wildcardNames.length > 0) {
|
|
68566
68566
|
for (const wildcardName of wildcardNames) {
|
|
68567
68567
|
const moduleExpr = this.enableLegacyTypeScriptModuleInterop ? primaryImportName : `${this.helperManager.getHelperName("interopRequireWildcard")}(${primaryImportName})`;
|
|
@@ -68589,7 +68589,7 @@ var require_CJSImportProcessor = __commonJS({
|
|
|
68589
68589
|
"createStarExport"
|
|
68590
68590
|
)}(${primaryImportName});`;
|
|
68591
68591
|
}
|
|
68592
|
-
this.importsToReplace.set(
|
|
68592
|
+
this.importsToReplace.set(path50, requireCode);
|
|
68593
68593
|
for (const defaultName of defaultNames) {
|
|
68594
68594
|
this.identifierReplacements.set(defaultName, `${secondaryImportName}.default`);
|
|
68595
68595
|
}
|
|
@@ -68598,8 +68598,8 @@ var require_CJSImportProcessor = __commonJS({
|
|
|
68598
68598
|
}
|
|
68599
68599
|
}
|
|
68600
68600
|
}
|
|
68601
|
-
getFreeIdentifierForPath(
|
|
68602
|
-
const components =
|
|
68601
|
+
getFreeIdentifierForPath(path50) {
|
|
68602
|
+
const components = path50.split("/");
|
|
68603
68603
|
const lastComponent = components[components.length - 1];
|
|
68604
68604
|
const baseName = lastComponent.replace(/\W/g, "");
|
|
68605
68605
|
return this.nameManager.claimFreeName(`_${baseName}`);
|
|
@@ -68644,8 +68644,8 @@ var require_CJSImportProcessor = __commonJS({
|
|
|
68644
68644
|
if (!this.tokens.matches1AtIndex(index, _types.TokenType.string)) {
|
|
68645
68645
|
throw new Error("Expected string token at the end of import statement.");
|
|
68646
68646
|
}
|
|
68647
|
-
const
|
|
68648
|
-
const importInfo = this.getImportInfo(
|
|
68647
|
+
const path50 = this.tokens.stringValueAtIndex(index);
|
|
68648
|
+
const importInfo = this.getImportInfo(path50);
|
|
68649
68649
|
importInfo.defaultNames.push(...defaultNames);
|
|
68650
68650
|
importInfo.wildcardNames.push(...wildcardNames);
|
|
68651
68651
|
importInfo.namedImports.push(...namedImports);
|
|
@@ -68712,8 +68712,8 @@ var require_CJSImportProcessor = __commonJS({
|
|
|
68712
68712
|
if (!this.tokens.matches1AtIndex(index, _types.TokenType.string)) {
|
|
68713
68713
|
throw new Error("Expected string token at the end of import statement.");
|
|
68714
68714
|
}
|
|
68715
|
-
const
|
|
68716
|
-
const importInfo = this.getImportInfo(
|
|
68715
|
+
const path50 = this.tokens.stringValueAtIndex(index);
|
|
68716
|
+
const importInfo = this.getImportInfo(path50);
|
|
68717
68717
|
importInfo.namedExports.push(...namedImports);
|
|
68718
68718
|
}
|
|
68719
68719
|
preprocessExportStarAtIndex(index) {
|
|
@@ -68728,8 +68728,8 @@ var require_CJSImportProcessor = __commonJS({
|
|
|
68728
68728
|
if (!this.tokens.matches1AtIndex(index, _types.TokenType.string)) {
|
|
68729
68729
|
throw new Error("Expected string token at the end of star export statement.");
|
|
68730
68730
|
}
|
|
68731
|
-
const
|
|
68732
|
-
const importInfo = this.getImportInfo(
|
|
68731
|
+
const path50 = this.tokens.stringValueAtIndex(index);
|
|
68732
|
+
const importInfo = this.getImportInfo(path50);
|
|
68733
68733
|
if (exportedName !== null) {
|
|
68734
68734
|
importInfo.exportStarNames.push(exportedName);
|
|
68735
68735
|
} else {
|
|
@@ -68769,8 +68769,8 @@ var require_CJSImportProcessor = __commonJS({
|
|
|
68769
68769
|
* Get a mutable import info object for this path, creating one if it doesn't
|
|
68770
68770
|
* exist yet.
|
|
68771
68771
|
*/
|
|
68772
|
-
getImportInfo(
|
|
68773
|
-
const existingInfo = this.importInfoByPath.get(
|
|
68772
|
+
getImportInfo(path50) {
|
|
68773
|
+
const existingInfo = this.importInfoByPath.get(path50);
|
|
68774
68774
|
if (existingInfo) {
|
|
68775
68775
|
return existingInfo;
|
|
68776
68776
|
}
|
|
@@ -68783,7 +68783,7 @@ var require_CJSImportProcessor = __commonJS({
|
|
|
68783
68783
|
exportStarNames: [],
|
|
68784
68784
|
hasStarExport: false
|
|
68785
68785
|
};
|
|
68786
|
-
this.importInfoByPath.set(
|
|
68786
|
+
this.importInfoByPath.set(path50, newInfo);
|
|
68787
68787
|
return newInfo;
|
|
68788
68788
|
}
|
|
68789
68789
|
addExportBinding(localName, exportedName) {
|
|
@@ -68829,9 +68829,9 @@ var require_CJSImportProcessor = __commonJS({
|
|
|
68829
68829
|
}
|
|
68830
68830
|
});
|
|
68831
68831
|
|
|
68832
|
-
//
|
|
68832
|
+
// ../../../../cli/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js
|
|
68833
68833
|
var require_sourcemap_codec_umd = __commonJS({
|
|
68834
|
-
"
|
|
68834
|
+
"../../../../cli/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js"(exports, module) {
|
|
68835
68835
|
(function(global, factory) {
|
|
68836
68836
|
if (typeof exports === "object" && typeof module !== "undefined") {
|
|
68837
68837
|
factory(module);
|
|
@@ -69332,9 +69332,9 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
69332
69332
|
}
|
|
69333
69333
|
});
|
|
69334
69334
|
|
|
69335
|
-
//
|
|
69335
|
+
// ../../../../cli/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js
|
|
69336
69336
|
var require_resolve_uri_umd = __commonJS({
|
|
69337
|
-
"
|
|
69337
|
+
"../../../../cli/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js"(exports, module) {
|
|
69338
69338
|
(function(global, factory) {
|
|
69339
69339
|
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, global.resolveURI = factory());
|
|
69340
69340
|
})(exports, (function() {
|
|
@@ -69363,16 +69363,16 @@ var require_resolve_uri_umd = __commonJS({
|
|
|
69363
69363
|
}
|
|
69364
69364
|
function parseFileUrl(input) {
|
|
69365
69365
|
const match = fileRegex.exec(input);
|
|
69366
|
-
const
|
|
69367
|
-
return makeUrl("file:", "", match[1] || "", "", isAbsolutePath(
|
|
69366
|
+
const path50 = match[2];
|
|
69367
|
+
return makeUrl("file:", "", match[1] || "", "", isAbsolutePath(path50) ? path50 : "/" + path50, match[3] || "", match[4] || "");
|
|
69368
69368
|
}
|
|
69369
|
-
function makeUrl(scheme, user, host, port,
|
|
69369
|
+
function makeUrl(scheme, user, host, port, path50, query, hash) {
|
|
69370
69370
|
return {
|
|
69371
69371
|
scheme,
|
|
69372
69372
|
user,
|
|
69373
69373
|
host,
|
|
69374
69374
|
port,
|
|
69375
|
-
path:
|
|
69375
|
+
path: path50,
|
|
69376
69376
|
query,
|
|
69377
69377
|
hash,
|
|
69378
69378
|
type: 7
|
|
@@ -69402,11 +69402,11 @@ var require_resolve_uri_umd = __commonJS({
|
|
|
69402
69402
|
url.type = input ? input.startsWith("?") ? 3 : input.startsWith("#") ? 2 : 4 : 1;
|
|
69403
69403
|
return url;
|
|
69404
69404
|
}
|
|
69405
|
-
function stripPathFilename(
|
|
69406
|
-
if (
|
|
69407
|
-
return
|
|
69408
|
-
const index =
|
|
69409
|
-
return
|
|
69405
|
+
function stripPathFilename(path50) {
|
|
69406
|
+
if (path50.endsWith("/.."))
|
|
69407
|
+
return path50;
|
|
69408
|
+
const index = path50.lastIndexOf("/");
|
|
69409
|
+
return path50.slice(0, index + 1);
|
|
69410
69410
|
}
|
|
69411
69411
|
function mergePaths(url, base) {
|
|
69412
69412
|
normalizePath(base, base.type);
|
|
@@ -69444,14 +69444,14 @@ var require_resolve_uri_umd = __commonJS({
|
|
|
69444
69444
|
pieces[pointer++] = piece;
|
|
69445
69445
|
positive++;
|
|
69446
69446
|
}
|
|
69447
|
-
let
|
|
69447
|
+
let path50 = "";
|
|
69448
69448
|
for (let i = 1; i < pointer; i++) {
|
|
69449
|
-
|
|
69449
|
+
path50 += "/" + pieces[i];
|
|
69450
69450
|
}
|
|
69451
|
-
if (!
|
|
69452
|
-
|
|
69451
|
+
if (!path50 || addTrailingSlash && !path50.endsWith("/..")) {
|
|
69452
|
+
path50 += "/";
|
|
69453
69453
|
}
|
|
69454
|
-
url.path =
|
|
69454
|
+
url.path = path50;
|
|
69455
69455
|
}
|
|
69456
69456
|
function resolve2(input, base) {
|
|
69457
69457
|
if (!input && !base)
|
|
@@ -69492,13 +69492,13 @@ var require_resolve_uri_umd = __commonJS({
|
|
|
69492
69492
|
case 3:
|
|
69493
69493
|
return queryHash;
|
|
69494
69494
|
case 4: {
|
|
69495
|
-
const
|
|
69496
|
-
if (!
|
|
69495
|
+
const path50 = url.path.slice(1);
|
|
69496
|
+
if (!path50)
|
|
69497
69497
|
return queryHash || ".";
|
|
69498
|
-
if (isRelative(base || input) && !isRelative(
|
|
69499
|
-
return "./" +
|
|
69498
|
+
if (isRelative(base || input) && !isRelative(path50)) {
|
|
69499
|
+
return "./" + path50 + queryHash;
|
|
69500
69500
|
}
|
|
69501
|
-
return
|
|
69501
|
+
return path50 + queryHash;
|
|
69502
69502
|
}
|
|
69503
69503
|
case 5:
|
|
69504
69504
|
return url.path + queryHash;
|
|
@@ -69511,9 +69511,9 @@ var require_resolve_uri_umd = __commonJS({
|
|
|
69511
69511
|
}
|
|
69512
69512
|
});
|
|
69513
69513
|
|
|
69514
|
-
//
|
|
69514
|
+
// ../../../../cli/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js
|
|
69515
69515
|
var require_trace_mapping_umd = __commonJS({
|
|
69516
|
-
"
|
|
69516
|
+
"../../../../cli/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js"(exports, module) {
|
|
69517
69517
|
(function(global, factory) {
|
|
69518
69518
|
if (typeof exports === "object" && typeof module !== "undefined") {
|
|
69519
69519
|
factory(module, require_resolve_uri_umd(), require_sourcemap_codec_umd());
|
|
@@ -69597,10 +69597,10 @@ var require_trace_mapping_umd = __commonJS({
|
|
|
69597
69597
|
module2.exports = __toCommonJS(trace_mapping_exports);
|
|
69598
69598
|
var import_sourcemap_codec = __toESM2(require_sourcemap_codec());
|
|
69599
69599
|
var import_resolve_uri = __toESM2(require_resolve_uri());
|
|
69600
|
-
function stripFilename(
|
|
69601
|
-
if (!
|
|
69602
|
-
const index =
|
|
69603
|
-
return
|
|
69600
|
+
function stripFilename(path50) {
|
|
69601
|
+
if (!path50) return "";
|
|
69602
|
+
const index = path50.lastIndexOf("/");
|
|
69603
|
+
return path50.slice(0, index + 1);
|
|
69604
69604
|
}
|
|
69605
69605
|
function resolver(mapUrl, sourceRoot) {
|
|
69606
69606
|
const from = stripFilename(mapUrl);
|
|
@@ -70051,9 +70051,9 @@ var require_trace_mapping_umd = __commonJS({
|
|
|
70051
70051
|
}
|
|
70052
70052
|
});
|
|
70053
70053
|
|
|
70054
|
-
//
|
|
70054
|
+
// ../../../../cli/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js
|
|
70055
70055
|
var require_gen_mapping_umd = __commonJS({
|
|
70056
|
-
"
|
|
70056
|
+
"../../../../cli/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js"(exports, module) {
|
|
70057
70057
|
(function(global, factory) {
|
|
70058
70058
|
if (typeof exports === "object" && typeof module !== "undefined") {
|
|
70059
70059
|
factory(module, require_sourcemap_codec_umd(), require_trace_mapping_umd());
|
|
@@ -70402,9 +70402,9 @@ var require_gen_mapping_umd = __commonJS({
|
|
|
70402
70402
|
}
|
|
70403
70403
|
});
|
|
70404
70404
|
|
|
70405
|
-
//
|
|
70405
|
+
// ../../../../cli/node_modules/sucrase/dist/computeSourceMap.js
|
|
70406
70406
|
var require_computeSourceMap = __commonJS({
|
|
70407
|
-
"
|
|
70407
|
+
"../../../../cli/node_modules/sucrase/dist/computeSourceMap.js"(exports) {
|
|
70408
70408
|
"use strict";
|
|
70409
70409
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
70410
70410
|
var _genmapping = require_gen_mapping_umd();
|
|
@@ -70465,9 +70465,9 @@ var require_computeSourceMap = __commonJS({
|
|
|
70465
70465
|
}
|
|
70466
70466
|
});
|
|
70467
70467
|
|
|
70468
|
-
//
|
|
70468
|
+
// ../../../../cli/node_modules/sucrase/dist/HelperManager.js
|
|
70469
70469
|
var require_HelperManager = __commonJS({
|
|
70470
|
-
"
|
|
70470
|
+
"../../../../cli/node_modules/sucrase/dist/HelperManager.js"(exports) {
|
|
70471
70471
|
"use strict";
|
|
70472
70472
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
70473
70473
|
var HELPERS = {
|
|
@@ -70654,9 +70654,9 @@ var require_HelperManager = __commonJS({
|
|
|
70654
70654
|
}
|
|
70655
70655
|
});
|
|
70656
70656
|
|
|
70657
|
-
//
|
|
70657
|
+
// ../../../../cli/node_modules/sucrase/dist/identifyShadowedGlobals.js
|
|
70658
70658
|
var require_identifyShadowedGlobals = __commonJS({
|
|
70659
|
-
"
|
|
70659
|
+
"../../../../cli/node_modules/sucrase/dist/identifyShadowedGlobals.js"(exports) {
|
|
70660
70660
|
"use strict";
|
|
70661
70661
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
70662
70662
|
var _tokenizer = require_tokenizer();
|
|
@@ -70723,9 +70723,9 @@ var require_identifyShadowedGlobals = __commonJS({
|
|
|
70723
70723
|
}
|
|
70724
70724
|
});
|
|
70725
70725
|
|
|
70726
|
-
//
|
|
70726
|
+
// ../../../../cli/node_modules/sucrase/dist/util/getIdentifierNames.js
|
|
70727
70727
|
var require_getIdentifierNames = __commonJS({
|
|
70728
|
-
"
|
|
70728
|
+
"../../../../cli/node_modules/sucrase/dist/util/getIdentifierNames.js"(exports) {
|
|
70729
70729
|
"use strict";
|
|
70730
70730
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
70731
70731
|
var _types = require_types();
|
|
@@ -70742,9 +70742,9 @@ var require_getIdentifierNames = __commonJS({
|
|
|
70742
70742
|
}
|
|
70743
70743
|
});
|
|
70744
70744
|
|
|
70745
|
-
//
|
|
70745
|
+
// ../../../../cli/node_modules/sucrase/dist/NameManager.js
|
|
70746
70746
|
var require_NameManager = __commonJS({
|
|
70747
|
-
"
|
|
70747
|
+
"../../../../cli/node_modules/sucrase/dist/NameManager.js"(exports) {
|
|
70748
70748
|
"use strict";
|
|
70749
70749
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
70750
70750
|
function _interopRequireDefault(obj3) {
|
|
@@ -70781,9 +70781,9 @@ var require_NameManager = __commonJS({
|
|
|
70781
70781
|
}
|
|
70782
70782
|
});
|
|
70783
70783
|
|
|
70784
|
-
//
|
|
70784
|
+
// ../../../../cli/node_modules/ts-interface-checker/dist/util.js
|
|
70785
70785
|
var require_util8 = __commonJS({
|
|
70786
|
-
"
|
|
70786
|
+
"../../../../cli/node_modules/ts-interface-checker/dist/util.js"(exports) {
|
|
70787
70787
|
"use strict";
|
|
70788
70788
|
var __extends = exports && exports.__extends || /* @__PURE__ */ (function() {
|
|
70789
70789
|
var extendStatics = function(d2, b2) {
|
|
@@ -70808,9 +70808,9 @@ var require_util8 = __commonJS({
|
|
|
70808
70808
|
/** @class */
|
|
70809
70809
|
(function(_super) {
|
|
70810
70810
|
__extends(VError2, _super);
|
|
70811
|
-
function VError2(
|
|
70811
|
+
function VError2(path50, message) {
|
|
70812
70812
|
var _this = _super.call(this, message) || this;
|
|
70813
|
-
_this.path =
|
|
70813
|
+
_this.path = path50;
|
|
70814
70814
|
Object.setPrototypeOf(_this, VError2.prototype);
|
|
70815
70815
|
return _this;
|
|
70816
70816
|
}
|
|
@@ -70870,26 +70870,26 @@ var require_util8 = __commonJS({
|
|
|
70870
70870
|
(_b = this._messages).push.apply(_b, best._messages);
|
|
70871
70871
|
}
|
|
70872
70872
|
};
|
|
70873
|
-
DetailContext2.prototype.getError = function(
|
|
70873
|
+
DetailContext2.prototype.getError = function(path50) {
|
|
70874
70874
|
var msgParts = [];
|
|
70875
70875
|
for (var i = this._propNames.length - 1; i >= 0; i--) {
|
|
70876
70876
|
var p2 = this._propNames[i];
|
|
70877
|
-
|
|
70877
|
+
path50 += typeof p2 === "number" ? "[" + p2 + "]" : p2 ? "." + p2 : "";
|
|
70878
70878
|
var m = this._messages[i];
|
|
70879
70879
|
if (m) {
|
|
70880
|
-
msgParts.push(
|
|
70880
|
+
msgParts.push(path50 + " " + m);
|
|
70881
70881
|
}
|
|
70882
70882
|
}
|
|
70883
|
-
return new VError(
|
|
70883
|
+
return new VError(path50, msgParts.join("; "));
|
|
70884
70884
|
};
|
|
70885
|
-
DetailContext2.prototype.getErrorDetail = function(
|
|
70885
|
+
DetailContext2.prototype.getErrorDetail = function(path50) {
|
|
70886
70886
|
var details = [];
|
|
70887
70887
|
for (var i = this._propNames.length - 1; i >= 0; i--) {
|
|
70888
70888
|
var p2 = this._propNames[i];
|
|
70889
|
-
|
|
70889
|
+
path50 += typeof p2 === "number" ? "[" + p2 + "]" : p2 ? "." + p2 : "";
|
|
70890
70890
|
var message = this._messages[i];
|
|
70891
70891
|
if (message) {
|
|
70892
|
-
details.push({ path:
|
|
70892
|
+
details.push({ path: path50, message });
|
|
70893
70893
|
}
|
|
70894
70894
|
}
|
|
70895
70895
|
var detail = null;
|
|
@@ -70922,9 +70922,9 @@ var require_util8 = __commonJS({
|
|
|
70922
70922
|
}
|
|
70923
70923
|
});
|
|
70924
70924
|
|
|
70925
|
-
//
|
|
70925
|
+
// ../../../../cli/node_modules/ts-interface-checker/dist/types.js
|
|
70926
70926
|
var require_types2 = __commonJS({
|
|
70927
|
-
"
|
|
70927
|
+
"../../../../cli/node_modules/ts-interface-checker/dist/types.js"(exports) {
|
|
70928
70928
|
"use strict";
|
|
70929
70929
|
var __extends = exports && exports.__extends || /* @__PURE__ */ (function() {
|
|
70930
70930
|
var extendStatics = function(d2, b2) {
|
|
@@ -71561,9 +71561,9 @@ var require_types2 = __commonJS({
|
|
|
71561
71561
|
}
|
|
71562
71562
|
});
|
|
71563
71563
|
|
|
71564
|
-
//
|
|
71564
|
+
// ../../../../cli/node_modules/ts-interface-checker/dist/index.js
|
|
71565
71565
|
var require_dist = __commonJS({
|
|
71566
|
-
"
|
|
71566
|
+
"../../../../cli/node_modules/ts-interface-checker/dist/index.js"(exports) {
|
|
71567
71567
|
"use strict";
|
|
71568
71568
|
var __spreadArrays = exports && exports.__spreadArrays || function() {
|
|
71569
71569
|
for (var s = 0, i = 0, il2 = arguments.length; i < il2; i++) s += arguments[i].length;
|
|
@@ -71702,8 +71702,8 @@ var require_dist = __commonJS({
|
|
|
71702
71702
|
this.checkerPlain = this.ttype.getChecker(suite, false);
|
|
71703
71703
|
this.checkerStrict = this.ttype.getChecker(suite, true);
|
|
71704
71704
|
}
|
|
71705
|
-
Checker2.prototype.setReportedPath = function(
|
|
71706
|
-
this._path =
|
|
71705
|
+
Checker2.prototype.setReportedPath = function(path50) {
|
|
71706
|
+
this._path = path50;
|
|
71707
71707
|
};
|
|
71708
71708
|
Checker2.prototype.check = function(value) {
|
|
71709
71709
|
return this._doCheck(this.checkerPlain, value);
|
|
@@ -71787,9 +71787,9 @@ var require_dist = __commonJS({
|
|
|
71787
71787
|
}
|
|
71788
71788
|
});
|
|
71789
71789
|
|
|
71790
|
-
//
|
|
71790
|
+
// ../../../../cli/node_modules/sucrase/dist/Options-gen-types.js
|
|
71791
71791
|
var require_Options_gen_types = __commonJS({
|
|
71792
|
-
"
|
|
71792
|
+
"../../../../cli/node_modules/sucrase/dist/Options-gen-types.js"(exports) {
|
|
71793
71793
|
"use strict";
|
|
71794
71794
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
71795
71795
|
function _interopRequireWildcard(obj3) {
|
|
@@ -71849,9 +71849,9 @@ var require_Options_gen_types = __commonJS({
|
|
|
71849
71849
|
}
|
|
71850
71850
|
});
|
|
71851
71851
|
|
|
71852
|
-
//
|
|
71852
|
+
// ../../../../cli/node_modules/sucrase/dist/Options.js
|
|
71853
71853
|
var require_Options = __commonJS({
|
|
71854
|
-
"
|
|
71854
|
+
"../../../../cli/node_modules/sucrase/dist/Options.js"(exports) {
|
|
71855
71855
|
"use strict";
|
|
71856
71856
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
71857
71857
|
function _interopRequireDefault(obj3) {
|
|
@@ -71868,9 +71868,9 @@ var require_Options = __commonJS({
|
|
|
71868
71868
|
}
|
|
71869
71869
|
});
|
|
71870
71870
|
|
|
71871
|
-
//
|
|
71871
|
+
// ../../../../cli/node_modules/sucrase/dist/parser/traverser/lval.js
|
|
71872
71872
|
var require_lval = __commonJS({
|
|
71873
|
-
"
|
|
71873
|
+
"../../../../cli/node_modules/sucrase/dist/parser/traverser/lval.js"(exports) {
|
|
71874
71874
|
"use strict";
|
|
71875
71875
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
71876
71876
|
var _flow = require_flow();
|
|
@@ -72015,9 +72015,9 @@ var require_lval = __commonJS({
|
|
|
72015
72015
|
}
|
|
72016
72016
|
});
|
|
72017
72017
|
|
|
72018
|
-
//
|
|
72018
|
+
// ../../../../cli/node_modules/sucrase/dist/parser/plugins/typescript.js
|
|
72019
72019
|
var require_typescript = __commonJS({
|
|
72020
|
-
"
|
|
72020
|
+
"../../../../cli/node_modules/sucrase/dist/parser/plugins/typescript.js"(exports) {
|
|
72021
72021
|
"use strict";
|
|
72022
72022
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
72023
72023
|
var _index = require_tokenizer();
|
|
@@ -73328,9 +73328,9 @@ var require_typescript = __commonJS({
|
|
|
73328
73328
|
}
|
|
73329
73329
|
});
|
|
73330
73330
|
|
|
73331
|
-
//
|
|
73331
|
+
// ../../../../cli/node_modules/sucrase/dist/parser/plugins/jsx/index.js
|
|
73332
73332
|
var require_jsx = __commonJS({
|
|
73333
|
-
"
|
|
73333
|
+
"../../../../cli/node_modules/sucrase/dist/parser/plugins/jsx/index.js"(exports) {
|
|
73334
73334
|
"use strict";
|
|
73335
73335
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
73336
73336
|
var _index = require_tokenizer();
|
|
@@ -73598,9 +73598,9 @@ var require_jsx = __commonJS({
|
|
|
73598
73598
|
}
|
|
73599
73599
|
});
|
|
73600
73600
|
|
|
73601
|
-
//
|
|
73601
|
+
// ../../../../cli/node_modules/sucrase/dist/parser/plugins/types.js
|
|
73602
73602
|
var require_types3 = __commonJS({
|
|
73603
|
-
"
|
|
73603
|
+
"../../../../cli/node_modules/sucrase/dist/parser/plugins/types.js"(exports) {
|
|
73604
73604
|
"use strict";
|
|
73605
73605
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
73606
73606
|
var _index = require_tokenizer();
|
|
@@ -73633,9 +73633,9 @@ var require_types3 = __commonJS({
|
|
|
73633
73633
|
}
|
|
73634
73634
|
});
|
|
73635
73635
|
|
|
73636
|
-
//
|
|
73636
|
+
// ../../../../cli/node_modules/sucrase/dist/parser/traverser/expression.js
|
|
73637
73637
|
var require_expression = __commonJS({
|
|
73638
|
-
"
|
|
73638
|
+
"../../../../cli/node_modules/sucrase/dist/parser/traverser/expression.js"(exports) {
|
|
73639
73639
|
"use strict";
|
|
73640
73640
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
73641
73641
|
var _flow = require_flow();
|
|
@@ -74373,9 +74373,9 @@ var require_expression = __commonJS({
|
|
|
74373
74373
|
}
|
|
74374
74374
|
});
|
|
74375
74375
|
|
|
74376
|
-
//
|
|
74376
|
+
// ../../../../cli/node_modules/sucrase/dist/parser/plugins/flow.js
|
|
74377
74377
|
var require_flow = __commonJS({
|
|
74378
|
-
"
|
|
74378
|
+
"../../../../cli/node_modules/sucrase/dist/parser/plugins/flow.js"(exports) {
|
|
74379
74379
|
"use strict";
|
|
74380
74380
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
74381
74381
|
var _index = require_tokenizer();
|
|
@@ -75256,9 +75256,9 @@ var require_flow = __commonJS({
|
|
|
75256
75256
|
}
|
|
75257
75257
|
});
|
|
75258
75258
|
|
|
75259
|
-
//
|
|
75259
|
+
// ../../../../cli/node_modules/sucrase/dist/parser/traverser/statement.js
|
|
75260
75260
|
var require_statement = __commonJS({
|
|
75261
|
-
"
|
|
75261
|
+
"../../../../cli/node_modules/sucrase/dist/parser/traverser/statement.js"(exports) {
|
|
75262
75262
|
"use strict";
|
|
75263
75263
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
75264
75264
|
var _index = require_parser();
|
|
@@ -76253,9 +76253,9 @@ var require_statement = __commonJS({
|
|
|
76253
76253
|
}
|
|
76254
76254
|
});
|
|
76255
76255
|
|
|
76256
|
-
//
|
|
76256
|
+
// ../../../../cli/node_modules/sucrase/dist/parser/traverser/index.js
|
|
76257
76257
|
var require_traverser = __commonJS({
|
|
76258
|
-
"
|
|
76258
|
+
"../../../../cli/node_modules/sucrase/dist/parser/traverser/index.js"(exports) {
|
|
76259
76259
|
"use strict";
|
|
76260
76260
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76261
76261
|
var _index = require_tokenizer();
|
|
@@ -76273,9 +76273,9 @@ var require_traverser = __commonJS({
|
|
|
76273
76273
|
}
|
|
76274
76274
|
});
|
|
76275
76275
|
|
|
76276
|
-
//
|
|
76276
|
+
// ../../../../cli/node_modules/sucrase/dist/parser/index.js
|
|
76277
76277
|
var require_parser = __commonJS({
|
|
76278
|
-
"
|
|
76278
|
+
"../../../../cli/node_modules/sucrase/dist/parser/index.js"(exports) {
|
|
76279
76279
|
"use strict";
|
|
76280
76280
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76281
76281
|
var _base = require_base();
|
|
@@ -76302,9 +76302,9 @@ var require_parser = __commonJS({
|
|
|
76302
76302
|
}
|
|
76303
76303
|
});
|
|
76304
76304
|
|
|
76305
|
-
//
|
|
76305
|
+
// ../../../../cli/node_modules/sucrase/dist/util/isAsyncOperation.js
|
|
76306
76306
|
var require_isAsyncOperation = __commonJS({
|
|
76307
|
-
"
|
|
76307
|
+
"../../../../cli/node_modules/sucrase/dist/util/isAsyncOperation.js"(exports) {
|
|
76308
76308
|
"use strict";
|
|
76309
76309
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76310
76310
|
var _keywords = require_keywords();
|
|
@@ -76333,9 +76333,9 @@ var require_isAsyncOperation = __commonJS({
|
|
|
76333
76333
|
}
|
|
76334
76334
|
});
|
|
76335
76335
|
|
|
76336
|
-
//
|
|
76336
|
+
// ../../../../cli/node_modules/sucrase/dist/TokenProcessor.js
|
|
76337
76337
|
var require_TokenProcessor = __commonJS({
|
|
76338
|
-
"
|
|
76338
|
+
"../../../../cli/node_modules/sucrase/dist/TokenProcessor.js"(exports) {
|
|
76339
76339
|
"use strict";
|
|
76340
76340
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76341
76341
|
function _interopRequireDefault(obj3) {
|
|
@@ -76628,9 +76628,9 @@ var require_TokenProcessor = __commonJS({
|
|
|
76628
76628
|
}
|
|
76629
76629
|
});
|
|
76630
76630
|
|
|
76631
|
-
//
|
|
76631
|
+
// ../../../../cli/node_modules/sucrase/dist/util/getClassInfo.js
|
|
76632
76632
|
var require_getClassInfo = __commonJS({
|
|
76633
|
-
"
|
|
76633
|
+
"../../../../cli/node_modules/sucrase/dist/util/getClassInfo.js"(exports) {
|
|
76634
76634
|
"use strict";
|
|
76635
76635
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76636
76636
|
var _keywords = require_keywords();
|
|
@@ -76870,9 +76870,9 @@ var require_getClassInfo = __commonJS({
|
|
|
76870
76870
|
}
|
|
76871
76871
|
});
|
|
76872
76872
|
|
|
76873
|
-
//
|
|
76873
|
+
// ../../../../cli/node_modules/sucrase/dist/util/elideImportEquals.js
|
|
76874
76874
|
var require_elideImportEquals = __commonJS({
|
|
76875
|
-
"
|
|
76875
|
+
"../../../../cli/node_modules/sucrase/dist/util/elideImportEquals.js"(exports) {
|
|
76876
76876
|
"use strict";
|
|
76877
76877
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76878
76878
|
var _types = require_types();
|
|
@@ -76896,9 +76896,9 @@ var require_elideImportEquals = __commonJS({
|
|
|
76896
76896
|
}
|
|
76897
76897
|
});
|
|
76898
76898
|
|
|
76899
|
-
//
|
|
76899
|
+
// ../../../../cli/node_modules/sucrase/dist/util/getDeclarationInfo.js
|
|
76900
76900
|
var require_getDeclarationInfo = __commonJS({
|
|
76901
|
-
"
|
|
76901
|
+
"../../../../cli/node_modules/sucrase/dist/util/getDeclarationInfo.js"(exports) {
|
|
76902
76902
|
"use strict";
|
|
76903
76903
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76904
76904
|
var _tokenizer = require_tokenizer();
|
|
@@ -76927,9 +76927,9 @@ var require_getDeclarationInfo = __commonJS({
|
|
|
76927
76927
|
}
|
|
76928
76928
|
});
|
|
76929
76929
|
|
|
76930
|
-
//
|
|
76930
|
+
// ../../../../cli/node_modules/sucrase/dist/util/isExportFrom.js
|
|
76931
76931
|
var require_isExportFrom = __commonJS({
|
|
76932
|
-
"
|
|
76932
|
+
"../../../../cli/node_modules/sucrase/dist/util/isExportFrom.js"(exports) {
|
|
76933
76933
|
"use strict";
|
|
76934
76934
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76935
76935
|
var _keywords = require_keywords();
|
|
@@ -76945,9 +76945,9 @@ var require_isExportFrom = __commonJS({
|
|
|
76945
76945
|
}
|
|
76946
76946
|
});
|
|
76947
76947
|
|
|
76948
|
-
//
|
|
76948
|
+
// ../../../../cli/node_modules/sucrase/dist/util/removeMaybeImportAttributes.js
|
|
76949
76949
|
var require_removeMaybeImportAttributes = __commonJS({
|
|
76950
|
-
"
|
|
76950
|
+
"../../../../cli/node_modules/sucrase/dist/util/removeMaybeImportAttributes.js"(exports) {
|
|
76951
76951
|
"use strict";
|
|
76952
76952
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76953
76953
|
var _keywords = require_keywords();
|
|
@@ -76964,9 +76964,9 @@ var require_removeMaybeImportAttributes = __commonJS({
|
|
|
76964
76964
|
}
|
|
76965
76965
|
});
|
|
76966
76966
|
|
|
76967
|
-
//
|
|
76967
|
+
// ../../../../cli/node_modules/sucrase/dist/util/shouldElideDefaultExport.js
|
|
76968
76968
|
var require_shouldElideDefaultExport = __commonJS({
|
|
76969
|
-
"
|
|
76969
|
+
"../../../../cli/node_modules/sucrase/dist/util/shouldElideDefaultExport.js"(exports) {
|
|
76970
76970
|
"use strict";
|
|
76971
76971
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76972
76972
|
var _types = require_types();
|
|
@@ -76993,9 +76993,9 @@ var require_shouldElideDefaultExport = __commonJS({
|
|
|
76993
76993
|
}
|
|
76994
76994
|
});
|
|
76995
76995
|
|
|
76996
|
-
//
|
|
76996
|
+
// ../../../../cli/node_modules/sucrase/dist/transformers/CJSImportTransformer.js
|
|
76997
76997
|
var require_CJSImportTransformer = __commonJS({
|
|
76998
|
-
"
|
|
76998
|
+
"../../../../cli/node_modules/sucrase/dist/transformers/CJSImportTransformer.js"(exports) {
|
|
76999
76999
|
"use strict";
|
|
77000
77000
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
77001
77001
|
function _interopRequireDefault(obj3) {
|
|
@@ -77136,9 +77136,9 @@ var require_CJSImportTransformer = __commonJS({
|
|
|
77136
77136
|
if (shouldElideImport) {
|
|
77137
77137
|
this.tokens.removeToken();
|
|
77138
77138
|
} else {
|
|
77139
|
-
const
|
|
77140
|
-
this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(
|
|
77141
|
-
this.tokens.appendCode(this.importProcessor.claimImportCode(
|
|
77139
|
+
const path50 = this.tokens.stringValue();
|
|
77140
|
+
this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(path50));
|
|
77141
|
+
this.tokens.appendCode(this.importProcessor.claimImportCode(path50));
|
|
77142
77142
|
}
|
|
77143
77143
|
_removeMaybeImportAttributes.removeMaybeImportAttributes.call(void 0, this.tokens);
|
|
77144
77144
|
if (this.tokens.matches1(_types.TokenType.semi)) {
|
|
@@ -77718,8 +77718,8 @@ var require_CJSImportTransformer = __commonJS({
|
|
|
77718
77718
|
}
|
|
77719
77719
|
if (this.tokens.matchesContextual(_keywords.ContextualKeyword._from)) {
|
|
77720
77720
|
this.tokens.removeToken();
|
|
77721
|
-
const
|
|
77722
|
-
this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(
|
|
77721
|
+
const path50 = this.tokens.stringValue();
|
|
77722
|
+
this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(path50));
|
|
77723
77723
|
_removeMaybeImportAttributes.removeMaybeImportAttributes.call(void 0, this.tokens);
|
|
77724
77724
|
} else {
|
|
77725
77725
|
this.tokens.appendCode(exportStatements.join(" "));
|
|
@@ -77733,8 +77733,8 @@ var require_CJSImportTransformer = __commonJS({
|
|
|
77733
77733
|
while (!this.tokens.matches1(_types.TokenType.string)) {
|
|
77734
77734
|
this.tokens.removeToken();
|
|
77735
77735
|
}
|
|
77736
|
-
const
|
|
77737
|
-
this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(
|
|
77736
|
+
const path50 = this.tokens.stringValue();
|
|
77737
|
+
this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(path50));
|
|
77738
77738
|
_removeMaybeImportAttributes.removeMaybeImportAttributes.call(void 0, this.tokens);
|
|
77739
77739
|
if (this.tokens.matches1(_types.TokenType.semi)) {
|
|
77740
77740
|
this.tokens.removeToken();
|
|
@@ -77748,9 +77748,9 @@ var require_CJSImportTransformer = __commonJS({
|
|
|
77748
77748
|
}
|
|
77749
77749
|
});
|
|
77750
77750
|
|
|
77751
|
-
//
|
|
77751
|
+
// ../../../../cli/node_modules/sucrase/dist/transformers/ESMImportTransformer.js
|
|
77752
77752
|
var require_ESMImportTransformer = __commonJS({
|
|
77753
|
-
"
|
|
77753
|
+
"../../../../cli/node_modules/sucrase/dist/transformers/ESMImportTransformer.js"(exports) {
|
|
77754
77754
|
"use strict";
|
|
77755
77755
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
77756
77756
|
function _interopRequireDefault(obj3) {
|
|
@@ -78052,9 +78052,9 @@ var require_ESMImportTransformer = __commonJS({
|
|
|
78052
78052
|
}
|
|
78053
78053
|
});
|
|
78054
78054
|
|
|
78055
|
-
//
|
|
78055
|
+
// ../../../../cli/node_modules/sucrase/dist/transformers/FlowTransformer.js
|
|
78056
78056
|
var require_FlowTransformer = __commonJS({
|
|
78057
|
-
"
|
|
78057
|
+
"../../../../cli/node_modules/sucrase/dist/transformers/FlowTransformer.js"(exports) {
|
|
78058
78058
|
"use strict";
|
|
78059
78059
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78060
78060
|
function _interopRequireDefault(obj3) {
|
|
@@ -78220,9 +78220,9 @@ var require_FlowTransformer = __commonJS({
|
|
|
78220
78220
|
}
|
|
78221
78221
|
});
|
|
78222
78222
|
|
|
78223
|
-
//
|
|
78223
|
+
// ../../../../cli/node_modules/sucrase/dist/transformers/JestHoistTransformer.js
|
|
78224
78224
|
var require_JestHoistTransformer = __commonJS({
|
|
78225
|
-
"
|
|
78225
|
+
"../../../../cli/node_modules/sucrase/dist/transformers/JestHoistTransformer.js"(exports) {
|
|
78226
78226
|
"use strict";
|
|
78227
78227
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78228
78228
|
function _interopRequireDefault(obj3) {
|
|
@@ -78326,9 +78326,9 @@ var require_JestHoistTransformer = __commonJS({
|
|
|
78326
78326
|
}
|
|
78327
78327
|
});
|
|
78328
78328
|
|
|
78329
|
-
//
|
|
78329
|
+
// ../../../../cli/node_modules/sucrase/dist/transformers/NumericSeparatorTransformer.js
|
|
78330
78330
|
var require_NumericSeparatorTransformer = __commonJS({
|
|
78331
|
-
"
|
|
78331
|
+
"../../../../cli/node_modules/sucrase/dist/transformers/NumericSeparatorTransformer.js"(exports) {
|
|
78332
78332
|
"use strict";
|
|
78333
78333
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78334
78334
|
function _interopRequireDefault(obj3) {
|
|
@@ -78358,9 +78358,9 @@ var require_NumericSeparatorTransformer = __commonJS({
|
|
|
78358
78358
|
}
|
|
78359
78359
|
});
|
|
78360
78360
|
|
|
78361
|
-
//
|
|
78361
|
+
// ../../../../cli/node_modules/sucrase/dist/transformers/OptionalCatchBindingTransformer.js
|
|
78362
78362
|
var require_OptionalCatchBindingTransformer = __commonJS({
|
|
78363
|
-
"
|
|
78363
|
+
"../../../../cli/node_modules/sucrase/dist/transformers/OptionalCatchBindingTransformer.js"(exports) {
|
|
78364
78364
|
"use strict";
|
|
78365
78365
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78366
78366
|
function _interopRequireDefault(obj3) {
|
|
@@ -78389,9 +78389,9 @@ var require_OptionalCatchBindingTransformer = __commonJS({
|
|
|
78389
78389
|
}
|
|
78390
78390
|
});
|
|
78391
78391
|
|
|
78392
|
-
//
|
|
78392
|
+
// ../../../../cli/node_modules/sucrase/dist/transformers/OptionalChainingNullishTransformer.js
|
|
78393
78393
|
var require_OptionalChainingNullishTransformer = __commonJS({
|
|
78394
|
-
"
|
|
78394
|
+
"../../../../cli/node_modules/sucrase/dist/transformers/OptionalChainingNullishTransformer.js"(exports) {
|
|
78395
78395
|
"use strict";
|
|
78396
78396
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78397
78397
|
function _interopRequireDefault(obj3) {
|
|
@@ -78527,9 +78527,9 @@ var require_OptionalChainingNullishTransformer = __commonJS({
|
|
|
78527
78527
|
}
|
|
78528
78528
|
});
|
|
78529
78529
|
|
|
78530
|
-
//
|
|
78530
|
+
// ../../../../cli/node_modules/sucrase/dist/transformers/ReactDisplayNameTransformer.js
|
|
78531
78531
|
var require_ReactDisplayNameTransformer = __commonJS({
|
|
78532
|
-
"
|
|
78532
|
+
"../../../../cli/node_modules/sucrase/dist/transformers/ReactDisplayNameTransformer.js"(exports) {
|
|
78533
78533
|
"use strict";
|
|
78534
78534
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78535
78535
|
function _interopRequireDefault(obj3) {
|
|
@@ -78655,9 +78655,9 @@ var require_ReactDisplayNameTransformer = __commonJS({
|
|
|
78655
78655
|
}
|
|
78656
78656
|
});
|
|
78657
78657
|
|
|
78658
|
-
//
|
|
78658
|
+
// ../../../../cli/node_modules/sucrase/dist/transformers/ReactHotLoaderTransformer.js
|
|
78659
78659
|
var require_ReactHotLoaderTransformer = __commonJS({
|
|
78660
|
-
"
|
|
78660
|
+
"../../../../cli/node_modules/sucrase/dist/transformers/ReactHotLoaderTransformer.js"(exports) {
|
|
78661
78661
|
"use strict";
|
|
78662
78662
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78663
78663
|
function _interopRequireDefault(obj3) {
|
|
@@ -78727,9 +78727,9 @@ ${namesToRegister.map(
|
|
|
78727
78727
|
}
|
|
78728
78728
|
});
|
|
78729
78729
|
|
|
78730
|
-
//
|
|
78730
|
+
// ../../../../cli/node_modules/sucrase/dist/util/isIdentifier.js
|
|
78731
78731
|
var require_isIdentifier = __commonJS({
|
|
78732
|
-
"
|
|
78732
|
+
"../../../../cli/node_modules/sucrase/dist/util/isIdentifier.js"(exports) {
|
|
78733
78733
|
"use strict";
|
|
78734
78734
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78735
78735
|
var _identifier = require_identifier();
|
|
@@ -78802,9 +78802,9 @@ var require_isIdentifier = __commonJS({
|
|
|
78802
78802
|
}
|
|
78803
78803
|
});
|
|
78804
78804
|
|
|
78805
|
-
//
|
|
78805
|
+
// ../../../../cli/node_modules/sucrase/dist/transformers/TypeScriptTransformer.js
|
|
78806
78806
|
var require_TypeScriptTransformer = __commonJS({
|
|
78807
|
-
"
|
|
78807
|
+
"../../../../cli/node_modules/sucrase/dist/transformers/TypeScriptTransformer.js"(exports) {
|
|
78808
78808
|
"use strict";
|
|
78809
78809
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78810
78810
|
function _interopRequireDefault(obj3) {
|
|
@@ -79043,9 +79043,9 @@ var require_TypeScriptTransformer = __commonJS({
|
|
|
79043
79043
|
}
|
|
79044
79044
|
});
|
|
79045
79045
|
|
|
79046
|
-
//
|
|
79046
|
+
// ../../../../cli/node_modules/sucrase/dist/transformers/RootTransformer.js
|
|
79047
79047
|
var require_RootTransformer = __commonJS({
|
|
79048
|
-
"
|
|
79048
|
+
"../../../../cli/node_modules/sucrase/dist/transformers/RootTransformer.js"(exports) {
|
|
79049
79049
|
"use strict";
|
|
79050
79050
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
79051
79051
|
function _interopRequireDefault(obj3) {
|
|
@@ -79460,9 +79460,9 @@ var require_RootTransformer = __commonJS({
|
|
|
79460
79460
|
}
|
|
79461
79461
|
});
|
|
79462
79462
|
|
|
79463
|
-
//
|
|
79463
|
+
// ../../../../cli/node_modules/lines-and-columns/build/index.js
|
|
79464
79464
|
var require_build = __commonJS({
|
|
79465
|
-
"
|
|
79465
|
+
"../../../../cli/node_modules/lines-and-columns/build/index.js"(exports) {
|
|
79466
79466
|
"use strict";
|
|
79467
79467
|
exports.__esModule = true;
|
|
79468
79468
|
exports.LinesAndColumns = void 0;
|
|
@@ -79529,9 +79529,9 @@ var require_build = __commonJS({
|
|
|
79529
79529
|
}
|
|
79530
79530
|
});
|
|
79531
79531
|
|
|
79532
|
-
//
|
|
79532
|
+
// ../../../../cli/node_modules/sucrase/dist/util/formatTokens.js
|
|
79533
79533
|
var require_formatTokens = __commonJS({
|
|
79534
|
-
"
|
|
79534
|
+
"../../../../cli/node_modules/sucrase/dist/util/formatTokens.js"(exports) {
|
|
79535
79535
|
"use strict";
|
|
79536
79536
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
79537
79537
|
function _interopRequireDefault(obj3) {
|
|
@@ -79602,9 +79602,9 @@ var require_formatTokens = __commonJS({
|
|
|
79602
79602
|
}
|
|
79603
79603
|
});
|
|
79604
79604
|
|
|
79605
|
-
//
|
|
79605
|
+
// ../../../../cli/node_modules/sucrase/dist/util/getTSImportedNames.js
|
|
79606
79606
|
var require_getTSImportedNames = __commonJS({
|
|
79607
|
-
"
|
|
79607
|
+
"../../../../cli/node_modules/sucrase/dist/util/getTSImportedNames.js"(exports) {
|
|
79608
79608
|
"use strict";
|
|
79609
79609
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
79610
79610
|
function _interopRequireDefault(obj3) {
|
|
@@ -79669,9 +79669,9 @@ var require_getTSImportedNames = __commonJS({
|
|
|
79669
79669
|
}
|
|
79670
79670
|
});
|
|
79671
79671
|
|
|
79672
|
-
//
|
|
79672
|
+
// ../../../../cli/node_modules/sucrase/dist/index.js
|
|
79673
79673
|
var require_dist2 = __commonJS({
|
|
79674
|
-
"
|
|
79674
|
+
"../../../../cli/node_modules/sucrase/dist/index.js"(exports) {
|
|
79675
79675
|
"use strict";
|
|
79676
79676
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
79677
79677
|
function _interopRequireDefault(obj3) {
|
|
@@ -79784,15 +79784,15 @@ var require_dist2 = __commonJS({
|
|
|
79784
79784
|
}
|
|
79785
79785
|
});
|
|
79786
79786
|
|
|
79787
|
-
//
|
|
79787
|
+
// ../../../../cli/node_modules/tailwindcss/dist/chunk-DCG7AFIE.mjs
|
|
79788
79788
|
var o;
|
|
79789
79789
|
var init_chunk_DCG7AFIE = __esm({
|
|
79790
|
-
"
|
|
79790
|
+
"../../../../cli/node_modules/tailwindcss/dist/chunk-DCG7AFIE.mjs"() {
|
|
79791
79791
|
o = { inherit: "inherit", current: "currentcolor", transparent: "transparent", black: "#000", white: "#fff", slate: { 50: "oklch(98.4% 0.003 247.858)", 100: "oklch(96.8% 0.007 247.896)", 200: "oklch(92.9% 0.013 255.508)", 300: "oklch(86.9% 0.022 252.894)", 400: "oklch(70.4% 0.04 256.788)", 500: "oklch(55.4% 0.046 257.417)", 600: "oklch(44.6% 0.043 257.281)", 700: "oklch(37.2% 0.044 257.287)", 800: "oklch(27.9% 0.041 260.031)", 900: "oklch(20.8% 0.042 265.755)", 950: "oklch(12.9% 0.042 264.695)" }, gray: { 50: "oklch(98.5% 0.002 247.839)", 100: "oklch(96.7% 0.003 264.542)", 200: "oklch(92.8% 0.006 264.531)", 300: "oklch(87.2% 0.01 258.338)", 400: "oklch(70.7% 0.022 261.325)", 500: "oklch(55.1% 0.027 264.364)", 600: "oklch(44.6% 0.03 256.802)", 700: "oklch(37.3% 0.034 259.733)", 800: "oklch(27.8% 0.033 256.848)", 900: "oklch(21% 0.034 264.665)", 950: "oklch(13% 0.028 261.692)" }, zinc: { 50: "oklch(98.5% 0 none)", 100: "oklch(96.7% 0.001 286.375)", 200: "oklch(92% 0.004 286.32)", 300: "oklch(87.1% 0.006 286.286)", 400: "oklch(70.5% 0.015 286.067)", 500: "oklch(55.2% 0.016 285.938)", 600: "oklch(44.2% 0.017 285.786)", 700: "oklch(37% 0.013 285.805)", 800: "oklch(27.4% 0.006 286.033)", 900: "oklch(21% 0.006 285.885)", 950: "oklch(14.1% 0.005 285.823)" }, neutral: { 50: "oklch(98.5% 0 none)", 100: "oklch(97% 0 none)", 200: "oklch(92.2% 0 none)", 300: "oklch(87% 0 none)", 400: "oklch(70.8% 0 none)", 500: "oklch(55.6% 0 none)", 600: "oklch(43.9% 0 none)", 700: "oklch(37.1% 0 none)", 800: "oklch(26.9% 0 none)", 900: "oklch(20.5% 0 none)", 950: "oklch(14.5% 0 none)" }, stone: { 50: "oklch(98.5% 0.001 106.423)", 100: "oklch(97% 0.001 106.424)", 200: "oklch(92.3% 0.003 48.717)", 300: "oklch(86.9% 0.005 56.366)", 400: "oklch(70.9% 0.01 56.259)", 500: "oklch(55.3% 0.013 58.071)", 600: "oklch(44.4% 0.011 73.639)", 700: "oklch(37.4% 0.01 67.558)", 800: "oklch(26.8% 0.007 34.298)", 900: "oklch(21.6% 0.006 56.043)", 950: "oklch(14.7% 0.004 49.25)" }, mauve: { 50: "oklch(98.5% 0 none)", 100: "oklch(96% 0.003 325.6)", 200: "oklch(92.2% 0.005 325.62)", 300: "oklch(86.5% 0.012 325.68)", 400: "oklch(71.1% 0.019 323.02)", 500: "oklch(54.2% 0.034 322.5)", 600: "oklch(43.5% 0.029 321.78)", 700: "oklch(36.4% 0.029 323.89)", 800: "oklch(26.3% 0.024 320.12)", 900: "oklch(21.2% 0.019 322.12)", 950: "oklch(14.5% 0.008 326)" }, olive: { 50: "oklch(98.8% 0.003 106.5)", 100: "oklch(96.6% 0.005 106.5)", 200: "oklch(93% 0.007 106.5)", 300: "oklch(88% 0.011 106.6)", 400: "oklch(73.7% 0.021 106.9)", 500: "oklch(58% 0.031 107.3)", 600: "oklch(46.6% 0.025 107.3)", 700: "oklch(39.4% 0.023 107.4)", 800: "oklch(28.6% 0.016 107.4)", 900: "oklch(22.8% 0.013 107.4)", 950: "oklch(15.3% 0.006 107.1)" }, mist: { 50: "oklch(98.7% 0.002 197.1)", 100: "oklch(96.3% 0.002 197.1)", 200: "oklch(92.5% 0.005 214.3)", 300: "oklch(87.2% 0.007 219.6)", 400: "oklch(72.3% 0.014 214.4)", 500: "oklch(56% 0.021 213.5)", 600: "oklch(45% 0.017 213.2)", 700: "oklch(37.8% 0.015 216)", 800: "oklch(27.5% 0.011 216.9)", 900: "oklch(21.8% 0.008 223.9)", 950: "oklch(14.8% 0.004 228.8)" }, taupe: { 50: "oklch(98.6% 0.002 67.8)", 100: "oklch(96% 0.002 17.2)", 200: "oklch(92.2% 0.005 34.3)", 300: "oklch(86.8% 0.007 39.5)", 400: "oklch(71.4% 0.014 41.2)", 500: "oklch(54.7% 0.021 43.1)", 600: "oklch(43.8% 0.017 39.3)", 700: "oklch(36.7% 0.016 35.7)", 800: "oklch(26.8% 0.011 36.5)", 900: "oklch(21.4% 0.009 43.1)", 950: "oklch(14.7% 0.004 49.3)" }, red: { 50: "oklch(97.1% 0.013 17.38)", 100: "oklch(93.6% 0.032 17.717)", 200: "oklch(88.5% 0.062 18.334)", 300: "oklch(80.8% 0.114 19.571)", 400: "oklch(70.4% 0.191 22.216)", 500: "oklch(63.7% 0.237 25.331)", 600: "oklch(57.7% 0.245 27.325)", 700: "oklch(50.5% 0.213 27.518)", 800: "oklch(44.4% 0.177 26.899)", 900: "oklch(39.6% 0.141 25.723)", 950: "oklch(25.8% 0.092 26.042)" }, orange: { 50: "oklch(98% 0.016 73.684)", 100: "oklch(95.4% 0.038 75.164)", 200: "oklch(90.1% 0.076 70.697)", 300: "oklch(83.7% 0.128 66.29)", 400: "oklch(75% 0.183 55.934)", 500: "oklch(70.5% 0.213 47.604)", 600: "oklch(64.6% 0.222 41.116)", 700: "oklch(55.3% 0.195 38.402)", 800: "oklch(47% 0.157 37.304)", 900: "oklch(40.8% 0.123 38.172)", 950: "oklch(26.6% 0.079 36.259)" }, amber: { 50: "oklch(98.7% 0.022 95.277)", 100: "oklch(96.2% 0.059 95.617)", 200: "oklch(92.4% 0.12 95.746)", 300: "oklch(87.9% 0.169 91.605)", 400: "oklch(82.8% 0.189 84.429)", 500: "oklch(76.9% 0.188 70.08)", 600: "oklch(66.6% 0.179 58.318)", 700: "oklch(55.5% 0.163 48.998)", 800: "oklch(47.3% 0.137 46.201)", 900: "oklch(41.4% 0.112 45.904)", 950: "oklch(27.9% 0.077 45.635)" }, yellow: { 50: "oklch(98.7% 0.026 102.212)", 100: "oklch(97.3% 0.071 103.193)", 200: "oklch(94.5% 0.129 101.54)", 300: "oklch(90.5% 0.182 98.111)", 400: "oklch(85.2% 0.199 91.936)", 500: "oklch(79.5% 0.184 86.047)", 600: "oklch(68.1% 0.162 75.834)", 700: "oklch(55.4% 0.135 66.442)", 800: "oklch(47.6% 0.114 61.907)", 900: "oklch(42.1% 0.095 57.708)", 950: "oklch(28.6% 0.066 53.813)" }, lime: { 50: "oklch(98.6% 0.031 120.757)", 100: "oklch(96.7% 0.067 122.328)", 200: "oklch(93.8% 0.127 124.321)", 300: "oklch(89.7% 0.196 126.665)", 400: "oklch(84.1% 0.238 128.85)", 500: "oklch(76.8% 0.233 130.85)", 600: "oklch(64.8% 0.2 131.684)", 700: "oklch(53.2% 0.157 131.589)", 800: "oklch(45.3% 0.124 130.933)", 900: "oklch(40.5% 0.101 131.063)", 950: "oklch(27.4% 0.072 132.109)" }, green: { 50: "oklch(98.2% 0.018 155.826)", 100: "oklch(96.2% 0.044 156.743)", 200: "oklch(92.5% 0.084 155.995)", 300: "oklch(87.1% 0.15 154.449)", 400: "oklch(79.2% 0.209 151.711)", 500: "oklch(72.3% 0.219 149.579)", 600: "oklch(62.7% 0.194 149.214)", 700: "oklch(52.7% 0.154 150.069)", 800: "oklch(44.8% 0.119 151.328)", 900: "oklch(39.3% 0.095 152.535)", 950: "oklch(26.6% 0.065 152.934)" }, emerald: { 50: "oklch(97.9% 0.021 166.113)", 100: "oklch(95% 0.052 163.051)", 200: "oklch(90.5% 0.093 164.15)", 300: "oklch(84.5% 0.143 164.978)", 400: "oklch(76.5% 0.177 163.223)", 500: "oklch(69.6% 0.17 162.48)", 600: "oklch(59.6% 0.145 163.225)", 700: "oklch(50.8% 0.118 165.612)", 800: "oklch(43.2% 0.095 166.913)", 900: "oklch(37.8% 0.077 168.94)", 950: "oklch(26.2% 0.051 172.552)" }, teal: { 50: "oklch(98.4% 0.014 180.72)", 100: "oklch(95.3% 0.051 180.801)", 200: "oklch(91% 0.096 180.426)", 300: "oklch(85.5% 0.138 181.071)", 400: "oklch(77.7% 0.152 181.912)", 500: "oklch(70.4% 0.14 182.503)", 600: "oklch(60% 0.118 184.704)", 700: "oklch(51.1% 0.096 186.391)", 800: "oklch(43.7% 0.078 188.216)", 900: "oklch(38.6% 0.063 188.416)", 950: "oklch(27.7% 0.046 192.524)" }, cyan: { 50: "oklch(98.4% 0.019 200.873)", 100: "oklch(95.6% 0.045 203.388)", 200: "oklch(91.7% 0.08 205.041)", 300: "oklch(86.5% 0.127 207.078)", 400: "oklch(78.9% 0.154 211.53)", 500: "oklch(71.5% 0.143 215.221)", 600: "oklch(60.9% 0.126 221.723)", 700: "oklch(52% 0.105 223.128)", 800: "oklch(45% 0.085 224.283)", 900: "oklch(39.8% 0.07 227.392)", 950: "oklch(30.2% 0.056 229.695)" }, sky: { 50: "oklch(97.7% 0.013 236.62)", 100: "oklch(95.1% 0.026 236.824)", 200: "oklch(90.1% 0.058 230.902)", 300: "oklch(82.8% 0.111 230.318)", 400: "oklch(74.6% 0.16 232.661)", 500: "oklch(68.5% 0.169 237.323)", 600: "oklch(58.8% 0.158 241.966)", 700: "oklch(50% 0.134 242.749)", 800: "oklch(44.3% 0.11 240.79)", 900: "oklch(39.1% 0.09 240.876)", 950: "oklch(29.3% 0.066 243.157)" }, blue: { 50: "oklch(97% 0.014 254.604)", 100: "oklch(93.2% 0.032 255.585)", 200: "oklch(88.2% 0.059 254.128)", 300: "oklch(80.9% 0.105 251.813)", 400: "oklch(70.7% 0.165 254.624)", 500: "oklch(62.3% 0.214 259.815)", 600: "oklch(54.6% 0.245 262.881)", 700: "oklch(48.8% 0.243 264.376)", 800: "oklch(42.4% 0.199 265.638)", 900: "oklch(37.9% 0.146 265.522)", 950: "oklch(28.2% 0.091 267.935)" }, indigo: { 50: "oklch(96.2% 0.018 272.314)", 100: "oklch(93% 0.034 272.788)", 200: "oklch(87% 0.065 274.039)", 300: "oklch(78.5% 0.115 274.713)", 400: "oklch(67.3% 0.182 276.935)", 500: "oklch(58.5% 0.233 277.117)", 600: "oklch(51.1% 0.262 276.966)", 700: "oklch(45.7% 0.24 277.023)", 800: "oklch(39.8% 0.195 277.366)", 900: "oklch(35.9% 0.144 278.697)", 950: "oklch(25.7% 0.09 281.288)" }, violet: { 50: "oklch(96.9% 0.016 293.756)", 100: "oklch(94.3% 0.029 294.588)", 200: "oklch(89.4% 0.057 293.283)", 300: "oklch(81.1% 0.111 293.571)", 400: "oklch(70.2% 0.183 293.541)", 500: "oklch(60.6% 0.25 292.717)", 600: "oklch(54.1% 0.281 293.009)", 700: "oklch(49.1% 0.27 292.581)", 800: "oklch(43.2% 0.232 292.759)", 900: "oklch(38% 0.189 293.745)", 950: "oklch(28.3% 0.141 291.089)" }, purple: { 50: "oklch(97.7% 0.014 308.299)", 100: "oklch(94.6% 0.033 307.174)", 200: "oklch(90.2% 0.063 306.703)", 300: "oklch(82.7% 0.119 306.383)", 400: "oklch(71.4% 0.203 305.504)", 500: "oklch(62.7% 0.265 303.9)", 600: "oklch(55.8% 0.288 302.321)", 700: "oklch(49.6% 0.265 301.924)", 800: "oklch(43.8% 0.218 303.724)", 900: "oklch(38.1% 0.176 304.987)", 950: "oklch(29.1% 0.149 302.717)" }, fuchsia: { 50: "oklch(97.7% 0.017 320.058)", 100: "oklch(95.2% 0.037 318.852)", 200: "oklch(90.3% 0.076 319.62)", 300: "oklch(83.3% 0.145 321.434)", 400: "oklch(74% 0.238 322.16)", 500: "oklch(66.7% 0.295 322.15)", 600: "oklch(59.1% 0.293 322.896)", 700: "oklch(51.8% 0.253 323.949)", 800: "oklch(45.2% 0.211 324.591)", 900: "oklch(40.1% 0.17 325.612)", 950: "oklch(29.3% 0.136 325.661)" }, pink: { 50: "oklch(97.1% 0.014 343.198)", 100: "oklch(94.8% 0.028 342.258)", 200: "oklch(89.9% 0.061 343.231)", 300: "oklch(82.3% 0.12 346.018)", 400: "oklch(71.8% 0.202 349.761)", 500: "oklch(65.6% 0.241 354.308)", 600: "oklch(59.2% 0.249 0.584)", 700: "oklch(52.5% 0.223 3.958)", 800: "oklch(45.9% 0.187 3.815)", 900: "oklch(40.8% 0.153 2.432)", 950: "oklch(28.4% 0.109 3.907)" }, rose: { 50: "oklch(96.9% 0.015 12.422)", 100: "oklch(94.1% 0.03 12.58)", 200: "oklch(89.2% 0.058 10.001)", 300: "oklch(81% 0.117 11.638)", 400: "oklch(71.2% 0.194 13.428)", 500: "oklch(64.5% 0.246 16.439)", 600: "oklch(58.6% 0.253 17.585)", 700: "oklch(51.4% 0.222 16.935)", 800: "oklch(45.5% 0.188 13.697)", 900: "oklch(41% 0.159 10.272)", 950: "oklch(27.1% 0.105 12.094)" } };
|
|
79792
79792
|
}
|
|
79793
79793
|
});
|
|
79794
79794
|
|
|
79795
|
-
//
|
|
79795
|
+
// ../../../../cli/node_modules/tailwindcss/dist/chunk-JYLR5UAN.mjs
|
|
79796
79796
|
function S(e2) {
|
|
79797
79797
|
return e2.charCodeAt(0) === 35 || U.test(e2) || k.has(e2.toLowerCase());
|
|
79798
79798
|
}
|
|
@@ -80012,7 +80012,7 @@ function b(e2) {
|
|
|
80012
80012
|
}
|
|
80013
80013
|
var k, U, A, E, P, z, I, D, x, W, q2, V, Z, j, K, J, X, te, g, l, f, L, w, ne, _, ye;
|
|
80014
80014
|
var init_chunk_JYLR5UAN = __esm({
|
|
80015
|
-
"
|
|
80015
|
+
"../../../../cli/node_modules/tailwindcss/dist/chunk-JYLR5UAN.mjs"() {
|
|
80016
80016
|
init_chunk_DCG7AFIE();
|
|
80017
80017
|
k = /* @__PURE__ */ new Set(["black", "silver", "gray", "white", "maroon", "red", "purple", "fuchsia", "green", "lime", "olive", "yellow", "navy", "blue", "teal", "aqua", "aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige", "bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown", "burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue", "cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod", "darkgray", "darkgreen", "darkgrey", "darkkhaki", "darkmagenta", "darkolivegreen", "darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen", "darkslateblue", "darkslategray", "darkslategrey", "darkturquoise", "darkviolet", "deeppink", "deepskyblue", "dimgray", "dimgrey", "dodgerblue", "firebrick", "floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite", "gold", "goldenrod", "gray", "green", "greenyellow", "grey", "honeydew", "hotpink", "indianred", "indigo", "ivory", "khaki", "lavender", "lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral", "lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightgrey", "lightpink", "lightsalmon", "lightseagreen", "lightskyblue", "lightslategray", "lightslategrey", "lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta", "maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple", "mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise", "mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin", "navajowhite", "navy", "oldlace", "olive", "olivedrab", "orange", "orangered", "orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred", "papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue", "purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown", "salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue", "slateblue", "slategray", "slategrey", "snow", "springgreen", "steelblue", "tan", "teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white", "whitesmoke", "yellow", "yellowgreen", "transparent", "currentcolor", "canvas", "canvastext", "linktext", "visitedtext", "activetext", "buttonface", "buttontext", "buttonborder", "field", "fieldtext", "highlight", "highlighttext", "selecteditem", "selecteditemtext", "mark", "marktext", "graytext", "accentcolor", "accentcolortext"]);
|
|
80018
80018
|
U = /^(rgba?|hsla?|hwb|color|(ok)?(lab|lch)|light-dark|color-mix|--alpha)\(/i;
|
|
@@ -80059,7 +80059,7 @@ var init_chunk_JYLR5UAN = __esm({
|
|
|
80059
80059
|
}
|
|
80060
80060
|
});
|
|
80061
80061
|
|
|
80062
|
-
//
|
|
80062
|
+
// ../../../../cli/node_modules/tailwindcss/dist/chunk-3IIMCCN4.mjs
|
|
80063
80063
|
function h2(n) {
|
|
80064
80064
|
if (arguments.length === 0) throw new TypeError("`CSS.escape` requires an argument.");
|
|
80065
80065
|
let e2 = String(n), r2 = e2.length, i = -1, t2, s = "", l2 = e2.charCodeAt(0);
|
|
@@ -80093,7 +80093,7 @@ function g2(n, e2) {
|
|
|
80093
80093
|
}
|
|
80094
80094
|
var c, p;
|
|
80095
80095
|
var init_chunk_3IIMCCN4 = __esm({
|
|
80096
|
-
"
|
|
80096
|
+
"../../../../cli/node_modules/tailwindcss/dist/chunk-3IIMCCN4.mjs"() {
|
|
80097
80097
|
c = /* @__PURE__ */ new Map([["--font", ["--font-weight", "--font-size"]], ["--inset", ["--inset-shadow", "--inset-ring"]], ["--text", ["--text-color", "--text-decoration-color", "--text-decoration-thickness", "--text-indent", "--text-shadow", "--text-underline-offset"]], ["--grid-column", ["--grid-column-start", "--grid-column-end"]], ["--grid-row", ["--grid-row-start", "--grid-row-end"]]]);
|
|
80098
80098
|
p = class {
|
|
80099
80099
|
constructor(e2 = /* @__PURE__ */ new Map(), r2 = /* @__PURE__ */ new Set([])) {
|
|
@@ -80213,7 +80213,7 @@ var init_chunk_3IIMCCN4 = __esm({
|
|
|
80213
80213
|
}
|
|
80214
80214
|
});
|
|
80215
80215
|
|
|
80216
|
-
//
|
|
80216
|
+
// ../../../../cli/node_modules/tailwindcss/dist/lib.mjs
|
|
80217
80217
|
function Cn(e2) {
|
|
80218
80218
|
return { kind: "combinator", value: e2 };
|
|
80219
80219
|
}
|
|
@@ -85529,7 +85529,7 @@ async function rc(e2, i = {}) {
|
|
|
85529
85529
|
}
|
|
85530
85530
|
var Vr, $n, Nr, Tn, Er, Ft, Rr, Nn, Dr, Pr, zt, Kr, Wt, Or, _r, En, Mt, jt, Ir, Ur, Bt, vt, dt, mt, Lr, zr, Rn, ht, pe, Ze, _e, Ie, Mr, Gt, Zt, jr, Pn, On, Fr, qt, _n, he, L2, Yr, Kn, Gr, qr, Un, Hr, Zr, Jr, Qr, Ln, zn, Mn, Xr, ei, Qt, V2, jn, Fn, Wn, ri, Yn, qn, ir, Zn, ai, oi, si, ar, Jn, Qn, el, rl, ae2, il, nl, ll, al, Vt, sr, gi, ur, wi, ol, sl, ul, fl, cl, pl, dl, Ct, St, ml, gl, fr, ki, Vl, $l, Tl, Vi, $i, Ti, Di, lt, Ki, Ui, Ll, Li, Ml, zi, Fl, dr, Et, ji, Zl, ta, ra, we, Wi, _i, ma, ga, mr, Rt, gr, Ot, Gi, Sa, _t, hr, vr, on, Oa, Ua, bn, ja, er, Me;
|
|
85531
85531
|
var init_lib = __esm({
|
|
85532
|
-
"
|
|
85532
|
+
"../../../../cli/node_modules/tailwindcss/dist/lib.mjs"() {
|
|
85533
85533
|
init_chunk_JYLR5UAN();
|
|
85534
85534
|
init_chunk_DCG7AFIE();
|
|
85535
85535
|
init_chunk_3IIMCCN4();
|
|
@@ -85853,25 +85853,25 @@ var init_lib = __esm({
|
|
|
85853
85853
|
}
|
|
85854
85854
|
});
|
|
85855
85855
|
|
|
85856
|
-
//
|
|
85856
|
+
// ../../../../cli/node_modules/tailwindcss/index.css
|
|
85857
85857
|
var tailwindcss_default;
|
|
85858
85858
|
var init_tailwindcss = __esm({
|
|
85859
|
-
"
|
|
85859
|
+
"../../../../cli/node_modules/tailwindcss/index.css"() {
|
|
85860
85860
|
tailwindcss_default = '@layer theme, base, components, utilities;\n\n@layer theme {\n @theme default {\n --font-sans:\n -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",\n "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",\n "Segoe UI Symbol", "Noto Color Emoji";\n --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;\n --font-mono:\n ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",\n "Courier New", monospace;\n\n --color-red-50: oklch(97.1% 0.013 17.38);\n --color-red-100: oklch(93.6% 0.032 17.717);\n --color-red-200: oklch(88.5% 0.062 18.334);\n --color-red-300: oklch(80.8% 0.114 19.571);\n --color-red-400: oklch(70.4% 0.191 22.216);\n --color-red-500: oklch(63.7% 0.237 25.331);\n --color-red-600: oklch(57.7% 0.245 27.325);\n --color-red-700: oklch(50.5% 0.213 27.518);\n --color-red-800: oklch(44.4% 0.177 26.899);\n --color-red-900: oklch(39.6% 0.141 25.723);\n --color-red-950: oklch(25.8% 0.092 26.042);\n\n --color-orange-50: oklch(98% 0.016 73.684);\n --color-orange-100: oklch(95.4% 0.038 75.164);\n --color-orange-200: oklch(90.1% 0.076 70.697);\n --color-orange-300: oklch(83.7% 0.128 66.29);\n --color-orange-400: oklch(75% 0.183 55.934);\n --color-orange-500: oklch(70.5% 0.213 47.604);\n --color-orange-600: oklch(64.6% 0.222 41.116);\n --color-orange-700: oklch(55.3% 0.195 38.402);\n --color-orange-800: oklch(47% 0.157 37.304);\n --color-orange-900: oklch(40.8% 0.123 38.172);\n --color-orange-950: oklch(26.6% 0.079 36.259);\n\n --color-amber-50: oklch(98.7% 0.022 95.277);\n --color-amber-100: oklch(96.2% 0.059 95.617);\n --color-amber-200: oklch(92.4% 0.12 95.746);\n --color-amber-300: oklch(87.9% 0.169 91.605);\n --color-amber-400: oklch(82.8% 0.189 84.429);\n --color-amber-500: oklch(76.9% 0.188 70.08);\n --color-amber-600: oklch(66.6% 0.179 58.318);\n --color-amber-700: oklch(55.5% 0.163 48.998);\n --color-amber-800: oklch(47.3% 0.137 46.201);\n --color-amber-900: oklch(41.4% 0.112 45.904);\n --color-amber-950: oklch(27.9% 0.077 45.635);\n\n --color-yellow-50: oklch(98.7% 0.026 102.212);\n --color-yellow-100: oklch(97.3% 0.071 103.193);\n --color-yellow-200: oklch(94.5% 0.129 101.54);\n --color-yellow-300: oklch(90.5% 0.182 98.111);\n --color-yellow-400: oklch(85.2% 0.199 91.936);\n --color-yellow-500: oklch(79.5% 0.184 86.047);\n --color-yellow-600: oklch(68.1% 0.162 75.834);\n --color-yellow-700: oklch(55.4% 0.135 66.442);\n --color-yellow-800: oklch(47.6% 0.114 61.907);\n --color-yellow-900: oklch(42.1% 0.095 57.708);\n --color-yellow-950: oklch(28.6% 0.066 53.813);\n\n --color-lime-50: oklch(98.6% 0.031 120.757);\n --color-lime-100: oklch(96.7% 0.067 122.328);\n --color-lime-200: oklch(93.8% 0.127 124.321);\n --color-lime-300: oklch(89.7% 0.196 126.665);\n --color-lime-400: oklch(84.1% 0.238 128.85);\n --color-lime-500: oklch(76.8% 0.233 130.85);\n --color-lime-600: oklch(64.8% 0.2 131.684);\n --color-lime-700: oklch(53.2% 0.157 131.589);\n --color-lime-800: oklch(45.3% 0.124 130.933);\n --color-lime-900: oklch(40.5% 0.101 131.063);\n --color-lime-950: oklch(27.4% 0.072 132.109);\n\n --color-green-50: oklch(98.2% 0.018 155.826);\n --color-green-100: oklch(96.2% 0.044 156.743);\n --color-green-200: oklch(92.5% 0.084 155.995);\n --color-green-300: oklch(87.1% 0.15 154.449);\n --color-green-400: oklch(79.2% 0.209 151.711);\n --color-green-500: oklch(72.3% 0.219 149.579);\n --color-green-600: oklch(62.7% 0.194 149.214);\n --color-green-700: oklch(52.7% 0.154 150.069);\n --color-green-800: oklch(44.8% 0.119 151.328);\n --color-green-900: oklch(39.3% 0.095 152.535);\n --color-green-950: oklch(26.6% 0.065 152.934);\n\n --color-emerald-50: oklch(97.9% 0.021 166.113);\n --color-emerald-100: oklch(95% 0.052 163.051);\n --color-emerald-200: oklch(90.5% 0.093 164.15);\n --color-emerald-300: oklch(84.5% 0.143 164.978);\n --color-emerald-400: oklch(76.5% 0.177 163.223);\n --color-emerald-500: oklch(69.6% 0.17 162.48);\n --color-emerald-600: oklch(59.6% 0.145 163.225);\n --color-emerald-700: oklch(50.8% 0.118 165.612);\n --color-emerald-800: oklch(43.2% 0.095 166.913);\n --color-emerald-900: oklch(37.8% 0.077 168.94);\n --color-emerald-950: oklch(26.2% 0.051 172.552);\n\n --color-teal-50: oklch(98.4% 0.014 180.72);\n --color-teal-100: oklch(95.3% 0.051 180.801);\n --color-teal-200: oklch(91% 0.096 180.426);\n --color-teal-300: oklch(85.5% 0.138 181.071);\n --color-teal-400: oklch(77.7% 0.152 181.912);\n --color-teal-500: oklch(70.4% 0.14 182.503);\n --color-teal-600: oklch(60% 0.118 184.704);\n --color-teal-700: oklch(51.1% 0.096 186.391);\n --color-teal-800: oklch(43.7% 0.078 188.216);\n --color-teal-900: oklch(38.6% 0.063 188.416);\n --color-teal-950: oklch(27.7% 0.046 192.524);\n\n --color-cyan-50: oklch(98.4% 0.019 200.873);\n --color-cyan-100: oklch(95.6% 0.045 203.388);\n --color-cyan-200: oklch(91.7% 0.08 205.041);\n --color-cyan-300: oklch(86.5% 0.127 207.078);\n --color-cyan-400: oklch(78.9% 0.154 211.53);\n --color-cyan-500: oklch(71.5% 0.143 215.221);\n --color-cyan-600: oklch(60.9% 0.126 221.723);\n --color-cyan-700: oklch(52% 0.105 223.128);\n --color-cyan-800: oklch(45% 0.085 224.283);\n --color-cyan-900: oklch(39.8% 0.07 227.392);\n --color-cyan-950: oklch(30.2% 0.056 229.695);\n\n --color-sky-50: oklch(97.7% 0.013 236.62);\n --color-sky-100: oklch(95.1% 0.026 236.824);\n --color-sky-200: oklch(90.1% 0.058 230.902);\n --color-sky-300: oklch(82.8% 0.111 230.318);\n --color-sky-400: oklch(74.6% 0.16 232.661);\n --color-sky-500: oklch(68.5% 0.169 237.323);\n --color-sky-600: oklch(58.8% 0.158 241.966);\n --color-sky-700: oklch(50% 0.134 242.749);\n --color-sky-800: oklch(44.3% 0.11 240.79);\n --color-sky-900: oklch(39.1% 0.09 240.876);\n --color-sky-950: oklch(29.3% 0.066 243.157);\n\n --color-blue-50: oklch(97% 0.014 254.604);\n --color-blue-100: oklch(93.2% 0.032 255.585);\n --color-blue-200: oklch(88.2% 0.059 254.128);\n --color-blue-300: oklch(80.9% 0.105 251.813);\n --color-blue-400: oklch(70.7% 0.165 254.624);\n --color-blue-500: oklch(62.3% 0.214 259.815);\n --color-blue-600: oklch(54.6% 0.245 262.881);\n --color-blue-700: oklch(48.8% 0.243 264.376);\n --color-blue-800: oklch(42.4% 0.199 265.638);\n --color-blue-900: oklch(37.9% 0.146 265.522);\n --color-blue-950: oklch(28.2% 0.091 267.935);\n\n --color-indigo-50: oklch(96.2% 0.018 272.314);\n --color-indigo-100: oklch(93% 0.034 272.788);\n --color-indigo-200: oklch(87% 0.065 274.039);\n --color-indigo-300: oklch(78.5% 0.115 274.713);\n --color-indigo-400: oklch(67.3% 0.182 276.935);\n --color-indigo-500: oklch(58.5% 0.233 277.117);\n --color-indigo-600: oklch(51.1% 0.262 276.966);\n --color-indigo-700: oklch(45.7% 0.24 277.023);\n --color-indigo-800: oklch(39.8% 0.195 277.366);\n --color-indigo-900: oklch(35.9% 0.144 278.697);\n --color-indigo-950: oklch(25.7% 0.09 281.288);\n\n --color-violet-50: oklch(96.9% 0.016 293.756);\n --color-violet-100: oklch(94.3% 0.029 294.588);\n --color-violet-200: oklch(89.4% 0.057 293.283);\n --color-violet-300: oklch(81.1% 0.111 293.571);\n --color-violet-400: oklch(70.2% 0.183 293.541);\n --color-violet-500: oklch(60.6% 0.25 292.717);\n --color-violet-600: oklch(54.1% 0.281 293.009);\n --color-violet-700: oklch(49.1% 0.27 292.581);\n --color-violet-800: oklch(43.2% 0.232 292.759);\n --color-violet-900: oklch(38% 0.189 293.745);\n --color-violet-950: oklch(28.3% 0.141 291.089);\n\n --color-purple-50: oklch(97.7% 0.014 308.299);\n --color-purple-100: oklch(94.6% 0.033 307.174);\n --color-purple-200: oklch(90.2% 0.063 306.703);\n --color-purple-300: oklch(82.7% 0.119 306.383);\n --color-purple-400: oklch(71.4% 0.203 305.504);\n --color-purple-500: oklch(62.7% 0.265 303.9);\n --color-purple-600: oklch(55.8% 0.288 302.321);\n --color-purple-700: oklch(49.6% 0.265 301.924);\n --color-purple-800: oklch(43.8% 0.218 303.724);\n --color-purple-900: oklch(38.1% 0.176 304.987);\n --color-purple-950: oklch(29.1% 0.149 302.717);\n\n --color-fuchsia-50: oklch(97.7% 0.017 320.058);\n --color-fuchsia-100: oklch(95.2% 0.037 318.852);\n --color-fuchsia-200: oklch(90.3% 0.076 319.62);\n --color-fuchsia-300: oklch(83.3% 0.145 321.434);\n --color-fuchsia-400: oklch(74% 0.238 322.16);\n --color-fuchsia-500: oklch(66.7% 0.295 322.15);\n --color-fuchsia-600: oklch(59.1% 0.293 322.896);\n --color-fuchsia-700: oklch(51.8% 0.253 323.949);\n --color-fuchsia-800: oklch(45.2% 0.211 324.591);\n --color-fuchsia-900: oklch(40.1% 0.17 325.612);\n --color-fuchsia-950: oklch(29.3% 0.136 325.661);\n\n --color-pink-50: oklch(97.1% 0.014 343.198);\n --color-pink-100: oklch(94.8% 0.028 342.258);\n --color-pink-200: oklch(89.9% 0.061 343.231);\n --color-pink-300: oklch(82.3% 0.12 346.018);\n --color-pink-400: oklch(71.8% 0.202 349.761);\n --color-pink-500: oklch(65.6% 0.241 354.308);\n --color-pink-600: oklch(59.2% 0.249 0.584);\n --color-pink-700: oklch(52.5% 0.223 3.958);\n --color-pink-800: oklch(45.9% 0.187 3.815);\n --color-pink-900: oklch(40.8% 0.153 2.432);\n --color-pink-950: oklch(28.4% 0.109 3.907);\n\n --color-rose-50: oklch(96.9% 0.015 12.422);\n --color-rose-100: oklch(94.1% 0.03 12.58);\n --color-rose-200: oklch(89.2% 0.058 10.001);\n --color-rose-300: oklch(81% 0.117 11.638);\n --color-rose-400: oklch(71.2% 0.194 13.428);\n --color-rose-500: oklch(64.5% 0.246 16.439);\n --color-rose-600: oklch(58.6% 0.253 17.585);\n --color-rose-700: oklch(51.4% 0.222 16.935);\n --color-rose-800: oklch(45.5% 0.188 13.697);\n --color-rose-900: oklch(41% 0.159 10.272);\n --color-rose-950: oklch(27.1% 0.105 12.094);\n\n --color-slate-50: oklch(98.4% 0.003 247.858);\n --color-slate-100: oklch(96.8% 0.007 247.896);\n --color-slate-200: oklch(92.9% 0.013 255.508);\n --color-slate-300: oklch(86.9% 0.022 252.894);\n --color-slate-400: oklch(70.4% 0.04 256.788);\n --color-slate-500: oklch(55.4% 0.046 257.417);\n --color-slate-600: oklch(44.6% 0.043 257.281);\n --color-slate-700: oklch(37.2% 0.044 257.287);\n --color-slate-800: oklch(27.9% 0.041 260.031);\n --color-slate-900: oklch(20.8% 0.042 265.755);\n --color-slate-950: oklch(12.9% 0.042 264.695);\n\n --color-gray-50: oklch(98.5% 0.002 247.839);\n --color-gray-100: oklch(96.7% 0.003 264.542);\n --color-gray-200: oklch(92.8% 0.006 264.531);\n --color-gray-300: oklch(87.2% 0.01 258.338);\n --color-gray-400: oklch(70.7% 0.022 261.325);\n --color-gray-500: oklch(55.1% 0.027 264.364);\n --color-gray-600: oklch(44.6% 0.03 256.802);\n --color-gray-700: oklch(37.3% 0.034 259.733);\n --color-gray-800: oklch(27.8% 0.033 256.848);\n --color-gray-900: oklch(21% 0.034 264.665);\n --color-gray-950: oklch(13% 0.028 261.692);\n\n --color-zinc-50: oklch(98.5% 0 none);\n --color-zinc-100: oklch(96.7% 0.001 286.375);\n --color-zinc-200: oklch(92% 0.004 286.32);\n --color-zinc-300: oklch(87.1% 0.006 286.286);\n --color-zinc-400: oklch(70.5% 0.015 286.067);\n --color-zinc-500: oklch(55.2% 0.016 285.938);\n --color-zinc-600: oklch(44.2% 0.017 285.786);\n --color-zinc-700: oklch(37% 0.013 285.805);\n --color-zinc-800: oklch(27.4% 0.006 286.033);\n --color-zinc-900: oklch(21% 0.006 285.885);\n --color-zinc-950: oklch(14.1% 0.005 285.823);\n\n --color-neutral-50: oklch(98.5% 0 none);\n --color-neutral-100: oklch(97% 0 none);\n --color-neutral-200: oklch(92.2% 0 none);\n --color-neutral-300: oklch(87% 0 none);\n --color-neutral-400: oklch(70.8% 0 none);\n --color-neutral-500: oklch(55.6% 0 none);\n --color-neutral-600: oklch(43.9% 0 none);\n --color-neutral-700: oklch(37.1% 0 none);\n --color-neutral-800: oklch(26.9% 0 none);\n --color-neutral-900: oklch(20.5% 0 none);\n --color-neutral-950: oklch(14.5% 0 none);\n\n --color-stone-50: oklch(98.5% 0.001 106.423);\n --color-stone-100: oklch(97% 0.001 106.424);\n --color-stone-200: oklch(92.3% 0.003 48.717);\n --color-stone-300: oklch(86.9% 0.005 56.366);\n --color-stone-400: oklch(70.9% 0.01 56.259);\n --color-stone-500: oklch(55.3% 0.013 58.071);\n --color-stone-600: oklch(44.4% 0.011 73.639);\n --color-stone-700: oklch(37.4% 0.01 67.558);\n --color-stone-800: oklch(26.8% 0.007 34.298);\n --color-stone-900: oklch(21.6% 0.006 56.043);\n --color-stone-950: oklch(14.7% 0.004 49.25);\n\n --color-mauve-50: oklch(98.5% 0 none);\n --color-mauve-100: oklch(96% 0.003 325.6);\n --color-mauve-200: oklch(92.2% 0.005 325.62);\n --color-mauve-300: oklch(86.5% 0.012 325.68);\n --color-mauve-400: oklch(71.1% 0.019 323.02);\n --color-mauve-500: oklch(54.2% 0.034 322.5);\n --color-mauve-600: oklch(43.5% 0.029 321.78);\n --color-mauve-700: oklch(36.4% 0.029 323.89);\n --color-mauve-800: oklch(26.3% 0.024 320.12);\n --color-mauve-900: oklch(21.2% 0.019 322.12);\n --color-mauve-950: oklch(14.5% 0.008 326);\n\n --color-olive-50: oklch(98.8% 0.003 106.5);\n --color-olive-100: oklch(96.6% 0.005 106.5);\n --color-olive-200: oklch(93% 0.007 106.5);\n --color-olive-300: oklch(88% 0.011 106.6);\n --color-olive-400: oklch(73.7% 0.021 106.9);\n --color-olive-500: oklch(58% 0.031 107.3);\n --color-olive-600: oklch(46.6% 0.025 107.3);\n --color-olive-700: oklch(39.4% 0.023 107.4);\n --color-olive-800: oklch(28.6% 0.016 107.4);\n --color-olive-900: oklch(22.8% 0.013 107.4);\n --color-olive-950: oklch(15.3% 0.006 107.1);\n\n --color-mist-50: oklch(98.7% 0.002 197.1);\n --color-mist-100: oklch(96.3% 0.002 197.1);\n --color-mist-200: oklch(92.5% 0.005 214.3);\n --color-mist-300: oklch(87.2% 0.007 219.6);\n --color-mist-400: oklch(72.3% 0.014 214.4);\n --color-mist-500: oklch(56% 0.021 213.5);\n --color-mist-600: oklch(45% 0.017 213.2);\n --color-mist-700: oklch(37.8% 0.015 216);\n --color-mist-800: oklch(27.5% 0.011 216.9);\n --color-mist-900: oklch(21.8% 0.008 223.9);\n --color-mist-950: oklch(14.8% 0.004 228.8);\n\n --color-taupe-50: oklch(98.6% 0.002 67.8);\n --color-taupe-100: oklch(96% 0.002 17.2);\n --color-taupe-200: oklch(92.2% 0.005 34.3);\n --color-taupe-300: oklch(86.8% 0.007 39.5);\n --color-taupe-400: oklch(71.4% 0.014 41.2);\n --color-taupe-500: oklch(54.7% 0.021 43.1);\n --color-taupe-600: oklch(43.8% 0.017 39.3);\n --color-taupe-700: oklch(36.7% 0.016 35.7);\n --color-taupe-800: oklch(26.8% 0.011 36.5);\n --color-taupe-900: oklch(21.4% 0.009 43.1);\n --color-taupe-950: oklch(14.7% 0.004 49.3);\n\n --color-black: #000;\n --color-white: #fff;\n\n --spacing: 0.25rem;\n\n --breakpoint-sm: 40rem;\n --breakpoint-md: 48rem;\n --breakpoint-lg: 64rem;\n --breakpoint-xl: 80rem;\n --breakpoint-2xl: 96rem;\n\n --container-3xs: 16rem;\n --container-2xs: 18rem;\n --container-xs: 20rem;\n --container-sm: 24rem;\n --container-md: 28rem;\n --container-lg: 32rem;\n --container-xl: 36rem;\n --container-2xl: 42rem;\n --container-3xl: 48rem;\n --container-4xl: 56rem;\n --container-5xl: 64rem;\n --container-6xl: 72rem;\n --container-7xl: 80rem;\n\n --text-xs: 0.75rem;\n --text-xs--line-height: calc(1 / 0.75);\n --text-sm: 0.875rem;\n --text-sm--line-height: calc(1.25 / 0.875);\n --text-base: 1rem;\n --text-base--line-height: calc(1.5 / 1);\n --text-lg: 1.125rem;\n --text-lg--line-height: calc(1.75 / 1.125);\n --text-xl: 1.25rem;\n --text-xl--line-height: calc(1.75 / 1.25);\n --text-2xl: 1.5rem;\n --text-2xl--line-height: calc(2 / 1.5);\n --text-3xl: 1.875rem;\n --text-3xl--line-height: calc(2.25 / 1.875);\n --text-4xl: 2.25rem;\n --text-4xl--line-height: calc(2.5 / 2.25);\n --text-5xl: 3rem;\n --text-5xl--line-height: 1;\n --text-6xl: 3.75rem;\n --text-6xl--line-height: 1;\n --text-7xl: 4.5rem;\n --text-7xl--line-height: 1;\n --text-8xl: 6rem;\n --text-8xl--line-height: 1;\n --text-9xl: 8rem;\n --text-9xl--line-height: 1;\n\n --font-weight-thin: 100;\n --font-weight-extralight: 200;\n --font-weight-light: 300;\n --font-weight-normal: 400;\n --font-weight-medium: 500;\n --font-weight-semibold: 600;\n --font-weight-bold: 700;\n --font-weight-extrabold: 800;\n --font-weight-black: 900;\n\n --tracking-tighter: -0.05em;\n --tracking-tight: -0.025em;\n --tracking-normal: 0em;\n --tracking-wide: 0.025em;\n --tracking-wider: 0.05em;\n --tracking-widest: 0.1em;\n\n --leading-tight: 1.25;\n --leading-snug: 1.375;\n --leading-normal: 1.5;\n --leading-relaxed: 1.625;\n --leading-loose: 2;\n\n --radius-xs: 0.125rem;\n --radius-sm: 0.25rem;\n --radius-md: 0.375rem;\n --radius-lg: 0.5rem;\n --radius-xl: 0.75rem;\n --radius-2xl: 1rem;\n --radius-3xl: 1.5rem;\n --radius-4xl: 2rem;\n\n --shadow-2xs: 0 1px rgb(0 0 0 / 0.05);\n --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --shadow-md:\n 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);\n --shadow-lg:\n 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n --shadow-xl:\n 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);\n --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);\n\n --inset-shadow-2xs: inset 0 1px rgb(0 0 0 / 0.05);\n --inset-shadow-xs: inset 0 1px 1px rgb(0 0 0 / 0.05);\n --inset-shadow-sm: inset 0 2px 4px rgb(0 0 0 / 0.05);\n\n --drop-shadow-xs: 0 1px 1px rgb(0 0 0 / 0.05);\n --drop-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.15);\n --drop-shadow-md: 0 3px 3px rgb(0 0 0 / 0.12);\n --drop-shadow-lg: 0 4px 4px rgb(0 0 0 / 0.15);\n --drop-shadow-xl: 0 9px 7px rgb(0 0 0 / 0.1);\n --drop-shadow-2xl: 0 25px 25px rgb(0 0 0 / 0.15);\n\n --text-shadow-2xs: 0px 1px 0px rgb(0 0 0 / 0.15);\n --text-shadow-xs: 0px 1px 1px rgb(0 0 0 / 0.2);\n --text-shadow-sm:\n 0px 1px 0px rgb(0 0 0 / 0.075), 0px 1px 1px rgb(0 0 0 / 0.075),\n 0px 2px 2px rgb(0 0 0 / 0.075);\n --text-shadow-md:\n 0px 1px 1px rgb(0 0 0 / 0.1), 0px 1px 2px rgb(0 0 0 / 0.1),\n 0px 2px 4px rgb(0 0 0 / 0.1);\n --text-shadow-lg:\n 0px 1px 2px rgb(0 0 0 / 0.1), 0px 3px 2px rgb(0 0 0 / 0.1),\n 0px 4px 8px rgb(0 0 0 / 0.1);\n\n --ease-in: cubic-bezier(0.4, 0, 1, 1);\n --ease-out: cubic-bezier(0, 0, 0.2, 1);\n --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);\n\n --animate-spin: spin 1s linear infinite;\n --animate-ping: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;\n --animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;\n --animate-bounce: bounce 1s infinite;\n\n @keyframes spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n @keyframes ping {\n 75%,\n 100% {\n transform: scale(2);\n opacity: 0;\n }\n }\n\n @keyframes pulse {\n 50% {\n opacity: 0.5;\n }\n }\n\n @keyframes bounce {\n 0%,\n 100% {\n transform: translateY(-25%);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n\n 50% {\n transform: none;\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n }\n\n --blur-xs: 4px;\n --blur-sm: 8px;\n --blur-md: 12px;\n --blur-lg: 16px;\n --blur-xl: 24px;\n --blur-2xl: 40px;\n --blur-3xl: 64px;\n\n --perspective-dramatic: 100px;\n --perspective-near: 300px;\n --perspective-normal: 500px;\n --perspective-midrange: 800px;\n --perspective-distant: 1200px;\n\n --aspect-video: 16 / 9;\n\n --default-transition-duration: 150ms;\n --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n --default-font-family: --theme(--font-sans, initial);\n --default-font-feature-settings: --theme(\n --font-sans--font-feature-settings,\n initial\n );\n --default-font-variation-settings: --theme(\n --font-sans--font-variation-settings,\n initial\n );\n --default-mono-font-family: --theme(--font-mono, initial);\n --default-mono-font-feature-settings: --theme(\n --font-mono--font-feature-settings,\n initial\n );\n --default-mono-font-variation-settings: --theme(\n --font-mono--font-variation-settings,\n initial\n );\n }\n\n /* Deprecated */\n @theme default inline reference {\n --blur: 8px;\n --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);\n --drop-shadow: 0 1px 2px rgb(0 0 0 / 0.1), 0 1px 1px rgb(0 0 0 / 0.06);\n --radius: 0.25rem;\n --max-width-prose: 65ch;\n }\n}\n\n@layer base {\n /*\n 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n 2. Remove default margins and padding\n 3. Reset all borders.\n*/\n\n *,\n ::after,\n ::before,\n ::backdrop,\n ::file-selector-button {\n box-sizing: border-box; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 2 */\n border: 0 solid; /* 3 */\n }\n\n /*\n 1. Use a consistent sensible line-height in all browsers.\n 2. Prevent adjustments of font size after orientation changes in iOS.\n 3. Use a more readable tab size.\n 4. Use the user\'s configured `sans` font-family by default.\n 5. Use the user\'s configured `sans` font-feature-settings by default.\n 6. Use the user\'s configured `sans` font-variation-settings by default.\n 7. Disable tap highlights on iOS.\n*/\n\n html,\n :host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n tab-size: 4; /* 3 */\n font-family: --theme(\n --default-font-family,\n -apple-system,\n BlinkMacSystemFont,\n "Segoe UI",\n Roboto,\n "Helvetica Neue",\n "Noto Sans",\n Arial,\n sans-serif,\n "Apple Color Emoji",\n "Segoe UI Emoji",\n "Segoe UI Symbol",\n "Noto Color Emoji"\n ); /* 4 */\n font-feature-settings: --theme(\n --default-font-feature-settings,\n normal\n ); /* 5 */\n font-variation-settings: --theme(\n --default-font-variation-settings,\n normal\n ); /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n }\n\n /*\n 1. Add the correct height in Firefox.\n 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n 3. Reset the default border style to a 1px solid border.\n*/\n\n hr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n }\n\n /*\n Add the correct text decoration in Chrome, Edge, and Safari.\n*/\n\n abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n\n /*\n Remove the default font size and weight for headings.\n*/\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-size: inherit;\n font-weight: inherit;\n }\n\n /*\n Reset links to optimize for opt-in styling instead of opt-out.\n*/\n\n a {\n color: inherit;\n -webkit-text-decoration: inherit;\n text-decoration: inherit;\n }\n\n /*\n Add the correct font weight in Edge and Safari.\n*/\n\n b,\n strong {\n font-weight: bolder;\n }\n\n /*\n 1. Use the user\'s configured `mono` font-family by default.\n 2. Use the user\'s configured `mono` font-feature-settings by default.\n 3. Use the user\'s configured `mono` font-variation-settings by default.\n 4. Correct the odd `em` font sizing in all browsers.\n*/\n\n code,\n kbd,\n samp,\n pre {\n font-family: --theme(\n --default-mono-font-family,\n ui-monospace,\n SFMono-Regular,\n Menlo,\n Monaco,\n Consolas,\n "Liberation Mono",\n "Courier New",\n monospace\n ); /* 1 */\n font-feature-settings: --theme(\n --default-mono-font-feature-settings,\n normal\n ); /* 2 */\n font-variation-settings: --theme(\n --default-mono-font-variation-settings,\n normal\n ); /* 3 */\n font-size: 1em; /* 4 */\n }\n\n /*\n Add the correct font size in all browsers.\n*/\n\n small {\n font-size: 80%;\n }\n\n /*\n Prevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\n sub,\n sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n\n sub {\n bottom: -0.25em;\n }\n\n sup {\n top: -0.5em;\n }\n\n /*\n 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n 2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n 3. Remove gaps between table borders by default.\n*/\n\n table {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n }\n\n /*\n Use the modern Firefox focus style for all focusable elements.\n*/\n\n :-moz-focusring:where(:not(iframe)) {\n outline: auto;\n }\n\n /*\n Add the correct vertical alignment in Chrome and Firefox.\n*/\n\n progress {\n vertical-align: baseline;\n }\n\n /*\n Add the correct display in Chrome and Safari.\n*/\n\n summary {\n display: list-item;\n }\n\n /*\n Make lists unstyled by default.\n*/\n\n ol,\n ul,\n menu {\n list-style: none;\n }\n\n /*\n 1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n 2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\n img,\n svg,\n video,\n canvas,\n audio,\n iframe,\n embed,\n object {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n }\n\n /*\n Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\n img,\n video {\n max-width: 100%;\n height: auto;\n }\n\n /*\n 1. Inherit font styles in all browsers.\n 2. Remove border radius in all browsers.\n 3. Remove background color in all browsers.\n 4. Ensure consistent opacity for disabled states in all browsers.\n*/\n\n button,\n input,\n select,\n optgroup,\n textarea,\n ::file-selector-button {\n font: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n border-radius: 0; /* 2 */\n background-color: transparent; /* 3 */\n opacity: 1; /* 4 */\n }\n\n /*\n Restore default font weight.\n*/\n\n :where(select:is([multiple], [size])) optgroup {\n font-weight: bolder;\n }\n\n /*\n Restore indentation.\n*/\n\n :where(select:is([multiple], [size])) optgroup option {\n padding-inline-start: 20px;\n }\n\n /*\n Restore space after button.\n*/\n\n ::file-selector-button {\n margin-inline-end: 4px;\n }\n\n /*\n Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n*/\n\n ::placeholder {\n opacity: 1;\n }\n\n /*\n Set the default placeholder color to a semi-transparent version of the current text color in browsers that do not\n crash when using `color-mix(\u2026)` with `currentcolor`. (https://github.com/tailwindlabs/tailwindcss/issues/17194)\n*/\n\n @supports (not (-webkit-appearance: -apple-pay-button)) /* Not Safari */ or\n (contain-intrinsic-size: 1px) /* Safari 17+ */ {\n ::placeholder {\n color: color-mix(in oklab, currentcolor 50%, transparent);\n }\n }\n\n /*\n Prevent resizing textareas horizontally by default.\n*/\n\n textarea {\n resize: vertical;\n }\n\n /*\n Remove the inner padding in Chrome and Safari on macOS.\n*/\n\n ::-webkit-search-decoration {\n -webkit-appearance: none;\n }\n\n /*\n 1. Ensure date/time inputs have the same height when empty in iOS Safari.\n 2. Ensure text alignment can be changed on date/time inputs in iOS Safari.\n*/\n\n ::-webkit-date-and-time-value {\n min-height: 1lh; /* 1 */\n text-align: inherit; /* 2 */\n }\n\n /*\n Prevent height from changing on date/time inputs in macOS Safari when the input is set to `display: block`.\n*/\n\n ::-webkit-datetime-edit {\n display: inline-flex;\n }\n\n /*\n Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers.\n*/\n\n ::-webkit-datetime-edit-fields-wrapper {\n padding: 0;\n }\n\n ::-webkit-datetime-edit,\n ::-webkit-datetime-edit-year-field,\n ::-webkit-datetime-edit-month-field,\n ::-webkit-datetime-edit-day-field,\n ::-webkit-datetime-edit-hour-field,\n ::-webkit-datetime-edit-minute-field,\n ::-webkit-datetime-edit-second-field,\n ::-webkit-datetime-edit-millisecond-field,\n ::-webkit-datetime-edit-meridiem-field {\n padding-block: 0;\n }\n\n /*\n Center dropdown marker shown on inputs with paired `<datalist>`s in Chrome. (https://github.com/tailwindlabs/tailwindcss/issues/18499)\n*/\n\n ::-webkit-calendar-picker-indicator {\n line-height: 1;\n }\n\n /*\n Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n :-moz-ui-invalid {\n box-shadow: none;\n }\n\n /*\n Correct the inability to style the border radius in iOS Safari.\n*/\n\n button,\n input:where([type="button"], [type="reset"], [type="submit"]),\n ::file-selector-button {\n appearance: button;\n }\n\n /*\n Correct the cursor style of increment and decrement buttons in Safari.\n*/\n\n ::-webkit-inner-spin-button,\n ::-webkit-outer-spin-button {\n height: auto;\n }\n\n /*\n Make elements with the HTML hidden attribute stay hidden by default.\n*/\n\n [hidden]:where(:not([hidden="until-found"])) {\n display: none !important;\n }\n}\n\n@layer utilities {\n @tailwind utilities;\n}\n';
|
|
85861
85861
|
}
|
|
85862
85862
|
});
|
|
85863
85863
|
|
|
85864
85864
|
// ../cli/src/lib/dress-page.ts
|
|
85865
|
-
import
|
|
85866
|
-
import
|
|
85865
|
+
import fs29 from "node:fs";
|
|
85866
|
+
import path33 from "node:path";
|
|
85867
85867
|
function dressPage(file2) {
|
|
85868
|
-
const folder =
|
|
85869
|
-
const html =
|
|
85868
|
+
const folder = path33.dirname(file2);
|
|
85869
|
+
const html = fs29.readFileSync(file2, "utf8").replace(/<link\b[^>]*>/gi, (tag) => {
|
|
85870
85870
|
const href = /\bhref\s*=\s*["']?([^"'\s>]+)/i.exec(tag)?.[1];
|
|
85871
85871
|
if (!/\brel\s*=\s*["']?stylesheet/i.test(tag) || !href || /^[a-z][\w+.-]*:|^\/\//i.test(href)) return tag;
|
|
85872
|
-
const at3 =
|
|
85873
|
-
if (!at3.startsWith(folder +
|
|
85874
|
-
const css =
|
|
85872
|
+
const at3 = path33.resolve(folder, href);
|
|
85873
|
+
if (!at3.startsWith(folder + path33.sep) || !fs29.existsSync(at3)) return tag;
|
|
85874
|
+
const css = fs29.readFileSync(at3, "utf8").replace(/url\(\s*(["']?)([^"')]+?)\1\s*\)/gi, (whole, quote2, src) => /^(?:[a-z][\w+.-]*:|\/|#)/i.test(src) ? whole : `url(${quote2}${path33.relative(folder, path33.resolve(path33.dirname(at3), src)).split(path33.sep).join("/")}${quote2})`);
|
|
85875
85875
|
return `<style>${css.replace(/\r?\n/g, " ").replace(/<\/style/gi, "<\\/style")}</style>`;
|
|
85876
85876
|
});
|
|
85877
85877
|
const at2 = /^\uFEFF?\s*(?:<!--[\s\S]*?-->\s*)*(?:<!doctype\b[^>]*>)?/i.exec(html)[0].length;
|
|
@@ -85883,20 +85883,20 @@ var init_dress_page = __esm({
|
|
|
85883
85883
|
"use strict";
|
|
85884
85884
|
CSP = "default-src 'none'; script-src 'unsafe-inline'; style-src 'unsafe-inline'; img-src data: blob:; media-src data: blob:; font-src data: blob:; worker-src 'none'; base-uri 'none'; form-action 'none'";
|
|
85885
85885
|
head = `<meta http-equiv="Content-Security-Policy" content="${CSP}"><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><style>html{overflow-x:hidden;overscroll-behavior:contain}</style>`;
|
|
85886
|
-
referenceText = (file2) => /\.html$/i.test(file2) ? dressPage(file2) :
|
|
85886
|
+
referenceText = (file2) => /\.html$/i.test(file2) ? dressPage(file2) : fs29.readFileSync(file2, "utf8");
|
|
85887
85887
|
}
|
|
85888
85888
|
});
|
|
85889
85889
|
|
|
85890
|
-
//
|
|
85890
|
+
// ../../../../cli/node_modules/react-icons/lib/iconsManifest.mjs
|
|
85891
85891
|
var init_iconsManifest = __esm({
|
|
85892
|
-
"
|
|
85892
|
+
"../../../../cli/node_modules/react-icons/lib/iconsManifest.mjs"() {
|
|
85893
85893
|
}
|
|
85894
85894
|
});
|
|
85895
85895
|
|
|
85896
|
-
//
|
|
85896
|
+
// ../../../../cli/node_modules/react-icons/lib/iconContext.mjs
|
|
85897
85897
|
var import_react, DefaultContext, IconContext;
|
|
85898
85898
|
var init_iconContext = __esm({
|
|
85899
|
-
"
|
|
85899
|
+
"../../../../cli/node_modules/react-icons/lib/iconContext.mjs"() {
|
|
85900
85900
|
import_react = __toESM(require_react(), 1);
|
|
85901
85901
|
DefaultContext = {
|
|
85902
85902
|
color: void 0,
|
|
@@ -85909,7 +85909,7 @@ var init_iconContext = __esm({
|
|
|
85909
85909
|
}
|
|
85910
85910
|
});
|
|
85911
85911
|
|
|
85912
|
-
//
|
|
85912
|
+
// ../../../../cli/node_modules/react-icons/lib/iconBase.mjs
|
|
85913
85913
|
function _objectWithoutProperties(e2, t2) {
|
|
85914
85914
|
if (null == e2) return {};
|
|
85915
85915
|
var o3, r2, i = _objectWithoutPropertiesLoose(e2, t2);
|
|
@@ -86010,23 +86010,23 @@ function IconBase(props) {
|
|
|
86010
86010
|
}
|
|
86011
86011
|
var import_react2, _excluded;
|
|
86012
86012
|
var init_iconBase = __esm({
|
|
86013
|
-
"
|
|
86013
|
+
"../../../../cli/node_modules/react-icons/lib/iconBase.mjs"() {
|
|
86014
86014
|
import_react2 = __toESM(require_react(), 1);
|
|
86015
86015
|
init_iconContext();
|
|
86016
86016
|
_excluded = ["attr", "size", "title"];
|
|
86017
86017
|
}
|
|
86018
86018
|
});
|
|
86019
86019
|
|
|
86020
|
-
//
|
|
86020
|
+
// ../../../../cli/node_modules/react-icons/lib/index.mjs
|
|
86021
86021
|
var init_lib2 = __esm({
|
|
86022
|
-
"
|
|
86022
|
+
"../../../../cli/node_modules/react-icons/lib/index.mjs"() {
|
|
86023
86023
|
init_iconsManifest();
|
|
86024
86024
|
init_iconBase();
|
|
86025
86025
|
init_iconContext();
|
|
86026
86026
|
}
|
|
86027
86027
|
});
|
|
86028
86028
|
|
|
86029
|
-
//
|
|
86029
|
+
// ../../../../cli/node_modules/react-icons/fi/index.mjs
|
|
86030
86030
|
var fi_exports = {};
|
|
86031
86031
|
__export(fi_exports, {
|
|
86032
86032
|
FiActivity: () => FiActivity,
|
|
@@ -87179,12 +87179,12 @@ function FiActivity(props) {
|
|
|
87179
87179
|
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "none", "stroke": "currentColor", "strokeWidth": "2", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "polyline", "attr": { "points": "22 12 18 12 15 21 9 3 6 12 2 12" }, "child": [] }] })(props);
|
|
87180
87180
|
}
|
|
87181
87181
|
var init_fi = __esm({
|
|
87182
|
-
"
|
|
87182
|
+
"../../../../cli/node_modules/react-icons/fi/index.mjs"() {
|
|
87183
87183
|
init_lib2();
|
|
87184
87184
|
}
|
|
87185
87185
|
});
|
|
87186
87186
|
|
|
87187
|
-
//
|
|
87187
|
+
// ../../../../cli/node_modules/react-icons/fa/index.mjs
|
|
87188
87188
|
var fa_exports = {};
|
|
87189
87189
|
__export(fa_exports, {
|
|
87190
87190
|
Fa500Px: () => Fa500Px,
|
|
@@ -93633,12 +93633,12 @@ function FaRegAddressBook(props) {
|
|
|
93633
93633
|
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 448 512" }, "child": [{ "tag": "path", "attr": { "d": "M436 160c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h320c26.5 0 48-21.5 48-48v-48h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20zm-68 304H48V48h320v416zM208 256c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm-89.6 128h179.2c12.4 0 22.4-8.6 22.4-19.2v-19.2c0-31.8-30.1-57.6-67.2-57.6-10.8 0-18.7 8-44.8 8-26.9 0-33.4-8-44.8-8-37.1 0-67.2 25.8-67.2 57.6v19.2c0 10.6 10 19.2 22.4 19.2z" }, "child": [] }] })(props);
|
|
93634
93634
|
}
|
|
93635
93635
|
var init_fa = __esm({
|
|
93636
|
-
"
|
|
93636
|
+
"../../../../cli/node_modules/react-icons/fa/index.mjs"() {
|
|
93637
93637
|
init_lib2();
|
|
93638
93638
|
}
|
|
93639
93639
|
});
|
|
93640
93640
|
|
|
93641
|
-
//
|
|
93641
|
+
// ../../../../cli/node_modules/react-icons/si/index.mjs
|
|
93642
93642
|
var si_exports = {};
|
|
93643
93643
|
__export(si_exports, {
|
|
93644
93644
|
Si1001Tracklists: () => Si1001Tracklists,
|
|
@@ -107427,12 +107427,12 @@ function Si1001Tracklists(props) {
|
|
|
107427
107427
|
return GenIcon({ "tag": "svg", "attr": { "role": "img", "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "d": "M8.0957 1.334v1.3457H6.7461v1.3457H5.3984V5.371H4.0488v1.3457H2.6992v6.6816H1.3496v1.3477H0v2.4512h1.3496v1.3457h1.3496v1.3457h2.457v-7.836H3.8067V7.8223h1.3497V6.4766h1.3496V5.1309h1.3496V3.7852h8.289v1.3457h1.3496v1.3457h1.3496v1.3457h1.3497v4.2304h-1.3497v7.836h2.457V18.543h1.3497v-1.3457H24V14.746h-1.3496v-1.3477h-1.3496V6.7168h-1.3496V5.3711h-1.3496V4.0254h-1.3477V2.6797h-1.3496V1.334Zm1.3711 8v1.3515H8.1113v3.8165h2.4688v-4.0567h2.9512v4.3477h-1.3555v1.3515h-1.3535v2.4649h2.4668v-2.7051H16v-5.2188h-1.3555V9.334Zm1.3555 10.8691v2.463h2.4668v-2.463z" }, "child": [] }] })(props);
|
|
107428
107428
|
}
|
|
107429
107429
|
var init_si = __esm({
|
|
107430
|
-
"
|
|
107430
|
+
"../../../../cli/node_modules/react-icons/si/index.mjs"() {
|
|
107431
107431
|
init_lib2();
|
|
107432
107432
|
}
|
|
107433
107433
|
});
|
|
107434
107434
|
|
|
107435
|
-
//
|
|
107435
|
+
// ../../../../cli/node_modules/clsx/dist/clsx.mjs
|
|
107436
107436
|
var clsx_exports = {};
|
|
107437
107437
|
__export(clsx_exports, {
|
|
107438
107438
|
clsx: () => clsx,
|
|
@@ -107453,12 +107453,12 @@ function clsx() {
|
|
|
107453
107453
|
}
|
|
107454
107454
|
var clsx_default;
|
|
107455
107455
|
var init_clsx = __esm({
|
|
107456
|
-
"
|
|
107456
|
+
"../../../../cli/node_modules/clsx/dist/clsx.mjs"() {
|
|
107457
107457
|
clsx_default = clsx;
|
|
107458
107458
|
}
|
|
107459
107459
|
});
|
|
107460
107460
|
|
|
107461
|
-
//
|
|
107461
|
+
// ../../../../cli/node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
107462
107462
|
var bundle_mjs_exports = {};
|
|
107463
107463
|
__export(bundle_mjs_exports, {
|
|
107464
107464
|
createTailwindMerge: () => createTailwindMerge,
|
|
@@ -107472,7 +107472,7 @@ __export(bundle_mjs_exports, {
|
|
|
107472
107472
|
});
|
|
107473
107473
|
var concatArrays, createClassValidatorObject, createClassPartObject, CLASS_PART_SEPARATOR, EMPTY_CONFLICTS, ARBITRARY_PROPERTY_PREFIX, createClassGroupUtils, getGroupRecursive, getGroupIdForArbitraryProperty, createClassMap, processClassGroups, processClassesRecursively, processClassDefinition, processStringDefinition, processFunctionDefinition, processObjectDefinition, getPart, isThemeGetter, createLruCache, IMPORTANT_MODIFIER, MODIFIER_SEPARATOR, EMPTY_MODIFIERS, createResultObject, createParseClassName, createSortModifiers, createConfigUtils, createPostfixLookupClassGroupIds, SPLIT_CLASSES_REGEX, mergeClassList, twJoin, toValue, createTailwindMerge, fallbackThemeArr, fromTheme, arbitraryValueRegex, arbitraryVariableRegex, fractionRegex, tshirtUnitRegex, lengthUnitRegex, colorFunctionRegex, shadowRegex, imageRegex, isFraction, isNumber, isInteger, isPercent, isTshirtSize, isAny, isLengthOnly, isNever, isShadow, isImage, isAnyNonArbitrary, isNamedContainerQuery, isArbitrarySize, isArbitraryValue, isArbitraryLength, isArbitraryNumber, isArbitraryWeight, isArbitraryFamilyName, isArbitraryPosition, isArbitraryImage, isArbitraryShadow, isArbitraryVariable, isArbitraryVariableLength, isArbitraryVariableFamilyName, isArbitraryVariablePosition, isArbitraryVariableSize, isArbitraryVariableImage, isArbitraryVariableShadow, isArbitraryVariableWeight, getIsArbitraryValue, getIsArbitraryVariable, isLabelPosition, isLabelImage, isLabelSize, isLabelLength, isLabelNumber, isLabelFamilyName, isLabelWeight, isLabelShadow, validators, getDefaultConfig, mergeConfigs, overrideProperty, overrideConfigProperties, mergeConfigProperties, mergeArrayProperties, extendTailwindMerge, twMerge;
|
|
107474
107474
|
var init_bundle_mjs = __esm({
|
|
107475
|
-
"
|
|
107475
|
+
"../../../../cli/node_modules/tailwind-merge/dist/bundle-mjs.mjs"() {
|
|
107476
107476
|
concatArrays = (array1, array2) => {
|
|
107477
107477
|
const combinedArray = new Array(array1.length + array2.length);
|
|
107478
107478
|
for (let i = 0; i < array1.length; i++) {
|
|
@@ -107614,9 +107614,9 @@ var init_bundle_mjs = __esm({
|
|
|
107614
107614
|
processClassesRecursively(value, getPart(classPartObject, key), classGroupId, theme);
|
|
107615
107615
|
}
|
|
107616
107616
|
};
|
|
107617
|
-
getPart = (classPartObject,
|
|
107617
|
+
getPart = (classPartObject, path50) => {
|
|
107618
107618
|
let current2 = classPartObject;
|
|
107619
|
-
const parts =
|
|
107619
|
+
const parts = path50.split(CLASS_PART_SEPARATOR);
|
|
107620
107620
|
const len = parts.length;
|
|
107621
107621
|
for (let i = 0; i < len; i++) {
|
|
107622
107622
|
const part = parts[i];
|
|
@@ -110812,7 +110812,7 @@ var init_bundle_mjs = __esm({
|
|
|
110812
110812
|
}
|
|
110813
110813
|
});
|
|
110814
110814
|
|
|
110815
|
-
//
|
|
110815
|
+
// ../../../../cli/node_modules/class-variance-authority/dist/index.mjs
|
|
110816
110816
|
var dist_exports = {};
|
|
110817
110817
|
__export(dist_exports, {
|
|
110818
110818
|
cva: () => cva,
|
|
@@ -110820,7 +110820,7 @@ __export(dist_exports, {
|
|
|
110820
110820
|
});
|
|
110821
110821
|
var falsyToString, cx, cva;
|
|
110822
110822
|
var init_dist = __esm({
|
|
110823
|
-
"
|
|
110823
|
+
"../../../../cli/node_modules/class-variance-authority/dist/index.mjs"() {
|
|
110824
110824
|
init_clsx();
|
|
110825
110825
|
falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
|
|
110826
110826
|
cx = clsx;
|
|
@@ -110866,8 +110866,8 @@ var init_dist = __esm({
|
|
|
110866
110866
|
});
|
|
110867
110867
|
|
|
110868
110868
|
// ../cli/src/lib/draw-mockup.ts
|
|
110869
|
-
import
|
|
110870
|
-
import
|
|
110869
|
+
import fs30 from "node:fs";
|
|
110870
|
+
import path34 from "node:path";
|
|
110871
110871
|
import vm from "node:vm";
|
|
110872
110872
|
async function loadPackage(id) {
|
|
110873
110873
|
if (id === "react") return import_react3.default;
|
|
@@ -110880,22 +110880,22 @@ async function loadPackage(id) {
|
|
|
110880
110880
|
return { __esModule: true, ...await load() };
|
|
110881
110881
|
}
|
|
110882
110882
|
function resolveFile(id, from, folder) {
|
|
110883
|
-
const at2 =
|
|
110884
|
-
if (at2 !== folder && !at2.startsWith(folder +
|
|
110885
|
-
const tries =
|
|
110886
|
-
const file2 = tries.find((f2) =>
|
|
110883
|
+
const at2 = path34.resolve(path34.dirname(from), id);
|
|
110884
|
+
if (at2 !== folder && !at2.startsWith(folder + path34.sep)) throw new Error(`${id} is outside the mockup's folder`);
|
|
110885
|
+
const tries = path34.extname(at2) ? [at2] : [...CODE_EXTS.map((e2) => at2 + e2), ...CODE_EXTS.map((e2) => path34.join(at2, `index${e2}`))];
|
|
110886
|
+
const file2 = tries.find((f2) => fs30.statSync(f2, { throwIfNoEntry: false })?.isFile());
|
|
110887
110887
|
if (!file2) throw new Error(`no such file: ${id}`);
|
|
110888
110888
|
return file2;
|
|
110889
110889
|
}
|
|
110890
110890
|
async function readGraph(entry) {
|
|
110891
|
-
const folder =
|
|
110891
|
+
const folder = path34.dirname(entry);
|
|
110892
110892
|
const graph = { code: /* @__PURE__ */ new Map(), links: /* @__PURE__ */ new Map(), sheets: [], packages: /* @__PURE__ */ new Map() };
|
|
110893
110893
|
const walk = async (file2) => {
|
|
110894
110894
|
if (graph.code.has(file2)) return;
|
|
110895
110895
|
if (graph.code.size >= MAX_FILES) throw new Error(`a mockup imports more than ${MAX_FILES} files`);
|
|
110896
110896
|
let location = file2;
|
|
110897
110897
|
try {
|
|
110898
|
-
const js = (0, import_sucrase.transform)(
|
|
110898
|
+
const js = (0, import_sucrase.transform)(fs30.readFileSync(file2, "utf8"), { transforms: ["typescript", "jsx", "imports"], jsxRuntime: "automatic", production: true, filePath: file2 }).code;
|
|
110899
110899
|
graph.code.set(file2, js);
|
|
110900
110900
|
const link = /* @__PURE__ */ new Map();
|
|
110901
110901
|
graph.links.set(file2, link);
|
|
@@ -110909,7 +110909,7 @@ async function readGraph(entry) {
|
|
|
110909
110909
|
const target = resolveFile(id, file2, folder);
|
|
110910
110910
|
link.set(id, target);
|
|
110911
110911
|
if (!target.endsWith(".css")) await walk(target);
|
|
110912
|
-
else if (!graph.sheets.some((s) => s.path === target)) graph.sheets.push({ path: target, content:
|
|
110912
|
+
else if (!graph.sheets.some((s) => s.path === target)) graph.sheets.push({ path: target, content: fs30.readFileSync(target, "utf8") });
|
|
110913
110913
|
}
|
|
110914
110914
|
} catch (error) {
|
|
110915
110915
|
throw new Error(`${location}: ${error instanceof Error ? error.message : String(error)}`);
|
|
@@ -110926,12 +110926,12 @@ function run(script, context, name, deadline, lineOffset = 0) {
|
|
|
110926
110926
|
async function tailwindFor(markup, sheets) {
|
|
110927
110927
|
const source = sheets.length ? sheets.map((s) => s.content).join("\n") : '@import "tailwindcss";';
|
|
110928
110928
|
const compiler = await rc(source, {
|
|
110929
|
-
base: sheets.length ?
|
|
110929
|
+
base: sheets.length ? path34.dirname(sheets[0].path) : "/",
|
|
110930
110930
|
loadStylesheet: async (id, from) => {
|
|
110931
110931
|
if (id === "tailwindcss" || id.startsWith("tailwindcss/")) return { path: "tailwindcss/index.css", base: "/", content: tailwindcss_default };
|
|
110932
110932
|
if (!id.startsWith(".")) throw new Error(`a mockup cannot import ${id}`);
|
|
110933
|
-
const at2 =
|
|
110934
|
-
return { path: at2, base:
|
|
110933
|
+
const at2 = path34.resolve(from, id);
|
|
110934
|
+
return { path: at2, base: path34.dirname(at2), content: fs30.readFileSync(at2, "utf8") };
|
|
110935
110935
|
}
|
|
110936
110936
|
});
|
|
110937
110937
|
const classes = [...markup.matchAll(/class="([^"]*)"/g)].flatMap((m) => m[1].split(/\s+/));
|
|
@@ -111343,8 +111343,8 @@ function machineId() {
|
|
|
111343
111343
|
var machineName = () => os2.hostname().replace(/\.local$/, "");
|
|
111344
111344
|
|
|
111345
111345
|
// src/i18n.ts
|
|
111346
|
-
var ZH_HOLDER = { "claude-code": "Claude Code", codex: "Codex", terminal: "\u672C\u673A\u7EC8\u7AEF" };
|
|
111347
|
-
var EN_HOLDER = { "claude-code": "Claude Code", codex: "Codex", terminal: "the terminal" };
|
|
111346
|
+
var ZH_HOLDER = { "claude-code": "Claude Code", codex: "Codex", cursor: "Cursor", zcode: "ZCode", terminal: "\u672C\u673A\u7EC8\u7AEF" };
|
|
111347
|
+
var EN_HOLDER = { "claude-code": "Claude Code", codex: "Codex", cursor: "Cursor", zcode: "ZCode", terminal: "the terminal" };
|
|
111348
111348
|
var ZH = {
|
|
111349
111349
|
signIn: (url) => `\u8BF7\u5728\u6D4F\u89C8\u5668\u4E2D\u767B\u5F55 WildCrane\uFF1A
|
|
111350
111350
|
${url}`,
|
|
@@ -111400,8 +111400,8 @@ function status(line) {
|
|
|
111400
111400
|
}
|
|
111401
111401
|
|
|
111402
111402
|
// src/protocol.ts
|
|
111403
|
-
var VERSION = true ? "0.6.
|
|
111404
|
-
var AKB_VERSION = true ? "0.11.
|
|
111403
|
+
var VERSION = true ? "0.6.34" : "0.0.0";
|
|
111404
|
+
var AKB_VERSION = true ? "0.11.30" : "0.0.0";
|
|
111405
111405
|
var AKB_CONTRACT = true ? 7 : 0;
|
|
111406
111406
|
var EXIT_REFUSED = 10;
|
|
111407
111407
|
var EXIT_OUTDATED = 11;
|
|
@@ -112082,6 +112082,16 @@ function eventModel(ev) {
|
|
|
112082
112082
|
return void 0;
|
|
112083
112083
|
}
|
|
112084
112084
|
function whyItFailed(ev) {
|
|
112085
|
+
const why2 = failedWith(ev);
|
|
112086
|
+
const fix = USER_FIXES.find(([pattern]) => pattern.test(why2))?.[1];
|
|
112087
|
+
return fix ? `${why2}
|
|
112088
|
+
${fix}` : why2;
|
|
112089
|
+
}
|
|
112090
|
+
var USER_FIXES = [
|
|
112091
|
+
[/failed to authenticate|invalid api key|oauth token|please run \/login|not logged in/i, "Sign in to Claude Code again: run `claude` and enter /login."],
|
|
112092
|
+
[/usage limit|credit balance is too low|quota/i, "Wait for the usage limit to reset, or add credit, then press Resume."]
|
|
112093
|
+
];
|
|
112094
|
+
function failedWith(ev) {
|
|
112085
112095
|
const errors = Array.isArray(ev.errors) ? ev.errors.map(str).filter(Boolean) : [];
|
|
112086
112096
|
if (errors.length) return errors.join("; ");
|
|
112087
112097
|
const named2 = str(ev.subtype) || str(ev.terminal_reason);
|
|
@@ -112292,10 +112302,10 @@ function findRollout(threadId) {
|
|
|
112292
112302
|
}
|
|
112293
112303
|
for (const name of names2) {
|
|
112294
112304
|
if (!name.startsWith("rollout-") || !name.endsWith(tail)) continue;
|
|
112295
|
-
const
|
|
112305
|
+
const path50 = join(dir, name);
|
|
112296
112306
|
try {
|
|
112297
|
-
const at2 = statSync(
|
|
112298
|
-
if (!newest2 || at2 > newest2.at) newest2 = { path:
|
|
112307
|
+
const at2 = statSync(path50).mtimeMs;
|
|
112308
|
+
if (!newest2 || at2 > newest2.at) newest2 = { path: path50, at: at2 };
|
|
112299
112309
|
} catch {
|
|
112300
112310
|
}
|
|
112301
112311
|
}
|
|
@@ -112303,11 +112313,11 @@ function findRollout(threadId) {
|
|
|
112303
112313
|
return newest2?.path;
|
|
112304
112314
|
}
|
|
112305
112315
|
function readCodexRunFacts(threadId) {
|
|
112306
|
-
const
|
|
112307
|
-
if (!
|
|
112316
|
+
const path50 = findRollout(threadId);
|
|
112317
|
+
if (!path50) return void 0;
|
|
112308
112318
|
let raw;
|
|
112309
112319
|
try {
|
|
112310
|
-
raw = readFileSync(
|
|
112320
|
+
raw = readFileSync(path50, "utf8");
|
|
112311
112321
|
} catch {
|
|
112312
112322
|
return void 0;
|
|
112313
112323
|
}
|
|
@@ -112415,8 +112425,8 @@ function renderCompleted(item) {
|
|
|
112415
112425
|
const changes = Array.isArray(item.changes) ? item.changes : [];
|
|
112416
112426
|
return changes.map((raw) => {
|
|
112417
112427
|
const change = obj(raw);
|
|
112418
|
-
const
|
|
112419
|
-
return
|
|
112428
|
+
const path50 = str(change.path);
|
|
112429
|
+
return path50 ? `\u23FA ${str(change.kind) || "change"}(${path50})
|
|
112420
112430
|
` : "";
|
|
112421
112431
|
}).join("");
|
|
112422
112432
|
}
|
|
@@ -112667,10 +112677,10 @@ function readKimiRunFacts(sessionId) {
|
|
|
112667
112677
|
const total = { input: 0, cacheCreation: 0, cacheRead: 0, output: 0 };
|
|
112668
112678
|
let model;
|
|
112669
112679
|
let holding = 0;
|
|
112670
|
-
for (const { path:
|
|
112680
|
+
for (const { path: path50, main: main2 } of wireFiles(entry.sessionDir)) {
|
|
112671
112681
|
let raw;
|
|
112672
112682
|
try {
|
|
112673
|
-
raw = readFileSync2(
|
|
112683
|
+
raw = readFileSync2(path50, "utf8");
|
|
112674
112684
|
} catch {
|
|
112675
112685
|
continue;
|
|
112676
112686
|
}
|
|
@@ -112926,7 +112936,7 @@ function createTail(log) {
|
|
|
112926
112936
|
// ../cli/package.json
|
|
112927
112937
|
var package_default = {
|
|
112928
112938
|
name: "wildcrane",
|
|
112929
|
-
version: "0.11.
|
|
112939
|
+
version: "0.11.30",
|
|
112930
112940
|
akbContract: 7,
|
|
112931
112941
|
description: "WildCrane's `akb` command \u2014 scaffold the Markdown board under docs/kanban/, put an agent on a card, and carry the flows the agent works by.",
|
|
112932
112942
|
keywords: [
|
|
@@ -112939,7 +112949,7 @@ var package_default = {
|
|
|
112939
112949
|
"markdown",
|
|
112940
112950
|
"board"
|
|
112941
112951
|
],
|
|
112942
|
-
license: "
|
|
112952
|
+
license: "Apache-2.0",
|
|
112943
112953
|
homepage: "https://wildcrane.ai/",
|
|
112944
112954
|
repository: {
|
|
112945
112955
|
type: "git",
|
|
@@ -112998,8 +113008,8 @@ var CLIENT_CAPABILITIES = {
|
|
|
112998
113008
|
};
|
|
112999
113009
|
function whereHint(update3, title) {
|
|
113000
113010
|
const locations = Array.isArray(update3.locations) ? update3.locations : [];
|
|
113001
|
-
const
|
|
113002
|
-
return
|
|
113011
|
+
const path50 = str(obj(locations[0]).path);
|
|
113012
|
+
return path50 && !title.includes(path50) ? hint(path50) : "";
|
|
113003
113013
|
}
|
|
113004
113014
|
function saidBy(update3) {
|
|
113005
113015
|
const content = Array.isArray(update3.content) ? update3.content : [];
|
|
@@ -115416,7 +115426,7 @@ var listFolders = (machineId2) => request("GET", `/v1/runner/folders?machine=${q
|
|
|
115416
115426
|
var listElsewhere = (machineId2) => request("GET", `/v1/runner/folders?machine=${q(machineId2)}&elsewhere=1`);
|
|
115417
115427
|
var listMachineTasks = (machineId2) => request("GET", `/v1/runner/tasks?machine=${q(machineId2)}`);
|
|
115418
115428
|
var stopTask = (task, how) => request("POST", how === "chat" ? `/v1/tasks/${q(task)}/chat/stop` : `/v1/tasks/${q(task)}/stop`, {});
|
|
115419
|
-
var addFolder = (machineId2, name,
|
|
115429
|
+
var addFolder = (machineId2, name, path50, project) => request("POST", "/v1/runner/folders", { machineId: machineId2, name, path: path50, ...project ? { project } : {} });
|
|
115420
115430
|
async function createProject(name, workspace, key) {
|
|
115421
115431
|
const sent = await send("POST", "/v1/projects", { name, workspace }, true, TIMEOUT_MS, void 0, { "idempotency-key": key });
|
|
115422
115432
|
return sent.ok ? answerOf(sent.value) : sent;
|
|
@@ -115946,8 +115956,8 @@ function allowedProjects() {
|
|
|
115946
115956
|
}
|
|
115947
115957
|
|
|
115948
115958
|
// src/connect.ts
|
|
115949
|
-
import
|
|
115950
|
-
import
|
|
115959
|
+
import fs46 from "node:fs";
|
|
115960
|
+
import path49 from "node:path";
|
|
115951
115961
|
|
|
115952
115962
|
// src/settings-control.ts
|
|
115953
115963
|
import fs13 from "node:fs";
|
|
@@ -116093,11 +116103,14 @@ import path18 from "node:path";
|
|
|
116093
116103
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
116094
116104
|
var akbHome = () => path18.join(runnerHome(), "bin", "akb");
|
|
116095
116105
|
var BUNDLED_SHIM = `bundled-${AKB_VERSION}`;
|
|
116096
|
-
var
|
|
116097
|
-
|
|
116098
|
-
|
|
116106
|
+
var HERE = path18.dirname(fileURLToPath(import.meta.url));
|
|
116107
|
+
function akbArgs(entry, dist = HERE) {
|
|
116108
|
+
const preload = path18.join(dist, "akb-proxy.mjs");
|
|
116109
|
+
return fs14.existsSync(preload) ? ["--import", pathToFileURL(preload).href, entry] : [entry];
|
|
116110
|
+
}
|
|
116111
|
+
var bundledAkb = (dist = HERE) => ({
|
|
116099
116112
|
command: process.execPath,
|
|
116100
|
-
args: akbArgs(path18.join(
|
|
116113
|
+
args: akbArgs(path18.join(dist, "akb", "bin", "ai4kanban.mjs"), dist),
|
|
116101
116114
|
version: AKB_VERSION,
|
|
116102
116115
|
shim: path18.join(akbHome(), BUNDLED_SHIM)
|
|
116103
116116
|
});
|
|
@@ -116702,28 +116715,28 @@ async function reviewChats(machineId2, runtimes, now = Date.now()) {
|
|
|
116702
116715
|
}
|
|
116703
116716
|
|
|
116704
116717
|
// src/board-watch.ts
|
|
116705
|
-
import
|
|
116706
|
-
import
|
|
116718
|
+
import fs34 from "node:fs";
|
|
116719
|
+
import path38 from "node:path";
|
|
116707
116720
|
|
|
116708
116721
|
// ../cli/src/lib/shared/board-files.ts
|
|
116709
116722
|
var ROOTS = ["todo/", ".archive/", "memory/", "workflows/", "triage/", "assets/", "rules/"];
|
|
116710
116723
|
var SETTINGS = ["modules.md", "config.md"];
|
|
116711
|
-
var isSettingsPath = (
|
|
116724
|
+
var isSettingsPath = (path50) => SETTINGS.includes(path50) || /^rules\/(?:workflows\/)?[^/]+\.md$/.test(path50);
|
|
116712
116725
|
var BOARD_FILE_LIMIT = 256 * 1024;
|
|
116713
|
-
function isBoardPath(
|
|
116714
|
-
if (!
|
|
116715
|
-
if (
|
|
116716
|
-
if (
|
|
116717
|
-
if (
|
|
116718
|
-
if (SETTINGS.includes(
|
|
116719
|
-
if (
|
|
116720
|
-
if (
|
|
116721
|
-
return ROOTS.some((root2) =>
|
|
116726
|
+
function isBoardPath(path50) {
|
|
116727
|
+
if (!path50 || path50.length > 500 || path50.startsWith("/") || path50.includes("\\") || path50.includes("\0")) return false;
|
|
116728
|
+
if (path50.split("/").some((part) => !part || part === "." || part === "..")) return false;
|
|
116729
|
+
if (path50 === "todo/README.md" || path50.split("/").includes(".sync")) return false;
|
|
116730
|
+
if (path50.startsWith("workflows/")) return true;
|
|
116731
|
+
if (SETTINGS.includes(path50)) return true;
|
|
116732
|
+
if (path50.startsWith("rules/")) return isSettingsPath(path50);
|
|
116733
|
+
if (path50.startsWith("assets/")) return path50.endsWith(".json");
|
|
116734
|
+
return ROOTS.some((root2) => path50.startsWith(root2)) && path50.endsWith(".md");
|
|
116722
116735
|
}
|
|
116723
116736
|
var CARD = /^(?:todo|\.archive)\/(?:[^/]+\/)*(\d+)-[^/]*\.md$/;
|
|
116724
116737
|
var ROOT = /^(?:todo|\.archive)\/(?:[^/]+\/)*(\d+)-[^/]+\/root\.md$/;
|
|
116725
|
-
function numberOfCard(
|
|
116726
|
-
const n = ROOT.exec(
|
|
116738
|
+
function numberOfCard(path50) {
|
|
116739
|
+
const n = ROOT.exec(path50)?.[1] ?? CARD.exec(path50)?.[1];
|
|
116727
116740
|
return n ? Number(n) : null;
|
|
116728
116741
|
}
|
|
116729
116742
|
var cardSlug = (task) => task.toLowerCase().replace(/_/g, "-");
|
|
@@ -116754,7 +116767,7 @@ function cardFront(body) {
|
|
|
116754
116767
|
}
|
|
116755
116768
|
|
|
116756
116769
|
// ../artifact-sdk/src/builtin/compare.json
|
|
116757
|
-
var compare_default = '{\n "name": "compare",\n "title": { "en": "Compare", "zh": "\u5BF9\u6BD4" },\n "types": ["compare"],\n "schema": {\n "type": "object",\n "required": ["a", "b"],\n "properties": { "a": { "type": "string" }, "b": { "type": "string" } }\n },\n "references": [\n { "json": "/a", "types": ["storyboard", "compare"] },\n { "json": "/b", "types": ["storyboard", "compare"] },\n { "json": "/shots", "types": ["storyboard", "compare"] }\n ]\n}\n';
|
|
116770
|
+
var compare_default = '{\n "name": "compare",\n "title": { "en": "Compare", "zh": "\u5BF9\u6BD4" },\n "types": ["compare"],\n "schema": {\n "type": "object",\n "required": ["a", "b"],\n "properties": { "a": { "type": "string" }, "b": { "type": "string" } }\n },\n "references": [\n { "json": "/a", "types": ["storyboard", "compare", "spritesheet", "workflow"] },\n { "json": "/b", "types": ["storyboard", "compare", "spritesheet", "workflow"] },\n { "json": "/shots", "types": ["storyboard", "compare", "spritesheet", "workflow"] }\n ]\n}\n';
|
|
116758
116771
|
|
|
116759
116772
|
// ../artifact-sdk/src/builtin/html.json
|
|
116760
116773
|
var html_default = `{
|
|
@@ -116790,7 +116803,7 @@ var markdown_default = `{
|
|
|
116790
116803
|
var spritesheet_default = '{\n "name": "spritesheet",\n "title": { "en": "Sprite animation", "zh": "\u7CBE\u7075\u52A8\u753B" },\n "types": ["spritesheet"],\n "schema": {\n "type": "object",\n "required": ["frames", "meta"],\n "properties": {\n "frames": {\n "anyOf": [\n { "type": "array", "minItems": 1, "items": { "type": "object", "required": ["frame"] } },\n { "type": "object", "additionalProperties": { "type": "object", "required": ["frame"] } }\n ]\n },\n "meta": {\n "type": "object",\n "required": ["app", "image"],\n "properties": { "app": { "type": "string", "pattern": "codeandweb\\\\.com/texturepacker" }, "image": { "type": "string" } }\n }\n }\n },\n "references": [{ "json": "/meta/image" }]\n}\n';
|
|
116791
116804
|
|
|
116792
116805
|
// ../artifact-sdk/src/builtin/storyboard.json
|
|
116793
|
-
var storyboard_default = '{\n "name": "storyboard",\n "title": { "en": "Storyboard", "zh": "\u5206\u955C" },\n "types": ["storyboard"],\n "schema": {\n "type": "object",\n "anyOf": [{ "required": ["shots"] }, { "required": ["slides"] }],\n "properties": {\n "shots": {\n "type": "array",\n "items": {\n "type": "object",\n "properties": { "frames": { "type": "array", "items": { "type": "object", "properties": { "src": { "type": "string" } } } } }\n }\n },\n "slides": {\n "type": "array",\n "items": {\n "type": "object",\n "properties": {\n "preview": { "type": "object", "properties": { "src": { "type": "string" } } },\n "assets": { "type": "array", "items": { "type": "string" } }\n }\n }\n }\n }\n },\n "references": [\n { "json": "/shots/*/frames/*/src" },\n { "json": "/slides/*/preview/src" },\n { "json": "/slides/*/assets/*" }\n ]\n}\n';
|
|
116806
|
+
var storyboard_default = '{\n "name": "storyboard",\n "title": { "en": "Storyboard", "zh": "\u5206\u955C" },\n "types": ["storyboard"],\n "schema": {\n "type": "object",\n "anyOf": [{ "required": ["shots"] }, { "required": ["slides"] }],\n "properties": {\n "shots": {\n "type": "array",\n "items": {\n "type": "object",\n "properties": { "frames": { "type": "array", "items": { "type": "object", "properties": { "src": { "type": "string" } } } } }\n }\n },\n "slides": {\n "type": "array",\n "items": {\n "type": "object",\n "properties": {\n "preview": { "type": "object", "properties": { "src": { "type": "string" } } },\n "assets": { "type": "array", "items": { "type": "string" } }\n }\n }\n }\n }\n },\n "references": [\n { "json": "/shots/*/frames/*/src", "types": ["storyboard", "compare", "spritesheet", "workflow"] },\n { "json": "/slides/*/preview/src", "types": ["storyboard", "compare", "spritesheet", "workflow"] },\n { "json": "/slides/*/assets/*" }\n ]\n}\n';
|
|
116794
116807
|
|
|
116795
116808
|
// ../artifact-sdk/src/builtin/tiled.json
|
|
116796
116809
|
var tiled_default = `{
|
|
@@ -116932,7 +116945,7 @@ function referencesOf(manifest, content) {
|
|
|
116932
116945
|
// ../artifact-sdk/src/internal/references.ts
|
|
116933
116946
|
var STORYBOARD = ["storyboard"];
|
|
116934
116947
|
var WORKFLOW = ["workflow"];
|
|
116935
|
-
var
|
|
116948
|
+
var ARRANGED = ["storyboard", "compare", "spritesheet", "workflow"];
|
|
116936
116949
|
var ASSET = ["spritesheet", "asset"];
|
|
116937
116950
|
var isObject2 = (v) => !!v && typeof v === "object" && !Array.isArray(v);
|
|
116938
116951
|
function bodyReferences(body) {
|
|
@@ -116968,7 +116981,7 @@ function bodyReferences(body) {
|
|
|
116968
116981
|
for (const p2 of m[2].matchAll(/([\w-]+)\s*=\s*(?:"([^"]*)"|'([^']*)')/g)) a2[p2[1]] = p2[2] ?? p2[3];
|
|
116969
116982
|
if (m[1] === "Compare") {
|
|
116970
116983
|
if (!a2.a || !a2.b) continue;
|
|
116971
|
-
for (const k2 of ["a", "b", "shots"]) if (a2[k2]) out.push({ src: a2[k2], types:
|
|
116984
|
+
for (const k2 of ["a", "b", "shots"]) if (a2[k2]) out.push({ src: a2[k2], types: ARRANGED });
|
|
116972
116985
|
} else if (a2.src) {
|
|
116973
116986
|
out.push({ src: a2.src, types: m[1] === "Storyboard" ? STORYBOARD : m[1] === "Workflow" ? WORKFLOW : m[1] === "Asset" ? ASSET : [] });
|
|
116974
116987
|
if (a2.variants) {
|
|
@@ -117036,14 +117049,14 @@ function collect(body, card, host) {
|
|
|
117036
117049
|
const active = /* @__PURE__ */ new Set();
|
|
117037
117050
|
const out = [];
|
|
117038
117051
|
const visit = (src, types, owner) => {
|
|
117039
|
-
const
|
|
117052
|
+
const path50 = src.replace(/[?#].*$/, "");
|
|
117040
117053
|
let resolved2;
|
|
117041
117054
|
try {
|
|
117042
|
-
resolved2 = host.resolve(
|
|
117055
|
+
resolved2 = host.resolve(path50, owner);
|
|
117043
117056
|
} catch (error) {
|
|
117044
117057
|
if (owner !== card) return { key: null, error: why(error) };
|
|
117045
117058
|
if (!nodes.has(src)) {
|
|
117046
|
-
const node2 = { key: src, file: null, kind: kindAt(
|
|
117059
|
+
const node2 = { key: src, file: null, kind: kindAt(path50, types), error: why(error), problems: [], dependencies: /* @__PURE__ */ new Map(), aliases: /* @__PURE__ */ new Set([src]) };
|
|
117047
117060
|
nodes.set(src, node2);
|
|
117048
117061
|
out.push(node2);
|
|
117049
117062
|
}
|
|
@@ -117113,10 +117126,9 @@ function collect(body, card, host) {
|
|
|
117113
117126
|
}
|
|
117114
117127
|
|
|
117115
117128
|
// src/task-folder.ts
|
|
117116
|
-
import { spawnSync as spawnSync3 } from "node:child_process";
|
|
117117
117129
|
import crypto5 from "node:crypto";
|
|
117118
|
-
import
|
|
117119
|
-
import
|
|
117130
|
+
import fs33 from "node:fs";
|
|
117131
|
+
import path37 from "node:path";
|
|
117120
117132
|
|
|
117121
117133
|
// node_modules/node-diff3/dist/diff3.mjs
|
|
117122
117134
|
function LCS(buffer1, buffer2) {
|
|
@@ -117355,8 +117367,8 @@ function unquote2(v) {
|
|
|
117355
117367
|
|
|
117356
117368
|
// ../cli/src/lib/shared/triage-files.ts
|
|
117357
117369
|
var ITEM = /^triage\/(?:(dismissed|archived)\/)?([^/]+)\.md$/;
|
|
117358
|
-
function itemAt(
|
|
117359
|
-
const m = ITEM.exec(
|
|
117370
|
+
function itemAt(path50) {
|
|
117371
|
+
const m = ITEM.exec(path50);
|
|
117360
117372
|
if (!m) return null;
|
|
117361
117373
|
return { state: m[1] === "dismissed" ? "dismissed" : m[1] === "archived" ? "carded" : "open", name: m[2] };
|
|
117362
117374
|
}
|
|
@@ -117373,13 +117385,13 @@ function stampItem(content, fields) {
|
|
|
117373
117385
|
}
|
|
117374
117386
|
|
|
117375
117387
|
// ../cli/src/lib/agent/cloud-workflows.ts
|
|
117376
|
-
import
|
|
117377
|
-
import
|
|
117388
|
+
import fs24 from "node:fs";
|
|
117389
|
+
import path28 from "node:path";
|
|
117378
117390
|
|
|
117379
117391
|
// ../official/pack.ts
|
|
117380
117392
|
import crypto4 from "node:crypto";
|
|
117381
|
-
import
|
|
117382
|
-
import
|
|
117393
|
+
import fs21 from "node:fs";
|
|
117394
|
+
import path25 from "node:path";
|
|
117383
117395
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
117384
117396
|
|
|
117385
117397
|
// ../cli/src/lib/agents/icon.ts
|
|
@@ -117767,11 +117779,17 @@ function parseWorkflowFile(id, source, from) {
|
|
|
117767
117779
|
};
|
|
117768
117780
|
}
|
|
117769
117781
|
|
|
117782
|
+
// ../cli/src/lib/agent/workflow-folder.ts
|
|
117783
|
+
import fs20 from "node:fs";
|
|
117784
|
+
import path24 from "node:path";
|
|
117785
|
+
|
|
117770
117786
|
// ../cli/src/lib/shared/workflow-files.ts
|
|
117771
117787
|
var WORKFLOW_FILE = "WORKFLOW.md";
|
|
117772
117788
|
var MCP_FILE = "mcp.json";
|
|
117773
117789
|
var KB = 1024;
|
|
117774
|
-
var FILE_LIMITS = { file:
|
|
117790
|
+
var FILE_LIMITS = { file: 2 * KB * KB, total: 2 * KB * KB, count: 500, path: 512 };
|
|
117791
|
+
var officialId = (folder) => `wf_builtin_${folder.replace(/-/g, "_")}`;
|
|
117792
|
+
var hashInput = (files) => JSON.stringify(Object.entries(files).sort(([a2], [b2]) => a2 < b2 ? -1 : 1));
|
|
117775
117793
|
var landsOf = (def) => ({ lands: def.land.some((h3) => !h3.off) });
|
|
117776
117794
|
var SEGMENT = /^[\w.-]+$/;
|
|
117777
117795
|
var isAboutFile = (file2) => /^ABOUT(\.[a-z]{2})?\.md$/.test(file2) || /^screenshots\/[\w.-]+\.(png|jpe?g|webp)$/.test(file2);
|
|
@@ -117861,35 +117879,40 @@ function checkWorkflowFiles(value, official = false) {
|
|
|
117861
117879
|
return { ok: true, def, files: value };
|
|
117862
117880
|
}
|
|
117863
117881
|
|
|
117864
|
-
// ../
|
|
117865
|
-
var OFFICIAL = path24.dirname(fileURLToPath2(import.meta.url));
|
|
117882
|
+
// ../cli/src/lib/agent/workflow-folder.ts
|
|
117866
117883
|
var MIME = { ".png": "image/png", ".jpg": "image/jpeg", ".jpeg": "image/jpeg", ".webp": "image/webp" };
|
|
117867
|
-
var dirs = (dir) => fs20.readdirSync(dir, { withFileTypes: true }).filter((e2) => e2.isDirectory()).map((e2) => e2.name).sort();
|
|
117868
117884
|
function filesOf(dir, base = dir) {
|
|
117869
|
-
return fs20.readdirSync(dir, { withFileTypes: true }).flatMap((e2) => {
|
|
117885
|
+
return fs20.readdirSync(dir, { withFileTypes: true }).filter((e2) => !e2.name.startsWith(".")).flatMap((e2) => {
|
|
117870
117886
|
const full = path24.join(dir, e2.name);
|
|
117871
117887
|
return e2.isDirectory() ? filesOf(full, base) : [path24.relative(base, full).split(path24.sep).join("/")];
|
|
117872
117888
|
});
|
|
117873
117889
|
}
|
|
117874
|
-
|
|
117875
|
-
|
|
117890
|
+
function readWorkflowFile(dir, file2) {
|
|
117891
|
+
const full = path24.join(dir, file2);
|
|
117892
|
+
return isAboutFile(file2) && !file2.endsWith(".md") ? `data:${MIME[path24.extname(file2)]};base64,${fs20.readFileSync(full).toString("base64")}` : fs20.readFileSync(full, "utf8");
|
|
117893
|
+
}
|
|
117894
|
+
var readWorkflowFolder = (dir) => Object.fromEntries(filesOf(dir).sort().map((f2) => [f2, readWorkflowFile(dir, f2)]));
|
|
117895
|
+
|
|
117896
|
+
// ../official/pack.ts
|
|
117897
|
+
var OFFICIAL = path25.dirname(fileURLToPath2(import.meta.url));
|
|
117898
|
+
var dirs = (dir) => fs21.readdirSync(dir, { withFileTypes: true }).filter((e2) => e2.isDirectory()).map((e2) => e2.name).sort();
|
|
117899
|
+
var hashOf = (files) => crypto4.createHash("sha256").update(hashInput(files)).digest("hex");
|
|
117876
117900
|
function packOfficial(root2 = OFFICIAL, loose = false) {
|
|
117877
|
-
const agentsDir =
|
|
117901
|
+
const agentsDir = path25.join(root2, "agents");
|
|
117878
117902
|
const agentFiles = Object.fromEntries(dirs(agentsDir).map((name) => {
|
|
117879
|
-
const dir =
|
|
117880
|
-
return [name,
|
|
117903
|
+
const dir = path25.join(agentsDir, name);
|
|
117904
|
+
return [name, readWorkflowFolder(dir)];
|
|
117881
117905
|
}));
|
|
117882
117906
|
for (const [name, own] of Object.entries(loose ? {} : agentFiles)) {
|
|
117883
117907
|
const read3 = parseSpecAgent(own["AGENT.md"] ?? "", `official/agents/${name}/AGENT.md`, (p2) => own[p2] ?? null, true);
|
|
117884
117908
|
if ("problem" in read3) throw new Error(read3.problem);
|
|
117885
117909
|
}
|
|
117886
|
-
const workflowsDir =
|
|
117910
|
+
const workflowsDir = path25.join(root2, "workflows");
|
|
117887
117911
|
return dirs(workflowsDir).map((folder) => {
|
|
117888
|
-
const dir =
|
|
117912
|
+
const dir = path25.join(workflowsDir, folder);
|
|
117889
117913
|
const files = {};
|
|
117890
117914
|
for (const f2 of filesOf(dir).sort()) {
|
|
117891
|
-
if (f2 === WORKFLOW_FILE || f2 === MCP_FILE || f2.startsWith("skills/") ||
|
|
117892
|
-
else if (isAboutFile(f2)) files[f2] = `data:${MIME[path24.extname(f2)]};base64,${fs20.readFileSync(path24.join(dir, f2)).toString("base64")}`;
|
|
117915
|
+
if (f2 === WORKFLOW_FILE || f2 === MCP_FILE || f2.startsWith("skills/") || isAboutFile(f2)) files[f2] = readWorkflowFile(dir, f2);
|
|
117893
117916
|
}
|
|
117894
117917
|
const read3 = checkWorkflowFiles({ [WORKFLOW_FILE]: files[WORKFLOW_FILE], ...Object.fromEntries(
|
|
117895
117918
|
Object.entries(agentFiles).flatMap(([name, own]) => Object.entries(own).map(([f2, t2]) => [`agents/${name}/${f2}`, t2]))
|
|
@@ -117918,23 +117941,23 @@ function packOfficial(root2 = OFFICIAL, loose = false) {
|
|
|
117918
117941
|
}
|
|
117919
117942
|
|
|
117920
117943
|
// ../cli/src/lib/cloud/tasks.ts
|
|
117921
|
-
import
|
|
117922
|
-
import
|
|
117944
|
+
import fs22 from "node:fs";
|
|
117945
|
+
import path26 from "node:path";
|
|
117923
117946
|
var TASK_ENV = "AI4KANBAN_TASK";
|
|
117924
117947
|
function workspaceTask() {
|
|
117925
117948
|
const id = process.env[TASK_ENV];
|
|
117926
117949
|
return id && id.trim() ? id.trim() : null;
|
|
117927
117950
|
}
|
|
117928
117951
|
function runnerProject(board) {
|
|
117929
|
-
if (
|
|
117930
|
-
const linked = linkedProject(board,
|
|
117952
|
+
if (path26.basename(board) !== "kanban" || path26.basename(path26.dirname(board)) !== ".akb") return null;
|
|
117953
|
+
const linked = linkedProject(board, path26.dirname(path26.dirname(board)));
|
|
117931
117954
|
return linked.ok ? linked.value : null;
|
|
117932
117955
|
}
|
|
117933
117956
|
function linkedProject(board, root2) {
|
|
117934
|
-
const file2 =
|
|
117935
|
-
if (!
|
|
117957
|
+
const file2 = path26.join(root2, ".akb", "base.json");
|
|
117958
|
+
if (!fs22.existsSync(file2)) return { ok: true, value: null };
|
|
117936
117959
|
try {
|
|
117937
|
-
const base = JSON.parse(
|
|
117960
|
+
const base = JSON.parse(fs22.readFileSync(file2, "utf8"));
|
|
117938
117961
|
if (!base || typeof base !== "object" || base.project !== void 0 && (typeof base.project !== "string" || !base.project.trim()) || base.files !== void 0 && (!base.files || typeof base.files !== "object" || Array.isArray(base.files))) throw new Error();
|
|
117939
117962
|
const projects = new Set(Object.keys(base.files ?? {}).flatMap((p2) => /^projects\/([^/]+)\//.exec(p2)?.[1] ?? []));
|
|
117940
117963
|
if (typeof base.project === "string") projects.add(base.project);
|
|
@@ -117946,14 +117969,14 @@ function linkedProject(board, root2) {
|
|
|
117946
117969
|
}
|
|
117947
117970
|
|
|
117948
117971
|
// ../cli/src/lib/file-memo.ts
|
|
117949
|
-
import
|
|
117950
|
-
import
|
|
117972
|
+
import fs23 from "node:fs";
|
|
117973
|
+
import path27 from "node:path";
|
|
117951
117974
|
function stamp(paths) {
|
|
117952
117975
|
const parts = [];
|
|
117953
117976
|
const visit = (p2) => {
|
|
117954
117977
|
let st2;
|
|
117955
117978
|
try {
|
|
117956
|
-
st2 =
|
|
117979
|
+
st2 = fs23.statSync(p2, { bigint: true });
|
|
117957
117980
|
} catch {
|
|
117958
117981
|
parts.push(`${p2}:-`);
|
|
117959
117982
|
return;
|
|
@@ -117965,11 +117988,11 @@ function stamp(paths) {
|
|
|
117965
117988
|
parts.push(`${p2}/`);
|
|
117966
117989
|
let names2;
|
|
117967
117990
|
try {
|
|
117968
|
-
names2 =
|
|
117991
|
+
names2 = fs23.readdirSync(p2).sort();
|
|
117969
117992
|
} catch {
|
|
117970
117993
|
return;
|
|
117971
117994
|
}
|
|
117972
|
-
for (const name of names2) if (name !== "node_modules" && name !== ".git") visit(
|
|
117995
|
+
for (const name of names2) if (name !== "node_modules" && name !== ".git") visit(path27.join(p2, name));
|
|
117973
117996
|
};
|
|
117974
117997
|
for (const p2 of paths) visit(p2);
|
|
117975
117998
|
return parts.join("\n");
|
|
@@ -118015,29 +118038,29 @@ function memoByFiles(paths, read3) {
|
|
|
118015
118038
|
|
|
118016
118039
|
// ../cli/src/lib/agent/cloud-workflows.ts
|
|
118017
118040
|
var DEV = "AI4KANBAN_WORKFLOWS";
|
|
118018
|
-
var root = () =>
|
|
118041
|
+
var root = () => path28.join(machineHome(), "workflows");
|
|
118019
118042
|
var safe = (name) => name.replace(/[^\w.@-]/g, "_");
|
|
118020
|
-
var versionFile = (id, version) =>
|
|
118021
|
-
var listFile = (project) =>
|
|
118022
|
-
var pinFile = (task) =>
|
|
118043
|
+
var versionFile = (id, version) => path28.join(root(), "versions", `${safe(id)}@${version}.json`);
|
|
118044
|
+
var listFile = (project) => path28.join(root(), "lists", `${safe(project)}.json`);
|
|
118045
|
+
var pinFile = (task) => path28.join(root(), "tasks", `${safe(task)}.json`);
|
|
118023
118046
|
function readJson(file2) {
|
|
118024
118047
|
try {
|
|
118025
|
-
return JSON.parse(
|
|
118048
|
+
return JSON.parse(fs24.readFileSync(file2, "utf8"));
|
|
118026
118049
|
} catch {
|
|
118027
118050
|
return null;
|
|
118028
118051
|
}
|
|
118029
118052
|
}
|
|
118030
118053
|
function writeJson(file2, value) {
|
|
118031
|
-
|
|
118054
|
+
fs24.mkdirSync(path28.dirname(file2), { recursive: true });
|
|
118032
118055
|
const tmp = `${file2}.${process.pid}.tmp`;
|
|
118033
|
-
|
|
118056
|
+
fs24.writeFileSync(tmp, `${JSON.stringify(value)}
|
|
118034
118057
|
`);
|
|
118035
|
-
|
|
118058
|
+
fs24.renameSync(tmp, file2);
|
|
118036
118059
|
}
|
|
118037
118060
|
var readVersion2 = (id, version) => readJson(versionFile(id, version));
|
|
118038
118061
|
function saveVersion(held4) {
|
|
118039
118062
|
const file2 = versionFile(held4.id, held4.version);
|
|
118040
|
-
if (!
|
|
118063
|
+
if (!fs24.existsSync(file2)) writeJson(file2, { id: held4.id, version: held4.version, name: held4.name, names: held4.names, files: held4.files });
|
|
118041
118064
|
}
|
|
118042
118065
|
function savePin(task, held4) {
|
|
118043
118066
|
saveVersion(held4);
|
|
@@ -118114,8 +118137,8 @@ function executionOf(value = process.env.AI4KANBAN_EXECUTION) {
|
|
|
118114
118137
|
}
|
|
118115
118138
|
|
|
118116
118139
|
// ../cli/src/lib/agent/store.ts
|
|
118117
|
-
import
|
|
118118
|
-
import
|
|
118140
|
+
import fs25 from "node:fs";
|
|
118141
|
+
import path29 from "node:path";
|
|
118119
118142
|
|
|
118120
118143
|
// ../cli/src/lib/agent/log.ts
|
|
118121
118144
|
var STRAY_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -118141,9 +118164,9 @@ function asContext(v) {
|
|
|
118141
118164
|
}
|
|
118142
118165
|
|
|
118143
118166
|
// ../cli/src/lib/agent/store.ts
|
|
118144
|
-
var logPathOf = (sessionId) =>
|
|
118167
|
+
var logPathOf = (sessionId) => path29.join(SESSIONS_DIR, `${sessionId}.log`);
|
|
118145
118168
|
function logPathIn(held4, sessionId) {
|
|
118146
|
-
return typeof held4 === "string" && held4.startsWith(SESSIONS_DIR +
|
|
118169
|
+
return typeof held4 === "string" && held4.startsWith(SESSIONS_DIR + path29.sep) ? held4 : logPathOf(sessionId);
|
|
118147
118170
|
}
|
|
118148
118171
|
var WAS_CLARIFY = /* @__PURE__ */ new Set(["auto-refine", "refine", "raise-questions"]);
|
|
118149
118172
|
var RETIRED_ACTIONS = /* @__PURE__ */ new Set([
|
|
@@ -118168,7 +118191,7 @@ var readStore = memoByFiles(() => [SESSIONS], parseStore);
|
|
|
118168
118191
|
function parseStore() {
|
|
118169
118192
|
let data;
|
|
118170
118193
|
try {
|
|
118171
|
-
data = JSON.parse(
|
|
118194
|
+
data = JSON.parse(fs25.readFileSync(SESSIONS, "utf8"));
|
|
118172
118195
|
} catch {
|
|
118173
118196
|
return { runs: [], deliveries: [], marks: {} };
|
|
118174
118197
|
}
|
|
@@ -118617,8 +118640,8 @@ var FLOWS = [
|
|
|
118617
118640
|
];
|
|
118618
118641
|
|
|
118619
118642
|
// ../cli/src/lib/agents/catalog.ts
|
|
118620
|
-
import
|
|
118621
|
-
import
|
|
118643
|
+
import fs26 from "node:fs";
|
|
118644
|
+
import path30 from "node:path";
|
|
118622
118645
|
|
|
118623
118646
|
// ../cli/src/lib/agents/bundled.ts
|
|
118624
118647
|
var shippedAgentFiles = () => cloudAgentFiles().files;
|
|
@@ -118675,7 +118698,7 @@ function readCatalog() {
|
|
|
118675
118698
|
}
|
|
118676
118699
|
for (const folder of projectFolders(LEGACY_AGENTS)) {
|
|
118677
118700
|
take(readProject2(LEGACY_AGENTS, folder), folder);
|
|
118678
|
-
problems.push(`${rel(
|
|
118701
|
+
problems.push(`${rel(path30.join(LEGACY_AGENTS, folder))}: move it to ${rel(path30.join(AGENTS, folder))}/`);
|
|
118679
118702
|
}
|
|
118680
118703
|
return { agents, problems, refused };
|
|
118681
118704
|
}
|
|
@@ -118740,7 +118763,7 @@ function readBundled(folder) {
|
|
|
118740
118763
|
function projectFolders(root2) {
|
|
118741
118764
|
let entries;
|
|
118742
118765
|
try {
|
|
118743
|
-
entries =
|
|
118766
|
+
entries = fs26.readdirSync(root2, { withFileTypes: true });
|
|
118744
118767
|
} catch {
|
|
118745
118768
|
return [];
|
|
118746
118769
|
}
|
|
@@ -118751,10 +118774,10 @@ var LEGACY_AGENT_FILE = "SKILL.md";
|
|
|
118751
118774
|
var AGENT_FILES = [AGENT_FILE, LEGACY_AGENT_FILE];
|
|
118752
118775
|
function agentFileReader(dir) {
|
|
118753
118776
|
return (relative) => {
|
|
118754
|
-
const target =
|
|
118755
|
-
if (target !== dir && !target.startsWith(dir +
|
|
118777
|
+
const target = path30.resolve(dir, relative);
|
|
118778
|
+
if (target !== dir && !target.startsWith(dir + path30.sep)) return null;
|
|
118756
118779
|
try {
|
|
118757
|
-
return
|
|
118780
|
+
return fs26.readFileSync(target, "utf8");
|
|
118758
118781
|
} catch {
|
|
118759
118782
|
return null;
|
|
118760
118783
|
}
|
|
@@ -118764,22 +118787,22 @@ var ownFiles = (paths) => paths.filter((p2) => !AGENT_FILES.includes(p2) && !p2.
|
|
|
118764
118787
|
function walkFolder(dir, prefix) {
|
|
118765
118788
|
let entries;
|
|
118766
118789
|
try {
|
|
118767
|
-
entries =
|
|
118790
|
+
entries = fs26.readdirSync(dir, { withFileTypes: true });
|
|
118768
118791
|
} catch {
|
|
118769
118792
|
return [];
|
|
118770
118793
|
}
|
|
118771
118794
|
return entries.flatMap((e2) => {
|
|
118772
118795
|
const here = prefix ? `${prefix}/${e2.name}` : e2.name;
|
|
118773
|
-
return e2.isDirectory() ? walkFolder(
|
|
118796
|
+
return e2.isDirectory() ? walkFolder(path30.join(dir, e2.name), here) : [here];
|
|
118774
118797
|
});
|
|
118775
118798
|
}
|
|
118776
118799
|
function readProject2(root2, folder) {
|
|
118777
|
-
const dir =
|
|
118800
|
+
const dir = path30.join(root2, folder);
|
|
118778
118801
|
const file2 = agentFileReader(dir);
|
|
118779
118802
|
const found = AGENT_FILES.map((name) => ({ name, text: file2(name) })).find((f2) => f2.text !== null);
|
|
118780
|
-
const missing = rel(
|
|
118803
|
+
const missing = rel(path30.join(dir, AGENT_FILE));
|
|
118781
118804
|
if (!found) return { problem: `${missing} is missing`, file: missing, missing: true };
|
|
118782
|
-
const from = rel(
|
|
118805
|
+
const from = rel(path30.join(dir, found.name));
|
|
118783
118806
|
const read3 = parseSpecAgent(found.text, from, file2, false, () => ownFiles(walkFolder(dir, "")));
|
|
118784
118807
|
if ("problem" in read3) return { ...read3, file: from };
|
|
118785
118808
|
if ("agent" in read3) Object.assign(read3.agent, { dir, text: found.text });
|
|
@@ -118981,8 +119004,8 @@ var SEEDED_GOAL_PARAGRAPHS = new Set(
|
|
|
118981
119004
|
);
|
|
118982
119005
|
|
|
118983
119006
|
// ../cli/src/lib/agent/settings.ts
|
|
118984
|
-
import
|
|
118985
|
-
import
|
|
119007
|
+
import fs27 from "node:fs";
|
|
119008
|
+
import path31 from "node:path";
|
|
118986
119009
|
|
|
118987
119010
|
// ../cli/src/lib/agent/types.ts
|
|
118988
119011
|
var NOT_COMPLETED = "The delivery has not recorded completion.";
|
|
@@ -118994,8 +119017,8 @@ function configBlock(value) {
|
|
|
118994
119017
|
}
|
|
118995
119018
|
function readConfigRaw() {
|
|
118996
119019
|
adoptLegacyConfig();
|
|
118997
|
-
if (!
|
|
118998
|
-
return adoptProjectNames(JSON.parse(
|
|
119020
|
+
if (!fs27.existsSync(UI_CONFIG)) return {};
|
|
119021
|
+
return adoptProjectNames(JSON.parse(fs27.readFileSync(UI_CONFIG, "utf8")));
|
|
118999
119022
|
}
|
|
119000
119023
|
function adoptProjectNames(cfg) {
|
|
119001
119024
|
if (!cfg || typeof cfg !== "object") return cfg;
|
|
@@ -119010,12 +119033,12 @@ function adoptProjectNames(cfg) {
|
|
|
119010
119033
|
return cfg;
|
|
119011
119034
|
}
|
|
119012
119035
|
function adoptLegacyConfig() {
|
|
119013
|
-
if (!LEGACY_UI_CONFIG || !
|
|
119014
|
-
if (!
|
|
119015
|
-
|
|
119016
|
-
|
|
119036
|
+
if (!LEGACY_UI_CONFIG || !fs27.existsSync(LEGACY_UI_CONFIG)) return;
|
|
119037
|
+
if (!fs27.existsSync(UI_CONFIG)) {
|
|
119038
|
+
fs27.mkdirSync(path31.dirname(UI_CONFIG), { recursive: true });
|
|
119039
|
+
fs27.copyFileSync(LEGACY_UI_CONFIG, UI_CONFIG);
|
|
119017
119040
|
}
|
|
119018
|
-
|
|
119041
|
+
fs27.rmSync(LEGACY_UI_CONFIG, { force: true });
|
|
119019
119042
|
forgetFileMemos();
|
|
119020
119043
|
}
|
|
119021
119044
|
function safeConfig() {
|
|
@@ -119027,21 +119050,21 @@ function safeConfig() {
|
|
|
119027
119050
|
}
|
|
119028
119051
|
|
|
119029
119052
|
// ../cli/src/lib/agent/workflow-file.ts
|
|
119030
|
-
import
|
|
119031
|
-
import
|
|
119053
|
+
import fs28 from "node:fs";
|
|
119054
|
+
import path32 from "node:path";
|
|
119032
119055
|
var WORKFLOW_FILE2 = "WORKFLOW.md";
|
|
119033
119056
|
var builtinDefs = () => cloudFlows().filter((f2) => f2.builtIn).map((f2) => f2.def);
|
|
119034
|
-
var fileOf = (id) =>
|
|
119057
|
+
var fileOf = (id) => path32.join(WORKFLOWS, id, WORKFLOW_FILE2);
|
|
119035
119058
|
function draftId() {
|
|
119036
119059
|
const task = workspaceTask();
|
|
119037
119060
|
if (!task) return null;
|
|
119038
119061
|
const id = draftFolder(task);
|
|
119039
|
-
return
|
|
119062
|
+
return fs28.existsSync(fileOf(id)) ? id : null;
|
|
119040
119063
|
}
|
|
119041
119064
|
function readFolder(id, problems) {
|
|
119042
119065
|
let source;
|
|
119043
119066
|
try {
|
|
119044
|
-
source =
|
|
119067
|
+
source = fs28.readFileSync(fileOf(id), "utf8");
|
|
119045
119068
|
} catch {
|
|
119046
119069
|
problems.push(`${rel(fileOf(id))} is missing`);
|
|
119047
119070
|
return null;
|
|
@@ -119235,9 +119258,63 @@ function renderError(error) {
|
|
|
119235
119258
|
// src/task-folder.ts
|
|
119236
119259
|
init_dress_page();
|
|
119237
119260
|
|
|
119261
|
+
// src/kanban-skill.ts
|
|
119262
|
+
import { spawnSync as spawnSync3 } from "node:child_process";
|
|
119263
|
+
import fs31 from "node:fs";
|
|
119264
|
+
import path35 from "node:path";
|
|
119265
|
+
|
|
119266
|
+
// ../skill/SKILL.md
|
|
119267
|
+
var SKILL_default = '---\nname: kanban\ndescription: Manage the file-based task board with akb. Use for creating and planning tasks, revising or implementing cards, and managing background runs; also for "what\'s running".\n---\n\n# Kanban board\n\nThe board is worked only through `akb`. Find the command for the job in `akb help` and run\nit; never do its work by hand or from memory.\n\n- **`--print` does it here**: `akb card revise 12 --print "drop the export"` prints the whole\n flow for that card on this board; follow it to its closing steps. Without `--print` the\n same command starts a separate agent.\n- **Keys**: never read or write API keys; the user sets them with `akb agent set apiKey`.\n';
|
|
119268
|
+
|
|
119269
|
+
// src/kanban-skill.ts
|
|
119270
|
+
var SKILL_FOLDERS = [".claude/skills/kanban", ".agents/skills/kanban"];
|
|
119271
|
+
var CONTENT = `${SKILL_default.trimEnd()}
|
|
119272
|
+
|
|
119273
|
+
<!-- ai4kanban managed -->
|
|
119274
|
+
`;
|
|
119275
|
+
var MANAGED = /^<!-- ai4kanban \S+ -->$/m;
|
|
119276
|
+
function prepareKanbanSkill(root2) {
|
|
119277
|
+
for (const folder of SKILL_FOLDERS) {
|
|
119278
|
+
const dir = path35.join(root2, folder);
|
|
119279
|
+
const file2 = path35.join(dir, "SKILL.md");
|
|
119280
|
+
try {
|
|
119281
|
+
let linked = false;
|
|
119282
|
+
let at2 = root2;
|
|
119283
|
+
for (const name of `${folder}/SKILL.md`.split("/")) {
|
|
119284
|
+
at2 = path35.join(at2, name);
|
|
119285
|
+
if (fs31.lstatSync(at2, { throwIfNoEntry: false })?.isSymbolicLink()) linked = true;
|
|
119286
|
+
}
|
|
119287
|
+
const held4 = fs31.existsSync(file2) ? fs31.readFileSync(file2, "utf8") : null;
|
|
119288
|
+
const exists = fs31.lstatSync(dir, { throwIfNoEntry: false }) !== void 0;
|
|
119289
|
+
if (linked || exists && !MANAGED.test(held4 ?? "")) {
|
|
119290
|
+
if (!held4?.trim()) throw new Error("\u7528\u6237\u81EA\u6709\u76EE\u5F55\u6216\u7B26\u53F7\u94FE\u63A5\u4E2D\u7F3A\u5C11\u53EF\u8BFB\u7684 SKILL.md");
|
|
119291
|
+
continue;
|
|
119292
|
+
}
|
|
119293
|
+
if (held4 !== CONTENT) {
|
|
119294
|
+
fs31.mkdirSync(dir, { recursive: true });
|
|
119295
|
+
fs31.writeFileSync(file2, CONTENT);
|
|
119296
|
+
}
|
|
119297
|
+
} catch (e2) {
|
|
119298
|
+
throw new Error(`\u65E0\u6CD5\u51C6\u5907 ${folder}\uFF1A${e2 instanceof Error ? e2.message : String(e2)}`);
|
|
119299
|
+
}
|
|
119300
|
+
}
|
|
119301
|
+
}
|
|
119302
|
+
function keepOutOfGit(dir, folders2 = SKILL_FOLDERS) {
|
|
119303
|
+
const git3 = (...args) => spawnSync3("git", ["-C", dir, ...args], { encoding: "utf8" });
|
|
119304
|
+
const inside = git3("rev-parse", "--git-path", "info/exclude");
|
|
119305
|
+
if (inside.status !== 0) return;
|
|
119306
|
+
const missing = [".akb/", ...folders2.map((f2) => `${f2}/`)].filter((p2) => git3("check-ignore", "-q", p2).status !== 0);
|
|
119307
|
+
if (!missing.length) return;
|
|
119308
|
+
const exclude = path35.resolve(dir, inside.stdout.trim());
|
|
119309
|
+
fs31.mkdirSync(path35.dirname(exclude), { recursive: true });
|
|
119310
|
+
const held4 = fs31.existsSync(exclude) ? fs31.readFileSync(exclude, "utf8") : "";
|
|
119311
|
+
fs31.writeFileSync(exclude, `${held4}${held4 && !held4.endsWith("\n") ? "\n" : ""}${missing.join("\n")}
|
|
119312
|
+
`);
|
|
119313
|
+
}
|
|
119314
|
+
|
|
119238
119315
|
// ../cli/src/lib/agents/shared-memory.ts
|
|
119239
|
-
import
|
|
119240
|
-
import
|
|
119316
|
+
import fs32 from "node:fs";
|
|
119317
|
+
import path36 from "node:path";
|
|
119241
119318
|
function sharedMemory(board) {
|
|
119242
119319
|
const declared = /* @__PURE__ */ new Map();
|
|
119243
119320
|
const take = (folder, text4, builtIn) => {
|
|
@@ -119249,16 +119326,16 @@ function sharedMemory(board) {
|
|
|
119249
119326
|
const at2 = /^([^/]+)\/AGENT\.md$/.exec(key);
|
|
119250
119327
|
if (at2) take(at2[1], text4, officialAgent(at2[1]));
|
|
119251
119328
|
}
|
|
119252
|
-
const root2 =
|
|
119329
|
+
const root2 = path36.join(board, "agents");
|
|
119253
119330
|
let folders2 = [];
|
|
119254
119331
|
try {
|
|
119255
|
-
folders2 =
|
|
119332
|
+
folders2 = fs32.readdirSync(root2, { withFileTypes: true }).filter((e2) => e2.isDirectory() && !e2.name.startsWith(".")).map((e2) => e2.name);
|
|
119256
119333
|
} catch {
|
|
119257
119334
|
}
|
|
119258
119335
|
for (const folder of folders2.sort()) {
|
|
119259
119336
|
let text4 = null;
|
|
119260
119337
|
try {
|
|
119261
|
-
text4 =
|
|
119338
|
+
text4 = fs32.readFileSync(path36.join(root2, folder, "AGENT.md"), "utf8");
|
|
119262
119339
|
} catch {
|
|
119263
119340
|
}
|
|
119264
119341
|
take(folder, text4, false);
|
|
@@ -119283,16 +119360,16 @@ function openTaskFolder(job, projectDir2) {
|
|
|
119283
119360
|
if (!projectDir2) throw new Error(NO_FOLDER);
|
|
119284
119361
|
keepOutOfGit(projectDir2);
|
|
119285
119362
|
markUsed(projectDir2);
|
|
119286
|
-
const board =
|
|
119287
|
-
|
|
119363
|
+
const board = path37.join(projectDir2, ".akb", "kanban");
|
|
119364
|
+
fs33.mkdirSync(board, { recursive: true });
|
|
119288
119365
|
return { task, cloudTask: task, board, cwd: projectDir2, project: job.project, number: job.number ?? null, workflow: job.workflow ?? job.flow?.workflow ?? null };
|
|
119289
119366
|
}
|
|
119290
119367
|
function openAgentFolder(job, projectDir2) {
|
|
119291
119368
|
if (!job.project || !job.agent) throw new Error("This job names no project.");
|
|
119292
119369
|
keepOutOfGit(projectDir2);
|
|
119293
119370
|
markUsed(projectDir2);
|
|
119294
|
-
const board =
|
|
119295
|
-
|
|
119371
|
+
const board = path37.join(projectDir2, ".akb", "kanban");
|
|
119372
|
+
fs33.mkdirSync(board, { recursive: true });
|
|
119296
119373
|
return {
|
|
119297
119374
|
task: `agent-${safe2(job.agent.workflow ? `${job.agent.workflow}-${job.agent.name}` : job.agent.name)}`,
|
|
119298
119375
|
cloudTask: job.agent.tasks?.[0]?.id ?? null,
|
|
@@ -119307,13 +119384,13 @@ function openDiscussionFolder(job, projectDir2) {
|
|
|
119307
119384
|
if (!job.project) throw new Error("This job names no project.");
|
|
119308
119385
|
keepOutOfGit(projectDir2);
|
|
119309
119386
|
markUsed(projectDir2);
|
|
119310
|
-
const board =
|
|
119311
|
-
|
|
119387
|
+
const board = path37.join(projectDir2, ".akb", "kanban");
|
|
119388
|
+
fs33.mkdirSync(board, { recursive: true });
|
|
119312
119389
|
return { task: "discussion", cloudTask: null, board, cwd: projectDir2, project: job.project, number: null, workflow: null };
|
|
119313
119390
|
}
|
|
119314
119391
|
var boardFolder = (ws) => ({ task: "board", cloudTask: null, board: ws.board, cwd: ws.cwd, project: ws.project, number: null, workflow: null });
|
|
119315
119392
|
function keptBoard(cwd) {
|
|
119316
|
-
const board =
|
|
119393
|
+
const board = path37.join(cwd, ".akb", "kanban");
|
|
119317
119394
|
const base = readBase({ cwd });
|
|
119318
119395
|
const project = base.project ?? /^projects\/([^/]+)\//.exec(Object.keys(base.files).find((p2) => p2.startsWith("projects/")) ?? "")?.[1];
|
|
119319
119396
|
return base.head_seq === null || !project ? null : boardFolder({ board, cwd, project });
|
|
@@ -119328,64 +119405,51 @@ function inFolder(dir, work) {
|
|
|
119328
119405
|
return next;
|
|
119329
119406
|
}
|
|
119330
119407
|
var safe2 = (name) => name.replace(/[^\w.-]/g, "_") || "default";
|
|
119331
|
-
var SKILL_FOLDERS = [".claude/skills/kanban", ".agents/skills/kanban"];
|
|
119332
119408
|
var SKILL_ROOTS = [".claude/skills", ".agents/skills"];
|
|
119333
|
-
|
|
119334
|
-
const git3 = (...args) => spawnSync3("git", ["-C", dir, ...args], { encoding: "utf8" });
|
|
119335
|
-
const inside = git3("rev-parse", "--git-path", "info/exclude");
|
|
119336
|
-
if (inside.status !== 0) return;
|
|
119337
|
-
const missing = [".akb/", ...folders2.map((f2) => `${f2}/`)].filter((p2) => git3("check-ignore", "-q", p2).status !== 0);
|
|
119338
|
-
if (!missing.length) return;
|
|
119339
|
-
const exclude = path35.resolve(dir, inside.stdout.trim());
|
|
119340
|
-
fs31.mkdirSync(path35.dirname(exclude), { recursive: true });
|
|
119341
|
-
const held4 = fs31.existsSync(exclude) ? fs31.readFileSync(exclude, "utf8") : "";
|
|
119342
|
-
fs31.writeFileSync(exclude, `${held4}${held4 && !held4.endsWith("\n") ? "\n" : ""}${missing.join("\n")}
|
|
119343
|
-
`);
|
|
119344
|
-
}
|
|
119345
|
-
var cardFile = (ws) => (ws.number ? findCard(ws.board, ws.number) : null) ?? path35.join(ws.board, "todo", `${ws.number ?? 0}-task.md`);
|
|
119409
|
+
var cardFile = (ws) => (ws.number ? findCard(ws.board, ws.number) : null) ?? path37.join(ws.board, "todo", `${ws.number ?? 0}-task.md`);
|
|
119346
119410
|
function findCard(board, number) {
|
|
119347
119411
|
const named2 = new RegExp(`^${number}-`);
|
|
119348
119412
|
const walk = (dir) => {
|
|
119349
119413
|
let entries;
|
|
119350
119414
|
try {
|
|
119351
|
-
entries =
|
|
119415
|
+
entries = fs33.readdirSync(dir, { withFileTypes: true });
|
|
119352
119416
|
} catch {
|
|
119353
119417
|
return null;
|
|
119354
119418
|
}
|
|
119355
119419
|
for (const e2 of entries) {
|
|
119356
119420
|
if (!named2.test(e2.name)) continue;
|
|
119357
|
-
if (e2.isFile() && e2.name.endsWith(".md")) return
|
|
119358
|
-
const root2 =
|
|
119359
|
-
if (e2.isDirectory() &&
|
|
119421
|
+
if (e2.isFile() && e2.name.endsWith(".md")) return path37.join(dir, e2.name);
|
|
119422
|
+
const root2 = path37.join(dir, e2.name, "root.md");
|
|
119423
|
+
if (e2.isDirectory() && fs33.existsSync(root2)) return root2;
|
|
119360
119424
|
}
|
|
119361
119425
|
for (const e2 of entries) if (e2.isDirectory() && !e2.name.startsWith(".")) {
|
|
119362
|
-
const hit = walk(
|
|
119426
|
+
const hit = walk(path37.join(dir, e2.name));
|
|
119363
119427
|
if (hit) return hit;
|
|
119364
119428
|
}
|
|
119365
119429
|
return null;
|
|
119366
119430
|
};
|
|
119367
|
-
return walk(
|
|
119431
|
+
return walk(path37.join(board, "todo")) ?? walk(path37.join(board, ".archive"));
|
|
119368
119432
|
}
|
|
119369
119433
|
function akbCardOf(ws) {
|
|
119370
119434
|
return ws.number && findCard(ws.board, ws.number) ? ws.number : void 0;
|
|
119371
119435
|
}
|
|
119372
|
-
var recordFile = (ws) =>
|
|
119436
|
+
var recordFile = (ws) => path37.join(ws.board, ".sync", `${ws.task}.json`);
|
|
119373
119437
|
function readRecord(ws) {
|
|
119374
119438
|
try {
|
|
119375
|
-
return { ...EMPTY, ...JSON.parse(
|
|
119439
|
+
return { ...EMPTY, ...JSON.parse(fs33.readFileSync(recordFile(ws), "utf8")) };
|
|
119376
119440
|
} catch {
|
|
119377
119441
|
return structuredClone(EMPTY);
|
|
119378
119442
|
}
|
|
119379
119443
|
}
|
|
119380
119444
|
function writeRecord(ws, record) {
|
|
119381
|
-
|
|
119382
|
-
|
|
119445
|
+
fs33.mkdirSync(path37.dirname(recordFile(ws)), { recursive: true });
|
|
119446
|
+
fs33.writeFileSync(recordFile(ws), `${JSON.stringify(record, null, 2)}
|
|
119383
119447
|
`);
|
|
119384
119448
|
}
|
|
119385
|
-
var baseFile = (ws) =>
|
|
119449
|
+
var baseFile = (ws) => path37.join(ws.cwd, ".akb", "base.json");
|
|
119386
119450
|
function readBase(ws) {
|
|
119387
119451
|
try {
|
|
119388
|
-
const base = JSON.parse(
|
|
119452
|
+
const base = JSON.parse(fs33.readFileSync(baseFile(ws), "utf8"));
|
|
119389
119453
|
if (base.layout === "workspace") return base;
|
|
119390
119454
|
} catch {
|
|
119391
119455
|
}
|
|
@@ -119393,25 +119457,25 @@ function readBase(ws) {
|
|
|
119393
119457
|
}
|
|
119394
119458
|
function writeBase(ws, base) {
|
|
119395
119459
|
const file2 = baseFile(ws);
|
|
119396
|
-
|
|
119397
|
-
|
|
119398
|
-
|
|
119460
|
+
fs33.mkdirSync(path37.dirname(file2), { recursive: true });
|
|
119461
|
+
fs33.writeFileSync(`${file2}.tmp`, JSON.stringify(base));
|
|
119462
|
+
fs33.renameSync(`${file2}.tmp`, file2);
|
|
119399
119463
|
}
|
|
119400
119464
|
var hashOf2 = (bytes2) => crypto5.createHash("sha256").update(bytes2).digest("hex");
|
|
119401
119465
|
function hashFile(file2) {
|
|
119402
119466
|
try {
|
|
119403
|
-
return hashOf2(
|
|
119467
|
+
return hashOf2(fs33.readFileSync(file2));
|
|
119404
119468
|
} catch {
|
|
119405
119469
|
return null;
|
|
119406
119470
|
}
|
|
119407
119471
|
}
|
|
119408
119472
|
function write(file2, bytes2) {
|
|
119409
|
-
|
|
119410
|
-
|
|
119473
|
+
fs33.mkdirSync(path37.dirname(file2), { recursive: true });
|
|
119474
|
+
fs33.writeFileSync(file2, bytes2);
|
|
119411
119475
|
}
|
|
119412
119476
|
function readText(file2) {
|
|
119413
119477
|
try {
|
|
119414
|
-
return
|
|
119478
|
+
return fs33.readFileSync(file2, "utf8");
|
|
119415
119479
|
} catch {
|
|
119416
119480
|
return null;
|
|
119417
119481
|
}
|
|
@@ -119419,14 +119483,14 @@ function readText(file2) {
|
|
|
119419
119483
|
function filesUnder(dir, base = dir) {
|
|
119420
119484
|
let entries;
|
|
119421
119485
|
try {
|
|
119422
|
-
entries =
|
|
119486
|
+
entries = fs33.readdirSync(dir, { withFileTypes: true });
|
|
119423
119487
|
} catch {
|
|
119424
119488
|
return [];
|
|
119425
119489
|
}
|
|
119426
119490
|
return entries.flatMap((e2) => {
|
|
119427
|
-
const full =
|
|
119491
|
+
const full = path37.join(dir, e2.name);
|
|
119428
119492
|
if (e2.isDirectory()) return filesUnder(full, base);
|
|
119429
|
-
return e2.isFile() ? [
|
|
119493
|
+
return e2.isFile() ? [path37.relative(base, full).split(path37.sep).join("/")] : [];
|
|
119430
119494
|
});
|
|
119431
119495
|
}
|
|
119432
119496
|
var kept3 = isBoardPath;
|
|
@@ -119449,18 +119513,18 @@ function assetFiles(ws, list) {
|
|
|
119449
119513
|
return null;
|
|
119450
119514
|
}
|
|
119451
119515
|
};
|
|
119452
|
-
return new Set(Object.keys(assetsOf(list)).map(at2).filter((f2) => !!f2).map((f2) =>
|
|
119516
|
+
return new Set(Object.keys(assetsOf(list)).map(at2).filter((f2) => !!f2).map((f2) => path37.relative(ws.board, f2).split(path37.sep).join("/")));
|
|
119453
119517
|
}
|
|
119454
119518
|
var assetsListOf = (ws, base) => base.files[rootOf(ws) + assetsFile(ws.task)]?.content;
|
|
119455
119519
|
var localFiles = (ws, base) => {
|
|
119456
|
-
const assets = /* @__PURE__ */ new Set([...assetFiles(ws, assetsListOf(ws, base)), ...assetFiles(ws, readText(
|
|
119520
|
+
const assets = /* @__PURE__ */ new Set([...assetFiles(ws, assetsListOf(ws, base)), ...assetFiles(ws, readText(path37.join(ws.board, assetsFile(ws.task))))]);
|
|
119457
119521
|
return filesUnder(ws.board).filter((p2) => kept3(p2) && !assets.has(p2));
|
|
119458
119522
|
};
|
|
119459
119523
|
var SKILL_PATH = /^skills\/([a-z0-9]+(?:-[a-z0-9]+)*)\/((?:[\w.-]+\/)*[\w.-]+)$/;
|
|
119460
119524
|
function pullTools(ws, record, files) {
|
|
119461
119525
|
const held4 = record.tools?.skills ?? {};
|
|
119462
119526
|
const ours = new Set(Object.keys(held4).map((name) => name.split("/")[1]));
|
|
119463
|
-
const theirs = (skill) => !ours.has(skill) && SKILL_ROOTS.some((root2) =>
|
|
119527
|
+
const theirs = (skill) => !ours.has(skill) && SKILL_ROOTS.some((root2) => fs33.existsSync(path37.join(ws.cwd, root2, skill)));
|
|
119464
119528
|
const kept4 = Object.keys(files).map((name) => SKILL_PATH.exec(name)?.[1]).filter((skill) => skill && !theirs(skill));
|
|
119465
119529
|
const skills = {};
|
|
119466
119530
|
for (const [name, text4] of Object.entries(files)) {
|
|
@@ -119468,7 +119532,7 @@ function pullTools(ws, record, files) {
|
|
|
119468
119532
|
if (!at2 || at2[1] === "kanban" || !kept4.includes(at2[1]) || at2[2].split("/").includes("..")) continue;
|
|
119469
119533
|
skills[name] = hashOf2(text4);
|
|
119470
119534
|
for (const root2 of SKILL_ROOTS) {
|
|
119471
|
-
const file2 =
|
|
119535
|
+
const file2 = path37.join(ws.cwd, root2, at2[1], at2[2]);
|
|
119472
119536
|
if (held4[name] !== skills[name] || hashFile(file2) !== skills[name]) write(file2, text4);
|
|
119473
119537
|
}
|
|
119474
119538
|
}
|
|
@@ -119477,8 +119541,8 @@ function pullTools(ws, record, files) {
|
|
|
119477
119541
|
const [, skill, rest] = SKILL_PATH.exec(name) ?? [];
|
|
119478
119542
|
if (!skill || !rest) continue;
|
|
119479
119543
|
for (const root2 of SKILL_ROOTS) {
|
|
119480
|
-
|
|
119481
|
-
if (!Object.keys(skills).some((n) => n.startsWith(`skills/${skill}/`)))
|
|
119544
|
+
fs33.rmSync(path37.join(ws.cwd, root2, skill, rest), { force: true });
|
|
119545
|
+
if (!Object.keys(skills).some((n) => n.startsWith(`skills/${skill}/`))) fs33.rmSync(path37.join(ws.cwd, root2, skill), { recursive: true, force: true });
|
|
119482
119546
|
}
|
|
119483
119547
|
}
|
|
119484
119548
|
const names2 = [...new Set(Object.keys(skills).map((name) => name.split("/")[1]))];
|
|
@@ -119515,57 +119579,57 @@ async function pullWorkflow(ws, record) {
|
|
|
119515
119579
|
if (files.ok) pullTools(ws, record, files.value);
|
|
119516
119580
|
}
|
|
119517
119581
|
dropPlacedAgents(ws);
|
|
119518
|
-
for (const name of Object.keys(record.agents ?? {}))
|
|
119582
|
+
for (const name of Object.keys(record.agents ?? {})) fs33.rmSync(path37.join(ws.board, name), { force: true });
|
|
119519
119583
|
record.agents = {};
|
|
119520
119584
|
return { ok: true, value: void 0 };
|
|
119521
119585
|
}
|
|
119522
|
-
var agentsRecord = (ws) =>
|
|
119586
|
+
var agentsRecord = (ws) => path37.join(ws.board, ".sync", "agents.json");
|
|
119523
119587
|
function readPlaced(ws) {
|
|
119524
119588
|
try {
|
|
119525
|
-
return JSON.parse(
|
|
119589
|
+
return JSON.parse(fs33.readFileSync(agentsRecord(ws), "utf8"));
|
|
119526
119590
|
} catch {
|
|
119527
119591
|
return {};
|
|
119528
119592
|
}
|
|
119529
119593
|
}
|
|
119530
119594
|
function dropPlacedAgents(ws) {
|
|
119531
119595
|
const placed = readPlaced(ws);
|
|
119532
|
-
for (const name of Object.keys(placed)) if (hashFile(
|
|
119533
|
-
|
|
119596
|
+
for (const name of Object.keys(placed)) if (hashFile(path37.join(ws.board, name)) === placed[name]) fs33.rmSync(path37.join(ws.board, name), { force: true });
|
|
119597
|
+
fs33.rmSync(agentsRecord(ws), { force: true });
|
|
119534
119598
|
}
|
|
119535
119599
|
function pullDraftAgents(ws, record) {
|
|
119536
119600
|
if (ws.workflow !== BUILDER) return;
|
|
119537
|
-
const root2 =
|
|
119601
|
+
const root2 = path37.join(ws.board, "workflows", draftFolder(ws.task), "agents");
|
|
119538
119602
|
record.agents ??= {};
|
|
119539
119603
|
for (const name of filesUnder(root2)) {
|
|
119540
|
-
const text4 =
|
|
119604
|
+
const text4 = fs33.readFileSync(path37.join(root2, name));
|
|
119541
119605
|
const at2 = `agents/${name}`;
|
|
119542
119606
|
record.agents[at2] = hashOf2(text4);
|
|
119543
|
-
if (hashFile(
|
|
119607
|
+
if (hashFile(path37.join(ws.board, at2)) !== record.agents[at2]) write(path37.join(ws.board, at2), text4);
|
|
119544
119608
|
}
|
|
119545
119609
|
}
|
|
119546
119610
|
function assetPath(ws, name, owner) {
|
|
119547
119611
|
if (/^[a-z][\w+.-]*:/i.test(name) || name.startsWith("#") || name.startsWith("//")) return null;
|
|
119548
|
-
if (
|
|
119612
|
+
if (path37.isAbsolute(name)) throw new Error(`absolute path: ${name}`);
|
|
119549
119613
|
const held4 = /^\.(assets|mockups)\//.exec(name);
|
|
119550
119614
|
const state = stateDir(ws);
|
|
119551
|
-
const root2 = held4 && state ?
|
|
119552
|
-
const file2 = held4 && state ?
|
|
119553
|
-
const roots = [ws.board, ...state ? ["assets", "mockups"].map((folder) =>
|
|
119554
|
-
const inside = (file3, root3) => file3.startsWith(root3 +
|
|
119615
|
+
const root2 = held4 && state ? path37.join(state, held4[1]) : ws.board;
|
|
119616
|
+
const file2 = held4 && state ? path37.resolve(root2, name.slice(held4[0].length)) : path37.resolve(path37.dirname(owner), name);
|
|
119617
|
+
const roots = [ws.board, ...state ? ["assets", "mockups"].map((folder) => path37.join(state, folder, ...ws.number ? [String(ws.number)] : [])) : []];
|
|
119618
|
+
const inside = (file3, root3) => file3.startsWith(root3 + path37.sep);
|
|
119555
119619
|
if (!roots.some((root3) => inside(file2, root3))) throw new Error(`outside the board: ${name}`);
|
|
119556
119620
|
let existing = file2;
|
|
119557
|
-
while (!
|
|
119558
|
-
const real =
|
|
119621
|
+
while (!fs33.existsSync(existing) && path37.dirname(existing) !== existing) existing = path37.dirname(existing);
|
|
119622
|
+
const real = path37.join(fs33.realpathSync(existing), path37.relative(existing, file2));
|
|
119559
119623
|
let stateParent = state;
|
|
119560
|
-
while (stateParent && !
|
|
119561
|
-
const realState = state && stateParent ?
|
|
119562
|
-
const realRoots = [
|
|
119624
|
+
while (stateParent && !fs33.existsSync(stateParent) && path37.dirname(stateParent) !== stateParent) stateParent = path37.dirname(stateParent);
|
|
119625
|
+
const realState = state && stateParent ? path37.resolve(fs33.realpathSync(stateParent), path37.relative(stateParent, state)) : null;
|
|
119626
|
+
const realRoots = [fs33.realpathSync(ws.board), ...realState ? ["assets", "mockups"].map((folder) => path37.join(realState, folder, ...ws.number ? [String(ws.number)] : [])) : []];
|
|
119563
119627
|
if (!realRoots.some((root3) => real === root3 || inside(real, root3))) throw new Error(`link outside the board: ${name}`);
|
|
119564
119628
|
return file2;
|
|
119565
119629
|
}
|
|
119566
119630
|
function cardAssetsDir(ws, id) {
|
|
119567
119631
|
const state = stateDir(ws);
|
|
119568
|
-
return state &&
|
|
119632
|
+
return state && path37.join(state, "assets", String(id));
|
|
119569
119633
|
}
|
|
119570
119634
|
function stateDir(ws) {
|
|
119571
119635
|
try {
|
|
@@ -119607,13 +119671,13 @@ var pullChanges = (ws) => inFolder(ws.cwd, async () => {
|
|
|
119607
119671
|
const p2 = f2.path.startsWith(root2) ? f2.path.slice(root2.length) : f2.path;
|
|
119608
119672
|
const isShared = p2.startsWith(MEMORY2) && shared(p2.slice(MEMORY2.length));
|
|
119609
119673
|
if (kept3(p2) && isShared === !f2.path.startsWith(root2)) {
|
|
119610
|
-
const file2 =
|
|
119674
|
+
const file2 = path37.join(ws.board, p2);
|
|
119611
119675
|
const here = readText(file2);
|
|
119612
119676
|
if (here !== f2.content && here !== (base.files[f2.path]?.content ?? null)) {
|
|
119613
119677
|
skipped = true;
|
|
119614
119678
|
continue;
|
|
119615
119679
|
}
|
|
119616
|
-
if (f2.content === null)
|
|
119680
|
+
if (f2.content === null) fs33.rmSync(file2, { force: true });
|
|
119617
119681
|
else if (here !== f2.content) write(file2, f2.content);
|
|
119618
119682
|
}
|
|
119619
119683
|
if (f2.content === null) delete base.files[f2.path];
|
|
@@ -119627,7 +119691,7 @@ var pullChanges = (ws) => inFolder(ws.cwd, async () => {
|
|
|
119627
119691
|
async function readCloud(ws) {
|
|
119628
119692
|
const base = readBase(ws);
|
|
119629
119693
|
const known2 = new Set(Object.keys(base.files));
|
|
119630
|
-
const keepDraft = new Set((base.deferred ?? []).filter((p2) => readText(
|
|
119694
|
+
const keepDraft = new Set((base.deferred ?? []).filter((p2) => readText(path37.join(ws.board, p2)) !== (base.files[rootOf(ws) + p2]?.content ?? null)));
|
|
119631
119695
|
if (base.workspace === void 0) {
|
|
119632
119696
|
const project = await readProject(ws.project);
|
|
119633
119697
|
if (!project.ok) return project;
|
|
@@ -119645,13 +119709,13 @@ async function readCloud(ws) {
|
|
|
119645
119709
|
writeBase(ws, base);
|
|
119646
119710
|
const reset = (view2) => {
|
|
119647
119711
|
for (const [p2, content] of view2) {
|
|
119648
|
-
const file2 =
|
|
119712
|
+
const file2 = path37.join(ws.board, p2);
|
|
119649
119713
|
if (!keepDraft.has(p2) && kept3(p2) && readText(file2) !== content) write(file2, content);
|
|
119650
119714
|
}
|
|
119651
119715
|
};
|
|
119652
119716
|
const view = viewOf(ws, base, sharedMemory(ws.board));
|
|
119653
119717
|
const first = (p2) => isSettingsPath(p2) && !known2.has(rootOf(ws) + p2);
|
|
119654
|
-
for (const p2 of localFiles(ws, base)) if (!keepDraft.has(p2) && !view.has(p2) && !first(p2))
|
|
119718
|
+
for (const p2 of localFiles(ws, base)) if (!keepDraft.has(p2) && !view.has(p2) && !first(p2)) fs33.rmSync(path37.join(ws.board, p2), { force: true });
|
|
119655
119719
|
reset(view);
|
|
119656
119720
|
const record = readRecord(ws);
|
|
119657
119721
|
const workflow = await pullWorkflow(ws, record);
|
|
@@ -119665,18 +119729,18 @@ async function readCloud(ws) {
|
|
|
119665
119729
|
return { ok: true, value: void 0 };
|
|
119666
119730
|
}
|
|
119667
119731
|
function writeIndex(board) {
|
|
119668
|
-
const todo =
|
|
119732
|
+
const todo = path37.join(board, "todo");
|
|
119669
119733
|
const cards = [];
|
|
119670
119734
|
let entries = [];
|
|
119671
119735
|
try {
|
|
119672
|
-
entries =
|
|
119736
|
+
entries = fs33.readdirSync(todo, { withFileTypes: true });
|
|
119673
119737
|
} catch {
|
|
119674
119738
|
}
|
|
119675
119739
|
for (const e2 of entries) {
|
|
119676
119740
|
const id = /^(\d+)-/.exec(e2.name)?.[1];
|
|
119677
119741
|
if (!id) continue;
|
|
119678
119742
|
const link = e2.isDirectory() ? `${e2.name}/root.md` : e2.name.endsWith(".md") ? e2.name : null;
|
|
119679
|
-
const text5 = link && readText(
|
|
119743
|
+
const text5 = link && readText(path37.join(todo, link));
|
|
119680
119744
|
if (text5 === null || !link) continue;
|
|
119681
119745
|
cards.push({ id: Number(id), title: cardFront(text5).title ?? e2.name.replace(/\.md$/, ""), link });
|
|
119682
119746
|
}
|
|
@@ -119691,7 +119755,7 @@ the number at the front of a filename is the task id.
|
|
|
119691
119755
|
|
|
119692
119756
|
${list}
|
|
119693
119757
|
`;
|
|
119694
|
-
if (readText(
|
|
119758
|
+
if (readText(path37.join(todo, "README.md")) !== text4) write(path37.join(todo, "README.md"), text4);
|
|
119695
119759
|
}
|
|
119696
119760
|
var workspaceOf = (ws) => readBase(ws).workspace ?? null;
|
|
119697
119761
|
async function pullAssets(ws, record, assets) {
|
|
@@ -119770,7 +119834,7 @@ async function pullAssets(ws, record, assets) {
|
|
|
119770
119834
|
}
|
|
119771
119835
|
if (!child) return src;
|
|
119772
119836
|
dependencies.push(name2);
|
|
119773
|
-
const back = !found.text && /^\.(assets|mockups)\//.test(name2) ? name2 :
|
|
119837
|
+
const back = !found.text && /^\.(assets|mockups)\//.test(name2) ? name2 : path37.relative(path37.dirname(target), child).split(path37.sep).join("/");
|
|
119774
119838
|
if (back !== src) changed = true;
|
|
119775
119839
|
return back;
|
|
119776
119840
|
});
|
|
@@ -119807,16 +119871,16 @@ async function readAsset(artifact, version) {
|
|
|
119807
119871
|
return { ok: true, value: Buffer.from(typeof content === "string" ? content : JSON.stringify(content)) };
|
|
119808
119872
|
}
|
|
119809
119873
|
async function sentOf(file2, kind) {
|
|
119810
|
-
const ext =
|
|
119811
|
-
if (kind !== "html") return { bytes:
|
|
119874
|
+
const ext = path37.extname(file2).toLowerCase();
|
|
119875
|
+
if (kind !== "html") return { bytes: fs33.readFileSync(file2), type: kind === "tiled" && ext === ".tsx" ? "application/xml" : TYPES[ext] ?? "application/octet-stream", kind };
|
|
119812
119876
|
const page = await (await Promise.resolve().then(() => (init_mockup(), mockup_exports))).drawMockup(file2);
|
|
119813
119877
|
return { bytes: Buffer.from(page), type: "text/html", kind };
|
|
119814
119878
|
}
|
|
119815
|
-
var undrawnPreviews = (ws) => Object.entries(assetsOf(readText(
|
|
119879
|
+
var undrawnPreviews = (ws) => Object.entries(assetsOf(readText(path37.join(ws.board, assetsFile(ws.task))))).flatMap(([key, ref]) => ref.error ? [`${key}: ${ref.error}`] : []);
|
|
119816
119880
|
function undrawn(ws, reason) {
|
|
119817
119881
|
const state = stateDir(ws);
|
|
119818
|
-
for (const [root2, shown] of [...state ? [[
|
|
119819
|
-
reason = reason.split(`file://${root2}${
|
|
119882
|
+
for (const [root2, shown] of [...state ? [[path37.join(state, "assets"), ".assets"], [path37.join(state, "mockups"), ".mockups"]] : [], [ws.board, ""]]) {
|
|
119883
|
+
reason = reason.split(`file://${root2}${path37.sep}`).join(shown && `${shown}/`).split(`${root2}${path37.sep}`).join(shown && `${shown}/`);
|
|
119820
119884
|
}
|
|
119821
119885
|
return reason.replace(/ \(at [^)]*file:\/\/[^)]*\)$/, "").slice(0, 500);
|
|
119822
119886
|
}
|
|
@@ -119839,14 +119903,14 @@ async function pushAssets(ws, record, before) {
|
|
|
119839
119903
|
if (body === null) return { ok: true, value: void 0 };
|
|
119840
119904
|
const refs = {};
|
|
119841
119905
|
const canonical = (target) => {
|
|
119842
|
-
const real = (file3) =>
|
|
119906
|
+
const real = (file3) => fs33.existsSync(file3) ? fs33.realpathSync(file3) : path37.dirname(file3) === file3 ? file3 : path37.join(real(path37.dirname(file3)), path37.basename(file3));
|
|
119843
119907
|
target = real(target);
|
|
119844
119908
|
const state = stateDir(ws);
|
|
119845
119909
|
for (const folder of ["assets", "mockups"]) {
|
|
119846
|
-
const root2 = state && real(
|
|
119847
|
-
if (root2 && target.startsWith(root2 +
|
|
119910
|
+
const root2 = state && real(path37.join(state, folder));
|
|
119911
|
+
if (root2 && target.startsWith(root2 + path37.sep)) return `.${folder}/${path37.relative(root2, target).split(path37.sep).join("/")}`;
|
|
119848
119912
|
}
|
|
119849
|
-
return
|
|
119913
|
+
return path37.relative(real(path37.dirname(file2)), target).split(path37.sep).join("/");
|
|
119850
119914
|
};
|
|
119851
119915
|
try {
|
|
119852
119916
|
const graph = collect(body, file2, {
|
|
@@ -119856,11 +119920,11 @@ async function pushAssets(ws, record, before) {
|
|
|
119856
119920
|
const target = assetPath(ws, src, owner);
|
|
119857
119921
|
if (!target) return null;
|
|
119858
119922
|
const key = owner === file2 && before[src] ? src : canonical(target);
|
|
119859
|
-
if (!
|
|
119923
|
+
if (!fs33.statSync(target, { throwIfNoEntry: false })?.isFile()) {
|
|
119860
119924
|
if (before[key]) return { key, file: null };
|
|
119861
119925
|
throw new Error(`file not found: ${target}`);
|
|
119862
119926
|
}
|
|
119863
|
-
return { key: canonical(
|
|
119927
|
+
return { key: canonical(fs33.realpathSync(target)), file: target };
|
|
119864
119928
|
},
|
|
119865
119929
|
read: referenceText,
|
|
119866
119930
|
retained: (key) => (record.assets[key]?.dependencies ?? []).map((src) => {
|
|
@@ -119933,7 +119997,7 @@ async function pushAssets(ws, record, before) {
|
|
|
119933
119997
|
const unchanged = restored && previous && (previous.kind ?? out.kind) === out.kind && localHash === (previous.localHash ?? previous.hash) && [...node.dependencies.values()].every((key) => refs[key]?.artifact === before[key]?.artifact);
|
|
119934
119998
|
if (!entry || !unchanged && entry.hash !== hash || entry.kind && entry.kind !== out.kind) {
|
|
119935
119999
|
if (!ws.cloudTask) continue;
|
|
119936
|
-
let artifact = previous && (previous.kind ?? kindOf(
|
|
120000
|
+
let artifact = previous && (previous.kind ?? kindOf(path37.extname(node.file).toLowerCase())) === out.kind ? previous.artifact : void 0;
|
|
119937
120001
|
if (!artifact) {
|
|
119938
120002
|
const made = await createArtifact(ws.cloudTask, node.key.slice(0, 200), out.kind);
|
|
119939
120003
|
if (!made.ok) return { ...made, error: `${node.key}: ${made.error}` };
|
|
@@ -119953,24 +120017,24 @@ async function pushAssets(ws, record, before) {
|
|
|
119953
120017
|
} catch (error) {
|
|
119954
120018
|
return { ok: false, code: "bad_request", error: error instanceof Error ? error.message : String(error) };
|
|
119955
120019
|
}
|
|
119956
|
-
const list =
|
|
119957
|
-
if (Object.keys(refs).length ||
|
|
120020
|
+
const list = path37.join(ws.board, assetsFile(ws.task));
|
|
120021
|
+
if (Object.keys(refs).length || fs33.existsSync(list)) {
|
|
119958
120022
|
if (JSON.stringify(assetsOf(readText(list))) !== JSON.stringify(refs)) write(list, assetsText(refs));
|
|
119959
120023
|
}
|
|
119960
120024
|
return { ok: true, value: void 0 };
|
|
119961
120025
|
}
|
|
119962
120026
|
function resetSorted(ws) {
|
|
119963
|
-
for (const sub of ["dismissed", "archived"])
|
|
120027
|
+
for (const sub of ["dismissed", "archived"]) fs33.rmSync(path37.join(ws.board, "triage", sub), { recursive: true, force: true });
|
|
119964
120028
|
for (const [p2, content] of viewOf(ws, readBase(ws), sharedMemory(ws.board))) {
|
|
119965
|
-
if (/^triage\/(?:dismissed|archived)\//.test(p2)) write(
|
|
120029
|
+
if (/^triage\/(?:dismissed|archived)\//.test(p2)) write(path37.join(ws.board, p2), content);
|
|
119966
120030
|
}
|
|
119967
120031
|
}
|
|
119968
120032
|
function proposeItems(ws, base) {
|
|
119969
120033
|
const root2 = rootOf(ws);
|
|
119970
120034
|
for (const p2 of localFiles(ws, base)) {
|
|
119971
120035
|
if (itemAt(p2)?.state !== "open" || base.files[root2 + p2]) continue;
|
|
119972
|
-
const file2 =
|
|
119973
|
-
const content =
|
|
120036
|
+
const file2 = path37.join(ws.board, p2);
|
|
120037
|
+
const content = fs33.readFileSync(file2, "utf8");
|
|
119974
120038
|
const said = (key) => new RegExp(`^${key}:`, "m").test(content.split(/\n---/)[0] ?? "");
|
|
119975
120039
|
const fields = {
|
|
119976
120040
|
...ws.cloudTask && !said("source_task") ? { source_task: ws.cloudTask } : {},
|
|
@@ -120010,9 +120074,9 @@ async function send2(ws, job) {
|
|
|
120010
120074
|
const record = readRecord(ws);
|
|
120011
120075
|
const base = readBase(ws);
|
|
120012
120076
|
const fail = (error, conflict = false, code) => ({ ok: false, conflict, error, ...code ? {} : { offline: true } });
|
|
120013
|
-
const tasks = ws.cloudTask ? [{ folder: ws, record }] : filesUnder(
|
|
120077
|
+
const tasks = ws.cloudTask ? [{ folder: ws, record }] : filesUnder(path37.join(ws.board, ".sync")).filter((name) => name.endsWith(".json")).flatMap((name) => {
|
|
120014
120078
|
try {
|
|
120015
|
-
const held4 = JSON.parse(
|
|
120079
|
+
const held4 = JSON.parse(fs33.readFileSync(path37.join(ws.board, ".sync", name), "utf8"));
|
|
120016
120080
|
if (!held4.task || !TASK_ID.test(held4.task) || !held4.number) return [];
|
|
120017
120081
|
return [{ folder: { ...ws, task: held4.task, cloudTask: held4.task, number: held4.number }, record: held4 }];
|
|
120018
120082
|
} catch {
|
|
@@ -120024,7 +120088,7 @@ async function send2(ws, job) {
|
|
|
120024
120088
|
const deferredLists = /* @__PURE__ */ new Set();
|
|
120025
120089
|
const assetErrors = {};
|
|
120026
120090
|
for (const item of tasks) {
|
|
120027
|
-
const card =
|
|
120091
|
+
const card = path37.relative(ws.board, cardFile(item.folder)).split(path37.sep).join("/");
|
|
120028
120092
|
const archived = boardSync && card.startsWith(".archive/") && base.files[rootOf(ws) + card];
|
|
120029
120093
|
if (!archived) {
|
|
120030
120094
|
const assets = await pushAssets(item.folder, item.record, assetsOf(assetsListOf(item.folder, base)));
|
|
@@ -120066,7 +120130,7 @@ async function send2(ws, job) {
|
|
|
120066
120130
|
const owed = (p2) => !job.id && busy(ws.cwd) && itemAt(p2)?.state === "open" && !base.files[rootOf(ws) + p2];
|
|
120067
120131
|
for (const p2 of local) {
|
|
120068
120132
|
if (defer(p2) || owed(p2)) continue;
|
|
120069
|
-
const content =
|
|
120133
|
+
const content = fs33.readFileSync(path37.join(ws.board, p2), "utf8");
|
|
120070
120134
|
const remote2 = remoteOf(ws, shared, p2);
|
|
120071
120135
|
localOf.set(remote2, p2);
|
|
120072
120136
|
const held4 = base.files[remote2];
|
|
@@ -120098,15 +120162,15 @@ async function send2(ws, job) {
|
|
|
120098
120162
|
changes.splice(at2, 1);
|
|
120099
120163
|
delete base.files[theirs.path];
|
|
120100
120164
|
writeBase(ws, base);
|
|
120101
|
-
|
|
120165
|
+
fs33.rmSync(path37.join(ws.board, p2), { force: true });
|
|
120102
120166
|
writeIndex(ws.board);
|
|
120103
120167
|
continue;
|
|
120104
120168
|
}
|
|
120105
120169
|
if (at2 < 0) continue;
|
|
120106
120170
|
const merged = itemAt(p2) ? { content: theirs.content } : mergeFile(base.files[theirs.path]?.content ?? null, changes[at2].content, theirs.content);
|
|
120107
120171
|
changes[at2] = { path: theirs.path, content: merged.content, base_seq: theirs.seq };
|
|
120108
|
-
if (merged.content === null)
|
|
120109
|
-
else write(
|
|
120172
|
+
if (merged.content === null) fs33.rmSync(path37.join(ws.board, p2), { force: true });
|
|
120173
|
+
else write(path37.join(ws.board, p2), merged.content);
|
|
120110
120174
|
}
|
|
120111
120175
|
if (!changes.length) return success(false);
|
|
120112
120176
|
sent = await commitBoard(ws.project, job.id, job.machineId, changes);
|
|
@@ -120127,7 +120191,7 @@ var BUSY_MS = 3e4;
|
|
|
120127
120191
|
function keptFolders() {
|
|
120128
120192
|
let cached2 = [];
|
|
120129
120193
|
try {
|
|
120130
|
-
cached2 =
|
|
120194
|
+
cached2 = fs34.readdirSync(cacheRoot()).map((name) => fs34.realpathSync(path38.join(cacheRoot(), name)));
|
|
120131
120195
|
} catch {
|
|
120132
120196
|
}
|
|
120133
120197
|
return [.../* @__PURE__ */ new Set([...allowedProjects(), ...cached2])].flatMap((dir) => [keptBoard(dir)].filter((ws) => !!ws));
|
|
@@ -120163,8 +120227,8 @@ function watchBoards(machineId2, ms, lookMs = LOOK_MS, pullMs = PULL_MS, busyMs
|
|
|
120163
120227
|
const watch = (ws) => {
|
|
120164
120228
|
let watcher;
|
|
120165
120229
|
try {
|
|
120166
|
-
watcher =
|
|
120167
|
-
const p2 = name && String(name).split(
|
|
120230
|
+
watcher = fs34.watch(ws.board, { recursive: true }, (_event, name) => {
|
|
120231
|
+
const p2 = name && String(name).split(path38.sep).join("/");
|
|
120168
120232
|
const held4 = watched.get(ws.cwd);
|
|
120169
120233
|
if (closed || !p2 || !isBoardPath(p2) || !held4) return;
|
|
120170
120234
|
const job = busy(ws.cwd);
|
|
@@ -120227,8 +120291,8 @@ function watchBoards(machineId2, ms, lookMs = LOOK_MS, pullMs = PULL_MS, busyMs
|
|
|
120227
120291
|
|
|
120228
120292
|
// src/diff.ts
|
|
120229
120293
|
import { execFile as execFile2 } from "node:child_process";
|
|
120230
|
-
import
|
|
120231
|
-
import
|
|
120294
|
+
import fs35 from "node:fs";
|
|
120295
|
+
import path39 from "node:path";
|
|
120232
120296
|
var FILE_BYTES = 256 * 1024;
|
|
120233
120297
|
var TOTAL_BYTES = 1024 * 1024;
|
|
120234
120298
|
var EMPTY_TREE = "4b825dc642cb6eb9a060e54bf8d69288fbee4904";
|
|
@@ -120245,7 +120309,7 @@ var git2 = (dir, args, maxBuffer = 4 * TOTAL_BYTES) => new Promise(
|
|
|
120245
120309
|
function projectDir(placed, project) {
|
|
120246
120310
|
if (placed) {
|
|
120247
120311
|
const real = realpath3(placed);
|
|
120248
|
-
return real && allowedProjects().some((root2) => real === root2 || real.startsWith(root2 +
|
|
120312
|
+
return real && allowedProjects().some((root2) => real === root2 || real.startsWith(root2 + path39.sep)) ? real : null;
|
|
120249
120313
|
}
|
|
120250
120314
|
let cached2;
|
|
120251
120315
|
try {
|
|
@@ -120253,11 +120317,11 @@ function projectDir(placed, project) {
|
|
|
120253
120317
|
} catch {
|
|
120254
120318
|
return null;
|
|
120255
120319
|
}
|
|
120256
|
-
return
|
|
120320
|
+
return fs35.existsSync(path39.join(cached2, ".git")) ? cached2 : null;
|
|
120257
120321
|
}
|
|
120258
120322
|
function realpath3(p2) {
|
|
120259
120323
|
try {
|
|
120260
|
-
return
|
|
120324
|
+
return fs35.realpathSync(p2);
|
|
120261
120325
|
} catch {
|
|
120262
120326
|
return null;
|
|
120263
120327
|
}
|
|
@@ -120304,20 +120368,20 @@ async function answerHint(machineId2, hint2) {
|
|
|
120304
120368
|
// ../cli/src/lib/agent/stop.ts
|
|
120305
120369
|
import { spawnSync as spawnSync4 } from "node:child_process";
|
|
120306
120370
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
120307
|
-
import
|
|
120371
|
+
import fs36 from "node:fs";
|
|
120308
120372
|
var runMark = (sessionId) => ({ name: RUN_ENV, value: sessionId });
|
|
120309
120373
|
var stopMark = () => ({ name: STOP_ENV, value: randomUUID2() });
|
|
120310
120374
|
var markEnv = (env2, mark) => ({ ...env2, [mark.name]: mark.value });
|
|
120311
120375
|
var WINDOWS3 = process.platform === "win32";
|
|
120312
120376
|
function markedInProc(entry, strict = false) {
|
|
120313
120377
|
const pids = [];
|
|
120314
|
-
for (const name of
|
|
120378
|
+
for (const name of fs36.readdirSync("/proc")) {
|
|
120315
120379
|
if (!/^\d+$/.test(name)) continue;
|
|
120316
120380
|
try {
|
|
120317
|
-
if (
|
|
120381
|
+
if (fs36.readFileSync(`/proc/${name}/environ`, "utf8").split("\0").includes(entry)) pids.push(Number(name));
|
|
120318
120382
|
} catch (error) {
|
|
120319
120383
|
if (strict && !["ENOENT", "ESRCH"].includes(error.code ?? "")) {
|
|
120320
|
-
const stat =
|
|
120384
|
+
const stat = fs36.statSync(`/proc/${name}`, { throwIfNoEntry: false });
|
|
120321
120385
|
if (stat?.uid === process.getuid?.()) throw error;
|
|
120322
120386
|
}
|
|
120323
120387
|
}
|
|
@@ -120443,8 +120507,8 @@ function processesStopped(mark, root2) {
|
|
|
120443
120507
|
}
|
|
120444
120508
|
|
|
120445
120509
|
// src/flow.ts
|
|
120446
|
-
import
|
|
120447
|
-
import
|
|
120510
|
+
import fs40 from "node:fs";
|
|
120511
|
+
import path43 from "node:path";
|
|
120448
120512
|
|
|
120449
120513
|
// ../cli/src/lib/card-review.ts
|
|
120450
120514
|
function reviewOf(meta) {
|
|
@@ -120459,8 +120523,8 @@ function reviewOf(meta) {
|
|
|
120459
120523
|
}
|
|
120460
120524
|
|
|
120461
120525
|
// src/triage.ts
|
|
120462
|
-
import
|
|
120463
|
-
import
|
|
120526
|
+
import fs37 from "node:fs";
|
|
120527
|
+
import path40 from "node:path";
|
|
120464
120528
|
|
|
120465
120529
|
// ../cli/src/lib/signals/identity.ts
|
|
120466
120530
|
import { createHash as createHash2 } from "node:crypto";
|
|
@@ -120468,8 +120532,8 @@ var DERIVED = "derived-";
|
|
|
120468
120532
|
var derivedSourceId = (seed) => `${DERIVED}${createHash2("sha256").update(seed).digest("hex").slice(0, 16)}`;
|
|
120469
120533
|
|
|
120470
120534
|
// src/triage.ts
|
|
120471
|
-
var triageDir = (board) =>
|
|
120472
|
-
var rejectedDir = (board) =>
|
|
120535
|
+
var triageDir = (board) => path40.join(board, "triage");
|
|
120536
|
+
var rejectedDir = (board) => path40.join(board, ".archive", REJECTIONS_TO_REVIEW);
|
|
120473
120537
|
var SCRATCH = ["dismissed", "archived"];
|
|
120474
120538
|
var stamp2 = (at2) => formatStamp(at2 ? new Date(at2) : /* @__PURE__ */ new Date());
|
|
120475
120539
|
function slugOf(title) {
|
|
@@ -120478,7 +120542,7 @@ function slugOf(title) {
|
|
|
120478
120542
|
function freeName(dir, title) {
|
|
120479
120543
|
const stem = slugOf(title);
|
|
120480
120544
|
let name = `${stem}.md`;
|
|
120481
|
-
for (let n = 2;
|
|
120545
|
+
for (let n = 2; fs37.existsSync(path40.join(dir, name)); n++) name = `${stem}-${n}.md`;
|
|
120482
120546
|
return name;
|
|
120483
120547
|
}
|
|
120484
120548
|
function itemText(item, fields = {}) {
|
|
@@ -120498,17 +120562,17 @@ ${item.text.trim()}
|
|
|
120498
120562
|
`;
|
|
120499
120563
|
}
|
|
120500
120564
|
function writeItem(dir, item, fields = {}) {
|
|
120501
|
-
|
|
120565
|
+
fs37.mkdirSync(dir, { recursive: true });
|
|
120502
120566
|
const name = freeName(dir, item.title);
|
|
120503
|
-
|
|
120567
|
+
fs37.writeFileSync(path40.join(dir, name), itemText(item, item.workflow ? { workflow: workflowName(item.workflow), ...fields } : fields));
|
|
120504
120568
|
return name;
|
|
120505
120569
|
}
|
|
120506
120570
|
function layOut(board, rejections) {
|
|
120507
120571
|
clearLaid(board);
|
|
120508
120572
|
const dir = rejectedDir(board);
|
|
120509
|
-
|
|
120573
|
+
fs37.mkdirSync(dir, { recursive: true });
|
|
120510
120574
|
for (const t2 of rejections.tasks) {
|
|
120511
|
-
|
|
120575
|
+
fs37.writeFileSync(path40.join(dir, `${t2.number}-${slugify(t2.title)}.md`), [
|
|
120512
120576
|
"---",
|
|
120513
120577
|
`title: ${yamlScalar(t2.title)}`,
|
|
120514
120578
|
"status: todo",
|
|
@@ -120523,65 +120587,25 @@ function layOut(board, rejections) {
|
|
|
120523
120587
|
].join("\n"));
|
|
120524
120588
|
}
|
|
120525
120589
|
for (const item of rejections.triage) {
|
|
120526
|
-
const sub =
|
|
120590
|
+
const sub = path40.join(triageDir(board), item.state === "dismissed" ? "dismissed" : "archived");
|
|
120527
120591
|
const fields = item.state === "dismissed" ? { dismissed_at: stamp2(item.dismissed_at), dismissed_by: "user", ...item.dismissed_reason ? { dismissed_reason: item.dismissed_reason } : {} } : {};
|
|
120528
120592
|
writeItem(sub, item, fields);
|
|
120529
120593
|
}
|
|
120530
120594
|
return { tasks: rejections.tasks.map((t2) => t2.id), triage: rejections.triage.map((i) => i.id) };
|
|
120531
120595
|
}
|
|
120532
120596
|
function clearLaid(board) {
|
|
120533
|
-
|
|
120534
|
-
for (const sub of SCRATCH)
|
|
120535
|
-
}
|
|
120536
|
-
|
|
120537
|
-
// src/kanban-skill.ts
|
|
120538
|
-
import fs36 from "node:fs";
|
|
120539
|
-
import path39 from "node:path";
|
|
120540
|
-
|
|
120541
|
-
// ../skill/SKILL.md
|
|
120542
|
-
var SKILL_default = '---\nname: kanban\ndescription: Manage the file-based task board with akb. Use for creating and planning tasks, revising or implementing cards, and managing background runs; also for "what\'s running".\n---\n\n# Kanban board\n\nThe board is worked only through `akb`. Find the command for the job in `akb help` and run\nit; never do its work by hand or from memory.\n\n- **`--print` does it here**: `akb card revise 12 --print "drop the export"` prints the whole\n flow for that card on this board; follow it to its closing steps. Without `--print` the\n same command starts a separate agent.\n- **Keys**: never read or write API keys; the user sets them with `akb agent set apiKey`.\n';
|
|
120543
|
-
|
|
120544
|
-
// src/kanban-skill.ts
|
|
120545
|
-
var CONTENT = `${SKILL_default.trimEnd()}
|
|
120546
|
-
|
|
120547
|
-
<!-- ai4kanban managed -->
|
|
120548
|
-
`;
|
|
120549
|
-
var MANAGED = /^<!-- ai4kanban \S+ -->$/m;
|
|
120550
|
-
function prepareKanbanSkill(root2) {
|
|
120551
|
-
for (const folder of SKILL_FOLDERS) {
|
|
120552
|
-
const dir = path39.join(root2, folder);
|
|
120553
|
-
const file2 = path39.join(dir, "SKILL.md");
|
|
120554
|
-
try {
|
|
120555
|
-
let linked = false;
|
|
120556
|
-
let at2 = root2;
|
|
120557
|
-
for (const name of `${folder}/SKILL.md`.split("/")) {
|
|
120558
|
-
at2 = path39.join(at2, name);
|
|
120559
|
-
if (fs36.lstatSync(at2, { throwIfNoEntry: false })?.isSymbolicLink()) linked = true;
|
|
120560
|
-
}
|
|
120561
|
-
const held4 = fs36.existsSync(file2) ? fs36.readFileSync(file2, "utf8") : null;
|
|
120562
|
-
const exists = fs36.lstatSync(dir, { throwIfNoEntry: false }) !== void 0;
|
|
120563
|
-
if (linked || exists && !MANAGED.test(held4 ?? "")) {
|
|
120564
|
-
if (!held4?.trim()) throw new Error("\u7528\u6237\u81EA\u6709\u76EE\u5F55\u6216\u7B26\u53F7\u94FE\u63A5\u4E2D\u7F3A\u5C11\u53EF\u8BFB\u7684 SKILL.md");
|
|
120565
|
-
continue;
|
|
120566
|
-
}
|
|
120567
|
-
if (held4 !== CONTENT) {
|
|
120568
|
-
fs36.mkdirSync(dir, { recursive: true });
|
|
120569
|
-
fs36.writeFileSync(file2, CONTENT);
|
|
120570
|
-
}
|
|
120571
|
-
} catch (e2) {
|
|
120572
|
-
throw new Error(`\u65E0\u6CD5\u51C6\u5907 ${folder}\uFF1A${e2 instanceof Error ? e2.message : String(e2)}`);
|
|
120573
|
-
}
|
|
120574
|
-
}
|
|
120597
|
+
fs37.rmSync(rejectedDir(board), { recursive: true, force: true });
|
|
120598
|
+
for (const sub of SCRATCH) fs37.rmSync(path40.join(triageDir(board), sub), { recursive: true, force: true });
|
|
120575
120599
|
}
|
|
120576
120600
|
|
|
120577
120601
|
// ../cli/src/lib/skill/hook.ts
|
|
120578
120602
|
import { spawnSync as spawnSync5 } from "node:child_process";
|
|
120579
|
-
import
|
|
120580
|
-
import
|
|
120603
|
+
import fs38 from "node:fs";
|
|
120604
|
+
import path41 from "node:path";
|
|
120581
120605
|
var MARKER_LINE = /^# ai4kanban commit guard\b/m;
|
|
120582
120606
|
var read2 = (file2) => {
|
|
120583
120607
|
try {
|
|
120584
|
-
return
|
|
120608
|
+
return fs38.readFileSync(file2, "utf8");
|
|
120585
120609
|
} catch {
|
|
120586
120610
|
return null;
|
|
120587
120611
|
}
|
|
@@ -120593,28 +120617,28 @@ function hooksDir(root2) {
|
|
|
120593
120617
|
windowsHide: true
|
|
120594
120618
|
});
|
|
120595
120619
|
if (out.error || out.status !== 0 || !out.stdout.trim()) return null;
|
|
120596
|
-
return
|
|
120620
|
+
return path41.resolve(root2, out.stdout.trim());
|
|
120597
120621
|
}
|
|
120598
120622
|
function installCommitHook(root2, _board) {
|
|
120599
120623
|
const dir = hooksDir(root2);
|
|
120600
120624
|
if (!dir) return {};
|
|
120601
|
-
const file2 =
|
|
120602
|
-
if (
|
|
120625
|
+
const file2 = path41.join(dir, "pre-commit");
|
|
120626
|
+
if (fs38.lstatSync(file2, { throwIfNoEntry: false })?.isSymbolicLink()) return {};
|
|
120603
120627
|
const source = read2(file2);
|
|
120604
|
-
if (source && MARKER_LINE.test(source))
|
|
120628
|
+
if (source && MARKER_LINE.test(source)) fs38.unlinkSync(file2);
|
|
120605
120629
|
return {};
|
|
120606
120630
|
}
|
|
120607
120631
|
|
|
120608
120632
|
// src/built.ts
|
|
120609
|
-
import
|
|
120610
|
-
import
|
|
120633
|
+
import fs39 from "node:fs";
|
|
120634
|
+
import path42 from "node:path";
|
|
120611
120635
|
var isBuilder = (ws) => ws.workflow === BUILDER;
|
|
120612
|
-
var draftDir = (ws) =>
|
|
120613
|
-
var draftLine = (ws) => `<!-- workflow folder: ${
|
|
120636
|
+
var draftDir = (ws) => path42.join(ws.board, "workflows", draftFolder(ws.task));
|
|
120637
|
+
var draftLine = (ws) => `<!-- workflow folder: ${path42.relative(ws.cwd, draftDir(ws)).split(path42.sep).join("/")}/ -->`;
|
|
120614
120638
|
var skeleton = (name) => ["---", `name: ${/\s#/.test(name) ? JSON.stringify(name) : yamlScalar(name)}`, "needsArtifact: false", "---", ""].join("\n");
|
|
120615
120639
|
async function placeDraft(ws, read3) {
|
|
120616
120640
|
const dir = draftDir(ws);
|
|
120617
|
-
if (
|
|
120641
|
+
if (fs39.existsSync(path42.join(dir, WORKFLOW_FILE))) return { ok: true, value: void 0 };
|
|
120618
120642
|
const task = await read3.readTask(ws.task);
|
|
120619
120643
|
if (!task.ok) return task;
|
|
120620
120644
|
let files = { [WORKFLOW_FILE]: skeleton(task.value.title.trim() || "Untitled") };
|
|
@@ -120625,10 +120649,10 @@ async function placeDraft(ws, read3) {
|
|
|
120625
120649
|
files = held4.value.files;
|
|
120626
120650
|
}
|
|
120627
120651
|
for (const [name, text4] of Object.entries(files)) {
|
|
120628
|
-
const file2 =
|
|
120629
|
-
if (!file2.startsWith(dir +
|
|
120630
|
-
|
|
120631
|
-
|
|
120652
|
+
const file2 = path42.resolve(dir, name);
|
|
120653
|
+
if (!file2.startsWith(dir + path42.sep)) continue;
|
|
120654
|
+
fs39.mkdirSync(path42.dirname(file2), { recursive: true });
|
|
120655
|
+
fs39.writeFileSync(file2, text4);
|
|
120632
120656
|
}
|
|
120633
120657
|
return { ok: true, value: void 0 };
|
|
120634
120658
|
}
|
|
@@ -120640,7 +120664,7 @@ async function builtWorkflow(ws, akb) {
|
|
|
120640
120664
|
const dir = draftDir(ws);
|
|
120641
120665
|
let source;
|
|
120642
120666
|
try {
|
|
120643
|
-
source =
|
|
120667
|
+
source = fs39.readFileSync(path42.join(dir, WORKFLOW_FILE), "utf8");
|
|
120644
120668
|
} catch {
|
|
120645
120669
|
return fail(`workflows/${id}/${WORKFLOW_FILE} is missing.`);
|
|
120646
120670
|
}
|
|
@@ -120648,25 +120672,25 @@ async function builtWorkflow(ws, akb) {
|
|
|
120648
120672
|
if ("problem" in read3) return fail(read3.problem);
|
|
120649
120673
|
const names2 = named(read3.def);
|
|
120650
120674
|
const run2 = async (args) => answerOf2(await runAkb(akb, [...args, "--json", "--board", ws.board], { cwd: ws.cwd, board: ws.board }));
|
|
120651
|
-
const agents =
|
|
120652
|
-
for (const old of
|
|
120653
|
-
if (!names2.includes(old))
|
|
120675
|
+
const agents = path42.join(dir, "agents");
|
|
120676
|
+
for (const old of fs39.existsSync(agents) ? fs39.readdirSync(agents) : []) {
|
|
120677
|
+
if (!names2.includes(old)) fs39.rmSync(path42.join(agents, old), { recursive: true, force: true });
|
|
120654
120678
|
}
|
|
120655
120679
|
for (const name of names2) {
|
|
120656
|
-
const from =
|
|
120657
|
-
const to =
|
|
120658
|
-
if (
|
|
120659
|
-
|
|
120660
|
-
|
|
120661
|
-
} else if (!
|
|
120680
|
+
const from = path42.join(ws.board, "agents", name);
|
|
120681
|
+
const to = path42.join(agents, name);
|
|
120682
|
+
if (fs39.existsSync(from)) {
|
|
120683
|
+
fs39.rmSync(to, { recursive: true, force: true });
|
|
120684
|
+
fs39.cpSync(from, to, { recursive: true });
|
|
120685
|
+
} else if (!fs39.existsSync(path42.join(to, "AGENT.md"))) {
|
|
120662
120686
|
const own = await run2(["raw", "agent-file", name, "AGENT.md"]);
|
|
120663
120687
|
if (own?.text) {
|
|
120664
|
-
|
|
120665
|
-
|
|
120688
|
+
fs39.mkdirSync(to, { recursive: true });
|
|
120689
|
+
fs39.writeFileSync(path42.join(to, "AGENT.md"), own.text);
|
|
120666
120690
|
}
|
|
120667
120691
|
}
|
|
120668
120692
|
}
|
|
120669
|
-
const files = Object.fromEntries(filesUnder(dir).map((f2) => [f2,
|
|
120693
|
+
const files = Object.fromEntries(filesUnder(dir).map((f2) => [f2, fs39.readFileSync(path42.join(dir, f2), "utf8")]));
|
|
120670
120694
|
const checked = checkWorkflowFiles(files);
|
|
120671
120695
|
if (!checked.ok) return fail(`${checked.file} ${checked.reason}.`);
|
|
120672
120696
|
const list = await run2(["workflow", "list"]);
|
|
@@ -120700,7 +120724,7 @@ function spentBy(runs) {
|
|
|
120700
120724
|
}
|
|
120701
120725
|
function reviewOf2(file2) {
|
|
120702
120726
|
try {
|
|
120703
|
-
const meta = parseFrontmatter(
|
|
120727
|
+
const meta = parseFrontmatter(fs40.readFileSync(file2, "utf8")).meta;
|
|
120704
120728
|
return meta ? reviewOf(meta) : null;
|
|
120705
120729
|
} catch {
|
|
120706
120730
|
return null;
|
|
@@ -120708,15 +120732,15 @@ function reviewOf2(file2) {
|
|
|
120708
120732
|
}
|
|
120709
120733
|
function asks(file2) {
|
|
120710
120734
|
try {
|
|
120711
|
-
return openOf(parseFrontmatter(
|
|
120735
|
+
return openOf(parseFrontmatter(fs40.readFileSync(file2, "utf8")).meta?.questions ?? []).length > 0;
|
|
120712
120736
|
} catch {
|
|
120713
120737
|
return false;
|
|
120714
120738
|
}
|
|
120715
120739
|
}
|
|
120716
120740
|
function mcpConfig(servers, file2) {
|
|
120717
120741
|
if (!Object.keys(servers).length) return null;
|
|
120718
|
-
|
|
120719
|
-
|
|
120742
|
+
fs40.mkdirSync(path43.dirname(file2), { recursive: true });
|
|
120743
|
+
fs40.writeFileSync(file2, `${JSON.stringify({ mcpServers: servers }, null, 2)}
|
|
120720
120744
|
`);
|
|
120721
120745
|
return file2;
|
|
120722
120746
|
}
|
|
@@ -120755,7 +120779,7 @@ function deliveryEnding(ws, id, asked = false) {
|
|
|
120755
120779
|
if (!id) return null;
|
|
120756
120780
|
let held4;
|
|
120757
120781
|
try {
|
|
120758
|
-
held4 = JSON.parse(
|
|
120782
|
+
held4 = JSON.parse(fs40.readFileSync(path43.join(ws.board, "deliveries", `${path43.basename(id)}.json`), "utf8"));
|
|
120759
120783
|
} catch {
|
|
120760
120784
|
return null;
|
|
120761
120785
|
}
|
|
@@ -120763,20 +120787,20 @@ function deliveryEnding(ws, id, asked = false) {
|
|
|
120763
120787
|
if (held4.status === "cancelled") {
|
|
120764
120788
|
return held4.steps?.some((s) => s.step === "discarded") ? { ok: false, reason: "The build was discarded." } : { ok: false, reason: "", stopped: true };
|
|
120765
120789
|
}
|
|
120766
|
-
if (held4.status === "active" && !asked) return { ok: false, reason:
|
|
120790
|
+
if (held4.status === "active" && !asked) return { ok: false, reason: reasonOf(stopped2?.why) ?? NOT_COMPLETED };
|
|
120767
120791
|
return null;
|
|
120768
120792
|
}
|
|
120769
120793
|
function checkoutsOf(ws, id) {
|
|
120770
|
-
const dir =
|
|
120794
|
+
const dir = path43.join(ws.board, "deliveries");
|
|
120771
120795
|
let names2;
|
|
120772
120796
|
try {
|
|
120773
|
-
names2 =
|
|
120797
|
+
names2 = fs40.readdirSync(dir).filter((n) => n.endsWith(".json"));
|
|
120774
120798
|
} catch {
|
|
120775
120799
|
return [];
|
|
120776
120800
|
}
|
|
120777
120801
|
return names2.flatMap((n) => {
|
|
120778
120802
|
try {
|
|
120779
|
-
const held4 = JSON.parse(
|
|
120803
|
+
const held4 = JSON.parse(fs40.readFileSync(path43.join(dir, n), "utf8"));
|
|
120780
120804
|
return held4.cardId === id && held4.deliveryId ? [held4.deliveryId] : [];
|
|
120781
120805
|
} catch {
|
|
120782
120806
|
return [];
|
|
@@ -120790,9 +120814,9 @@ var RESUME_REFUSED = {
|
|
|
120790
120814
|
deliveryRunGoing: "\u4E0A\u6B21\u7684\u8FD0\u884C\u8FD8\u6CA1\u505C\u4E0B\uFF0C\u8BF7\u7A0D\u540E\u518D\u70B9\u300C\u7EED\u8DD1\u300D\u3002",
|
|
120791
120815
|
deliveryCardGone: "\u8FD9\u5F20\u5361\u5DF2\u4E0D\u5728\u770B\u677F\u4E0A\uFF0C\u6CA1\u6709\u53EF\u7EED\u8DD1\u7684\u5185\u5BB9\uFF0C\u8BF7\u70B9\u300C\u91CD\u65B0\u53D1\u8D77\u300D\u3002"
|
|
120792
120816
|
};
|
|
120793
|
-
var isArchived = (ws, id) =>
|
|
120817
|
+
var isArchived = (ws, id) => path43.relative(ws.board, findCard(ws.board, id) ?? ws.board).split(path43.sep)[0] === ".archive";
|
|
120794
120818
|
var refusal2 = (ran) => ran.last.replace(/^akb( raw)?: /, "").slice(0, 300) || "akb stopped with an error.";
|
|
120795
|
-
var
|
|
120819
|
+
var reasonOf = (text4) => (text4 ?? "").split("\n").map((l2) => l2.trim()).filter((l2) => l2 && !/^at\s/.test(l2)).join("\n").slice(0, 300) || void 0;
|
|
120796
120820
|
function logLines(show, event2) {
|
|
120797
120821
|
let held4 = "";
|
|
120798
120822
|
const said = (line) => {
|
|
@@ -120848,7 +120872,7 @@ async function setUp(job, ws, deps, io) {
|
|
|
120848
120872
|
const runtime = job.runtime;
|
|
120849
120873
|
const missing = unavailable(runtime, await deps.runtimes());
|
|
120850
120874
|
if (missing) return missing;
|
|
120851
|
-
if (!
|
|
120875
|
+
if (!fs40.existsSync(path43.join(ws.board, "config.md"))) {
|
|
120852
120876
|
const init = await akb(["raw", "init"]);
|
|
120853
120877
|
if (init.code !== 0) return refusal2(init);
|
|
120854
120878
|
}
|
|
@@ -120865,7 +120889,7 @@ async function setUp(job, ws, deps, io) {
|
|
|
120865
120889
|
const used = await akb(["agent", "use", runtime]);
|
|
120866
120890
|
if (used.code !== 0) return refusal2(used);
|
|
120867
120891
|
const servers = mcpServersOf(ws);
|
|
120868
|
-
const mcpFile =
|
|
120892
|
+
const mcpFile = path43.join(ws.board, ".sync", `${ws.task}.mcp.json`);
|
|
120869
120893
|
const takes = new Set(settingKeys(runtime));
|
|
120870
120894
|
const given = job.settings ?? {};
|
|
120871
120895
|
const values = { ...given, model: job.model ?? "" };
|
|
@@ -120901,7 +120925,7 @@ async function runReview(job, ws, tasks, deps, io) {
|
|
|
120901
120925
|
const ran = await akb(["review-memory", "--task", ...tasks, "--follow", "--events", "--json"], true);
|
|
120902
120926
|
if (io.lost()) return { ok: false, reason: "" };
|
|
120903
120927
|
const answer = answerOf2(ran);
|
|
120904
|
-
if (ran.code !== 0) return { ok: false, reason:
|
|
120928
|
+
if (ran.code !== 0) return { ok: false, reason: reasonOf(answer?.error?.message?.replace(/^run \S+ ended \w+: /, "")) ?? refusal2(ran) };
|
|
120905
120929
|
const runs = answerOf2(await akb(["run", "list", "--all", "--json"]))?.runs ?? [];
|
|
120906
120930
|
return { ok: true, report: { ...answer?.result?.trim() ? { reply: answer.result.trim() } : {}, ...spentBy(runs.filter((r2) => (r2.startedAt ?? 0) >= since)) } };
|
|
120907
120931
|
}
|
|
@@ -120959,25 +120983,25 @@ async function runAgent(job, ws, deps, io) {
|
|
|
120959
120983
|
const ran = await akb([...args, "--follow", "--events", "--json"], true, env2);
|
|
120960
120984
|
if (io.lost()) return { ok: false, reason: "" };
|
|
120961
120985
|
const answer = answerOf2(ran);
|
|
120962
|
-
if (ran.code !== 0) return { ok: false, reason:
|
|
120986
|
+
if (ran.code !== 0) return { ok: false, reason: reasonOf(answer?.error?.message?.replace(/^run \S+ ended \w+: /, "")) ?? refusal2(ran) };
|
|
120963
120987
|
const runs = answerOf2(await akb(["run", "list", "--all", "--json"]))?.runs ?? [];
|
|
120964
120988
|
return { ok: true, report: { ...answer?.result?.trim() ? { reply: answer.result.trim() } : {}, ...spentBy(runs.filter((r2) => (r2.startedAt ?? 0) >= since)) } };
|
|
120965
120989
|
}
|
|
120966
120990
|
function writeTranscript(job, dir) {
|
|
120967
120991
|
if (!job.transcript) return "";
|
|
120968
|
-
const file2 =
|
|
120969
|
-
|
|
120970
|
-
|
|
120992
|
+
const file2 = path43.join(dir, "discussion.md");
|
|
120993
|
+
fs40.mkdirSync(dir, { recursive: true });
|
|
120994
|
+
fs40.writeFileSync(file2, `${job.transcript}
|
|
120971
120995
|
`);
|
|
120972
120996
|
return file2;
|
|
120973
120997
|
}
|
|
120974
120998
|
function pictures(job, ws, id) {
|
|
120975
120999
|
const dir = cardAssetsDir(ws, id);
|
|
120976
121000
|
if (!job.attachments.length || !dir) return "";
|
|
120977
|
-
|
|
121001
|
+
fs40.mkdirSync(dir, { recursive: true });
|
|
120978
121002
|
return job.attachments.map((a2, i) => {
|
|
120979
|
-
const file2 = `${i + 1}-${
|
|
120980
|
-
|
|
121003
|
+
const file2 = `${i + 1}-${path43.basename(a2.name).replace(/[^\w.-]+/g, "-")}`;
|
|
121004
|
+
fs40.writeFileSync(path43.join(dir, file2), Buffer.from(a2.content, "base64"));
|
|
120981
121005
|
return `
|
|
120982
121006
|
<Asset src=".assets/${id}/${file2}" label="${a2.name.replace(/["<>]/g, "") || file2}" />
|
|
120983
121007
|
`;
|
|
@@ -120985,7 +121009,7 @@ function pictures(job, ws, id) {
|
|
|
120985
121009
|
}
|
|
120986
121010
|
function cardFlags(ws, fields) {
|
|
120987
121011
|
if (!fields) return [];
|
|
120988
|
-
const open = (keys) => (keys ?? []).map((k2) => Number(/(\d+)$/.exec(k2)?.[1])).filter((n) => n > 0 && n !== ws.number && findCard(ws.board, n)?.startsWith(
|
|
121012
|
+
const open = (keys) => (keys ?? []).map((k2) => Number(/(\d+)$/.exec(k2)?.[1])).filter((n) => n > 0 && n !== ws.number && findCard(ws.board, n)?.startsWith(path43.join(ws.board, "todo") + path43.sep));
|
|
120989
121013
|
const lists = [["--modules", fields.modules ?? []], ["--related", open(fields.related)], ["--blocked-by", open(fields.blocked_by)]];
|
|
120990
121014
|
return [
|
|
120991
121015
|
...fields.priority ? ["--priority", fields.priority] : [],
|
|
@@ -121020,10 +121044,10 @@ async function runFlow(job, ws, deps, io) {
|
|
|
121020
121044
|
const placed = await placeDraft(ws, deps.api);
|
|
121021
121045
|
if (!placed.ok) return fail(placed.error);
|
|
121022
121046
|
}
|
|
121023
|
-
const body =
|
|
121024
|
-
|
|
121047
|
+
const body = path43.join(ws.board, ".sync", `${ws.task}.request.md`);
|
|
121048
|
+
fs40.mkdirSync(path43.dirname(body), { recursive: true });
|
|
121025
121049
|
if (!ws.number) return fail("This task has no number yet.");
|
|
121026
|
-
|
|
121050
|
+
fs40.writeFileSync(body, `${said.request || title}
|
|
121027
121051
|
${isBuilder(ws) ? `
|
|
121028
121052
|
${draftLine(ws)}
|
|
121029
121053
|
` : ""}${pictures(job, ws, ws.number)}`);
|
|
@@ -121041,7 +121065,7 @@ ${draftLine(ws)}
|
|
|
121041
121065
|
...cardFlags(ws, flow.metadata),
|
|
121042
121066
|
"--json"
|
|
121043
121067
|
]));
|
|
121044
|
-
|
|
121068
|
+
fs40.rmSync(body, { force: true });
|
|
121045
121069
|
if (!created.ok) return fail(created.error);
|
|
121046
121070
|
id = created.value;
|
|
121047
121071
|
}
|
|
@@ -121057,7 +121081,7 @@ ${draftLine(ws)}
|
|
|
121057
121081
|
if (io.lost()) return fail("");
|
|
121058
121082
|
return await workOn(card);
|
|
121059
121083
|
} finally {
|
|
121060
|
-
|
|
121084
|
+
fs40.rmSync(path43.join(ws.board, ".sync", `${ws.task}.discussion`), { recursive: true, force: true });
|
|
121061
121085
|
const left = working.get(key) - 1;
|
|
121062
121086
|
if (left) working.set(key, left);
|
|
121063
121087
|
else working.delete(key);
|
|
@@ -121102,7 +121126,7 @@ ${draftLine(ws)}
|
|
|
121102
121126
|
const resolved2 = await akb(["card", "resolve", String(id2), "--follow", "--events", "--json", "--", text4], true);
|
|
121103
121127
|
if (io.lost()) return fail("");
|
|
121104
121128
|
const file2 = findCard(ws.board, id2);
|
|
121105
|
-
rejected = !!file2 &&
|
|
121129
|
+
rejected = !!file2 && path43.relative(ws.board, file2).split(path43.sep)[0] === ".archive" && parseFrontmatter(fs40.readFileSync(file2, "utf8")).meta?.rejected === true;
|
|
121106
121130
|
if (rejected) ran = resolved2;
|
|
121107
121131
|
else if (resolved2.code !== 0) note = text4;
|
|
121108
121132
|
}
|
|
@@ -121122,7 +121146,7 @@ ${draftLine(ws)}
|
|
|
121122
121146
|
const waiting = rejected ? null : reviewOf2(cardFile(ws));
|
|
121123
121147
|
const review = waiting && waiting !== true ? waiting : void 0;
|
|
121124
121148
|
if (!rejected && ran.code !== 0 && !(verb === "refine" && waiting) && !(answer?.error && asked)) {
|
|
121125
|
-
return fail(
|
|
121149
|
+
return fail(reasonOf(answer?.error?.message?.replace(/^run \S+ ended \w+: /, "")) ?? refusal2(ran));
|
|
121126
121150
|
}
|
|
121127
121151
|
const last2 = answer?.lastSessionId ?? answer?.error?.lastSessionId;
|
|
121128
121152
|
const runs = answerOf2(await akb(["run", "list", "--card", String(id2), "--all", "--json"]))?.runs ?? [];
|
|
@@ -121146,7 +121170,7 @@ ${draftLine(ws)}
|
|
|
121146
121170
|
}
|
|
121147
121171
|
function carryArgs(verb) {
|
|
121148
121172
|
if (!["refine", "resolve", "revise", "implement"].includes(verb)) return [];
|
|
121149
|
-
const transcript = writeTranscript(job,
|
|
121173
|
+
const transcript = writeTranscript(job, path43.join(ws.board, ".sync", `${ws.task}.discussion`));
|
|
121150
121174
|
return [
|
|
121151
121175
|
...job.resume ? ["--session", job.resume, ...job.fork ? ["--fork"] : []] : [],
|
|
121152
121176
|
...transcript ? ["--transcript", transcript] : []
|
|
@@ -121165,8 +121189,8 @@ async function confirmFlowStopped(ws, job, deps) {
|
|
|
121165
121189
|
}
|
|
121166
121190
|
|
|
121167
121191
|
// src/recovery.ts
|
|
121168
|
-
import
|
|
121169
|
-
import
|
|
121192
|
+
import fs41 from "node:fs";
|
|
121193
|
+
import path44 from "node:path";
|
|
121170
121194
|
|
|
121171
121195
|
// ../cli/src/lib/agent/retry.ts
|
|
121172
121196
|
var RETRY_WINDOW_MS = 15 * 6e4;
|
|
@@ -121182,10 +121206,10 @@ function backoffMs(attempt, random = Math.random) {
|
|
|
121182
121206
|
var PREPARE_REASON = "Runner update prepare.";
|
|
121183
121207
|
var UPDATE_REASON = "Runner update checkpoint.";
|
|
121184
121208
|
var UNCERTAIN = "\u66F4\u65B0\u4E2D\u65AD\u65F6\u6709\u64CD\u4F5C\u7ED3\u679C\u5C1A\u672A\u786E\u8BA4\uFF0C\u8BF7\u68C0\u67E5\u5DF2\u6709\u7ED3\u679C\u540E\u518D\u7EED\u8DD1\u3002";
|
|
121185
|
-
var fileOf2 = (id) =>
|
|
121209
|
+
var fileOf2 = (id) => path44.join(runnerHome(), "checkpoints", `${encodeURIComponent(id)}.json`);
|
|
121186
121210
|
function readCheckpoint(id) {
|
|
121187
121211
|
try {
|
|
121188
|
-
const held4 = JSON.parse(
|
|
121212
|
+
const held4 = JSON.parse(fs41.readFileSync(fileOf2(id), "utf8"));
|
|
121189
121213
|
if (!held4 || !Array.isArray(held4.pending) || !held4.pending.every((id2) => typeof id2 === "string")) throw new Error("\u8FDB\u5EA6\u683C\u5F0F\u9519\u8BEF");
|
|
121190
121214
|
return held4;
|
|
121191
121215
|
} catch (e2) {
|
|
@@ -121195,12 +121219,12 @@ function readCheckpoint(id) {
|
|
|
121195
121219
|
}
|
|
121196
121220
|
function saveCheckpoint(id, checkpoint) {
|
|
121197
121221
|
const file2 = fileOf2(id);
|
|
121198
|
-
|
|
121199
|
-
|
|
121200
|
-
|
|
121222
|
+
fs41.mkdirSync(path44.dirname(file2), { recursive: true, mode: 448 });
|
|
121223
|
+
fs41.writeFileSync(`${file2}.tmp`, JSON.stringify(checkpoint), { mode: 384 });
|
|
121224
|
+
fs41.renameSync(`${file2}.tmp`, file2);
|
|
121201
121225
|
}
|
|
121202
121226
|
function clearCheckpoint(id) {
|
|
121203
|
-
|
|
121227
|
+
fs41.rmSync(fileOf2(id), { force: true });
|
|
121204
121228
|
}
|
|
121205
121229
|
function checkpointEvent(checkpoint, event2) {
|
|
121206
121230
|
if (event2.kind === "tool_call") {
|
|
@@ -121257,16 +121281,16 @@ function replySpent(checkpoint, runtime) {
|
|
|
121257
121281
|
|
|
121258
121282
|
// src/lock.ts
|
|
121259
121283
|
import crypto6 from "node:crypto";
|
|
121260
|
-
import
|
|
121284
|
+
import fs42 from "node:fs";
|
|
121261
121285
|
import net from "node:net";
|
|
121262
|
-
import
|
|
121286
|
+
import path45 from "node:path";
|
|
121263
121287
|
var RETRY_MS = 5e3;
|
|
121264
121288
|
var KIND_MS = 1e3;
|
|
121265
|
-
var HOLDERS = ["claude-code", "codex", "terminal"];
|
|
121289
|
+
var HOLDERS = ["claude-code", "codex", "cursor", "zcode", "terminal"];
|
|
121266
121290
|
function lockPath() {
|
|
121267
121291
|
const home4 = runnerHome();
|
|
121268
121292
|
if (process.platform === "win32") return `\\\\.\\pipe\\wildcrane-${crypto6.createHash("sha256").update(home4).digest("hex").slice(0, 16)}`;
|
|
121269
|
-
return
|
|
121293
|
+
return path45.join(home4, "runner.sock");
|
|
121270
121294
|
}
|
|
121271
121295
|
function holdMachine(kind, onHeld, onWaiting) {
|
|
121272
121296
|
const where = lockPath();
|
|
@@ -121281,7 +121305,7 @@ function holdMachine(kind, onHeld, onWaiting) {
|
|
|
121281
121305
|
const attempt = () => {
|
|
121282
121306
|
timer = null;
|
|
121283
121307
|
if (closed) return;
|
|
121284
|
-
if (process.platform !== "win32")
|
|
121308
|
+
if (process.platform !== "win32") fs42.mkdirSync(path45.dirname(where), { recursive: true, mode: 448 });
|
|
121285
121309
|
const s = net.createServer((peer) => {
|
|
121286
121310
|
peers.add(peer);
|
|
121287
121311
|
peer.on("error", () => {
|
|
@@ -121329,7 +121353,7 @@ function holdMachine(kind, onHeld, onWaiting) {
|
|
|
121329
121353
|
later(0);
|
|
121330
121354
|
});
|
|
121331
121355
|
removeIfStill.once("error", () => {
|
|
121332
|
-
|
|
121356
|
+
fs42.rmSync(where, { force: true });
|
|
121333
121357
|
later(50 + Math.random() * 200);
|
|
121334
121358
|
});
|
|
121335
121359
|
return;
|
|
@@ -121360,8 +121384,8 @@ function holdMachine(kind, onHeld, onWaiting) {
|
|
|
121360
121384
|
// src/handoff.ts
|
|
121361
121385
|
import { execFileSync as execFileSync2 } from "node:child_process";
|
|
121362
121386
|
import crypto7 from "node:crypto";
|
|
121363
|
-
import
|
|
121364
|
-
import
|
|
121387
|
+
import fs43 from "node:fs";
|
|
121388
|
+
import path46 from "node:path";
|
|
121365
121389
|
var gitRead = (cwd, args) => {
|
|
121366
121390
|
try {
|
|
121367
121391
|
return execFileSync2("git", ["-C", cwd, ...args], {
|
|
@@ -121378,8 +121402,8 @@ var digest = (value) => crypto7.createHash("sha256").update(value).digest("hex")
|
|
|
121378
121402
|
function authorizedFolder(folder) {
|
|
121379
121403
|
if (!folder) return null;
|
|
121380
121404
|
try {
|
|
121381
|
-
const real =
|
|
121382
|
-
return allowedProjects().some((root2) => real === root2 || real.startsWith(root2 +
|
|
121405
|
+
const real = fs43.realpathSync(folder);
|
|
121406
|
+
return allowedProjects().some((root2) => real === root2 || real.startsWith(root2 + path46.sep)) ? real : null;
|
|
121383
121407
|
} catch {
|
|
121384
121408
|
return null;
|
|
121385
121409
|
}
|
|
@@ -121389,9 +121413,9 @@ function progressFolder(job, folder) {
|
|
|
121389
121413
|
if (!token) return folder;
|
|
121390
121414
|
if (!/^[a-zA-Z0-9-]{1,80}$/.test(token)) return null;
|
|
121391
121415
|
try {
|
|
121392
|
-
const dir =
|
|
121393
|
-
if (!dir.startsWith(
|
|
121394
|
-
const marker = JSON.parse(
|
|
121416
|
+
const dir = fs43.realpathSync(path46.join(folder, ".akb", "handoffs", token));
|
|
121417
|
+
if (!dir.startsWith(fs43.realpathSync(folder) + path46.sep)) return null;
|
|
121418
|
+
const marker = JSON.parse(fs43.readFileSync(path46.join(dir, ".akb", "handoff.json"), "utf8"));
|
|
121395
121419
|
return marker.task === job.task && marker.isolation === token ? dir : null;
|
|
121396
121420
|
} catch {
|
|
121397
121421
|
return null;
|
|
@@ -121399,38 +121423,38 @@ function progressFolder(job, folder) {
|
|
|
121399
121423
|
}
|
|
121400
121424
|
function progressEvidence(job, folder) {
|
|
121401
121425
|
try {
|
|
121402
|
-
const board =
|
|
121403
|
-
const deliveries =
|
|
121404
|
-
const rows =
|
|
121426
|
+
const board = path46.join(folder, ".akb", "kanban");
|
|
121427
|
+
const deliveries = path46.join(board, "deliveries");
|
|
121428
|
+
const rows = fs43.readdirSync(deliveries).filter((name) => name.endsWith(".json")).map((name) => JSON.parse(fs43.readFileSync(path46.join(deliveries, name), "utf8"))).filter((row2) => row2.cardId === job.number).sort((a2, b2) => (b2.startedAt ?? 0) - (a2.startedAt ?? 0));
|
|
121405
121429
|
const row = rows[0];
|
|
121406
121430
|
if (!row?.deliveryId) return null;
|
|
121407
|
-
const tree =
|
|
121408
|
-
if (tree !==
|
|
121431
|
+
const tree = fs43.realpathSync(path46.resolve(folder, row.worktree ?? "."));
|
|
121432
|
+
if (tree !== fs43.realpathSync(folder) && !tree.startsWith(fs43.realpathSync(folder) + path46.sep)) return null;
|
|
121409
121433
|
const inventory = gitRead(tree, ["worktree", "list", "--porcelain"]);
|
|
121410
121434
|
const related = (inventory ?? "").split("\n\n").flatMap((entry) => {
|
|
121411
121435
|
const branch = /^branch refs\/heads\/(.+)$/m.exec(entry)?.[1];
|
|
121412
121436
|
const dir = /^worktree (.+)$/m.exec(entry)?.[1];
|
|
121413
|
-
return branch?.startsWith(`card/${job.number}/`) && dir && dir !== tree && dir.startsWith(
|
|
121437
|
+
return branch?.startsWith(`card/${job.number}/`) && dir && dir !== tree && dir.startsWith(fs43.realpathSync(folder) + path46.sep) ? [dir] : [];
|
|
121414
121438
|
});
|
|
121415
121439
|
const filesIn = (tree2) => {
|
|
121416
121440
|
const changed = [];
|
|
121417
121441
|
const walk = (dir, prefix = "") => {
|
|
121418
|
-
for (const entry of
|
|
121442
|
+
for (const entry of fs43.readdirSync(dir, { withFileTypes: true })) {
|
|
121419
121443
|
if ([".git", ".akb", "node_modules", ".claude", ".agents"].includes(entry.name)) continue;
|
|
121420
121444
|
const name = prefix + entry.name;
|
|
121421
|
-
if (entry.isDirectory()) walk(
|
|
121445
|
+
if (entry.isDirectory()) walk(path46.join(dir, entry.name), name + "/");
|
|
121422
121446
|
else changed.push(name);
|
|
121423
121447
|
}
|
|
121424
121448
|
};
|
|
121425
121449
|
walk(tree2);
|
|
121426
121450
|
changed.sort();
|
|
121427
121451
|
return changed.map((name) => {
|
|
121428
|
-
const file2 =
|
|
121452
|
+
const file2 = path46.join(tree2, name);
|
|
121429
121453
|
try {
|
|
121430
|
-
const stat =
|
|
121431
|
-
if (stat.isSymbolicLink()) return [name, "link", digest(
|
|
121454
|
+
const stat = fs43.lstatSync(file2);
|
|
121455
|
+
if (stat.isSymbolicLink()) return [name, "link", digest(fs43.readlinkSync(file2))];
|
|
121432
121456
|
if (!stat.isFile()) throw new Error("\u65E0\u6CD5\u9A8C\u8BC1\u6587\u4EF6\u7C7B\u578B");
|
|
121433
|
-
return [name, stat.mode & 511, digest(
|
|
121457
|
+
return [name, stat.mode & 511, digest(fs43.readFileSync(file2))];
|
|
121434
121458
|
} catch (e2) {
|
|
121435
121459
|
if (e2.code === "ENOENT") return [name, "deleted"];
|
|
121436
121460
|
throw e2;
|
|
@@ -121467,60 +121491,60 @@ function progressEvidence(job, folder) {
|
|
|
121467
121491
|
function restartFolder(job, folder) {
|
|
121468
121492
|
const token = job.handoff?.isolation ?? job.id;
|
|
121469
121493
|
if (!/^[a-zA-Z0-9-]{1,80}$/.test(token)) throw new Error("\u9694\u79BB\u76EE\u5F55\u7F16\u53F7\u65E0\u6548\u3002");
|
|
121470
|
-
const dir =
|
|
121471
|
-
const marker =
|
|
121472
|
-
for (const parent of [
|
|
121473
|
-
if (
|
|
121494
|
+
const dir = path46.join(folder, ".akb", "handoffs", token);
|
|
121495
|
+
const marker = path46.join(dir, ".akb", "handoff.json");
|
|
121496
|
+
for (const parent of [path46.join(folder, ".akb"), path46.dirname(dir), dir]) {
|
|
121497
|
+
if (fs43.lstatSync(parent, { throwIfNoEntry: false })?.isSymbolicLink()) throw new Error("\u9694\u79BB\u76EE\u5F55\u4E0D\u80FD\u901A\u8FC7\u7B26\u53F7\u94FE\u63A5\u521B\u5EFA\u3002");
|
|
121474
121498
|
}
|
|
121475
|
-
if (
|
|
121499
|
+
if (fs43.existsSync(dir)) {
|
|
121476
121500
|
if (job.handoff?.recovering) {
|
|
121477
121501
|
try {
|
|
121478
|
-
const saved = JSON.parse(
|
|
121502
|
+
const saved = JSON.parse(fs43.readFileSync(marker, "utf8"));
|
|
121479
121503
|
if (saved.task === job.task && saved.isolation === token) return dir;
|
|
121480
121504
|
} catch {
|
|
121481
121505
|
}
|
|
121482
121506
|
}
|
|
121483
121507
|
throw new Error("\u91CD\u542F\u76EE\u5F55\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u68C0\u67E5\u3002");
|
|
121484
121508
|
}
|
|
121485
|
-
|
|
121486
|
-
|
|
121487
|
-
for (const entry of
|
|
121509
|
+
fs43.mkdirSync(path46.dirname(dir), { recursive: true });
|
|
121510
|
+
fs43.mkdirSync(dir);
|
|
121511
|
+
for (const entry of fs43.readdirSync(folder)) {
|
|
121488
121512
|
if ([".akb", ".git", "node_modules", ".claude", ".agents"].includes(entry)) continue;
|
|
121489
|
-
|
|
121513
|
+
fs43.cpSync(path46.join(folder, entry), path46.join(dir, entry), { recursive: true, verbatimSymlinks: true });
|
|
121490
121514
|
}
|
|
121491
|
-
if (
|
|
121492
|
-
|
|
121493
|
-
|
|
121515
|
+
if (fs43.lstatSync(path46.dirname(marker), { throwIfNoEntry: false })?.isSymbolicLink()) throw new Error("\u9694\u79BB\u6807\u8BB0\u76EE\u5F55\u65E0\u6548\u3002");
|
|
121516
|
+
fs43.mkdirSync(path46.dirname(marker), { recursive: true });
|
|
121517
|
+
fs43.writeFileSync(marker, JSON.stringify({ task: job.task, isolation: token }), { flag: "wx" });
|
|
121494
121518
|
return dir;
|
|
121495
121519
|
}
|
|
121496
121520
|
|
|
121497
121521
|
// src/jobs.ts
|
|
121498
121522
|
import { spawn as spawn4 } from "node:child_process";
|
|
121499
|
-
import
|
|
121500
|
-
import
|
|
121523
|
+
import fs45 from "node:fs";
|
|
121524
|
+
import path48 from "node:path";
|
|
121501
121525
|
|
|
121502
121526
|
// ../cli/src/lib/agent/catalog.ts
|
|
121503
|
-
import
|
|
121504
|
-
import
|
|
121527
|
+
import fs44 from "node:fs";
|
|
121528
|
+
import path47 from "node:path";
|
|
121505
121529
|
var CATALOGUE = "https://models.dev/api.json";
|
|
121506
121530
|
var FRESH_FOR_MS = 24 * 60 * 6e4;
|
|
121507
121531
|
var ANSWER_BY_MS = 2e4;
|
|
121508
121532
|
function cacheFile() {
|
|
121509
|
-
return
|
|
121533
|
+
return path47.join(machineHome(), "models-dev.json");
|
|
121510
121534
|
}
|
|
121511
121535
|
var held2;
|
|
121512
121536
|
function readCache() {
|
|
121513
121537
|
const file2 = cacheFile();
|
|
121514
121538
|
let stamp3;
|
|
121515
121539
|
try {
|
|
121516
|
-
const stat =
|
|
121540
|
+
const stat = fs44.statSync(file2);
|
|
121517
121541
|
stamp3 = `${stat.mtimeMs}:${stat.size}`;
|
|
121518
121542
|
} catch {
|
|
121519
121543
|
return void 0;
|
|
121520
121544
|
}
|
|
121521
121545
|
if (held2?.stamp === stamp3) return held2.cached;
|
|
121522
121546
|
try {
|
|
121523
|
-
const data = JSON.parse(
|
|
121547
|
+
const data = JSON.parse(fs44.readFileSync(file2, "utf8"));
|
|
121524
121548
|
if (!data || typeof data.limits !== "object" || !data.limits) return void 0;
|
|
121525
121549
|
const cached2 = {
|
|
121526
121550
|
fetchedAt: typeof data.fetchedAt === "number" ? data.fetchedAt : 0,
|
|
@@ -121559,8 +121583,8 @@ function refreshCatalog() {
|
|
|
121559
121583
|
const limits = limitsIn(await answer.json());
|
|
121560
121584
|
if (Object.keys(limits).length === 0) return;
|
|
121561
121585
|
const file2 = cacheFile();
|
|
121562
|
-
|
|
121563
|
-
|
|
121586
|
+
fs44.mkdirSync(path47.dirname(file2), { recursive: true });
|
|
121587
|
+
fs44.writeFileSync(file2, JSON.stringify({ fetchedAt: Date.now(), limits }));
|
|
121564
121588
|
} catch {
|
|
121565
121589
|
}
|
|
121566
121590
|
})();
|
|
@@ -121635,32 +121659,32 @@ var defaultDeps = (machineId2) => ({
|
|
|
121635
121659
|
akb: currentAkb,
|
|
121636
121660
|
runtimes: detectRuntimes
|
|
121637
121661
|
});
|
|
121638
|
-
var ownFolder = () =>
|
|
121662
|
+
var ownFolder = () => path48.join(runnerHome(), "work");
|
|
121639
121663
|
function folderFor(job) {
|
|
121640
121664
|
if (!job.projectDir) {
|
|
121641
|
-
const cwd =
|
|
121642
|
-
|
|
121665
|
+
const cwd = path48.join(ownFolder(), job.id);
|
|
121666
|
+
fs45.mkdirSync(cwd, { recursive: true });
|
|
121643
121667
|
return { cwd };
|
|
121644
121668
|
}
|
|
121645
121669
|
const real = realpath4(job.projectDir);
|
|
121646
|
-
if (real && allowedProjects().some((root2) => real === root2 || real.startsWith(root2 +
|
|
121670
|
+
if (real && allowedProjects().some((root2) => real === root2 || real.startsWith(root2 + path48.sep))) return { cwd: real };
|
|
121647
121671
|
return { refused: `This Runner is not allowed to work in ${job.projectDir}.` };
|
|
121648
121672
|
}
|
|
121649
121673
|
function realpath4(p2) {
|
|
121650
121674
|
try {
|
|
121651
|
-
return
|
|
121675
|
+
return fs45.realpathSync(p2);
|
|
121652
121676
|
} catch {
|
|
121653
121677
|
return null;
|
|
121654
121678
|
}
|
|
121655
121679
|
}
|
|
121656
|
-
var attachmentsOf = (job) =>
|
|
121680
|
+
var attachmentsOf = (job) => path48.join(runnerHome(), "attachments", job.id);
|
|
121657
121681
|
function writeAttachments(job) {
|
|
121658
121682
|
if (!job.attachments.length) return "";
|
|
121659
121683
|
const dir = attachmentsOf(job);
|
|
121660
|
-
|
|
121684
|
+
fs45.mkdirSync(dir, { recursive: true });
|
|
121661
121685
|
const files = job.attachments.map((a2) => {
|
|
121662
|
-
const file2 =
|
|
121663
|
-
|
|
121686
|
+
const file2 = path48.join(dir, path48.basename(a2.name));
|
|
121687
|
+
fs45.writeFileSync(file2, Buffer.from(a2.content, "base64"));
|
|
121664
121688
|
return file2;
|
|
121665
121689
|
});
|
|
121666
121690
|
return `
|
|
@@ -121943,7 +121967,7 @@ async function runJob(id, deps, track = () => {
|
|
|
121943
121967
|
await runClaimed(job, { ...deps, akb: deps.akb() }, track, (dir) => releases.push(hold(dir)), lease);
|
|
121944
121968
|
} finally {
|
|
121945
121969
|
for (const release2 of releases) release2();
|
|
121946
|
-
|
|
121970
|
+
fs45.rmSync(attachmentsOf(job), { recursive: true, force: true });
|
|
121947
121971
|
}
|
|
121948
121972
|
}
|
|
121949
121973
|
async function runClaimed(job, deps, track, keep2, lease, replyStream) {
|
|
@@ -122066,7 +122090,7 @@ async function runClaimed(job, deps, track, keep2, lease, replyStream) {
|
|
|
122066
122090
|
discussed = board.board;
|
|
122067
122091
|
}
|
|
122068
122092
|
if (job.discussion) {
|
|
122069
|
-
const wrote = recovering &&
|
|
122093
|
+
const wrote = recovering && fs45.existsSync(goalsFileOf(job)) ? { file: goalsFileOf(job) } : await writeGoals({ ...job, discussion: job.discussion }, deps.api.listWorkflows);
|
|
122070
122094
|
if ("error" in wrote) throw new Error(wrote.error);
|
|
122071
122095
|
goalFile = wrote.file;
|
|
122072
122096
|
}
|
|
@@ -122501,8 +122525,8 @@ async function runTest(job, deps, lease) {
|
|
|
122501
122525
|
const report2 = (await deps.runtimes()).find((r2) => r2.name === job.runtime);
|
|
122502
122526
|
if (!report2?.installed) return finish2("failed", "not_installed");
|
|
122503
122527
|
if (report2.loggedIn === false) return finish2("failed", "signed_out");
|
|
122504
|
-
const cwd =
|
|
122505
|
-
|
|
122528
|
+
const cwd = path48.join(ownFolder(), "test");
|
|
122529
|
+
fs45.mkdirSync(cwd, { recursive: true });
|
|
122506
122530
|
const run2 = deps.plan(job.runtime, job.prompt, cwd, null, job.model, settingsOf(job));
|
|
122507
122531
|
const startedAt = Date.now();
|
|
122508
122532
|
if (run2.converse) {
|
|
@@ -122953,7 +122977,7 @@ function startRunner(options) {
|
|
|
122953
122977
|
let refresh2 = "";
|
|
122954
122978
|
const accountWatch = setInterval(() => {
|
|
122955
122979
|
try {
|
|
122956
|
-
const value =
|
|
122980
|
+
const value = fs46.readFileSync(path49.join(runnerHome(), "settings-refresh"), "utf8");
|
|
122957
122981
|
if (value !== refresh2) {
|
|
122958
122982
|
refresh2 = value;
|
|
122959
122983
|
redetect = true;
|
|
@@ -123097,7 +123121,7 @@ async function main() {
|
|
|
123097
123121
|
const id = machineId();
|
|
123098
123122
|
const runner = startRunner({
|
|
123099
123123
|
registration: async () => ({ machineId: id, machineName: machineName(), version: VERSION, runtimes: await detectRuntimes(true) }),
|
|
123100
|
-
kind:
|
|
123124
|
+
kind: ["claude-code", "codex", "cursor", "zcode"].find((k2) => k2 === process.env.WILDCRANE_RUNNER_KIND) ?? "terminal",
|
|
123101
123125
|
onConnected: () => tell({ type: "connected" }),
|
|
123102
123126
|
onWaiting: () => tell({ type: "waiting" }),
|
|
123103
123127
|
// Tests shorten the job poll, which stands in when Realtime is out of reach.
|