@rackbops/ac-plugin-contract 2.0.0-alpha.53 → 2.0.0-alpha.54

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 (2) hide show
  1. package/AUTHORING.md +14 -5
  2. package/package.json +1 -1
package/AUTHORING.md CHANGED
@@ -451,8 +451,10 @@ the bar collapses. The layout arithmetic and the whole-pixel rounding were measu
451
451
  bundling a library the import map does not carry. `plugins/ac-artifacts-weft` inlines
452
452
  `@lepid-labs/weft-embed` (a framework-free reader, 1.15 MB) and its stylesheet into `dist/ui.js`, and its
453
453
  `rollup.ui.config.mjs` is the reference. (The rollup configs of `issues-classic` and `ac-auth-cf-access`
454
- inline a dependency into their SERVER bundle, and every other plugin's UI config inlines nothing; none of
455
- them is a model for this.) What a bundled dependency changes:
454
+ inline a dependency into their SERVER bundle only. `plugins/agents` inlines the small pure-TypeScript
455
+ `@rackbops/toolchain-compare` into its server AND its UI bundle (#694), with no stylesheet; every other plugin's
456
+ UI config inlines nothing. None of them is a model for a frontend dependency with a stylesheet.) What a bundled
457
+ dependency changes:
456
458
 
457
459
  - **One file.** The host serves exactly the manifest's `frontend` and never a sibling, so a stylesheet is a
458
460
  string in the bundle that the panel injects as a `<style>`, once (the config's `inlineCss` plugin turns
@@ -710,8 +712,12 @@ into `dist/server.js` — the image ships a plugin's `package.json` + `dist/*.js
710
712
  is the worked example (#312): `tsconfig.build.json` emits the server alone to `dist-tsc/`, and
711
713
  `rollup.config.mjs` bundles that into `dist/server.js` with everything except Node's own `node:*` built-ins
712
714
  inlined — `yaml` (its `views.yaml` parser) included. `createPlugin` stays pure regardless of how the server is
713
- built. The **frontend** is never bundled this way (§3 above) — `@ac/host`/`react`/`@rackbops/ui-react` resolve
714
- through the shell's import map, not a bundle.
715
+ built. (`plugins/agents` is a second example, #694: its server imports the published
716
+ `@rackbops/toolchain-compare`, so `tsconfig.build.json` emits to `dist-tsc/` and its `rollup.config.mjs` bundles that
717
+ into `dist/server.js`; `bundle.test.ts` pins that the file imports nothing but `node:` built-ins.) The
718
+ **frontend** never inlines the import-map specifiers (§3 above) — `@ac/host`/`react`/`@rackbops/ui-react` resolve
719
+ through the shell's import map, not a bundle; a library the map does not carry may be inlined (see "A frontend
720
+ that bundles a dependency").
715
721
 
716
722
  ## 4. `CHANGELOG.md` — required, and version-matched
717
723
 
@@ -857,7 +863,10 @@ console before the console gives up and reports a bare `network` timeout instead
857
863
 
858
864
  A capability whose verb starts a long-running agent job (`exec/claude`'s `{ jobId }`, #54) doesn't
859
865
  need to poll or parse SSE itself -- `host.agent.streamJob(machineId, jobId, { label })` opens the
860
- agent's `GET /v1/jobs/:jobId/events` through the same pinned client, registers a new host task for
866
+ agent's `GET /v1/jobs/:jobId/events` (which serves `claude` jobs only since #675: a toolchain-upgrade
867
+ job's stream is `GET /v1/toolchain/upgrade/:jobId/events`, under its own capability, and is not
868
+ reachable through `streamJob` until the console's PR 2 for #675 adds an optional path) through the same
869
+ pinned client, registers a new host task for
861
870
  `label`, and relays every `line`/`done` frame into it as the job runs; it resolves `{ taskId }` once
862
871
  the agent has confirmed the stream is open (a `200`), or rejects (starting no task) on anything
863
872
  else -- an invalid `jobId`, an unknown machine, or a non-`200` from the agent (a `404`, a `403`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rackbops/ac-plugin-contract",
3
- "version": "2.0.0-alpha.53",
3
+ "version": "2.0.0-alpha.54",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "The artifact-console plugin ABI for out-of-repo plugin authors: HostApi, the acPlugin manifest contribution points, the generated manifest JSON Schema, and the @ac/host ambient browser declaration.",