@visulima/vis 1.0.0-alpha.18 → 1.0.0-alpha.19

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.
@@ -1001,7 +1001,7 @@ To install the missing package${n}, please run the following command:
1001
1001
 
1002
1002
  or
1003
1003
 
1004
- `),r.postMessage&&(i+=r.postMessage),i},"generateMissingPackagesInstallMessage");var IB=Object.defineProperty,_B=f((e,t)=>IB(e,"name",{value:t,configurable:!0}),"c$v"),MB=Object.defineProperty,x1=_B((e,t)=>MB(e,"name",{value:t,configurable:!0}),"p");const VB=Qe(import.meta.url),Ss=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,WB=x1(e=>{if(typeof Ss<"u"&&Ss.versions&&Ss.versions.node){const[t,r]=Ss.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return Ss.getBuiltinModule(e)}return VB(e)},"__cjs_getBuiltinModule"),{existsSync:Na,readFileSync:P1}=WB("node:fs");var UB=Object.defineProperty,N1=x1((e,t)=>UB(e,"name",{value:t,configurable:!0}),"i");N1(async e=>{const t=await po(["lerna.json","turbo.json"],{type:"file",...e&&{cwd:e}});if(t?.endsWith("lerna.json")){const n=await ho(t);if(n&&typeof n=="object"&&!Array.isArray(n)){const i=n;if(i.useWorkspaces||i.packages)return{path:Ge(t),strategy:"lerna"}}}const r=t?.endsWith("turbo.json");try{const{packageManager:n,path:i}=await LB(e);if(["npm","yarn"].includes(n)){const s=E(i,"package.json");if(Na(s)&&P1(E(i,"package.json"),"utf8").includes("workspaces"))return{path:i,strategy:r?"turbo":n}}else if(n==="pnpm"){const s=E(i,"pnpm-workspace.yaml");if(Na(s))return{path:i,strategy:r?"turbo":"pnpm"}}}catch(n){if(!(n instanceof Ai))throw n}throw new Error(`No monorepo root could be found upwards from the directory ${e} using lerna, yarn, pnpm, or npm as indicators.`)},"findMonorepoRoot");const F1=N1(e=>{const t=fo(["lerna.json","turbo.json"],{type:"file",...e&&{cwd:e}});if(t?.endsWith("lerna.json")){const n=we(t);if(n.useWorkspaces||n.packages)return{path:Ge(t),strategy:"lerna"}}const r=t?.endsWith("turbo.json");try{const{packageManager:n,path:i}=TB(e);if(["npm","yarn"].includes(n)){const s=E(i,"package.json");if(Na(s)&&P1(E(i,"package.json"),"utf8").includes("workspaces"))return{path:i,strategy:r?"turbo":n}}else if(n==="pnpm"){const s=E(i,"pnpm-workspace.yaml");if(Na(s))return{path:i,strategy:r?"turbo":"pnpm"}}}catch(n){if(!(n instanceof Ai))throw n}throw new Error(`No monorepo root could be found upwards from the directory ${e} using lerna, yarn, pnpm, or npm as indicators.`)},"findMonorepoRootSync");var GB="1.0.0-alpha.17";const Fa={version:GB};var qB=Object.defineProperty,zB=f((e,t)=>qB(e,"name",{value:t,configurable:!0}),"e$W");const HB={argument:{description:"Target selector (same syntax as `vis run`): `build`, `:build`, `~:test`, `#tag:lint`, …",name:"selector",type:String},description:"Show the execution plan for a target without running it",examples:[["vis action-graph build","Print the task plan for `build` on every project"],["vis action-graph :test","Moon-style selector"],["vis action-graph build --json","Emit a JSON description of the plan"],['vis action-graph lint --query "tag=frontend"',"Filter projects by query"]],group:"Workspace",loader:zB(()=>import("./handler.js"),"loader"),name:"action-graph",options:[{defaultValue:!1,description:"Emit JSON instead of ASCII",name:"json",type:Boolean},{description:"Filter matched projects by a query",name:"query",type:String}]};var JB=Object.defineProperty,KB=f((e,t)=>JB(e,"name",{value:t,configurable:!0}),"e$V");const YB={argument:{description:"Packages to add (e.g., react react-dom)",name:"packages",type:String},description:"Add packages using the detected package manager",examples:[["vis add react react-dom","Add packages"],["vis add -D typescript @types/react","Add as dev dependencies"],["vis add react --filter app","Add to specific workspace package"],["vis add react --to web","Add to one package, auto-conforming the version to existing catalogs / sibling deps"],["vis add -g typescript","Add globally (uses npm)"],["vis add lodash -w","Add to workspace root"],["vis add lodash --no-socket-check","Add without Socket.dev check"],["vis add lodash --no-typosquat-check","Skip typosquat name check"],["vis add lodash --run-scripts","Run lifecycle scripts (opts out of vis's default block-by-default policy)"]],group:"Dependencies",loader:KB(()=>import("./handler28.js"),"loader"),name:"add",options:[{alias:"D",defaultValue:!1,description:"Add as dev dependency",name:"save-dev",type:Boolean},{alias:"E",defaultValue:!1,description:"Save exact version",name:"exact",type:Boolean},{alias:"P",defaultValue:!1,description:"Add as peer dependency",name:"save-peer",type:Boolean},{alias:"O",defaultValue:!1,description:"Add as optional dependency",name:"save-optional",type:Boolean},{alias:"g",defaultValue:!1,description:"Install globally (uses npm)",name:"global",type:Boolean},{alias:"w",defaultValue:!1,description:"Add to workspace root",name:"workspace-root",type:Boolean},{defaultValue:!1,description:"Use workspace protocol (pnpm)",name:"workspace",type:Boolean},{alias:"F",description:"Filter by workspace package name",multiple:!0,name:"filter",type:String},{description:"Target a single workspace package and auto-conform the version to existing catalogs / sibling deps (syncpack#285)",name:"to",type:String},{defaultValue:!1,description:"Skip typosquat name check before adding",name:"no-typosquat-check",type:Boolean},{defaultValue:!1,description:"Skip Socket.dev security check before adding",name:"no-socket-check",type:Boolean},{defaultValue:!1,description:"Run lifecycle scripts during add (opts out of vis's default block-by-default policy; allowlisted packages run via security.allowBuilds)",name:"run-scripts",type:Boolean},{defaultValue:!1,description:"After adding, recursively install non-optional peer dependencies that aren't already in the workspace (matches nypm's installPeerDependencies)",name:"auto-install-peers",type:Boolean}]};var XB=Object.defineProperty,QB=f((e,t)=>XB(e,"name",{value:t,configurable:!0}),"e$U");const ZB={argument:{description:"The target to run (e.g., build, test, lint)",name:"target",type:String},description:"Run a target only on projects affected by recent changes",examples:[["vis affected build","Run build on affected projects"],["vis affected test --base=main","Run tests on projects changed since main"],["vis affected destroy --reverse","Tear down affected projects leaves-first"]],group:"Run & Execute",loader:QB(()=>import("./handler2.js"),"loader"),name:"affected",options:[{defaultValue:"HEAD~1",description:"Git base ref for comparison",name:"base",type:String},{defaultValue:"HEAD",description:"Git head ref for comparison",name:"head",type:String},{defaultValue:"deep",description:'Downstream scope: "none", "direct", or "deep" — controls how far to include dependents of changed projects',name:"downstream",type:String},{defaultValue:"none",description:'Upstream scope: "none", "direct", or "deep" — controls how far to include dependencies of changed projects',name:"upstream",type:String},{defaultValue:3,description:"Maximum number of parallel tasks",name:"parallel",type:Number},{defaultValue:!0,description:"Enable caching (use --no-cache to disable)",name:"cache",type:Boolean},{defaultValue:!1,description:"Show what would run without executing",name:"dry-run",type:Boolean},{description:'Partition tasks for distributed CI (e.g., "1/4" for first of four runners). Falls back to VIS_PARTITION env var.',name:"partition",type:String},{description:"Filter affected projects by a query (e.g. 'language=typescript && tag=lib')",name:"query",type:String},{defaultValue:!1,description:"Run the dependency graph in reverse (leaves first, then their dependents). Useful for teardown targets like `destroy`/`undeploy` where dependents must run before the things they depend on.",name:"reverse",type:Boolean},{description:"Comma-separated tags this runner advertises (e.g. 'gpu,slow'). Forwarded verbatim to the downstream `vis run` so capability-gated tasks resolve identically. Falls back to VIS_RUNNER_TAGS env var.",name:"runner-tags",type:String}]},R1={description:"Output format: table or json (default: table)",name:"format",type:String},eL={commandPath:["ai"],description:"List detected AI providers and show which one is selected",examples:[["vis ai providers","List all AI providers and their status"],["vis ai providers --format json","Output as JSON"]],group:"System",loader:Ve(()=>import("./handler29.js"),"aiProvidersExecute"),name:"providers",options:[R1]},tL={commandPath:["ai"],description:"Test the best available AI provider with a quick prompt",examples:[["vis ai test","Test the selected provider"]],group:"System",loader:Ve(()=>import("./handler29.js"),"aiTestExecute"),name:"test",options:[]},rL={argument:{description:"Task ID to propose a fix for (e.g. @my/app:build)",name:"taskId",type:String},commandPath:["ai"],description:"Read a failed task's logs and propose a structured patch (Phase 1: local-only, no git)",examples:[["vis ai fix @myorg/app:build","Print proposed patch for the failed task"],["vis ai fix @myorg/app:build --apply","Apply the patch to disk after confirming"],["vis ai fix @myorg/app:build --format json","Machine-readable patch output"],["vis ai fix @myorg/app:build --run 2026-04-28T...","Inspect a specific historical run"]],group:"System",loader:Ve(()=>import("./handler29.js"),"aiFixExecute"),name:"fix",options:[R1,{description:"Use a specific run ID from .vis/runs/ instead of the latest run",name:"run",type:String},{defaultValue:!1,description:"Apply the proposed patch to disk after printing it",name:"apply",type:Boolean},{defaultValue:!1,description:"Bypass the AI response cache",name:"no-cache",type:Boolean},{defaultValue:!1,description:"Skip the confirmation prompt before applying",name:"yes",type:Boolean}]},nL={description:"AI-assisted commands: provider detection and failure-fix proposals (cache management lives under `vis cache`)",examples:[["vis ai","List all AI subcommands"],["vis ai discover-help","Machine-readable subcommand catalogue (for AI agents)"]],group:"System",loader:Ve(()=>import("./handler29.js"),"aiRootExecute"),name:"ai",options:[]},iL={commandPath:["ai"],description:"Print the machine-readable AI subcommand catalogue (JSON to stdout, designed for AI agents)",examples:[["vis ai discover-help","Emit the discovery payload as JSON"],["vis ai discover-help | jq '.subcommands[].path'","List all available paths"]],group:"System",loader:Ve(()=>import("./handler29.js"),"aiDiscoverHelpExecute"),name:"discover-help",options:[]},sL={commandPath:["ai"],description:"Diagnose the most recent failed task and post a structured patch as a PR/MR comment (or Buildkite annotation)",examples:[["vis ai heal","Heal the most recent failure"],["vis ai heal --dry-run","Propose a patch but skip apply / validate / post"],["vis ai heal --run 2026-04-28T...","Heal a specific historical run"]],group:"System",loader:Ve(()=>import("./heal.js").then(e=>e.h),"aiHeal"),name:"heal",options:[{defaultValue:!1,description:"Show the proposal and exit without applying or posting it",name:"dry-run",type:Boolean},{defaultValue:!1,description:"Bypass the AI response cache",name:"no-cache",type:Boolean},{description:"Use a specific run ID from .vis/runs/ instead of the latest run",name:"run",type:String},{description:"Per-task validation timeout in seconds (default: 1800)",name:"validation-timeout",type:Number}]},oL={commandPath:["ai","heal"],description:"Re-run the proposed fix and commit it to the PR/MR branch when validation passes",examples:[["vis ai heal accept","Triggered automatically by a `/vis heal accept` PR comment (GitHub/GitLab) or a Buildkite block-step unblock"]],group:"System",loader:Ve(()=>import("./heal-accept.js"),"aiHealAccept"),name:"accept",options:[{description:"Use a specific run ID from .vis/runs/ instead of the latest run",name:"run",type:String},{description:"Per-task validation timeout in seconds (default: 1800)",name:"validation-timeout",type:Number}]},B1=[nL,iL,eL,tL,rL,sL,oL],NY=Object.defineProperty({__proto__:null,default:B1},Symbol.toStringTag,{value:"Module"});var aL=Object.defineProperty,cL=f((e,t)=>aL(e,"name",{value:t,configurable:!0}),"e$T");const lL={argument:{description:"Package name to analyze (e.g., react)",name:"package",required:!0,type:String},description:"Analyze a single package update with AI",examples:[["vis analyze react","Analyze updating react to latest"],["vis analyze react 19.0.0","Analyze updating react to specific version"],["vis analyze react --ai-type security","Run security-focused analysis"],["vis analyze react --format json","Output as JSON"]],group:"System",loader:cL(()=>import("./handler3.js"),"loader"),name:"analyze",options:[{description:"AI analysis type: impact, security, compatibility, or recommend (default: impact)",name:"ai-type",type:String},{defaultValue:!1,description:"Check for known security vulnerabilities",name:"security",type:Boolean},{description:"Output format: table or json (default: table)",name:"format",type:String}]};var uL=Object.defineProperty,pL=f((e,t)=>uL(e,"name",{value:t,configurable:!0}),"e$S");const dL={description:"Review and approve dependencies with build scripts",examples:[["vis approve-builds","Scan and list unapproved build scripts"],["vis approve-builds --all","Approve all pending builds (pnpm)"],["vis approve-builds --sync-native","Sync allowBuilds to native PM config"]],group:"Security & Health",loader:pL(()=>import("./handler4.js"),"loader"),name:"approve-builds",options:[{defaultValue:!1,description:"Approve all pending builds without prompting (pnpm only)",name:"all",type:Boolean},{defaultValue:!1,description:"Force vis scanning even for pnpm (instead of delegating)",name:"scan",type:Boolean},{defaultValue:!1,description:"Sync allowBuilds to native PM config (bun: trustedDependencies, npm: .npmrc, yarn: .yarnrc.yml)",name:"sync-native",type:Boolean}]};var fL=Object.defineProperty,hL=f((e,t)=>fL(e,"name",{value:t,configurable:!0}),"e$R");const mL={description:"Audit installed packages for vulnerabilities and supply chain risks",examples:[["vis audit","Full audit of all installed packages"],["vis audit --severity high","Show only high/critical issues"],["vis audit --format json","Output as JSON for CI integration"],["vis audit --fix","Show fix suggestions for vulnerabilities"],["vis audit --exit-code","Exit with code 1 if issues found (for CI)"],["vis audit --show-accepted","Include acknowledged risks in output"],["vis audit --sync","Sync accepted risks to native PM config (pnpm-workspace.yaml / .yarnrc.yml)"]],group:"Security & Health",loader:hL(()=>import("./handler30.js"),"loader"),name:"audit",options:[{description:"Minimum severity to report: low, medium, high, critical (default: low)",name:"severity",type:String},{description:"Output format: table or json (default: table)",name:"format",type:String},{defaultValue:!1,description:"Show fix suggestions for vulnerabilities",name:"fix",type:Boolean},{defaultValue:!1,description:"Exit with code 1 if any issues found (for CI)",name:"exit-code",type:Boolean},{defaultValue:!1,description:"Include acknowledged (accepted risk) issues in output",name:"show-accepted",type:Boolean},{defaultValue:!1,description:"Sync vis accepted risks to native PM config (pnpm-workspace.yaml / .yarnrc.yml)",name:"sync",type:Boolean}]},jo={description:"Cache directory (overrides config and default). Relative paths are resolved against the workspace root.",name:"cache-dir",type:String},jc={description:"Cache scope: 'shared' (default — main worktree's cache), 'worktree' (this checkout's local cache), or 'all' (both)",name:"scope",type:String},L1={description:"Cache type: 'task' (workspace task cache), 'ai' (AI response cache), 'socket' (Socket.dev report cache), or 'all' (default)",name:"type",type:String},gL={commandPath:["cache"],description:"List all cache entries",examples:[["vis cache list","List all cache entries"]],group:"Workspace",loader:Ve(()=>import("./handler21.js"),"cacheListExecute"),name:"list",options:[jo,jc,{description:"Output format: table or json (default: table)",name:"format",type:String}]},yL={commandPath:["cache"],description:"Remove cache entries (defaults to all stores: workspace task cache, AI responses, Socket.dev reports)",examples:[["vis cache clean","Remove all cache entries from every store"],["vis cache clean --type=ai","Clear only the AI response cache"],["vis cache clean --type=task","Clear only the workspace task cache"],["vis cache clean --dry-run","Preview what clean would remove"]],group:"Workspace",loader:Ve(()=>import("./handler21.js"),"cacheCleanExecute"),name:"clean",options:[jo,L1,{defaultValue:!1,description:"Preview without deleting",name:"dry-run",type:Boolean},{defaultValue:!1,description:"Skip the confirmation prompt for out-of-workspace cache directories",name:"force",type:Boolean}]},vL={commandPath:["cache"],description:"Remove old and oversized cache entries",examples:[["vis cache prune","Remove old and oversized entries"],["vis cache prune --max-age-days=3 --max-size=500MB","Prune with custom limits"],["vis cache prune --keep-last=30","Keep only the 30 most recent entries"]],group:"Workspace",loader:Ve(()=>import("./handler21.js"),"cachePruneExecute"),name:"prune",options:[jo,jc,{description:"Remove entries older than N days",name:"max-age-days",type:Number},{description:"Evict oldest entries until cache is under this size (e.g. 500MB)",name:"max-size",type:String},{description:"Keep only the N most recent entries (sorted newest-first by mtime)",name:"keep-last",type:Number}]},bL={commandPath:["cache"],description:"Print on-disk footprint and stats for one or more cache stores (task / ai / socket)",examples:[["vis cache size","Show stats for every cache store"],["vis cache size --type=ai","Show only the AI response cache (entries, size, oldest, newest)"],["vis cache size --type=task --format=json","Machine-readable task cache size"]],group:"Workspace",loader:Ve(()=>import("./handler21.js"),"cacheSizeExecute"),name:"size",options:[jo,jc,L1,{description:"Output format: table or json (default: table)",name:"format",type:String}]},hf={description:"Output format: table or json (default: table)",name:"format",type:String},T1={description:"Use a specific run ID from .vis/runs/ instead of the latest run",name:"run",type:String},$L={argument:{description:"Task ID to explain (e.g. @my/app:build)",name:"taskId",type:String},commandPath:["cache"],description:"Explain why a task missed the cache by diffing hash inputs against the previous run",examples:[["vis cache why @myorg/app:build","Show which inputs changed since the last run"],["vis cache why @myorg/app:build --json","Machine-readable output for CI"],["vis cache why @myorg/app:build --run 2026-04-28T...","Inspect a specific historical run"]],group:"Workspace",loader:Ve(()=>import("./handler21.js"),"cacheWhyExecute"),name:"why",options:[hf,T1]},wL={argument:{description:"Task ID to print the hash for (e.g. @my/app:build)",name:"taskId",type:String},commandPath:["cache"],description:"Print the recorded hash and per-input hash details for a task",examples:[["vis cache hash @myorg/app:build","Show the resolved hash + contributing inputs"],["vis cache hash @myorg/app:build --json","Machine-readable output"]],group:"Workspace",loader:Ve(()=>import("./handler21.js"),"cacheHashExecute"),name:"hash",options:[hf,T1]},kL={argument:{description:"Task ID to verify (e.g. @my/app:build)",name:"taskId",type:String},commandPath:["cache"],description:"Verify cache restore fidelity: extract the cached entry into a tmp directory and diff each file's content, mode, and mtime against the live workspace. Exits 1 on any drift (changed content, mode, mtime) or if a cached output is missing from the workspace. With --scope=all, the first cache directory containing the task is used.",examples:[["vis cache verify @myorg/app:build","Diff cached outputs vs live workspace files"],["vis cache verify @myorg/app:build --format=json","Machine-readable diff (status: ok | drift)"],["vis cache verify @myorg/app:build --cache-dir=.alt-cache","Verify against a non-default cache directory"],["vis cache verify @myorg/app:build --scope=all","Search shared and worktree caches for the task"]],group:"Workspace",loader:Ve(()=>import("./handler21.js"),"cacheVerifyExecute"),name:"verify",options:[jo,jc,hf]},SL={commandPath:["cache"],description:"Probe the configured remote cache (HTTP HEAD or REAPI Capabilities) and report reachability, latency, and negotiated capabilities",examples:[["vis cache doctor","Probe the remoteCache configured in vis.config.ts"],["vis cache doctor --url=grpcs://cache.example.com:443 --backend=reapi","Override URL/backend ad-hoc"],["vis cache doctor --json","Machine-readable output"]],group:"Workspace",loader:Ve(()=>import("./doctor-probe.js"),"cacheDoctorExecute"),name:"doctor",options:[{description:"Override remote cache URL (otherwise read from vis.config.ts remoteCache.url, or TURBO_API env var)",name:"url",type:String},{description:"Override backend selector: 'http' or 'reapi'",name:"backend",type:String},{description:"Output format: table or json (default: table)",name:"format",type:String},{defaultValue:5e3,description:"Probe timeout in milliseconds (default: 5000)",name:"timeout",type:Number}]},DL=[gL,yL,vL,bL,$L,wL,kL,SL];var CL=Object.defineProperty,EL=f((e,t)=>CL(e,"name",{value:t,configurable:!0}),"e$Q");const AL={alias:["c","outdated"],argument:{description:"Specific packages to check (checks all if omitted)",name:"packages",type:String},description:"Check for outdated dependencies, security vulnerabilities, and supply chain settings",examples:[["vis check","Check all catalog dependencies"],["vis check react","Check specific packages"],["vis check --target minor","Only show minor/patch updates"],["vis check --exclude '@types/*'","Exclude packages by pattern"],["vis check --no-security","Skip vulnerability scanning"],["vis check --security-config","Audit supply chain security settings"],["vis check --security-config --sync","Sync security config to pnpm-workspace.yaml"]],group:"Security & Health",loader:EL(()=>import("./handler5.js"),"loader"),name:"check",options:[{alias:"t",description:"Update target: latest, minor, or patch (default: latest)",name:"target",type:String},{description:"Glob pattern to include packages (repeatable)",lazyMultiple:!0,name:"include",type:String},{description:"Glob pattern to exclude packages (repeatable)",lazyMultiple:!0,name:"exclude",type:String},{defaultValue:!1,description:"Include prerelease versions",name:"prerelease",type:Boolean},{defaultValue:!1,description:"Skip security vulnerability scanning",name:"no-security",type:Boolean},{defaultValue:!1,description:"Audit supply chain security settings",name:"security-config",type:Boolean},{defaultValue:!1,description:"Sync security settings to pnpm-workspace.yaml (pnpm only, requires --security-config)",name:"sync",type:Boolean},{description:"Output format: table, json, or minimal (default: table)",name:"format",type:String},{defaultValue:!1,description:"Exit with code 1 if outdated dependencies found (for CI)",name:"exit-code",type:Boolean},{defaultValue:!1,description:"Run AI analysis on outdated packages",name:"ai",type:Boolean},{description:"AI analysis type: impact, security, compatibility, or recommend",name:"ai-type",type:String},{alias:"D",conflicts:"prod",description:"Check only devDependencies (npm/yarn mode)",name:"dev",type:Boolean},{alias:"P",conflicts:"dev",description:"Check only dependencies (npm/yarn mode)",name:"prod",type:Boolean},{defaultValue:!1,description:"Include peerDependencies in outdated checks",name:"peer",type:Boolean},{defaultValue:!1,description:"Also check workspace-owned package names against the registry",name:"include-internal",type:Boolean}]};var jL=Object.defineProperty,OL=f((e,t)=>jL(e,"name",{value:t,configurable:!0}),"e$P");const xL={argument:{description:"Comma-separated list of targets to run (e.g., lint,test,build)",name:"targets",type:String},description:"Run affected targets in a CI-optimized pipeline",examples:[["vis ci lint,test,build","Run lint, test, and build on affected projects"],["vis ci test --base=origin/main","Override the base ref"],["vis ci build --no-install","Skip the install step (assume deps already present)"],["vis ci build --parallel=6","Increase concurrency"]],group:"Run & Execute",loader:OL(()=>import("./handler6.js"),"loader"),name:"ci",options:[{defaultValue:!0,description:"Install dependencies before running targets (use --no-install to skip)",name:"install",type:Boolean},{defaultValue:!1,description:"Skip the toolchain pre-flight (no auto-install for any pinned tool: node / pnpm / yarn / npm / bun / deno / go / python / ruby / rust)",name:"skip-toolchain",type:Boolean},{description:"Git base ref for affected detection (default: auto-detected from CI env)",name:"base",type:String},{description:"Git head ref for affected detection (default: HEAD)",name:"head",type:String},{defaultValue:"none",description:"Upstream scope: none | direct | deep",name:"upstream",type:String},{defaultValue:"deep",description:"Downstream scope: none | direct | deep",name:"downstream",type:String},{defaultValue:4,description:"Maximum number of parallel tasks per target",name:"parallel",type:Number},{description:'Partition tasks for distributed CI (e.g., "1/4")',name:"partition",type:String},{description:"Filter affected projects by a query (e.g. 'language=typescript && tag=lib')",name:"query",type:String}]};var PL=Object.defineProperty,NL=f((e,t)=>PL(e,"name",{value:t,configurable:!0}),"e$O");const FL={description:"Remove node_modules from all workspace projects",examples:[["vis clean","Remove all node_modules directories"],["vis clean --lockfile","Also remove lockfiles"],["vis clean --dry-run","Preview what would be removed"]],group:"Workspace",loader:NL(()=>import("./handler7.js"),"loader"),name:"clean",options:[{alias:"l",defaultValue:!1,description:"Also remove lockfiles (pnpm-lock.yaml, package-lock.json, etc.)",name:"lockfile",type:Boolean},{defaultValue:!1,description:"Preview what would be removed without deleting",name:"dry-run",type:Boolean}]};var RL=Object.defineProperty,BL=f((e,t)=>RL(e,"name",{value:t,configurable:!0}),"e$N");const LL={argument:{description:"Template to use (e.g., vis:app, create-vite, user/repo) — omit for interactive mode",name:"template",type:String},description:"Create a new project from a template",examples:[["vis create","Interactive project scaffolding"],["vis create vis:monorepo my-workspace","Create a monorepo workspace"],["vis create vis:app my-app","Scaffold a Vite application"],["vis create vis:library my-lib","Create a TypeScript library"],["vis create vite my-app -- --template react-ts","Use create-vite with React TypeScript"],["vis create user/repo my-project","Clone a GitHub template"],["vis create --list","Show available templates"]],group:"Scaffold & Config",loader:BL(()=>import("./handler43.js"),"loader"),name:"create",options:[{defaultValue:!1,description:"Show available templates",name:"list",type:Boolean},{description:"Generate editor configs (vscode)",name:"editor",type:String},{defaultValue:!1,description:"Initialize a git repository",name:"git-init",type:Boolean},{defaultValue:!1,description:"Skip interactive prompts",name:"no-interactive",type:Boolean}]};var TL=Object.defineProperty,IL=f((e,t)=>TL(e,"name",{value:t,configurable:!0}),"e$M");const _L={description:"Deduplicate dependencies using the detected package manager",examples:[["vis dedupe","Run deduplication"],["vis dedupe --check","Preview changes without modifying (CI-friendly)"]],group:"Dependencies",loader:IL(()=>import("./handler8.js"),"loader"),name:"dedupe",options:[{defaultValue:!1,description:"Preview changes without modifying files (dry-run)",name:"check",type:Boolean}]};var ML=Object.defineProperty,VL=f((e,t)=>ML(e,"name",{value:t,configurable:!0}),"e$L");const WL={alias:"dc",description:"Create or update .devcontainer/devcontainer.json interactively",examples:[["vis devcontainer","Launch interactive devcontainer config editor"],["vis dc","Alias for devcontainer"],["vis devcontainer --template node-pnpm","Start from Node.js + pnpm template"]],group:"Scaffold & Config",loader:VL(()=>import("./handler45.js"),"loader"),name:"devcontainer",options:[{alias:"t",description:"Start from a template: node, node-pnpm, node-postgres, node-dind, fullstack, python, go, rust, java, devops, minimal, custom",name:"template",type:String},{alias:"o",description:"Output path (default: .devcontainer/devcontainer.json)",name:"output",type:String}]};var UL=Object.defineProperty,GL=f((e,t)=>UL(e,"name",{value:t,configurable:!0}),"e$K");const qL={argument:{description:"Package to execute (optionally with @version)",name:"package",type:String},description:"Execute a remote package without permanent installation",examples:[["vis dlx create-vite my-app","Scaffold a new project"],["vis dlx typescript@5.5.4 tsc --version","Run specific version"],["vis dlx -p cowsay -p lolcatjs -c 'echo hi | cowsay | lolcatjs'","Multiple packages with shell"]],group:"Run & Execute",loader:GL(()=>import("./handler9.js"),"loader"),name:"dlx",options:[{alias:"p",description:"Additional packages to install (repeatable)",multiple:!0,name:"package",type:String},{alias:"c",defaultValue:!1,description:"Execute within shell environment",name:"shell-mode",type:Boolean},{alias:"s",defaultValue:!1,description:"Suppress output except command results",name:"silent",type:Boolean}]};var zL=Object.defineProperty,HL=f((e,t)=>zL(e,"name",{value:t,configurable:!0}),"e$J");const JL={argument:{description:"Docker subcommand: scaffold | prune",name:"subcommand",type:String},description:"Docker integration — scaffold a minimal context or prune unfocused deps",examples:[["vis docker scaffold --focus=my-app","Generate .vis/docker/workspace for my-app + its deps"],["vis docker scaffold --focus=my-app --include-sources","Also copy focus source trees"],["vis docker scaffold --focus=my-app,other --out=.vis/docker","Focus multiple projects"],["vis docker prune --context=.vis/docker","Strip unfocused projects inside a build stage"]],group:"Workspace",loader:HL(()=>import("./handler10.js"),"loader"),name:"docker",options:[{description:"Project name(s) to focus on — comma-separated for multiple",name:"focus",type:String},{description:"Output directory for the scaffold (default: .vis/docker)",name:"out",type:String},{defaultValue:!1,description:"Also copy focus project source trees to <out>/sources",name:"include-sources",type:Boolean},{description:"Scaffold root for `vis docker prune` (default: .vis/docker)",name:"context",type:String},{defaultValue:!0,description:"Rewrite the workspace lockfile to drop unfocused projects (use --no-prune-lockfile to copy verbatim)",name:"prune-lockfile",type:Boolean}]};var KL=Object.defineProperty,YL=f((e,t)=>KL(e,"name",{value:t,configurable:!0}),"e$I");const XL={description:"Run a full project health check (outdated, security, duplicates, optimizations)",examples:[["vis doctor","Full project health check"],["vis doctor --fix","Check and auto-apply safe fixes"],["vis doctor --format json","Machine-readable output for CI"],["vis doctor --only security","Only run the security scans"],["vis doctor --skip optimization,runtime","Skip the listed sections"],["vis doctor --quiet","Summary only, no per-section breakdown"],["vis doctor --no-progress","Disable live progress UI (sequential logs)"],["vis doctor --exit-code","Exit with code 1 if security issues found"],["vis doctor --exit-code --strict","Fail on any issue (outdated, duplicates, security)"]],group:"Security & Health",loader:YL(()=>import("./handler41.js"),"loader"),name:"doctor",options:[{description:"Output format: table or json (default: table). Alias: --json",name:"format",type:String},{defaultValue:!1,description:"Shorthand for --format json",name:"json",type:Boolean},{defaultValue:!1,description:"Exit with code 1 if issues found",name:"exit-code",type:Boolean},{defaultValue:!1,description:"Auto-apply safe fixes (security overrides + codemods, SIGTERM orphans)",name:"fix",type:Boolean},{defaultValue:!1,description:"With --fix: escalate orphan cleanup to SIGKILL / taskkill /F (use when SIGTERM is ignored)",name:"fix-force",type:Boolean},{defaultValue:!1,description:"With --exit-code: also fail on outdated and duplicate deps",name:"strict",type:Boolean},{description:"Comma-separated sections to run: dependencies,security,optimization,runtime",name:"only",type:String},{description:"Comma-separated sections to skip",name:"skip",type:String},{defaultValue:!1,description:"Suppress per-section detail; print summary only",name:"quiet",type:Boolean},{defaultValue:!1,description:"Disable live progress UI (forces sequential logs)",name:"no-progress",type:Boolean},{defaultValue:!1,description:"Bypass the doctor result cache (~/.vis/cache/doctor)",name:"no-cache",type:Boolean},{description:"Comma-separated package name patterns to scope findings (supports * globs, e.g. '@types/*,react')",name:"filter",type:String}]};var QL=Object.defineProperty,ZL=f((e,t)=>QL(e,"name",{value:t,configurable:!0}),"e$H");const eT={argument:{description:"Command to execute followed by arguments",name:"command",type:String},description:"Execute a local node_modules/.bin command (no remote fallback)",examples:[["vis exec eslint .","Run local eslint"],["vis exec tsc --noEmit","Run local TypeScript check"],["vis exec -r -- eslint .","Run in all workspace packages"],["vis exec -c 'echo $PATH'","Shell mode"]],group:"Run & Execute",loader:ZL(()=>import("./handler11.js"),"loader"),name:"exec",options:[{alias:"c",defaultValue:!1,description:"Execute within shell environment",name:"shell-mode",type:Boolean},{alias:"r",defaultValue:!1,description:"Run in every workspace package",name:"recursive",type:Boolean},{alias:"w",defaultValue:!1,description:"Run on workspace root only",name:"workspace-root",type:Boolean},{alias:"F",description:"Filter packages by name pattern",multiple:!0,name:"filter",type:String},{defaultValue:!1,description:"Run concurrently without topological ordering",name:"parallel",type:Boolean},{defaultValue:!1,description:"Reverse topological execution order",name:"reverse",type:Boolean}]};var tT=Object.defineProperty,rT=f((e,t)=>tT(e,"name",{value:t,configurable:!0}),"e$G");const nT={argument:{description:"Template name (or remote source like git://… or npm://…) — omit for interactive picker",name:"template",type:String},description:"Scaffold files from an in-repo template",examples:[["vis generate","Pick a template interactively"],["vis generate package","Run the 'package' template"],["vis generate component -- --name=Button --style=primary","Pre-fill option values"],["vis generate package --to=./packages/new --force","Custom destination + overwrite"],["vis generate package --dry-run","Print planned writes without touching disk"],["vis generate git://github.com/org/template#main","Fetch and run a remote template"],["vis generate --list","Show discovered templates"],["vis generate --list --json","Machine-readable template list"],["vis generate package --describe --json","Print template metadata (variables, destination) as JSON"]],group:"Scaffold & Config",loader:rT(()=>import("./handler36.js"),"loader"),name:"generate",options:[{defaultValue:!1,description:"List discovered templates",name:"list",type:Boolean},{defaultValue:!1,description:"Print template metadata (about, destination, variables) without running produce",name:"describe",type:Boolean},{defaultValue:!1,description:"Emit JSON output (with --list or --describe)",name:"json",type:Boolean},{description:"Destination directory",name:"to",type:String},{defaultValue:!1,description:"Print planned writes without touching disk",name:"dry-run",type:Boolean},{defaultValue:!1,description:"Overwrite existing files without prompting",name:"force",type:Boolean},{defaultValue:!1,description:"Skip prompts; use template defaults",name:"defaults",type:Boolean},{defaultValue:!1,description:"Skip running post-generation scripts",name:"skip-scripts",type:Boolean},{defaultValue:!1,description:"Skip interactive prompts (errors on missing required values)",name:"no-interactive",type:Boolean},{defaultValue:!1,description:"Prefer locally cached remote templates over re-downloading",name:"prefer-offline",type:Boolean}]};var iT=Object.defineProperty,sT=f((e,t)=>iT(e,"name",{value:t,configurable:!0}),"t$s");const oT={description:"Visualize the project dependency graph",examples:[["vis graph","Show colored dependency graph (TUI in TTY, ASCII otherwise)"],["vis graph --format=ascii","Force ASCII tree output"],["vis graph --format=dot","Output in Graphviz DOT format"],["vis graph --format=html --output=graph.html","Generate interactive HTML graph"],["vis graph --format=json --output=graph.json","Save JSON graph to file"]],group:"Workspace",loader:sT(()=>import("./handler37.js"),"loader"),name:"graph",options:[{alias:"f",defaultValue:void 0,description:"Output format: tui, ascii, dot, json, html (default: tui in TTY, ascii otherwise)",name:"format",type:String},{alias:"o",description:"Write output to file instead of stdout",name:"output",type:String},{alias:"d",description:"Maximum dependency tree depth for ASCII output (default: unlimited)",name:"depth",type:Number}]},I1=["pre-commit","pre-merge-commit","prepare-commit-msg","commit-msg","post-commit","applypatch-msg","pre-applypatch","post-applypatch","pre-rebase","post-rewrite","post-checkout","post-merge","pre-push","pre-auto-gc"],_1=".vis-hooks",FY=[".pre-commit-config.yaml",".pre-commit-config.yml","prek.toml"],RY={commit:"pre-commit","merge-commit":"pre-merge-commit",push:"pre-push"},BY=new Set(["commit-msg","post-checkout","post-commit","post-merge","post-rewrite","pre-commit","pre-merge-commit","pre-push","pre-rebase","prepare-commit-msg"]),LY=new Set(["commit-msg","post-checkout","post-merge","post-rewrite","pre-rebase","prepare-commit-msg"]),TY=new Set(["fail","script","system"]);var aT=Object.defineProperty,ei=f((e,t)=>aT(e,"name",{value:t,configurable:!0}),"e$E");const ti={defaultValue:_1,description:"Custom hooks directory",name:"hooks-dir",type:String},ri=[{defaultValue:void 0,description:"Set to 0 to disable git hooks, set to 2 for debug output",name:"VIS_GIT_HOOKS",type:String}],cT={commandPath:["hook"],description:"Install git hooks for the workspace (migrates husky / prek on prompt)",env:[...ri],examples:[["vis hook install","Install git hooks in .vis-hooks/"],["vis hook install --hooks-dir=.githooks","Install hooks in a custom directory"]],group:"Scaffold & Config",loader:ei(()=>import("./handler39.js").then(e=>({default:e.hookInstallExecute})),"loader"),name:"install",options:[ti]},lT={commandPath:["hook"],description:"Remove git hooks and reset core.hooksPath",env:[...ri],examples:[["vis hook uninstall","Remove git hooks and reset core.hooksPath"]],group:"Scaffold & Config",loader:ei(()=>import("./handler39.js").then(e=>({default:e.hookUninstallExecute})),"loader"),name:"uninstall",options:[ti]},uT={commandPath:["hook"],description:"Migrate from husky or prek to vis hooks (auto-detected)",env:[...ri],examples:[["vis hook migrate","Migrate from husky or prek to vis hooks (auto-detected)"],["vis hook migrate --dry-run","Preview what a migration would write without touching disk"]],group:"Scaffold & Config",loader:ei(()=>import("./handler39.js").then(e=>({default:e.hookMigrateExecute})),"loader"),name:"migrate",options:[ti,{defaultValue:!1,description:"Preview migrate without writing files",name:"dry-run",type:Boolean}]},pT={commandPath:["hook"],description:"Show configured hooks grouped by stage",env:[...ri],examples:[["vis hook list","Show configured hooks grouped by stage"]],group:"Scaffold & Config",loader:ei(()=>import("./handler39.js").then(e=>({default:e.hookListExecute})),"loader"),name:"list",options:[ti]},dT={commandPath:["hook"],description:"Sanity-check installed hooks and the bundled runner",env:[...ri],examples:[["vis hook validate","Sanity-check installed hooks and the bundled runner"]],group:"Scaffold & Config",loader:ei(()=>import("./handler39.js").then(e=>({default:e.hookValidateExecute})),"loader"),name:"validate",options:[ti]},fT={argument:{description:"Hook stage to run (e.g. pre-commit, commit-msg). Defaults to pre-commit.",name:"stage",type:String},commandPath:["hook"],description:"Run a specific hook stage against tracked files",env:[...ri],examples:[["vis hook run pre-commit --all-files","Run the pre-commit hooks against every tracked file"],["vis hook run pre-commit --from-ref=main --to-ref=HEAD","Run pre-commit hooks on files changed between two refs"],["vis hook run pre-commit --last-commit","Shortcut for --from-ref HEAD~1 --to-ref HEAD"]],group:"Scaffold & Config",loader:ei(()=>import("./handler39.js").then(e=>({default:e.hookRunExecute})),"loader"),name:"run",options:[ti,{defaultValue:!1,description:"Run against every tracked file",name:"all-files",type:Boolean},{defaultValue:void 0,description:"Include files changed since this ref",name:"from-ref",type:String},{defaultValue:void 0,description:"Include files changed up to this ref",name:"to-ref",type:String},{defaultValue:!1,description:"Shortcut for --from-ref HEAD~1 --to-ref HEAD",name:"last-commit",type:Boolean}]},hT={argument:{description:"Target to add (currently: `secrets`)",name:"target",type:String},commandPath:["hook"],description:"Add a managed hook snippet (e.g. `vis secrets --staged`)",env:[...ri],examples:[["vis hook add secrets","Add a pre-commit hook that runs `vis secrets --staged`"]],group:"Scaffold & Config",loader:ei(()=>import("./handler39.js").then(e=>({default:e.hookAddExecute})),"loader"),name:"add",options:[ti]},mT=[cT,lT,uT,pT,dT,fT,hT];var gT=Object.defineProperty,yT=f((e,t)=>gT(e,"name",{value:t,configurable:!0}),"e$D");const vT={argument:{description:"Project name to check (required)",name:"project",type:String},description:'Exit with inverted codes for CI "Ignored Build Step" gating (Vercel/Netlify)',examples:[["vis ignore my-app","Check if my-app is affected and decide whether to build"],["vis ignore my-app --base $VERCEL_GIT_PREVIOUS_SHA","Explicit base ref"],["vis ignore my-app --json","Emit the decision as JSON instead of text"],["vis ignore my-app --verbose","Print debug info about the decision path"],["vis ignore my-app --exit-zero-on-build","Normal exit semantics (0=build, 0=skip)"]],group:"Run & Execute",loader:yT(()=>import("./handler31.js"),"loader"),name:"ignore",options:[{description:"Git base ref for comparison. Defaults to CI provider env vars, then HEAD~1.",name:"base",type:String},{defaultValue:"HEAD",description:"Git head ref for comparison",name:"head",type:String},{defaultValue:"deep",description:'Downstream scope: "none", "direct", or "deep"',name:"downstream",type:String},{defaultValue:"none",description:'Upstream scope: "none", "direct", or "deep"',name:"upstream",type:String},{defaultValue:!1,description:"Emit the decision as JSON on stdout instead of human text",name:"json",type:Boolean},{defaultValue:!1,description:"Exit 0 on build (normal semantics) instead of 1 (inverted Vercel/Netlify semantics)",name:"exit-zero-on-build",type:Boolean},{defaultValue:!1,description:"Enable verbose debug output",name:"verbose",type:Boolean}]};var bT=Object.defineProperty,$T=f((e,t)=>bT(e,"name",{value:t,configurable:!0}),"e$C");const wT={description:"Remove vis from the system (self-uninstall)",examples:[["vis implode","Interactive uninstall"],["vis implode --yes","Non-interactive uninstall (CI)"]],group:"System",loader:$T(()=>import("./handler12.js"),"loader"),name:"implode",options:[{alias:"y",defaultValue:!1,description:"Skip confirmation prompt",name:"yes",type:Boolean}]};var kT=Object.defineProperty,ST=f((e,t)=>kT(e,"name",{value:t,configurable:!0}),"e$B");const DT={alias:"view",argument:{description:"Package name followed by optional metadata fields (e.g. 'react version dependencies')",name:"args",type:String},description:"Show npm registry metadata for a package (alias of `npm view` / `pnpm view` / `yarn info` / `bun pm view`)",examples:[["vis info react","Full registry metadata for react"],["vis info react version","Latest version only"],["vis info react versions","All published versions"],["vis info react@18 dependencies","Dependencies of react@18"],["vis info react --json","Emit JSON"],["vis view react","Alias matching npm/pnpm"]],group:"Dependencies",loader:ST(()=>import("./handler13.js"),"loader"),name:"info",options:[{defaultValue:!1,description:"Output as JSON",name:"json",type:Boolean}]};var CT=Object.defineProperty,ET=f((e,t)=>CT(e,"name",{value:t,configurable:!0}),"e$A");const AT={description:"Initialize vis.config.ts with best-practice security defaults",examples:[["vis init","Interactive setup wizard"],["vis init --no-interactive","Create minimal config without prompts"],["vis init --force","Overwrite existing config"],["vis init --sync-native","Also sync to native PM config files"]],group:"Scaffold & Config",loader:ET(()=>import("./handler14.js"),"loader"),name:"init",options:[{defaultValue:!1,description:"Overwrite existing config file",name:"force",type:Boolean},{defaultValue:!1,description:"Skip interactive prompts",name:"no-interactive",type:Boolean},{defaultValue:!1,description:"Sync settings to native PM config files",name:"sync-native",type:Boolean}]};var jT=Object.defineProperty,OT=f((e,t)=>jT(e,"name",{value:t,configurable:!0}),"e$z");const xT={alias:"i",description:"Install dependencies using the detected package manager",examples:[["vis install","Install all dependencies (frozen-lockfile by default when a lockfile is present)"],["vis i --no-frozen-lockfile","Allow lockfile updates (escape hatch for the default)"],["vis install --ci","Clean install: wipe node_modules + frozen lockfile (mirrors npm ci / pnpm ci)"],["vis install --prefer-offline","Use cached packages when available, fall back to network"],["vis install --prod","Install production dependencies only"],["vis install --filter app","Install for specific workspace package"],["vis install --run-scripts","Run lifecycle scripts (opts out of vis's default block-by-default policy; allowlisted packages run via security.allowBuilds)"],["vis install --no-typosquat-check","Skip typosquat name check"],["vis install --installer aube","Force aube as the installer (errors if not on PATH)"],["vis install --no-aube","Bypass aube; use the lockfile-detected PM"]],group:"Dependencies",loader:OT(()=>import("./handler15.js"),"loader"),name:"install",options:[{alias:"P",conflicts:"dev",description:"Skip devDependencies",name:"prod",type:Boolean},{alias:"D",conflicts:"prod",description:"Install devDependencies only",name:"dev",type:Boolean},{defaultValue:!1,description:"Use frozen lockfile (CI mode, maps to npm ci)",name:"frozen-lockfile",type:Boolean},{defaultValue:!1,description:"Opt out of vis's default frozen-lockfile behavior and allow lockfile updates",name:"no-frozen-lockfile",type:Boolean},{defaultValue:!1,description:"Clean install: wipe node_modules then install with frozen lockfile",name:"ci",type:Boolean},{alias:"f",defaultValue:!1,description:"Force reinstall all dependencies",name:"force",type:Boolean},{defaultValue:!1,description:"Run lifecycle scripts (opts out of vis's default block-by-default policy; allowlisted packages run via security.allowBuilds)",name:"run-scripts",type:Boolean},{defaultValue:!1,description:"Update lockfile without installing",name:"lockfile-only",type:Boolean},{defaultValue:!1,description:"Skip optional dependencies",name:"no-optional",type:Boolean},{defaultValue:!1,description:"Use only cached packages",name:"offline",type:Boolean},{defaultValue:!1,description:"Prefer cached packages, fall back to network when missing",name:"prefer-offline",type:Boolean},{alias:"s",defaultValue:!1,description:"Suppress output",name:"silent",type:Boolean},{alias:"r",defaultValue:!1,description:"Install in all workspace packages",name:"recursive",type:Boolean},{alias:"w",defaultValue:!1,description:"Target workspace root",name:"workspace-root",type:Boolean},{alias:"F",description:"Filter by workspace package name",multiple:!0,name:"filter",type:String},{defaultValue:!1,description:"Skip typosquat name check",name:"no-typosquat-check",type:Boolean},{description:"Pick the installer explicitly. One of: auto, aube, pnpm, npm, yarn, bun. Overrides VIS_INSTALLER and install.backend in vis.config.",name:"installer",type:String},{defaultValue:!1,description:"Skip aube and use the lockfile-detected PM. Wins over --installer / VIS_INSTALLER / install.backend.",name:"no-aube",type:Boolean}]};var PT=Object.defineProperty,NT=f((e,t)=>PT(e,"name",{value:t,configurable:!0}),"e$y");const FT={alias:"ln",argument:{description:"Package name or directory path to link (omit to register current package)",name:"target",type:String},description:"Link a local package for development",examples:[["vis link ./packages/utils","Link local directory package (works on all PMs)"],["vis link","Register current package globally (pnpm <=10, yarn, npm, bun)"],["vis link react","Link global package into current project (pnpm <=10, yarn, npm, bun)"]],group:"Dependencies",loader:NT(()=>import("./handler16.js"),"loader"),name:"link"};var RT=Object.defineProperty,BT=f((e,t)=>RT(e,"name",{value:t,configurable:!0}),"e$x");const LT={description:"Lint workspace dependency policies (workspace-protocol, banned-deps, redefine-root, workspace-versions, custom-types, empty-deps, root-private, root-package-manager, root-deps, missing-package-json, dead-workspace-patterns, types-in-deps, similar-deps)",examples:[["vis lint","Run every enabled lint and exit non-zero on failures"],["vis lint --workspace-protocol","Only check that internal deps use workspace:*"],["vis lint --workspace-protocol --fix","Auto-rewrite internal deps to use workspace:*"],["vis lint --redefine-root","Flag deps duplicated between root and child packages"],["vis lint --banned-deps","Flag deps matching policy.bannedDeps in vis config"],["vis lint --workspace-versions","Flag external deps declared at different versions across packages"],["vis lint --workspace-versions --fix","Rewrite drifting deps to the highest sibling version"],["vis lint --workspace-versions --dep react","Limit version-drift check to a single dep"],["vis lint --workspace-versions --resolve catalog --fix","Rewrite drifting deps to catalog: when a catalog already pins them"],["vis lint --workspace-versions --resolve catalog --propose-min 3","Suggest new catalog entries for deps ≥3 packages already agree on"],["vis lint --custom-types","Flag drift in engines.{node,pnpm}, packageManager, volta.{node,pnpm,yarn}, devEngines"],["vis lint --custom-types --fix","Align all engines/packageManager/volta versions to the highest sibling"],["vis lint --empty-deps --fix","Drop empty `dependencies` / `devDependencies` / etc. blocks across the workspace"],["vis lint --root-private --fix",'Ensure the workspace root package.json has "private": true'],["vis lint --root-package-manager","Ensure the root package.json declares a `packageManager` field"],["vis lint --root-deps --fix","Move runtime deps off the private workspace root into devDependencies"],["vis lint --missing-package-json","Flag workspace dirs that don't contain a package.json"],["vis lint --dead-workspace-patterns --fix","Drop workspace patterns that match zero packages"],["vis lint --types-in-deps --fix","Move @types/* out of dependencies on private packages"],["vis lint --similar-deps","Flag drift across related dep families (react+react-dom, @babel/*, …)"],["vis lint --ban left-pad --ban request","One-off ban: flag any package declaring left-pad or request"],["vis lint --pin react@18.2.0","One-off pin: flag any package declaring react at a different version"],["vis lint --format json","Emit findings as JSON for CI / editor integrations"]],group:"Security & Health",loader:BT(()=>import("./handler44.js"),"loader"),name:"lint",options:[{defaultValue:!1,description:"Lint that internal deps use the workspace: protocol",name:"workspace-protocol",type:Boolean},{defaultValue:!1,description:"Lint that no child re-declares a dep already pinned in the workspace root",name:"redefine-root",type:Boolean},{defaultValue:!1,description:"Lint deps against policy.bannedDeps in vis config",name:"banned-deps",type:Boolean},{defaultValue:!1,description:"Lint that all packages declare external deps at the same version",name:"workspace-versions",type:Boolean},{defaultValue:!1,description:"Lint engines.{node,pnpm}, packageManager, volta.*, devEngines.* for drift across packages",name:"custom-types",type:Boolean},{defaultValue:!1,description:"Flag empty dependency blocks (`dependencies: {}`, `devDependencies: {}`, …) across the workspace",name:"empty-deps",type:Boolean},{defaultValue:!1,description:'Ensure the workspace root package.json sets `"private": true`',name:"root-private",type:Boolean},{defaultValue:!1,description:"Ensure the workspace root package.json declares a `packageManager` field",name:"root-package-manager",type:Boolean},{defaultValue:!1,description:"Flag runtime dependencies on the private workspace root (move them to devDependencies)",name:"root-deps",type:Boolean},{defaultValue:!1,description:"Flag workspace directories that lack a package.json",name:"missing-package-json",type:Boolean},{defaultValue:!1,description:"Flag workspace patterns (in `pnpm-workspace.yaml` / `package.json#workspaces`) that match zero packages",name:"dead-workspace-patterns",type:Boolean},{defaultValue:!1,description:"Flag `@types/*` declared in `dependencies` on a private package (should be in devDependencies)",name:"types-in-deps",type:Boolean},{defaultValue:!1,description:"Flag version drift across related dep families (react+react-dom, @babel/*, @storybook/*, …)",name:"similar-deps",type:Boolean},{description:"Restrict --workspace-versions to a single dep",name:"dep",type:String},{description:"Ban a dep name or glob for this run (repeatable). Auto-enables --banned-deps.",multiple:!0,name:"ban",type:String},{description:"Pin a dep to an exact specifier for this run, e.g. react@^18.2.0 (repeatable). Auto-enables --workspace-versions.",multiple:!0,name:"pin",type:String},{description:"Conflict resolution for --workspace-versions: highest, lowest, or catalog (default: highest)",name:"resolve",type:String},{description:"Propose catalog entries for deps ≥N packages already agree on. Activates with --resolve catalog.",name:"propose-min",type:Number},{defaultValue:!1,description:"Auto-fix violations in place (writes package.json files)",name:"fix",type:Boolean},{description:"Specifier used by --fix for workspace-protocol (default: workspace:*)",name:"fix-specifier",type:String},{description:"Output format: human, json, or minimal (default: human)",name:"format",type:String},{defaultValue:!1,description:"Suppress all output except errors",name:"quiet",type:Boolean}]};var TT=Object.defineProperty,IT=f((e,t)=>TT(e,"name",{value:t,configurable:!0}),"e$w");const _T={description:"List all workspace projects with metadata",examples:[["vis list","Show all projects"],["vis list --targets","Per-target rows with type, cache status and description"],["vis list --targets --inferred","Only show targets synthesized by Project Crystal-style inference"],["vis list --deps","Human-readable table of every dep-instance across the workspace"],["vis list --deps --internal-only","Only workspace deps in human form"],["vis list --deps --format=ndjson","Stream every dep-instance as NDJSON for jq pipelines"],["vis list --deps --format=json --pretty","Single pretty-printed JSON array of dep-instances"],["vis list --format=json","Machine-readable project listing"],['vis list --query "tag=frontend"',"Filter by query"]],group:"Workspace",loader:IT(()=>import("./handler32.js"),"loader"),name:"list",options:[{defaultValue:!1,description:"Filter target rows to only inferred targets (implies --targets)",name:"inferred",type:Boolean},{description:"Output format: table (default), json (single document), or ndjson (one record per line; --deps only)",name:"format",type:String},{defaultValue:!1,description:"Pretty-print with 2-space indent (only meaningful with --format=json)",name:"pretty",type:Boolean},{description:"Filter projects by query",name:"query",type:String},{defaultValue:!1,description:"Show per-target rows (type, cache, description)",name:"targets",type:Boolean},{defaultValue:!1,description:"Render a dep-instance view (table by default; use --format=ndjson|json for jq-friendly streams)",name:"deps",type:Boolean},{description:"Restrict --deps to specific dep blocks (repeatable)",multiple:!0,name:"dep-type",type:String},{defaultValue:!1,description:"With --deps: only show internal/workspace deps",name:"internal-only",type:Boolean},{defaultValue:!1,description:"With --deps: only show external/registry deps",name:"external-only",type:Boolean},{description:"With --deps: glob of declaring package names to keep (repeatable)",multiple:!0,name:"include",type:String},{description:"With --deps: glob of declaring package names to drop (repeatable)",multiple:!0,name:"exclude",type:String}]};var MT=Object.defineProperty,Vt=f((e,t)=>MT(e,"name",{value:t,configurable:!0}),"t$m");const er=[{defaultValue:!1,description:"Preview changes without applying",name:"dry-run",type:Boolean},{alias:"y",defaultValue:!1,description:"Skip the confirmation prompt",name:"yes",type:Boolean}],VT={commandPath:["migrate"],description:"Migrate dependencies and scripts to vis",group:"Scaffold & Config",loader:Vt(()=>import("./handler33.js").then(e=>({default:e.migrateDepsExecute})),"loader"),name:"deps",options:[...er]},WT={commandPath:["migrate"],description:"Inline lint-staged configuration into vis",group:"Scaffold & Config",loader:Vt(()=>import("./handler33.js").then(e=>({default:e.migrateLintStagedExecute})),"loader"),name:"lint-staged",options:[...er]},UT={commandPath:["migrate"],description:"Inline nano-staged configuration into vis",group:"Scaffold & Config",loader:Vt(()=>import("./handler33.js").then(e=>({default:e.migrateNanoStagedExecute})),"loader"),name:"nano-staged",options:[...er]},GT={commandPath:["migrate"],description:"Migrate turborepo tasks/config to vis",group:"Scaffold & Config",loader:Vt(()=>import("./handler33.js").then(e=>({default:e.migrateTurborepoExecute})),"loader"),name:"turborepo",options:[...er]},qT={commandPath:["migrate"],description:"Migrate nx targets/config to vis",group:"Scaffold & Config",loader:Vt(()=>import("./handler33.js").then(e=>({default:e.migrateNxExecute})),"loader"),name:"nx",options:[...er,{defaultValue:!1,description:"Overwrite an existing vis.config.ts (a .bak is taken first)",name:"force",type:Boolean}]},zT={commandPath:["migrate"],description:"Migrate moon tasks/templates to vis",group:"Scaffold & Config",loader:Vt(()=>import("./handler33.js").then(e=>({default:e.migrateMoonExecute})),"loader"),name:"moon",options:[...er,{defaultValue:!1,description:"Copy .moon/templates/* into .vis/templates/* so `vis generate` works without .moon/",name:"copy-templates",type:Boolean}]},HT={commandPath:["migrate"],description:"Migrate gitleaks config/baseline/hooks to `vis secrets`",examples:[["vis migrate gitleaks","Migrate gitleaks config/baseline/hooks to `vis secrets`"]],group:"Scaffold & Config",loader:Vt(()=>import("./handler33.js").then(e=>({default:e.migrateGitleaksExecute})),"loader"),name:"gitleaks",options:[...er]},JT={commandPath:["migrate"],description:"Migrate Kingfisher baseline/hooks/scripts to `vis secrets`",examples:[["vis migrate kingfisher","Migrate Kingfisher baseline/hooks/scripts to `vis secrets`"]],group:"Scaffold & Config",loader:Vt(()=>import("./handler33.js").then(e=>({default:e.migrateKingfisherExecute})),"loader"),name:"kingfisher",options:[...er]},KT={commandPath:["migrate"],description:"Replace secretlint with `vis secrets`",examples:[["vis migrate secretlint","Replace secretlint with `vis secrets`"]],group:"Scaffold & Config",loader:Vt(()=>import("./handler33.js").then(e=>({default:e.migrateSecretlintExecute})),"loader"),name:"secretlint",options:[...er]},YT={commandPath:["migrate"],description:"Translate syncpack customTypes into vis policy and strip the syncpack dep/scripts",examples:[["vis migrate syncpack","Translate syncpack customTypes into vis policy and strip the syncpack dep/scripts"]],group:"Scaffold & Config",loader:Vt(()=>import("./handler33.js").then(e=>({default:e.migrateSyncpackExecute})),"loader"),name:"syncpack",options:[...er]},XT={commandPath:["migrate"],description:"Strip sherif config/dep/scripts and surface ignore-rules as a positive `vis lint --<rule>` command",examples:[["vis migrate sherif","Strip sherif config/dep/scripts and surface ignore-rules as a positive `vis lint --<rule>` command"]],group:"Scaffold & Config",loader:Vt(()=>import("./handler33.js").then(e=>({default:e.migrateSherifExecute})),"loader"),name:"sherif",options:[...er]},QT={commandPath:["migrate"],description:"Audit the workspace for stray gitleaks/secretlint/sherif/syncpack references (exit 1 on issues)",examples:[["vis migrate verify","Audit the workspace for stray gitleaks/secretlint/sherif/syncpack references (exit 1 on issues)"]],group:"Scaffold & Config",loader:Vt(()=>import("./handler33.js").then(e=>({default:e.migrateVerifyExecute})),"loader"),name:"verify",options:[]},ZT=[VT,WT,UT,GT,qT,zT,HT,JT,KT,YT,XT,QT];var e3=Object.defineProperty,t3=f((e,t)=>e3(e,"name",{value:t,configurable:!0}),"r$u");const r3=new Set(["--cwd"]),n3=new Set(["--help","--version","-h","-V"]),i3=t3(e=>{const t=[];for(let r=0;r<e.length;r+=1){const n=e[r];if(n!==void 0){if(n3.has(n))return!1;if(n.startsWith("-")){const i=n.indexOf("="),s=i===-1?n:n.slice(0,i);if(r3.has(s)&&i===-1){const o=e[r+1];o!==void 0&&!o.startsWith("-")&&(r+=1)}continue}t.push(n)}}return t.length===1&&t[0]==="migrate"},"isBareMigrateInvocation");var s3=Object.defineProperty,o3=f((e,t)=>s3(e,"name",{value:t,configurable:!0}),"t$l");const Km=o3(e=>e in pl&&pl[e]!=="0"&&pl[e]!=="false","check"),Br=Km("CI")||Km("CONTINUOUS_INTEGRATION");var a3=Object.defineProperty,Yl=f((e,t)=>a3(e,"name",{value:t,configurable:!0}),"i$g");class c3{static{f(this,"MigrateStore")}static{Yl(this,"MigrateStore")}#e;#r=new Set;constructor(t){this.#e={applyProgress:null,checkedItems:new Set(t.map(r=>r.entry.id)),error:null,focusedPanel:"list",items:t,phase:"browsing",selectedIndex:0}}getSnapshot=Yl(()=>this.#e,"getSnapshot");subscribe=Yl(t=>(this.#r.add(t),()=>{this.#r.delete(t)}),"subscribe");getCheckedItems(){return this.#e.items.filter(t=>this.#e.checkedItems.has(t.entry.id))}getSelectedItem(){return this.#e.items[this.#e.selectedIndex]??null}setSelectedIndex(t){const r=Math.max(0,Math.min(t,this.#e.items.length-1));r!==this.#e.selectedIndex&&this.#t({...this.#e,selectedIndex:r})}setFocusedPanel(t){t!==this.#e.focusedPanel&&this.#t({...this.#e,focusedPanel:t})}toggleCheck(t){const r=new Set(this.#e.checkedItems);r.has(t)?r.delete(t):r.add(t),this.#t({...this.#e,checkedItems:r})}checkAll(){this.#t({...this.#e,checkedItems:new Set(this.#e.items.map(t=>t.entry.id))})}uncheckAll(){this.#t({...this.#e,checkedItems:new Set})}toggleAll(){this.#e.checkedItems.size===this.#e.items.length?this.uncheckAll():this.checkAll()}startApply(){const t=this.getCheckedItems().length;this.#t({...this.#e,applyProgress:{current:0,total:t},phase:"applying"})}updateApplyProgress(t){this.#e.applyProgress&&this.#t({...this.#e,applyProgress:{...this.#e.applyProgress,current:t}})}markDone(){this.#t({...this.#e,phase:"done"})}setError(t){this.#t({...this.#e,error:t,phase:"error"})}#t(t){this.#e=t;for(const r of this.#r)try{r()}catch{}}}var l3=Object.defineProperty,u3=f((e,t)=>l3(e,"name",{value:t,configurable:!0}),"f$b");const Ym=u3(({autoExitSeconds:e,onCancel:t,visible:r})=>{const{exit:n}=yv(),[i,s]=xs(e||3),o=Ws(null),a=Ws(0);mv(()=>{if(!r)return;const l=e||3;s(l),a.current=Date.now();let u=l;return o.current=setInterval(()=>{u-=1,u<=0?(o.current&&(clearInterval(o.current),o.current=null),s(0),n()):s(u)},1e3),()=>{o.current&&(clearInterval(o.current),o.current=null)}},[r,e,n]);const c=gv(()=>{o.current&&(clearInterval(o.current),o.current=null),t()},[t]);return vv((l,u)=>{Date.now()-a.current<200||(l==="q"?n():c())},{isActive:r}),z(Zu,{backgroundColor:"#1e1e1e",footer:pe(H,{dimColor:!0,children:["Press"," ",z(H,{bold:!0,color:"white",children:"q"})," ","to exit,"," ",z(H,{bold:!0,color:"white",children:"any key"})," ","to stay"]}),title:`Exiting in ${i}…`,visible:r,width:50,children:z(H,{dimColor:!0,children:"Stay to explore the results interactively."})})},"QuitDialog");var p3=Object.defineProperty,M1=f((e,t)=>p3(e,"name",{value:t,configurable:!0}),"n$k");const d3=M1(e=>{if(e.startsWith("⚠"))return"yellow";e.startsWith("── ")||e.startsWith("[dry-run]")},"colorForPreviewLine"),f3=M1(({focused:e,item:t,scrollRef:r})=>t?pe(he,{borderColor:e?"white":"gray",borderStyle:"single",flexDirection:"column",flexGrow:1,children:[z(he,{flexShrink:0,paddingTop:1,paddingX:2,children:z(H,{bold:!0,color:"white",children:t.entry.title})}),z(he,{flexShrink:0,paddingBottom:1,paddingX:2,children:z(H,{dimColor:!0,children:t.entry.description})}),z(BS,{flexGrow:1,flexShrink:1,paddingX:2,ref:r,scrollbar:!0,scrollbarColor:"gray",scrollbarStyle:"block",children:pe(he,{flexDirection:"column",children:[z(H,{dimColor:!0,children:"── What will change ──"}),z(H,{}),t.preview.length===0&&z(H,{dimColor:!0,children:"(no preview available)"}),t.preview.map((i,s)=>{const o=d3(i);return i===""?z(H,{},`blank-${String(s)}`):z(H,{color:o,children:i},`${String(s)}-${i.slice(0,20)}`)})]})})]}):z(he,{alignItems:"center",borderColor:"gray",borderStyle:"single",flexDirection:"column",flexGrow:1,justifyContent:"center",children:z(H,{dimColor:!0,children:"No migration selected"})}),"MigrateDetailPanel");var h3=Object.defineProperty,V1=f((e,t)=>h3(e,"name",{value:t,configurable:!0}),"g$a");const m3=V1(({checked:e,isSelected:t,item:r})=>{const n=e?"☑":"☐",i=r.preview.length;return pe(he,{flexShrink:0,height:1,children:[z(H,{children:t?">":" "}),pe(H,{color:e?"white":"gray",children:[" ",n," "]}),z(he,{flexGrow:1,children:z(H,{bold:t,inverse:t,wrap:"truncate",children:r.entry.title})}),pe(H,{dimColor:!0,children:[" ",i," ","change",i===1?"":"s"," "]})]})},"MigrationRow"),g3=V1(({checkedItems:e,focused:t,isDryRun:r,items:n,scrollOffset:i,selectedIndex:s,viewportHeight:o})=>{const a=t?"white":"gray",c=n.filter(p=>e.has(p.entry.id)).length,l=n.map((p,h)=>z(m3,{checked:e.has(p.entry.id),isSelected:h===s,item:p},p.entry.id)),u=n.length,d=u>o&&o>0;return pe(he,{borderColor:a,borderStyle:"single",flexDirection:"column",flexGrow:1,children:[pe(he,{flexShrink:0,gap:1,paddingX:1,children:[z(H,{bold:!0,inverse:!0,children:" MIGRATE "}),pe(H,{wrap:"truncate",children:[n.length," ","applicable"]}),c>0&&pe(H,{dimColor:!0,children:[" — ",c," selected"]}),r&&z(H,{color:"yellow",children:" (dry-run)"})]}),pe(he,{flexDirection:"row",flexGrow:1,overflow:"hidden",children:[z(he,{flexDirection:"column",flexGrow:1,overflow:"hidden",paddingLeft:1,children:z(he,{flexDirection:"column",marginTop:-i,children:l})}),d&&z(he,{flexShrink:0,marginLeft:1,marginRight:1,children:z(LS,{contentHeight:u,placement:"inset",scrollOffset:i,style:"block",viewportHeight:o})})]})]})},"MigrateListPanel");var y3=Object.defineProperty,v3=f((e,t)=>y3(e,"name",{value:t,configurable:!0}),"N$e");const b3=100,$3=40,w3=10,k3=v3(({autoExitSeconds:e=0,isDryRun:t,store:r})=>{const{exit:n}=yv(),{columns:i,rows:s}=RS(),o=FS(r.subscribe,r.getSnapshot),[a,c]=xs(!1),[l,u]=xs(!1),[d,p]=xs(!1),[h,y]=xs(0),$=Ws(null),S=Ws(null),k=Ws(null),b=o.items[o.selectedIndex]??null,m=Math.max(1,s-6),v=gv(Y=>{y(P=>Y>=P+m?Math.max(0,Y-m+1):Y<P?Math.max(0,Y):P)},[m]);if(mv(()=>{S.current?.scrollToTop()},[b?.entry.id]),vv((Y,P)=>{if(Y==="c"&&P.ctrl){n();return}if(!d){if(l){Y==="u"||P.return?(u(!1),r.startApply(),n(r.getCheckedItems())):P.escape||Y==="q"?u(!1):P.downArrow||Y==="j"?k.current?.scrollBy(1):(P.upArrow||Y==="k")&&k.current?.scrollBy(-1);return}if(a){P.escape||Y==="?"?c(!1):Y==="q"?(c(!1),p(!0)):P.downArrow||Y==="j"?$.current?.scrollBy(1):(P.upArrow||Y==="k")&&$.current?.scrollBy(-1);return}if(Y==="?"){c(!0);return}if(Y==="q"){p(!0);return}if(P.tab){r.setFocusedPanel(o.focusedPanel==="list"?"detail":"list");return}if(o.focusedPanel==="list"){if(P.downArrow||Y==="j"){const N=Math.min(o.selectedIndex+1,o.items.length-1);r.setSelectedIndex(N),v(N);return}if(P.upArrow||Y==="k"){const N=Math.max(o.selectedIndex-1,0);r.setSelectedIndex(N),v(N);return}if(P.pageDown){const N=Math.min(o.selectedIndex+10,o.items.length-1);r.setSelectedIndex(N),v(N);return}if(P.pageUp){const N=Math.max(o.selectedIndex-10,0);r.setSelectedIndex(N),v(N);return}if(P.home){r.setSelectedIndex(0),y(0);return}if(P.end){const N=o.items.length-1;r.setSelectedIndex(N),v(N);return}if(Y===" "||P.return){b&&r.toggleCheck(b.entry.id);return}if(Y==="a"){r.toggleAll();return}if(Y==="u"&&!t&&o.checkedItems.size>0){u(!0);return}P.rightArrow&&r.setFocusedPanel("detail");return}if(o.focusedPanel==="detail"){if(P.escape||P.leftArrow){r.setFocusedPanel("list");return}if(P.downArrow||Y==="j"){S.current?.scrollBy(1);return}if(P.upArrow||Y==="k"){S.current?.scrollBy(-1);return}if(P.pageDown){S.current?.scrollBy(10);return}if(P.pageUp){S.current?.scrollBy(-10);return}if(P.home){S.current?.scrollToTop();return}P.end&&S.current?.scrollToBottom()}}},{isActive:!0}),i<$3||s<w3)return z(he,{alignItems:"center",height:s,justifyContent:"center",width:i,children:pe(H,{color:"yellow",children:["Terminal too small (",i,"x",s,")"]})});const w=i>=b3,g=[pe(he,{gap:1,children:[z(H,{bold:!0,color:"white",children:"q"}),z(H,{dimColor:!0,children:"QUIT"})]},"q"),pe(he,{gap:1,children:[z(H,{bold:!0,color:"white",children:"?"}),z(H,{dimColor:!0,children:"HELP"})]},"?"),pe(he,{gap:1,children:[z(H,{bold:!0,color:"white",children:"↑↓"}),z(H,{dimColor:!0,children:"NAV"})]},"nav"),pe(he,{gap:1,children:[z(H,{bold:!0,color:"white",children:"Space"}),z(H,{dimColor:!0,children:"CHECK"})]},"sp"),pe(he,{gap:1,children:[z(H,{bold:!0,color:"white",children:"a"}),z(H,{dimColor:!0,children:"ALL"})]},"a")];!t&&o.checkedItems.size>0&&g.push(pe(he,{gap:1,children:[z(H,{bold:!0,color:"green",children:"u"}),z(H,{dimColor:!0,children:"APPLY"})]},"u")),g.push(pe(he,{gap:1,children:[z(H,{bold:!0,color:"white",children:"Tab"}),z(H,{dimColor:!0,children:"PANEL"})]},"tab"));const C=z(he,{borderBottom:!1,borderColor:"gray",borderLeft:!1,borderRight:!1,borderStyle:"single",flexShrink:0,children:z(he,{flexWrap:"wrap",gap:2,paddingX:1,children:g})}),D=pe(Zu,{footer:pe(H,{dimColor:!0,children:[z(H,{bold:!0,color:"white",children:"↑↓"})," scroll ",z(H,{bold:!0,color:"white",children:"?"}),"/",z(H,{bold:!0,color:"white",children:"Esc"})," close"]}),scrollRef:$,title:"KEYBOARD SHORTCUTS",visible:a,width:52,children:[pe(he,{flexDirection:"column",marginBottom:1,children:[z(H,{bold:!0,color:"white",children:"NAVIGATION"}),pe(H,{children:[z(H,{bold:!0,color:"white",children:" ↑/k"}),z(H,{dimColor:!0,children:" Move up"})]}),pe(H,{children:[z(H,{bold:!0,color:"white",children:" ↓/j"}),z(H,{dimColor:!0,children:" Move down"})]}),pe(H,{children:[z(H,{bold:!0,color:"white",children:" Tab"}),z(H,{dimColor:!0,children:" Switch panel"})]}),pe(H,{children:[z(H,{bold:!0,color:"white",children:" →/←"}),z(H,{dimColor:!0,children:" Focus detail/list"})]})]}),pe(he,{flexDirection:"column",marginBottom:1,children:[z(H,{bold:!0,color:"white",children:"SELECTION"}),pe(H,{children:[z(H,{bold:!0,color:"white",children:" Space"}),z(H,{dimColor:!0,children:" Toggle migration"})]}),pe(H,{children:[z(H,{bold:!0,color:"white",children:" a"}),z(H,{dimColor:!0,children:" Toggle all"})]})]}),pe(he,{flexDirection:"column",children:[z(H,{bold:!0,color:"white",children:"ACTIONS"}),!t&&pe(H,{children:[z(H,{bold:!0,color:"white",children:" u"}),z(H,{dimColor:!0,children:" Apply selected migrations"})]}),pe(H,{children:[z(H,{bold:!0,color:"white",children:" q"}),z(H,{dimColor:!0,children:" Quit"})]}),pe(H,{children:[z(H,{bold:!0,color:"white",children:" ?"}),z(H,{dimColor:!0,children:" Toggle help"})]})]})]}),A=r.getCheckedItems(),O=z(he,{alignItems:"center",flexDirection:"column",children:pe(H,{dimColor:!0,children:["Press ",z(H,{bold:!0,color:"white",children:"u"})," or ",z(H,{bold:!0,color:"white",children:"Enter"})," to confirm, ",z(H,{bold:!0,color:"white",children:"Esc"})," to cancel"]})}),G=z(Zu,{footer:O,scrollRef:k,title:`Apply ${String(A.length)} migration${A.length===1?"":"s"}?`,visible:l,width:70,children:A.map(Y=>pe(he,{gap:1,children:[pe(H,{children:[" ",Y.entry.title]}),pe(H,{dimColor:!0,children:["(",Y.preview.length," ","change",Y.preview.length===1?"":"s",")"]})]},Y.entry.id))}),W=z(g3,{checkedItems:o.checkedItems,focused:o.focusedPanel==="list",isDryRun:t,items:o.items,scrollOffset:h,selectedIndex:o.selectedIndex,viewportHeight:m}),ce=z(f3,{focused:o.focusedPanel==="detail",item:b,scrollRef:S});if(w){const Y=Math.floor(i*.55);return pe(he,{flexDirection:"column",height:s,width:i,children:[pe(he,{flexDirection:"row",flexGrow:1,children:[z(he,{flexGrow:1,children:W}),z(he,{width:Y,children:ce})]}),C,G,z(Ym,{autoExitSeconds:e||3,onCancel:f(()=>{p(!1)},"onCancel"),visible:d}),D]})}const te=Math.floor(s*.45);return pe(he,{flexDirection:"column",height:s,width:i,children:[z(he,{height:te,children:W}),z(he,{flexGrow:1,children:ce}),C,G,z(Ym,{autoExitSeconds:e||3,onCancel:f(()=>{p(!1)},"onCancel"),visible:d}),D]})},"VisMigrateApp");var S3=Object.defineProperty,mf=f((e,t)=>S3(e,"name",{value:t,configurable:!0}),"r$s");const D3=/\n([ \t]+)/,C3=mf(e=>{const{indent:t,lineEnding:r}=IS(e),n={};return t!==void 0&&(n.indent=t),(r==="lf"||r==="crlf")&&(n.lineEnding=r),n},"resolveEditorConfigDefaults"),vr=mf((e,t,r={})=>{const{defaultIndent:n=" ",useEditorconfig:i=!0}=r;if(i){const{indent:s}=C3(e);if(s!==void 0)return s}if(t!==void 0){const s=D3.exec(t);if(s?.[1]!==void 0)return s[1]}return n},"resolveIndentForFile"),gf=mf((e,t={})=>{const r=x(e)?J(e):void 0;return vr(e,r,t)},"resolveIndentForExistingFile");var E3=Object.defineProperty,A3=f((e,t)=>E3(e,"name",{value:t,configurable:!0}),"t$k");const W1=[".lintstagedrc.json",".lintstagedrc"],U1=[".lintstagedrc.yaml",".lintstagedrc.yml",".lintstagedrc.mjs","lint-staged.config.mjs",".lintstagedrc.cjs","lint-staged.config.cjs",".lintstagedrc.js","lint-staged.config.js",".lintstagedrc.ts","lint-staged.config.ts",".lintstagedrc.mts","lint-staged.config.mts",".lintstagedrc.cts","lint-staged.config.cts"],yf=[...W1,...U1],j3=[/^((?:[A-Z_][A-Z0-9_]*(?:=\S*)?\s+)*)(pnpm|pnpm exec|npx|yarn|yarn run|npm exec|npm run|bunx|bun run|bun x)\s+lint-staged\b/,/^((?:[A-Z_][A-Z0-9_]*(?:=\S*)?\s+)*)lint-staged\b/],G1=[".nano-staged.json",".nanostagedrc"],q1=[".nano-staged.mjs",".nano-staged.cjs",".nano-staged.js","nano-staged.config.mjs","nano-staged.config.cjs","nano-staged.config.js","nano-staged.config.mts","nano-staged.config.cts","nano-staged.config.ts"],vf=[...G1,...q1],O3=[/^((?:[A-Z_][A-Z0-9_]*(?:=\S*)?\s+)*)(pnpm|pnpm exec|npx|yarn|yarn run|npm exec|npm run|bunx|bun run|bun x)\s+nano-staged\b/,/^((?:[A-Z_][A-Z0-9_]*(?:=\S*)?\s+)*)nano-staged\b/],z1=["husky","lint-staged","nano-staged"],x3=/\(is-ci \|\| husky \|\| exit 0\)\s*&&\s*/g,P3=/\bhusky(?:\s+install)?\s*&&\s*/g,N3=/\s*&&\s*husky(?:\s+install)?/g,F3=/\s*\|\|\s*husky(?:\s+install)?/g,R3=[x3,P3,N3,F3],H1=A3(e=>{if(e==="husky"||e==="husky install")return;let t=e;for(const r of R3)t=t.replace(r,"");return t=t.trim(),t===e?e:t||void 0},"cleanHuskyFromScript");var B3=Object.defineProperty,Ra=f((e,t)=>B3(e,"name",{value:t,configurable:!0}),"o$p");const L3=/\/$/,T3=Ra(e=>{let t='"$0"';for(let r=0;r<e;r+=1)t=`"$(dirname ${t})"`;return t},"nestedDirname"),I3=Ra(e=>{const t=e.split("/").filter(r=>r!==""&&r!==".").length+2;return`#!/usr/bin/env sh
1004
+ `),r.postMessage&&(i+=r.postMessage),i},"generateMissingPackagesInstallMessage");var IB=Object.defineProperty,_B=f((e,t)=>IB(e,"name",{value:t,configurable:!0}),"c$v"),MB=Object.defineProperty,x1=_B((e,t)=>MB(e,"name",{value:t,configurable:!0}),"p");const VB=Qe(import.meta.url),Ss=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,WB=x1(e=>{if(typeof Ss<"u"&&Ss.versions&&Ss.versions.node){const[t,r]=Ss.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return Ss.getBuiltinModule(e)}return VB(e)},"__cjs_getBuiltinModule"),{existsSync:Na,readFileSync:P1}=WB("node:fs");var UB=Object.defineProperty,N1=x1((e,t)=>UB(e,"name",{value:t,configurable:!0}),"i");N1(async e=>{const t=await po(["lerna.json","turbo.json"],{type:"file",...e&&{cwd:e}});if(t?.endsWith("lerna.json")){const n=await ho(t);if(n&&typeof n=="object"&&!Array.isArray(n)){const i=n;if(i.useWorkspaces||i.packages)return{path:Ge(t),strategy:"lerna"}}}const r=t?.endsWith("turbo.json");try{const{packageManager:n,path:i}=await LB(e);if(["npm","yarn"].includes(n)){const s=E(i,"package.json");if(Na(s)&&P1(E(i,"package.json"),"utf8").includes("workspaces"))return{path:i,strategy:r?"turbo":n}}else if(n==="pnpm"){const s=E(i,"pnpm-workspace.yaml");if(Na(s))return{path:i,strategy:r?"turbo":"pnpm"}}}catch(n){if(!(n instanceof Ai))throw n}throw new Error(`No monorepo root could be found upwards from the directory ${e} using lerna, yarn, pnpm, or npm as indicators.`)},"findMonorepoRoot");const F1=N1(e=>{const t=fo(["lerna.json","turbo.json"],{type:"file",...e&&{cwd:e}});if(t?.endsWith("lerna.json")){const n=we(t);if(n.useWorkspaces||n.packages)return{path:Ge(t),strategy:"lerna"}}const r=t?.endsWith("turbo.json");try{const{packageManager:n,path:i}=TB(e);if(["npm","yarn"].includes(n)){const s=E(i,"package.json");if(Na(s)&&P1(E(i,"package.json"),"utf8").includes("workspaces"))return{path:i,strategy:r?"turbo":n}}else if(n==="pnpm"){const s=E(i,"pnpm-workspace.yaml");if(Na(s))return{path:i,strategy:r?"turbo":"pnpm"}}}catch(n){if(!(n instanceof Ai))throw n}throw new Error(`No monorepo root could be found upwards from the directory ${e} using lerna, yarn, pnpm, or npm as indicators.`)},"findMonorepoRootSync");var GB="1.0.0-alpha.18";const Fa={version:GB};var qB=Object.defineProperty,zB=f((e,t)=>qB(e,"name",{value:t,configurable:!0}),"e$W");const HB={argument:{description:"Target selector (same syntax as `vis run`): `build`, `:build`, `~:test`, `#tag:lint`, …",name:"selector",type:String},description:"Show the execution plan for a target without running it",examples:[["vis action-graph build","Print the task plan for `build` on every project"],["vis action-graph :test","Moon-style selector"],["vis action-graph build --json","Emit a JSON description of the plan"],['vis action-graph lint --query "tag=frontend"',"Filter projects by query"]],group:"Workspace",loader:zB(()=>import("./handler.js"),"loader"),name:"action-graph",options:[{defaultValue:!1,description:"Emit JSON instead of ASCII",name:"json",type:Boolean},{description:"Filter matched projects by a query",name:"query",type:String}]};var JB=Object.defineProperty,KB=f((e,t)=>JB(e,"name",{value:t,configurable:!0}),"e$V");const YB={argument:{description:"Packages to add (e.g., react react-dom)",name:"packages",type:String},description:"Add packages using the detected package manager",examples:[["vis add react react-dom","Add packages"],["vis add -D typescript @types/react","Add as dev dependencies"],["vis add react --filter app","Add to specific workspace package"],["vis add react --to web","Add to one package, auto-conforming the version to existing catalogs / sibling deps"],["vis add -g typescript","Add globally (uses npm)"],["vis add lodash -w","Add to workspace root"],["vis add lodash --no-socket-check","Add without Socket.dev check"],["vis add lodash --no-typosquat-check","Skip typosquat name check"],["vis add lodash --run-scripts","Run lifecycle scripts (opts out of vis's default block-by-default policy)"]],group:"Dependencies",loader:KB(()=>import("./handler28.js"),"loader"),name:"add",options:[{alias:"D",defaultValue:!1,description:"Add as dev dependency",name:"save-dev",type:Boolean},{alias:"E",defaultValue:!1,description:"Save exact version",name:"exact",type:Boolean},{alias:"P",defaultValue:!1,description:"Add as peer dependency",name:"save-peer",type:Boolean},{alias:"O",defaultValue:!1,description:"Add as optional dependency",name:"save-optional",type:Boolean},{alias:"g",defaultValue:!1,description:"Install globally (uses npm)",name:"global",type:Boolean},{alias:"w",defaultValue:!1,description:"Add to workspace root",name:"workspace-root",type:Boolean},{defaultValue:!1,description:"Use workspace protocol (pnpm)",name:"workspace",type:Boolean},{alias:"F",description:"Filter by workspace package name",multiple:!0,name:"filter",type:String},{description:"Target a single workspace package and auto-conform the version to existing catalogs / sibling deps (syncpack#285)",name:"to",type:String},{defaultValue:!1,description:"Skip typosquat name check before adding",name:"no-typosquat-check",type:Boolean},{defaultValue:!1,description:"Skip Socket.dev security check before adding",name:"no-socket-check",type:Boolean},{defaultValue:!1,description:"Run lifecycle scripts during add (opts out of vis's default block-by-default policy; allowlisted packages run via security.allowBuilds)",name:"run-scripts",type:Boolean},{defaultValue:!1,description:"After adding, recursively install non-optional peer dependencies that aren't already in the workspace (matches nypm's installPeerDependencies)",name:"auto-install-peers",type:Boolean}]};var XB=Object.defineProperty,QB=f((e,t)=>XB(e,"name",{value:t,configurable:!0}),"e$U");const ZB={argument:{description:"The target to run (e.g., build, test, lint)",name:"target",type:String},description:"Run a target only on projects affected by recent changes",examples:[["vis affected build","Run build on affected projects"],["vis affected test --base=main","Run tests on projects changed since main"],["vis affected destroy --reverse","Tear down affected projects leaves-first"]],group:"Run & Execute",loader:QB(()=>import("./handler2.js"),"loader"),name:"affected",options:[{defaultValue:"HEAD~1",description:"Git base ref for comparison",name:"base",type:String},{defaultValue:"HEAD",description:"Git head ref for comparison",name:"head",type:String},{defaultValue:"deep",description:'Downstream scope: "none", "direct", or "deep" — controls how far to include dependents of changed projects',name:"downstream",type:String},{defaultValue:"none",description:'Upstream scope: "none", "direct", or "deep" — controls how far to include dependencies of changed projects',name:"upstream",type:String},{defaultValue:3,description:"Maximum number of parallel tasks",name:"parallel",type:Number},{defaultValue:!0,description:"Enable caching (use --no-cache to disable)",name:"cache",type:Boolean},{defaultValue:!1,description:"Show what would run without executing",name:"dry-run",type:Boolean},{description:'Partition tasks for distributed CI (e.g., "1/4" for first of four runners). Falls back to VIS_PARTITION env var.',name:"partition",type:String},{description:"Filter affected projects by a query (e.g. 'language=typescript && tag=lib')",name:"query",type:String},{defaultValue:!1,description:"Run the dependency graph in reverse (leaves first, then their dependents). Useful for teardown targets like `destroy`/`undeploy` where dependents must run before the things they depend on.",name:"reverse",type:Boolean},{description:"Comma-separated tags this runner advertises (e.g. 'gpu,slow'). Forwarded verbatim to the downstream `vis run` so capability-gated tasks resolve identically. Falls back to VIS_RUNNER_TAGS env var.",name:"runner-tags",type:String}]},R1={description:"Output format: table or json (default: table)",name:"format",type:String},eL={commandPath:["ai"],description:"List detected AI providers and show which one is selected",examples:[["vis ai providers","List all AI providers and their status"],["vis ai providers --format json","Output as JSON"]],group:"System",loader:Ve(()=>import("./handler29.js"),"aiProvidersExecute"),name:"providers",options:[R1]},tL={commandPath:["ai"],description:"Test the best available AI provider with a quick prompt",examples:[["vis ai test","Test the selected provider"]],group:"System",loader:Ve(()=>import("./handler29.js"),"aiTestExecute"),name:"test",options:[]},rL={argument:{description:"Task ID to propose a fix for (e.g. @my/app:build)",name:"taskId",type:String},commandPath:["ai"],description:"Read a failed task's logs and propose a structured patch (Phase 1: local-only, no git)",examples:[["vis ai fix @myorg/app:build","Print proposed patch for the failed task"],["vis ai fix @myorg/app:build --apply","Apply the patch to disk after confirming"],["vis ai fix @myorg/app:build --format json","Machine-readable patch output"],["vis ai fix @myorg/app:build --run 2026-04-28T...","Inspect a specific historical run"]],group:"System",loader:Ve(()=>import("./handler29.js"),"aiFixExecute"),name:"fix",options:[R1,{description:"Use a specific run ID from .vis/runs/ instead of the latest run",name:"run",type:String},{defaultValue:!1,description:"Apply the proposed patch to disk after printing it",name:"apply",type:Boolean},{defaultValue:!1,description:"Bypass the AI response cache",name:"no-cache",type:Boolean},{defaultValue:!1,description:"Skip the confirmation prompt before applying",name:"yes",type:Boolean}]},nL={description:"AI-assisted commands: provider detection and failure-fix proposals (cache management lives under `vis cache`)",examples:[["vis ai","List all AI subcommands"],["vis ai discover-help","Machine-readable subcommand catalogue (for AI agents)"]],group:"System",loader:Ve(()=>import("./handler29.js"),"aiRootExecute"),name:"ai",options:[]},iL={commandPath:["ai"],description:"Print the machine-readable AI subcommand catalogue (JSON to stdout, designed for AI agents)",examples:[["vis ai discover-help","Emit the discovery payload as JSON"],["vis ai discover-help | jq '.subcommands[].path'","List all available paths"]],group:"System",loader:Ve(()=>import("./handler29.js"),"aiDiscoverHelpExecute"),name:"discover-help",options:[]},sL={commandPath:["ai"],description:"Diagnose the most recent failed task and post a structured patch as a PR/MR comment (or Buildkite annotation)",examples:[["vis ai heal","Heal the most recent failure"],["vis ai heal --dry-run","Propose a patch but skip apply / validate / post"],["vis ai heal --run 2026-04-28T...","Heal a specific historical run"]],group:"System",loader:Ve(()=>import("./heal.js").then(e=>e.h),"aiHeal"),name:"heal",options:[{defaultValue:!1,description:"Show the proposal and exit without applying or posting it",name:"dry-run",type:Boolean},{defaultValue:!1,description:"Bypass the AI response cache",name:"no-cache",type:Boolean},{description:"Use a specific run ID from .vis/runs/ instead of the latest run",name:"run",type:String},{description:"Per-task validation timeout in seconds (default: 1800)",name:"validation-timeout",type:Number}]},oL={commandPath:["ai","heal"],description:"Re-run the proposed fix and commit it to the PR/MR branch when validation passes",examples:[["vis ai heal accept","Triggered automatically by a `/vis heal accept` PR comment (GitHub/GitLab) or a Buildkite block-step unblock"]],group:"System",loader:Ve(()=>import("./heal-accept.js"),"aiHealAccept"),name:"accept",options:[{description:"Use a specific run ID from .vis/runs/ instead of the latest run",name:"run",type:String},{description:"Per-task validation timeout in seconds (default: 1800)",name:"validation-timeout",type:Number}]},B1=[nL,iL,eL,tL,rL,sL,oL],NY=Object.defineProperty({__proto__:null,default:B1},Symbol.toStringTag,{value:"Module"});var aL=Object.defineProperty,cL=f((e,t)=>aL(e,"name",{value:t,configurable:!0}),"e$T");const lL={argument:{description:"Package name to analyze (e.g., react)",name:"package",required:!0,type:String},description:"Analyze a single package update with AI",examples:[["vis analyze react","Analyze updating react to latest"],["vis analyze react 19.0.0","Analyze updating react to specific version"],["vis analyze react --ai-type security","Run security-focused analysis"],["vis analyze react --format json","Output as JSON"]],group:"System",loader:cL(()=>import("./handler3.js"),"loader"),name:"analyze",options:[{description:"AI analysis type: impact, security, compatibility, or recommend (default: impact)",name:"ai-type",type:String},{defaultValue:!1,description:"Check for known security vulnerabilities",name:"security",type:Boolean},{description:"Output format: table or json (default: table)",name:"format",type:String}]};var uL=Object.defineProperty,pL=f((e,t)=>uL(e,"name",{value:t,configurable:!0}),"e$S");const dL={description:"Review and approve dependencies with build scripts",examples:[["vis approve-builds","Scan and list unapproved build scripts"],["vis approve-builds --all","Approve all pending builds (pnpm)"],["vis approve-builds --sync-native","Sync allowBuilds to native PM config"]],group:"Security & Health",loader:pL(()=>import("./handler4.js"),"loader"),name:"approve-builds",options:[{defaultValue:!1,description:"Approve all pending builds without prompting (pnpm only)",name:"all",type:Boolean},{defaultValue:!1,description:"Force vis scanning even for pnpm (instead of delegating)",name:"scan",type:Boolean},{defaultValue:!1,description:"Sync allowBuilds to native PM config (bun: trustedDependencies, npm: .npmrc, yarn: .yarnrc.yml)",name:"sync-native",type:Boolean}]};var fL=Object.defineProperty,hL=f((e,t)=>fL(e,"name",{value:t,configurable:!0}),"e$R");const mL={description:"Audit installed packages for vulnerabilities and supply chain risks",examples:[["vis audit","Full audit of all installed packages"],["vis audit --severity high","Show only high/critical issues"],["vis audit --format json","Output as JSON for CI integration"],["vis audit --fix","Show fix suggestions for vulnerabilities"],["vis audit --exit-code","Exit with code 1 if issues found (for CI)"],["vis audit --show-accepted","Include acknowledged risks in output"],["vis audit --sync","Sync accepted risks to native PM config (pnpm-workspace.yaml / .yarnrc.yml)"]],group:"Security & Health",loader:hL(()=>import("./handler30.js"),"loader"),name:"audit",options:[{description:"Minimum severity to report: low, medium, high, critical (default: low)",name:"severity",type:String},{description:"Output format: table or json (default: table)",name:"format",type:String},{defaultValue:!1,description:"Show fix suggestions for vulnerabilities",name:"fix",type:Boolean},{defaultValue:!1,description:"Exit with code 1 if any issues found (for CI)",name:"exit-code",type:Boolean},{defaultValue:!1,description:"Include acknowledged (accepted risk) issues in output",name:"show-accepted",type:Boolean},{defaultValue:!1,description:"Sync vis accepted risks to native PM config (pnpm-workspace.yaml / .yarnrc.yml)",name:"sync",type:Boolean}]},jo={description:"Cache directory (overrides config and default). Relative paths are resolved against the workspace root.",name:"cache-dir",type:String},jc={description:"Cache scope: 'shared' (default — main worktree's cache), 'worktree' (this checkout's local cache), or 'all' (both)",name:"scope",type:String},L1={description:"Cache type: 'task' (workspace task cache), 'ai' (AI response cache), 'socket' (Socket.dev report cache), or 'all' (default)",name:"type",type:String},gL={commandPath:["cache"],description:"List all cache entries",examples:[["vis cache list","List all cache entries"]],group:"Workspace",loader:Ve(()=>import("./handler21.js"),"cacheListExecute"),name:"list",options:[jo,jc,{description:"Output format: table or json (default: table)",name:"format",type:String}]},yL={commandPath:["cache"],description:"Remove cache entries (defaults to all stores: workspace task cache, AI responses, Socket.dev reports)",examples:[["vis cache clean","Remove all cache entries from every store"],["vis cache clean --type=ai","Clear only the AI response cache"],["vis cache clean --type=task","Clear only the workspace task cache"],["vis cache clean --dry-run","Preview what clean would remove"]],group:"Workspace",loader:Ve(()=>import("./handler21.js"),"cacheCleanExecute"),name:"clean",options:[jo,L1,{defaultValue:!1,description:"Preview without deleting",name:"dry-run",type:Boolean},{defaultValue:!1,description:"Skip the confirmation prompt for out-of-workspace cache directories",name:"force",type:Boolean}]},vL={commandPath:["cache"],description:"Remove old and oversized cache entries",examples:[["vis cache prune","Remove old and oversized entries"],["vis cache prune --max-age-days=3 --max-size=500MB","Prune with custom limits"],["vis cache prune --keep-last=30","Keep only the 30 most recent entries"]],group:"Workspace",loader:Ve(()=>import("./handler21.js"),"cachePruneExecute"),name:"prune",options:[jo,jc,{description:"Remove entries older than N days",name:"max-age-days",type:Number},{description:"Evict oldest entries until cache is under this size (e.g. 500MB)",name:"max-size",type:String},{description:"Keep only the N most recent entries (sorted newest-first by mtime)",name:"keep-last",type:Number}]},bL={commandPath:["cache"],description:"Print on-disk footprint and stats for one or more cache stores (task / ai / socket)",examples:[["vis cache size","Show stats for every cache store"],["vis cache size --type=ai","Show only the AI response cache (entries, size, oldest, newest)"],["vis cache size --type=task --format=json","Machine-readable task cache size"]],group:"Workspace",loader:Ve(()=>import("./handler21.js"),"cacheSizeExecute"),name:"size",options:[jo,jc,L1,{description:"Output format: table or json (default: table)",name:"format",type:String}]},hf={description:"Output format: table or json (default: table)",name:"format",type:String},T1={description:"Use a specific run ID from .vis/runs/ instead of the latest run",name:"run",type:String},$L={argument:{description:"Task ID to explain (e.g. @my/app:build)",name:"taskId",type:String},commandPath:["cache"],description:"Explain why a task missed the cache by diffing hash inputs against the previous run",examples:[["vis cache why @myorg/app:build","Show which inputs changed since the last run"],["vis cache why @myorg/app:build --json","Machine-readable output for CI"],["vis cache why @myorg/app:build --run 2026-04-28T...","Inspect a specific historical run"]],group:"Workspace",loader:Ve(()=>import("./handler21.js"),"cacheWhyExecute"),name:"why",options:[hf,T1]},wL={argument:{description:"Task ID to print the hash for (e.g. @my/app:build)",name:"taskId",type:String},commandPath:["cache"],description:"Print the recorded hash and per-input hash details for a task",examples:[["vis cache hash @myorg/app:build","Show the resolved hash + contributing inputs"],["vis cache hash @myorg/app:build --json","Machine-readable output"]],group:"Workspace",loader:Ve(()=>import("./handler21.js"),"cacheHashExecute"),name:"hash",options:[hf,T1]},kL={argument:{description:"Task ID to verify (e.g. @my/app:build)",name:"taskId",type:String},commandPath:["cache"],description:"Verify cache restore fidelity: extract the cached entry into a tmp directory and diff each file's content, mode, and mtime against the live workspace. Exits 1 on any drift (changed content, mode, mtime) or if a cached output is missing from the workspace. With --scope=all, the first cache directory containing the task is used.",examples:[["vis cache verify @myorg/app:build","Diff cached outputs vs live workspace files"],["vis cache verify @myorg/app:build --format=json","Machine-readable diff (status: ok | drift)"],["vis cache verify @myorg/app:build --cache-dir=.alt-cache","Verify against a non-default cache directory"],["vis cache verify @myorg/app:build --scope=all","Search shared and worktree caches for the task"]],group:"Workspace",loader:Ve(()=>import("./handler21.js"),"cacheVerifyExecute"),name:"verify",options:[jo,jc,hf]},SL={commandPath:["cache"],description:"Probe the configured remote cache (HTTP HEAD or REAPI Capabilities) and report reachability, latency, and negotiated capabilities",examples:[["vis cache doctor","Probe the remoteCache configured in vis.config.ts"],["vis cache doctor --url=grpcs://cache.example.com:443 --backend=reapi","Override URL/backend ad-hoc"],["vis cache doctor --json","Machine-readable output"]],group:"Workspace",loader:Ve(()=>import("./doctor-probe.js"),"cacheDoctorExecute"),name:"doctor",options:[{description:"Override remote cache URL (otherwise read from vis.config.ts remoteCache.url, or TURBO_API env var)",name:"url",type:String},{description:"Override backend selector: 'http' or 'reapi'",name:"backend",type:String},{description:"Output format: table or json (default: table)",name:"format",type:String},{defaultValue:5e3,description:"Probe timeout in milliseconds (default: 5000)",name:"timeout",type:Number}]},DL=[gL,yL,vL,bL,$L,wL,kL,SL];var CL=Object.defineProperty,EL=f((e,t)=>CL(e,"name",{value:t,configurable:!0}),"e$Q");const AL={alias:["c","outdated"],argument:{description:"Specific packages to check (checks all if omitted)",name:"packages",type:String},description:"Check for outdated dependencies, security vulnerabilities, and supply chain settings",examples:[["vis check","Check all catalog dependencies"],["vis check react","Check specific packages"],["vis check --target minor","Only show minor/patch updates"],["vis check --exclude '@types/*'","Exclude packages by pattern"],["vis check --no-security","Skip vulnerability scanning"],["vis check --security-config","Audit supply chain security settings"],["vis check --security-config --sync","Sync security config to pnpm-workspace.yaml"]],group:"Security & Health",loader:EL(()=>import("./handler5.js"),"loader"),name:"check",options:[{alias:"t",description:"Update target: latest, minor, or patch (default: latest)",name:"target",type:String},{description:"Glob pattern to include packages (repeatable)",lazyMultiple:!0,name:"include",type:String},{description:"Glob pattern to exclude packages (repeatable)",lazyMultiple:!0,name:"exclude",type:String},{defaultValue:!1,description:"Include prerelease versions",name:"prerelease",type:Boolean},{defaultValue:!1,description:"Skip security vulnerability scanning",name:"no-security",type:Boolean},{defaultValue:!1,description:"Audit supply chain security settings",name:"security-config",type:Boolean},{defaultValue:!1,description:"Sync security settings to pnpm-workspace.yaml (pnpm only, requires --security-config)",name:"sync",type:Boolean},{description:"Output format: table, json, or minimal (default: table)",name:"format",type:String},{defaultValue:!1,description:"Exit with code 1 if outdated dependencies found (for CI)",name:"exit-code",type:Boolean},{defaultValue:!1,description:"Run AI analysis on outdated packages",name:"ai",type:Boolean},{description:"AI analysis type: impact, security, compatibility, or recommend",name:"ai-type",type:String},{alias:"D",conflicts:"prod",description:"Check only devDependencies (npm/yarn mode)",name:"dev",type:Boolean},{alias:"P",conflicts:"dev",description:"Check only dependencies (npm/yarn mode)",name:"prod",type:Boolean},{defaultValue:!1,description:"Include peerDependencies in outdated checks",name:"peer",type:Boolean},{defaultValue:!1,description:"Also check workspace-owned package names against the registry",name:"include-internal",type:Boolean}]};var jL=Object.defineProperty,OL=f((e,t)=>jL(e,"name",{value:t,configurable:!0}),"e$P");const xL={argument:{description:"Comma-separated list of targets to run (e.g., lint,test,build)",name:"targets",type:String},description:"Run affected targets in a CI-optimized pipeline",examples:[["vis ci lint,test,build","Run lint, test, and build on affected projects"],["vis ci test --base=origin/main","Override the base ref"],["vis ci build --no-install","Skip the install step (assume deps already present)"],["vis ci build --parallel=6","Increase concurrency"]],group:"Run & Execute",loader:OL(()=>import("./handler6.js"),"loader"),name:"ci",options:[{defaultValue:!0,description:"Install dependencies before running targets (use --no-install to skip)",name:"install",type:Boolean},{defaultValue:!1,description:"Skip the toolchain pre-flight (no auto-install for any pinned tool: node / pnpm / yarn / npm / bun / deno / go / python / ruby / rust)",name:"skip-toolchain",type:Boolean},{description:"Git base ref for affected detection (default: auto-detected from CI env)",name:"base",type:String},{description:"Git head ref for affected detection (default: HEAD)",name:"head",type:String},{defaultValue:"none",description:"Upstream scope: none | direct | deep",name:"upstream",type:String},{defaultValue:"deep",description:"Downstream scope: none | direct | deep",name:"downstream",type:String},{defaultValue:4,description:"Maximum number of parallel tasks per target",name:"parallel",type:Number},{description:'Partition tasks for distributed CI (e.g., "1/4")',name:"partition",type:String},{description:"Filter affected projects by a query (e.g. 'language=typescript && tag=lib')",name:"query",type:String}]};var PL=Object.defineProperty,NL=f((e,t)=>PL(e,"name",{value:t,configurable:!0}),"e$O");const FL={description:"Remove node_modules from all workspace projects",examples:[["vis clean","Remove all node_modules directories"],["vis clean --lockfile","Also remove lockfiles"],["vis clean --dry-run","Preview what would be removed"]],group:"Workspace",loader:NL(()=>import("./handler7.js"),"loader"),name:"clean",options:[{alias:"l",defaultValue:!1,description:"Also remove lockfiles (pnpm-lock.yaml, package-lock.json, etc.)",name:"lockfile",type:Boolean},{defaultValue:!1,description:"Preview what would be removed without deleting",name:"dry-run",type:Boolean}]};var RL=Object.defineProperty,BL=f((e,t)=>RL(e,"name",{value:t,configurable:!0}),"e$N");const LL={argument:{description:"Template to use (e.g., vis:app, create-vite, user/repo) — omit for interactive mode",name:"template",type:String},description:"Create a new project from a template",examples:[["vis create","Interactive project scaffolding"],["vis create vis:monorepo my-workspace","Create a monorepo workspace"],["vis create vis:app my-app","Scaffold a Vite application"],["vis create vis:library my-lib","Create a TypeScript library"],["vis create vite my-app -- --template react-ts","Use create-vite with React TypeScript"],["vis create user/repo my-project","Clone a GitHub template"],["vis create --list","Show available templates"]],group:"Scaffold & Config",loader:BL(()=>import("./handler42.js"),"loader"),name:"create",options:[{defaultValue:!1,description:"Show available templates",name:"list",type:Boolean},{description:"Generate editor configs (vscode)",name:"editor",type:String},{defaultValue:!1,description:"Initialize a git repository",name:"git-init",type:Boolean},{defaultValue:!1,description:"Skip interactive prompts",name:"no-interactive",type:Boolean}]};var TL=Object.defineProperty,IL=f((e,t)=>TL(e,"name",{value:t,configurable:!0}),"e$M");const _L={description:"Deduplicate dependencies using the detected package manager",examples:[["vis dedupe","Run deduplication"],["vis dedupe --check","Preview changes without modifying (CI-friendly)"]],group:"Dependencies",loader:IL(()=>import("./handler8.js"),"loader"),name:"dedupe",options:[{defaultValue:!1,description:"Preview changes without modifying files (dry-run)",name:"check",type:Boolean}]};var ML=Object.defineProperty,VL=f((e,t)=>ML(e,"name",{value:t,configurable:!0}),"e$L");const WL={alias:"dc",description:"Create or update .devcontainer/devcontainer.json interactively",examples:[["vis devcontainer","Launch interactive devcontainer config editor"],["vis dc","Alias for devcontainer"],["vis devcontainer --template node-pnpm","Start from Node.js + pnpm template"]],group:"Scaffold & Config",loader:VL(()=>import("./handler45.js"),"loader"),name:"devcontainer",options:[{alias:"t",description:"Start from a template: node, node-pnpm, node-postgres, node-dind, fullstack, python, go, rust, java, devops, minimal, custom",name:"template",type:String},{alias:"o",description:"Output path (default: .devcontainer/devcontainer.json)",name:"output",type:String}]};var UL=Object.defineProperty,GL=f((e,t)=>UL(e,"name",{value:t,configurable:!0}),"e$K");const qL={argument:{description:"Package to execute (optionally with @version)",name:"package",type:String},description:"Execute a remote package without permanent installation",examples:[["vis dlx create-vite my-app","Scaffold a new project"],["vis dlx typescript@5.5.4 tsc --version","Run specific version"],["vis dlx -p cowsay -p lolcatjs -c 'echo hi | cowsay | lolcatjs'","Multiple packages with shell"]],group:"Run & Execute",loader:GL(()=>import("./handler9.js"),"loader"),name:"dlx",options:[{alias:"p",description:"Additional packages to install (repeatable)",multiple:!0,name:"package",type:String},{alias:"c",defaultValue:!1,description:"Execute within shell environment",name:"shell-mode",type:Boolean},{alias:"s",defaultValue:!1,description:"Suppress output except command results",name:"silent",type:Boolean}]};var zL=Object.defineProperty,HL=f((e,t)=>zL(e,"name",{value:t,configurable:!0}),"e$J");const JL={argument:{description:"Docker subcommand: scaffold | prune",name:"subcommand",type:String},description:"Docker integration — scaffold a minimal context or prune unfocused deps",examples:[["vis docker scaffold --focus=my-app","Generate .vis/docker/workspace for my-app + its deps"],["vis docker scaffold --focus=my-app --include-sources","Also copy focus source trees"],["vis docker scaffold --focus=my-app,other --out=.vis/docker","Focus multiple projects"],["vis docker prune --context=.vis/docker","Strip unfocused projects inside a build stage"]],group:"Workspace",loader:HL(()=>import("./handler10.js"),"loader"),name:"docker",options:[{description:"Project name(s) to focus on — comma-separated for multiple",name:"focus",type:String},{description:"Output directory for the scaffold (default: .vis/docker)",name:"out",type:String},{defaultValue:!1,description:"Also copy focus project source trees to <out>/sources",name:"include-sources",type:Boolean},{description:"Scaffold root for `vis docker prune` (default: .vis/docker)",name:"context",type:String},{defaultValue:!0,description:"Rewrite the workspace lockfile to drop unfocused projects (use --no-prune-lockfile to copy verbatim)",name:"prune-lockfile",type:Boolean}]};var KL=Object.defineProperty,YL=f((e,t)=>KL(e,"name",{value:t,configurable:!0}),"e$I");const XL={description:"Run a full project health check (outdated, security, duplicates, optimizations)",examples:[["vis doctor","Full project health check"],["vis doctor --fix","Check and auto-apply safe fixes"],["vis doctor --format json","Machine-readable output for CI"],["vis doctor --only security","Only run the security scans"],["vis doctor --skip optimization,runtime","Skip the listed sections"],["vis doctor --quiet","Summary only, no per-section breakdown"],["vis doctor --no-progress","Disable live progress UI (sequential logs)"],["vis doctor --exit-code","Exit with code 1 if security issues found"],["vis doctor --exit-code --strict","Fail on any issue (outdated, duplicates, security)"]],group:"Security & Health",loader:YL(()=>import("./handler40.js"),"loader"),name:"doctor",options:[{description:"Output format: table or json (default: table). Alias: --json",name:"format",type:String},{defaultValue:!1,description:"Shorthand for --format json",name:"json",type:Boolean},{defaultValue:!1,description:"Exit with code 1 if issues found",name:"exit-code",type:Boolean},{defaultValue:!1,description:"Auto-apply safe fixes (security overrides + codemods, SIGTERM orphans)",name:"fix",type:Boolean},{defaultValue:!1,description:"With --fix: escalate orphan cleanup to SIGKILL / taskkill /F (use when SIGTERM is ignored)",name:"fix-force",type:Boolean},{defaultValue:!1,description:"With --exit-code: also fail on outdated and duplicate deps",name:"strict",type:Boolean},{description:"Comma-separated sections to run: dependencies,security,optimization,runtime",name:"only",type:String},{description:"Comma-separated sections to skip",name:"skip",type:String},{defaultValue:!1,description:"Suppress per-section detail; print summary only",name:"quiet",type:Boolean},{defaultValue:!1,description:"Disable live progress UI (forces sequential logs)",name:"no-progress",type:Boolean},{defaultValue:!1,description:"Bypass the doctor result cache (~/.vis/cache/doctor)",name:"no-cache",type:Boolean},{description:"Comma-separated package name patterns to scope findings (supports * globs, e.g. '@types/*,react')",name:"filter",type:String}]};var QL=Object.defineProperty,ZL=f((e,t)=>QL(e,"name",{value:t,configurable:!0}),"e$H");const eT={argument:{description:"Command to execute followed by arguments",name:"command",type:String},description:"Execute a local node_modules/.bin command (no remote fallback)",examples:[["vis exec eslint .","Run local eslint"],["vis exec tsc --noEmit","Run local TypeScript check"],["vis exec -r -- eslint .","Run in all workspace packages"],["vis exec -c 'echo $PATH'","Shell mode"]],group:"Run & Execute",loader:ZL(()=>import("./handler11.js"),"loader"),name:"exec",options:[{alias:"c",defaultValue:!1,description:"Execute within shell environment",name:"shell-mode",type:Boolean},{alias:"r",defaultValue:!1,description:"Run in every workspace package",name:"recursive",type:Boolean},{alias:"w",defaultValue:!1,description:"Run on workspace root only",name:"workspace-root",type:Boolean},{alias:"F",description:"Filter packages by name pattern",multiple:!0,name:"filter",type:String},{defaultValue:!1,description:"Run concurrently without topological ordering",name:"parallel",type:Boolean},{defaultValue:!1,description:"Reverse topological execution order",name:"reverse",type:Boolean}]};var tT=Object.defineProperty,rT=f((e,t)=>tT(e,"name",{value:t,configurable:!0}),"e$G");const nT={argument:{description:"Template name (or remote source like git://… or npm://…) — omit for interactive picker",name:"template",type:String},description:"Scaffold files from an in-repo template",examples:[["vis generate","Pick a template interactively"],["vis generate package","Run the 'package' template"],["vis generate component -- --name=Button --style=primary","Pre-fill option values"],["vis generate package --to=./packages/new --force","Custom destination + overwrite"],["vis generate package --dry-run","Print planned writes without touching disk"],["vis generate git://github.com/org/template#main","Fetch and run a remote template"],["vis generate --list","Show discovered templates"],["vis generate --list --json","Machine-readable template list"],["vis generate package --describe --json","Print template metadata (variables, destination) as JSON"]],group:"Scaffold & Config",loader:rT(()=>import("./handler36.js"),"loader"),name:"generate",options:[{defaultValue:!1,description:"List discovered templates",name:"list",type:Boolean},{defaultValue:!1,description:"Print template metadata (about, destination, variables) without running produce",name:"describe",type:Boolean},{defaultValue:!1,description:"Emit JSON output (with --list or --describe)",name:"json",type:Boolean},{description:"Destination directory",name:"to",type:String},{defaultValue:!1,description:"Print planned writes without touching disk",name:"dry-run",type:Boolean},{defaultValue:!1,description:"Overwrite existing files without prompting",name:"force",type:Boolean},{defaultValue:!1,description:"Skip prompts; use template defaults",name:"defaults",type:Boolean},{defaultValue:!1,description:"Skip running post-generation scripts",name:"skip-scripts",type:Boolean},{defaultValue:!1,description:"Skip interactive prompts (errors on missing required values)",name:"no-interactive",type:Boolean},{defaultValue:!1,description:"Prefer locally cached remote templates over re-downloading",name:"prefer-offline",type:Boolean}]};var iT=Object.defineProperty,sT=f((e,t)=>iT(e,"name",{value:t,configurable:!0}),"t$s");const oT={description:"Visualize the project dependency graph",examples:[["vis graph","Show colored dependency graph (TUI in TTY, ASCII otherwise)"],["vis graph --format=ascii","Force ASCII tree output"],["vis graph --format=dot","Output in Graphviz DOT format"],["vis graph --format=html --output=graph.html","Generate interactive HTML graph"],["vis graph --format=json --output=graph.json","Save JSON graph to file"]],group:"Workspace",loader:sT(()=>import("./handler37.js"),"loader"),name:"graph",options:[{alias:"f",defaultValue:void 0,description:"Output format: tui, ascii, dot, json, html (default: tui in TTY, ascii otherwise)",name:"format",type:String},{alias:"o",description:"Write output to file instead of stdout",name:"output",type:String},{alias:"d",description:"Maximum dependency tree depth for ASCII output (default: unlimited)",name:"depth",type:Number}]},I1=["pre-commit","pre-merge-commit","prepare-commit-msg","commit-msg","post-commit","applypatch-msg","pre-applypatch","post-applypatch","pre-rebase","post-rewrite","post-checkout","post-merge","pre-push","pre-auto-gc"],_1=".vis-hooks",FY=[".pre-commit-config.yaml",".pre-commit-config.yml","prek.toml"],RY={commit:"pre-commit","merge-commit":"pre-merge-commit",push:"pre-push"},BY=new Set(["commit-msg","post-checkout","post-commit","post-merge","post-rewrite","pre-commit","pre-merge-commit","pre-push","pre-rebase","prepare-commit-msg"]),LY=new Set(["commit-msg","post-checkout","post-merge","post-rewrite","pre-rebase","prepare-commit-msg"]),TY=new Set(["fail","script","system"]);var aT=Object.defineProperty,ei=f((e,t)=>aT(e,"name",{value:t,configurable:!0}),"e$E");const ti={defaultValue:_1,description:"Custom hooks directory",name:"hooks-dir",type:String},ri=[{defaultValue:void 0,description:"Set to 0 to disable git hooks, set to 2 for debug output",name:"VIS_GIT_HOOKS",type:String}],cT={commandPath:["hook"],description:"Install git hooks for the workspace (migrates husky / prek on prompt)",env:[...ri],examples:[["vis hook install","Install git hooks in .vis-hooks/"],["vis hook install --hooks-dir=.githooks","Install hooks in a custom directory"]],group:"Scaffold & Config",loader:ei(()=>import("./handler44.js").then(e=>({default:e.hookInstallExecute})),"loader"),name:"install",options:[ti]},lT={commandPath:["hook"],description:"Remove git hooks and reset core.hooksPath",env:[...ri],examples:[["vis hook uninstall","Remove git hooks and reset core.hooksPath"]],group:"Scaffold & Config",loader:ei(()=>import("./handler44.js").then(e=>({default:e.hookUninstallExecute})),"loader"),name:"uninstall",options:[ti]},uT={commandPath:["hook"],description:"Migrate from husky or prek to vis hooks (auto-detected)",env:[...ri],examples:[["vis hook migrate","Migrate from husky or prek to vis hooks (auto-detected)"],["vis hook migrate --dry-run","Preview what a migration would write without touching disk"]],group:"Scaffold & Config",loader:ei(()=>import("./handler44.js").then(e=>({default:e.hookMigrateExecute})),"loader"),name:"migrate",options:[ti,{defaultValue:!1,description:"Preview migrate without writing files",name:"dry-run",type:Boolean}]},pT={commandPath:["hook"],description:"Show configured hooks grouped by stage",env:[...ri],examples:[["vis hook list","Show configured hooks grouped by stage"]],group:"Scaffold & Config",loader:ei(()=>import("./handler44.js").then(e=>({default:e.hookListExecute})),"loader"),name:"list",options:[ti]},dT={commandPath:["hook"],description:"Sanity-check installed hooks and the bundled runner",env:[...ri],examples:[["vis hook validate","Sanity-check installed hooks and the bundled runner"]],group:"Scaffold & Config",loader:ei(()=>import("./handler44.js").then(e=>({default:e.hookValidateExecute})),"loader"),name:"validate",options:[ti]},fT={argument:{description:"Hook stage to run (e.g. pre-commit, commit-msg). Defaults to pre-commit.",name:"stage",type:String},commandPath:["hook"],description:"Run a specific hook stage against tracked files",env:[...ri],examples:[["vis hook run pre-commit --all-files","Run the pre-commit hooks against every tracked file"],["vis hook run pre-commit --from-ref=main --to-ref=HEAD","Run pre-commit hooks on files changed between two refs"],["vis hook run pre-commit --last-commit","Shortcut for --from-ref HEAD~1 --to-ref HEAD"]],group:"Scaffold & Config",loader:ei(()=>import("./handler44.js").then(e=>({default:e.hookRunExecute})),"loader"),name:"run",options:[ti,{defaultValue:!1,description:"Run against every tracked file",name:"all-files",type:Boolean},{defaultValue:void 0,description:"Include files changed since this ref",name:"from-ref",type:String},{defaultValue:void 0,description:"Include files changed up to this ref",name:"to-ref",type:String},{defaultValue:!1,description:"Shortcut for --from-ref HEAD~1 --to-ref HEAD",name:"last-commit",type:Boolean}]},hT={argument:{description:"Target to add (currently: `secrets`)",name:"target",type:String},commandPath:["hook"],description:"Add a managed hook snippet (e.g. `vis secrets --staged`)",env:[...ri],examples:[["vis hook add secrets","Add a pre-commit hook that runs `vis secrets --staged`"]],group:"Scaffold & Config",loader:ei(()=>import("./handler44.js").then(e=>({default:e.hookAddExecute})),"loader"),name:"add",options:[ti]},mT=[cT,lT,uT,pT,dT,fT,hT];var gT=Object.defineProperty,yT=f((e,t)=>gT(e,"name",{value:t,configurable:!0}),"e$D");const vT={argument:{description:"Project name to check (required)",name:"project",type:String},description:'Exit with inverted codes for CI "Ignored Build Step" gating (Vercel/Netlify)',examples:[["vis ignore my-app","Check if my-app is affected and decide whether to build"],["vis ignore my-app --base $VERCEL_GIT_PREVIOUS_SHA","Explicit base ref"],["vis ignore my-app --json","Emit the decision as JSON instead of text"],["vis ignore my-app --verbose","Print debug info about the decision path"],["vis ignore my-app --exit-zero-on-build","Normal exit semantics (0=build, 0=skip)"]],group:"Run & Execute",loader:yT(()=>import("./handler31.js"),"loader"),name:"ignore",options:[{description:"Git base ref for comparison. Defaults to CI provider env vars, then HEAD~1.",name:"base",type:String},{defaultValue:"HEAD",description:"Git head ref for comparison",name:"head",type:String},{defaultValue:"deep",description:'Downstream scope: "none", "direct", or "deep"',name:"downstream",type:String},{defaultValue:"none",description:'Upstream scope: "none", "direct", or "deep"',name:"upstream",type:String},{defaultValue:!1,description:"Emit the decision as JSON on stdout instead of human text",name:"json",type:Boolean},{defaultValue:!1,description:"Exit 0 on build (normal semantics) instead of 1 (inverted Vercel/Netlify semantics)",name:"exit-zero-on-build",type:Boolean},{defaultValue:!1,description:"Enable verbose debug output",name:"verbose",type:Boolean}]};var bT=Object.defineProperty,$T=f((e,t)=>bT(e,"name",{value:t,configurable:!0}),"e$C");const wT={description:"Remove vis from the system (self-uninstall)",examples:[["vis implode","Interactive uninstall"],["vis implode --yes","Non-interactive uninstall (CI)"]],group:"System",loader:$T(()=>import("./handler12.js"),"loader"),name:"implode",options:[{alias:"y",defaultValue:!1,description:"Skip confirmation prompt",name:"yes",type:Boolean}]};var kT=Object.defineProperty,ST=f((e,t)=>kT(e,"name",{value:t,configurable:!0}),"e$B");const DT={alias:"view",argument:{description:"Package name followed by optional metadata fields (e.g. 'react version dependencies')",name:"args",type:String},description:"Show npm registry metadata for a package (alias of `npm view` / `pnpm view` / `yarn info` / `bun pm view`)",examples:[["vis info react","Full registry metadata for react"],["vis info react version","Latest version only"],["vis info react versions","All published versions"],["vis info react@18 dependencies","Dependencies of react@18"],["vis info react --json","Emit JSON"],["vis view react","Alias matching npm/pnpm"]],group:"Dependencies",loader:ST(()=>import("./handler13.js"),"loader"),name:"info",options:[{defaultValue:!1,description:"Output as JSON",name:"json",type:Boolean}]};var CT=Object.defineProperty,ET=f((e,t)=>CT(e,"name",{value:t,configurable:!0}),"e$A");const AT={description:"Initialize vis.config.ts with best-practice security defaults",examples:[["vis init","Interactive setup wizard"],["vis init --no-interactive","Create minimal config without prompts"],["vis init --force","Overwrite existing config"],["vis init --sync-native","Also sync to native PM config files"]],group:"Scaffold & Config",loader:ET(()=>import("./handler14.js"),"loader"),name:"init",options:[{defaultValue:!1,description:"Overwrite existing config file",name:"force",type:Boolean},{defaultValue:!1,description:"Skip interactive prompts",name:"no-interactive",type:Boolean},{defaultValue:!1,description:"Sync settings to native PM config files",name:"sync-native",type:Boolean}]};var jT=Object.defineProperty,OT=f((e,t)=>jT(e,"name",{value:t,configurable:!0}),"e$z");const xT={alias:"i",description:"Install dependencies using the detected package manager",examples:[["vis install","Install all dependencies (frozen-lockfile by default when a lockfile is present)"],["vis i --no-frozen-lockfile","Allow lockfile updates (escape hatch for the default)"],["vis install --ci","Clean install: wipe node_modules + frozen lockfile (mirrors npm ci / pnpm ci)"],["vis install --prefer-offline","Use cached packages when available, fall back to network"],["vis install --prod","Install production dependencies only"],["vis install --filter app","Install for specific workspace package"],["vis install --run-scripts","Run lifecycle scripts (opts out of vis's default block-by-default policy; allowlisted packages run via security.allowBuilds)"],["vis install --no-typosquat-check","Skip typosquat name check"],["vis install --installer aube","Force aube as the installer (errors if not on PATH)"],["vis install --no-aube","Bypass aube; use the lockfile-detected PM"]],group:"Dependencies",loader:OT(()=>import("./handler15.js"),"loader"),name:"install",options:[{alias:"P",conflicts:"dev",description:"Skip devDependencies",name:"prod",type:Boolean},{alias:"D",conflicts:"prod",description:"Install devDependencies only",name:"dev",type:Boolean},{defaultValue:!1,description:"Use frozen lockfile (CI mode, maps to npm ci)",name:"frozen-lockfile",type:Boolean},{defaultValue:!1,description:"Opt out of vis's default frozen-lockfile behavior and allow lockfile updates",name:"no-frozen-lockfile",type:Boolean},{defaultValue:!1,description:"Clean install: wipe node_modules then install with frozen lockfile",name:"ci",type:Boolean},{alias:"f",defaultValue:!1,description:"Force reinstall all dependencies",name:"force",type:Boolean},{defaultValue:!1,description:"Run lifecycle scripts (opts out of vis's default block-by-default policy; allowlisted packages run via security.allowBuilds)",name:"run-scripts",type:Boolean},{defaultValue:!1,description:"Update lockfile without installing",name:"lockfile-only",type:Boolean},{defaultValue:!1,description:"Skip optional dependencies",name:"no-optional",type:Boolean},{defaultValue:!1,description:"Use only cached packages",name:"offline",type:Boolean},{defaultValue:!1,description:"Prefer cached packages, fall back to network when missing",name:"prefer-offline",type:Boolean},{alias:"s",defaultValue:!1,description:"Suppress output",name:"silent",type:Boolean},{alias:"r",defaultValue:!1,description:"Install in all workspace packages",name:"recursive",type:Boolean},{alias:"w",defaultValue:!1,description:"Target workspace root",name:"workspace-root",type:Boolean},{alias:"F",description:"Filter by workspace package name",multiple:!0,name:"filter",type:String},{defaultValue:!1,description:"Skip typosquat name check",name:"no-typosquat-check",type:Boolean},{description:"Pick the installer explicitly. One of: auto, aube, pnpm, npm, yarn, bun. Overrides VIS_INSTALLER and install.backend in vis.config.",name:"installer",type:String},{defaultValue:!1,description:"Skip aube and use the lockfile-detected PM. Wins over --installer / VIS_INSTALLER / install.backend.",name:"no-aube",type:Boolean}]};var PT=Object.defineProperty,NT=f((e,t)=>PT(e,"name",{value:t,configurable:!0}),"e$y");const FT={alias:"ln",argument:{description:"Package name or directory path to link (omit to register current package)",name:"target",type:String},description:"Link a local package for development",examples:[["vis link ./packages/utils","Link local directory package (works on all PMs)"],["vis link","Register current package globally (pnpm <=10, yarn, npm, bun)"],["vis link react","Link global package into current project (pnpm <=10, yarn, npm, bun)"]],group:"Dependencies",loader:NT(()=>import("./handler16.js"),"loader"),name:"link"};var RT=Object.defineProperty,BT=f((e,t)=>RT(e,"name",{value:t,configurable:!0}),"e$x");const LT={description:"Lint workspace dependency policies (workspace-protocol, banned-deps, redefine-root, workspace-versions, custom-types, empty-deps, root-private, root-package-manager, root-deps, missing-package-json, dead-workspace-patterns, types-in-deps, similar-deps)",examples:[["vis lint","Run every enabled lint and exit non-zero on failures"],["vis lint --workspace-protocol","Only check that internal deps use workspace:*"],["vis lint --workspace-protocol --fix","Auto-rewrite internal deps to use workspace:*"],["vis lint --redefine-root","Flag deps duplicated between root and child packages"],["vis lint --banned-deps","Flag deps matching policy.bannedDeps in vis config"],["vis lint --workspace-versions","Flag external deps declared at different versions across packages"],["vis lint --workspace-versions --fix","Rewrite drifting deps to the highest sibling version"],["vis lint --workspace-versions --dep react","Limit version-drift check to a single dep"],["vis lint --workspace-versions --resolve catalog --fix","Rewrite drifting deps to catalog: when a catalog already pins them"],["vis lint --workspace-versions --resolve catalog --propose-min 3","Suggest new catalog entries for deps ≥3 packages already agree on"],["vis lint --custom-types","Flag drift in engines.{node,pnpm}, packageManager, volta.{node,pnpm,yarn}, devEngines"],["vis lint --custom-types --fix","Align all engines/packageManager/volta versions to the highest sibling"],["vis lint --empty-deps --fix","Drop empty `dependencies` / `devDependencies` / etc. blocks across the workspace"],["vis lint --root-private --fix",'Ensure the workspace root package.json has "private": true'],["vis lint --root-package-manager","Ensure the root package.json declares a `packageManager` field"],["vis lint --root-deps --fix","Move runtime deps off the private workspace root into devDependencies"],["vis lint --missing-package-json","Flag workspace dirs that don't contain a package.json"],["vis lint --dead-workspace-patterns --fix","Drop workspace patterns that match zero packages"],["vis lint --types-in-deps --fix","Move @types/* out of dependencies on private packages"],["vis lint --similar-deps","Flag drift across related dep families (react+react-dom, @babel/*, …)"],["vis lint --ban left-pad --ban request","One-off ban: flag any package declaring left-pad or request"],["vis lint --pin react@18.2.0","One-off pin: flag any package declaring react at a different version"],["vis lint --format json","Emit findings as JSON for CI / editor integrations"]],group:"Security & Health",loader:BT(()=>import("./handler43.js"),"loader"),name:"lint",options:[{defaultValue:!1,description:"Lint that internal deps use the workspace: protocol",name:"workspace-protocol",type:Boolean},{defaultValue:!1,description:"Lint that no child re-declares a dep already pinned in the workspace root",name:"redefine-root",type:Boolean},{defaultValue:!1,description:"Lint deps against policy.bannedDeps in vis config",name:"banned-deps",type:Boolean},{defaultValue:!1,description:"Lint that all packages declare external deps at the same version",name:"workspace-versions",type:Boolean},{defaultValue:!1,description:"Lint engines.{node,pnpm}, packageManager, volta.*, devEngines.* for drift across packages",name:"custom-types",type:Boolean},{defaultValue:!1,description:"Flag empty dependency blocks (`dependencies: {}`, `devDependencies: {}`, …) across the workspace",name:"empty-deps",type:Boolean},{defaultValue:!1,description:'Ensure the workspace root package.json sets `"private": true`',name:"root-private",type:Boolean},{defaultValue:!1,description:"Ensure the workspace root package.json declares a `packageManager` field",name:"root-package-manager",type:Boolean},{defaultValue:!1,description:"Flag runtime dependencies on the private workspace root (move them to devDependencies)",name:"root-deps",type:Boolean},{defaultValue:!1,description:"Flag workspace directories that lack a package.json",name:"missing-package-json",type:Boolean},{defaultValue:!1,description:"Flag workspace patterns (in `pnpm-workspace.yaml` / `package.json#workspaces`) that match zero packages",name:"dead-workspace-patterns",type:Boolean},{defaultValue:!1,description:"Flag `@types/*` declared in `dependencies` on a private package (should be in devDependencies)",name:"types-in-deps",type:Boolean},{defaultValue:!1,description:"Flag version drift across related dep families (react+react-dom, @babel/*, @storybook/*, …)",name:"similar-deps",type:Boolean},{description:"Restrict --workspace-versions to a single dep",name:"dep",type:String},{description:"Ban a dep name or glob for this run (repeatable). Auto-enables --banned-deps.",multiple:!0,name:"ban",type:String},{description:"Pin a dep to an exact specifier for this run, e.g. react@^18.2.0 (repeatable). Auto-enables --workspace-versions.",multiple:!0,name:"pin",type:String},{description:"Conflict resolution for --workspace-versions: highest, lowest, or catalog (default: highest)",name:"resolve",type:String},{description:"Propose catalog entries for deps ≥N packages already agree on. Activates with --resolve catalog.",name:"propose-min",type:Number},{defaultValue:!1,description:"Auto-fix violations in place (writes package.json files)",name:"fix",type:Boolean},{description:"Specifier used by --fix for workspace-protocol (default: workspace:*)",name:"fix-specifier",type:String},{description:"Output format: human, json, or minimal (default: human)",name:"format",type:String},{defaultValue:!1,description:"Suppress all output except errors",name:"quiet",type:Boolean}]};var TT=Object.defineProperty,IT=f((e,t)=>TT(e,"name",{value:t,configurable:!0}),"e$w");const _T={description:"List all workspace projects with metadata",examples:[["vis list","Show all projects"],["vis list --targets","Per-target rows with type, cache status and description"],["vis list --targets --inferred","Only show targets synthesized by Project Crystal-style inference"],["vis list --deps","Human-readable table of every dep-instance across the workspace"],["vis list --deps --internal-only","Only workspace deps in human form"],["vis list --deps --format=ndjson","Stream every dep-instance as NDJSON for jq pipelines"],["vis list --deps --format=json --pretty","Single pretty-printed JSON array of dep-instances"],["vis list --format=json","Machine-readable project listing"],['vis list --query "tag=frontend"',"Filter by query"]],group:"Workspace",loader:IT(()=>import("./handler32.js"),"loader"),name:"list",options:[{defaultValue:!1,description:"Filter target rows to only inferred targets (implies --targets)",name:"inferred",type:Boolean},{description:"Output format: table (default), json (single document), or ndjson (one record per line; --deps only)",name:"format",type:String},{defaultValue:!1,description:"Pretty-print with 2-space indent (only meaningful with --format=json)",name:"pretty",type:Boolean},{description:"Filter projects by query",name:"query",type:String},{defaultValue:!1,description:"Show per-target rows (type, cache, description)",name:"targets",type:Boolean},{defaultValue:!1,description:"Render a dep-instance view (table by default; use --format=ndjson|json for jq-friendly streams)",name:"deps",type:Boolean},{description:"Restrict --deps to specific dep blocks (repeatable)",multiple:!0,name:"dep-type",type:String},{defaultValue:!1,description:"With --deps: only show internal/workspace deps",name:"internal-only",type:Boolean},{defaultValue:!1,description:"With --deps: only show external/registry deps",name:"external-only",type:Boolean},{description:"With --deps: glob of declaring package names to keep (repeatable)",multiple:!0,name:"include",type:String},{description:"With --deps: glob of declaring package names to drop (repeatable)",multiple:!0,name:"exclude",type:String}]};var MT=Object.defineProperty,Vt=f((e,t)=>MT(e,"name",{value:t,configurable:!0}),"t$m");const er=[{defaultValue:!1,description:"Preview changes without applying",name:"dry-run",type:Boolean},{alias:"y",defaultValue:!1,description:"Skip the confirmation prompt",name:"yes",type:Boolean}],VT={commandPath:["migrate"],description:"Migrate dependencies and scripts to vis",group:"Scaffold & Config",loader:Vt(()=>import("./handler33.js").then(e=>({default:e.migrateDepsExecute})),"loader"),name:"deps",options:[...er]},WT={commandPath:["migrate"],description:"Inline lint-staged configuration into vis",group:"Scaffold & Config",loader:Vt(()=>import("./handler33.js").then(e=>({default:e.migrateLintStagedExecute})),"loader"),name:"lint-staged",options:[...er]},UT={commandPath:["migrate"],description:"Inline nano-staged configuration into vis",group:"Scaffold & Config",loader:Vt(()=>import("./handler33.js").then(e=>({default:e.migrateNanoStagedExecute})),"loader"),name:"nano-staged",options:[...er]},GT={commandPath:["migrate"],description:"Migrate turborepo tasks/config to vis",group:"Scaffold & Config",loader:Vt(()=>import("./handler33.js").then(e=>({default:e.migrateTurborepoExecute})),"loader"),name:"turborepo",options:[...er]},qT={commandPath:["migrate"],description:"Migrate nx targets/config to vis",group:"Scaffold & Config",loader:Vt(()=>import("./handler33.js").then(e=>({default:e.migrateNxExecute})),"loader"),name:"nx",options:[...er,{defaultValue:!1,description:"Overwrite an existing vis.config.ts (a .bak is taken first)",name:"force",type:Boolean}]},zT={commandPath:["migrate"],description:"Migrate moon tasks/templates to vis",group:"Scaffold & Config",loader:Vt(()=>import("./handler33.js").then(e=>({default:e.migrateMoonExecute})),"loader"),name:"moon",options:[...er,{defaultValue:!1,description:"Copy .moon/templates/* into .vis/templates/* so `vis generate` works without .moon/",name:"copy-templates",type:Boolean}]},HT={commandPath:["migrate"],description:"Migrate gitleaks config/baseline/hooks to `vis secrets`",examples:[["vis migrate gitleaks","Migrate gitleaks config/baseline/hooks to `vis secrets`"]],group:"Scaffold & Config",loader:Vt(()=>import("./handler33.js").then(e=>({default:e.migrateGitleaksExecute})),"loader"),name:"gitleaks",options:[...er]},JT={commandPath:["migrate"],description:"Migrate Kingfisher baseline/hooks/scripts to `vis secrets`",examples:[["vis migrate kingfisher","Migrate Kingfisher baseline/hooks/scripts to `vis secrets`"]],group:"Scaffold & Config",loader:Vt(()=>import("./handler33.js").then(e=>({default:e.migrateKingfisherExecute})),"loader"),name:"kingfisher",options:[...er]},KT={commandPath:["migrate"],description:"Replace secretlint with `vis secrets`",examples:[["vis migrate secretlint","Replace secretlint with `vis secrets`"]],group:"Scaffold & Config",loader:Vt(()=>import("./handler33.js").then(e=>({default:e.migrateSecretlintExecute})),"loader"),name:"secretlint",options:[...er]},YT={commandPath:["migrate"],description:"Translate syncpack customTypes into vis policy and strip the syncpack dep/scripts",examples:[["vis migrate syncpack","Translate syncpack customTypes into vis policy and strip the syncpack dep/scripts"]],group:"Scaffold & Config",loader:Vt(()=>import("./handler33.js").then(e=>({default:e.migrateSyncpackExecute})),"loader"),name:"syncpack",options:[...er]},XT={commandPath:["migrate"],description:"Strip sherif config/dep/scripts and surface ignore-rules as a positive `vis lint --<rule>` command",examples:[["vis migrate sherif","Strip sherif config/dep/scripts and surface ignore-rules as a positive `vis lint --<rule>` command"]],group:"Scaffold & Config",loader:Vt(()=>import("./handler33.js").then(e=>({default:e.migrateSherifExecute})),"loader"),name:"sherif",options:[...er]},QT={commandPath:["migrate"],description:"Audit the workspace for stray gitleaks/secretlint/sherif/syncpack references (exit 1 on issues)",examples:[["vis migrate verify","Audit the workspace for stray gitleaks/secretlint/sherif/syncpack references (exit 1 on issues)"]],group:"Scaffold & Config",loader:Vt(()=>import("./handler33.js").then(e=>({default:e.migrateVerifyExecute})),"loader"),name:"verify",options:[]},ZT=[VT,WT,UT,GT,qT,zT,HT,JT,KT,YT,XT,QT];var e3=Object.defineProperty,t3=f((e,t)=>e3(e,"name",{value:t,configurable:!0}),"r$u");const r3=new Set(["--cwd"]),n3=new Set(["--help","--version","-h","-V"]),i3=t3(e=>{const t=[];for(let r=0;r<e.length;r+=1){const n=e[r];if(n!==void 0){if(n3.has(n))return!1;if(n.startsWith("-")){const i=n.indexOf("="),s=i===-1?n:n.slice(0,i);if(r3.has(s)&&i===-1){const o=e[r+1];o!==void 0&&!o.startsWith("-")&&(r+=1)}continue}t.push(n)}}return t.length===1&&t[0]==="migrate"},"isBareMigrateInvocation");var s3=Object.defineProperty,o3=f((e,t)=>s3(e,"name",{value:t,configurable:!0}),"t$l");const Km=o3(e=>e in pl&&pl[e]!=="0"&&pl[e]!=="false","check"),Br=Km("CI")||Km("CONTINUOUS_INTEGRATION");var a3=Object.defineProperty,Yl=f((e,t)=>a3(e,"name",{value:t,configurable:!0}),"i$g");class c3{static{f(this,"MigrateStore")}static{Yl(this,"MigrateStore")}#e;#r=new Set;constructor(t){this.#e={applyProgress:null,checkedItems:new Set(t.map(r=>r.entry.id)),error:null,focusedPanel:"list",items:t,phase:"browsing",selectedIndex:0}}getSnapshot=Yl(()=>this.#e,"getSnapshot");subscribe=Yl(t=>(this.#r.add(t),()=>{this.#r.delete(t)}),"subscribe");getCheckedItems(){return this.#e.items.filter(t=>this.#e.checkedItems.has(t.entry.id))}getSelectedItem(){return this.#e.items[this.#e.selectedIndex]??null}setSelectedIndex(t){const r=Math.max(0,Math.min(t,this.#e.items.length-1));r!==this.#e.selectedIndex&&this.#t({...this.#e,selectedIndex:r})}setFocusedPanel(t){t!==this.#e.focusedPanel&&this.#t({...this.#e,focusedPanel:t})}toggleCheck(t){const r=new Set(this.#e.checkedItems);r.has(t)?r.delete(t):r.add(t),this.#t({...this.#e,checkedItems:r})}checkAll(){this.#t({...this.#e,checkedItems:new Set(this.#e.items.map(t=>t.entry.id))})}uncheckAll(){this.#t({...this.#e,checkedItems:new Set})}toggleAll(){this.#e.checkedItems.size===this.#e.items.length?this.uncheckAll():this.checkAll()}startApply(){const t=this.getCheckedItems().length;this.#t({...this.#e,applyProgress:{current:0,total:t},phase:"applying"})}updateApplyProgress(t){this.#e.applyProgress&&this.#t({...this.#e,applyProgress:{...this.#e.applyProgress,current:t}})}markDone(){this.#t({...this.#e,phase:"done"})}setError(t){this.#t({...this.#e,error:t,phase:"error"})}#t(t){this.#e=t;for(const r of this.#r)try{r()}catch{}}}var l3=Object.defineProperty,u3=f((e,t)=>l3(e,"name",{value:t,configurable:!0}),"f$b");const Ym=u3(({autoExitSeconds:e,onCancel:t,visible:r})=>{const{exit:n}=yv(),[i,s]=xs(e||3),o=Ws(null),a=Ws(0);mv(()=>{if(!r)return;const l=e||3;s(l),a.current=Date.now();let u=l;return o.current=setInterval(()=>{u-=1,u<=0?(o.current&&(clearInterval(o.current),o.current=null),s(0),n()):s(u)},1e3),()=>{o.current&&(clearInterval(o.current),o.current=null)}},[r,e,n]);const c=gv(()=>{o.current&&(clearInterval(o.current),o.current=null),t()},[t]);return vv((l,u)=>{Date.now()-a.current<200||(l==="q"?n():c())},{isActive:r}),z(Zu,{backgroundColor:"#1e1e1e",footer:pe(H,{dimColor:!0,children:["Press"," ",z(H,{bold:!0,color:"white",children:"q"})," ","to exit,"," ",z(H,{bold:!0,color:"white",children:"any key"})," ","to stay"]}),title:`Exiting in ${i}…`,visible:r,width:50,children:z(H,{dimColor:!0,children:"Stay to explore the results interactively."})})},"QuitDialog");var p3=Object.defineProperty,M1=f((e,t)=>p3(e,"name",{value:t,configurable:!0}),"n$k");const d3=M1(e=>{if(e.startsWith("⚠"))return"yellow";e.startsWith("── ")||e.startsWith("[dry-run]")},"colorForPreviewLine"),f3=M1(({focused:e,item:t,scrollRef:r})=>t?pe(he,{borderColor:e?"white":"gray",borderStyle:"single",flexDirection:"column",flexGrow:1,children:[z(he,{flexShrink:0,paddingTop:1,paddingX:2,children:z(H,{bold:!0,color:"white",children:t.entry.title})}),z(he,{flexShrink:0,paddingBottom:1,paddingX:2,children:z(H,{dimColor:!0,children:t.entry.description})}),z(BS,{flexGrow:1,flexShrink:1,paddingX:2,ref:r,scrollbar:!0,scrollbarColor:"gray",scrollbarStyle:"block",children:pe(he,{flexDirection:"column",children:[z(H,{dimColor:!0,children:"── What will change ──"}),z(H,{}),t.preview.length===0&&z(H,{dimColor:!0,children:"(no preview available)"}),t.preview.map((i,s)=>{const o=d3(i);return i===""?z(H,{},`blank-${String(s)}`):z(H,{color:o,children:i},`${String(s)}-${i.slice(0,20)}`)})]})})]}):z(he,{alignItems:"center",borderColor:"gray",borderStyle:"single",flexDirection:"column",flexGrow:1,justifyContent:"center",children:z(H,{dimColor:!0,children:"No migration selected"})}),"MigrateDetailPanel");var h3=Object.defineProperty,V1=f((e,t)=>h3(e,"name",{value:t,configurable:!0}),"g$a");const m3=V1(({checked:e,isSelected:t,item:r})=>{const n=e?"☑":"☐",i=r.preview.length;return pe(he,{flexShrink:0,height:1,children:[z(H,{children:t?">":" "}),pe(H,{color:e?"white":"gray",children:[" ",n," "]}),z(he,{flexGrow:1,children:z(H,{bold:t,inverse:t,wrap:"truncate",children:r.entry.title})}),pe(H,{dimColor:!0,children:[" ",i," ","change",i===1?"":"s"," "]})]})},"MigrationRow"),g3=V1(({checkedItems:e,focused:t,isDryRun:r,items:n,scrollOffset:i,selectedIndex:s,viewportHeight:o})=>{const a=t?"white":"gray",c=n.filter(p=>e.has(p.entry.id)).length,l=n.map((p,h)=>z(m3,{checked:e.has(p.entry.id),isSelected:h===s,item:p},p.entry.id)),u=n.length,d=u>o&&o>0;return pe(he,{borderColor:a,borderStyle:"single",flexDirection:"column",flexGrow:1,children:[pe(he,{flexShrink:0,gap:1,paddingX:1,children:[z(H,{bold:!0,inverse:!0,children:" MIGRATE "}),pe(H,{wrap:"truncate",children:[n.length," ","applicable"]}),c>0&&pe(H,{dimColor:!0,children:[" — ",c," selected"]}),r&&z(H,{color:"yellow",children:" (dry-run)"})]}),pe(he,{flexDirection:"row",flexGrow:1,overflow:"hidden",children:[z(he,{flexDirection:"column",flexGrow:1,overflow:"hidden",paddingLeft:1,children:z(he,{flexDirection:"column",marginTop:-i,children:l})}),d&&z(he,{flexShrink:0,marginLeft:1,marginRight:1,children:z(LS,{contentHeight:u,placement:"inset",scrollOffset:i,style:"block",viewportHeight:o})})]})]})},"MigrateListPanel");var y3=Object.defineProperty,v3=f((e,t)=>y3(e,"name",{value:t,configurable:!0}),"N$e");const b3=100,$3=40,w3=10,k3=v3(({autoExitSeconds:e=0,isDryRun:t,store:r})=>{const{exit:n}=yv(),{columns:i,rows:s}=RS(),o=FS(r.subscribe,r.getSnapshot),[a,c]=xs(!1),[l,u]=xs(!1),[d,p]=xs(!1),[h,y]=xs(0),$=Ws(null),S=Ws(null),k=Ws(null),b=o.items[o.selectedIndex]??null,m=Math.max(1,s-6),v=gv(Y=>{y(P=>Y>=P+m?Math.max(0,Y-m+1):Y<P?Math.max(0,Y):P)},[m]);if(mv(()=>{S.current?.scrollToTop()},[b?.entry.id]),vv((Y,P)=>{if(Y==="c"&&P.ctrl){n();return}if(!d){if(l){Y==="u"||P.return?(u(!1),r.startApply(),n(r.getCheckedItems())):P.escape||Y==="q"?u(!1):P.downArrow||Y==="j"?k.current?.scrollBy(1):(P.upArrow||Y==="k")&&k.current?.scrollBy(-1);return}if(a){P.escape||Y==="?"?c(!1):Y==="q"?(c(!1),p(!0)):P.downArrow||Y==="j"?$.current?.scrollBy(1):(P.upArrow||Y==="k")&&$.current?.scrollBy(-1);return}if(Y==="?"){c(!0);return}if(Y==="q"){p(!0);return}if(P.tab){r.setFocusedPanel(o.focusedPanel==="list"?"detail":"list");return}if(o.focusedPanel==="list"){if(P.downArrow||Y==="j"){const N=Math.min(o.selectedIndex+1,o.items.length-1);r.setSelectedIndex(N),v(N);return}if(P.upArrow||Y==="k"){const N=Math.max(o.selectedIndex-1,0);r.setSelectedIndex(N),v(N);return}if(P.pageDown){const N=Math.min(o.selectedIndex+10,o.items.length-1);r.setSelectedIndex(N),v(N);return}if(P.pageUp){const N=Math.max(o.selectedIndex-10,0);r.setSelectedIndex(N),v(N);return}if(P.home){r.setSelectedIndex(0),y(0);return}if(P.end){const N=o.items.length-1;r.setSelectedIndex(N),v(N);return}if(Y===" "||P.return){b&&r.toggleCheck(b.entry.id);return}if(Y==="a"){r.toggleAll();return}if(Y==="u"&&!t&&o.checkedItems.size>0){u(!0);return}P.rightArrow&&r.setFocusedPanel("detail");return}if(o.focusedPanel==="detail"){if(P.escape||P.leftArrow){r.setFocusedPanel("list");return}if(P.downArrow||Y==="j"){S.current?.scrollBy(1);return}if(P.upArrow||Y==="k"){S.current?.scrollBy(-1);return}if(P.pageDown){S.current?.scrollBy(10);return}if(P.pageUp){S.current?.scrollBy(-10);return}if(P.home){S.current?.scrollToTop();return}P.end&&S.current?.scrollToBottom()}}},{isActive:!0}),i<$3||s<w3)return z(he,{alignItems:"center",height:s,justifyContent:"center",width:i,children:pe(H,{color:"yellow",children:["Terminal too small (",i,"x",s,")"]})});const w=i>=b3,g=[pe(he,{gap:1,children:[z(H,{bold:!0,color:"white",children:"q"}),z(H,{dimColor:!0,children:"QUIT"})]},"q"),pe(he,{gap:1,children:[z(H,{bold:!0,color:"white",children:"?"}),z(H,{dimColor:!0,children:"HELP"})]},"?"),pe(he,{gap:1,children:[z(H,{bold:!0,color:"white",children:"↑↓"}),z(H,{dimColor:!0,children:"NAV"})]},"nav"),pe(he,{gap:1,children:[z(H,{bold:!0,color:"white",children:"Space"}),z(H,{dimColor:!0,children:"CHECK"})]},"sp"),pe(he,{gap:1,children:[z(H,{bold:!0,color:"white",children:"a"}),z(H,{dimColor:!0,children:"ALL"})]},"a")];!t&&o.checkedItems.size>0&&g.push(pe(he,{gap:1,children:[z(H,{bold:!0,color:"green",children:"u"}),z(H,{dimColor:!0,children:"APPLY"})]},"u")),g.push(pe(he,{gap:1,children:[z(H,{bold:!0,color:"white",children:"Tab"}),z(H,{dimColor:!0,children:"PANEL"})]},"tab"));const C=z(he,{borderBottom:!1,borderColor:"gray",borderLeft:!1,borderRight:!1,borderStyle:"single",flexShrink:0,children:z(he,{flexWrap:"wrap",gap:2,paddingX:1,children:g})}),D=pe(Zu,{footer:pe(H,{dimColor:!0,children:[z(H,{bold:!0,color:"white",children:"↑↓"})," scroll ",z(H,{bold:!0,color:"white",children:"?"}),"/",z(H,{bold:!0,color:"white",children:"Esc"})," close"]}),scrollRef:$,title:"KEYBOARD SHORTCUTS",visible:a,width:52,children:[pe(he,{flexDirection:"column",marginBottom:1,children:[z(H,{bold:!0,color:"white",children:"NAVIGATION"}),pe(H,{children:[z(H,{bold:!0,color:"white",children:" ↑/k"}),z(H,{dimColor:!0,children:" Move up"})]}),pe(H,{children:[z(H,{bold:!0,color:"white",children:" ↓/j"}),z(H,{dimColor:!0,children:" Move down"})]}),pe(H,{children:[z(H,{bold:!0,color:"white",children:" Tab"}),z(H,{dimColor:!0,children:" Switch panel"})]}),pe(H,{children:[z(H,{bold:!0,color:"white",children:" →/←"}),z(H,{dimColor:!0,children:" Focus detail/list"})]})]}),pe(he,{flexDirection:"column",marginBottom:1,children:[z(H,{bold:!0,color:"white",children:"SELECTION"}),pe(H,{children:[z(H,{bold:!0,color:"white",children:" Space"}),z(H,{dimColor:!0,children:" Toggle migration"})]}),pe(H,{children:[z(H,{bold:!0,color:"white",children:" a"}),z(H,{dimColor:!0,children:" Toggle all"})]})]}),pe(he,{flexDirection:"column",children:[z(H,{bold:!0,color:"white",children:"ACTIONS"}),!t&&pe(H,{children:[z(H,{bold:!0,color:"white",children:" u"}),z(H,{dimColor:!0,children:" Apply selected migrations"})]}),pe(H,{children:[z(H,{bold:!0,color:"white",children:" q"}),z(H,{dimColor:!0,children:" Quit"})]}),pe(H,{children:[z(H,{bold:!0,color:"white",children:" ?"}),z(H,{dimColor:!0,children:" Toggle help"})]})]})]}),A=r.getCheckedItems(),O=z(he,{alignItems:"center",flexDirection:"column",children:pe(H,{dimColor:!0,children:["Press ",z(H,{bold:!0,color:"white",children:"u"})," or ",z(H,{bold:!0,color:"white",children:"Enter"})," to confirm, ",z(H,{bold:!0,color:"white",children:"Esc"})," to cancel"]})}),G=z(Zu,{footer:O,scrollRef:k,title:`Apply ${String(A.length)} migration${A.length===1?"":"s"}?`,visible:l,width:70,children:A.map(Y=>pe(he,{gap:1,children:[pe(H,{children:[" ",Y.entry.title]}),pe(H,{dimColor:!0,children:["(",Y.preview.length," ","change",Y.preview.length===1?"":"s",")"]})]},Y.entry.id))}),W=z(g3,{checkedItems:o.checkedItems,focused:o.focusedPanel==="list",isDryRun:t,items:o.items,scrollOffset:h,selectedIndex:o.selectedIndex,viewportHeight:m}),ce=z(f3,{focused:o.focusedPanel==="detail",item:b,scrollRef:S});if(w){const Y=Math.floor(i*.55);return pe(he,{flexDirection:"column",height:s,width:i,children:[pe(he,{flexDirection:"row",flexGrow:1,children:[z(he,{flexGrow:1,children:W}),z(he,{width:Y,children:ce})]}),C,G,z(Ym,{autoExitSeconds:e||3,onCancel:f(()=>{p(!1)},"onCancel"),visible:d}),D]})}const te=Math.floor(s*.45);return pe(he,{flexDirection:"column",height:s,width:i,children:[z(he,{height:te,children:W}),z(he,{flexGrow:1,children:ce}),C,G,z(Ym,{autoExitSeconds:e||3,onCancel:f(()=>{p(!1)},"onCancel"),visible:d}),D]})},"VisMigrateApp");var S3=Object.defineProperty,mf=f((e,t)=>S3(e,"name",{value:t,configurable:!0}),"r$s");const D3=/\n([ \t]+)/,C3=mf(e=>{const{indent:t,lineEnding:r}=IS(e),n={};return t!==void 0&&(n.indent=t),(r==="lf"||r==="crlf")&&(n.lineEnding=r),n},"resolveEditorConfigDefaults"),vr=mf((e,t,r={})=>{const{defaultIndent:n=" ",useEditorconfig:i=!0}=r;if(i){const{indent:s}=C3(e);if(s!==void 0)return s}if(t!==void 0){const s=D3.exec(t);if(s?.[1]!==void 0)return s[1]}return n},"resolveIndentForFile"),gf=mf((e,t={})=>{const r=x(e)?J(e):void 0;return vr(e,r,t)},"resolveIndentForExistingFile");var E3=Object.defineProperty,A3=f((e,t)=>E3(e,"name",{value:t,configurable:!0}),"t$k");const W1=[".lintstagedrc.json",".lintstagedrc"],U1=[".lintstagedrc.yaml",".lintstagedrc.yml",".lintstagedrc.mjs","lint-staged.config.mjs",".lintstagedrc.cjs","lint-staged.config.cjs",".lintstagedrc.js","lint-staged.config.js",".lintstagedrc.ts","lint-staged.config.ts",".lintstagedrc.mts","lint-staged.config.mts",".lintstagedrc.cts","lint-staged.config.cts"],yf=[...W1,...U1],j3=[/^((?:[A-Z_][A-Z0-9_]*(?:=\S*)?\s+)*)(pnpm|pnpm exec|npx|yarn|yarn run|npm exec|npm run|bunx|bun run|bun x)\s+lint-staged\b/,/^((?:[A-Z_][A-Z0-9_]*(?:=\S*)?\s+)*)lint-staged\b/],G1=[".nano-staged.json",".nanostagedrc"],q1=[".nano-staged.mjs",".nano-staged.cjs",".nano-staged.js","nano-staged.config.mjs","nano-staged.config.cjs","nano-staged.config.js","nano-staged.config.mts","nano-staged.config.cts","nano-staged.config.ts"],vf=[...G1,...q1],O3=[/^((?:[A-Z_][A-Z0-9_]*(?:=\S*)?\s+)*)(pnpm|pnpm exec|npx|yarn|yarn run|npm exec|npm run|bunx|bun run|bun x)\s+nano-staged\b/,/^((?:[A-Z_][A-Z0-9_]*(?:=\S*)?\s+)*)nano-staged\b/],z1=["husky","lint-staged","nano-staged"],x3=/\(is-ci \|\| husky \|\| exit 0\)\s*&&\s*/g,P3=/\bhusky(?:\s+install)?\s*&&\s*/g,N3=/\s*&&\s*husky(?:\s+install)?/g,F3=/\s*\|\|\s*husky(?:\s+install)?/g,R3=[x3,P3,N3,F3],H1=A3(e=>{if(e==="husky"||e==="husky install")return;let t=e;for(const r of R3)t=t.replace(r,"");return t=t.trim(),t===e?e:t||void 0},"cleanHuskyFromScript");var B3=Object.defineProperty,Ra=f((e,t)=>B3(e,"name",{value:t,configurable:!0}),"o$p");const L3=/\/$/,T3=Ra(e=>{let t='"$0"';for(let r=0;r<e;r+=1)t=`"$(dirname ${t})"`;return t},"nestedDirname"),I3=Ra(e=>{const t=e.split("/").filter(r=>r!==""&&r!==".").length+2;return`#!/usr/bin/env sh
1005
1005
  { [ "$VIS_GIT_HOOKS" = "2" ]; } && set -x
