@a-company/paradigm 6.0.2 → 6.0.5
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/{accept-orchestration-QQISPINV.js → accept-orchestration-TIXUQQGR.js} +1 -1
- package/dist/active-remediations-EBLHRMNN.js +5 -0
- package/dist/agent-MB3H5EZA.js +33 -0
- package/dist/{agent-loader-2WJHD46U.js → agent-loader-VGBPL3TH.js} +1 -1
- package/dist/{agent-loader-YKS2PQWO.js → agent-loader-W3RQJVW7.js} +1 -1
- package/dist/{agents-suggest-HYTFMQD3.js → agents-suggest-IKY6VD2R.js} +1 -1
- package/dist/{ambient-NVKQCW2A.js → ambient-AI42BOM5.js} +2 -2
- package/dist/{ambient-BE3SQXNN.js → ambient-FNNFB4AP.js} +1 -1
- package/dist/authority-GCMPX7RW.js +2 -0
- package/dist/{chunk-FEYOQMZ5.js → chunk-2AU5L333.js} +1 -1
- package/dist/{chunk-M3PPXJU4.js → chunk-4N56FRNE.js} +1 -1
- package/dist/{chunk-3DZK54RU.js → chunk-5RFISGUW.js} +110 -22
- package/dist/{chunk-TNVWGPCE.js → chunk-6QXBXZF6.js} +1 -1
- package/dist/{chunk-WESTEMIM.js → chunk-AMLD7IYC.js} +1 -1
- package/dist/{chunk-VXIIVMTM.js → chunk-F6E3HW45.js} +1 -1
- package/dist/{chunk-TBWWFRL5.js → chunk-GD4F2HC6.js} +1 -1
- package/dist/{chunk-6SKSV5B2.js → chunk-IOVHF4SR.js} +1 -1
- package/dist/{chunk-PHEX6LU4.js → chunk-K7EQHFZP.js} +26 -26
- package/dist/{chunk-M2HKWR25.js → chunk-KAFQA7HV.js} +2 -2
- package/dist/{chunk-GAFKOFAV.js → chunk-LAYBUKMB.js} +1 -1
- package/dist/{chunk-TZDYIPVU.js → chunk-MOVDVBU7.js} +133 -49
- package/dist/{chunk-AO7ZSRME.js → chunk-TQOT2LBO.js} +2 -2
- package/dist/chunk-XQLO5URP.js +11 -0
- package/dist/{compliance-BNFWQPKM.js → compliance-J3VOV445.js} +1 -1
- package/dist/{diff-MF55KQZH.js → diff-75MABOSL.js} +1 -1
- package/dist/{docs-O37YLLRN.js → docs-TSAAS4W3.js} +1 -1
- package/dist/doctor-L5XZENCF.js +2 -0
- package/dist/{hooks-TFMMMB2H.js → hooks-45WDP6QS.js} +1 -1
- package/dist/index.js +4 -4
- package/dist/mcp.js +2 -2
- package/dist/{migrate-Z5UQN57G.js → migrate-R64OQGSM.js} +1 -1
- package/dist/migration-notices-MRZ6PVDS.js +4 -0
- package/dist/{nomination-engine-QPZJH6XO.js → nomination-engine-NCLTGMAK.js} +1 -1
- package/dist/{orchestrate-RID7HHHH.js → orchestrate-K4KBTBYK.js} +1 -1
- package/dist/{providers-4PXMWA7V.js → providers-TBPOE4DI.js} +1 -1
- package/dist/registry-OUTA3DXW.js +20 -0
- package/dist/reindex-GSRV4MQO.js +2 -0
- package/dist/{serve-MO35XIZE.js → serve-3FMUWW5K.js} +1 -1
- package/dist/session-tracker-HHNY6J4I.js +2 -0
- package/dist/{session-work-log-EE4UIZ33.js → session-work-log-MEJ33TYD.js} +1 -1
- package/dist/{session-work-log-4IEVE4KK.js → session-work-log-ZVVJGO7X.js} +1 -1
- package/dist/shift-3ATE2ONQ.js +60 -0
- package/dist/{spawn-UH5RENSE.js → spawn-KKDDR6UR.js} +1 -1
- package/dist/{team-MGT66HZQ.js → team-2LGZQRP4.js} +1 -1
- package/dist/tools-VNDXOFXR.js +2 -0
- package/dist/university-content/notes/N-para-451-agent-routing.md +117 -0
- package/dist/university-content/notes/N-para-451-archetypes-vs-instances.md +82 -0
- package/dist/university-content/notes/N-para-451-identity-layers.md +76 -0
- package/dist/university-content/notes/N-para-451-orchestration-modes.md +85 -0
- package/dist/university-content/notes/N-para-451-paradigm-shift.md +95 -0
- package/dist/university-content/notes/N-para-451-partners-primitive.md +107 -0
- package/dist/university-content/notes/N-para-451-roster-management.md +132 -0
- package/dist/university-content/notes/N-para-451-roster-reference.md +106 -0
- package/dist/university-content/notes/N-para-451-the-team-pattern.md +87 -0
- package/dist/university-content/notes/N-para-451-tiers.md +83 -0
- package/dist/university-content/notes/N-para-451-welcome.md +55 -0
- package/dist/university-content/notes/N-para-451-what-is-an-agent.md +73 -0
- package/dist/university-content/paths/LP-para-451.yaml +69 -0
- package/dist/university-content/quizzes/Q-para-451-foundations.yaml +154 -0
- package/dist/university-content/quizzes/Q-para-451-when-to-invoke.yaml +182 -0
- package/dist/university-ui/assets/{index-nNgzO1il.js → index-CkgaxOXi.js} +2 -2
- package/dist/university-ui/assets/{index-nNgzO1il.js.map → index-CkgaxOXi.js.map} +1 -1
- package/dist/university-ui/index.html +1 -1
- package/package.json +1 -1
- package/dist/agent-X6I2YWOB.js +0 -33
- package/dist/chunk-R5ECMBIV.js +0 -11
- package/dist/doctor-IG5XM4C4.js +0 -2
- package/dist/registry-KOOKFUWD.js +0 -20
- package/dist/reindex-FWPD2VGM.js +0 -2
- package/dist/session-tracker-KGORN6B5.js +0 -2
- package/dist/shift-TVNY2CQF.js +0 -60
- package/dist/tools-QJHAVYI6.js +0 -2
- /package/dist/{chunk-IZSBGW6E.js → chunk-HXGYVS2N.js} +0 -0
- /package/dist/{platform-server-UD45NTGV.js → platform-server-ANOALDPL.js} +0 -0
package/dist/index.js
CHANGED
|
@@ -3,14 +3,14 @@ import {a}from'./chunk-LKAT7IAK.js';import'./chunk-5TAVYPOV.js';import {Command}
|
|
|
3
3
|
${y.magenta("\u2554\u2550\u2557")}${y.cyan("\u250C\u2500\u2510\u252C\u2500\u2510\u250C\u2500\u2510\u250C\u252C\u2510\u252C \u250C\u2500\u2510\u250C\u252C\u2510")}
|
|
4
4
|
${y.magenta("\u2560\u2550\u255D")}${y.cyan("\u251C\u2500\u2524\u251C\u252C\u2518\u251C\u2500\u2524 \u2502\u2502\u2502 \u251C\u2500\u2510\u2502\u2502\u2502")}
|
|
5
5
|
${y.magenta("\u2569 ")}${y.cyan("\u2534 \u2534\u2534\u2514\u2500\u2534 \u2534\u2500\u2534\u2518\u2534 \u2514\u2500\u2518\u2534 \u2534")} ${y.gray(`v${G}`)}
|
|
6
|
-
`;i.name("paradigm").description("Unified developer tools ecosystem").version(G).addHelpText("before",Y);i.command("init").description("Initialize Paradigm in the current project").option("-f, --force","Overwrite existing files").option("--name <name>","Project name").option("--ide <ide>","Target IDE: cursor, copilot, windsurf, claude").option("--stack <stack>","Stack preset (e.g., nextjs, fastapi, swift-ios). Auto-detected if omitted.").option("--migrate","Output migration prompt for existing IDE files").option("--quick","Non-interactive mode with smart defaults").option("--dry-run","Show what would be created without creating").action(async t=>{let{initCommand:o}=await import('./init-V4KSEKPK.js');await o(t);});i.command("shift").description("Full project setup in one command (init + team init + scan + sync all IDEs + doctor)").option("-f, --force","Reinitialize even if already setup").option("-q, --quick","Skip slow operations (scan)").option("--verify","Run health checks after setup").option("--ide <ide>","Target specific IDE instead of all").option("--configure-models","Force model configuration prompts for team agents").option("--stack <stack>","Stack preset (e.g., nextjs, fastapi, swift-ios). Auto-detected if omitted.").option("--workspace <name>","Create or join a multi-project workspace with this name (creates ../.paradigm-workspace)").option("--workspace-path <path>","Custom workspace file location (default: ../.paradigm-workspace)").action(async t=>{let{shiftCommand:o}=await import('./shift-
|
|
6
|
+
`;i.name("paradigm").description("Unified developer tools ecosystem").version(G).addHelpText("before",Y);i.hook("preAction",async()=>{try{let{checkAndEmitMigrationNotices:t}=await import('./migration-notices-MRZ6PVDS.js');await t(process.cwd());}catch{}});i.command("init").description("Initialize Paradigm in the current project").option("-f, --force","Overwrite existing files").option("--name <name>","Project name").option("--ide <ide>","Target IDE: cursor, copilot, windsurf, claude").option("--stack <stack>","Stack preset (e.g., nextjs, fastapi, swift-ios). Auto-detected if omitted.").option("--migrate","Output migration prompt for existing IDE files").option("--quick","Non-interactive mode with smart defaults").option("--dry-run","Show what would be created without creating").action(async t=>{let{initCommand:o}=await import('./init-V4KSEKPK.js');await o(t);});i.command("shift").description("Full project setup in one command (init + team init + scan + sync all IDEs + doctor)").option("-f, --force","Reinitialize even if already setup").option("-q, --quick","Skip slow operations (scan)").option("--verify","Run health checks after setup").option("--ide <ide>","Target specific IDE instead of all").option("--configure-models","Force model configuration prompts for team agents").option("--stack <stack>","Stack preset (e.g., nextjs, fastapi, swift-ios). Auto-detected if omitted.").option("--workspace <name>","Create or join a multi-project workspace with this name (creates ../.paradigm-workspace)").option("--workspace-path <path>","Custom workspace file location (default: ../.paradigm-workspace)").option("--no-prompt","Skip interactive prompts (e.g., compliance-archetype nomination)").action(async t=>{let{shiftCommand:o}=await import('./shift-3ATE2ONQ.js');await o(t);});i.command("presets").description("List available stack presets for paradigm init/shift").option("-d, --discipline <discipline>","Filter by discipline (e.g., fullstack, api, mobile)").action(async t=>{let{listStackPresets:o}=await import('./discipline-H7LDI6NT.js'),a=(await import('chalk')).default,e=o(t.discipline);if(e.length===0){console.log(a.yellow(`
|
|
7
7
|
No presets found${t.discipline?` for discipline: ${t.discipline}`:""}
|
|
8
8
|
`));return}console.log(a.blue(`
|
|
9
9
|
Available Stack Presets
|
|
10
10
|
`)),console.log(a.gray(` Use with: paradigm init --stack <id> or paradigm shift --stack <id>
|
|
11
11
|
`));let u=new Map;for(let O of e){let n=u.get(O.discipline)||[];n.push(O),u.set(O.discipline,n);}for(let[O,n]of u){console.log(a.white(` ${O}`));for(let s of n)console.log(a.cyan(` ${s.id.padEnd(20)}`)+a.gray(s.name));console.log("");}console.log(a.gray(` ${e.length} presets available. Auto-detected when --stack is omitted.
|
|
12
|
-
`));});var Z=i.command("event").description("Ambient event stream commands");Z.command("emit").description("Emit an event to the ambient event stream (fast, for hook integration)").requiredOption("--type <type>","Event type (e.g., file-modified, compliance-violation)").requiredOption("--source <source>","Event source (e.g., post-write-hook, stop-hook)").option("--path <path>","File path (if applicable)").option("--symbols <symbols...>","Paradigm symbols referenced").option("--context <context>","Brief context snippet").option("--severity <severity>","Severity: info, warning, error, critical").action(async t=>{let{eventEmitCommand:o}=await import('./event-Y3VXC2RV.js');await o(t);});i.command("setup [path]").description("Interactive setup wizard for Paradigm").option("-y, --yes","Accept all defaults (non-interactive)").option("-f, --force","Overwrite existing .paradigm config").action(async(t,o)=>{let{setupCommand:a}=await import('./setup-ZSEC72BS.js');await a(t,o);});i.command("status").alias("st").description("Show project status and symbol counts").action(async()=>{let{statusCommand:t}=await import('./status-DB3KNLW3.js');await t();});var z=i.command("purpose").description("Purpose-related commands");z.command("remember [path]").description("Aggregate and display purpose context").action(async(t=".")=>{let{purposeRememberCommand:o}=await import('./remember-MJRNTXYS.js');await o(t);});z.command("validate [path]").description("Validate purpose files").action(async(t=".")=>{let{purposeValidateCommand:o}=await import('./validate-LSCDOLBO.js');await o(t);});var j=i.command("portal").description("Portal-related commands");j.command("validate [path]").description("Validate portal.yaml configuration").action(async(t="./portal.yaml")=>{let{gateValidateCommand:o}=await import('./validate-BB6LRWIY.js');await o(t);});j.command("check").description("Check portal gate implementation compliance (declared vs used)").option("--json","Output as JSON").action(async t=>{let{portalCheckCommand:o}=await import('./portal-check-DV2VSJ5E.js');await o(t);});j.command("test [path]").description("Test portals and generate test files").option("--generate","Generate test files from portal.yaml").option("--portal <portalId>","Test specific portal").option("--component","Validate component access").option("--framework <framework>","Test framework (jest, vitest, mocha)","jest").option("--output <dir>","Output directory for generated tests","tests/portals").action(async(t,o)=>{let{gateTestCommand:a}=await import('./test-WLEPZQFC.js');await a(t,o);});j.command("watch [path]").alias("w").description("Launch the Portal Viewer - real-time visualization dashboard").option("-p, --port <port>","WebSocket port for SDK connections","42196").option("-u, --ui-port <port>","HTTP port for UI","42195").option("-c, --config <path>","Path to portal.yaml config").option("--no-open","Do not auto-open browser").action(async(t,o)=>{let{portalWatchCommand:a}=await import('./watch-PZCCUP6K.js');await a(t,o);});j.command("report <session>").description("Generate a report from a session file").option("-f, --format <format>","Output format: json, markdown, slack, discord","markdown").option("-o, --output <path>","Output file path").action(async(t,o)=>{let{portalReportCommand:a}=await import('./watch-PZCCUP6K.js');await a(t,o);});j.command("export [path]").description("Export portal configuration in json, csv, or markdown format").option("-f, --format <format>","Output format: json, csv, markdown","json").option("-o, --output <path>","Output file path").option("-c, --config <path>","Path to portal.yaml").action(async(t,o)=>{let{portalExportCommand:a}=await import('./watch-PZCCUP6K.js');await a(t,o);});var V=i.command("premise").description("Premise-related commands");V.command("aggregate [path]").description("Aggregate all sources into symbol index").action(async(t=".")=>{let{premiseAggregateCommand:o}=await import('./aggregate-A5S5MTCC.js');await o(t);});V.command("snapshot <name>").description("Create a timeline snapshot").option("-d, --description <desc>","Snapshot description").action(async(t,o)=>{let{premiseSnapshotCommand:a}=await import('./snapshot-3IYB67D4.js');await a(t,o.description);});i.command("sync [ide]").description("Generate IDE instruction files from .paradigm/ config").option("--all","Sync all supported IDEs").option("-f, --force","Overwrite existing files").option("--mcp","Generate MCP configuration (default: true)").option("--no-mcp","Skip MCP configuration generation").option("--nested","Generate nested CLAUDE.md files for directories with .purpose").action(async(t,o)=>{let{syncCommand:a}=await import('./sync-55U6QPIA.js');await a(t,o);});i.command("sync-llms").description("Generate llms.txt \u2014 LLM-readable project summary").option("-o, --output <path>","Output path (default: ./llms.txt)").action(async t=>{process.stderr.write("\u26A0 `paradigm sync-llms` has moved. Use `paradigm util sync-llms` instead.\n");let{syncLlmsCommand:o}=await import('./sync-llms-GF7DDQDI.js');await o(t);});i.command("cursorrules [path]").description("[DEPRECATED] Use `paradigm sync cursor` instead").option("-a, --append","Append to existing .cursorrules").option("-f, --force","Overwrite existing .cursorrules").option("-p, --preview","Preview output without writing").option("--init","Create default .paradigm config if missing").option("--with-scan","Include probe protocol section").action(async(t,o)=>{console.log("\x1B[33m\u26A0\uFE0F `paradigm cursorrules` is deprecated. Use `paradigm sync cursor` instead.\x1B[0m\n");let{cursorrrulesCommand:a}=await import('./cursorrules-ZXPXPZ3P.js');await a(t,o);});i.command("index [path]").description("Generate probe index for visual discovery").option("-o, --output <path>","Output path for probe-index.json").option("-q, --quiet","Suppress output").action(async(t,o)=>{let{indexCommand:a}=await import('./probe-5HAXULAD.js');await a(t,o);});var _=i.command("probe").description("Probe-related commands");_.command("index [path]").description("Generate probe index (alias for `paradigm index`)").option("-o, --output <path>","Output path for probe-index.json").option("-q, --quiet","Suppress output").action(async(t,o)=>{process.stderr.write("\u26A0 `paradigm probe` has moved. Use `paradigm util probe` instead.\n");let{indexCommand:a}=await import('./probe-5HAXULAD.js');await a(t,o);});var tt=i.command("migrate").description("Detect and apply migrations to bring project up to date").option("--dry-run","Preview changes without applying").option("--apply","Apply all auto migrations without prompting").option("-f, --force","Re-run previously applied migrations").option("--only <ids...>","Run specific migrations by ID").option("--category <cat>","Run migrations in a category (directory, config, template, hook)").option("--no-sync","Skip template sync").option("--list","List all migrations and their status").option("-v, --verbose","Show detailed output").action(async t=>{let{migrateCommand:o}=await import('./migrate-
|
|
12
|
+
`));});var Z=i.command("event").description("Ambient event stream commands");Z.command("emit").description("Emit an event to the ambient event stream (fast, for hook integration)").requiredOption("--type <type>","Event type (e.g., file-modified, compliance-violation)").requiredOption("--source <source>","Event source (e.g., post-write-hook, stop-hook)").option("--path <path>","File path (if applicable)").option("--symbols <symbols...>","Paradigm symbols referenced").option("--context <context>","Brief context snippet").option("--severity <severity>","Severity: info, warning, error, critical").action(async t=>{let{eventEmitCommand:o}=await import('./event-Y3VXC2RV.js');await o(t);});i.command("setup [path]").description("Interactive setup wizard for Paradigm").option("-y, --yes","Accept all defaults (non-interactive)").option("-f, --force","Overwrite existing .paradigm config").action(async(t,o)=>{let{setupCommand:a}=await import('./setup-ZSEC72BS.js');await a(t,o);});i.command("status").alias("st").description("Show project status and symbol counts").action(async()=>{let{statusCommand:t}=await import('./status-DB3KNLW3.js');await t();});var z=i.command("purpose").description("Purpose-related commands");z.command("remember [path]").description("Aggregate and display purpose context").action(async(t=".")=>{let{purposeRememberCommand:o}=await import('./remember-MJRNTXYS.js');await o(t);});z.command("validate [path]").description("Validate purpose files").action(async(t=".")=>{let{purposeValidateCommand:o}=await import('./validate-LSCDOLBO.js');await o(t);});var j=i.command("portal").description("Portal-related commands");j.command("validate [path]").description("Validate portal.yaml configuration").action(async(t="./portal.yaml")=>{let{gateValidateCommand:o}=await import('./validate-BB6LRWIY.js');await o(t);});j.command("check").description("Check portal gate implementation compliance (declared vs used)").option("--json","Output as JSON").action(async t=>{let{portalCheckCommand:o}=await import('./portal-check-DV2VSJ5E.js');await o(t);});j.command("test [path]").description("Test portals and generate test files").option("--generate","Generate test files from portal.yaml").option("--portal <portalId>","Test specific portal").option("--component","Validate component access").option("--framework <framework>","Test framework (jest, vitest, mocha)","jest").option("--output <dir>","Output directory for generated tests","tests/portals").action(async(t,o)=>{let{gateTestCommand:a}=await import('./test-WLEPZQFC.js');await a(t,o);});j.command("watch [path]").alias("w").description("Launch the Portal Viewer - real-time visualization dashboard").option("-p, --port <port>","WebSocket port for SDK connections","42196").option("-u, --ui-port <port>","HTTP port for UI","42195").option("-c, --config <path>","Path to portal.yaml config").option("--no-open","Do not auto-open browser").action(async(t,o)=>{let{portalWatchCommand:a}=await import('./watch-PZCCUP6K.js');await a(t,o);});j.command("report <session>").description("Generate a report from a session file").option("-f, --format <format>","Output format: json, markdown, slack, discord","markdown").option("-o, --output <path>","Output file path").action(async(t,o)=>{let{portalReportCommand:a}=await import('./watch-PZCCUP6K.js');await a(t,o);});j.command("export [path]").description("Export portal configuration in json, csv, or markdown format").option("-f, --format <format>","Output format: json, csv, markdown","json").option("-o, --output <path>","Output file path").option("-c, --config <path>","Path to portal.yaml").action(async(t,o)=>{let{portalExportCommand:a}=await import('./watch-PZCCUP6K.js');await a(t,o);});var V=i.command("premise").description("Premise-related commands");V.command("aggregate [path]").description("Aggregate all sources into symbol index").action(async(t=".")=>{let{premiseAggregateCommand:o}=await import('./aggregate-A5S5MTCC.js');await o(t);});V.command("snapshot <name>").description("Create a timeline snapshot").option("-d, --description <desc>","Snapshot description").action(async(t,o)=>{let{premiseSnapshotCommand:a}=await import('./snapshot-3IYB67D4.js');await a(t,o.description);});i.command("sync [ide]").description("Generate IDE instruction files from .paradigm/ config").option("--all","Sync all supported IDEs").option("-f, --force","Overwrite existing files").option("--mcp","Generate MCP configuration (default: true)").option("--no-mcp","Skip MCP configuration generation").option("--nested","Generate nested CLAUDE.md files for directories with .purpose").action(async(t,o)=>{let{syncCommand:a}=await import('./sync-55U6QPIA.js');await a(t,o);});i.command("sync-llms").description("Generate llms.txt \u2014 LLM-readable project summary").option("-o, --output <path>","Output path (default: ./llms.txt)").action(async t=>{process.stderr.write("\u26A0 `paradigm sync-llms` has moved. Use `paradigm util sync-llms` instead.\n");let{syncLlmsCommand:o}=await import('./sync-llms-GF7DDQDI.js');await o(t);});i.command("cursorrules [path]").description("[DEPRECATED] Use `paradigm sync cursor` instead").option("-a, --append","Append to existing .cursorrules").option("-f, --force","Overwrite existing .cursorrules").option("-p, --preview","Preview output without writing").option("--init","Create default .paradigm config if missing").option("--with-scan","Include probe protocol section").action(async(t,o)=>{console.log("\x1B[33m\u26A0\uFE0F `paradigm cursorrules` is deprecated. Use `paradigm sync cursor` instead.\x1B[0m\n");let{cursorrrulesCommand:a}=await import('./cursorrules-ZXPXPZ3P.js');await a(t,o);});i.command("index [path]").description("Generate probe index for visual discovery").option("-o, --output <path>","Output path for probe-index.json").option("-q, --quiet","Suppress output").action(async(t,o)=>{let{indexCommand:a}=await import('./probe-5HAXULAD.js');await a(t,o);});var _=i.command("probe").description("Probe-related commands");_.command("index [path]").description("Generate probe index (alias for `paradigm index`)").option("-o, --output <path>","Output path for probe-index.json").option("-q, --quiet","Suppress output").action(async(t,o)=>{process.stderr.write("\u26A0 `paradigm probe` has moved. Use `paradigm util probe` instead.\n");let{indexCommand:a}=await import('./probe-5HAXULAD.js');await a(t,o);});var tt=i.command("migrate").description("Detect and apply migrations to bring project up to date").option("--dry-run","Preview changes without applying").option("--apply","Apply all auto migrations without prompting").option("-f, --force","Re-run previously applied migrations").option("--only <ids...>","Run specific migrations by ID").option("--category <cat>","Run migrations in a category (directory, config, template, hook)").option("--no-sync","Skip template sync").option("--list","List all migrations and their status").option("-v, --verbose","Show detailed output").action(async t=>{let{migrateCommand:o}=await import('./migrate-R64OQGSM.js');await o(t);});tt.command("decisions",{hidden:true}).description("v6.0: consolidate wisdom-decisions + lore-decisions into .paradigm/decisions/").option("--dry-run","Preview migration without writes").option("--json","Emit JSON summary").action(async t=>{let{migrateDecisionsCommand:o}=await import('./migrate-decisions-NPLQOEEH.js');await o(t);});i.command("upgrade [path]").description("(Deprecated) Upgrade project with new Paradigm features \u2014 use `paradigm migrate`").option("--features <features...>","Features to upgrade (probe, logger)").option("--all","Apply all available upgrades").option("--from-horizon","Migrate from Horizon to Paradigm").option("--dry-run","Show what would be upgraded without making changes").option("-f, --force","Force re-upgrade even if already configured").action(async(t,o)=>{let{upgradeCommand:a}=await import('./upgrade-NKN63VTY.js');await a(t,o);});i.command("lint [path]").description("Validate .purpose files for schema errors").option("-f, --fix","Auto-fix issues where possible").option("-s, --strict","Fail on warnings (not just errors)").option("-q, --quiet","Suppress output except errors").option("--json","Output as JSON").option("--auto-populate","Scan for undocumented source dirs and suggest .purpose entries (use with --fix to write)").action(async(t,o)=>{let{lintCommand:a}=await import('./lint-IGKE6UPS.js');await a(t,o);});i.command("cost [path]").description("Analyze token costs for AI context").option("-d, --detailed","Show detailed breakdown by file").option("--json","Output as JSON").action(async(t,o)=>{let{costCommand:a}=await import('./cost-24UZSS2P.js');await a(t,o);});i.command("explain-files").alias("files").description("Explain all Paradigm config and generated files").action(async()=>{let{explainFilesCommand:t}=await import('./explain-files-3GPZUETV.js');await t();});var H=i.command("scan").description("Visual discovery and auto-generation commands");H.command("auto [path]").description("Auto-generate .purpose files from code analysis").option("-n, --dry-run","Show what would be generated without writing").option("-f, --force","Overwrite existing .purpose files").option("--json","Output as JSON").option("--init","Full project initialization: generate .purpose files + portal.yaml").action(async(t,o)=>{let{autoScanCommand:a}=await import('./auto-RHJXOZFL.js');await a(t,o);});H.action(()=>{console.log(`
|
|
13
13
|
Usage: paradigm scan <command>
|
|
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-
|
|
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-MGT66HZQ.js');await t(void 0,{});});var B=i.command("plugin").description("Plugin management commands");B.command("check").description("Check for updates to installed Claude Code plugins").option("-u, --update","Pull latest changes for all stale marketplace clones").action(async t=>{let{pluginCheckCommand:o}=await import('./check-THVGY4R5.js');await o(t);});B.action(async()=>{let{pluginCheckCommand:t}=await import('./check-THVGY4R5.js');await t({});});var J=i.command("workspace").description("Multi-project workspace commands");J.command("init").description("Create a .paradigm-workspace file from sibling projects").option("-n, --name <name>","Workspace name (default: directory name)").option("-f, --force","Overwrite existing workspace file").action(async t=>{let{workspaceInitCommand:o}=await import('./workspace-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-IG5XM4C4.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 ot=i.command("drift").description("Aspect anchor drift detection");ot.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-TFMMMB2H.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-TFMMMB2H.js');await o(t);});P.command("status").description("Check git hooks status").action(async()=>{let{hooksStatusCommand:t}=await import('./hooks-TFMMMB2H.js');await t();});P.action(async()=>{let{hooksStatusCommand:t}=await import('./hooks-TFMMMB2H.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-MO35XIZE.js');await o(t);});var at=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);});at.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 it=i.command("sentinel").description("Sentinel \u2014 semantic error monitoring");it.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-O37YLLRN.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-O37YLLRN.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-O37YLLRN.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 W=i.command("ambient").description("Ambient coordination \u2014 nominations, verdicts, and learning loop");W.command("postflight").description("Run postflight learning pass \u2014 converts pending verdicts into journal entries and promotes high-confidence entries to notebooks").option("--dry-run","Preview what would be written without writing").option("--project <path>","Project root (defaults to cwd)").action(async t=>{let{ambientPostflightCommand:o}=await import('./ambient-BE3SQXNN.js');await o(t);});W.action(async()=>{let{ambientPostflightCommand:t}=await import('./ambient-BE3SQXNN.js');await t({});});var D=i.command("notebook").description("Agent notebook management \u2014 curated snippet libraries");D.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);});D.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);});D.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);});D.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-X6I2YWOB.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-X6I2YWOB.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-X6I2YWOB.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-X6I2YWOB.js');await a(t,o);});var L=m.command("roster").description("Manage per-project agent roster (.paradigm/roster.yaml)");L.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);});L.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);});L.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);});L.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-X6I2YWOB.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-X6I2YWOB.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-KOOKFUWD.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-KOOKFUWD.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-KOOKFUWD.js');await o(t);});m.action(async()=>{let{agentListCommand:t}=await import('./agent-X6I2YWOB.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-46XWPNSA.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-46XWPNSA.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-46XWPNSA.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-46XWPNSA.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-46XWPNSA.js');await o(t);});i.command("compliance-check").description("Run all compliance checks (habits, drift, portal) in a single process").option("--json","Output as JSON").option("--auto-heal","Auto-heal drift violations").option("--trigger <event>","Trigger context (e.g., on-stop)","on-stop").option("--learn","Run postflight learning pass (convert session verdicts to journal entries)").action(async t=>{let{complianceCheckCommand:o}=await import('./compliance-BNFWQPKM.js');await o(t);});U(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 B=i.command("plugin").description("Plugin management commands");B.command("check").description("Check for updates to installed Claude Code plugins").option("-u, --update","Pull latest changes for all stale marketplace clones").action(async t=>{let{pluginCheckCommand:o}=await import('./check-THVGY4R5.js');await o(t);});B.action(async()=>{let{pluginCheckCommand:t}=await import('./check-THVGY4R5.js');await t({});});var J=i.command("workspace").description("Multi-project workspace commands");J.command("init").description("Create a .paradigm-workspace file from sibling projects").option("-n, --name <name>","Workspace name (default: directory name)").option("-f, --force","Overwrite existing workspace file").action(async t=>{let{workspaceInitCommand:o}=await import('./workspace-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 ot=i.command("drift").description("Aspect anchor drift detection");ot.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 at=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);});at.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 it=i.command("sentinel").description("Sentinel \u2014 semantic error monitoring");it.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 W=i.command("ambient").description("Ambient coordination \u2014 nominations, verdicts, and learning loop");W.command("postflight").description("Run postflight learning pass \u2014 converts pending verdicts into journal entries and promotes high-confidence entries to notebooks").option("--dry-run","Preview what would be written without writing").option("--project <path>","Project root (defaults to cwd)").action(async t=>{let{ambientPostflightCommand:o}=await import('./ambient-FNNFB4AP.js');await o(t);});W.action(async()=>{let{ambientPostflightCommand:t}=await import('./ambient-FNNFB4AP.js');await t({});});var D=i.command("notebook").description("Agent notebook management \u2014 curated snippet libraries");D.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);});D.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);});D.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);});D.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 L=m.command("roster").description("Manage per-project agent roster (.paradigm/roster.yaml)");L.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);});L.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);});L.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);});L.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-46XWPNSA.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-46XWPNSA.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-46XWPNSA.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-46XWPNSA.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-46XWPNSA.js');await o(t);});i.command("compliance-check").description("Run all compliance checks (habits, drift, portal) in a single process").option("--json","Output as JSON").option("--auto-heal","Auto-heal drift violations").option("--trigger <event>","Trigger context (e.g., on-stop)","on-stop").option("--learn","Run postflight learning pass (convert session verdicts to journal entries)").action(async t=>{let{complianceCheckCommand:o}=await import('./compliance-J3VOV445.js');await o(t);});var nt=i.command("internal",{hidden:true}).description("Internal helpers for hook integration (not for direct use)");nt.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-EBLHRMNN.js');await o(t);});U(i);i.parse();
|
package/dist/mcp.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {d,g,h,e,a as a$1,b as b$1,f,c}from'./chunk-
|
|
2
|
+
import {d,g,h,e,a as a$1,b as b$1,f,c}from'./chunk-MOVDVBU7.js';import'./chunk-4UJ4NIEQ.js';import'./chunk-4N56FRNE.js';import'./chunk-Q527BPUF.js';import'./chunk-KLBH26PA.js';import'./chunk-JNSJVCTU.js';import'./chunk-XROULIQN.js';import'./chunk-ZUAUFZRJ.js';import'./chunk-3KVVC4WV.js';import {m as m$1,n,p,h as h$1,i,ua}from'./chunk-K7EQHFZP.js';import'./chunk-M4UMM6DC.js';import'./chunk-GRZQIKST.js';import'./chunk-KAFQA7HV.js';import {j as j$1}from'./chunk-6QXBXZF6.js';import {b,a}from'./chunk-EK4ZRIFJ.js';import'./chunk-LAYBUKMB.js';import'./chunk-DVZWCXB6.js';import'./chunk-QGZRM6ZB.js';import'./chunk-K7X3Z3GL.js';import'./chunk-5TAVYPOV.js';import {Server}from'@modelcontextprotocol/sdk/server/index.js';import {StdioServerTransport}from'@modelcontextprotocol/sdk/server/stdio.js';import {ListResourcesRequestSchema,ReadResourceRequestSchema}from'@modelcontextprotocol/sdk/types.js';import*as l from'fs';import*as m from'path';function se(e){return {id:e.id,symbol:`^${e.id}`,description:e.description,locks:e.locks?.map(s=>({id:s.id,description:s.description,keys:s.keys?.map(n=>n.expression||n),mode:s.mode||"all"})),prizes:e.prizes?.map(s=>({id:s.id,oneTime:s.oneTime}))}}function F(e){let s=e.gateConfig?.gates||[],n=i(e.index,"gate"),t=new Map;for(let o of n){let i=o.symbol.replace(/^\^/,"");t.set(i,{id:i,symbol:o.symbol,description:o.description,source:"purpose",filePath:o.filePath,data:o.data});}for(let o of s)t.set(o.id,{...se(o),source:"portal.yaml"});return Array.from(t.values())}function I(e){let s=e.gateConfig?.flows||[],n=i(e.index,"flow"),t=new Map;for(let o of n){let i=o.symbol.replace(/^\$/,"");t.set(i,{id:i,symbol:o.symbol,description:o.description,source:"purpose",filePath:o.filePath,data:o.data});}for(let o of s)t.set(o.id,{id:o.id,symbol:`$${o.id}`,description:o.description,gates:o.gates,source:"portal.yaml"});return Array.from(t.values())}function U(){return [{uri:"paradigm://wisdom/preferences",name:"Wisdom - Preferences",description:"Team preferences for patterns, testing, and code style",mimeType:"application/json"},{uri:"paradigm://wisdom/antipatterns",name:"Wisdom - Antipatterns",description:"What NOT to do, with reasons and alternatives",mimeType:"application/json"},{uri:"paradigm://wisdom/decisions",name:"Wisdom - Decisions",description:"Architectural Decision Records (ADRs) index",mimeType:"application/json"}]}async function z(e$1,s){if(e$1==="wisdom/preferences"){let n=await e(s);return {handled:true,text:JSON.stringify({version:n.preferences?.version||"1.0",global:n.preferences?.global||{},by_symbol:n.preferences?.by_symbol||{},symbol_count:Object.keys(n.preferences?.by_symbol||{}).length},null,2)}}if(e$1.startsWith("wisdom/preferences/")){let n=decodeURIComponent(e$1.replace("wisdom/preferences/","")),t=await e(s),o=a$1(t,n);return {handled:true,text:JSON.stringify({symbol:n,preferences:o.preferences,global:t.preferences?.global||{}},null,2)}}if(e$1==="wisdom/antipatterns"){let n=await e(s);return {handled:true,text:JSON.stringify({count:n.antipatterns.length,antipatterns:n.antipatterns},null,2)}}if(e$1.startsWith("wisdom/antipatterns/")){let n=decodeURIComponent(e$1.replace("wisdom/antipatterns/","")),t=await e(s),o=a$1(t,n);return {handled:true,text:JSON.stringify({symbol:n,count:o.antipatterns.length,antipatterns:o.antipatterns},null,2)}}if(e$1==="wisdom/decisions"){let n=await e(s);return {handled:true,text:JSON.stringify({count:n.decisions.length,decisions:n.decisions.map(t=>({id:t.id,title:t.title,status:t.status,date:t.date,symbols:t.symbols}))},null,2)}}if(e$1.startsWith("wisdom/decision/")){let n=e$1.replace("wisdom/decision/",""),t=await e(s),o=t.decisions.find(i=>i.id===n);return o?{handled:true,text:JSON.stringify(o,null,2)}:{handled:true,text:JSON.stringify({error:"Decision not found",id:n,available:t.decisions.map(i=>i.id)},null,2)}}if(e$1.startsWith("wisdom/expertise/")){let n=decodeURIComponent(e$1.replace("wisdom/expertise/","")),t=await e(s),o=b$1(t,{symbol:n});return {handled:true,text:JSON.stringify({symbol:n,count:o.length,experts:o.map(i=>({name:i.name,symbols:i.symbols,areas:i.areas,contact:i.contact}))},null,2)}}return {handled:false,text:""}}function G(){return [{uri:"paradigm://history/fragile",name:"History - Fragile Symbols",description:"Symbols with high fragility that need extra care when modifying",mimeType:"application/json"},{uri:"paradigm://history/validation/summary",name:"History - Validation Summary",description:"Overall validation statistics and pass rates",mimeType:"application/json"}]}async function $(e,s){if(e.startsWith("history/symbol/")&&!e.endsWith("/recent")){let n=decodeURIComponent(e.replace("history/symbol/","")),t=await f(s),o=c(t,n);return {handled:true,text:JSON.stringify({symbol:n,summary:o.summary?{total_changes:o.summary.total_changes,last_modified:o.summary.last_modified,stability_score:o.summary.stability_score,fragility:o.summary.fragility,contributors:o.summary.contributors}:null,recent:o.recent,co_changes:o.co_changes,validation:o.validation},null,2)}}if(e.startsWith("history/symbol/")&&e.endsWith("/recent")){let n=decodeURIComponent(e.replace("history/symbol/","").replace("/recent","")),t=await f(s),o=c(t,n);return {handled:true,text:JSON.stringify({symbol:n,fragility:o.summary?.fragility||"unknown",stability_score:o.summary?.stability_score,recent:o.recent.slice(0,5)},null,2)}}if(e==="history/fragile"){let n=await f(s);return {handled:true,text:JSON.stringify({count:n.index?.fragile_symbols?.length||0,fragile_symbols:n.index?.fragile_symbols||[],recommendation:"Consider adding extra test coverage and reviewing recent changes before modifying these symbols"},null,2)}}if(e.startsWith("history/cochanges/")){let n=decodeURIComponent(e.replace("history/cochanges/","")),o=(await f(s)).index?.co_changes?.filter(i=>i.symbols.includes(n))||[];return {handled:true,text:JSON.stringify({symbol:n,count:o.length,co_changes:o.map(i=>({with:i.symbols.filter(r=>r!==n),frequency:i.frequency,correlation:i.correlation})),recommendation:o.length>0?"These symbols often change together - consider if they need updates too":"No strong co-change patterns detected"},null,2)}}if(e==="history/validation/summary"){let n=await f(s);return {handled:true,text:JSON.stringify({last_run:n.validation?.last_run,total_validations:n.validation?.total_validations||0,pass_rate:n.validation?.pass_rate||0,by_symbol:n.validation?.by_symbol||{}},null,2)}}return {handled:false,text:""}}function q(){return [{uri:"paradigm://context/agent-protocol",name:"Agent Protocol",description:"IMPORTANT: Read this first. Workflow instructions for using Paradigm MCP tools effectively.",mimeType:"text/markdown"},{uri:"paradigm://context/session",name:"Session Info",description:"Current MCP session statistics and context usage estimate",mimeType:"application/json"},{uri:"paradigm://context/handoff-guide",name:"Handoff Guide",description:"When and how to perform context handoffs",mimeType:"text/markdown"}]}async function H(e,s){if(e==="context/agent-protocol")return {handled:true,text:`# Agent Protocol for Paradigm MCP Tools
|
|
3
3
|
|
|
4
4
|
## Query Before Modify
|
|
5
5
|
|
|
@@ -463,4 +463,4 @@ components:
|
|
|
463
463
|
| When | Tool | Purpose |
|
|
464
464
|
|------|------|---------|
|
|
465
465
|
| Starting any task | \`paradigm_pm_preflight\` | Get compliance plan |
|
|
466
|
-
| Finishing any task | _(handled by stop hook)_ | Auto-checks compliance |`}};function xe(e){return Math.ceil(e.length/3.5)}function oe(){return [{uri:"paradigm://guidance",name:"Guidance Topics",description:"List all available on-demand guidance topics (logging, portal, flows, orchestration, etc.)",mimeType:"application/json"},{uri:"paradigm://guidance/{topic}",name:"Guidance Content",description:`Get guidance for a topic. Available: ${Object.keys(j).join(", ")}`,mimeType:"text/markdown"}]}async function ne(e,s){let n=`paradigm://${e}`;if(e==="guidance"){let t=Object.entries(j).map(([i,r])=>{let a=r.generate();return {name:i,description:r.description,tokens:xe(a)}}),o=JSON.stringify({count:t.length,totalTokens:t.reduce((i,r)=>i+r.tokens,0),note:"These guidance topics were previously baked into CLAUDE.md. Load on-demand to save context.",topics:t.map(i=>({...i,uri:`paradigm://guidance/${i.name}`}))},null,2);return p(o.length,n),{handled:true,text:o,mimeType:"application/json"}}if(e.startsWith("guidance/")&&e!=="guidance/"){let t=decodeURIComponent(e.replace("guidance/","")),o=j[t];if(!o){let r=Object.keys(j),a=JSON.stringify({error:`Unknown guidance topic: "${t}"`,available:r},null,2);return p(a.length,n),{handled:true,text:a,mimeType:"application/json"}}let i=o.generate();return p(i.length,n),{handled:true,text:i,mimeType:"text/markdown"}}return {handled:false,text:"",mimeType:"application/json"}}function ie(e,s){e.setRequestHandler(ListResourcesRequestSchema,async()=>({resources:[{uri:"paradigm://symbols",name:"All Symbols",description:"Overview of all Paradigm symbols in the project",mimeType:"application/json"},{uri:"paradigm://symbols/type/feature",name:"Features",description:"All @feature symbols",mimeType:"application/json"},{uri:"paradigm://symbols/type/component",name:"Components",description:"All #component symbols",mimeType:"application/json"},{uri:"paradigm://symbols/type/gate",name:"Gates",description:"All ^gate symbols (authorization)",mimeType:"application/json"},{uri:"paradigm://symbols/type/flow",name:"Flows",description:"All $flow symbols (processes)",mimeType:"application/json"},{uri:"paradigm://symbols/type/signal",name:"Signals",description:"All !signal symbols (events)",mimeType:"application/json"},{uri:"paradigm://symbols/type/state",name:"States",description:"All %state symbols",mimeType:"application/json"},{uri:"paradigm://gates",name:"Gates (Detailed)",description:"All gates with locks, keys, and prizes from portal.yaml",mimeType:"application/json"},{uri:"paradigm://flows",name:"Flows (Detailed)",description:"All flows with gate sequences",mimeType:"application/json"},...U(),...G(),...q(),...V(),...K(),...ee(),...oe()]})),e.setRequestHandler(ReadResourceRequestSchema,async n$1=>{let t=n$1.params.uri;if(!t?.startsWith("paradigm://"))throw new Error(`Unknown URI scheme: ${t}`);let o=s(),i$1=t.replace("paradigm://","");if(i$1==="symbols"){let r=m$1(o.index),a=n(o.index),p$1=JSON.stringify({project:o.projectName,counts:r,total:Object.values(r).reduce((d,k)=>d+k,0),symbols:a.map(d=>({symbol:d.symbol,type:d.type,description:d.description}))},null,2);return p(p$1.length,t),{contents:[{uri:t,mimeType:"application/json",text:p$1}]}}if(i$1.startsWith("symbol/")){let r=decodeURIComponent(i$1.replace("symbol/","")),a=h$1(o.index,r);if(!a){let d=JSON.stringify({error:"Symbol not found",symbol:r,available:n(o.index).filter(k=>k.symbol.includes(r.slice(1))).slice(0,5).map(k=>k.symbol)},null,2);return p(d.length,t),{contents:[{uri:t,mimeType:"application/json",text:d}]}}let p$1=JSON.stringify({symbol:a.symbol,type:a.type,description:a.description,filePath:a.filePath,references:a.references,referencedBy:a.referencedBy,tags:a.tags,data:a.data},null,2);return p(p$1.length,t),{contents:[{uri:t,mimeType:"application/json",text:p$1}]}}if(i$1.startsWith("symbols/type/")){let r=i$1.replace("symbols/type/",""),a=i(o.index,r),p$1=JSON.stringify({type:r,count:a.length,symbols:a.map(d=>({symbol:d.symbol,description:d.description,filePath:d.filePath,referencesCount:d.references.length,referencedByCount:d.referencedBy.length}))},null,2);return p(p$1.length,t),{contents:[{uri:t,mimeType:"application/json",text:p$1}]}}if(i$1==="gates"){let r=F(o),a=JSON.stringify({count:r.length,gates:r},null,2);return p(a.length,t),{contents:[{uri:t,mimeType:"application/json",text:a}]}}if(i$1==="flows"){let r=I(o),a=JSON.stringify({count:r.length,flows:r},null,2);return p(a.length,t),{contents:[{uri:t,mimeType:"application/json",text:a}]}}if(i$1.startsWith("wisdom/")){let r=await z(i$1,o);if(r.handled)return p(r.text.length),{contents:[{uri:t,mimeType:"application/json",text:r.text}]}}if(i$1.startsWith("history/")){let r=await $(i$1,o);if(r.handled)return p(r.text.length),{contents:[{uri:t,mimeType:"application/json",text:r.text}]}}if(i$1.startsWith("context/")){let r=await H(i$1);if(r.handled)return p(r.text.length),{contents:[{uri:t,mimeType:r.text.startsWith("#")?"text/markdown":"application/json",text:r.text}]}}if(i$1==="prompts"||i$1.startsWith("prompts/")){let r=await Y(i$1,o);if(r.handled)return {contents:[{uri:t,mimeType:r.mimeType,text:r.text}]}}if(i$1==="specs"||i$1.startsWith("specs/")){let r=await X(i$1,o);if(r.handled)return {contents:[{uri:t,mimeType:r.mimeType,text:r.text}]}}if(i$1==="docs"||i$1.startsWith("docs/")){let r=await te(i$1,o);if(r.handled)return {contents:[{uri:t,mimeType:r.mimeType,text:r.text}]}}if(i$1==="guidance"||i$1.startsWith("guidance/")){let r=await ne(i$1);if(r.handled)return {contents:[{uri:t,mimeType:r.mimeType,text:r.text}]}}throw new Error(`Unknown resource: ${i$1}`)});}b();var _=process.argv[2]||process.cwd(),w=null;function re(){if(!w)throw new Error("Project context not loaded");return w}async function je(){w=await d(_),
|
|
466
|
+
| Finishing any task | _(handled by stop hook)_ | Auto-checks compliance |`}};function xe(e){return Math.ceil(e.length/3.5)}function oe(){return [{uri:"paradigm://guidance",name:"Guidance Topics",description:"List all available on-demand guidance topics (logging, portal, flows, orchestration, etc.)",mimeType:"application/json"},{uri:"paradigm://guidance/{topic}",name:"Guidance Content",description:`Get guidance for a topic. Available: ${Object.keys(j).join(", ")}`,mimeType:"text/markdown"}]}async function ne(e,s){let n=`paradigm://${e}`;if(e==="guidance"){let t=Object.entries(j).map(([i,r])=>{let a=r.generate();return {name:i,description:r.description,tokens:xe(a)}}),o=JSON.stringify({count:t.length,totalTokens:t.reduce((i,r)=>i+r.tokens,0),note:"These guidance topics were previously baked into CLAUDE.md. Load on-demand to save context.",topics:t.map(i=>({...i,uri:`paradigm://guidance/${i.name}`}))},null,2);return p(o.length,n),{handled:true,text:o,mimeType:"application/json"}}if(e.startsWith("guidance/")&&e!=="guidance/"){let t=decodeURIComponent(e.replace("guidance/","")),o=j[t];if(!o){let r=Object.keys(j),a=JSON.stringify({error:`Unknown guidance topic: "${t}"`,available:r},null,2);return p(a.length,n),{handled:true,text:a,mimeType:"application/json"}}let i=o.generate();return p(i.length,n),{handled:true,text:i,mimeType:"text/markdown"}}return {handled:false,text:"",mimeType:"application/json"}}function ie(e,s){e.setRequestHandler(ListResourcesRequestSchema,async()=>({resources:[{uri:"paradigm://symbols",name:"All Symbols",description:"Overview of all Paradigm symbols in the project",mimeType:"application/json"},{uri:"paradigm://symbols/type/feature",name:"Features",description:"All @feature symbols",mimeType:"application/json"},{uri:"paradigm://symbols/type/component",name:"Components",description:"All #component symbols",mimeType:"application/json"},{uri:"paradigm://symbols/type/gate",name:"Gates",description:"All ^gate symbols (authorization)",mimeType:"application/json"},{uri:"paradigm://symbols/type/flow",name:"Flows",description:"All $flow symbols (processes)",mimeType:"application/json"},{uri:"paradigm://symbols/type/signal",name:"Signals",description:"All !signal symbols (events)",mimeType:"application/json"},{uri:"paradigm://symbols/type/state",name:"States",description:"All %state symbols",mimeType:"application/json"},{uri:"paradigm://gates",name:"Gates (Detailed)",description:"All gates with locks, keys, and prizes from portal.yaml",mimeType:"application/json"},{uri:"paradigm://flows",name:"Flows (Detailed)",description:"All flows with gate sequences",mimeType:"application/json"},...U(),...G(),...q(),...V(),...K(),...ee(),...oe()]})),e.setRequestHandler(ReadResourceRequestSchema,async n$1=>{let t=n$1.params.uri;if(!t?.startsWith("paradigm://"))throw new Error(`Unknown URI scheme: ${t}`);let o=s(),i$1=t.replace("paradigm://","");if(i$1==="symbols"){let r=m$1(o.index),a=n(o.index),p$1=JSON.stringify({project:o.projectName,counts:r,total:Object.values(r).reduce((d,k)=>d+k,0),symbols:a.map(d=>({symbol:d.symbol,type:d.type,description:d.description}))},null,2);return p(p$1.length,t),{contents:[{uri:t,mimeType:"application/json",text:p$1}]}}if(i$1.startsWith("symbol/")){let r=decodeURIComponent(i$1.replace("symbol/","")),a=h$1(o.index,r);if(!a){let d=JSON.stringify({error:"Symbol not found",symbol:r,available:n(o.index).filter(k=>k.symbol.includes(r.slice(1))).slice(0,5).map(k=>k.symbol)},null,2);return p(d.length,t),{contents:[{uri:t,mimeType:"application/json",text:d}]}}let p$1=JSON.stringify({symbol:a.symbol,type:a.type,description:a.description,filePath:a.filePath,references:a.references,referencedBy:a.referencedBy,tags:a.tags,data:a.data},null,2);return p(p$1.length,t),{contents:[{uri:t,mimeType:"application/json",text:p$1}]}}if(i$1.startsWith("symbols/type/")){let r=i$1.replace("symbols/type/",""),a=i(o.index,r),p$1=JSON.stringify({type:r,count:a.length,symbols:a.map(d=>({symbol:d.symbol,description:d.description,filePath:d.filePath,referencesCount:d.references.length,referencedByCount:d.referencedBy.length}))},null,2);return p(p$1.length,t),{contents:[{uri:t,mimeType:"application/json",text:p$1}]}}if(i$1==="gates"){let r=F(o),a=JSON.stringify({count:r.length,gates:r},null,2);return p(a.length,t),{contents:[{uri:t,mimeType:"application/json",text:a}]}}if(i$1==="flows"){let r=I(o),a=JSON.stringify({count:r.length,flows:r},null,2);return p(a.length,t),{contents:[{uri:t,mimeType:"application/json",text:a}]}}if(i$1.startsWith("wisdom/")){let r=await z(i$1,o);if(r.handled)return p(r.text.length),{contents:[{uri:t,mimeType:"application/json",text:r.text}]}}if(i$1.startsWith("history/")){let r=await $(i$1,o);if(r.handled)return p(r.text.length),{contents:[{uri:t,mimeType:"application/json",text:r.text}]}}if(i$1.startsWith("context/")){let r=await H(i$1);if(r.handled)return p(r.text.length),{contents:[{uri:t,mimeType:r.text.startsWith("#")?"text/markdown":"application/json",text:r.text}]}}if(i$1==="prompts"||i$1.startsWith("prompts/")){let r=await Y(i$1,o);if(r.handled)return {contents:[{uri:t,mimeType:r.mimeType,text:r.text}]}}if(i$1==="specs"||i$1.startsWith("specs/")){let r=await X(i$1,o);if(r.handled)return {contents:[{uri:t,mimeType:r.mimeType,text:r.text}]}}if(i$1==="docs"||i$1.startsWith("docs/")){let r=await te(i$1,o);if(r.handled)return {contents:[{uri:t,mimeType:r.mimeType,text:r.text}]}}if(i$1==="guidance"||i$1.startsWith("guidance/")){let r=await ne(i$1);if(r.handled)return {contents:[{uri:t,mimeType:r.mimeType,text:r.text}]}}throw new Error(`Unknown resource: ${i$1}`)});}b();var _=process.argv[2]||process.cwd(),w=null;function re(){if(!w)throw new Error("Project context not loaded");return w}async function je(){w=await d(_),ua(_,w).catch(e=>{a.component("#paradigm-mcp").warn("Background reindex failed",{error:e.message});});}async function Te(){a.component("#paradigm-mcp").info("Loading project",{projectDir:_});try{w=await d(_),j$1().setRootDir(w.rootDir),a.component("#paradigm-mcp").info("Project loaded",{symbols:w.aggregation.symbols.length,project:w.projectName});}catch(n){a.component("#paradigm-mcp").error("Error loading project",{error:n.message}),process.exit(1);}g(_);let e=new Server({name:"paradigm",version:"0.1.0"},{capabilities:{resources:{},tools:{}}});ie(e,re),h(e,re,je),e.onerror=n=>{a.component("#paradigm-mcp").error("Server error",{error:String(n)});};let s=new StdioServerTransport;await e.connect(s),a.component("#paradigm-mcp").info("Server running on stdio");}Te().catch(e=>{a.component("#paradigm-mcp").error("Fatal error",{error:e.message}),process.exit(1);});
|