@alecsibilia/luca 13.0.0-alpha.16 → 13.0.0-alpha.17

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 (58) hide show
  1. package/dist/chunks/brain.mjs +77 -0
  2. package/dist/chunks/branch.mjs +9 -9
  3. package/dist/chunks/checks.mjs +9 -9
  4. package/dist/chunks/claim-verify.mjs +1 -1
  5. package/dist/chunks/classify.mjs +1 -1
  6. package/dist/chunks/confidence.mjs +9 -9
  7. package/dist/chunks/hook.mjs +6 -5
  8. package/dist/chunks/init.mjs +3 -3
  9. package/dist/chunks/luca-gitignore.mjs +2 -2
  10. package/dist/chunks/phase.mjs +9 -9
  11. package/dist/chunks/plan.mjs +9 -9
  12. package/dist/chunks/pr-review.mjs +9 -9
  13. package/dist/chunks/preferences.mjs +9 -9
  14. package/dist/chunks/repair.mjs +1 -1
  15. package/dist/chunks/repo.mjs +9 -9
  16. package/dist/chunks/retro.mjs +6 -6
  17. package/dist/chunks/roadmap.mjs +9 -9
  18. package/dist/chunks/rules.mjs +9 -9
  19. package/dist/chunks/state.mjs +9 -9
  20. package/dist/chunks/stray-local-install.mjs +1 -1
  21. package/dist/chunks/telemetry.mjs +12 -10
  22. package/dist/chunks/todo.mjs +56 -16
  23. package/dist/chunks/vault-init.mjs +2 -2
  24. package/dist/chunks/verification.mjs +6 -6
  25. package/dist/chunks/workflow.mjs +9 -9
  26. package/dist/claude/.claude/agents/finalize.md +5 -5
  27. package/dist/claude/.claude/agents/learner.md +26 -3
  28. package/dist/claude/.claude/commands/lu.md +1 -1
  29. package/dist/claude/.claude/commands/milestone-new.md +1 -1
  30. package/dist/claude/.claude/commands/repo-cleanup.md +1 -1
  31. package/dist/claude/.claude/commands/todo-check.md +2 -2
  32. package/dist/claude/skills/gh-issue-triage/SKILL.md +1 -1
  33. package/dist/claude/skills/gh-prepare/SKILL.md +1 -1
  34. package/dist/claude/skills/lu/SKILL.md +1 -1
  35. package/dist/claude/skills/milestone-audit/SKILL.md +2 -2
  36. package/dist/claude/skills/milestone-complete/SKILL.md +10 -6
  37. package/dist/claude/skills/phase-discuss/SKILL.md +1 -1
  38. package/dist/claude/skills/phase-execute/SKILL.md +22 -21
  39. package/dist/claude/skills/phase-plan/SKILL.md +9 -5
  40. package/dist/claude/skills/project-new/SKILL.md +18 -5
  41. package/dist/claude/skills/repo-cleanup/SKILL.md +1 -1
  42. package/dist/claude/skills/seed-memory/SKILL.md +42 -35
  43. package/dist/claude/skills/session-plan/SKILL.md +5 -5
  44. package/dist/claude/skills/todo-check/SKILL.md +6 -2
  45. package/dist/index.mjs +4 -1
  46. package/dist/shared/{luca.C-X2k3jn.mjs → luca.B7iLEqsQ.mjs} +1 -1
  47. package/dist/shared/{luca.x9dPVAJp.mjs → luca.B8WW6rRN.mjs} +5 -1
  48. package/dist/shared/{luca.DofrbCcU.mjs → luca.BF5qEvdD.mjs} +1 -1
  49. package/dist/shared/{luca.DIunui0u.mjs → luca.C2ogyBnM.mjs} +9 -5
  50. package/dist/shared/{luca.IzPccjEn.mjs → luca.CS6hX6Qp.mjs} +2 -2
  51. package/dist/shared/{luca.fO8NVlpI.mjs → luca.Cv3E_Fnt.mjs} +8 -2
  52. package/dist/shared/{luca.V1J718kQ.mjs → luca.DQrYxvNf.mjs} +4 -4
  53. package/dist/shared/{luca.BG342Rbt.mjs → luca.DR6Ozgej.mjs} +1 -1
  54. package/dist/shared/{luca.B676-2qC.mjs → luca.DnxKfoo3.mjs} +465 -85
  55. package/dist/shared/{luca.BtAqAzIw.mjs → luca.WbePbn19.mjs} +1 -1
  56. package/dist/shared/{luca.BoUh9O2u.mjs → luca.c0jSLO19.mjs} +2 -2
  57. package/dist/shared/{luca.Dfpw0iYf.mjs → luca.nDdWrm1l.mjs} +1 -1
  58. package/package.json +1 -1
