@engenty/wizards-runtime 0.19.1 → 0.20.1
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/apps/runtime/dist/agents/architect.js +4 -4
- package/apps/runtime/dist/agents/studio-assistant.js +2 -31
- package/apps/runtime/dist/app.js +4 -4
- package/apps/runtime/dist/assistant/knows.js +2 -2
- package/apps/runtime/dist/auth/index.js +1 -1
- package/apps/runtime/dist/authoring/example.js +1 -1
- package/apps/runtime/dist/authoring/guide.js +35 -6
- package/apps/runtime/dist/broker/account.js +85 -16
- package/apps/runtime/dist/broker/call.js +137 -37
- package/apps/runtime/dist/broker/log.js +19 -5
- package/apps/runtime/dist/broker/rwx.js +12 -9
- package/apps/runtime/dist/cli/main.js +2 -0
- package/apps/runtime/dist/connectors/index.js +52 -11
- package/apps/runtime/dist/connectors/person-connections.js +279 -0
- package/apps/runtime/dist/connectors/person-sign-ins.js +74 -3
- package/apps/runtime/dist/connectors/same-service.js +14 -0
- package/apps/runtime/dist/connectors/space-choice.js +116 -0
- package/apps/runtime/dist/connectors/space-connections.js +40 -2
- package/apps/runtime/dist/db/client.js +8 -0
- package/apps/runtime/dist/db/kept-accounts.js +88 -0
- package/apps/runtime/dist/db/migrations/tenant/0075_person_connection.sql +25 -0
- package/apps/runtime/dist/db/migrations/tenant/0076_clients_in_spaces.sql +28 -0
- package/apps/runtime/dist/db/migrations/tenant/0077_client_spaces_at_root.sql +21 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0075_snapshot.json +7859 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0076_snapshot.json +7859 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0077_snapshot.json +7859 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +21 -0
- package/apps/runtime/dist/db/schema.js +67 -16
- package/apps/runtime/dist/docs/dev/api.md +8 -8
- package/apps/runtime/dist/docs/dev/wizard-format/index.md +3 -1
- package/apps/runtime/dist/docs/user-guide/command-line.md +2 -1
- package/apps/runtime/dist/elements/caller.js +1 -1
- package/apps/runtime/dist/elements/knowledge.js +5 -5
- package/apps/runtime/dist/elements/wizards.js +7 -11
- package/apps/runtime/dist/engine/notices.js +13 -1
- package/apps/runtime/dist/engine/requirements.js +116 -3
- package/apps/runtime/dist/engine/run-needs.js +58 -0
- package/apps/runtime/dist/engine/runner.js +209 -16
- package/apps/runtime/dist/engine/starts.js +9 -0
- package/apps/runtime/dist/engine/types.js +5 -1
- package/apps/runtime/dist/harness/claude.js +3 -1
- package/apps/runtime/dist/manage.js +1 -1
- package/apps/runtime/dist/mcp/tools.js +3 -3
- package/apps/runtime/dist/plugins/runs.js +2 -1
- package/apps/runtime/dist/prompts/authoring.md +13 -3
- package/apps/runtime/dist/prompts/goose.md +0 -5
- package/apps/runtime/dist/routes/api.js +9 -4
- package/apps/runtime/dist/routes/client-contract.js +2 -2
- package/apps/runtime/dist/routes/client-spaces.js +1 -16
- package/apps/runtime/dist/routes/connections.js +6 -1
- package/apps/runtime/dist/routes/marketplace.js +27 -7
- package/apps/runtime/dist/routes/plugins.js +1 -1
- package/apps/runtime/dist/routes/runs.js +157 -11
- package/apps/runtime/dist/routes/studio.js +42 -5
- package/apps/runtime/dist/services/client-portal.js +58 -49
- package/apps/runtime/dist/services/client-spaces.js +57 -125
- package/apps/runtime/dist/services/links.js +3 -3
- package/apps/runtime/dist/services/marketplace.js +6 -2
- package/apps/runtime/dist/services/members-studio.js +1 -1
- package/apps/runtime/dist/services/query-vectors.js +1 -1
- package/apps/runtime/dist/services/runs.js +19 -20
- package/apps/runtime/dist/services/space-parent.js +4 -11
- package/apps/runtime/dist/services/spaces.js +56 -47
- package/apps/runtime/dist/services/work-ai.js +3 -3
- package/apps/runtime/dist/store/index.js +28 -8
- package/apps/runtime/dist/store/shared-lists.js +2 -2
- package/apps/runtime/dist/sync/hub.js +9 -5
- package/apps/runtime/dist/tools/connector.js +4 -2
- package/apps/web/dist/assets/{AboutDialog-BUWu36Mb.js → AboutDialog-BFi6vOyJ.js} +1 -1
- package/apps/web/dist/assets/{BlockEditor-1-EvUIta.js → BlockEditor-C44bI_ih.js} +1 -1
- package/apps/web/dist/assets/{Bundle-RNkjBwAL.js → Bundle-DZyQ1FP7.js} +1 -1
- package/apps/web/dist/assets/CapabilitiesPage-DAX03vkY.js +2 -0
- package/apps/web/dist/assets/{ChangelogDialog-C_ZZLRZT.js → ChangelogDialog-CdchxTO8.js} +1 -1
- package/apps/web/dist/assets/{CodeEditor-BEJKIMd0.js → CodeEditor-BRufUwu0.js} +1 -1
- package/apps/web/dist/assets/ConnectorsSection-CNpieoyT.js +1 -0
- package/apps/web/dist/assets/EditorPage-CxABBMqo.js +3 -0
- package/apps/web/dist/assets/{FlowPreview-ptI86Ogs.js → FlowPreview-aj58c-gH.js} +1 -1
- package/apps/web/dist/assets/{LangSwitch-BNa_H8AR.js → LangSwitch-BNkytlus.js} +1 -1
- package/apps/web/dist/assets/Marketplace-D3hdvrkz.js +2 -0
- package/apps/web/dist/assets/NewWizardChannels-0aZoziks.js +1 -0
- package/apps/web/dist/assets/NewWizardPage-Bn2BPaUB.js +7 -0
- package/apps/web/dist/assets/OnboardingPage-DwF6KdQy.js +1 -0
- package/apps/web/dist/assets/ProtocolSection-Ce5LBBzL.js +1 -0
- package/apps/web/dist/assets/PublicRunner-Bp4DxTrD.js +1 -0
- package/apps/web/dist/assets/{ReadOnly-YF0RkR7P.js → ReadOnly-BFVaKM3w.js} +1 -1
- package/apps/web/dist/assets/{Results-DJRLiVo0.js → Results--mJFsNH2.js} +1 -1
- package/apps/web/dist/assets/{RunDrawer-CSpTNJp-.js → RunDrawer-DtbxGBIm.js} +1 -1
- package/apps/web/dist/assets/SettingsPage-Cytcl_9w.js +2 -0
- package/apps/web/dist/assets/SetupPage-B5zCrIKT.js +1 -0
- package/apps/web/dist/assets/{SharePage-OiKEnmL1.js → SharePage-CgQp_PT6.js} +1 -1
- package/apps/web/dist/assets/SkillEditor-ARx8QPGp.js +1 -0
- package/apps/web/dist/assets/Skills-frfXXEcF.js +9 -0
- package/apps/web/dist/assets/SpacePage-Bd5-wBUc.js +2 -0
- package/apps/web/dist/assets/StudioHome-DzVpWMrD.js +1 -0
- package/apps/web/dist/assets/TableEditor-CRhc6jI6.js +7 -0
- package/apps/web/dist/assets/{UpdateCheck-BpdsLIOc.js → UpdateCheck-BEruHgs0.js} +2 -2
- package/apps/web/dist/assets/{brand-ByQY-UcL.js → brand-DKuVyYhH.js} +1 -1
- package/apps/web/dist/assets/changelog-BgFhbmMa.js +1 -0
- package/apps/web/dist/assets/{code-editor-B8zG80PA.js → code-editor-BLwDuQLI.js} +2 -2
- package/apps/web/dist/assets/host-B2ZzDrkc.js +69 -0
- package/apps/web/dist/assets/i18n-Dyi0kvaA.js +55 -0
- package/apps/web/dist/assets/index-C1m_S1ls.js +102 -0
- package/apps/web/dist/assets/{index-D18zQ05f.css → index-CduFlFCp.css} +1 -1
- package/apps/web/dist/assets/{read-aloud-spC7eEBp.js → read-aloud-DGS8mWgC.js} +1 -1
- package/apps/web/dist/assets/session-EIDP3Wzc.js +1 -0
- package/apps/web/dist/assets/theme-B46aPLtX.js +14 -0
- package/apps/web/dist/assets/ui-DSgksc1H.js +16 -0
- package/apps/web/dist/assets/{useMutation-CoEdB_9_.js → useMutation-fT44ij_b.js} +1 -1
- package/apps/web/dist/assets/{viewers-BmcrgvXX.js → viewers-DvA5VsXw.js} +2 -2
- package/apps/web/dist/index.html +18 -13
- package/apps/web/dist/mcp/flow.html +62 -62
- package/bin/bot.mjs +1120 -0
- package/bin/wizards.mjs +6 -0
- package/node_modules/@engenty/wizards-shared/dist/catalog-prompt.js +2 -2
- package/node_modules/@engenty/wizards-shared/dist/connectors.d.ts +67 -0
- package/node_modules/@engenty/wizards-shared/dist/definition.d.ts +10324 -7
- package/node_modules/@engenty/wizards-shared/dist/definition.js +32 -6
- package/node_modules/@engenty/wizards-shared/dist/feature-flags.d.ts +17 -23
- package/node_modules/@engenty/wizards-shared/dist/feature-flags.js +17 -23
- package/node_modules/@engenty/wizards-shared/dist/json-schema.js +3 -3
- package/node_modules/@engenty/wizards-shared/dist/marketplace-search.js +7 -1
- package/node_modules/@engenty/wizards-shared/dist/marketplace.d.ts +9 -2
- package/node_modules/@engenty/wizards-shared/dist/page-data.d.ts +72 -0
- package/node_modules/@engenty/wizards-shared/dist/page-data.js +5 -0
- package/node_modules/@engenty/wizards-shared/dist/page-look.d.ts +17 -0
- package/node_modules/@engenty/wizards-shared/dist/page-look.js +118 -0
- package/node_modules/@engenty/wizards-shared/dist/page-styles.d.ts +6 -0
- package/node_modules/@engenty/wizards-shared/dist/page-styles.js +98 -0
- package/node_modules/@engenty/wizards-shared/dist/page-texts.d.ts +36 -0
- package/node_modules/@engenty/wizards-shared/dist/page-texts.js +119 -0
- package/node_modules/@engenty/wizards-shared/dist/requires.js +2 -0
- package/node_modules/@engenty/wizards-shared/dist/run.d.ts +54 -1
- package/node_modules/@engenty/wizards-shared/dist/run.js +23 -0
- package/node_modules/@engenty/wizards-shared/dist/runner-texts.d.ts +27 -1
- package/node_modules/@engenty/wizards-shared/dist/runner-texts.js +26 -0
- package/node_modules/@engenty/wizards-shared/dist/store.d.ts +24 -1
- package/node_modules/@engenty/wizards-shared/dist/transition.d.ts +2 -1
- package/node_modules/@engenty/wizards-shared/dist/transition.js +5 -1
- package/node_modules/@engenty/wizards-shared/dist/wizard-text.js +1 -1
- package/package.json +1 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/plugin.json +1 -1
- package/apps/web/dist/assets/CapabilitiesPage-fgTP28Mn.js +0 -2
- package/apps/web/dist/assets/ConnectorsSection-iLrduYak.js +0 -1
- package/apps/web/dist/assets/EditorPage-CRZte0O1.js +0 -3
- package/apps/web/dist/assets/Marketplace-9aGWG2pJ.js +0 -2
- package/apps/web/dist/assets/NewWizardChannels-BFDm9vCT.js +0 -1
- package/apps/web/dist/assets/NewWizardPage-ueGFlLDo.js +0 -7
- package/apps/web/dist/assets/OnboardingPage-DtDd7k_O.js +0 -1
- package/apps/web/dist/assets/PreviewPane-CEltrf_-.js +0 -7
- package/apps/web/dist/assets/ProtocolSection-Bb3c44Te.js +0 -1
- package/apps/web/dist/assets/PublicRunner-BaTg24s3.js +0 -1
- package/apps/web/dist/assets/SettingsPage--_ap3omw.js +0 -2
- package/apps/web/dist/assets/SetupPage-ELKHbmnE.js +0 -1
- package/apps/web/dist/assets/SkillEditor-C1_zwNOQ.js +0 -1
- package/apps/web/dist/assets/Skills-_pLGtOjH.js +0 -9
- package/apps/web/dist/assets/SpacePage-r4EbxEJe.js +0 -2
- package/apps/web/dist/assets/StudioHome-CwvxI29m.js +0 -1
- package/apps/web/dist/assets/changelog-Dt-V-BKp.js +0 -1
- package/apps/web/dist/assets/host-Ckjz94Ea.js +0 -69
- package/apps/web/dist/assets/i18n-ClCOlfx2.js +0 -55
- package/apps/web/dist/assets/index-BHKh0A9F.js +0 -10
- package/apps/web/dist/assets/runners-DNqzwMQ0.js +0 -1
- package/apps/web/dist/assets/session-Dd9duhPc.js +0 -1
- package/apps/web/dist/assets/theme-DumM6FI_.js +0 -14
- package/apps/web/dist/assets/ui-BjhZhw8x.js +0 -16
package/bin/wizards.mjs
CHANGED
|
@@ -210,6 +210,12 @@ function handOver() {
|
|
|
210
210
|
});
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
+
// `wizards bot …` runs here, in the launcher as in the runtime: it installs wizards.bot, which
|
|
214
|
+
// needs no engenty wizards, so `npx wizards bot install` installs nothing else first.
|
|
215
|
+
if (args[0] === "bot") {
|
|
216
|
+
const { main } = await import("./bot.mjs");
|
|
217
|
+
process.exit(await main(args.slice(1)));
|
|
218
|
+
}
|
|
213
219
|
const command = commandOf(args);
|
|
214
220
|
if (command === "version") {
|
|
215
221
|
console.log(versionOf(root));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { fieldSchema, nextRuleSchema, outputFieldSchema, stepSchema,
|
|
1
|
+
import { fieldSchema, nextRuleSchema, outputFieldSchema, stepSchema, wizardShapeSchema, } from "./definition.js";
|
|
2
2
|
import { SURFACE_COMPONENTS, SURFACE_REQUIRED } from "./surface.js";
|
|
3
3
|
import { OUTPUT_TAGS, STEP_TAGS, STEP_TEXT } from "./wizard-text.js";
|
|
4
4
|
/**
|
|
@@ -99,7 +99,7 @@ const shapeOf = (s) => s.shape;
|
|
|
99
99
|
export function wizardTextTags(opts) {
|
|
100
100
|
const durable = opts.durableRuns;
|
|
101
101
|
const lines = [];
|
|
102
|
-
lines.push(`<Wizard ${attrs(shapeOf(
|
|
102
|
+
lines.push(`<Wizard ${attrs(shapeOf(wizardShapeSchema), new Set(["steps", "version", "requires"]), durable)}> — the wizard; its children are the steps, in order.`, "", "Steps (each takes <Next> children; Text: the key the text inside the tag fills):");
|
|
103
103
|
for (const option of stepSchema.options) {
|
|
104
104
|
const shape = shapeOf(option);
|
|
105
105
|
const type = unwrap(shape.type).schema;
|
|
@@ -436,9 +436,76 @@ export interface PersonConnectionView {
|
|
|
436
436
|
}
|
|
437
437
|
/** The person's menu › „Verbindungen“: per space they belong to, the connections they may use. */
|
|
438
438
|
export interface PersonSignIns {
|
|
439
|
+
/** The person's own connections. */
|
|
440
|
+
own: OwnConnectionView[];
|
|
439
441
|
spaces: {
|
|
440
442
|
id: string;
|
|
441
443
|
name: string;
|
|
442
444
|
connections: PersonConnectionView[];
|
|
443
445
|
}[];
|
|
444
446
|
}
|
|
447
|
+
/** A connection a person owns, as their menu › „Verbindungen“ lists it: in every space of theirs. */
|
|
448
|
+
export interface OwnConnectionView {
|
|
449
|
+
id: string;
|
|
450
|
+
connectorId: string;
|
|
451
|
+
/** The connector's name; null where no space of theirs has the connector any more. */
|
|
452
|
+
connectorName: string | null;
|
|
453
|
+
/** The address the account signed in with. */
|
|
454
|
+
label: string;
|
|
455
|
+
createdAt: string;
|
|
456
|
+
/** The wizards that chose it. */
|
|
457
|
+
wizards: {
|
|
458
|
+
id: string;
|
|
459
|
+
title: string;
|
|
460
|
+
}[];
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* A need of a wizard as its settings in the studio list it (docs/plans/run-connections.md, step 4):
|
|
464
|
+
* what it names, the steps that use it, and how it resolves for the person looking.
|
|
465
|
+
*/
|
|
466
|
+
export interface WizardNeedView {
|
|
467
|
+
id: string;
|
|
468
|
+
/** The service it names: the connector's name, or the need's title. Null: a kind. */
|
|
469
|
+
name: string | null;
|
|
470
|
+
kind: string | null;
|
|
471
|
+
steps: {
|
|
472
|
+
id: string;
|
|
473
|
+
title: string;
|
|
474
|
+
}[];
|
|
475
|
+
/** A step every run passes through uses it. */
|
|
476
|
+
unavoidable: boolean;
|
|
477
|
+
/**
|
|
478
|
+
* How it resolves here: `named`, the definition names a connection of the space; `cannot`, no
|
|
479
|
+
* connector connects here (`problem` says why); `chosen` or `only`, the account in use;
|
|
480
|
+
* `choose`, several the person chooses among once; `connect`, the person connects one.
|
|
481
|
+
*/
|
|
482
|
+
here: {
|
|
483
|
+
state: "named" | "chosen" | "only";
|
|
484
|
+
account: NeedAccountView;
|
|
485
|
+
} | {
|
|
486
|
+
state: "cannot";
|
|
487
|
+
problem: string;
|
|
488
|
+
} | {
|
|
489
|
+
state: "choose";
|
|
490
|
+
count: number;
|
|
491
|
+
} | {
|
|
492
|
+
state: "connect";
|
|
493
|
+
};
|
|
494
|
+
/**
|
|
495
|
+
* For admins, with `runConnections`: the space's choice for runs nobody watches, among the
|
|
496
|
+
* space's connections that fit. Absent for members.
|
|
497
|
+
*/
|
|
498
|
+
space?: {
|
|
499
|
+
chosen: string | null;
|
|
500
|
+
options: NeedAccountView[];
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
|
+
/** An account a need may use. */
|
|
504
|
+
export interface NeedAccountView {
|
|
505
|
+
id: string;
|
|
506
|
+
/** `person`: the person's own; `space`: a connection of the space. */
|
|
507
|
+
owner: "person" | "space";
|
|
508
|
+
connectorName: string;
|
|
509
|
+
/** The address or the connection's name. */
|
|
510
|
+
label: string;
|
|
511
|
+
}
|