pikibun 0.22.0 → 0.24.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.
Files changed (115) hide show
  1. package/README.md +2 -8
  2. package/dist/chunks/{chunk-KOZ2NZL7.js → chunk-XNVA5UWA.js} +7328 -1796
  3. package/dist/chunks/{cli-OGQRYOKN.js → cli-L6ODIDYQ.js} +13272 -13060
  4. package/dist/cli.js +10 -9
  5. package/dist/migrations/postgres/0044_host_browser.sql +6 -0
  6. package/dist/migrations/postgres/0045_connector_version.sql +6 -0
  7. package/dist/migrations/postgres/0046_session_tunnels.sql +12 -0
  8. package/dist/migrations/postgres/0047_native_page_callback.sql +4 -0
  9. package/dist/migrations/sqlite/0051_host_browser.sql +4 -0
  10. package/dist/migrations/sqlite/0052_connector_version.sql +4 -0
  11. package/dist/migrations/sqlite/0053_session_tunnels.sql +10 -0
  12. package/dist/migrations/sqlite/0054_native_page_callback.sql +4 -0
  13. package/dist/web/app.1d48db9d4c.js +12 -0
  14. package/dist/web/app.1d48db9d4c.js.br +0 -0
  15. package/dist/web/app.1d48db9d4c.js.gz +0 -0
  16. package/dist/web/browser.991ab24c49/LICENSES.txt +83 -0
  17. package/dist/web/browser.991ab24c49/LICENSES.txt.br +0 -0
  18. package/dist/web/browser.991ab24c49/LICENSES.txt.gz +0 -0
  19. package/dist/web/browser.991ab24c49/animation.js +1 -0
  20. package/dist/web/browser.991ab24c49/animation.js.br +0 -0
  21. package/dist/web/browser.991ab24c49/animation.js.gz +0 -0
  22. package/dist/web/browser.991ab24c49/bootstrap.js +1 -0
  23. package/dist/web/browser.991ab24c49/buffer.js +1 -0
  24. package/dist/web/browser.991ab24c49/buffer.js.br +0 -0
  25. package/dist/web/browser.991ab24c49/buffer.js.gz +0 -0
  26. package/dist/web/browser.991ab24c49/canvas.js +1 -0
  27. package/dist/web/browser.991ab24c49/canvas.js.br +0 -0
  28. package/dist/web/browser.991ab24c49/canvas.js.gz +0 -0
  29. package/dist/web/browser.991ab24c49/components.js +1 -0
  30. package/dist/web/browser.991ab24c49/components.js.br +0 -0
  31. package/dist/web/browser.991ab24c49/components.js.gz +0 -0
  32. package/dist/web/browser.991ab24c49/dom.js +1 -0
  33. package/dist/web/browser.991ab24c49/dom.js.br +0 -0
  34. package/dist/web/browser.991ab24c49/dom.js.gz +0 -0
  35. package/dist/web/browser.991ab24c49/environment.js +1 -0
  36. package/dist/web/browser.991ab24c49/environment.js.br +0 -0
  37. package/dist/web/browser.991ab24c49/environment.js.gz +0 -0
  38. package/dist/web/browser.991ab24c49/gesture.js +1 -0
  39. package/dist/web/browser.991ab24c49/gesture.js.br +0 -0
  40. package/dist/web/browser.991ab24c49/gesture.js.gz +0 -0
  41. package/dist/web/browser.991ab24c49/host.js +1 -0
  42. package/dist/web/browser.991ab24c49/host.js.br +0 -0
  43. package/dist/web/browser.991ab24c49/host.js.gz +0 -0
  44. package/dist/web/browser.991ab24c49/hot.js +1 -0
  45. package/dist/web/browser.991ab24c49/hot.js.br +0 -0
  46. package/dist/web/browser.991ab24c49/hot.js.gz +0 -0
  47. package/dist/web/browser.991ab24c49/keymap.js +1 -0
  48. package/dist/web/browser.991ab24c49/keymap.js.br +0 -0
  49. package/dist/web/browser.991ab24c49/keymap.js.gz +0 -0
  50. package/dist/web/browser.991ab24c49/list.js +1 -0
  51. package/dist/web/browser.991ab24c49/list.js.br +0 -0
  52. package/dist/web/browser.991ab24c49/list.js.gz +0 -0
  53. package/dist/web/browser.991ab24c49/loader.js +1 -0
  54. package/dist/web/browser.991ab24c49/modules.js +1 -0
  55. package/dist/web/browser.991ab24c49/modules.js.br +0 -0
  56. package/dist/web/browser.991ab24c49/modules.js.gz +0 -0
  57. package/dist/web/browser.991ab24c49/navigation.js +1 -0
  58. package/dist/web/browser.991ab24c49/navigation.js.br +0 -0
  59. package/dist/web/browser.991ab24c49/navigation.js.gz +0 -0
  60. package/dist/web/browser.991ab24c49/path.js +1 -0
  61. package/dist/web/browser.991ab24c49/path.js.br +0 -0
  62. package/dist/web/browser.991ab24c49/path.js.gz +0 -0
  63. package/dist/web/browser.991ab24c49/reactive.js +1 -0
  64. package/dist/web/browser.991ab24c49/reactive.js.br +0 -0
  65. package/dist/web/browser.991ab24c49/reactive.js.gz +0 -0
  66. package/dist/web/browser.991ab24c49/realm.js +1 -0
  67. package/dist/web/browser.991ab24c49/resource.js +1 -0
  68. package/dist/web/browser.991ab24c49/resource.js.br +0 -0
  69. package/dist/web/browser.991ab24c49/resource.js.gz +0 -0
  70. package/dist/web/browser.991ab24c49/runtime.js +2 -0
  71. package/dist/web/browser.991ab24c49/runtime.js.br +0 -0
  72. package/dist/web/browser.991ab24c49/runtime.js.gz +0 -0
  73. package/dist/web/browser.991ab24c49/scope.js +1 -0
  74. package/dist/web/browser.991ab24c49/scope.js.br +0 -0
  75. package/dist/web/browser.991ab24c49/scope.js.gz +0 -0
  76. package/dist/web/browser.991ab24c49/standard.js +1 -0
  77. package/dist/web/browser.991ab24c49/standard.js.br +0 -0
  78. package/dist/web/browser.991ab24c49/standard.js.gz +0 -0
  79. package/dist/web/browser.991ab24c49/testing.js +1 -0
  80. package/dist/web/browser.991ab24c49/testing.js.br +0 -0
  81. package/dist/web/browser.991ab24c49/testing.js.gz +0 -0
  82. package/dist/web/browser.991ab24c49/values.js +1 -0
  83. package/dist/web/browser.991ab24c49/values.js.br +0 -0
  84. package/dist/web/browser.991ab24c49/values.js.gz +0 -0
  85. package/dist/web/host.a102cc9754.js +38 -0
  86. package/dist/web/host.a102cc9754.js.br +0 -0
  87. package/dist/web/host.a102cc9754.js.gz +0 -0
  88. package/dist/web/icons/180.c8c643a608.png +0 -0
  89. package/dist/web/icons/192.c099d3e1ed.png +0 -0
  90. package/dist/web/icons/32.caf706bbd1.png +0 -0
  91. package/dist/web/icons/512.e2c2dd9ba7.png +0 -0
  92. package/dist/web/index.html +129 -14
  93. package/dist/web/index.html.br +0 -0
  94. package/dist/web/index.html.gz +0 -0
  95. package/dist/web/manifest.webmanifest +22 -0
  96. package/dist/web/nsh-math.7ad3060fbc.wasm +0 -0
  97. package/dist/web/nsh-math.7ad3060fbc.wasm.br +0 -0
  98. package/dist/web/nsh-math.7ad3060fbc.wasm.gz +0 -0
  99. package/dist/web/nsh-math.cc869361ca.bin +0 -0
  100. package/dist/web/nsh-syntaxes.ea0da56d04.bin +0 -0
  101. package/dist/web/nsh-syntaxes.ea0da56d04.bin.br +0 -0
  102. package/dist/web/nsh-syntaxes.ea0da56d04.bin.gz +0 -0
  103. package/dist/web/nsh.5be0579ad8.wasm +0 -0
  104. package/dist/web/nsh.5be0579ad8.wasm.br +0 -0
  105. package/dist/web/nsh.5be0579ad8.wasm.gz +0 -0
  106. package/dist/web/nsh.89070fe10a.js +259 -0
  107. package/dist/web/nsh.89070fe10a.js.br +0 -0
  108. package/dist/web/nsh.89070fe10a.js.gz +0 -0
  109. package/npm-shrinkwrap.json +251 -220
  110. package/package.json +8 -7
  111. package/dist/web/assets/index-BdJ_-50H.js +0 -62
  112. package/dist/web/assets/index-ClW_3YVo.js +0 -5
  113. package/dist/web/assets/index-DR-JFaOB.css +0 -1
  114. package/dist/web/favicon.svg +0 -1
  115. package/dist/web/sw.js +0 -61