1006
1006
  n=$(basename "$0")
1007
1007
  s=$(dirname "$(dirname "$0")")/$n
@@ -1095,7 +1095,7 @@ ${Fp(t,n)},
1095
1095
  `;return Me(o,a,"utf8"),r.info(`Created ${o} with ${i}`),!0},"insertPolicyIntoVisConfig"),g6=Fe((e,t)=>{const r=E(e,"package.json"),n={catalogStripped:!1,configRemoved:!1,dependencyRemoved:!1,removedScripts:[],scriptCount:0};if(!x(r))return n;const i=J(r),s=JSON.parse(i);let o=!1;s.syncpack&&(delete s.syncpack,o=!0,n.configRemoved=!0);for(const u of["dependencies","devDependencies"]){const d=s[u];d?.syncpack&&(delete d.syncpack,o=!0,n.dependencyRemoved=!0)}const a=s.workspaces;if(a&&typeof a=="object"&&!Array.isArray(a)){const u=a.catalog;u&&typeof u.syncpack=="string"&&(delete u.syncpack,o=!0,n.catalogStripped=!0);const d=a.catalogs;if(d&&typeof d=="object")for(const p of Object.values(d))p&&typeof p.syncpack=="string"&&(delete p.syncpack,o=!0,n.catalogStripped=!0)}const c=s.catalog;c&&typeof c.syncpack=="string"&&(delete c.syncpack,o=!0,n.catalogStripped=!0);const l=s.scripts;if(l){const u={};for(const[d,p]of Object.entries(l))typeof p=="string"&&zf.test(p)?(n.scriptCount+=1,n.removedScripts.push({name:d,value:p}),o=!0):u[d]=p;n.scriptCount>0&&(Object.keys(u).length===0?delete s.scripts:s.scripts=u)}if(o){const u=Oo(r,i,{useEditorconfig:t});Se(r),Me(r,`${JSON.stringify(s,void 0,u)}
