pinokiod 7.0.8 → 7.0.9
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 +1 -1
- package/prototype/system/SKILL_PINOKIO.md +12 -1
- package/server/index.js +1 -1
package/package.json
CHANGED
|
@@ -40,7 +40,7 @@ Failure handling:
|
|
|
40
40
|
|
|
41
41
|
Use direct `pterm` commands for control-plane operations:
|
|
42
42
|
|
|
43
|
-
`pterm search`, `pterm status`, `pterm run`, `pterm logs`, `pterm upload`, `pterm which`, `pterm stars`, `pterm star` / `pterm unstar`, `pterm registry search`, `pterm download`
|
|
43
|
+
`pterm search`, `pterm status`, `pterm run`, `pterm open`, `pterm logs`, `pterm upload`, `pterm which`, `pterm stars`, `pterm star` / `pterm unstar`, `pterm registry search`, `pterm download`
|
|
44
44
|
|
|
45
45
|
Do not run update commands from this skill.
|
|
46
46
|
Once a Pinokio-managed app is selected, treat `pterm` and the launcher-managed interfaces as the source of truth for lifecycle and execution. Do not switch to repo-local CLIs or bundled app binaries unless the user explicitly asks for CLI mode.
|
|
@@ -145,6 +145,17 @@ Follow these sections in order:
|
|
|
145
145
|
- use `ready_url` by default when it exists and is caller-usable
|
|
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
|
+
- 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>`
|
|
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`
|
|
154
|
+
- default behavior should be popup-preferred:
|
|
155
|
+
- on a desktop Pinokio node, it opens a Pinokio popup window
|
|
156
|
+
- on a server-only or minimal node, it falls back to the system browser automatically
|
|
157
|
+
- use `--surface browser` only when the user explicitly wants the system browser instead of the default popup-preferred behavior
|
|
158
|
+
- if popup sizing matters and the user does not specify one, default to `--preset center-medium`
|
|
148
159
|
- Failure criteria:
|
|
149
160
|
- timeout before success
|
|
150
161
|
- app drops back to `offline` during startup after a run attempt
|
package/server/index.js
CHANGED
|
@@ -8600,7 +8600,7 @@ class Server {
|
|
|
8600
8600
|
return
|
|
8601
8601
|
}
|
|
8602
8602
|
const normalizeSurface = (value) => {
|
|
8603
|
-
return String(value || '').trim().toLowerCase() === '
|
|
8603
|
+
return String(value || '').trim().toLowerCase() === 'browser' ? 'browser' : 'popup'
|
|
8604
8604
|
}
|
|
8605
8605
|
const normalizePreset = (value) => {
|
|
8606
8606
|
const normalized = String(value || '').trim().toLowerCase()
|