@howaboua/pi-browser 0.0.9 → 0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @howaboua/pi-browser
2
2
 
3
+ ## 0.0.10
4
+
5
+ - Use denser browser help in PCC GPT prompt mode.
6
+
3
7
  ## 0.0.9
4
8
 
5
9
  - Use consistent tool discovery across native, Code and Notebook modes, with compact help in PCC GPT prompt mode.
@@ -1734,11 +1734,11 @@ function browserHelp(hosts = [], gpt = false) {
1734
1734
  return {
1735
1735
  input: gpt ? "Request={action,...fields}; Pi {command:JSON.stringify(request)}; Code/Notebook JSON.stringify(request), JSON.parse(result)" : "Request={action,...fields}; Pi: {command:JSON.stringify(request)}; Code/Notebook: JSON.stringify(request), JSON.parse(result)",
1736
1736
  ...routed ? {
1737
- host: `${hosts.join("|")}${gpt ? " optional; retain user-named host on every call + refs/handles" : " optional; keep a user-named host on every call and its refs/handles"}`
1737
+ host: `${hosts.join("|")}${gpt ? " optional; user-named host→retain every call+its refs/handles" : " optional; keep a user-named host on every call and its refs/handles"}`
1738
1738
  } : {},
1739
1739
  refs: "tabs -> open; keep ref_id/id/cursors with their result",
1740
- safety: gpt ? "Unless authorized, ask before unfamiliar low-trust navigation/consequential action; never close shared browser" : "Ask before unfamiliar low-trust navigation or consequential action unless authorized; never close shared browser",
1741
- batch: gpt ? "{action_name:[{...fields}],...}; nonempty arrays, no item action; root host/response_length; independent only" : "{action_name:[{...fields}],...}; nonempty arrays; items omit action; host/response_length at request root; independent only",
1740
+ safety: gpt ? "Unfamiliar low-trust navigation/consequential action→ask first unless authorized; never close shared browser" : "Ask before unfamiliar low-trust navigation or consequential action unless authorized; never close shared browser",
1741
+ batch: gpt ? "{action_name:[{...fields}],...}; arrays nonempty; items omit action; host/response_length at root; independent only" : "{action_name:[{...fields}],...}; nonempty arrays; items omit action; host/response_length at request root; independent only",
1742
1742
  actions: {
1743
1743
  help: "",
1744
1744
  tabs: "query? offset? owned_only? -> ref_id title url owned",
@@ -6,15 +6,15 @@ export function browserHelp(hosts = [], gpt = false) {
6
6
  : "Request={action,...fields}; Pi: {command:JSON.stringify(request)}; Code/Notebook: JSON.stringify(request), JSON.parse(result)",
7
7
  ...(routed
8
8
  ? {
9
- host: `${hosts.join("|")}${gpt ? " optional; retain user-named host on every call + refs/handles" : " optional; keep a user-named host on every call and its refs/handles"}`,
9
+ host: `${hosts.join("|")}${gpt ? " optional; user-named host→retain every call+its refs/handles" : " optional; keep a user-named host on every call and its refs/handles"}`,
10
10
  }
11
11
  : {}),
12
12
  refs: "tabs -> open; keep ref_id/id/cursors with their result",
13
13
  safety: gpt
14
- ? "Unless authorized, ask before unfamiliar low-trust navigation/consequential action; never close shared browser"
14
+ ? "Unfamiliar low-trust navigation/consequential action→ask first unless authorized; never close shared browser"
15
15
  : "Ask before unfamiliar low-trust navigation or consequential action unless authorized; never close shared browser",
16
16
  batch: gpt
17
- ? "{action_name:[{...fields}],...}; nonempty arrays, no item action; root host/response_length; independent only"
17
+ ? "{action_name:[{...fields}],...}; arrays nonempty; items omit action; host/response_length at root; independent only"
18
18
  : "{action_name:[{...fields}],...}; nonempty arrays; items omit action; host/response_length at request root; independent only",
19
19
  actions: {
20
20
  help: "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@howaboua/pi-browser",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "Logged-in browser inspection and control for Pi, Code Mode and Notebook Mode.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -45,7 +45,7 @@
45
45
  "pack:dry": "npm pack --dry-run"
46
46
  },
47
47
  "peerDependencies": {
48
- "@howaboua/pi-codex-conversion": ">=4.0.2",
48
+ "@howaboua/pi-codex-conversion": ">=4.0.3",
49
49
  "@earendil-works/pi-ai": ">=1.0.0",
50
50
  "@earendil-works/pi-coding-agent": ">=1.0.0",
51
51
  "typebox": "*",
@@ -57,7 +57,7 @@
57
57
  }
58
58
  },
59
59
  "devDependencies": {
60
- "@howaboua/pi-codex-conversion": "4.0.2",
60
+ "@howaboua/pi-codex-conversion": "4.0.3",
61
61
  "@biomejs/biome": "^2.5.15",
62
62
  "@earendil-works/pi-ai": "1.3.0",
63
63
  "@earendil-works/pi-coding-agent": "1.3.0",
@@ -9,15 +9,15 @@ export function browserHelp(
9
9
  : "Request={action,...fields}; Pi: {command:JSON.stringify(request)}; Code/Notebook: JSON.stringify(request), JSON.parse(result)",
10
10
  ...(routed
11
11
  ? {
12
- host: `${hosts.join("|")}${gpt ? " optional; retain user-named host on every call + refs/handles" : " optional; keep a user-named host on every call and its refs/handles"}`,
12
+ host: `${hosts.join("|")}${gpt ? " optional; user-named host→retain every call+its refs/handles" : " optional; keep a user-named host on every call and its refs/handles"}`,
13
13
  }
14
14
  : {}),
15
15
  refs: "tabs -> open; keep ref_id/id/cursors with their result",
16
16
  safety: gpt
17
- ? "Unless authorized, ask before unfamiliar low-trust navigation/consequential action; never close shared browser"
17
+ ? "Unfamiliar low-trust navigation/consequential action→ask first unless authorized; never close shared browser"
18
18
  : "Ask before unfamiliar low-trust navigation or consequential action unless authorized; never close shared browser",
19
19
  batch: gpt
20
- ? "{action_name:[{...fields}],...}; nonempty arrays, no item action; root host/response_length; independent only"
20
+ ? "{action_name:[{...fields}],...}; arrays nonempty; items omit action; host/response_length at root; independent only"
21
21
  : "{action_name:[{...fields}],...}; nonempty arrays; items omit action; host/response_length at request root; independent only",
22
22
  actions: {
23
23
  help: "",