@engenty/wizards-runtime 0.19.1 → 0.20.0
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/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/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-QWzpEK8M.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-DAr0-gN1.js +2 -0
- package/apps/web/dist/assets/{ChangelogDialog-C_ZZLRZT.js → ChangelogDialog-CdHqJV2P.js} +1 -1
- package/apps/web/dist/assets/{CodeEditor-BEJKIMd0.js → CodeEditor-BRufUwu0.js} +1 -1
- package/apps/web/dist/assets/ConnectorsSection-BO6jHrYU.js +1 -0
- package/apps/web/dist/assets/EditorPage-Bx-fKnsY.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-fveQcQlY.js +1 -0
- package/apps/web/dist/assets/NewWizardPage-BTX1g2t1.js +7 -0
- package/apps/web/dist/assets/OnboardingPage-DwF6KdQy.js +1 -0
- package/apps/web/dist/assets/ProtocolSection-YnJcMN9E.js +1 -0
- package/apps/web/dist/assets/PublicRunner-Bp4DxTrD.js +1 -0
- package/apps/web/dist/assets/{ReadOnly-YF0RkR7P.js → ReadOnly-C6qmTD35.js} +1 -1
- package/apps/web/dist/assets/{Results-DJRLiVo0.js → Results-BNuuBiwU.js} +1 -1
- package/apps/web/dist/assets/{RunDrawer-CSpTNJp-.js → RunDrawer-CMgN-XTB.js} +1 -1
- package/apps/web/dist/assets/SettingsPage-CuUB26YJ.js +2 -0
- package/apps/web/dist/assets/SetupPage-llGzMVeH.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-Dv6ocsc_.js +2 -0
- package/apps/web/dist/assets/StudioHome-B0bZRm1L.js +1 -0
- package/apps/web/dist/assets/TableEditor-CfzTLmJF.js +7 -0
- package/apps/web/dist/assets/{UpdateCheck-BpdsLIOc.js → UpdateCheck-D3QhfI5c.js} +2 -2
- package/apps/web/dist/assets/{brand-ByQY-UcL.js → brand-DKuVyYhH.js} +1 -1
- package/apps/web/dist/assets/changelog-Db3nvWao.js +1 -0
- package/apps/web/dist/assets/{code-editor-B8zG80PA.js → code-editor-BLwDuQLI.js} +2 -2
- package/apps/web/dist/assets/host-C-AAp8Bz.js +69 -0
- package/apps/web/dist/assets/i18n-Dyi0kvaA.js +55 -0
- package/apps/web/dist/assets/{index-D18zQ05f.css → index-CduFlFCp.css} +1 -1
- package/apps/web/dist/assets/index-CtE0rJEL.js +102 -0
- 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/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
|
@@ -1322,6 +1322,8 @@ export const requiresSchema = z.object({
|
|
|
1322
1322
|
plugins: z.array(z.string().regex(PLUGIN_ID)).optional(),
|
|
1323
1323
|
/** The kinds of the wizard's connections. */
|
|
1324
1324
|
connections: z.array(z.enum(CONNECTION_KINDS)).optional(),
|
|
1325
|
+
/** The connectors the wizard's connections name (`connector`). */
|
|
1326
|
+
connectors: z.array(z.string().min(1)).optional(),
|
|
1325
1327
|
/** The switches that must be on. */
|
|
1326
1328
|
features: z.array(z.enum(REQUIRED_FEATURES)).optional(),
|
|
1327
1329
|
/** The wizard's own database: `person`, or `shared` besides (`data.scope`). */
|
|
@@ -1340,15 +1342,34 @@ export const requiresSchema = z.object({
|
|
|
1340
1342
|
.optional(),
|
|
1341
1343
|
});
|
|
1342
1344
|
/**
|
|
1343
|
-
* The version of the
|
|
1344
|
-
*
|
|
1345
|
-
*
|
|
1345
|
+
* The version of the format a wizard is written in, the same way everywhere a wizard is kept or
|
|
1346
|
+
* handed on: its definition, its file, the marketplace. `0.2.0` is the format of steps in a list.
|
|
1347
|
+
* The format is in beta until 1.0: it can change without a new version, and stored definitions
|
|
1348
|
+
* are converted once when it does. A definition without a version is of this one.
|
|
1346
1349
|
*/
|
|
1347
|
-
export const DEFINITION_VERSION =
|
|
1350
|
+
export const DEFINITION_VERSION = "0.2.0";
|
|
1351
|
+
/** The versions of the format this app reads. */
|
|
1352
|
+
export const FORMAT_VERSIONS = [DEFINITION_VERSION];
|
|
1353
|
+
/**
|
|
1354
|
+
* The version of a format as it is written today. Before 2026-11-15 the format of steps in a list
|
|
1355
|
+
* said `1`. A value written that way is read as what it means now.
|
|
1356
|
+
*/
|
|
1357
|
+
export function formatVersionOf(version) {
|
|
1358
|
+
return version === 1 || version === "1" ? DEFINITION_VERSION : version;
|
|
1359
|
+
}
|
|
1360
|
+
/** A definition with its version as it is written today (`formatVersionOf`); anything else as it is. */
|
|
1361
|
+
export function inCurrentFormat(definition) {
|
|
1362
|
+
if (!definition || typeof definition !== "object" || Array.isArray(definition)) {
|
|
1363
|
+
return definition;
|
|
1364
|
+
}
|
|
1365
|
+
const { version } = definition;
|
|
1366
|
+
const now = formatVersionOf(version);
|
|
1367
|
+
return now === version ? definition : { ...definition, version: now };
|
|
1368
|
+
}
|
|
1348
1369
|
/** A definition as it is written: what the JSON Schema describes. */
|
|
1349
|
-
export const
|
|
1370
|
+
export const wizardShapeSchema = z
|
|
1350
1371
|
.object({
|
|
1351
|
-
version: z.
|
|
1372
|
+
version: z.enum(FORMAT_VERSIONS).default(DEFINITION_VERSION),
|
|
1352
1373
|
title: z.string().min(1),
|
|
1353
1374
|
description: z.string().default(""),
|
|
1354
1375
|
avatar: z.enum(ENGENTY_KINDS).default("round"),
|
|
@@ -1400,6 +1421,11 @@ export const wizardSchema = z
|
|
|
1400
1421
|
}
|
|
1401
1422
|
});
|
|
1402
1423
|
});
|
|
1424
|
+
/**
|
|
1425
|
+
* What the app parses a definition with: the schema above, after a version written the earlier
|
|
1426
|
+
* way is read as today's (`inCurrentFormat`).
|
|
1427
|
+
*/
|
|
1428
|
+
export const wizardSchema = z.preprocess(inCurrentFormat, wizardShapeSchema);
|
|
1403
1429
|
export const INTERACTIVE = new Set(["form", "review", "result"]);
|
|
1404
1430
|
/** Which formats each producing step can be downloaded in. */
|
|
1405
1431
|
export function formatsFor(step) {
|
|
@@ -63,24 +63,6 @@ export declare const FEATURES: {
|
|
|
63
63
|
readonly label: "Organization settings in the studio";
|
|
64
64
|
readonly hint: "Settings › Organisation in the cloud studio: the organization's name, its members and invitations, changed there instead of on the account pages.";
|
|
65
65
|
};
|
|
66
|
-
readonly brandSections: {
|
|
67
|
-
readonly kind: "release";
|
|
68
|
-
readonly default: false;
|
|
69
|
-
readonly label: "Sections in Brand";
|
|
70
|
-
readonly hint: "Sections of logos and of colours, gradients and patterns among them.";
|
|
71
|
-
};
|
|
72
|
-
readonly brandRules: {
|
|
73
|
-
readonly kind: "release";
|
|
74
|
-
readonly default: false;
|
|
75
|
-
readonly label: "Rules in Brand";
|
|
76
|
-
readonly hint: "Rules for how the logos, the colours and the type may be used.";
|
|
77
|
-
};
|
|
78
|
-
readonly typography: {
|
|
79
|
-
readonly kind: "release";
|
|
80
|
-
readonly default: false;
|
|
81
|
-
readonly label: "Typography in Brand";
|
|
82
|
-
readonly hint: "The brand's fonts, their licences and a type scale.";
|
|
83
|
-
};
|
|
84
66
|
readonly channelVoice: {
|
|
85
67
|
readonly kind: "release";
|
|
86
68
|
readonly default: false;
|
|
@@ -118,8 +100,8 @@ export declare const FEATURES: {
|
|
|
118
100
|
readonly hint: "Settings › Plugins, also before any plugin is installed. Installing a plugin turns it on.";
|
|
119
101
|
};
|
|
120
102
|
readonly goose: {
|
|
121
|
-
readonly kind: "
|
|
122
|
-
readonly default:
|
|
103
|
+
readonly kind: "plan";
|
|
104
|
+
readonly default: true;
|
|
123
105
|
readonly label: "Goose";
|
|
124
106
|
readonly hint: "The studio's assistant: its chat at the foot of the page and in the sidebar.";
|
|
125
107
|
};
|
|
@@ -179,13 +161,13 @@ export declare const FEATURES: {
|
|
|
179
161
|
};
|
|
180
162
|
readonly orgSpaces: {
|
|
181
163
|
readonly kind: "release";
|
|
182
|
-
readonly default:
|
|
164
|
+
readonly default: true;
|
|
183
165
|
readonly label: "Organization, spaces and folders";
|
|
184
166
|
readonly hint: "The organization's own space as the root, Mein Space per person, every other space under the root; the path bar with the space menu instead of the space tile; Ordner in Work (docs/plans/org-spaces.md).";
|
|
185
167
|
};
|
|
186
168
|
readonly knowledgeTree: {
|
|
187
|
-
readonly kind: "
|
|
188
|
-
readonly default:
|
|
169
|
+
readonly kind: "plan";
|
|
170
|
+
readonly default: true;
|
|
189
171
|
readonly label: "Knowledge as a knowledge base";
|
|
190
172
|
readonly hint: "Knowledge's start page with one Add menu, folders in its menu and categories as a tab, the block editor for pages (docs/plans/knowledge-base.md).";
|
|
191
173
|
};
|
|
@@ -207,6 +189,12 @@ export declare const FEATURES: {
|
|
|
207
189
|
readonly label: "Dateien";
|
|
208
190
|
readonly hint: "File trees another party owns, mounted in a space and indexed where they live: a folder on this computer first (docs/plans/media-and-files.md).";
|
|
209
191
|
};
|
|
192
|
+
readonly kernel: {
|
|
193
|
+
readonly kind: "release";
|
|
194
|
+
readonly default: false;
|
|
195
|
+
readonly label: "Wizards made of step files";
|
|
196
|
+
readonly hint: "Version 0.3.0 of the format: a file with what a wizard needs and its map, and one function per step. The kernel moves its runs (docs/plans/kernel.md).";
|
|
197
|
+
};
|
|
210
198
|
readonly durableRuns: {
|
|
211
199
|
readonly kind: "release";
|
|
212
200
|
readonly default: false;
|
|
@@ -231,6 +219,12 @@ export declare const FEATURES: {
|
|
|
231
219
|
readonly label: "Code steps";
|
|
232
220
|
readonly hint: "A step that runs a function from the wizard's files with no model: maths, reshaping, scoring. With it, function tools in the wizard's files that a step's model calls (docs/plans/wizard-code.md). The architect knows both, and a run with them starts (docs/plans/code-step.md).";
|
|
233
221
|
};
|
|
222
|
+
readonly runConnections: {
|
|
223
|
+
readonly kind: "release";
|
|
224
|
+
readonly default: false;
|
|
225
|
+
readonly label: "Connections a run finds";
|
|
226
|
+
readonly hint: "A run finds the account for what its wizard needs: a person's own account from another wizard, and the space's connections for the need (docs/plans/run-connections.md).";
|
|
227
|
+
};
|
|
234
228
|
readonly ownKeys: {
|
|
235
229
|
readonly kind: "plan";
|
|
236
230
|
readonly default: true;
|
|
@@ -55,24 +55,6 @@ export const FEATURES = {
|
|
|
55
55
|
label: "Organization settings in the studio",
|
|
56
56
|
hint: "Settings › Organisation in the cloud studio: the organization's name, its members and invitations, changed there instead of on the account pages.",
|
|
57
57
|
},
|
|
58
|
-
brandSections: {
|
|
59
|
-
kind: "release",
|
|
60
|
-
default: false,
|
|
61
|
-
label: "Sections in Brand",
|
|
62
|
-
hint: "Sections of logos and of colours, gradients and patterns among them.",
|
|
63
|
-
},
|
|
64
|
-
brandRules: {
|
|
65
|
-
kind: "release",
|
|
66
|
-
default: false,
|
|
67
|
-
label: "Rules in Brand",
|
|
68
|
-
hint: "Rules for how the logos, the colours and the type may be used.",
|
|
69
|
-
},
|
|
70
|
-
typography: {
|
|
71
|
-
kind: "release",
|
|
72
|
-
default: false,
|
|
73
|
-
label: "Typography in Brand",
|
|
74
|
-
hint: "The brand's fonts, their licences and a type scale.",
|
|
75
|
-
},
|
|
76
58
|
channelVoice: {
|
|
77
59
|
kind: "release",
|
|
78
60
|
default: false,
|
|
@@ -110,8 +92,8 @@ export const FEATURES = {
|
|
|
110
92
|
hint: "Settings › Plugins, also before any plugin is installed. Installing a plugin turns it on.",
|
|
111
93
|
},
|
|
112
94
|
goose: {
|
|
113
|
-
kind: "
|
|
114
|
-
default:
|
|
95
|
+
kind: "plan",
|
|
96
|
+
default: true,
|
|
115
97
|
label: "Goose",
|
|
116
98
|
hint: "The studio's assistant: its chat at the foot of the page and in the sidebar.",
|
|
117
99
|
},
|
|
@@ -171,13 +153,13 @@ export const FEATURES = {
|
|
|
171
153
|
},
|
|
172
154
|
orgSpaces: {
|
|
173
155
|
kind: "release",
|
|
174
|
-
default:
|
|
156
|
+
default: true,
|
|
175
157
|
label: "Organization, spaces and folders",
|
|
176
158
|
hint: "The organization's own space as the root, Mein Space per person, every other space under the root; the path bar with the space menu instead of the space tile; Ordner in Work (docs/plans/org-spaces.md).",
|
|
177
159
|
},
|
|
178
160
|
knowledgeTree: {
|
|
179
|
-
kind: "
|
|
180
|
-
default:
|
|
161
|
+
kind: "plan",
|
|
162
|
+
default: true,
|
|
181
163
|
label: "Knowledge as a knowledge base",
|
|
182
164
|
hint: "Knowledge's start page with one Add menu, folders in its menu and categories as a tab, the block editor for pages (docs/plans/knowledge-base.md).",
|
|
183
165
|
},
|
|
@@ -199,6 +181,12 @@ export const FEATURES = {
|
|
|
199
181
|
label: "Dateien",
|
|
200
182
|
hint: "File trees another party owns, mounted in a space and indexed where they live: a folder on this computer first (docs/plans/media-and-files.md).",
|
|
201
183
|
},
|
|
184
|
+
kernel: {
|
|
185
|
+
kind: "release",
|
|
186
|
+
default: false,
|
|
187
|
+
label: "Wizards made of step files",
|
|
188
|
+
hint: "Version 0.3.0 of the format: a file with what a wizard needs and its map, and one function per step. The kernel moves its runs (docs/plans/kernel.md).",
|
|
189
|
+
},
|
|
202
190
|
durableRuns: {
|
|
203
191
|
kind: "release",
|
|
204
192
|
default: false,
|
|
@@ -223,6 +211,12 @@ export const FEATURES = {
|
|
|
223
211
|
label: "Code steps",
|
|
224
212
|
hint: "A step that runs a function from the wizard's files with no model: maths, reshaping, scoring. With it, function tools in the wizard's files that a step's model calls (docs/plans/wizard-code.md). The architect knows both, and a run with them starts (docs/plans/code-step.md).",
|
|
225
213
|
},
|
|
214
|
+
runConnections: {
|
|
215
|
+
kind: "release",
|
|
216
|
+
default: false,
|
|
217
|
+
label: "Connections a run finds",
|
|
218
|
+
hint: "A run finds the account for what its wizard needs: a person's own account from another wizard, and the space's connections for the need (docs/plans/run-connections.md).",
|
|
219
|
+
},
|
|
226
220
|
ownKeys: {
|
|
227
221
|
kind: "plan",
|
|
228
222
|
default: true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { DEFINITION_VERSION,
|
|
2
|
+
import { DEFINITION_VERSION, wizardShapeSchema } from "./definition.js";
|
|
3
3
|
import { themeSchema } from "./theme.js";
|
|
4
4
|
import { manifestSchema, PACKAGE_SCHEMA_URL, THEME_SCHEMA_URL, WIZARD_SCHEMA_URL, } from "./wizard-package.js";
|
|
5
5
|
const DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
@@ -44,7 +44,7 @@ export function wizardJsonSchema() {
|
|
|
44
44
|
$comment: LICENSE_COMMENT,
|
|
45
45
|
title: "engenty.wizards wizard definition",
|
|
46
46
|
description: `A wizard's definition, version ${DEFINITION_VERSION}. Checked by \`wizards validate\`, which also checks what this schema cannot say: ids, references between steps and templates.`,
|
|
47
|
-
...withSchemaProperty(generate(
|
|
47
|
+
...withSchemaProperty(generate(wizardShapeSchema)),
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
/** `wizard.json` in a `.wizard` package: the definition with what it needs from its space. */
|
|
@@ -62,7 +62,7 @@ export function packageJsonSchema() {
|
|
|
62
62
|
...properties,
|
|
63
63
|
definition: { $ref: "#/$defs/definition" },
|
|
64
64
|
},
|
|
65
|
-
$defs: { definition: withSchemaProperty(generate(
|
|
65
|
+
$defs: { definition: withSchemaProperty(generate(wizardShapeSchema)) },
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
/** A theme: how a wizard's pages look, values only (docs/plans/themes.md). Versioned apart from the wizard's. */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { formatVersionOf } from "./definition.js";
|
|
1
2
|
import { scoreCatalogEntry, tokenizeCatalogText, } from "./engenty/search-index/catalog-lexical.js";
|
|
2
3
|
import { marketLabels, } from "./marketplace.js";
|
|
3
4
|
/**
|
|
@@ -86,14 +87,18 @@ export function matchesFilters(e, f) {
|
|
|
86
87
|
(f.industry !== "any" && e.industries.includes("any"))) &&
|
|
87
88
|
(!f.format || e.formats.includes(f.format)) &&
|
|
88
89
|
(!f.capability || e.capabilities.includes(f.capability)) &&
|
|
89
|
-
(!f.plan || (e.plan ?? "free") === f.plan)
|
|
90
|
+
(!f.plan || (e.plan ?? "free") === f.plan) &&
|
|
91
|
+
(!f.version || versionOf(e) === f.version));
|
|
90
92
|
}
|
|
93
|
+
/** The version of the format an entry's wizard is written in, as it is written today. */
|
|
94
|
+
const versionOf = (e) => String(formatVersionOf(e.version));
|
|
91
95
|
const FACETS = {
|
|
92
96
|
useCase: (e) => e.useCases,
|
|
93
97
|
industry: (e) => e.industries,
|
|
94
98
|
format: (e) => e.formats,
|
|
95
99
|
capability: (e) => e.capabilities,
|
|
96
100
|
plan: (e) => [e.plan ?? "free"],
|
|
101
|
+
version: (e) => [versionOf(e)],
|
|
97
102
|
};
|
|
98
103
|
/**
|
|
99
104
|
* Per option of each filter, the found entries it would leave with the other filters as they
|
|
@@ -106,6 +111,7 @@ function facetsOf(all, found, filters) {
|
|
|
106
111
|
format: {},
|
|
107
112
|
capability: {},
|
|
108
113
|
plan: {},
|
|
114
|
+
version: {},
|
|
109
115
|
};
|
|
110
116
|
for (const key of Object.keys(FACETS)) {
|
|
111
117
|
const options = new Set(all.flatMap(FACETS[key]));
|
|
@@ -136,8 +136,11 @@ export interface MarketplaceSummary {
|
|
|
136
136
|
effort: Effort;
|
|
137
137
|
costTier: CostTier;
|
|
138
138
|
steps: number;
|
|
139
|
-
/**
|
|
140
|
-
|
|
139
|
+
/**
|
|
140
|
+
* The version of the format the entry's wizard is written in (`FORMAT_VERSIONS`). A marketplace
|
|
141
|
+
* from before 2026-11-15 says `1` for `0.2.0`: a client reads it with `formatVersionOf`.
|
|
142
|
+
*/
|
|
143
|
+
version: string;
|
|
141
144
|
/**
|
|
142
145
|
* The plugins its wizard uses, by id (`pluginsOf`). A marketplace older than this field leaves
|
|
143
146
|
* it out: read it as none.
|
|
@@ -158,6 +161,8 @@ export interface MarketplaceFilters {
|
|
|
158
161
|
format?: ItemFormat;
|
|
159
162
|
capability?: Capability;
|
|
160
163
|
plan?: MarketplacePlan;
|
|
164
|
+
/** The version of the format the entry's wizard is written in (`FORMAT_VERSIONS`). */
|
|
165
|
+
version?: string;
|
|
161
166
|
}
|
|
162
167
|
/** Per option of a filter: the entries it would leave, with the other filters as they are. */
|
|
163
168
|
export interface MarketplaceFacets {
|
|
@@ -168,6 +173,8 @@ export interface MarketplaceFacets {
|
|
|
168
173
|
capability?: Partial<Record<Capability, number>>;
|
|
169
174
|
/** Optional: a marketplace older than this filter leaves it out. */
|
|
170
175
|
plan?: Partial<Record<MarketplacePlan, number>>;
|
|
176
|
+
/** Optional: a marketplace older than this filter leaves it out. */
|
|
177
|
+
version?: Partial<Record<string, number>>;
|
|
171
178
|
}
|
|
172
179
|
/** A page of a search: the entries, best first, how many there are, and the filters' counts. */
|
|
173
180
|
export interface MarketplacePage<T extends MarketplaceSummary = MarketplaceSummary> {
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a team's public page is drawn from: the shape the runtime sends the Manage-App
|
|
3
|
+
* (`PUT /v1/pages/:tenantId`, docs/manage-contract.md) and the Manage-App answers by host.
|
|
4
|
+
*/
|
|
5
|
+
/** The run page's theme, as the runtime derives it from a space's brand (`runTheme`). */
|
|
6
|
+
export interface RunTheme {
|
|
7
|
+
accent: string | null;
|
|
8
|
+
second: string | null;
|
|
9
|
+
background: string | null;
|
|
10
|
+
display: string | null;
|
|
11
|
+
body: string | null;
|
|
12
|
+
dark: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface PageWizard {
|
|
15
|
+
slug: string;
|
|
16
|
+
title: string;
|
|
17
|
+
description: string;
|
|
18
|
+
/** One of the engenty kinds (`round`, `drop`, …); an unknown one draws `round`. */
|
|
19
|
+
avatar: string;
|
|
20
|
+
lang: "de" | "en";
|
|
21
|
+
/** What a person takes along at the end: each by its name, kind and files. */
|
|
22
|
+
results: {
|
|
23
|
+
title: string;
|
|
24
|
+
kind: string;
|
|
25
|
+
formats: string[];
|
|
26
|
+
}[];
|
|
27
|
+
effort: {
|
|
28
|
+
fields: number;
|
|
29
|
+
reviews: number;
|
|
30
|
+
minutes: number;
|
|
31
|
+
uploads: boolean;
|
|
32
|
+
};
|
|
33
|
+
/** The way through as a short list. */
|
|
34
|
+
steps: {
|
|
35
|
+
title: string;
|
|
36
|
+
by: "you" | "ai";
|
|
37
|
+
}[];
|
|
38
|
+
/** The runtime's run page (`/w/<token>`): where the start button leads. */
|
|
39
|
+
runUrl: string;
|
|
40
|
+
/** A run the owner shared as the example (`/s/<token>`); drawn from the kind where none. */
|
|
41
|
+
exampleUrl?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface PageSpace {
|
|
44
|
+
/** The space's address under the team's: `<team>.wizards.page/<slug>`. */
|
|
45
|
+
slug: string;
|
|
46
|
+
/** The name on the page; the internal space name never shows. */
|
|
47
|
+
title: string;
|
|
48
|
+
headline?: string;
|
|
49
|
+
intro?: string;
|
|
50
|
+
lang: "de" | "en";
|
|
51
|
+
/** How the page addresses its readers, where the language tells them apart. */
|
|
52
|
+
form?: "du" | "sie";
|
|
53
|
+
brand: {
|
|
54
|
+
name: string;
|
|
55
|
+
logoUrl: string | null;
|
|
56
|
+
theme: RunTheme;
|
|
57
|
+
};
|
|
58
|
+
/** The space's facts as the imprint: the name, then one line each. */
|
|
59
|
+
imprint: {
|
|
60
|
+
name: string;
|
|
61
|
+
lines: string[];
|
|
62
|
+
website?: string;
|
|
63
|
+
} | null;
|
|
64
|
+
/** In the team's order; the first is shown large. */
|
|
65
|
+
wizards: PageWizard[];
|
|
66
|
+
}
|
|
67
|
+
export interface PageTeam {
|
|
68
|
+
slug: string;
|
|
69
|
+
name: string;
|
|
70
|
+
lang: string;
|
|
71
|
+
space: PageSpace | null;
|
|
72
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { RunTheme } from "./page-data.js";
|
|
2
|
+
export interface Look {
|
|
3
|
+
/** CSS custom properties for the page's root. */
|
|
4
|
+
vars: string;
|
|
5
|
+
/** The Google Fonts stylesheet for the page's typefaces. */
|
|
6
|
+
fontsHref: string;
|
|
7
|
+
/** Whether the space has a brand of its own. */
|
|
8
|
+
branded: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function lookOf(theme: RunTheme | null): Look;
|
|
11
|
+
/** The kind chips' colours: what a result is, told apart by lightness as well as hue. */
|
|
12
|
+
export declare const KIND_COLOUR: Record<string, string>;
|
|
13
|
+
export declare const kindColour: (k: string) => string;
|
|
14
|
+
/** The file-type chips' colours, as people know them from their apps. */
|
|
15
|
+
export declare const FORMAT_COLOUR: Record<string, string>;
|
|
16
|
+
export declare const formatColour: (f: string) => string;
|
|
17
|
+
export declare const shownFormats: (formats: string[]) => string[];
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How a page looks: the run page's theme where the space has a brand (the band in the accent,
|
|
3
|
+
* the brand's fonts), else the engenty look (the gallery's blue on paper, Space Grotesk and
|
|
4
|
+
* Geist). Everything the stylesheet uses is a custom property on the page's root.
|
|
5
|
+
*/
|
|
6
|
+
const ENGENTY = {
|
|
7
|
+
band: "oklch(50% 0.2 262)",
|
|
8
|
+
bandInk: "oklch(32% 0.15 262)",
|
|
9
|
+
ground: "#faf8f5",
|
|
10
|
+
display: "Space Grotesk",
|
|
11
|
+
body: "Geist",
|
|
12
|
+
second: "oklch(80% 0.14 80)",
|
|
13
|
+
};
|
|
14
|
+
function rgb(hex) {
|
|
15
|
+
const m = hex.trim().match(/^#?([0-9a-f]{6})$/i);
|
|
16
|
+
if (!m) {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
const n = Number.parseInt(m[1], 16);
|
|
20
|
+
return [(n >> 16) & 255, (n >> 8) & 255, n & 255];
|
|
21
|
+
}
|
|
22
|
+
function luminance(hex) {
|
|
23
|
+
const c = rgb(hex);
|
|
24
|
+
if (!c) {
|
|
25
|
+
return 0.2;
|
|
26
|
+
}
|
|
27
|
+
const lin = c.map((v) => {
|
|
28
|
+
const s = v / 255;
|
|
29
|
+
return s <= 0.039_28 ? s / 12.92 : ((s + 0.055) / 1.055) ** 2.4;
|
|
30
|
+
});
|
|
31
|
+
return 0.2126 * lin[0] + 0.7152 * lin[1] + 0.0722 * lin[2];
|
|
32
|
+
}
|
|
33
|
+
/** Text on a colour: white where it reads, else near-black. */
|
|
34
|
+
const inkOn = (colour) => (luminance(colour) > 0.36 ? "#14110f" : "#ffffff");
|
|
35
|
+
const family = (name) => `family=${encodeURIComponent(name).replace(/%20/g, "+")}:wght@400;500;600;700`;
|
|
36
|
+
export function lookOf(theme) {
|
|
37
|
+
const branded = Boolean(theme?.accent);
|
|
38
|
+
const dark = Boolean(theme?.dark);
|
|
39
|
+
const band = theme?.accent ?? ENGENTY.band;
|
|
40
|
+
const onBand = theme?.accent ? inkOn(theme.accent) : "#ffffff";
|
|
41
|
+
const ground = theme?.background ?? (dark ? "#141a24" : ENGENTY.ground);
|
|
42
|
+
const ink = dark ? "#eef1f6" : "#1d1a17";
|
|
43
|
+
const display = theme?.display ?? ENGENTY.display;
|
|
44
|
+
const body = theme?.body ?? (theme?.display ? theme.display : ENGENTY.body);
|
|
45
|
+
const second = theme?.second ?? (branded ? band : ENGENTY.second);
|
|
46
|
+
const props = {
|
|
47
|
+
"--band": band,
|
|
48
|
+
"--on-band": onBand,
|
|
49
|
+
"--band-ink": theme?.accent ? theme.accent : ENGENTY.bandInk,
|
|
50
|
+
"--ground": ground,
|
|
51
|
+
"--ink": ink,
|
|
52
|
+
"--ink-2": dark ? "rgba(238,241,246,.82)" : "rgba(29,26,23,.82)",
|
|
53
|
+
"--muted": dark ? "rgba(238,241,246,.62)" : "rgba(29,26,23,.62)",
|
|
54
|
+
"--line": dark ? "rgba(238,241,246,.14)" : "rgba(29,26,23,.12)",
|
|
55
|
+
"--card": dark ? "rgba(255,255,255,.07)" : "#ffffff",
|
|
56
|
+
"--side": dark ? "rgba(255,255,255,.06)" : `color-mix(in oklab, ${band} 10%, #ffffff)`,
|
|
57
|
+
"--accent": band,
|
|
58
|
+
"--on-accent": onBand,
|
|
59
|
+
"--second": second,
|
|
60
|
+
"--on-second": inkOn(second.startsWith("#") ? second : "#888888"),
|
|
61
|
+
"--f-display": `'${display}', 'Space Grotesk', system-ui, sans-serif`,
|
|
62
|
+
"--f-body": `'${body}', 'Geist', system-ui, sans-serif`,
|
|
63
|
+
};
|
|
64
|
+
const families = [...new Set([display, body])].map(family).join("&");
|
|
65
|
+
return {
|
|
66
|
+
vars: Object.entries(props)
|
|
67
|
+
.map(([k, v]) => `${k}:${v}`)
|
|
68
|
+
.join(";"),
|
|
69
|
+
fontsHref: `https://fonts.googleapis.com/css2?${families}&display=swap`,
|
|
70
|
+
branded,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
/** The kind chips' colours: what a result is, told apart by lightness as well as hue. */
|
|
74
|
+
export const KIND_COLOUR = {
|
|
75
|
+
text: "#4a443d",
|
|
76
|
+
document: "#b4351f",
|
|
77
|
+
table: "#1d7a45",
|
|
78
|
+
image: "#6a3fd1",
|
|
79
|
+
video: "#a3218a",
|
|
80
|
+
audio: "#0e7490",
|
|
81
|
+
dashboard: "#2b579a",
|
|
82
|
+
};
|
|
83
|
+
export const kindColour = (k) => KIND_COLOUR[k] ?? "#4a443d";
|
|
84
|
+
/** The file-type chips' colours, as people know them from their apps. */
|
|
85
|
+
export const FORMAT_COLOUR = {
|
|
86
|
+
pdf: "#b4351f",
|
|
87
|
+
xlsx: "#1d7a45",
|
|
88
|
+
csv: "#1d7a45",
|
|
89
|
+
docx: "#2b579a",
|
|
90
|
+
pptx: "#c5461e",
|
|
91
|
+
png: "#6a3fd1",
|
|
92
|
+
jpg: "#6a3fd1",
|
|
93
|
+
mp4: "#a3218a",
|
|
94
|
+
mp3: "#0e7490",
|
|
95
|
+
};
|
|
96
|
+
export const formatColour = (f) => FORMAT_COLOUR[f.toLowerCase()] ?? "#4a443d";
|
|
97
|
+
/** The formats a visitor opens first; data formats only where nothing else comes. */
|
|
98
|
+
const FORMAT_ORDER = [
|
|
99
|
+
"pdf",
|
|
100
|
+
"docx",
|
|
101
|
+
"xlsx",
|
|
102
|
+
"pptx",
|
|
103
|
+
"mp4",
|
|
104
|
+
"png",
|
|
105
|
+
"jpg",
|
|
106
|
+
"mp3",
|
|
107
|
+
"csv",
|
|
108
|
+
"html",
|
|
109
|
+
"txt",
|
|
110
|
+
"md",
|
|
111
|
+
"zip",
|
|
112
|
+
"json",
|
|
113
|
+
];
|
|
114
|
+
const rank = (f) => {
|
|
115
|
+
const i = FORMAT_ORDER.indexOf(f.toLowerCase());
|
|
116
|
+
return i < 0 ? FORMAT_ORDER.length : i;
|
|
117
|
+
};
|
|
118
|
+
export const shownFormats = (formats) => [...formats].sort((a, b) => rank(a) - rank(b)).slice(0, 2);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The stylesheet of an organization's public page on wizards.page: the portal draws the page with
|
|
3
|
+
* it, the studio its preview of the page (studio/shared). Every colour and face comes from the
|
|
4
|
+
* custom properties `lookOf` sets on the page's root.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PAGE_STYLES = "\n*,*::before,*::after{box-sizing:border-box}\nhtml{-webkit-text-size-adjust:100%}\nbody{margin:0;background:var(--ground);color:var(--ink);font-family:var(--f-body);-webkit-font-smoothing:antialiased;line-height:1.4}\na{color:inherit}\nh1,h2,h3{font-family:var(--f-display);margin:0;letter-spacing:-0.02em;font-weight:600}\np,ul,ol{margin:0}\nul,ol{padding:0;list-style:none}\n.wp{max-width:1152px;margin:0 auto;padding:0 24px}\n.band{background:var(--band);color:var(--on-band)}\n.top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;padding-top:28px}\n.brand{display:inline-flex;align-items:center;gap:12px;text-decoration:none;font-family:var(--f-display);font-weight:600;font-size:19px}\n.brand img{height:36px;max-width:180px;object-fit:contain}\n.mark{width:36px;height:36px;border-radius:9px;background:var(--on-band);color:var(--band);display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;font-family:var(--f-body)}\n.site{font-size:14px;opacity:.8;text-decoration:none}\n.hero{padding-top:64px;padding-bottom:150px;display:flex;flex-direction:column;gap:18px}\n.lbl{font-size:12px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;opacity:.72;display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px}\n.lbl b{font-weight:500;opacity:1}\n.lbl i{width:3px;height:3px;border-radius:999px;background:currentColor;opacity:.6}\n.hero h1{font-size:clamp(34px,4.6vw,56px);line-height:1.04;letter-spacing:-0.03em;max-width:820px}\n.hero p{font-size:18px;max-width:36rem;opacity:.9}\n.meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;font-size:14px;opacity:.9}\n.meta li{display:inline-flex;align-items:center;gap:6px}\n.ico{width:16px;height:16px;flex:none}\n.main{margin-top:-96px;padding-bottom:64px}\n.card{background:var(--card);border-radius:16px;box-shadow:inset 0 0 0 1px var(--line),0 10px 24px -18px rgba(0,0,0,.35);position:relative}\n.feat{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);box-shadow:inset 0 0 0 1px var(--line),0 30px 70px -36px rgba(0,0,0,.45)}\n.feat-main{padding:32px 36px;display:flex;flex-direction:column;gap:18px;min-width:0}\n.feat-side{background:var(--side);border-radius:0 16px 16px 0;padding:28px;display:flex;flex-direction:column;gap:14px;justify-content:center}\n.perch{position:absolute;right:20px;top:-88px;z-index:2;pointer-events:none}\n.peek{position:absolute;right:20px;top:-18px;pointer-events:none}\n.lbl2{font-size:11.5px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}\n.feat h2{font-size:clamp(26px,3vw,36px);line-height:1.08}\n.lead{font-size:16px;line-height:1.5;color:var(--ink-2);max-width:34rem}\n.does{display:flex;flex-direction:column;gap:6px;padding-top:4px;font-size:15px}\n.does span{color:var(--muted)}\n.stage{display:grid}\n.act{grid-area:1/1;display:flex;flex-direction:column;gap:14px;min-width:0}\n.steps{display:flex;flex-direction:column;gap:9px}\n.steps li{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;animation:enter .6s cubic-bezier(.2,.7,.2,1) both calc(var(--i) * .5s)}\n.tick{flex:none;width:18px;height:18px;border-radius:5px;border:1.5px solid var(--line);background:var(--card);display:inline-flex;align-items:center;justify-content:center;color:var(--accent)}\n.tick svg{width:12px;height:12px;opacity:0;animation:tick .35s ease forwards calc(var(--i) * .5s + .35s)}\n.steps-act{animation:out .5s ease forwards var(--t)}\n.results-act{animation:rise .7s cubic-bezier(.2,.7,.2,1) both var(--t)}\n@keyframes tick{to{opacity:1}}\n@keyframes enter{from{opacity:0;transform:translateY(8px)}}\n@keyframes rise{from{opacity:0;transform:translateY(8px)}}\n@keyframes out{to{opacity:0;visibility:hidden}}\n@media (prefers-reduced-motion:reduce){.tick svg,.steps li,.results-act{animation:none;opacity:1}.steps-act{display:none}}\n.prev{background:var(--card);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:8px;box-shadow:0 10px 24px -16px rgba(0,0,0,.35);text-decoration:none;color:inherit}\n.prev .res{font-size:13.5px}\n.grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:4px}.grid i{display:block;height:6px;border-radius:2px;background:var(--line)}.grid i:nth-child(-n+3){height:7px;background:color-mix(in oklab,var(--accent) 30%,var(--line))}\n.pl{display:flex;flex-direction:column;gap:5px}.pl i{display:block;height:5px;border-radius:3px;background:var(--line)}\n.frame{height:56px;border-radius:8px;background:color-mix(in oklab,var(--accent) 12%,var(--ground));display:flex;align-items:center;justify-content:center;color:var(--accent)}\n.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.tiles i{display:block;height:22px;border-radius:4px;background:var(--line)}\n.wave{display:flex;align-items:center;gap:3px;height:28px}.wave i{display:block;width:3px;border-radius:2px;background:color-mix(in oklab,var(--accent) 50%,var(--line))}\n.ex{font-size:13px;color:var(--muted);text-decoration:none}.ex b{color:var(--ink);font-weight:600}\n.cta{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding-top:6px}\n.cta small{font-size:13px;color:var(--muted)}\n.pill{display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 24px;border-radius:999px;background:var(--accent);color:var(--on-accent);font-weight:700;font-size:15px;text-decoration:none;white-space:nowrap}\n.pill:hover{filter:brightness(.92)}\n.res{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:600;line-height:1.35}\n.kic{flex:none;width:20px;height:20px}\n.files{font-size:12px;font-weight:500;color:var(--muted);letter-spacing:.02em}\n.side-note{font-size:13px;color:var(--muted);line-height:1.5}\n.sec{margin-top:80px}\n.sec h2{font-family:var(--f-body);font-size:12px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}\n.rows{margin-top:28px;display:flex;flex-direction:column;gap:28px}\n.row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:end;padding:24px 28px}\n.row-main{display:flex;flex-direction:column;gap:8px;min-width:0;padding-right:60px}\n.row-title{font-size:13px;color:var(--muted)}\n.row h3{font-size:26px;line-height:1.12}\n.gets{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin-top:2px}\n.gets span{display:inline-flex;align-items:center;gap:7px;font-size:14px;font-weight:600}\n.row-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin-top:4px;font-size:13px;color:var(--ink-2)}\n.row-meta li{display:inline-flex;align-items:center;gap:5px}\n.row-desc{font-size:14.5px;line-height:1.45;color:var(--ink-2)}\n.foot{padding-bottom:32px;font-size:12.5px;color:var(--muted)}\n.foot-grid{display:grid;grid-template-columns:1fr 2fr 1fr;column-gap:40px;row-gap:28px;border-top:1px solid var(--line);padding-top:40px}\n.foot h4{margin:0 0 12px;font-size:12px;font-weight:500;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-2)}\n.foot ul{display:flex;flex-direction:column;gap:6px}\n.foot .two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 24px}\n.foot a{color:var(--muted)}\n.made{margin-top:40px;border-top:1px solid var(--line);padding-top:20px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px}\n.made span{display:inline-flex;align-items:center;gap:8px}\n.nothing{min-height:100vh;display:flex;flex-direction:column}\n.nothing main{flex:1;display:flex;align-items:center;justify-content:center;padding:28px}\n.nothing-box{max-width:420px;display:flex;flex-direction:column;gap:14px;align-items:flex-start}\n.nothing h1{font-size:32px;line-height:1.1}\n.nothing p{font-size:16px;line-height:1.55;color:var(--ink-2)}\n@media (max-width:900px){.feat{grid-template-columns:1fr}.feat-side{border-radius:0 0 16px 16px}.row{grid-template-columns:1fr}.row .pill{justify-self:start}.foot-grid{grid-template-columns:1fr}.foot .two{grid-template-columns:1fr}}\n@media (max-width:640px){.wp{padding-left:16px;padding-right:16px}.hero{padding-top:40px;padding-bottom:120px}.main{margin-top:-72px}.feat-main{padding:24px 20px}.feat-side{padding:24px 20px}.perch{right:10px;top:-62px}.perch svg{width:104px;height:104px}.row{padding:20px}.row-main{padding-right:48px}.row h3{font-size:22px}.sec{margin-top:56px}}\n";
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The stylesheet of an organization's public page on wizards.page: the portal draws the page with
|
|
3
|
+
* it, the studio its preview of the page (studio/shared). Every colour and face comes from the
|
|
4
|
+
* custom properties `lookOf` sets on the page's root.
|
|
5
|
+
*/
|
|
6
|
+
export const PAGE_STYLES = `
|
|
7
|
+
*,*::before,*::after{box-sizing:border-box}
|
|
8
|
+
html{-webkit-text-size-adjust:100%}
|
|
9
|
+
body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--f-body);-webkit-font-smoothing:antialiased;line-height:1.4}
|
|
10
|
+
a{color:inherit}
|
|
11
|
+
h1,h2,h3{font-family:var(--f-display);margin:0;letter-spacing:-0.02em;font-weight:600}
|
|
12
|
+
p,ul,ol{margin:0}
|
|
13
|
+
ul,ol{padding:0;list-style:none}
|
|
14
|
+
.wp{max-width:1152px;margin:0 auto;padding:0 24px}
|
|
15
|
+
.band{background:var(--band);color:var(--on-band)}
|
|
16
|
+
.top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;padding-top:28px}
|
|
17
|
+
.brand{display:inline-flex;align-items:center;gap:12px;text-decoration:none;font-family:var(--f-display);font-weight:600;font-size:19px}
|
|
18
|
+
.brand img{height:36px;max-width:180px;object-fit:contain}
|
|
19
|
+
.mark{width:36px;height:36px;border-radius:9px;background:var(--on-band);color:var(--band);display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;font-family:var(--f-body)}
|
|
20
|
+
.site{font-size:14px;opacity:.8;text-decoration:none}
|
|
21
|
+
.hero{padding-top:64px;padding-bottom:150px;display:flex;flex-direction:column;gap:18px}
|
|
22
|
+
.lbl{font-size:12px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;opacity:.72;display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px}
|
|
23
|
+
.lbl b{font-weight:500;opacity:1}
|
|
24
|
+
.lbl i{width:3px;height:3px;border-radius:999px;background:currentColor;opacity:.6}
|
|
25
|
+
.hero h1{font-size:clamp(34px,4.6vw,56px);line-height:1.04;letter-spacing:-0.03em;max-width:820px}
|
|
26
|
+
.hero p{font-size:18px;max-width:36rem;opacity:.9}
|
|
27
|
+
.meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;font-size:14px;opacity:.9}
|
|
28
|
+
.meta li{display:inline-flex;align-items:center;gap:6px}
|
|
29
|
+
.ico{width:16px;height:16px;flex:none}
|
|
30
|
+
.main{margin-top:-96px;padding-bottom:64px}
|
|
31
|
+
.card{background:var(--card);border-radius:16px;box-shadow:inset 0 0 0 1px var(--line),0 10px 24px -18px rgba(0,0,0,.35);position:relative}
|
|
32
|
+
.feat{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);box-shadow:inset 0 0 0 1px var(--line),0 30px 70px -36px rgba(0,0,0,.45)}
|
|
33
|
+
.feat-main{padding:32px 36px;display:flex;flex-direction:column;gap:18px;min-width:0}
|
|
34
|
+
.feat-side{background:var(--side);border-radius:0 16px 16px 0;padding:28px;display:flex;flex-direction:column;gap:14px;justify-content:center}
|
|
35
|
+
.perch{position:absolute;right:20px;top:-88px;z-index:2;pointer-events:none}
|
|
36
|
+
.peek{position:absolute;right:20px;top:-18px;pointer-events:none}
|
|
37
|
+
.lbl2{font-size:11.5px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
|
|
38
|
+
.feat h2{font-size:clamp(26px,3vw,36px);line-height:1.08}
|
|
39
|
+
.lead{font-size:16px;line-height:1.5;color:var(--ink-2);max-width:34rem}
|
|
40
|
+
.does{display:flex;flex-direction:column;gap:6px;padding-top:4px;font-size:15px}
|
|
41
|
+
.does span{color:var(--muted)}
|
|
42
|
+
.stage{display:grid}
|
|
43
|
+
.act{grid-area:1/1;display:flex;flex-direction:column;gap:14px;min-width:0}
|
|
44
|
+
.steps{display:flex;flex-direction:column;gap:9px}
|
|
45
|
+
.steps li{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;animation:enter .6s cubic-bezier(.2,.7,.2,1) both calc(var(--i) * .5s)}
|
|
46
|
+
.tick{flex:none;width:18px;height:18px;border-radius:5px;border:1.5px solid var(--line);background:var(--card);display:inline-flex;align-items:center;justify-content:center;color:var(--accent)}
|
|
47
|
+
.tick svg{width:12px;height:12px;opacity:0;animation:tick .35s ease forwards calc(var(--i) * .5s + .35s)}
|
|
48
|
+
.steps-act{animation:out .5s ease forwards var(--t)}
|
|
49
|
+
.results-act{animation:rise .7s cubic-bezier(.2,.7,.2,1) both var(--t)}
|
|
50
|
+
@keyframes tick{to{opacity:1}}
|
|
51
|
+
@keyframes enter{from{opacity:0;transform:translateY(8px)}}
|
|
52
|
+
@keyframes rise{from{opacity:0;transform:translateY(8px)}}
|
|
53
|
+
@keyframes out{to{opacity:0;visibility:hidden}}
|
|
54
|
+
@media (prefers-reduced-motion:reduce){.tick svg,.steps li,.results-act{animation:none;opacity:1}.steps-act{display:none}}
|
|
55
|
+
.prev{background:var(--card);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:8px;box-shadow:0 10px 24px -16px rgba(0,0,0,.35);text-decoration:none;color:inherit}
|
|
56
|
+
.prev .res{font-size:13.5px}
|
|
57
|
+
.grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:4px}.grid i{display:block;height:6px;border-radius:2px;background:var(--line)}.grid i:nth-child(-n+3){height:7px;background:color-mix(in oklab,var(--accent) 30%,var(--line))}
|
|
58
|
+
.pl{display:flex;flex-direction:column;gap:5px}.pl i{display:block;height:5px;border-radius:3px;background:var(--line)}
|
|
59
|
+
.frame{height:56px;border-radius:8px;background:color-mix(in oklab,var(--accent) 12%,var(--ground));display:flex;align-items:center;justify-content:center;color:var(--accent)}
|
|
60
|
+
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.tiles i{display:block;height:22px;border-radius:4px;background:var(--line)}
|
|
61
|
+
.wave{display:flex;align-items:center;gap:3px;height:28px}.wave i{display:block;width:3px;border-radius:2px;background:color-mix(in oklab,var(--accent) 50%,var(--line))}
|
|
62
|
+
.ex{font-size:13px;color:var(--muted);text-decoration:none}.ex b{color:var(--ink);font-weight:600}
|
|
63
|
+
.cta{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding-top:6px}
|
|
64
|
+
.cta small{font-size:13px;color:var(--muted)}
|
|
65
|
+
.pill{display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 24px;border-radius:999px;background:var(--accent);color:var(--on-accent);font-weight:700;font-size:15px;text-decoration:none;white-space:nowrap}
|
|
66
|
+
.pill:hover{filter:brightness(.92)}
|
|
67
|
+
.res{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:600;line-height:1.35}
|
|
68
|
+
.kic{flex:none;width:20px;height:20px}
|
|
69
|
+
.files{font-size:12px;font-weight:500;color:var(--muted);letter-spacing:.02em}
|
|
70
|
+
.side-note{font-size:13px;color:var(--muted);line-height:1.5}
|
|
71
|
+
.sec{margin-top:80px}
|
|
72
|
+
.sec h2{font-family:var(--f-body);font-size:12px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
|
|
73
|
+
.rows{margin-top:28px;display:flex;flex-direction:column;gap:28px}
|
|
74
|
+
.row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:end;padding:24px 28px}
|
|
75
|
+
.row-main{display:flex;flex-direction:column;gap:8px;min-width:0;padding-right:60px}
|
|
76
|
+
.row-title{font-size:13px;color:var(--muted)}
|
|
77
|
+
.row h3{font-size:26px;line-height:1.12}
|
|
78
|
+
.gets{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin-top:2px}
|
|
79
|
+
.gets span{display:inline-flex;align-items:center;gap:7px;font-size:14px;font-weight:600}
|
|
80
|
+
.row-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin-top:4px;font-size:13px;color:var(--ink-2)}
|
|
81
|
+
.row-meta li{display:inline-flex;align-items:center;gap:5px}
|
|
82
|
+
.row-desc{font-size:14.5px;line-height:1.45;color:var(--ink-2)}
|
|
83
|
+
.foot{padding-bottom:32px;font-size:12.5px;color:var(--muted)}
|
|
84
|
+
.foot-grid{display:grid;grid-template-columns:1fr 2fr 1fr;column-gap:40px;row-gap:28px;border-top:1px solid var(--line);padding-top:40px}
|
|
85
|
+
.foot h4{margin:0 0 12px;font-size:12px;font-weight:500;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-2)}
|
|
86
|
+
.foot ul{display:flex;flex-direction:column;gap:6px}
|
|
87
|
+
.foot .two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 24px}
|
|
88
|
+
.foot a{color:var(--muted)}
|
|
89
|
+
.made{margin-top:40px;border-top:1px solid var(--line);padding-top:20px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px}
|
|
90
|
+
.made span{display:inline-flex;align-items:center;gap:8px}
|
|
91
|
+
.nothing{min-height:100vh;display:flex;flex-direction:column}
|
|
92
|
+
.nothing main{flex:1;display:flex;align-items:center;justify-content:center;padding:28px}
|
|
93
|
+
.nothing-box{max-width:420px;display:flex;flex-direction:column;gap:14px;align-items:flex-start}
|
|
94
|
+
.nothing h1{font-size:32px;line-height:1.1}
|
|
95
|
+
.nothing p{font-size:16px;line-height:1.55;color:var(--ink-2)}
|
|
96
|
+
@media (max-width:900px){.feat{grid-template-columns:1fr}.feat-side{border-radius:0 0 16px 16px}.row{grid-template-columns:1fr}.row .pill{justify-self:start}.foot-grid{grid-template-columns:1fr}.foot .two{grid-template-columns:1fr}}
|
|
97
|
+
@media (max-width:640px){.wp{padding-left:16px;padding-right:16px}.hero{padding-top:40px;padding-bottom:120px}.main{margin-top:-72px}.feat-main{padding:24px 20px}.feat-side{padding:24px 20px}.perch{right:10px;top:-62px}.perch svg{width:104px;height:104px}.row{padding:20px}.row-main{padding-right:48px}.row h3{font-size:22px}.sec{margin-top:56px}}
|
|
98
|
+
`;
|