package/README.md CHANGED
@@ -54,15 +54,9 @@ Model credentials stay in Pi on your host. Pairing keeps the host private to you
54
54
 
55
55
  The connector offers the models matched by `enabledModels` in Pi's `settings.json` (the same patterns Pi uses for model cycling, e.g. `"anthropic/*"`, `"*/claude-opus-5-5*"`), or every authenticated Pi model when that list is unset. `--model PROVIDER/MODEL` (repeatable) overrides both. In the web app, you and the host's admins can also disable any of these models, for everyone who uses the host, without restarting the connector (**Settings → Hosts →** the host **→ Models**).
56
56
 
57
- ## Host commands from chat
57
+ ## Host commands
58
58
 
59
- Ask the agent to use `host_bash` when you need a host-installed SDK or network access, for example `dotnet --info`. Ordinary `bash` remains in the offline sandbox; a missing SDK does not silently turn a sandbox command into a host command. Update the connector to a version advertising `hostCommands` to expose this tool.
60
-
61
- **Host commands run outside the sandbox as the connector's OS user.** They can read or change host files and credentials, access the network, and launch other processes. They have no CPU, memory, process-count or disk quotas. Pikibun passes the host's `PATH` and `HOME`, not the connector's entire environment, and starts Bash without shell profiles, in the session worktree. Use an absolute SDK path or configure the connector's `PATH` if a tool is only available in your interactive shell.
62
-
63
- Commands run in the session's worktree, whose files and Git configuration the agent can change: builds, package scripts, Git hooks and settings such as `core.fsmonitor` there can run the agent's code on the host, even for a command that looks harmless like `git status`. Approve a host command only if you would run it yourself in that directory.
64
-
65
- Each exact command and timeout needs the approval of the **host owner**, or of a member they (or one of the host's admins) granted host commands, in the session. On a shared host, the approver must also have approve access to the session. The session owner's **Auto-approve** skips this decision only when they own the host too, or hold an automatic host command grant on it; without one it never authorizes commands on someone else's host. Commands default to a five-minute timeout (`timeout_seconds`, 1-3600); timeout, cancellation and output limits terminate the process group, but cannot contain an unrestricted command that deliberately detaches processes.
59
+ Sessions have no shell on the host: `host_bash` was removed. What runs outside the sandbox as the connector's OS user are the tools of the workspace's [extensions](../../docs/extensions.md), and every command of a session that runs on the host itself. Each needs the approval of the **host owner**, or of a member they (or one of the host's admins) granted host commands; see [host commands](../../docs/host-commands.md). For an SDK the sandbox lacks, install it where the sandbox sees it (`/usr` or `/usr/local`).
66
60
 
67
61
  ## macOS, Windows and hosts without bubblewrap
68
62