wildcrane 0.11.22 → 0.11.23

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