dsh-generative-ui 0.0.2 → 0.0.4
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 -2
- package/lib/client.js +791 -398
- package/lib/client.js.map +19 -17
- package/lib/index.js +534 -44
- package/lib/types/card-failure.d.ts +88 -0
- package/lib/types/client/canvas/CanvasPanel.d.ts +1 -1
- package/lib/types/client/canvas/index.d.ts +1 -1
- package/lib/types/client/runtime/GenUISurface.d.ts +65 -35
- package/lib/types/client/runtime/inline-fence.d.ts +33 -2
- package/lib/types/client/runtime/report-error.d.ts +59 -12
- package/lib/types/contract-assets.d.ts +10 -0
- package/lib/types/index.d.ts +51 -8
- package/package.json +44 -25
- package/src/card-failure.ts +106 -0
- package/src/client/canvas/CanvasPanel.tsx +10 -4
- package/src/client/canvas/index.ts +1 -1
- package/src/client/index.ts +26 -10
- package/src/client/runtime/GenUISurface.tsx +172 -48
- package/src/client/runtime/bindings.ts +3 -2
- package/src/client/runtime/compiler.ts +24 -2
- package/src/client/runtime/inline-fence.ts +195 -10
- package/src/client/runtime/register.ts +16 -4
- package/src/client/runtime/report-error.ts +89 -34
- package/src/client/runtime/state.ts +13 -1
- package/src/client/runtime/uno-config.ts +13 -0
- package/src/client/session.ts +10 -3
- package/src/contract-assets.ts +11 -0
- package/src/index.ts +123 -21
- package/src/prompt.ts +154 -10
- package/src/skill.ts +296 -22
- package/types/fs.d.ts +15 -1
package/README.md
CHANGED
|
@@ -35,7 +35,9 @@ the profile does not care that this package uses bun and dsh uses pnpm:
|
|
|
35
35
|
dsh plugin --profile web add link:/path/to/dsh-generative-ui
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
`dsh plugin` forwards to the profile's package manager, so any of these installs the package
|
|
38
|
+
`dsh plugin` forwards to the profile's package manager, so any of these installs the package —
|
|
39
|
+
and adds it to `~/.dsh/profiles/web/package.json`'s `dsh.profile.bundles`, which is the list dsh
|
|
40
|
+
actually boots. Verified on a clean machine, the bundle list reads:
|
|
39
41
|
|
|
40
42
|
```json
|
|
41
43
|
{
|
|
@@ -51,7 +53,12 @@ dsh plugin --profile web add link:/path/to/dsh-generative-ui
|
|
|
51
53
|
}
|
|
52
54
|
```
|
|
53
55
|
|
|
54
|
-
|
|
56
|
+
The `dependencies` entry beside it is whatever form you installed — and from the registry that is
|
|
57
|
+
a caret, which on a `0.0.x` version pins exactly: `^0.0.1` matches `0.0.1` and nothing later. Edit
|
|
58
|
+
it to `~0.0.1` if you want patches.
|
|
59
|
+
|
|
60
|
+
Start `dsh web` and it is there — or restart it if it was already running, since plugins are
|
|
61
|
+
mounted at boot and adding one has no hot-reload.
|
|
55
62
|
|
|
56
63
|
**If nothing happens, check which agent preset the session is on first.** Under `minimal`
|
|
57
64
|
(极简模式) the persona is declared `complete: true`, so nothing can append to the system prompt and
|