pi-ele-picker 0.2.0 → 0.2.1
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/README.md +2 -2
- package/client/picker.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -65,7 +65,7 @@ export default defineConfig({
|
|
|
65
65
|
});
|
|
66
66
|
```
|
|
67
67
|
|
|
68
|
-
Then run the dev server **and start pi in the same directory** (the bridge is matched by working directory). A
|
|
68
|
+
Then run the dev server **and start pi in the same directory** (the bridge is matched by working directory). A **Pi Picker** launcher appears in the page.
|
|
69
69
|
|
|
70
70
|
### Options
|
|
71
71
|
|
|
@@ -96,7 +96,7 @@ The launcher starts in the **bottom-right** corner and stays out of the way:
|
|
|
96
96
|
- **Shows the live pi session status** as a coloured dot **when enabled** — green while pi is running, amber while follow-ups are queued, grey while awaiting input, red when the bridge is gone (see [Session status](#session-status)).
|
|
97
97
|
- The panel always opens **next to the launcher**, flipping sides and clamping to stay on screen.
|
|
98
98
|
|
|
99
|
-
1. Click
|
|
99
|
+
1. Click **Pi Picker** and pick an element on the page.
|
|
100
100
|
2. Describe the change (paste or attach screenshots if you like).
|
|
101
101
|
3. Choose a delivery mode:
|
|
102
102
|
- **写入pi输入框** — pre-fills the current pi input box with the composed prompt; you edit and press Enter.
|
package/client/picker.js
CHANGED
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
var triggerDot = document.createElement('span');
|
|
117
117
|
triggerDot.className = 'dot st-off';
|
|
118
118
|
trigger.appendChild(triggerDot);
|
|
119
|
-
trigger.appendChild(document.createTextNode('
|
|
119
|
+
trigger.appendChild(document.createTextNode('Pi Picker'));
|
|
120
120
|
trigger.title = '拖拽可移动 · 点击开始选择元素';
|
|
121
121
|
root.appendChild(trigger);
|
|
122
122
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-ele-picker",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Pick an element in your running page, describe the change, and send it to a pi session. Ships a Vite dev plugin (browser picker + discovery endpoint) and the matching pi bridge extension.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|