@vibecontrols/vibe-plugin-desk-windows 2026.1202.2 → 2026.1203.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 CHANGED
@@ -4,48 +4,52 @@ The Windows provider for BotManor Stewards desks. It lets a Steward use a person
4
4
 
5
5
  Install it next to the desk meta plugin. The meta routes actions here and enforces fencing, idempotency, timeouts, the workspace folder, local consent and the kill switch. This plugin drives the desktop.
6
6
 
7
- ## Release and signing
7
+ ## Install
8
+
9
+ **What the PC needs.**
8
10
 
9
- This plugin hands a person's own machine to a Steward, so every release is signed (BOFF-16561, BotManor spec 10 §8 T7). The agent loads a desk plugin only with a valid `vibe-plugin.sig.json` from a key in its trust root.
11
+ - Windows 10 or 11, or Windows Server 2019 or later, with a person signed in to the desktop. The agent must run as that person, not as a service: a service has no desktop to drive.
12
+ - Windows PowerShell 5.1 and the .NET Framework 4.x, both built into Windows. PowerShell must run in Full Language mode, and no application control policy may block `Add-Type`: the helper compiles `helper/DeskWindowsHelper.cs` when it starts.
13
+ - The VibeControls agent with the desk meta plugin, `@vibecontrols/vibe-plugin-desk`.
10
14
 
11
- - Every push to `main` runs `.github/workflows/release.yml`. It stamps the next free CalVer version, runs `boff sanity --force`, builds, signs the package with the `VIBE_PLUGIN_SIGNING_KEY` secret under the key id in the `VIBE_PLUGIN_SIGNING_KEY_ID` variable, checks the packed tarball the way the agent does, and publishes it to npm through npm trusted publishing (GitHub Actions OIDC, no npm token).
12
- - npm trusts the calling file: `@vibecontrols/vibe-plugin-desk-windows` needs a trusted publisher for `Algoshred/vibe-plugin-desk-windows` and `release.yml`. A package that was never published needs its first publish by hand before the trusted publisher can be added.
13
- - `npm-unpublish.yml` documents unpublish and deprecate; npm tokens can no longer perform them, so a maintainer runs them from their own npm session.
15
+ **Install both plugins** as the signed-in person:
14
16
 
15
- ### First release (one-time, by hand)
17
+ ```powershell
18
+ vibe plugin install @vibecontrols/vibe-plugin-desk
19
+ vibe plugin install @vibecontrols/vibe-plugin-desk-windows
20
+ ```
16
21
 
17
- The package has not been published yet, so the first release needs two people-only steps before the workflow can publish on its own. Do them in this order:
22
+ Desk plugins are never trusted by default, so each install asks for confirmation (`--yes` confirms in a non-interactive run). The agent loads a desk plugin only when its `vibe-plugin.sig.json` verifies against a key in the agent's trust root; a changed or unsigned package is refused.
18
23
 
19
- 1. **Add the signing key.** A holder of the release key adds the repository secret `VIBE_PLUGIN_SIGNING_KEY`: the same Ed25519 PKCS#8 PEM, for key id `vc-plugins-2026-11`, that `vibe-plugin-desk-macos` uses (`gh secret set VIBE_PLUGIN_SIGNING_KEY -R Algoshred/vibe-plugin-desk-windows < key.pem`). Until it exists, every release run stops at "Sign the plugin package" with `PLUGIN_SIGNING_KEY is not set`. Do not clear the `VIBE_PLUGIN_SIGNING_KEY_ID` variable to get past it: desk plugins must be signed.
20
- 2. **Publish the first signed build.** A maintainer with publish rights on the `@vibecontrols` scope, signed in to npm with 2FA, publishes from a clean checkout of `main`. Never publish an unsigned tarball. Like the release workflow, the steps below build once, sign, pack once with `--ignore-scripts`, and publish that exact tarball with `--ignore-scripts`. A plain `npm publish` would run `prepublishOnly` and `prebuild`, delete and rebuild `dist/` after signing, and could ship files the signature does not cover.
24
+ **Turn remote control on.** It stays off after the install. The person at the PC turns it on with `vibe config --set desk.remote-control=on`, and can stop everything at any time with `vibe desk kill`.
21
25
 