1096
1096
  `,"utf8")}return n},"removeSyncpackFromPackageJson"),y6=[".husky/pre-commit",".vis-hooks/pre-commit",".git/hooks/pre-commit"],v6=[".github/workflows",".gitlab-ci.yml",".circleci/config.yml",".woodpecker.yml",".drone.yml"],Kw=Fe((e,t)=>{const r=[],n=Fe(i=>{const s=E(e,i);x(s)&&zf.test(J(s))&&(r.push(i),ve(t,`Update ${i} — replace \`syncpack\` invocation(s) with \`vis lint\` / \`vis sort-package-json\` as appropriate.`))},"scanFile");for(const i of v6){const s=E(e,i);if(x(s)){if(i===".github/workflows"){try{for(const o of Lt(s))(o.endsWith(".yml")||o.endsWith(".yaml"))&&n(`.github/workflows/${o}`)}catch{}continue}n(i)}}return r},"detectCiReferences"),Yw=Fe((e,t)=>{const r=[];for(const n of y6){const i=E(e,n);x(i)&&zf.test(J(i))&&(r.push(n),ve(t,`Update ${n} — replace \`syncpack\` invocation with \`vis lint\` / \`vis sort-package-json\` as appropriate.`))}return r},"detectHookReferences"),b6=Fe(e=>{const t=E(e,"pnpm-workspace.yaml");if(!x(t))return!1;let r;try{r=Zt(t)}catch{return!1}if(!r||typeof r!="object")return!1;let n=!1;const i=r.catalog;i&&typeof i.syncpack=="string"&&(delete i.syncpack,n=!0);const s=r.catalogs;if(s&&typeof s=="object")for(const o of Object.values(s))o&&typeof o.syncpack=="string"&&(delete o.syncpack,n=!0);return n&&(Se(t),Co(t,r)),n},"removeSyncpackFromPnpmCatalogs"),$6=Fe((e,t)=>{for(const r of[...Ww,...Gf]){const n=E(e,r);x(n)&&(Se(n,t),Bi(n),st(t,Np,"removedConfigCount"))}},"removeSyncpackConfigFiles"),w6=Fe((e,t,r,n,i)=>{const s=Gw(t,i);zw(t,i);const o=Yw(e,i);o.length>0&&!r.silent&&n.warn(`Found syncpack reference in ${String(o.length)} hook file(s) — see manualSteps for details.`);const a=Kw(e,i);a.length>0&&!r.silent&&n.warn(`Found syncpack reference in ${String(a.length)} CI file(s) — see manualSteps for details.`);const c=Hw(t,i);(s.length>0||Object.keys(c).length>0)&&m6(e,s,n,c);const{catalogStripped:l,configRemoved:u,dependencyRemoved:d,removedScripts:p,scriptCount:h}=g6(e,r.useEditorconfig);u&&!r.silent&&n.info("Removed `syncpack` block from package.json"),d&&st(i,Np,"removedPackageCount");const y=b6(e);if((l||y)&&!r.silent&&n.info("Stripped `syncpack` from catalog protocol entries."),h>0){st(i,Np,"rewrittenScriptCount",h);for(const{name:$,value:S}of p)ve(i,`Recreate script \`${$}\` (removed; was \`${S}\`). Replace \`syncpack\` with \`vis lint\` / \`vis sort-package-json\` as appropriate.`);r.silent||n.info(`Removed ${String(h)} script(s) referencing \`syncpack\`. Replace with \`vis lint\` / \`vis sort-package-json\` as appropriate.`)}$6(e,i)},"applyMigration"),by=Fe((e,t,r,n)=>{const i=Uw(e);if(!i)return t.silent||r.info("No syncpack configuration found — nothing to migrate."),!1;const s=c6(e);s&&(de(n,`Syncpack config ${s} is a TS/JS format vis migrate cannot load — executable config support is tracked in https://github.com/visulima/visulima/issues/622. Convert to .syncpackrc.json and re-run.`),ve(n,`Convert ${s} to .syncpackrc.json (or translate it directly into policy.customTypes.extraTypes in vis.config.ts) — see https://github.com/visulima/visulima/issues/622`),t.silent||r.warn(`Cannot read ${s} — manual migration required (https://github.com/visulima/visulima/issues/622).`)),l6(e)&&(de(n,"vis.config.ts already declares `policy.customTypes.extraTypes` — skipping syncpack customTypes merge to avoid duplicates."),t.silent||r.warn("vis.config.ts already has policy.customTypes.extraTypes — skipping merge"));const o=d6(e,i,n);if(!o)return!1;if(t.dryRun){const a=Gw(o,n),c=Hw(o,n);zw(o,n),Yw(e,n),Kw(e,n);const l=Jw(a,c);return t.silent||(l===""?r.info("[dry-run] No policy entries to merge — manualSteps will surface the rest."):(r.info(`[dry-run] Would merge ${l} into vis.config.ts:`),r.info(Fp(a,c)))),!0}return w6(e,o,t,r,n),!0},"migrateSyncpack");var k6=Object.defineProperty,Hf=f((e,t)=>k6(e,"name",{value:t,configurable:!0}),"c$6");const S6=Hf(e=>e.map(t=>{if(t.startsWith("^"))return{dependencies:!0,target:t.slice(1)};if(t.includes("#")){const[r,n]=t.split("#");return{projects:r,target:n}}return t}),"convertDependsOn"),D6=Hf((e,t,r)=>{const n=e.tasks??e.pipeline??{},i={};for(const[a,c]of Object.entries(n)){if(a.includes("#"))continue;const l={};c.persistent&&(l.persistent=!0),c.interactive&&(l.interactive=!0);const u={};c.cache===!1&&(u.cache=!1),c.dependsOn&&c.dependsOn.length>0&&(u.dependsOn=S6(c.dependsOn)),c.inputs&&c.inputs.length>0&&(u.inputs=c.inputs),c.outputs&&c.outputs.length>0&&(u.outputs=c.outputs),c.env&&c.env.length>0&&(u.env=c.env),c.passThroughEnv&&c.passThroughEnv.length>0&&(u.passThroughEnv=c.passThroughEnv),Object.keys(l).length>0&&(u.options=l),i[a]=u}const s={};Object.keys(i).length>0&&(s.targetDefaults=i);const o={};return e.globalDependencies&&e.globalDependencies.length>0&&(o.globalInputs=e.globalDependencies),e.globalEnv&&e.globalEnv.length>0&&(o.globalEnv=e.globalEnv),e.globalPassThroughEnv&&e.globalPassThroughEnv.length>0&&(o.globalPassThroughEnv=e.globalPassThroughEnv),Object.keys(o).length>0&&(s.taskRunnerOptions=o),["// Migrated from turbo.json by `vis migrate turborepo`.","// Review the generated targetDefaults and move project-specific tasks","// into each project's project.json.","",'import { defineConfig } from "@visulima/vis/config";',"",`export default defineConfig(${jf(s,E(t,"vis.config.ts"),r)});`,""].join(`
1097
1097
  `)},"renderVisConfig"),$y=Hf((e,t,r,n)=>{const i=sw(e,"turbo.json");if(!i){r.warn("No turbo.json found in workspace root — nothing to migrate."),n.warnings.push("No turbo.json at workspace root.");return}const s=D6(i,e,t.useEditorconfig);if(!Of(e,s,t,r,n))return;n.manualSteps.push("Review targetDefaults in vis.config.ts — project-specific tasks (turbo's project#task syntax) were skipped and should be moved into each project's project.json."),n.manualSteps.push("vis adds two task primitives turbo doesn't have: `when: { os, env, branch, ci, not.* }` for conditional execution and `always: true` for finally/teardown tasks that run even when upstream fails. See docs/guides/conditional-and-finally-tasks.mdx.");const o=i.tasks??i.pipeline??{};Object.values(o).some(a=>a.outputLogs!==void 0)&&n.warnings.push("`outputLogs` was found on one or more tasks but vis has no equivalent setting — review and remove."),i.remoteCache?.enabled&&n.manualSteps.push("turbo remote cache detected. vis speaks the same HTTP protocol — set taskRunnerOptions.remoteCache { url, token, teamId } in vis.config.ts, or keep your TURBO_API / TURBO_TOKEN / TURBO_TEAM env vars (vis honours them as fallbacks).")},"migrateTurborepo");var C6=Object.defineProperty,oe=f((e,t)=>C6(e,"name",{value:t,configurable:!0}),"n$d");const E6=/\b(?:husky|lint-staged|nano-staged)\b/,A6=oe(e=>{const t=E(e,"package.json");if(x(t))try{return JSON.parse(J(t))}catch{return}},"readPackageJson"),j6=oe((e,t)=>{const r=A6(e);if(!r)return!1;const n={...r.dependencies,...r.devDependencies};for(const s of z1)if(n[s])return!0;if(r.scripts){for(const s of Object.values(r.scripts))if(typeof s=="string"&&E6.test(s))return!0}const{overrides:i}=t;return i?Object.keys(i).length>0:!1},"detectDepsNeedsMigration"),O6=oe(e=>x(E(e,"turbo.json")),"detectTurborepo"),x6=oe(e=>x(E(e,"nx.json")),"detectNx"),P6=oe(e=>x(E(e,".moon")),"detectMoon"),Ut=oe(()=>{const e=[];return{lines:e,logger:{info:oe(t=>{e.push(t)},"info"),warn:oe(t=>{e.push(`⚠ ${t}`)},"warn")}}},"createCapturingLogger"),N6=[{apply:oe(({packageManager:e,root:t,visConfig:r},n,i)=>{lg(t,e,r,{dryRun:!1},i,n)},"apply"),description:"Remove husky/lint-staged/nano-staged from package.json and rewrite scripts to `vis staged`.",detect:oe(({root:e,visConfig:t})=>j6(e,t),"detect"),id:"deps",probe:oe(({packageManager:e,root:t,visConfig:r})=>{const{lines:n,logger:i}=Ut(),s=Nt();return lg(t,e,r,{dryRun:!0},i,s),n},"probe"),title:"Dependencies & scripts"},{apply:oe(({root:e},t,r)=>{mg(e,{dryRun:!1},r,t)},"apply"),description:"Inline lint-staged configuration into vis.config.ts.",detect:oe(({root:e})=>!!nw(e),"detect"),id:"lint-staged",probe:oe(({root:e})=>{const{lines:t,logger:r}=Ut(),n=Nt();return mg(e,{dryRun:!0},r,n),t},"probe"),title:"lint-staged"},{apply:oe(({root:e},t,r)=>{bg(e,{dryRun:!1},r,t)},"apply"),description:"Inline nano-staged configuration into vis.config.ts.",detect:oe(({root:e})=>!!ow(e),"detect"),id:"nano-staged",probe:oe(({root:e})=>{const{lines:t,logger:r}=Ut(),n=Nt();return bg(e,{dryRun:!0},r,n),t},"probe"),title:"nano-staged"},{apply:oe(({root:e},t,r)=>{$y(e,{dryRun:!1},r,t)},"apply"),description:"Translate turbo.json tasks into vis.config.ts.",detect:oe(({root:e})=>O6(e),"detect"),id:"turborepo",probe:oe(({root:e})=>{const{lines:t,logger:r}=Ut(),n=Nt();return $y(e,{dryRun:!0},r,n),t},"probe"),title:"Turborepo"},{apply:oe(({root:e},t,r)=>{wg(e,{dryRun:!1},r,t)},"apply"),description:"Translate nx.json targets into vis.config.ts.",detect:oe(({root:e})=>x6(e),"detect"),id:"nx",probe:oe(({root:e})=>{const{lines:t,logger:r}=Ut(),n=Nt();return wg(e,{dryRun:!0},r,n),t},"probe"),title:"Nx"},{apply:oe(({root:e},t,r)=>{gg(e,{copyTemplates:!1,dryRun:!1},r,t)},"apply"),description:"Translate .moon/tasks.yml into vis.config.ts.",detect:oe(({root:e})=>P6(e),"detect"),id:"moon",probe:oe(({root:e})=>{const{lines:t,logger:r}=Ut(),n=Nt();return gg(e,{copyTemplates:!1,dryRun:!0},r,n),t},"probe"),title:"Moon"},{apply:oe(({root:e},t,r)=>{ug(e,{dryRun:!1},r,t)},"apply"),description:"Convert gitleaks config/baseline/hooks to `vis secrets`.",detect:oe(({root:e})=>!!(Rc(e)??Df(e)??Cf(e)),"detect"),id:"gitleaks",probe:oe(({root:e})=>{const{lines:t,logger:r}=Ut(),n=Nt();return ug(e,{dryRun:!0},r,n),t},"probe"),title:"Gitleaks"},{apply:oe(({root:e},t,r)=>{dg(e,{dryRun:!1},r,t)},"apply"),description:"Convert Kingfisher baseline/rules/hooks to `vis secrets`.",detect:oe(({root:e})=>!!(Ef(e)??Bc(e)),"detect"),id:"kingfisher",probe:oe(({root:e})=>{const{lines:t,logger:r}=Ut(),n=Nt();return dg(e,{dryRun:!0},r,n),t},"probe"),title:"Kingfisher"},{apply:oe(({root:e},t,r)=>{kg(e,{dryRun:!1},r,t)},"apply"),description:"Replace secretlint config/hooks with `vis secrets`.",detect:oe(({root:e})=>!!(uw(e)??pw(e)),"detect"),id:"secretlint",probe:oe(({root:e})=>{const{lines:t,logger:r}=Ut(),n=Nt();return kg(e,{dryRun:!0},r,n),t},"probe"),title:"Secretlint"},{apply:oe(({root:e},t,r)=>{by(e,{dryRun:!1},r,t)},"apply"),description:"Translate syncpack customTypes into policy.customTypes.extraTypes and strip the syncpack dep/scripts.",detect:oe(({root:e})=>!!Uw(e),"detect"),id:"syncpack",probe:oe(({root:e})=>{const{lines:t,logger:r}=Ut(),n=Nt();return by(e,{dryRun:!0},r,n),t},"probe"),title:"Syncpack"},{apply:oe(({root:e},t,r)=>{Sg(e,{dryRun:!1},r,t)},"apply"),description:"Strip sherif config/dep/scripts and surface ignore-rules as a positive `vis lint --<rule>` command.",detect:oe(({root:e})=>!!dw(e)||fw(e),"detect"),id:"sherif",probe:oe(({root:e})=>{const{lines:t,logger:r}=Ut(),n=Nt();return Sg(e,{dryRun:!0},r,n),t},"probe"),title:"Sherif"}],F6=oe(e=>N6.filter(t=>t.detect(e)),"getApplicableMigrations"),R6=oe((e,t)=>({packageManager:J1(e),root:e,visConfig:t}),"buildProbeContext");var B6=Object.defineProperty,L6=f((e,t)=>B6(e,"name",{value:t,configurable:!0}),"s$9");const T6=L6((e,t)=>{t.info("── Migration Summary ──");const r=[["Staged configs merged into vis.config.ts",e.mergedStagedConfigCount],["Lint-staged configs inlined",e.inlinedLintStagedConfigCount],["Config files removed",e.removedConfigCount],["Packages removed",e.removedPackageCount],["Scripts rewritten",e.rewrittenScriptCount]];for(const[i,s]of r)s>0&&t.info(` ${i}: ${String(s)}`);e.gitHooksConfigured&&t.info(" Pre-commit hook updated to use vis staged");const n=Object.entries(e.perMigration);if(n.length>0){t.info(""),t.info("By migration:");for(const[i,s]of n){const o=[];s.removedConfigCount>0&&o.push(`${String(s.removedConfigCount)} config(s) removed`),s.removedPackageCount>0&&o.push(`${String(s.removedPackageCount)} package(s) removed`),s.rewrittenScriptCount>0&&o.push(`${String(s.rewrittenScriptCount)} script(s) rewritten`),t.info(` ${i}: ${o.join(", ")||"no changes"}`)}}if(e.backupsCreated.length>0&&(t.info(""),t.info(`Created ${String(e.backupsCreated.length)} .bak file(s) for rollback. Remove them once you're happy.`)),e.warnings.length>0){t.info(""),t.warn("Warnings:");for(const i of e.warnings)t.warn(` - ${i}`)}if(e.manualSteps.length>0){t.info(""),t.info("Manual steps required:");for(const i of e.manualSteps)t.info(` - ${i}`)}},"printSummary");var I6=Object.defineProperty,Xw=f((e,t)=>I6(e,"name",{value:t,configurable:!0}),"c$5");const _6=Xw((e,t)=>{if(e.length===0){t.info("No applicable migrations detected in this workspace.");return}t.info(`Detected migrations (non-interactive preview):
1098
- `);for(const r of e){t.info(` • ${r.entry.title} — ${r.entry.description}`);for(const n of r.preview)t.info(` ${n}`);t.info("")}t.info("Run a specific migration with `vis migrate <name>` (e.g. `vis migrate deps`).")},"renderFallbackTable"),M6=Xw(async e=>{const t=e.workspaceRoot??process.cwd(),r=e.visConfig??{},n=R6(t,r),i=F6(n).map(d=>({entry:d,preview:d.probe(n)}));if(!(process.stdout.isTTY&&!Br)){_6(i,e.logger);return}if(i.length===0){e.logger.info("No applicable migrations detected in this workspace.");return}const s=new c3(i),o=r.tui?.autoExit??!1,a=o===!0?3:typeof o=="number"?o:0,c=await NS(bi.createElement(k3,{autoExitSeconds:a,isDryRun:!1,store:s}),{alternateScreen:!0,exitOnCtrlC:!1,interactive:!0,patchConsole:!0}).waitUntilExit();if(!c||c.length===0){e.logger.info("No migrations selected — exiting.");return}const l=Nt(),u=[];for(const d of c)try{e.logger.info(`── Applying ${d.entry.title} ──`),d.entry.apply(n,l,e.logger),e.logger.info("")}catch(p){u.push({entry:d.entry,error:p}),e.logger.warn(`Failed to apply ${d.entry.title}: ${p.message}`)}T6(l,e.logger),u.length>0&&(e.logger.warn(""),e.logger.warn(`${String(u.length)} migration(s) failed — see messages above.`),process.exitCode=1)},"runMigrateInteractive");var V6=Object.defineProperty,W6=f((e,t)=>V6(e,"name",{value:t,configurable:!0}),"e$h");const U6={description:"Analyze and optimize dependencies using e18e replacements and @socketregistry overrides",examples:[["vis optimize","Interactive TUI to select and apply optimizations"],["vis optimize --dry-run","Preview available optimizations"],["vis optimize --pin","Pin Socket.dev overrides to exact versions"],["vis optimize --prod","Only optimize production dependencies"]],group:"Workspace",loader:W6(()=>import("./handler42.js").then(e=>e.h),"loader"),name:"optimize",options:[{alias:"d",defaultValue:!1,description:"Preview available optimizations without applying",name:"dry-run",type:Boolean},{defaultValue:!1,description:"Pin Socket.dev overrides to exact versions",name:"pin",type:Boolean},{defaultValue:!1,description:"Only optimize production dependencies",name:"prod",type:Boolean},{defaultValue:!1,description:"Skip running install after applying overrides",name:"no-install",type:Boolean},{description:"Output format: table or json (default: table)",name:"format",type:String}]};var G6=Object.defineProperty,q6=f((e,t)=>G6(e,"name",{value:t,configurable:!0}),"e$g");const z6={argument:{description:"Subcommand and arguments (e.g., cache dir, publish --dry-run, list --depth 0)",name:"args",type:String},description:"Package manager utilities (cache, publish, audit, list, config, etc.)",examples:[["vis pm cache dir","Show cache directory"],["vis pm cache clean","Clean cache"],["vis pm publish --dry-run","Preview publishing"],["vis pm list --depth 0","List direct dependencies"],["vis pm audit","Run security audit"],["vis pm whoami","Show logged-in user"]],group:"System",loader:q6(()=>import("./handler17.js"),"loader"),name:"pm"};var H6=Object.defineProperty,J6=f((e,t)=>H6(e,"name",{value:t,configurable:!0}),"e$f");const K6={alias:["rm","un","uninstall"],argument:{description:"Packages to remove",name:"packages",type:String},description:"Remove packages using the detected package manager",examples:[["vis remove lodash","Remove a package"],["vis rm old-package","Remove using alias"],["vis remove --filter app react","Remove from specific workspace"],["vis remove -g typescript","Remove global package"]],group:"Dependencies",loader:J6(()=>import("./handler18.js"),"loader"),name:"remove",options:[{alias:"D",defaultValue:!1,description:"Remove from devDependencies",name:"save-dev",type:Boolean},{alias:"g",defaultValue:!1,description:"Remove global package",name:"global",type:Boolean},{alias:"r",defaultValue:!1,description:"Remove from all workspace packages",name:"recursive",type:Boolean},{alias:"w",defaultValue:!1,description:"Remove from workspace root",name:"workspace-root",type:Boolean},{alias:"F",description:"Filter by workspace package name",multiple:!0,name:"filter",type:String}]},Y6={description:"Replay a previous task run from .vis/runs/ — show task results without re-executing",examples:[["vis replay","Show the most recent run summary"],["vis replay --run 2026-04-28T12-34-56_ab12","Inspect a specific historical run"],["vis replay --list","List every recorded run, newest first"],["vis replay --task @myorg/app:build","Focus on one task within the loaded run"],["vis replay --failed","Filter to only failed tasks"],["vis replay --format=json","Machine-readable output for CI"]],group:"Workspace",loader:Ve(()=>import("./handler19.js"),"replayExecute"),name:"replay",options:[{description:"Run id to replay (defaults to the most recent run)",name:"run",type:String},{defaultValue:!1,description:"List every available run instead of replaying one",name:"list",type:Boolean},{description:"Filter the replay to a single task id (e.g. @my/app:build)",name:"task",type:String},{defaultValue:!1,description:"Filter the replay to failed tasks only",name:"failed",type:Boolean},{description:"Output format: table or json (default: table)",name:"format",type:String}]};var X6=Object.defineProperty,Q6=f((e,t)=>X6(e,"name",{value:t,configurable:!0}),"e$e");const Z6={argument:{description:"The target to run (e.g., build, test, lint)",name:"target",type:String},description:"Run a target across workspace projects",examples:[["vis run","List all available targets"],["vis run build","Run build on all projects"],["vis run :build","Run build on all projects (moon-style)"],["vis run ~:test","Run test on the project closest to the current directory"],['vis run "#frontend:build"',"Run build on projects tagged 'frontend'"],['vis run :build --query "language=typescript"',"Filter by project metadata"],["vis run test --affected","Run test only on git-changed projects"],["vis run build --fail-fast","Stop on first failure"],["vis run build --dry-run","Show execution plan without running"],["vis run destroy --reverse","Run leaves-first (teardown order, e.g. CDK/Pulumi destroy)"]],group:"Run & Execute",loader:Q6(()=>import("./handler47.js"),"loader"),name:"run",options:[{alias:"p",description:"Comma-separated list of projects to run",name:"projects",type:String},{defaultValue:!1,description:"Skip the toolchain pre-flight (no auto-install for any pinned tool: node / pnpm / yarn / npm / bun / deno / go / python / ruby / rust)",name:"skip-toolchain",type:Boolean},{description:"Detect lockfile/node_modules drift before running (warns in TTY, fails in CI). Use --no-preflight to disable.",name:"preflight",type:Boolean},{defaultValue:3,description:"Maximum number of parallel tasks (falls back to VIS_RUN_CONCURRENCY_LIMIT env var, then 3)",name:"parallel",type:Number},{defaultValue:!0,description:"Enable caching (use --no-cache to disable)",name:"cache",type:Boolean},{description:"Comma-separated selectors of tasks to bypass cache for (e.g. 'app:test', ':e2e', '#flaky:lint'). Other tasks in the run still cache normally. --no-cache wins when both are set.",name:"skip-cache",type:String},{description:"Custom cache directory",name:"cache-dir",type:String},{description:"Remote cache mode: read | write | readwrite (defaults to readwrite when remoteCache is configured)",name:"cache-mode",type:String},{description:"Remote cache wire backend: http (Turborepo-compatible) or reapi (Bazel Remote Execution API gRPC)",name:"cache-backend",type:String},{defaultValue:!1,description:"Show what would run without executing",name:"dry-run",type:Boolean},{defaultValue:!1,description:"Generate a run summary after execution",name:"summarize",type:Boolean},{description:'Partition tasks for distributed CI (e.g., "1/4" for first of four runners). Falls back to VIS_PARTITION env var.',name:"partition",type:String},{defaultValue:!1,description:"Skip project constraint validation",name:"skip-constraints",type:Boolean},{description:"Filter matched projects by a query (e.g. 'language=typescript && tag=lib')",name:"query",type:String},{defaultValue:!1,description:"Only run on projects affected by git changes (shorthand for vis affected)",name:"affected",type:Boolean},{defaultValue:!1,description:"Rerun affected tasks on file change. Ctrl+C to exit.",name:"watch",type:Boolean},{defaultValue:!1,description:"Stop all tasks on first failure",name:"fail-fast",type:Boolean},{defaultValue:!1,description:"Run the dependency graph in reverse (leaves first, then their dependents). Useful for teardown targets like `destroy`/`undeploy` where dependents must run before the things they depend on.",name:"reverse",type:Boolean},{description:"Output mode: interleaved (pass-through), labeled (prefix each line with [pkg#task]), or grouped (vite-task-style block)",name:"log",type:String},{description:"Output style: normal (print every task) or quiet (skip output for successful/cached tasks; failed tasks still print in CI mode, and remain in TUI scrollback in interactive mode). Per-target options.outputStyle overrides this.",name:"output-style",type:String},{defaultValue:!1,description:"Run every task through a pseudo-terminal so color-aware tools render as if attached to a TTY (disables caching)",name:"pty",type:Boolean},{description:"Global retry budget: cap on total task retries across the run (per-target retryCount is still honored up to the budget)",name:"retry-budget",type:Number},{description:"Write a Chrome Tracing JSON profile of the run to this path (open in chrome://tracing or Perfetto)",name:"profile",type:String},{defaultValue:!1,description:"Render the most-recent run's saved summary (from .vis/last-summary.json) and exit without executing any tasks",name:"last-details",type:Boolean},{defaultValue:!0,description:"Show flaky task report on failure (use --no-flaky to suppress)",name:"flaky",type:Boolean},{defaultValue:!1,description:"Treat any task that needed at least one retry as a run failure (exit non-zero), even when retries eventually succeeded. Use in CI to surface flakes that retries would otherwise mask.",name:"fail-on-retry",type:Boolean},{description:"Fail a task if its command references an env var that is unset (no silent empty-string substitution). Use --no-strict-env to disable when set in config.",name:"strict-env",type:Boolean},{description:"Comma-separated tags this runner advertises (e.g. 'gpu,slow'). Tasks declaring `options.runnerTags` only run when at least one tag overlaps. Untagged tasks always run. Falls back to VIS_RUNNER_TAGS env var.",name:"runner-tags",type:String},{description:"Auto-start service deps. One of: auto | ephemeral | persistent | off. Defaults to `auto` in TTY, `off` in CI.",name:"services",type:String},{defaultValue:!1,description:"Stop services this run auto-started in registry mode when the run exits (clean, q, or Ctrl+C). Ephemeral services already die with the run.",name:"stop-services",type:Boolean}]};var e5=Object.defineProperty,t5=f((e,t)=>e5(e,"name",{value:t,configurable:!0}),"e$d");const r5={description:"Generate a CycloneDX 1.6 Software Bill of Materials for the workspace",examples:[["vis sbom","Write the full-workspace SBOM to sbom.cdx.json"],["vis sbom --focus=my-app","Scope the SBOM to my-app's transitive closure"],["vis sbom --focus=my-app,other","Focus multiple projects"],["vis sbom --format=xml --output=sbom.cdx.xml","Emit XML instead of JSON"],["vis sbom --include-dev","Include devDependencies (default: production only)"],["vis sbom --output=-","Write to stdout"]],group:"Security & Health",loader:t5(()=>import("./handler40.js"),"loader"),name:"sbom",options:[{description:"Project name(s) to focus on — comma-separated for multiple",name:"focus",type:String},{defaultValue:"json",description:"Output format: json (default) or xml",name:"format",type:String},{description:"Output path (use '-' for stdout; default: sbom.cdx.json)",name:"output",type:String},{defaultValue:!1,description:"Include devDependencies (default: production only)",name:"include-dev",type:Boolean}]};var n5=Object.defineProperty,i5=f((e,t)=>n5(e,"name",{value:t,configurable:!0}),"e$c");const s5={argument:{description:"One or more paths to scan (defaults to workspace root)",name:"paths",type:String},description:"Scan a repository for hardcoded secrets and credentials",examples:[["vis secrets","Scan the workspace with grouped, colourised output"],["vis secrets --staged","Scan only files staged for the current commit (pre-commit hooks)"],["vis secrets --since main","Scan only files changed since the `main` branch"],["vis secrets --affected","Scan only projects affected by the current branch"],["vis secrets --init","Write an initial baseline from current findings"],["vis secrets --list-rules","Print all bundled detection rules"],["vis secrets --list-validators","Print non-HTTP validator types in the ruleset + install hints for each"],["vis secrets --exclude-rule generic-api-key --exclude-rule aws-access-token","Drop noisy rules"],["vis secrets --include-rule stripe-access-token","Check a single rule"],["vis secrets --enable-rule tag:preset:weak-passwords","Enable an opt-in rule group additively (defaults still fire)"],["vis secrets --include-rule tag:preset:password-manager","Restrict output to one opt-in group only"],["vis secrets --min-confidence high","Drop rules without a high confidence label (CI-friendly precision filter)"],["vis secrets --validate --only-verified","Live-verify each finding against its provider (one HTTP call per finding)"],["vis secrets --exclude 'dist/**' --exclude-from .secretsignore","Extra gitignore-syntax exclusions for the walker"],["vis secrets --config ./leaks.json --no-extend-bundled","Use only the supplied config, skip the bundled ruleset"],["vis secrets --concurrency 4","Cap the rayon thread pool (0 / omit = auto)"],["vis secrets --baseline .secrets-baseline.json","Suppress known findings; print diff vs. baseline"],["vis secrets --update-baseline","Merge current findings into the baseline (use --replace-baseline to overwrite)"],["vis secrets --format sarif > report.sarif","SARIF output for GitHub code-scanning"]],group:"Security",loader:i5(()=>import("./handler48.js"),"loader"),name:"secrets",options:[{description:"Path to a JSON config (gitleaks-compatible shape). Defaults to the bundled ruleset.",name:"config",type:String},{description:"Drop rules below this author-declared confidence: low (default), medium, high. Rules without a declared confidence (every gitleaks rule) are treated as low, so --min-confidence medium or higher drops them along with explicit low-confidence rules.",name:"min-confidence",type:String},{defaultValue:!1,description:"Live-verify each finding against its provider (one HTTP call per finding, max 8 concurrent). Only supports Kingfisher-style HTTP validators with StatusMatch / WordMatch response matchers; other types (gRPC, multi-step, checksum) mark the finding as validation=skipped. WARNING: sends candidate secrets to the provider — some providers alert their security team on failed auth attempts.",name:"validate",type:Boolean},{defaultValue:!1,description:"With --validate, drop every finding whose validation is not 'verified'. Useful for CI gating.",name:"only-verified",type:Boolean},{defaultValue:!1,description:"With --config, do not merge on top of the bundled ruleset — replace it.",name:"no-extend-bundled",type:Boolean},{defaultValue:"text",description:"Output format: text (default), json, sarif",name:"format",type:String},{description:"Path to a baseline JSON of previously-triaged findings",name:"baseline",type:String},{defaultValue:!1,description:"Scan only files staged for commit",name:"staged",type:Boolean},{description:"Scan only files changed since <ref> (e.g. main, origin/HEAD)",name:"since",type:String},{defaultValue:!1,description:"Scan only projects affected by the current branch",name:"affected",type:Boolean},{description:"Enable an opt-in rule or tag without restricting output — additive (e.g. tag:preset:weak-passwords, tag:preset:password-manager). Repeatable.",multiple:!0,name:"enable-rule",type:String},{description:"Rule id or tag:<name> selector — whitelist, only matching findings are emitted. Implies enablement. Repeatable.",multiple:!0,name:"include-rule",type:String},{description:"Rule id or tag:<name> selector — drop matching findings. Repeatable.",multiple:!0,name:"exclude-rule",type:String},{description:"Gitignore-syntax pattern to exclude from the walk (repeatable)",multiple:!0,name:"exclude",type:String},{description:"Path to a gitignore-shaped file the walker should honor (repeatable)",multiple:!0,name:"exclude-from",type:String},{defaultValue:!1,description:"Mask secret values in output",name:"redact",type:Boolean},{defaultValue:!1,description:"Scan dotfiles",name:"include-hidden",type:Boolean},{defaultValue:!1,description:"Do not respect .gitignore",name:"no-gitignore",type:Boolean},{description:"Skip files larger than this (bytes). Default: 10 MiB",name:"max-size",type:Number},{description:"Rayon worker threads (0 / omit = auto)",name:"concurrency",type:Number},{defaultValue:!1,description:"Merge current findings into the baseline and exit 0",name:"update-baseline",type:Boolean},{defaultValue:!1,description:"With --update-baseline, replace rather than merge",name:"replace-baseline",type:Boolean},{defaultValue:!1,description:"Scaffold a baseline from current findings",name:"init",type:Boolean},{defaultValue:!1,description:"With --init, preview the baseline without writing files",name:"dry-run",type:Boolean},{defaultValue:!1,description:"Print all bundled detection rules and exit",name:"list-rules",type:Boolean},{defaultValue:!1,description:"Print non-HTTP validator types referenced by the current ruleset, with install hints for their optional peer dependencies.",name:"list-validators",type:Boolean},{defaultValue:!1,description:"Suppress all progress output (only emit findings)",name:"quiet",type:Boolean},{defaultValue:!1,description:"Print diagnostic info (skipped rules, etc.)",name:"verbose",type:Boolean}]},Gc={description:"Target id, e.g. @my/api:db",name:"targetId",type:String},o5={description:"Output format: table or json (default: table)",name:"format",type:String},a5={argument:Gc,commandPath:["service"],description:"Start a service target detached so it survives across `vis run` invocations",examples:[["vis service start @my/api:db","Boot the db target as a long-lived service"],["vis service start @my/api:db --timeout=60000","Override readiness timeout"],["vis service start @my/api:db --no-readiness","Skip the readiness probe"]],group:"Workspace",loader:Ve(()=>import("./handler20.js"),"serviceStartExecute"),name:"start",options:[{description:"Readiness probe timeout in milliseconds",name:"timeout",type:Number},{defaultValue:!1,description:"Skip the readiness probe",name:"no-readiness",type:Boolean}]},c5={argument:{description:"Target id to stop, or omit when using --all",name:"targetId",required:!1,type:String},commandPath:["service"],description:"Stop a running service",examples:[["vis service stop @my/api:db","Stop the db service"],["vis service stop --all","Stop every running service in this workspace"]],group:"Workspace",loader:Ve(()=>import("./handler20.js"),"serviceStopExecute"),name:"stop",options:[{defaultValue:!1,description:"Stop every service registered for this workspace",name:"all",type:Boolean},{description:"Override the SIGTERM→SIGKILL grace period in milliseconds",name:"grace-ms",type:Number}]},l5={commandPath:["service"],description:"List services registered for this workspace",examples:[["vis service list","Print running services"],["vis service list --format=json","Machine-readable list"]],group:"Workspace",loader:Ve(()=>import("./handler20.js"),"serviceListExecute"),name:"list",options:[o5]},u5={argument:Gc,commandPath:["service"],description:"Re-run the readiness probe and report a service's health",examples:[["vis service status @my/api:db","Check whether the db service is reachable"]],group:"Workspace",loader:Ve(()=>import("./handler20.js"),"serviceStatusExecute"),name:"status",options:[{description:"Probe timeout in milliseconds",name:"timeout",type:Number}]},p5={argument:Gc,commandPath:["service"],description:"Stop and re-start a running service",examples:[["vis service restart @my/api:db","Recycle the db service"],["vis service restart @my/api:db --no-readiness","Recycle and skip the readiness probe"]],group:"Workspace",loader:Ve(()=>import("./handler20.js"),"serviceRestartExecute"),name:"restart",options:[{description:"Readiness probe timeout in milliseconds",name:"timeout",type:Number},{description:"Override the SIGTERM→SIGKILL grace period in milliseconds",name:"grace-ms",type:Number},{defaultValue:!1,description:"Skip the readiness probe after restart",name:"no-readiness",type:Boolean}]},d5={argument:Gc,commandPath:["service"],description:"Print or tail a service's captured stdout/stderr",examples:[["vis service logs @my/api:db","Print the captured log"],["vis service logs @my/api:db -f","Tail the log (Ctrl-C to exit)"]],group:"Workspace",loader:Ve(()=>import("./handler20.js"),"serviceLogsExecute"),name:"logs",options:[{alias:"f",defaultValue:!1,description:"Follow the log file (like `tail -f`)",name:"follow",type:Boolean}]},f5=[a5,c5,l5,u5,p5,d5];var h5=Object.defineProperty,m5=f((e,t)=>h5(e,"name",{value:t,configurable:!0}),"e$b");const g5={description:"Sort package.json files across the workspace using the sort-package-json Rust crate",examples:[["vis sort-package-json","Sort all package.json files in the workspace"],["vis sort-package-json --check","Check if files are already sorted (exit 1 if not)"],["vis sort-package-json --sort-scripts","Also sort the scripts field alphabetically"],["vis sort-package-json --indent 4","Force 4-space indentation (overrides per-file detection)"],["vis sort-package-json --indent tab","Force tab indentation"],["vis sort-package-json --ignore '**/fixtures/**'","Skip files matching one or more glob patterns"],["vis sort-package-json --sort-order name,version,license","Pin a custom prefix order before the default field order"],["vis sort-package-json --unsorted dependencies,devDependencies","Preserve original key order for the listed top-level sections"],["vis sort-package-json --no-final-newline","Do not append a trailing newline"],["vis sort-package-json --line-ending crlf","Force CRLF line endings (default: auto-detect per file)"]],group:"Workspace",loader:m5(()=>import("./handler38.js"),"loader"),name:"sort-package-json",options:[{alias:"c",defaultValue:!1,description:"Check if package.json files are sorted without writing (exits 1 if unsorted)",name:"check",type:Boolean},{defaultValue:!1,description:"Also sort the scripts field alphabetically",name:"sort-scripts",type:Boolean},{description:"Indent override: a number of spaces, the literal `tab`, or a literal whitespace string. When unset, the original file's indent is preserved.",name:"indent",type:String},{description:"Glob pattern of files to skip (basename match, or path-relative when the pattern contains `/`). Repeatable.",multiple:!0,name:"ignore",type:String},{description:"Comma-separated list of top-level keys to place first, before the default field order. Repeatable.",multiple:!0,name:"sort-order",type:String},{description:"Comma-separated list of top-level sections whose key order should be preserved (e.g. dependencies,devDependencies). Repeatable.",multiple:!0,name:"unsorted",type:String},{defaultValue:!1,description:"Do not append a trailing newline to the output (default: append one).",name:"no-final-newline",type:Boolean},{defaultValue:"auto",description:"Line ending to write: auto (per-file detection, default), lf, or crlf.",name:"line-ending",type:String},{description:"Disable collapsing `bugs: { url }` to the bare string form (default: enabled).",name:"no-format-bugs",type:Boolean},{description:"Disable collapsing `repository: { type, url }` to the GitHub `owner/repo` shorthand (default: enabled).",name:"no-format-repository",type:Boolean},{description:"Disable canonical sorting of `exports` condition keys (default: enabled).",name:"no-sort-exports",type:Boolean},{description:"Disable .editorconfig discovery for indent / line-ending defaults (default: enabled).",name:"no-editorconfig",type:Boolean}]};var y5=Object.defineProperty,v5=f((e,t)=>y5(e,"name",{value:t,configurable:!0}),"e$a");const b5={description:"Run linters on staged files using config from vis.config.ts",examples:[["vis staged","Run staged linters"],["vis staged --verbose","Run with verbose output"],["vis staged --no-stash","Run without backup stash"],["vis staged --diff HEAD~1","Run against a specific diff"]],group:"Run & Execute",loader:v5(()=>import("./handler46.js"),"loader"),name:"staged",options:[{defaultValue:!1,description:"Allow empty commits when tasks revert all staged changes",name:"allow-empty",type:Boolean},{defaultValue:!1,description:"Automatically stage new files that tasks create during the run",name:"auto-stage",type:Boolean},{description:"Number of concurrent tasks or false for serial",name:"concurrent",type:String},{defaultValue:!1,description:"Run all tasks to completion even if one fails",name:"continue-on-error",type:Boolean},{description:"Working directory to run all tasks in",name:"cwd",type:String},{defaultValue:!1,description:"Enable debug output",name:"debug",type:Boolean},{description:"Override the default --staged flag of git diff",name:"diff",type:String},{description:"Override the default diff-filter",name:"diff-filter",type:String},{defaultValue:!1,description:"Fail with exit code 1 when tasks modify tracked files",name:"fail-on-changes",type:Boolean},{defaultValue:!1,description:"Kill in-flight tasks with SIGKILL on fast-fail instead of the default SIGTERM",name:"force-kill",type:Boolean},{defaultValue:!1,description:"Hide unstaged changes from partially staged files",name:"hide-partially-staged",type:Boolean},{defaultValue:!1,description:"Hide all unstaged changes before running tasks",name:"hide-unstaged",type:Boolean},{defaultValue:!1,description:"Suppress console output",name:"quiet",type:Boolean},{defaultValue:!1,description:"Pass filepaths relative to cwd to tasks",name:"relative",type:Boolean},{defaultValue:!1,description:"Revert to original state in case of errors",name:"revert",type:Boolean},{defaultValue:!0,description:"Enable backup stash",name:"stash",type:Boolean},{defaultValue:!1,description:"Show task output even when tasks succeed",name:"verbose",type:Boolean}]};var $5=Object.defineProperty,w5=f((e,t)=>$5(e,"name",{value:t,configurable:!0}),"t$7");const k5={description:"Show a workspace health dashboard at a glance",examples:[["vis status","Full status overview"],["vis status --json","Machine-readable output"]],group:"Workspace",loader:w5(()=>import("./handler22.js"),"loader"),name:"status",options:[{defaultValue:!1,description:"Emit JSON output",name:"json",type:Boolean}]};var S5=Object.defineProperty,D5=f((e,t)=>S5(e,"name",{value:t,configurable:!0}),"e$9");const C5={argument:{description:"What to sync: codeowners | package-json-fields",name:"kind",type:String},description:"Synchronise derived workspace artefacts (codeowners, package.json fields, tsconfig refs, …)",examples:[["vis sync codeowners","Generate CODEOWNERS at the repository root"],["vis sync codeowners --out=.github/CODEOWNERS","Write to .github/CODEOWNERS instead"],["vis sync codeowners --check","Fail if the existing file is stale"],["vis sync package-json-fields","Mirror license/author/repository/bugs/homepage/engines from root to every workspace package"],["vis sync package-json-fields --check","Fail if any workspace package.json is out of sync"],["vis sync package-json-fields --fields license,engines","Override the default field list for this run"]],group:"Workspace",loader:D5(()=>import("./handler35.js"),"loader"),name:"sync",options:[{description:"Output path for the generated file (default: <workspace>/CODEOWNERS) — codeowners kind only",name:"out",type:String},{defaultValue:!1,description:"Verify state without writing (exit non-zero if drift is found)",name:"check",type:Boolean},{description:"Comma-separated list of fields to mirror from root → workspace packages (package-json-fields kind only). Repeatable.",multiple:!0,name:"fields",type:String},{description:"Glob pattern of package names to skip (package-json-fields kind only). Repeatable.",multiple:!0,name:"ignore-package-name",type:String},{defaultValue:"human",description:"Output format for package-json-fields: human | json",name:"format",type:String},{defaultValue:!1,description:"Suppress per-package log lines; print only the summary (package-json-fields kind only)",name:"quiet",type:Boolean}]};var E5=Object.defineProperty,A5=f((e,t)=>E5(e,"name",{value:t,configurable:!0}),"t$5");const j5={argument:{description:"Task ID to explain (e.g. @my/app:build)",name:"taskId",type:String},description:"Explain why a task is included in the graph by walking its dependency chain to a root",examples:[["vis task-why @myorg/app:build","Show what pulls build in"],["vis task-why lib-a:test","Check the test task's triggers"]],group:"Workspace",loader:A5(()=>import("./handler23.js"),"loader"),name:"task-why"};var O5=Object.defineProperty,x5=f((e,t)=>O5(e,"name",{value:t,configurable:!0}),"e$8");const P5={argument:{description:"Subcommand: status | detect | install | use | which",name:"action",type:String},description:"Inspect and delegate to the workspace version managers (proto, mise, fnm, volta, asdf, nvm, corepack)",examples:[["vis toolchain status","Show every detected manager + expected vs actual tool versions"],["vis toolchain install","Install pinned versions — per-tool delegation"],["vis toolchain use node@22.13.0","Pin node 22.13.0 via the best runtime manager"],["vis toolchain use pnpm@10.32.1","Update the packageManager field; pnpm self-activates"],["vis toolchain which node","Resolve the node binary the manager would launch"],["vis toolchain detect","Print the primary manager's name"]],group:"Workspace",loader:x5(()=>import("./handler24.js"),"loader"),name:"toolchain",options:[{defaultValue:!1,description:"With `status`: exit 1 if any tool mismatches",name:"exit-code",type:Boolean},{defaultValue:!1,description:"Print the command that would run, but don't execute",name:"dry-run",type:Boolean},{defaultValue:!1,description:"Emit JSON (status subcommand only)",name:"json",type:Boolean},{defaultValue:!0,description:"With `use`: also mirror the version into engines.<tool> when that field already exists. --no-engines to skip.",name:"engines",type:Boolean}]};var N5=Object.defineProperty,F5=f((e,t)=>N5(e,"name",{value:t,configurable:!0}),"e$7");const R5={argument:{description:"Packages to unlink (omit for current package)",name:"packages",type:String},description:"Unlink a previously linked package",examples:[["vis unlink","Unlink current package"],["vis unlink react","Unlink specific package"],["vis unlink -r","Unlink in all workspace packages"]],group:"Dependencies",loader:F5(()=>import("./handler25.js"),"loader"),name:"unlink",options:[{alias:"r",defaultValue:!1,description:"Unlink in all workspace packages",name:"recursive",type:Boolean}]};var B5=Object.defineProperty,L5=f((e,t)=>B5(e,"name",{value:t,configurable:!0}),"e$6");const T5={alias:"up",argument:{description:"Packages to update (updates all if omitted)",name:"packages",type:String},description:"Update packages to their latest versions",examples:[["vis update react","Update react within semver range"],["vis up react -L","Update react to latest"],["vis update -i","Interactive mode"],["vis update --filter app","Update in specific workspace"],["vis update -r","Update in all workspaces"],["vis update --target minor","Only apply minor/patch updates (catalog mode)"],["vis update --dry-run","Preview changes without applying"],["vis update --exclude '@types/*'","Exclude packages by pattern"],["vis update --changelog","Show changelog links after updating"],["vis update --rollback","Restore catalog from last backup"],["vis update --ai","Run AI analysis before applying updates"]],group:"Dependencies",loader:L5(()=>import("./handler34.js"),"loader"),name:"update",options:[{alias:"L",conflicts:"target",description:"Update to latest version (ignore semver range; equivalent to --target latest)",name:"latest",type:Boolean},{alias:"t",conflicts:"latest",description:"Update target: latest, minor, or patch (default: latest, catalog mode)",name:"target",type:String},{alias:"d",defaultValue:!1,description:"Preview changes without applying",name:"dry-run",type:Boolean},{alias:"g",defaultValue:!1,description:"Update global packages",name:"global",type:Boolean},{alias:"r",defaultValue:!1,description:"Update recursively in all workspace packages",name:"recursive",type:Boolean},{description:"Filter packages in monorepo (pm-wrapper mode; catalog mode uses --include/--exclude)",name:"filter",type:String},{alias:"w",defaultValue:!1,description:"Include workspace root",name:"workspace-root",type:Boolean},{alias:"D",conflicts:"prod",description:"Update only devDependencies",name:"dev",type:Boolean},{alias:"P",conflicts:"dev",description:"Update only dependencies",name:"prod",type:Boolean},{alias:"i",defaultValue:!1,description:"Interactive mode",name:"interactive",type:Boolean},{defaultValue:!1,description:"Don't update optionalDependencies",name:"no-optional",type:Boolean},{defaultValue:!1,description:"Include peerDependencies in update checks",name:"peer",type:Boolean},{defaultValue:!1,description:"Also check workspace-owned package names against the registry (catalog mode)",name:"include-internal",type:Boolean},{alias:"l",defaultValue:!1,description:"Include packages with pinned/exact versions (no ^ or ~ prefix; catalog mode)",name:"include-locked",type:Boolean},{defaultValue:!1,description:"Update lockfile only",name:"no-save",type:Boolean},{description:"Glob pattern to include packages (repeatable, catalog mode)",lazyMultiple:!0,name:"include",type:String},{description:"Glob pattern to exclude packages (repeatable, catalog mode)",lazyMultiple:!0,name:"exclude",type:String},{defaultValue:!1,description:"Include prerelease versions (catalog mode)",name:"prerelease",type:Boolean},{defaultValue:!1,description:"Check for known security vulnerabilities (via OSV.dev)",name:"security",type:Boolean},{defaultValue:!1,description:"Skip catalog mode, use package manager directly",name:"no-catalog",type:Boolean},{description:"Output format: table, json, or minimal (default: table)",name:"format",type:String},{defaultValue:!1,description:"Show changelog URLs for updated packages",name:"changelog",type:Boolean},{description:"Run install after catalog update, --no-install to skip (default: true)",name:"install",type:Boolean},{defaultValue:!1,description:"Restore catalog file from the last backup",name:"rollback",type:Boolean},{defaultValue:!1,description:"Run AI analysis on outdated packages before updating (catalog mode)",name:"ai",type:Boolean},{description:"AI analysis type: impact, security, compatibility, or recommend (default: impact)",name:"ai-type",type:String},{defaultValue:!1,description:"Skip typosquat name check for package arguments",name:"no-typosquat-check",type:Boolean},{description:"Cap concurrent registry requests during outdated checks (default: 8)",name:"max-concurrent-requests",type:Number},{description:"Release channel filter: stable (default), same (match current's prerelease channel), or any",name:"release-channel",type:String}]};var I5=Object.defineProperty,_5=f((e,t)=>I5(e,"name",{value:t,configurable:!0}),"e$5");const M5={argument:{description:"Target version (defaults to latest)",name:"version",type:String},description:"Update vis itself to the latest version",examples:[["vis self-update","Update to latest"],["vis self-update 2.0.0","Install specific version"],["vis self-update --check","Check for updates without installing"]],group:"System",loader:_5(()=>import("./handler26.js"),"loader"),name:"self-update",options:[{defaultValue:!1,description:"Check for updates without installing",name:"check",type:Boolean},{defaultValue:!1,description:"Reinstall even if already current",name:"force",type:Boolean},{defaultValue:!1,description:"Suppress output (CI mode)",name:"silent",type:Boolean}]};var V5=Object.defineProperty,W5=f((e,t)=>V5(e,"name",{value:t,configurable:!0}),"e$4");const U5={alias:"explain",argument:{description:"Package(s) to explain",name:"packages",type:String},description:"Show why a package is installed (dependency chain)",examples:[["vis why react","Show why react is installed"],["vis why react --json","Output as JSON"],["vis why react -r","Check across all workspaces"],["vis explain react","Alias matching npm's command"]],group:"Dependencies",loader:W5(()=>import("./handler27.js"),"loader"),name:"why",options:[{defaultValue:!1,description:"Output as JSON",name:"json",type:Boolean},{defaultValue:!1,description:"Show extended information (pnpm)",name:"long",type:Boolean},{defaultValue:!1,description:"Machine-readable output (pnpm)",name:"parseable",type:Boolean},{alias:"r",defaultValue:!1,description:"Check across all workspaces",name:"recursive",type:Boolean},{alias:"D",conflicts:"prod",description:"Filter to dev dependencies (pnpm)",name:"dev",type:Boolean},{alias:"P",conflicts:"dev",description:"Filter to production dependencies (pnpm)",name:"prod",type:Boolean},{defaultValue:!1,description:"Exclude optional dependencies (pnpm)",name:"no-optional",type:Boolean},{alias:"g",defaultValue:!1,description:"Check globally installed packages (pnpm)",name:"global",type:Boolean},{description:"Limit dependency tree depth",name:"depth",type:Number},{alias:"F",description:"Filter by workspace package name",multiple:!0,name:"filter",type:String}]},wy="\x1B]",ky="\x07",Yo=";";var G5=Object.defineProperty,q5=f((e,t)=>G5(e,"name",{value:t,configurable:!0}),"n$7"),z5=Object.defineProperty,H5=q5((e,t)=>z5(e,"name",{value:t,configurable:!0}),"n"),J5=Object.defineProperty,K5=H5((e,t)=>J5(e,"name",{value:t,configurable:!0}),"n");const Y5=K5((e,t)=>[wy,"8",Yo,Yo,t,ky,e,wy,"8",Yo,Yo,ky].join(""),"hyperlink");var X5=Object.defineProperty,qc=f((e,t)=>X5(e,"name",{value:t,configurable:!0}),"e$3");qc((e,t)=>!process.stderr.isTTY||process.env.TERM==="dumb"?e===t?t:`${e} (${jn(t)})`:Y5(e,t),"link");const Q5=qc(()=>{if(process.env.VIS_VERSION)return process.env.VIS_VERSION;try{const e=new URL("../../package.json",import.meta.url);return we(e).version}catch{return"0.0.0"}},"getVersion"),Z5=qc(()=>{process.env.VIS_VERSION=Q5()},"injectVersion"),eV=qc(e=>{!process.stdout.isTTY||Br||process.env.TERM==="dumb"||process.stdout.write(`\x1B]0;${e}\x07`)},"setTerminalTitle");var tV=Object.defineProperty,rV=f((e,t)=>tV(e,"name",{value:t,configurable:!0}),"v$6");const nV={beforeCommand:rV(async e=>{try{const t=e.options?.cwd,r=e.options?.config;let n;if(t)n=ht(process.cwd(),t);else{const a=process.env.VIS_MONOREPO_ROOT;n=a&&a.length>0?a:F1(process.cwd()).path}e.workspaceRoot=n;const i=r?ht(process.cwd(),r):void 0;let s=i??qn(n);try{e.visConfig=await Ah(n,i?{explicitConfigPath:i}:void 0);const a=e.visConfig?.versionConstraint;if(a&&!Yt.validRange(a)){e.logger.error(""),e.logger.error(Ql(ir("✖ Invalid versionConstraint"))),e.logger.error(` vis.config.ts has versionConstraint ${ir(JSON.stringify(a))}, which is not a valid semver range.`),e.logger.error(""),process.exitCode=1;return}if(a&&!Yt.satisfies(Fa.version,a)){e.logger.error(""),e.logger.error(Ql(ir("✖ vis version too old"))),e.logger.error(` vis.config.ts requires vis ${ir(a)}, but the current version is ${ir(Fa.version)}.`),e.logger.error(` ${Ts("→")} Upgrade: ${Hr("pnpm add -D @visulima/vis@latest")}`),e.logger.error(""),process.exitCode=1;return}}catch(a){const c=s,l=a instanceof Error?a.message:String(a);e.visConfigError={file:c??void 0,message:l};const u=!!process.stdout.isTTY&&!Br;if(c&&!u){if(e.logger.error(""),e.logger.error(Ql(ir(`✖ Failed to load ${c}`))),e.logger.error(` ${l}`),e.logger.error(""),l.includes("Cannot find module")){const d=/Cannot find module '([^']+)'/.exec(l)?.[1]??"unknown";e.logger.error(`${Ts("→ Hint:")} The module ${ir(d)} could not be resolved.`),d.includes("@visulima/vis")?(e.logger.error(" This usually means the package isn't installed or the export path changed."),e.logger.error(` Try: ${Hr("pnpm add @visulima/vis")}`),e.logger.error(` Or regenerate: ${Hr("vis init --force")}`)):e.logger.error(` Try: ${Hr(`pnpm add ${d}`)}`)}else l.includes("SyntaxError")||l.includes("Unexpected token")?(e.logger.error(`${Ts("→ Hint:")} The config file has a syntax error.`),e.logger.error(" Check your config for typos or invalid syntax."),e.logger.error(` Or regenerate: ${Hr("vis init --force")}`)):(e.logger.error(`${Ts("→ Hint:")} Delete the broken config and recreate it:`),e.logger.error(` ${Hr(`rm ${c} && vis init`)}`));e.logger.error(""),e.logger.error(` Continuing with default settings.
1098
+ `);for(const r of e){t.info(` • ${r.entry.title} — ${r.entry.description}`);for(const n of r.preview)t.info(` ${n}`);t.info("")}t.info("Run a specific migration with `vis migrate <name>` (e.g. `vis migrate deps`).")},"renderFallbackTable"),M6=Xw(async e=>{const t=e.workspaceRoot??process.cwd(),r=e.visConfig??{},n=R6(t,r),i=F6(n).map(d=>({entry:d,preview:d.probe(n)}));if(!(process.stdout.isTTY&&!Br)){_6(i,e.logger);return}if(i.length===0){e.logger.info("No applicable migrations detected in this workspace.");return}const s=new c3(i),o=r.tui?.autoExit??!1,a=o===!0?3:typeof o=="number"?o:0,c=await NS(bi.createElement(k3,{autoExitSeconds:a,isDryRun:!1,store:s}),{alternateScreen:!0,exitOnCtrlC:!1,interactive:!0,patchConsole:!0}).waitUntilExit();if(!c||c.length===0){e.logger.info("No migrations selected — exiting.");return}const l=Nt(),u=[];for(const d of c)try{e.logger.info(`── Applying ${d.entry.title} ──`),d.entry.apply(n,l,e.logger),e.logger.info("")}catch(p){u.push({entry:d.entry,error:p}),e.logger.warn(`Failed to apply ${d.entry.title}: ${p.message}`)}T6(l,e.logger),u.length>0&&(e.logger.warn(""),e.logger.warn(`${String(u.length)} migration(s) failed — see messages above.`),process.exitCode=1)},"runMigrateInteractive");var V6=Object.defineProperty,W6=f((e,t)=>V6(e,"name",{value:t,configurable:!0}),"e$h");const U6={description:"Analyze and optimize dependencies using e18e replacements and @socketregistry overrides",examples:[["vis optimize","Interactive TUI to select and apply optimizations"],["vis optimize --dry-run","Preview available optimizations"],["vis optimize --pin","Pin Socket.dev overrides to exact versions"],["vis optimize --prod","Only optimize production dependencies"]],group:"Workspace",loader:W6(()=>import("./handler41.js").then(e=>e.h),"loader"),name:"optimize",options:[{alias:"d",defaultValue:!1,description:"Preview available optimizations without applying",name:"dry-run",type:Boolean},{defaultValue:!1,description:"Pin Socket.dev overrides to exact versions",name:"pin",type:Boolean},{defaultValue:!1,description:"Only optimize production dependencies",name:"prod",type:Boolean},{defaultValue:!1,description:"Skip running install after applying overrides",name:"no-install",type:Boolean},{description:"Output format: table or json (default: table)",name:"format",type:String}]};var G6=Object.defineProperty,q6=f((e,t)=>G6(e,"name",{value:t,configurable:!0}),"e$g");const z6={argument:{description:"Subcommand and arguments (e.g., cache dir, publish --dry-run, list --depth 0)",name:"args",type:String},description:"Package manager utilities (cache, publish, audit, list, config, etc.)",examples:[["vis pm cache dir","Show cache directory"],["vis pm cache clean","Clean cache"],["vis pm publish --dry-run","Preview publishing"],["vis pm list --depth 0","List direct dependencies"],["vis pm audit","Run security audit"],["vis pm whoami","Show logged-in user"]],group:"System",loader:q6(()=>import("./handler17.js"),"loader"),name:"pm"};var H6=Object.defineProperty,J6=f((e,t)=>H6(e,"name",{value:t,configurable:!0}),"e$f");const K6={alias:["rm","un","uninstall"],argument:{description:"Packages to remove",name:"packages",type:String},description:"Remove packages using the detected package manager",examples:[["vis remove lodash","Remove a package"],["vis rm old-package","Remove using alias"],["vis remove --filter app react","Remove from specific workspace"],["vis remove -g typescript","Remove global package"]],group:"Dependencies",loader:J6(()=>import("./handler18.js"),"loader"),name:"remove",options:[{alias:"D",defaultValue:!1,description:"Remove from devDependencies",name:"save-dev",type:Boolean},{alias:"g",defaultValue:!1,description:"Remove global package",name:"global",type:Boolean},{alias:"r",defaultValue:!1,description:"Remove from all workspace packages",name:"recursive",type:Boolean},{alias:"w",defaultValue:!1,description:"Remove from workspace root",name:"workspace-root",type:Boolean},{alias:"F",description:"Filter by workspace package name",multiple:!0,name:"filter",type:String}]},Y6={description:"Replay a previous task run from .vis/runs/ — show task results without re-executing",examples:[["vis replay","Show the most recent run summary"],["vis replay --run 2026-04-28T12-34-56_ab12","Inspect a specific historical run"],["vis replay --list","List every recorded run, newest first"],["vis replay --task @myorg/app:build","Focus on one task within the loaded run"],["vis replay --failed","Filter to only failed tasks"],["vis replay --format=json","Machine-readable output for CI"]],group:"Workspace",loader:Ve(()=>import("./handler19.js"),"replayExecute"),name:"replay",options:[{description:"Run id to replay (defaults to the most recent run)",name:"run",type:String},{defaultValue:!1,description:"List every available run instead of replaying one",name:"list",type:Boolean},{description:"Filter the replay to a single task id (e.g. @my/app:build)",name:"task",type:String},{defaultValue:!1,description:"Filter the replay to failed tasks only",name:"failed",type:Boolean},{description:"Output format: table or json (default: table)",name:"format",type:String}]};var X6=Object.defineProperty,Q6=f((e,t)=>X6(e,"name",{value:t,configurable:!0}),"e$e");const Z6={argument:{description:"The target to run (e.g., build, test, lint)",name:"target",type:String},description:"Run a target across workspace projects",examples:[["vis run","List all available targets"],["vis run build","Run build on all projects"],["vis run :build","Run build on all projects (moon-style)"],["vis run ~:test","Run test on the project closest to the current directory"],['vis run "#frontend:build"',"Run build on projects tagged 'frontend'"],['vis run :build --query "language=typescript"',"Filter by project metadata"],["vis run test --affected","Run test only on git-changed projects"],["vis run build --fail-fast","Stop on first failure"],["vis run build --dry-run","Show execution plan without running"],["vis run destroy --reverse","Run leaves-first (teardown order, e.g. CDK/Pulumi destroy)"]],group:"Run & Execute",loader:Q6(()=>import("./handler47.js"),"loader"),name:"run",options:[{alias:"p",description:"Comma-separated list of projects to run",name:"projects",type:String},{defaultValue:!1,description:"Skip the toolchain pre-flight (no auto-install for any pinned tool: node / pnpm / yarn / npm / bun / deno / go / python / ruby / rust)",name:"skip-toolchain",type:Boolean},{description:"Detect lockfile/node_modules drift before running (warns in TTY, fails in CI). Use --no-preflight to disable.",name:"preflight",type:Boolean},{defaultValue:3,description:"Maximum number of parallel tasks (falls back to VIS_RUN_CONCURRENCY_LIMIT env var, then 3)",name:"parallel",type:Number},{defaultValue:!0,description:"Enable caching (use --no-cache to disable)",name:"cache",type:Boolean},{description:"Comma-separated selectors of tasks to bypass cache for (e.g. 'app:test', ':e2e', '#flaky:lint'). Other tasks in the run still cache normally. --no-cache wins when both are set.",name:"skip-cache",type:String},{description:"Custom cache directory",name:"cache-dir",type:String},{description:"Remote cache mode: read | write | readwrite (defaults to readwrite when remoteCache is configured)",name:"cache-mode",type:String},{description:"Remote cache wire backend: http (Turborepo-compatible) or reapi (Bazel Remote Execution API gRPC)",name:"cache-backend",type:String},{defaultValue:!1,description:"Show what would run without executing",name:"dry-run",type:Boolean},{defaultValue:!1,description:"Generate a run summary after execution",name:"summarize",type:Boolean},{description:'Partition tasks for distributed CI (e.g., "1/4" for first of four runners). Falls back to VIS_PARTITION env var.',name:"partition",type:String},{defaultValue:!1,description:"Skip project constraint validation",name:"skip-constraints",type:Boolean},{description:"Filter matched projects by a query (e.g. 'language=typescript && tag=lib')",name:"query",type:String},{defaultValue:!1,description:"Only run on projects affected by git changes (shorthand for vis affected)",name:"affected",type:Boolean},{defaultValue:!1,description:"Rerun affected tasks on file change. Ctrl+C to exit.",name:"watch",type:Boolean},{defaultValue:!1,description:"Stop all tasks on first failure",name:"fail-fast",type:Boolean},{defaultValue:!1,description:"Run the dependency graph in reverse (leaves first, then their dependents). Useful for teardown targets like `destroy`/`undeploy` where dependents must run before the things they depend on.",name:"reverse",type:Boolean},{description:"Output mode: interleaved (pass-through), labeled (prefix each line with [pkg#task]), or grouped (vite-task-style block)",name:"log",type:String},{description:"Output style: normal (print every task) or quiet (skip output for successful/cached tasks; failed tasks still print in CI mode, and remain in TUI scrollback in interactive mode). Per-target options.outputStyle overrides this.",name:"output-style",type:String},{defaultValue:!1,description:"Run every task through a pseudo-terminal so color-aware tools render as if attached to a TTY (disables caching)",name:"pty",type:Boolean},{description:"Global retry budget: cap on total task retries across the run (per-target retryCount is still honored up to the budget)",name:"retry-budget",type:Number},{description:"Write a Chrome Tracing JSON profile of the run to this path (open in chrome://tracing or Perfetto)",name:"profile",type:String},{defaultValue:!1,description:"Render the most-recent run's saved summary (from .vis/last-summary.json) and exit without executing any tasks",name:"last-details",type:Boolean},{defaultValue:!0,description:"Show flaky task report on failure (use --no-flaky to suppress)",name:"flaky",type:Boolean},{defaultValue:!1,description:"Treat any task that needed at least one retry as a run failure (exit non-zero), even when retries eventually succeeded. Use in CI to surface flakes that retries would otherwise mask.",name:"fail-on-retry",type:Boolean},{description:"Fail a task if its command references an env var that is unset (no silent empty-string substitution). Use --no-strict-env to disable when set in config.",name:"strict-env",type:Boolean},{description:"Comma-separated tags this runner advertises (e.g. 'gpu,slow'). Tasks declaring `options.runnerTags` only run when at least one tag overlaps. Untagged tasks always run. Falls back to VIS_RUNNER_TAGS env var.",name:"runner-tags",type:String},{description:"Auto-start service deps. One of: auto | ephemeral | persistent | off. Defaults to `auto` in TTY, `off` in CI.",name:"services",type:String},{defaultValue:!1,description:"Stop services this run auto-started in registry mode when the run exits (clean, q, or Ctrl+C). Ephemeral services already die with the run.",name:"stop-services",type:Boolean}]};var e5=Object.defineProperty,t5=f((e,t)=>e5(e,"name",{value:t,configurable:!0}),"e$d");const r5={description:"Generate a CycloneDX 1.7 Software Bill of Materials for the workspace",examples:[["vis sbom","Write the full-workspace SBOM to sbom.cdx.json"],["vis sbom --focus=my-app","Scope the SBOM to my-app's transitive closure"],["vis sbom --focus=my-app,other","Focus multiple projects"],["vis sbom --format=xml --output=sbom.cdx.xml","Emit XML instead of JSON"],["vis sbom --include-dev","Include devDependencies (default: production only)"],["vis sbom --output=-","Write to stdout"]],group:"Security & Health",loader:t5(()=>import("./handler39.js"),"loader"),name:"sbom",options:[{description:"Project name(s) to focus on — comma-separated for multiple",name:"focus",type:String},{defaultValue:"json",description:"Output format: json (default) or xml",name:"format",type:String},{description:"Output path (use '-' for stdout; default: sbom.cdx.json)",name:"output",type:String},{defaultValue:!1,description:"Include devDependencies (default: production only)",name:"include-dev",type:Boolean}]};var n5=Object.defineProperty,i5=f((e,t)=>n5(e,"name",{value:t,configurable:!0}),"e$c");const s5={argument:{description:"One or more paths to scan (defaults to workspace root)",name:"paths",type:String},description:"Scan a repository for hardcoded secrets and credentials",examples:[["vis secrets","Scan the workspace with grouped, colourised output"],["vis secrets --staged","Scan only files staged for the current commit (pre-commit hooks)"],["vis secrets --since main","Scan only files changed since the `main` branch"],["vis secrets --affected","Scan only projects affected by the current branch"],["vis secrets --init","Write an initial baseline from current findings"],["vis secrets --list-rules","Print all bundled detection rules"],["vis secrets --list-validators","Print non-HTTP validator types in the ruleset + install hints for each"],["vis secrets --exclude-rule generic-api-key --exclude-rule aws-access-token","Drop noisy rules"],["vis secrets --include-rule stripe-access-token","Check a single rule"],["vis secrets --enable-rule tag:preset:weak-passwords","Enable an opt-in rule group additively (defaults still fire)"],["vis secrets --include-rule tag:preset:password-manager","Restrict output to one opt-in group only"],["vis secrets --min-confidence high","Drop rules without a high confidence label (CI-friendly precision filter)"],["vis secrets --validate --only-verified","Live-verify each finding against its provider (one HTTP call per finding)"],["vis secrets --exclude 'dist/**' --exclude-from .secretsignore","Extra gitignore-syntax exclusions for the walker"],["vis secrets --config ./leaks.json --no-extend-bundled","Use only the supplied config, skip the bundled ruleset"],["vis secrets --concurrency 4","Cap the rayon thread pool (0 / omit = auto)"],["vis secrets --baseline .secrets-baseline.json","Suppress known findings; print diff vs. baseline"],["vis secrets --update-baseline","Merge current findings into the baseline (use --replace-baseline to overwrite)"],["vis secrets --format sarif > report.sarif","SARIF output for GitHub code-scanning"]],group:"Security",loader:i5(()=>import("./handler48.js"),"loader"),name:"secrets",options:[{description:"Path to a JSON config (gitleaks-compatible shape). Defaults to the bundled ruleset.",name:"config",type:String},{description:"Drop rules below this author-declared confidence: low (default), medium, high. Rules without a declared confidence (every gitleaks rule) are treated as low, so --min-confidence medium or higher drops them along with explicit low-confidence rules.",name:"min-confidence",type:String},{defaultValue:!1,description:"Live-verify each finding against its provider (one HTTP call per finding, max 8 concurrent). Only supports Kingfisher-style HTTP validators with StatusMatch / WordMatch response matchers; other types (gRPC, multi-step, checksum) mark the finding as validation=skipped. WARNING: sends candidate secrets to the provider — some providers alert their security team on failed auth attempts.",name:"validate",type:Boolean},{defaultValue:!1,description:"With --validate, drop every finding whose validation is not 'verified'. Useful for CI gating.",name:"only-verified",type:Boolean},{defaultValue:!1,description:"With --config, do not merge on top of the bundled ruleset — replace it.",name:"no-extend-bundled",type:Boolean},{defaultValue:"text",description:"Output format: text (default), json, sarif",name:"format",type:String},{description:"Path to a baseline JSON of previously-triaged findings",name:"baseline",type:String},{defaultValue:!1,description:"Scan only files staged for commit",name:"staged",type:Boolean},{description:"Scan only files changed since <ref> (e.g. main, origin/HEAD)",name:"since",type:String},{defaultValue:!1,description:"Scan only projects affected by the current branch",name:"affected",type:Boolean},{description:"Enable an opt-in rule or tag without restricting output — additive (e.g. tag:preset:weak-passwords, tag:preset:password-manager). Repeatable.",multiple:!0,name:"enable-rule",type:String},{description:"Rule id or tag:<name> selector — whitelist, only matching findings are emitted. Implies enablement. Repeatable.",multiple:!0,name:"include-rule",type:String},{description:"Rule id or tag:<name> selector — drop matching findings. Repeatable.",multiple:!0,name:"exclude-rule",type:String},{description:"Gitignore-syntax pattern to exclude from the walk (repeatable)",multiple:!0,name:"exclude",type:String},{description:"Path to a gitignore-shaped file the walker should honor (repeatable)",multiple:!0,name:"exclude-from",type:String},{defaultValue:!1,description:"Mask secret values in output",name:"redact",type:Boolean},{defaultValue:!1,description:"Scan dotfiles",name:"include-hidden",type:Boolean},{defaultValue:!1,description:"Do not respect .gitignore",name:"no-gitignore",type:Boolean},{description:"Skip files larger than this (bytes). Default: 10 MiB",name:"max-size",type:Number},{description:"Rayon worker threads (0 / omit = auto)",name:"concurrency",type:Number},{defaultValue:!1,description:"Merge current findings into the baseline and exit 0",name:"update-baseline",type:Boolean},{defaultValue:!1,description:"With --update-baseline, replace rather than merge",name:"replace-baseline",type:Boolean},{defaultValue:!1,description:"Scaffold a baseline from current findings",name:"init",type:Boolean},{defaultValue:!1,description:"With --init, preview the baseline without writing files",name:"dry-run",type:Boolean},{defaultValue:!1,description:"Print all bundled detection rules and exit",name:"list-rules",type:Boolean},{defaultValue:!1,description:"Print non-HTTP validator types referenced by the current ruleset, with install hints for their optional peer dependencies.",name:"list-validators",type:Boolean},{defaultValue:!1,description:"Suppress all progress output (only emit findings)",name:"quiet",type:Boolean},{defaultValue:!1,description:"Print diagnostic info (skipped rules, etc.)",name:"verbose",type:Boolean}]},Gc={description:"Target id, e.g. @my/api:db",name:"targetId",type:String},o5={description:"Output format: table or json (default: table)",name:"format",type:String},a5={argument:Gc,commandPath:["service"],description:"Start a service target detached so it survives across `vis run` invocations",examples:[["vis service start @my/api:db","Boot the db target as a long-lived service"],["vis service start @my/api:db --timeout=60000","Override readiness timeout"],["vis service start @my/api:db --no-readiness","Skip the readiness probe"]],group:"Workspace",loader:Ve(()=>import("./handler20.js"),"serviceStartExecute"),name:"start",options:[{description:"Readiness probe timeout in milliseconds",name:"timeout",type:Number},{defaultValue:!1,description:"Skip the readiness probe",name:"no-readiness",type:Boolean}]},c5={argument:{description:"Target id to stop, or omit when using --all",name:"targetId",required:!1,type:String},commandPath:["service"],description:"Stop a running service",examples:[["vis service stop @my/api:db","Stop the db service"],["vis service stop --all","Stop every running service in this workspace"]],group:"Workspace",loader:Ve(()=>import("./handler20.js"),"serviceStopExecute"),name:"stop",options:[{defaultValue:!1,description:"Stop every service registered for this workspace",name:"all",type:Boolean},{description:"Override the SIGTERM→SIGKILL grace period in milliseconds",name:"grace-ms",type:Number}]},l5={commandPath:["service"],description:"List services registered for this workspace",examples:[["vis service list","Print running services"],["vis service list --format=json","Machine-readable list"]],group:"Workspace",loader:Ve(()=>import("./handler20.js"),"serviceListExecute"),name:"list",options:[o5]},u5={argument:Gc,commandPath:["service"],description:"Re-run the readiness probe and report a service's health",examples:[["vis service status @my/api:db","Check whether the db service is reachable"]],group:"Workspace",loader:Ve(()=>import("./handler20.js"),"serviceStatusExecute"),name:"status",options:[{description:"Probe timeout in milliseconds",name:"timeout",type:Number}]},p5={argument:Gc,commandPath:["service"],description:"Stop and re-start a running service",examples:[["vis service restart @my/api:db","Recycle the db service"],["vis service restart @my/api:db --no-readiness","Recycle and skip the readiness probe"]],group:"Workspace",loader:Ve(()=>import("./handler20.js"),"serviceRestartExecute"),name:"restart",options:[{description:"Readiness probe timeout in milliseconds",name:"timeout",type:Number},{description:"Override the SIGTERM→SIGKILL grace period in milliseconds",name:"grace-ms",type:Number},{defaultValue:!1,description:"Skip the readiness probe after restart",name:"no-readiness",type:Boolean}]},d5={argument:Gc,commandPath:["service"],description:"Print or tail a service's captured stdout/stderr",examples:[["vis service logs @my/api:db","Print the captured log"],["vis service logs @my/api:db -f","Tail the log (Ctrl-C to exit)"]],group:"Workspace",loader:Ve(()=>import("./handler20.js"),"serviceLogsExecute"),name:"logs",options:[{alias:"f",defaultValue:!1,description:"Follow the log file (like `tail -f`)",name:"follow",type:Boolean}]},f5=[a5,c5,l5,u5,p5,d5];var h5=Object.defineProperty,m5=f((e,t)=>h5(e,"name",{value:t,configurable:!0}),"e$b");const g5={description:"Sort package.json files across the workspace using the sort-package-json Rust crate",examples:[["vis sort-package-json","Sort all package.json files in the workspace"],["vis sort-package-json --check","Check if files are already sorted (exit 1 if not)"],["vis sort-package-json --sort-scripts","Also sort the scripts field alphabetically"],["vis sort-package-json --indent 4","Force 4-space indentation (overrides per-file detection)"],["vis sort-package-json --indent tab","Force tab indentation"],["vis sort-package-json --ignore '**/fixtures/**'","Skip files matching one or more glob patterns"],["vis sort-package-json --sort-order name,version,license","Pin a custom prefix order before the default field order"],["vis sort-package-json --unsorted dependencies,devDependencies","Preserve original key order for the listed top-level sections"],["vis sort-package-json --no-final-newline","Do not append a trailing newline"],["vis sort-package-json --line-ending crlf","Force CRLF line endings (default: auto-detect per file)"]],group:"Workspace",loader:m5(()=>import("./handler38.js"),"loader"),name:"sort-package-json",options:[{alias:"c",defaultValue:!1,description:"Check if package.json files are sorted without writing (exits 1 if unsorted)",name:"check",type:Boolean},{defaultValue:!1,description:"Also sort the scripts field alphabetically",name:"sort-scripts",type:Boolean},{description:"Indent override: a number of spaces, the literal `tab`, or a literal whitespace string. When unset, the original file's indent is preserved.",name:"indent",type:String},{description:"Glob pattern of files to skip (basename match, or path-relative when the pattern contains `/`). Repeatable.",multiple:!0,name:"ignore",type:String},{description:"Comma-separated list of top-level keys to place first, before the default field order. Repeatable.",multiple:!0,name:"sort-order",type:String},{description:"Comma-separated list of top-level sections whose key order should be preserved (e.g. dependencies,devDependencies). Repeatable.",multiple:!0,name:"unsorted",type:String},{defaultValue:!1,description:"Do not append a trailing newline to the output (default: append one).",name:"no-final-newline",type:Boolean},{defaultValue:"auto",description:"Line ending to write: auto (per-file detection, default), lf, or crlf.",name:"line-ending",type:String},{description:"Disable collapsing `bugs: { url }` to the bare string form (default: enabled).",name:"no-format-bugs",type:Boolean},{description:"Disable collapsing `repository: { type, url }` to the GitHub `owner/repo` shorthand (default: enabled).",name:"no-format-repository",type:Boolean},{description:"Disable canonical sorting of `exports` condition keys (default: enabled).",name:"no-sort-exports",type:Boolean},{description:"Disable .editorconfig discovery for indent / line-ending defaults (default: enabled).",name:"no-editorconfig",type:Boolean}]};var y5=Object.defineProperty,v5=f((e,t)=>y5(e,"name",{value:t,configurable:!0}),"e$a");const b5={description:"Run linters on staged files using config from vis.config.ts",examples:[["vis staged","Run staged linters"],["vis staged --verbose","Run with verbose output"],["vis staged --no-stash","Run without backup stash"],["vis staged --diff HEAD~1","Run against a specific diff"]],group:"Run & Execute",loader:v5(()=>import("./handler46.js"),"loader"),name:"staged",options:[{defaultValue:!1,description:"Allow empty commits when tasks revert all staged changes",name:"allow-empty",type:Boolean},{defaultValue:!1,description:"Automatically stage new files that tasks create during the run",name:"auto-stage",type:Boolean},{description:"Number of concurrent tasks or false for serial",name:"concurrent",type:String},{defaultValue:!1,description:"Run all tasks to completion even if one fails",name:"continue-on-error",type:Boolean},{description:"Working directory to run all tasks in",name:"cwd",type:String},{defaultValue:!1,description:"Enable debug output",name:"debug",type:Boolean},{description:"Override the default --staged flag of git diff",name:"diff",type:String},{description:"Override the default diff-filter",name:"diff-filter",type:String},{defaultValue:!1,description:"Fail with exit code 1 when tasks modify tracked files",name:"fail-on-changes",type:Boolean},{defaultValue:!1,description:"Kill in-flight tasks with SIGKILL on fast-fail instead of the default SIGTERM",name:"force-kill",type:Boolean},{defaultValue:!1,description:"Hide unstaged changes from partially staged files",name:"hide-partially-staged",type:Boolean},{defaultValue:!1,description:"Hide all unstaged changes before running tasks",name:"hide-unstaged",type:Boolean},{defaultValue:!1,description:"Suppress console output",name:"quiet",type:Boolean},{defaultValue:!1,description:"Pass filepaths relative to cwd to tasks",name:"relative",type:Boolean},{defaultValue:!1,description:"Revert to original state in case of errors",name:"revert",type:Boolean},{defaultValue:!0,description:"Enable backup stash",name:"stash",type:Boolean},{defaultValue:!1,description:"Show task output even when tasks succeed",name:"verbose",type:Boolean}]};var $5=Object.defineProperty,w5=f((e,t)=>$5(e,"name",{value:t,configurable:!0}),"t$7");const k5={description:"Show a workspace health dashboard at a glance",examples:[["vis status","Full status overview"],["vis status --json","Machine-readable output"]],group:"Workspace",loader:w5(()=>import("./handler22.js"),"loader"),name:"status",options:[{defaultValue:!1,description:"Emit JSON output",name:"json",type:Boolean}]};var S5=Object.defineProperty,D5=f((e,t)=>S5(e,"name",{value:t,configurable:!0}),"e$9");const C5={argument:{description:"What to sync: codeowners | package-json-fields",name:"kind",type:String},description:"Synchronise derived workspace artefacts (codeowners, package.json fields, tsconfig refs, …)",examples:[["vis sync codeowners","Generate CODEOWNERS at the repository root"],["vis sync codeowners --out=.github/CODEOWNERS","Write to .github/CODEOWNERS instead"],["vis sync codeowners --check","Fail if the existing file is stale"],["vis sync package-json-fields","Mirror license/author/repository/bugs/homepage/engines from root to every workspace package"],["vis sync package-json-fields --check","Fail if any workspace package.json is out of sync"],["vis sync package-json-fields --fields license,engines","Override the default field list for this run"]],group:"Workspace",loader:D5(()=>import("./handler35.js"),"loader"),name:"sync",options:[{description:"Output path for the generated file (default: <workspace>/CODEOWNERS) — codeowners kind only",name:"out",type:String},{defaultValue:!1,description:"Verify state without writing (exit non-zero if drift is found)",name:"check",type:Boolean},{description:"Comma-separated list of fields to mirror from root → workspace packages (package-json-fields kind only). Repeatable.",multiple:!0,name:"fields",type:String},{description:"Glob pattern of package names to skip (package-json-fields kind only). Repeatable.",multiple:!0,name:"ignore-package-name",type:String},{defaultValue:"human",description:"Output format for package-json-fields: human | json",name:"format",type:String},{defaultValue:!1,description:"Suppress per-package log lines; print only the summary (package-json-fields kind only)",name:"quiet",type:Boolean}]};var E5=Object.defineProperty,A5=f((e,t)=>E5(e,"name",{value:t,configurable:!0}),"t$5");const j5={argument:{description:"Task ID to explain (e.g. @my/app:build)",name:"taskId",type:String},description:"Explain why a task is included in the graph by walking its dependency chain to a root",examples:[["vis task-why @myorg/app:build","Show what pulls build in"],["vis task-why lib-a:test","Check the test task's triggers"]],group:"Workspace",loader:A5(()=>import("./handler23.js"),"loader"),name:"task-why"};var O5=Object.defineProperty,x5=f((e,t)=>O5(e,"name",{value:t,configurable:!0}),"e$8");const P5={argument:{description:"Subcommand: status | detect | install | use | which",name:"action",type:String},description:"Inspect and delegate to the workspace version managers (proto, mise, fnm, volta, asdf, nvm, corepack)",examples:[["vis toolchain status","Show every detected manager + expected vs actual tool versions"],["vis toolchain install","Install pinned versions — per-tool delegation"],["vis toolchain use node@22.13.0","Pin node 22.13.0 via the best runtime manager"],["vis toolchain use pnpm@10.32.1","Update the packageManager field; pnpm self-activates"],["vis toolchain which node","Resolve the node binary the manager would launch"],["vis toolchain detect","Print the primary manager's name"]],group:"Workspace",loader:x5(()=>import("./handler24.js"),"loader"),name:"toolchain",options:[{defaultValue:!1,description:"With `status`: exit 1 if any tool mismatches",name:"exit-code",type:Boolean},{defaultValue:!1,description:"Print the command that would run, but don't execute",name:"dry-run",type:Boolean},{defaultValue:!1,description:"Emit JSON (status subcommand only)",name:"json",type:Boolean},{defaultValue:!0,description:"With `use`: also mirror the version into engines.<tool> when that field already exists. --no-engines to skip.",name:"engines",type:Boolean}]};var N5=Object.defineProperty,F5=f((e,t)=>N5(e,"name",{value:t,configurable:!0}),"e$7");const R5={argument:{description:"Packages to unlink (omit for current package)",name:"packages",type:String},description:"Unlink a previously linked package",examples:[["vis unlink","Unlink current package"],["vis unlink react","Unlink specific package"],["vis unlink -r","Unlink in all workspace packages"]],group:"Dependencies",loader:F5(()=>import("./handler25.js"),"loader"),name:"unlink",options:[{alias:"r",defaultValue:!1,description:"Unlink in all workspace packages",name:"recursive",type:Boolean}]};var B5=Object.defineProperty,L5=f((e,t)=>B5(e,"name",{value:t,configurable:!0}),"e$6");const T5={alias:"up",argument:{description:"Packages to update (updates all if omitted)",name:"packages",type:String},description:"Update packages to their latest versions",examples:[["vis update react","Update react within semver range"],["vis up react -L","Update react to latest"],["vis update -i","Interactive mode"],["vis update --filter app","Update in specific workspace"],["vis update -r","Update in all workspaces"],["vis update --target minor","Only apply minor/patch updates (catalog mode)"],["vis update --dry-run","Preview changes without applying"],["vis update --exclude '@types/*'","Exclude packages by pattern"],["vis update --changelog","Show changelog links after updating"],["vis update --rollback","Restore catalog from last backup"],["vis update --ai","Run AI analysis before applying updates"]],group:"Dependencies",loader:L5(()=>import("./handler34.js"),"loader"),name:"update",options:[{alias:"L",conflicts:"target",description:"Update to latest version (ignore semver range; equivalent to --target latest)",name:"latest",type:Boolean},{alias:"t",conflicts:"latest",description:"Update target: latest, minor, or patch (default: latest, catalog mode)",name:"target",type:String},{alias:"d",defaultValue:!1,description:"Preview changes without applying",name:"dry-run",type:Boolean},{alias:"g",defaultValue:!1,description:"Update global packages",name:"global",type:Boolean},{alias:"r",defaultValue:!1,description:"Update recursively in all workspace packages",name:"recursive",type:Boolean},{description:"Filter packages in monorepo (pm-wrapper mode; catalog mode uses --include/--exclude)",name:"filter",type:String},{alias:"w",defaultValue:!1,description:"Include workspace root",name:"workspace-root",type:Boolean},{alias:"D",conflicts:"prod",description:"Update only devDependencies",name:"dev",type:Boolean},{alias:"P",conflicts:"dev",description:"Update only dependencies",name:"prod",type:Boolean},{alias:"i",defaultValue:!1,description:"Interactive mode",name:"interactive",type:Boolean},{defaultValue:!1,description:"Don't update optionalDependencies",name:"no-optional",type:Boolean},{defaultValue:!1,description:"Include peerDependencies in update checks",name:"peer",type:Boolean},{defaultValue:!1,description:"Also check workspace-owned package names against the registry (catalog mode)",name:"include-internal",type:Boolean},{alias:"l",defaultValue:!1,description:"Include packages with pinned/exact versions (no ^ or ~ prefix; catalog mode)",name:"include-locked",type:Boolean},{defaultValue:!1,description:"Update lockfile only",name:"no-save",type:Boolean},{description:"Glob pattern to include packages (repeatable, catalog mode)",lazyMultiple:!0,name:"include",type:String},{description:"Glob pattern to exclude packages (repeatable, catalog mode)",lazyMultiple:!0,name:"exclude",type:String},{defaultValue:!1,description:"Include prerelease versions (catalog mode)",name:"prerelease",type:Boolean},{defaultValue:!1,description:"Check for known security vulnerabilities (via OSV.dev)",name:"security",type:Boolean},{defaultValue:!1,description:"Skip catalog mode, use package manager directly",name:"no-catalog",type:Boolean},{description:"Output format: table, json, or minimal (default: table)",name:"format",type:String},{defaultValue:!1,description:"Show changelog URLs for updated packages",name:"changelog",type:Boolean},{description:"Run install after catalog update, --no-install to skip (default: true)",name:"install",type:Boolean},{defaultValue:!1,description:"Restore catalog file from the last backup",name:"rollback",type:Boolean},{defaultValue:!1,description:"Run AI analysis on outdated packages before updating (catalog mode)",name:"ai",type:Boolean},{description:"AI analysis type: impact, security, compatibility, or recommend (default: impact)",name:"ai-type",type:String},{defaultValue:!1,description:"Skip typosquat name check for package arguments",name:"no-typosquat-check",type:Boolean},{description:"Cap concurrent registry requests during outdated checks (default: 8)",name:"max-concurrent-requests",type:Number},{description:"Release channel filter: stable (default), same (match current's prerelease channel), or any",name:"release-channel",type:String}]};var I5=Object.defineProperty,_5=f((e,t)=>I5(e,"name",{value:t,configurable:!0}),"e$5");const M5={argument:{description:"Target version (defaults to latest)",name:"version",type:String},description:"Update vis itself to the latest version",examples:[["vis self-update","Update to latest"],["vis self-update 2.0.0","Install specific version"],["vis self-update --check","Check for updates without installing"]],group:"System",loader:_5(()=>import("./handler26.js"),"loader"),name:"self-update",options:[{defaultValue:!1,description:"Check for updates without installing",name:"check",type:Boolean},{defaultValue:!1,description:"Reinstall even if already current",name:"force",type:Boolean},{defaultValue:!1,description:"Suppress output (CI mode)",name:"silent",type:Boolean}]};var V5=Object.defineProperty,W5=f((e,t)=>V5(e,"name",{value:t,configurable:!0}),"e$4");const U5={alias:"explain",argument:{description:"Package(s) to explain",name:"packages",type:String},description:"Show why a package is installed (dependency chain)",examples:[["vis why react","Show why react is installed"],["vis why react --json","Output as JSON"],["vis why react -r","Check across all workspaces"],["vis explain react","Alias matching npm's command"]],group:"Dependencies",loader:W5(()=>import("./handler27.js"),"loader"),name:"why",options:[{defaultValue:!1,description:"Output as JSON",name:"json",type:Boolean},{defaultValue:!1,description:"Show extended information (pnpm)",name:"long",type:Boolean},{defaultValue:!1,description:"Machine-readable output (pnpm)",name:"parseable",type:Boolean},{alias:"r",defaultValue:!1,description:"Check across all workspaces",name:"recursive",type:Boolean},{alias:"D",conflicts:"prod",description:"Filter to dev dependencies (pnpm)",name:"dev",type:Boolean},{alias:"P",conflicts:"dev",description:"Filter to production dependencies (pnpm)",name:"prod",type:Boolean},{defaultValue:!1,description:"Exclude optional dependencies (pnpm)",name:"no-optional",type:Boolean},{alias:"g",defaultValue:!1,description:"Check globally installed packages (pnpm)",name:"global",type:Boolean},{description:"Limit dependency tree depth",name:"depth",type:Number},{alias:"F",description:"Filter by workspace package name",multiple:!0,name:"filter",type:String}]},wy="\x1B]",ky="\x07",Yo=";";var G5=Object.defineProperty,q5=f((e,t)=>G5(e,"name",{value:t,configurable:!0}),"n$7"),z5=Object.defineProperty,H5=q5((e,t)=>z5(e,"name",{value:t,configurable:!0}),"n"),J5=Object.defineProperty,K5=H5((e,t)=>J5(e,"name",{value:t,configurable:!0}),"n");const Y5=K5((e,t)=>[wy,"8",Yo,Yo,t,ky,e,wy,"8",Yo,Yo,ky].join(""),"hyperlink");var X5=Object.defineProperty,qc=f((e,t)=>X5(e,"name",{value:t,configurable:!0}),"e$3");qc((e,t)=>!process.stderr.isTTY||process.env.TERM==="dumb"?e===t?t:`${e} (${jn(t)})`:Y5(e,t),"link");const Q5=qc(()=>{if(process.env.VIS_VERSION)return process.env.VIS_VERSION;try{const e=new URL("../../package.json",import.meta.url);return we(e).version}catch{return"0.0.0"}},"getVersion"),Z5=qc(()=>{process.env.VIS_VERSION=Q5()},"injectVersion"),eV=qc(e=>{!process.stdout.isTTY||Br||process.env.TERM==="dumb"||process.stdout.write(`\x1B]0;${e}\x07`)},"setTerminalTitle");var tV=Object.defineProperty,rV=f((e,t)=>tV(e,"name",{value:t,configurable:!0}),"v$6");const nV={beforeCommand:rV(async e=>{try{const t=e.options?.cwd,r=e.options?.config;let n;if(t)n=ht(process.cwd(),t);else{const a=process.env.VIS_MONOREPO_ROOT;n=a&&a.length>0?a:F1(process.cwd()).path}e.workspaceRoot=n;const i=r?ht(process.cwd(),r):void 0;let s=i??qn(n);try{e.visConfig=await Ah(n,i?{explicitConfigPath:i}:void 0);const a=e.visConfig?.versionConstraint;if(a&&!Yt.validRange(a)){e.logger.error(""),e.logger.error(Ql(ir("✖ Invalid versionConstraint"))),e.logger.error(` vis.config.ts has versionConstraint ${ir(JSON.stringify(a))}, which is not a valid semver range.`),e.logger.error(""),process.exitCode=1;return}if(a&&!Yt.satisfies(Fa.version,a)){e.logger.error(""),e.logger.error(Ql(ir("✖ vis version too old"))),e.logger.error(` vis.config.ts requires vis ${ir(a)}, but the current version is ${ir(Fa.version)}.`),e.logger.error(` ${Ts("→")} Upgrade: ${Hr("pnpm add -D @visulima/vis@latest")}`),e.logger.error(""),process.exitCode=1;return}}catch(a){const c=s,l=a instanceof Error?a.message:String(a);e.visConfigError={file:c??void 0,message:l};const u=!!process.stdout.isTTY&&!Br;if(c&&!u){if(e.logger.error(""),e.logger.error(Ql(ir(`✖ Failed to load ${c}`))),e.logger.error(` ${l}`),e.logger.error(""),l.includes("Cannot find module")){const d=/Cannot find module '([^']+)'/.exec(l)?.[1]??"unknown";e.logger.error(`${Ts("→ Hint:")} The module ${ir(d)} could not be resolved.`),d.includes("@visulima/vis")?(e.logger.error(" This usually means the package isn't installed or the export path changed."),e.logger.error(` Try: ${Hr("pnpm add @visulima/vis")}`),e.logger.error(` Or regenerate: ${Hr("vis init --force")}`)):e.logger.error(` Try: ${Hr(`pnpm add ${d}`)}`)}else l.includes("SyntaxError")||l.includes("Unexpected token")?(e.logger.error(`${Ts("→ Hint:")} The config file has a syntax error.`),e.logger.error(" Check your config for typos or invalid syntax."),e.logger.error(` Or regenerate: ${Hr("vis init --force")}`)):(e.logger.error(`${Ts("→ Hint:")} Delete the broken config and recreate it:`),e.logger.error(` ${Hr(`rm ${c} && vis init`)}`));e.logger.error(""),e.logger.error(` Continuing with default settings.
1099
1099
  `)}e.visConfig={}}const o=process.argv[2]??"";if(!new Set(["--help","--version","-h","-V","create","help","implode","init"]).has(o)&&!s&&!Br)if(process.stdin.isTTY){const a=$v({input:process.stdin,output:process.stderr}),c=await new Promise(l=>{a.question("\x1B[36;1m?\x1B[0m \x1B[1mNo vis.config.ts found. Create one with best-practice security defaults?\x1B[0m \x1B[90m(\x1B[92mY\x1B[90m/n)\x1B[0m ",l),a.on("SIGINT",()=>{a.close(),l("n")})});if(a.close(),!c.trim()||c.trim().toLowerCase()==="y"||c.trim().toLowerCase()==="yes"){const l=E(n,"vis.config.ts"),u=['import { defineConfig } from "@visulima/vis/config";',"","// Secure defaults are applied automatically by defineConfig().","// You only need to add allowBuilds for packages with build scripts.","// Run 'vis check --security-config' to see all active settings.","export default defineConfig({"," security: {"," allowBuilds: {",' // "esbuild": true,'," },"," },","});",""].join(`
1100
1100
  `);Me(l,u),e.logger.info(`✓ Created ${l}
1101
1101
  `),e.visConfig=await Ah(n),s=l}}else e.logger.warn("No vis.config.ts found. Run 'vis init' to create one with best-practice security defaults.")}catch(t){t instanceof Error&&!t.message.includes("monorepo root")&&e.logger.warn(`Failed to detect workspace: ${t.message}`),e.visConfig={}}},"beforeCommand"),name:"config-loader"};var iV=Object.defineProperty,kt=f((e,t)=>iV(e,"name",{value:t,configurable:!0}),"r$1");const sV=336*60*60*1e3,Rp=E(un(),"mcp-promote.json"),pn="@visulima/vis-mcp",oV=new Set(["--help","--version","-h","-V","ai","help","implode","mcp"]),aV=kt(()=>{try{if(x(Rp))return we(Rp)}catch{}return{lastShown:0}},"readState"),cV=kt(e=>{try{Ht(un()),Ee(Rp,JSON.stringify(e))}catch{}},"writeState"),Qi=kt(e=>{try{return x(e)?we(e):void 0}catch{return}},"readJsonSafe"),Zi=kt(e=>{if(typeof e!="object"||e===null)return!1;for(const t of Object.values(e)){if(typeof t!="object"||t===null)continue;const r=t,n=Array.isArray(r.args)?r.args.join(" "):"",i=`${typeof r.command=="string"?r.command:""} ${n}`;if(i.includes(pn)||i.includes("vis-mcp"))return!0}return!1},"mapHasVisMcp"),lV=kt(e=>{if(!Array.isArray(e))return!1;for(const t of e){if(typeof t!="object"||t===null)continue;const r=t,n=Array.isArray(r.args)?r.args.join(" "):"",i=`${typeof r.command=="string"?r.command:""} ${n} ${typeof r.name=="string"?r.name:""}`;if(i.includes(pn)||i.includes("vis-mcp"))return!0}return!1},"arrayHasVisMcp"),uV=kt(e=>{const t=E(e,".claude"),r=E(e,".claude.json"),n=x(t)||x(r);let i=!1;if(n){const s=Qi(r);i=Zi(s?.mcpServers)}return{displayName:"Claude Code",id:"claude-code",installCommand:`claude mcp add vis -- npx -y ${pn}@latest`,isConfigured:i,isInstalled:n}},"detectClaudeCode"),pV=kt(e=>{const t=E(e,".cursor","mcp.json"),r=x(E(e,".cursor"));let n=!1;if(r){const i=Qi(t);n=Zi(i?.mcpServers)}return{displayName:"Cursor",id:"cursor",installCommand:`Add to ~/.cursor/mcp.json: "vis": { "command": "npx", "args": ["-y", "${pn}@latest"] }`,isConfigured:n,isInstalled:r}},"detectCursor"),dV=kt(e=>{const t=E(e,".codeium","windsurf"),r=E(t,"mcp_config.json"),n=x(t);let i=!1;if(n){const s=Qi(r);i=Zi(s?.mcpServers)}return{displayName:"Windsurf",id:"windsurf",installCommand:`Add to ~/.codeium/windsurf/mcp_config.json: "vis": { "command": "npx", "args": ["-y", "${pn}@latest"] }`,isConfigured:i,isInstalled:n}},"detectWindsurf"),fV=kt(e=>{const t=E(e,".continue"),r=E(t,"config.json"),n=x(t);let i=!1;if(n){const s=Qi(r);i=Zi(s?.mcpServers)||lV(s?.mcpServers)}return{displayName:"Continue",id:"continue",installCommand:`Add to ~/.continue/config.json mcpServers: { "name": "vis", "command": "npx", "args": ["-y", "${pn}@latest"] }`,isConfigured:i,isInstalled:n}},"detectContinue"),hV=kt(e=>{const t=E(e,"Library","Application Support","Zed","settings.json"),r=E(e,".config","zed","settings.json"),n=Xp()==="darwin"?t:r,i=x(n);let s=!1;if(i){const o=Qi(n);s=Zi(o?.context_servers)}return{displayName:"Zed",id:"zed",installCommand:`Add to Zed settings.json under context_servers: "vis": { "command": "npx", "args": ["-y", "${pn}@latest"] }`,isConfigured:s,isInstalled:i}},"detectZed"),mV=kt(e=>{const t=[E(e,".config","Code","User","globalStorage","saoudrizwan.claude-dev","settings","cline_mcp_settings.json"),E(e,"Library","Application Support","Code","User","globalStorage","saoudrizwan.claude-dev","settings","cline_mcp_settings.json")];let r;for(const s of t)if(x(s)){r=s;break}const n=r!==void 0;let i=!1;if(r!==void 0){const s=Qi(r);i=Zi(s?.mcpServers)}return{displayName:"Cline",id:"cline",installCommand:`In VS Code: open Cline > MCP Servers, add "vis" with command "npx" and args ["-y", "${pn}@latest"]`,isConfigured:i,isInstalled:n}},"detectCline"),gV=kt(()=>{const e=bv();return[uV(e),pV(e),dV(e),fV(e),hV(e),mV(e)]},"detectAiClis"),yV=kt(e=>{if(!e.success||process.env.VIS_CLI_TEST||Br||process.env.VIS_NO_MCP_PROMOTE==="1"||e.visConfig?.mcpPromote?.enabled===!1||!process.stderr.isTTY||e.command!==void 0&&oV.has(e.command))return!1;const t=new Set(process.argv.slice(2));return!(t.has("--silent")||t.has("-s")||t.has("--json"))},"shouldRun"),vV=kt(e=>{if(!yV(e))return;const t=Date.now(),r=aV();if(t-r.lastShown<sV)return;const n=gV().find(i=>i.isInstalled&&!i.isConfigured);n!==void 0&&(process.stderr.write(`
@@ -1198,4 +1198,4 @@ ${jn("vis update available:")} ${Ts(e)} ${jn(wK.arrow)} ${z8(ir(t.latestVersion)
1198
1198
  `),t.lastNoticeAt=n,mS(t))},"showUpgradeNotice"),OK=ss(e=>{if(Br||process.env.VIS_CLI_TEST||process.env.VIS_NO_UPDATE_CHECK==="1"||!process.stderr.isTTY||EK.has(e))return!1;const t=new Set(process.argv.slice(2));return!(t.has("--silent")||t.has("-s")||t.has("--json"))},"shouldCheck"),xK=ss((e,t)=>{if(!OK(t))return;const r=AK(),n=Date.now();if(r&&n-r.lastQueryAt<SK)return()=>{iv(e,r)};let i=r;return jK("@visulima/vis").then(s=>{s&&(i={lastNoticeAt:r?.lastNoticeAt??0,lastQueryAt:n,latestVersion:s},mS(i))}).catch(()=>{}),()=>{i&&iv(e,i)}},"startUpgradeCheck");var PK=Object.defineProperty,sv=f((e,t)=>PK(e,"name",{value:t,configurable:!0}),"n");Tx();process.argv.includes("--no-color")&&(process.env.NO_COLOR="1",process.env.FORCE_COLOR="0");Z5();try{const e=F1(process.cwd()).path;process.env.VIS_MONOREPO_ROOT=e;const t=we(E(e,"package.json"));t.name&&eV(t.name)}catch{}const NK=xK(Fa.version,process.argv[2]??"");Cx();const X=YO("vis",{packageName:"vis",packageVersion:Fa.version}),FK=process.argv.includes("--debug")||!!process.env.DEBUG;X.addPlugin(KP({detailed:FK,exitOnError:!1}));X.addGlobalOption({description:"Override workspace root directory",name:"cwd",type:String});X.addGlobalOption({description:"Path to a vis config file (overrides discovery)",name:"config",type:String});X.addPlugin(nV);X.addPlugin(yK);X.addCommand(Z6);X.addCommand(xL);X.addCommand(oT);X.addCommand(HB);X.addCommand(ZB);X.addCommand(j5);X.addCommand(Y6);X.addCommand(vT);X.addCommand(T5);X.addCommand(AL);X.addCommand(LT);X.addCommand(lL);X.addCommand(g5);X.addCommand(b5);X.addCommand(k5);X.addCommand(C5);X.addCommand(JL);X.addCommand(_T);X.addCommand(P5);X.addCommand(mx);X.addCommand(xT);X.addCommand(YB);X.addCommand(K6);X.addCommand(_L);X.addCommand(U5);X.addCommand(DT);X.addCommand(FT);X.addCommand(R5);X.addCommand(qL);X.addCommand(eT);X.addCommand(z6);X.addCommand(AT);X.addCommand(FL);X.addCommand(LL);X.addCommand(nT);X.addCommand(WL);X.addCommand(M5);X.addCommand(wT);X.addCommand(dL);X.addCommand(mL);X.addCommand(XL);X.addCommand(U6);X.addCommand(r5);X.addCommand(s5);for(const e of mT)X.addCommand(e);for(const e of ZT)X.addCommand(e);for(const e of DL)X.addCommand(e);for(const e of B1)X.addCommand(e);for(const e of f5)X.addCommand(e);X.addPlugin(PV(NK));if(i3(process.argv.slice(2))){const{loadVisConfig:e}=await import("../packem_shared/applyDefaults-DLY94gWA.js"),t=process.env.VIS_MONOREPO_ROOT||process.cwd();let r;try{r=await e(t)}catch{r=void 0}try{await M6({logger:{info:sv(n=>{process.stdout.write(`${n}
1199
1199
  `)},"info"),warn:sv(n=>{process.stderr.write(`${n}
1200
1200
  `)},"warn")},visConfig:r,workspaceRoot:t})}catch(n){process.stderr.write(`${n.message}
1201
- `),process.exitCode=1}}else(async()=>{try{await X.run({shouldExitProcess:!1})}catch{process.exitCode=process.exitCode||1}finally{process.exit(process.exitCode??0)}})();export{Nr as $,pS as A,tX as B,RX as C,XY as D,jn as E,mX as F,gX as G,yX as H,GX as I,MM as J,VX as K,FX as L,TX as M,k7 as N,WX as O,MX as P,Mc as Q,aX as R,It as S,y7 as T,TB as U,uX as V,UX as W,JY as X,VY as Y,WY as Z,If as _,Sw as a,IY as a$,IX as a0,Fa as a1,BX as a2,Dw as a3,VM as a4,rX as a5,IM as a6,sX as a7,Yt as a8,gf as a9,dX as aA,pX as aB,oX as aC,PY as aD,wK as aE,Wc as aF,Wf as aG,tc as aH,sn as aI,Ym as aJ,Ji as aK,rn as aL,zY as aM,f8 as aN,GY as aO,C3 as aP,I1 as aQ,FY as aR,RY as aS,LY as aT,TY as aU,BY as aV,Pi as aW,vr as aX,_3 as aY,_1 as aZ,U3 as a_,xp as aa,rK as ab,H8 as ac,nX as ad,iX as ae,wX as af,Nt as ag,J1 as ah,lg as ai,T6 as aj,mg as ak,bg as al,$y as am,wg as an,gg as ao,ug as ap,dg as aq,kg as ar,by as as,Sg as at,OX as au,fX as av,vX as aw,$X as ax,cX as ay,bX as az,qX as b,YY as b0,ho as b1,KY as b2,A8 as b3,bn as b4,qY as b5,io as b6,kX as b7,SX as b8,DX as b9,CX as ba,wC as bb,UY as bc,eX as bd,r8 as be,MY as bf,_Y as bg,v$ as bh,SW as bi,Py as bj,NY as bk,z8 as c,Ql as d,Ts as e,lX as f,hX as g,PX as h,_X as i,ir as j,Lf as k,AM as l,HY as m,QY as n,ZY as o,se as p,Hr as q,po as r,Br as s,fo as t,Zt as u,xX as v,LX as w,NX as x,d9 as y,Aw as z};
1201
+ `),process.exitCode=1}}else(async()=>{try{await X.run({shouldExitProcess:!1})}catch{process.exitCode=process.exitCode||1}finally{process.exit(process.exitCode??0)}})();export{Nr as $,pS as A,tX as B,RX as C,XY as D,jn as E,mX as F,gX as G,yX as H,GX as I,MM as J,VX as K,FX as L,TX as M,k7 as N,WX as O,MX as P,Mc as Q,aX as R,It as S,y7 as T,TB as U,uX as V,UX as W,JY as X,VY as Y,WY as Z,If as _,Sw as a,vr as a$,IX as a0,Fa as a1,BX as a2,Dw as a3,VM as a4,rX as a5,IM as a6,sX as a7,Yt as a8,gf as a9,dX as aA,pX as aB,oX as aC,PY as aD,wK as aE,Wc as aF,Wf as aG,tc as aH,sn as aI,Ym as aJ,Ji as aK,rn as aL,zY as aM,f8 as aN,GY as aO,C3 as aP,YY as aQ,ho as aR,KY as aS,A8 as aT,bn as aU,qY as aV,io as aW,kX as aX,SX as aY,DX as aZ,CX as a_,xp as aa,rK as ab,H8 as ac,nX as ad,iX as ae,wX as af,Nt as ag,J1 as ah,lg as ai,T6 as aj,mg as ak,bg as al,$y as am,wg as an,gg as ao,ug as ap,dg as aq,kg as ar,by as as,Sg as at,OX as au,fX as av,vX as aw,$X as ax,cX as ay,bX as az,qX as b,I1 as b0,_1 as b1,FY as b2,RY as b3,LY as b4,TY as b5,BY as b6,Pi as b7,_3 as b8,U3 as b9,IY as ba,wC as bb,UY as bc,eX as bd,r8 as be,MY as bf,_Y as bg,v$ as bh,SW as bi,Py as bj,NY as bk,z8 as c,Ql as d,Ts as e,lX as f,hX as g,PX as h,_X as i,ir as j,Lf as k,AM as l,HY as m,QY as n,ZY as o,se as p,Hr as q,po as r,Br as s,fo as t,Zt as u,xX as v,LX as w,NX as x,d9 as y,Aw as z};