@engenty/wizards-runtime 0.11.1 → 0.11.3
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 +25 -6
- package/apps/runtime/dist/agents/studio-assistant.js +2 -2
- package/apps/runtime/dist/app.js +9 -0
- package/apps/runtime/dist/assistant/primer.js +2 -2
- package/apps/runtime/dist/auth/index.js +32 -7
- package/apps/runtime/dist/authoring/guide.js +19 -19
- package/apps/runtime/dist/docs/dev/index.md +1 -0
- package/apps/runtime/dist/docs/dev/licensing.md +85 -0
- package/apps/runtime/dist/docs/dev/meta.json +2 -1
- package/apps/runtime/dist/docs/dev/plugins/events.md +1 -1
- package/apps/runtime/dist/docs/dev/plugins/index.md +1 -1
- package/apps/runtime/dist/docs/dev/plugins/runners.md +2 -2
- package/apps/runtime/dist/docs/dev/plugins/space.md +1 -1
- package/apps/runtime/dist/docs/dev/plugins/studio.md +5 -4
- package/apps/runtime/dist/docs/dev/wizard-format/index.md +5 -5
- package/apps/runtime/dist/docs/dev/wizard-format/meta.json +1 -1
- package/apps/runtime/dist/docs/dev/wizard-format/motion-graphics-steps.md +55 -0
- package/apps/runtime/dist/docs/dev/wizard-format/review-and-result.md +2 -2
- package/apps/runtime/dist/docs/dev/wizard-format/themes.md +1 -1
- package/apps/runtime/dist/docs/dev/wizard-format/views-and-widgets.md +2 -2
- package/apps/runtime/dist/docs/dev/wizard-format/wizard-file.md +4 -4
- package/apps/runtime/dist/docs/user-guide/create-account.md +11 -4
- package/apps/runtime/dist/docs/user-guide/first-start.md +10 -2
- package/apps/runtime/dist/docs/user-guide/plugins.md +1 -1
- package/apps/runtime/dist/docs/user-guide/space.md +15 -7
- package/apps/runtime/dist/docs/user-guide/steps.md +17 -16
- package/apps/runtime/dist/docs/user-guide/troubleshooting.md +3 -3
- package/apps/runtime/dist/engine/requirements.js +7 -7
- package/apps/runtime/dist/engine/runner.js +8 -1
- package/apps/runtime/dist/engine/steps.js +3 -3
- package/apps/runtime/dist/files/storage.js +3 -3
- package/apps/runtime/dist/index.js +3 -0
- package/apps/runtime/dist/limits.js +16 -0
- package/apps/runtime/dist/manage.js +79 -2
- package/apps/runtime/dist/models.js +8 -8
- package/apps/runtime/dist/{film → motion-graphics}/project.js +54 -54
- package/apps/runtime/dist/{film → motion-graphics}/sounds.js +3 -3
- package/apps/runtime/dist/{film → motion-graphics}/step.js +37 -37
- package/apps/runtime/dist/{film → motion-graphics}/tools.js +1 -1
- package/apps/runtime/dist/render/downloads.js +2 -2
- package/apps/runtime/dist/render/guard.js +1 -1
- package/apps/runtime/dist/routes/delivery.js +1 -1
- package/apps/runtime/dist/routes/internal.js +1 -1
- package/apps/runtime/dist/routes/marketplace.js +29 -4
- package/apps/runtime/dist/routes/organization.js +114 -0
- package/apps/runtime/dist/routes/person.js +45 -0
- package/apps/runtime/dist/routes/reports.js +80 -0
- package/apps/runtime/dist/routes/runs.js +25 -1
- package/apps/runtime/dist/routes/studio.js +63 -7
- package/apps/runtime/dist/services/brand.js +1 -1
- package/apps/runtime/dist/services/manage-reports.js +190 -0
- package/apps/runtime/dist/services/marketplace.js +33 -1
- package/apps/runtime/dist/services/onboarding-find.js +123 -0
- package/apps/runtime/dist/services/onboarding.js +77 -16
- package/apps/runtime/dist/services/organization-context.js +40 -0
- package/apps/runtime/dist/services/pages.js +1 -1
- package/apps/runtime/dist/services/shipped-fonts.js +2 -1
- package/apps/runtime/dist/services/wizards.js +7 -0
- package/apps/runtime/dist/texts.js +12 -1
- package/apps/runtime/dist/widgets/render.js +9 -9
- package/apps/runtime/dist/widgets/runtime.js +3 -3
- package/apps/runtime/dist/widgets/step.js +20 -20
- package/apps/web/dist/assets/{AboutDialog-D2r8kBfV.js → AboutDialog-DlbfynVv.js} +1 -1
- package/apps/web/dist/assets/{ChangelogDialog-j7Z1YhNv.js → ChangelogDialog-DciD55wO.js} +1 -1
- package/apps/web/dist/assets/{CodeEditor-BTCMfVFJ.js → CodeEditor-9kXX-juf.js} +1 -1
- package/apps/web/dist/assets/EditorPage-ovstPrvJ.js +3 -0
- package/apps/web/dist/assets/{FlowPreview-BtVgtW7P.js → FlowPreview-BY3kJO9l.js} +1 -1
- package/apps/web/dist/assets/{Harness-H4Ue1HOd.js → Harness-BqcSaPmJ.js} +2 -2
- package/apps/web/dist/assets/Marketplace-DxcNtFdJ.js +2 -0
- package/apps/web/dist/assets/{NewWizardChannels-K1HOzkXf.js → NewWizardChannels-CmeAOy0q.js} +1 -1
- package/apps/web/dist/assets/NewWizardPage-C2Ne-QFZ.js +7 -0
- package/apps/web/dist/assets/OnboardingPage-CGEgLpx0.js +1 -0
- package/apps/web/dist/assets/PreviewPane-VnxYvrbF.js +10 -0
- package/apps/web/dist/assets/ProjectPage-CGpsFPJ4.js +1 -0
- package/apps/web/dist/assets/PublicRunner-b4vSNmVB.js +1 -0
- package/apps/web/dist/assets/{ReadOnly-Duk1YpNM.js → ReadOnly-C7Kk-1Vg.js} +1 -1
- package/apps/web/dist/assets/SettingsPage-Cgt3zVu5.js +2 -0
- package/apps/web/dist/assets/SetupPage-DmYnhiMq.js +1 -0
- package/apps/web/dist/assets/{SharePage-DvAUwrOl.js → SharePage-DMgm31Y_.js} +1 -1
- package/apps/web/dist/assets/changelog-CJYpF3Mx.js +1 -0
- package/apps/web/dist/assets/{coins-DSvwvqtQ.js → coins-Dd9IUAaR.js} +1 -1
- package/apps/web/dist/assets/i18n-QZC6TtrB.js +55 -0
- package/apps/web/dist/assets/index-Cfn8Jnfl.js +34 -0
- package/apps/web/dist/assets/index-DQc1EITf.css +1 -0
- package/apps/web/dist/assets/{oss-credits-BLVLXRzs.js → oss-credits-C6bPkfSE.js} +1 -1
- package/apps/web/dist/assets/{phone-xIUU1ZFn.js → phone-DKeaGjd9.js} +1 -1
- package/apps/web/dist/assets/runners-D2_oJdgS.js +1 -0
- package/apps/web/dist/assets/session-DBNhp6sF.js +2 -0
- package/apps/web/dist/assets/settings-menu-B09fSEin.js +1 -0
- package/apps/web/dist/assets/theme-CdWeSjNs.js +11 -0
- package/apps/web/dist/assets/{ui-6AgUKJhQ.js → ui-BPfapiMz.js} +6 -6
- package/apps/web/dist/assets/{upload-C8WgcG1g.js → upload-DCYRRi4d.js} +1 -1
- package/apps/web/dist/assets/{useMutation-BdCg6qrc.js → useMutation-BGqWiJkl.js} +1 -1
- package/apps/web/dist/assets/{volume-2-jlgQapiz.js → volume-2-D_FTVDPk.js} +1 -1
- package/apps/web/dist/assets/{wrench-Ca_TrBQk.js → wrench-BYwez0dN.js} +1 -1
- package/apps/web/dist/index.html +9 -9
- package/apps/web/dist/mcp/flow.html +32 -32
- package/node_modules/@engenty/wizards/dist/plugin/index.d.ts +2 -2
- package/node_modules/@engenty/wizards/dist/plugin/studio.d.ts +5 -5
- package/node_modules/@engenty/wizards-shared/dist/addresses.d.ts +17 -0
- package/node_modules/@engenty/wizards-shared/dist/addresses.js +97 -0
- package/node_modules/@engenty/wizards-shared/dist/definition.d.ts +11 -11
- package/node_modules/@engenty/wizards-shared/dist/definition.js +24 -23
- package/node_modules/@engenty/wizards-shared/dist/engenty/data-tables/columns-value.js +1 -0
- package/node_modules/@engenty/wizards-shared/dist/feature-flags.d.ts +9 -3
- package/node_modules/@engenty/wizards-shared/dist/feature-flags.js +9 -3
- package/node_modules/@engenty/wizards-shared/dist/fit.d.ts +7 -2
- package/node_modules/@engenty/wizards-shared/dist/fit.js +23 -6
- package/node_modules/@engenty/wizards-shared/dist/marketplace-entry.d.ts +1 -1
- package/node_modules/@engenty/wizards-shared/dist/marketplace-entry.js +1 -1
- package/node_modules/@engenty/wizards-shared/dist/marketplace.d.ts +16 -7
- package/node_modules/@engenty/wizards-shared/dist/marketplace.js +7 -23
- package/node_modules/@engenty/wizards-shared/dist/run.d.ts +15 -14
- package/node_modules/@engenty/wizards-shared/dist/run.js +30 -28
- package/node_modules/@engenty/wizards-shared/dist/runners.d.ts +1 -1
- package/node_modules/@engenty/wizards-shared/dist/runners.js +5 -5
- package/node_modules/@engenty/wizards-shared/dist/sectors.d.ts +24 -0
- package/node_modules/@engenty/wizards-shared/dist/sectors.js +319 -0
- package/node_modules/@engenty/wizards-shared/dist/store.d.ts +1 -1
- package/node_modules/@engenty/wizards-shared/dist/store.js +1 -2
- package/node_modules/@engenty/wizards-shared/dist/theme-look.d.ts +39 -0
- package/node_modules/@engenty/wizards-shared/dist/theme-look.js +112 -0
- package/node_modules/@engenty/wizards-shared/dist/theme.d.ts +0 -38
- package/node_modules/@engenty/wizards-shared/dist/theme.js +1 -108
- package/node_modules/@engenty/wizards-shared/dist/wizard-package.js +1 -0
- package/package.json +1 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/plugin.json +1 -1
- package/apps/runtime/dist/docs/dev/wizard-format/film-steps.md +0 -47
- package/apps/web/dist/assets/EditorPage-mx6XuEIw.js +0 -3
- package/apps/web/dist/assets/Marketplace-YEZDpGm9.js +0 -2
- package/apps/web/dist/assets/NewWizardPage-DSHVwwnU.js +0 -7
- package/apps/web/dist/assets/OnboardingPage-CoBNtV_1.js +0 -1
- package/apps/web/dist/assets/PreviewPane-z0-Glj7p.js +0 -10
- package/apps/web/dist/assets/ProjectPage-DFaPSeda.js +0 -1
- package/apps/web/dist/assets/PublicRunner-DgT4CApp.js +0 -1
- package/apps/web/dist/assets/SettingsPage-FimvOhQq.js +0 -2
- package/apps/web/dist/assets/SetupPage-BxEMrMtA.js +0 -1
- package/apps/web/dist/assets/changelog-CS9GmnXd.js +0 -1
- package/apps/web/dist/assets/i18n-UTsgNY5M.js +0 -55
- package/apps/web/dist/assets/index-DHIXX69l.js +0 -20
- package/apps/web/dist/assets/index-Mt1sNdPx.css +0 -1
- package/apps/web/dist/assets/runners-CrSLA6HI.js +0 -1
- package/apps/web/dist/assets/session-CbWzkHl0.js +0 -2
- package/apps/web/dist/assets/settings-menu-DoRItnPf.js +0 -1
- package/apps/web/dist/assets/theme-znovbShL.js +0 -11
- /package/apps/runtime/dist/{film → motion-graphics}/skills.js +0 -0
|
@@ -109,7 +109,7 @@ headings.
|
|
|
109
109
|
|
|
110
110
|
A space’s own font, for example the one its website uses, belongs to its brand, not to a theme:
|
|
111
111
|
uploaded as a file, or loaded from the website’s address after you confirm the licence (see
|
|
112
|
-
[Space](../../user-guide/space.md#
|
|
112
|
+
[Space](../../user-guide/space.md#brand)). A theme only names it, with `brand`. A theme that goes
|
|
113
113
|
to another space shows that space’s brand font, or a shipped font of the same kind.
|
|
114
114
|
|
|
115
115
|
### Effects
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Views and widgets
|
|
3
3
|
description: Surfaces built from the catalog, a view of an agent step's result, nested output, and HTML widgets.
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.11.1
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
A result can show as a view instead of a plain table. There are three ways:
|
|
@@ -96,7 +96,7 @@ only brings new data.
|
|
|
96
96
|
| `sample` | Example data in the same shape, for previews before any run |
|
|
97
97
|
| `layout` | `fixed` (the default): drawn at `size` and scaled to the page. `page`: part of the page, as tall as its content |
|
|
98
98
|
| `size` | The design size, 200 to 3840 px. The default is 1280 × 720. PNG, PDF and MP4 render at it |
|
|
99
|
-
| `video` | The result is a
|
|
99
|
+
| `video` | The result is a video: the timeline is rendered to an MP4 with sound |
|
|
100
100
|
|
|
101
101
|
The page loads nothing from the network when it runs. Libraries and reference data are files in
|
|
102
102
|
the workspace. It talks to the runner through `window.wizard`: `data`, `brand`, `ready()`,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: The .wizard file
|
|
3
3
|
description: The zip a wizard travels in, its folders and manifest, how to make one by hand, and what the import does with it.
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.11.1
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
A `.wizard` file is a zip with the wizard’s definition and its workspace. The studio exports
|
|
@@ -22,8 +22,8 @@ create-an-invoice.wizard
|
|
|
22
22
|
├── lib/
|
|
23
23
|
│ └── chart.min.js libraries the widgets load
|
|
24
24
|
├── prices.csv reference data AI steps read
|
|
25
|
-
├── kits/explainer.zip a
|
|
26
|
-
├── skills/brand/SKILL.md a skill package a
|
|
25
|
+
├── kits/explainer.zip a motion-graphics step's style kit
|
|
26
|
+
├── skills/brand/SKILL.md a skill package a motion-graphics step reads
|
|
27
27
|
└── knowledge/ only in a website package
|
|
28
28
|
└── services/pricing.md
|
|
29
29
|
```
|
|
@@ -40,7 +40,7 @@ or none.
|
|
|
40
40
|
## The workspace
|
|
41
41
|
|
|
42
42
|
The paths under `files/` are the paths the definition uses. A widget step with
|
|
43
|
-
`"entry": "invoice/index.html"` reads `files/invoice/index.html`, and a
|
|
43
|
+
`"entry": "invoice/index.html"` reads `files/invoice/index.html`, and a motion-graphics step with
|
|
44
44
|
`"kit": "kits/explainer.zip"` reads `files/kits/explainer.zip`. Apart from `knowledge/`, no
|
|
45
45
|
folder has a fixed meaning. The ones above are what the studio and its assistant write.
|
|
46
46
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Create an account
|
|
3
3
|
description: Your organization, its space and your wizards live in your account at engenty.ai. Sign up with an invitation code, answer four questions, build.
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.11.2
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
engenty wizards is in a closed beta, so a new account needs an invitation code. “Get started” on
|
|
@@ -21,19 +21,26 @@ show them.
|
|
|
21
21
|
|
|
22
22
|
## The first visit
|
|
23
23
|
|
|
24
|
-
The studio asks a few things in
|
|
24
|
+
The studio asks a few things in five steps. Everything after the first step can be skipped and
|
|
25
25
|
changed later.
|
|
26
26
|
|
|
27
27
|
| Page | Asks | Goes to |
|
|
28
28
|
|---|---|---|
|
|
29
|
-
| Welcome | “
|
|
30
|
-
|
|
|
29
|
+
| Welcome | “Build wizards for…” (myself, a club, a small business, a company), then “What’s your organization called?” (not asked for myself). With an email address of your organization’s own domain, the name its website gives is filled in | Your organization at account.engenty.ai |
|
|
30
|
+
| Brand | “Where can the wizards read about …?”: the website of your email address and what a web search finds for the name (website, profiles), to tick, and addresses of your own. engenty reads your name, what you do, your logo, colours and fonts, and the facts your imprint states; profiles are kept as facts. Nothing found: a few sentences about what you do, typed or spoken | [Sources → Info](./space.md#info) and [Brand](./space.md#brand) |
|
|
31
|
+
| Details | A few details that fit (size, sector, your role; a phone number for a company, optional) and “Wishes or questions”, typed or spoken: someone at engenty answers a question by email | Your organization at account.engenty.ai |
|
|
31
32
|
| Knowledge | “What should the wizards know?”: documents the wizards may look things up in, such as price lists, your terms or an FAQ | [Space → Knowledge](./space.md#knowledge) |
|
|
32
33
|
| Your space | Nothing. It explains the space that holds all of this, “My wizards” (“Meine Wizards” in German) | – |
|
|
33
34
|
|
|
34
35
|
Then “Build your first wizard” opens the page for a new wizard: you describe a task in a
|
|
35
36
|
sentence, or start from a template. See [Build a wizard](./build-a-wizard.md).
|
|
36
37
|
|
|
38
|
+
The questions about your organization are asked once, of the first admin who opens its studio.
|
|
39
|
+
In a second organization you are not greeted again and the space is not explained again: the
|
|
40
|
+
studio asks about that organization by its name and ends with its knowledge. Someone you invite,
|
|
41
|
+
and anyone who opens an organization that is set up already, sees one page instead: where they
|
|
42
|
+
are, who invited them, the spaces with their wizards and what their role may do.
|
|
43
|
+
|
|
37
44
|
## What the cloud does
|
|
38
45
|
|
|
39
46
|
- Wizards you build here run behind a link that works day and night, on the organization’s credits.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: First start
|
|
3
3
|
description: Choose how the AI runs on your computer. The studio opens once a test call works.
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.11.2
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
The first page of the studio on your computer is the setup, “Choose how the AI runs”. It asks
|
|
@@ -14,11 +14,14 @@ shows your name, your organization and your credits. If you aren’t signed in y
|
|
|
14
14
|
has a “Sign in” button that opens your browser for it. If you set engenty wizards up
|
|
15
15
|
[only for this computer](./local-only.md), the page shows nothing here.
|
|
16
16
|
|
|
17
|
+
Below the account, “Use local models” marks the rest of the list. These choices run on this
|
|
18
|
+
computer only. Wizards you publish run in the cloud and need your account.
|
|
19
|
+
|
|
17
20
|
## Choose how the AI runs
|
|
18
21
|
|
|
19
22
|
| Choice | Runs on | Needs |
|
|
20
23
|
|---|---|---|
|
|
21
|
-
| engenty credits | Your account’s credits, as in the cloud | An account signed in. Shown only then |
|
|
24
|
+
| engenty credits | Your account’s credits, as in the cloud | An account signed in. Shown only then, under your account |
|
|
22
25
|
| Claude Code | Your Claude subscription | The client installed and signed in |
|
|
23
26
|
| Codex | Your ChatGPT subscription | The client installed and signed in |
|
|
24
27
|
| Antigravity | Your Google AI subscription | The client (`agy`) installed and signed in |
|
|
@@ -42,6 +45,11 @@ has a “Sign in” button that opens your browser for it. If you set engenty wi
|
|
|
42
45
|
After you connect, one short call checks that the model can be reached. The setup stays until
|
|
43
46
|
that call works. Then “Open the studio” takes you in.
|
|
44
47
|
|
|
48
|
+
If you aren’t signed in to your account, “Open the studio” asks “Continue with your account?”
|
|
49
|
+
first. “Sign in” and “Create account” open your browser, and the studio opens once you are signed
|
|
50
|
+
in. “Continue on this computer only” opens the studio without an account. You can sign in later
|
|
51
|
+
under Settings → Account.
|
|
52
|
+
|
|
45
53
|
With your own keys, each key has its own Test. It checks the key with the provider, stores it on
|
|
46
54
|
this computer (on a Mac in the Keychain, elsewhere encrypted in your data folder) and sets that
|
|
47
55
|
provider’s models for what no other key covers yet. One key that works is enough. Which model does
|
|
@@ -13,7 +13,7 @@ A plugin adds to engenty wizards without changing it:
|
|
|
13
13
|
| A page | Behind an icon in the studio’s app bar |
|
|
14
14
|
| A settings section | In the settings |
|
|
15
15
|
| A section of the space page | In one of the space page’s parts |
|
|
16
|
-
| A part of the space page | In the space’s menu, beside Info
|
|
16
|
+
| A part of the space page | In the space’s menu, beside Info, Brand, Knowledge, Data and Results |
|
|
17
17
|
| A template | First among the templates of a new wizard |
|
|
18
18
|
| A channel a wizard runs through | Under “How should it run?” on a new wizard, and under “How others reach it” in the share dialog, where “Set up” opens the plugin’s own setup |
|
|
19
19
|
| Something that happens when a run ends, or again and again | Nowhere: it works in the background, for example posts a message |
|
|
@@ -10,14 +10,14 @@ wizard never has to ask for your company’s name or address.
|
|
|
10
10
|
The app bar holds its places, below the space’s tile in its corner:
|
|
11
11
|
|
|
12
12
|
- The house opens the space’s wizards: the list and “New wizard”.
|
|
13
|
-
- The layers below it open the space’s
|
|
13
|
+
- The layers below it open the space’s sources (“Sources”): what your wizards know.
|
|
14
14
|
- The tray below them opens the space’s results.
|
|
15
15
|
|
|
16
16
|
On a phone the bar floats along the bottom with the house, the layers and “More” (⋯), which
|
|
17
17
|
holds the results, the settings and the rest. The space’s tile and name sit at the top left, your
|
|
18
18
|
picture at the top right.
|
|
19
19
|
|
|
20
|
-
On
|
|
20
|
+
On Sources, the menu on the left shows its four parts. A part opens its own sections,
|
|
21
21
|
and the arrow at the top leads back. On a phone, the parts, a part’s sections and the page take
|
|
22
22
|
turns.
|
|
23
23
|
|
|
@@ -25,18 +25,26 @@ Results have no menu: the list above them picks one wizard or all of them.
|
|
|
25
25
|
|
|
26
26
|
| Part | Sections | Used for |
|
|
27
27
|
|---|---|---|
|
|
28
|
-
| Info
|
|
28
|
+
| Info | Basics, Facts | Who you are |
|
|
29
|
+
| Brand | Logos, Colours, Brand assets | How you look |
|
|
29
30
|
| Knowledge | All, then each category, then the sections plugins add | What every AI step looks things up in |
|
|
30
31
|
| Data | All data, then each wizard | Tables and pages the wizards keep |
|
|
31
32
|
|
|
32
|
-
## Info
|
|
33
|
-
|
|
34
|
-
Logos, Colours and Brand assets each have an “Add” menu in their head.
|
|
33
|
+
## Info
|
|
35
34
|
|
|
36
35
|
| Section | Holds | Used for |
|
|
37
36
|
|---|---|---|
|
|
38
37
|
| Basics | “Title” and “About”: what you do, for whom, and the tone you write in | Texts sound like you. People who run a wizard see the title too |
|
|
39
38
|
| Facts | Labelled values: address, VAT ID, opening hours | Steps use them as written |
|
|
39
|
+
|
|
40
|
+
Beside the title stands your main logo. You change it in Brand: a click on it leads there.
|
|
41
|
+
|
|
42
|
+
## Brand
|
|
43
|
+
|
|
44
|
+
Logos, Colours and Brand assets each have an “Add” menu in their head.
|
|
45
|
+
|
|
46
|
+
| Section | Holds | Used for |
|
|
47
|
+
|---|---|---|
|
|
40
48
|
| Logos | One or several, each with a description of what it is for. Upload one, or take it from a web address (“Logo from URL”) | People see the main logo. The description tells a step what a variant is for |
|
|
41
49
|
| Colours | Named colours, each with a note on its use. Add one, or read them off a web page (“Colours from URL”) | The first colour is the accent of documents, dashboards and public pages |
|
|
42
50
|
| Brand assets | Images, videos, audio, PDFs, fonts, Lottie and 3D files, in tabs you can search | AI steps place pictures in documents and choose them by their description |
|
|
@@ -116,7 +124,7 @@ with its files.
|
|
|
116
124
|
engenty wizards on your computer has one space, called “My computer” at first (“Mein Computer” in
|
|
117
125
|
German). On engenty.ai the organization’s plan says how many spaces it may have. The space’s tile in the
|
|
118
126
|
app bar opens a menu: it switches between spaces, “Rename space” renames this one, and “Add space”
|
|
119
|
-
adds one while the plan has room. Each space has its own wizards, Info
|
|
127
|
+
adds one while the plan has room. Each space has its own wizards, Info, Brand, Knowledge, Data,
|
|
120
128
|
connectors and results. The account, the models and the plugins are the same for every space.
|
|
121
129
|
|
|
122
130
|
When you publish wizards from your computer with an account signed in, their space shows up in
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Steps
|
|
3
3
|
description: What a wizard is made of – pages, AI steps, generated media, widgets, reviews and the result.
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.11.2
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
A wizard runs its steps from top to bottom. The last step is always the result.
|
|
@@ -11,9 +11,9 @@ A wizard runs its steps from top to bottom. The last step is always the result.
|
|
|
11
11
|
| Page | Asks the person: one field or more, five at most on a good page |
|
|
12
12
|
| AI step | Does a task with tools: research, read documents, call an API, work in a connected service |
|
|
13
13
|
| Generate | Makes one thing: an image, a video, a voice-over, a document or a dashboard |
|
|
14
|
-
| Widget | Shows an interactive view built once for this wizard: a map, a timeline, a calculator, a
|
|
14
|
+
| Widget | Shows an interactive view built once for this wizard: a map, a timeline, a calculator, a video |
|
|
15
15
|
| View | Shows the results in the wizard’s own look: key figures, facts, a list, a chart |
|
|
16
|
-
|
|
|
16
|
+
| Motion graphics | Makes an animated video as code, rendered to an MP4: an explainer, a product spot |
|
|
17
17
|
| Review | Shows what earlier steps made. The person accepts it, edits it or asks for a new version |
|
|
18
18
|
| Result | The last page: what the person can download or share |
|
|
19
19
|
|
|
@@ -77,7 +77,7 @@ An AI step has instructions and the tools you allow it:
|
|
|
77
77
|
|
|
78
78
|
Every AI step can also read and write the wizard’s lists, list its files and read documents:
|
|
79
79
|
PDFs, scans and photos, Word, Excel, CSV and saved mails. Where the space has Knowledge, the step
|
|
80
|
-
searches it too. Every AI step also knows the space’s Info
|
|
80
|
+
searches it too. Every AI step also knows the space’s Info and Brand: its title, what it says
|
|
81
81
|
about itself, its facts and colours.
|
|
82
82
|
|
|
83
83
|
Further tools come from three places:
|
|
@@ -144,16 +144,17 @@ For anything the parts cannot show, such as a map or an animation, use a widget.
|
|
|
144
144
|
|
|
145
145
|
A widget is an interactive HTML view written once into the wizard’s files. Every run only brings
|
|
146
146
|
new data, so it costs nothing to show and looks the same every time. A widget can also be a
|
|
147
|
-
|
|
147
|
+
video: its timeline is then rendered to an MP4 with sound. Ask the assistant for one in the chat.
|
|
148
148
|
|
|
149
|
-
##
|
|
149
|
+
## Motion graphics
|
|
150
150
|
|
|
151
|
-
A
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
151
|
+
A motion-graphics step makes an animated video: an explainer, a product spot, a short. It hands
|
|
152
|
+
a brief, the run’s material (voice-overs, pictures, uploads, texts) and the space’s brand to the
|
|
153
|
+
AI client on your computer (Claude Code). The client writes the video as code, looks at its
|
|
154
|
+
frames and fixes them. engenty wizards then renders the MP4: 16:9, 9:16 or square.
|
|
155
|
+
|
|
156
|
+
The step runs only where Claude Code is set up with your subscription, never on credits or in
|
|
157
|
+
the cloud. A video takes 5 to 40 minutes. The voice comes from a generate step before it.
|
|
157
158
|
|
|
158
159
|
## Reviews
|
|
159
160
|
|
|
@@ -173,9 +174,9 @@ Each entry of the result page names a step and the formats the person can downlo
|
|
|
173
174
|
| Voice | MP3 |
|
|
174
175
|
| Document | PDF, Word, HTML, Markdown, PNG |
|
|
175
176
|
| Dashboard | HTML, PDF, PNG |
|
|
176
|
-
| Widget | HTML, PNG, PDF, JSON; MP4 when it animates. As a
|
|
177
|
+
| Widget | HTML, PNG, PDF, JSON; MP4 when it animates. As a video: MP4, PNG |
|
|
177
178
|
| View | JSON |
|
|
178
|
-
|
|
|
179
|
+
| Motion graphics | MP4 |
|
|
179
180
|
| AI step, text | Markdown, text, Word, PDF, HTML |
|
|
180
181
|
| AI step, data | JSON, CSV, Excel, Markdown; nested data also PDF |
|
|
181
182
|
| AI step, collected files | ZIP |
|
|
@@ -227,7 +228,7 @@ The person sees and deletes all of it under “What this wizard remembers”. Se
|
|
|
227
228
|
|
|
228
229
|
## AI media
|
|
229
230
|
|
|
230
|
-
Images, clips, voice-overs and
|
|
231
|
+
Images, clips, voice-overs and videos a model made or changed carry a marking in their file, and
|
|
231
232
|
every page lays an “AI-generated” or “AI-modified” label over them (EU AI Act, Art. 50). Nothing
|
|
232
|
-
is drawn into an image. A
|
|
233
|
+
is drawn into an image. A video shows the label in the picture, since it leaves the page as a
|
|
233
234
|
video file.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Troubleshooting
|
|
3
3
|
description: What to do when a link no longer works, a client shows as not signed in, or an export fails.
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.11.2
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
`wizards doctor` checks engenty wizards on your computer and says what is wrong. Start there.
|
|
@@ -10,10 +10,10 @@ version: 0.9.3
|
|
|
10
10
|
|
|
11
11
|
| What you see | What to do |
|
|
12
12
|
|---|---|
|
|
13
|
-
| “This link is no longer valid. Run wizards open to get a new one.” | The link works once. `wizards open` gives this browser a new one |
|
|
13
|
+
| “This link is no longer valid. Run “wizards open” in a terminal to get a new one.” | The link works once. `wizards open` gives this browser a new one |
|
|
14
14
|
| “engenty wizards isn’t answering” | It has stopped or is restarting. `wizards status` says whether it is running; `wizards start` starts it |
|
|
15
15
|
| `wizards`: command not found | Open a new terminal, or run `~/.local/bin/wizards` |
|
|
16
|
-
| “
|
|
16
|
+
| “Open the studio from a terminal” | This browser hasn’t opened the studio’s link yet, for example after you cleared cookies or in another browser. Run `wizards open`, or `wizards open --print` and open the link in this browser. You don’t need an account for this |
|
|
17
17
|
| “The studio runs at another address” | Open the address the page names, or set `APP_URL` in `~/.engenty/wizards/.env` to the address you open |
|
|
18
18
|
| Port 24368 is taken | engenty wizards uses the next free port. To fix the port, set `API_PORT` in `~/.engenty/wizards/.env` |
|
|
19
19
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { conditionMatches, conditionsOf, isDecidedField, isDecisionStep, isOtherwise, MODEL_CLASSES, } from "@engenty/wizards-shared/definition";
|
|
2
2
|
import { closedChoicesFor, openValue, otherwiseIndex, unavoidableFrom, unavoidableSteps, } from "@engenty/wizards-shared/fit";
|
|
3
3
|
import { note, saidText } from "@engenty/wizards-shared/run";
|
|
4
|
-
import { classProblem,
|
|
4
|
+
import { classProblem, motionClient } from "../models.js";
|
|
5
5
|
// The steps every run passes through, and the choices that lead around a missing model, are
|
|
6
6
|
// pure and shared (packages/shared/src/fit.ts): the standalone check uses the same.
|
|
7
7
|
export { openValue, unavoidableFrom, unavoidableSteps };
|
|
@@ -52,7 +52,7 @@ function ownClasses(step) {
|
|
|
52
52
|
default:
|
|
53
53
|
return [step.model ?? "standard"];
|
|
54
54
|
}
|
|
55
|
-
case "
|
|
55
|
+
case "motion-graphics":
|
|
56
56
|
return [step.model ?? "low"];
|
|
57
57
|
case "page":
|
|
58
58
|
// A voice note the page asks for is listened to before the next step reads it.
|
|
@@ -238,13 +238,13 @@ export async function missingModelsSaid(def) {
|
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
const missing = [];
|
|
241
|
-
// A
|
|
241
|
+
// A video runs on an installed client only, whatever serves its class otherwise.
|
|
242
242
|
for (const step of def.steps) {
|
|
243
|
-
if (step.type !== "
|
|
243
|
+
if (step.type !== "motion-graphics") {
|
|
244
244
|
continue;
|
|
245
245
|
}
|
|
246
246
|
const cls = step.model ?? "low";
|
|
247
|
-
const found = await
|
|
247
|
+
const found = await motionClient(cls);
|
|
248
248
|
if ("problem" in found) {
|
|
249
249
|
missing.push({
|
|
250
250
|
cls,
|
|
@@ -312,8 +312,8 @@ export async function missingCapabilities() {
|
|
|
312
312
|
missing.add(capability);
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
|
-
if ("problem" in (await
|
|
316
|
-
missing.add("
|
|
315
|
+
if ("problem" in (await motionClient("low"))) {
|
|
316
|
+
missing.add("motion-graphics");
|
|
317
317
|
}
|
|
318
318
|
return missing;
|
|
319
319
|
}
|
|
@@ -17,6 +17,7 @@ import { hasFfmpeg } from "../media/ffmpeg.js";
|
|
|
17
17
|
import { NotedError, noteOf, saidOf } from "../model-errors.js";
|
|
18
18
|
import { conversationAvailable, freeTierRefusal, freeTierText, ModelUnavailableError, noteFreeTierRefusal, } from "../models.js";
|
|
19
19
|
import { runEnded } from "../plugins/events.js";
|
|
20
|
+
import { reportRun } from "../services/manage-reports.js";
|
|
20
21
|
import { projectFiles } from "../services/project-files.js";
|
|
21
22
|
import { projectProfile } from "../services/projects.js";
|
|
22
23
|
import { switchedOffRunners } from "../services/runners.js";
|
|
@@ -107,6 +108,9 @@ async function updateRun(runId, patch) {
|
|
|
107
108
|
void pushRun(runId, patch.status);
|
|
108
109
|
}
|
|
109
110
|
}
|
|
111
|
+
if (patch.status) {
|
|
112
|
+
reportRun(runId, patch.status);
|
|
113
|
+
}
|
|
110
114
|
signalChanged(runId);
|
|
111
115
|
}
|
|
112
116
|
function stepOf(def, id) {
|
|
@@ -196,6 +200,7 @@ export async function createRun(input) {
|
|
|
196
200
|
: null,
|
|
197
201
|
});
|
|
198
202
|
await indexRun({ runId: id, visitorId: input.visitorId, ipHash: input.ipHash });
|
|
203
|
+
reportRun(id, first.type === "page" ? "waiting_input" : "running");
|
|
199
204
|
if (first.type !== "page") {
|
|
200
205
|
kick(id);
|
|
201
206
|
}
|
|
@@ -228,6 +233,8 @@ async function take(runId, tenant) {
|
|
|
228
233
|
// The heartbeat keeps the claim and hears of a cancel the web wrote while a step works.
|
|
229
234
|
const beat = setInterval(() => {
|
|
230
235
|
void heartbeatRuns([runId]).catch((err) => console.warn(`[run ${runId}] heartbeat:`, err));
|
|
236
|
+
// At work all along: the admin app hears it now and then, so a long step is not stuck.
|
|
237
|
+
void withTenant(tenant, () => reportRun(runId, "running")).catch(() => undefined);
|
|
231
238
|
void withTenant(tenant, () => loadRun(runId))
|
|
232
239
|
.then((run) => {
|
|
233
240
|
if (run && run.status !== "running") {
|
|
@@ -830,7 +837,7 @@ export async function availableFormats(step, run, wanted) {
|
|
|
830
837
|
let formats = wanted ? wanted.filter((f) => possible.includes(f)) : possible;
|
|
831
838
|
const output = run.state.outputs[step.id];
|
|
832
839
|
if (step.type === "widget" && formats.includes("mp4")) {
|
|
833
|
-
// A
|
|
840
|
+
// A video is rendered when its step runs; any other widget on demand.
|
|
834
841
|
const has = step.video
|
|
835
842
|
? output?.assets?.some((a) => a.kind === "video")
|
|
836
843
|
: output?.widget?.duration && (await hasFfmpeg());
|
|
@@ -8,10 +8,10 @@ import { Agent } from "@mastra/core/agent";
|
|
|
8
8
|
import { generateText, jsonSchema, Output, parsePartialJson } from "ai";
|
|
9
9
|
import { extFor, loadAsset, loadAssetText } from "../files/storage.js";
|
|
10
10
|
import { snapshotHtmlImages } from "../files/web-images.js";
|
|
11
|
-
import { runFilmStep } from "../film/step.js";
|
|
12
11
|
import { generateImageMedia, generateSpeechMedia, generateVideoMedia, } from "../media/generate.js";
|
|
13
12
|
import { markMedia } from "../media/marking.js";
|
|
14
13
|
import { agentModel, attachTools, costOf, isHarnessVendor, textModel, totalUsage, } from "../models.js";
|
|
14
|
+
import { runMotionGraphicsStep } from "../motion-graphics/step.js";
|
|
15
15
|
import { knowledgeBlock } from "../services/knowledge.js";
|
|
16
16
|
import { buildStepTools } from "../tools/index.js";
|
|
17
17
|
import { callPluginTool, spaceContextOf } from "../tools/plugin.js";
|
|
@@ -991,8 +991,8 @@ export async function runAutomaticStep(step, ctx) {
|
|
|
991
991
|
if (step.type === "widget") {
|
|
992
992
|
return runWidgetStep(step, ctx);
|
|
993
993
|
}
|
|
994
|
-
if (step.type === "
|
|
995
|
-
return
|
|
994
|
+
if (step.type === "motion-graphics") {
|
|
995
|
+
return runMotionGraphicsStep(step, ctx);
|
|
996
996
|
}
|
|
997
997
|
if (step.type === "surface") {
|
|
998
998
|
return runSurfaceStep(step, ctx);
|
|
@@ -106,15 +106,15 @@ export async function removeAsset(id) {
|
|
|
106
106
|
await db.delete(schema.asset).where(eq(schema.asset.id, id));
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
/** Deletes every file a run made (uploads, results, renders,
|
|
109
|
+
/** Deletes every file a run made (uploads, results, renders, video folders) and their rows. */
|
|
110
110
|
export async function removeAssetFiles(runId) {
|
|
111
111
|
const rows = await db.query.asset.findMany({ where: eq(schema.asset.runId, runId) });
|
|
112
112
|
for (const row of rows) {
|
|
113
113
|
await objects.remove(assetKey(row.path));
|
|
114
114
|
}
|
|
115
115
|
await db.delete(schema.asset).where(eq(schema.asset.runId, runId));
|
|
116
|
-
// The folders its
|
|
116
|
+
// The folders its videos were made in (../motion-graphics/project.ts).
|
|
117
117
|
if (/^[A-Za-z0-9_-]+$/.test(runId)) {
|
|
118
|
-
await rm(join(env.dataDir, "
|
|
118
|
+
await rm(join(env.dataDir, "motion-graphics", runId), { recursive: true, force: true });
|
|
119
119
|
}
|
|
120
120
|
}
|
|
@@ -16,6 +16,7 @@ import { loadPlugins } from "./plugins/loader.js";
|
|
|
16
16
|
import { loadEntitlement, startProChecks } from "./plugins/pro.js";
|
|
17
17
|
import { closeBrowser } from "./render/chromium.js";
|
|
18
18
|
import { clearRunning, writeRunning } from "./running.js";
|
|
19
|
+
import { reportAllWizards } from "./services/manage-reports.js";
|
|
19
20
|
import { syncMarketplace } from "./services/marketplace.js";
|
|
20
21
|
import { purgeExpiredRuns } from "./services/shares.js";
|
|
21
22
|
import { purgeUnusedStores } from "./store/index.js";
|
|
@@ -39,6 +40,8 @@ if (managed) {
|
|
|
39
40
|
void migrateAllTenants()
|
|
40
41
|
.then(({ migrated, failed }) => {
|
|
41
42
|
console.log(`tenant databases: ${migrated} current${failed.length ? `, failed: ${failed}` : ""}`);
|
|
43
|
+
// The admin app's list of every team's wizards starts from what is here now.
|
|
44
|
+
return reportAllWizards();
|
|
42
45
|
})
|
|
43
46
|
.catch((err) => console.error("[migrate]", err));
|
|
44
47
|
// Which clients may start runs over the public API, and how often: the Manage-App's list.
|
|
@@ -3,6 +3,8 @@ import { and, count, eq, gte } from "drizzle-orm";
|
|
|
3
3
|
import { canSpend } from "./credits/credits.js";
|
|
4
4
|
import { db, schema } from "./db/client.js";
|
|
5
5
|
import { env } from "./env.js";
|
|
6
|
+
import { managed, tenantInfo } from "./manage.js";
|
|
7
|
+
import { currentTenant } from "./tenants/tenant.js";
|
|
6
8
|
export function hashIp(ip) {
|
|
7
9
|
if (!ip) {
|
|
8
10
|
return null;
|
|
@@ -22,6 +24,9 @@ export async function wizardUnavailable(w) {
|
|
|
22
24
|
if (!w.shareEnabled || w.publishedVersion === null) {
|
|
23
25
|
return { code: "wizardUnavailable" };
|
|
24
26
|
}
|
|
27
|
+
if (await held(w.id)) {
|
|
28
|
+
return { code: "wizardPaused" };
|
|
29
|
+
}
|
|
25
30
|
const [{ n }] = await db
|
|
26
31
|
.select({ n: count() })
|
|
27
32
|
.from(schema.run)
|
|
@@ -34,6 +39,17 @@ export async function wizardUnavailable(w) {
|
|
|
34
39
|
}
|
|
35
40
|
return null;
|
|
36
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* An admin held the wizard, or the team's whole page, at the Manage-App: no new run starts. Out
|
|
44
|
+
* of reach, the Manage-App holds nothing up.
|
|
45
|
+
*/
|
|
46
|
+
export async function held(wizardId) {
|
|
47
|
+
if (!managed) {
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
const info = await tenantInfo(currentTenant()).catch(() => null);
|
|
51
|
+
return Boolean(info?.holds?.wizards.some((h) => h.id === wizardId));
|
|
52
|
+
}
|
|
37
53
|
export async function verifyTurnstile(token, ip) {
|
|
38
54
|
if (!env.turnstile.secret) {
|
|
39
55
|
return true;
|
|
@@ -109,6 +109,60 @@ async function call(method, path, body) {
|
|
|
109
109
|
export function tenantMembers(id) {
|
|
110
110
|
return call("GET", `/v1/tenants/${encodeURIComponent(id)}/members`);
|
|
111
111
|
}
|
|
112
|
+
const tenantPath = (id) => `/v1/tenants/${encodeURIComponent(id)}`;
|
|
113
|
+
/**
|
|
114
|
+
* Changes to a tenant's people for the person who asks (`actorId`): the Manage-App checks their
|
|
115
|
+
* role in its own records and refuses with a code (`forbidden`, `PLAN_SEATS`, `PLAN_ROLES`,
|
|
116
|
+
* `already_member`, `last_owner`).
|
|
117
|
+
*/
|
|
118
|
+
export function inviteMember(tenantId, input) {
|
|
119
|
+
return call("POST", `${tenantPath(tenantId)}/invitations`, input);
|
|
120
|
+
}
|
|
121
|
+
export function cancelInvitation(tenantId, actorId, invitationId) {
|
|
122
|
+
return call("DELETE", `${tenantPath(tenantId)}/invitations/${encodeURIComponent(invitationId)}`, { actorId });
|
|
123
|
+
}
|
|
124
|
+
export function setMemberRole(tenantId, actorId, userId, role) {
|
|
125
|
+
return call("PATCH", `${tenantPath(tenantId)}/members/${encodeURIComponent(userId)}`, { actorId, role });
|
|
126
|
+
}
|
|
127
|
+
export function removeMember(tenantId, actorId, userId) {
|
|
128
|
+
return call("DELETE", `${tenantPath(tenantId)}/members/${encodeURIComponent(userId)}`, { actorId });
|
|
129
|
+
}
|
|
130
|
+
/** The organization's address and own domains, read and changed for the person who asks. */
|
|
131
|
+
export const tenantAddress = (tenantId, actorId) => call("GET", `${tenantPath(tenantId)}/address?actorId=${encodeURIComponent(actorId)}`);
|
|
132
|
+
export const checkTenantAddress = (tenantId, slug) => call("GET", `${tenantPath(tenantId)}/address/check?slug=${encodeURIComponent(slug)}`);
|
|
133
|
+
export const changeTenantAddress = (tenantId, actorId, slug) => call("PUT", `${tenantPath(tenantId)}/address`, { actorId, slug });
|
|
134
|
+
export const addTenantDomain = (tenantId, actorId, domain) => call("POST", `${tenantPath(tenantId)}/domains`, {
|
|
135
|
+
actorId,
|
|
136
|
+
domain,
|
|
137
|
+
});
|
|
138
|
+
export const verifyTenantDomain = (tenantId, actorId, id) => call("POST", `${tenantPath(tenantId)}/domains/${encodeURIComponent(id)}/verify`, { actorId });
|
|
139
|
+
export const removeTenantDomain = (tenantId, actorId, id) => call("DELETE", `${tenantPath(tenantId)}/domains/${encodeURIComponent(id)}`, {
|
|
140
|
+
actorId,
|
|
141
|
+
});
|
|
142
|
+
/** The person's API keys in the organization; a new key's secret comes once, with its creation. */
|
|
143
|
+
export const tenantKeys = (tenantId, actorId) => call("GET", `${tenantPath(tenantId)}/keys?actorId=${encodeURIComponent(actorId)}`);
|
|
144
|
+
export const createTenantKey = (tenantId, actorId, name) => call("POST", `${tenantPath(tenantId)}/keys`, {
|
|
145
|
+
actorId,
|
|
146
|
+
name,
|
|
147
|
+
});
|
|
148
|
+
export const deleteTenantKey = (tenantId, actorId, id) => call("DELETE", `${tenantPath(tenantId)}/keys/${encodeURIComponent(id)}`, {
|
|
149
|
+
actorId,
|
|
150
|
+
});
|
|
151
|
+
/** What the billing pages show (the Manage-App's billing view), read for the person who asks. */
|
|
152
|
+
export const tenantBilling = (tenantId, actorId) => call("GET", `${tenantPath(tenantId)}/billing?actorId=${encodeURIComponent(actorId)}`);
|
|
153
|
+
export const tenantBillingActivity = (tenantId, actorId, page) => call("GET", `${tenantPath(tenantId)}/billing/activity?${new URLSearchParams({
|
|
154
|
+
actorId,
|
|
155
|
+
...(page.before ? { before: String(page.before) } : {}),
|
|
156
|
+
limit: String(page.limit ?? 30),
|
|
157
|
+
})}`);
|
|
158
|
+
export const tenantInvoicePdf = (tenantId, actorId, invoiceId) => call("GET", `${tenantPath(tenantId)}/invoices/${encodeURIComponent(invoiceId)}/pdf?actorId=${encodeURIComponent(actorId)}`);
|
|
159
|
+
const userPath = (id) => `/v1/users/${encodeURIComponent(id)}`;
|
|
160
|
+
/** The person's name, kept at the Manage-App for every organization and app. */
|
|
161
|
+
export const renamePerson = (userId, name) => call("PATCH", userPath(userId), { name });
|
|
162
|
+
/** What holds a sign-in of the person: apps by their consent, computers by their live token. */
|
|
163
|
+
export const personConnections = (userId) => call("GET", `${userPath(userId)}/connections`);
|
|
164
|
+
export const disconnectPersonApp = (userId, consentId) => call("DELETE", `${userPath(userId)}/connections/${encodeURIComponent(consentId)}`);
|
|
165
|
+
export const signOutPersonComputer = (userId, tokenId) => call("DELETE", `${userPath(userId)}/computers/${encodeURIComponent(tokenId)}`);
|
|
112
166
|
const users = new Map();
|
|
113
167
|
/** What the Manage-App says of a person beyond their token; cached a minute. */
|
|
114
168
|
export async function userInfo(userId) {
|
|
@@ -117,8 +171,12 @@ export async function userInfo(userId) {
|
|
|
117
171
|
return hit.value;
|
|
118
172
|
}
|
|
119
173
|
const value = await call("GET", `/v1/users/${encodeURIComponent(userId)}`)
|
|
120
|
-
.then((u) => ({
|
|
121
|
-
.
|
|
174
|
+
.then((u) => ({
|
|
175
|
+
features: u.features ?? {},
|
|
176
|
+
admin: u.admin === true,
|
|
177
|
+
tenants: u.tenants ?? [],
|
|
178
|
+
}))
|
|
179
|
+
.catch(() => hit?.value ?? { features: {}, admin: false, tenants: [] });
|
|
122
180
|
users.set(userId, { at: Date.now(), value });
|
|
123
181
|
return value;
|
|
124
182
|
}
|
|
@@ -236,6 +294,25 @@ export function bookChannelUsage(id, input) {
|
|
|
236
294
|
export function putPages(tenantId, data) {
|
|
237
295
|
return call("PUT", `/v1/pages/${encodeURIComponent(tenantId)}`, data);
|
|
238
296
|
}
|
|
297
|
+
/**
|
|
298
|
+
* The team's wizards, whole (services/manage-reports.ts): the admin app lists them, with the
|
|
299
|
+
* template each was made from, and checks them.
|
|
300
|
+
*/
|
|
301
|
+
export function putWizards(tenantId, data) {
|
|
302
|
+
return call("PUT", `/v1/wizards/${encodeURIComponent(tenantId)}`, data);
|
|
303
|
+
}
|
|
304
|
+
/** A run's turn – started, waiting, finished, failed, cancelled – for the admin app. */
|
|
305
|
+
export function postRunReport(tenantId, data) {
|
|
306
|
+
return call("POST", `/v1/runs/${encodeURIComponent(tenantId)}`, data);
|
|
307
|
+
}
|
|
308
|
+
/** What a person said at the end of a run. */
|
|
309
|
+
export function postFeedback(tenantId, data) {
|
|
310
|
+
return call("POST", `/v1/feedback/${encodeURIComponent(tenantId)}`, data);
|
|
311
|
+
}
|
|
312
|
+
/** "Report a problem", as the person sent it. */
|
|
313
|
+
export function postBugReport(data) {
|
|
314
|
+
return call("POST", "/v1/bug-reports", data);
|
|
315
|
+
}
|
|
239
316
|
/** A push to the mobile app on one device; the Manage-App holds the APNs and FCM keys. */
|
|
240
317
|
export function pushToDevice(input) {
|
|
241
318
|
return call("POST", "/v1/push", input);
|
|
@@ -941,18 +941,18 @@ export async function classProblem(cls) {
|
|
|
941
941
|
throw err;
|
|
942
942
|
}
|
|
943
943
|
}
|
|
944
|
-
/** Clients that can make a
|
|
945
|
-
const
|
|
944
|
+
/** Clients that can make a video: they work in a folder of their own with a shell and skills. */
|
|
945
|
+
const MOTION_CLIENTS = new Set(["claude"]);
|
|
946
946
|
/**
|
|
947
|
-
* The installed client a
|
|
948
|
-
*
|
|
947
|
+
* The installed client a motion-graphics step of this class runs on, and the model it names; or why a
|
|
948
|
+
* video cannot be made here. Videos never run on credits or keys: one takes a client many minutes.
|
|
949
949
|
*/
|
|
950
|
-
export async function
|
|
950
|
+
export async function motionClient(cls) {
|
|
951
951
|
const cfg = await config();
|
|
952
952
|
const client = managed ? null : harness(cfg.settings.source);
|
|
953
|
-
if (!client || !
|
|
953
|
+
if (!client || !MOTION_CLIENTS.has(client.id)) {
|
|
954
954
|
return {
|
|
955
|
-
problem: note("
|
|
955
|
+
problem: note("claudeCodeMakesMotion"),
|
|
956
956
|
};
|
|
957
957
|
}
|
|
958
958
|
const status = await detectHarness(client.id);
|
|
@@ -962,7 +962,7 @@ export async function filmClient(cls) {
|
|
|
962
962
|
if (status.auth === "none") {
|
|
963
963
|
return { problem: signedOut(client) };
|
|
964
964
|
}
|
|
965
|
-
// A class that thinks on Apple Intelligence makes its
|
|
965
|
+
// A class that thinks on Apple Intelligence makes its videos on the client's model of the class.
|
|
966
966
|
const ref = ownRef(cfg, cls);
|
|
967
967
|
return {
|
|
968
968
|
client,
|