22
- ```bash
23
- bun install --frozen-lockfile
24
- npm version <next CalVer, e.g. 2026.1202.1> --no-git-tag-version
25
- bun run build
26
- export PLUGIN_SIGNING_KEY="$(cat key.pem)"
27
- # Sign the built package, then pack it for real and verify the unpacked tarball.
28
- bun .github/actions/ci-workflows/node-lib/sign-plugin/sign.ts sign --dir . --key-id vc-plugins-2026-11
29
- bun .github/actions/ci-workflows/node-lib/sign-plugin/sign.ts verify --dir .
30
- unset PLUGIN_SIGNING_KEY
31
- # Pack the signed files once, confirm the signature is inside, and publish that tarball.
32
- TARBALL="$(npm pack --ignore-scripts --json | jq -r '.[0].filename')"
33
- tar -tzf "$TARBALL" | grep -x 'package/vibe-plugin.sig.json'
34
- npm publish "./$TARBALL" --access public --ignore-scripts
35
- ```
26
+ **Status.** The package is published and signed, but it is not offered yet: it is not in the agent's plugin catalog, and it is not in the desk meta's `DESK_PROVIDERS`, so neither the agent nor the meta installs it for anyone. Installed by hand as above, it registers as a desk provider and the meta routes actions to it like any other. Offering it is a separate change that:
36
27
 
37
- 3. **Register the trusted publisher.**
28
+ 1. catalogues the package in the agent as `trusted: false`, not a default, pinned to the signed release's `integrity`;
29
+ 2. adds it to the desk meta's `DESK_PROVIDERS` as opt-in.
30
+
31
+ ## Release and signing
38
32
 
39
- ```bash
40
- npm trust github @vibecontrols/vibe-plugin-desk-windows --file release.yml --repo Algoshred/vibe-plugin-desk-windows --allow-publish --yes
41
- ```
33
+ This plugin hands a person's own machine to a Steward, so every release is signed (BOFF-16561, BotManor spec 10 §8 T7).
42
34
 
43
- 4. **Prove the workflow publishes.** Within two days, run the Release workflow from the Actions tab (`workflow_dispatch`). Check that it publishes the next version over OIDC, and that the finalize job tags the release and creates the GitHub Release.
35
+ - Every push to `main` runs `.github/workflows/release.yml`. It stamps the next free CalVer version, runs `boff sanity --force`, builds, signs the package with the `VIBE_PLUGIN_SIGNING_KEY` secret under the key id in the `VIBE_PLUGIN_SIGNING_KEY_ID` variable (`vc-plugins-2026-11`), checks the packed tarball the way the agent does, and publishes it to npm under `latest` through npm trusted publishing (GitHub Actions OIDC, no npm token).
36
+ - npm trusts the calling file: the trusted publisher of `@vibecontrols/vibe-plugin-desk-windows` is `Algoshred/vibe-plugin-desk-windows` with `release.yml`. Renaming the file, or publishing from another workflow, breaks the publish until the registration on npmjs.com is changed.
37
+ - Never clear the `VIBE_PLUGIN_SIGNING_KEY_ID` variable to get a release through: an unsigned desk plugin does not load.
38
+ - Unpublish and deprecate are not trusted-publishing operations. A maintainer runs them from their own npm session with 2FA (`npm-unpublish.yml` documents the commands). To withdraw a bad release, deprecate it (`npm deprecate @vibecontrols/vibe-plugin-desk-windows@<version> "<reason>"`); a catalog pin keeps agents on the release it names.
44
39
 
45
- Publishing does not offer the plugin to anyone. It is not in the agent's plugin catalog, and not in the desk meta's provider list. Enabling it is a separate change that:
40
+ The one-time bootstrap is done: the signing key is a repository secret, `2026.1202.1` was published by hand with the npm token, and `2026.1202.2` was the first release published through OIDC (BOFF-16566).
41
+
42
+ **Check a published release** the way the agent does, with the agent's verifier and trust root (a clone of `Algoshred/vibecontrols-agent` next to this one):
43
+
44
+ ```bash
45
+ mkdir -p ../desk-windows-check && cd ../desk-windows-check
46
+ npm pack @vibecontrols/vibe-plugin-desk-windows@<version> && tar -xzf *.tgz
47
+ bun -e 'import { verifyPluginPackage } from "../vibecontrols-agent/src/core/plugin-signature.ts";
48
+ import { PLUGIN_SIGNING_KEYS } from "../vibecontrols-agent/src/config/plugin-trust-root.ts";
49
+ console.log(verifyPluginPackage("package", "@vibecontrols/vibe-plugin-desk-windows", PLUGIN_SIGNING_KEYS));'
50
+ ```
46
51
 
47
- 1. catalogues the package in the agent as `trusted: false` with a pinned `integrity`;
48
- 2. adds it to the desk meta's `DESK_PROVIDERS` as opt-in, with no `defaultOn`.
52
+ It prints `{ ok: true, keyId: "vc-plugins-2026-11", ... }` for a good release and `ok: false` with a reason, such as `FILE_CHANGED`, otherwise.
49
53
 