@@ -0,0 +1,77 @@
1
+ import { defineCommand } from 'citty';
2
+ import 'zod';
3
+ import '../shared/luca.Cv3E_Fnt.mjs';
4
+ import 'node:fs';
5
+ import 'node:fs/promises';
6
+ import 'node:path';
7
+ import 'node:crypto';
8
+ import 'node:module';
9
+ import 'node:url';
10
+ import 'node:child_process';
11
+ import { t as lucaBrainRecallRootTool, u as lucaBrainSetRootTool } from '../shared/luca.DnxKfoo3.mjs';
12
+ import '../shared/luca.nDdWrm1l.mjs';
13
+ import { r as rejectUnknownFlags, a as runWriteHandler } from '../shared/luca.C2ogyBnM.mjs';
14
+ import 'node:os';
15
+ import '../shared/luca.CQ3g1xrD.mjs';
16
+ import '../shared/luca.B8WW6rRN.mjs';
17
+ import '../shared/luca.CS6hX6Qp.mjs';
18
+ import '../shared/luca.B7iLEqsQ.mjs';
19
+ import '../shared/luca.BAqmbI4n.mjs';
20
+ import '../shared/luca.c0jSLO19.mjs';
21
+
22
+ const setRootCommand = defineCommand({
23
+ meta: {
24
+ name: "set-root",
25
+ description: "Persist a brain tree root engram ULID (returned by muninn_remember_tree) to .luca/config.json#muninn.brainRoots for the current vault. Local write \u2014 run once per brain tree at creation (project-new / seed-memory) so readers resolve the root by ULID. Phase-agnostic."
26
+ },
27
+ args: {
28
+ concept: {
29
+ type: "string",
30
+ required: true,
31
+ description: 'The brain tree root concept (e.g. "brain:project-identity", "brain:project-requirements").'
32
+ },
33
+ id: {
34
+ type: "string",
35
+ required: true,
36
+ description: "The brain tree root engram ULID (the root_id returned by muninn_remember_tree)."
37
+ }
38
+ },
39
+ async run({ args, rawArgs, cmd }) {
40
+ rejectUnknownFlags("brain set-root", cmd, rawArgs);
41
+ await runWriteHandler("brain set-root", lucaBrainSetRootTool, {
42
+ concept: args.concept,
43
+ id: args.id
44
+ });
45
+ }
46
+ });
47
+ const recallRootCommand = defineCommand({
48
+ meta: {
49
+ name: "recall-root",
50
+ description: 'Emit a muninn_recall_tree procedure for a brain tree, resolved by its cached root ULID (replaces the broken recall_tree(id="brain:project-identity")). Uninitialized \u2192 a plain notice. Phase-agnostic.'
51
+ },
52
+ args: {
53
+ concept: {
54
+ type: "string",
55
+ required: true,
56
+ description: 'The brain tree root concept to recall (e.g. "brain:project-identity").'
57
+ }
58
+ },
59
+ async run({ args, rawArgs, cmd }) {
60
+ rejectUnknownFlags("brain recall-root", cmd, rawArgs);
61
+ await runWriteHandler("brain recall-root", lucaBrainRecallRootTool, {
62
+ concept: args.concept
63
+ });
64
+ }
65
+ });
66
+ const brainCommand = defineCommand({
67
+ meta: {
68
+ name: "brain",
69
+ description: "Resolve MuninnDB brain trees (project identity) by cached root ULID"
70
+ },
71
+ subCommands: {
72
+ "set-root": setRootCommand,
73
+ "recall-root": recallRootCommand
74
+ }
75
+ });
76
+
77
+ export { brainCommand };
@@ -1,6 +1,6 @@
1
1
  import { defineCommand } from 'citty';
2
2
  import 'zod';
3
- import '../shared/luca.fO8NVlpI.mjs';
3
+ import '../shared/luca.Cv3E_Fnt.mjs';
4
4
  import 'node:fs';
5
5
  import 'node:fs/promises';
6
6
  import 'node:path';
@@ -8,16 +8,16 @@ import 'node:crypto';
8
8
  import 'node:module';
9
9
  import 'node:url';
10
10
  import 'node:child_process';
11
- import { w as lucaBranchGuardTool } from '../shared/luca.B676-2qC.mjs';
12
- import '../shared/luca.Dfpw0iYf.mjs';
13
- import { r as rejectUnknownFlags, a as runWriteHandler } from '../shared/luca.DIunui0u.mjs';
11
+ import { A as lucaBranchGuardTool } from '../shared/luca.DnxKfoo3.mjs';
12
+ import '../shared/luca.nDdWrm1l.mjs';
13
+ import { r as rejectUnknownFlags, a as runWriteHandler } from '../shared/luca.C2ogyBnM.mjs';
14
14
  import 'node:os';
15
- import '../shared/luca.x9dPVAJp.mjs';
16
- import '../shared/luca.IzPccjEn.mjs';
17
- import '../shared/luca.C-X2k3jn.mjs';
18
- import '../shared/luca.BAqmbI4n.mjs';
19
15
  import '../shared/luca.CQ3g1xrD.mjs';
20
- import '../shared/luca.BoUh9O2u.mjs';
16
+ import '../shared/luca.B8WW6rRN.mjs';
17
+ import '../shared/luca.CS6hX6Qp.mjs';
18
+ import '../shared/luca.B7iLEqsQ.mjs';
19
+ import '../shared/luca.BAqmbI4n.mjs';
20
+ import '../shared/luca.c0jSLO19.mjs';
21
21
 
