wicked-studio 0.1.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/LICENSE +21 -0
- package/README.md +88 -0
- package/dist/assets/index-BTAaMKh2.js +423 -0
- package/dist/assets/index-DaaUU8Ep.css +32 -0
- package/dist/index.html +16 -0
- package/package.json +74 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Michael Parcewski
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# wicked-studio
|
|
2
|
+
|
|
3
|
+
**The coder-facing skin of the wicked experience plane.** A React SPA that is a *pure HTTP/WS
|
|
4
|
+
client* of the [wicked-crew](https://github.com/mikeparcewski/wicked-crew) daemon: launch and
|
|
5
|
+
steer governed agent runs, answer human gates, watch live CoreEvent streams, browse projects,
|
|
6
|
+
evidence, coverage, and the decisions ledger — everything the daemon exposes on `/api/v1` and
|
|
7
|
+
`/ws`, and nothing else.
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
┌─────────────────────┐ HTTP /api/v1 + WS /ws ┌──────────────────────┐
|
|
11
|
+
│ wicked-studio │ ───────────────────────────────────────▶ │ wicked-crew daemon │
|
|
12
|
+
│ (this repo, SPA) │ ◀─────────────────────────────────────── │ (control plane: │
|
|
13
|
+
│ the skin │ wire contract: wicked-crew-api-types │ API/engine/gates) │
|
|
14
|
+
└─────────────────────┘ └──────────────────────┘
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## The division of labor
|
|
18
|
+
|
|
19
|
+
- **wicked-crew is the control plane** — the daemon, the `/api/v1` REST surface, the `/ws`
|
|
20
|
+
event stream, the wicked-core engine underneath, the gates and the evidence. It is fully
|
|
21
|
+
functional headless.
|
|
22
|
+
- **wicked-studio is the skin** — a client of that control plane, developed, versioned, and
|
|
23
|
+
released as its own product. It imports **zero** crew source; the only thing the two share is
|
|
24
|
+
the published wire contract, [`wicked-crew-api-types`](https://github.com/mikeparcewski/wicked-crew/tree/main/packages/crew-api-types).
|
|
25
|
+
- **Crew still ships a default skin.** wicked-crew's release build (`build:with-studio`) copies
|
|
26
|
+
this package's built `dist/` into the daemon's serving tree, so `npx wicked-crew serve` keeps
|
|
27
|
+
the one-command local UX — UI and API same-origin on one port. The dependency direction is
|
|
28
|
+
*control-plane-ships-a-dist-artifact*: crew depends on studio's build output, never on its
|
|
29
|
+
source; studio depends on crew's wire contract, never on its internals.
|
|
30
|
+
|
|
31
|
+
## Pairing with a daemon
|
|
32
|
+
|
|
33
|
+
The connection surface is deliberately small (`src/api/client.ts`):
|
|
34
|
+
|
|
35
|
+
| Mode | How the SPA finds the daemon |
|
|
36
|
+
|---|---|
|
|
37
|
+
| **Bundled / same-origin** (production) | `window.location.origin` — whatever origin the daemon serves the SPA from is where the SPA calls back to. `--port` / `CREW_PORT` just work; no host is baked into the bundle. |
|
|
38
|
+
| **Split dev or standalone** | `VITE_API_HOST` (host:port, no scheme), baked at build time by Vite. `.env.development` sets `127.0.0.1:7701` — the crew daemon's default — for the `npm run dev` server on :4200. |
|
|
39
|
+
|
|
40
|
+
The daemon's loopback CORS admits any `http://localhost:*` / `http://127.0.0.1:*` origin, so a
|
|
41
|
+
standalone studio on its own port can drive a local daemon out of the box.
|
|
42
|
+
|
|
43
|
+
## Develop
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
# a running control plane (defaults to 127.0.0.1:7701)
|
|
47
|
+
npx wicked-crew serve
|
|
48
|
+
|
|
49
|
+
# then, in this repo
|
|
50
|
+
npm install
|
|
51
|
+
npm run dev # vite on http://127.0.0.1:4200, pointed at :7701 via .env.development
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
`npm test` (vitest + testing-library), `npm run typecheck`, `npm run lint`, `npm run build`
|
|
55
|
+
(tsc + vite → `dist/`). CI runs all four on every PR.
|
|
56
|
+
|
|
57
|
+
## Standalone build
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
VITE_API_HOST=127.0.0.1:7701 npm run build
|
|
61
|
+
# serve dist/ from ANY static server (SPA fallback to index.html), e.g.:
|
|
62
|
+
npx serve dist # or python -m http.server -d dist
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
`e2e/studio_standalone_test.py` is the scripted proof of this mode: it builds the SPA, serves
|
|
66
|
+
`dist/` from a plain static server on its own port, points it at a live daemon, and drives a
|
|
67
|
+
real flow (list runs → open a run → approve a human gate → watch CoreEvents over WS) with a
|
|
68
|
+
real browser. See the header of that file for prerequisites and knobs.
|
|
69
|
+
|
|
70
|
+
## Releasing / how crew consumes this
|
|
71
|
+
|
|
72
|
+
The npm package ships `dist/` only (`files: ["dist"]`). wicked-crew declares `wicked-studio` as
|
|
73
|
+
a devDependency and its `build:with-studio` copies `node_modules/wicked-studio/dist` into
|
|
74
|
+
`packages/crew/dist/studio`, which the daemon serves same-origin (headless fallback when
|
|
75
|
+
absent). Installs from git get a fresh `dist/` via the `prepare` hook
|
|
76
|
+
(`scripts/prepare-dist.mjs`); publishers run `npm run build && npm publish` so the tarball is
|
|
77
|
+
built from the tagged source.
|
|
78
|
+
|
|
79
|
+
## Provenance
|
|
80
|
+
|
|
81
|
+
Extracted from the wicked-crew monorepo (`packages/studio`) as its own product — the carve kept
|
|
82
|
+
the code as-is and preserved the package's full in-monorepo history via `git subtree split`
|
|
83
|
+
(92 commits). An earlier, pre-consolidation incarnation of this product is archived read-only at
|
|
84
|
+
[wicked-studio-archived](https://github.com/mikeparcewski/wicked-studio-archived).
|
|
85
|
+
|
|
86
|
+
## License
|
|
87
|
+
|
|
88
|
+
MIT
|