@visulima/vis 1.0.0-alpha.12 → 1.0.0-alpha.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/packem_chunks/bin.js +1 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## @visulima/vis [1.0.0-alpha.13](https://github.com/visulima/visulima/compare/@visulima/vis@1.0.0-alpha.12...@visulima/vis@1.0.0-alpha.13) (2026-05-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Dependencies
|
|
5
|
+
|
|
6
|
+
* **@visulima/cerebro:** upgraded to 3.0.0-alpha.16
|
|
7
|
+
* **@visulima/fs:** upgraded to 5.0.0-alpha.15
|
|
8
|
+
* **@visulima/package:** upgraded to 5.0.0-alpha.14
|
|
9
|
+
* **@visulima/pail:** upgraded to 4.0.0-alpha.14
|
|
10
|
+
* **@visulima/tui:** upgraded to 1.0.0-alpha.8
|
|
11
|
+
|
|
1
12
|
## @visulima/vis [1.0.0-alpha.12](https://github.com/visulima/visulima/compare/@visulima/vis@1.0.0-alpha.11...@visulima/vis@1.0.0-alpha.12) (2026-05-06)
|
|
2
13
|
|
|
3
14
|
### Features
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Ru=Object.defineProperty;var d=(e,t)=>Ru(e,"name",{value:t,configurable:!0});import{createRequire as Cu}from"node:module";import{lazyNamed as de,createCerebro as Nu}from"@visulima/cerebro";import Iu from"@visulima/cerebro/command/completion";import Pu from"@visulima/cerebro/compile-cache";import{applyHeapTuning as Au}from"@visulima/cerebro/heap-tuning";import{errorHandlerPlugin as Tu}from"@visulima/cerebro/plugins/error-handler";import{isAccessibleSync as k,readFileSync as P,ensureDirSync as rt,readJsonSync as le,walkSync as yn,writeFileSync as oe,writeJsonSync as vn,removeSync as Du}from"@visulima/fs";import{findMonorepoRootSync as Dc}from"@visulima/package";import{join as y,resolve as jr,dirname as Ar,relative as Lc,parse as So}from"@visulima/path";import{useApp as Bc,useInput as Mc,Dialog as Hs,Text as C,Box as K,ScrollView as Lu,ScrollBar as Bu,useWindowSize as Mu,renderToString as Vc,Table as Vu,render as _u}from"@visulima/tui";import qt,{useState as gr,useRef as kr,useEffect as _c,useCallback as Fc,useSyncExternalStore as Fu}from"react";import{jsx as R,jsxs as G}from"react/jsx-runtime";import{resolveEditorconfigDefaults as Ku,resolveInstall as zu,resolveAdd as Hu,whichBin as Yu,execPmCommandInteractive as Xu,resolveDedupe as Qu,resolveDlx as Zu,resolveExec as ed,resolveLink as td,resolvePmCommand as rd,resolveRemove as nd,resolveUnlink as sd,resolveWhy as od,detectPackageManager as id,resolveOutdated as ad}from"#native";import{looksLikeInputUri as cd,parseInputUri as ld}from"@visulima/task-runner";import{m as cn}from"../packem_shared/otel-DxDUPJJH.js";import{findVisConfigFile as Nt,loadVisConfig as Xi}from"./applyDefaults.js";import{readYamlSync as Dr,writeYamlSync as ud}from"@visulima/fs/yaml";import{findCacheDirSync as Uc}from"@visulima/find-cache-dir";import{hyperlink as dd}from"@visulima/ansi";import{dim as Wt,red as Xn,bold as Ze,yellow as hr,cyan as gt,magenta as fd,green as md}from"@visulima/colorize";import{createPail as gd}from"@visulima/pail";const xu=Cu(import.meta.url),_t=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,hn=d(e=>{if(typeof _t<"u"&&_t.versions&&_t.versions.node){const[t,r]=_t.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return _t.getBuiltinModule(e)}return xu(e)},"__cjs_getBuiltinModule"),{env:Yn}=_t,{spawnSync:St,execSync:qu}=hn("node:child_process"),{writeFileSync:ue,statSync:Kt,readdirSync:Ge,rmSync:jo,existsSync:Uu,copyFileSync:Wu,unlinkSync:Tr,mkdirSync:Gu,cpSync:Ju}=hn("node:fs"),{platform:pd,homedir:Zt}=hn("node:os"),{createInterface:qc}=hn("node:readline");var hd="1.0.0-alpha.11";const ln={version:hd};var yd=Object.defineProperty,vd=d((e,t)=>yd(e,"name",{value:t,configurable:!0}),"e$Z");const bd={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:vd(()=>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 kd=Object.defineProperty,$d=d((e,t)=>kd(e,"name",{value:t,configurable:!0}),"e$Y");const wd={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:$d(()=>import("./handler27.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 Sd=Object.defineProperty,jd=d((e,t)=>Sd(e,"name",{value:t,configurable:!0}),"e$X");const Od={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:jd(()=>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}]},Wc={description:"Output format: table or json (default: table)",name:"format",type:String},Ed={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:de(()=>import("./handler28.js"),"aiProvidersExecute"),name:"providers",options:[Wc]},Rd={commandPath:["ai"],description:"Test the best available AI provider with a quick prompt",examples:[["vis ai test","Test the selected provider"]],group:"System",loader:de(()=>import("./handler28.js"),"aiTestExecute"),name:"test",options:[]},Cd={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:de(()=>import("./handler28.js"),"aiFixExecute"),name:"fix",options:[Wc,{description:"Use a specific run ID from .task-runner/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}]},xd={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:de(()=>import("./handler28.js"),"aiRootExecute"),name:"ai",options:[]},Nd={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:de(()=>import("./handler28.js"),"aiDiscoverHelpExecute"),name:"discover-help",options:[]},Id={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:de(()=>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 .task-runner/runs/ instead of the latest run",name:"run",type:String},{description:"Per-task validation timeout in seconds (default: 1800)",name:"validation-timeout",type:Number}]},Pd={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:de(()=>import("./heal-accept.js"),"aiHealAccept"),name:"accept",options:[{description:"Use a specific run ID from .task-runner/runs/ instead of the latest run",name:"run",type:String},{description:"Per-task validation timeout in seconds (default: 1800)",name:"validation-timeout",type:Number}]},Gc=[xd,Nd,Ed,Rd,Cd,Id,Pd],bE=Object.defineProperty({__proto__:null,default:Gc},Symbol.toStringTag,{value:"Module"});var Ad=Object.defineProperty,Td=d((e,t)=>Ad(e,"name",{value:t,configurable:!0}),"e$W");const Dd={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:Td(()=>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 Ld=Object.defineProperty,Bd=d((e,t)=>Ld(e,"name",{value:t,configurable:!0}),"e$V");const Md={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:Bd(()=>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 Vd=Object.defineProperty,_d=d((e,t)=>Vd(e,"name",{value:t,configurable:!0}),"e$U");const Fd={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:_d(()=>import("./handler29.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}]},Lr={description:"Cache directory (overrides config and default). Relative paths are resolved against the workspace root.",name:"cache-dir",type:String},bn={description:"Cache scope: 'shared' (default — main worktree's cache), 'worktree' (this checkout's local cache), or 'all' (both)",name:"scope",type:String},Jc={description:"Cache type: 'task' (workspace task cache), 'ai' (AI response cache), 'socket' (Socket.dev report cache), or 'all' (default)",name:"type",type:String},qd={commandPath:["cache"],description:"List all cache entries",examples:[["vis cache list","List all cache entries"]],group:"Workspace",loader:de(()=>import("./handler14.js"),"cacheListExecute"),name:"list",options:[Lr,bn,{description:"Output format: table or json (default: table)",name:"format",type:String}]},Ud={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:de(()=>import("./handler14.js"),"cacheCleanExecute"),name:"clean",options:[Lr,Jc,{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}]},Wd={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:de(()=>import("./handler14.js"),"cachePruneExecute"),name:"prune",options:[Lr,bn,{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}]},Gd={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:de(()=>import("./handler14.js"),"cacheSizeExecute"),name:"size",options:[Lr,bn,Jc,{description:"Output format: table or json (default: table)",name:"format",type:String}]},Oo={description:"Output format: table or json (default: table)",name:"format",type:String},Kc={description:"Use a specific run ID from .task-runner/runs/ instead of the latest run",name:"run",type:String},Jd={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:de(()=>import("./handler14.js"),"cacheWhyExecute"),name:"why",options:[Oo,Kc]},Kd={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:de(()=>import("./handler14.js"),"cacheHashExecute"),name:"hash",options:[Oo,Kc]},zd={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:de(()=>import("./handler14.js"),"cacheVerifyExecute"),name:"verify",options:[Lr,bn,Oo]},Hd={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:de(()=>import("./doctor-probe.js"),"cacheDoctorExecute"),name:"doctor",options:[{description:"Override remote cache URL (otherwise read from vis.config.ts remoteCache.url)",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}]},Yd=[qd,Ud,Wd,Gd,Jd,Kd,zd,Hd];var Xd=Object.defineProperty,Qd=d((e,t)=>Xd(e,"name",{value:t,configurable:!0}),"e$T");const Zd={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:Qd(()=>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",defaultValue:!1,description:"Check only devDependencies (npm/yarn mode)",name:"dev",type:Boolean},{alias:"P",defaultValue:!1,description:"Check only dependencies (npm/yarn mode)",name:"prod",type:Boolean}]};var ef=Object.defineProperty,tf=d((e,t)=>ef(e,"name",{value:t,configurable:!0}),"e$S");const rf={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:tf(()=>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 nf=Object.defineProperty,sf=d((e,t)=>nf(e,"name",{value:t,configurable:!0}),"e$R");const of={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:sf(()=>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 af=Object.defineProperty,cf=d((e,t)=>af(e,"name",{value:t,configurable:!0}),"e$Q");const lf={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:cf(()=>import("./handler44.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 pf=Object.defineProperty,uf=d((e,t)=>pf(e,"name",{value:t,configurable:!0}),"e$P");const df={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:uf(()=>import("./handler8.js"),"loader"),name:"dedupe",options:[{defaultValue:!1,description:"Preview changes without modifying files (dry-run)",name:"check",type:Boolean}]};var ff=Object.defineProperty,mf=d((e,t)=>ff(e,"name",{value:t,configurable:!0}),"e$O");const gf={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:mf(()=>import("./handler46.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 hf=Object.defineProperty,yf=d((e,t)=>hf(e,"name",{value:t,configurable:!0}),"e$N");const vf={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:yf(()=>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 bf=Object.defineProperty,kf=d((e,t)=>bf(e,"name",{value:t,configurable:!0}),"e$M");const $f={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:kf(()=>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}]};var wf=Object.defineProperty,Sf=d((e,t)=>wf(e,"name",{value:t,configurable:!0}),"e$L");const jf={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:Sf(()=>import("./handler43.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 Of=Object.defineProperty,Ef=d((e,t)=>Of(e,"name",{value:t,configurable:!0}),"e$K");const Rf={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:Ef(()=>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 Cf=Object.defineProperty,xf=d((e,t)=>Cf(e,"name",{value:t,configurable:!0}),"e$J");const Nf={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:xf(()=>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 If=Object.defineProperty,Pf=d((e,t)=>If(e,"name",{value:t,configurable:!0}),"t$x");const Af={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:Pf(()=>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}]},zc=["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"],Hc=".vis-hooks",kE=[".pre-commit-config.yaml",".pre-commit-config.yml","prek.toml"],$E={commit:"pre-commit","merge-commit":"pre-merge-commit",push:"pre-push"},wE=new Set(["commit-msg","post-checkout","post-commit","post-merge","post-rewrite","pre-commit","pre-merge-commit","pre-push","pre-rebase","prepare-commit-msg"]),SE=new Set(["commit-msg","post-checkout","post-merge","post-rewrite","pre-rebase","prepare-commit-msg"]),jE=new Set(["fail","script","system"]);var Tf=Object.defineProperty,It=d((e,t)=>Tf(e,"name",{value:t,configurable:!0}),"e$H");const Pt={defaultValue:Hc,description:"Custom hooks directory",name:"hooks-dir",type:String},At=[{defaultValue:void 0,description:"Set to 0 to disable git hooks, set to 2 for debug output",name:"VIS_GIT_HOOKS",type:String}],Df={commandPath:["hook"],description:"Install git hooks for the workspace (migrates husky / prek on prompt)",env:[...At],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:It(()=>import("./handler39.js").then(e=>({default:e.hookInstallExecute})),"loader"),name:"install",options:[Pt]},Lf={commandPath:["hook"],description:"Remove git hooks and reset core.hooksPath",env:[...At],examples:[["vis hook uninstall","Remove git hooks and reset core.hooksPath"]],group:"Scaffold & Config",loader:It(()=>import("./handler39.js").then(e=>({default:e.hookUninstallExecute})),"loader"),name:"uninstall",options:[Pt]},Bf={commandPath:["hook"],description:"Migrate from husky or prek to vis hooks (auto-detected)",env:[...At],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:It(()=>import("./handler39.js").then(e=>({default:e.hookMigrateExecute})),"loader"),name:"migrate",options:[Pt,{defaultValue:!1,description:"Preview migrate without writing files",name:"dry-run",type:Boolean}]},Mf={commandPath:["hook"],description:"Show configured hooks grouped by stage",env:[...At],examples:[["vis hook list","Show configured hooks grouped by stage"]],group:"Scaffold & Config",loader:It(()=>import("./handler39.js").then(e=>({default:e.hookListExecute})),"loader"),name:"list",options:[Pt]},Vf={commandPath:["hook"],description:"Sanity-check installed hooks and the bundled runner",env:[...At],examples:[["vis hook validate","Sanity-check installed hooks and the bundled runner"]],group:"Scaffold & Config",loader:It(()=>import("./handler39.js").then(e=>({default:e.hookValidateExecute})),"loader"),name:"validate",options:[Pt]},_f={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:[...At],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:It(()=>import("./handler39.js").then(e=>({default:e.hookRunExecute})),"loader"),name:"run",options:[Pt,{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}]},Ff={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:[...At],examples:[["vis hook add secrets","Add a pre-commit hook that runs `vis secrets --staged`"]],group:"Scaffold & Config",loader:It(()=>import("./handler39.js").then(e=>({default:e.hookAddExecute})),"loader"),name:"add",options:[Pt]},qf=[Df,Lf,Bf,Mf,Vf,_f,Ff];var Uf=Object.defineProperty,Wf=d((e,t)=>Uf(e,"name",{value:t,configurable:!0}),"e$G");const Gf={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:Wf(()=>import("./handler30.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 Jf=Object.defineProperty,Kf=d((e,t)=>Jf(e,"name",{value:t,configurable:!0}),"e$F");const zf={description:"Remove vis from the system (self-uninstall)",examples:[["vis implode","Interactive uninstall"],["vis implode --yes","Non-interactive uninstall (CI)"]],group:"System",loader:Kf(()=>import("./handler12.js"),"loader"),name:"implode",options:[{alias:"y",defaultValue:!1,description:"Skip confirmation prompt",name:"yes",type:Boolean}]};var Hf=Object.defineProperty,Yf=d((e,t)=>Hf(e,"name",{value:t,configurable:!0}),"e$E");const Xf={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:Yf(()=>import("./handler13.js"),"loader"),name:"info",options:[{defaultValue:!1,description:"Output as JSON",name:"json",type:Boolean}]};var Qf=Object.defineProperty,Zf=d((e,t)=>Qf(e,"name",{value:t,configurable:!0}),"e$D");const em={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:Zf(()=>import("./handler15.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 tm=Object.defineProperty,rm=d((e,t)=>tm(e,"name",{value:t,configurable:!0}),"e$C");const nm={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:rm(()=>import("./handler16.js"),"loader"),name:"install",options:[{alias:"P",defaultValue:!1,description:"Skip devDependencies",name:"prod",type:Boolean},{alias:"D",defaultValue:!1,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 sm=Object.defineProperty,om=d((e,t)=>sm(e,"name",{value:t,configurable:!0}),"e$B");const im={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:om(()=>import("./handler17.js"),"loader"),name:"link"};var am=Object.defineProperty,cm=d((e,t)=>am(e,"name",{value:t,configurable:!0}),"e$A");const lm={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:cm(()=>import("./handler45.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 pm=Object.defineProperty,um=d((e,t)=>pm(e,"name",{value:t,configurable:!0}),"e$z");const dm={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:um(()=>import("./handler31.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 fm=Object.defineProperty,Ae=d((e,t)=>fm(e,"name",{value:t,configurable:!0}),"t$r");const Me=[{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}],mm={commandPath:["migrate"],description:"Migrate dependencies and scripts to vis",group:"Scaffold & Config",loader:Ae(()=>import("./handler32.js").then(e=>({default:e.migrateDepsExecute})),"loader"),name:"deps",options:[...Me]},gm={commandPath:["migrate"],description:"Inline lint-staged configuration into vis",group:"Scaffold & Config",loader:Ae(()=>import("./handler32.js").then(e=>({default:e.migrateLintStagedExecute})),"loader"),name:"lint-staged",options:[...Me]},hm={commandPath:["migrate"],description:"Inline nano-staged configuration into vis",group:"Scaffold & Config",loader:Ae(()=>import("./handler32.js").then(e=>({default:e.migrateNanoStagedExecute})),"loader"),name:"nano-staged",options:[...Me]},ym={commandPath:["migrate"],description:"Migrate turborepo tasks/config to vis",group:"Scaffold & Config",loader:Ae(()=>import("./handler32.js").then(e=>({default:e.migrateTurborepoExecute})),"loader"),name:"turborepo",options:[...Me]},vm={commandPath:["migrate"],description:"Migrate nx targets/config to vis",group:"Scaffold & Config",loader:Ae(()=>import("./handler32.js").then(e=>({default:e.migrateNxExecute})),"loader"),name:"nx",options:[...Me]},bm={commandPath:["migrate"],description:"Migrate moon tasks/templates to vis",group:"Scaffold & Config",loader:Ae(()=>import("./handler32.js").then(e=>({default:e.migrateMoonExecute})),"loader"),name:"moon",options:[...Me,{defaultValue:!1,description:"Copy .moon/templates/* into .vis/templates/* so `vis generate` works without .moon/",name:"copy-templates",type:Boolean}]},km={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:Ae(()=>import("./handler32.js").then(e=>({default:e.migrateGitleaksExecute})),"loader"),name:"gitleaks",options:[...Me]},$m={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:Ae(()=>import("./handler32.js").then(e=>({default:e.migrateKingfisherExecute})),"loader"),name:"kingfisher",options:[...Me]},wm={commandPath:["migrate"],description:"Replace secretlint with `vis secrets`",examples:[["vis migrate secretlint","Replace secretlint with `vis secrets`"]],group:"Scaffold & Config",loader:Ae(()=>import("./handler32.js").then(e=>({default:e.migrateSecretlintExecute})),"loader"),name:"secretlint",options:[...Me]},Sm={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:Ae(()=>import("./handler32.js").then(e=>({default:e.migrateSyncpackExecute})),"loader"),name:"syncpack",options:[...Me]},jm={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:Ae(()=>import("./handler32.js").then(e=>({default:e.migrateSherifExecute})),"loader"),name:"sherif",options:[...Me]},Om={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:Ae(()=>import("./handler32.js").then(e=>({default:e.migrateVerifyExecute})),"loader"),name:"verify",options:[]},Em=[mm,gm,hm,ym,vm,bm,km,$m,wm,Sm,jm,Om];var Rm=Object.defineProperty,Cm=d((e,t)=>Rm(e,"name",{value:t,configurable:!0}),"r$C");const xm=new Set(["--cwd"]),Nm=new Set(["--help","--version","-h","-V"]),Im=Cm(e=>{const t=[];for(let r=0;r<e.length;r+=1){const n=e[r];if(n!==void 0){if(Nm.has(n))return!1;if(n.startsWith("-")){const s=n.indexOf("="),o=s===-1?n:n.slice(0,s);if(xm.has(o)&&s===-1){const i=e[r+1];i!==void 0&&!i.startsWith("-")&&(r+=1)}continue}t.push(n)}}return t.length===1&&t[0]==="migrate"},"isBareMigrateInvocation");var Pm=Object.defineProperty,Am=d((e,t)=>Pm(e,"name",{value:t,configurable:!0}),"t$q");const Qi=Am(e=>e in Yn&&Yn[e]!=="0"&&Yn[e]!=="false","check"),pt=Qi("CI")||Qi("CONTINUOUS_INTEGRATION");var Tm=Object.defineProperty,Qn=d((e,t)=>Tm(e,"name",{value:t,configurable:!0}),"i$r");class Dm{static{d(this,"MigrateStore")}static{Qn(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=Qn(()=>this.#e,"getSnapshot");subscribe=Qn(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 Lm=Object.defineProperty,Bm=d((e,t)=>Lm(e,"name",{value:t,configurable:!0}),"f$s");const Zi=Bm(({autoExitSeconds:e,onCancel:t,visible:r})=>{const{exit:n}=Bc(),[s,o]=gr(e||3),i=kr(null),a=kr(0);_c(()=>{if(!r)return;const l=e||3;o(l),a.current=Date.now();let p=l;return i.current=setInterval(()=>{p-=1,p<=0?(i.current&&(clearInterval(i.current),i.current=null),o(0),n()):o(p)},1e3),()=>{i.current&&(clearInterval(i.current),i.current=null)}},[r,e,n]);const c=Fc(()=>{i.current&&(clearInterval(i.current),i.current=null),t()},[t]);return Mc((l,p)=>{Date.now()-a.current<200||(l==="q"?n():c())},{isActive:r}),R(Hs,{backgroundColor:"#1e1e1e",footer:G(C,{dimColor:!0,children:["Press"," ",R(C,{bold:!0,color:"white",children:"q"})," ","to exit,"," ",R(C,{bold:!0,color:"white",children:"any key"})," ","to stay"]}),title:`Exiting in ${s}…`,visible:r,width:50,children:R(C,{dimColor:!0,children:"Stay to explore the results interactively."})})},"QuitDialog");var Mm=Object.defineProperty,Yc=d((e,t)=>Mm(e,"name",{value:t,configurable:!0}),"n$r");const Vm=Yc(e=>{if(e.startsWith("⚠"))return"yellow";e.startsWith("── ")||e.startsWith("[dry-run]")},"colorForPreviewLine"),_m=Yc(({focused:e,item:t,scrollRef:r})=>t?G(K,{borderColor:e?"white":"gray",borderStyle:"single",flexDirection:"column",flexGrow:1,children:[R(K,{flexShrink:0,paddingTop:1,paddingX:2,children:R(C,{bold:!0,color:"white",children:t.entry.title})}),R(K,{flexShrink:0,paddingBottom:1,paddingX:2,children:R(C,{dimColor:!0,children:t.entry.description})}),R(Lu,{flexGrow:1,flexShrink:1,paddingX:2,ref:r,scrollbar:!0,scrollbarColor:"gray",scrollbarStyle:"block",children:G(K,{flexDirection:"column",children:[R(C,{dimColor:!0,children:"── What will change ──"}),R(C,{}),t.preview.length===0&&R(C,{dimColor:!0,children:"(no preview available)"}),t.preview.map((s,o)=>{const i=Vm(s);return s===""?R(C,{},`blank-${String(o)}`):R(C,{color:i,children:s},`${String(o)}-${s.slice(0,20)}`)})]})})]}):R(K,{alignItems:"center",borderColor:"gray",borderStyle:"single",flexDirection:"column",flexGrow:1,justifyContent:"center",children:R(C,{dimColor:!0,children:"No migration selected"})}),"MigrateDetailPanel");var Fm=Object.defineProperty,Xc=d((e,t)=>Fm(e,"name",{value:t,configurable:!0}),"g$l");const qm=Xc(({checked:e,isSelected:t,item:r})=>{const n=e?"☑":"☐",s=r.preview.length;return G(K,{flexShrink:0,height:1,children:[R(C,{children:t?">":" "}),G(C,{color:e?"white":"gray",children:[" ",n," "]}),R(K,{flexGrow:1,children:R(C,{bold:t,inverse:t,wrap:"truncate",children:r.entry.title})}),G(C,{dimColor:!0,children:[" ",s," ","change",s===1?"":"s"," "]})]})},"MigrationRow"),Um=Xc(({checkedItems:e,focused:t,isDryRun:r,items:n,scrollOffset:s,selectedIndex:o,viewportHeight:i})=>{const a=t?"white":"gray",c=n.filter(u=>e.has(u.entry.id)).length,l=n.map((u,m)=>R(qm,{checked:e.has(u.entry.id),isSelected:m===o,item:u},u.entry.id)),p=n.length,f=p>i&&i>0;return G(K,{borderColor:a,borderStyle:"single",flexDirection:"column",flexGrow:1,children:[G(K,{flexShrink:0,gap:1,paddingX:1,children:[R(C,{bold:!0,inverse:!0,children:" MIGRATE "}),G(C,{wrap:"truncate",children:[n.length," ","applicable"]}),c>0&&G(C,{dimColor:!0,children:[" — ",c," selected"]}),r&&R(C,{color:"yellow",children:" (dry-run)"})]}),G(K,{flexDirection:"row",flexGrow:1,overflow:"hidden",children:[R(K,{flexDirection:"column",flexGrow:1,overflow:"hidden",paddingLeft:1,children:R(K,{flexDirection:"column",marginTop:-s,children:l})}),f&&R(K,{flexShrink:0,marginLeft:1,marginRight:1,children:R(Bu,{contentHeight:p,placement:"inset",scrollOffset:s,style:"block",viewportHeight:i})})]})]})},"MigrateListPanel");var Wm=Object.defineProperty,Gm=d((e,t)=>Wm(e,"name",{value:t,configurable:!0}),"N$f");const Jm=100,Km=40,zm=10,Hm=Gm(({autoExitSeconds:e=0,isDryRun:t,store:r})=>{const{exit:n}=Bc(),{columns:s,rows:o}=Mu(),i=Fu(r.subscribe,r.getSnapshot),[a,c]=gr(!1),[l,p]=gr(!1),[f,u]=gr(!1),[m,h]=gr(0),g=kr(null),b=kr(null),v=kr(null),$=i.items[i.selectedIndex]??null,j=Math.max(1,o-6),x=Fc(z=>{h(S=>z>=S+j?Math.max(0,z-j+1):z<S?Math.max(0,z):S)},[j]);if(_c(()=>{b.current?.scrollToTop()},[$?.entry.id]),Mc((z,S)=>{if(z==="c"&&S.ctrl){n();return}if(!f){if(l){z==="u"||S.return?(p(!1),r.startApply(),n(r.getCheckedItems())):S.escape||z==="q"?p(!1):S.downArrow||z==="j"?v.current?.scrollBy(1):(S.upArrow||z==="k")&&v.current?.scrollBy(-1);return}if(a){S.escape||z==="?"?c(!1):z==="q"?(c(!1),u(!0)):S.downArrow||z==="j"?g.current?.scrollBy(1):(S.upArrow||z==="k")&&g.current?.scrollBy(-1);return}if(z==="?"){c(!0);return}if(z==="q"){u(!0);return}if(S.tab){r.setFocusedPanel(i.focusedPanel==="list"?"detail":"list");return}if(i.focusedPanel==="list"){if(S.downArrow||z==="j"){const O=Math.min(i.selectedIndex+1,i.items.length-1);r.setSelectedIndex(O),x(O);return}if(S.upArrow||z==="k"){const O=Math.max(i.selectedIndex-1,0);r.setSelectedIndex(O),x(O);return}if(S.pageDown){const O=Math.min(i.selectedIndex+10,i.items.length-1);r.setSelectedIndex(O),x(O);return}if(S.pageUp){const O=Math.max(i.selectedIndex-10,0);r.setSelectedIndex(O),x(O);return}if(S.home){r.setSelectedIndex(0),h(0);return}if(S.end){const O=i.items.length-1;r.setSelectedIndex(O),x(O);return}if(z===" "||S.return){$&&r.toggleCheck($.entry.id);return}if(z==="a"){r.toggleAll();return}if(z==="u"&&!t&&i.checkedItems.size>0){p(!0);return}S.rightArrow&&r.setFocusedPanel("detail");return}if(i.focusedPanel==="detail"){if(S.escape||S.leftArrow){r.setFocusedPanel("list");return}if(S.downArrow||z==="j"){b.current?.scrollBy(1);return}if(S.upArrow||z==="k"){b.current?.scrollBy(-1);return}if(S.pageDown){b.current?.scrollBy(10);return}if(S.pageUp){b.current?.scrollBy(-10);return}if(S.home){b.current?.scrollToTop();return}S.end&&b.current?.scrollToBottom()}}},{isActive:!0}),s<Km||o<zm)return R(K,{alignItems:"center",height:o,justifyContent:"center",width:s,children:G(C,{color:"yellow",children:["Terminal too small (",s,"x",o,")"]})});const N=s>=Jm,I=[G(K,{gap:1,children:[R(C,{bold:!0,color:"white",children:"q"}),R(C,{dimColor:!0,children:"QUIT"})]},"q"),G(K,{gap:1,children:[R(C,{bold:!0,color:"white",children:"?"}),R(C,{dimColor:!0,children:"HELP"})]},"?"),G(K,{gap:1,children:[R(C,{bold:!0,color:"white",children:"↑↓"}),R(C,{dimColor:!0,children:"NAV"})]},"nav"),G(K,{gap:1,children:[R(C,{bold:!0,color:"white",children:"Space"}),R(C,{dimColor:!0,children:"CHECK"})]},"sp"),G(K,{gap:1,children:[R(C,{bold:!0,color:"white",children:"a"}),R(C,{dimColor:!0,children:"ALL"})]},"a")];!t&&i.checkedItems.size>0&&I.push(G(K,{gap:1,children:[R(C,{bold:!0,color:"green",children:"u"}),R(C,{dimColor:!0,children:"APPLY"})]},"u")),I.push(G(K,{gap:1,children:[R(C,{bold:!0,color:"white",children:"Tab"}),R(C,{dimColor:!0,children:"PANEL"})]},"tab"));const _=R(K,{borderBottom:!1,borderColor:"gray",borderLeft:!1,borderRight:!1,borderStyle:"single",flexShrink:0,children:R(K,{flexWrap:"wrap",gap:2,paddingX:1,children:I})}),w=G(Hs,{footer:G(C,{dimColor:!0,children:[R(C,{bold:!0,color:"white",children:"↑↓"})," scroll ",R(C,{bold:!0,color:"white",children:"?"}),"/",R(C,{bold:!0,color:"white",children:"Esc"})," close"]}),scrollRef:g,title:"KEYBOARD SHORTCUTS",visible:a,width:52,children:[G(K,{flexDirection:"column",marginBottom:1,children:[R(C,{bold:!0,color:"white",children:"NAVIGATION"}),G(C,{children:[R(C,{bold:!0,color:"white",children:" ↑/k"}),R(C,{dimColor:!0,children:" Move up"})]}),G(C,{children:[R(C,{bold:!0,color:"white",children:" ↓/j"}),R(C,{dimColor:!0,children:" Move down"})]}),G(C,{children:[R(C,{bold:!0,color:"white",children:" Tab"}),R(C,{dimColor:!0,children:" Switch panel"})]}),G(C,{children:[R(C,{bold:!0,color:"white",children:" →/←"}),R(C,{dimColor:!0,children:" Focus detail/list"})]})]}),G(K,{flexDirection:"column",marginBottom:1,children:[R(C,{bold:!0,color:"white",children:"SELECTION"}),G(C,{children:[R(C,{bold:!0,color:"white",children:" Space"}),R(C,{dimColor:!0,children:" Toggle migration"})]}),G(C,{children:[R(C,{bold:!0,color:"white",children:" a"}),R(C,{dimColor:!0,children:" Toggle all"})]})]}),G(K,{flexDirection:"column",children:[R(C,{bold:!0,color:"white",children:"ACTIONS"}),!t&&G(C,{children:[R(C,{bold:!0,color:"white",children:" u"}),R(C,{dimColor:!0,children:" Apply selected migrations"})]}),G(C,{children:[R(C,{bold:!0,color:"white",children:" q"}),R(C,{dimColor:!0,children:" Quit"})]}),G(C,{children:[R(C,{bold:!0,color:"white",children:" ?"}),R(C,{dimColor:!0,children:" Toggle help"})]})]})]}),M=r.getCheckedItems(),L=R(K,{alignItems:"center",flexDirection:"column",children:G(C,{dimColor:!0,children:["Press ",R(C,{bold:!0,color:"white",children:"u"})," or ",R(C,{bold:!0,color:"white",children:"Enter"})," to confirm, ",R(C,{bold:!0,color:"white",children:"Esc"})," to cancel"]})}),be=R(Hs,{footer:L,scrollRef:v,title:`Apply ${String(M.length)} migration${M.length===1?"":"s"}?`,visible:l,width:70,children:M.map(z=>G(K,{gap:1,children:[G(C,{children:[" ",z.entry.title]}),G(C,{dimColor:!0,children:["(",z.preview.length," ","change",z.preview.length===1?"":"s",")"]})]},z.entry.id))}),ee=R(Um,{checkedItems:i.checkedItems,focused:i.focusedPanel==="list",isDryRun:t,items:i.items,scrollOffset:m,selectedIndex:i.selectedIndex,viewportHeight:j}),Xe=R(_m,{focused:i.focusedPanel==="detail",item:$,scrollRef:b});if(N){const z=Math.floor(s*.55);return G(K,{flexDirection:"column",height:o,width:s,children:[G(K,{flexDirection:"row",flexGrow:1,children:[R(K,{flexGrow:1,children:ee}),R(K,{width:z,children:Xe})]}),_,be,R(Zi,{autoExitSeconds:e||3,onCancel:d(()=>{u(!1)},"onCancel"),visible:f}),w]})}const dr=Math.floor(o*.45);return G(K,{flexDirection:"column",height:o,width:s,children:[R(K,{height:dr,children:ee}),R(K,{flexGrow:1,children:Xe}),_,be,R(Zi,{autoExitSeconds:e||3,onCancel:d(()=>{u(!1)},"onCancel"),visible:f}),w]})},"VisMigrateApp");var Ym=Object.defineProperty,Eo=d((e,t)=>Ym(e,"name",{value:t,configurable:!0}),"r$A");const Xm=/\n([ \t]+)/,Qm=Eo(e=>{const{indent:t,lineEnding:r}=Ku(e),n={};return t!==void 0&&(n.indent=t),(r==="lf"||r==="crlf")&&(n.lineEnding=r),n},"resolveEditorConfigDefaults"),He=Eo((e,t,r={})=>{const{defaultIndent:n=" ",useEditorconfig:s=!0}=r;if(s){const{indent:o}=Qm(e);if(o!==void 0)return o}if(t!==void 0){const o=Xm.exec(t);if(o?.[1]!==void 0)return o[1]}return n},"resolveIndentForFile"),Ro=Eo((e,t={})=>{const r=k(e)?P(e):void 0;return He(e,r,t)},"resolveIndentForExistingFile");var Zm=Object.defineProperty,eg=d((e,t)=>Zm(e,"name",{value:t,configurable:!0}),"t$p");const Qc=[".lintstagedrc.json",".lintstagedrc"],Zc=[".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"],Co=[...Qc,...Zc],tg=[/^((?:[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/],el=[".nano-staged.json",".nanostagedrc"],tl=[".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"],xo=[...el,...tl],rg=[/^((?:[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/],rl=["husky","lint-staged","nano-staged"],ng=/\(is-ci \|\| husky \|\| exit 0\)\s*&&\s*/g,sg=/\bhusky(?:\s+install)?\s*&&\s*/g,og=/\s*&&\s*husky(?:\s+install)?/g,ig=/\s*\|\|\s*husky(?:\s+install)?/g,ag=[ng,sg,og,ig],nl=eg(e=>{if(e==="husky"||e==="husky install")return;let t=e;for(const r of ag)t=t.replace(r,"");return t=t.trim(),t===e?e:t||void 0},"cleanHuskyFromScript");var cg=Object.defineProperty,pn=d((e,t)=>cg(e,"name",{value:t,configurable:!0}),"o$u");const lg=/\/$/,pg=pn(e=>{let t='"$0"';for(let r=0;r<e;r+=1)t=`"$(dirname ${t})"`;return t},"nestedDirname"),ug=pn(e=>{const t=e.split("/").filter(r=>r!==""&&r!==".").length+2;return`#!/usr/bin/env sh
|
|
1
|
+
var Ru=Object.defineProperty;var d=(e,t)=>Ru(e,"name",{value:t,configurable:!0});import{createRequire as Cu}from"node:module";import{lazyNamed as de,createCerebro as Nu}from"@visulima/cerebro";import Iu from"@visulima/cerebro/command/completion";import Pu from"@visulima/cerebro/compile-cache";import{applyHeapTuning as Au}from"@visulima/cerebro/heap-tuning";import{errorHandlerPlugin as Tu}from"@visulima/cerebro/plugins/error-handler";import{isAccessibleSync as k,readFileSync as P,ensureDirSync as rt,readJsonSync as le,walkSync as yn,writeFileSync as oe,writeJsonSync as vn,removeSync as Du}from"@visulima/fs";import{findMonorepoRootSync as Dc}from"@visulima/package";import{join as y,resolve as jr,dirname as Ar,relative as Lc,parse as So}from"@visulima/path";import{useApp as Bc,useInput as Mc,Dialog as Hs,Text as C,Box as K,ScrollView as Lu,ScrollBar as Bu,useWindowSize as Mu,renderToString as Vc,Table as Vu,render as _u}from"@visulima/tui";import qt,{useState as gr,useRef as kr,useEffect as _c,useCallback as Fc,useSyncExternalStore as Fu}from"react";import{jsx as R,jsxs as G}from"react/jsx-runtime";import{resolveEditorconfigDefaults as Ku,resolveInstall as zu,resolveAdd as Hu,whichBin as Yu,execPmCommandInteractive as Xu,resolveDedupe as Qu,resolveDlx as Zu,resolveExec as ed,resolveLink as td,resolvePmCommand as rd,resolveRemove as nd,resolveUnlink as sd,resolveWhy as od,detectPackageManager as id,resolveOutdated as ad}from"#native";import{looksLikeInputUri as cd,parseInputUri as ld}from"@visulima/task-runner";import{m as cn}from"../packem_shared/otel-DxDUPJJH.js";import{findVisConfigFile as Nt,loadVisConfig as Xi}from"./applyDefaults.js";import{readYamlSync as Dr,writeYamlSync as ud}from"@visulima/fs/yaml";import{findCacheDirSync as Uc}from"@visulima/find-cache-dir";import{hyperlink as dd}from"@visulima/ansi";import{dim as Wt,red as Xn,bold as Ze,yellow as hr,cyan as gt,magenta as fd,green as md}from"@visulima/colorize";import{createPail as gd}from"@visulima/pail";const xu=Cu(import.meta.url),_t=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,hn=d(e=>{if(typeof _t<"u"&&_t.versions&&_t.versions.node){const[t,r]=_t.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return _t.getBuiltinModule(e)}return xu(e)},"__cjs_getBuiltinModule"),{env:Yn}=_t,{spawnSync:St,execSync:qu}=hn("node:child_process"),{writeFileSync:ue,statSync:Kt,readdirSync:Ge,rmSync:jo,existsSync:Uu,copyFileSync:Wu,unlinkSync:Tr,mkdirSync:Gu,cpSync:Ju}=hn("node:fs"),{platform:pd,homedir:Zt}=hn("node:os"),{createInterface:qc}=hn("node:readline");var hd="1.0.0-alpha.12";const ln={version:hd};var yd=Object.defineProperty,vd=d((e,t)=>yd(e,"name",{value:t,configurable:!0}),"e$Z");const bd={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:vd(()=>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 kd=Object.defineProperty,$d=d((e,t)=>kd(e,"name",{value:t,configurable:!0}),"e$Y");const wd={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:$d(()=>import("./handler27.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 Sd=Object.defineProperty,jd=d((e,t)=>Sd(e,"name",{value:t,configurable:!0}),"e$X");const Od={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:jd(()=>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}]},Wc={description:"Output format: table or json (default: table)",name:"format",type:String},Ed={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:de(()=>import("./handler28.js"),"aiProvidersExecute"),name:"providers",options:[Wc]},Rd={commandPath:["ai"],description:"Test the best available AI provider with a quick prompt",examples:[["vis ai test","Test the selected provider"]],group:"System",loader:de(()=>import("./handler28.js"),"aiTestExecute"),name:"test",options:[]},Cd={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:de(()=>import("./handler28.js"),"aiFixExecute"),name:"fix",options:[Wc,{description:"Use a specific run ID from .task-runner/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}]},xd={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:de(()=>import("./handler28.js"),"aiRootExecute"),name:"ai",options:[]},Nd={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:de(()=>import("./handler28.js"),"aiDiscoverHelpExecute"),name:"discover-help",options:[]},Id={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:de(()=>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 .task-runner/runs/ instead of the latest run",name:"run",type:String},{description:"Per-task validation timeout in seconds (default: 1800)",name:"validation-timeout",type:Number}]},Pd={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:de(()=>import("./heal-accept.js"),"aiHealAccept"),name:"accept",options:[{description:"Use a specific run ID from .task-runner/runs/ instead of the latest run",name:"run",type:String},{description:"Per-task validation timeout in seconds (default: 1800)",name:"validation-timeout",type:Number}]},Gc=[xd,Nd,Ed,Rd,Cd,Id,Pd],bE=Object.defineProperty({__proto__:null,default:Gc},Symbol.toStringTag,{value:"Module"});var Ad=Object.defineProperty,Td=d((e,t)=>Ad(e,"name",{value:t,configurable:!0}),"e$W");const Dd={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:Td(()=>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 Ld=Object.defineProperty,Bd=d((e,t)=>Ld(e,"name",{value:t,configurable:!0}),"e$V");const Md={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:Bd(()=>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 Vd=Object.defineProperty,_d=d((e,t)=>Vd(e,"name",{value:t,configurable:!0}),"e$U");const Fd={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:_d(()=>import("./handler29.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}]},Lr={description:"Cache directory (overrides config and default). Relative paths are resolved against the workspace root.",name:"cache-dir",type:String},bn={description:"Cache scope: 'shared' (default — main worktree's cache), 'worktree' (this checkout's local cache), or 'all' (both)",name:"scope",type:String},Jc={description:"Cache type: 'task' (workspace task cache), 'ai' (AI response cache), 'socket' (Socket.dev report cache), or 'all' (default)",name:"type",type:String},qd={commandPath:["cache"],description:"List all cache entries",examples:[["vis cache list","List all cache entries"]],group:"Workspace",loader:de(()=>import("./handler14.js"),"cacheListExecute"),name:"list",options:[Lr,bn,{description:"Output format: table or json (default: table)",name:"format",type:String}]},Ud={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:de(()=>import("./handler14.js"),"cacheCleanExecute"),name:"clean",options:[Lr,Jc,{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}]},Wd={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:de(()=>import("./handler14.js"),"cachePruneExecute"),name:"prune",options:[Lr,bn,{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}]},Gd={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:de(()=>import("./handler14.js"),"cacheSizeExecute"),name:"size",options:[Lr,bn,Jc,{description:"Output format: table or json (default: table)",name:"format",type:String}]},Oo={description:"Output format: table or json (default: table)",name:"format",type:String},Kc={description:"Use a specific run ID from .task-runner/runs/ instead of the latest run",name:"run",type:String},Jd={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:de(()=>import("./handler14.js"),"cacheWhyExecute"),name:"why",options:[Oo,Kc]},Kd={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:de(()=>import("./handler14.js"),"cacheHashExecute"),name:"hash",options:[Oo,Kc]},zd={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:de(()=>import("./handler14.js"),"cacheVerifyExecute"),name:"verify",options:[Lr,bn,Oo]},Hd={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:de(()=>import("./doctor-probe.js"),"cacheDoctorExecute"),name:"doctor",options:[{description:"Override remote cache URL (otherwise read from vis.config.ts remoteCache.url)",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}]},Yd=[qd,Ud,Wd,Gd,Jd,Kd,zd,Hd];var Xd=Object.defineProperty,Qd=d((e,t)=>Xd(e,"name",{value:t,configurable:!0}),"e$T");const Zd={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:Qd(()=>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",defaultValue:!1,description:"Check only devDependencies (npm/yarn mode)",name:"dev",type:Boolean},{alias:"P",defaultValue:!1,description:"Check only dependencies (npm/yarn mode)",name:"prod",type:Boolean}]};var ef=Object.defineProperty,tf=d((e,t)=>ef(e,"name",{value:t,configurable:!0}),"e$S");const rf={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:tf(()=>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 nf=Object.defineProperty,sf=d((e,t)=>nf(e,"name",{value:t,configurable:!0}),"e$R");const of={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:sf(()=>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 af=Object.defineProperty,cf=d((e,t)=>af(e,"name",{value:t,configurable:!0}),"e$Q");const lf={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:cf(()=>import("./handler44.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 pf=Object.defineProperty,uf=d((e,t)=>pf(e,"name",{value:t,configurable:!0}),"e$P");const df={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:uf(()=>import("./handler8.js"),"loader"),name:"dedupe",options:[{defaultValue:!1,description:"Preview changes without modifying files (dry-run)",name:"check",type:Boolean}]};var ff=Object.defineProperty,mf=d((e,t)=>ff(e,"name",{value:t,configurable:!0}),"e$O");const gf={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:mf(()=>import("./handler46.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 hf=Object.defineProperty,yf=d((e,t)=>hf(e,"name",{value:t,configurable:!0}),"e$N");const vf={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:yf(()=>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 bf=Object.defineProperty,kf=d((e,t)=>bf(e,"name",{value:t,configurable:!0}),"e$M");const $f={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:kf(()=>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}]};var wf=Object.defineProperty,Sf=d((e,t)=>wf(e,"name",{value:t,configurable:!0}),"e$L");const jf={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:Sf(()=>import("./handler43.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 Of=Object.defineProperty,Ef=d((e,t)=>Of(e,"name",{value:t,configurable:!0}),"e$K");const Rf={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:Ef(()=>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 Cf=Object.defineProperty,xf=d((e,t)=>Cf(e,"name",{value:t,configurable:!0}),"e$J");const Nf={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:xf(()=>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 If=Object.defineProperty,Pf=d((e,t)=>If(e,"name",{value:t,configurable:!0}),"t$x");const Af={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:Pf(()=>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}]},zc=["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"],Hc=".vis-hooks",kE=[".pre-commit-config.yaml",".pre-commit-config.yml","prek.toml"],$E={commit:"pre-commit","merge-commit":"pre-merge-commit",push:"pre-push"},wE=new Set(["commit-msg","post-checkout","post-commit","post-merge","post-rewrite","pre-commit","pre-merge-commit","pre-push","pre-rebase","prepare-commit-msg"]),SE=new Set(["commit-msg","post-checkout","post-merge","post-rewrite","pre-rebase","prepare-commit-msg"]),jE=new Set(["fail","script","system"]);var Tf=Object.defineProperty,It=d((e,t)=>Tf(e,"name",{value:t,configurable:!0}),"e$H");const Pt={defaultValue:Hc,description:"Custom hooks directory",name:"hooks-dir",type:String},At=[{defaultValue:void 0,description:"Set to 0 to disable git hooks, set to 2 for debug output",name:"VIS_GIT_HOOKS",type:String}],Df={commandPath:["hook"],description:"Install git hooks for the workspace (migrates husky / prek on prompt)",env:[...At],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:It(()=>import("./handler39.js").then(e=>({default:e.hookInstallExecute})),"loader"),name:"install",options:[Pt]},Lf={commandPath:["hook"],description:"Remove git hooks and reset core.hooksPath",env:[...At],examples:[["vis hook uninstall","Remove git hooks and reset core.hooksPath"]],group:"Scaffold & Config",loader:It(()=>import("./handler39.js").then(e=>({default:e.hookUninstallExecute})),"loader"),name:"uninstall",options:[Pt]},Bf={commandPath:["hook"],description:"Migrate from husky or prek to vis hooks (auto-detected)",env:[...At],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:It(()=>import("./handler39.js").then(e=>({default:e.hookMigrateExecute})),"loader"),name:"migrate",options:[Pt,{defaultValue:!1,description:"Preview migrate without writing files",name:"dry-run",type:Boolean}]},Mf={commandPath:["hook"],description:"Show configured hooks grouped by stage",env:[...At],examples:[["vis hook list","Show configured hooks grouped by stage"]],group:"Scaffold & Config",loader:It(()=>import("./handler39.js").then(e=>({default:e.hookListExecute})),"loader"),name:"list",options:[Pt]},Vf={commandPath:["hook"],description:"Sanity-check installed hooks and the bundled runner",env:[...At],examples:[["vis hook validate","Sanity-check installed hooks and the bundled runner"]],group:"Scaffold & Config",loader:It(()=>import("./handler39.js").then(e=>({default:e.hookValidateExecute})),"loader"),name:"validate",options:[Pt]},_f={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:[...At],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:It(()=>import("./handler39.js").then(e=>({default:e.hookRunExecute})),"loader"),name:"run",options:[Pt,{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}]},Ff={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:[...At],examples:[["vis hook add secrets","Add a pre-commit hook that runs `vis secrets --staged`"]],group:"Scaffold & Config",loader:It(()=>import("./handler39.js").then(e=>({default:e.hookAddExecute})),"loader"),name:"add",options:[Pt]},qf=[Df,Lf,Bf,Mf,Vf,_f,Ff];var Uf=Object.defineProperty,Wf=d((e,t)=>Uf(e,"name",{value:t,configurable:!0}),"e$G");const Gf={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:Wf(()=>import("./handler30.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 Jf=Object.defineProperty,Kf=d((e,t)=>Jf(e,"name",{value:t,configurable:!0}),"e$F");const zf={description:"Remove vis from the system (self-uninstall)",examples:[["vis implode","Interactive uninstall"],["vis implode --yes","Non-interactive uninstall (CI)"]],group:"System",loader:Kf(()=>import("./handler12.js"),"loader"),name:"implode",options:[{alias:"y",defaultValue:!1,description:"Skip confirmation prompt",name:"yes",type:Boolean}]};var Hf=Object.defineProperty,Yf=d((e,t)=>Hf(e,"name",{value:t,configurable:!0}),"e$E");const Xf={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:Yf(()=>import("./handler13.js"),"loader"),name:"info",options:[{defaultValue:!1,description:"Output as JSON",name:"json",type:Boolean}]};var Qf=Object.defineProperty,Zf=d((e,t)=>Qf(e,"name",{value:t,configurable:!0}),"e$D");const em={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:Zf(()=>import("./handler15.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 tm=Object.defineProperty,rm=d((e,t)=>tm(e,"name",{value:t,configurable:!0}),"e$C");const nm={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:rm(()=>import("./handler16.js"),"loader"),name:"install",options:[{alias:"P",defaultValue:!1,description:"Skip devDependencies",name:"prod",type:Boolean},{alias:"D",defaultValue:!1,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 sm=Object.defineProperty,om=d((e,t)=>sm(e,"name",{value:t,configurable:!0}),"e$B");const im={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:om(()=>import("./handler17.js"),"loader"),name:"link"};var am=Object.defineProperty,cm=d((e,t)=>am(e,"name",{value:t,configurable:!0}),"e$A");const lm={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:cm(()=>import("./handler45.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 pm=Object.defineProperty,um=d((e,t)=>pm(e,"name",{value:t,configurable:!0}),"e$z");const dm={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:um(()=>import("./handler31.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 fm=Object.defineProperty,Ae=d((e,t)=>fm(e,"name",{value:t,configurable:!0}),"t$r");const Me=[{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}],mm={commandPath:["migrate"],description:"Migrate dependencies and scripts to vis",group:"Scaffold & Config",loader:Ae(()=>import("./handler32.js").then(e=>({default:e.migrateDepsExecute})),"loader"),name:"deps",options:[...Me]},gm={commandPath:["migrate"],description:"Inline lint-staged configuration into vis",group:"Scaffold & Config",loader:Ae(()=>import("./handler32.js").then(e=>({default:e.migrateLintStagedExecute})),"loader"),name:"lint-staged",options:[...Me]},hm={commandPath:["migrate"],description:"Inline nano-staged configuration into vis",group:"Scaffold & Config",loader:Ae(()=>import("./handler32.js").then(e=>({default:e.migrateNanoStagedExecute})),"loader"),name:"nano-staged",options:[...Me]},ym={commandPath:["migrate"],description:"Migrate turborepo tasks/config to vis",group:"Scaffold & Config",loader:Ae(()=>import("./handler32.js").then(e=>({default:e.migrateTurborepoExecute})),"loader"),name:"turborepo",options:[...Me]},vm={commandPath:["migrate"],description:"Migrate nx targets/config to vis",group:"Scaffold & Config",loader:Ae(()=>import("./handler32.js").then(e=>({default:e.migrateNxExecute})),"loader"),name:"nx",options:[...Me]},bm={commandPath:["migrate"],description:"Migrate moon tasks/templates to vis",group:"Scaffold & Config",loader:Ae(()=>import("./handler32.js").then(e=>({default:e.migrateMoonExecute})),"loader"),name:"moon",options:[...Me,{defaultValue:!1,description:"Copy .moon/templates/* into .vis/templates/* so `vis generate` works without .moon/",name:"copy-templates",type:Boolean}]},km={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:Ae(()=>import("./handler32.js").then(e=>({default:e.migrateGitleaksExecute})),"loader"),name:"gitleaks",options:[...Me]},$m={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:Ae(()=>import("./handler32.js").then(e=>({default:e.migrateKingfisherExecute})),"loader"),name:"kingfisher",options:[...Me]},wm={commandPath:["migrate"],description:"Replace secretlint with `vis secrets`",examples:[["vis migrate secretlint","Replace secretlint with `vis secrets`"]],group:"Scaffold & Config",loader:Ae(()=>import("./handler32.js").then(e=>({default:e.migrateSecretlintExecute})),"loader"),name:"secretlint",options:[...Me]},Sm={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:Ae(()=>import("./handler32.js").then(e=>({default:e.migrateSyncpackExecute})),"loader"),name:"syncpack",options:[...Me]},jm={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:Ae(()=>import("./handler32.js").then(e=>({default:e.migrateSherifExecute})),"loader"),name:"sherif",options:[...Me]},Om={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:Ae(()=>import("./handler32.js").then(e=>({default:e.migrateVerifyExecute})),"loader"),name:"verify",options:[]},Em=[mm,gm,hm,ym,vm,bm,km,$m,wm,Sm,jm,Om];var Rm=Object.defineProperty,Cm=d((e,t)=>Rm(e,"name",{value:t,configurable:!0}),"r$C");const xm=new Set(["--cwd"]),Nm=new Set(["--help","--version","-h","-V"]),Im=Cm(e=>{const t=[];for(let r=0;r<e.length;r+=1){const n=e[r];if(n!==void 0){if(Nm.has(n))return!1;if(n.startsWith("-")){const s=n.indexOf("="),o=s===-1?n:n.slice(0,s);if(xm.has(o)&&s===-1){const i=e[r+1];i!==void 0&&!i.startsWith("-")&&(r+=1)}continue}t.push(n)}}return t.length===1&&t[0]==="migrate"},"isBareMigrateInvocation");var Pm=Object.defineProperty,Am=d((e,t)=>Pm(e,"name",{value:t,configurable:!0}),"t$q");const Qi=Am(e=>e in Yn&&Yn[e]!=="0"&&Yn[e]!=="false","check"),pt=Qi("CI")||Qi("CONTINUOUS_INTEGRATION");var Tm=Object.defineProperty,Qn=d((e,t)=>Tm(e,"name",{value:t,configurable:!0}),"i$r");class Dm{static{d(this,"MigrateStore")}static{Qn(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=Qn(()=>this.#e,"getSnapshot");subscribe=Qn(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 Lm=Object.defineProperty,Bm=d((e,t)=>Lm(e,"name",{value:t,configurable:!0}),"f$s");const Zi=Bm(({autoExitSeconds:e,onCancel:t,visible:r})=>{const{exit:n}=Bc(),[s,o]=gr(e||3),i=kr(null),a=kr(0);_c(()=>{if(!r)return;const l=e||3;o(l),a.current=Date.now();let p=l;return i.current=setInterval(()=>{p-=1,p<=0?(i.current&&(clearInterval(i.current),i.current=null),o(0),n()):o(p)},1e3),()=>{i.current&&(clearInterval(i.current),i.current=null)}},[r,e,n]);const c=Fc(()=>{i.current&&(clearInterval(i.current),i.current=null),t()},[t]);return Mc((l,p)=>{Date.now()-a.current<200||(l==="q"?n():c())},{isActive:r}),R(Hs,{backgroundColor:"#1e1e1e",footer:G(C,{dimColor:!0,children:["Press"," ",R(C,{bold:!0,color:"white",children:"q"})," ","to exit,"," ",R(C,{bold:!0,color:"white",children:"any key"})," ","to stay"]}),title:`Exiting in ${s}…`,visible:r,width:50,children:R(C,{dimColor:!0,children:"Stay to explore the results interactively."})})},"QuitDialog");var Mm=Object.defineProperty,Yc=d((e,t)=>Mm(e,"name",{value:t,configurable:!0}),"n$r");const Vm=Yc(e=>{if(e.startsWith("⚠"))return"yellow";e.startsWith("── ")||e.startsWith("[dry-run]")},"colorForPreviewLine"),_m=Yc(({focused:e,item:t,scrollRef:r})=>t?G(K,{borderColor:e?"white":"gray",borderStyle:"single",flexDirection:"column",flexGrow:1,children:[R(K,{flexShrink:0,paddingTop:1,paddingX:2,children:R(C,{bold:!0,color:"white",children:t.entry.title})}),R(K,{flexShrink:0,paddingBottom:1,paddingX:2,children:R(C,{dimColor:!0,children:t.entry.description})}),R(Lu,{flexGrow:1,flexShrink:1,paddingX:2,ref:r,scrollbar:!0,scrollbarColor:"gray",scrollbarStyle:"block",children:G(K,{flexDirection:"column",children:[R(C,{dimColor:!0,children:"── What will change ──"}),R(C,{}),t.preview.length===0&&R(C,{dimColor:!0,children:"(no preview available)"}),t.preview.map((s,o)=>{const i=Vm(s);return s===""?R(C,{},`blank-${String(o)}`):R(C,{color:i,children:s},`${String(o)}-${s.slice(0,20)}`)})]})})]}):R(K,{alignItems:"center",borderColor:"gray",borderStyle:"single",flexDirection:"column",flexGrow:1,justifyContent:"center",children:R(C,{dimColor:!0,children:"No migration selected"})}),"MigrateDetailPanel");var Fm=Object.defineProperty,Xc=d((e,t)=>Fm(e,"name",{value:t,configurable:!0}),"g$l");const qm=Xc(({checked:e,isSelected:t,item:r})=>{const n=e?"☑":"☐",s=r.preview.length;return G(K,{flexShrink:0,height:1,children:[R(C,{children:t?">":" "}),G(C,{color:e?"white":"gray",children:[" ",n," "]}),R(K,{flexGrow:1,children:R(C,{bold:t,inverse:t,wrap:"truncate",children:r.entry.title})}),G(C,{dimColor:!0,children:[" ",s," ","change",s===1?"":"s"," "]})]})},"MigrationRow"),Um=Xc(({checkedItems:e,focused:t,isDryRun:r,items:n,scrollOffset:s,selectedIndex:o,viewportHeight:i})=>{const a=t?"white":"gray",c=n.filter(u=>e.has(u.entry.id)).length,l=n.map((u,m)=>R(qm,{checked:e.has(u.entry.id),isSelected:m===o,item:u},u.entry.id)),p=n.length,f=p>i&&i>0;return G(K,{borderColor:a,borderStyle:"single",flexDirection:"column",flexGrow:1,children:[G(K,{flexShrink:0,gap:1,paddingX:1,children:[R(C,{bold:!0,inverse:!0,children:" MIGRATE "}),G(C,{wrap:"truncate",children:[n.length," ","applicable"]}),c>0&&G(C,{dimColor:!0,children:[" — ",c," selected"]}),r&&R(C,{color:"yellow",children:" (dry-run)"})]}),G(K,{flexDirection:"row",flexGrow:1,overflow:"hidden",children:[R(K,{flexDirection:"column",flexGrow:1,overflow:"hidden",paddingLeft:1,children:R(K,{flexDirection:"column",marginTop:-s,children:l})}),f&&R(K,{flexShrink:0,marginLeft:1,marginRight:1,children:R(Bu,{contentHeight:p,placement:"inset",scrollOffset:s,style:"block",viewportHeight:i})})]})]})},"MigrateListPanel");var Wm=Object.defineProperty,Gm=d((e,t)=>Wm(e,"name",{value:t,configurable:!0}),"N$f");const Jm=100,Km=40,zm=10,Hm=Gm(({autoExitSeconds:e=0,isDryRun:t,store:r})=>{const{exit:n}=Bc(),{columns:s,rows:o}=Mu(),i=Fu(r.subscribe,r.getSnapshot),[a,c]=gr(!1),[l,p]=gr(!1),[f,u]=gr(!1),[m,h]=gr(0),g=kr(null),b=kr(null),v=kr(null),$=i.items[i.selectedIndex]??null,j=Math.max(1,o-6),x=Fc(z=>{h(S=>z>=S+j?Math.max(0,z-j+1):z<S?Math.max(0,z):S)},[j]);if(_c(()=>{b.current?.scrollToTop()},[$?.entry.id]),Mc((z,S)=>{if(z==="c"&&S.ctrl){n();return}if(!f){if(l){z==="u"||S.return?(p(!1),r.startApply(),n(r.getCheckedItems())):S.escape||z==="q"?p(!1):S.downArrow||z==="j"?v.current?.scrollBy(1):(S.upArrow||z==="k")&&v.current?.scrollBy(-1);return}if(a){S.escape||z==="?"?c(!1):z==="q"?(c(!1),u(!0)):S.downArrow||z==="j"?g.current?.scrollBy(1):(S.upArrow||z==="k")&&g.current?.scrollBy(-1);return}if(z==="?"){c(!0);return}if(z==="q"){u(!0);return}if(S.tab){r.setFocusedPanel(i.focusedPanel==="list"?"detail":"list");return}if(i.focusedPanel==="list"){if(S.downArrow||z==="j"){const O=Math.min(i.selectedIndex+1,i.items.length-1);r.setSelectedIndex(O),x(O);return}if(S.upArrow||z==="k"){const O=Math.max(i.selectedIndex-1,0);r.setSelectedIndex(O),x(O);return}if(S.pageDown){const O=Math.min(i.selectedIndex+10,i.items.length-1);r.setSelectedIndex(O),x(O);return}if(S.pageUp){const O=Math.max(i.selectedIndex-10,0);r.setSelectedIndex(O),x(O);return}if(S.home){r.setSelectedIndex(0),h(0);return}if(S.end){const O=i.items.length-1;r.setSelectedIndex(O),x(O);return}if(z===" "||S.return){$&&r.toggleCheck($.entry.id);return}if(z==="a"){r.toggleAll();return}if(z==="u"&&!t&&i.checkedItems.size>0){p(!0);return}S.rightArrow&&r.setFocusedPanel("detail");return}if(i.focusedPanel==="detail"){if(S.escape||S.leftArrow){r.setFocusedPanel("list");return}if(S.downArrow||z==="j"){b.current?.scrollBy(1);return}if(S.upArrow||z==="k"){b.current?.scrollBy(-1);return}if(S.pageDown){b.current?.scrollBy(10);return}if(S.pageUp){b.current?.scrollBy(-10);return}if(S.home){b.current?.scrollToTop();return}S.end&&b.current?.scrollToBottom()}}},{isActive:!0}),s<Km||o<zm)return R(K,{alignItems:"center",height:o,justifyContent:"center",width:s,children:G(C,{color:"yellow",children:["Terminal too small (",s,"x",o,")"]})});const N=s>=Jm,I=[G(K,{gap:1,children:[R(C,{bold:!0,color:"white",children:"q"}),R(C,{dimColor:!0,children:"QUIT"})]},"q"),G(K,{gap:1,children:[R(C,{bold:!0,color:"white",children:"?"}),R(C,{dimColor:!0,children:"HELP"})]},"?"),G(K,{gap:1,children:[R(C,{bold:!0,color:"white",children:"↑↓"}),R(C,{dimColor:!0,children:"NAV"})]},"nav"),G(K,{gap:1,children:[R(C,{bold:!0,color:"white",children:"Space"}),R(C,{dimColor:!0,children:"CHECK"})]},"sp"),G(K,{gap:1,children:[R(C,{bold:!0,color:"white",children:"a"}),R(C,{dimColor:!0,children:"ALL"})]},"a")];!t&&i.checkedItems.size>0&&I.push(G(K,{gap:1,children:[R(C,{bold:!0,color:"green",children:"u"}),R(C,{dimColor:!0,children:"APPLY"})]},"u")),I.push(G(K,{gap:1,children:[R(C,{bold:!0,color:"white",children:"Tab"}),R(C,{dimColor:!0,children:"PANEL"})]},"tab"));const _=R(K,{borderBottom:!1,borderColor:"gray",borderLeft:!1,borderRight:!1,borderStyle:"single",flexShrink:0,children:R(K,{flexWrap:"wrap",gap:2,paddingX:1,children:I})}),w=G(Hs,{footer:G(C,{dimColor:!0,children:[R(C,{bold:!0,color:"white",children:"↑↓"})," scroll ",R(C,{bold:!0,color:"white",children:"?"}),"/",R(C,{bold:!0,color:"white",children:"Esc"})," close"]}),scrollRef:g,title:"KEYBOARD SHORTCUTS",visible:a,width:52,children:[G(K,{flexDirection:"column",marginBottom:1,children:[R(C,{bold:!0,color:"white",children:"NAVIGATION"}),G(C,{children:[R(C,{bold:!0,color:"white",children:" ↑/k"}),R(C,{dimColor:!0,children:" Move up"})]}),G(C,{children:[R(C,{bold:!0,color:"white",children:" ↓/j"}),R(C,{dimColor:!0,children:" Move down"})]}),G(C,{children:[R(C,{bold:!0,color:"white",children:" Tab"}),R(C,{dimColor:!0,children:" Switch panel"})]}),G(C,{children:[R(C,{bold:!0,color:"white",children:" →/←"}),R(C,{dimColor:!0,children:" Focus detail/list"})]})]}),G(K,{flexDirection:"column",marginBottom:1,children:[R(C,{bold:!0,color:"white",children:"SELECTION"}),G(C,{children:[R(C,{bold:!0,color:"white",children:" Space"}),R(C,{dimColor:!0,children:" Toggle migration"})]}),G(C,{children:[R(C,{bold:!0,color:"white",children:" a"}),R(C,{dimColor:!0,children:" Toggle all"})]})]}),G(K,{flexDirection:"column",children:[R(C,{bold:!0,color:"white",children:"ACTIONS"}),!t&&G(C,{children:[R(C,{bold:!0,color:"white",children:" u"}),R(C,{dimColor:!0,children:" Apply selected migrations"})]}),G(C,{children:[R(C,{bold:!0,color:"white",children:" q"}),R(C,{dimColor:!0,children:" Quit"})]}),G(C,{children:[R(C,{bold:!0,color:"white",children:" ?"}),R(C,{dimColor:!0,children:" Toggle help"})]})]})]}),M=r.getCheckedItems(),L=R(K,{alignItems:"center",flexDirection:"column",children:G(C,{dimColor:!0,children:["Press ",R(C,{bold:!0,color:"white",children:"u"})," or ",R(C,{bold:!0,color:"white",children:"Enter"})," to confirm, ",R(C,{bold:!0,color:"white",children:"Esc"})," to cancel"]})}),be=R(Hs,{footer:L,scrollRef:v,title:`Apply ${String(M.length)} migration${M.length===1?"":"s"}?`,visible:l,width:70,children:M.map(z=>G(K,{gap:1,children:[G(C,{children:[" ",z.entry.title]}),G(C,{dimColor:!0,children:["(",z.preview.length," ","change",z.preview.length===1?"":"s",")"]})]},z.entry.id))}),ee=R(Um,{checkedItems:i.checkedItems,focused:i.focusedPanel==="list",isDryRun:t,items:i.items,scrollOffset:m,selectedIndex:i.selectedIndex,viewportHeight:j}),Xe=R(_m,{focused:i.focusedPanel==="detail",item:$,scrollRef:b});if(N){const z=Math.floor(s*.55);return G(K,{flexDirection:"column",height:o,width:s,children:[G(K,{flexDirection:"row",flexGrow:1,children:[R(K,{flexGrow:1,children:ee}),R(K,{width:z,children:Xe})]}),_,be,R(Zi,{autoExitSeconds:e||3,onCancel:d(()=>{u(!1)},"onCancel"),visible:f}),w]})}const dr=Math.floor(o*.45);return G(K,{flexDirection:"column",height:o,width:s,children:[R(K,{height:dr,children:ee}),R(K,{flexGrow:1,children:Xe}),_,be,R(Zi,{autoExitSeconds:e||3,onCancel:d(()=>{u(!1)},"onCancel"),visible:f}),w]})},"VisMigrateApp");var Ym=Object.defineProperty,Eo=d((e,t)=>Ym(e,"name",{value:t,configurable:!0}),"r$A");const Xm=/\n([ \t]+)/,Qm=Eo(e=>{const{indent:t,lineEnding:r}=Ku(e),n={};return t!==void 0&&(n.indent=t),(r==="lf"||r==="crlf")&&(n.lineEnding=r),n},"resolveEditorConfigDefaults"),He=Eo((e,t,r={})=>{const{defaultIndent:n=" ",useEditorconfig:s=!0}=r;if(s){const{indent:o}=Qm(e);if(o!==void 0)return o}if(t!==void 0){const o=Xm.exec(t);if(o?.[1]!==void 0)return o[1]}return n},"resolveIndentForFile"),Ro=Eo((e,t={})=>{const r=k(e)?P(e):void 0;return He(e,r,t)},"resolveIndentForExistingFile");var Zm=Object.defineProperty,eg=d((e,t)=>Zm(e,"name",{value:t,configurable:!0}),"t$p");const Qc=[".lintstagedrc.json",".lintstagedrc"],Zc=[".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"],Co=[...Qc,...Zc],tg=[/^((?:[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/],el=[".nano-staged.json",".nanostagedrc"],tl=[".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"],xo=[...el,...tl],rg=[/^((?:[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/],rl=["husky","lint-staged","nano-staged"],ng=/\(is-ci \|\| husky \|\| exit 0\)\s*&&\s*/g,sg=/\bhusky(?:\s+install)?\s*&&\s*/g,og=/\s*&&\s*husky(?:\s+install)?/g,ig=/\s*\|\|\s*husky(?:\s+install)?/g,ag=[ng,sg,og,ig],nl=eg(e=>{if(e==="husky"||e==="husky install")return;let t=e;for(const r of ag)t=t.replace(r,"");return t=t.trim(),t===e?e:t||void 0},"cleanHuskyFromScript");var cg=Object.defineProperty,pn=d((e,t)=>cg(e,"name",{value:t,configurable:!0}),"o$u");const lg=/\/$/,pg=pn(e=>{let t='"$0"';for(let r=0;r<e;r+=1)t=`"$(dirname ${t})"`;return t},"nestedDirname"),ug=pn(e=>{const t=e.split("/").filter(r=>r!==""&&r!==".").length+2;return`#!/usr/bin/env sh
|
|
2
2
|
{ [ "$VIS_GIT_HOOKS" = "2" ]; } && set -x
|
|
3
3
|
n=$(basename "$0")
|
|
4
4
|
s=$(dirname "$(dirname "$0")")/$n
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/vis",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.13",
|
|
4
4
|
"description": "A CLI task runner for monorepo workspaces, powered by @visulima/task-runner",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"build",
|
|
@@ -79,22 +79,22 @@
|
|
|
79
79
|
"@opentelemetry/api": "1.9.1",
|
|
80
80
|
"@socketsecurity/registry": "^2.0.2",
|
|
81
81
|
"@visulima/ansi": "4.0.0-alpha.13",
|
|
82
|
-
"@visulima/cerebro": "3.0.0-alpha.
|
|
82
|
+
"@visulima/cerebro": "3.0.0-alpha.16",
|
|
83
83
|
"@visulima/colorize": "2.0.0-alpha.10",
|
|
84
84
|
"@visulima/find-ai-runner": "1.0.0-alpha.5",
|
|
85
85
|
"@visulima/find-cache-dir": "3.0.0-alpha.9",
|
|
86
|
-
"@visulima/fs": "5.0.0-alpha.
|
|
86
|
+
"@visulima/fs": "5.0.0-alpha.15",
|
|
87
87
|
"@visulima/humanizer": "3.0.0-alpha.11",
|
|
88
88
|
"@visulima/interactive-manager": "1.0.0-alpha.2",
|
|
89
|
-
"@visulima/package": "5.0.0-alpha.
|
|
90
|
-
"@visulima/pail": "4.0.0-alpha.
|
|
89
|
+
"@visulima/package": "5.0.0-alpha.14",
|
|
90
|
+
"@visulima/pail": "4.0.0-alpha.14",
|
|
91
91
|
"@visulima/path": "3.0.0-alpha.10",
|
|
92
92
|
"@visulima/redact": "3.0.0-alpha.10",
|
|
93
93
|
"@visulima/secret-scanner": "1.0.0-alpha.1",
|
|
94
94
|
"@visulima/spinner": "1.0.0-alpha.1",
|
|
95
95
|
"@visulima/string": "3.0.0-alpha.11",
|
|
96
96
|
"@visulima/task-runner": "1.0.0-alpha.10",
|
|
97
|
-
"@visulima/tui": "1.0.0-alpha.
|
|
97
|
+
"@visulima/tui": "1.0.0-alpha.8",
|
|
98
98
|
"execa": "^9.6.1",
|
|
99
99
|
"ignore": "^7.0.5",
|
|
100
100
|
"jiti": "^2.6.1",
|
|
@@ -116,14 +116,14 @@
|
|
|
116
116
|
}
|
|
117
117
|
},
|
|
118
118
|
"optionalDependencies": {
|
|
119
|
-
"@visulima/vis-binding-darwin-arm64": "1.0.0-alpha.
|
|
120
|
-
"@visulima/vis-binding-darwin-x64": "1.0.0-alpha.
|
|
121
|
-
"@visulima/vis-binding-linux-arm64-
|
|
122
|
-
"@visulima/vis-binding-linux-x64-
|
|
123
|
-
"@visulima/vis-binding-linux-
|
|
124
|
-
"@visulima/vis-binding-
|
|
125
|
-
"@visulima/vis-binding-
|
|
126
|
-
"@visulima/vis-binding-win32-x64-msvc": "1.0.0-alpha.
|
|
119
|
+
"@visulima/vis-binding-darwin-arm64": "1.0.0-alpha.13",
|
|
120
|
+
"@visulima/vis-binding-darwin-x64": "1.0.0-alpha.13",
|
|
121
|
+
"@visulima/vis-binding-linux-arm64-gnu": "1.0.0-alpha.13",
|
|
122
|
+
"@visulima/vis-binding-linux-x64-gnu": "1.0.0-alpha.13",
|
|
123
|
+
"@visulima/vis-binding-linux-x64-musl": "1.0.0-alpha.13",
|
|
124
|
+
"@visulima/vis-binding-linux-arm64-musl": "1.0.0-alpha.13",
|
|
125
|
+
"@visulima/vis-binding-win32-arm64-msvc": "1.0.0-alpha.13",
|
|
126
|
+
"@visulima/vis-binding-win32-x64-msvc": "1.0.0-alpha.13"
|
|
127
127
|
},
|
|
128
128
|
"engines": {
|
|
129
129
|
"node": "^22.14.0 || >=24.10.0"
|