#!/usr/bin/env node
import {a}from'./chunk-LKAT7IAK.js';import'./chunk-5TAVYPOV.js';import {Command}from'commander';import y from'chalk';import {createRequire}from'module';function U(t){let o=a.component("#util-namespace"),a$1=t.command("util").description("Utility commands \u2014 beacon, constellation, echo, sync-llms, thread, probe");a$1.command("beacon [path]").description("Generate .paradigm/beacon.md - quick-start orientation for AI agents").option("-r, --refresh","Regenerate even if beacon exists").option("-o, --output <path>","Custom output path").option("--json","Output as JSON (for AI agent queries)").option("-q, --quiet","Suppress output").action(async(n,s)=>{o.debug("util beacon invoked",{path:n});let{beaconCommand:r}=await import('./beacon-5QVYV5DF.js');await r(n,s);}),a$1.command("constellation [path]").alias("const").description("Generate .paradigm/constellation.json - symbol relationship graph for AI agents").option("-f, --format <format>","Output format: json or yaml","json").option("-o, --output <path>","Custom output path").option("-q, --quiet","Suppress output").action(async(n,s)=>{o.debug("util constellation invoked",{path:n});let{constellationCommand:r}=await import('./constellation-CG7C4WFE.js');await r(n,s);});let e=a$1.command("echo").description("Error-to-symbol mapping - find related symbols for error codes");e.command("lookup <errorCode> [path]").alias("l").description("Look up an error code").option("--json","Output as JSON (for AI agent queries)").action(async(n,s,r)=>{o.debug("util echo lookup invoked",{errorCode:n});let{echoCommand:h}=await import('./echo-UPTQUEDU.js');await h(n,s,r);}),e.command("init [path]").description("Create .paradigm/echoes.yaml template").option("-q, --quiet","Suppress output").action(async(n,s)=>{o.debug("util echo init invoked");let{echoInitCommand:r}=await import('./echo-UPTQUEDU.js');await r(n,s);}),e.command("list [path]").alias("ls").description("List all error mappings").action(async n=>{o.debug("util echo list invoked");let{echoListCommand:s}=await import('./echo-UPTQUEDU.js');await s(n);}),e.argument("[errorCode]","Error code to look up").option("--json","Output as JSON (for AI agent queries)").action(async(n,s)=>{if(n){let{echoCommand:r}=await import('./echo-UPTQUEDU.js');await r(n,void 0,s);}else {let{echoListCommand:r}=await import('./echo-UPTQUEDU.js');await r();}}),a$1.command("sync-llms").description("Generate llms.txt \u2014 LLM-readable project summary").option("-o, --output <path>","Output path (default: ./llms.txt)").action(async n=>{o.debug("util sync-llms invoked");let{syncLlmsCommand:s}=await import('./sync-llms-7CAI74QL.js');await s(n);});let u=a$1.command("thread").description("Session continuity - pass context between AI agent sessions");u.command("show [path]").alias("s").description("Show current thread").option("--json","Output as JSON (for AI agent queries)").action(async(n,s)=>{o.debug("util thread show invoked");let{threadShowCommand:r}=await import('./thread-HFXK65D4.js');await r(n,s);}),u.command("save <message> [path]").description("Save activity to the thread trail").option("-q, --quiet","Suppress output").action(async(n,s,r)=>{o.debug("util thread save invoked",{message:n});let{threadSaveCommand:h}=await import('./thread-HFXK65D4.js');await h(n,s,r);}),u.command("todo <task> [path]").description("Add a loose end (unfinished task)").option("-q, --quiet","Suppress output").action(async(n,s,r)=>{o.debug("util thread todo invoked",{task:n});let{threadTodoCommand:h}=await import('./thread-HFXK65D4.js');await h(n,s,r);}),u.command("note <note> [path]").description("Add a breadcrumb (note for next agent)").option("-q, --quiet","Suppress output").action(async(n,s,r)=>{o.debug("util thread note invoked",{note:n});let{threadNoteCommand:h}=await import('./thread-HFXK65D4.js');await h(n,s,r);}),u.command("clear [path]").description("Clear the thread").option("-q, --quiet","Suppress output").action(async(n,s)=>{o.debug("util thread clear invoked");let{threadClearCommand:r}=await import('./thread-HFXK65D4.js');await r(n,s);}),u.option("--json","Output as JSON (for AI agent queries)").action(async n=>{let{threadShowCommand:s}=await import('./thread-HFXK65D4.js');await s(void 0,n);}),a$1.command("probe").description("Probe-related commands").command("index [path]").description("Generate probe index (alias for `paradigm index`)").option("-o, --output <path>","Output path for probe-index.json").option("-q, --quiet","Suppress output").action(async(n,s)=>{o.debug("util probe index invoked",{path:n});let{indexCommand:r}=await import('./probe-B22G2JKF.js');await r(n,s);});}var X=createRequire(import.meta.url),{version:G}=X("../package.json"),i=new Command,Y=`
${y.magenta("\u2554\u2550\u2557")}${y.cyan("\u250C\u2500\u2510\u252C\u2500\u2510\u250C\u2500\u2510\u250C\u252C\u2510\u252C \u250C\u2500\u2510\u250C\u252C\u2510")}
${y.magenta("\u2560\u2550\u255D")}${y.cyan("\u251C\u2500\u2524\u251C\u252C\u2518\u251C\u2500\u2524 \u2502\u2502\u2502 \u251C\u2500\u2510\u2502\u2502\u2502")}
${y.magenta("\u2569  ")}${y.cyan("\u2534 \u2534\u2534\u2514\u2500\u2534 \u2534\u2500\u2534\u2518\u2534 \u2514\u2500\u2518\u2534 \u2534")} ${y.gray(`v${G}`)}
`;i.name("paradigm").description("Unified developer tools ecosystem").version(G).addHelpText("before",Y);i.command("init").description("Initialize Paradigm in the current project").option("-f, --force","Overwrite existing files").option("--name <name>","Project name").option("--ide <ide>","Target IDE: cursor, copilot, windsurf, claude").option("--stack <stack>","Stack preset (e.g., nextjs, fastapi, swift-ios). Auto-detected if omitted.").option("--migrate","Output migration prompt for existing IDE files").option("--quick","Non-interactive mode with smart defaults").option("--dry-run","Show what would be created without creating").action(async t=>{let{initCommand:o}=await import('./init-HIBRSVUB.js');await o(t);});i.command("shift").description("Full project setup in one command (init + team init + scan + sync all IDEs + doctor)").option("-f, --force","Reinitialize even if already setup").option("-q, --quick","Skip slow operations (scan)").option("--verify","Run health checks after setup").option("--ide <ide>","Target specific IDE instead of all").option("--configure-models","Force model configuration prompts for team agents").option("--stack <stack>","Stack preset (e.g., nextjs, fastapi, swift-ios). Auto-detected if omitted.").option("--workspace <name>","Create or join a multi-project workspace with this name (creates ../.paradigm-workspace)").option("--workspace-path <path>","Custom workspace file location (default: ../.paradigm-workspace)").action(async t=>{let{shiftCommand:o}=await import('./shift-CZMQWZWP.js');await o(t);});i.command("presets").description("List available stack presets for paradigm init/shift").option("-d, --discipline <discipline>","Filter by discipline (e.g., fullstack, api, mobile)").action(async t=>{let{listStackPresets:o}=await import('./discipline-H7LDI6NT.js'),a=(await import('chalk')).default,e=o(t.discipline);if(e.length===0){console.log(a.yellow(`
  No presets found${t.discipline?` for discipline: ${t.discipline}`:""}
`));return}console.log(a.blue(`
  Available Stack Presets
`)),console.log(a.gray(`  Use with: paradigm init --stack <id> or paradigm shift --stack <id>
`));let u=new Map;for(let k of e){let n=u.get(k.discipline)||[];n.push(k),u.set(k.discipline,n);}for(let[k,n]of u){console.log(a.white(`  ${k}`));for(let s of n)console.log(a.cyan(`    ${s.id.padEnd(20)}`)+a.gray(s.name));console.log("");}console.log(a.gray(`  ${e.length} presets available. Auto-detected when --stack is omitted.
`));});var Z=i.command("event").description("Ambient event stream commands");Z.command("emit").description("Emit an event to the ambient event stream (fast, for hook integration)").requiredOption("--type <type>","Event type (e.g., file-modified, compliance-violation)").requiredOption("--source <source>","Event source (e.g., post-write-hook, stop-hook)").option("--path <path>","File path (if applicable)").option("--symbols <symbols...>","Paradigm symbols referenced").option("--context <context>","Brief context snippet").option("--severity <severity>","Severity: info, warning, error, critical").action(async t=>{let{eventEmitCommand:o}=await import('./event-Y3VXC2RV.js');await o(t);});i.command("setup [path]").description("Interactive setup wizard for Paradigm").option("-y, --yes","Accept all defaults (non-interactive)").option("-f, --force","Overwrite existing .paradigm config").action(async(t,o)=>{let{setupCommand:a}=await import('./setup-3F5IK7MO.js');await a(t,o);});i.command("status").alias("st").description("Show project status and symbol counts").action(async()=>{let{statusCommand:t}=await import('./status-77M3SDIF.js');await t();});var z=i.command("purpose").description("Purpose-related commands");z.command("remember [path]").description("Aggregate and display purpose context").action(async(t=".")=>{let{purposeRememberCommand:o}=await import('./remember-MJRNTXYS.js');await o(t);});z.command("validate [path]").description("Validate purpose files").action(async(t=".")=>{let{purposeValidateCommand:o}=await import('./validate-LSCDOLBO.js');await o(t);});var j=i.command("portal").description("Portal-related commands");j.command("validate [path]").description("Validate portal.yaml configuration").action(async(t="./portal.yaml")=>{let{gateValidateCommand:o}=await import('./validate-VZXTJHGO.js');await o(t);});j.command("check").description("Check portal gate implementation compliance (declared vs used)").option("--json","Output as JSON").action(async t=>{let{portalCheckCommand:o}=await import('./portal-check-Z3OCQEQR.js');await o(t);});j.command("test [path]").description("Test portals and generate test files").option("--generate","Generate test files from portal.yaml").option("--portal <portalId>","Test specific portal").option("--component","Validate component access").option("--framework <framework>","Test framework (jest, vitest, mocha)","jest").option("--output <dir>","Output directory for generated tests","tests/portals").action(async(t,o)=>{let{gateTestCommand:a}=await import('./test-BQJMS4Y2.js');await a(t,o);});j.command("watch [path]").alias("w").description("Launch the Portal Viewer - real-time visualization dashboard").option("-p, --port <port>","WebSocket port for SDK connections","42196").option("-u, --ui-port <port>","HTTP port for UI","42195").option("-c, --config <path>","Path to portal.yaml config").option("--no-open","Do not auto-open browser").action(async(t,o)=>{let{portalWatchCommand:a}=await import('./watch-PZCCUP6K.js');await a(t,o);});j.command("report <session>").description("Generate a report from a session file").option("-f, --format <format>","Output format: json, markdown, slack, discord","markdown").option("-o, --output <path>","Output file path").action(async(t,o)=>{let{portalReportCommand:a}=await import('./watch-PZCCUP6K.js');await a(t,o);});j.command("export [path]").description("Export portal configuration in json, csv, or markdown format").option("-f, --format <format>","Output format: json, csv, markdown","json").option("-o, --output <path>","Output file path").option("-c, --config <path>","Path to portal.yaml").action(async(t,o)=>{let{portalExportCommand:a}=await import('./watch-PZCCUP6K.js');await a(t,o);});var V=i.command("premise").description("Premise-related commands");V.command("aggregate [path]").description("Aggregate all sources into symbol index").action(async(t=".")=>{let{premiseAggregateCommand:o}=await import('./aggregate-W66DM3GA.js');await o(t);});V.command("snapshot <name>").description("Create a timeline snapshot").option("-d, --description <desc>","Snapshot description").action(async(t,o)=>{let{premiseSnapshotCommand:a}=await import('./snapshot-L2G56RPL.js');await a(t,o.description);});i.command("sync [ide]").description("Generate IDE instruction files from .paradigm/ config").option("--all","Sync all supported IDEs").option("-f, --force","Overwrite existing files").option("--mcp","Generate MCP configuration (default: true)").option("--no-mcp","Skip MCP configuration generation").option("--nested","Generate nested CLAUDE.md files for directories with .purpose").action(async(t,o)=>{let{syncCommand:a}=await import('./sync-DLUBV5HQ.js');await a(t,o);});i.command("sync-llms").description("Generate llms.txt \u2014 LLM-readable project summary").option("-o, --output <path>","Output path (default: ./llms.txt)").action(async t=>{process.stderr.write("\u26A0 `paradigm sync-llms` has moved. Use `paradigm util sync-llms` instead.\n");let{syncLlmsCommand:o}=await import('./sync-llms-7CAI74QL.js');await o(t);});i.command("cursorrules [path]").description("[DEPRECATED] Use `paradigm sync cursor` instead").option("-a, --append","Append to existing .cursorrules").option("-f, --force","Overwrite existing .cursorrules").option("-p, --preview","Preview output without writing").option("--init","Create default .paradigm config if missing").option("--with-scan","Include probe protocol section").action(async(t,o)=>{console.log("\x1B[33m\u26A0\uFE0F  `paradigm cursorrules` is deprecated. Use `paradigm sync cursor` instead.\x1B[0m\n");let{cursorrrulesCommand:a}=await import('./cursorrules-U5O4G5T4.js');await a(t,o);});i.command("index [path]").description("Generate probe index for visual discovery").option("-o, --output <path>","Output path for probe-index.json").option("-q, --quiet","Suppress output").action(async(t,o)=>{let{indexCommand:a}=await import('./probe-B22G2JKF.js');await a(t,o);});var _=i.command("probe").description("Probe-related commands");_.command("index [path]").description("Generate probe index (alias for `paradigm index`)").option("-o, --output <path>","Output path for probe-index.json").option("-q, --quiet","Suppress output").action(async(t,o)=>{process.stderr.write("\u26A0 `paradigm probe` has moved. Use `paradigm util probe` instead.\n");let{indexCommand:a}=await import('./probe-B22G2JKF.js');await a(t,o);});i.command("migrate").description("Detect and apply migrations to bring project up to date").option("--dry-run","Preview changes without applying").option("--apply","Apply all auto migrations without prompting").option("-f, --force","Re-run previously applied migrations").option("--only <ids...>","Run specific migrations by ID").option("--category <cat>","Run migrations in a category (directory, config, template, hook)").option("--no-sync","Skip template sync").option("--list","List all migrations and their status").option("-v, --verbose","Show detailed output").action(async t=>{let{migrateCommand:o}=await import('./migrate-IBDE7VK4.js');await o(t);});i.command("upgrade [path]").description("(Deprecated) Upgrade project with new Paradigm features \u2014 use `paradigm migrate`").option("--features <features...>","Features to upgrade (probe, logger)").option("--all","Apply all available upgrades").option("--from-horizon","Migrate from Horizon to Paradigm").option("--dry-run","Show what would be upgraded without making changes").option("-f, --force","Force re-upgrade even if already configured").action(async(t,o)=>{let{upgradeCommand:a}=await import('./upgrade-GX56QE3C.js');await a(t,o);});i.command("lint [path]").description("Validate .purpose files for schema errors").option("-f, --fix","Auto-fix issues where possible").option("-s, --strict","Fail on warnings (not just errors)").option("-q, --quiet","Suppress output except errors").option("--json","Output as JSON").option("--auto-populate","Scan for undocumented source dirs and suggest .purpose entries (use with --fix to write)").action(async(t,o)=>{let{lintCommand:a}=await import('./lint-IGKE6UPS.js');await a(t,o);});i.command("cost [path]").description("Analyze token costs for AI context").option("-d, --detailed","Show detailed breakdown by file").option("--json","Output as JSON").action(async(t,o)=>{let{costCommand:a}=await import('./cost-IDNVMAEV.js');await a(t,o);});i.command("explain-files").alias("files").description("Explain all Paradigm config and generated files").action(async()=>{let{explainFilesCommand:t}=await import('./explain-files-3GPZUETV.js');await t();});var H=i.command("scan").description("Visual discovery and auto-generation commands");H.command("auto [path]").description("Auto-generate .purpose files from code analysis").option("-n, --dry-run","Show what would be generated without writing").option("-f, --force","Overwrite existing .purpose files").option("--json","Output as JSON").option("--init","Full project initialization: generate .purpose files + portal.yaml").action(async(t,o)=>{let{autoScanCommand:a}=await import('./auto-RHJXOZFL.js');await a(t,o);});H.action(()=>{console.log(`
Usage: paradigm scan <command>
`),console.log("Commands:"),console.log("  auto [path]  Auto-generate .purpose files from code analysis"),console.log("\nRun `paradigm scan auto --help` for options.\n");});var E=i.command("flow").description("Flow management commands");E.command("diagram <flowId>").description("Generate Mermaid diagram for a flow").option("-o, --output <path>","Output file path").action(async(t,o)=>{let{flowDiagramCommand:a}=await import('./flow-POQP27WA.js');await a(t,o);});E.action(()=>{E.outputHelp();});var m=i.command("team").description("Multi-agent orchestration commands");m.command("init [path]").description("Initialize team configuration with default agents").option("-f, --force","Overwrite existing configuration").option("--configure-models","Force model configuration prompts").option("--no-configure-models","Skip model configuration").option("--json","Output as JSON").action(async(t,o)=>{let{teamInitCommand:a}=await import('./team-NSP6PMPS.js');await a(t,{...o,configureModels:o.configureModels,noConfigureModels:o.configureModels===false});});m.command("status [path]").description("Show current team status").option("--running","Show only running orchestrations").option("--id <id>","Show specific orchestration").option("--json","Output as JSON").action(async(t,o)=>{let{teamStatusCommand:a}=await import('./team-NSP6PMPS.js');await a(t,o);});m.command("handoff [path]").description("Hand off current task to another agent").requiredOption("-t, --to <agent>","Target agent name").option("-s, --summary <text>","Summary of what was done").option("--json","Output as JSON").action(async(t,o)=>{let{teamHandoffCommand:a}=await import('./team-NSP6PMPS.js');await a(t,o);});m.command("accept [handoff-id] [path]").description("Accept a pending handoff").option("-n, --note <text>","Acceptance note").option("--json","Output as JSON").action(async(t,o,a)=>{let{teamAcceptCommand:e}=await import('./team-NSP6PMPS.js');await e(t,o,a);});m.command("check [path]").description("Check for conflicts and team health issues").option("--json","Output as JSON").action(async(t,o)=>{let{teamCheckCommand:a}=await import('./team-NSP6PMPS.js');await a(t,o);});m.command("history [path]").description("Show full activity log").option("-l, --limit <number>","Number of entries to show","50").option("--json","Output as JSON").action(async(t,o)=>{let{teamHistoryCommand:a}=await import('./team-NSP6PMPS.js');await a(t,{...o,limit:parseInt(o.limit)});});m.command("reset [path]").description("Reset team state for fresh start").option("-f, --force","Force reset even with pending work").option("--json","Output as JSON").action(async(t,o)=>{let{teamResetCommand:a}=await import('./team-NSP6PMPS.js');await a(t,o);});m.command("spawn <agent> [path]").description("Spawn an AI agent to work on a task").requiredOption("-t, --task <task>","Task for the agent to perform").option("-m, --model <model>","Model to use: opus, sonnet, haiku").option("-p, --provider <provider>","Provider: auto, claude, claude-code, claude-cli, manual").option("--budget <budget>",'Budget limits (e.g., "tokens=100000,cost=2")').option("--timeout <ms>","Timeout in milliseconds").option("--checkpoint","Pause for approval before writes/deletes").option("-q, --quiet","Suppress output").option("--json","Output as JSON").action(async(t,o,a)=>{let{teamSpawnCommand:e}=await import('./spawn-M5BAV252.js');await e(t,o,a);});m.command("orchestrate <task> [path]").description("Orchestrate a multi-agent task").option("--solo","Run in solo mode (single Claude)").option("--faceted","Run in faceted mode (multi-agent, default)").option("--compare","Run both modes and compare results").option("--background","Run in background mode (returns immediately)").option("--notify <methods>","Notification methods: bell,desktop,file,webhook (default: bell)").option("-m, --model <model>","Orchestrator model: opus, sonnet, haiku").option("-p, --provider <provider>","Provider: auto, claude, claude-code, claude-cli, manual").option("--budget <budget>",'Budget limits (e.g., "tokens=500000,cost=5")').option("--checkpoint","Pause for approval between agents").option("--live","Stream agent output live").option("--pm","Enable PM governance (compliance checks before/after)").option("-q, --quiet","Suppress output").option("--json","Output as JSON").action(async(t,o,a)=>{let{teamOrchestrateCommand:e}=await import('./orchestrate-RCAMBOIB.js');await e(t,o,a);});m.command("diff <orchestration-id> [path]").description("Show diff of changes from a completed orchestration").option("--full","Show full file contents").option("--json","Output as JSON").action(async(t,o,a)=>{let{teamDiffCommand:e}=await import('./diff-JVEYCXUC.js');await e(t,o,a);});m.command("accept-orch <orchestration-id> [path]").description("Accept orchestration changes").option("-n, --note <text>","Acceptance note").option("--json","Output as JSON").action(async(t,o,a)=>{let{teamAcceptOrchestrationCommand:e}=await import('./accept-orchestration-SBZVK3H4.js');await e(t,o,a);});m.command("reject-orch <orchestration-id> [path]").description("Reject orchestration changes").option("-r, --reason <text>","Rejection reason").option("--cleanup","Delete created files").option("--json","Output as JSON").action(async(t,o,a)=>{let{teamRejectOrchestrationCommand:e}=await import('./accept-orchestration-SBZVK3H4.js');await e(t,o,a);});m.command("cost [path]").description("Show cost summary for orchestrations").option("--from <date>","From date (ISO format)").option("--to <date>","To date (ISO format)").option("--days <n>","Last N days").option("-d, --detailed","Show detailed breakdown").option("--json","Output as JSON").action(async(t,o)=>{let{teamCostCommand:a}=await import('./cost-PK4KIF7R.js');await a(t,o);});m.command("export [path]").description("Export orchestration data").option("-f, --format <format>","Output format: json, csv","json").option("--from <date>","From date (ISO format)").option("--to <date>","To date (ISO format)").option("-o, --output <file>","Output file path").action(async(t,o)=>{let{teamExportCommand:a}=await import('./export-CV5KCTPS.js');await a(t,o);});m.command("providers [path]").description("Show available agent providers and their status").option("--set <provider>","Set preferred provider: auto, claude, claude-code, claude-cli, manual").option("--json","Output as JSON").action(async(t,o)=>{let{teamProvidersCommand:a}=await import('./providers-AWA7WLLM.js');await a(t,o);});m.command("models [path]").description("Configure or view agent model assignments").option("--refresh","Refresh model cache from environment").option("--json","Output as JSON").action(async(t,o)=>{let{teamModelsCommand:a}=await import('./team-NSP6PMPS.js');await a(t,o);});var $=m.command("agents").description("Agent management commands");$.command("suggest <task>").description("Suggest agents for a task based on triggers").option("--json","Output as JSON").action(async(t,o)=>{let{agentsSuggestCommand:a}=await import('./agents-suggest-HYTFMQD3.js');await a(t,o);});$.action(()=>{console.log(`
Usage: paradigm team agents <command>
`),console.log("Commands:"),console.log("  suggest <task>  Suggest agents for a task based on triggers"),console.log("\nRun `paradigm team agents suggest --help` for options.\n");});m.action(async()=>{let{teamStatusCommand:t}=await import('./team-NSP6PMPS.js');await t(void 0,{});});var B=i.command("plugin").description("Plugin management commands");B.command("check").description("Check for updates to installed Claude Code plugins").option("-u, --update","Pull latest changes for all stale marketplace clones").action(async t=>{let{pluginCheckCommand:o}=await import('./check-THVGY4R5.js');await o(t);});B.action(async()=>{let{pluginCheckCommand:t}=await import('./check-THVGY4R5.js');await t({});});var J=i.command("workspace").description("Multi-project workspace commands");J.command("init").description("Create a .paradigm-workspace file from sibling projects").option("-n, --name <name>","Workspace name (default: directory name)").option("-f, --force","Overwrite existing workspace file").action(async t=>{let{workspaceInitCommand:o}=await import('./workspace-MKSQN7B2.js');await o(t);});J.command("status").description("Show workspace member status and symbol counts").option("--json","Output as JSON").action(async t=>{let{workspaceStatusCommand:o}=await import('./workspace-MKSQN7B2.js');await o(t);});J.command("reindex").description("Rebuild scan-index.json for all workspace members").option("-q, --quiet","Suppress progress output").action(async t=>{let{workspaceReindexCommand:o}=await import('./workspace-MKSQN7B2.js');await o(t);});J.action(async()=>{let{workspaceStatusCommand:t}=await import('./workspace-MKSQN7B2.js');await t({});});i.command("doctor").description("Health check - validate Paradigm setup").option("--context","Run only context audit checks (CLAUDE.md quality)").option("--explain","Include human-readable gap narrations explaining each issue and how to fix it").action(async t=>{let{doctorCommand:o}=await import('./doctor-QJ47XAUP.js');await o(t);});i.command("integrity").description("Symbol integrity check \u2014 broken refs, duplicates, orphans, missing anchors").option("--json","Output machine-readable JSON").action(async t=>{let{integrityCommand:o}=await import('./integrity-UYDOOJDP.js');await o(t);});i.command("review").description("Automated two-stage review pipeline \u2014 spec compliance + code quality").option("--pr <number>","Review a PR via gh CLI").option("--ci","Exit 1 on blocking findings").option("--deep","Include code quality checks (eval, secrets, console.log)").option("--json","Output machine-readable JSON").action(async t=>{let{reviewCommand:o}=await import('./review-6UAH6V3R.js');await o(t);});i.command("sweep").description("Entropy detection and cleanup \u2014 find orphaned symbols, stale purpose files, phantom gates").option("--dry","Report only, no fixes applied").option("--skip-fix","Same as --dry").option("-q, --quiet","Minimal output").action(async t=>{let{sweepCommand:o}=await import('./sweep-HU74OPVW.js');await o(t);});var tt=i.command("drift").description("Aspect anchor drift detection");tt.command("check").description("Check aspect anchors for drift and auto-heal shifted anchors").option("--json","Output as JSON").option("--auto-heal","Auto-heal shifted anchors (default: true)").option("--no-auto-heal","Disable auto-healing").action(async t=>{let{driftCheckCommand:o}=await import('./drift-ILZE5BFJ.js');await o(t);});var F=i.command("global").description("Manage Global Brain (~/.paradigm/)");F.command("clean").description("Remove old files from ~/.paradigm/ (Global Brain rotation)").option("--older-than <duration>","Remove files older than duration (e.g., 90d, 30d, 7d)","90d").option("-n, --dry-run","Show what would be deleted without deleting").action(async t=>{let{globalCleanCommand:o}=await import('./global-C44FW4G2.js');await o(t);});F.action(()=>{F.outputHelp();});i.command("watch").description("Watch for changes and auto-sync IDE files").action(async()=>{let{watchCommand:t}=await import('./watch-YCODNIET.js');await t();});i.command("summary").description("Generate .paradigm/project.md with project stats").action(async()=>{let{summaryCommand:t}=await import('./summary-LXLHFRN7.js');await t();});i.command("constellation [path]").alias("const").description("Generate .paradigm/constellation.json - symbol relationship graph for AI agents").option("-f, --format <format>","Output format: json or yaml","json").option("-o, --output <path>","Custom output path").option("-q, --quiet","Suppress output").action(async(t,o)=>{process.stderr.write("\u26A0 `paradigm constellation` has moved. Use `paradigm util constellation` instead.\n");let{constellationCommand:a}=await import('./constellation-CG7C4WFE.js');await a(t,o);});i.command("beacon [path]").description("Generate .paradigm/beacon.md - quick-start orientation for AI agents").option("-r, --refresh","Regenerate even if beacon exists").option("-o, --output <path>","Custom output path").option("--json","Output as JSON (for AI agent queries)").option("-q, --quiet","Suppress output").action(async(t,o)=>{process.stderr.write("\u26A0 `paradigm beacon` has moved. Use `paradigm util beacon` instead.\n");let{beaconCommand:a}=await import('./beacon-5QVYV5DF.js');await a(t,o);});i.command("ripple <symbol> [path]").description("Show change impact analysis for a symbol").option("-d, --depth <depth>","Analysis depth (default: 1)","1").option("--json","Output as JSON").option("-q, --quiet","Suppress output").action(async(t,o,a)=>{let{rippleCommand:e}=await import('./ripple-ZGDITCGB.js');await e(t,o,a);});var x=i.command("thread").description("Session continuity - pass context between AI agent sessions");x.command("show [path]").alias("s").description("Show current thread").option("--json","Output as JSON (for AI agent queries)").action(async(t,o)=>{process.stderr.write("\u26A0 `paradigm thread` is being consolidated. Use `paradigm util thread` instead.\n");let{threadShowCommand:a}=await import('./thread-HFXK65D4.js');await a(t,o);});x.command("save <message> [path]").description("Save activity to the thread trail").option("-q, --quiet","Suppress output").action(async(t,o,a)=>{process.stderr.write("\u26A0 `paradigm thread` is being consolidated. Use `paradigm util thread` instead.\n");let{threadSaveCommand:e}=await import('./thread-HFXK65D4.js');await e(t,o,a);});x.command("todo <task> [path]").description("Add a loose end (unfinished task)").option("-q, --quiet","Suppress output").action(async(t,o,a)=>{process.stderr.write("\u26A0 `paradigm thread` is being consolidated. Use `paradigm util thread` instead.\n");let{threadTodoCommand:e}=await import('./thread-HFXK65D4.js');await e(t,o,a);});x.command("note <note> [path]").description("Add a breadcrumb (note for next agent)").option("-q, --quiet","Suppress output").action(async(t,o,a)=>{process.stderr.write("\u26A0 `paradigm thread` is being consolidated. Use `paradigm util thread` instead.\n");let{threadNoteCommand:e}=await import('./thread-HFXK65D4.js');await e(t,o,a);});x.command("clear [path]").description("Clear the thread").option("-q, --quiet","Suppress output").action(async(t,o)=>{process.stderr.write("\u26A0 `paradigm thread` is being consolidated. Use `paradigm util thread` instead.\n");let{threadClearCommand:a}=await import('./thread-HFXK65D4.js');await a(t,o);});x.option("--json","Output as JSON (for AI agent queries)").action(async t=>{process.stderr.write("\u26A0 `paradigm thread` is being consolidated. Use `paradigm util thread` instead.\n");let{threadShowCommand:o}=await import('./thread-HFXK65D4.js');await o(void 0,t);});var A=i.command("echo").description("Error-to-symbol mapping - find related symbols for error codes");A.command("lookup <errorCode> [path]").alias("l").description("Look up an error code").option("--json","Output as JSON (for AI agent queries)").action(async(t,o,a)=>{process.stderr.write("\u26A0 `paradigm echo` has moved. Use `paradigm util echo` instead.\n");let{echoCommand:e}=await import('./echo-UPTQUEDU.js');await e(t,o,a);});A.command("init [path]").description("Create .paradigm/echoes.yaml template").option("-q, --quiet","Suppress output").action(async(t,o)=>{process.stderr.write("\u26A0 `paradigm echo` has moved. Use `paradigm util echo` instead.\n");let{echoInitCommand:a}=await import('./echo-UPTQUEDU.js');await a(t,o);});A.command("list [path]").alias("ls").description("List all error mappings").action(async t=>{process.stderr.write("\u26A0 `paradigm echo` has moved. Use `paradigm util echo` instead.\n");let{echoListCommand:o}=await import('./echo-UPTQUEDU.js');await o(t);});A.argument("[errorCode]","Error code to look up").option("--json","Output as JSON (for AI agent queries)").action(async(t,o)=>{if(process.stderr.write("\u26A0 `paradigm echo` has moved. Use `paradigm util echo` instead.\n"),t){let{echoCommand:a}=await import('./echo-UPTQUEDU.js');await a(t,void 0,o);}else {let{echoListCommand:a}=await import('./echo-UPTQUEDU.js');await a();}});var f=i.command("tutorial").description("Interactive tutorial system");f.command("start [path]").description("Start the tutorial").action(async t=>{let{tutorialStartCommand:o}=await import('./tutorial-UC6YQMNN.js');await o(t);});f.command("step [n] [path]").description("Show tutorial step").action(async(t,o)=>{let{tutorialStepCommand:a}=await import('./tutorial-UC6YQMNN.js');await a(o,t);});f.command("checkpoint [path]").description("Validate current checkpoint").action(async t=>{let{tutorialCheckpointCommand:o}=await import('./tutorial-UC6YQMNN.js');await o(t);});f.command("next [path]").description("Move to next step").action(async t=>{let{tutorialNextCommand:o}=await import('./tutorial-UC6YQMNN.js');await o(t);});f.command("status [path]").description("Show tutorial progress").action(async t=>{let{tutorialStatusCommand:o}=await import('./tutorial-UC6YQMNN.js');await o(t);});f.command("reset [path]").description("Reset tutorial to beginning").action(async t=>{let{tutorialResetCommand:o}=await import('./tutorial-UC6YQMNN.js');await o(t);});f.command("bugs [path]").description("List intentional bugs").action(async t=>{let{tutorialBugsCommand:o}=await import('./tutorial-UC6YQMNN.js');await o(t);});var b=i.command("mcp").description("MCP server configuration for AI clients");b.command("setup").description("Configure MCP server for detected AI clients").option("-c, --client <client>","Target client: cursor, claude-desktop, continue, cline, all").option("-f, --force","Overwrite existing config").option("--json","Output as JSON").option("--no-gitignore","Do not add config to .gitignore").action(async t=>{let{mcpSetupCommand:o}=await import('./setup-6SRJHDA7.js');await o(t);});b.command("status").description("Show MCP configuration status across clients").option("--json","Output as JSON").action(async t=>{let{mcpStatusCommand:o}=await import('./setup-6SRJHDA7.js');await o(t);});b.command("list").alias("ls").description("List all configured MCP servers across all clients").option("--json","Output as JSON").action(async t=>{let{mcpListCommand:o}=await import('./setup-6SRJHDA7.js');await o(t);});b.command("remove [server]").alias("rm").description("Remove MCP server from client configs").option("-c, --client <client>","Target client: cursor, claude-desktop, continue, cline, all").option("-f, --force","Skip confirmation").option("--json","Output as JSON").action(async(t,o)=>{let{mcpRemoveCommand:a}=await import('./setup-6SRJHDA7.js');await a(t,o);});b.command("use-dev").description("Switch MCP configs to use local dev build").option("-c, --client <client>","Target client: cursor, claude-desktop, claude-code, continue, cline").option("--json","Output as JSON").action(async t=>{let{mcpUseDevCommand:o}=await import('./switch-RXEXXIN7.js');await o(t);});b.command("use-prod").description("Switch MCP configs back to global production binary").option("-c, --client <client>","Target client: cursor, claude-desktop, claude-code, continue, cline").option("--json","Output as JSON").action(async t=>{let{mcpUseProdCommand:o}=await import('./switch-RXEXXIN7.js');await o(t);});b.action(async()=>{let{mcpSwitchStatusCommand:t}=await import('./switch-RXEXXIN7.js');await t({});});i.command("promote").description("Copy local build to production (~/.paradigm-cli/)").option("-f, --force","Create production directory if missing").option("--skip-build","Skip npm run build step").option("--json","Output as JSON").action(async t=>{let{promoteCommand:o}=await import('./promote-KU2ECEXX.js');await o(t);});var q=i.command("wisdom").description("Team wisdom - preferences, antipatterns, decisions, expertise");q.command("show [symbol]").description("Display wisdom for symbols or overview").option("--json","Output as JSON").action(async(t,o)=>{let{wisdomShowCommand:a}=await import('./wisdom-XZ3QKPNP.js');await a(t,o);});q.command("init").description("Initialize wisdom directory with templates").option("-f, --force","Overwrite existing files").action(async t=>{let{wisdomInitCommand:o}=await import('./wisdom-XZ3QKPNP.js');await o(t);});q.command("add-antipattern").description("Add a new antipattern").requiredOption("--id <id>","Antipattern ID (e.g., api-001)").requiredOption("--symbols <symbols>","Comma-separated symbols").requiredOption("--description <desc>","What NOT to do").requiredOption("--reason <reason>","Why this is bad").requiredOption("--alternative <alt>","What to do instead").action(async t=>{let{wisdomAddAntipatternCommand:o}=await import('./wisdom-XZ3QKPNP.js');await o(t);});q.command("decide").description("Create a new decision record (ADR)").requiredOption("--id <id>","Decision ID (e.g., 001)").requiredOption("--title <title>","Decision title").requiredOption("--symbols <symbols>","Comma-separated symbols").requiredOption("--context <context>","Context/problem").requiredOption("--decision <decision>","The decision made").option("--status <status>","Status: proposed, accepted","proposed").action(async t=>{let{wisdomDecideCommand:o}=await import('./wisdom-XZ3QKPNP.js');await o(t);});q.command("expert [query]").description("Find experts for symbols or areas").option("--json","Output as JSON").action(async(t,o)=>{let{wisdomExpertCommand:a}=await import('./wisdom-XZ3QKPNP.js');await a(t,o);});q.option("--json","Output as JSON").action(async t=>{let{wisdomShowCommand:o}=await import('./wisdom-XZ3QKPNP.js');await o(void 0,t);});var C=i.command("history").description("Implementation history - tracking changes, validation, fragility");C.command("show [symbol]").description("Display history for symbols or overview").option("--json","Output as JSON").option("-l, --limit <number>","Number of entries","10").action(async(t,o)=>{let{historyShowCommand:a}=await import('./history-UW454SDP.js');await a(t,{...o,limit:parseInt(o.limit)});});C.command("init").description("Initialize history directory").option("-f, --force","Overwrite existing files").action(async t=>{let{historyInitCommand:o}=await import('./history-UW454SDP.js');await o(t);});C.command("fragile").description("Show fragile symbols that need extra care").option("--json","Output as JSON").action(async t=>{let{historyFragileCommand:o}=await import('./history-UW454SDP.js');await o(t);});C.command("reindex").description("Regenerate index from log").action(async()=>{let{historyReindexCommand:t}=await import('./history-UW454SDP.js');await t();});C.command("record").description("Record an implementation event").requiredOption("--type <type>","Type: implement, refactor, rollback").requiredOption("--symbols <symbols>","Comma-separated symbols").requiredOption("--description <desc>","What was done").option("--intent <intent>","Intent: feature, fix, refactor").option("--commit <hash>","Git commit hash").option("--reason <reason>","Reason for rollback").action(async t=>{let{historyRecordCommand:o}=await import('./history-UW454SDP.js');await o(t);});C.command("validate").description("Record a validation result").requiredOption("--result <result>","Result: pass, fail, partial").option("--ref <id>","Implementation ID being validated").option("--passed <n>","Tests passed").option("--failed <n>","Tests failed").action(async t=>{let{historyValidateCommand:o}=await import('./history-UW454SDP.js');await o({...t,passed:t.passed?parseInt(t.passed):void 0,failed:t.failed?parseInt(t.failed):void 0});});C.option("--json","Output as JSON").action(async t=>{let{historyShowCommand:o}=await import('./history-UW454SDP.js');await o(void 0,t);});var I=i.command("hooks").description("Git hooks for automatic history capture");I.command("install").description("Install git hooks, Claude Code hooks, and Cursor hooks").option("-f, --force","Overwrite existing hooks").option("--post-commit","Only install post-commit hook").option("--pre-push","Only install pre-push hook").option("--claude-code","Only install Claude Code hooks (stop + pre-commit)").option("--cursor","Only install Cursor hooks (.cursor/hooks.json)").option("--dry-run","Show what would be installed without making changes").action(async t=>{let{hooksInstallCommand:o}=await import('./hooks-IG2GOAHP.js');await o(t);});I.command("uninstall").description("Remove paradigm hooks (git hooks, or --cursor for Cursor hooks)").option("--cursor","Remove Cursor hooks instead of git hooks").option("--dry-run","Show what would be removed without making changes").action(async t=>{let{hooksUninstallCommand:o}=await import('./hooks-IG2GOAHP.js');await o(t);});I.command("status").description("Check git hooks status").action(async()=>{let{hooksStatusCommand:t}=await import('./hooks-IG2GOAHP.js');await t();});I.action(async()=>{let{hooksStatusCommand:t}=await import('./hooks-IG2GOAHP.js');await t();});var d=i.command("triage").description("Semantic error triage - incident management and pattern matching");d.command("list").alias("ls").description("List recent incidents with matched patterns").option("-l, --limit <number>","Maximum incidents to show","10").option("-s, --status <status>","Filter by status: open, investigating, resolved, wont-fix, all").option("--symbol <symbol>","Filter by symbol (e.g., @checkout, ^auth)").option("-e, --env <environment>","Filter by environment").option("--search <text>","Search in error messages").option("--from <date>","Filter from date (ISO format)").option("--to <date>","Filter to date (ISO format)").option("--json","Output as JSON").action(async t=>{let{triageListCommand:o}=await import('./triage-FCWOZASE.js');await o(t);});d.command("show <id>").description("Show full incident details").option("--timeline","Include flow timeline").option("--json","Output as JSON").action(async(t,o)=>{let{triageShowCommand:a}=await import('./triage-FCWOZASE.js');await a(t,o);});d.command("resolve <id>").description("Mark incident as resolved").option("-p, --pattern <patternId>","Pattern that led to resolution").option("-c, --commit <hash>","Git commit hash of fix").option("--pr <url>","Pull request URL").option("-n, --notes <text>","Resolution notes").option("--wont-fix","Mark as will not fix").action(async(t,o)=>{let{triageResolveCommand:a}=await import('./triage-FCWOZASE.js');await a(t,o);});d.command("note <id> <note>").description("Add a note to an incident").action(async(t,o)=>{let{triageNoteCommand:a}=await import('./triage-FCWOZASE.js');await a(t,o);});d.command("link <id1> <id2>").description("Link two related incidents").action(async(t,o)=>{let{triageLinkCommand:a}=await import('./triage-FCWOZASE.js');await a(t,o);});var v=d.command("patterns").description("Manage failure patterns");v.command("list").alias("ls").description("List all patterns").option("--source <source>","Filter by source: manual, suggested, imported, community").option("--min-confidence <score>","Minimum confidence score").option("--json","Output as JSON").action(async t=>{let{triagePatternsListCommand:o}=await import('./triage-FCWOZASE.js');await o(t);});v.command("show <id>").description("Show pattern details").option("--json","Output as JSON").action(async(t,o)=>{let{triagePatternsShowCommand:a}=await import('./triage-FCWOZASE.js');await a(t,o);});v.command("add").description("Create a new pattern").requiredOption("--id <id>","Pattern ID (kebab-case)").requiredOption("--name <name>","Human-readable name").option("--description <text>","Pattern description").option("--symbols <pairs>",'Symbol criteria (e.g., "feature:@checkout,gate:^auth")').option("--error-contains <keywords>","Error keywords (comma-separated)").option("--missing-signals <signals>","Expected missing signals (comma-separated)").option("--strategy <strategy>","Resolution strategy: retry, fallback, fix-data, fix-code, ignore, escalate","fix-code").option("--priority <priority>","Priority: low, medium, high, critical","medium").option("--code-hint <text>","Code hint for resolution").option("--tags <tags>","Tags (comma-separated)").option("--from-incident <id>","Generate suggestion from incident").action(async t=>{let{triagePatternsAddCommand:o}=await import('./triage-FCWOZASE.js');await o(t);});v.command("delete <id>").alias("rm").description("Delete a pattern").action(async t=>{let{triagePatternsDeleteCommand:o}=await import('./triage-FCWOZASE.js');await o(t);});v.command("test <id>").description("Test pattern against historical incidents").option("-l, --limit <number>","Max incidents to test against","100").option("--json","Output as JSON").action(async(t,o)=>{let{triagePatternsTestCommand:a}=await import('./triage-FCWOZASE.js');await a(t,o);});v.command("seed").description("Load built-in seed patterns").action(async()=>{let{triagePatternsSeedCommand:t}=await import('./triage-FCWOZASE.js');await t();});v.action(async()=>{let{triagePatternsListCommand:t}=await import('./triage-FCWOZASE.js');await t({});});d.command("export <type>").description("Export patterns or full backup (type: patterns, backup)").option("-o, --output <path>","Output file path").option("--include-private","Include private patterns").action(async(t,o)=>{let{triageExportCommand:a}=await import('./triage-FCWOZASE.js');await a(t,o);});d.command("import <file>").description("Import patterns from JSON file").option("--overwrite","Overwrite existing patterns").action(async(t,o)=>{let{triageImportCommand:a}=await import('./triage-FCWOZASE.js');await a(t,o);});d.command("restore <file>").description("Restore from full backup").action(async t=>{let{triageRestoreCommand:o}=await import('./triage-FCWOZASE.js');await o(t);});d.command("stats").description("Show statistics dashboard").option("-p, --period <period>","Time period: 1d, 7d, 30d, 90d","7d").option("--symbol <symbol>","Show health for specific symbol").option("--json","Output as JSON").action(async t=>{let{triageStatsCommand:o}=await import('./triage-FCWOZASE.js');await o(t);});d.command("record").description("Manually record an incident").requiredOption("--error <message>","Error message").requiredOption("-e, --env <environment>","Environment").option("--feature <symbol>","Feature symbol (@...)").option("--component <symbol>","Component symbol (#...)").option("--flow <symbol>","Flow symbol ($...)").option("--gate <symbol>","Gate symbol (^...)").option("--signal <symbol>","Signal symbol (!...)").option("--state <symbol>","State symbol (%...)").option("--integration <symbol>","Integration symbol (&...)").option("--service <name>","Service name").option("--version <version>","App version").option("--stack <trace>","Stack trace").option("--json","Output as JSON").action(async t=>{let{triageRecordCommand:o}=await import('./triage-FCWOZASE.js');await o(t);});d.option("-l, --limit <number>","Maximum incidents to show","10").option("-s, --status <status>","Filter by status").option("--json","Output as JSON").action(async t=>{let{triageListCommand:o}=await import('./triage-FCWOZASE.js');await o(t);});var l=i.command("lore").description("Project lore - timeline of everything that happened to this project");l.command("list").alias("ls").description("List recent lore entries").option("--author <author>","Filter by author").option("--type <type>","Filter by type: agent-session, human-note, decision, review, incident, milestone, retro, insight").option("--symbol <symbol>","Filter by symbol").option("--tags <tags>","Filter by tags (comma-separated)").option("--from <date>","Filter from date (ISO format, e.g., 2026-02-20)").option("--to <date>","Filter to date (ISO format)").option("-l, --limit <number>","Number of entries","20").option("--json","Output as JSON").action(async t=>{let{loreListCommand:o}=await import('./list-YKIQNKGB.js');await o(t);});l.command("show <id>").description("Show full detail for a lore entry").option("--json","Output as JSON").action(async(t,o)=>{let{loreShowCommand:a}=await import('./show-PJ5LFLIL.js');await a(t,o);});l.command("record").description("Record a new lore entry (human note, milestone, etc.)").option("--type <type>","Entry type: human-note, decision, milestone, retro, insight","human-note").option("--author <author>","Author name").option("--title <title>","Entry title").option("--summary <summary>","Entry summary").option("--symbols <symbols>","Comma-separated symbols").option("--tags <tags>","Comma-separated tags").option("--files-modified <files>","Comma-separated files modified").option("--files-created <files>","Comma-separated files created").option("--commit <hash>","Git commit hash").option("--learnings <items>","Comma-separated learnings").option("--duration <minutes>","Duration in minutes").option("--meta <json>",`Project-defined metadata as JSON (e.g., '{"sprint": 12}')`).option("--body <text>","Long-form content (detailed notes, rationale, etc.)").option("--link-lore <ids>","Comma-separated lore entry IDs to link").option("--link-commits <shas>","Comma-separated git commit SHAs to link").option("--confidence <number>","Confidence in correctness (0.0 to 1.0)").action(async t=>{let{loreRecordCommand:o}=await import('./record-YXPB34MY.js');await o(t);});l.command("review <id>").description("Add a review to a lore entry").option("--reviewer <name>","Reviewer name").option("--completeness <n>","Completeness score (1-5)","3").option("--quality <n>","Quality score (1-5)","3").option("--notes <text>","Review notes").action(async(t,o)=>{let{loreReviewCommand:a}=await import('./review-77QI6VOC.js');await a(t,o);});l.command("assess <id> <verdict>").description("Record an assessment verdict on a lore entry (correct/partial/incorrect)").option("--assessor <name>","Assessor name").option("--notes <text>","Assessment notes").action(async(t,o,a)=>{let{loreAssessCommand:e}=await import('./assess-UFPYEJKP.js');await e(t,o,a);});l.command("calibration").description("Show calibration statistics across assessed lore entries").option("--symbol <symbol>","Filter by symbol").option("--tag <tag>","Filter by tag").option("--author <author>","Filter by author").option("--group-by <dimension>","Group by: symbol, tag, type").option("--json","Output as JSON").action(async t=>{let{loreCalibrationCommand:o}=await import('./calibration-OLJYB5HN.js');await o(t);});l.command("edit <id>").description("Edit an existing lore entry").option("--title <title>","New title").option("--summary <summary>","New summary").option("--type <type>","New type: agent-session, human-note, decision, review, incident, milestone").option("--symbols <symbols>","Comma-separated symbols").option("--tags <tags>","Comma-separated tags").option("--learnings <items>","Comma-separated learnings").action(async(t,o)=>{let{loreEditCommand:a}=await import('./edit-GUU3HBVW.js');await a(t,o);});l.command("delete <id>").description("Delete a lore entry").option("-y, --yes","Skip confirmation").option("--dry-run","Show what would be deleted without making changes").action(async(t,o)=>{let{loreDeleteCommand:a}=await import('./delete-P5VULXR4.js');await a(t,o);});l.command("migrate-assessments").description("Migrate assessment entries to lore with arc: tags").option("--dry-run","Show what would be migrated without making changes").action(async t=>{let{loreMigrateAssessmentsCommand:o}=await import('./migrate-assessments-GEI5WMI2.js');await o(t);});l.command("retag").description("Add or remove tags from matching lore entries").option("--add <tag>","Tag to add").option("--remove <tag>","Tag to remove").option("--type <type>","Filter by entry type").option("--symbol <symbol>","Filter by symbol").option("--author <author>","Filter by author").option("--from <date>","Filter from date").option("--to <date>","Filter to date").option("--tags <tags>","Filter by existing tags (comma-separated)").option("--dry-run","Show what would change without making changes").action(async t=>{let{loreRetagCommand:o}=await import('./retag-N5XF3KXP.js');await o(t);});l.command("timeline").description("Show lore timeline grouped by date with hot symbols and authors").option("-l, --limit <number>","Number of entries","20").option("--json","Output as JSON").action(async t=>{let{loreTimelineCommand:o}=await import('./timeline-K3ZFKJ3R.js');await o(t);});l.option("-p, --port <port>","Port to run on","3840").option("--no-open","Don't open browser automatically").action(async t=>{let{loreServeCommand:o}=await import('./serve-L52ZUTU6.js');await o(void 0,t);});i.command("serve").description("Launch Paradigm Platform \u2014 unified development management UI").option("-p, --port <port>","Port to run on","3850").option("--no-open","Don't open browser automatically").option("--sections <list>","Comma-separated sections to enable (e.g., lore,graph,git)").action(async t=>{let{serveCommand:o}=await import('./serve-U47GULB6.js');await o(t);});var ot=i.command("graph").description("Interactive symbol relationship graph").argument("[path]","Project directory",void 0).option("-p, --port <port>","Port to run on","3841").option("--no-open","Don't open browser automatically").action(async(t,o)=>{let{graphCommand:a}=await import('./graph-CNDE5TAT.js');await a(t,o);});ot.command("generate").description("Generate a named graph file in .paradigm/graphs/").argument("<name>","Graph name (used as filename: {name}.graph.json)").argument("[path]","Project directory",void 0).option("-s, --symbols <list>","Comma-separated symbol names to include").option("-g, --group <spec...>",'Group spec: "Label:#sym1,#sym2" (repeatable)').option("-l, --link <spec...>",'Link spec: "Source>Target:label" (repeatable)').action(async(t,o,a)=>{let{graphGenerateCommand:e}=await import('./graph-CNDE5TAT.js');await e(t,o,a);});var w=i.command("habits").description("Behavioral habits - practice tracking and compliance");w.command("list").alias("ls").description("List all configured habits").option("--trigger <trigger>","Filter by trigger: preflight, postflight, on-stop, on-commit").option("--category <category>","Filter by category: discovery, verification, testing, documentation, collaboration, security").option("--json","Output as JSON").action(async t=>{let{habitsListCommand:o}=await import('./habits-BX2IRSUI.js');await o(t);});w.command("status").description("Show practice profile with compliance rates").option("-p, --period <period>","Time period: 7d, 30d, 90d, all","30d").option("--json","Output as JSON").action(async t=>{let{habitsStatusCommand:o}=await import('./habits-BX2IRSUI.js');await o(t);});w.command("init").description("Initialize habits.yaml with seed habits").option("-f, --force","Overwrite existing file").action(async t=>{let{habitsInitCommand:o}=await import('./habits-BX2IRSUI.js');await o(t);});w.command("check").description("Evaluate habit compliance for a trigger point").requiredOption("-t, --trigger <trigger>","Trigger: preflight, postflight, on-stop, on-commit").option("--record","Record practice events to Sentinel").option("--json","Output as JSON").option("--files <files>","Comma-separated files modified (default: git diff)").option("--symbols <symbols>","Comma-separated symbols touched").action(async t=>{let{habitsCheckCommand:o}=await import('./habits-BX2IRSUI.js');await o(t);});w.command("add").description("Add a custom habit").requiredOption("--id <id>","Habit ID (kebab-case)").requiredOption("--name <name>","Human-readable name").requiredOption("--description <desc>","What this habit enforces").requiredOption("--category <category>","Category: discovery, verification, testing, documentation, collaboration, security").requiredOption("--trigger <trigger>","Trigger: preflight, postflight, on-stop, on-commit").option("--severity <severity>","Severity: advisory, warn, block","advisory").option("--tools <tools>","Comma-separated tools to check (for tool-called check type)").option("--check-type <type>","Check type: tool-called, file-exists, file-modified, lore-recorded, symbols-registered, gates-declared, tests-exist, git-clean","tool-called").option("--patterns <patterns>","Comma-separated patterns (for file-exists, file-modified, tests-exist check types)").action(async t=>{let{habitsAddCommand:o}=await import('./habits-BX2IRSUI.js');await o({...t,checkType:t.checkType});});w.command("edit <id>").description("Edit a habit (seed habits: only severity/enabled; custom: all fields)").option("--name <name>","New name").option("--description <desc>","New description").option("--category <category>","New category").option("--trigger <trigger>","New trigger").option("--severity <severity>","New severity: advisory, warn, block").option("--enabled <bool>","Enable or disable: true, false").option("--check-type <type>","New check type").option("--patterns <patterns>","Comma-separated patterns").option("--tools <tools>","Comma-separated tools").action(async(t,o)=>{let{habitsEditCommand:a}=await import('./habits-BX2IRSUI.js');await a(t,{...o,checkType:o.checkType});});w.command("remove <id>").description("Remove a custom habit (seed habits cannot be removed, only disabled)").option("-y, --yes","Skip confirmation").action(async(t,o)=>{let{habitsRemoveCommand:a}=await import('./habits-BX2IRSUI.js');await a(t,o);});w.command("enable <id>").description("Enable a habit").action(async t=>{let{habitsToggleCommand:o}=await import('./habits-BX2IRSUI.js');await o(t,"enable");});w.command("disable <id>").description("Disable a habit").action(async t=>{let{habitsToggleCommand:o}=await import('./habits-BX2IRSUI.js');await o(t,"disable");});w.action(async()=>{let{habitsListCommand:t}=await import('./habits-BX2IRSUI.js');await t({});});var T=i.command("graduate").description("Automation tier graduation \u2014 migrate habits to hooks");T.command("status",{isDefault:true}).description("Show current automation tier of every habit").option("--json","Output as JSON").action(async t=>{let{graduateStatusCommand:o}=await import('./graduate-3BBSC27A.js');await o(t);});T.command("promote <habitId>").description("Graduate a habit to hook tier (skip MCP evaluation)").action(async t=>{let{graduatePromoteCommand:o}=await import('./graduate-3BBSC27A.js');await o(t);});T.command("demote <habitId>").description("Demote a habit from hook back to habit tier").option("--cooldown <days>","Cooldown period in days before re-graduation","14").action(async(t,o)=>{let{graduateDemoteCommand:a}=await import('./graduate-3BBSC27A.js');await a(t,o);});var S=i.command("persona").description("Personas \u2014 actor-driven journey testing");S.command("list",{isDefault:true}).alias("ls").description("List all personas").option("--tag <tag>","Filter by tag").option("--trigger <type>","Filter by trigger type (root, invitation, signup, api)").option("--gate <gate>","Filter by gate usage").option("--json","Output as JSON").action(async t=>{let{personaListCommand:o}=await import('./persona-STQWZH5P.js');await o(t);});S.command("show <id>").description("Show full persona detail").option("--json","Output as JSON").action(async(t,o)=>{let{personaShowCommand:a}=await import('./persona-STQWZH5P.js');await a(t,o);});S.command("validate [id]").description("Validate persona schema and cross-references").option("--json","Output as JSON").action(async(t,o)=>{let{personaValidateCommand:a}=await import('./persona-STQWZH5P.js');await a(t,o);});S.command("coverage").description("Coverage report \u2014 routes and gates with/without persona coverage").option("--json","Output as JSON").action(async t=>{let{personaCoverageCommand:o}=await import('./persona-STQWZH5P.js');await o(t);});S.command("run <id>").description("Execute persona journey against a running server").requiredOption("--base-url <url>","Base URL (e.g. http://localhost:3000)").option("--dry-run","Show steps without making HTTP requests").option("--json","Output as JSON").action(async(t,o)=>{let{personaRunCommand:a}=await import('./persona-STQWZH5P.js');await a(t,o);});S.command("affected <symbol>").description("Show which personas reference a given symbol (gate, flow, signal)").option("--json","Output as JSON").action(async(t,o)=>{let{personaAffectedCommand:a}=await import('./persona-STQWZH5P.js');await a(t,o);});S.command("delete <id>").description("Delete a persona").action(async t=>{let{personaDeleteCommand:o}=await import('./persona-STQWZH5P.js');await o(t);});var at=i.command("sentinel").description("Sentinel \u2014 semantic error monitoring");at.command("defend [path]",{isDefault:true}).description("Launch the Sentinel UI - unified codebase intelligence visualizer").option("-p, --port <port>","Port to run on","3838").option("--no-open","Don't open browser automatically").action(async(t,o)=>{let{sentinelCommand:a}=await import('./sentinel-HYAZ3CO5.js');await a(t,o);});i.command("conductor").description("Launch Paradigm Conductor \u2014 multimodal mission control for Claude Code sessions").option("--build","Force rebuild the native binary").option("--install","Install Conductor binary to ~/.paradigm/conductor/bin/").option("-v, --verbose","Show build output").action(async t=>{let{conductorCommand:o}=await import('./conductor-HLU5R6ZY.js');await o(t);});var g=i.command("university").description("Per-project university - knowledge base, quizzes, learning paths & PLSAT certification");g.command("serve").description("Launch Paradigm University learning platform").option("-p, --port <port>","Port to run on","3839").option("--no-open","Don't open browser automatically").action(async t=>{let{universityServeCommand:o}=await import('./serve-OY6XYL7F.js');await o(void 0,t);});g.command("list").alias("ls").description("List university content").option("--type <type>","Filter by type: note, policy, guide, runbook, quiz, path").option("--tag <tag>","Filter by tag").option("--difficulty <level>","Filter by difficulty: beginner, intermediate, advanced").option("--symbol <symbol>","Filter by Paradigm symbol").option("-l, --limit <number>","Number of entries","20").option("--json","Output as JSON").action(async t=>{let{universityListCommand:o}=await import('./list-5IUGP3ZB.js');await o(t);});g.command("add <type>").description("Create university content (note, policy, guide, runbook, quiz)").option("--title <title>","Content title (required)").option("--body <text>","Content body (markdown)").option("--tags <tags>","Comma-separated tags").option("--symbols <symbols>","Comma-separated Paradigm symbols").option("--difficulty <level>","Difficulty: beginner, intermediate, advanced").option("--minutes <n>","Estimated reading time in minutes").action(async(t,o)=>{let{universityAddCommand:a}=await import('./add-P76GEMGF.js');await a(t,o);});g.command("show <id>").description("Show a content item in full").option("--json","Output as JSON").action(async(t,o)=>{let{universityShowCommand:a}=await import('./show-BOAVWZPZ.js');await a(t,o);});g.command("quiz <id>").description("Take an interactive quiz in the terminal").action(async t=>{let{universityQuizCommand:o}=await import('./quiz-FE5UGAY2.js');await o(t);});g.command("status").description("Show university content overview and completion stats").option("--json","Output as JSON").action(async t=>{let{universityStatusCommand:o}=await import('./status-A37ECYNJ.js');await o(t);});g.command("validate").description("Validate university content integrity").option("--deep","Enable deep cross-reference checks against scan-index").option("--id <id>","Validate a specific content item").option("--json","Output as JSON").action(async t=>{let{universityValidateCommand:o}=await import('./validate-C6SMKGYD.js');await o(t);});g.option("-p, --port <port>","Port to run on","3839").option("--no-open","Don't open browser automatically").action(async t=>{let{universityServeCommand:o}=await import('./serve-OY6XYL7F.js');await o(void 0,t);});var P=i.command("docs").description("Auto-generated documentation from the symbol graph");P.command("serve").description("Launch interactive docs viewer in browser").option("-p, --port <port>","Port number (default: 3850)").option("--no-open","Do not open browser automatically").action(async t=>{let{docsServeCommand:o}=await import('./docs-USDAF26F.js');await o(t);});P.command("build").description("Build static documentation site").option("-o, --output <dir>","Output directory (default: from config or .paradigm/docs-site)").action(async t=>{let{docsBuildCommand:o}=await import('./docs-USDAF26F.js');await o(t);});P.command("scaffold").description("Generate .index.yaml stubs for docs-class .paradigm/ subdirectories").option("--dry-run","Preview what would be created without writing files").option("-q, --quiet","Suppress output").action(async t=>{let{docsScaffoldCommand:o}=await import('./scaffold-D57JXPCC.js');await o({dryRun:t.dryRun,quiet:t.quiet});});P.action(async()=>{let{docsServeCommand:t}=await import('./docs-USDAF26F.js');await t({});});var O=i.command("pipeline").description("Spec pipeline \u2014 structured feature workflow with configurable gates");O.command("start <description>").description("Create a new pipeline for a feature").option("--template <template>","Pipeline template (add-feature, bug-fix, security-change, refactor)","add-feature").option("--gates <gates>","Custom gate modes: specify,plan,task,implement,validate").action(async(t,o)=>{let{pipelineStartCommand:a}=await import('./pipeline-MZUITRVN.js');await a(t,o);});O.command("status [feature]").description("Show pipeline status").action(async t=>{let{pipelineStatusCommand:o}=await import('./pipeline-MZUITRVN.js');await o(t);});O.command("advance <feature>").description("Advance pipeline past current gate").action(async t=>{let{pipelineAdvanceCommand:o}=await import('./pipeline-MZUITRVN.js');await o(t);});O.command("configure <feature>").description("Change gate mode on active pipeline").requiredOption("--stage <stage>","Stage to configure").requiredOption("--gate <gate>","New gate mode (auto, manual, sentinel)").option("--reason <reason>","Reason for change").action(async(t,o)=>{let{pipelineConfigureCommand:a}=await import('./pipeline-MZUITRVN.js');await a(t,o);});O.command("abort <feature>").description("Cancel a pipeline").action(async t=>{let{pipelineAbortCommand:o}=await import('./pipeline-MZUITRVN.js');await o(t);});O.command("list").description("List all active pipelines").action(async()=>{let{pipelineListCommand:t}=await import('./pipeline-MZUITRVN.js');await t();});O.action(async()=>{let{pipelineListCommand:t}=await import('./pipeline-MZUITRVN.js');await t();});var c=i.command("symphony").description("Symphony \u2014 agent-to-agent messaging for multi-session collaboration");c.command("join").description("Join this session to the Symphony network").option("--remote <ip>","Connect to remote Symphony server").action(async t=>{let{symphonyJoinCommand:o}=await import('./symphony-7INZR43F.js');await o(t);});c.command("leave").description("Remove this session from the Symphony network").action(async()=>{let{symphonyLeaveCommand:t}=await import('./symphony-7INZR43F.js');await t();});c.command("whoami").description("Show this agent's identity and linked peers").action(async()=>{let{symphonyWhoamiCommand:t}=await import('./symphony-7INZR43F.js');await t();});c.command("list").alias("ls").description("List all joined agents").option("--json","Output as JSON").action(async t=>{let{symphonyListCommand:o}=await import('./symphony-7INZR43F.js');await o(t);});c.command("send <message>").description("Send a note to agents").option("--to <agent>","Send to specific agent (omit for broadcast)").option("--thread <id>","Reply to existing thread").action(async(t,o)=>{let{symphonySendCommand:a}=await import('./symphony-7INZR43F.js');await a(t,o);});c.command("read").description("Show unread notes").action(async()=>{let{symphonyReadCommand:t}=await import('./symphony-7INZR43F.js');await t();});c.command("inbox").description("Show unread notes (alias for read)").action(async()=>{let{symphonyReadCommand:t}=await import('./symphony-7INZR43F.js');await t();});c.command("threads").description("List all threads").option("--json","Output as JSON").action(async t=>{let{symphonyThreadsCommand:o}=await import('./symphony-7INZR43F.js');await o(t);});c.command("thread <id>").description("Show full thread conversation").action(async t=>{let{symphonyThreadCommand:o}=await import('./symphony-7INZR43F.js');await o(t);});c.command("resolve <id>").description("Mark a thread as resolved").option("--decision <text>","Decision text to record").action(async(t,o)=>{let{symphonyResolveCommand:a}=await import('./symphony-7INZR43F.js');await a(t,o);});c.command("status").description("Show Symphony network status").option("--json","Output as JSON").action(async t=>{let{symphonyStatusCommand:o}=await import('./symphony-7INZR43F.js');await o(t);});c.command("serve").description("Start Symphony relay server for cross-machine networking").option("--port <port>","Port to listen on","3939").option("--public","Show connection string for internet access").action(async t=>{let{symphonyServeCommand:o}=await import('./symphony-7INZR43F.js');await o(t);});var R=c.command("peers").description("Manage trusted remote peers");R.command("list",{isDefault:true}).description("List trusted peers and their agents").option("--json","Output as JSON").action(async t=>{let{symphonyPeersCommand:o}=await import('./peers-P2KXU7ZK.js');await o(t);});R.command("revoke <id>").description("Revoke trust for a peer (disconnects immediately)").action(async t=>{let{symphonyPeersRevokeCommand:o}=await import('./peers-P2KXU7ZK.js');await o(t);});R.command("forget").description("Clear all peer trust records").option("--force","Skip confirmation").action(async t=>{let{symphonyPeersForgetCommand:o}=await import('./peers-P2KXU7ZK.js');await o(t);});R.action(async()=>{let{symphonyPeersCommand:t}=await import('./peers-P2KXU7ZK.js');await t({});});c.command("request <file>").description("Request a file from another agent").option("--from <agent>","Agent to request from").option("--reason <text>","Why this file is needed").action(async(t,o)=>{let{symphonyRequestCommand:a}=await import('./symphony-7INZR43F.js');await a(t,o);});c.command("requests").description("List pending file requests").action(async()=>{let{symphonyRequestsCommand:t}=await import('./symphony-7INZR43F.js');await t();});c.command("approve <id>").description("Approve a file request").option("--redact","Strip sensitive lines before sending").action(async(t,o)=>{let{symphonyApproveCommand:a}=await import('./symphony-7INZR43F.js');await a(t,o);});c.command("deny <id>").description("Deny a file request").option("--reason <text>","Reason for denial").action(async(t,o)=>{let{symphonyDenyCommand:a}=await import('./symphony-7INZR43F.js');await a(t,o);});c.command("watch").description("Watch inbox in real-time \u2014 zero AI tokens, pure file monitoring").option("--interval <ms>","Poll interval in milliseconds (default: 2000)").option("--thread <id>","Only show messages from this thread").option("--quiet","Minimal output \u2014 messages only, no header").action(async t=>{let{symphonyWatchCommand:o}=await import('./symphony-7INZR43F.js');await o(t);});c.action(async()=>{let{symphonyStatusCommand:t}=await import('./symphony-7INZR43F.js');await t({});});var W=i.command("ambient").description("Ambient coordination \u2014 nominations, verdicts, and learning loop");W.command("postflight").description("Run postflight learning pass \u2014 converts pending verdicts into journal entries and promotes high-confidence entries to notebooks").option("--dry-run","Preview what would be written without writing").option("--project <path>","Project root (defaults to cwd)").action(async t=>{let{ambientPostflightCommand:o}=await import('./ambient-76YMUA5Q.js');await o(t);});W.action(async()=>{let{ambientPostflightCommand:t}=await import('./ambient-76YMUA5Q.js');await t({});});var L=i.command("notebook").description("Agent notebook management \u2014 curated snippet libraries");L.command("list").alias("ls").description("List notebook entries").option("--agent <id>","Filter by agent ID").option("--json","Output as JSON").action(async t=>{let{notebookListCommand:o}=await import('./notebook-PE3JSYZI.js');await o(t);});L.command("show <id>").description("Show a specific notebook entry").option("--agent <id>","Agent ID").option("--json","Output as JSON").action(async(t,o)=>{let{notebookShowCommand:a}=await import('./notebook-PE3JSYZI.js');await a(t,o);});L.command("export").description("Export notebook entries").option("--agent <id>","Filter by agent ID").option("--format <format>","Output format: yaml or json (default: yaml)").action(async t=>{let{notebookExportCommand:o}=await import('./notebook-PE3JSYZI.js');await o(t);});L.action(async()=>{let{notebookListCommand:t}=await import('./notebook-PE3JSYZI.js');await t({});});var p=i.command("agent").description("Agent identity management \u2014 persistent profiles with expertise tracking");p.command("list").alias("ls").description("List all agent identity profiles").option("--json","Output as JSON").option("--global","Show only global profiles").option("--project","Show only project-level profiles").action(async t=>{let{agentListCommand:o}=await import('./agent-X6I2YWOB.js');await o(t);});p.command("show <id>").description("Show full agent profile with expertise table").option("--json","Output as JSON").action(async(t,o)=>{let{agentShowCommand:a}=await import('./agent-X6I2YWOB.js');await a(t,o);});p.command("create <id>").description("Create a new .agent identity file").option("-r, --role <role>","Agent role description").option("-d, --description <desc>","Extended description").option("-g, --global","Create in global ~/.paradigm/agents/ (default)").option("--deny-paths <patterns>",'Comma-separated glob patterns to deny (e.g., ".env*,*.key")').action(async(t,o)=>{let{agentCreateCommand:a}=await import('./agent-X6I2YWOB.js');await a(t,{...o,global:o.global!==false});});p.command("sync <id>").description("Bootstrap expertise from existing project lore").option("-n, --dry-run","Show what would change without writing").option("--json","Output as JSON").action(async(t,o)=>{let{agentSyncCommand:a}=await import('./agent-X6I2YWOB.js');await a(t,o);});var D=p.command("roster").description("Manage per-project agent roster (.paradigm/roster.yaml)");D.command("init").description("Create a roster based on detected project type").option("-f, --force","Overwrite existing roster").option("--json","Output as JSON").action(async t=>{let{rosterInitCommand:o}=await import('./roster-HV5KYUOI.js');await o(t);});D.command("add <ids...>").description("Add one or more agents to the active roster").option("--json","Output as JSON").action(async(t,o)=>{let{rosterAddCommand:a}=await import('./roster-HV5KYUOI.js');await a(t,o);});D.command("remove <ids...>").description("Remove one or more agents from the active roster").option("--json","Output as JSON").action(async(t,o)=>{let{rosterRemoveCommand:a}=await import('./roster-HV5KYUOI.js');await a(t,o);});D.option("--json","Output as JSON").action(async t=>{let{rosterShowCommand:o}=await import('./roster-HV5KYUOI.js');await o(t);});p.command("bench <id>").description("Bench an agent \u2014 Maestro will skip it during orchestration").action(async t=>{let{agentBenchCommand:o}=await import('./agent-X6I2YWOB.js');await o(t);});p.command("activate <id>").description("Activate a benched agent \u2014 restore to Maestro orchestration").action(async t=>{let{agentActivateCommand:o}=await import('./agent-X6I2YWOB.js');await o(t);});p.command("review [id]").description("Review pending scope changes for agents").option("--json","Output as JSON").action(async(t,o)=>{let{agentReviewCommand:a}=await import('./scopes-commands-NSPERZWV.js');await a(t,o);});p.command("approve <id>").description("Quick-approve an agent's pending scope changes").option("--json","Output as JSON").action(async(t,o)=>{let{agentApproveCommand:a}=await import('./scopes-commands-NSPERZWV.js');await a(t,o);});p.command("deny <id>").description("Deny an agent's pending scope changes").option("--json","Output as JSON").action(async(t,o)=>{let{agentDenyCommand:a}=await import('./scopes-commands-NSPERZWV.js');await a(t,o);});p.command("scopes <id>").description("Display an agent's current approved scopes").option("--json","Output as JSON").action(async(t,o)=>{let{agentScopesCommand:a}=await import('./scopes-commands-NSPERZWV.js');await a(t,o);});p.command("install <source>").description("Install an agent from nevr.land registry").option("--global","Install globally to ~/.paradigm/agents/").action(async(t,o)=>{let{agentInstallCommand:a}=await import('./registry-KOOKFUWD.js');await a(t,o);});p.command("search <query>").description("Search nevr.land registry for agents").option("--limit <n>","Limit results","10").action(async(t,o)=>{let{agentSearchCommand:a}=await import('./registry-KOOKFUWD.js');await a(t,o);});p.command("publish").description("Publish agent to nevr.land registry").option("--namespace <ns>","Organization namespace").action(async t=>{let{agentPublishCommand:o}=await import('./registry-KOOKFUWD.js');await o(t);});p.action(async()=>{let{agentListCommand:t}=await import('./agent-X6I2YWOB.js');await t({});});var N=i.command("enforcement").description("Manage enforcement configuration (check severities and levels)");N.command("set <level>").description("Set enforcement level preset (strict, balanced, minimal)").action(async t=>{let{enforcementSetCommand:o}=await import('./enforcement-46XWPNSA.js');await o(t);});N.command("override <check-id> <severity>").description("Set a per-check severity override (block, warn, off)").action(async(t,o)=>{let{enforcementOverrideCommand:a}=await import('./enforcement-46XWPNSA.js');await a(t,o);});N.command("reset [check-id]").description("Remove a per-check override, or all overrides if no check-id given").action(async t=>{let{enforcementResetCommand:o}=await import('./enforcement-46XWPNSA.js');await o(t);});N.command("resolve").description("Output the fully resolved severity map (used by stop hook)").option("--json","Output as JSON").action(async t=>{let{enforcementResolveCommand:o}=await import('./enforcement-46XWPNSA.js');await o(t);});N.command("status",{isDefault:true}).description("Show enforcement status table (default)").option("--json","Output as JSON").action(async t=>{let{enforcementStatusCommand:o}=await import('./enforcement-46XWPNSA.js');await o(t);});i.command("compliance-check").description("Run all compliance checks (habits, drift, portal) in a single process").option("--json","Output as JSON").option("--auto-heal","Auto-heal drift violations").option("--trigger <event>","Trigger context (e.g., on-stop)","on-stop").option("--learn","Run postflight learning pass (convert session verdicts to journal entries)").action(async t=>{let{complianceCheckCommand:o}=await import('./compliance-WJINB5DM.js');await o(t);});U(i);i.parse();