usepilot 0.14.0 → 0.16.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-BiOBwGgJ.js";
1
+ import { t as e } from "./mount-DXYP_y3R.js";
2
2
  // src/auto.ts
3
3
  e();
package/dist/pilot.js CHANGED
@@ -1 +1 @@
1
- export { t as mountPilot } from "./mount-BiOBwGgJ.js";
1
+ export { t as mountPilot } from "./mount-DXYP_y3R.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "usepilot",
3
- "version": "0.14.0",
3
+ "version": "0.16.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": [
@@ -18,6 +18,8 @@
18
18
  "bin": {
19
19
  "usepilot": "./cli/index.js"
20
20
  },
21
+ "main": "./dist/pilot.js",
22
+ "types": "./types/index.d.ts",
21
23
  "exports": {
22
24
  ".": {
23
25
  "types": "./types/index.d.ts",
package/types/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  export interface PilotOptions {
3
3
  /**
4
4
  * Launch Pilot as soon as it mounts. Default: false: Pilot stays dormant
5
- * until the shortcut launches it. A launch or quit in the current browser
5
+ * until the shortcut launches it. A launch or close in the current browser
6
6
  * tab takes precedence, so reloads keep what the user chose.
7
7
  */
8
8
  launch?: boolean;
@@ -17,12 +17,17 @@ export interface PilotOptions {
17
17
  * `["data-block"]`), tried first when Pilot labels an element.
18
18
  */
19
19
  nameAttributes?: string[];
20
+ /**
21
+ * The project this page belongs to: its package.json's name, written by
22
+ * `npx usepilot init`. `npx usepilot` runs for its own project's pages only.
23
+ */
24
+ project?: string;
20
25
  }
21
26
 
22
27
  export interface PilotInstance {
23
28
  /** Show Pilot's toolbar. No-op if it's already running. */
24
29
  launch(): void;
25
- /** Hide Pilot. Same as the toolbar's Quit button. */
30
+ /** Close Pilot. Same as the toolbar's Close button. */
26
31
  quit(): void;
27
32
  readonly running: boolean;
28
33
  /** Remove Pilot from the page completely. */