wildcrane-runner 0.6.25 → 0.6.26
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/README.md +1 -1
- package/dist/akb/dist/kanban.mjs +803 -981
- package/dist/akb/package.json +1 -1
- package/dist/akb-proxy.mjs +26745 -0
- package/dist/launcher.mjs +239 -231
- package/dist/runner.mjs +435 -426
- package/package.json +1 -1
package/dist/akb/dist/kanban.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// ai4kanban 0.11.
|
|
2
|
+
// ai4kanban 0.11.23 — built by runner/scripts/build.mjs. Do not edit.
|
|
3
3
|
import { createRequire as __ai4kanbanRequire } from 'node:module'
|
|
4
4
|
const require = __ai4kanbanRequire(import.meta.url)
|
|
5
5
|
var __create = Object.create;
|
|
@@ -876,9 +876,9 @@ var init_goal_cloud = __esm({
|
|
|
876
876
|
}
|
|
877
877
|
});
|
|
878
878
|
|
|
879
|
-
//
|
|
879
|
+
// ../cli/node_modules/commander/lib/error.js
|
|
880
880
|
var require_error = __commonJS({
|
|
881
|
-
"
|
|
881
|
+
"../cli/node_modules/commander/lib/error.js"(exports) {
|
|
882
882
|
var CommanderError2 = class extends Error {
|
|
883
883
|
/**
|
|
884
884
|
* Constructs the CommanderError class
|
|
@@ -911,9 +911,9 @@ var require_error = __commonJS({
|
|
|
911
911
|
}
|
|
912
912
|
});
|
|
913
913
|
|
|
914
|
-
//
|
|
914
|
+
// ../cli/node_modules/commander/lib/argument.js
|
|
915
915
|
var require_argument = __commonJS({
|
|
916
|
-
"
|
|
916
|
+
"../cli/node_modules/commander/lib/argument.js"(exports) {
|
|
917
917
|
var { InvalidArgumentError: InvalidArgumentError2 } = require_error();
|
|
918
918
|
var Argument2 = class {
|
|
919
919
|
/**
|
|
@@ -1038,9 +1038,9 @@ var require_argument = __commonJS({
|
|
|
1038
1038
|
}
|
|
1039
1039
|
});
|
|
1040
1040
|
|
|
1041
|
-
//
|
|
1041
|
+
// ../cli/node_modules/commander/lib/help.js
|
|
1042
1042
|
var require_help = __commonJS({
|
|
1043
|
-
"
|
|
1043
|
+
"../cli/node_modules/commander/lib/help.js"(exports) {
|
|
1044
1044
|
var { humanReadableArgName } = require_argument();
|
|
1045
1045
|
var Help2 = class {
|
|
1046
1046
|
constructor() {
|
|
@@ -1607,9 +1607,9 @@ ${itemIndentStr}`);
|
|
|
1607
1607
|
}
|
|
1608
1608
|
});
|
|
1609
1609
|
|
|
1610
|
-
//
|
|
1610
|
+
// ../cli/node_modules/commander/lib/option.js
|
|
1611
1611
|
var require_option = __commonJS({
|
|
1612
|
-
"
|
|
1612
|
+
"../cli/node_modules/commander/lib/option.js"(exports) {
|
|
1613
1613
|
var { InvalidArgumentError: InvalidArgumentError2 } = require_error();
|
|
1614
1614
|
var Option2 = class {
|
|
1615
1615
|
/**
|
|
@@ -1908,9 +1908,9 @@ var require_option = __commonJS({
|
|
|
1908
1908
|
}
|
|
1909
1909
|
});
|
|
1910
1910
|
|
|
1911
|
-
//
|
|
1911
|
+
// ../cli/node_modules/commander/lib/suggestSimilar.js
|
|
1912
1912
|
var require_suggestSimilar = __commonJS({
|
|
1913
|
-
"
|
|
1913
|
+
"../cli/node_modules/commander/lib/suggestSimilar.js"(exports) {
|
|
1914
1914
|
var maxDistance = 3;
|
|
1915
1915
|
function editDistance2(a2, b2) {
|
|
1916
1916
|
if (Math.abs(a2.length - b2.length) > maxDistance)
|
|
@@ -1988,13 +1988,13 @@ var require_suggestSimilar = __commonJS({
|
|
|
1988
1988
|
}
|
|
1989
1989
|
});
|
|
1990
1990
|
|
|
1991
|
-
//
|
|
1991
|
+
// ../cli/node_modules/commander/lib/command.js
|
|
1992
1992
|
var require_command = __commonJS({
|
|
1993
|
-
"
|
|
1993
|
+
"../cli/node_modules/commander/lib/command.js"(exports) {
|
|
1994
1994
|
var EventEmitter = __require("node:events").EventEmitter;
|
|
1995
1995
|
var childProcess = __require("node:child_process");
|
|
1996
|
-
var
|
|
1997
|
-
var
|
|
1996
|
+
var path87 = __require("node:path");
|
|
1997
|
+
var fs88 = __require("node:fs");
|
|
1998
1998
|
var process2 = __require("node:process");
|
|
1999
1999
|
var { Argument: Argument2, humanReadableArgName } = require_argument();
|
|
2000
2000
|
var { CommanderError: CommanderError2 } = require_error();
|
|
@@ -2975,7 +2975,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2975
2975
|
* @param {string} subcommandName
|
|
2976
2976
|
*/
|
|
2977
2977
|
_checkForMissingExecutable(executableFile, executableDir, subcommandName) {
|
|
2978
|
-
if (
|
|
2978
|
+
if (fs88.existsSync(executableFile)) return;
|
|
2979
2979
|
const executableDirMessage = executableDir ? `searched for local subcommand relative to directory '${executableDir}'` : "no directory for search for local subcommand, use .executableDir() to supply a custom directory";
|
|
2980
2980
|
const executableMissing = `'${executableFile}' does not exist
|
|
2981
2981
|
- if '${subcommandName}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
@@ -2993,11 +2993,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2993
2993
|
let launchWithNode = false;
|
|
2994
2994
|
const sourceExt = [".js", ".ts", ".tsx", ".mjs", ".cjs"];
|
|
2995
2995
|
function findFile(baseDir, baseName) {
|
|
2996
|
-
const localBin =
|
|
2997
|
-
if (
|
|
2998
|
-
if (sourceExt.includes(
|
|
2996
|
+
const localBin = path87.resolve(baseDir, baseName);
|
|
2997
|
+
if (fs88.existsSync(localBin)) return localBin;
|
|
2998
|
+
if (sourceExt.includes(path87.extname(baseName))) return void 0;
|
|
2999
2999
|
const foundExt = sourceExt.find(
|
|
3000
|
-
(ext) =>
|
|
3000
|
+
(ext) => fs88.existsSync(`${localBin}${ext}`)
|
|
3001
3001
|
);
|
|
3002
3002
|
if (foundExt) return `${localBin}${foundExt}`;
|
|
3003
3003
|
return void 0;
|
|
@@ -3009,21 +3009,21 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
3009
3009
|
if (this._scriptPath) {
|
|
3010
3010
|
let resolvedScriptPath;
|
|
3011
3011
|
try {
|
|
3012
|
-
resolvedScriptPath =
|
|
3012
|
+
resolvedScriptPath = fs88.realpathSync(this._scriptPath);
|
|
3013
3013
|
} catch {
|
|
3014
3014
|
resolvedScriptPath = this._scriptPath;
|
|
3015
3015
|
}
|
|
3016
|
-
executableDir =
|
|
3017
|
-
|
|
3016
|
+
executableDir = path87.resolve(
|
|
3017
|
+
path87.dirname(resolvedScriptPath),
|
|
3018
3018
|
executableDir
|
|
3019
3019
|
);
|
|
3020
3020
|
}
|
|
3021
3021
|
if (executableDir) {
|
|
3022
3022
|
let localFile = findFile(executableDir, executableFile);
|
|
3023
3023
|
if (!localFile && !subcommand._executableFile && this._scriptPath) {
|
|
3024
|
-
const legacyName =
|
|
3024
|
+
const legacyName = path87.basename(
|
|
3025
3025
|
this._scriptPath,
|
|
3026
|
-
|
|
3026
|
+
path87.extname(this._scriptPath)
|
|
3027
3027
|
);
|
|
3028
3028
|
if (legacyName !== this._name) {
|
|
3029
3029
|
localFile = findFile(
|
|
@@ -3034,7 +3034,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
3034
3034
|
}
|
|
3035
3035
|
executableFile = localFile || executableFile;
|
|
3036
3036
|
}
|
|
3037
|
-
launchWithNode = sourceExt.includes(
|
|
3037
|
+
launchWithNode = sourceExt.includes(path87.extname(executableFile));
|
|
3038
3038
|
let proc;
|
|
3039
3039
|
if (process2.platform !== "win32") {
|
|
3040
3040
|
if (launchWithNode) {
|
|
@@ -3881,7 +3881,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
3881
3881
|
* @return {Command}
|
|
3882
3882
|
*/
|
|
3883
3883
|
nameFromFilename(filename) {
|
|
3884
|
-
this._name =
|
|
3884
|
+
this._name = path87.basename(filename, path87.extname(filename));
|
|
3885
3885
|
return this;
|
|
3886
3886
|
}
|
|
3887
3887
|
/**
|
|
@@ -3895,9 +3895,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
3895
3895
|
* @param {string} [path]
|
|
3896
3896
|
* @return {(string|null|Command)}
|
|
3897
3897
|
*/
|
|
3898
|
-
executableDir(
|
|
3899
|
-
if (
|
|
3900
|
-
this._executableDir =
|
|
3898
|
+
executableDir(path88) {
|
|
3899
|
+
if (path88 === void 0) return this._executableDir;
|
|
3900
|
+
this._executableDir = path88;
|
|
3901
3901
|
return this;
|
|
3902
3902
|
}
|
|
3903
3903
|
/**
|
|
@@ -4147,9 +4147,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
4147
4147
|
}
|
|
4148
4148
|
});
|
|
4149
4149
|
|
|
4150
|
-
//
|
|
4150
|
+
// ../cli/node_modules/commander/index.js
|
|
4151
4151
|
var require_commander = __commonJS({
|
|
4152
|
-
"
|
|
4152
|
+
"../cli/node_modules/commander/index.js"(exports) {
|
|
4153
4153
|
var { Argument: Argument2 } = require_argument();
|
|
4154
4154
|
var { Command: Command2 } = require_command();
|
|
4155
4155
|
var { CommanderError: CommanderError2, InvalidArgumentError: InvalidArgumentError2 } = require_error();
|
|
@@ -4169,10 +4169,10 @@ var require_commander = __commonJS({
|
|
|
4169
4169
|
}
|
|
4170
4170
|
});
|
|
4171
4171
|
|
|
4172
|
-
//
|
|
4172
|
+
// ../cli/node_modules/commander/esm.mjs
|
|
4173
4173
|
var import_index, program, createCommand, createArgument, createOption, CommanderError, InvalidArgumentError, InvalidOptionArgumentError, Command, Argument, Option, Help;
|
|
4174
4174
|
var init_esm = __esm({
|
|
4175
|
-
"
|
|
4175
|
+
"../cli/node_modules/commander/esm.mjs"() {
|
|
4176
4176
|
import_index = __toESM(require_commander(), 1);
|
|
4177
4177
|
({
|
|
4178
4178
|
program,
|
|
@@ -5758,7 +5758,7 @@ var init_package = __esm({
|
|
|
5758
5758
|
"../cli/package.json"() {
|
|
5759
5759
|
package_default = {
|
|
5760
5760
|
name: "wildcrane",
|
|
5761
|
-
version: "0.11.
|
|
5761
|
+
version: "0.11.23",
|
|
5762
5762
|
akbContract: 7,
|
|
5763
5763
|
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.",
|
|
5764
5764
|
keywords: [
|
|
@@ -6366,15 +6366,15 @@ var init_file_memo = __esm({
|
|
|
6366
6366
|
});
|
|
6367
6367
|
|
|
6368
6368
|
// ../cloud/src/board-files.ts
|
|
6369
|
-
function isBoardPath(
|
|
6370
|
-
if (!
|
|
6371
|
-
if (
|
|
6372
|
-
if (
|
|
6373
|
-
if (
|
|
6374
|
-
if (SETTINGS.includes(
|
|
6375
|
-
if (
|
|
6376
|
-
if (
|
|
6377
|
-
return ROOTS.some((root2) =>
|
|
6369
|
+
function isBoardPath(path87) {
|
|
6370
|
+
if (!path87 || path87.length > 500 || path87.startsWith("/") || path87.includes("\\") || path87.includes("\0")) return false;
|
|
6371
|
+
if (path87.split("/").some((part) => !part || part === "." || part === "..")) return false;
|
|
6372
|
+
if (path87 === "todo/README.md" || path87.split("/").includes(".sync")) return false;
|
|
6373
|
+
if (path87.startsWith("workflows/")) return true;
|
|
6374
|
+
if (SETTINGS.includes(path87)) return true;
|
|
6375
|
+
if (path87.startsWith("rules/")) return isSettingsPath(path87);
|
|
6376
|
+
if (path87.startsWith("assets/")) return path87.endsWith(".json");
|
|
6377
|
+
return ROOTS.some((root2) => path87.startsWith(root2)) && path87.endsWith(".md");
|
|
6378
6378
|
}
|
|
6379
6379
|
var ROOTS, SETTINGS, isSettingsPath, BOARD_FILE_LIMIT, cardSlug, workflowFolder, workflowName, draftFolder;
|
|
6380
6380
|
var init_board_files = __esm({
|
|
@@ -6382,7 +6382,7 @@ var init_board_files = __esm({
|
|
|
6382
6382
|
"use strict";
|
|
6383
6383
|
ROOTS = ["todo/", ".archive/", "memory/", "workflows/", "triage/", "assets/", "rules/"];
|
|
6384
6384
|
SETTINGS = ["modules.md", "config.md"];
|
|
6385
|
-
isSettingsPath = (
|
|
6385
|
+
isSettingsPath = (path87) => SETTINGS.includes(path87) || /^rules\/(?:workflows\/)?[^/]+\.md$/.test(path87);
|
|
6386
6386
|
BOARD_FILE_LIMIT = 256 * 1024;
|
|
6387
6387
|
cardSlug = (task) => task.toLowerCase().replace(/_/g, "-");
|
|
6388
6388
|
workflowFolder = (id) => id.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
|
|
@@ -8255,10 +8255,10 @@ function findRollout(threadId) {
|
|
|
8255
8255
|
}
|
|
8256
8256
|
for (const name of names3) {
|
|
8257
8257
|
if (!name.startsWith("rollout-") || !name.endsWith(tail2)) continue;
|
|
8258
|
-
const
|
|
8258
|
+
const path87 = join(dir, name);
|
|
8259
8259
|
try {
|
|
8260
|
-
const at2 = statSync(
|
|
8261
|
-
if (!newest2 || at2 > newest2.at) newest2 = { path:
|
|
8260
|
+
const at2 = statSync(path87).mtimeMs;
|
|
8261
|
+
if (!newest2 || at2 > newest2.at) newest2 = { path: path87, at: at2 };
|
|
8262
8262
|
} catch {
|
|
8263
8263
|
}
|
|
8264
8264
|
}
|
|
@@ -8266,11 +8266,11 @@ function findRollout(threadId) {
|
|
|
8266
8266
|
return newest2?.path;
|
|
8267
8267
|
}
|
|
8268
8268
|
function readCodexRunFacts(threadId) {
|
|
8269
|
-
const
|
|
8270
|
-
if (!
|
|
8269
|
+
const path87 = findRollout(threadId);
|
|
8270
|
+
if (!path87) return void 0;
|
|
8271
8271
|
let raw;
|
|
8272
8272
|
try {
|
|
8273
|
-
raw = readFileSync(
|
|
8273
|
+
raw = readFileSync(path87, "utf8");
|
|
8274
8274
|
} catch {
|
|
8275
8275
|
return void 0;
|
|
8276
8276
|
}
|
|
@@ -8398,8 +8398,8 @@ function renderCompleted(item) {
|
|
|
8398
8398
|
const changes = Array.isArray(item.changes) ? item.changes : [];
|
|
8399
8399
|
return changes.map((raw) => {
|
|
8400
8400
|
const change2 = obj(raw);
|
|
8401
|
-
const
|
|
8402
|
-
return
|
|
8401
|
+
const path87 = str2(change2.path);
|
|
8402
|
+
return path87 ? `\u23FA ${str2(change2.kind) || "change"}(${path87})
|
|
8403
8403
|
` : "";
|
|
8404
8404
|
}).join("");
|
|
8405
8405
|
}
|
|
@@ -8661,10 +8661,10 @@ function readKimiRunFacts(sessionId) {
|
|
|
8661
8661
|
const total = { input: 0, cacheCreation: 0, cacheRead: 0, output: 0 };
|
|
8662
8662
|
let model;
|
|
8663
8663
|
let holding = 0;
|
|
8664
|
-
for (const { path:
|
|
8664
|
+
for (const { path: path87, main } of wireFiles(entry.sessionDir)) {
|
|
8665
8665
|
let raw;
|
|
8666
8666
|
try {
|
|
8667
|
-
raw = readFileSync2(
|
|
8667
|
+
raw = readFileSync2(path87, "utf8");
|
|
8668
8668
|
} catch {
|
|
8669
8669
|
continue;
|
|
8670
8670
|
}
|
|
@@ -8945,8 +8945,8 @@ var init_tail = __esm({
|
|
|
8945
8945
|
import fs28 from "node:fs";
|
|
8946
8946
|
function whereHint(update2, title) {
|
|
8947
8947
|
const locations = Array.isArray(update2.locations) ? update2.locations : [];
|
|
8948
|
-
const
|
|
8949
|
-
return
|
|
8948
|
+
const path87 = str2(obj(locations[0]).path);
|
|
8949
|
+
return path87 && !title.includes(path87) ? hint(path87) : "";
|
|
8950
8950
|
}
|
|
8951
8951
|
function saidBy(update2) {
|
|
8952
8952
|
const content = Array.isArray(update2.content) ? update2.content : [];
|
|
@@ -11116,8 +11116,6 @@ var init_language = __esm({
|
|
|
11116
11116
|
systemLanguages = /* @__PURE__ */ new Set([
|
|
11117
11117
|
SYSTEM_LANGUAGE_ZH,
|
|
11118
11118
|
SYSTEM_LANGUAGE_EN,
|
|
11119
|
-
"\u7528\u4E2D\u6587\u56DE\u590D\u3002\u6210\u679C\u8BED\u8A00\u4F9D\u6B21\u9075\u5FAA\u7528\u6237\u660E\u786E\u8981\u6C42\u3001\u6210\u679C\u4E13\u7528\u6307\u4EE4\u3001\u65E2\u6709\u6210\u679C\u6216\u9879\u76EE\u60EF\u4F8B\uFF0C\u6700\u540E\u91C7\u7528\u672C\u6B21\u8BF7\u6C42\u7684\u8BED\u8A00\u3002\u4EE3\u7801\u3001\u547D\u4EE4\u3001\u6587\u4EF6\u540D\u548C\u5B57\u6BB5\u540D\u4FDD\u6301\u539F\u6587\u3002",
|
|
11120
|
-
"Reply in English. Artifact language follows explicit user requests, artifact instructions, existing or project conventions, then the current request's language. Keep code, commands, filenames, and field names unchanged.",
|
|
11121
11119
|
"\u65E0\u8BBA\u5BF9\u8BDD\u91CC\u7684\u5361\u7247\u3001\u4EE3\u7801\u548C\u8D34\u8FDB\u6765\u7684\u5185\u5BB9\u662F\u4EC0\u4E48\u8BED\u8A00\uFF0C\u56DE\u590D\u548C\u5199\u4E0B\u7684\u5185\u5BB9\u90FD\u7528\u4E2D\u6587\u3002\u4EE3\u7801\u3001\u547D\u4EE4\u3001\u6587\u4EF6\u540D\u548C\u5B57\u6BB5\u540D\u4FDD\u6301\u539F\u6587\u3002",
|
|
11122
11120
|
"\u5BF9\u8BDD\u548C\u89E3\u91CA\u4F7F\u7528\u4E2D\u6587\uFF1B\u4EA7\u7269\u4F7F\u7528\u7528\u6237\u660E\u786E\u6307\u5B9A\u7684\u8BED\u8A00\uFF0C\u5426\u5219\u4F7F\u7528\u6240\u5C5E agent \u660E\u786E\u6307\u5B9A\u7684\u8BED\u8A00\uFF0C\u5747\u672A\u6307\u5B9A\u65F6\u4F7F\u7528\u4E2D\u6587\u3002\u4EE3\u7801\u3001\u547D\u4EE4\u3001\u6587\u4EF6\u540D\u548C\u5B57\u6BB5\u540D\u4FDD\u6301\u539F\u6587\u3002",
|
|
11123
11121
|
"Use English for conversation and explanations. For artifacts, use the language explicitly specified by the user, otherwise the responsible agent, otherwise English. Keep code, commands, filenames, and field names unchanged."
|
|
@@ -13610,42 +13608,12 @@ function boardWorkflowDefs() {
|
|
|
13610
13608
|
const mine = draft ? readFolder2(draft, problems) : null;
|
|
13611
13609
|
return { defs: mine ? [...defs, mine] : defs, problems };
|
|
13612
13610
|
}
|
|
13613
|
-
function localWorkflowFolders() {
|
|
13614
|
-
let folders2;
|
|
13615
|
-
try {
|
|
13616
|
-
folders2 = fs38.readdirSync(WORKFLOWS, { withFileTypes: true }).filter((e2) => e2.isDirectory() && !e2.name.startsWith(".") && !e2.name.startsWith("task-")).map((e2) => e2.name).sort((a2, b2) => a2.localeCompare(b2, "en", { numeric: true }));
|
|
13617
|
-
} catch {
|
|
13618
|
-
return [];
|
|
13619
|
-
}
|
|
13620
|
-
return folders2.map((id) => {
|
|
13621
|
-
const problems = [];
|
|
13622
|
-
const def = readFolder2(id, problems);
|
|
13623
|
-
return { id, def, ...problems[0] ? { problem: problems[0] } : {} };
|
|
13624
|
-
});
|
|
13625
|
-
}
|
|
13626
|
-
function localWorkflowFiles(id) {
|
|
13627
|
-
const dir = path40.join(WORKFLOWS, id);
|
|
13628
|
-
const out = {};
|
|
13629
|
-
const walk3 = (at2) => {
|
|
13630
|
-
for (const e2 of fs38.readdirSync(at2, { withFileTypes: true })) {
|
|
13631
|
-
const full = path40.join(at2, e2.name);
|
|
13632
|
-
if (e2.isDirectory()) walk3(full);
|
|
13633
|
-
else out[path40.relative(dir, full).split(path40.sep).join("/")] = fs38.readFileSync(full, "utf8");
|
|
13634
|
-
}
|
|
13635
|
-
};
|
|
13636
|
-
walk3(dir);
|
|
13637
|
-
return out;
|
|
13638
|
-
}
|
|
13639
13611
|
function writeWorkflowDef(def) {
|
|
13640
13612
|
const file = fileOf(def.id);
|
|
13641
13613
|
fs38.mkdirSync(path40.dirname(file), { recursive: true });
|
|
13642
13614
|
fs38.writeFileSync(file, workflowFileText(def));
|
|
13643
13615
|
forgetFileMemos();
|
|
13644
13616
|
}
|
|
13645
|
-
function removeWorkflowDef(id) {
|
|
13646
|
-
fs38.rmSync(path40.join(WORKFLOWS, id), { recursive: true, force: true });
|
|
13647
|
-
forgetFileMemos();
|
|
13648
|
-
}
|
|
13649
13617
|
var WORKFLOW_FILE2, scalar, plain, flowList, builtinDefs, fileOf;
|
|
13650
13618
|
var init_workflow_file = __esm({
|
|
13651
13619
|
"../cli/src/lib/agent/workflow-file.ts"() {
|
|
@@ -13711,31 +13679,6 @@ function resolveOne(cfg, def, builtIn) {
|
|
|
13711
13679
|
rules: def.rules
|
|
13712
13680
|
};
|
|
13713
13681
|
}
|
|
13714
|
-
function dropBuiltinChanges() {
|
|
13715
|
-
const dropped = [];
|
|
13716
|
-
const all2 = configBlock(workflowsBlock(safeConfig()).stages);
|
|
13717
|
-
for (const [id, flow] of Object.entries(all2)) {
|
|
13718
|
-
for (const key of Object.keys(configBlock(flow))) {
|
|
13719
|
-
if (key !== SCHEDULE) dropped.push(`\`${id}\`: the board's own ${key === PREVIEWS ? "preview" : key === LAND ? "land" : key} settings no longer apply \u2014 workflows are edited on the web`);
|
|
13720
|
-
}
|
|
13721
|
-
}
|
|
13722
|
-
if (!dropped.length) return [];
|
|
13723
|
-
writeConfig((raw) => {
|
|
13724
|
-
const block = configBlock(raw.workflows);
|
|
13725
|
-
const stages = configBlock(block.stages);
|
|
13726
|
-
for (const [id, flow] of Object.entries(stages)) {
|
|
13727
|
-
const schedule = configBlock(flow)[SCHEDULE];
|
|
13728
|
-
if (schedule === void 0) delete stages[id];
|
|
13729
|
-
else stages[id] = { [SCHEDULE]: schedule };
|
|
13730
|
-
}
|
|
13731
|
-
if (Object.keys(stages).length) block.stages = stages;
|
|
13732
|
-
else delete block.stages;
|
|
13733
|
-
for (const key of ["added", "agentsOwned", "shipped", "qaScheduled"]) delete block[key];
|
|
13734
|
-
if (Object.keys(block).length) raw.workflows = block;
|
|
13735
|
-
else delete raw.workflows;
|
|
13736
|
-
});
|
|
13737
|
-
return dropped;
|
|
13738
|
-
}
|
|
13739
13682
|
function writtenWorkflows() {
|
|
13740
13683
|
const cfg = safeConfig();
|
|
13741
13684
|
return [...builtinDefs().map((def) => resolveOne(cfg, def, true)), ...boardWorkflowDefs().defs.map((def) => resolveOne(cfg, def, false))];
|
|
@@ -13827,8 +13770,8 @@ function freeName2(wanted, taken) {
|
|
|
13827
13770
|
const used = new Set(taken.map((n) => trimmedName(n)));
|
|
13828
13771
|
if (!used.has(trimmedName(wanted))) return trimmedName(wanted);
|
|
13829
13772
|
for (let n = 2; ; n++) {
|
|
13830
|
-
const
|
|
13831
|
-
if (!used.has(
|
|
13773
|
+
const tried = numbered(base, n);
|
|
13774
|
+
if (!used.has(tried)) return tried;
|
|
13832
13775
|
}
|
|
13833
13776
|
}
|
|
13834
13777
|
function createWorkflow(name) {
|
|
@@ -13974,7 +13917,7 @@ function frozenWorkflow(id) {
|
|
|
13974
13917
|
land: landAgents(flow).map(row)
|
|
13975
13918
|
};
|
|
13976
13919
|
}
|
|
13977
|
-
var LAND_ROLES2, DEFAULT_WORKFLOW2, builtinDescription, workflowsBlock, storedStages,
|
|
13920
|
+
var LAND_ROLES2, DEFAULT_WORKFLOW2, builtinDescription, workflowsBlock, storedStages, SCHEDULE, toRow, scheduledRow, workflowFileProblems, allListed, resolved, agentAfter, agentKeyProblems, agentWorkflow, workflows2, workflowById, onBoard, previewMembers, previewAgents, landAgents, archivesOnApproval, workflowRuleFile, save2, draftDef, notFound, readOnly, trimmedName, numbered, nameTaken, scheduledAgent, cardWorkflowId, cardStages, cardStage;
|
|
13978
13921
|
var init_workflows = __esm({
|
|
13979
13922
|
"../cli/src/lib/agent/workflows.ts"() {
|
|
13980
13923
|
"use strict";
|
|
@@ -13995,8 +13938,6 @@ var init_workflows = __esm({
|
|
|
13995
13938
|
builtinDescription = (id) => builtinDefs().find((w2) => w2.id === id)?.description;
|
|
13996
13939
|
workflowsBlock = (cfg) => configBlock(cfg.workflows);
|
|
13997
13940
|
storedStages = (cfg, id) => configBlock(configBlock(workflowsBlock(cfg).stages)[id]);
|
|
13998
|
-
PREVIEWS = "previews";
|
|
13999
|
-
LAND = "land";
|
|
14000
13941
|
SCHEDULE = "schedule";
|
|
14001
13942
|
toRow = (h3) => ({ agent: h3.agent, extra: h3.extra, ...h3.off ? { off: true } : {} });
|
|
14002
13943
|
scheduledRow = (h3) => ({
|
|
@@ -17707,32 +17648,6 @@ var init_source = __esm({
|
|
|
17707
17648
|
});
|
|
17708
17649
|
|
|
17709
17650
|
// ../cli/src/lib/agent/workflow-cards.ts
|
|
17710
|
-
import fs50 from "node:fs";
|
|
17711
|
-
import path53 from "node:path";
|
|
17712
|
-
function cardsOnWorkflow(id) {
|
|
17713
|
-
const wanted = id || DEFAULT_WORKFLOW2;
|
|
17714
|
-
const ids = [];
|
|
17715
|
-
let files2;
|
|
17716
|
-
try {
|
|
17717
|
-
files2 = walkMd(TODO);
|
|
17718
|
-
} catch {
|
|
17719
|
-
return [];
|
|
17720
|
-
}
|
|
17721
|
-
for (const file of files2) {
|
|
17722
|
-
const base = path53.basename(file);
|
|
17723
|
-
const card = base === "root.md" ? idPrefix(path53.basename(path53.dirname(file))) : idPrefix(base);
|
|
17724
|
-
if (card === null) continue;
|
|
17725
|
-
let meta;
|
|
17726
|
-
try {
|
|
17727
|
-
meta = parseFrontmatter(fs50.readFileSync(file, "utf8")).meta;
|
|
17728
|
-
} catch {
|
|
17729
|
-
continue;
|
|
17730
|
-
}
|
|
17731
|
-
if (!meta) continue;
|
|
17732
|
-
if ((meta.workflow || DEFAULT_WORKFLOW2) === wanted) ids.push(card);
|
|
17733
|
-
}
|
|
17734
|
-
return [...new Set(ids)].sort((a2, b2) => a2 - b2);
|
|
17735
|
-
}
|
|
17736
17651
|
function switchWorkflow(id, meta, asked) {
|
|
17737
17652
|
const wanted = asked.trim();
|
|
17738
17653
|
const next = !wanted || wanted === DEFAULT_WORKFLOW2 ? "" : knownWorkflow(wanted);
|
|
@@ -17752,10 +17667,6 @@ function switchWorkflow(id, meta, asked) {
|
|
|
17752
17667
|
var init_workflow_cards = __esm({
|
|
17753
17668
|
"../cli/src/lib/agent/workflow-cards.ts"() {
|
|
17754
17669
|
"use strict";
|
|
17755
|
-
init_cards();
|
|
17756
|
-
init_frontmatter();
|
|
17757
|
-
init_assemble();
|
|
17758
|
-
init_paths();
|
|
17759
17670
|
init_paths();
|
|
17760
17671
|
init_deliveries();
|
|
17761
17672
|
init_store();
|
|
@@ -17764,12 +17675,12 @@ var init_workflow_cards = __esm({
|
|
|
17764
17675
|
});
|
|
17765
17676
|
|
|
17766
17677
|
// ../cli/src/lib/readme.ts
|
|
17767
|
-
import
|
|
17768
|
-
import
|
|
17678
|
+
import fs50 from "node:fs";
|
|
17679
|
+
import path53 from "node:path";
|
|
17769
17680
|
function stripReadmeRefs(target) {
|
|
17770
|
-
if (!
|
|
17681
|
+
if (!fs50.existsSync(README)) return [];
|
|
17771
17682
|
const needle = target.kind === "group" ? `](${target.rel}/` : `](${target.rel})`;
|
|
17772
|
-
const lines =
|
|
17683
|
+
const lines = fs50.readFileSync(README, "utf8").split("\n");
|
|
17773
17684
|
const out = [];
|
|
17774
17685
|
const removed = [];
|
|
17775
17686
|
let i = 0;
|
|
@@ -17791,20 +17702,20 @@ function stripReadmeRefs(target) {
|
|
|
17791
17702
|
out.push(line);
|
|
17792
17703
|
i++;
|
|
17793
17704
|
}
|
|
17794
|
-
if (removed.length)
|
|
17705
|
+
if (removed.length) fs50.writeFileSync(README, out.join("\n"));
|
|
17795
17706
|
return removed;
|
|
17796
17707
|
}
|
|
17797
17708
|
function addReadmeRef(id, title, relPath) {
|
|
17798
|
-
if (!
|
|
17799
|
-
const link2 = relPath.split(
|
|
17709
|
+
if (!fs50.existsSync(README)) return false;
|
|
17710
|
+
const link2 = relPath.split(path53.sep).join("/");
|
|
17800
17711
|
const bullet = `- [#${id} ${title}](${link2})`;
|
|
17801
17712
|
const heading = `## ${TASKS_HEADING}`;
|
|
17802
|
-
let lines =
|
|
17713
|
+
let lines = fs50.readFileSync(README, "utf8").split("\n");
|
|
17803
17714
|
const hi2 = lines.findIndex((l2) => l2.trim().toLowerCase() === heading.toLowerCase());
|
|
17804
17715
|
if (hi2 === -1) {
|
|
17805
17716
|
while (lines.length && lines[lines.length - 1].trim() === "") lines.pop();
|
|
17806
17717
|
lines.push("", heading, "", bullet);
|
|
17807
|
-
|
|
17718
|
+
fs50.writeFileSync(README, lines.join("\n") + "\n");
|
|
17808
17719
|
return true;
|
|
17809
17720
|
}
|
|
17810
17721
|
let end2 = hi2 + 1;
|
|
@@ -17818,15 +17729,15 @@ function addReadmeRef(id, title, relPath) {
|
|
|
17818
17729
|
const at2 = lastBullet !== -1 ? lastBullet + 1 : lines[hi2 + 1] === "" ? hi2 + 2 : hi2 + 1;
|
|
17819
17730
|
lines.splice(at2, 0, bullet);
|
|
17820
17731
|
}
|
|
17821
|
-
|
|
17732
|
+
fs50.writeFileSync(README, lines.join("\n"));
|
|
17822
17733
|
return true;
|
|
17823
17734
|
}
|
|
17824
17735
|
function repointReadmeLink(id, oldRel, newRel, title) {
|
|
17825
|
-
if (!
|
|
17826
|
-
const oldLink = oldRel.split(
|
|
17827
|
-
const newLink = newRel.split(
|
|
17736
|
+
if (!fs50.existsSync(README)) return false;
|
|
17737
|
+
const oldLink = oldRel.split(path53.sep).join("/");
|
|
17738
|
+
const newLink = newRel.split(path53.sep).join("/");
|
|
17828
17739
|
const linkRe = new RegExp(`\\[#${id}\\b[^\\]]*\\]\\(${escapeRegex(oldLink)}\\)`);
|
|
17829
|
-
const lines =
|
|
17740
|
+
const lines = fs50.readFileSync(README, "utf8").split("\n");
|
|
17830
17741
|
let changed = false;
|
|
17831
17742
|
for (let i = 0; i < lines.length; i++) {
|
|
17832
17743
|
if (!lines[i].includes(`](${oldLink})`)) continue;
|
|
@@ -17836,7 +17747,7 @@ function repointReadmeLink(id, oldRel, newRel, title) {
|
|
|
17836
17747
|
changed = true;
|
|
17837
17748
|
}
|
|
17838
17749
|
}
|
|
17839
|
-
if (changed)
|
|
17750
|
+
if (changed) fs50.writeFileSync(README, lines.join("\n"));
|
|
17840
17751
|
return changed;
|
|
17841
17752
|
}
|
|
17842
17753
|
var isTableRow, isBulletStart, bulletIndent, TASKS_HEADING, escapeRegex;
|
|
@@ -17961,8 +17872,8 @@ var init_storyboard = __esm({
|
|
|
17961
17872
|
});
|
|
17962
17873
|
|
|
17963
17874
|
// ../cli/src/lib/spec-contract.ts
|
|
17964
|
-
import
|
|
17965
|
-
import
|
|
17875
|
+
import fs51 from "node:fs";
|
|
17876
|
+
import path54 from "node:path";
|
|
17966
17877
|
function scanCardLines(lines, start = 0) {
|
|
17967
17878
|
const visible = lines.map(() => "");
|
|
17968
17879
|
let fence = null;
|
|
@@ -17995,18 +17906,18 @@ function scanCardLines(lines, start = 0) {
|
|
|
17995
17906
|
}
|
|
17996
17907
|
function snapshotSpecs() {
|
|
17997
17908
|
const out = /* @__PURE__ */ new Map();
|
|
17998
|
-
if (!
|
|
17909
|
+
if (!fs51.existsSync(TODO)) return out;
|
|
17999
17910
|
for (const file of walkMd(TODO)) {
|
|
18000
|
-
if (isLegacyRecurring(
|
|
18001
|
-
const id = idPrefix(
|
|
18002
|
-
if (id !== null) out.set(file, { id, text:
|
|
17911
|
+
if (isLegacyRecurring(path54.relative(TODO, file))) continue;
|
|
17912
|
+
const id = idPrefix(path54.basename(file) === "root.md" ? path54.basename(path54.dirname(file)) : path54.basename(file));
|
|
17913
|
+
if (id !== null) out.set(file, { id, text: fs51.readFileSync(file, "utf8") });
|
|
18003
17914
|
}
|
|
18004
17915
|
return out;
|
|
18005
17916
|
}
|
|
18006
17917
|
function enclosingGroups(file) {
|
|
18007
17918
|
const ids = [];
|
|
18008
17919
|
for (let root2 = enclosingGroupRoot(file); root2; root2 = enclosingGroupRoot(root2)) {
|
|
18009
|
-
const id = idPrefix(
|
|
17920
|
+
const id = idPrefix(path54.basename(path54.dirname(root2)));
|
|
18010
17921
|
if (id !== null) ids.push(id);
|
|
18011
17922
|
}
|
|
18012
17923
|
return ids;
|
|
@@ -18161,9 +18072,9 @@ function validateSpec(file, text5, id) {
|
|
|
18161
18072
|
}
|
|
18162
18073
|
function inside(dir, name) {
|
|
18163
18074
|
try {
|
|
18164
|
-
const root2 =
|
|
18165
|
-
const real2 =
|
|
18166
|
-
return real2.startsWith(root2 +
|
|
18075
|
+
const root2 = fs51.realpathSync(dir);
|
|
18076
|
+
const real2 = fs51.realpathSync(path54.join(dir, name));
|
|
18077
|
+
return real2.startsWith(root2 + path54.sep) && fs51.statSync(real2).isFile() ? real2 : null;
|
|
18167
18078
|
} catch {
|
|
18168
18079
|
return null;
|
|
18169
18080
|
}
|
|
@@ -18181,7 +18092,7 @@ function variantsProblem(raw, src, id) {
|
|
|
18181
18092
|
if (files2.length < 2 || !files2.every((f2) => typeof f2 === "string" && f2)) return `variants needs at least two labels, each naming a file. ${shape}`;
|
|
18182
18093
|
if (!files2.includes(src)) return `src="${src}" is not one of the variants. Set src to the version shown first.`;
|
|
18183
18094
|
if (id === void 0) return null;
|
|
18184
|
-
const dir =
|
|
18095
|
+
const dir = path54.join(ASSETS, String(id));
|
|
18185
18096
|
for (const f2 of files2) {
|
|
18186
18097
|
const parts = f2.split("/");
|
|
18187
18098
|
if (parts.length !== 3 || parts[0] !== ".assets" || parts[1] !== String(id) || !inside(dir, parts[2])) {
|
|
@@ -18191,7 +18102,7 @@ function variantsProblem(raw, src, id) {
|
|
|
18191
18102
|
return null;
|
|
18192
18103
|
}
|
|
18193
18104
|
function compareProblem(attrs, id) {
|
|
18194
|
-
const dir =
|
|
18105
|
+
const dir = path54.join(ASSETS, String(id));
|
|
18195
18106
|
const src = (message) => ({ rule: "compare-src", message });
|
|
18196
18107
|
const shots = (message) => ({ rule: "compare-shots", message });
|
|
18197
18108
|
for (const side of ["a", "b"]) {
|
|
@@ -18211,7 +18122,7 @@ function compareProblem(attrs, id) {
|
|
|
18211
18122
|
const file = inside(dir, named2.name);
|
|
18212
18123
|
if (!file) return { message: `Compare shots ${at2} names no file in this card's asset folder. Write the JSON there or fix the path.` };
|
|
18213
18124
|
try {
|
|
18214
|
-
return { data: JSON.parse(
|
|
18125
|
+
return { data: JSON.parse(fs51.readFileSync(file, "utf8")) };
|
|
18215
18126
|
} catch {
|
|
18216
18127
|
return { message: `${at2} is not valid JSON.` };
|
|
18217
18128
|
}
|
|
@@ -18231,7 +18142,7 @@ function compareProblem(attrs, id) {
|
|
|
18231
18142
|
}
|
|
18232
18143
|
function validateStoryboards(file, id, text5) {
|
|
18233
18144
|
const errors = [];
|
|
18234
|
-
const dir =
|
|
18145
|
+
const dir = path54.join(ASSETS, String(id));
|
|
18235
18146
|
for (const marker of storyboardMarkers(text5)) {
|
|
18236
18147
|
const named2 = assetName(marker.src, id, ["json"]);
|
|
18237
18148
|
const add = (message) => errors.push({ file: rel(file), line: marker.line, rule: "storyboard-src", message });
|
|
@@ -18302,14 +18213,14 @@ var init_spec_contract = __esm({
|
|
|
18302
18213
|
});
|
|
18303
18214
|
|
|
18304
18215
|
// ../cli/src/lib/reconcile.ts
|
|
18305
|
-
import
|
|
18306
|
-
import
|
|
18216
|
+
import fs52 from "node:fs";
|
|
18217
|
+
import path55 from "node:path";
|
|
18307
18218
|
function liveIds() {
|
|
18308
18219
|
const ids = /* @__PURE__ */ new Set();
|
|
18309
18220
|
for (const file of walkMd(TODO)) {
|
|
18310
|
-
const base =
|
|
18221
|
+
const base = path55.basename(file);
|
|
18311
18222
|
if (base === "README.md") continue;
|
|
18312
|
-
const id = base === "root.md" ? idPrefix(
|
|
18223
|
+
const id = base === "root.md" ? idPrefix(path55.basename(path55.dirname(file))) : idPrefix(base);
|
|
18313
18224
|
if (id != null) ids.add(id);
|
|
18314
18225
|
}
|
|
18315
18226
|
return ids;
|
|
@@ -18317,16 +18228,16 @@ function liveIds() {
|
|
|
18317
18228
|
function indexableCards() {
|
|
18318
18229
|
const out = [];
|
|
18319
18230
|
for (const dir of walkDirs(TODO)) {
|
|
18320
|
-
const id = idPrefix(
|
|
18321
|
-
if (id != null &&
|
|
18322
|
-
out.push({ id, rel:
|
|
18231
|
+
const id = idPrefix(path55.basename(dir));
|
|
18232
|
+
if (id != null && fs52.existsSync(path55.join(dir, "root.md"))) {
|
|
18233
|
+
out.push({ id, rel: path55.join(path55.relative(TODO, dir), "root.md").split(path55.sep).join("/") });
|
|
18323
18234
|
}
|
|
18324
18235
|
}
|
|
18325
18236
|
for (const file of walkMd(TODO)) {
|
|
18326
|
-
const base =
|
|
18237
|
+
const base = path55.basename(file);
|
|
18327
18238
|
if (base === "README.md" || base === "root.md") continue;
|
|
18328
|
-
const relTODO =
|
|
18329
|
-
const segs = relTODO.split(
|
|
18239
|
+
const relTODO = path55.relative(TODO, file);
|
|
18240
|
+
const segs = relTODO.split(path55.sep);
|
|
18330
18241
|
if (segs.length !== 1) continue;
|
|
18331
18242
|
const id = idPrefix(base);
|
|
18332
18243
|
if (id != null) out.push({ id, rel: segs.join("/") });
|
|
@@ -18335,7 +18246,7 @@ function indexableCards() {
|
|
|
18335
18246
|
}
|
|
18336
18247
|
function readmeComplaints(fix) {
|
|
18337
18248
|
const said3 = [];
|
|
18338
|
-
const lines =
|
|
18249
|
+
const lines = fs52.readFileSync(README, "utf8").split("\n");
|
|
18339
18250
|
const indexed = /* @__PURE__ */ new Set();
|
|
18340
18251
|
let fixed = 0;
|
|
18341
18252
|
for (let i = 0; i < lines.length; i++) {
|
|
@@ -18344,13 +18255,13 @@ function readmeComplaints(fix) {
|
|
|
18344
18255
|
const id = Number(m[1]);
|
|
18345
18256
|
const linkPath = m[2];
|
|
18346
18257
|
indexed.add(id);
|
|
18347
|
-
if (
|
|
18258
|
+
if (fs52.existsSync(path55.join(TODO, linkPath))) continue;
|
|
18348
18259
|
const found2 = locate(id);
|
|
18349
18260
|
if (!found2) {
|
|
18350
18261
|
said3.push(`README links #${id} \u2192 ${linkPath}, but no card with that id exists (removed by hand?). Drop the entry or restore the file.`);
|
|
18351
18262
|
continue;
|
|
18352
18263
|
}
|
|
18353
|
-
const want = (found2.kind === "group" ?
|
|
18264
|
+
const want = (found2.kind === "group" ? path55.join(found2.rel, "root.md") : found2.rel).split(path55.sep).join("/");
|
|
18354
18265
|
if (want === linkPath) continue;
|
|
18355
18266
|
if (!fix) {
|
|
18356
18267
|
said3.push(`README links #${id} \u2192 ${linkPath}, which isn't there any more; the card is at ${want}.`);
|
|
@@ -18360,7 +18271,7 @@ function readmeComplaints(fix) {
|
|
|
18360
18271
|
said3.push(`README link #${id} pointed at missing ${linkPath} \u2192 repointed to ${want}.`);
|
|
18361
18272
|
fixed++;
|
|
18362
18273
|
}
|
|
18363
|
-
if (fixed)
|
|
18274
|
+
if (fixed) fs52.writeFileSync(README, lines.join("\n"));
|
|
18364
18275
|
for (const c2 of indexableCards()) {
|
|
18365
18276
|
if (!indexed.has(c2.id)) {
|
|
18366
18277
|
said3.push(`card ${c2.rel} (#${c2.id}) is not in the README index. Add it under "## ${TASKS_HEADING}".`);
|
|
@@ -18372,11 +18283,11 @@ function crossRefComplaints() {
|
|
|
18372
18283
|
const said3 = [];
|
|
18373
18284
|
const live = liveIds();
|
|
18374
18285
|
for (const file of walkMd(TODO)) {
|
|
18375
|
-
const base =
|
|
18286
|
+
const base = path55.basename(file);
|
|
18376
18287
|
if (base === "README.md") continue;
|
|
18377
|
-
const ownerId = base === "root.md" ? idPrefix(
|
|
18288
|
+
const ownerId = base === "root.md" ? idPrefix(path55.basename(path55.dirname(file))) : idPrefix(base);
|
|
18378
18289
|
if (ownerId == null) continue;
|
|
18379
|
-
const { meta } = parseFrontmatter(
|
|
18290
|
+
const { meta } = parseFrontmatter(fs52.readFileSync(file, "utf8"));
|
|
18380
18291
|
if (!meta) continue;
|
|
18381
18292
|
for (const field2 of ["blocked_by", "related"]) {
|
|
18382
18293
|
for (const ref of meta[field2] || []) {
|
|
@@ -18389,11 +18300,11 @@ function crossRefComplaints() {
|
|
|
18389
18300
|
return said3;
|
|
18390
18301
|
}
|
|
18391
18302
|
function reconcileBoard() {
|
|
18392
|
-
if (!
|
|
18303
|
+
if (!fs52.existsSync(README)) return;
|
|
18393
18304
|
for (const line of [...readmeComplaints(true), ...crossRefComplaints()]) warn2(line);
|
|
18394
18305
|
}
|
|
18395
18306
|
function boardComplaints() {
|
|
18396
|
-
if (!
|
|
18307
|
+
if (!fs52.existsSync(README)) return [];
|
|
18397
18308
|
try {
|
|
18398
18309
|
return [...readmeComplaints(false), ...crossRefComplaints()];
|
|
18399
18310
|
} catch {
|
|
@@ -18413,8 +18324,8 @@ var init_reconcile = __esm({
|
|
|
18413
18324
|
});
|
|
18414
18325
|
|
|
18415
18326
|
// ../cli/src/commands/card.ts
|
|
18416
|
-
import
|
|
18417
|
-
import
|
|
18327
|
+
import fs53 from "node:fs";
|
|
18328
|
+
import path56 from "node:path";
|
|
18418
18329
|
function defaultBody(summary = "<\u7528\u4E00\u5C0F\u6BB5\u8BDD\u5148\u8BB2\u53D1\u751F\u4E86\u4EC0\u4E48\u3001\u7528\u6237\u9047\u5230\u4EC0\u4E48\uFF0C\u518D\u8BB2\u8FD9\u5F20\u5361\u8981\u8FBE\u5230\u7684\u7ED3\u679C\u3002>") {
|
|
18419
18330
|
return [
|
|
18420
18331
|
summary,
|
|
@@ -18440,7 +18351,7 @@ function bodyFromFile(opts) {
|
|
|
18440
18351
|
if (opts.body === false) die("pass --body-file or --no-body, not both");
|
|
18441
18352
|
let text5;
|
|
18442
18353
|
try {
|
|
18443
|
-
text5 =
|
|
18354
|
+
text5 = fs53.readFileSync(opts.bodyFile, "utf8");
|
|
18444
18355
|
} catch {
|
|
18445
18356
|
die(`can't read ${opts.bodyFile} \u2014 write the body to a file, then pass its path`, { kind: "needs-input" });
|
|
18446
18357
|
}
|
|
@@ -18520,20 +18431,20 @@ function cmdCreate(opts) {
|
|
|
18520
18431
|
const start = opts.id;
|
|
18521
18432
|
const slug2 = slugify(opts.slug !== void 0 ? opts.slug : title);
|
|
18522
18433
|
const fileRel = `${start}-${slug2}.md`;
|
|
18523
|
-
const file =
|
|
18434
|
+
const file = path56.join(TODO, fileRel);
|
|
18524
18435
|
const held4 = locate(start) ?? locateArchived(start);
|
|
18525
|
-
if (held4 &&
|
|
18436
|
+
if (held4 && path56.basename(held4.target) === `${start}-${slug2}.md`) {
|
|
18526
18437
|
say(start);
|
|
18527
18438
|
say(` ${rel(held4.target)} was already written`);
|
|
18528
18439
|
return { id: start, ids: [start], title, file: rel(held4.target), indexed: false };
|
|
18529
18440
|
}
|
|
18530
18441
|
if (held4) die(`#${start} is already a card here (${rel(held4.target)})`, { kind: "id-taken", id: start });
|
|
18531
|
-
if (
|
|
18442
|
+
if (fs53.existsSync(file)) die(`${rel(file)} already exists \u2014 pick a different --slug`);
|
|
18532
18443
|
countBoardEvent(triage ? "cards_created_proposed" : "cards_created_asked");
|
|
18533
18444
|
const meta = { title, priority, status: "todo", blocked_by, related, modules, workflow, previews, stages, triage, source, questions };
|
|
18534
18445
|
const scaffolded = !written && opts.body !== false;
|
|
18535
18446
|
const body = written ?? (scaffolded ? defaultBody() : "");
|
|
18536
|
-
|
|
18447
|
+
fs53.writeFileSync(file, serializeFrontmatter(meta) + "\n\n" + body);
|
|
18537
18448
|
const indexed = addReadmeRef(start, title, fileRel);
|
|
18538
18449
|
say(start);
|
|
18539
18450
|
say(
|
|
@@ -18580,8 +18491,8 @@ function cmdUpdate(id, flags) {
|
|
|
18580
18491
|
if (creating) die(creating, { kind: "card-being-created", id });
|
|
18581
18492
|
const found2 = locate(id);
|
|
18582
18493
|
if (!found2) die(`no task with id ${id} under ${rel(TODO)}`, { kind: "card-not-found", id });
|
|
18583
|
-
const file = found2.kind === "group" ?
|
|
18584
|
-
const { meta, body } = parseFrontmatter(
|
|
18494
|
+
const file = found2.kind === "group" ? path56.join(found2.target, "root.md") : found2.target;
|
|
18495
|
+
const { meta, body } = parseFrontmatter(fs53.readFileSync(file, "utf8"));
|
|
18585
18496
|
if (!meta) die(`${rel(file)} has no frontmatter \u2014 run \`migrate\` first`);
|
|
18586
18497
|
if (flags.blockedBy !== void 0 && flags.addBlockedBy !== void 0) die("--blocked-by replaces the list and --add-blocked-by appends to it \u2014 pass one");
|
|
18587
18498
|
if (flags.related !== void 0 && flags.addRelated !== void 0) die("--related replaces the list and --add-related appends to it \u2014 pass one");
|
|
@@ -18655,26 +18566,26 @@ function cmdUpdate(id, flags) {
|
|
|
18655
18566
|
meta.status = "todo";
|
|
18656
18567
|
changes.push("status\u2192todo (open questions)");
|
|
18657
18568
|
}
|
|
18658
|
-
const curRel =
|
|
18569
|
+
const curRel = path56.relative(TODO, file);
|
|
18659
18570
|
const isSubtask = found2.kind === "file" && enclosingGroupRoot(file) !== null;
|
|
18660
|
-
let base =
|
|
18571
|
+
let base = path56.basename(file);
|
|
18661
18572
|
if (flags.slug !== void 0) {
|
|
18662
18573
|
if (found2.kind === "group") die("renaming a group root by script is not supported");
|
|
18663
18574
|
base = `${id}-${slugify(flags.slug)}.md`;
|
|
18664
18575
|
}
|
|
18665
|
-
const destRel =
|
|
18666
|
-
const dest =
|
|
18576
|
+
const destRel = path56.join(path56.dirname(curRel), base);
|
|
18577
|
+
const dest = path56.join(TODO, destRel);
|
|
18667
18578
|
const moving = dest !== file;
|
|
18668
|
-
if (moving &&
|
|
18669
|
-
|
|
18670
|
-
if (moving)
|
|
18579
|
+
if (moving && fs53.existsSync(dest)) die(`${rel(dest)} already exists`);
|
|
18580
|
+
fs53.writeFileSync(file, serializeFrontmatter(meta) + "\n" + body);
|
|
18581
|
+
if (moving) fs53.renameSync(file, dest);
|
|
18671
18582
|
if (isSubtask) {
|
|
18672
18583
|
if (moving || changes.includes("title")) repointReadmeLink(id, curRel, destRel, meta.title);
|
|
18673
|
-
if (moving) changes.push(`renamed \u2192 ${destRel.split(
|
|
18584
|
+
if (moving) changes.push(`renamed \u2192 ${destRel.split(path56.sep).join("/")}`);
|
|
18674
18585
|
} else if (moving) {
|
|
18675
18586
|
stripReadmeRefs({ kind: "file", rel: curRel });
|
|
18676
18587
|
addReadmeRef(id, meta.title, destRel);
|
|
18677
|
-
changes.push(`renamed \u2192 ${destRel.split(
|
|
18588
|
+
changes.push(`renamed \u2192 ${destRel.split(path56.sep).join("/")}`);
|
|
18678
18589
|
} else if (changes.includes("title")) {
|
|
18679
18590
|
stripReadmeRefs({ kind: "file", rel: curRel });
|
|
18680
18591
|
addReadmeRef(id, meta.title, curRel);
|
|
@@ -18686,8 +18597,8 @@ function cmdUpdateQuestions(id, input) {
|
|
|
18686
18597
|
const ops = readQuestionOps(input.ops ?? []);
|
|
18687
18598
|
const found2 = locate(id);
|
|
18688
18599
|
if (!found2) die(`no task with id ${id} under ${rel(TODO)}`, { kind: "card-not-found", id });
|
|
18689
|
-
const file = found2.kind === "group" ?
|
|
18690
|
-
const { meta, body } = parseFrontmatter(
|
|
18600
|
+
const file = found2.kind === "group" ? path56.join(found2.target, "root.md") : found2.target;
|
|
18601
|
+
const { meta, body } = parseFrontmatter(fs53.readFileSync(file, "utf8"));
|
|
18691
18602
|
if (!meta) die(`${rel(file)} has no frontmatter \u2014 run \`migrate\` first`);
|
|
18692
18603
|
if (insideRun() && ops.some((op) => op.kind === "skip" || op.kind === "unskip")) {
|
|
18693
18604
|
die("only the user skips or reopens a question \u2014 a run leaves questions for them to answer");
|
|
@@ -18760,7 +18671,7 @@ function cmdUpdateQuestions(id, input) {
|
|
|
18760
18671
|
meta.status = "todo";
|
|
18761
18672
|
changes.push("status\u2192todo (open questions)");
|
|
18762
18673
|
}
|
|
18763
|
-
|
|
18674
|
+
fs53.writeFileSync(file, serializeFrontmatter(meta) + "\n" + body);
|
|
18764
18675
|
for (const kind of closed2) countBoardEvent(kind);
|
|
18765
18676
|
settleDelivery2(id, skipped, unskipped);
|
|
18766
18677
|
say(
|
|
@@ -18835,13 +18746,13 @@ var init_config_template = __esm({
|
|
|
18835
18746
|
});
|
|
18836
18747
|
|
|
18837
18748
|
// ../cli/src/lib/agent/local.ts
|
|
18838
|
-
import
|
|
18839
|
-
import
|
|
18749
|
+
import fs54 from "node:fs";
|
|
18750
|
+
import path57 from "node:path";
|
|
18840
18751
|
function takeLocalModels(board2) {
|
|
18841
|
-
const file =
|
|
18752
|
+
const file = path57.join(board2, ".local.json");
|
|
18842
18753
|
let held4;
|
|
18843
18754
|
try {
|
|
18844
|
-
held4 = configBlock(JSON.parse(
|
|
18755
|
+
held4 = configBlock(JSON.parse(fs54.readFileSync(file, "utf8")));
|
|
18845
18756
|
} catch {
|
|
18846
18757
|
return {};
|
|
18847
18758
|
}
|
|
@@ -18859,7 +18770,7 @@ function takeLocalModels(board2) {
|
|
|
18859
18770
|
}
|
|
18860
18771
|
if (!Object.keys(agents).length) return out;
|
|
18861
18772
|
delete held4.agents;
|
|
18862
|
-
|
|
18773
|
+
fs54.writeFileSync(file, JSON.stringify(held4, null, 2) + "\n");
|
|
18863
18774
|
return out;
|
|
18864
18775
|
}
|
|
18865
18776
|
var LOCAL_IGNORE_LINE;
|
|
@@ -18920,12 +18831,12 @@ var init_identity2 = __esm({
|
|
|
18920
18831
|
});
|
|
18921
18832
|
|
|
18922
18833
|
// ../cli/src/lib/signals/migrate.ts
|
|
18923
|
-
import
|
|
18924
|
-
import
|
|
18834
|
+
import fs55 from "node:fs";
|
|
18835
|
+
import path58 from "node:path";
|
|
18925
18836
|
function readHandled() {
|
|
18926
18837
|
let text5;
|
|
18927
18838
|
try {
|
|
18928
|
-
text5 =
|
|
18839
|
+
text5 = fs55.readFileSync(SIGNALS_OLD_HANDLED, "utf8");
|
|
18929
18840
|
} catch {
|
|
18930
18841
|
return [];
|
|
18931
18842
|
}
|
|
@@ -18942,57 +18853,57 @@ function readHandled() {
|
|
|
18942
18853
|
return held4;
|
|
18943
18854
|
}
|
|
18944
18855
|
function lift(from, into) {
|
|
18945
|
-
|
|
18946
|
-
|
|
18856
|
+
fs55.mkdirSync(into, { recursive: true });
|
|
18857
|
+
fs55.renameSync(from, path58.join(into, freeName(into, path58.basename(from))));
|
|
18947
18858
|
}
|
|
18948
18859
|
function repoint(dir, from, into) {
|
|
18949
18860
|
let entries;
|
|
18950
18861
|
try {
|
|
18951
|
-
entries =
|
|
18862
|
+
entries = fs55.readdirSync(dir, { withFileTypes: true });
|
|
18952
18863
|
} catch {
|
|
18953
18864
|
return;
|
|
18954
18865
|
}
|
|
18955
18866
|
for (const entry of entries) {
|
|
18956
18867
|
if (!entry.isFile() || !entry.name.endsWith(".md")) continue;
|
|
18957
|
-
const file =
|
|
18958
|
-
const text5 =
|
|
18959
|
-
if (text5.includes(from))
|
|
18868
|
+
const file = path58.join(dir, entry.name);
|
|
18869
|
+
const text5 = fs55.readFileSync(file, "utf8");
|
|
18870
|
+
if (text5.includes(from)) fs55.writeFileSync(file, text5.split(from).join(into));
|
|
18960
18871
|
}
|
|
18961
18872
|
}
|
|
18962
18873
|
function dropIfEmpty2(dir) {
|
|
18963
18874
|
try {
|
|
18964
|
-
|
|
18875
|
+
fs55.rmdirSync(dir);
|
|
18965
18876
|
} catch {
|
|
18966
18877
|
}
|
|
18967
18878
|
}
|
|
18968
18879
|
function liftInbox() {
|
|
18969
|
-
if (!
|
|
18970
|
-
const oldFiles =
|
|
18971
|
-
if (
|
|
18972
|
-
for (const entry of
|
|
18973
|
-
if (entry.isFile()) lift(
|
|
18880
|
+
if (!fs55.existsSync(SIGNALS_OLD_INBOX)) return;
|
|
18881
|
+
const oldFiles = path58.join(SIGNALS_OLD_INBOX, "files");
|
|
18882
|
+
if (fs55.existsSync(oldFiles)) {
|
|
18883
|
+
for (const entry of fs55.readdirSync(oldFiles, { withFileTypes: true })) {
|
|
18884
|
+
if (entry.isFile()) lift(path58.join(oldFiles, entry.name), SIGNALS_FILES);
|
|
18974
18885
|
}
|
|
18975
18886
|
dropIfEmpty2(oldFiles);
|
|
18976
18887
|
}
|
|
18977
18888
|
const held4 = new Set(readFolder(TRIAGE).map((signal2) => signal2.sourceId));
|
|
18978
|
-
for (const entry of
|
|
18889
|
+
for (const entry of fs55.readdirSync(SIGNALS_OLD_INBOX, { withFileTypes: true })) {
|
|
18979
18890
|
if (!entry.isFile() || !entry.name.endsWith(".md")) continue;
|
|
18980
|
-
const from =
|
|
18891
|
+
const from = path58.join(SIGNALS_OLD_INBOX, entry.name);
|
|
18981
18892
|
const item = parse(from);
|
|
18982
18893
|
if (item && held4.has(item.sourceId)) {
|
|
18983
|
-
|
|
18894
|
+
fs55.rmSync(from, { force: true });
|
|
18984
18895
|
continue;
|
|
18985
18896
|
}
|
|
18986
18897
|
if (item) held4.add(item.sourceId);
|
|
18987
18898
|
lift(from, TRIAGE);
|
|
18988
18899
|
}
|
|
18989
|
-
const wasAt = asWritten(
|
|
18900
|
+
const wasAt = asWritten(path58.join(SIGNALS_OLD_INBOX, "files"));
|
|
18990
18901
|
const nowAt = asWritten(SIGNALS_FILES);
|
|
18991
18902
|
for (const dir of [TRIAGE, SIGNALS_ARCHIVED, SIGNALS_DISMISSED]) repoint(dir, wasAt, nowAt);
|
|
18992
18903
|
dropIfEmpty2(SIGNALS_OLD_INBOX);
|
|
18993
18904
|
}
|
|
18994
18905
|
function liftHandled() {
|
|
18995
|
-
if (!
|
|
18906
|
+
if (!fs55.existsSync(SIGNALS_OLD_HANDLED)) return;
|
|
18996
18907
|
const lines = readHandled();
|
|
18997
18908
|
const held4 = /* @__PURE__ */ new Set([
|
|
18998
18909
|
...readFolder(TRIAGE).map((signal2) => signal2.sourceId),
|
|
@@ -19002,7 +18913,7 @@ function liftHandled() {
|
|
|
19002
18913
|
for (const { sourceId, when } of lines) {
|
|
19003
18914
|
if (held4.has(sourceId)) continue;
|
|
19004
18915
|
held4.add(sourceId);
|
|
19005
|
-
|
|
18916
|
+
fs55.mkdirSync(SIGNALS_DISMISSED, { recursive: true });
|
|
19006
18917
|
const name = freeName(SIGNALS_DISMISSED, fileName("", sourceId));
|
|
19007
18918
|
const front = [
|
|
19008
18919
|
"---",
|
|
@@ -19012,13 +18923,13 @@ function liftHandled() {
|
|
|
19012
18923
|
"---",
|
|
19013
18924
|
""
|
|
19014
18925
|
];
|
|
19015
|
-
|
|
18926
|
+
fs55.writeFileSync(path58.join(SIGNALS_DISMISSED, name), `${front.join("\n")}
|
|
19016
18927
|
`);
|
|
19017
18928
|
}
|
|
19018
|
-
|
|
18929
|
+
fs55.rmSync(SIGNALS_OLD_HANDLED, { force: true });
|
|
19019
18930
|
}
|
|
19020
18931
|
function migrateTriage() {
|
|
19021
|
-
if (!
|
|
18932
|
+
if (!fs55.existsSync(SIGNALS_OLD_INBOX) && !fs55.existsSync(SIGNALS_OLD_HANDLED)) return;
|
|
19022
18933
|
try {
|
|
19023
18934
|
liftInbox();
|
|
19024
18935
|
liftHandled();
|
|
@@ -19033,13 +18944,13 @@ var init_migrate = __esm({
|
|
|
19033
18944
|
init_yaml();
|
|
19034
18945
|
init_inbox();
|
|
19035
18946
|
HANDLED_LINE = /^-\s+(.+?)\s+—\s+(.+)$/;
|
|
19036
|
-
asWritten = (dir) => `${rel(dir).split(
|
|
18947
|
+
asWritten = (dir) => `${rel(dir).split(path58.sep).join("/")}/`;
|
|
19037
18948
|
}
|
|
19038
18949
|
});
|
|
19039
18950
|
|
|
19040
18951
|
// ../cli/src/lib/signals/add.ts
|
|
19041
|
-
import
|
|
19042
|
-
import
|
|
18952
|
+
import fs56 from "node:fs";
|
|
18953
|
+
import path59 from "node:path";
|
|
19043
18954
|
import { createHash as createHash4 } from "node:crypto";
|
|
19044
18955
|
function linkTitle(url) {
|
|
19045
18956
|
let at2;
|
|
@@ -19052,7 +18963,7 @@ function linkTitle(url) {
|
|
|
19052
18963
|
return oneLine(where) || url.slice(0, TITLE_MAX);
|
|
19053
18964
|
}
|
|
19054
18965
|
function asText(file) {
|
|
19055
|
-
const ext =
|
|
18966
|
+
const ext = path59.extname(file.name).toLowerCase();
|
|
19056
18967
|
if (!file.type.startsWith("text/") && file.type !== "application/json" && !TEXT_EXTENSIONS.has(ext)) return null;
|
|
19057
18968
|
try {
|
|
19058
18969
|
const text5 = new TextDecoder("utf-8", { fatal: true }).decode(file.data);
|
|
@@ -19062,9 +18973,9 @@ function asText(file) {
|
|
|
19062
18973
|
}
|
|
19063
18974
|
}
|
|
19064
18975
|
function fileName2(name, data) {
|
|
19065
|
-
const base =
|
|
19066
|
-
const ext =
|
|
19067
|
-
const word =
|
|
18976
|
+
const base = path59.basename(name);
|
|
18977
|
+
const ext = path59.extname(base).toLowerCase().slice(0, 12);
|
|
18978
|
+
const word = path59.basename(base, path59.extname(base)).toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "").slice(0, 40) || "file";
|
|
19068
18979
|
const hash2 = createHash4("sha256").update(data).digest("hex").slice(0, 8);
|
|
19069
18980
|
return `${word}-${hash2}${ext}`;
|
|
19070
18981
|
}
|
|
@@ -19073,9 +18984,9 @@ function addToInbox(drop) {
|
|
|
19073
18984
|
const typed = (drop.text ?? "").trim();
|
|
19074
18985
|
const file = drop.file;
|
|
19075
18986
|
if (!typed && !file) return { ok: false, error: "nothing to add \u2014 paste a link or some text, or drop a file." };
|
|
19076
|
-
if (file && file.data.length === 0) return { ok: false, error: `${
|
|
18987
|
+
if (file && file.data.length === 0) return { ok: false, error: `${path59.basename(file.name)} is empty.` };
|
|
19077
18988
|
if (file && file.data.length > MAX_BYTES) {
|
|
19078
|
-
return { ok: false, error: `${
|
|
18989
|
+
return { ok: false, error: `${path59.basename(file.name)} is over ${MAX_BYTES / 1024 / 1024} MB \u2014 too big for the board.` };
|
|
19079
18990
|
}
|
|
19080
18991
|
const read4 = describe(typed, file);
|
|
19081
18992
|
const keep2 = read4.keep;
|
|
@@ -19097,8 +19008,8 @@ ${incoming.summary}`);
|
|
|
19097
19008
|
if (seen.status === "pending" || seen.status === "archived") return { ok: false, error: `${sayHit(seen)}.` };
|
|
19098
19009
|
try {
|
|
19099
19010
|
if (keep2) {
|
|
19100
|
-
|
|
19101
|
-
|
|
19011
|
+
fs56.mkdirSync(SIGNALS_FILES, { recursive: true });
|
|
19012
|
+
fs56.writeFileSync(keep2.at, keep2.data);
|
|
19102
19013
|
}
|
|
19103
19014
|
return { ok: true, signal: writeSignal({ ...incoming, sourceId }, formatStamp(/* @__PURE__ */ new Date()), drop.slug) };
|
|
19104
19015
|
} catch (e2) {
|
|
@@ -19112,7 +19023,7 @@ function describe(typed, file) {
|
|
|
19112
19023
|
return only ? [only] : [];
|
|
19113
19024
|
};
|
|
19114
19025
|
if (file) {
|
|
19115
|
-
const name =
|
|
19026
|
+
const name = path59.basename(file.name);
|
|
19116
19027
|
const text5 = asText(file);
|
|
19117
19028
|
const note = typed ? `
|
|
19118
19029
|
|
|
@@ -19124,7 +19035,7 @@ ${typed}` : "";
|
|
|
19124
19035
|
const at2 = keepAt(file);
|
|
19125
19036
|
return {
|
|
19126
19037
|
incoming: {
|
|
19127
|
-
title:
|
|
19038
|
+
title: path59.basename(name, path59.extname(name)) || name,
|
|
19128
19039
|
summary: `${name} \u2014 ${boardRel2(at2)}${note}`,
|
|
19129
19040
|
...named2
|
|
19130
19041
|
},
|
|
@@ -19162,73 +19073,73 @@ var init_add = __esm({
|
|
|
19162
19073
|
MAX_BYTES = 25 * 1024 * 1024;
|
|
19163
19074
|
TITLE_MAX = 120;
|
|
19164
19075
|
TEXT_EXTENSIONS = /* @__PURE__ */ new Set([".md", ".markdown", ".txt", ".text", ".csv", ".json", ".yml", ".yaml", ".log"]);
|
|
19165
|
-
boardRel2 = (file) => rel(file).split(
|
|
19076
|
+
boardRel2 = (file) => rel(file).split(path59.sep).join("/");
|
|
19166
19077
|
oneLine = (text5) => {
|
|
19167
19078
|
const first = text5.split("\n").find((line) => line.trim()) ?? "";
|
|
19168
19079
|
const clean = first.replace(/^#+\s*/, "").trim();
|
|
19169
19080
|
return clean.length > TITLE_MAX ? `${clean.slice(0, TITLE_MAX - 1).trimEnd()}\u2026` : clean;
|
|
19170
19081
|
};
|
|
19171
|
-
keepAt = (file) =>
|
|
19082
|
+
keepAt = (file) => path59.join(SIGNALS_FILES, fileName2(file.name, file.data));
|
|
19172
19083
|
}
|
|
19173
19084
|
});
|
|
19174
19085
|
|
|
19175
19086
|
// ../cli/src/lib/recurring.ts
|
|
19176
|
-
import
|
|
19177
|
-
import
|
|
19087
|
+
import fs57 from "node:fs";
|
|
19088
|
+
import path60 from "node:path";
|
|
19178
19089
|
function migratePruneMemoryCard() {
|
|
19179
19090
|
const dir = recurringDir();
|
|
19180
19091
|
let names3;
|
|
19181
19092
|
try {
|
|
19182
|
-
names3 =
|
|
19093
|
+
names3 = fs57.readdirSync(dir);
|
|
19183
19094
|
} catch {
|
|
19184
19095
|
return null;
|
|
19185
19096
|
}
|
|
19186
19097
|
const name = names3.find((entry) => entry.endsWith(`-${PRUNE_SLUG}.md`));
|
|
19187
19098
|
if (!name) return null;
|
|
19188
|
-
const file =
|
|
19099
|
+
const file = path60.join(dir, name);
|
|
19189
19100
|
try {
|
|
19190
|
-
const { meta } = parseFrontmatter(
|
|
19101
|
+
const { meta } = parseFrontmatter(fs57.readFileSync(file, "utf8"));
|
|
19191
19102
|
const cadence = meta?.cadence;
|
|
19192
19103
|
if (typeof cadence === "string") adoptMemoryPruneCadence(cadence);
|
|
19193
19104
|
} catch {
|
|
19194
19105
|
}
|
|
19195
|
-
|
|
19106
|
+
fs57.rmSync(file, { force: true });
|
|
19196
19107
|
return rel(file);
|
|
19197
19108
|
}
|
|
19198
19109
|
function legacyCards() {
|
|
19199
19110
|
const dir = recurringDir();
|
|
19200
|
-
if (!
|
|
19111
|
+
if (!fs57.existsSync(dir)) return [];
|
|
19201
19112
|
const cards = [];
|
|
19202
|
-
for (const entry of
|
|
19113
|
+
for (const entry of fs57.readdirSync(dir, { withFileTypes: true })) {
|
|
19203
19114
|
const id = idPrefix(entry.name);
|
|
19204
19115
|
if (id === null) continue;
|
|
19205
|
-
const full =
|
|
19116
|
+
const full = path60.join(dir, entry.name);
|
|
19206
19117
|
const slug2 = entry.name.replace(/\.md$/, "").replace(/^\d+-?/, "");
|
|
19207
19118
|
if (entry.isFile() && entry.name.endsWith(".md")) cards.push({ id, slug: slug2, file: full });
|
|
19208
|
-
else if (entry.isDirectory() &&
|
|
19209
|
-
cards.push({ id, slug: slug2, file:
|
|
19119
|
+
else if (entry.isDirectory() && fs57.existsSync(path60.join(full, "root.md"))) {
|
|
19120
|
+
cards.push({ id, slug: slug2, file: path60.join(full, "root.md"), folder: full });
|
|
19210
19121
|
}
|
|
19211
19122
|
}
|
|
19212
19123
|
return cards.sort((a2, b2) => a2.id - b2.id);
|
|
19213
19124
|
}
|
|
19214
19125
|
function mergeInto2(from, to, skip = []) {
|
|
19215
|
-
|
|
19216
|
-
for (const entry of
|
|
19126
|
+
fs57.mkdirSync(to, { recursive: true });
|
|
19127
|
+
for (const entry of fs57.readdirSync(from, { withFileTypes: true })) {
|
|
19217
19128
|
if (skip.includes(entry.name)) continue;
|
|
19218
|
-
const source =
|
|
19219
|
-
const target =
|
|
19220
|
-
if (!
|
|
19221
|
-
else if (entry.isDirectory() &&
|
|
19129
|
+
const source = path60.join(from, entry.name);
|
|
19130
|
+
const target = path60.join(to, entry.name);
|
|
19131
|
+
if (!fs57.existsSync(target)) fs57.renameSync(source, target);
|
|
19132
|
+
else if (entry.isDirectory() && fs57.statSync(target).isDirectory()) mergeInto2(source, target);
|
|
19222
19133
|
}
|
|
19223
|
-
if (isEmpty(from))
|
|
19134
|
+
if (isEmpty(from)) fs57.rmSync(from, { recursive: true, force: true });
|
|
19224
19135
|
}
|
|
19225
19136
|
function moveSideFolders() {
|
|
19226
19137
|
const dir = recurringDir();
|
|
19227
|
-
for (const entry of
|
|
19138
|
+
for (const entry of fs57.readdirSync(dir, { withFileTypes: true })) {
|
|
19228
19139
|
if (!entry.isDirectory() || idPrefix(entry.name) !== null) continue;
|
|
19229
|
-
const from =
|
|
19230
|
-
if (isEmpty(from))
|
|
19231
|
-
else mergeInto2(from,
|
|
19140
|
+
const from = path60.join(dir, entry.name);
|
|
19141
|
+
if (isEmpty(from)) fs57.rmSync(from, { recursive: true, force: true });
|
|
19142
|
+
else mergeInto2(from, path60.join(AGENTS, entry.name));
|
|
19232
19143
|
}
|
|
19233
19144
|
}
|
|
19234
19145
|
function sections(body) {
|
|
@@ -19278,8 +19189,8 @@ function agentName(card, text5) {
|
|
|
19278
19189
|
const known2 = /* @__PURE__ */ new Set([...specAgentCatalog().agents.map((a2) => a2.name), ...ROLE_NAMES]);
|
|
19279
19190
|
for (const name of [slug2, `${slug2}-${card.id}`]) {
|
|
19280
19191
|
if (!AGENT_NAME.test(name)) continue;
|
|
19281
|
-
const file =
|
|
19282
|
-
const written =
|
|
19192
|
+
const file = path60.join(AGENTS, name, AGENT_FILE3);
|
|
19193
|
+
const written = fs57.existsSync(file) ? fs57.readFileSync(file, "utf8") : null;
|
|
19283
19194
|
if (written === text5(name)) return name;
|
|
19284
19195
|
if (written === null && !known2.has(name)) return name;
|
|
19285
19196
|
}
|
|
@@ -19296,11 +19207,11 @@ ${q3.options.map((o3) => `- ${o3}`).join("\n")}` : "";
|
|
|
19296
19207
|
function removeCard(card) {
|
|
19297
19208
|
dropCrossRefs(card.id);
|
|
19298
19209
|
const target = card.folder ?? card.file;
|
|
19299
|
-
stripReadmeRefs({ kind: card.folder ? "group" : "file", rel:
|
|
19300
|
-
|
|
19210
|
+
stripReadmeRefs({ kind: card.folder ? "group" : "file", rel: path60.relative(TODO, target).split(path60.sep).join("/") });
|
|
19211
|
+
fs57.rmSync(target, { recursive: true, force: true });
|
|
19301
19212
|
}
|
|
19302
19213
|
function migrateCard(card) {
|
|
19303
|
-
const { meta, body } = parseFrontmatter(
|
|
19214
|
+
const { meta, body } = parseFrontmatter(fs57.readFileSync(card.file, "utf8"));
|
|
19304
19215
|
if (!meta) throw new Error("its frontmatter cannot be read");
|
|
19305
19216
|
const raw = meta;
|
|
19306
19217
|
const said3 = (key) => typeof raw[key] === "string" ? raw[key].trim() : "";
|
|
@@ -19310,19 +19221,19 @@ function migrateCard(card) {
|
|
|
19310
19221
|
if (!flow) throw new Error("this board has no workflow to put it in");
|
|
19311
19222
|
const text5 = (name2) => agentText(name2, meta.title || card.slug, body);
|
|
19312
19223
|
const name = agentName(card, text5);
|
|
19313
|
-
const dir =
|
|
19314
|
-
const file =
|
|
19315
|
-
const madeDir = !
|
|
19316
|
-
const wrote = !
|
|
19224
|
+
const dir = path60.join(AGENTS, name);
|
|
19225
|
+
const file = path60.join(dir, AGENT_FILE3);
|
|
19226
|
+
const madeDir = !fs57.existsSync(dir);
|
|
19227
|
+
const wrote = !fs57.existsSync(file);
|
|
19317
19228
|
try {
|
|
19318
|
-
|
|
19319
|
-
if (wrote)
|
|
19229
|
+
fs57.mkdirSync(dir, { recursive: true });
|
|
19230
|
+
if (wrote) fs57.writeFileSync(file, text5(name));
|
|
19320
19231
|
const adopted = adoptWorkflowScheduled(flow.id, name, { cadence, lastRun });
|
|
19321
19232
|
if (!adopted.ok) throw new Error(adopted.error);
|
|
19322
19233
|
questionsToTriage(meta, name);
|
|
19323
19234
|
} catch (e2) {
|
|
19324
|
-
if (madeDir)
|
|
19325
|
-
else if (wrote)
|
|
19235
|
+
if (madeDir) fs57.rmSync(dir, { recursive: true, force: true });
|
|
19236
|
+
else if (wrote) fs57.rmSync(file, { force: true });
|
|
19326
19237
|
throw e2;
|
|
19327
19238
|
}
|
|
19328
19239
|
if (card.folder) mergeInto2(card.folder, dir, ["root.md"]);
|
|
@@ -19332,7 +19243,7 @@ function migrateCard(card) {
|
|
|
19332
19243
|
function migrateRecurringCards() {
|
|
19333
19244
|
const done2 = { agents: [], removed: [], failed: [] };
|
|
19334
19245
|
const dir = recurringDir();
|
|
19335
|
-
if (!
|
|
19246
|
+
if (!fs57.existsSync(dir)) return done2;
|
|
19336
19247
|
migratePruneMemoryCard();
|
|
19337
19248
|
moveSideFolders();
|
|
19338
19249
|
for (const card of legacyCards()) {
|
|
@@ -19345,7 +19256,7 @@ function migrateRecurringCards() {
|
|
|
19345
19256
|
done2.failed.push({ card: rel(card.file), why: e2 instanceof Error ? e2.message : String(e2) });
|
|
19346
19257
|
}
|
|
19347
19258
|
}
|
|
19348
|
-
if (isEmpty(dir))
|
|
19259
|
+
if (isEmpty(dir)) fs57.rmSync(dir, { recursive: true, force: true });
|
|
19349
19260
|
return done2;
|
|
19350
19261
|
}
|
|
19351
19262
|
function recurringMigrationLines(done2) {
|
|
@@ -19378,14 +19289,14 @@ var init_recurring = __esm({
|
|
|
19378
19289
|
PRUNE_SLUG = "prune-the-memory";
|
|
19379
19290
|
FETCH_SLUG = "fetch-triage-items";
|
|
19380
19291
|
AGENT_FILE3 = "AGENT.md";
|
|
19381
|
-
recurringDir = () =>
|
|
19382
|
-
isEmpty = (dir) =>
|
|
19292
|
+
recurringDir = () => path60.join(TODO, LEGACY_RECURRING);
|
|
19293
|
+
isEmpty = (dir) => fs57.readdirSync(dir).every((name) => name === ".DS_Store");
|
|
19383
19294
|
SECTION = /^##\s+(.+?)\s*$/;
|
|
19384
19295
|
}
|
|
19385
19296
|
});
|
|
19386
19297
|
|
|
19387
19298
|
// ../cli/src/commands/init.ts
|
|
19388
|
-
import
|
|
19299
|
+
import fs58 from "node:fs";
|
|
19389
19300
|
function boardReadme() {
|
|
19390
19301
|
return `# Board
|
|
19391
19302
|
|
|
@@ -19398,20 +19309,20 @@ _(none)_
|
|
|
19398
19309
|
`;
|
|
19399
19310
|
}
|
|
19400
19311
|
function writeConfigIfMissing() {
|
|
19401
|
-
if (
|
|
19402
|
-
|
|
19403
|
-
|
|
19312
|
+
if (fs58.existsSync(CONFIG)) return false;
|
|
19313
|
+
fs58.mkdirSync(KANBAN, { recursive: true });
|
|
19314
|
+
fs58.writeFileSync(CONFIG, CONFIG_TEMPLATE);
|
|
19404
19315
|
return true;
|
|
19405
19316
|
}
|
|
19406
19317
|
function writeModulesIfMissing() {
|
|
19407
|
-
if (
|
|
19408
|
-
|
|
19409
|
-
|
|
19318
|
+
if (fs58.existsSync(MODULES_MD)) return false;
|
|
19319
|
+
fs58.mkdirSync(KANBAN, { recursive: true });
|
|
19320
|
+
fs58.writeFileSync(MODULES_MD, MODULES_TEMPLATE);
|
|
19410
19321
|
return true;
|
|
19411
19322
|
}
|
|
19412
19323
|
function writeGitignoreIfMissing() {
|
|
19413
|
-
|
|
19414
|
-
const text5 =
|
|
19324
|
+
fs58.mkdirSync(KANBAN, { recursive: true });
|
|
19325
|
+
const text5 = fs58.existsSync(KANBAN_GITIGNORE) ? fs58.readFileSync(KANBAN_GITIGNORE, "utf8") : "";
|
|
19415
19326
|
const has = (rule) => text5.split("\n").some((line) => line.trim() === rule.line);
|
|
19416
19327
|
const missing = IGNORE_RULES.filter((rule) => !has(rule));
|
|
19417
19328
|
if (!missing.length) return false;
|
|
@@ -19419,37 +19330,37 @@ function writeGitignoreIfMissing() {
|
|
|
19419
19330
|
${rule.line}
|
|
19420
19331
|
`).join("");
|
|
19421
19332
|
const separator = !text5 || text5.endsWith("\n") ? "" : "\n";
|
|
19422
|
-
|
|
19333
|
+
fs58.writeFileSync(KANBAN_GITIGNORE, `${text5}${separator}${block}`);
|
|
19423
19334
|
return true;
|
|
19424
19335
|
}
|
|
19425
19336
|
function writeSkeletonIfMissing() {
|
|
19426
19337
|
const added = [];
|
|
19427
|
-
if (!
|
|
19428
|
-
|
|
19338
|
+
if (!fs58.existsSync(TODO)) {
|
|
19339
|
+
fs58.mkdirSync(TODO, { recursive: true });
|
|
19429
19340
|
added.push(`${rel(TODO)}/`);
|
|
19430
19341
|
}
|
|
19431
|
-
if (!
|
|
19432
|
-
|
|
19342
|
+
if (!fs58.existsSync(README)) {
|
|
19343
|
+
fs58.writeFileSync(README, boardReadme());
|
|
19433
19344
|
added.push(rel(README));
|
|
19434
19345
|
}
|
|
19435
19346
|
return added;
|
|
19436
19347
|
}
|
|
19437
19348
|
function retireReleases() {
|
|
19438
19349
|
const done2 = [];
|
|
19439
|
-
if (
|
|
19440
|
-
|
|
19350
|
+
if (fs58.existsSync(RELEASES)) {
|
|
19351
|
+
fs58.rmSync(RELEASES);
|
|
19441
19352
|
done2.push(`deleted ${rel(RELEASES)}`);
|
|
19442
19353
|
}
|
|
19443
19354
|
let cards = 0;
|
|
19444
19355
|
for (const dir of [TODO, ARCHIVE]) {
|
|
19445
|
-
if (!
|
|
19356
|
+
if (!fs58.existsSync(dir)) continue;
|
|
19446
19357
|
for (const file of walkMd(dir)) {
|
|
19447
|
-
const text5 =
|
|
19358
|
+
const text5 = fs58.readFileSync(file, "utf8");
|
|
19448
19359
|
const end2 = text5.startsWith("---\n") ? text5.indexOf("\n---", 3) : -1;
|
|
19449
19360
|
if (end2 < 0) continue;
|
|
19450
19361
|
const head2 = text5.slice(0, end2).replace(/\nrelease:[^\n]*/, "");
|
|
19451
19362
|
if (head2.length === end2) continue;
|
|
19452
|
-
|
|
19363
|
+
fs58.writeFileSync(file, head2 + text5.slice(end2));
|
|
19453
19364
|
cards++;
|
|
19454
19365
|
}
|
|
19455
19366
|
}
|
|
@@ -19457,7 +19368,7 @@ function retireReleases() {
|
|
|
19457
19368
|
return done2.join(", ");
|
|
19458
19369
|
}
|
|
19459
19370
|
function cmdInit() {
|
|
19460
|
-
if (
|
|
19371
|
+
if (fs58.existsSync(KANBAN)) {
|
|
19461
19372
|
const added = [
|
|
19462
19373
|
...writeSkeletonIfMissing(),
|
|
19463
19374
|
writeConfigIfMissing() && rel(CONFIG),
|
|
@@ -19492,8 +19403,8 @@ function cmdInit() {
|
|
|
19492
19403
|
}
|
|
19493
19404
|
return { board: rel(KANBAN), created: false, added, memory_paths: scaffolded.map((s) => rel(s.dir)) };
|
|
19494
19405
|
}
|
|
19495
|
-
|
|
19496
|
-
|
|
19406
|
+
fs58.mkdirSync(TODO, { recursive: true });
|
|
19407
|
+
fs58.writeFileSync(README, boardReadme());
|
|
19497
19408
|
writeConfigIfMissing();
|
|
19498
19409
|
scaffoldProjectMemory();
|
|
19499
19410
|
writeModulesIfMissing();
|
|
@@ -19582,25 +19493,25 @@ var init_scheduled = __esm({
|
|
|
19582
19493
|
});
|
|
19583
19494
|
|
|
19584
19495
|
// ../cli/src/lib/card-age.ts
|
|
19585
|
-
import
|
|
19586
|
-
import
|
|
19496
|
+
import fs59 from "node:fs";
|
|
19497
|
+
import path61 from "node:path";
|
|
19587
19498
|
function staleAfterIn(config) {
|
|
19588
19499
|
const days = Number(LINE.exec(config)?.[1]);
|
|
19589
19500
|
return Number.isInteger(days) && days > 0 ? days : STALE_AFTER_DEFAULT;
|
|
19590
19501
|
}
|
|
19591
19502
|
function staleAfter() {
|
|
19592
|
-
if (!
|
|
19593
|
-
return staleAfterIn(
|
|
19503
|
+
if (!fs59.existsSync(CONFIG)) return STALE_AFTER_DEFAULT;
|
|
19504
|
+
return staleAfterIn(fs59.readFileSync(CONFIG, "utf8"));
|
|
19594
19505
|
}
|
|
19595
19506
|
function todoPathspec(top) {
|
|
19596
|
-
const from =
|
|
19597
|
-
if (!from || from.startsWith("..") ||
|
|
19598
|
-
return from.split(
|
|
19507
|
+
const from = path61.relative(real(top), real(TODO));
|
|
19508
|
+
if (!from || from.startsWith("..") || path61.isAbsolute(from)) return null;
|
|
19509
|
+
return from.split(path61.sep).join("/");
|
|
19599
19510
|
}
|
|
19600
19511
|
function cardFile2(spec, printed) {
|
|
19601
19512
|
const p2 = unquotePath(printed);
|
|
19602
19513
|
if (!p2.startsWith(`${spec}/`)) return null;
|
|
19603
|
-
return
|
|
19514
|
+
return path61.join(TODO, ...p2.slice(spec.length + 1).split("/"));
|
|
19604
19515
|
}
|
|
19605
19516
|
function dirtyCards(top, spec) {
|
|
19606
19517
|
const out = git(["status", "--porcelain", "--untracked-files=all", "--", spec], top);
|
|
@@ -19647,9 +19558,9 @@ var init_card_age = __esm({
|
|
|
19647
19558
|
gitTop = () => git(["rev-parse", "--show-toplevel"])?.trim() || null;
|
|
19648
19559
|
real = (p2) => {
|
|
19649
19560
|
try {
|
|
19650
|
-
return
|
|
19561
|
+
return fs59.realpathSync(p2);
|
|
19651
19562
|
} catch {
|
|
19652
|
-
return
|
|
19563
|
+
return path61.resolve(p2);
|
|
19653
19564
|
}
|
|
19654
19565
|
};
|
|
19655
19566
|
unquotePath = (line) => {
|
|
@@ -19684,8 +19595,8 @@ var init_card_holds = __esm({
|
|
|
19684
19595
|
});
|
|
19685
19596
|
|
|
19686
19597
|
// ../cli/src/commands/list.ts
|
|
19687
|
-
import
|
|
19688
|
-
import
|
|
19598
|
+
import fs60 from "node:fs";
|
|
19599
|
+
import path62 from "node:path";
|
|
19689
19600
|
function summaryLine(body) {
|
|
19690
19601
|
const lines = body.split("\n");
|
|
19691
19602
|
let i = 0;
|
|
@@ -19701,13 +19612,13 @@ function summaryLine(body) {
|
|
|
19701
19612
|
function openRows() {
|
|
19702
19613
|
const rows = [];
|
|
19703
19614
|
for (const file of walkMd(TODO)) {
|
|
19704
|
-
const base =
|
|
19615
|
+
const base = path62.basename(file);
|
|
19705
19616
|
if (base === "README.md") continue;
|
|
19706
19617
|
const isRoot = base === "root.md";
|
|
19707
|
-
const id = isRoot ? idPrefix(
|
|
19618
|
+
const id = isRoot ? idPrefix(path62.basename(path62.dirname(file))) : idPrefix(base);
|
|
19708
19619
|
if (id == null) continue;
|
|
19709
|
-
if (isLegacyRecurring(
|
|
19710
|
-
const { meta, body } = parseFrontmatter(
|
|
19620
|
+
if (isLegacyRecurring(path62.relative(TODO, file))) continue;
|
|
19621
|
+
const { meta, body } = parseFrontmatter(fs60.readFileSync(file, "utf8"));
|
|
19711
19622
|
rows.push({
|
|
19712
19623
|
id,
|
|
19713
19624
|
file,
|
|
@@ -19749,15 +19660,15 @@ function cmdStale(rows, all2, scope, mod) {
|
|
|
19749
19660
|
}
|
|
19750
19661
|
function archivedFiles() {
|
|
19751
19662
|
const files2 = /* @__PURE__ */ new Map();
|
|
19752
|
-
if (!
|
|
19663
|
+
if (!fs60.existsSync(ARCHIVE)) return files2;
|
|
19753
19664
|
for (const file of walkMd(ARCHIVE)) {
|
|
19754
|
-
const id = idPrefix(
|
|
19665
|
+
const id = idPrefix(path62.basename(file));
|
|
19755
19666
|
if (id !== null) files2.set(id, file);
|
|
19756
19667
|
}
|
|
19757
19668
|
for (const dir of walkDirs(ARCHIVE)) {
|
|
19758
|
-
const id = idPrefix(
|
|
19759
|
-
const root2 =
|
|
19760
|
-
if (id !== null &&
|
|
19669
|
+
const id = idPrefix(path62.basename(dir));
|
|
19670
|
+
const root2 = path62.join(dir, "root.md");
|
|
19671
|
+
if (id !== null && fs60.existsSync(root2)) files2.set(id, root2);
|
|
19761
19672
|
}
|
|
19762
19673
|
return files2;
|
|
19763
19674
|
}
|
|
@@ -19868,14 +19779,14 @@ var init_list = __esm({
|
|
|
19868
19779
|
});
|
|
19869
19780
|
|
|
19870
19781
|
// ../cli/src/commands/misc.ts
|
|
19871
|
-
import
|
|
19872
|
-
import
|
|
19782
|
+
import fs61 from "node:fs";
|
|
19783
|
+
import path63 from "node:path";
|
|
19873
19784
|
function extractOldMeta(text5, file) {
|
|
19874
19785
|
const grab = (re3) => {
|
|
19875
19786
|
const m = text5.match(re3);
|
|
19876
19787
|
return m ? m[1].trim() : null;
|
|
19877
19788
|
};
|
|
19878
|
-
const title = grab(/^#\s+(.+)$/m) || slugify(
|
|
19789
|
+
const title = grab(/^#\s+(.+)$/m) || slugify(path63.basename(file, ".md").replace(/^\d+-/, "")).replace(/-/g, " ");
|
|
19879
19790
|
const norm = (raw) => {
|
|
19880
19791
|
const v = (raw || "").toLowerCase();
|
|
19881
19792
|
return LEVELS.includes(v) ? v : "med";
|
|
@@ -19902,11 +19813,11 @@ function stripOldHeader(text5) {
|
|
|
19902
19813
|
}
|
|
19903
19814
|
function cmdMigrate(opts) {
|
|
19904
19815
|
const dry = opts.dryRun === true;
|
|
19905
|
-
const files2 = walkMd(TODO).filter((f2) =>
|
|
19816
|
+
const files2 = walkMd(TODO).filter((f2) => path63.basename(f2) !== "README.md");
|
|
19906
19817
|
let changed = 0;
|
|
19907
19818
|
let skipped = 0;
|
|
19908
19819
|
for (const file of files2) {
|
|
19909
|
-
const text5 =
|
|
19820
|
+
const text5 = fs61.readFileSync(file, "utf8");
|
|
19910
19821
|
if (text5.trimStart().startsWith("---")) {
|
|
19911
19822
|
skipped++;
|
|
19912
19823
|
continue;
|
|
@@ -19915,7 +19826,7 @@ function cmdMigrate(opts) {
|
|
|
19915
19826
|
const out = serializeFrontmatter(meta) + "\n\n" + stripOldHeader(text5).replace(/^\n+/, "");
|
|
19916
19827
|
if (dry) say(`would migrate ${rel(file)} (priority=${meta.priority})`);
|
|
19917
19828
|
else {
|
|
19918
|
-
|
|
19829
|
+
fs61.writeFileSync(file, out.endsWith("\n") ? out : out + "\n");
|
|
19919
19830
|
say(`migrated ${rel(file)}`);
|
|
19920
19831
|
}
|
|
19921
19832
|
changed++;
|
|
@@ -19936,8 +19847,8 @@ var init_misc = __esm({
|
|
|
19936
19847
|
});
|
|
19937
19848
|
|
|
19938
19849
|
// ../cli/src/lib/card-sources.ts
|
|
19939
|
-
import
|
|
19940
|
-
import
|
|
19850
|
+
import fs62 from "node:fs";
|
|
19851
|
+
import path64 from "node:path";
|
|
19941
19852
|
function planById(id) {
|
|
19942
19853
|
const found2 = readPlan(`plans/${id}-.md`);
|
|
19943
19854
|
return found2?.text.trim() ? found2 : null;
|
|
@@ -19947,8 +19858,8 @@ function cardLink(id) {
|
|
|
19947
19858
|
const found2 = open3 ?? locateArchived(id);
|
|
19948
19859
|
if (!found2) return null;
|
|
19949
19860
|
try {
|
|
19950
|
-
const file = found2.kind === "group" ?
|
|
19951
|
-
const title = parseFrontmatter(
|
|
19861
|
+
const file = found2.kind === "group" ? path64.join(found2.target, "root.md") : found2.target;
|
|
19862
|
+
const title = parseFrontmatter(fs62.readFileSync(file, "utf8")).meta?.title ?? "";
|
|
19952
19863
|
return { kind: "card", ref: String(id), title, ...open3 ? {} : { archived: true } };
|
|
19953
19864
|
} catch {
|
|
19954
19865
|
return null;
|
|
@@ -19973,7 +19884,7 @@ function link(ref, items) {
|
|
|
19973
19884
|
if (ref.kind === "plan") return planLink(ref.id);
|
|
19974
19885
|
if (ref.kind === "card") return cardLink(ref.id);
|
|
19975
19886
|
if (ref.kind === "url") return urlLink(ref.url);
|
|
19976
|
-
const item = items().find((signal2) =>
|
|
19887
|
+
const item = items().find((signal2) => path64.basename(signal2.relPath) === ref.file);
|
|
19977
19888
|
return item ? itemLink(item) : null;
|
|
19978
19889
|
}
|
|
19979
19890
|
function cardSources(meta, body) {
|
|
@@ -20014,12 +19925,12 @@ var init_card_sources = __esm({
|
|
|
20014
19925
|
});
|
|
20015
19926
|
|
|
20016
19927
|
// ../cli/src/lib/view/read.ts
|
|
20017
|
-
import
|
|
20018
|
-
import
|
|
19928
|
+
import fs63 from "node:fs";
|
|
19929
|
+
import path65 from "node:path";
|
|
20019
19930
|
function readCard(file, relFromTodo) {
|
|
20020
|
-
const id = idPrefix(
|
|
19931
|
+
const id = idPrefix(path65.basename(relFromTodo));
|
|
20021
19932
|
if (id === null) {
|
|
20022
|
-
const parts = relFromTodo.split(
|
|
19933
|
+
const parts = relFromTodo.split(path65.sep);
|
|
20023
19934
|
const folderId = idPrefix(parts[parts.length - 2] || "");
|
|
20024
19935
|
if (folderId === null) return null;
|
|
20025
19936
|
return buildCard(folderId, file, relFromTodo);
|
|
@@ -20027,10 +19938,10 @@ function readCard(file, relFromTodo) {
|
|
|
20027
19938
|
return buildCard(id, file, relFromTodo);
|
|
20028
19939
|
}
|
|
20029
19940
|
function buildCard(id, file, relFromTodo) {
|
|
20030
|
-
const text5 =
|
|
19941
|
+
const text5 = fs63.readFileSync(file, "utf8");
|
|
20031
19942
|
const { meta, body } = parseFrontmatter(text5);
|
|
20032
19943
|
if (!meta) return null;
|
|
20033
|
-
const relPath = relFromTodo.split(
|
|
19944
|
+
const relPath = relFromTodo.split(path65.sep).join("/");
|
|
20034
19945
|
const flow = workflowFor(meta.workflow);
|
|
20035
19946
|
const plan = !!meta.workflow && archivesOnApproval(flow);
|
|
20036
19947
|
const stages = cardStages(meta, flow).length;
|
|
@@ -20039,7 +19950,7 @@ function buildCard(id, file, relFromTodo) {
|
|
|
20039
19950
|
// Derived from the file exactly as it is on disk (lib/board/revision.ts), so a card
|
|
20040
19951
|
// read here and a card read by the contract agree on what version this is.
|
|
20041
19952
|
revision: revisionOf(text5),
|
|
20042
|
-
updatedAt:
|
|
19953
|
+
updatedAt: fs63.statSync(file).mtime.toISOString(),
|
|
20043
19954
|
relPath,
|
|
20044
19955
|
title: meta.title,
|
|
20045
19956
|
priority: meta.priority,
|
|
@@ -20060,22 +19971,22 @@ function buildCard(id, file, relFromTodo) {
|
|
|
20060
19971
|
};
|
|
20061
19972
|
}
|
|
20062
19973
|
function readGroup2(folderName) {
|
|
20063
|
-
const groupDir =
|
|
20064
|
-
const rootFile =
|
|
20065
|
-
if (!
|
|
20066
|
-
const root2 = readCard(rootFile,
|
|
19974
|
+
const groupDir = path65.join(TODO, folderName);
|
|
19975
|
+
const rootFile = path65.join(groupDir, "root.md");
|
|
19976
|
+
if (!fs63.existsSync(rootFile)) return null;
|
|
19977
|
+
const root2 = readCard(rootFile, path65.join(folderName, "root.md"));
|
|
20067
19978
|
if (!root2) return null;
|
|
20068
19979
|
root2.isGroup = true;
|
|
20069
19980
|
const { total, resolved: resolved2 } = subtaskLines(root2.body);
|
|
20070
19981
|
root2.subtaskLines = { total, resolved: resolved2 };
|
|
20071
19982
|
const subCards = [];
|
|
20072
19983
|
const recurse = (dir, relDir) => {
|
|
20073
|
-
for (const entry of
|
|
20074
|
-
const childRel =
|
|
19984
|
+
for (const entry of fs63.readdirSync(dir, { withFileTypes: true })) {
|
|
19985
|
+
const childRel = path65.join(relDir, entry.name);
|
|
20075
19986
|
if (entry.isDirectory()) {
|
|
20076
|
-
recurse(
|
|
19987
|
+
recurse(path65.join(dir, entry.name), childRel);
|
|
20077
19988
|
} else if (entry.name.endsWith(".md") && entry.name !== "README.md" && entry.name !== "root.md") {
|
|
20078
|
-
const c2 = readCard(
|
|
19989
|
+
const c2 = readCard(path65.join(dir, entry.name), childRel);
|
|
20079
19990
|
if (c2) {
|
|
20080
19991
|
c2.parent = { id: root2.id, title: root2.title };
|
|
20081
19992
|
subCards.push(c2);
|
|
@@ -20096,12 +20007,12 @@ function readGroup2(folderName) {
|
|
|
20096
20007
|
return { root: root2, subCards };
|
|
20097
20008
|
}
|
|
20098
20009
|
function standaloneCards(dirRel) {
|
|
20099
|
-
const dir = dirRel ?
|
|
20100
|
-
if (!
|
|
20010
|
+
const dir = dirRel ? path65.join(TODO, dirRel) : TODO;
|
|
20011
|
+
if (!fs63.existsSync(dir)) return [];
|
|
20101
20012
|
const cards = [];
|
|
20102
|
-
for (const entry of
|
|
20013
|
+
for (const entry of fs63.readdirSync(dir, { withFileTypes: true })) {
|
|
20103
20014
|
if (entry.isFile() && entry.name.endsWith(".md") && entry.name !== "README.md") {
|
|
20104
|
-
const c2 = readCard(
|
|
20015
|
+
const c2 = readCard(path65.join(dir, entry.name), path65.join(dirRel, entry.name));
|
|
20105
20016
|
if (c2) cards.push(c2);
|
|
20106
20017
|
}
|
|
20107
20018
|
}
|
|
@@ -20113,7 +20024,7 @@ function collectCards() {
|
|
|
20113
20024
|
const top = standaloneCards("");
|
|
20114
20025
|
board2.push(...top);
|
|
20115
20026
|
every.push(...top);
|
|
20116
|
-
for (const entry of
|
|
20027
|
+
for (const entry of fs63.readdirSync(TODO, { withFileTypes: true })) {
|
|
20117
20028
|
if (!entry.isDirectory()) continue;
|
|
20118
20029
|
if (isGroupFolder(entry.name)) {
|
|
20119
20030
|
const g3 = readGroup2(entry.name);
|
|
@@ -20145,7 +20056,7 @@ function findCard(id) {
|
|
|
20145
20056
|
}
|
|
20146
20057
|
function attachSources(card) {
|
|
20147
20058
|
try {
|
|
20148
|
-
const { meta, body } = parseFrontmatter(
|
|
20059
|
+
const { meta, body } = parseFrontmatter(fs63.readFileSync(path65.join(TODO, card.relPath), "utf8"));
|
|
20149
20060
|
const sources2 = meta ? cardSources(meta, body) : [];
|
|
20150
20061
|
if (sources2.length) card.sources = sources2;
|
|
20151
20062
|
} catch {
|
|
@@ -20250,10 +20161,10 @@ var init_read = __esm({
|
|
|
20250
20161
|
});
|
|
20251
20162
|
|
|
20252
20163
|
// ../cli/src/lib/group-close.ts
|
|
20253
|
-
import
|
|
20164
|
+
import fs64 from "node:fs";
|
|
20254
20165
|
function groupCloses(rootFile) {
|
|
20255
20166
|
try {
|
|
20256
|
-
return groupCloseOf(
|
|
20167
|
+
return groupCloseOf(fs64.readFileSync(rootFile, "utf8"));
|
|
20257
20168
|
} catch {
|
|
20258
20169
|
return false;
|
|
20259
20170
|
}
|
|
@@ -20266,12 +20177,12 @@ var init_group_close = __esm({
|
|
|
20266
20177
|
});
|
|
20267
20178
|
|
|
20268
20179
|
// ../cli/src/commands/remove.ts
|
|
20269
|
-
import
|
|
20270
|
-
import
|
|
20180
|
+
import fs65 from "node:fs";
|
|
20181
|
+
import path66 from "node:path";
|
|
20271
20182
|
function leavingIds(id, found2) {
|
|
20272
20183
|
const ids = /* @__PURE__ */ new Set([id]);
|
|
20273
20184
|
if (found2.kind === "group") {
|
|
20274
|
-
const names3 = [...walkMd(found2.target), ...walkDirs(found2.target)].map((f2) =>
|
|
20185
|
+
const names3 = [...walkMd(found2.target), ...walkDirs(found2.target)].map((f2) => path66.basename(f2));
|
|
20275
20186
|
for (const name of names3) {
|
|
20276
20187
|
const n = idPrefix(name);
|
|
20277
20188
|
if (n !== null) ids.add(n);
|
|
@@ -20283,10 +20194,10 @@ function findMentions(ids) {
|
|
|
20283
20194
|
const hits = [];
|
|
20284
20195
|
const re3 = new RegExp(ids.map((id) => `#${id}(?!\\d)`).join("|"));
|
|
20285
20196
|
for (const dir of [TODO, MEMORY]) {
|
|
20286
|
-
if (!
|
|
20197
|
+
if (!fs65.existsSync(dir)) continue;
|
|
20287
20198
|
for (const file of walkMd(dir)) {
|
|
20288
|
-
if (
|
|
20289
|
-
const lines =
|
|
20199
|
+
if (path66.basename(file) === "README.md") continue;
|
|
20200
|
+
const lines = fs65.readFileSync(file, "utf8").split("\n");
|
|
20290
20201
|
const fmEnd = frontmatterEnd(lines);
|
|
20291
20202
|
lines.forEach((line, i) => {
|
|
20292
20203
|
if (!re3.test(line)) return;
|
|
@@ -20302,12 +20213,12 @@ function findMentions(ids) {
|
|
|
20302
20213
|
return hits;
|
|
20303
20214
|
}
|
|
20304
20215
|
function leavingCards(id, found2) {
|
|
20305
|
-
const own = found2.kind === "group" ?
|
|
20216
|
+
const own = found2.kind === "group" ? path66.join(found2.target, "root.md") : found2.target;
|
|
20306
20217
|
const cards = [{ id, file: own }];
|
|
20307
20218
|
if (found2.kind !== "group") return cards;
|
|
20308
20219
|
for (const file of walkMd(found2.target)) {
|
|
20309
20220
|
if (file === own) continue;
|
|
20310
|
-
const n = idPrefix(
|
|
20221
|
+
const n = idPrefix(path66.basename(file));
|
|
20311
20222
|
if (n !== null) cards.push({ id: n, file });
|
|
20312
20223
|
}
|
|
20313
20224
|
return cards;
|
|
@@ -20316,10 +20227,10 @@ function stampLeaving(cards, rejection) {
|
|
|
20316
20227
|
const day = formatDay();
|
|
20317
20228
|
const stamp4 = rejection && !rejection.discard ? { reason: rejection.reason, at: (/* @__PURE__ */ new Date()).toISOString(), by: insideRun() ? "agent" : "user" } : rejection && { reason: rejection.reason };
|
|
20318
20229
|
for (const card of cards) {
|
|
20319
|
-
if (!
|
|
20320
|
-
const text5 =
|
|
20230
|
+
if (!fs65.existsSync(card.file)) continue;
|
|
20231
|
+
const text5 = fs65.readFileSync(card.file, "utf8");
|
|
20321
20232
|
const stamped = stampLeavingIn(text5, day, stamp4);
|
|
20322
|
-
if (stamped !== text5)
|
|
20233
|
+
if (stamped !== text5) fs65.writeFileSync(card.file, stamped);
|
|
20323
20234
|
}
|
|
20324
20235
|
}
|
|
20325
20236
|
function unfinishedDelivery(id) {
|
|
@@ -20335,7 +20246,7 @@ function unfinishedDelivery(id) {
|
|
|
20335
20246
|
}[gap];
|
|
20336
20247
|
return `#${id} is not finished: ${what}.`;
|
|
20337
20248
|
}
|
|
20338
|
-
const missing = planDeliverables(card.body).filter((src) => src.startsWith(".assets/")).find((src) => !
|
|
20249
|
+
const missing = planDeliverables(card.body).filter((src) => src.startsWith(".assets/")).find((src) => !fs65.existsSync(path66.join(ASSETS, src.slice(".assets/".length))));
|
|
20339
20250
|
return missing ? `#${id} is not finished: ${missing} is not on this machine.` : null;
|
|
20340
20251
|
}
|
|
20341
20252
|
function agentDecisions(text5) {
|
|
@@ -20366,8 +20277,8 @@ function removeCard2(id, metric, options) {
|
|
|
20366
20277
|
const unfinished = metric === "completed" ? unfinishedDelivery(id) : null;
|
|
20367
20278
|
if (unfinished) die(unfinished, { kind: "plan-delivery-unfinished" });
|
|
20368
20279
|
const dest = options.cleanupDiscarded && locateArchived(id) ? null : archiveDest(found2);
|
|
20369
|
-
const cardFile3 = found2.kind === "group" ?
|
|
20370
|
-
const cardText =
|
|
20280
|
+
const cardFile3 = found2.kind === "group" ? path66.join(found2.target, "root.md") : found2.target;
|
|
20281
|
+
const cardText = fs65.existsSync(cardFile3) ? fs65.readFileSync(cardFile3, "utf8") : "";
|
|
20371
20282
|
const { meta: cardMeta3 } = parseFrontmatter(cardText);
|
|
20372
20283
|
const alsoRemoved = found2.kind === "group" ? walkMd(found2.target).filter((f2) => f2 !== cardFile3).map((f2) => rel(f2)).sort() : [];
|
|
20373
20284
|
const leftIds = leavingIds(id, found2);
|
|
@@ -20398,10 +20309,10 @@ function removeCard2(id, metric, options) {
|
|
|
20398
20309
|
const groupRoot = found2.kind === "file" && !options.closing ? enclosingGroupRoot(found2.target) : null;
|
|
20399
20310
|
if (dest) {
|
|
20400
20311
|
stampLeaving(leaving, metric === "rejected" ? { reason: options.reason?.trim() ?? "", discard: options.discard === true } : null);
|
|
20401
|
-
|
|
20402
|
-
|
|
20312
|
+
fs65.mkdirSync(ARCHIVE, { recursive: true });
|
|
20313
|
+
fs65.renameSync(found2.target, dest);
|
|
20403
20314
|
} else {
|
|
20404
|
-
|
|
20315
|
+
fs65.rmSync(found2.target, { recursive: true, force: true });
|
|
20405
20316
|
}
|
|
20406
20317
|
const removedRefs = stripReadmeRefs(found2);
|
|
20407
20318
|
let marked2 = null;
|
|
@@ -20450,14 +20361,14 @@ function removeCard2(id, metric, options) {
|
|
|
20450
20361
|
};
|
|
20451
20362
|
}
|
|
20452
20363
|
function closeGroup(rootFile) {
|
|
20453
|
-
const rootId = idPrefix(
|
|
20364
|
+
const rootId = idPrefix(path66.basename(path66.dirname(rootFile)));
|
|
20454
20365
|
if (rootId === null) return null;
|
|
20455
20366
|
if (runnerProject(KANBAN)) return null;
|
|
20456
20367
|
if (!groupCloses(rootFile)) return null;
|
|
20457
20368
|
say(`
|
|
20458
20369
|
every subtask line on #${rootId} is resolved \u2014 closing the group:`);
|
|
20459
20370
|
try {
|
|
20460
|
-
const { meta, body } = parseFrontmatter(
|
|
20371
|
+
const { meta, body } = parseFrontmatter(fs65.readFileSync(rootFile, "utf8"));
|
|
20461
20372
|
const res = cmdRemove(rootId, "completed", { closing: true });
|
|
20462
20373
|
return {
|
|
20463
20374
|
id: rootId,
|
|
@@ -20514,7 +20425,7 @@ function cleanupDiscardedCards(sessionId) {
|
|
|
20514
20425
|
if (card.pending) throw new Error(`Discarding #${card.id} did not finish. Retry the discard.`);
|
|
20515
20426
|
while (locate(card.id)) cmdRemove(card.id, "rejected", { discard: true, cleanupDiscarded: true });
|
|
20516
20427
|
dropCrossRefs(card.id);
|
|
20517
|
-
stripReadmeRefs({ kind: "file", rel:
|
|
20428
|
+
stripReadmeRefs({ kind: "file", rel: path66.relative(TODO, path66.resolve(REPO_ROOT, card.path)).split(path66.sep).join("/") });
|
|
20518
20429
|
}
|
|
20519
20430
|
return discarded.map((c2) => c2.id);
|
|
20520
20431
|
});
|
|
@@ -20522,8 +20433,8 @@ function cleanupDiscardedCards(sessionId) {
|
|
|
20522
20433
|
function recoveredArchiveHandoff(id, source) {
|
|
20523
20434
|
const found2 = locateArchived(id);
|
|
20524
20435
|
if (!found2) throw new Error(`No archived card #${id} was found.`);
|
|
20525
|
-
const file = found2.kind === "group" ?
|
|
20526
|
-
const { meta } = parseFrontmatter(
|
|
20436
|
+
const file = found2.kind === "group" ? path66.join(found2.target, "root.md") : found2.target;
|
|
20437
|
+
const { meta } = parseFrontmatter(fs65.readFileSync(file, "utf8"));
|
|
20527
20438
|
stripReadmeRefs(source ?? found2);
|
|
20528
20439
|
const root2 = source?.kind === "file" ? enclosingGroupRoot(source.target) : null;
|
|
20529
20440
|
if (root2) markSubtask(root2, id, "tick");
|
|
@@ -20621,8 +20532,8 @@ var init_memory_file = __esm({
|
|
|
20621
20532
|
});
|
|
20622
20533
|
|
|
20623
20534
|
// ../cli/src/commands/rule.ts
|
|
20624
|
-
import
|
|
20625
|
-
import
|
|
20535
|
+
import fs66 from "node:fs";
|
|
20536
|
+
import path67 from "node:path";
|
|
20626
20537
|
function cmdRule(askedName, flags) {
|
|
20627
20538
|
const agent = askedName.trim();
|
|
20628
20539
|
if (!agentRoster().some((a2) => a2.name === agent)) {
|
|
@@ -20631,7 +20542,7 @@ function cmdRule(askedName, flags) {
|
|
|
20631
20542
|
const rule = readRuleText(flags.file, flags.text);
|
|
20632
20543
|
const res = setAgentRule(agent, rule);
|
|
20633
20544
|
if (!res.ok) die(res.error);
|
|
20634
|
-
const file = rel(
|
|
20545
|
+
const file = rel(path67.join(RULES, `${agent}.md`));
|
|
20635
20546
|
say(rule ? `wrote the \`${agent}\` rule (${file})` : `cleared the \`${agent}\` rule`);
|
|
20636
20547
|
return { agent, file, cleared: !rule };
|
|
20637
20548
|
}
|
|
@@ -20639,7 +20550,7 @@ function readRuleText(file, text5) {
|
|
|
20639
20550
|
if (file !== void 0 && text5 !== void 0) die("pass --file or --text, not both");
|
|
20640
20551
|
if (file !== void 0) {
|
|
20641
20552
|
try {
|
|
20642
|
-
return
|
|
20553
|
+
return fs66.readFileSync(file, "utf8").trim();
|
|
20643
20554
|
} catch {
|
|
20644
20555
|
die(`can't read ${file} \u2014 write the rule to a file, then pass its path`);
|
|
20645
20556
|
}
|
|
@@ -21073,8 +20984,8 @@ __export(board_exports, {
|
|
|
21073
20984
|
buildBoardProgram: () => buildBoardProgram
|
|
21074
20985
|
});
|
|
21075
20986
|
import crypto5 from "node:crypto";
|
|
21076
|
-
import
|
|
21077
|
-
import
|
|
20987
|
+
import fs67 from "node:fs";
|
|
20988
|
+
import path68 from "node:path";
|
|
21078
20989
|
async function dispatch(move, cmd, args, opts, cli) {
|
|
21079
20990
|
const ctx = ctxOf(cmd, cli.program);
|
|
21080
20991
|
const data = await runAction(ctx, {}, async () => {
|
|
@@ -21114,7 +21025,7 @@ async function cloudCard(task, opts) {
|
|
|
21114
21025
|
let request2;
|
|
21115
21026
|
if (typeof opts.bodyFile === "string") {
|
|
21116
21027
|
try {
|
|
21117
|
-
request2 =
|
|
21028
|
+
request2 = fs67.readFileSync(opts.bodyFile, "utf8");
|
|
21118
21029
|
} catch {
|
|
21119
21030
|
}
|
|
21120
21031
|
}
|
|
@@ -21144,7 +21055,7 @@ async function cloudCard(task, opts) {
|
|
|
21144
21055
|
const file = creationReceipt(`${checked.value}:${requestId}`, slot);
|
|
21145
21056
|
const journal = readCreation(file, said3);
|
|
21146
21057
|
if (!journal.made) {
|
|
21147
|
-
const key = `akb-${
|
|
21058
|
+
const key = `akb-${path68.basename(file, ".json").slice(0, 40)}`;
|
|
21148
21059
|
const made = await createProjectTask(checked.value, journal.said, key);
|
|
21149
21060
|
if (!made.ok) throw new BoardError(creationError(`Cloud did not make the task: ${made.error}`, triage), { kind: "refused" });
|
|
21150
21061
|
journal.made = made.value;
|
|
@@ -21286,16 +21197,16 @@ var init_board2 = __esm({
|
|
|
21286
21197
|
});
|
|
21287
21198
|
|
|
21288
21199
|
// ../cli/src/lib/board-cli.ts
|
|
21289
|
-
import
|
|
21290
|
-
import
|
|
21200
|
+
import fs68 from "node:fs";
|
|
21201
|
+
import path69 from "node:path";
|
|
21291
21202
|
function useBoard(found2, dirNamed) {
|
|
21292
|
-
if (!found2.named && found2.board ===
|
|
21203
|
+
if (!found2.named && found2.board === path69.join(found2.root, "docs", "kanban")) setBoardRoot(found2.root, dirNamed);
|
|
21293
21204
|
else setBoardDir(found2.board, found2.root);
|
|
21294
21205
|
useProjectState();
|
|
21295
21206
|
}
|
|
21296
21207
|
function whole(found2, move) {
|
|
21297
21208
|
if (move === MAKES_A_BOARD) return found2;
|
|
21298
|
-
if (!
|
|
21209
|
+
if (!fs68.existsSync(path69.join(found2.board, "todo"))) {
|
|
21299
21210
|
die(`the board in ${found2.board} has no todo/ \u2014 run \`init\` to add what is missing.`, {
|
|
21300
21211
|
kind: "board-incomplete",
|
|
21301
21212
|
dir: found2.root
|
|
@@ -21304,13 +21215,13 @@ function whole(found2, move) {
|
|
|
21304
21215
|
return found2;
|
|
21305
21216
|
}
|
|
21306
21217
|
function findBoardUpward(from, move) {
|
|
21307
|
-
let dir =
|
|
21218
|
+
let dir = path69.resolve(from);
|
|
21308
21219
|
for (; ; ) {
|
|
21309
|
-
if (hasBoard(dir)) return { root: dir, board:
|
|
21220
|
+
if (hasBoard(dir)) return { root: dir, board: path69.join(dir, "docs", "kanban") };
|
|
21310
21221
|
if (isBoardDir(dir)) return { root: projectRootOf(dir), board: dir };
|
|
21311
|
-
const kept2 =
|
|
21312
|
-
if (move !== MAKES_A_BOARD &&
|
|
21313
|
-
const up =
|
|
21222
|
+
const kept2 = path69.join(dir, ".akb", "kanban");
|
|
21223
|
+
if (move !== MAKES_A_BOARD && fs68.existsSync(path69.join(kept2, "todo"))) return { root: dir, board: kept2 };
|
|
21224
|
+
const up = path69.dirname(dir);
|
|
21314
21225
|
if (up === dir) return null;
|
|
21315
21226
|
dir = up;
|
|
21316
21227
|
}
|
|
@@ -21318,11 +21229,11 @@ function findBoardUpward(from, move) {
|
|
|
21318
21229
|
function resolveBoard(move, { board: board2, dir, cwd, installHint }) {
|
|
21319
21230
|
const named2 = board2 ?? boardFromEnv();
|
|
21320
21231
|
if (named2) {
|
|
21321
|
-
const folder =
|
|
21322
|
-
if (!
|
|
21232
|
+
const folder = path69.resolve(cwd, named2);
|
|
21233
|
+
if (!fs68.existsSync(folder) && move !== MAKES_A_BOARD) {
|
|
21323
21234
|
die(`no such folder: ${folder}`, { kind: "no-such-folder", dir: folder });
|
|
21324
21235
|
}
|
|
21325
|
-
if (
|
|
21236
|
+
if (fs68.existsSync(folder) && !isBoardDir(folder) && move !== MAKES_A_BOARD) {
|
|
21326
21237
|
die(`${folder} is not a board \u2014 it has no todo/ and config.md. ${installHint}\u3002`, {
|
|
21327
21238
|
kind: "no-board",
|
|
21328
21239
|
dir: folder
|
|
@@ -21331,24 +21242,24 @@ function resolveBoard(move, { board: board2, dir, cwd, installHint }) {
|
|
|
21331
21242
|
return { root: projectRootOf(folder), board: folder, named: true };
|
|
21332
21243
|
}
|
|
21333
21244
|
if (dir !== null) {
|
|
21334
|
-
const root2 =
|
|
21335
|
-
if (!
|
|
21336
|
-
const kept2 =
|
|
21337
|
-
if (!hasBoard(root2) && move !== MAKES_A_BOARD &&
|
|
21245
|
+
const root2 = path69.resolve(dir);
|
|
21246
|
+
if (!fs68.existsSync(root2)) die(`no such folder: ${root2}`, { kind: "no-such-folder", dir: root2 });
|
|
21247
|
+
const kept2 = path69.join(root2, ".akb", "kanban");
|
|
21248
|
+
if (!hasBoard(root2) && move !== MAKES_A_BOARD && fs68.existsSync(path69.join(kept2, "todo"))) return whole({ root: root2, board: kept2 }, move);
|
|
21338
21249
|
if (!hasBoard(root2) && move !== MAKES_A_BOARD) {
|
|
21339
21250
|
die(`no board in ${root2} \u2014 it has no docs/kanban/. ${installHint}\u3002`, {
|
|
21340
21251
|
kind: "no-board",
|
|
21341
21252
|
dir: root2
|
|
21342
21253
|
});
|
|
21343
21254
|
}
|
|
21344
|
-
return whole({ root: root2, board:
|
|
21255
|
+
return whole({ root: root2, board: path69.join(root2, "docs", "kanban") }, move);
|
|
21345
21256
|
}
|
|
21346
21257
|
const found2 = findBoardUpward(cwd, move);
|
|
21347
21258
|
if (found2) return whole(found2, move);
|
|
21348
|
-
if (move === MAKES_A_BOARD) return { root:
|
|
21259
|
+
if (move === MAKES_A_BOARD) return { root: path69.resolve(cwd), board: path69.join(path69.resolve(cwd), "docs", "kanban") };
|
|
21349
21260
|
die(
|
|
21350
|
-
`no board here. Looked in ${
|
|
21351
|
-
{ kind: "no-board", dir:
|
|
21261
|
+
`no board here. Looked in ${path69.resolve(cwd)} and every folder above it for docs/kanban/. ${installHint}\uFF0C\u6216\u7528 --board \u6307\u5B9A\u5DF2\u6709\u770B\u677F\u3002`,
|
|
21262
|
+
{ kind: "no-board", dir: path69.resolve(cwd) }
|
|
21352
21263
|
);
|
|
21353
21264
|
}
|
|
21354
21265
|
function editDistance(a2, b2) {
|
|
@@ -21430,8 +21341,8 @@ var init_board_cli = __esm({
|
|
|
21430
21341
|
init_io();
|
|
21431
21342
|
init_pointer();
|
|
21432
21343
|
MAKES_A_BOARD = "init";
|
|
21433
|
-
hasBoard = (dir) =>
|
|
21434
|
-
isBoardDir = (dir) =>
|
|
21344
|
+
hasBoard = (dir) => fs68.existsSync(path69.join(dir, "docs", "kanban"));
|
|
21345
|
+
isBoardDir = (dir) => fs68.existsSync(path69.join(dir, "todo")) && fs68.existsSync(path69.join(dir, "config.md"));
|
|
21435
21346
|
boardFromEnv = () => {
|
|
21436
21347
|
const named2 = process.env.AI4KANBAN_BOARD?.trim();
|
|
21437
21348
|
return named2 ? named2 : null;
|
|
@@ -21688,8 +21599,8 @@ var init_guide = __esm({
|
|
|
21688
21599
|
});
|
|
21689
21600
|
|
|
21690
21601
|
// ../cli/src/lib/agent/approve.ts
|
|
21691
|
-
import
|
|
21692
|
-
import
|
|
21602
|
+
import fs74 from "node:fs";
|
|
21603
|
+
import path75 from "node:path";
|
|
21693
21604
|
function approvalRequest(req) {
|
|
21694
21605
|
const id = req.id;
|
|
21695
21606
|
const card = id === void 0 ? null : findCard(id);
|
|
@@ -21707,12 +21618,12 @@ function advancePhase(id) {
|
|
|
21707
21618
|
const card = findCard(id);
|
|
21708
21619
|
const found2 = locate(id);
|
|
21709
21620
|
if (!card || !found2 || !awaitingApproval(card)) return { error: `#${id} is no longer waiting on approval.` };
|
|
21710
|
-
const file = found2.kind === "group" ?
|
|
21711
|
-
const { meta, body } = parseFrontmatter(
|
|
21621
|
+
const file = found2.kind === "group" ? path75.join(found2.target, "root.md") : found2.target;
|
|
21622
|
+
const { meta, body } = parseFrontmatter(fs74.readFileSync(file, "utf8"));
|
|
21712
21623
|
if (!meta) return { error: `#${id} has no frontmatter` };
|
|
21713
21624
|
meta.phase = card.stage + 1;
|
|
21714
21625
|
meta.status = "todo";
|
|
21715
|
-
|
|
21626
|
+
fs74.writeFileSync(file, serializeFrontmatter(meta) + "\n" + body);
|
|
21716
21627
|
return null;
|
|
21717
21628
|
}
|
|
21718
21629
|
var init_approve = __esm({
|
|
@@ -21845,16 +21756,16 @@ var init_start = __esm({
|
|
|
21845
21756
|
});
|
|
21846
21757
|
|
|
21847
21758
|
// ../cli/src/lib/agent/task-chats.ts
|
|
21848
|
-
import
|
|
21849
|
-
import
|
|
21759
|
+
import fs75 from "node:fs";
|
|
21760
|
+
import path76 from "node:path";
|
|
21850
21761
|
function taskChatFile(task, home3) {
|
|
21851
21762
|
if (!TASK.test(task)) throw new Error(`${task} is not a task id.`);
|
|
21852
|
-
return
|
|
21763
|
+
return path76.join(taskChatsDir(home3), `${task}.jsonl`);
|
|
21853
21764
|
}
|
|
21854
21765
|
function readTaskChat(task, home3) {
|
|
21855
21766
|
let text5;
|
|
21856
21767
|
try {
|
|
21857
|
-
text5 =
|
|
21768
|
+
text5 = fs75.readFileSync(taskChatFile(task, home3), "utf8");
|
|
21858
21769
|
} catch {
|
|
21859
21770
|
return [];
|
|
21860
21771
|
}
|
|
@@ -21875,13 +21786,13 @@ var init_task_chats = __esm({
|
|
|
21875
21786
|
"use strict";
|
|
21876
21787
|
init_home();
|
|
21877
21788
|
TASK = /^[\w-]{1,100}$/;
|
|
21878
|
-
taskChatsDir = (home3 = machineHome()) =>
|
|
21789
|
+
taskChatsDir = (home3 = machineHome()) => path76.join(home3, "chats");
|
|
21879
21790
|
}
|
|
21880
21791
|
});
|
|
21881
21792
|
|
|
21882
21793
|
// ../cli/src/lib/agent/memory-review.ts
|
|
21883
|
-
import
|
|
21884
|
-
import
|
|
21794
|
+
import fs76 from "node:fs";
|
|
21795
|
+
import path77 from "node:path";
|
|
21885
21796
|
function taskChatsToReview(tasks) {
|
|
21886
21797
|
const out = [];
|
|
21887
21798
|
for (const ref of [...new Set(tasks)]) {
|
|
@@ -21903,8 +21814,8 @@ function readArchived2(id) {
|
|
|
21903
21814
|
const found2 = Number.isInteger(id) && id > 0 ? locateArchived(id) : null;
|
|
21904
21815
|
if (!found2) return null;
|
|
21905
21816
|
try {
|
|
21906
|
-
const file = found2.kind === "group" ?
|
|
21907
|
-
const { meta, body } = parseFrontmatter(
|
|
21817
|
+
const file = found2.kind === "group" ? path77.join(found2.target, "root.md") : found2.target;
|
|
21818
|
+
const { meta, body } = parseFrontmatter(fs76.readFileSync(file, "utf8"));
|
|
21908
21819
|
if (!meta) return null;
|
|
21909
21820
|
return { id, title: meta.title, modules: meta.modules ?? [], rejected: meta.rejected, body };
|
|
21910
21821
|
} catch {
|
|
@@ -21973,17 +21884,17 @@ var init_memory_review = __esm({
|
|
|
21973
21884
|
});
|
|
21974
21885
|
|
|
21975
21886
|
// ../cli/src/lib/agent/dismissal-review.ts
|
|
21976
|
-
import
|
|
21977
|
-
import
|
|
21887
|
+
import fs77 from "node:fs";
|
|
21888
|
+
import path78 from "node:path";
|
|
21978
21889
|
function rejectionsToReview() {
|
|
21979
|
-
const dir =
|
|
21980
|
-
if (!
|
|
21890
|
+
const dir = path78.join(ARCHIVE, REJECTIONS_TO_REVIEW);
|
|
21891
|
+
if (!fs77.existsSync(dir)) return [];
|
|
21981
21892
|
const found2 = [];
|
|
21982
21893
|
for (const file of walkMd(dir)) {
|
|
21983
21894
|
const id = archivedId(file);
|
|
21984
21895
|
if (id === null) continue;
|
|
21985
21896
|
try {
|
|
21986
|
-
const { meta } = parseFrontmatter(
|
|
21897
|
+
const { meta } = parseFrontmatter(fs77.readFileSync(file, "utf8"));
|
|
21987
21898
|
if (!meta?.rejected || meta.rejected_by !== "user" || !meta.rejected_reason.trim()) continue;
|
|
21988
21899
|
found2.push({ id, title: meta.title, file: rel(file), reason: meta.rejected_reason.trim(), rejectedAt: meta.rejected_at });
|
|
21989
21900
|
} catch {
|
|
@@ -22013,7 +21924,7 @@ function citedSources(text5) {
|
|
|
22013
21924
|
function withdrawnSources() {
|
|
22014
21925
|
const cited = [...new Set(plannerCopies("rejected.md").flatMap((file) => {
|
|
22015
21926
|
try {
|
|
22016
|
-
return citedSources(
|
|
21927
|
+
return citedSources(fs77.readFileSync(file, "utf8"));
|
|
22017
21928
|
} catch {
|
|
22018
21929
|
return [];
|
|
22019
21930
|
}
|
|
@@ -22038,8 +21949,8 @@ var init_dismissal_review = __esm({
|
|
|
22038
21949
|
});
|
|
22039
21950
|
|
|
22040
21951
|
// ../cli/src/lib/agent/flow.ts
|
|
22041
|
-
import
|
|
22042
|
-
import
|
|
21952
|
+
import fs78 from "node:fs";
|
|
21953
|
+
import path79 from "node:path";
|
|
22043
21954
|
function readCard2(id, home3 = "board") {
|
|
22044
21955
|
const pending = activeDelivery(id)?.completions?.some((c2) => !c2.finished);
|
|
22045
21956
|
const found2 = home3 === "archive" ? locateArchived(id) : locate(id) ?? (pending ? locateArchived(id) : null);
|
|
@@ -22049,10 +21960,10 @@ function readCard2(id, home3 = "board") {
|
|
|
22049
21960
|
{ kind: "card-not-found", id }
|
|
22050
21961
|
);
|
|
22051
21962
|
}
|
|
22052
|
-
const file = found2.kind === "group" ?
|
|
21963
|
+
const file = found2.kind === "group" ? path79.join(found2.target, "root.md") : found2.target;
|
|
22053
21964
|
let text5;
|
|
22054
21965
|
try {
|
|
22055
|
-
text5 =
|
|
21966
|
+
text5 = fs78.readFileSync(file, "utf8");
|
|
22056
21967
|
} catch {
|
|
22057
21968
|
die(`#${id} is on the board but ${rel(file)} can't be read.`, { kind: "card-unreadable", id });
|
|
22058
21969
|
}
|
|
@@ -22828,9 +22739,9 @@ var init_references = __esm({
|
|
|
22828
22739
|
}
|
|
22829
22740
|
});
|
|
22830
22741
|
|
|
22831
|
-
//
|
|
22742
|
+
// ../cli/node_modules/react/cjs/react.production.js
|
|
22832
22743
|
var require_react_production = __commonJS({
|
|
22833
|
-
"
|
|
22744
|
+
"../cli/node_modules/react/cjs/react.production.js"(exports) {
|
|
22834
22745
|
"use strict";
|
|
22835
22746
|
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
|
|
22836
22747
|
var REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal");
|
|
@@ -23280,9 +23191,9 @@ var require_react_production = __commonJS({
|
|
|
23280
23191
|
}
|
|
23281
23192
|
});
|
|
23282
23193
|
|
|
23283
|
-
//
|
|
23194
|
+
// ../cli/node_modules/react/cjs/react.development.js
|
|
23284
23195
|
var require_react_development = __commonJS({
|
|
23285
|
-
"
|
|
23196
|
+
"../cli/node_modules/react/cjs/react.development.js"(exports, module) {
|
|
23286
23197
|
"use strict";
|
|
23287
23198
|
"production" !== process.env.NODE_ENV && (function() {
|
|
23288
23199
|
function defineDeprecationWarning(methodName, info) {
|
|
@@ -24277,9 +24188,9 @@ var require_react_development = __commonJS({
|
|
|
24277
24188
|
}
|
|
24278
24189
|
});
|
|
24279
24190
|
|
|
24280
|
-
//
|
|
24191
|
+
// ../cli/node_modules/react/index.js
|
|
24281
24192
|
var require_react = __commonJS({
|
|
24282
|
-
"
|
|
24193
|
+
"../cli/node_modules/react/index.js"(exports, module) {
|
|
24283
24194
|
"use strict";
|
|
24284
24195
|
if (process.env.NODE_ENV === "production") {
|
|
24285
24196
|
module.exports = require_react_production();
|
|
@@ -24289,9 +24200,9 @@ var require_react = __commonJS({
|
|
|
24289
24200
|
}
|
|
24290
24201
|
});
|
|
24291
24202
|
|
|
24292
|
-
//
|
|
24203
|
+
// ../cli/node_modules/react/cjs/react-jsx-runtime.production.js
|
|
24293
24204
|
var require_react_jsx_runtime_production = __commonJS({
|
|
24294
|
-
"
|
|
24205
|
+
"../cli/node_modules/react/cjs/react-jsx-runtime.production.js"(exports) {
|
|
24295
24206
|
"use strict";
|
|
24296
24207
|
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
|
|
24297
24208
|
var REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
@@ -24319,9 +24230,9 @@ var require_react_jsx_runtime_production = __commonJS({
|
|
|
24319
24230
|
}
|
|
24320
24231
|
});
|
|
24321
24232
|
|
|
24322
|
-
//
|
|
24233
|
+
// ../cli/node_modules/react/cjs/react-jsx-runtime.development.js
|
|
24323
24234
|
var require_react_jsx_runtime_development = __commonJS({
|
|
24324
|
-
"
|
|
24235
|
+
"../cli/node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
|
|
24325
24236
|
"use strict";
|
|
24326
24237
|
"production" !== process.env.NODE_ENV && (function() {
|
|
24327
24238
|
function getComponentNameFromType(type) {
|
|
@@ -24590,9 +24501,9 @@ var require_react_jsx_runtime_development = __commonJS({
|
|
|
24590
24501
|
}
|
|
24591
24502
|
});
|
|
24592
24503
|
|
|
24593
|
-
//
|
|
24504
|
+
// ../cli/node_modules/react/jsx-runtime.js
|
|
24594
24505
|
var require_jsx_runtime = __commonJS({
|
|
24595
|
-
"
|
|
24506
|
+
"../cli/node_modules/react/jsx-runtime.js"(exports, module) {
|
|
24596
24507
|
"use strict";
|
|
24597
24508
|
if (process.env.NODE_ENV === "production") {
|
|
24598
24509
|
module.exports = require_react_jsx_runtime_production();
|
|
@@ -24602,9 +24513,9 @@ var require_jsx_runtime = __commonJS({
|
|
|
24602
24513
|
}
|
|
24603
24514
|
});
|
|
24604
24515
|
|
|
24605
|
-
//
|
|
24516
|
+
// ../cli/node_modules/react-dom/cjs/react-dom.production.js
|
|
24606
24517
|
var require_react_dom_production = __commonJS({
|
|
24607
|
-
"
|
|
24518
|
+
"../cli/node_modules/react-dom/cjs/react-dom.production.js"(exports) {
|
|
24608
24519
|
"use strict";
|
|
24609
24520
|
var React4 = require_react();
|
|
24610
24521
|
function formatProdErrorMessage(code) {
|
|
@@ -24759,9 +24670,9 @@ var require_react_dom_production = __commonJS({
|
|
|
24759
24670
|
}
|
|
24760
24671
|
});
|
|
24761
24672
|
|
|
24762
|
-
//
|
|
24673
|
+
// ../cli/node_modules/react-dom/cjs/react-dom.development.js
|
|
24763
24674
|
var require_react_dom_development = __commonJS({
|
|
24764
|
-
"
|
|
24675
|
+
"../cli/node_modules/react-dom/cjs/react-dom.development.js"(exports) {
|
|
24765
24676
|
"use strict";
|
|
24766
24677
|
"production" !== process.env.NODE_ENV && (function() {
|
|
24767
24678
|
function noop() {
|
|
@@ -25014,9 +24925,9 @@ var require_react_dom_development = __commonJS({
|
|
|
25014
24925
|
}
|
|
25015
24926
|
});
|
|
25016
24927
|
|
|
25017
|
-
//
|
|
24928
|
+
// ../cli/node_modules/react-dom/index.js
|
|
25018
24929
|
var require_react_dom = __commonJS({
|
|
25019
|
-
"
|
|
24930
|
+
"../cli/node_modules/react-dom/index.js"(exports, module) {
|
|
25020
24931
|
"use strict";
|
|
25021
24932
|
function checkDCE() {
|
|
25022
24933
|
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== "function") {
|
|
@@ -25040,9 +24951,9 @@ var require_react_dom = __commonJS({
|
|
|
25040
24951
|
}
|
|
25041
24952
|
});
|
|
25042
24953
|
|
|
25043
|
-
//
|
|
24954
|
+
// ../cli/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.js
|
|
25044
24955
|
var require_react_dom_server_legacy_node_production = __commonJS({
|
|
25045
|
-
"
|
|
24956
|
+
"../cli/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.js"(exports) {
|
|
25046
24957
|
"use strict";
|
|
25047
24958
|
var React4 = require_react();
|
|
25048
24959
|
var ReactDOM = require_react_dom();
|
|
@@ -30291,9 +30202,9 @@ A.finished.finally(function(){document.__reactViewTransition===A&&(document.__re
|
|
|
30291
30202
|
}
|
|
30292
30203
|
});
|
|
30293
30204
|
|
|
30294
|
-
//
|
|
30205
|
+
// ../cli/node_modules/react-dom/cjs/react-dom-server.node.production.js
|
|
30295
30206
|
var require_react_dom_server_node_production = __commonJS({
|
|
30296
|
-
"
|
|
30207
|
+
"../cli/node_modules/react-dom/cjs/react-dom-server.node.production.js"(exports) {
|
|
30297
30208
|
"use strict";
|
|
30298
30209
|
var util = __require("util");
|
|
30299
30210
|
var crypto7 = __require("crypto");
|
|
@@ -36465,9 +36376,9 @@ A.finished.finally(function(){document.__reactViewTransition===A&&(document.__re
|
|
|
36465
36376
|
}
|
|
36466
36377
|
});
|
|
36467
36378
|
|
|
36468
|
-
//
|
|
36379
|
+
// ../cli/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js
|
|
36469
36380
|
var require_react_dom_server_legacy_node_development = __commonJS({
|
|
36470
|
-
"
|
|
36381
|
+
"../cli/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js"(exports) {
|
|
36471
36382
|
"use strict";
|
|
36472
36383
|
"production" !== process.env.NODE_ENV && (function() {
|
|
36473
36384
|
function styleReplacer(match, prefix2, s, suffix2) {
|
|
@@ -43975,9 +43886,9 @@ A.finished.finally(function(){document.__reactViewTransition===A&&(document.__re
|
|
|
43975
43886
|
}
|
|
43976
43887
|
});
|
|
43977
43888
|
|
|
43978
|
-
//
|
|
43889
|
+
// ../cli/node_modules/react-dom/cjs/react-dom-server.node.development.js
|
|
43979
43890
|
var require_react_dom_server_node_development = __commonJS({
|
|
43980
|
-
"
|
|
43891
|
+
"../cli/node_modules/react-dom/cjs/react-dom-server.node.development.js"(exports) {
|
|
43981
43892
|
"use strict";
|
|
43982
43893
|
"production" !== process.env.NODE_ENV && (function() {
|
|
43983
43894
|
function styleReplacer(match, prefix2, s, suffix2) {
|
|
@@ -52274,9 +52185,9 @@ A.finished.finally(function(){document.__reactViewTransition===A&&(document.__re
|
|
|
52274
52185
|
}
|
|
52275
52186
|
});
|
|
52276
52187
|
|
|
52277
|
-
//
|
|
52188
|
+
// ../cli/node_modules/react-dom/server.node.js
|
|
52278
52189
|
var require_server_node = __commonJS({
|
|
52279
|
-
"
|
|
52190
|
+
"../cli/node_modules/react-dom/server.node.js"(exports) {
|
|
52280
52191
|
"use strict";
|
|
52281
52192
|
var l2;
|
|
52282
52193
|
var s;
|
|
@@ -52297,9 +52208,9 @@ var require_server_node = __commonJS({
|
|
|
52297
52208
|
}
|
|
52298
52209
|
});
|
|
52299
52210
|
|
|
52300
|
-
//
|
|
52211
|
+
// ../cli/node_modules/sucrase/dist/parser/tokenizer/keywords.js
|
|
52301
52212
|
var require_keywords = __commonJS({
|
|
52302
|
-
"
|
|
52213
|
+
"../cli/node_modules/sucrase/dist/parser/tokenizer/keywords.js"(exports) {
|
|
52303
52214
|
"use strict";
|
|
52304
52215
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52305
52216
|
var ContextualKeyword;
|
|
@@ -52390,9 +52301,9 @@ var require_keywords = __commonJS({
|
|
|
52390
52301
|
}
|
|
52391
52302
|
});
|
|
52392
52303
|
|
|
52393
|
-
//
|
|
52304
|
+
// ../cli/node_modules/sucrase/dist/parser/tokenizer/types.js
|
|
52394
52305
|
var require_types = __commonJS({
|
|
52395
|
-
"
|
|
52306
|
+
"../cli/node_modules/sucrase/dist/parser/tokenizer/types.js"(exports) {
|
|
52396
52307
|
"use strict";
|
|
52397
52308
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52398
52309
|
var TokenType;
|
|
@@ -52874,9 +52785,9 @@ var require_types = __commonJS({
|
|
|
52874
52785
|
}
|
|
52875
52786
|
});
|
|
52876
52787
|
|
|
52877
|
-
//
|
|
52788
|
+
// ../cli/node_modules/sucrase/dist/parser/tokenizer/state.js
|
|
52878
52789
|
var require_state = __commonJS({
|
|
52879
|
-
"
|
|
52790
|
+
"../cli/node_modules/sucrase/dist/parser/tokenizer/state.js"(exports) {
|
|
52880
52791
|
"use strict";
|
|
52881
52792
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52882
52793
|
var _keywords = require_keywords();
|
|
@@ -53015,9 +52926,9 @@ var require_state = __commonJS({
|
|
|
53015
52926
|
}
|
|
53016
52927
|
});
|
|
53017
52928
|
|
|
53018
|
-
//
|
|
52929
|
+
// ../cli/node_modules/sucrase/dist/parser/util/charcodes.js
|
|
53019
52930
|
var require_charcodes = __commonJS({
|
|
53020
|
-
"
|
|
52931
|
+
"../cli/node_modules/sucrase/dist/parser/util/charcodes.js"(exports) {
|
|
53021
52932
|
"use strict";
|
|
53022
52933
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53023
52934
|
var charCodes;
|
|
@@ -53238,9 +53149,9 @@ var require_charcodes = __commonJS({
|
|
|
53238
53149
|
}
|
|
53239
53150
|
});
|
|
53240
53151
|
|
|
53241
|
-
//
|
|
53152
|
+
// ../cli/node_modules/sucrase/dist/parser/traverser/base.js
|
|
53242
53153
|
var require_base = __commonJS({
|
|
53243
|
-
"
|
|
53154
|
+
"../cli/node_modules/sucrase/dist/parser/traverser/base.js"(exports) {
|
|
53244
53155
|
"use strict";
|
|
53245
53156
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53246
53157
|
function _interopRequireDefault(obj3) {
|
|
@@ -53301,9 +53212,9 @@ var require_base = __commonJS({
|
|
|
53301
53212
|
}
|
|
53302
53213
|
});
|
|
53303
53214
|
|
|
53304
|
-
//
|
|
53215
|
+
// ../cli/node_modules/sucrase/dist/parser/traverser/util.js
|
|
53305
53216
|
var require_util = __commonJS({
|
|
53306
|
-
"
|
|
53217
|
+
"../cli/node_modules/sucrase/dist/parser/traverser/util.js"(exports) {
|
|
53307
53218
|
"use strict";
|
|
53308
53219
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53309
53220
|
var _index = require_tokenizer();
|
|
@@ -53387,9 +53298,9 @@ var require_util = __commonJS({
|
|
|
53387
53298
|
}
|
|
53388
53299
|
});
|
|
53389
53300
|
|
|
53390
|
-
//
|
|
53301
|
+
// ../cli/node_modules/sucrase/dist/parser/util/whitespace.js
|
|
53391
53302
|
var require_whitespace = __commonJS({
|
|
53392
|
-
"
|
|
53303
|
+
"../cli/node_modules/sucrase/dist/parser/util/whitespace.js"(exports) {
|
|
53393
53304
|
"use strict";
|
|
53394
53305
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53395
53306
|
var _charcodes = require_charcodes();
|
|
@@ -53442,9 +53353,9 @@ var require_whitespace = __commonJS({
|
|
|
53442
53353
|
}
|
|
53443
53354
|
});
|
|
53444
53355
|
|
|
53445
|
-
//
|
|
53356
|
+
// ../cli/node_modules/sucrase/dist/parser/util/identifier.js
|
|
53446
53357
|
var require_identifier = __commonJS({
|
|
53447
|
-
"
|
|
53358
|
+
"../cli/node_modules/sucrase/dist/parser/util/identifier.js"(exports) {
|
|
53448
53359
|
"use strict";
|
|
53449
53360
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53450
53361
|
var _charcodes = require_charcodes();
|
|
@@ -53480,9 +53391,9 @@ var require_identifier = __commonJS({
|
|
|
53480
53391
|
}
|
|
53481
53392
|
});
|
|
53482
53393
|
|
|
53483
|
-
//
|
|
53394
|
+
// ../cli/node_modules/sucrase/dist/parser/tokenizer/readWordTree.js
|
|
53484
53395
|
var require_readWordTree = __commonJS({
|
|
53485
|
-
"
|
|
53396
|
+
"../cli/node_modules/sucrase/dist/parser/tokenizer/readWordTree.js"(exports) {
|
|
53486
53397
|
"use strict";
|
|
53487
53398
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53488
53399
|
var _keywords = require_keywords();
|
|
@@ -62789,9 +62700,9 @@ var require_readWordTree = __commonJS({
|
|
|
62789
62700
|
}
|
|
62790
62701
|
});
|
|
62791
62702
|
|
|
62792
|
-
//
|
|
62703
|
+
// ../cli/node_modules/sucrase/dist/parser/tokenizer/readWord.js
|
|
62793
62704
|
var require_readWord = __commonJS({
|
|
62794
|
-
"
|
|
62705
|
+
"../cli/node_modules/sucrase/dist/parser/tokenizer/readWord.js"(exports) {
|
|
62795
62706
|
"use strict";
|
|
62796
62707
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
62797
62708
|
var _base = require_base();
|
|
@@ -62852,9 +62763,9 @@ var require_readWord = __commonJS({
|
|
|
62852
62763
|
}
|
|
62853
62764
|
});
|
|
62854
62765
|
|
|
62855
|
-
//
|
|
62766
|
+
// ../cli/node_modules/sucrase/dist/parser/tokenizer/index.js
|
|
62856
62767
|
var require_tokenizer = __commonJS({
|
|
62857
|
-
"
|
|
62768
|
+
"../cli/node_modules/sucrase/dist/parser/tokenizer/index.js"(exports) {
|
|
62858
62769
|
"use strict";
|
|
62859
62770
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
62860
62771
|
function _interopRequireDefault(obj3) {
|
|
@@ -63606,9 +63517,9 @@ var require_tokenizer = __commonJS({
|
|
|
63606
63517
|
}
|
|
63607
63518
|
});
|
|
63608
63519
|
|
|
63609
|
-
//
|
|
63520
|
+
// ../cli/node_modules/sucrase/dist/util/getImportExportSpecifierInfo.js
|
|
63610
63521
|
var require_getImportExportSpecifierInfo = __commonJS({
|
|
63611
|
-
"
|
|
63522
|
+
"../cli/node_modules/sucrase/dist/util/getImportExportSpecifierInfo.js"(exports) {
|
|
63612
63523
|
"use strict";
|
|
63613
63524
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63614
63525
|
var _types = require_types();
|
|
@@ -63660,9 +63571,9 @@ var require_getImportExportSpecifierInfo = __commonJS({
|
|
|
63660
63571
|
}
|
|
63661
63572
|
});
|
|
63662
63573
|
|
|
63663
|
-
//
|
|
63574
|
+
// ../cli/node_modules/sucrase/dist/parser/plugins/jsx/xhtml.js
|
|
63664
63575
|
var require_xhtml = __commonJS({
|
|
63665
|
-
"
|
|
63576
|
+
"../cli/node_modules/sucrase/dist/parser/plugins/jsx/xhtml.js"(exports) {
|
|
63666
63577
|
"use strict";
|
|
63667
63578
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63668
63579
|
exports.default = /* @__PURE__ */ new Map([
|
|
@@ -63923,9 +63834,9 @@ var require_xhtml = __commonJS({
|
|
|
63923
63834
|
}
|
|
63924
63835
|
});
|
|
63925
63836
|
|
|
63926
|
-
//
|
|
63837
|
+
// ../cli/node_modules/sucrase/dist/util/getJSXPragmaInfo.js
|
|
63927
63838
|
var require_getJSXPragmaInfo = __commonJS({
|
|
63928
|
-
"
|
|
63839
|
+
"../cli/node_modules/sucrase/dist/util/getJSXPragmaInfo.js"(exports) {
|
|
63929
63840
|
"use strict";
|
|
63930
63841
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63931
63842
|
function getJSXPragmaInfo(options) {
|
|
@@ -63944,9 +63855,9 @@ var require_getJSXPragmaInfo = __commonJS({
|
|
|
63944
63855
|
}
|
|
63945
63856
|
});
|
|
63946
63857
|
|
|
63947
|
-
//
|
|
63858
|
+
// ../cli/node_modules/sucrase/dist/transformers/Transformer.js
|
|
63948
63859
|
var require_Transformer = __commonJS({
|
|
63949
|
-
"
|
|
63860
|
+
"../cli/node_modules/sucrase/dist/transformers/Transformer.js"(exports) {
|
|
63950
63861
|
"use strict";
|
|
63951
63862
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63952
63863
|
var Transformer = class {
|
|
@@ -63965,9 +63876,9 @@ var require_Transformer = __commonJS({
|
|
|
63965
63876
|
}
|
|
63966
63877
|
});
|
|
63967
63878
|
|
|
63968
|
-
//
|
|
63879
|
+
// ../cli/node_modules/sucrase/dist/transformers/JSXTransformer.js
|
|
63969
63880
|
var require_JSXTransformer = __commonJS({
|
|
63970
|
-
"
|
|
63881
|
+
"../cli/node_modules/sucrase/dist/transformers/JSXTransformer.js"(exports) {
|
|
63971
63882
|
"use strict";
|
|
63972
63883
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63973
63884
|
function _interopRequireDefault(obj3) {
|
|
@@ -64035,8 +63946,8 @@ var require_JSXTransformer = __commonJS({
|
|
|
64035
63946
|
}
|
|
64036
63947
|
if (this.isAutomaticRuntime) {
|
|
64037
63948
|
if (this.importProcessor) {
|
|
64038
|
-
for (const [
|
|
64039
|
-
prefix += `var ${resolvedName} = require("${
|
|
63949
|
+
for (const [path87, resolvedName] of Object.entries(this.cjsAutomaticModuleNameResolutions)) {
|
|
63950
|
+
prefix += `var ${resolvedName} = require("${path87}");`;
|
|
64040
63951
|
}
|
|
64041
63952
|
} else {
|
|
64042
63953
|
const { createElement: createElementResolution, ...otherResolutions } = this.esmAutomaticImportNameResolutions;
|
|
@@ -64229,11 +64140,11 @@ var require_JSXTransformer = __commonJS({
|
|
|
64229
64140
|
}
|
|
64230
64141
|
claimAutoImportedName(funcName, importPathSuffix) {
|
|
64231
64142
|
if (this.importProcessor) {
|
|
64232
|
-
const
|
|
64233
|
-
if (!this.cjsAutomaticModuleNameResolutions[
|
|
64234
|
-
this.cjsAutomaticModuleNameResolutions[
|
|
64143
|
+
const path87 = this.jsxImportSource + importPathSuffix;
|
|
64144
|
+
if (!this.cjsAutomaticModuleNameResolutions[path87]) {
|
|
64145
|
+
this.cjsAutomaticModuleNameResolutions[path87] = this.importProcessor.getFreeIdentifierForPath(path87);
|
|
64235
64146
|
}
|
|
64236
|
-
return `${this.cjsAutomaticModuleNameResolutions[
|
|
64147
|
+
return `${this.cjsAutomaticModuleNameResolutions[path87]}.${funcName}`;
|
|
64237
64148
|
} else {
|
|
64238
64149
|
if (!this.esmAutomaticImportNameResolutions[funcName]) {
|
|
64239
64150
|
this.esmAutomaticImportNameResolutions[funcName] = this.nameManager.claimFreeName(
|
|
@@ -64566,9 +64477,9 @@ var require_JSXTransformer = __commonJS({
|
|
|
64566
64477
|
}
|
|
64567
64478
|
});
|
|
64568
64479
|
|
|
64569
|
-
//
|
|
64480
|
+
// ../cli/node_modules/sucrase/dist/util/getNonTypeIdentifiers.js
|
|
64570
64481
|
var require_getNonTypeIdentifiers = __commonJS({
|
|
64571
|
-
"
|
|
64482
|
+
"../cli/node_modules/sucrase/dist/util/getNonTypeIdentifiers.js"(exports) {
|
|
64572
64483
|
"use strict";
|
|
64573
64484
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
64574
64485
|
function _interopRequireDefault(obj3) {
|
|
@@ -64607,9 +64518,9 @@ var require_getNonTypeIdentifiers = __commonJS({
|
|
|
64607
64518
|
}
|
|
64608
64519
|
});
|
|
64609
64520
|
|
|
64610
|
-
//
|
|
64521
|
+
// ../cli/node_modules/sucrase/dist/CJSImportProcessor.js
|
|
64611
64522
|
var require_CJSImportProcessor = __commonJS({
|
|
64612
|
-
"
|
|
64523
|
+
"../cli/node_modules/sucrase/dist/CJSImportProcessor.js"(exports) {
|
|
64613
64524
|
"use strict";
|
|
64614
64525
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
64615
64526
|
function _interopRequireDefault(obj3) {
|
|
@@ -64669,7 +64580,7 @@ var require_CJSImportProcessor = __commonJS({
|
|
|
64669
64580
|
*/
|
|
64670
64581
|
pruneTypeOnlyImports() {
|
|
64671
64582
|
this.nonTypeIdentifiers = _getNonTypeIdentifiers.getNonTypeIdentifiers.call(void 0, this.tokens, this.options);
|
|
64672
|
-
for (const [
|
|
64583
|
+
for (const [path87, importInfo] of this.importInfoByPath.entries()) {
|
|
64673
64584
|
if (importInfo.hasBareImport || importInfo.hasStarExport || importInfo.exportStarNames.length > 0 || importInfo.namedExports.length > 0) {
|
|
64674
64585
|
continue;
|
|
64675
64586
|
}
|
|
@@ -64679,7 +64590,7 @@ var require_CJSImportProcessor = __commonJS({
|
|
|
64679
64590
|
...importInfo.namedImports.map(({ localName }) => localName)
|
|
64680
64591
|
];
|
|
64681
64592
|
if (names3.every((name) => this.shouldAutomaticallyElideImportedName(name))) {
|
|
64682
|
-
this.importsToReplace.set(
|
|
64593
|
+
this.importsToReplace.set(path87, "");
|
|
64683
64594
|
}
|
|
64684
64595
|
}
|
|
64685
64596
|
}
|
|
@@ -64687,7 +64598,7 @@ var require_CJSImportProcessor = __commonJS({
|
|
|
64687
64598
|
return this.isTypeScriptTransformEnabled && !this.keepUnusedImports && !this.nonTypeIdentifiers.has(name);
|
|
64688
64599
|
}
|
|
64689
64600
|
generateImportReplacements() {
|
|
64690
|
-
for (const [
|
|
64601
|
+
for (const [path87, importInfo] of this.importInfoByPath.entries()) {
|
|
64691
64602
|
const {
|
|
64692
64603
|
defaultNames,
|
|
64693
64604
|
wildcardNames,
|
|
@@ -64697,17 +64608,17 @@ var require_CJSImportProcessor = __commonJS({
|
|
|
64697
64608
|
hasStarExport
|
|
64698
64609
|
} = importInfo;
|
|
64699
64610
|
if (defaultNames.length === 0 && wildcardNames.length === 0 && namedImports.length === 0 && namedExports.length === 0 && exportStarNames.length === 0 && !hasStarExport) {
|
|
64700
|
-
this.importsToReplace.set(
|
|
64611
|
+
this.importsToReplace.set(path87, `require('${path87}');`);
|
|
64701
64612
|
continue;
|
|
64702
64613
|
}
|
|
64703
|
-
const primaryImportName = this.getFreeIdentifierForPath(
|
|
64614
|
+
const primaryImportName = this.getFreeIdentifierForPath(path87);
|
|
64704
64615
|
let secondaryImportName;
|
|
64705
64616
|
if (this.enableLegacyTypeScriptModuleInterop) {
|
|
64706
64617
|
secondaryImportName = primaryImportName;
|
|
64707
64618
|
} else {
|
|
64708
|
-
secondaryImportName = wildcardNames.length > 0 ? wildcardNames[0] : this.getFreeIdentifierForPath(
|
|
64619
|
+
secondaryImportName = wildcardNames.length > 0 ? wildcardNames[0] : this.getFreeIdentifierForPath(path87);
|
|
64709
64620
|
}
|
|
64710
|
-
let requireCode = `var ${primaryImportName} = require('${
|
|
64621
|
+
let requireCode = `var ${primaryImportName} = require('${path87}');`;
|
|
64711
64622
|
if (wildcardNames.length > 0) {
|
|
64712
64623
|
for (const wildcardName of wildcardNames) {
|
|
64713
64624
|
const moduleExpr = this.enableLegacyTypeScriptModuleInterop ? primaryImportName : `${this.helperManager.getHelperName("interopRequireWildcard")}(${primaryImportName})`;
|
|
@@ -64735,7 +64646,7 @@ var require_CJSImportProcessor = __commonJS({
|
|
|
64735
64646
|
"createStarExport"
|
|
64736
64647
|
)}(${primaryImportName});`;
|
|
64737
64648
|
}
|
|
64738
|
-
this.importsToReplace.set(
|
|
64649
|
+
this.importsToReplace.set(path87, requireCode);
|
|
64739
64650
|
for (const defaultName of defaultNames) {
|
|
64740
64651
|
this.identifierReplacements.set(defaultName, `${secondaryImportName}.default`);
|
|
64741
64652
|
}
|
|
@@ -64744,8 +64655,8 @@ var require_CJSImportProcessor = __commonJS({
|
|
|
64744
64655
|
}
|
|
64745
64656
|
}
|
|
64746
64657
|
}
|
|
64747
|
-
getFreeIdentifierForPath(
|
|
64748
|
-
const components =
|
|
64658
|
+
getFreeIdentifierForPath(path87) {
|
|
64659
|
+
const components = path87.split("/");
|
|
64749
64660
|
const lastComponent = components[components.length - 1];
|
|
64750
64661
|
const baseName = lastComponent.replace(/\W/g, "");
|
|
64751
64662
|
return this.nameManager.claimFreeName(`_${baseName}`);
|
|
@@ -64790,8 +64701,8 @@ var require_CJSImportProcessor = __commonJS({
|
|
|
64790
64701
|
if (!this.tokens.matches1AtIndex(index, _types.TokenType.string)) {
|
|
64791
64702
|
throw new Error("Expected string token at the end of import statement.");
|
|
64792
64703
|
}
|
|
64793
|
-
const
|
|
64794
|
-
const importInfo = this.getImportInfo(
|
|
64704
|
+
const path87 = this.tokens.stringValueAtIndex(index);
|
|
64705
|
+
const importInfo = this.getImportInfo(path87);
|
|
64795
64706
|
importInfo.defaultNames.push(...defaultNames);
|
|
64796
64707
|
importInfo.wildcardNames.push(...wildcardNames);
|
|
64797
64708
|
importInfo.namedImports.push(...namedImports);
|
|
@@ -64858,8 +64769,8 @@ var require_CJSImportProcessor = __commonJS({
|
|
|
64858
64769
|
if (!this.tokens.matches1AtIndex(index, _types.TokenType.string)) {
|
|
64859
64770
|
throw new Error("Expected string token at the end of import statement.");
|
|
64860
64771
|
}
|
|
64861
|
-
const
|
|
64862
|
-
const importInfo = this.getImportInfo(
|
|
64772
|
+
const path87 = this.tokens.stringValueAtIndex(index);
|
|
64773
|
+
const importInfo = this.getImportInfo(path87);
|
|
64863
64774
|
importInfo.namedExports.push(...namedImports);
|
|
64864
64775
|
}
|
|
64865
64776
|
preprocessExportStarAtIndex(index) {
|
|
@@ -64874,8 +64785,8 @@ var require_CJSImportProcessor = __commonJS({
|
|
|
64874
64785
|
if (!this.tokens.matches1AtIndex(index, _types.TokenType.string)) {
|
|
64875
64786
|
throw new Error("Expected string token at the end of star export statement.");
|
|
64876
64787
|
}
|
|
64877
|
-
const
|
|
64878
|
-
const importInfo = this.getImportInfo(
|
|
64788
|
+
const path87 = this.tokens.stringValueAtIndex(index);
|
|
64789
|
+
const importInfo = this.getImportInfo(path87);
|
|
64879
64790
|
if (exportedName !== null) {
|
|
64880
64791
|
importInfo.exportStarNames.push(exportedName);
|
|
64881
64792
|
} else {
|
|
@@ -64915,8 +64826,8 @@ var require_CJSImportProcessor = __commonJS({
|
|
|
64915
64826
|
* Get a mutable import info object for this path, creating one if it doesn't
|
|
64916
64827
|
* exist yet.
|
|
64917
64828
|
*/
|
|
64918
|
-
getImportInfo(
|
|
64919
|
-
const existingInfo = this.importInfoByPath.get(
|
|
64829
|
+
getImportInfo(path87) {
|
|
64830
|
+
const existingInfo = this.importInfoByPath.get(path87);
|
|
64920
64831
|
if (existingInfo) {
|
|
64921
64832
|
return existingInfo;
|
|
64922
64833
|
}
|
|
@@ -64929,7 +64840,7 @@ var require_CJSImportProcessor = __commonJS({
|
|
|
64929
64840
|
exportStarNames: [],
|
|
64930
64841
|
hasStarExport: false
|
|
64931
64842
|
};
|
|
64932
|
-
this.importInfoByPath.set(
|
|
64843
|
+
this.importInfoByPath.set(path87, newInfo);
|
|
64933
64844
|
return newInfo;
|
|
64934
64845
|
}
|
|
64935
64846
|
addExportBinding(localName, exportedName) {
|
|
@@ -64975,9 +64886,9 @@ var require_CJSImportProcessor = __commonJS({
|
|
|
64975
64886
|
}
|
|
64976
64887
|
});
|
|
64977
64888
|
|
|
64978
|
-
//
|
|
64889
|
+
// ../cli/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js
|
|
64979
64890
|
var require_sourcemap_codec_umd = __commonJS({
|
|
64980
|
-
"
|
|
64891
|
+
"../cli/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js"(exports, module) {
|
|
64981
64892
|
(function(global, factory) {
|
|
64982
64893
|
if (typeof exports === "object" && typeof module !== "undefined") {
|
|
64983
64894
|
factory(module);
|
|
@@ -65478,9 +65389,9 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
65478
65389
|
}
|
|
65479
65390
|
});
|
|
65480
65391
|
|
|
65481
|
-
//
|
|
65392
|
+
// ../cli/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js
|
|
65482
65393
|
var require_resolve_uri_umd = __commonJS({
|
|
65483
|
-
"
|
|
65394
|
+
"../cli/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js"(exports, module) {
|
|
65484
65395
|
(function(global, factory) {
|
|
65485
65396
|
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());
|
|
65486
65397
|
})(exports, (function() {
|
|
@@ -65509,16 +65420,16 @@ var require_resolve_uri_umd = __commonJS({
|
|
|
65509
65420
|
}
|
|
65510
65421
|
function parseFileUrl(input) {
|
|
65511
65422
|
const match = fileRegex.exec(input);
|
|
65512
|
-
const
|
|
65513
|
-
return makeUrl("file:", "", match[1] || "", "", isAbsolutePath(
|
|
65423
|
+
const path87 = match[2];
|
|
65424
|
+
return makeUrl("file:", "", match[1] || "", "", isAbsolutePath(path87) ? path87 : "/" + path87, match[3] || "", match[4] || "");
|
|
65514
65425
|
}
|
|
65515
|
-
function makeUrl(scheme, user, host2, port,
|
|
65426
|
+
function makeUrl(scheme, user, host2, port, path87, query, hash2) {
|
|
65516
65427
|
return {
|
|
65517
65428
|
scheme,
|
|
65518
65429
|
user,
|
|
65519
65430
|
host: host2,
|
|
65520
65431
|
port,
|
|
65521
|
-
path:
|
|
65432
|
+
path: path87,
|
|
65522
65433
|
query,
|
|
65523
65434
|
hash: hash2,
|
|
65524
65435
|
type: 7
|
|
@@ -65548,11 +65459,11 @@ var require_resolve_uri_umd = __commonJS({
|
|
|
65548
65459
|
url.type = input ? input.startsWith("?") ? 3 : input.startsWith("#") ? 2 : 4 : 1;
|
|
65549
65460
|
return url;
|
|
65550
65461
|
}
|
|
65551
|
-
function stripPathFilename(
|
|
65552
|
-
if (
|
|
65553
|
-
return
|
|
65554
|
-
const index =
|
|
65555
|
-
return
|
|
65462
|
+
function stripPathFilename(path87) {
|
|
65463
|
+
if (path87.endsWith("/.."))
|
|
65464
|
+
return path87;
|
|
65465
|
+
const index = path87.lastIndexOf("/");
|
|
65466
|
+
return path87.slice(0, index + 1);
|
|
65556
65467
|
}
|
|
65557
65468
|
function mergePaths(url, base) {
|
|
65558
65469
|
normalizePath(base, base.type);
|
|
@@ -65590,14 +65501,14 @@ var require_resolve_uri_umd = __commonJS({
|
|
|
65590
65501
|
pieces[pointer++] = piece;
|
|
65591
65502
|
positive++;
|
|
65592
65503
|
}
|
|
65593
|
-
let
|
|
65504
|
+
let path87 = "";
|
|
65594
65505
|
for (let i = 1; i < pointer; i++) {
|
|
65595
|
-
|
|
65506
|
+
path87 += "/" + pieces[i];
|
|
65596
65507
|
}
|
|
65597
|
-
if (!
|
|
65598
|
-
|
|
65508
|
+
if (!path87 || addTrailingSlash && !path87.endsWith("/..")) {
|
|
65509
|
+
path87 += "/";
|
|
65599
65510
|
}
|
|
65600
|
-
url.path =
|
|
65511
|
+
url.path = path87;
|
|
65601
65512
|
}
|
|
65602
65513
|
function resolve2(input, base) {
|
|
65603
65514
|
if (!input && !base)
|
|
@@ -65638,13 +65549,13 @@ var require_resolve_uri_umd = __commonJS({
|
|
|
65638
65549
|
case 3:
|
|
65639
65550
|
return queryHash;
|
|
65640
65551
|
case 4: {
|
|
65641
|
-
const
|
|
65642
|
-
if (!
|
|
65552
|
+
const path87 = url.path.slice(1);
|
|
65553
|
+
if (!path87)
|
|
65643
65554
|
return queryHash || ".";
|
|
65644
|
-
if (isRelative(base || input) && !isRelative(
|
|
65645
|
-
return "./" +
|
|
65555
|
+
if (isRelative(base || input) && !isRelative(path87)) {
|
|
65556
|
+
return "./" + path87 + queryHash;
|
|
65646
65557
|
}
|
|
65647
|
-
return
|
|
65558
|
+
return path87 + queryHash;
|
|
65648
65559
|
}
|
|
65649
65560
|
case 5:
|
|
65650
65561
|
return url.path + queryHash;
|
|
@@ -65657,9 +65568,9 @@ var require_resolve_uri_umd = __commonJS({
|
|
|
65657
65568
|
}
|
|
65658
65569
|
});
|
|
65659
65570
|
|
|
65660
|
-
//
|
|
65571
|
+
// ../cli/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js
|
|
65661
65572
|
var require_trace_mapping_umd = __commonJS({
|
|
65662
|
-
"
|
|
65573
|
+
"../cli/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js"(exports, module) {
|
|
65663
65574
|
(function(global, factory) {
|
|
65664
65575
|
if (typeof exports === "object" && typeof module !== "undefined") {
|
|
65665
65576
|
factory(module, require_resolve_uri_umd(), require_sourcemap_codec_umd());
|
|
@@ -65743,10 +65654,10 @@ var require_trace_mapping_umd = __commonJS({
|
|
|
65743
65654
|
module2.exports = __toCommonJS(trace_mapping_exports);
|
|
65744
65655
|
var import_sourcemap_codec = __toESM2(require_sourcemap_codec());
|
|
65745
65656
|
var import_resolve_uri = __toESM2(require_resolve_uri());
|
|
65746
|
-
function stripFilename(
|
|
65747
|
-
if (!
|
|
65748
|
-
const index =
|
|
65749
|
-
return
|
|
65657
|
+
function stripFilename(path87) {
|
|
65658
|
+
if (!path87) return "";
|
|
65659
|
+
const index = path87.lastIndexOf("/");
|
|
65660
|
+
return path87.slice(0, index + 1);
|
|
65750
65661
|
}
|
|
65751
65662
|
function resolver(mapUrl, sourceRoot) {
|
|
65752
65663
|
const from = stripFilename(mapUrl);
|
|
@@ -66197,9 +66108,9 @@ var require_trace_mapping_umd = __commonJS({
|
|
|
66197
66108
|
}
|
|
66198
66109
|
});
|
|
66199
66110
|
|
|
66200
|
-
//
|
|
66111
|
+
// ../cli/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js
|
|
66201
66112
|
var require_gen_mapping_umd = __commonJS({
|
|
66202
|
-
"
|
|
66113
|
+
"../cli/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js"(exports, module) {
|
|
66203
66114
|
(function(global, factory) {
|
|
66204
66115
|
if (typeof exports === "object" && typeof module !== "undefined") {
|
|
66205
66116
|
factory(module, require_sourcemap_codec_umd(), require_trace_mapping_umd());
|
|
@@ -66548,9 +66459,9 @@ var require_gen_mapping_umd = __commonJS({
|
|
|
66548
66459
|
}
|
|
66549
66460
|
});
|
|
66550
66461
|
|
|
66551
|
-
//
|
|
66462
|
+
// ../cli/node_modules/sucrase/dist/computeSourceMap.js
|
|
66552
66463
|
var require_computeSourceMap = __commonJS({
|
|
66553
|
-
"
|
|
66464
|
+
"../cli/node_modules/sucrase/dist/computeSourceMap.js"(exports) {
|
|
66554
66465
|
"use strict";
|
|
66555
66466
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66556
66467
|
var _genmapping = require_gen_mapping_umd();
|
|
@@ -66611,9 +66522,9 @@ var require_computeSourceMap = __commonJS({
|
|
|
66611
66522
|
}
|
|
66612
66523
|
});
|
|
66613
66524
|
|
|
66614
|
-
//
|
|
66525
|
+
// ../cli/node_modules/sucrase/dist/HelperManager.js
|
|
66615
66526
|
var require_HelperManager = __commonJS({
|
|
66616
|
-
"
|
|
66527
|
+
"../cli/node_modules/sucrase/dist/HelperManager.js"(exports) {
|
|
66617
66528
|
"use strict";
|
|
66618
66529
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66619
66530
|
var HELPERS = {
|
|
@@ -66800,9 +66711,9 @@ var require_HelperManager = __commonJS({
|
|
|
66800
66711
|
}
|
|
66801
66712
|
});
|
|
66802
66713
|
|
|
66803
|
-
//
|
|
66714
|
+
// ../cli/node_modules/sucrase/dist/identifyShadowedGlobals.js
|
|
66804
66715
|
var require_identifyShadowedGlobals = __commonJS({
|
|
66805
|
-
"
|
|
66716
|
+
"../cli/node_modules/sucrase/dist/identifyShadowedGlobals.js"(exports) {
|
|
66806
66717
|
"use strict";
|
|
66807
66718
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66808
66719
|
var _tokenizer = require_tokenizer();
|
|
@@ -66869,9 +66780,9 @@ var require_identifyShadowedGlobals = __commonJS({
|
|
|
66869
66780
|
}
|
|
66870
66781
|
});
|
|
66871
66782
|
|
|
66872
|
-
//
|
|
66783
|
+
// ../cli/node_modules/sucrase/dist/util/getIdentifierNames.js
|
|
66873
66784
|
var require_getIdentifierNames = __commonJS({
|
|
66874
|
-
"
|
|
66785
|
+
"../cli/node_modules/sucrase/dist/util/getIdentifierNames.js"(exports) {
|
|
66875
66786
|
"use strict";
|
|
66876
66787
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66877
66788
|
var _types = require_types();
|
|
@@ -66888,9 +66799,9 @@ var require_getIdentifierNames = __commonJS({
|
|
|
66888
66799
|
}
|
|
66889
66800
|
});
|
|
66890
66801
|
|
|
66891
|
-
//
|
|
66802
|
+
// ../cli/node_modules/sucrase/dist/NameManager.js
|
|
66892
66803
|
var require_NameManager = __commonJS({
|
|
66893
|
-
"
|
|
66804
|
+
"../cli/node_modules/sucrase/dist/NameManager.js"(exports) {
|
|
66894
66805
|
"use strict";
|
|
66895
66806
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66896
66807
|
function _interopRequireDefault(obj3) {
|
|
@@ -66927,9 +66838,9 @@ var require_NameManager = __commonJS({
|
|
|
66927
66838
|
}
|
|
66928
66839
|
});
|
|
66929
66840
|
|
|
66930
|
-
//
|
|
66841
|
+
// ../cli/node_modules/ts-interface-checker/dist/util.js
|
|
66931
66842
|
var require_util2 = __commonJS({
|
|
66932
|
-
"
|
|
66843
|
+
"../cli/node_modules/ts-interface-checker/dist/util.js"(exports) {
|
|
66933
66844
|
"use strict";
|
|
66934
66845
|
var __extends = exports && exports.__extends || /* @__PURE__ */ (function() {
|
|
66935
66846
|
var extendStatics = function(d2, b2) {
|
|
@@ -66954,9 +66865,9 @@ var require_util2 = __commonJS({
|
|
|
66954
66865
|
/** @class */
|
|
66955
66866
|
(function(_super) {
|
|
66956
66867
|
__extends(VError2, _super);
|
|
66957
|
-
function VError2(
|
|
66868
|
+
function VError2(path87, message) {
|
|
66958
66869
|
var _this = _super.call(this, message) || this;
|
|
66959
|
-
_this.path =
|
|
66870
|
+
_this.path = path87;
|
|
66960
66871
|
Object.setPrototypeOf(_this, VError2.prototype);
|
|
66961
66872
|
return _this;
|
|
66962
66873
|
}
|
|
@@ -67016,26 +66927,26 @@ var require_util2 = __commonJS({
|
|
|
67016
66927
|
(_b = this._messages).push.apply(_b, best._messages);
|
|
67017
66928
|
}
|
|
67018
66929
|
};
|
|
67019
|
-
DetailContext2.prototype.getError = function(
|
|
66930
|
+
DetailContext2.prototype.getError = function(path87) {
|
|
67020
66931
|
var msgParts = [];
|
|
67021
66932
|
for (var i = this._propNames.length - 1; i >= 0; i--) {
|
|
67022
66933
|
var p2 = this._propNames[i];
|
|
67023
|
-
|
|
66934
|
+
path87 += typeof p2 === "number" ? "[" + p2 + "]" : p2 ? "." + p2 : "";
|
|
67024
66935
|
var m = this._messages[i];
|
|
67025
66936
|
if (m) {
|
|
67026
|
-
msgParts.push(
|
|
66937
|
+
msgParts.push(path87 + " " + m);
|
|
67027
66938
|
}
|
|
67028
66939
|
}
|
|
67029
|
-
return new VError(
|
|
66940
|
+
return new VError(path87, msgParts.join("; "));
|
|
67030
66941
|
};
|
|
67031
|
-
DetailContext2.prototype.getErrorDetail = function(
|
|
66942
|
+
DetailContext2.prototype.getErrorDetail = function(path87) {
|
|
67032
66943
|
var details = [];
|
|
67033
66944
|
for (var i = this._propNames.length - 1; i >= 0; i--) {
|
|
67034
66945
|
var p2 = this._propNames[i];
|
|
67035
|
-
|
|
66946
|
+
path87 += typeof p2 === "number" ? "[" + p2 + "]" : p2 ? "." + p2 : "";
|
|
67036
66947
|
var message = this._messages[i];
|
|
67037
66948
|
if (message) {
|
|
67038
|
-
details.push({ path:
|
|
66949
|
+
details.push({ path: path87, message });
|
|
67039
66950
|
}
|
|
67040
66951
|
}
|
|
67041
66952
|
var detail = null;
|
|
@@ -67068,9 +66979,9 @@ var require_util2 = __commonJS({
|
|
|
67068
66979
|
}
|
|
67069
66980
|
});
|
|
67070
66981
|
|
|
67071
|
-
//
|
|
66982
|
+
// ../cli/node_modules/ts-interface-checker/dist/types.js
|
|
67072
66983
|
var require_types2 = __commonJS({
|
|
67073
|
-
"
|
|
66984
|
+
"../cli/node_modules/ts-interface-checker/dist/types.js"(exports) {
|
|
67074
66985
|
"use strict";
|
|
67075
66986
|
var __extends = exports && exports.__extends || /* @__PURE__ */ (function() {
|
|
67076
66987
|
var extendStatics = function(d2, b2) {
|
|
@@ -67707,9 +67618,9 @@ var require_types2 = __commonJS({
|
|
|
67707
67618
|
}
|
|
67708
67619
|
});
|
|
67709
67620
|
|
|
67710
|
-
//
|
|
67621
|
+
// ../cli/node_modules/ts-interface-checker/dist/index.js
|
|
67711
67622
|
var require_dist = __commonJS({
|
|
67712
|
-
"
|
|
67623
|
+
"../cli/node_modules/ts-interface-checker/dist/index.js"(exports) {
|
|
67713
67624
|
"use strict";
|
|
67714
67625
|
var __spreadArrays = exports && exports.__spreadArrays || function() {
|
|
67715
67626
|
for (var s = 0, i = 0, il2 = arguments.length; i < il2; i++) s += arguments[i].length;
|
|
@@ -67848,8 +67759,8 @@ var require_dist = __commonJS({
|
|
|
67848
67759
|
this.checkerPlain = this.ttype.getChecker(suite, false);
|
|
67849
67760
|
this.checkerStrict = this.ttype.getChecker(suite, true);
|
|
67850
67761
|
}
|
|
67851
|
-
Checker2.prototype.setReportedPath = function(
|
|
67852
|
-
this._path =
|
|
67762
|
+
Checker2.prototype.setReportedPath = function(path87) {
|
|
67763
|
+
this._path = path87;
|
|
67853
67764
|
};
|
|
67854
67765
|
Checker2.prototype.check = function(value) {
|
|
67855
67766
|
return this._doCheck(this.checkerPlain, value);
|
|
@@ -67933,9 +67844,9 @@ var require_dist = __commonJS({
|
|
|
67933
67844
|
}
|
|
67934
67845
|
});
|
|
67935
67846
|
|
|
67936
|
-
//
|
|
67847
|
+
// ../cli/node_modules/sucrase/dist/Options-gen-types.js
|
|
67937
67848
|
var require_Options_gen_types = __commonJS({
|
|
67938
|
-
"
|
|
67849
|
+
"../cli/node_modules/sucrase/dist/Options-gen-types.js"(exports) {
|
|
67939
67850
|
"use strict";
|
|
67940
67851
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67941
67852
|
function _interopRequireWildcard(obj3) {
|
|
@@ -67995,9 +67906,9 @@ var require_Options_gen_types = __commonJS({
|
|
|
67995
67906
|
}
|
|
67996
67907
|
});
|
|
67997
67908
|
|
|
67998
|
-
//
|
|
67909
|
+
// ../cli/node_modules/sucrase/dist/Options.js
|
|
67999
67910
|
var require_Options = __commonJS({
|
|
68000
|
-
"
|
|
67911
|
+
"../cli/node_modules/sucrase/dist/Options.js"(exports) {
|
|
68001
67912
|
"use strict";
|
|
68002
67913
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
68003
67914
|
function _interopRequireDefault(obj3) {
|
|
@@ -68014,9 +67925,9 @@ var require_Options = __commonJS({
|
|
|
68014
67925
|
}
|
|
68015
67926
|
});
|
|
68016
67927
|
|
|
68017
|
-
//
|
|
67928
|
+
// ../cli/node_modules/sucrase/dist/parser/traverser/lval.js
|
|
68018
67929
|
var require_lval = __commonJS({
|
|
68019
|
-
"
|
|
67930
|
+
"../cli/node_modules/sucrase/dist/parser/traverser/lval.js"(exports) {
|
|
68020
67931
|
"use strict";
|
|
68021
67932
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
68022
67933
|
var _flow = require_flow();
|
|
@@ -68161,9 +68072,9 @@ var require_lval = __commonJS({
|
|
|
68161
68072
|
}
|
|
68162
68073
|
});
|
|
68163
68074
|
|
|
68164
|
-
//
|
|
68075
|
+
// ../cli/node_modules/sucrase/dist/parser/plugins/typescript.js
|
|
68165
68076
|
var require_typescript = __commonJS({
|
|
68166
|
-
"
|
|
68077
|
+
"../cli/node_modules/sucrase/dist/parser/plugins/typescript.js"(exports) {
|
|
68167
68078
|
"use strict";
|
|
68168
68079
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
68169
68080
|
var _index = require_tokenizer();
|
|
@@ -69474,9 +69385,9 @@ var require_typescript = __commonJS({
|
|
|
69474
69385
|
}
|
|
69475
69386
|
});
|
|
69476
69387
|
|
|
69477
|
-
//
|
|
69388
|
+
// ../cli/node_modules/sucrase/dist/parser/plugins/jsx/index.js
|
|
69478
69389
|
var require_jsx = __commonJS({
|
|
69479
|
-
"
|
|
69390
|
+
"../cli/node_modules/sucrase/dist/parser/plugins/jsx/index.js"(exports) {
|
|
69480
69391
|
"use strict";
|
|
69481
69392
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
69482
69393
|
var _index = require_tokenizer();
|
|
@@ -69744,9 +69655,9 @@ var require_jsx = __commonJS({
|
|
|
69744
69655
|
}
|
|
69745
69656
|
});
|
|
69746
69657
|
|
|
69747
|
-
//
|
|
69658
|
+
// ../cli/node_modules/sucrase/dist/parser/plugins/types.js
|
|
69748
69659
|
var require_types3 = __commonJS({
|
|
69749
|
-
"
|
|
69660
|
+
"../cli/node_modules/sucrase/dist/parser/plugins/types.js"(exports) {
|
|
69750
69661
|
"use strict";
|
|
69751
69662
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
69752
69663
|
var _index = require_tokenizer();
|
|
@@ -69779,9 +69690,9 @@ var require_types3 = __commonJS({
|
|
|
69779
69690
|
}
|
|
69780
69691
|
});
|
|
69781
69692
|
|
|
69782
|
-
//
|
|
69693
|
+
// ../cli/node_modules/sucrase/dist/parser/traverser/expression.js
|
|
69783
69694
|
var require_expression = __commonJS({
|
|
69784
|
-
"
|
|
69695
|
+
"../cli/node_modules/sucrase/dist/parser/traverser/expression.js"(exports) {
|
|
69785
69696
|
"use strict";
|
|
69786
69697
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
69787
69698
|
var _flow = require_flow();
|
|
@@ -70519,9 +70430,9 @@ var require_expression = __commonJS({
|
|
|
70519
70430
|
}
|
|
70520
70431
|
});
|
|
70521
70432
|
|
|
70522
|
-
//
|
|
70433
|
+
// ../cli/node_modules/sucrase/dist/parser/plugins/flow.js
|
|
70523
70434
|
var require_flow = __commonJS({
|
|
70524
|
-
"
|
|
70435
|
+
"../cli/node_modules/sucrase/dist/parser/plugins/flow.js"(exports) {
|
|
70525
70436
|
"use strict";
|
|
70526
70437
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
70527
70438
|
var _index = require_tokenizer();
|
|
@@ -71402,9 +71313,9 @@ var require_flow = __commonJS({
|
|
|
71402
71313
|
}
|
|
71403
71314
|
});
|
|
71404
71315
|
|
|
71405
|
-
//
|
|
71316
|
+
// ../cli/node_modules/sucrase/dist/parser/traverser/statement.js
|
|
71406
71317
|
var require_statement = __commonJS({
|
|
71407
|
-
"
|
|
71318
|
+
"../cli/node_modules/sucrase/dist/parser/traverser/statement.js"(exports) {
|
|
71408
71319
|
"use strict";
|
|
71409
71320
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
71410
71321
|
var _index = require_parser();
|
|
@@ -72399,9 +72310,9 @@ var require_statement = __commonJS({
|
|
|
72399
72310
|
}
|
|
72400
72311
|
});
|
|
72401
72312
|
|
|
72402
|
-
//
|
|
72313
|
+
// ../cli/node_modules/sucrase/dist/parser/traverser/index.js
|
|
72403
72314
|
var require_traverser = __commonJS({
|
|
72404
|
-
"
|
|
72315
|
+
"../cli/node_modules/sucrase/dist/parser/traverser/index.js"(exports) {
|
|
72405
72316
|
"use strict";
|
|
72406
72317
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
72407
72318
|
var _index = require_tokenizer();
|
|
@@ -72419,9 +72330,9 @@ var require_traverser = __commonJS({
|
|
|
72419
72330
|
}
|
|
72420
72331
|
});
|
|
72421
72332
|
|
|
72422
|
-
//
|
|
72333
|
+
// ../cli/node_modules/sucrase/dist/parser/index.js
|
|
72423
72334
|
var require_parser = __commonJS({
|
|
72424
|
-
"
|
|
72335
|
+
"../cli/node_modules/sucrase/dist/parser/index.js"(exports) {
|
|
72425
72336
|
"use strict";
|
|
72426
72337
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
72427
72338
|
var _base = require_base();
|
|
@@ -72448,9 +72359,9 @@ var require_parser = __commonJS({
|
|
|
72448
72359
|
}
|
|
72449
72360
|
});
|
|
72450
72361
|
|
|
72451
|
-
//
|
|
72362
|
+
// ../cli/node_modules/sucrase/dist/util/isAsyncOperation.js
|
|
72452
72363
|
var require_isAsyncOperation = __commonJS({
|
|
72453
|
-
"
|
|
72364
|
+
"../cli/node_modules/sucrase/dist/util/isAsyncOperation.js"(exports) {
|
|
72454
72365
|
"use strict";
|
|
72455
72366
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
72456
72367
|
var _keywords = require_keywords();
|
|
@@ -72479,9 +72390,9 @@ var require_isAsyncOperation = __commonJS({
|
|
|
72479
72390
|
}
|
|
72480
72391
|
});
|
|
72481
72392
|
|
|
72482
|
-
//
|
|
72393
|
+
// ../cli/node_modules/sucrase/dist/TokenProcessor.js
|
|
72483
72394
|
var require_TokenProcessor = __commonJS({
|
|
72484
|
-
"
|
|
72395
|
+
"../cli/node_modules/sucrase/dist/TokenProcessor.js"(exports) {
|
|
72485
72396
|
"use strict";
|
|
72486
72397
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
72487
72398
|
function _interopRequireDefault(obj3) {
|
|
@@ -72774,9 +72685,9 @@ var require_TokenProcessor = __commonJS({
|
|
|
72774
72685
|
}
|
|
72775
72686
|
});
|
|
72776
72687
|
|
|
72777
|
-
//
|
|
72688
|
+
// ../cli/node_modules/sucrase/dist/util/getClassInfo.js
|
|
72778
72689
|
var require_getClassInfo = __commonJS({
|
|
72779
|
-
"
|
|
72690
|
+
"../cli/node_modules/sucrase/dist/util/getClassInfo.js"(exports) {
|
|
72780
72691
|
"use strict";
|
|
72781
72692
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
72782
72693
|
var _keywords = require_keywords();
|
|
@@ -73016,9 +72927,9 @@ var require_getClassInfo = __commonJS({
|
|
|
73016
72927
|
}
|
|
73017
72928
|
});
|
|
73018
72929
|
|
|
73019
|
-
//
|
|
72930
|
+
// ../cli/node_modules/sucrase/dist/util/elideImportEquals.js
|
|
73020
72931
|
var require_elideImportEquals = __commonJS({
|
|
73021
|
-
"
|
|
72932
|
+
"../cli/node_modules/sucrase/dist/util/elideImportEquals.js"(exports) {
|
|
73022
72933
|
"use strict";
|
|
73023
72934
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
73024
72935
|
var _types = require_types();
|
|
@@ -73042,9 +72953,9 @@ var require_elideImportEquals = __commonJS({
|
|
|
73042
72953
|
}
|
|
73043
72954
|
});
|
|
73044
72955
|
|
|
73045
|
-
//
|
|
72956
|
+
// ../cli/node_modules/sucrase/dist/util/getDeclarationInfo.js
|
|
73046
72957
|
var require_getDeclarationInfo = __commonJS({
|
|
73047
|
-
"
|
|
72958
|
+
"../cli/node_modules/sucrase/dist/util/getDeclarationInfo.js"(exports) {
|
|
73048
72959
|
"use strict";
|
|
73049
72960
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
73050
72961
|
var _tokenizer = require_tokenizer();
|
|
@@ -73073,9 +72984,9 @@ var require_getDeclarationInfo = __commonJS({
|
|
|
73073
72984
|
}
|
|
73074
72985
|
});
|
|
73075
72986
|
|
|
73076
|
-
//
|
|
72987
|
+
// ../cli/node_modules/sucrase/dist/util/isExportFrom.js
|
|
73077
72988
|
var require_isExportFrom = __commonJS({
|
|
73078
|
-
"
|
|
72989
|
+
"../cli/node_modules/sucrase/dist/util/isExportFrom.js"(exports) {
|
|
73079
72990
|
"use strict";
|
|
73080
72991
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
73081
72992
|
var _keywords = require_keywords();
|
|
@@ -73091,9 +73002,9 @@ var require_isExportFrom = __commonJS({
|
|
|
73091
73002
|
}
|
|
73092
73003
|
});
|
|
73093
73004
|
|
|
73094
|
-
//
|
|
73005
|
+
// ../cli/node_modules/sucrase/dist/util/removeMaybeImportAttributes.js
|
|
73095
73006
|
var require_removeMaybeImportAttributes = __commonJS({
|
|
73096
|
-
"
|
|
73007
|
+
"../cli/node_modules/sucrase/dist/util/removeMaybeImportAttributes.js"(exports) {
|
|
73097
73008
|
"use strict";
|
|
73098
73009
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
73099
73010
|
var _keywords = require_keywords();
|
|
@@ -73110,9 +73021,9 @@ var require_removeMaybeImportAttributes = __commonJS({
|
|
|
73110
73021
|
}
|
|
73111
73022
|
});
|
|
73112
73023
|
|
|
73113
|
-
//
|
|
73024
|
+
// ../cli/node_modules/sucrase/dist/util/shouldElideDefaultExport.js
|
|
73114
73025
|
var require_shouldElideDefaultExport = __commonJS({
|
|
73115
|
-
"
|
|
73026
|
+
"../cli/node_modules/sucrase/dist/util/shouldElideDefaultExport.js"(exports) {
|
|
73116
73027
|
"use strict";
|
|
73117
73028
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
73118
73029
|
var _types = require_types();
|
|
@@ -73139,9 +73050,9 @@ var require_shouldElideDefaultExport = __commonJS({
|
|
|
73139
73050
|
}
|
|
73140
73051
|
});
|
|
73141
73052
|
|
|
73142
|
-
//
|
|
73053
|
+
// ../cli/node_modules/sucrase/dist/transformers/CJSImportTransformer.js
|
|
73143
73054
|
var require_CJSImportTransformer = __commonJS({
|
|
73144
|
-
"
|
|
73055
|
+
"../cli/node_modules/sucrase/dist/transformers/CJSImportTransformer.js"(exports) {
|
|
73145
73056
|
"use strict";
|
|
73146
73057
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
73147
73058
|
function _interopRequireDefault(obj3) {
|
|
@@ -73282,9 +73193,9 @@ var require_CJSImportTransformer = __commonJS({
|
|
|
73282
73193
|
if (shouldElideImport) {
|
|
73283
73194
|
this.tokens.removeToken();
|
|
73284
73195
|
} else {
|
|
73285
|
-
const
|
|
73286
|
-
this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(
|
|
73287
|
-
this.tokens.appendCode(this.importProcessor.claimImportCode(
|
|
73196
|
+
const path87 = this.tokens.stringValue();
|
|
73197
|
+
this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(path87));
|
|
73198
|
+
this.tokens.appendCode(this.importProcessor.claimImportCode(path87));
|
|
73288
73199
|
}
|
|
73289
73200
|
_removeMaybeImportAttributes.removeMaybeImportAttributes.call(void 0, this.tokens);
|
|
73290
73201
|
if (this.tokens.matches1(_types.TokenType.semi)) {
|
|
@@ -73864,8 +73775,8 @@ var require_CJSImportTransformer = __commonJS({
|
|
|
73864
73775
|
}
|
|
73865
73776
|
if (this.tokens.matchesContextual(_keywords.ContextualKeyword._from)) {
|
|
73866
73777
|
this.tokens.removeToken();
|
|
73867
|
-
const
|
|
73868
|
-
this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(
|
|
73778
|
+
const path87 = this.tokens.stringValue();
|
|
73779
|
+
this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(path87));
|
|
73869
73780
|
_removeMaybeImportAttributes.removeMaybeImportAttributes.call(void 0, this.tokens);
|
|
73870
73781
|
} else {
|
|
73871
73782
|
this.tokens.appendCode(exportStatements.join(" "));
|
|
@@ -73879,8 +73790,8 @@ var require_CJSImportTransformer = __commonJS({
|
|
|
73879
73790
|
while (!this.tokens.matches1(_types.TokenType.string)) {
|
|
73880
73791
|
this.tokens.removeToken();
|
|
73881
73792
|
}
|
|
73882
|
-
const
|
|
73883
|
-
this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(
|
|
73793
|
+
const path87 = this.tokens.stringValue();
|
|
73794
|
+
this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(path87));
|
|
73884
73795
|
_removeMaybeImportAttributes.removeMaybeImportAttributes.call(void 0, this.tokens);
|
|
73885
73796
|
if (this.tokens.matches1(_types.TokenType.semi)) {
|
|
73886
73797
|
this.tokens.removeToken();
|
|
@@ -73894,9 +73805,9 @@ var require_CJSImportTransformer = __commonJS({
|
|
|
73894
73805
|
}
|
|
73895
73806
|
});
|
|
73896
73807
|
|
|
73897
|
-
//
|
|
73808
|
+
// ../cli/node_modules/sucrase/dist/transformers/ESMImportTransformer.js
|
|
73898
73809
|
var require_ESMImportTransformer = __commonJS({
|
|
73899
|
-
"
|
|
73810
|
+
"../cli/node_modules/sucrase/dist/transformers/ESMImportTransformer.js"(exports) {
|
|
73900
73811
|
"use strict";
|
|
73901
73812
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
73902
73813
|
function _interopRequireDefault(obj3) {
|
|
@@ -74198,9 +74109,9 @@ var require_ESMImportTransformer = __commonJS({
|
|
|
74198
74109
|
}
|
|
74199
74110
|
});
|
|
74200
74111
|
|
|
74201
|
-
//
|
|
74112
|
+
// ../cli/node_modules/sucrase/dist/transformers/FlowTransformer.js
|
|
74202
74113
|
var require_FlowTransformer = __commonJS({
|
|
74203
|
-
"
|
|
74114
|
+
"../cli/node_modules/sucrase/dist/transformers/FlowTransformer.js"(exports) {
|
|
74204
74115
|
"use strict";
|
|
74205
74116
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
74206
74117
|
function _interopRequireDefault(obj3) {
|
|
@@ -74366,9 +74277,9 @@ var require_FlowTransformer = __commonJS({
|
|
|
74366
74277
|
}
|
|
74367
74278
|
});
|
|
74368
74279
|
|
|
74369
|
-
//
|
|
74280
|
+
// ../cli/node_modules/sucrase/dist/transformers/JestHoistTransformer.js
|
|
74370
74281
|
var require_JestHoistTransformer = __commonJS({
|
|
74371
|
-
"
|
|
74282
|
+
"../cli/node_modules/sucrase/dist/transformers/JestHoistTransformer.js"(exports) {
|
|
74372
74283
|
"use strict";
|
|
74373
74284
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
74374
74285
|
function _interopRequireDefault(obj3) {
|
|
@@ -74472,9 +74383,9 @@ var require_JestHoistTransformer = __commonJS({
|
|
|
74472
74383
|
}
|
|
74473
74384
|
});
|
|
74474
74385
|
|
|
74475
|
-
//
|
|
74386
|
+
// ../cli/node_modules/sucrase/dist/transformers/NumericSeparatorTransformer.js
|
|
74476
74387
|
var require_NumericSeparatorTransformer = __commonJS({
|
|
74477
|
-
"
|
|
74388
|
+
"../cli/node_modules/sucrase/dist/transformers/NumericSeparatorTransformer.js"(exports) {
|
|
74478
74389
|
"use strict";
|
|
74479
74390
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
74480
74391
|
function _interopRequireDefault(obj3) {
|
|
@@ -74504,9 +74415,9 @@ var require_NumericSeparatorTransformer = __commonJS({
|
|
|
74504
74415
|
}
|
|
74505
74416
|
});
|
|
74506
74417
|
|
|
74507
|
-
//
|
|
74418
|
+
// ../cli/node_modules/sucrase/dist/transformers/OptionalCatchBindingTransformer.js
|
|
74508
74419
|
var require_OptionalCatchBindingTransformer = __commonJS({
|
|
74509
|
-
"
|
|
74420
|
+
"../cli/node_modules/sucrase/dist/transformers/OptionalCatchBindingTransformer.js"(exports) {
|
|
74510
74421
|
"use strict";
|
|
74511
74422
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
74512
74423
|
function _interopRequireDefault(obj3) {
|
|
@@ -74535,9 +74446,9 @@ var require_OptionalCatchBindingTransformer = __commonJS({
|
|
|
74535
74446
|
}
|
|
74536
74447
|
});
|
|
74537
74448
|
|
|
74538
|
-
//
|
|
74449
|
+
// ../cli/node_modules/sucrase/dist/transformers/OptionalChainingNullishTransformer.js
|
|
74539
74450
|
var require_OptionalChainingNullishTransformer = __commonJS({
|
|
74540
|
-
"
|
|
74451
|
+
"../cli/node_modules/sucrase/dist/transformers/OptionalChainingNullishTransformer.js"(exports) {
|
|
74541
74452
|
"use strict";
|
|
74542
74453
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
74543
74454
|
function _interopRequireDefault(obj3) {
|
|
@@ -74673,9 +74584,9 @@ var require_OptionalChainingNullishTransformer = __commonJS({
|
|
|
74673
74584
|
}
|
|
74674
74585
|
});
|
|
74675
74586
|
|
|
74676
|
-
//
|
|
74587
|
+
// ../cli/node_modules/sucrase/dist/transformers/ReactDisplayNameTransformer.js
|
|
74677
74588
|
var require_ReactDisplayNameTransformer = __commonJS({
|
|
74678
|
-
"
|
|
74589
|
+
"../cli/node_modules/sucrase/dist/transformers/ReactDisplayNameTransformer.js"(exports) {
|
|
74679
74590
|
"use strict";
|
|
74680
74591
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
74681
74592
|
function _interopRequireDefault(obj3) {
|
|
@@ -74801,9 +74712,9 @@ var require_ReactDisplayNameTransformer = __commonJS({
|
|
|
74801
74712
|
}
|
|
74802
74713
|
});
|
|
74803
74714
|
|
|
74804
|
-
//
|
|
74715
|
+
// ../cli/node_modules/sucrase/dist/transformers/ReactHotLoaderTransformer.js
|
|
74805
74716
|
var require_ReactHotLoaderTransformer = __commonJS({
|
|
74806
|
-
"
|
|
74717
|
+
"../cli/node_modules/sucrase/dist/transformers/ReactHotLoaderTransformer.js"(exports) {
|
|
74807
74718
|
"use strict";
|
|
74808
74719
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
74809
74720
|
function _interopRequireDefault(obj3) {
|
|
@@ -74873,9 +74784,9 @@ ${namesToRegister.map(
|
|
|
74873
74784
|
}
|
|
74874
74785
|
});
|
|
74875
74786
|
|
|
74876
|
-
//
|
|
74787
|
+
// ../cli/node_modules/sucrase/dist/util/isIdentifier.js
|
|
74877
74788
|
var require_isIdentifier = __commonJS({
|
|
74878
|
-
"
|
|
74789
|
+
"../cli/node_modules/sucrase/dist/util/isIdentifier.js"(exports) {
|
|
74879
74790
|
"use strict";
|
|
74880
74791
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
74881
74792
|
var _identifier = require_identifier();
|
|
@@ -74948,9 +74859,9 @@ var require_isIdentifier = __commonJS({
|
|
|
74948
74859
|
}
|
|
74949
74860
|
});
|
|
74950
74861
|
|
|
74951
|
-
//
|
|
74862
|
+
// ../cli/node_modules/sucrase/dist/transformers/TypeScriptTransformer.js
|
|
74952
74863
|
var require_TypeScriptTransformer = __commonJS({
|
|
74953
|
-
"
|
|
74864
|
+
"../cli/node_modules/sucrase/dist/transformers/TypeScriptTransformer.js"(exports) {
|
|
74954
74865
|
"use strict";
|
|
74955
74866
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
74956
74867
|
function _interopRequireDefault(obj3) {
|
|
@@ -75189,9 +75100,9 @@ var require_TypeScriptTransformer = __commonJS({
|
|
|
75189
75100
|
}
|
|
75190
75101
|
});
|
|
75191
75102
|
|
|
75192
|
-
//
|
|
75103
|
+
// ../cli/node_modules/sucrase/dist/transformers/RootTransformer.js
|
|
75193
75104
|
var require_RootTransformer = __commonJS({
|
|
75194
|
-
"
|
|
75105
|
+
"../cli/node_modules/sucrase/dist/transformers/RootTransformer.js"(exports) {
|
|
75195
75106
|
"use strict";
|
|
75196
75107
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
75197
75108
|
function _interopRequireDefault(obj3) {
|
|
@@ -75606,9 +75517,9 @@ var require_RootTransformer = __commonJS({
|
|
|
75606
75517
|
}
|
|
75607
75518
|
});
|
|
75608
75519
|
|
|
75609
|
-
//
|
|
75520
|
+
// ../cli/node_modules/lines-and-columns/build/index.js
|
|
75610
75521
|
var require_build = __commonJS({
|
|
75611
|
-
"
|
|
75522
|
+
"../cli/node_modules/lines-and-columns/build/index.js"(exports) {
|
|
75612
75523
|
"use strict";
|
|
75613
75524
|
exports.__esModule = true;
|
|
75614
75525
|
exports.LinesAndColumns = void 0;
|
|
@@ -75675,9 +75586,9 @@ var require_build = __commonJS({
|
|
|
75675
75586
|
}
|
|
75676
75587
|
});
|
|
75677
75588
|
|
|
75678
|
-
//
|
|
75589
|
+
// ../cli/node_modules/sucrase/dist/util/formatTokens.js
|
|
75679
75590
|
var require_formatTokens = __commonJS({
|
|
75680
|
-
"
|
|
75591
|
+
"../cli/node_modules/sucrase/dist/util/formatTokens.js"(exports) {
|
|
75681
75592
|
"use strict";
|
|
75682
75593
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
75683
75594
|
function _interopRequireDefault(obj3) {
|
|
@@ -75748,9 +75659,9 @@ var require_formatTokens = __commonJS({
|
|
|
75748
75659
|
}
|
|
75749
75660
|
});
|
|
75750
75661
|
|
|
75751
|
-
//
|
|
75662
|
+
// ../cli/node_modules/sucrase/dist/util/getTSImportedNames.js
|
|
75752
75663
|
var require_getTSImportedNames = __commonJS({
|
|
75753
|
-
"
|
|
75664
|
+
"../cli/node_modules/sucrase/dist/util/getTSImportedNames.js"(exports) {
|
|
75754
75665
|
"use strict";
|
|
75755
75666
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
75756
75667
|
function _interopRequireDefault(obj3) {
|
|
@@ -75815,9 +75726,9 @@ var require_getTSImportedNames = __commonJS({
|
|
|
75815
75726
|
}
|
|
75816
75727
|
});
|
|
75817
75728
|
|
|
75818
|
-
//
|
|
75729
|
+
// ../cli/node_modules/sucrase/dist/index.js
|
|
75819
75730
|
var require_dist2 = __commonJS({
|
|
75820
|
-
"
|
|
75731
|
+
"../cli/node_modules/sucrase/dist/index.js"(exports) {
|
|
75821
75732
|
"use strict";
|
|
75822
75733
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
75823
75734
|
function _interopRequireDefault(obj3) {
|
|
@@ -75930,15 +75841,15 @@ var require_dist2 = __commonJS({
|
|
|
75930
75841
|
}
|
|
75931
75842
|
});
|
|
75932
75843
|
|
|
75933
|
-
//
|
|
75844
|
+
// ../cli/node_modules/tailwindcss/dist/chunk-DCG7AFIE.mjs
|
|
75934
75845
|
var o;
|
|
75935
75846
|
var init_chunk_DCG7AFIE = __esm({
|
|
75936
|
-
"
|
|
75847
|
+
"../cli/node_modules/tailwindcss/dist/chunk-DCG7AFIE.mjs"() {
|
|
75937
75848
|
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)" } };
|
|
75938
75849
|
}
|
|
75939
75850
|
});
|
|
75940
75851
|
|
|
75941
|
-
//
|
|
75852
|
+
// ../cli/node_modules/tailwindcss/dist/chunk-JYLR5UAN.mjs
|
|
75942
75853
|
function S(e2) {
|
|
75943
75854
|
return e2.charCodeAt(0) === 35 || U.test(e2) || k.has(e2.toLowerCase());
|
|
75944
75855
|
}
|
|
@@ -76158,7 +76069,7 @@ function b(e2) {
|
|
|
76158
76069
|
}
|
|
76159
76070
|
var k, U, A, E, P, z, I, D, x, W, q, V, Z, j, K, J, X, te, g, l, f, L, w, ne, _, ye;
|
|
76160
76071
|
var init_chunk_JYLR5UAN = __esm({
|
|
76161
|
-
"
|
|
76072
|
+
"../cli/node_modules/tailwindcss/dist/chunk-JYLR5UAN.mjs"() {
|
|
76162
76073
|
init_chunk_DCG7AFIE();
|
|
76163
76074
|
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"]);
|
|
76164
76075
|
U = /^(rgba?|hsla?|hwb|color|(ok)?(lab|lch)|light-dark|color-mix|--alpha)\(/i;
|
|
@@ -76205,7 +76116,7 @@ var init_chunk_JYLR5UAN = __esm({
|
|
|
76205
76116
|
}
|
|
76206
76117
|
});
|
|
76207
76118
|
|
|
76208
|
-
//
|
|
76119
|
+
// ../cli/node_modules/tailwindcss/dist/chunk-3IIMCCN4.mjs
|
|
76209
76120
|
function h2(n) {
|
|
76210
76121
|
if (arguments.length === 0) throw new TypeError("`CSS.escape` requires an argument.");
|
|
76211
76122
|
let e2 = String(n), r2 = e2.length, i = -1, t, s = "", l2 = e2.charCodeAt(0);
|
|
@@ -76239,7 +76150,7 @@ function g2(n, e2) {
|
|
|
76239
76150
|
}
|
|
76240
76151
|
var c, p;
|
|
76241
76152
|
var init_chunk_3IIMCCN4 = __esm({
|
|
76242
|
-
"
|
|
76153
|
+
"../cli/node_modules/tailwindcss/dist/chunk-3IIMCCN4.mjs"() {
|
|
76243
76154
|
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"]]]);
|
|
76244
76155
|
p = class {
|
|
76245
76156
|
constructor(e2 = /* @__PURE__ */ new Map(), r2 = /* @__PURE__ */ new Set([])) {
|
|
@@ -76359,7 +76270,7 @@ var init_chunk_3IIMCCN4 = __esm({
|
|
|
76359
76270
|
}
|
|
76360
76271
|
});
|
|
76361
76272
|
|
|
76362
|
-
//
|
|
76273
|
+
// ../cli/node_modules/tailwindcss/dist/lib.mjs
|
|
76363
76274
|
function Cn(e2) {
|
|
76364
76275
|
return { kind: "combinator", value: e2 };
|
|
76365
76276
|
}
|
|
@@ -81675,7 +81586,7 @@ async function rc(e2, i = {}) {
|
|
|
81675
81586
|
}
|
|
81676
81587
|
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;
|
|
81677
81588
|
var init_lib = __esm({
|
|
81678
|
-
"
|
|
81589
|
+
"../cli/node_modules/tailwindcss/dist/lib.mjs"() {
|
|
81679
81590
|
init_chunk_JYLR5UAN();
|
|
81680
81591
|
init_chunk_DCG7AFIE();
|
|
81681
81592
|
init_chunk_3IIMCCN4();
|
|
@@ -81999,24 +81910,24 @@ var init_lib = __esm({
|
|
|
81999
81910
|
}
|
|
82000
81911
|
});
|
|
82001
81912
|
|
|
82002
|
-
//
|
|
81913
|
+
// ../cli/node_modules/tailwindcss/index.css
|
|
82003
81914
|
var tailwindcss_default;
|
|
82004
81915
|
var init_tailwindcss = __esm({
|
|
82005
|
-
"
|
|
81916
|
+
"../cli/node_modules/tailwindcss/index.css"() {
|
|
82006
81917
|
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';
|
|
82007
81918
|
}
|
|
82008
81919
|
});
|
|
82009
81920
|
|
|
82010
|
-
//
|
|
81921
|
+
// ../cli/node_modules/react-icons/lib/iconsManifest.mjs
|
|
82011
81922
|
var init_iconsManifest = __esm({
|
|
82012
|
-
"
|
|
81923
|
+
"../cli/node_modules/react-icons/lib/iconsManifest.mjs"() {
|
|
82013
81924
|
}
|
|
82014
81925
|
});
|
|
82015
81926
|
|
|
82016
|
-
//
|
|
81927
|
+
// ../cli/node_modules/react-icons/lib/iconContext.mjs
|
|
82017
81928
|
var import_react, DefaultContext, IconContext;
|
|
82018
81929
|
var init_iconContext = __esm({
|
|
82019
|
-
"
|
|
81930
|
+
"../cli/node_modules/react-icons/lib/iconContext.mjs"() {
|
|
82020
81931
|
import_react = __toESM(require_react(), 1);
|
|
82021
81932
|
DefaultContext = {
|
|
82022
81933
|
color: void 0,
|
|
@@ -82029,7 +81940,7 @@ var init_iconContext = __esm({
|
|
|
82029
81940
|
}
|
|
82030
81941
|
});
|
|
82031
81942
|
|
|
82032
|
-
//
|
|
81943
|
+
// ../cli/node_modules/react-icons/lib/iconBase.mjs
|
|
82033
81944
|
function _objectWithoutProperties(e2, t) {
|
|
82034
81945
|
if (null == e2) return {};
|
|
82035
81946
|
var o3, r2, i = _objectWithoutPropertiesLoose(e2, t);
|
|
@@ -82130,23 +82041,23 @@ function IconBase(props) {
|
|
|
82130
82041
|
}
|
|
82131
82042
|
var import_react2, _excluded;
|
|
82132
82043
|
var init_iconBase = __esm({
|
|
82133
|
-
"
|
|
82044
|
+
"../cli/node_modules/react-icons/lib/iconBase.mjs"() {
|
|
82134
82045
|
import_react2 = __toESM(require_react(), 1);
|
|
82135
82046
|
init_iconContext();
|
|
82136
82047
|
_excluded = ["attr", "size", "title"];
|
|
82137
82048
|
}
|
|
82138
82049
|
});
|
|
82139
82050
|
|
|
82140
|
-
//
|
|
82051
|
+
// ../cli/node_modules/react-icons/lib/index.mjs
|
|
82141
82052
|
var init_lib2 = __esm({
|
|
82142
|
-
"
|
|
82053
|
+
"../cli/node_modules/react-icons/lib/index.mjs"() {
|
|
82143
82054
|
init_iconsManifest();
|
|
82144
82055
|
init_iconBase();
|
|
82145
82056
|
init_iconContext();
|
|
82146
82057
|
}
|
|
82147
82058
|
});
|
|
82148
82059
|
|
|
82149
|
-
//
|
|
82060
|
+
// ../cli/node_modules/react-icons/fi/index.mjs
|
|
82150
82061
|
var fi_exports = {};
|
|
82151
82062
|
__export(fi_exports, {
|
|
82152
82063
|
FiActivity: () => FiActivity,
|
|
@@ -83299,12 +83210,12 @@ function FiActivity(props) {
|
|
|
83299
83210
|
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);
|
|
83300
83211
|
}
|
|
83301
83212
|
var init_fi = __esm({
|
|
83302
|
-
"
|
|
83213
|
+
"../cli/node_modules/react-icons/fi/index.mjs"() {
|
|
83303
83214
|
init_lib2();
|
|
83304
83215
|
}
|
|
83305
83216
|
});
|
|
83306
83217
|
|
|
83307
|
-
//
|
|
83218
|
+
// ../cli/node_modules/react-icons/fa/index.mjs
|
|
83308
83219
|
var fa_exports = {};
|
|
83309
83220
|
__export(fa_exports, {
|
|
83310
83221
|
Fa500Px: () => Fa500Px,
|
|
@@ -89753,12 +89664,12 @@ function FaRegAddressBook(props) {
|
|
|
89753
89664
|
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);
|
|
89754
89665
|
}
|
|
89755
89666
|
var init_fa = __esm({
|
|
89756
|
-
"
|
|
89667
|
+
"../cli/node_modules/react-icons/fa/index.mjs"() {
|
|
89757
89668
|
init_lib2();
|
|
89758
89669
|
}
|
|
89759
89670
|
});
|
|
89760
89671
|
|
|
89761
|
-
//
|
|
89672
|
+
// ../cli/node_modules/react-icons/si/index.mjs
|
|
89762
89673
|
var si_exports = {};
|
|
89763
89674
|
__export(si_exports, {
|
|
89764
89675
|
Si1001Tracklists: () => Si1001Tracklists,
|
|
@@ -103547,12 +103458,12 @@ function Si1001Tracklists(props) {
|
|
|
103547
103458
|
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);
|
|
103548
103459
|
}
|
|
103549
103460
|
var init_si = __esm({
|
|
103550
|
-
"
|
|
103461
|
+
"../cli/node_modules/react-icons/si/index.mjs"() {
|
|
103551
103462
|
init_lib2();
|
|
103552
103463
|
}
|
|
103553
103464
|
});
|
|
103554
103465
|
|
|
103555
|
-
//
|
|
103466
|
+
// ../cli/node_modules/clsx/dist/clsx.mjs
|
|
103556
103467
|
var clsx_exports = {};
|
|
103557
103468
|
__export(clsx_exports, {
|
|
103558
103469
|
clsx: () => clsx,
|
|
@@ -103573,12 +103484,12 @@ function clsx() {
|
|
|
103573
103484
|
}
|
|
103574
103485
|
var clsx_default;
|
|
103575
103486
|
var init_clsx = __esm({
|
|
103576
|
-
"
|
|
103487
|
+
"../cli/node_modules/clsx/dist/clsx.mjs"() {
|
|
103577
103488
|
clsx_default = clsx;
|
|
103578
103489
|
}
|
|
103579
103490
|
});
|
|
103580
103491
|
|
|
103581
|
-
//
|
|
103492
|
+
// ../cli/node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
103582
103493
|
var bundle_mjs_exports = {};
|
|
103583
103494
|
__export(bundle_mjs_exports, {
|
|
103584
103495
|
createTailwindMerge: () => createTailwindMerge,
|
|
@@ -103592,7 +103503,7 @@ __export(bundle_mjs_exports, {
|
|
|
103592
103503
|
});
|
|
103593
103504
|
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;
|
|
103594
103505
|
var init_bundle_mjs = __esm({
|
|
103595
|
-
"
|
|
103506
|
+
"../cli/node_modules/tailwind-merge/dist/bundle-mjs.mjs"() {
|
|
103596
103507
|
concatArrays = (array1, array2) => {
|
|
103597
103508
|
const combinedArray = new Array(array1.length + array2.length);
|
|
103598
103509
|
for (let i = 0; i < array1.length; i++) {
|
|
@@ -103734,9 +103645,9 @@ var init_bundle_mjs = __esm({
|
|
|
103734
103645
|
processClassesRecursively(value, getPart(classPartObject, key), classGroupId, theme);
|
|
103735
103646
|
}
|
|
103736
103647
|
};
|
|
103737
|
-
getPart = (classPartObject,
|
|
103648
|
+
getPart = (classPartObject, path87) => {
|
|
103738
103649
|
let current = classPartObject;
|
|
103739
|
-
const parts =
|
|
103650
|
+
const parts = path87.split(CLASS_PART_SEPARATOR);
|
|
103740
103651
|
const len = parts.length;
|
|
103741
103652
|
for (let i = 0; i < len; i++) {
|
|
103742
103653
|
const part = parts[i];
|
|
@@ -106932,7 +106843,7 @@ var init_bundle_mjs = __esm({
|
|
|
106932
106843
|
}
|
|
106933
106844
|
});
|
|
106934
106845
|
|
|
106935
|
-
//
|
|
106846
|
+
// ../cli/node_modules/class-variance-authority/dist/index.mjs
|
|
106936
106847
|
var dist_exports = {};
|
|
106937
106848
|
__export(dist_exports, {
|
|
106938
106849
|
cva: () => cva,
|
|
@@ -106940,7 +106851,7 @@ __export(dist_exports, {
|
|
|
106940
106851
|
});
|
|
106941
106852
|
var falsyToString, cx, cva;
|
|
106942
106853
|
var init_dist = __esm({
|
|
106943
|
-
"
|
|
106854
|
+
"../cli/node_modules/class-variance-authority/dist/index.mjs"() {
|
|
106944
106855
|
init_clsx();
|
|
106945
106856
|
falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
|
|
106946
106857
|
cx = clsx;
|
|
@@ -106986,8 +106897,8 @@ var init_dist = __esm({
|
|
|
106986
106897
|
});
|
|
106987
106898
|
|
|
106988
106899
|
// ../cli/src/lib/draw-mockup.ts
|
|
106989
|
-
import
|
|
106990
|
-
import
|
|
106900
|
+
import fs79 from "node:fs";
|
|
106901
|
+
import path81 from "node:path";
|
|
106991
106902
|
import vm from "node:vm";
|
|
106992
106903
|
async function loadPackage(id) {
|
|
106993
106904
|
if (id === "react") return import_react3.default;
|
|
@@ -107000,22 +106911,22 @@ async function loadPackage(id) {
|
|
|
107000
106911
|
return { __esModule: true, ...await load() };
|
|
107001
106912
|
}
|
|
107002
106913
|
function resolveFile(id, from, folder) {
|
|
107003
|
-
const at2 =
|
|
107004
|
-
if (at2 !== folder && !at2.startsWith(folder +
|
|
107005
|
-
const tries =
|
|
107006
|
-
const file = tries.find((f2) =>
|
|
106914
|
+
const at2 = path81.resolve(path81.dirname(from), id);
|
|
106915
|
+
if (at2 !== folder && !at2.startsWith(folder + path81.sep)) throw new Error(`${id} is outside the mockup's folder`);
|
|
106916
|
+
const tries = path81.extname(at2) ? [at2] : [...CODE_EXTS.map((e2) => at2 + e2), ...CODE_EXTS.map((e2) => path81.join(at2, `index${e2}`))];
|
|
106917
|
+
const file = tries.find((f2) => fs79.statSync(f2, { throwIfNoEntry: false })?.isFile());
|
|
107007
106918
|
if (!file) throw new Error(`no such file: ${id}`);
|
|
107008
106919
|
return file;
|
|
107009
106920
|
}
|
|
107010
106921
|
async function readGraph(entry) {
|
|
107011
|
-
const folder =
|
|
106922
|
+
const folder = path81.dirname(entry);
|
|
107012
106923
|
const graph = { code: /* @__PURE__ */ new Map(), links: /* @__PURE__ */ new Map(), sheets: [], packages: /* @__PURE__ */ new Map() };
|
|
107013
106924
|
const walk3 = async (file) => {
|
|
107014
106925
|
if (graph.code.has(file)) return;
|
|
107015
106926
|
if (graph.code.size >= MAX_FILES) throw new Error(`a mockup imports more than ${MAX_FILES} files`);
|
|
107016
106927
|
let location = file;
|
|
107017
106928
|
try {
|
|
107018
|
-
const js = (0, import_sucrase.transform)(
|
|
106929
|
+
const js = (0, import_sucrase.transform)(fs79.readFileSync(file, "utf8"), { transforms: ["typescript", "jsx", "imports"], jsxRuntime: "automatic", production: true, filePath: file }).code;
|
|
107019
106930
|
graph.code.set(file, js);
|
|
107020
106931
|
const link2 = /* @__PURE__ */ new Map();
|
|
107021
106932
|
graph.links.set(file, link2);
|
|
@@ -107029,7 +106940,7 @@ async function readGraph(entry) {
|
|
|
107029
106940
|
const target = resolveFile(id, file, folder);
|
|
107030
106941
|
link2.set(id, target);
|
|
107031
106942
|
if (!target.endsWith(".css")) await walk3(target);
|
|
107032
|
-
else if (!graph.sheets.some((s) => s.path === target)) graph.sheets.push({ path: target, content:
|
|
106943
|
+
else if (!graph.sheets.some((s) => s.path === target)) graph.sheets.push({ path: target, content: fs79.readFileSync(target, "utf8") });
|
|
107033
106944
|
}
|
|
107034
106945
|
} catch (error) {
|
|
107035
106946
|
throw new Error(`${location}: ${error instanceof Error ? error.message : String(error)}`);
|
|
@@ -107046,25 +106957,25 @@ function run2(script, context, name, deadline, lineOffset = 0) {
|
|
|
107046
106957
|
async function tailwindFor(markup, sheets) {
|
|
107047
106958
|
const source = sheets.length ? sheets.map((s) => s.content).join("\n") : '@import "tailwindcss";';
|
|
107048
106959
|
const compiler = await rc(source, {
|
|
107049
|
-
base: sheets.length ?
|
|
106960
|
+
base: sheets.length ? path81.dirname(sheets[0].path) : "/",
|
|
107050
106961
|
loadStylesheet: async (id, from) => {
|
|
107051
106962
|
if (id === "tailwindcss" || id.startsWith("tailwindcss/")) return { path: "tailwindcss/index.css", base: "/", content: tailwindcss_default };
|
|
107052
106963
|
if (!id.startsWith(".")) throw new Error(`a mockup cannot import ${id}`);
|
|
107053
|
-
const at2 =
|
|
107054
|
-
return { path: at2, base:
|
|
106964
|
+
const at2 = path81.resolve(from, id);
|
|
106965
|
+
return { path: at2, base: path81.dirname(at2), content: fs79.readFileSync(at2, "utf8") };
|
|
107055
106966
|
}
|
|
107056
106967
|
});
|
|
107057
106968
|
const classes = [...markup.matchAll(/class="([^"]*)"/g)].flatMap((m) => m[1].split(/\s+/));
|
|
107058
106969
|
return compiler.build(classes.filter(Boolean));
|
|
107059
106970
|
}
|
|
107060
106971
|
function dressPage(file) {
|
|
107061
|
-
const folder =
|
|
107062
|
-
const html =
|
|
106972
|
+
const folder = path81.dirname(file);
|
|
106973
|
+
const html = fs79.readFileSync(file, "utf8").replace(/<link\b[^>]*>/gi, (tag) => {
|
|
107063
106974
|
const href = /\bhref\s*=\s*["']?([^"'\s>]+)/i.exec(tag)?.[1];
|
|
107064
106975
|
if (!/\brel\s*=\s*["']?stylesheet/i.test(tag) || !href || /^[a-z][\w+.-]*:|^\/\//i.test(href)) return tag;
|
|
107065
|
-
const at3 =
|
|
107066
|
-
if (!at3.startsWith(folder +
|
|
107067
|
-
return `<style>${
|
|
106976
|
+
const at3 = path81.resolve(folder, href);
|
|
106977
|
+
if (!at3.startsWith(folder + path81.sep) || !fs79.existsSync(at3)) return tag;
|
|
106978
|
+
return `<style>${fs79.readFileSync(at3, "utf8").replace(/<\/style/gi, "<\\/style")}</style>`;
|
|
107068
106979
|
});
|
|
107069
106980
|
const at2 = /^\uFEFF?\s*(?:<!--[\s\S]*?-->\s*)*(?:<!doctype\b[^>]*>)?/i.exec(html)[0].length;
|
|
107070
106981
|
return /<!doctype\b|<html[\s>]|<head[\s>]/i.test(html) ? html.slice(0, at2) + head + html.slice(at2) : `<!doctype html><html><head>${head}</head><body>${html}</body></html>`;
|
|
@@ -107173,8 +107084,8 @@ var init_draw_mockup = __esm({
|
|
|
107173
107084
|
});
|
|
107174
107085
|
|
|
107175
107086
|
// ../cli/src/lib/preview-validation.ts
|
|
107176
|
-
import
|
|
107177
|
-
import
|
|
107087
|
+
import fs80 from "node:fs";
|
|
107088
|
+
import path82 from "node:path";
|
|
107178
107089
|
function renderError(error) {
|
|
107179
107090
|
if (!error || typeof error !== "object") return String(error);
|
|
107180
107091
|
const { message, stack } = error;
|
|
@@ -107185,7 +107096,7 @@ function renderError(error) {
|
|
|
107185
107096
|
async function validateScreens(files2) {
|
|
107186
107097
|
const errors = [];
|
|
107187
107098
|
const entries = /* @__PURE__ */ new Map();
|
|
107188
|
-
for (const file of files2) entries.set(
|
|
107099
|
+
for (const file of files2) entries.set(fs80.existsSync(file) ? fs80.realpathSync(file) : path82.resolve(file), path82.resolve(file));
|
|
107189
107100
|
for (const file of entries.values()) {
|
|
107190
107101
|
try {
|
|
107191
107102
|
await drawMockup(file);
|
|
@@ -107204,7 +107115,7 @@ async function validatePreview(file, text5) {
|
|
|
107204
107115
|
if (/^ {0,3}<!--\s*agent\s*-->\s*$/.test(line)) own = false;
|
|
107205
107116
|
if (own) section.push(line);
|
|
107206
107117
|
}
|
|
107207
|
-
const files2 = bodySources(section.join("\n")).filter((src) => !/^[a-z][\w+.-]*:|^#|^\/\//i.test(src) && kindOf2(
|
|
107118
|
+
const files2 = bodySources(section.join("\n")).filter((src) => !/^[a-z][\w+.-]*:|^#|^\/\//i.test(src) && kindOf2(path82.extname(src).toLowerCase()) === "html").map((src) => src.startsWith(".assets/") ? path82.join(ASSETS, src.slice(8)) : src.startsWith(".mockups/") ? path82.join(MOCKUPS, src.slice(9)) : path82.resolve(path82.dirname(file), src));
|
|
107208
107119
|
return validateScreens(files2);
|
|
107209
107120
|
}
|
|
107210
107121
|
var init_preview_validation = __esm({
|
|
@@ -107361,7 +107272,7 @@ __export(watch_exports, {
|
|
|
107361
107272
|
watchRun: () => watchRun
|
|
107362
107273
|
});
|
|
107363
107274
|
import { spawn as spawn4 } from "node:child_process";
|
|
107364
|
-
import
|
|
107275
|
+
import fs81 from "node:fs";
|
|
107365
107276
|
async function watchRun(sessionId, resume = startResume) {
|
|
107366
107277
|
const spec = readSpec(sessionId);
|
|
107367
107278
|
const run3 = peekRun(sessionId);
|
|
@@ -107397,11 +107308,11 @@ async function watchRun(sessionId, resume = startResume) {
|
|
|
107397
107308
|
const record = claimed ?? run3;
|
|
107398
107309
|
const sub = record.action === "sub";
|
|
107399
107310
|
if (claim) await setCardStatus(claim.cardId, claim.status);
|
|
107400
|
-
|
|
107401
|
-
const logFile =
|
|
107311
|
+
fs81.mkdirSync(SESSIONS_DIR, { recursive: true });
|
|
107312
|
+
const logFile = fs81.createWriteStream(record.logPath, { flags: "a" });
|
|
107402
107313
|
logFile.on("error", () => {
|
|
107403
107314
|
});
|
|
107404
|
-
const eventsFile =
|
|
107315
|
+
const eventsFile = fs81.createWriteStream(eventsPathOf(sessionId), { flags: "a" });
|
|
107405
107316
|
eventsFile.on("error", () => {
|
|
107406
107317
|
});
|
|
107407
107318
|
const event2 = (e2) => eventsFile.write(`${JSON.stringify(e2)}
|
|
@@ -107995,7 +107906,7 @@ var init_watch = __esm({
|
|
|
107995
107906
|
});
|
|
107996
107907
|
|
|
107997
107908
|
// ../cli/src/kanban.ts
|
|
107998
|
-
import
|
|
107909
|
+
import fs87 from "node:fs";
|
|
107999
107910
|
import { fileURLToPath as fileURLToPath4 } from "node:url";
|
|
108000
107911
|
|
|
108001
107912
|
// ../cli/src/lib/cli/agent.ts
|
|
@@ -108004,128 +107915,6 @@ init_esm();
|
|
|
108004
107915
|
init_io();
|
|
108005
107916
|
init_paths();
|
|
108006
107917
|
init_board_cli();
|
|
108007
|
-
|
|
108008
|
-
// ../cli/src/lib/agent/local-workflows.ts
|
|
108009
|
-
init_board_files();
|
|
108010
|
-
init_workflow_files();
|
|
108011
|
-
init_cards();
|
|
108012
|
-
init_tasks();
|
|
108013
|
-
init_session();
|
|
108014
|
-
init_frontmatter();
|
|
108015
|
-
init_paths();
|
|
108016
|
-
init_cloud_workflows();
|
|
108017
|
-
init_bundled();
|
|
108018
|
-
init_workflows();
|
|
108019
|
-
init_workflow_cards();
|
|
108020
|
-
init_workflow_file();
|
|
108021
|
-
import fs70 from "node:fs";
|
|
108022
|
-
import path71 from "node:path";
|
|
108023
|
-
function filesUnder(dir, base = dir) {
|
|
108024
|
-
return fs70.readdirSync(dir, { withFileTypes: true }).flatMap((e2) => {
|
|
108025
|
-
const full = path71.join(dir, e2.name);
|
|
108026
|
-
return e2.isDirectory() ? filesUnder(full, base) : [path71.relative(base, full).split(path71.sep).join("/")];
|
|
108027
|
-
});
|
|
108028
|
-
}
|
|
108029
|
-
function packLocalWorkflow(id, def, shipped = shippedAgentFiles()) {
|
|
108030
|
-
const out = localWorkflowFiles(id);
|
|
108031
|
-
const named2 = [...def.previews, ...def.land, ...def.scheduled].map((h3) => h3.agent).filter((a2) => !LAND_ROLES2.includes(a2));
|
|
108032
|
-
for (const agent of new Set(named2)) {
|
|
108033
|
-
const dir = path71.join(AGENTS, agent);
|
|
108034
|
-
if (fs70.existsSync(path71.join(dir, "AGENT.md"))) {
|
|
108035
|
-
for (const file of filesUnder(dir)) out[`agents/${agent}/${file}`] = fs70.readFileSync(path71.join(dir, file), "utf8");
|
|
108036
|
-
continue;
|
|
108037
|
-
}
|
|
108038
|
-
for (const [key, text5] of Object.entries(shipped)) if (key.startsWith(`${agent}/`)) out[`agents/${key}`] = text5;
|
|
108039
|
-
}
|
|
108040
|
-
return out;
|
|
108041
|
-
}
|
|
108042
|
-
function repoint2(card, to) {
|
|
108043
|
-
const found2 = locate(card);
|
|
108044
|
-
if (!found2) return;
|
|
108045
|
-
const file = found2.kind === "group" ? path71.join(found2.target, "root.md") : found2.target;
|
|
108046
|
-
const { meta, body } = parseFrontmatter(fs70.readFileSync(file, "utf8"));
|
|
108047
|
-
if (!meta) return;
|
|
108048
|
-
meta.workflow = to;
|
|
108049
|
-
fs70.writeFileSync(file, serializeFrontmatter(meta) + "\n" + body);
|
|
108050
|
-
}
|
|
108051
|
-
async function prepareWorkflows() {
|
|
108052
|
-
await syncWorkflows();
|
|
108053
|
-
await moveLocalWorkflows();
|
|
108054
|
-
}
|
|
108055
|
-
var CLOUD_FOLDER = /^wf-(builtin-.+|[0-9a-f]{28})$/;
|
|
108056
|
-
var tried = false;
|
|
108057
|
-
async function moveLocalWorkflows() {
|
|
108058
|
-
const moved = [];
|
|
108059
|
-
const kept2 = [];
|
|
108060
|
-
if (tried) return { moved, kept: kept2 };
|
|
108061
|
-
tried = true;
|
|
108062
|
-
for (const line of dropBuiltinChanges()) warn2(line);
|
|
108063
|
-
const folders2 = localWorkflowFolders();
|
|
108064
|
-
const project = boardProject();
|
|
108065
|
-
if (!folders2.length || !project || !readSession()) return { moved, kept: kept2 };
|
|
108066
|
-
const keep2 = (id, reason) => {
|
|
108067
|
-
kept2.push({ id, reason });
|
|
108068
|
-
warn2(`workflows/${id}/ stays on this board: ${reason}. It moves to Cloud the next time akb runs.`);
|
|
108069
|
-
};
|
|
108070
|
-
const held4 = await call("GET", `/v1/projects/${encodeURIComponent(project)}`);
|
|
108071
|
-
if (!held4.ok) {
|
|
108072
|
-
for (const f2 of folders2) keep2(f2.id, held4.error);
|
|
108073
|
-
return { moved, kept: kept2 };
|
|
108074
|
-
}
|
|
108075
|
-
const listed = [];
|
|
108076
|
-
let after2 = null;
|
|
108077
|
-
do {
|
|
108078
|
-
const page = await call(
|
|
108079
|
-
"GET",
|
|
108080
|
-
`/v1/workflows?workspace=${encodeURIComponent(held4.value.workspace)}&limit=100${after2 ? `&after=${encodeURIComponent(after2)}` : ""}`
|
|
108081
|
-
);
|
|
108082
|
-
if (!page.ok) {
|
|
108083
|
-
for (const f2 of folders2) keep2(f2.id, page.error);
|
|
108084
|
-
return { moved, kept: kept2 };
|
|
108085
|
-
}
|
|
108086
|
-
listed.push(...page.value.data);
|
|
108087
|
-
after2 = page.value.next;
|
|
108088
|
-
} while (after2);
|
|
108089
|
-
for (const { id, def, problem } of folders2) {
|
|
108090
|
-
if (CLOUD_FOLDER.test(id) || listed.some((w2) => workflowFolder(w2.id) === id)) {
|
|
108091
|
-
removeWorkflowDef(id);
|
|
108092
|
-
continue;
|
|
108093
|
-
}
|
|
108094
|
-
if (!def) {
|
|
108095
|
-
keep2(id, problem ?? "its WORKFLOW.md cannot be read");
|
|
108096
|
-
continue;
|
|
108097
|
-
}
|
|
108098
|
-
const files2 = packLocalWorkflow(id, def);
|
|
108099
|
-
const checked = checkWorkflowFiles(files2);
|
|
108100
|
-
if (!checked.ok) {
|
|
108101
|
-
keep2(id, `${checked.file} ${checked.reason}`);
|
|
108102
|
-
continue;
|
|
108103
|
-
}
|
|
108104
|
-
const made = await call("POST", "/v1/workflows", { files: files2, workspace: held4.value.workspace }, `akb-move-${project}-${id}`);
|
|
108105
|
-
if (!made.ok) {
|
|
108106
|
-
keep2(id, made.error);
|
|
108107
|
-
continue;
|
|
108108
|
-
}
|
|
108109
|
-
const to = workflowFolder(made.value.id);
|
|
108110
|
-
for (const card of cardsOnWorkflow(id)) repoint2(card, to);
|
|
108111
|
-
const rule = workflowRuleFile(id);
|
|
108112
|
-
if (fs70.existsSync(rule)) {
|
|
108113
|
-
fs70.mkdirSync(path71.join(RULES, "workflows"), { recursive: true });
|
|
108114
|
-
fs70.renameSync(rule, workflowRuleFile(to));
|
|
108115
|
-
}
|
|
108116
|
-
removeWorkflowDef(id);
|
|
108117
|
-
const others = localWorkflowFolders().flatMap((f2) => f2.def ? [...f2.def.previews, ...f2.def.land, ...f2.def.scheduled].map((h3) => h3.agent) : []);
|
|
108118
|
-
for (const name of Object.keys(files2).flatMap((f2) => /^agents\/([^/]+)\/AGENT\.md$/.exec(f2)?.[1] ?? [])) {
|
|
108119
|
-
if (!others.includes(name)) fs70.rmSync(path71.join(AGENTS, name), { recursive: true, force: true });
|
|
108120
|
-
}
|
|
108121
|
-
moved.push({ from: id, to });
|
|
108122
|
-
warn2(`workflows/${id}/ moved to Cloud as ${to}; its open cards follow it.`);
|
|
108123
|
-
}
|
|
108124
|
-
if (moved.length) await syncWorkflows(true);
|
|
108125
|
-
return { moved, kept: kept2 };
|
|
108126
|
-
}
|
|
108127
|
-
|
|
108128
|
-
// ../cli/src/lib/cli/agent.ts
|
|
108129
107918
|
init_cloud_workflows();
|
|
108130
107919
|
init_flows();
|
|
108131
107920
|
init_deliveries();
|
|
@@ -108600,8 +108389,8 @@ async function testAgent(args) {
|
|
|
108600
108389
|
}
|
|
108601
108390
|
|
|
108602
108391
|
// ../cli/src/commands/cloud.ts
|
|
108603
|
-
import
|
|
108604
|
-
import
|
|
108392
|
+
import fs70 from "node:fs";
|
|
108393
|
+
import path71 from "node:path";
|
|
108605
108394
|
|
|
108606
108395
|
// ../cli/src/lib/cloud/avatar.ts
|
|
108607
108396
|
init_session();
|
|
@@ -108649,13 +108438,13 @@ init_config();
|
|
|
108649
108438
|
init_home();
|
|
108650
108439
|
init_config();
|
|
108651
108440
|
init_session();
|
|
108652
|
-
import
|
|
108653
|
-
import
|
|
108441
|
+
import fs69 from "node:fs";
|
|
108442
|
+
import path70 from "node:path";
|
|
108654
108443
|
var FRESH_MS2 = 10 * 6e4;
|
|
108655
108444
|
var GRACE_MS = 7 * 24 * 60 * 6e4;
|
|
108656
|
-
var heldFile = () =>
|
|
108445
|
+
var heldFile = () => path70.join(machineHome(), "pro.json");
|
|
108657
108446
|
function forgetPro() {
|
|
108658
|
-
|
|
108447
|
+
fs69.rmSync(heldFile(), { force: true });
|
|
108659
108448
|
}
|
|
108660
108449
|
|
|
108661
108450
|
// ../cli/src/lib/cloud/account.ts
|
|
@@ -108832,10 +108621,10 @@ async function cloudImage(opts, program2) {
|
|
|
108832
108621
|
const prompt = opts.prompt.trim();
|
|
108833
108622
|
if (!prompt) usage("Missing the prompt.", line);
|
|
108834
108623
|
const references = opts.refs.map((file) => {
|
|
108835
|
-
const type = REF_TYPES[
|
|
108624
|
+
const type = REF_TYPES[path71.extname(file).toLowerCase()];
|
|
108836
108625
|
if (!type) usage(`--ref ${file}: use a PNG, JPEG or WebP file.`, line);
|
|
108837
108626
|
try {
|
|
108838
|
-
return `data:${type};base64,${
|
|
108627
|
+
return `data:${type};base64,${fs70.readFileSync(file).toString("base64")}`;
|
|
108839
108628
|
} catch (e2) {
|
|
108840
108629
|
usage(`--ref ${file}: ${e2 instanceof Error ? e2.message : String(e2)}`, line);
|
|
108841
108630
|
}
|
|
@@ -108941,8 +108730,8 @@ async function generate(g3) {
|
|
|
108941
108730
|
refuse(g3.failed, g3.fallback);
|
|
108942
108731
|
}
|
|
108943
108732
|
const out = g3.outFor?.(res, g3.out) ?? g3.out;
|
|
108944
|
-
|
|
108945
|
-
|
|
108733
|
+
fs70.mkdirSync(path71.dirname(path71.resolve(out)), { recursive: true });
|
|
108734
|
+
fs70.writeFileSync(out, Buffer.from(await res.arrayBuffer()));
|
|
108946
108735
|
say(`${out} (${g3.label(res)})`);
|
|
108947
108736
|
return { out };
|
|
108948
108737
|
}
|
|
@@ -108951,14 +108740,14 @@ async function generate(g3) {
|
|
|
108951
108740
|
init_board_files();
|
|
108952
108741
|
init_workflow_files();
|
|
108953
108742
|
import crypto6 from "node:crypto";
|
|
108954
|
-
import
|
|
108955
|
-
import
|
|
108743
|
+
import fs72 from "node:fs";
|
|
108744
|
+
import path73 from "node:path";
|
|
108956
108745
|
|
|
108957
108746
|
// ../cli/src/lib/agents/shared-memory.ts
|
|
108958
108747
|
init_bundled();
|
|
108959
108748
|
init_parse();
|
|
108960
|
-
import
|
|
108961
|
-
import
|
|
108749
|
+
import fs71 from "node:fs";
|
|
108750
|
+
import path72 from "node:path";
|
|
108962
108751
|
function sharedMemory(board2) {
|
|
108963
108752
|
const declared = /* @__PURE__ */ new Map();
|
|
108964
108753
|
const take = (folder, text5, builtIn) => {
|
|
@@ -108970,16 +108759,16 @@ function sharedMemory(board2) {
|
|
|
108970
108759
|
const at2 = /^([^/]+)\/AGENT\.md$/.exec(key);
|
|
108971
108760
|
if (at2) take(at2[1], text5, officialAgent(at2[1]));
|
|
108972
108761
|
}
|
|
108973
|
-
const root2 =
|
|
108762
|
+
const root2 = path72.join(board2, "agents");
|
|
108974
108763
|
let folders2 = [];
|
|
108975
108764
|
try {
|
|
108976
|
-
folders2 =
|
|
108765
|
+
folders2 = fs71.readdirSync(root2, { withFileTypes: true }).filter((e2) => e2.isDirectory() && !e2.name.startsWith(".")).map((e2) => e2.name);
|
|
108977
108766
|
} catch {
|
|
108978
108767
|
}
|
|
108979
108768
|
for (const folder of folders2.sort()) {
|
|
108980
108769
|
let text5 = null;
|
|
108981
108770
|
try {
|
|
108982
|
-
text5 =
|
|
108771
|
+
text5 = fs71.readFileSync(path72.join(root2, folder, "AGENT.md"), "utf8");
|
|
108983
108772
|
} catch {
|
|
108984
108773
|
}
|
|
108985
108774
|
take(folder, text5, false);
|
|
@@ -108995,6 +108784,7 @@ function matcher(entry) {
|
|
|
108995
108784
|
|
|
108996
108785
|
// ../cli/src/commands/cloud-import.ts
|
|
108997
108786
|
init_workflow_file();
|
|
108787
|
+
init_workflows();
|
|
108998
108788
|
init_cards();
|
|
108999
108789
|
init_config();
|
|
109000
108790
|
init_tasks();
|
|
@@ -109068,24 +108858,24 @@ async function findProject(asked) {
|
|
|
109068
108858
|
}
|
|
109069
108859
|
throw new Refused(`No project of yours has the id or prefix "${asked}".`, "not_found");
|
|
109070
108860
|
}
|
|
109071
|
-
var read = (file) =>
|
|
108861
|
+
var read = (file) => fs72.readFileSync(file, "utf8");
|
|
109072
108862
|
var bytes2 = (text5) => Buffer.byteLength(text5, "utf8");
|
|
109073
108863
|
function files(dir) {
|
|
109074
|
-
if (!
|
|
108864
|
+
if (!fs72.existsSync(dir)) return [];
|
|
109075
108865
|
const out = [];
|
|
109076
|
-
for (const entry of
|
|
108866
|
+
for (const entry of fs72.readdirSync(dir, { withFileTypes: true })) {
|
|
109077
108867
|
if (entry.name.startsWith(".")) continue;
|
|
109078
|
-
const full =
|
|
108868
|
+
const full = path73.join(dir, entry.name);
|
|
109079
108869
|
if (entry.isDirectory()) out.push(...files(full));
|
|
109080
108870
|
else if (entry.isFile()) out.push(full);
|
|
109081
108871
|
}
|
|
109082
108872
|
return out;
|
|
109083
108873
|
}
|
|
109084
|
-
var posix = (p2) => p2.split(
|
|
108874
|
+
var posix = (p2) => p2.split(path73.sep).join("/");
|
|
109085
108875
|
function openCards() {
|
|
109086
108876
|
const out = [];
|
|
109087
108877
|
for (const file of walkMd(TODO)) {
|
|
109088
|
-
const rel2 = posix(
|
|
108878
|
+
const rel2 = posix(path73.relative(TODO, file));
|
|
109089
108879
|
if (rel2 === "README.md") continue;
|
|
109090
108880
|
const parts = rel2.split("/");
|
|
109091
108881
|
const text5 = read(file);
|
|
@@ -109172,8 +108962,8 @@ function draftsOf(text5) {
|
|
|
109172
108962
|
const at2 = /^\.(assets|mockups)\/(.+)$/.exec(name);
|
|
109173
108963
|
if (!at2) continue;
|
|
109174
108964
|
const base = at2[1] === "assets" ? ASSETS : MOCKUPS;
|
|
109175
|
-
const file =
|
|
109176
|
-
if (file.startsWith(base +
|
|
108965
|
+
const file = path73.resolve(base, at2[2]);
|
|
108966
|
+
if (file.startsWith(base + path73.sep) && fs72.statSync(file, { throwIfNoEntry: false })?.isFile()) out.set(name, file);
|
|
109177
108967
|
}
|
|
109178
108968
|
return [...out].map(([name, file]) => ({ name, file }));
|
|
109179
108969
|
}
|
|
@@ -109207,9 +108997,9 @@ async function uploadDrafts(task, drafts) {
|
|
|
109207
108997
|
const assets = {};
|
|
109208
108998
|
for (const { name, file } of drafts) {
|
|
109209
108999
|
if (!card.body.includes(name)) continue;
|
|
109210
|
-
const ext =
|
|
109000
|
+
const ext = path73.extname(file).toLowerCase();
|
|
109211
109001
|
const type = TYPES[ext] ?? "application/octet-stream";
|
|
109212
|
-
const data =
|
|
109002
|
+
const data = fs72.readFileSync(file);
|
|
109213
109003
|
const artifact = await api("POST", `/v1/tasks/${task}/artifacts`, { type: kindOf(ext), name: name.slice(0, 200) });
|
|
109214
109004
|
const upload = await api("POST", `/v1/artifacts/${artifact.id}/uploads`, { content_type: type, size: Math.max(data.length, 1) });
|
|
109215
109005
|
await api("PUT", `/v1/uploads/${upload.id}`, void 0, { bytes: data, type });
|
|
@@ -109249,13 +109039,46 @@ usage: ${program2} cloud import --project <id or prefix> [--dry-run]`, { kind: "
|
|
|
109249
109039
|
]);
|
|
109250
109040
|
}
|
|
109251
109041
|
}
|
|
109042
|
+
function localWorkflowFolders() {
|
|
109043
|
+
let folders2;
|
|
109044
|
+
try {
|
|
109045
|
+
folders2 = fs72.readdirSync(WORKFLOWS, { withFileTypes: true }).filter((e2) => e2.isDirectory() && !e2.name.startsWith(".") && !e2.name.startsWith("task-")).map((e2) => e2.name).sort((a2, b2) => a2.localeCompare(b2, "en", { numeric: true }));
|
|
109046
|
+
} catch {
|
|
109047
|
+
return [];
|
|
109048
|
+
}
|
|
109049
|
+
return folders2.map((id) => {
|
|
109050
|
+
const problems = [];
|
|
109051
|
+
const def = readFolder2(id, problems);
|
|
109052
|
+
return { id, def, ...problems[0] ? { problem: problems[0] } : {} };
|
|
109053
|
+
});
|
|
109054
|
+
}
|
|
109055
|
+
function filesUnder(dir, base = dir) {
|
|
109056
|
+
return fs72.readdirSync(dir, { withFileTypes: true }).flatMap((e2) => {
|
|
109057
|
+
const full = path73.join(dir, e2.name);
|
|
109058
|
+
return e2.isDirectory() ? filesUnder(full, base) : [posix(path73.relative(base, full))];
|
|
109059
|
+
});
|
|
109060
|
+
}
|
|
109061
|
+
function packLocalWorkflow(id, def, shipped) {
|
|
109062
|
+
const dir = path73.join(WORKFLOWS, id);
|
|
109063
|
+
const out = Object.fromEntries(filesUnder(dir).map((f2) => [f2, fs72.readFileSync(path73.join(dir, f2), "utf8")]));
|
|
109064
|
+
const named2 = [...def.previews, ...def.land, ...def.scheduled].map((h3) => h3.agent).filter((a2) => !LAND_ROLES2.includes(a2));
|
|
109065
|
+
for (const agent of new Set(named2)) {
|
|
109066
|
+
const at2 = path73.join(AGENTS, agent);
|
|
109067
|
+
if (fs72.existsSync(path73.join(at2, "AGENT.md"))) {
|
|
109068
|
+
for (const file of filesUnder(at2)) out[`agents/${agent}/${file}`] = fs72.readFileSync(path73.join(at2, file), "utf8");
|
|
109069
|
+
continue;
|
|
109070
|
+
}
|
|
109071
|
+
for (const [key, text5] of Object.entries(shipped)) if (key.startsWith(`${agent}/`)) out[`agents/${key}`] = text5;
|
|
109072
|
+
}
|
|
109073
|
+
return out;
|
|
109074
|
+
}
|
|
109252
109075
|
async function run(asked, dryRun) {
|
|
109253
109076
|
const project = await findProject(asked);
|
|
109254
109077
|
const cloudFlows2 = await all(`/v1/workflows?workspace=${encodeURIComponent(project.workspace)}`);
|
|
109255
|
-
const board2 = crypto6.createHash("sha256").update(
|
|
109078
|
+
const board2 = crypto6.createHash("sha256").update(fs72.realpathSync(KANBAN)).digest("hex").slice(0, 16);
|
|
109256
109079
|
const cards = openCards();
|
|
109257
109080
|
const problems = [];
|
|
109258
|
-
const where = (file) => posix(
|
|
109081
|
+
const where = (file) => posix(path73.relative(KANBAN, file));
|
|
109259
109082
|
const own = [];
|
|
109260
109083
|
for (const f2 of localWorkflowFolders()) {
|
|
109261
109084
|
if (f2.def) own.push({ id: f2.id, name: f2.def.name, def: f2.def });
|
|
@@ -109284,7 +109107,7 @@ async function run(asked, dryRun) {
|
|
|
109284
109107
|
const root2 = `projects/${project.id}/`;
|
|
109285
109108
|
const boardFiles = [];
|
|
109286
109109
|
for (const file of [...files(MEMORY), ...files(RULES), CONFIG, MODULES_MD]) {
|
|
109287
|
-
if (!
|
|
109110
|
+
if (!fs72.existsSync(file)) continue;
|
|
109288
109111
|
const rel2 = where(file);
|
|
109289
109112
|
if (!isBoardPath(rel2)) continue;
|
|
109290
109113
|
const content = read(file);
|
|
@@ -109395,16 +109218,16 @@ async function run(asked, dryRun) {
|
|
|
109395
109218
|
}
|
|
109396
109219
|
function leftLocal(own) {
|
|
109397
109220
|
const out = [];
|
|
109398
|
-
const count4 = (dir) =>
|
|
109221
|
+
const count4 = (dir) => fs72.existsSync(dir) ? walkMd(dir).length : 0;
|
|
109399
109222
|
const archived = count4(ARCHIVE);
|
|
109400
109223
|
if (archived) out.push(`.archive/ (${archived})`);
|
|
109401
109224
|
const triage = count4(TRIAGE);
|
|
109402
109225
|
if (triage) out.push(`triage/ (${triage})`);
|
|
109403
|
-
if (
|
|
109404
|
-
if (
|
|
109226
|
+
if (fs72.existsSync(DELIVERIES)) out.push("deliveries/");
|
|
109227
|
+
if (fs72.existsSync(path73.join(KANBAN, "metrics.csv"))) out.push("metrics.csv");
|
|
109405
109228
|
const named2 = new Set(own.flatMap((w2) => [...w2.def.previews, ...w2.def.land, ...w2.def.scheduled].map((h3) => h3.agent)));
|
|
109406
|
-
if (
|
|
109407
|
-
for (const e2 of
|
|
109229
|
+
if (fs72.existsSync(AGENTS)) {
|
|
109230
|
+
for (const e2 of fs72.readdirSync(AGENTS, { withFileTypes: true })) {
|
|
109408
109231
|
if (e2.isDirectory() && !e2.name.startsWith(".") && !named2.has(e2.name)) out.push(`agents/${e2.name}/`);
|
|
109409
109232
|
}
|
|
109410
109233
|
}
|
|
@@ -109422,8 +109245,8 @@ init_session();
|
|
|
109422
109245
|
init_io();
|
|
109423
109246
|
init_paths();
|
|
109424
109247
|
import { createHash as createHash5 } from "node:crypto";
|
|
109425
|
-
import
|
|
109426
|
-
import
|
|
109248
|
+
import fs73 from "node:fs";
|
|
109249
|
+
import path74 from "node:path";
|
|
109427
109250
|
var SLUG = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
109428
109251
|
var CAPTURED = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?(?:Z|[+-]\d{2}:\d{2})$/;
|
|
109429
109252
|
var MAX_BYTES3 = 50 * 1024 * 1024;
|
|
@@ -109522,10 +109345,10 @@ This template has no preview.`);
|
|
|
109522
109345
|
const written = [];
|
|
109523
109346
|
for (const p2 of previews) {
|
|
109524
109347
|
const bytes3 = Buffer.from(await (await ask(`/${at2}/previews/${route(p2.path)}`, {}, WITHOUT)).arrayBuffer());
|
|
109525
|
-
const file =
|
|
109526
|
-
const out =
|
|
109527
|
-
|
|
109528
|
-
|
|
109348
|
+
const file = path74.basename(p2.path);
|
|
109349
|
+
const out = path74.join(opts.to, file.startsWith(`${name}-`) ? file : `${name}-${file}`);
|
|
109350
|
+
fs73.mkdirSync(opts.to, { recursive: true });
|
|
109351
|
+
fs73.writeFileSync(out, bytes3);
|
|
109529
109352
|
written.push(out);
|
|
109530
109353
|
say(out);
|
|
109531
109354
|
}
|
|
@@ -109538,15 +109361,15 @@ async function templateGet(name, opts, program2) {
|
|
|
109538
109361
|
const { template } = await asJson(await ask(`/${at2}`, {}, WITHOUT));
|
|
109539
109362
|
const fetched = [];
|
|
109540
109363
|
for (const f2 of template.files) {
|
|
109541
|
-
const out =
|
|
109542
|
-
if (!out.startsWith(
|
|
109364
|
+
const out = path74.resolve(to, f2.path);
|
|
109365
|
+
if (!out.startsWith(path74.resolve(to) + path74.sep)) refuse2(T.corrupt, WITHOUT);
|
|
109543
109366
|
const bytes3 = Buffer.from(await (await ask(`/${at2}/files/${route(f2.path)}`, {}, WITHOUT)).arrayBuffer());
|
|
109544
109367
|
if (bytes3.byteLength !== f2.size || createHash5("sha256").update(bytes3).digest("hex") !== f2.sha256) {
|
|
109545
109368
|
refuse2(T.corrupt, WITHOUT);
|
|
109546
109369
|
}
|
|
109547
109370
|
fetched.push({ out, bytes: bytes3 });
|
|
109548
109371
|
}
|
|
109549
|
-
const taken = fetched.filter((f2) =>
|
|
109372
|
+
const taken = fetched.filter((f2) => fs73.existsSync(f2.out)).map((f2) => path74.relative(to, f2.out));
|
|
109550
109373
|
if (taken.length > 0) {
|
|
109551
109374
|
refuse2({
|
|
109552
109375
|
zh: `\u76EE\u6807\u6587\u4EF6\u5939\u5DF2\u6709\u540C\u540D\u6587\u4EF6\uFF1A${taken.join("\u3001")}\u3002\u8BF7\u6362\u4E00\u4E2A\u6587\u4EF6\u5939\uFF0C\u6216\u5148\u79FB\u8D70\u8FD9\u4E9B\u6587\u4EF6\u3002`,
|
|
@@ -109554,8 +109377,8 @@ async function templateGet(name, opts, program2) {
|
|
|
109554
109377
|
});
|
|
109555
109378
|
}
|
|
109556
109379
|
for (const f2 of fetched) {
|
|
109557
|
-
|
|
109558
|
-
|
|
109380
|
+
fs73.mkdirSync(path74.dirname(f2.out), { recursive: true });
|
|
109381
|
+
fs73.writeFileSync(f2.out, f2.bytes);
|
|
109559
109382
|
}
|
|
109560
109383
|
say(`\u5DF2\u53D6\u56DE ${name}\uFF1A${fetched.length} \u4E2A\u6587\u4EF6\uFF0C\u4F4D\u4E8E ${to}
|
|
109561
109384
|
Fetched ${name}: ${fetched.length} files into ${to}`);
|
|
@@ -109573,25 +109396,25 @@ async function templateSource(name, opts) {
|
|
|
109573
109396
|
say(`evidence: ${e2.path}`);
|
|
109574
109397
|
continue;
|
|
109575
109398
|
}
|
|
109576
|
-
const out =
|
|
109577
|
-
|
|
109578
|
-
|
|
109399
|
+
const out = path74.join(opts.to, `${name}-${path74.basename(e2.path)}`);
|
|
109400
|
+
fs73.mkdirSync(opts.to, { recursive: true });
|
|
109401
|
+
fs73.writeFileSync(out, Buffer.from(await (await ask(`/${at2}/evidence/${route(e2.path)}`)).arrayBuffer()));
|
|
109579
109402
|
written.push(out);
|
|
109580
109403
|
say(out);
|
|
109581
109404
|
}
|
|
109582
109405
|
return { name, source, evidence: written.length > 0 ? written : evidence.map((e2) => e2.path) };
|
|
109583
109406
|
}
|
|
109584
109407
|
async function templatePublish(dir, opts) {
|
|
109585
|
-
const root2 =
|
|
109586
|
-
const manifest =
|
|
109587
|
-
if (!
|
|
109588
|
-
const meta = readTemplateMeta(
|
|
109408
|
+
const root2 = path74.resolve(dir);
|
|
109409
|
+
const manifest = path74.join(root2, "template.md");
|
|
109410
|
+
if (!fs73.existsSync(manifest)) invalid("\u6587\u4EF6\u5939\u9876\u5C42\u7F3A\u5C11 template.md\u3002", "template.md is missing from the folder\u2019s top level.");
|
|
109411
|
+
const meta = readTemplateMeta(fs73.readFileSync(manifest, "utf8"));
|
|
109589
109412
|
const files2 = walk2(root2);
|
|
109590
|
-
const total = files2.reduce((sum, f2) => sum +
|
|
109413
|
+
const total = files2.reduce((sum, f2) => sum + fs73.statSync(path74.join(root2, f2)).size, 0);
|
|
109591
109414
|
if (total > MAX_BYTES3) invalid("\u6A21\u677F\u6587\u4EF6\u5408\u8BA1\u8D85\u8FC7 50 MB\u3002", "the template\u2019s files exceed 50 MB.");
|
|
109592
109415
|
for (const extra of [...opts.preview, ...opts.evidence]) {
|
|
109593
|
-
if (!
|
|
109594
|
-
if (
|
|
109416
|
+
if (!fs73.existsSync(extra)) invalid(`\u627E\u4E0D\u5230\u6587\u4EF6 ${extra}\u3002`, `${extra} does not exist.`);
|
|
109417
|
+
if (path74.resolve(extra).startsWith(root2 + path74.sep)) {
|
|
109595
109418
|
invalid(
|
|
109596
109419
|
`${extra} \u5728\u6A21\u677F\u6587\u4EF6\u5939\u5185\uFF1B\u9884\u89C8\u56FE\u4E0E\u6765\u6E90\u51ED\u8BC1\u9700\u653E\u5728\u6A21\u677F\u6587\u4EF6\u5939\u4E4B\u5916\u3002`,
|
|
109597
109420
|
`${extra} is inside the template folder; keep previews and evidence outside it.`
|
|
@@ -109603,10 +109426,10 @@ async function templatePublish(dir, opts) {
|
|
|
109603
109426
|
}
|
|
109604
109427
|
const form = new FormData();
|
|
109605
109428
|
form.set("meta", JSON.stringify({ ...meta, replace: !!opts.replace }));
|
|
109606
|
-
const add = (kind, name, file) => form.append(`${kind}:${name}`, new Blob([
|
|
109607
|
-
for (const f2 of files2) add("files", f2,
|
|
109608
|
-
for (const f2 of opts.preview) add("previews",
|
|
109609
|
-
for (const f2 of opts.evidence) add("evidence",
|
|
109429
|
+
const add = (kind, name, file) => form.append(`${kind}:${name}`, new Blob([fs73.readFileSync(file)]), path74.basename(name));
|
|
109430
|
+
for (const f2 of files2) add("files", f2, path74.join(root2, f2));
|
|
109431
|
+
for (const f2 of opts.preview) add("previews", path74.basename(f2), f2);
|
|
109432
|
+
for (const f2 of opts.evidence) add("evidence", path74.basename(f2), f2);
|
|
109610
109433
|
const done2 = await asJson(await ask("", { method: "POST", body: form }));
|
|
109611
109434
|
say(
|
|
109612
109435
|
done2.replaced ? `\u5DF2\u66FF\u6362 ${done2.name}\uFF1A${files2.length} \u4E2A\u6587\u4EF6\u3002
|
|
@@ -109622,11 +109445,11 @@ Deleted ${name} from the catalog.`);
|
|
|
109622
109445
|
return { name, deleted: true };
|
|
109623
109446
|
}
|
|
109624
109447
|
async function templateShowcase(name, dir) {
|
|
109625
|
-
const file =
|
|
109626
|
-
if (!
|
|
109448
|
+
const file = path74.join(dir, "showcase.json");
|
|
109449
|
+
if (!fs73.existsSync(file)) invalid(`${dir} \u4E2D\u7F3A\u5C11 showcase.json\u3002`, `showcase.json is missing from ${dir}.`);
|
|
109627
109450
|
let meta;
|
|
109628
109451
|
try {
|
|
109629
|
-
meta = JSON.parse(
|
|
109452
|
+
meta = JSON.parse(fs73.readFileSync(file, "utf8"));
|
|
109630
109453
|
} catch {
|
|
109631
109454
|
return invalid("showcase.json \u4E0D\u662F\u6709\u6548\u7684 JSON\u3002", "showcase.json is not valid JSON.");
|
|
109632
109455
|
}
|
|
@@ -109638,9 +109461,9 @@ async function templateShowcase(name, dir) {
|
|
|
109638
109461
|
const form = new FormData();
|
|
109639
109462
|
form.set("meta", JSON.stringify(meta));
|
|
109640
109463
|
for (const p2 of new Set(named2)) {
|
|
109641
|
-
const at2 =
|
|
109642
|
-
if (!
|
|
109643
|
-
form.append(`media:${p2}`, new Blob([
|
|
109464
|
+
const at2 = path74.join(dir, p2);
|
|
109465
|
+
if (!fs73.existsSync(at2)) invalid(`\u627E\u4E0D\u5230\u6587\u4EF6 ${at2}\u3002`, `${at2} does not exist.`);
|
|
109466
|
+
form.append(`media:${p2}`, new Blob([fs73.readFileSync(at2)]), p2);
|
|
109644
109467
|
}
|
|
109645
109468
|
const done2 = await asJson(await ask(`/${encodeURIComponent(name)}/showcase`, { method: "PUT", body: form }));
|
|
109646
109469
|
say(`\u5DF2\u66F4\u65B0 ${name} \u7684\u5C55\u793A\u8D44\u6599\uFF1A${done2.files} \u4E2A\u6587\u4EF6\u3002
|
|
@@ -109649,7 +109472,7 @@ Updated ${name}'s showcase: ${done2.files} files.`);
|
|
|
109649
109472
|
}
|
|
109650
109473
|
function walk2(root2, sub = "") {
|
|
109651
109474
|
const out = [];
|
|
109652
|
-
for (const entry of
|
|
109475
|
+
for (const entry of fs73.readdirSync(path74.join(root2, sub), { withFileTypes: true })) {
|
|
109653
109476
|
if (entry.name.startsWith(".") || entry.name === "node_modules") continue;
|
|
109654
109477
|
const rel2 = sub ? `${sub}/${entry.name}` : entry.name;
|
|
109655
109478
|
if (entry.isDirectory()) out.push(...walk2(root2, rel2));
|
|
@@ -110012,7 +109835,7 @@ init_opencode();
|
|
|
110012
109835
|
init_locate();
|
|
110013
109836
|
init_store();
|
|
110014
109837
|
import { spawnSync as spawnSync5 } from "node:child_process";
|
|
110015
|
-
import
|
|
109838
|
+
import path80 from "node:path";
|
|
110016
109839
|
var AGENTS2 = {
|
|
110017
109840
|
claude: "claude-code",
|
|
110018
109841
|
codex: "codex",
|
|
@@ -110027,10 +109850,10 @@ var AGENTS2 = {
|
|
|
110027
109850
|
var RUNTIMES = /* @__PURE__ */ new Set(["node", "bun", "deno"]);
|
|
110028
109851
|
function agentOf2(args) {
|
|
110029
109852
|
const words = args.trim().split(/\s+/);
|
|
110030
|
-
const first =
|
|
109853
|
+
const first = path80.basename(words[0] ?? "");
|
|
110031
109854
|
const script = RUNTIMES.has(first) ? words[1] ?? "" : words[0] ?? "";
|
|
110032
109855
|
if (script.includes("/@anthropic-ai/claude-code/")) return "claude-code";
|
|
110033
|
-
return AGENTS2[
|
|
109856
|
+
return AGENTS2[path80.basename(script).replace(/\.(m?js|cjs|exe)$/, "")];
|
|
110034
109857
|
}
|
|
110035
109858
|
function processChain() {
|
|
110036
109859
|
if (process.platform === "win32") return [];
|
|
@@ -110094,8 +109917,8 @@ init_tasks();
|
|
|
110094
109917
|
init_read();
|
|
110095
109918
|
init_rules();
|
|
110096
109919
|
init_board();
|
|
110097
|
-
import
|
|
110098
|
-
import
|
|
109920
|
+
import fs82 from "node:fs";
|
|
109921
|
+
import path83 from "node:path";
|
|
110099
109922
|
var FOLLOW_MS = 400;
|
|
110100
109923
|
async function cmdStartRun(action, args, opts, program2 = "akb") {
|
|
110101
109924
|
const { req, follow: follow2, print } = readRequest(action, args, opts);
|
|
@@ -110343,7 +110166,7 @@ async function cmdSubStart(words, opts) {
|
|
|
110343
110166
|
let prompt = words.join(" ");
|
|
110344
110167
|
if (opts.file) {
|
|
110345
110168
|
try {
|
|
110346
|
-
prompt =
|
|
110169
|
+
prompt = fs82.readFileSync(path83.resolve(opts.file), "utf8");
|
|
110347
110170
|
} catch {
|
|
110348
110171
|
die(`--file: cannot read ${opts.file}`, { kind: "run-refused" });
|
|
110349
110172
|
}
|
|
@@ -110634,7 +110457,7 @@ function cmdCompleteDelivery(id, options) {
|
|
|
110634
110457
|
// ../cli/src/commands/triage.ts
|
|
110635
110458
|
init_scheduled();
|
|
110636
110459
|
init_workflows();
|
|
110637
|
-
import
|
|
110460
|
+
import fs84 from "node:fs";
|
|
110638
110461
|
|
|
110639
110462
|
// ../cli/src/lib/signals/index.ts
|
|
110640
110463
|
init_cards();
|
|
@@ -110644,16 +110467,16 @@ init_yaml();
|
|
|
110644
110467
|
// ../cli/src/lib/signals/config.ts
|
|
110645
110468
|
init_settings2();
|
|
110646
110469
|
init_paths();
|
|
110647
|
-
import
|
|
110648
|
-
import
|
|
110470
|
+
import fs83 from "node:fs";
|
|
110471
|
+
import path84 from "node:path";
|
|
110649
110472
|
var TOKEN_KEY = "TRIAGE_ENDPOINT_TOKEN";
|
|
110650
110473
|
var ENDPOINT_SETTING = "Triage endpoint";
|
|
110651
110474
|
var LINE2 = /^- \*\*Triage endpoint\*\*\s*[—-]\s*(.+)$/m;
|
|
110652
|
-
var boardRel3 = (file) => rel(file).split(
|
|
110475
|
+
var boardRel3 = (file) => rel(file).split(path84.sep).join("/");
|
|
110653
110476
|
function signalEndpoint() {
|
|
110654
110477
|
let text5;
|
|
110655
110478
|
try {
|
|
110656
|
-
text5 =
|
|
110479
|
+
text5 = fs83.readFileSync(CONFIG, "utf8");
|
|
110657
110480
|
} catch {
|
|
110658
110481
|
return "";
|
|
110659
110482
|
}
|
|
@@ -110829,7 +110652,7 @@ async function cmdTriageAdd(opts) {
|
|
|
110829
110652
|
let body = opts.text;
|
|
110830
110653
|
if (opts.file !== void 0) {
|
|
110831
110654
|
try {
|
|
110832
|
-
body =
|
|
110655
|
+
body = fs84.readFileSync(opts.file, "utf8");
|
|
110833
110656
|
} catch {
|
|
110834
110657
|
die(`can't read ${opts.file} \u2014 write the item to a file, then pass its path`, { kind: "needs-input" });
|
|
110835
110658
|
}
|
|
@@ -111034,7 +110857,7 @@ async function onBoard2(cmd, cli, work) {
|
|
|
111034
110857
|
const found2 = resolveBoard("runs", { board: ctx.board, dir: ctx.dir, cwd: cli.cwd, installHint: cli.installHint });
|
|
111035
110858
|
useBoard(found2, ctx.dir !== null);
|
|
111036
110859
|
sayIfRetiredPointer(found2.root);
|
|
111037
|
-
await
|
|
110860
|
+
await syncWorkflows();
|
|
111038
110861
|
return { board: KANBAN, ...await work(cli.program) ?? {} };
|
|
111039
110862
|
});
|
|
111040
110863
|
}
|
|
@@ -111402,8 +111225,8 @@ function declareAgent(program2, cli) {
|
|
|
111402
111225
|
}
|
|
111403
111226
|
|
|
111404
111227
|
// ../cli/src/lib/cli/setup.ts
|
|
111405
|
-
import
|
|
111406
|
-
import
|
|
111228
|
+
import fs86 from "node:fs";
|
|
111229
|
+
import path86 from "node:path";
|
|
111407
111230
|
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
111408
111231
|
|
|
111409
111232
|
// ../cli/src/commands/update.ts
|
|
@@ -111417,8 +111240,8 @@ init_paths();
|
|
|
111417
111240
|
init_memory();
|
|
111418
111241
|
init_yaml2();
|
|
111419
111242
|
init_version();
|
|
111420
|
-
import
|
|
111421
|
-
import
|
|
111243
|
+
import fs85 from "node:fs";
|
|
111244
|
+
import path85 from "node:path";
|
|
111422
111245
|
import { spawnSync as spawnSync6 } from "node:child_process";
|
|
111423
111246
|
var NAME = "wildcrane";
|
|
111424
111247
|
var REPO = "https://github.com/ai4kanban/ai4kanban";
|
|
@@ -111440,10 +111263,10 @@ var Report = class {
|
|
|
111440
111263
|
for (const line of this.notes) say(` ! ${line}`);
|
|
111441
111264
|
}
|
|
111442
111265
|
};
|
|
111443
|
-
var read3 = (file) =>
|
|
111266
|
+
var read3 = (file) => fs85.existsSync(file) ? fs85.readFileSync(file, "utf8") : null;
|
|
111444
111267
|
function statOf(p2) {
|
|
111445
111268
|
try {
|
|
111446
|
-
return
|
|
111269
|
+
return fs85.lstatSync(p2);
|
|
111447
111270
|
} catch {
|
|
111448
111271
|
return null;
|
|
111449
111272
|
}
|
|
@@ -111468,10 +111291,10 @@ async function cmdUpdate2(ctx) {
|
|
|
111468
111291
|
return { updated: ctx.dir, from, to: SKILL_VERSION };
|
|
111469
111292
|
}
|
|
111470
111293
|
async function repairBoard(root2, report3, named2) {
|
|
111471
|
-
const legacy2 =
|
|
111472
|
-
const kept2 =
|
|
111473
|
-
const board2 = named2 ?? (
|
|
111474
|
-
if (!
|
|
111294
|
+
const legacy2 = path85.join(root2, "docs", "kanban");
|
|
111295
|
+
const kept2 = path85.join(root2, ".akb", "kanban");
|
|
111296
|
+
const board2 = named2 ?? (fs85.existsSync(legacy2) ? legacy2 : kept2);
|
|
111297
|
+
if (!fs85.existsSync(board2)) {
|
|
111475
111298
|
report3.notes.push("\u672A\u627E\u5230\u770B\u677F\uFF0C\u8BF7\u901A\u8FC7\u63D2\u4EF6\u8FDE\u63A5\u4E91\u7AEF\u9879\u76EE\u3002");
|
|
111476
111299
|
return false;
|
|
111477
111300
|
}
|
|
@@ -111482,7 +111305,6 @@ async function repairBoard(root2, report3, named2) {
|
|
|
111482
111305
|
report3.sayDid();
|
|
111483
111306
|
await boardMove(root2, ["init"], board2);
|
|
111484
111307
|
moveRuntimes(root2, board2, report3);
|
|
111485
|
-
await moveLocalWorkflows();
|
|
111486
111308
|
const dropped = dropRecordFile(board2);
|
|
111487
111309
|
if (dropped) report3.did.push(dropped);
|
|
111488
111310
|
checkConfig(board2, report3);
|
|
@@ -111503,20 +111325,20 @@ function moveRuntimes(root2, board2, report3) {
|
|
|
111503
111325
|
}
|
|
111504
111326
|
}
|
|
111505
111327
|
function moveLegacyMemory(board2, report3) {
|
|
111506
|
-
const memory =
|
|
111328
|
+
const memory = path85.join(board2, "memory");
|
|
111507
111329
|
const moved = [];
|
|
111508
111330
|
for (const name of MEMORY_FILES) {
|
|
111509
|
-
const from =
|
|
111331
|
+
const from = path85.join(board2, name);
|
|
111510
111332
|
const st2 = statOf(from);
|
|
111511
111333
|
if (!st2 || !st2.isFile()) continue;
|
|
111512
|
-
|
|
111513
|
-
const to =
|
|
111334
|
+
fs85.mkdirSync(memory, { recursive: true });
|
|
111335
|
+
const to = path85.join(memory, name);
|
|
111514
111336
|
const there = read3(to);
|
|
111515
111337
|
if (there === null) {
|
|
111516
|
-
|
|
111338
|
+
fs85.renameSync(from, to);
|
|
111517
111339
|
moved.push(name);
|
|
111518
111340
|
} else if (there === read3(from)) {
|
|
111519
|
-
|
|
111341
|
+
fs85.rmSync(from);
|
|
111520
111342
|
moved.push(name);
|
|
111521
111343
|
} else {
|
|
111522
111344
|
report3.notes.push(`both docs/kanban/${name} and docs/kanban/memory/${name} exist and differ \u2014 merge them by hand`);
|
|
@@ -111525,23 +111347,23 @@ function moveLegacyMemory(board2, report3) {
|
|
|
111525
111347
|
if (moved.length) report3.did.push(`moved the memory set into docs/kanban/memory/: ${moved.join(", ")}`);
|
|
111526
111348
|
}
|
|
111527
111349
|
function dropRecordFile(board2) {
|
|
111528
|
-
const file =
|
|
111529
|
-
if (!
|
|
111530
|
-
|
|
111350
|
+
const file = path85.join(board2, "record.csv");
|
|
111351
|
+
if (!fs85.existsSync(file)) return null;
|
|
111352
|
+
fs85.rmSync(file);
|
|
111531
111353
|
return "removed docs/kanban/record.csv (the planning scores it fed are gone)";
|
|
111532
111354
|
}
|
|
111533
111355
|
function dropModuleGoals(board2, report3) {
|
|
111534
|
-
const memory =
|
|
111535
|
-
if (!
|
|
111536
|
-
const root2 = read3(
|
|
111356
|
+
const memory = path85.join(board2, "memory");
|
|
111357
|
+
if (!fs85.existsSync(memory)) return;
|
|
111358
|
+
const root2 = read3(path85.join(memory, "goal.md"));
|
|
111537
111359
|
let dropped = 0;
|
|
111538
|
-
for (const entry of
|
|
111360
|
+
for (const entry of fs85.readdirSync(memory, { withFileTypes: true })) {
|
|
111539
111361
|
if (!entry.isDirectory()) continue;
|
|
111540
|
-
const file =
|
|
111362
|
+
const file = path85.join(memory, entry.name, "goal.md");
|
|
111541
111363
|
const text5 = read3(file);
|
|
111542
111364
|
if (text5 === null) continue;
|
|
111543
111365
|
if (text5 === root2 || text5.includes(UNFILLED) || !goalWords(text5)) {
|
|
111544
|
-
|
|
111366
|
+
fs85.rmSync(file);
|
|
111545
111367
|
dropped++;
|
|
111546
111368
|
} else {
|
|
111547
111369
|
report3.notes.push(
|
|
@@ -111563,10 +111385,10 @@ var PLAN_LEADS = {
|
|
|
111563
111385
|
var GONE_LEADS = ["software-planner", "planner"];
|
|
111564
111386
|
function planLeads(board2) {
|
|
111565
111387
|
const leads = { ...PLAN_LEADS };
|
|
111566
|
-
const root2 =
|
|
111567
|
-
for (const entry of
|
|
111388
|
+
const root2 = path85.join(board2, "workflows");
|
|
111389
|
+
for (const entry of fs85.existsSync(root2) ? fs85.readdirSync(root2, { withFileTypes: true }) : []) {
|
|
111568
111390
|
if (!entry.isDirectory()) continue;
|
|
111569
|
-
const meta = splitFrontmatter(read3(
|
|
111391
|
+
const meta = splitFrontmatter(read3(path85.join(root2, entry.name, "WORKFLOW.md")) ?? "").meta;
|
|
111570
111392
|
const stages = meta === null ? void 0 : parseYamlBlock(meta).stages;
|
|
111571
111393
|
const plan = stages && typeof stages === "object" && !Array.isArray(stages) ? stages.plan : void 0;
|
|
111572
111394
|
const lead = plan && typeof plan === "object" && !Array.isArray(plan) && typeof plan.lead === "string" ? plan.lead.trim() : "";
|
|
@@ -111575,30 +111397,30 @@ function planLeads(board2) {
|
|
|
111575
111397
|
return leads;
|
|
111576
111398
|
}
|
|
111577
111399
|
function movePlanRules(board2, report3) {
|
|
111578
|
-
const rules =
|
|
111400
|
+
const rules = path85.join(board2, "rules");
|
|
111579
111401
|
const moved = [];
|
|
111580
111402
|
for (const [id, leads] of Object.entries(planLeads(board2))) {
|
|
111581
111403
|
for (const lead of leads) {
|
|
111582
|
-
const from =
|
|
111404
|
+
const from = path85.join(rules, `${lead}.md`);
|
|
111583
111405
|
const rule = read3(from)?.trim();
|
|
111584
111406
|
if (!rule) continue;
|
|
111585
|
-
const to =
|
|
111407
|
+
const to = path85.join(rules, "workflows", `${id}.md`);
|
|
111586
111408
|
const there = read3(to)?.trim() ?? "";
|
|
111587
111409
|
if (!there.includes(rule)) {
|
|
111588
|
-
|
|
111589
|
-
|
|
111410
|
+
fs85.mkdirSync(path85.dirname(to), { recursive: true });
|
|
111411
|
+
fs85.writeFileSync(to, `${[there, rule].filter(Boolean).join("\n\n")}
|
|
111590
111412
|
`);
|
|
111591
111413
|
moved.push(`${lead} \u2192 ${id}`);
|
|
111592
111414
|
}
|
|
111593
111415
|
}
|
|
111594
111416
|
}
|
|
111595
|
-
for (const lead of GONE_LEADS)
|
|
111417
|
+
for (const lead of GONE_LEADS) fs85.rmSync(path85.join(rules, `${lead}.md`), { force: true });
|
|
111596
111418
|
if (moved.length) report3.did.push(`made each plan agent's rule its workflow's card rule (docs/kanban/rules/workflows/): ${moved.join(", ")}`);
|
|
111597
111419
|
}
|
|
111598
111420
|
function noteOldWorkflows(board2, report3) {
|
|
111599
111421
|
const old = (dir, file, keys) => {
|
|
111600
|
-
const root2 =
|
|
111601
|
-
return (
|
|
111422
|
+
const root2 = path85.join(board2, dir);
|
|
111423
|
+
return (fs85.existsSync(root2) ? fs85.readdirSync(root2, { withFileTypes: true }) : []).filter((e2) => e2.isDirectory() && keys.test(splitFrontmatter(read3(path85.join(root2, e2.name, file)) ?? "").meta ?? "")).map((e2) => `docs/kanban/${dir}/${e2.name}/${file}`);
|
|
111602
111424
|
};
|
|
111603
111425
|
const files2 = [...old("workflows", "WORKFLOW.md", /^(stages|delivers):/m), ...old("agents", "AGENT.md", /^\s+(hook|lead):/m)];
|
|
111604
111426
|
if (files2.length) {
|
|
@@ -111608,7 +111430,7 @@ function noteOldWorkflows(board2, report3) {
|
|
|
111608
111430
|
}
|
|
111609
111431
|
}
|
|
111610
111432
|
function checkConfig(board2, report3) {
|
|
111611
|
-
const current = read3(
|
|
111433
|
+
const current = read3(path85.join(board2, "config.md"));
|
|
111612
111434
|
if (!current) return;
|
|
111613
111435
|
const added = missingConfigKeys(current);
|
|
111614
111436
|
if (added.length) {
|
|
@@ -111618,7 +111440,7 @@ function checkConfig(board2, report3) {
|
|
|
111618
111440
|
}
|
|
111619
111441
|
}
|
|
111620
111442
|
function checkModules(board2, report3) {
|
|
111621
|
-
const map2 = read3(
|
|
111443
|
+
const map2 = read3(path85.join(board2, "modules.md"));
|
|
111622
111444
|
if (map2 && map2.includes(UNFILLED)) {
|
|
111623
111445
|
report3.notes.push(
|
|
111624
111446
|
"docs/kanban/modules.md is still blank \u2014 write it from the repo (`akb guide module-map`)"
|
|
@@ -111672,14 +111494,14 @@ function declareSetup(program2, cli) {
|
|
|
111672
111494
|
program2.version(SKILL_VERSION, "-v, --version", "print this version").addHelpText("beforeAll", spelled(cli.program));
|
|
111673
111495
|
const dirOption = (cmd) => cmd.option("--dir <path>", "the project to work on (default: the current folder)").option("--json", "answer as one JSON object instead of prose");
|
|
111674
111496
|
const where = (cmd) => {
|
|
111675
|
-
const dir =
|
|
111676
|
-
if (!
|
|
111497
|
+
const dir = path86.resolve(String(cmd.optsWithGlobals().dir ?? cli.cwd));
|
|
111498
|
+
if (!fs86.existsSync(dir)) throw new BoardError(`no such folder: ${dir}`, { kind: "no-such-folder", dir });
|
|
111677
111499
|
return dir;
|
|
111678
111500
|
};
|
|
111679
111501
|
dirOption(program2.command("update")).summary("\u4FEE\u590D\u5DF2\u6709\u770B\u677F\u5E76\u68C0\u67E5 CLI \u65B0\u7248\u672C").description("\u4FEE\u590D\u5DF2\u6709\u770B\u677F\u5E76\u63D0\u793A CLI \u5347\u7EA7\u547D\u4EE4\u3002\u6CA1\u6709\u770B\u677F\u65F6\uFF0C\u8BF7\u901A\u8FC7\u63D2\u4EF6\u8FDE\u63A5\u4E91\u7AEF\u9879\u76EE\u3002").action(async function() {
|
|
111680
111502
|
const dir = where(this);
|
|
111681
111503
|
const named2 = this.optsWithGlobals().board ?? process.env.AI4KANBAN_BOARD?.trim();
|
|
111682
|
-
const board2 = named2 ?
|
|
111504
|
+
const board2 = named2 ? path86.resolve(cli.cwd, named2) : null;
|
|
111683
111505
|
await runAction(ctxOf(this, cli.program), {}, () => cmdUpdate2({ dir, program: cli.program, board: board2 }));
|
|
111684
111506
|
});
|
|
111685
111507
|
program2.command("__rules", { hidden: true }).action(function() {
|
|
@@ -111724,7 +111546,7 @@ function invokedDirectly() {
|
|
|
111724
111546
|
const entry = process.argv[1];
|
|
111725
111547
|
if (!entry) return false;
|
|
111726
111548
|
try {
|
|
111727
|
-
return
|
|
111549
|
+
return fs87.realpathSync(entry) === fs87.realpathSync(SELF2);
|
|
111728
111550
|
} catch {
|
|
111729
111551
|
return false;
|
|
111730
111552
|
}
|