22
22
  const guardCommand = defineCommand({
23
23
  meta: {
@@ -1,6 +1,6 @@
1
1
  import { defineCommand } from 'citty';
2
2
  import 'zod';
3
- import '../shared/luca.fO8NVlpI.mjs';
3
+ import '../shared/luca.Cv3E_Fnt.mjs';
4
4
  import 'node:fs';
5
5
  import 'node:fs/promises';
6
6
  import 'node:path';
@@ -8,16 +8,16 @@ import 'node:crypto';
8
8
  import 'node:module';
9
9
  import 'node:url';
10
10
  import 'node:child_process';
11
- import { v as lucaChecksRunTool } from '../shared/luca.B676-2qC.mjs';
12
- import '../shared/luca.Dfpw0iYf.mjs';
13
- import { r as rejectUnknownFlags, b as readJsonPayload, a as runWriteHandler } from '../shared/luca.DIunui0u.mjs';
11
+ import { z as lucaChecksRunTool } from '../shared/luca.DnxKfoo3.mjs';
12
+ import '../shared/luca.nDdWrm1l.mjs';
13
+ import { r as rejectUnknownFlags, b as readJsonPayload, a as runWriteHandler } from '../shared/luca.C2ogyBnM.mjs';
14
14
  import 'node:os';
15
- import '../shared/luca.x9dPVAJp.mjs';
16
- import '../shared/luca.IzPccjEn.mjs';
17
- import '../shared/luca.C-X2k3jn.mjs';
18
- import '../shared/luca.BAqmbI4n.mjs';
19
15
  import '../shared/luca.CQ3g1xrD.mjs';
20
- import '../shared/luca.BoUh9O2u.mjs';
16
+ import '../shared/luca.B8WW6rRN.mjs';
17
+ import '../shared/luca.CS6hX6Qp.mjs';
18
+ import '../shared/luca.B7iLEqsQ.mjs';
19
+ import '../shared/luca.BAqmbI4n.mjs';
20
+ import '../shared/luca.c0jSLO19.mjs';
21
21
 
22
22
  const runCommand = defineCommand({
23
23
  meta: {
@@ -1,6 +1,6 @@
1
1
  import { defineCommand } from 'citty';
2
2
  import { resolve } from 'pathe';
3
- import { v as verifyFile } from '../shared/luca.fO8NVlpI.mjs';
3
+ import { v as verifyFile } from '../shared/luca.Cv3E_Fnt.mjs';
4
4
  import 'node:fs';
5
5
  import 'node:fs/promises';
6
6
  import 'node:path';
@@ -1,5 +1,5 @@
1
1
  import { defineCommand } from 'citty';
2
- import { C as ClassifyComplexityInputSchema } from '../shared/luca.fO8NVlpI.mjs';
2
+ import { C as ClassifyComplexityInputSchema } from '../shared/luca.Cv3E_Fnt.mjs';
3
3
  import 'node:fs';
4
4
  import 'node:fs/promises';
5
5
  import 'node:path';
@@ -1,6 +1,6 @@
1
1
  import { defineCommand } from 'citty';
2
- import '../shared/luca.fO8NVlpI.mjs';
3
- import { l as loadCurrentState, r as resolveActiveSlug } from '../shared/luca.x9dPVAJp.mjs';
2
+ import '../shared/luca.Cv3E_Fnt.mjs';
3
+ import { l as loadCurrentState, r as resolveActiveSlug } from '../shared/luca.B8WW6rRN.mjs';
4
4
  import 'node:fs';
5
5
  import 'node:fs/promises';
6
6
  import 'node:path';
@@ -8,18 +8,18 @@ import 'node:crypto';
8
8
  import 'node:module';
9
9
  import 'node:url';
10
10
  import 'node:child_process';
11
- import { r as readConfidenceJournal, b as renderConfidenceJournalMarkdown, g as getConfidenceSummary } from '../shared/luca.IzPccjEn.mjs';
11
+ import { r as readConfidenceJournal, b as renderConfidenceJournalMarkdown, g as getConfidenceSummary } from '../shared/luca.CS6hX6Qp.mjs';
12
12
  import { l as logger } from '../shared/luca.dM-MKlNE.mjs';
13
13
  import 'zod';
14
- import { y as lucaConfidenceLogTool } from '../shared/luca.B676-2qC.mjs';
15
- import '../shared/luca.Dfpw0iYf.mjs';
16
- import { r as rejectUnknownFlags, b as readJsonPayload, a as runWriteHandler } from '../shared/luca.DIunui0u.mjs';
14
+ import { C as lucaConfidenceLogTool } from '../shared/luca.DnxKfoo3.mjs';
15
+ import '../shared/luca.nDdWrm1l.mjs';
16
+ import { r as rejectUnknownFlags, b as readJsonPayload, a as runWriteHandler } from '../shared/luca.C2ogyBnM.mjs';
17
17
  import 'node:os';
18
- import '../shared/luca.C-X2k3jn.mjs';
18
+ import '../shared/luca.B7iLEqsQ.mjs';
19
19
  import 'consola';
20
- import '../shared/luca.BAqmbI4n.mjs';
21
20
  import '../shared/luca.CQ3g1xrD.mjs';
22
- import '../shared/luca.BoUh9O2u.mjs';
21
+ import '../shared/luca.BAqmbI4n.mjs';
22
+ import '../shared/luca.c0jSLO19.mjs';
23
23
 
24
24
  function selectConfidenceGateActions(entries) {
25
25
  const auto = [];
@@ -1,17 +1,17 @@
1
1
  import { defineCommand } from 'citty';
2
- import { c as coarsePhaseOf, t as toLucaRelative, a as classifyWritePath, T as TMP_PATH_PATTERN, A as AUDIT_PATH_PATTERN, W as WAVE_FILE_RE } from '../shared/luca.fO8NVlpI.mjs';
3
- import { l as loadCurrentState, S as STEP_ARTIFACTS, r as resolveActiveSlug } from '../shared/luca.x9dPVAJp.mjs';
2
+ import { c as coarsePhaseOf, t as toLucaRelative, a as classifyWritePath, T as TMP_PATH_PATTERN, A as AUDIT_PATH_PATTERN, W as WAVE_FILE_RE } from '../shared/luca.Cv3E_Fnt.mjs';
3
+ import { l as loadCurrentState, S as STEP_ARTIFACTS, r as resolveActiveSlug } from '../shared/luca.B8WW6rRN.mjs';
4
4
  import 'node:fs';
5
5
  import 'node:fs/promises';
6
6
  import 'node:path';
7
- import { p as phasePathFor } from '../shared/luca.C-X2k3jn.mjs';
7
+ import { p as phasePathFor } from '../shared/luca.B7iLEqsQ.mjs';
8
8
  import 'node:crypto';
9
9
  import 'node:module';
10
10
  import 'node:url';
11
11
  import 'node:child_process';
12
12
  import { tmpdir } from 'node:os';
13
13
  import { parse } from 'shell-quote';
14
- import { l as lucaStateClaimOwnerTool } from '../shared/luca.Dfpw0iYf.mjs';
14
+ import { l as lucaStateClaimOwnerTool } from '../shared/luca.nDdWrm1l.mjs';
15
15
  import 'zod';
16
16
 
17
17
  const STAGE_TOOL_MATRIX = {
@@ -256,7 +256,8 @@ const LUCA_NOUN_VERBS = {
256
256
  phase: /* @__PURE__ */ new Set(["current", "advance", "archive"]),
257
257
  roadmap: /* @__PURE__ */ new Set(["read", "create"]),
258
258
  preferences: /* @__PURE__ */ new Set(["read", "write"]),
259
- todo: /* @__PURE__ */ new Set(["add", "list", "update"]),
259
+ todo: /* @__PURE__ */ new Set(["add", "list", "update", "migrate", "set-root"]),
260
+ brain: /* @__PURE__ */ new Set(["set-root", "recall-root"]),
260
261
  "pr-review": /* @__PURE__ */ new Set([
261
262
  "filter-stale",
262
263
  "detect-convergence",
@@ -1,17 +1,17 @@
1
1
  import * as p from '@clack/prompts';
2
2
  import { defineCommand, runMain } from 'citty';
3
3
  import { join } from 'pathe';
4
- import { w as writeProjectSkeleton } from '../shared/luca.BtAqAzIw.mjs';
4
+ import { w as writeProjectSkeleton } from '../shared/luca.WbePbn19.mjs';
5
5
  import { existsSync, statSync, chmodSync } from 'node:fs';
6
6
  import { readFile, writeFile, rename, unlink, mkdir, readdir, copyFile } from 'node:fs/promises';
7
7
  import { homedir } from 'node:os';
8
8
  import { join as join$1, dirname, delimiter } from 'node:path';
9
9
  import { d as defaultClaudeHome, a as defaultAntigravityHome, r as resolveBundledArtifactsForHooks, i as installSkills } from '../shared/luca.41dcdyd6.mjs';
10
- import { d as detectProjectContext, s as suggestVaultName, a as autoCreateVault, w as writeVaultConfig } from '../shared/luca.BG342Rbt.mjs';
10
+ import { d as detectProjectContext, s as suggestVaultName, a as autoCreateVault, w as writeVaultConfig } from '../shared/luca.DR6Ozgej.mjs';
11
11
  import { l as logger } from '../shared/luca.dM-MKlNE.mjs';
12
12
  import { M as MuninndbInstallResultSchema, r as resolvePlatformTarget, g as getLucaHomePaths, a as MUNINNDB_BINARY_NAME, b as getCommonBinaryPaths, c as resolveMuninndbPort, d as checkMuninndbService, e as MuninndbServiceStatusSchema, w as waitForMuninndbHealthy, f as ensureLucaHome, h as checkMuninndbBinary } from '../shared/luca.BfjhRHhj.mjs';
13
13
  import { c as checkPrerequisites, p as promptBunInstall } from '../shared/luca.DTomPq7I.mjs';
14
- import '../shared/luca.fO8NVlpI.mjs';
14
+ import '../shared/luca.Cv3E_Fnt.mjs';
15
15
  import 'zod';
16
16
  import 'node:child_process';
17
17
  import 'node:crypto';
@@ -1,11 +1,11 @@
1
1
  import { existsSync } from 'node:fs';
2
2
  import { readFile } from 'node:fs/promises';
3
3
  import { join } from 'node:path';
4
- import { e as ensureLucaGitignore, L as LUCA_GITIGNORE_ENTRIES } from '../shared/luca.BtAqAzIw.mjs';
4
+ import { e as ensureLucaGitignore, L as LUCA_GITIGNORE_ENTRIES } from '../shared/luca.WbePbn19.mjs';
5
5
  import 'node:os';
6
6
  import 'pathe';
7
7
  import 'node:url';
8
- import '../shared/luca.fO8NVlpI.mjs';
8
+ import '../shared/luca.Cv3E_Fnt.mjs';
9
9
  import 'zod';
10
10
  import 'node:child_process';
11
11
  import 'node:crypto';
@@ -1,6 +1,6 @@
1
1
  import { defineCommand } from 'citty';
2
2
  import 'zod';
3
- import '../shared/luca.fO8NVlpI.mjs';
3
+ import '../shared/luca.Cv3E_Fnt.mjs';
4
4
  import 'node:fs';
5
5
  import 'node:fs/promises';
6
6
  import 'node:path';
@@ -8,16 +8,16 @@ import 'node:crypto';
8
8
  import 'node:module';
9
9
  import 'node:url';
10
10
  import 'node:child_process';
11
- import { e as lucaPhaseCurrentTool, f as lucaPhaseAdvanceTool, g as lucaPhaseArchiveTool } from '../shared/luca.B676-2qC.mjs';
12
- import '../shared/luca.Dfpw0iYf.mjs';
13
- import { r as rejectUnknownFlags, a as runWriteHandler } from '../shared/luca.DIunui0u.mjs';
11
+ import { e as lucaPhaseCurrentTool, f as lucaPhaseAdvanceTool, g as lucaPhaseArchiveTool } from '../shared/luca.DnxKfoo3.mjs';
12
+ import '../shared/luca.nDdWrm1l.mjs';
13
+ import { r as rejectUnknownFlags, a as runWriteHandler } from '../shared/luca.C2ogyBnM.mjs';
14
14
  import 'node:os';
15
- import '../shared/luca.x9dPVAJp.mjs';
16
- import '../shared/luca.IzPccjEn.mjs';
17
- import '../shared/luca.C-X2k3jn.mjs';
18
- import '../shared/luca.BAqmbI4n.mjs';
19
15
  import '../shared/luca.CQ3g1xrD.mjs';
20
- import '../shared/luca.BoUh9O2u.mjs';
16
+ import '../shared/luca.B8WW6rRN.mjs';
17
+ import '../shared/luca.CS6hX6Qp.mjs';
18
+ import '../shared/luca.B7iLEqsQ.mjs';
19
+ import '../shared/luca.BAqmbI4n.mjs';
20
+ import '../shared/luca.c0jSLO19.mjs';
21
21
 
22
22
  const currentCommand = defineCommand({
23
23
  meta: {
@@ -1,6 +1,6 @@
1
1
  import { defineCommand } from 'citty';
2
2
  import 'zod';
3
- import '../shared/luca.fO8NVlpI.mjs';
3
+ import '../shared/luca.Cv3E_Fnt.mjs';
4
4
  import 'node:fs';
5
5
  import 'node:fs/promises';
6
6
  import 'node:path';
@@ -8,16 +8,16 @@ import 'node:crypto';
8
8
  import 'node:module';
9
9
  import 'node:url';
10
10
  import 'node:child_process';
11
- import { h as lucaPlanLintTool } from '../shared/luca.B676-2qC.mjs';
12
- import '../shared/luca.Dfpw0iYf.mjs';
13
- import { r as rejectUnknownFlags, a as runWriteHandler } from '../shared/luca.DIunui0u.mjs';
11
+ import { h as lucaPlanLintTool } from '../shared/luca.DnxKfoo3.mjs';
12
+ import '../shared/luca.nDdWrm1l.mjs';
13
+ import { r as rejectUnknownFlags, a as runWriteHandler } from '../shared/luca.C2ogyBnM.mjs';
14
14
  import 'node:os';
15
- import '../shared/luca.x9dPVAJp.mjs';
16
- import '../shared/luca.IzPccjEn.mjs';
17
- import '../shared/luca.C-X2k3jn.mjs';
18
- import '../shared/luca.BAqmbI4n.mjs';
19
15
  import '../shared/luca.CQ3g1xrD.mjs';
20
- import '../shared/luca.BoUh9O2u.mjs';
16
+ import '../shared/luca.B8WW6rRN.mjs';
17
+ import '../shared/luca.CS6hX6Qp.mjs';
18
+ import '../shared/luca.B7iLEqsQ.mjs';
19
+ import '../shared/luca.BAqmbI4n.mjs';
20
+ import '../shared/luca.c0jSLO19.mjs';
21
21
 
22
22
  const lintCommand = defineCommand({
23
23
  meta: {
@@ -1,6 +1,6 @@
1
1
  import { defineCommand } from 'citty';
2
2
  import 'zod';
3
- import '../shared/luca.fO8NVlpI.mjs';
3
+ import '../shared/luca.Cv3E_Fnt.mjs';
4
4
  import 'node:fs';
5
5
  import 'node:fs/promises';
6
6
  import 'node:path';
@@ -8,16 +8,16 @@ import 'node:crypto';
8
8
  import 'node:module';
9
9
  import 'node:url';
10
10
  import 'node:child_process';
11
- import { q as lucaPrReviewDetectConvergenceTool, s as lucaPrReviewFilterStaleTool, t as lucaPrReviewRegressionCheckTool } from '../shared/luca.B676-2qC.mjs';
12
- import '../shared/luca.Dfpw0iYf.mjs';
13
- import { r as rejectUnknownFlags, b as readJsonPayload, a as runWriteHandler } from '../shared/luca.DIunui0u.mjs';
11
+ import { v as lucaPrReviewDetectConvergenceTool, w as lucaPrReviewFilterStaleTool, x as lucaPrReviewRegressionCheckTool } from '../shared/luca.DnxKfoo3.mjs';
12
+ import '../shared/luca.nDdWrm1l.mjs';
13
+ import { r as rejectUnknownFlags, b as readJsonPayload, a as runWriteHandler } from '../shared/luca.C2ogyBnM.mjs';
14
14
  import 'node:os';
15
- import '../shared/luca.x9dPVAJp.mjs';
16
- import '../shared/luca.IzPccjEn.mjs';
17
- import '../shared/luca.C-X2k3jn.mjs';
18
- import '../shared/luca.BAqmbI4n.mjs';
19
15
  import '../shared/luca.CQ3g1xrD.mjs';
20
- import '../shared/luca.BoUh9O2u.mjs';
16
+ import '../shared/luca.B8WW6rRN.mjs';
17
+ import '../shared/luca.CS6hX6Qp.mjs';
18
+ import '../shared/luca.B7iLEqsQ.mjs';
19
+ import '../shared/luca.BAqmbI4n.mjs';
20
+ import '../shared/luca.c0jSLO19.mjs';
21
21
 
22
22
  const filterStaleCommand = defineCommand({
23
23
  meta: {
@@ -1,6 +1,6 @@
1
1
  import { defineCommand } from 'citty';
2
2
  import 'zod';
3
- import '../shared/luca.fO8NVlpI.mjs';
3
+ import '../shared/luca.Cv3E_Fnt.mjs';
4
4
  import 'node:fs';
5
5
  import 'node:fs/promises';
6
6
  import 'node:path';
@@ -8,16 +8,16 @@ import 'node:crypto';
8
8
  import 'node:module';
9
9
  import 'node:url';
10
10
  import 'node:child_process';
11
- import { k as lucaPreferencesReadTool, m as lucaPreferencesWriteTool } from '../shared/luca.B676-2qC.mjs';
12
- import '../shared/luca.Dfpw0iYf.mjs';
13
- import { r as rejectUnknownFlags, b as readJsonPayload, a as runWriteHandler } from '../shared/luca.DIunui0u.mjs';
11
+ import { k as lucaPreferencesReadTool, m as lucaPreferencesWriteTool } from '../shared/luca.DnxKfoo3.mjs';
12
+ import '../shared/luca.nDdWrm1l.mjs';
13
+ import { r as rejectUnknownFlags, b as readJsonPayload, a as runWriteHandler } from '../shared/luca.C2ogyBnM.mjs';
14
14
  import 'node:os';
15
- import '../shared/luca.x9dPVAJp.mjs';
16
- import '../shared/luca.IzPccjEn.mjs';
17
- import '../shared/luca.C-X2k3jn.mjs';
18
- import '../shared/luca.BAqmbI4n.mjs';
19
15
  import '../shared/luca.CQ3g1xrD.mjs';
20
- import '../shared/luca.BoUh9O2u.mjs';
16
+ import '../shared/luca.B8WW6rRN.mjs';
17
+ import '../shared/luca.CS6hX6Qp.mjs';
18
+ import '../shared/luca.B7iLEqsQ.mjs';
19
+ import '../shared/luca.BAqmbI4n.mjs';
20
+ import '../shared/luca.c0jSLO19.mjs';
21
21
 
22
22
  const readCommand = defineCommand({
23
23
  meta: {
@@ -2,7 +2,7 @@ import { defineCommand } from 'citty';
2
2
  import { existsSync } from 'node:fs';
3
3
  import { readFile, rm } from 'node:fs/promises';
4
4
  import { join } from 'node:path';
5
- import { l as lucaStateSchema } from '../shared/luca.fO8NVlpI.mjs';
5
+ import { l as lucaStateSchema } from '../shared/luca.Cv3E_Fnt.mjs';
6
6
  import 'node:crypto';
7
7
  import 'node:module';
8
8
  import 'node:url';
@@ -1,6 +1,6 @@
1
1
  import { defineCommand } from 'citty';
2
2
  import 'zod';
3
- import '../shared/luca.fO8NVlpI.mjs';
3
+ import '../shared/luca.Cv3E_Fnt.mjs';
4
4
  import 'node:fs';
5
5
  import 'node:fs/promises';
6
6
  import 'node:path';
@@ -8,16 +8,16 @@ import 'node:crypto';
8
8
  import 'node:module';
9
9
  import 'node:url';
10
10
  import 'node:child_process';
11
- import { u as lucaRepoCleanupApplyTool } from '../shared/luca.B676-2qC.mjs';
12
- import '../shared/luca.Dfpw0iYf.mjs';
13
- import { r as rejectUnknownFlags, b as readJsonPayload, a as runWriteHandler } from '../shared/luca.DIunui0u.mjs';
11
+ import { y as lucaRepoCleanupApplyTool } from '../shared/luca.DnxKfoo3.mjs';
12
+ import '../shared/luca.nDdWrm1l.mjs';
13
+ import { r as rejectUnknownFlags, b as readJsonPayload, a as runWriteHandler } from '../shared/luca.C2ogyBnM.mjs';
14
14
  import 'node:os';
15
- import '../shared/luca.x9dPVAJp.mjs';
16
- import '../shared/luca.IzPccjEn.mjs';
17
- import '../shared/luca.C-X2k3jn.mjs';
18
- import '../shared/luca.BAqmbI4n.mjs';
19
15
  import '../shared/luca.CQ3g1xrD.mjs';
20
- import '../shared/luca.BoUh9O2u.mjs';
16
+ import '../shared/luca.B8WW6rRN.mjs';
17
+ import '../shared/luca.CS6hX6Qp.mjs';
18
+ import '../shared/luca.B7iLEqsQ.mjs';
19
+ import '../shared/luca.BAqmbI4n.mjs';
20
+ import '../shared/luca.c0jSLO19.mjs';
21
21
 
22
22
  const cleanupApplyCommand = defineCommand({
23
23
  meta: {
@@ -1,5 +1,5 @@
1
1
  import { defineCommand } from 'citty';
2
- import '../shared/luca.fO8NVlpI.mjs';
2
+ import '../shared/luca.Cv3E_Fnt.mjs';
3
3
  import 'node:fs';
4
4
  import 'node:fs/promises';
5
5
  import 'node:path';
@@ -7,14 +7,14 @@ import 'node:crypto';
7
7
  import 'node:module';
8
8
  import 'node:url';
9
9
  import 'node:child_process';
10
- import { a as analyzeRun, g as gatherRunArtifacts, r as renderPostmortemMarkdown, c as computePostmortemExitCode } from '../shared/luca.V1J718kQ.mjs';
11
- import { l as listRuns } from '../shared/luca.IzPccjEn.mjs';
10
+ import { a as analyzeRun, g as gatherRunArtifacts, r as renderPostmortemMarkdown, c as computePostmortemExitCode } from '../shared/luca.DQrYxvNf.mjs';
11
+ import { l as listRuns } from '../shared/luca.CS6hX6Qp.mjs';
12
12
  import { l as logger } from '../shared/luca.dM-MKlNE.mjs';
13
13
  import 'zod';
14
14
  import 'node:os';
15
- import '../shared/luca.BoUh9O2u.mjs';
16
- import '../shared/luca.C-X2k3jn.mjs';
17
- import '../shared/luca.DofrbCcU.mjs';
15
+ import '../shared/luca.c0jSLO19.mjs';
16
+ import '../shared/luca.B7iLEqsQ.mjs';
17
+ import '../shared/luca.BF5qEvdD.mjs';
18
18
  import 'pathe';
19
19
  import 'consola';
20
20
 
@@ -1,6 +1,6 @@
1
1
  import { defineCommand } from 'citty';
2
2
  import 'zod';
3
- import '../shared/luca.fO8NVlpI.mjs';
3
+ import '../shared/luca.Cv3E_Fnt.mjs';
4
4
  import 'node:fs';
5
5
  import 'node:fs/promises';
6
6
  import 'node:path';
@@ -8,16 +8,16 @@ import 'node:crypto';
8
8
  import 'node:module';
9
9
  import 'node:url';
10
10
  import 'node:child_process';
11
- import { i as lucaRoadmapReadTool, j as lucaRoadmapCreateTool } from '../shared/luca.B676-2qC.mjs';
12
- import '../shared/luca.Dfpw0iYf.mjs';
13
- import { r as rejectUnknownFlags, b as readJsonPayload, a as runWriteHandler } from '../shared/luca.DIunui0u.mjs';
11
+ import { i as lucaRoadmapReadTool, j as lucaRoadmapCreateTool } from '../shared/luca.DnxKfoo3.mjs';
12
+ import '../shared/luca.nDdWrm1l.mjs';
13
+ import { r as rejectUnknownFlags, b as readJsonPayload, a as runWriteHandler } from '../shared/luca.C2ogyBnM.mjs';
14
14
  import 'node:os';
15
- import '../shared/luca.x9dPVAJp.mjs';
16
- import '../shared/luca.IzPccjEn.mjs';
17
- import '../shared/luca.C-X2k3jn.mjs';
18
- import '../shared/luca.BAqmbI4n.mjs';
19
15
  import '../shared/luca.CQ3g1xrD.mjs';
20
- import '../shared/luca.BoUh9O2u.mjs';
16
+ import '../shared/luca.B8WW6rRN.mjs';
17
+ import '../shared/luca.CS6hX6Qp.mjs';
18
+ import '../shared/luca.B7iLEqsQ.mjs';
19
+ import '../shared/luca.BAqmbI4n.mjs';
20
+ import '../shared/luca.c0jSLO19.mjs';
21
21
 
22
22
  const readCommand = defineCommand({
23
23
  meta: {
@@ -1,6 +1,6 @@
1
1
  import { defineCommand } from 'citty';
2
2
  import { join as join$1 } from 'pathe';
3
- import '../shared/luca.fO8NVlpI.mjs';
3
+ import { s as stringifyError } from '../shared/luca.Cv3E_Fnt.mjs';
4
4
  import { existsSync, readdirSync, statSync, readFileSync } from 'node:fs';
5
5
  import 'node:fs/promises';
6
6
  import { isAbsolute, resolve, join, extname } from 'node:path';
@@ -8,14 +8,14 @@ import 'node:crypto';
8
8
  import { createRequire } from 'node:module';
9
9
  import { pathToFileURL } from 'node:url';
10
10
  import 'node:child_process';
11
- import { a as analyzeRun, g as gatherRunArtifacts } from '../shared/luca.V1J718kQ.mjs';
12
- import { l as listRuns } from '../shared/luca.IzPccjEn.mjs';
11
+ import { a as analyzeRun, g as gatherRunArtifacts } from '../shared/luca.DQrYxvNf.mjs';
12
+ import { l as listRuns } from '../shared/luca.CS6hX6Qp.mjs';
13
13
  import { l as logger } from '../shared/luca.dM-MKlNE.mjs';
14
14
  import 'zod';
15
15
  import 'node:os';
16
- import '../shared/luca.BoUh9O2u.mjs';
17
- import '../shared/luca.C-X2k3jn.mjs';
18
- import '../shared/luca.DofrbCcU.mjs';
16
+ import '../shared/luca.c0jSLO19.mjs';
17
+ import '../shared/luca.B7iLEqsQ.mjs';
18
+ import '../shared/luca.BF5qEvdD.mjs';
19
19
  import 'consola';
20
20
 
21
21
  let tsModuleCache = void 0;
@@ -105,7 +105,7 @@ async function loadRules(opts) {
105
105
  } catch (err) {
106
106
  loadErrors.push({
107
107
  file,
108
- message: err instanceof Error ? err.message : String(err)
108
+ message: stringifyError(err)
109
109
  });
110
110
  }
111
111
  }
@@ -233,7 +233,7 @@ function runRules(opts) {
233
233
  executionErrors.push({
234
234
  ruleId: rule.id,
235
235
  path: "",
236
- message: `scope resolution failed: ${err instanceof Error ? err.message : String(err)}`
236
+ message: `scope resolution failed: ${stringifyError(err)}`
237
237
  });
238
238
  timings[rule.id] = performance.now() - start;
239
239
  continue;
@@ -265,7 +265,7 @@ function runRules(opts) {
265
265
  executionErrors.push({
266
266
  ruleId: rule.id,
267
267
  path: relPath,
268
- message: err instanceof Error ? err.message : String(err)
268
+ message: stringifyError(err)
269
269
  });
270
270
  }
271
271
  }
@@ -1,6 +1,6 @@
1
1
  import { defineCommand } from 'citty';
2
2
  import 'zod';
3
- import '../shared/luca.fO8NVlpI.mjs';
3
+ import '../shared/luca.Cv3E_Fnt.mjs';
4
4
  import 'node:fs';
5
5
  import 'node:fs/promises';
6
6
  import 'node:path';
@@ -8,16 +8,16 @@ import 'node:crypto';
8
8
  import 'node:module';
9
9
  import 'node:url';
10
10
  import 'node:child_process';
11
- import { b as lucaStateSetCurrentPhaseTool, c as lucaStateAdvanceTool, d as lucaStateReadTool } from '../shared/luca.B676-2qC.mjs';
12
- import { l as lucaStateClaimOwnerTool } from '../shared/luca.Dfpw0iYf.mjs';
13
- import { r as rejectUnknownFlags, a as runWriteHandler } from '../shared/luca.DIunui0u.mjs';
11
+ import { b as lucaStateSetCurrentPhaseTool, c as lucaStateAdvanceTool, d as lucaStateReadTool } from '../shared/luca.DnxKfoo3.mjs';
12
+ import { l as lucaStateClaimOwnerTool } from '../shared/luca.nDdWrm1l.mjs';
13
+ import { r as rejectUnknownFlags, a as runWriteHandler } from '../shared/luca.C2ogyBnM.mjs';
14
14
  import 'node:os';
15
- import '../shared/luca.x9dPVAJp.mjs';
16
- import '../shared/luca.IzPccjEn.mjs';
17
- import '../shared/luca.C-X2k3jn.mjs';
18
- import '../shared/luca.BAqmbI4n.mjs';
19
15
  import '../shared/luca.CQ3g1xrD.mjs';
20
- import '../shared/luca.BoUh9O2u.mjs';
16
+ import '../shared/luca.B8WW6rRN.mjs';
17
+ import '../shared/luca.CS6hX6Qp.mjs';
18
+ import '../shared/luca.B7iLEqsQ.mjs';
19
+ import '../shared/luca.BAqmbI4n.mjs';
20
+ import '../shared/luca.c0jSLO19.mjs';
21
21
 
22
22
  const readCommand = defineCommand({
23
23
  meta: {
@@ -1,7 +1,7 @@
1
1
  import { existsSync, lstatSync } from 'node:fs';
2
2
  import { rm, writeFile, readdir, rmdir } from 'node:fs/promises';
3
3
  import { join } from 'node:path';
4
- import '../shared/luca.fO8NVlpI.mjs';
4
+ import '../shared/luca.Cv3E_Fnt.mjs';
5
5
  import 'node:crypto';
6
6
  import 'node:module';
7
7
  import 'node:url';