usepilot 0.16.0 → 0.18.0

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.
@@ -1,3 +1,3 @@
1
- import { t as e } from "./mount-DXYP_y3R.js";
1
+ import { t as e } from "./mount-CcuTA7bo.js";
2
2
  // src/auto.ts
3
3
  e();
package/dist/pilot.js CHANGED
@@ -1 +1 @@
1
- export { t as mountPilot } from "./mount-DXYP_y3R.js";
1
+ export { t as mountPilot } from "./mount-CcuTA7bo.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "usepilot",
3
- "version": "0.16.0",
3
+ "version": "0.18.0",
4
4
  "license": "FSL-1.1-MIT",
5
5
  "description": "Pilot: take the controls from your coding agent. A control surface for coding agents, with checked results: edit, comment on and ask for tasks on your running app, and Pilot checks what the agent changed on the page.",
6
6
  "keywords": [
@@ -28,6 +28,14 @@
28
28
  "./auto": {
29
29
  "types": "./types/auto.d.ts",
30
30
  "default": "./dist/pilot-auto.js"
31
+ },
32
+ "./vite": {
33
+ "types": "./types/vite.d.ts",
34
+ "default": "./cli/vite.js"
35
+ },
36
+ "./next": {
37
+ "types": "./types/next.d.ts",
38
+ "default": "./cli/next.js"
31
39
  }
32
40
  },
33
41
  "sideEffects": [
@@ -38,11 +46,12 @@
38
46
  "cli",
39
47
  "types",
40
48
  "README.md",
49
+ "GUIDE.md",
41
50
  "LICENSE.md"
42
51
  ],
43
52
  "scripts": {
44
- "build": "pnpm --filter @pilot/overlay build && pnpm --filter @pilot/cli build && rm -rf dist cli && cp -R ../overlay/dist ./dist && mkdir cli && cp ../cli/dist/index.js cli/index.js",
45
- "prepack": "pnpm run build && cp ../../LICENSE.md ./LICENSE.md",
46
- "postpack": "rm -f ./LICENSE.md"
53
+ "build": "pnpm --filter @pilot/overlay build && pnpm --filter @pilot/cli build && node build.mjs",
54
+ "prepack": "pnpm run build && node build.mjs license",
55
+ "postpack": "node build.mjs unlicense"
47
56
  }
48
57
  }
@@ -0,0 +1,7 @@
1
+ // `usepilot/next`: Pilot starts with `next dev` (never with next build or next start). Wrap the config: `export default withPilot(nextConfig)`.
2
+ export declare const DEV_PHASE = "phase-development-server";
3
+
4
+ export declare function withPilot<Config>(
5
+ config: Config | ((phase: string, context: unknown) => Config | Promise<Config>),
6
+ ): (phase: string, context: unknown) => Config | Promise<Config>;
7
+ export default withPilot;
@@ -0,0 +1,9 @@
1
+ // `usepilot/vite`: Pilot starts with Vite's dev server (never in a build). Add `pilot()` to the config's plugins.
2
+ export interface PilotPlugin {
3
+ name: string;
4
+ apply: "serve";
5
+ configureServer(server: unknown): void;
6
+ }
7
+
8
+ export declare function pilot(): PilotPlugin;
9
+ export default pilot;