@melite-plugin/dsh-gallery 0.1.4-alpha → 0.1.5-pre-alpha
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 +39 -0
- package/lib/client.js +5704 -2452
- package/lib/index.js +6 -2
- package/package.json +7 -6
package/README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: The DSH web GUI's media sidebar — one Media tab over same-origin run-artifact and draft routes served by its host half.
|
|
3
|
+
kind: package-bundle
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# infer-gallery
|
|
7
|
+
|
|
8
|
+
`@melite-plugin/dsh-gallery` is the studio's media surface. The host half registers same-origin routes on the `webServer` service; the browser half registers one `Media` tab in the right sidebar whose panel carries a Flows/Artifacts toggle — a draft pick loads onto the bench and opens the cards tab. It reads the estate's runs and drafts seats and the runs output tree; the media sidebar's deleted feature set returns here as one package.
|
|
9
|
+
|
|
10
|
+
## Contract
|
|
11
|
+
|
|
12
|
+
The manifest declares `dsh.bundle.patch: ./cordis.patch.yml`, inserting the `infer-gallery` host row.
|
|
13
|
+
|
|
14
|
+
- `.` (host) — route registrations: `GET /infer-gallery/runs` (the 500-run window, artifact names rewritten to same-origin), `GET /infer-gallery/drafts`, `GET /infer-gallery/flow?run_id=…` (the `_flow.json` sidecar, a plain disk read), `GET /infer-gallery/artifact?path=…`, `POST /infer-gallery/artifact-delete`, and `POST /infer-gallery/artifact-rename`. Two postures resolve per request: a pinned `gatewayUrl` names the owning DSH and routes fetch it verbatim; without one, the estate's in-process seats answer and an absent seat answers loud 502. Artifact paths must be run-relative (`run-<id>/<file>`); `_`-prefixed sidecar names refuse; rename takes a bare segment and refuses existing targets with 409. Handlers own their response lifecycle; routes never throw.
|
|
15
|
+
- `./client` (browser) — registers the tab type and body in the right-sidebar registry, self-driving through `useFeed` against the routes above (the panel carries its own fetch caller), and wires the contract-toast seam to the card-base row's toast store. The entry stays JSX-free; the panels live beside it.
|
|
16
|
+
|
|
17
|
+
The manifest also declares the standard `./package.json` re-export.
|
|
18
|
+
|
|
19
|
+
## Model Experience
|
|
20
|
+
|
|
21
|
+
### Request context and condition
|
|
22
|
+
|
|
23
|
+
#### What the model sees
|
|
24
|
+
|
|
25
|
+
None — the package serves and renders run artifacts. Its delete and rename verbs mutate the artifact tree, not model input.
|
|
26
|
+
|
|
27
|
+
#### Token effect
|
|
28
|
+
|
|
29
|
+
Zero-direct token effect.
|
|
30
|
+
|
|
31
|
+
#### KV Cache effect
|
|
32
|
+
|
|
33
|
+
Independent — no content of this package reaches a model request.
|
|
34
|
+
|
|
35
|
+
## Known Limitations and Deferred Work
|
|
36
|
+
|
|
37
|
+
- **Runs list window is 500** — the runs route serves the newest 500 runs (the runs-window law); older runs are not browsable from the gallery.
|
|
38
|
+
- **In-tree posture needs the estate seats** — without a pinned `gatewayUrl`, a missing runs or drafts seat answers 502 naming the fix; nothing absorbs the absence.
|
|
39
|
+
- **No `./invariant` companion** — the routes read the runs output tree and the estate seats directly; independent observations of that tree are the seats' own contracts, so no runtime assertion lives here.
|