{"_id":"@aegisrunner/vite","_rev":"7-f9cfc5ddc54461153487cc8375a9a381","name":"@aegisrunner/vite","dist-tags":{"latest":"0.4.2"},"versions":{"0.1.0":{"name":"@aegisrunner/vite","version":"0.1.0","keywords":["vite","vite-plugin","testing","e2e","regression","ai-testing","aegisrunner","localhost"],"license":"MIT","_id":"@aegisrunner/vite@0.1.0","maintainers":[{"name":"securedall","email":"admin@aegisrunner.com"}],"homepage":"https://aegisrunner.com","bugs":{"url":"https://github.com/Aegis-Runner/AegisRunner/issues"},"dist":{"shasum":"a4bec22e7ef2eb653e53f8196cd9a4788e8eb696","tarball":"https://registry.npmjs.org/@aegisrunner/vite/-/vite-0.1.0.tgz","fileCount":3,"integrity":"sha512-VK/d8uC7oY5+DQYiy8DcZPDunvZn1Ft//JpjR0+ifJmhGPC/1R7I7xbtD8Jsb2XWUnsp9WF3EAMMYDMfvOvjEA==","signatures":[{"sig":"MEUCIQDH5obtKTIvdgK9N2Bv6R05BVab80JKZi1S3jKxIEHs9QIgIvsFhBCqXN2bspp8Y5fd/lHhQfcx7UAPekN7/vOpGig=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8527},"main":"./index.mjs","type":"module","engines":{"node":">=18"},"exports":{".":"./index.mjs"},"gitHead":"09b08936d3b8a99bc4e0e3549e95ee99c59e5973","_npmUser":{"name":"securedall","email":"admin@aegisrunner.com"},"repository":{"url":"git+https://github.com/Aegis-Runner/AegisRunner.git","type":"git","directory":"vite"},"_npmVersion":"10.8.2","description":"Vite plugin that attaches AegisRunner to your dev server — scan your localhost app with AI, no deploy. Covers Vue, React, Svelte and the rest of the Vite ecosystem.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@aegisrunner/cli":"^1.0.10"},"_hasShrinkwrap":false,"peerDependencies":{"vite":">=4"},"_npmOperationalInternal":{"tmp":"tmp/vite_0.1.0_1784103268779_0.8764682208797225","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@aegisrunner/vite","version":"0.2.0","keywords":["vite","vite-plugin","testing","e2e","regression","ai-testing","aegisrunner","localhost"],"license":"MIT","_id":"@aegisrunner/vite@0.2.0","maintainers":[{"name":"securedall","email":"admin@aegisrunner.com"}],"homepage":"https://aegisrunner.com","bugs":{"url":"https://github.com/Aegis-Runner/AegisRunner/issues"},"dist":{"shasum":"31a49a301d9a7d011de109b1d732a55085e970aa","tarball":"https://registry.npmjs.org/@aegisrunner/vite/-/vite-0.2.0.tgz","fileCount":3,"integrity":"sha512-pFCpmGaQXVW5hDbNwtV/P1JD2A9MzM86ACzt6qh0ze9Vma+EXmpy3eLNhhX383HUj949kEv6JtcEYDk4eUm+IQ==","signatures":[{"sig":"MEQCIQC0EEFNWus55AMK+Vw2nh3JvH9+gjQwKi99GS3Ij4FpjQIfUgMnluTNV/ZHrsYBnrkm0LCkHeISydlJes4S4wVSiw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8332},"main":"./index.mjs","type":"module","engines":{"node":">=18"},"exports":{".":"./index.mjs"},"gitHead":"0c5df661f7df3debade1c73840305c0e47cefe37","_npmUser":{"name":"securedall","email":"admin@aegisrunner.com"},"repository":{"url":"git+https://github.com/Aegis-Runner/AegisRunner.git","type":"git","directory":"vite"},"_npmVersion":"10.8.2","description":"Vite plugin that attaches AegisRunner to your dev server — scan your localhost app with AI, no deploy. Covers Vue, React, Svelte and the rest of the Vite ecosystem.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@aegisrunner/cli":"^1.0.12"},"_hasShrinkwrap":false,"peerDependencies":{"vite":">=4"},"_npmOperationalInternal":{"tmp":"tmp/vite_0.2.0_1784109971132_0.10307062281737944","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@aegisrunner/vite","version":"0.2.1","keywords":["vite","vite-plugin","testing","e2e","regression","ai-testing","aegisrunner","localhost"],"license":"MIT","_id":"@aegisrunner/vite@0.2.1","maintainers":[{"name":"securedall","email":"admin@aegisrunner.com"}],"homepage":"https://aegisrunner.com","bugs":{"url":"https://github.com/Aegis-Runner/AegisRunner/issues"},"dist":{"shasum":"b43667ac63eab7b43af355178c418e705695b738","tarball":"https://registry.npmjs.org/@aegisrunner/vite/-/vite-0.2.1.tgz","fileCount":3,"integrity":"sha512-4xTjXRi5Ygfpxv9GdVeEJkW8dJpcuMbttOiVazDHENZ9Aw7EanaCoQkjKSrk0TKBUvFTchKZjbVi8X2VhmpDnQ==","signatures":[{"sig":"MEQCIDJMhCoQSBIl9Sn7ZLp5z6VHfvfCjH4NV45I8eeeW/zSAiBc1VGmXg1QDeOSLFfsuc7IhdaZDiDYeQH/DSr+TBImVw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8500},"main":"./index.mjs","type":"module","engines":{"node":">=18"},"exports":{".":"./index.mjs"},"gitHead":"0cfa803a41b7e9b6a4da758c40605cfc73e75976","_npmUser":{"name":"securedall","email":"admin@aegisrunner.com"},"repository":{"url":"git+https://github.com/Aegis-Runner/AegisRunner.git","type":"git","directory":"vite"},"_npmVersion":"10.8.2","description":"Vite plugin that attaches AegisRunner to your dev server — scan your localhost app with AI, no deploy. Covers Vue, React, Svelte and the rest of the Vite ecosystem.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@aegisrunner/cli":"^1.0.15"},"_hasShrinkwrap":false,"peerDependencies":{"vite":">=4"},"_npmOperationalInternal":{"tmp":"tmp/vite_0.2.1_1784182536046_0.34617319198840124","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@aegisrunner/vite","version":"0.3.0","keywords":["vite","vite-plugin","testing","e2e","regression","ai-testing","aegisrunner","localhost"],"license":"MIT","_id":"@aegisrunner/vite@0.3.0","maintainers":[{"name":"securedall","email":"admin@aegisrunner.com"}],"homepage":"https://aegisrunner.com","bugs":{"url":"https://github.com/Aegis-Runner/AegisRunner/issues"},"dist":{"shasum":"9a578b22c5322d92079bd9eb22e285eaf9c1f3e7","tarball":"https://registry.npmjs.org/@aegisrunner/vite/-/vite-0.3.0.tgz","fileCount":3,"integrity":"sha512-vMOXiIuxJSDvh7UQeD1ZrcIWaRyq70FdqNXkZqfPBCKS0szCE+3TwSiaKV+l/7BhJEH/4xj7G2PyI2pmYdw0Hg==","signatures":[{"sig":"MEYCIQD9Du32POMtx0/l9uiErkIVvXKZbHlWybvi44heJvVqvgIhALeaNw8elBXBv7iSuoyNEeHfXHgse7bdPsup/Z1mKn3F","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11463},"main":"./index.mjs","type":"module","engines":{"node":">=18"},"exports":{".":"./index.mjs"},"gitHead":"2ced19e26de4cdfb82b4b8316395a2bb641bb780","_npmUser":{"name":"securedall","email":"admin@aegisrunner.com"},"repository":{"url":"git+https://github.com/Aegis-Runner/AegisRunner.git","type":"git","directory":"vite"},"_npmVersion":"10.8.2","description":"Vite plugin that attaches AegisRunner to your dev server — scan your localhost app with AI, no deploy. Covers Vue, React, Svelte and the rest of the Vite ecosystem.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@aegisrunner/cli":"^1.0.20"},"_hasShrinkwrap":false,"peerDependencies":{"vite":">=4"},"_npmOperationalInternal":{"tmp":"tmp/vite_0.3.0_1784290775639_0.24737017513272286","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@aegisrunner/vite","version":"0.4.0","keywords":["vite","vite-plugin","testing","e2e","regression","ai-testing","aegisrunner","localhost"],"license":"MIT","_id":"@aegisrunner/vite@0.4.0","maintainers":[{"name":"securedall","email":"admin@aegisrunner.com"}],"homepage":"https://aegisrunner.com","bugs":{"url":"https://github.com/Aegis-Runner/AegisRunner/issues"},"dist":{"shasum":"682dacaeaa752150a8c86e6379e76c3b334b6588","tarball":"https://registry.npmjs.org/@aegisrunner/vite/-/vite-0.4.0.tgz","fileCount":3,"integrity":"sha512-OOIOinwyYo5/HQUI/mGzJ7dXwPc5ldkx61sVaihR898dfVIDvbzlw+I5u5O0xSlZ3Ui5dRwNDBWMAnEb3TBPXw==","signatures":[{"sig":"MEQCIGosdZkNjlcroVa05HPrEPbhrHDrhbkijF95xpFtgvFJAiAhHUK6+hRfPboW+Otea//y9tKNvE/lDM/PSG6E+0MNcA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9884},"main":"./index.mjs","type":"module","engines":{"node":">=18"},"exports":{".":"./index.mjs"},"gitHead":"b891bcc0e863bc437299318cf31ee89aca39dbe6","_npmUser":{"name":"securedall","email":"admin@aegisrunner.com"},"repository":{"url":"git+https://github.com/Aegis-Runner/AegisRunner.git","type":"git","directory":"vite"},"_npmVersion":"10.8.2","description":"Vite plugin that attaches AegisRunner to your dev server — scan your localhost app with AI, no deploy. Covers Vue, React, Svelte and the rest of the Vite ecosystem.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@aegisrunner/cli":"^1.0.21"},"_hasShrinkwrap":false,"peerDependencies":{"vite":">=4"},"_npmOperationalInternal":{"tmp":"tmp/vite_0.4.0_1784296715913_0.1588990386241289","host":"s3://npm-registry-packages-npm-production"}},"0.4.1":{"name":"@aegisrunner/vite","version":"0.4.1","keywords":["vite","vite-plugin","testing","e2e","regression","ai-testing","aegisrunner","localhost"],"license":"MIT","_id":"@aegisrunner/vite@0.4.1","maintainers":[{"name":"securedall","email":"admin@aegisrunner.com"}],"homepage":"https://aegisrunner.com","bugs":{"url":"https://github.com/Aegis-Runner/AegisRunner/issues"},"dist":{"shasum":"d81bfbf089e70a8c58a7bec53fee2c372b67c6e7","tarball":"https://registry.npmjs.org/@aegisrunner/vite/-/vite-0.4.1.tgz","fileCount":3,"integrity":"sha512-Bfgks8FXjV5z8eJ2hcMcHz6V62GbLx0l9Zbrig+mSEs72bjy4d0+iEJMNr2nWFXBzjKKsyhcE1BNYw1TTeQdfA==","signatures":[{"sig":"MEYCIQDISwVo01Q9Jikx16YSUDvCqeswU/9BLiZXaHu5qEHrZgIhAKrWVo6oF1ih5X4P2mrjlCecs3NdCL1upP5nSRPW+NV2","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9884},"main":"./index.mjs","type":"module","engines":{"node":">=18"},"exports":{".":"./index.mjs"},"gitHead":"47130ee9f5710f8c9d56febe5a55b7481d1a2fe0","_npmUser":{"name":"securedall","email":"admin@aegisrunner.com"},"repository":{"url":"git+https://github.com/Aegis-Runner/AegisRunner.git","type":"git","directory":"vite"},"_npmVersion":"10.8.2","description":"Vite plugin that attaches AegisRunner to your dev server — scan your localhost app with AI, no deploy. Covers Vue, React, Svelte and the rest of the Vite ecosystem.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@aegisrunner/cli":"^1.0.25"},"_hasShrinkwrap":false,"peerDependencies":{"vite":">=4"},"_npmOperationalInternal":{"tmp":"tmp/vite_0.4.1_1784432234082_0.05768294946248731","host":"s3://npm-registry-packages-npm-production"}},"0.4.2":{"name":"@aegisrunner/vite","version":"0.4.2","description":"Vite plugin that attaches AegisRunner to your dev server — scan your localhost app with AI, no deploy. Covers Vue, React, Svelte and the rest of the Vite ecosystem.","type":"module","main":"./index.mjs","exports":{".":"./index.mjs"},"engines":{"node":">=18"},"peerDependencies":{"vite":">=4"},"dependencies":{"@aegisrunner/cli":"^1.0.25"},"keywords":["vite","vite-plugin","testing","e2e","regression","ai-testing","aegisrunner","localhost"],"repository":{"type":"git","url":"git+https://github.com/Aegis-Runner/AegisRunner.git","directory":"vite"},"homepage":"https://aegisrunner.com","license":"MIT","bugs":{"url":"https://github.com/Aegis-Runner/AegisRunner/issues"},"_id":"@aegisrunner/vite@0.4.2","gitHead":"f59f2f3e27bea61b73820319b8326c0a7d3f05ef","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-pio0QvNoCXDwtrik8Oj7vUcTzxYjpsIPUA8TtHYGfjAbMmb1+viuKmv09iXNu0m8fny0UBhW86Zcejx9A4LusQ==","shasum":"1d03131badeb2f19e9b2a88959cea6d0f10c7cbb","tarball":"https://registry.npmjs.org/@aegisrunner/vite/-/vite-0.4.2.tgz","fileCount":3,"unpackedSize":10400,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCRaaw66rP9XcDZnfBin2LRVHrY6+1rsL9yuPqRV7nQpgIhAMSsj7/dT5RuULM52+jv1Cp5iXjgcvBYEBoBagJoNQZp"}]},"_npmUser":{"name":"securedall","email":"admin@aegisrunner.com"},"directories":{},"maintainers":[{"name":"securedall","email":"admin@aegisrunner.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vite_0.4.2_1784454987844_0.6795052763635367"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-15T08:14:28.499Z","modified":"2026-07-19T09:56:28.105Z","0.1.0":"2026-07-15T08:14:28.917Z","0.2.0":"2026-07-15T10:06:11.285Z","0.2.1":"2026-07-16T06:15:36.173Z","0.3.0":"2026-07-17T12:19:35.773Z","0.4.0":"2026-07-17T13:58:36.045Z","0.4.1":"2026-07-19T03:37:14.209Z","0.4.2":"2026-07-19T09:56:27.956Z"},"bugs":{"url":"https://github.com/Aegis-Runner/AegisRunner/issues"},"license":"MIT","homepage":"https://aegisrunner.com","keywords":["vite","vite-plugin","testing","e2e","regression","ai-testing","aegisrunner","localhost"],"repository":{"type":"git","url":"git+https://github.com/Aegis-Runner/AegisRunner.git","directory":"vite"},"description":"Vite plugin that attaches AegisRunner to your dev server — scan your localhost app with AI, no deploy. Covers Vue, React, Svelte and the rest of the Vite ecosystem.","maintainers":[{"name":"securedall","email":"admin@aegisrunner.com"}],"readme":"# @aegisrunner/vite\n\nA [Vite](https://vitejs.dev) plugin that attaches [AegisRunner](https://aegisrunner.com) to your dev server. One line in `vite.config` puts an **AI scan of your localhost app one keypress away** — no deploy, no staging URL, no second terminal. Covers Vue, React, Svelte and the rest of the Vite ecosystem.\n\nBy default the scan runs **entirely on your machine**: a real browser ([`@aegisrunner/scan-runner`](https://www.npmjs.com/package/@aegisrunner/scan-runner)) drives your app at `http://localhost` directly — **no tunnel, no cloud relay**. That's the fastest and most reliable path for big apps (hundreds of routes, Vite's unbundled module bursts), and your app and credentials never leave your machine. Press **`a`** (or set `scanOn: 'startup'`) and AegisRunner crawls your running app, generates tests, and streams progress into your dev log.\n\nPrefer to relay **our** cloud browser over a secure outbound tunnel instead (nothing to install locally)? Pass `aegis({ runner: 'tunnel' })`.\n\n## Install\n\n```bash\nnpm install -D @aegisrunner/vite\n```\n\n## Use\n\n```js\n// vite.config.js\nimport { defineConfig } from 'vite'\nimport aegis from '@aegisrunner/vite'\n\nexport default defineConfig({\n  plugins: [\n    // React, Vue, Svelte, Solid… — one plugin for the whole Vite ecosystem\n    aegis({ token: process.env.AEGIS_TOKEN, scanOn: 'manual' }),   // see \"Your token\" below\n  ],\n})\n```\n\n### Your token\n\nProvide your project **CI trigger token** (create one under **Manage → CI/CD**, Pro/Business) one of three ways — **never commit the literal token**:\n\n```bash\n# 1. save it once (recommended) — every command AND the dev widget/plugins read it,\n#    so you can drop the `token` option entirely:\nnpx @aegisrunner/cli login --token aegis_xxxxxxxx\n# 2. or an env var — a git-ignored .env your dev server loads, or your shell:\nexport AEGIS_TOKEN=aegis_xxxxxxxx\n```\n\nPrecedence: the `token` option (above) → `AEGIS_TOKEN` env → the saved `aegis login` file.\n\n## In-app widget\n\nA floating AegisRunner **shield** appears in the corner of your dev app. Click it to:\n\n- **Test this page** — scan just the current route\n- **Test whole site** — a full AI crawl + test generation\n- **Login credentials** — set a username/password so gated pages get scanned\n\n…and watch live progress with a link to the results. No terminal, no context switch.\n(Pass `aegis({ widget: false })` to disable it; you can still press **[a]** in the terminal.)\n\n```text\n  VITE v5  ready in 140 ms\n  ➜  Local:   http://localhost:5173/\n\n  ◆ aegis   AegisRunner widget ready — click the shield in your app to scan\n  ◆ aegis   local execution ready — the browser runs on your machine (no tunnel)\n```\n\n## Options\n\n| Option | Default | Description |\n|--------|---------|-------------|\n| `token` | `process.env.AEGIS_TOKEN` | CI trigger token (Pro/Business). |\n| `runner` | `'local'` | `'local'` — run the browser on your machine, scanning `http://localhost` directly (no tunnel). `'tunnel'` — relay our cloud browser over an outbound tunnel. |\n| `scanOn` | `'manual'` | `'manual'` — press `a` / click the widget. `'startup'` — scan once when the dev server is ready. |\n| `port` | detected | Dev-server port. Auto-detected from the running server; override if needed. |\n| `host` | `'127.0.0.1'` | Local host your app listens on (what the runner scans, or the tunnel forwards to). |\n| `widget` | `true` | Inject the in-app shield widget. |\n| `label` | package name | Shown in every log line as `◆ aegis·<label>` — disambiguates several dev servers running at once (monorepos / `turbo dev`). |\n| `api` | public API | `process.env.AEGIS_API` override. |\n\n**Local mode** fetches the browser ([`@aegisrunner/scan-runner`](https://www.npmjs.com/package/@aegisrunner/scan-runner)) on the first scan (Chromium ~150MB, then cached) and logs in on your machine for gated pages, so **credentials never leave your network**. **Tunnel mode** needs no local browser but round-trips every request through the cloud.\n\nThe plugin is **dev-only** (`apply: 'serve'`) — it never runs during `vite build`. The runner lifecycle, tunnel client, scan trigger and live-progress stream are reused from [`@aegisrunner/cli`](https://www.npmjs.com/package/@aegisrunner/cli), so the protocol and auth live in one place. Prefer the raw command? [`aegis dev -- vite`](https://www.npmjs.com/package/@aegisrunner/cli) does the same thing without a config change.\n\n## Docs\n\n- [Test a localhost app](https://aegisrunner.com/use-cases/localhost-app-testing)\n- [Testing behind a firewall](https://aegisrunner.com/docs/testing-behind-a-firewall)\n\nMIT © AegisRunner\n","readmeFilename":"README.md"}