pikibun 0.19.0 → 0.21.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.
- package/README.md +20 -5
- package/dist/chunks/{chunk-B3B75QDQ.js → chunk-3TZBT5V3.js} +2371 -1250
- package/dist/chunks/{cli-M3XHZYKE.js → cli-IULTMVDM.js} +7941 -7196
- package/dist/cli.js +111 -6
- package/dist/migrations/postgres/0037_requester_auto_approve.sql +23 -0
- package/dist/migrations/postgres/0038_workspace_attachments.sql +11 -0
- package/dist/migrations/postgres/0039_extensions.sql +54 -0
- package/dist/migrations/sqlite/0044_requester_auto_approve.sql +21 -0
- package/dist/migrations/sqlite/0045_workspace_attachments.sql +9 -0
- package/dist/migrations/sqlite/0046_extensions.sql +52 -0
- package/dist/web/assets/{index-ZSxhzT-_.js → index-C4R4RKOE.js} +1 -1
- package/dist/web/assets/index-DAiR46ZC.js +62 -0
- package/dist/web/assets/index-DR-JFaOB.css +1 -0
- package/dist/web/index.html +2 -2
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/dist/web/assets/index--HHEIJzn.js +0 -53
- package/dist/web/assets/index-CFSPzPNw.css +0 -1
package/README.md
CHANGED
|
@@ -122,14 +122,21 @@ The sandbox has no network, so `gh` and `curl` inside it can't reach GitHub. Age
|
|
|
122
122
|
- `github_comment` posts a comment. It waits for a human approval unless the session owner's message chose **Auto-approve**.
|
|
123
123
|
- `github_issue` opens an issue with exactly the approved title and body in one of those repositories, and gives the agent its number and URL (connector newer than 0.9.0). It waits for a human approval unless the session owner's message chose **Auto-approve**. If GitHub refuses (issues turned off, no access), no issue is opened and the agent gets GitHub's reason.
|
|
124
124
|
|
|
125
|
-
##
|
|
125
|
+
## Extensions
|
|
126
126
|
|
|
127
|
-
|
|
127
|
+
Sessions on this host run the Pi extensions their workspace chose that are installed here at the same version. The host's owner installs them from Pikibun (the host's page), or here:
|
|
128
128
|
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
```sh
|
|
130
|
+
npx pikibun@latest extensions add npm:cc-safety-net@2.7.2 # an exact version
|
|
131
|
+
npx pikibun@latest extensions add git:github.com/acme/ext@<commit> # a full commit, over https
|
|
132
|
+
npx pikibun@latest extensions add ./my-extension.ts # a dev extension: your own sessions only
|
|
133
|
+
npx pikibun@latest extensions list # what each offers, ignores, or why it doesn't load
|
|
134
|
+
npx pikibun@latest extensions remove cc-safety-net
|
|
135
|
+
```
|
|
131
136
|
|
|
132
|
-
|
|
137
|
+
They live in the connector's state directory; npm runs none of their install scripts unless you add `--allow-scripts`. A running connector picks up changes made here within half a minute. `pikibun connect --no-remote-installs` refuses installs asked for in Pikibun.
|
|
138
|
+
|
|
139
|
+
Extensions run in the connector, as this machine's user, with your files, credentials and network, outside the sandbox. Install only code you trust. Their tool calls are approved like host commands. Pikibun's own `web_fetch` and `web_search` tools are retired: web search comes from extensions.
|
|
133
140
|
|
|
134
141
|
## Chat options
|
|
135
142
|
|
|
@@ -160,3 +167,11 @@ npx pikibun@latest serve
|
|
|
160
167
|
runs the Pikibun server and its web app on `http://127.0.0.1:7878`, reachable from this computer only, with this computer as the host that runs your sessions. You sign in with GitHub through an OAuth app of your own: register one once at <https://github.com/settings/applications/new> with the homepage `http://127.0.0.1` and the callback URL `http://127.0.0.1/api/auth/github/callback`, and the first run asks for its client ID and secret (hidden). It then prints a sign-in link: the GitHub account that signs in through it becomes the owner, and the only account that can sign in. Once you have, this computer pairs itself as your host, sandboxed as with `connect` (or with `--unsafe-no-sandbox`; `--no-host` serves without it).
|
|
161
168
|
|
|
162
169
|
Everything is kept in `~/.local/share/pikibun/server` (`--state-dir`), apart from `connect`'s own state, so later runs need no options. Run `npx pikibun serve --help` for the rest.
|
|
170
|
+
|
|
171
|
+
### Sharing it with others
|
|
172
|
+
|
|
173
|
+
```sh
|
|
174
|
+
npx pikibun@latest serve --share --public-origin https://pikibun.example.com --admin github:12345 --password-auth --create-admin admin
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
runs the same server from the same data as a full multi-user Pikibun: people sign in at the public HTTPS address, create workspaces, and pair their own machines with `connect`. It still serves plain HTTP on `127.0.0.1:7878` (`--listen all` for every interface); a TLS proxy or tunnel you run (`tailscale serve`, Cloudflare Tunnel, Caddy) serves the public address and forwards to it, with `--trust-proxy` if it sets `X-Forwarded-Proto`/`-Host`. `--admin` lists the administrators by user ID (repeatable; `https://api.github.com/users/<login>` shows a GitHub account's numeric ID), and the first of them with an account owns this computer's host. `--signup` decides who may create an account (`invite`, the default, `open` or `off`). People sign in with GitHub through an OAuth app whose callback is `<public origin>/api/auth/github/callback` (`--github-client-id`, its secret as before), with usernames and passwords (`--password-auth`), or both; `--create-admin USERNAME` makes a listed `password:` administrator's account, asking for its password at a hidden prompt. The settings are remembered, so later runs need only `--share`; without it, the same data serves you alone again.
|