@a-company/paradigm 6.3.0 → 6.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -13,4 +13,4 @@ ${y.magenta("\u2569 ")}${y.cyan("\u2534 \u2534\u2534\u2514\u2500\u2534 \u2534\u
13
13
  Usage: paradigm scan <command>
14
14
  `),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-BGXOVE2V.js');await a(t,o);});E.action(()=>{E.outputHelp();});var p=i.command("team").description("Multi-agent orchestration commands");p.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-2LGZQRP4.js');await a(t,{...o,configureModels:o.configureModels,noConfigureModels:o.configureModels===false});});p.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-2LGZQRP4.js');await a(t,o);});p.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-2LGZQRP4.js');await a(t,o);});p.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-2LGZQRP4.js');await e(t,o,a);});p.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-2LGZQRP4.js');await a(t,o);});p.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-2LGZQRP4.js');await a(t,{...o,limit:parseInt(o.limit)});});p.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-2LGZQRP4.js');await a(t,o);});p.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-KKDDR6UR.js');await e(t,o,a);});p.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-K4KBTBYK.js');await e(t,o,a);});p.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-75MABOSL.js');await e(t,o,a);});p.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-TIXUQQGR.js');await e(t,o,a);});p.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-TIXUQQGR.js');await e(t,o,a);});p.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);});p.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);});p.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-TBPOE4DI.js');await a(t,o);});p.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-2LGZQRP4.js');await a(t,o);});var $=p.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-IKY6VD2R.js');await a(t,o);});$.action(()=>{console.log(`
15
15
  Usage: paradigm team agents <command>
16
- `),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");});p.action(async()=>{let{teamStatusCommand:t}=await import('./team-2LGZQRP4.js');await t(void 0,{});});var W=i.command("plugin").description("Plugin management commands");W.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);});W.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-VMSPYIBV.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-VMSPYIBV.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-VMSPYIBV.js');await o(t);});J.action(async()=>{let{workspaceStatusCommand:t}=await import('./workspace-VMSPYIBV.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-L5XZENCF.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-ROO3G43N.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-VMSX2PKI.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-7TZFN5NS.js');await o(t);});var it=i.command("drift").description("Aspect anchor drift detection");it.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-25GJHQYT.js');await t();});i.command("summary").description("Generate .paradigm/project.md with project stats").action(async()=>{let{summaryCommand:t}=await import('./summary-WLI3NF4G.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-NWLXYATA.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-QVUD3MGP.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-FNZI47SH.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 N=i.command("wisdom").description("Team wisdom - preferences, antipatterns, decisions, expertise");N.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);});N.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);});N.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);});N.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);});N.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);});N.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 P=i.command("hooks").description("Git hooks for automatic history capture");P.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-45WDP6QS.js');await o(t);});P.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-45WDP6QS.js');await o(t);});P.command("status").description("Check git hooks status").action(async()=>{let{hooksStatusCommand:t}=await import('./hooks-45WDP6QS.js');await t();});P.action(async()=>{let{hooksStatusCommand:t}=await import('./hooks-45WDP6QS.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-2XIWUEMA.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-JH7LJ5MT.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-N3VNYYKJ.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-2INNWLTW.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-63WXHWJV.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-BDHGYJOK.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-P3MDAZLU.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-2C6ALLYY.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-YSITX7KM.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-72R2OSZV.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-RK7O2SCM.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-3FMUWW5K.js');await o(t);});var nt=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);});nt.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 et=i.command("sentinel").description("Sentinel \u2014 semantic error monitoring");et.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-EFPEX246.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").option("--pack <id>","v6.0: mount a specific content pack by id").option("--project","v6.0: mount the local project pack").option("--discipline <name>","v6.0: scope to a discipline sub-pack").action(async t=>{let{universityServeCommand:o}=await import('./serve-OQYUO7CR.js');await o(void 0,t);});g.command("list").alias("ls").description("List discovered packs (default) or entries within a pack (with --pack/--project)").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("--pack <id>","v6.0: target a specific content pack by id").option("--project","v6.0: target the local project pack").option("--discipline <name>","v6.0: scope to a discipline sub-pack").option("-l, --limit <number>","Number of entries","20").option("--json","Output as JSON").action(async t=>{let{universityListCommand:o}=await import('./list-CFHINXIS.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").option("--pack <id>","v6.0: target a specific content pack by id").option("--project","v6.0: target the local project pack (default)").option("--discipline <name>","v6.0: scope to a discipline sub-pack").action(async(t,o)=>{let{universityAddCommand:a}=await import('./add-UOR4INIV.js');await a(t,o);});g.command("show <id>").description("Show a content item in full; id accepts bare or <pack-id>:<entry-id>").option("--json","Output as JSON").option("--pack <id>","v6.0: disambiguate bare id against a specific pack").option("--project","v6.0: target the local project pack").option("--discipline <name>","v6.0: scope to a discipline sub-pack").action(async(t,o)=>{let{universityShowCommand:a}=await import('./show-WVHAL4VU.js');await a(t,o);});g.command("quiz <id>").description("Take an interactive quiz in the terminal").option("--pack <id>","v6.0: target a specific content pack by id").option("--project","v6.0: target the local project pack").option("--discipline <name>","v6.0: scope to a discipline sub-pack").action(async(t,o)=>{let{universityQuizCommand:a}=await import('./quiz-WYIZJG5K.js');await a(t,o);});g.command("status").description("Show university content overview and completion stats").option("--json","Output as JSON").option("--pack <id>","v6.0: target a specific content pack by id").option("--project","v6.0: target the local project pack").option("--discipline <name>","v6.0: scope to a discipline sub-pack").action(async t=>{let{universityStatusCommand:o}=await import('./status-S7Z5FVIE.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").option("--pack <id>","v6.0: target a specific content pack by id").option("--project","v6.0: target the local project pack").option("--discipline <name>","v6.0: scope to a discipline sub-pack").action(async t=>{let{universityValidateCommand:o}=await import('./validate-XUQZTF3H.js');await o(t);});g.command("init").description("Scaffold .paradigm/university/pack.yaml (use --discipline for sub-pack)").option("--discipline <name>","Scaffold a discipline sub-pack at .paradigm/university/<name>/").option("-f, --force","Overwrite an existing pack.yaml").action(async t=>{let{universityInitCommand:o}=await import('./init-M44SO65G.js');await o(t);});g.command("migrate-plsat",{hidden:true}).description("Migrate PLSAT JSON content to v6.0 pack layout (internal)").option("--content-dir <path>","Override source content directory").option("-f, --force","Overwrite existing target files").option("--delete-sources","Delete source JSON files after migration (gated per D4)").option("--json","Emit JSON summary").action(async t=>{let{universityMigratePlsatCommand:o}=await import('./migrate-plsat-EM2ACIQ3.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-OQYUO7CR.js');await o(void 0,t);});var I=i.command("docs").description("Auto-generated documentation from the symbol graph");I.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-TSAAS4W3.js');await o(t);});I.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-TSAAS4W3.js');await o(t);});I.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});});I.action(async()=>{let{docsServeCommand:t}=await import('./docs-TSAAS4W3.js');await t({});});var k=i.command("pipeline").description("Spec pipeline \u2014 structured feature workflow with configurable gates");k.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);});k.command("status [feature]").description("Show pipeline status").action(async t=>{let{pipelineStatusCommand:o}=await import('./pipeline-MZUITRVN.js');await o(t);});k.command("advance <feature>").description("Advance pipeline past current gate").action(async t=>{let{pipelineAdvanceCommand:o}=await import('./pipeline-MZUITRVN.js');await o(t);});k.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);});k.command("abort <feature>").description("Cancel a pipeline").action(async t=>{let{pipelineAbortCommand:o}=await import('./pipeline-MZUITRVN.js');await o(t);});k.command("list").description("List all active pipelines").action(async()=>{let{pipelineListCommand:t}=await import('./pipeline-MZUITRVN.js');await t();});k.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 Q=i.command("ambient").description("Ambient coordination \u2014 nominations, verdicts, and learning loop");Q.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-FNNFB4AP.js');await o(t);});Q.action(async()=>{let{ambientPostflightCommand:t}=await import('./ambient-FNNFB4AP.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 m=i.command("agent").description("Agent identity management \u2014 persistent profiles with expertise tracking");m.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-MB3H5EZA.js');await o(t);});m.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-MB3H5EZA.js');await a(t,o);});m.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-MB3H5EZA.js');await a(t,{...o,global:o.global!==false});});m.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-MB3H5EZA.js');await a(t,o);});var D=m.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);});m.command("bench <id>").description("Bench an agent \u2014 Maestro will skip it during orchestration").action(async t=>{let{agentBenchCommand:o}=await import('./agent-MB3H5EZA.js');await o(t);});m.command("activate <id>").description("Activate a benched agent \u2014 restore to Maestro orchestration").action(async t=>{let{agentActivateCommand:o}=await import('./agent-MB3H5EZA.js');await o(t);});m.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);});m.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);});m.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);});m.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);});m.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-OUTA3DXW.js');await a(t,o);});m.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-OUTA3DXW.js');await a(t,o);});m.command("publish").description("Publish agent to nevr.land registry").option("--namespace <ns>","Organization namespace").action(async t=>{let{agentPublishCommand:o}=await import('./registry-OUTA3DXW.js');await o(t);});m.action(async()=>{let{agentListCommand:t}=await import('./agent-MB3H5EZA.js');await t({});});var q=i.command("enforcement").description("Manage enforcement configuration (check severities and levels)");q.command("set <level>").description("Set enforcement level preset (strict, balanced, minimal)").action(async t=>{let{enforcementSetCommand:o}=await import('./enforcement-FXO6IYYE.js');await o(t);});q.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-FXO6IYYE.js');await a(t,o);});q.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-FXO6IYYE.js');await o(t);});q.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-FXO6IYYE.js');await o(t);});q.command("status",{isDefault:true}).description("Show enforcement status table (default)").option("--json","Output as JSON").action(async t=>{let{enforcementStatusCommand:o}=await import('./enforcement-FXO6IYYE.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-J3VOV445.js');await o(t);});var st=i.command("internal",{hidden:true}).description("Internal helpers for hook integration (not for direct use)");st.command("active-remediations",{hidden:true}).description("Emit JSON array of currently-active remediations (consumed by Stop hook Check 14)").option("--json","Emit JSON (default and only supported mode)").action(async t=>{let{activeRemediationsCommand:o}=await import('./active-remediations-OVJJIBNR.js');await o(t);});var M=i.command("override [id]").description("Clear active soft-block remediations authored by archetype agents").action(async t=>{if(!t){M.help();return}let{overrideClearOne:o}=await import('./override-UBST2TPS.js');await o(t);});M.command("list").description("List all currently-active remediations").action(async()=>{let{overrideList:t}=await import('./override-UBST2TPS.js');await t();});M.command("clear-all").description("Bulk-clear ALL active remediations (requires --force)").option("--force","Required to confirm destructive bulk clear").action(async t=>{let{overrideClearAll:o}=await import('./override-UBST2TPS.js');await o(t);});var K=i.command("arch").description("Query the architectural layer map (.paradigm/arch.yaml)");K.command("status",{isDefault:true}).description("Show tier summary and drift report").option("--json","Output as JSON").action(async t=>{let{archStatusCommand:o}=await import('./arch-5UVPSOG2.js');await o(t);});K.command("diagram").description("Print Mermaid diagram to stdout").action(async()=>{let{archDiagramCommand:t}=await import('./arch-5UVPSOG2.js');await t({});});G(i);i.parse();
16
+ `),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");});p.action(async()=>{let{teamStatusCommand:t}=await import('./team-2LGZQRP4.js');await t(void 0,{});});var W=i.command("plugin").description("Plugin management commands");W.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);});W.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-VMSPYIBV.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-VMSPYIBV.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-VMSPYIBV.js');await o(t);});J.action(async()=>{let{workspaceStatusCommand:t}=await import('./workspace-VMSPYIBV.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-L5XZENCF.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-ROO3G43N.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-VMSX2PKI.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-7TZFN5NS.js');await o(t);});var it=i.command("drift").description("Aspect anchor drift detection");it.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-25GJHQYT.js');await t();});i.command("summary").description("Generate .paradigm/project.md with project stats").action(async()=>{let{summaryCommand:t}=await import('./summary-WLI3NF4G.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-NWLXYATA.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-QVUD3MGP.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-FNZI47SH.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 N=i.command("wisdom").description("Team wisdom - preferences, antipatterns, decisions, expertise");N.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);});N.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);});N.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);});N.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);});N.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);});N.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 P=i.command("hooks").description("Git hooks for automatic history capture");P.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-45WDP6QS.js');await o(t);});P.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-45WDP6QS.js');await o(t);});P.command("status").description("Check git hooks status").action(async()=>{let{hooksStatusCommand:t}=await import('./hooks-45WDP6QS.js');await t();});P.action(async()=>{let{hooksStatusCommand:t}=await import('./hooks-45WDP6QS.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-2XIWUEMA.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-JH7LJ5MT.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-N3VNYYKJ.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-2INNWLTW.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-63WXHWJV.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-BDHGYJOK.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-P3MDAZLU.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-2C6ALLYY.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-YSITX7KM.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-72R2OSZV.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-RK7O2SCM.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-3FMUWW5K.js');await o(t);});var nt=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);});nt.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 et=i.command("sentinel").description("Sentinel \u2014 semantic error monitoring");et.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-EFPEX246.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").option("--pack <id>","v6.0: mount a specific content pack by id").option("--project","v6.0: mount the local project pack").option("--discipline <name>","v6.0: scope to a discipline sub-pack").action(async t=>{let{universityServeCommand:o}=await import('./serve-NAAK7PAD.js');await o(void 0,t);});g.command("list").alias("ls").description("List discovered packs (default) or entries within a pack (with --pack/--project)").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("--pack <id>","v6.0: target a specific content pack by id").option("--project","v6.0: target the local project pack").option("--discipline <name>","v6.0: scope to a discipline sub-pack").option("-l, --limit <number>","Number of entries","20").option("--json","Output as JSON").action(async t=>{let{universityListCommand:o}=await import('./list-CFHINXIS.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").option("--pack <id>","v6.0: target a specific content pack by id").option("--project","v6.0: target the local project pack (default)").option("--discipline <name>","v6.0: scope to a discipline sub-pack").action(async(t,o)=>{let{universityAddCommand:a}=await import('./add-UOR4INIV.js');await a(t,o);});g.command("show <id>").description("Show a content item in full; id accepts bare or <pack-id>:<entry-id>").option("--json","Output as JSON").option("--pack <id>","v6.0: disambiguate bare id against a specific pack").option("--project","v6.0: target the local project pack").option("--discipline <name>","v6.0: scope to a discipline sub-pack").action(async(t,o)=>{let{universityShowCommand:a}=await import('./show-WVHAL4VU.js');await a(t,o);});g.command("quiz <id>").description("Take an interactive quiz in the terminal").option("--pack <id>","v6.0: target a specific content pack by id").option("--project","v6.0: target the local project pack").option("--discipline <name>","v6.0: scope to a discipline sub-pack").action(async(t,o)=>{let{universityQuizCommand:a}=await import('./quiz-WYIZJG5K.js');await a(t,o);});g.command("status").description("Show university content overview and completion stats").option("--json","Output as JSON").option("--pack <id>","v6.0: target a specific content pack by id").option("--project","v6.0: target the local project pack").option("--discipline <name>","v6.0: scope to a discipline sub-pack").action(async t=>{let{universityStatusCommand:o}=await import('./status-S7Z5FVIE.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").option("--pack <id>","v6.0: target a specific content pack by id").option("--project","v6.0: target the local project pack").option("--discipline <name>","v6.0: scope to a discipline sub-pack").action(async t=>{let{universityValidateCommand:o}=await import('./validate-XUQZTF3H.js');await o(t);});g.command("init").description("Scaffold .paradigm/university/pack.yaml (use --discipline for sub-pack)").option("--discipline <name>","Scaffold a discipline sub-pack at .paradigm/university/<name>/").option("-f, --force","Overwrite an existing pack.yaml").action(async t=>{let{universityInitCommand:o}=await import('./init-M44SO65G.js');await o(t);});g.command("migrate-plsat",{hidden:true}).description("Migrate PLSAT JSON content to v6.0 pack layout (internal)").option("--content-dir <path>","Override source content directory").option("-f, --force","Overwrite existing target files").option("--delete-sources","Delete source JSON files after migration (gated per D4)").option("--json","Emit JSON summary").action(async t=>{let{universityMigratePlsatCommand:o}=await import('./migrate-plsat-EM2ACIQ3.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-NAAK7PAD.js');await o(void 0,t);});var I=i.command("docs").description("Auto-generated documentation from the symbol graph");I.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-TSAAS4W3.js');await o(t);});I.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-TSAAS4W3.js');await o(t);});I.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});});I.action(async()=>{let{docsServeCommand:t}=await import('./docs-TSAAS4W3.js');await t({});});var k=i.command("pipeline").description("Spec pipeline \u2014 structured feature workflow with configurable gates");k.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);});k.command("status [feature]").description("Show pipeline status").action(async t=>{let{pipelineStatusCommand:o}=await import('./pipeline-MZUITRVN.js');await o(t);});k.command("advance <feature>").description("Advance pipeline past current gate").action(async t=>{let{pipelineAdvanceCommand:o}=await import('./pipeline-MZUITRVN.js');await o(t);});k.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);});k.command("abort <feature>").description("Cancel a pipeline").action(async t=>{let{pipelineAbortCommand:o}=await import('./pipeline-MZUITRVN.js');await o(t);});k.command("list").description("List all active pipelines").action(async()=>{let{pipelineListCommand:t}=await import('./pipeline-MZUITRVN.js');await t();});k.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 Q=i.command("ambient").description("Ambient coordination \u2014 nominations, verdicts, and learning loop");Q.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-FNNFB4AP.js');await o(t);});Q.action(async()=>{let{ambientPostflightCommand:t}=await import('./ambient-FNNFB4AP.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 m=i.command("agent").description("Agent identity management \u2014 persistent profiles with expertise tracking");m.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-MB3H5EZA.js');await o(t);});m.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-MB3H5EZA.js');await a(t,o);});m.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-MB3H5EZA.js');await a(t,{...o,global:o.global!==false});});m.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-MB3H5EZA.js');await a(t,o);});var D=m.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);});m.command("bench <id>").description("Bench an agent \u2014 Maestro will skip it during orchestration").action(async t=>{let{agentBenchCommand:o}=await import('./agent-MB3H5EZA.js');await o(t);});m.command("activate <id>").description("Activate a benched agent \u2014 restore to Maestro orchestration").action(async t=>{let{agentActivateCommand:o}=await import('./agent-MB3H5EZA.js');await o(t);});m.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);});m.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);});m.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);});m.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);});m.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-OUTA3DXW.js');await a(t,o);});m.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-OUTA3DXW.js');await a(t,o);});m.command("publish").description("Publish agent to nevr.land registry").option("--namespace <ns>","Organization namespace").action(async t=>{let{agentPublishCommand:o}=await import('./registry-OUTA3DXW.js');await o(t);});m.action(async()=>{let{agentListCommand:t}=await import('./agent-MB3H5EZA.js');await t({});});var q=i.command("enforcement").description("Manage enforcement configuration (check severities and levels)");q.command("set <level>").description("Set enforcement level preset (strict, balanced, minimal)").action(async t=>{let{enforcementSetCommand:o}=await import('./enforcement-FXO6IYYE.js');await o(t);});q.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-FXO6IYYE.js');await a(t,o);});q.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-FXO6IYYE.js');await o(t);});q.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-FXO6IYYE.js');await o(t);});q.command("status",{isDefault:true}).description("Show enforcement status table (default)").option("--json","Output as JSON").action(async t=>{let{enforcementStatusCommand:o}=await import('./enforcement-FXO6IYYE.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-J3VOV445.js');await o(t);});var st=i.command("internal",{hidden:true}).description("Internal helpers for hook integration (not for direct use)");st.command("active-remediations",{hidden:true}).description("Emit JSON array of currently-active remediations (consumed by Stop hook Check 14)").option("--json","Emit JSON (default and only supported mode)").action(async t=>{let{activeRemediationsCommand:o}=await import('./active-remediations-OVJJIBNR.js');await o(t);});var M=i.command("override [id]").description("Clear active soft-block remediations authored by archetype agents").action(async t=>{if(!t){M.help();return}let{overrideClearOne:o}=await import('./override-UBST2TPS.js');await o(t);});M.command("list").description("List all currently-active remediations").action(async()=>{let{overrideList:t}=await import('./override-UBST2TPS.js');await t();});M.command("clear-all").description("Bulk-clear ALL active remediations (requires --force)").option("--force","Required to confirm destructive bulk clear").action(async t=>{let{overrideClearAll:o}=await import('./override-UBST2TPS.js');await o(t);});var K=i.command("arch").description("Query the architectural layer map (.paradigm/arch.yaml)");K.command("status",{isDefault:true}).description("Show tier summary and drift report").option("--json","Output as JSON").action(async t=>{let{archStatusCommand:o}=await import('./arch-5UVPSOG2.js');await o(t);});K.command("diagram").description("Print Mermaid diagram to stdout").action(async()=>{let{archDiagramCommand:t}=await import('./arch-5UVPSOG2.js');await t({});});G(i);i.parse();
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {b}from'./chunk-Z5QW6USC.js';import'./chunk-5TAVYPOV.js';import e from'chalk';import*as o from'path';import {fileURLToPath}from'url';var y=fileURLToPath(import.meta.url),c=o.dirname(y);async function E(g,t){let i=parseInt(t.port||"3839",10),l=t.open!==false,p=process.cwd(),r=!!(t.pack||t.project||t.discipline)?b(p,t):null;console.log(e.cyan(`
3
3
  Opening the campus gates...
4
- `));try{let{startServer:n}=await import('./server-FGUL2FWQ.js'),s=o.resolve(c,"university-content");r&&(s=o.join(r.subPackRoot??r.packRoot,"content"));let d=o.resolve(c,"university-ui");console.log(e.gray(`Port: ${i}`)),r&&console.log(e.gray(`Pack: ${r.subPackId??r.packId}`)),console.log(),await n({port:i,open:l,contentDir:s,uiDistPath:d,projectDir:process.cwd()}),console.log(e.green(`
4
+ `));try{let{startServer:n}=await import('./server-SHD4ELRO.js'),s=o.resolve(c,"university-content");r&&(s=o.join(r.subPackRoot??r.packRoot,"content"));let d=o.resolve(c,"university-ui");console.log(e.gray(`Port: ${i}`)),r&&console.log(e.gray(`Pack: ${r.subPackId??r.packId}`)),console.log(),await n({port:i,open:l,contentDir:s,uiDistPath:d,projectDir:process.cwd()}),console.log(e.green(`
5
5
  Paradigm University is running at http://localhost:${i}`)),console.log(e.gray(`
6
6
  Press Ctrl+C to stop
7
7
  `)),await new Promise(()=>{});}catch(n){n.code==="ERR_MODULE_NOT_FOUND"||n.code==="MODULE_NOT_FOUND"?(console.error(e.red(`
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ import'./chunk-5TAVYPOV.js';import P,{Router}from'express';import*as u from'path';import*as c from'fs';import {fileURLToPath}from'url';import f from'chalk';import*as I from'js-yaml';function k(e){let t=e.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n([\s\S]*)$/);if(!t)return null;try{return {fm:M(t[1]),body:t[2].trim()}}catch{return null}}function M(e){let t={},i=e.split(/\r?\n/);for(let s of i){if(!s.trim()||s.trim().startsWith("#"))continue;let r=s.match(/^([A-Za-z_][A-Za-z0-9_-]*)\s*:\s*(.*)$/);if(!r)continue;let n=r[1],o=r[2],a=r[2].trim();if(a.startsWith("[")&&a.endsWith("]")){let l=a.slice(1,-1).trim();o=l.length===0?[]:l.split(",").map(p=>p.trim().replace(/^['"]|['"]$/g,""));}else a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'")?o=a.slice(1,-1):/^\d+$/.test(a)?o=parseInt(a,10):a==="true"||a==="false"?o=a==="true":o=a;t[n]=o;}return t}function b(e){try{let t=c.readFileSync(e,"utf-8");return I.load(t)}catch{return null}}function E(e){let t=u.join(e,"paths");if(!c.existsSync(t))return [];let i=c.readdirSync(t).filter(r=>r.startsWith("LP-")&&r.endsWith(".yaml")),s=[];for(let r of i){let n=b(u.join(t,r));n?.id&&s.push(n);}return s}function L(e,t,i){let s=u.join(e,"notes"),r=u.join(e,"quizzes"),n=[],o=new Set,a=i.steps||[];for(let l of a){let p=l.content;if(!p.startsWith("N-")||o.has(p))continue;o.add(p);let d=p.slice(`N-${t}-`.length),g=u.join(s,`${p}.md`);if(!c.existsSync(g))continue;let D=c.readFileSync(g,"utf-8"),j=k(D);if(!j)continue;let m=j.fm,h={id:d,title:m.title||d,content:j.body,keyConcepts:Array.isArray(m.tags)?m.tags:[],quiz:[]},$=u.join(r,`Q-${t}-${d}.yaml`);if(c.existsSync($)){let v=b($);v?.questions&&(h.quiz=v.questions);}n.push(h);}return n}function O(e,t){let i=u.join(e,"paths",`LP-${t}.yaml`);if(!c.existsSync(i))return null;let s=b(i);if(!s?.id)return null;let r=L(e,t,s);return {id:t,title:s.title,description:s.description||"",lessons:r}}function R(e){let t=Router();return t.get("/",(i,s)=>{let r=E(e).filter(n=>n.id.startsWith("LP-para-")).map(n=>{let o=n.id.slice(3),a=L(e,o,n);return {id:o,title:n.title,description:n.description||"",lessonCount:a.length,lessons:a.map(l=>({id:l.id,title:l.title}))}});return r.sort((n,o)=>n.id.localeCompare(o.id)),s.json({courses:r})}),t.get("/:id",(i,s)=>{let r=O(e,i.params.id);return r?s.json(r):s.status(404).json({error:`Course '${i.params.id}' not found`})}),t.get("/:id/lessons/:lessonId",(i,s)=>{let r=O(e,i.params.id);if(!r)return s.status(404).json({error:`Course '${i.params.id}' not found`});let n=r.lessons.find(o=>o.id===i.params.lessonId);return n?s.json(n):s.status(404).json({error:`Lesson '${i.params.lessonId}' not found`})}),t}function q(e){try{let t=c.readFileSync(e,"utf-8");return I.load(t)}catch{return null}}function J(e){for(let t=e.length-1;t>0;t--){let i=Math.floor(Math.random()*(t+1));[e[t],e[i]]=[e[i],e[t]];}return e}function U(e){if(!e.variants||e.variants.length===0)return e;let t=[{id:e.id,scenario:e.scenario??"",question:e.question,choices:e.choices,correct:e.correct,explanation:e.explanation??""},...e.variants];return t[Math.floor(Math.random()*t.length)]}function V(e){return e.questions.length}function Q(e){let t={},i=[],s=new Map;for(let r of e.questions){let n=U(r),o={id:n.id,course:r.section??"",scenario:n.scenario??r.scenario??"",question:n.question,choices:n.choices,correct:n.correct,explanation:n.explanation??r.explanation??"",...r.passageId?{passageId:r.passageId}:{}};r.passageId?(r.passage&&(t[r.passageId]=r.passage),s.has(r.passageId)||s.set(r.passageId,[]),s.get(r.passageId).push(o)):i.push([o]);}for(let r of s.values())i.push(r);return J(i),{questions:i.flat(),passages:t}}function Z(e,t){let i=Router(),s=u.join(e,"quizzes");return i.get("/",(r,n)=>{if(!c.existsSync(s))return n.json({versions:[]});let o=c.readdirSync(s).filter(a=>a.startsWith("Q-plsat-v")&&a.endsWith(".yaml")).map(a=>{let l=q(u.join(s,a));if(!l)return null;let p=a.match(/^Q-plsat-v(\d+)\.yaml$/);return {version:p?`${p[1]}.0`:"0.0",frameworkVersion:"2.0",questionCount:V(l),timeLimit:l.timeLimit,passThreshold:l.passThreshold}}).filter(a=>a!==null);return o.sort((a,l)=>l.version.localeCompare(a.version)),n.json({versions:o})}),i.get("/:version",(r,n)=>{try{let o=r.params.version.split(".")[0],a=u.join(s,`Q-plsat-v${o}.yaml`);if(!c.existsSync(a))return n.status(404).json({error:`PLSAT version '${r.params.version}' not found`});let l=q(a);if(!l)return n.status(500).json({error:"Failed to parse PLSAT exam"});let{questions:p,passages:d}=Q(l);return n.json({version:r.params.version,frameworkVersion:"2.0",timeLimit:l.timeLimit,passThreshold:l.passThreshold,title:l.title,description:l.description??"",questions:p,...Object.keys(d).length>0?{passages:d}:{}})}catch(o){let a=o instanceof Error?o.message:"Internal error";return n.status(500).json({error:`Failed to load PLSAT exam: ${a}`})}}),i.post("/diploma",(r,n)=>{if(!t)return n.status(400).json({error:"No project directory configured"});let o=u.join(t,".paradigm","university","diplomas");if(!c.existsSync(o))return n.json({saved:false,reason:"university directory not found"});try{let{student:a,version:l,score:p,total:d,percentage:g,passed:D}=r.body;if(!a||!l||p==null||d==null)return n.status(400).json({error:"Missing required fields: student, version, score, total"});let j=new Date().toISOString().slice(0,10),m=String(a).toLowerCase().replace(/[^a-z0-9-]/g,"-").slice(0,20),h=`D-${j}-${m}-plsat-v${l}`,$={id:h,type:"plsat",student:m,earnedAt:new Date().toISOString(),source:`plsat:v${l}`,score:p,total:d,percentage:g??(d>0?Math.round(p/d*1e4)/100:0),passed:D??!1,details:{plsatVersion:l}},v=u.join(o,`${h}.yaml`),W=Object.entries($).map(([w,S])=>{if(typeof S=="object"&&S!==null){let F=Object.entries(S).map(([z,C])=>` ${z}: ${JSON.stringify(C)}`).join(`
3
+ `);return `${w}:
4
+ ${F}`}return `${w}: ${JSON.stringify(S)}`});return c.writeFileSync(v,W.join(`
5
+ `)+`
6
+ `,"utf8"),n.json({saved:!0,diplomaId:h})}catch(a){let l=a instanceof Error?a.message:"Internal error";return n.status(500).json({error:`Failed to save diploma: ${l}`})}}),i}var _=fileURLToPath(import.meta.url),x=u.dirname(_);function G(e){let t=e;for(;t!==u.dirname(t);){if(c.existsSync(u.join(t,"package.json"))&&JSON.parse(c.readFileSync(u.join(t,"package.json"),"utf-8")).name==="@a-company/university")return t;t=u.dirname(t);}return e}var y={component(e){let t=f.magenta(`#${e}`);return {info:(i,s)=>{let r=s?f.gray(` ${Object.entries(s).map(([n,o])=>`${n}=${o}`).join(" ")}`):"";console.log(`${f.blue("\u2139")} ${t} ${i}${r}`);},success:(i,s)=>{let r=s?f.gray(` ${Object.entries(s).map(([n,o])=>`${n}=${o}`).join(" ")}`):"";console.log(`${f.green("\u2714")} ${t} ${i}${r}`);},warn:(i,s)=>{let r=s?f.gray(` ${Object.entries(s).map(([n,o])=>`${n}=${o}`).join(" ")}`):"";console.log(`${f.yellow("\u26A0")} ${t} ${i}${r}`);},error:(i,s)=>{let r=s?f.gray(` ${Object.entries(s).map(([n,o])=>`${n}=${o}`).join(" ")}`):"";console.error(`${f.red("\u2716")} ${t} ${i}${r}`);}}}};function B(e){if(e?.contentDir&&e?.uiDistPath)return {contentDir:e.contentDir,uiDistPath:e.uiDistPath};let t=u.join(x,"university-content"),i=u.join(x,"university-ui");if(c.existsSync(t)&&c.existsSync(i))return {contentDir:e?.contentDir||t,uiDistPath:e?.uiDistPath||i};let s=G(x);return {contentDir:e?.contentDir||u.join(s,"src","content"),uiDistPath:e?.uiDistPath||u.join(s,"ui","dist")}}function T(e){let t=P();t.use(P.json()),t.use((r,n,o)=>{n.header("Access-Control-Allow-Origin","*"),n.header("Access-Control-Allow-Methods","GET, POST, PUT, DELETE, OPTIONS"),n.header("Access-Control-Allow-Headers","Content-Type"),o();});let{contentDir:i,uiDistPath:s}=B(e);return t.use("/api/courses",R(i)),t.use("/api/plsat",Z(i,e?.projectDir)),t.get("/api/reference",(r,n)=>{let o=u.join(i,"reference.json");if(c.existsSync(o)){let a=JSON.parse(c.readFileSync(o,"utf-8"));n.json(a);}else n.status(404).json({error:"Reference data not found"});}),t.get("/api/health",(r,n)=>{n.json({status:"ok",timestamp:new Date().toISOString()});}),c.existsSync(s)&&(t.use(P.static(s)),t.get("{*path}",(r,n)=>{r.path.startsWith("/api")||n.sendFile(u.join(s,"index.html"));})),t}async function H(e){let t=T({contentDir:e.contentDir,uiDistPath:e.uiDistPath,projectDir:e.projectDir});return y.component("university-server").info("Starting server",{port:e.port}),new Promise((i,s)=>{t.listen(e.port,()=>{y.component("university-server").success("Server running",{url:`http://localhost:${e.port}`}),e.open&&import('open').then(r=>{r.default(`http://localhost:${e.port}`),y.component("university-server").info("Opened browser");}).catch(()=>{y.component("university-server").warn("Could not open browser automatically");}),i();}).on("error",r=>{r.code==="EADDRINUSE"?y.component("university-server").error("Port already in use",{port:e.port}):y.component("university-server").error("Server error",{error:r.message}),s(r);});})}
7
+ export{T as createApp,H as startServer};
@@ -3,7 +3,7 @@ title: 'PARA 401: Orchestration — Agent Notebooks & Permission Scoping'
3
3
  description: 'Quiz for lesson: Agent Notebooks & Permission Scoping'
4
4
  author: paradigm
5
5
  created: '2026-04-22'
6
- updated: '2026-04-22'
6
+ updated: '2026-05-06'
7
7
  tags:
8
8
  - course
9
9
  - para-401
@@ -16,46 +16,46 @@ source: courses/para-401.json
16
16
  questions:
17
17
  - id: Q-401-NP-001
18
18
  question: Where are global notebook entries stored for the architect agent?
19
- options:
20
- - ~/.paradigm/notebooks/architect/
21
- - .paradigm/notebooks/architect/
22
- - ~/.paradigm/agents/architect/notebooks/
23
- - .paradigm/agents/architect.notebooks
24
- correct: 0
19
+ choices:
20
+ A: ~/.paradigm/notebooks/architect/
21
+ B: .paradigm/notebooks/architect/
22
+ C: ~/.paradigm/agents/architect/notebooks/
23
+ D: .paradigm/agents/architect.notebooks
24
+ correct: A
25
25
  explanation: Global notebook entries are stored at ~/.paradigm/notebooks/{agent-id}/ and travel across projects.
26
26
  - id: Q-401-NP-002
27
27
  question: 'An agent has permissions.paths.deny: [".paradigm/agents/*"]. What happens if it tries to write to .paradigm/agents/builder.agent?'
28
- options:
29
- - The write succeeds if there's also a write pattern matching it
30
- - The write is flagged as denied — deny patterns always override allow patterns
31
- - The write succeeds but triggers an advisory
32
- - The agent profile is deleted
33
- correct: 1
28
+ choices:
29
+ A: The write succeeds if there's also a write pattern matching it
30
+ B: The write is flagged as denied — deny patterns always override allow patterns
31
+ C: The write succeeds but triggers an advisory
32
+ D: The agent profile is deleted
33
+ correct: B
34
34
  explanation: Deny patterns always override allow patterns. checkPathPermission() checks deny first.
35
35
  - id: Q-401-NP-003
36
36
  question: You want to extract a reusable pattern from lore entry L-2026-03-10-001 into the architect's notebook. Which MCP tool?
37
- options:
38
- - paradigm_notebook_add with loreEntryId parameter
39
- - paradigm_lore_promote with agentId parameter
40
- - paradigm_notebook_promote with agentId + loreEntryId
41
- - 'paradigm_agent_notebook with action: ''promote'''
42
- correct: 2
37
+ choices:
38
+ A: paradigm_notebook_add with loreEntryId parameter
39
+ B: paradigm_lore_promote with agentId parameter
40
+ C: paradigm_notebook_promote with agentId + loreEntryId
41
+ D: 'paradigm_agent_notebook with action: ''promote'''
42
+ correct: C
43
43
  explanation: paradigm_notebook_promote takes agentId + loreEntryId and creates a distilled notebook entry with provenance link.
44
44
  - id: Q-401-NP-004
45
45
  question: 'An architect agent has 3 notebook entries matching #auth-middleware. How does orchestration use them?'
46
- options:
47
- - They replace the agent's expertise section in the prompt
48
- - buildProfileEnrichment() appends a 'Relevant Notebook Entries' section with context + snippet
49
- - They are sent as separate tool calls before the main prompt
50
- - They override the agent's personality settings
51
- correct: 1
46
+ choices:
47
+ A: They replace the agent's expertise section in the prompt
48
+ B: buildProfileEnrichment() appends a 'Relevant Notebook Entries' section with context + snippet
49
+ C: They are sent as separate tool calls before the main prompt
50
+ D: They override the agent's personality settings
51
+ correct: B
52
52
  explanation: buildProfileEnrichment() appends notebook entries (up to 5) with context + truncated snippet to the orchestration prompt.
53
53
  - id: Q-401-NP-005
54
54
  question: A .agent file's integrityHash doesn't match the computed hash. What does this indicate?
55
- options:
56
- - The file was created before v4.0 and needs migration
57
- - The file was modified without going through saveAgentProfile() — possible tampering
58
- - The agent's expertise has been updated since the hash was computed
59
- - The hash algorithm has changed between versions
60
- correct: 1
61
- explanation: verifyIntegrity() returns false when the stored hash doesn't match. The hash covers id+role+permissions, so changes to those fields without saveAgentProfile() indicate tampering.
55
+ choices:
56
+ A: The file was created before v4.0 and needs migration
57
+ B: The file was modified without going through saveAgentProfile() — possible tampering
58
+ C: The agent's expertise has been updated since the hash was computed
59
+ D: The hash algorithm has changed between versions
60
+ correct: B
61
+ explanation: "verifyIntegrity() returns false when the stored hash doesn't match. The hash covers id+role+permissions, so changes to those fields without saveAgentProfile() indicate tampering."
@@ -3,7 +3,7 @@ title: 'PARA 501: Advanced Systems — Automated Review Pipeline & Compliance Ch
3
3
  description: 'Quiz for lesson: Automated Review Pipeline & Compliance Checking'
4
4
  author: paradigm
5
5
  created: '2026-04-22'
6
- updated: '2026-04-22'
6
+ updated: '2026-05-06'
7
7
  tags:
8
8
  - course
9
9
  - para-501
@@ -16,46 +16,46 @@ source: courses/para-501.json
16
16
  questions:
17
17
  - id: Q-501-RC-001
18
18
  question: paradigm review --ci finds 2 blocking and 3 improvement findings. What's the exit code?
19
- options:
20
- - Exit code 0 — improvements are non-blocking
21
- - Exit code 1 — any blocking findings cause non-zero exit in CI mode
22
- - Exit code 2 — one per blocking finding
23
- - Exit code 5 — total findings count
24
- correct: 1
19
+ choices:
20
+ A: Exit code 0 — improvements are non-blocking
21
+ B: Exit code 1 — any blocking findings cause non-zero exit in CI mode
22
+ C: Exit code 2 — one per blocking finding
23
+ D: Exit code 5 — total findings count
24
+ correct: B
25
25
  explanation: In CI mode, any blocking findings cause exit code 1. Improvements and notes do not affect the exit code.
26
26
  - id: Q-501-RC-002
27
27
  question: 'A project has no features: section in config.yaml. How many MCP tools are loaded?'
28
- options:
29
- - Only core tools (~15)
30
- - Core + explicitly enabled features
31
- - All of them — auto-detection is generous, defaulting to current behavior
32
- - None — features must be explicitly configured
33
- correct: 2
28
+ choices:
29
+ A: Only core tools (~15)
30
+ B: Core + explicitly enabled features
31
+ C: All of them — auto-detection is generous, defaulting to current behavior
32
+ D: None — features must be explicitly configured
33
+ correct: C
34
34
  explanation: No features config + generous auto-detection = all tools loaded, matching pre-4.0 behavior for backward compat.
35
35
  - id: Q-501-RC-003
36
36
  question: 'You call paradigm_search with response_format: ''concise''. What fields are returned?'
37
- options:
38
- - Full results with descriptions, paths, and fuzzy matches
39
- - Only { symbol, type } per result — descriptions and secondary data stripped
40
- - Only symbol names as a flat array
41
- - Compressed binary format
42
- correct: 1
37
+ choices:
38
+ A: Full results with descriptions, paths, and fuzzy matches
39
+ B: Only { symbol, type } per result — descriptions and secondary data stripped
40
+ C: Only symbol names as a flat array
41
+ D: Compressed binary format
42
+ correct: B
43
43
  explanation: Concise mode strips results to { symbol, type } per entry and removes fuzzyMatched, fuzzyNote, suggestions, workspace data.
44
44
  - id: Q-501-RC-004
45
45
  question: An agent needs the graph generation tool but it's in the advanced tier. What does it do?
46
- options:
47
- - Request an admin to enable it in config.yaml
48
- - 'Call paradigm_tool_activate with feature: ''graph'''
49
- - Modify the agent's permissions to include graph tools
50
- - Restart the session with --enable-graph flag
51
- correct: 1
46
+ choices:
47
+ A: Request an admin to enable it in config.yaml
48
+ B: 'Call paradigm_tool_activate with feature: ''graph'''
49
+ C: Modify the agent's permissions to include graph tools
50
+ D: Restart the session with --enable-graph flag
51
+ correct: B
52
52
  explanation: paradigm_tool_activate enables advanced-tier modules for the current session. The tools become available immediately.
53
53
  - id: Q-501-RC-005
54
54
  question: What's the relationship between paradigm review Stage 1 and paradigm_pm_postflight?
55
- options:
56
- - They are completely independent with different checks
57
- - paradigm review calls paradigm_pm_postflight internally
58
- - They share the same compliance logic extracted into compliance-checker.ts
59
- - paradigm_pm_postflight is deprecated in favor of paradigm review
60
- correct: 2
55
+ choices:
56
+ A: They are completely independent with different checks
57
+ B: paradigm review calls paradigm_pm_postflight internally
58
+ C: They share the same compliance logic extracted into compliance-checker.ts
59
+ D: paradigm_pm_postflight is deprecated in favor of paradigm review
60
+ correct: C
61
61
  explanation: Both use compliance-checker.ts for shared compliance logic — purpose coverage, portal gates, aspect anchors, and broken refs.