pinokiod 7.0.9 → 7.0.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "7.0.9",
3
+ "version": "7.0.10",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -146,16 +146,43 @@ Follow these sections in order:
146
146
  - if `ready_url` is missing, or it fails because the client cannot access loopback, and `external_ready_urls` exists, try those URLs in order
147
147
  - missing `external_ready_urls` is normal; it usually means network sharing is off
148
148
  - If the user explicitly wants to open the app UI or open a web page in a browser or popup window:
149
- - use `pterm open <url>`
149
+ - use `pterm open`
150
150
  - only do this for explicit viewing/manual interaction requests, not for normal API automation
151
- - use a caller-usable app URL:
152
- - `ready_url` when it exists and the current machine can reach it
153
- - otherwise the first usable entry from `external_ready_urls`
151
+ - syntax:
152
+ - `pterm open <url>`
153
+ - `pterm open <url> --peer <peer>`
154
+ - `pterm open <url> --surface browser`
155
+ - `pterm open <url> --preset center-small|center-medium|center-large|fullscreen`
156
+ - `pterm open <url> --peer <peer> --surface browser`
157
+ - choose the URL based on where the window should open:
158
+ - if the window should open on the current machine where `pterm` is running, use a caller-usable app URL:
159
+ - `ready_url` when it exists and the current machine can reach it
160
+ - otherwise the first usable entry from `external_ready_urls`
161
+ - if the window should open on a remote peer node, add `--peer <peer>` and use the app's source-local URL on that peer:
162
+ - prefer `ready_url` from that peer's point of view
163
+ - if needed, use the source-local URL in `local_entries[].local.url`
164
+ - do not invent raw `http://<peer_host>:<internal_port>` URLs from port numbers or local entries
154
165
  - default behavior should be popup-preferred:
155
166
  - on a desktop Pinokio node, it opens a Pinokio popup window
156
167
  - on a server-only or minimal node, it falls back to the system browser automatically
157
168
  - use `--surface browser` only when the user explicitly wants the system browser instead of the default popup-preferred behavior
169
+ - popup size presets:
170
+ - `center-small`
171
+ - `center-medium`
172
+ - `center-large`
173
+ - `fullscreen`
158
174
  - if popup sizing matters and the user does not specify one, default to `--preset center-medium`
175
+ - examples:
176
+ - open on the current machine with the default popup-preferred behavior:
177
+ - `pterm open http://192.168.86.26:42011`
178
+ - open on the current machine in the system browser:
179
+ - `pterm open http://192.168.86.26:42011 --surface browser`
180
+ - open on peer `192.168.86.26` using that peer's local app URL:
181
+ - `pterm open http://127.0.0.1:7860 --peer 192.168.86.26`
182
+ - open on peer `192.168.86.26` in that peer's system browser:
183
+ - `pterm open http://127.0.0.1:7860 --peer 192.168.86.26 --surface browser`
184
+ - open on peer `192.168.86.26` as a large popup:
185
+ - `pterm open http://127.0.0.1:7860 --peer 192.168.86.26 --preset center-large`
159
186
  - Failure criteria:
160
187
  - timeout before success
161
188
  - app drops back to `offline` during startup after a run attempt
@@ -266,15 +293,10 @@ Follow these sections in order:
266
293
  - prefer `ready` apps first
267
294
  - then `running` apps
268
295
  - then offline apps if more targets are still needed
269
- - If subagents are available, prefer one subagent per selected target.
270
- - the main agent should do the search, choose the targets, and aggregate the final results
271
- - each subagent should own exactly one target `ref` when it exists, otherwise one `app_id`
272
- - each subagent should run status/run/logs/upload only for its own target
273
296
  - Run and monitor each selected target independently.
274
297
  - Keep outputs labeled by target `ref` when it exists, otherwise `app_id`.
275
298
  - For remote path-based tasks, run `pterm upload <ref> <file...>` separately for each remote target when `ref` exists, otherwise fall back to `app_id`.
276
299
  - Do not reuse one target's uploaded remote file path for another target.
277
- - If subagents are unavailable, keep the same per-target separation and run the targets sequentially.
278
300
 
279
301
  ## Behavior Rules
280
302