@engenty/wizards 0.0.0-stage → 0.7.9
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 +110 -0
- package/README.md +58 -2
- package/dist/openui/LICENSE-MIT +26 -0
- package/dist/openui/index.d.ts +2485 -0
- package/dist/openui/index.js +8490 -0
- package/dist/openui/index.js.map +1 -0
- package/dist/openui/server.d.ts +57 -0
- package/dist/openui/server.js +54 -0
- package/dist/openui/server.js.map +1 -0
- package/dist/openui/styles.css +2604 -0
- package/dist/plugin/index.d.ts +1150 -0
- package/dist/plugin/index.js +4 -0
- package/dist/plugin/studio.d.ts +322 -0
- package/dist/plugin/studio.js +4 -0
- package/dist/plugin/thread.d.ts +174 -0
- package/dist/plugin/thread.js +821 -0
- package/package.json +90 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# Functional Source License, Version 1.1, MIT Future License
|
|
2
|
+
|
|
3
|
+
## Abbreviation
|
|
4
|
+
|
|
5
|
+
FSL-1.1-MIT
|
|
6
|
+
|
|
7
|
+
## Notice
|
|
8
|
+
|
|
9
|
+
Copyright 2026 - Thru The Heart Creative GmbH - Matthias Platzer
|
|
10
|
+
|
|
11
|
+
## Terms and Conditions
|
|
12
|
+
|
|
13
|
+
### Licensor ("We")
|
|
14
|
+
|
|
15
|
+
The party offering the Software under these Terms and Conditions.
|
|
16
|
+
|
|
17
|
+
### The Software
|
|
18
|
+
|
|
19
|
+
The "Software" is each version of the software that we make available under
|
|
20
|
+
these Terms and Conditions, as indicated by our inclusion of these Terms and
|
|
21
|
+
Conditions with the Software.
|
|
22
|
+
|
|
23
|
+
### License Grant
|
|
24
|
+
|
|
25
|
+
Subject to your compliance with this License Grant and the Patents,
|
|
26
|
+
Redistribution and Trademark clauses below, we hereby grant you the right to
|
|
27
|
+
use, copy, modify, create derivative works, publicly perform, publicly display
|
|
28
|
+
and redistribute the Software for any Permitted Purpose identified below.
|
|
29
|
+
|
|
30
|
+
### Permitted Purpose
|
|
31
|
+
|
|
32
|
+
A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
|
|
33
|
+
means making the Software available to others in a commercial product or
|
|
34
|
+
service that:
|
|
35
|
+
|
|
36
|
+
1. substitutes for the Software;
|
|
37
|
+
|
|
38
|
+
2. substitutes for any other product or service we offer using the Software
|
|
39
|
+
that exists as of the date we make the Software available; or
|
|
40
|
+
|
|
41
|
+
3. offers the same or substantially similar functionality as the Software.
|
|
42
|
+
|
|
43
|
+
Permitted Purposes specifically include using the Software:
|
|
44
|
+
|
|
45
|
+
1. for your internal use and access;
|
|
46
|
+
|
|
47
|
+
2. for non-commercial education;
|
|
48
|
+
|
|
49
|
+
3. for non-commercial research; and
|
|
50
|
+
|
|
51
|
+
4. in connection with professional services that you provide to a licensee
|
|
52
|
+
using the Software in accordance with these Terms and Conditions.
|
|
53
|
+
|
|
54
|
+
### Patents
|
|
55
|
+
|
|
56
|
+
To the extent your use for a Permitted Purpose would necessarily infringe our
|
|
57
|
+
patents, the license grant above includes a license under our patents. If you
|
|
58
|
+
make a claim against any party that the Software infringes or contributes to
|
|
59
|
+
the infringement of any patent, then your patent license to the Software ends
|
|
60
|
+
immediately.
|
|
61
|
+
|
|
62
|
+
### Redistribution
|
|
63
|
+
|
|
64
|
+
The Terms and Conditions apply to all copies, modifications and derivatives of
|
|
65
|
+
the Software.
|
|
66
|
+
|
|
67
|
+
If you redistribute any copies, modifications or derivatives of the Software,
|
|
68
|
+
you must include a copy of or a link to these Terms and Conditions and not
|
|
69
|
+
remove any copyright notices provided in or with the Software.
|
|
70
|
+
|
|
71
|
+
### Disclaimer
|
|
72
|
+
|
|
73
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
|
|
74
|
+
IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
|
|
75
|
+
PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
|
|
76
|
+
|
|
77
|
+
IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
|
|
78
|
+
SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
|
|
79
|
+
EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
|
|
80
|
+
|
|
81
|
+
### Trademarks
|
|
82
|
+
|
|
83
|
+
Except for displaying the License Details and identifying us as the origin of
|
|
84
|
+
the Software, you have no right under these Terms and Conditions to use our
|
|
85
|
+
trademarks, trade names, service marks or product names.
|
|
86
|
+
|
|
87
|
+
## Grant of Future License
|
|
88
|
+
|
|
89
|
+
We hereby irrevocably grant you an additional license to use the Software under
|
|
90
|
+
the MIT license that is effective on the second anniversary of the date we make
|
|
91
|
+
the Software available. On or after that date, you may use the Software under
|
|
92
|
+
the MIT license, in which case the following will apply:
|
|
93
|
+
|
|
94
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
95
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
96
|
+
the Software without restriction, including without limitation the rights to
|
|
97
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
98
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
99
|
+
so, subject to the following conditions:
|
|
100
|
+
|
|
101
|
+
The above copyright notice and this permission notice shall be included in all
|
|
102
|
+
copies or substantial portions of the Software.
|
|
103
|
+
|
|
104
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
105
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
106
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
107
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
108
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
109
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
110
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,59 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @engenty/wizards
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
What code outside engenty wizards imports, one subpath per use. The runtime and the studio of
|
|
4
|
+
engenty wizards are not in it.
|
|
5
|
+
|
|
6
|
+
| Import | What it is | Docs |
|
|
7
|
+
|---|---|---|
|
|
8
|
+
| `@engenty/wizards/plugin` | A plugin's server half: `definePlugin` and its types | `docs/content/dev/plugins` |
|
|
9
|
+
| `@engenty/wizards/plugin/studio` | A plugin's studio half: `defineStudioPlugin` | `docs/content/dev/plugins/studio.md` |
|
|
10
|
+
| `@engenty/wizards/plugin/thread` | A messenger channel: `ThreadDoor` | `docs/content/dev/plugins/runners.md` |
|
|
11
|
+
| `@engenty/wizards/openui` | Wizards in [OpenUI](https://github.com/thesysdev/openui) chats: the `Wizard` component | `docs/content/dev/integration/openui.md` |
|
|
12
|
+
| `@engenty/wizards/openui/server` | Its server half: the rules and the list of wizards for the chat's prompt | |
|
|
13
|
+
| `@engenty/wizards/openui/styles.css` | The styles the `Wizard` component draws with | |
|
|
14
|
+
|
|
15
|
+
## Wizards in OpenUI chats
|
|
16
|
+
|
|
17
|
+
The chat's model decides that a wizard runs and what it already knows. The wizard then runs
|
|
18
|
+
inside the conversation as its author defined it, drawn by the runner (`packages/runner`) in
|
|
19
|
+
the chat's own page.
|
|
20
|
+
|
|
21
|
+
```tsx
|
|
22
|
+
// The browser
|
|
23
|
+
import "@engenty/wizards/openui/styles.css";
|
|
24
|
+
import { addWizard, configureWizards, Wizard } from "@engenty/wizards/openui";
|
|
25
|
+
import { openuiChatLibrary } from "@openuidev/react-ui/genui-lib";
|
|
26
|
+
|
|
27
|
+
configureWizards({ runtime: "/wizards-runtime" }); // where the runtime answers
|
|
28
|
+
const library = addWizard(openuiChatLibrary, Wizard);
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
```ts
|
|
32
|
+
// The server that builds the system prompt
|
|
33
|
+
import { addWizard, loadWizards, wizardRules } from "@engenty/wizards/openui/server";
|
|
34
|
+
|
|
35
|
+
const wizards = await loadWizards("http://localhost:24368", ["<token>"]);
|
|
36
|
+
const prompt = addWizard(openuiChatLibrary).prompt({
|
|
37
|
+
...openuiChatPromptOptions,
|
|
38
|
+
additionalRules: [...(openuiChatPromptOptions.additionalRules ?? []), ...wizardRules(wizards)],
|
|
39
|
+
});
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
What the model writes: `Wizard("<token>", "<note>", {plate: "W-12345"})`. The prefill starts
|
|
43
|
+
the page's fields, and the person still sees and sends each page. When the run is done, the
|
|
44
|
+
component sends a `continue_conversation` action with the result's texts as its context, and
|
|
45
|
+
the chat goes on with it. A chat to try it with: `examples/openui-chat`.
|
|
46
|
+
|
|
47
|
+
## The package
|
|
48
|
+
|
|
49
|
+
Every release publishes it to npm (`scripts/npm-package.mjs`, `.github/workflows/release.yml`).
|
|
50
|
+
`pnpm --filter @engenty/wizards build` writes `dist/` as it ships (`scripts/build.mjs`):
|
|
51
|
+
`/openui` with the runner and the shared modules it uses bundled in, their types inlined, and the
|
|
52
|
+
runner's `runner.css` as `styles.css`; every other package stays an import, the libraries as
|
|
53
|
+
`dependencies`, React, OpenUI, zod and drizzle as peers. Inside this repo everything imports the
|
|
54
|
+
sources.
|
|
55
|
+
|
|
56
|
+
## Licences
|
|
57
|
+
|
|
58
|
+
FSL-1.1-MIT, like the repository. `dist/openui` bundles the runner (`packages/runner`), which is
|
|
59
|
+
MIT: its licence ships beside it as `dist/openui/LICENSE-MIT`.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Thru The Heart Creative GmbH - Matthias Platzer
|
|
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.
|
|
22
|
+
|
|
23
|
+
The built package (dist/) also contains these modules of @engenty-wizards/shared,
|
|
24
|
+
which are under FSL-1.1-MIT OR MIT (packages/shared/LICENSE-MIT) and are included
|
|
25
|
+
here under the MIT licence above: definition, fit, run, store, surface and
|
|
26
|
+
engenty/data-tables/columns, columns-format.
|