usepilot 0.0.0-stage → 0.1.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.
- package/LICENSE.md +110 -0
- package/README.md +84 -2
- package/dist/mount-CQkGpAfC.js +4286 -0
- package/dist/pilot-auto.js +3 -0
- package/dist/pilot.js +1 -0
- package/package.json +23 -4
- package/types/auto.d.ts +2 -0
- package/types/index.d.ts +36 -0
package/dist/pilot.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as mountPilot } from "./mount-CQkGpAfC.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "usepilot",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"license": "FSL-1.1-MIT",
|
|
5
|
+
"description": "Pilot: take the controls from your coding agent and edit your UI in the browser. A dev-only design overlay that hands your edits to the agent as plain-CSS intent.",
|
|
6
|
+
"keywords": ["design", "overlay", "css", "tailwind", "agent", "mcp", "devtools"],
|
|
7
|
+
"type": "module",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./types/index.d.ts",
|
|
11
|
+
"default": "./dist/pilot.js"
|
|
12
|
+
},
|
|
13
|
+
"./auto": {
|
|
14
|
+
"types": "./types/auto.d.ts",
|
|
15
|
+
"default": "./dist/pilot-auto.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"sideEffects": ["./dist/pilot-auto.js"],
|
|
19
|
+
"files": ["dist", "types", "README.md", "LICENSE.md"],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "pnpm --filter @pilot/overlay build && rm -rf dist && cp -R ../overlay/dist ./dist",
|
|
22
|
+
"prepack": "pnpm run build && cp ../../LICENSE.md ./LICENSE.md",
|
|
23
|
+
"postpack": "rm -f ./LICENSE.md"
|
|
24
|
+
}
|
|
25
|
+
}
|
package/types/auto.d.ts
ADDED
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** Options for mountPilot (all optional). */
|
|
2
|
+
export interface PilotOptions {
|
|
3
|
+
/**
|
|
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
|
|
6
|
+
* tab takes precedence, so reloads keep what the user chose.
|
|
7
|
+
*/
|
|
8
|
+
launch?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* The keyboard shortcut that launches Pilot: modifiers and a key joined by
|
|
11
|
+
* `+` (`alt+p`, `ctrl+shift+e`). Default `alt+p` (Option+P on a Mac).
|
|
12
|
+
* `false` turns it off.
|
|
13
|
+
*/
|
|
14
|
+
shortcut?: string | false;
|
|
15
|
+
/**
|
|
16
|
+
* Data attributes this project names its elements with (e.g.
|
|
17
|
+
* `["data-block"]`), tried first when Pilot labels an element.
|
|
18
|
+
*/
|
|
19
|
+
nameAttributes?: string[];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface PilotInstance {
|
|
23
|
+
/** Show Pilot's toolbar. No-op if it's already running. */
|
|
24
|
+
launch(): void;
|
|
25
|
+
/** Hide Pilot. Same as the toolbar's Quit button. */
|
|
26
|
+
quit(): void;
|
|
27
|
+
readonly running: boolean;
|
|
28
|
+
/** Remove Pilot from the page completely. */
|
|
29
|
+
destroy(): void;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Mount Pilot into the page (once; later calls return the same instance).
|
|
34
|
+
* Invisible until launched. Does nothing on the server.
|
|
35
|
+
*/
|
|
36
|
+
export function mountPilot(options?: PilotOptions): PilotInstance;
|