@pasko70/pibo 1.2.0 → 1.3.1
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 +9 -0
- package/dist/apps/chat/static-assets.js +1 -1
- package/dist/apps/chat-ui/assets/{dist-CrBzZkUp.js → dist-7YaJd19a.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-DfcIkFSN.js → dist-8Noo5eCN.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-B4lw9z4F.js → dist-BIvPnn_C.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-DGLWQLX8.js → dist-BbNE72h8.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-CGINd7XU.js → dist-CVQU42Fn.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-CyyISotB.js → dist-ChSZNqKE.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-y9D6la48.js → dist-CiYeO8nN.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-DFbnFNpX.js → dist-CjSI6y5z.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-BcT_c1EJ.js → dist-D7TCkoFT.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-sKDHTwaT.js → dist-KXCMNKIL.js} +1 -1
- package/dist/apps/chat-ui/assets/{dist-BbTaHWON.js → dist-Ubstha8t.js} +1 -1
- package/dist/apps/chat-ui/assets/{index-CUkuvI3v.js → index-CmxtUVG1.js} +3 -3
- package/dist/apps/chat-ui/index.html +1 -1
- package/dist/apps/chat-vscode-web/assets/index-B5QK07zO.css +2 -0
- package/dist/apps/chat-vscode-web/assets/index-C3GTPyDo.js +41 -0
- package/dist/apps/chat-vscode-web/index.html +14 -0
- package/dist/apps/vscode-artifacts/latest.vsix +0 -0
- package/dist/apps/vscode-artifacts/pibo-vscode-1.3.0.vsix +0 -0
- package/dist/apps/vscode-artifacts/pibo-vscode-1.3.1.vsix +0 -0
- package/dist/cli.js +32 -1
- package/dist/config/config.js +9 -0
- package/dist/core/context-build.js +36 -2
- package/dist/core/wsl.js +100 -0
- package/dist/gateway/web.js +51 -11
- package/dist/plugins/dev-auth.js +26 -0
- package/dist/setup/cli.js +60 -8
- package/dist/vscode/cli.js +90 -0
- package/dist/vscode/code-cli.js +119 -0
- package/dist/vscode/install.js +177 -0
- package/dist/vscode/status.js +80 -0
- package/dist/vscode/types.js +14 -0
- package/dist/vscode/uninstall.js +49 -0
- package/dist/vscode/vsix-fetcher.js +131 -0
- package/dist/web/channel.js +47 -1
- package/dist/web/http.js +6 -3
- package/docs/ops/install-user-host.md +21 -1
- package/docs/ops/vscode-extension-release.md +160 -0
- package/package.json +6 -4
|
@@ -39,6 +39,8 @@ systemctl daemon-reload
|
|
|
39
39
|
|
|
40
40
|
## Configure auth
|
|
41
41
|
|
|
42
|
+
For a public deployment with Google OAuth:
|
|
43
|
+
|
|
42
44
|
```bash
|
|
43
45
|
pibo config set auth.baseURL https://pibo.example.com
|
|
44
46
|
pibo config set auth.secret <at-least-32-characters>
|
|
@@ -47,6 +49,24 @@ pibo config set auth.googleClientSecret <google-client-secret>
|
|
|
47
49
|
pibo config set auth.allowedEmails you@example.com
|
|
48
50
|
```
|
|
49
51
|
|
|
52
|
+
For a local development install on a developer laptop, use the local auth mode. This skips Google OAuth and binds the gateway to loopback only:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
pibo config set auth.mode local
|
|
56
|
+
pibo gateway:web --auth=local
|
|
57
|
+
# Open http://localhost:4788/apps/chat and click "Sign in with Google".
|
|
58
|
+
# The dev identity dev@pibo.local is auto-attached without OAuth.
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Local auth refuses a non-loopback bind:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
pibo gateway:web --auth=local --web-host=0.0.0.0
|
|
65
|
+
# Error: --auth=local requires a loopback bind (127.0.0.1, ::1, or localhost).
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Three independent request-time safety layers guard the local auth service. See `docs/specs/capabilities/web-auth-and-same-origin-host.md` REQ-010 and the `pibo-debug-auth` skill for the full model.
|
|
69
|
+
|
|
50
70
|
## Start the gateway
|
|
51
71
|
|
|
52
72
|
`pibo-web` will not start until Better Auth config is complete. This cannot be automated because you must create/select your Google OAuth client and allowed user list. Check it first:
|
|
@@ -63,7 +83,7 @@ systemctl enable --now pibo-web
|
|
|
63
83
|
pibo gateway web status
|
|
64
84
|
```
|
|
65
85
|
|
|
66
|
-
If you use Caddy, point DNS at the host before expecting Let's Encrypt to issue a certificate.
|
|
86
|
+
If you use Caddy, point DNS at the host before expecting Let's Encrypt to issue a certificate. Local auth mode bypasses the Better Auth requirement and prints a warning instead of a hard blocker.
|
|
67
87
|
|
|
68
88
|
## When not to use this path
|
|
69
89
|
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
# Pibo VS Code Extension Release Runbook
|
|
2
|
+
|
|
3
|
+
The Pibo VS Code extension is shipped as a `.vsix` artifact. This runbook describes the end-to-end release process and the split of responsibilities between the maintainer and the `pibo` release script.
|
|
4
|
+
|
|
5
|
+
## Distribution channels
|
|
6
|
+
|
|
7
|
+
The extension is published through two channels that are intentionally separate:
|
|
8
|
+
|
|
9
|
+
| Channel | Owner | Cadence | What it carries |
|
|
10
|
+
|---|---|---|---|
|
|
11
|
+
| npm `@pasko70/pibo` | automated via `npm publish` (or the release script's `--publish-npm` flag) | every `main` commit that includes a version bump | the `pibo` CLI, the gateway, the WebView bundle at `dist/apps/chat-vscode-web/` |
|
|
12
|
+
| VS Code Marketplace `pibo.pibo-vscode` | **maintainer uploads the VSIX manually** via <https://marketplace.visualstudio.com/manage> | every release that needs the extension UI updated | the `.vsix` produced by `npm run vscode:package` |
|
|
13
|
+
|
|
14
|
+
The npm package and the Marketplace extension are versioned together. The release script bumps both `package.json` (npm) and `src/apps/chat-vscode/package.json` (extension) in one go so the published artifacts stay in lockstep.
|
|
15
|
+
|
|
16
|
+
`pibo vscode install` (new since the distribution rework) downloads the VSIX from the GitHub Release for the configured repo (`Pascapone/pibo` by default). When the maintainer also uploads the same VSIX to the Marketplace, both channels serve identical bytes.
|
|
17
|
+
|
|
18
|
+
## Versioning
|
|
19
|
+
|
|
20
|
+
- The root `package.json#version` is the npm version. It follows [SemVer](https://semver.org/).
|
|
21
|
+
- The extension's `src/apps/chat-vscode/package.json#version` is the Marketplace version. It is kept equal to the npm version (the release script enforces this).
|
|
22
|
+
- A SemVer **minor** bump (e.g., `1.2.0` → `1.3.0`) is appropriate when the change is additive and backward-compatible. The distribution rework itself is a minor bump: existing `pibo` users are unaffected, and the new `pibo vscode install` command is opt-in.
|
|
23
|
+
- A SemVer **major** bump is reserved for breaking changes to either the public CLI surface or the WebView host↔Web postMessage contract.
|
|
24
|
+
|
|
25
|
+
## Release steps
|
|
26
|
+
|
|
27
|
+
The release script does the heavy lifting. The maintainer's job is to review, commit, and push.
|
|
28
|
+
|
|
29
|
+
### 1. Pick the version
|
|
30
|
+
|
|
31
|
+
Decide on the next version. For the distribution rework that introduces `pibo vscode install`, the right bump is `1.2.0` → `1.3.0` (new CLI command, new marketplace-ready extension, no breaking changes).
|
|
32
|
+
|
|
33
|
+
### 2. Bump + build + package (local)
|
|
34
|
+
|
|
35
|
+
From the repo root:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
node scripts/release.mjs --version 1.3.0
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
The script:
|
|
42
|
+
|
|
43
|
+
1. Reads the current version from both `package.json` files.
|
|
44
|
+
2. Writes the new version to both files.
|
|
45
|
+
3. Runs `npm run build` (which includes the WebView build).
|
|
46
|
+
4. Runs `npm run vscode:package` to produce `dist/apps/vscode-artifacts/pibo-vscode-1.3.0.vsix` and a stable `latest.vsix` copy.
|
|
47
|
+
5. Prints the VSIX path and size.
|
|
48
|
+
|
|
49
|
+
The script does **not** push to git or create a tag. The maintainer reviews the diff and commits it.
|
|
50
|
+
|
|
51
|
+
### 3. Commit and tag
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
git add package.json src/apps/chat-vscode/package.json
|
|
55
|
+
git commit -m "chore(release): bump @pasko70/pibo and pibo.pibo-vscode to 1.3.0"
|
|
56
|
+
git tag -a v1.3.0 -m "@pasko70/pibo 1.3.0"
|
|
57
|
+
git push origin main
|
|
58
|
+
git push origin v1.3.0
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### 4. Create a GitHub Release with the VSIX attached
|
|
62
|
+
|
|
63
|
+
The maintainer's local machine has the `gh` CLI installed:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
gh release create v1.3.0 \
|
|
67
|
+
dist/apps/vscode-artifacts/pibo-vscode-1.3.0.vsix \
|
|
68
|
+
--title "pibo 1.3.0" \
|
|
69
|
+
--notes "..."
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
In environments where `gh` is not available (e.g. the pibo compute workers),
|
|
73
|
+
`scripts/create-github-release.mjs` performs the same action via the Pibo
|
|
74
|
+
GitHub App, which has been installed on `Pascapone/pibo` with the
|
|
75
|
+
`contents: write` scope. The script accepts the GitHub App credentials from
|
|
76
|
+
`PIBO_GITHUB_APP_ID` and `PIBO_GITHUB_APP_KEY` environment variables, or
|
|
77
|
+
from the well-known env file at
|
|
78
|
+
`/root/.pibo/uploads/github-app.env` (with the PEM key auto-discovered
|
|
79
|
+
next to it).
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
node scripts/create-github-release.mjs \
|
|
83
|
+
--tag v1.3.0 \
|
|
84
|
+
--asset dist/apps/vscode-artifacts/pibo-vscode-1.3.0.vsix
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Both paths make the VSIX downloadable from a stable URL
|
|
88
|
+
(`https://github.com/Pascapone/pibo/releases/download/v1.3.0/pibo-vscode-1.3.0.vsix`).
|
|
89
|
+
The `pibo vscode install` command uses the GitHub Releases API to discover
|
|
90
|
+
this URL automatically.
|
|
91
|
+
|
|
92
|
+
The release script can also do this in one step:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
node scripts/release.mjs --version 1.3.0 --create-release
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
…if the tag has already been pushed. Internally the release script calls
|
|
99
|
+
`scripts/create-github-release.mjs`, so it works in worker environments
|
|
100
|
+
without `gh`.
|
|
101
|
+
|
|
102
|
+
### 5. Publish the npm package
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
npm publish
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Or, in one go with the release script:
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
node scripts/release.mjs --version 1.3.0 --publish-npm --create-release
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
The publish step uploads the `pibo` CLI, the gateway plugins, and the WebView bundle. The Marketplace upload is intentionally **not** automated — see step 6.
|
|
115
|
+
|
|
116
|
+
### 6. Upload the VSIX to the VS Code Marketplace (manual)
|
|
117
|
+
|
|
118
|
+
The Marketplace does not currently accept a Personal Access Token from this account (Azure-side provisioning issue). The release is therefore finished by uploading the VSIX through the Marketplace web UI:
|
|
119
|
+
|
|
120
|
+
1. Open <https://marketplace.visualstudio.com/manage>.
|
|
121
|
+
2. Pick the publisher `pibo` (created during the first marketplace publish).
|
|
122
|
+
3. Click **Upload new extension** and select `dist/apps/vscode-artifacts/pibo-vscode-1.3.0.vsix`.
|
|
123
|
+
4. The Marketplace validates the manifest and publishes the extension. The publisher ID is `pibo.pibo-vscode`.
|
|
124
|
+
|
|
125
|
+
After the upload, `code --install-extension pibo.pibo-vscode` works for end users.
|
|
126
|
+
|
|
127
|
+
### 7. Verify
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
pibo vscode install --vsix dist/apps/vscode-artifacts/pibo-vscode-1.3.0.vsix
|
|
131
|
+
pibo vscode status
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Confirm that `status` reports `pibo.pibo-vscode@1.3.0` installed via the expected `code` binary, and that the WebView loads the gateway at `http://127.0.0.1:4788/apps/chat-vscode/`.
|
|
135
|
+
|
|
136
|
+
## Rollback
|
|
137
|
+
|
|
138
|
+
If a release is broken:
|
|
139
|
+
|
|
140
|
+
- **npm**: `npm unpublish @pasko70/pibo@1.3.0` works only within 72 hours of publish. After that, publish `1.3.1` with a fix.
|
|
141
|
+
- **VSIX via `pibo vscode install`**: delete the GitHub Release and re-create it with a fixed VSIX. Users who have already installed the extension will not auto-update until they run `pibo vscode install` again.
|
|
142
|
+
- **Marketplace**: the Marketplace UI supports un-publishing or un-listing. For a fast fix, upload a corrected `.vsix` with the same version (the Marketplace accepts a re-upload before processing the original).
|
|
143
|
+
|
|
144
|
+
## What ships in the `pibo` npm package
|
|
145
|
+
|
|
146
|
+
The `files` whitelist in `package.json` controls what is published:
|
|
147
|
+
|
|
148
|
+
- `dist/` — the compiled server, the gateway plugins, the WebView bundles (chat-ui, context-files-ui, chat-vscode-web).
|
|
149
|
+
- `context/` — the bundled agent skills.
|
|
150
|
+
- `skills/builtin/**` — built-in user skills.
|
|
151
|
+
- `docs/ops/**` — operator runbooks.
|
|
152
|
+
- `README.md` and `src/mcp/LICENSE.mcp-cli`.
|
|
153
|
+
|
|
154
|
+
The `.vsix` is **not** in the npm package. It lives on the GitHub Release and (after the maintainer uploads it) on the VS Code Marketplace.
|
|
155
|
+
|
|
156
|
+
## Why the WebView bundle is in the npm package
|
|
157
|
+
|
|
158
|
+
The extension's WebView loads from `http://<gateway>/apps/chat-vscode/`, not from the `.vsix`. The gateway serves the bundle out of `dist/apps/chat-vscode-web/`. If the bundle were not in the npm package, the gateway would return 404 for the WebView and the extension would be unusable.
|
|
159
|
+
|
|
160
|
+
Including the bundle in npm costs about 1 MB of disk per `pibo` install and zero runtime cost for users who never open the extension. Users who only use the `pibo` CLI never load the bundle.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pasko70/pibo",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Minimal TypeScript wrapper around Pi Coding Agent.",
|
|
6
6
|
"files": [
|
|
@@ -35,8 +35,10 @@
|
|
|
35
35
|
"vscode:typecheck": "tsc -p src/apps/chat-vscode/extension/tsconfig.json --noEmit && tsc -p src/apps/chat-vscode/extension/webview/tsconfig.json --noEmit",
|
|
36
36
|
"vscode:webview:build": "vite build --config src/apps/chat-vscode/extension/webview/vite.config.ts",
|
|
37
37
|
"vscode:extension:build": "esbuild src/apps/chat-vscode/extension/src/extension.ts --bundle --platform=node --target=node24 --format=cjs --outfile=src/apps/chat-vscode/dist/extension/extension.cjs --external:vscode --sourcemap=inline",
|
|
38
|
-
"vscode:package": "
|
|
39
|
-
"
|
|
38
|
+
"vscode:package": "node scripts/vscode-package.mjs",
|
|
39
|
+
"release": "node scripts/release.mjs",
|
|
40
|
+
"release:github": "node scripts/create-github-release.mjs",
|
|
41
|
+
"build": "tsc -p tsconfig.json && npm run web-ui:build && npm run vscode:webview:build && node scripts/ensure-bin-executable.mjs",
|
|
40
42
|
"start": "node dist/bin/pibo.js",
|
|
41
43
|
"test": "npm run build && node --test test/*.test.mjs test/chat-vscode/*.test.mjs",
|
|
42
44
|
"check:product-vocab": "node scripts/legacy-product-vocabulary-gate.mjs",
|
|
@@ -85,4 +87,4 @@
|
|
|
85
87
|
"vite": "^8.0.10",
|
|
86
88
|
"vite-tsconfig-paths": "^5.1.4"
|
|
87
89
|
}
|
|
88
|
-
}
|
|
90
|
+
}
|