50
54
  ## How it works
51
55
 
@@ -97,7 +101,7 @@ Both return `DESK_OFFLINE`; they are not silently ignored.
97
101
 
98
102
  ## Configuration
99
103
 
100
- Set with `vibe config set <key> <value>`:
104
+ Set with `vibe config --set <key>=<value>`:
101
105
 
102
106
  | Key | Default | Meaning |
103
107
  | ------------------------- | ------------------------------------------------------------- | --------------------------------------------------------------- |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibecontrols/vibe-plugin-desk-windows",
3
- "version": "2026.1202.2",
3
+ "version": "2026.1203.1",
4
4
  "packageManager": "bun@1.4.4",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "format": "vibecontrols-plugin-signature/v1",
3
3
  "package": "@vibecontrols/vibe-plugin-desk-windows",
4
- "version": "2026.1202.2",
4
+ "version": "2026.1203.1",
5
5
  "keyId": "vc-plugins-2026-11",
6
6
  "files": {
7
7
  "LICENSE": "sha512-Rww0A8k2ve2punYCwOToupYSPGq/A3QUcNVtHYu19iwzkWPnAVcWx4YwZbmzTkruL9OtfGgl+WjFyqo+R3rqlQ==",
8
- "README.md": "sha512-iTlAhlXwHNjnQOMGGR3gPPp2oFf1fKgMc1yWy8fLcvx0e96ionJTVvHUp7HY4/OHap/PAEN93+mxLpJeip9Bgg==",
8
+ "README.md": "sha512-V5vOIHZvUzt17PGxuX452U79QNhMpPVJBuA2Bv/IRXTt0rzhwthlWgU6gzcHlj9i43B2IxVcubH9Z3VoLq+1RQ==",
9
9
  "dist/backend.d.ts": "sha512-y7jL0rWUwAurDduTgSU8c4NJDYsp6/jWIM903tu1GIhkJ+fE8jH9CC/ZUHEXypxSDjv41zkQiPJ+yvM53ZFZfg==",
10
10
  "dist/env.d.ts": "sha512-Aoqc8Jt9PGDZABBKr05UUaI9dT26HTPo0UY8rQ0fdKnm3DjkQar7uH73rlJk8+UoEbEIiyf1B0yARaM2/gvjlQ==",
11
11
  "dist/files.d.ts": "sha512-7MRMPUdB5iYdRex5D1EbeB6vHt0pUOejH7yh/RoRlE/6boyALNYcvz+Jb/J8leJAgPAX7CZbDdqBy1/XiyZC3g==",
@@ -15,7 +15,7 @@
15
15
  "dist/keys.d.ts": "sha512-sw1eFejKWrYtHZ8uppKibRtxPT65V+VL6F0kNZkPprL6SfuC04vjhZrDEQp+7JqsbbbhV8XjRU0IQCqwwy0DZA==",
16
16
  "helper/DeskWindowsHelper.cs": "sha512-LkzrioJD4aR4ZBZ98NKiMF8OUlItUidjhpxWXuEkR+YoIaUFrpUudRrNg42fEQMRnuxMBO4oo9+b31yJcOT7Ng==",
17
17
  "helper/desk_windows_helper.ps1": "sha512-nN3kJuiPFut7zjiKQrZ3bBHnxyzvAL7CLeWrbz830xErwBeKD41W2PMSNpi010W13VdkrV6HZ3ea77mNg5yVPQ==",
18
- "package.json": "sha512-zts+b5klv/kvHOIjFh/ASEWwXIoJoNoh3BXwoHuBj6KKFN9CBHiRVILvNPm1Ji6ZOZCqnscEIyulpCfYl4h3gw=="
18
+ "package.json": "sha512-OQ27Q/OtAlBvwt2tHJneydgsl6TgiyUc4AmbDiiGVizo3zda+gWA4Ho2BxE/6r0orMEXfXUUMBtcjy+h5ECLpw=="
19
19
  },
20
- "signature": "2TAxFJYH4ENHlhxMm9YDsavmYA3ncrBVX+CBlptVxWARX33h27yF8yBAw2tvARjNjodrAd2H5KTdZHgCKZwYBA=="
20
+ "signature": "HeWbZTburvR1TTSDca9WHwNWKMPfSgShTdwsxKm2isAUO6THmjTxS//SSAvbSOW7HNn5HI2E2ygI6WmOnsuHAg=="
21
21
  }