@synap-core/workspace-templates 0.68.0 → 0.70.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/dist/index.js +205 -22
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/design-system.template.test.ts +100 -0
- package/src/design-system.yaml +184 -0
- package/src/templates.ts +182 -0
package/dist/index.js
CHANGED
|
@@ -18060,6 +18060,188 @@ var DATA = {
|
|
|
18060
18060
|
"manage_file"
|
|
18061
18061
|
]
|
|
18062
18062
|
},
|
|
18063
|
+
"design-system": {
|
|
18064
|
+
"meta": {
|
|
18065
|
+
"slug": "design-system",
|
|
18066
|
+
"domain": "build",
|
|
18067
|
+
"name": "Design system on Synap",
|
|
18068
|
+
"description": "Mirror an app's Storybook into your pod \u2014 every component, page and user flow as a record with its screenshot, status and what it is made of \u2014 review the ones that change with the design-critique rubric, and tie it to your brand identity. Setup asks three things, one at a time.",
|
|
18069
|
+
"icon": "layout-template",
|
|
18070
|
+
"color": "#7C3AED",
|
|
18071
|
+
"tags": [
|
|
18072
|
+
"suite",
|
|
18073
|
+
"design",
|
|
18074
|
+
"storybook",
|
|
18075
|
+
"ui",
|
|
18076
|
+
"builder",
|
|
18077
|
+
"brand"
|
|
18078
|
+
],
|
|
18079
|
+
"isPublic": true
|
|
18080
|
+
},
|
|
18081
|
+
"dependencies": [
|
|
18082
|
+
{
|
|
18083
|
+
"slug": "builder-workspace",
|
|
18084
|
+
"kind": "workspace",
|
|
18085
|
+
"relation": "require",
|
|
18086
|
+
"reason": "The kinds the Storybook becomes (ui-component, ui-page, user-flow, the app), the review and design playbooks, and the design-critique rubric. Must resolve first: the setup process lands here."
|
|
18087
|
+
},
|
|
18088
|
+
{
|
|
18089
|
+
"slug": "brand-library",
|
|
18090
|
+
"kind": "workspace",
|
|
18091
|
+
"relation": "require",
|
|
18092
|
+
"reason": "The brand identity the Storybook expresses; the sync source names it."
|
|
18093
|
+
},
|
|
18094
|
+
{
|
|
18095
|
+
"slug": "storybook",
|
|
18096
|
+
"kind": "capability",
|
|
18097
|
+
"relation": "require",
|
|
18098
|
+
"reason": "storybook.sync mirrors the Storybook into the records; storybook.changed lists the components changed since their last review."
|
|
18099
|
+
}
|
|
18100
|
+
],
|
|
18101
|
+
"workspace": {
|
|
18102
|
+
"name": "Design system on Synap",
|
|
18103
|
+
"description": "Setting up an app's Storybook as pod records, layered onto the Dev space."
|
|
18104
|
+
},
|
|
18105
|
+
"profiles": [],
|
|
18106
|
+
"playbooks": [
|
|
18107
|
+
{
|
|
18108
|
+
"name": "Set up a design system",
|
|
18109
|
+
"description": "Connect one app's Storybook to the pod in three questions asked one at a time: where the Storybook is (a public URL, or a computer that builds and uploads it), which app or project it belongs to, and which brand identity it expresses. Ends with the first sync's import proposal filed for the person and the sync kept current.",
|
|
18110
|
+
"goalTemplate": "Set up the design system of one app on this pod. Load the designing-with-real-components skill first. The pod asks the person three things, one per stage, when your turn ends that stage: never ask them yourself and never ask two at once. WHERE: read what the pod already has (the apps, the brand identities, any ui-component records and the app they belong to) and list the apps and brand identities by name, so the next answers can name one. APP: resolve the app the person named (an existing devplane_app first; never a second record for one that exists; a new one is proposed with create_entity, filed into the person's project). BRAND: resolve the brand identity they named (brand-identity, Brand space); none named: the source carries none. CONNECT: a public https URL \u2192 run storybook.sync with url, appId and brandIdentityId; a computer \u2192 the build and upload run on the person's computer, not in this run: when they uploaded a synap.storybook-bundle/v1 file, run storybook.sync with its bundleFileId, appId and brandIdentityId; until then, write the three values that computer's agent passes and stop. The first run of a source is ONE import proposal the person approves; never write the records yourself. KEEP CURRENT: the pod does not re-sync a Storybook on its own; for a URL, name the daily automation the person turns on (one storybook.sync step with the same three values); for a computer, the same build, upload and sync run after each push to the app's main. The brand identity goes only to storybook.sync (the source's config), never onto the records.",
|
|
18111
|
+
"executor": "is-agent",
|
|
18112
|
+
"tools": [
|
|
18113
|
+
"storybook"
|
|
18114
|
+
],
|
|
18115
|
+
"status": "active",
|
|
18116
|
+
"stages": [
|
|
18117
|
+
{
|
|
18118
|
+
"key": "where",
|
|
18119
|
+
"name": "Where the Storybook is",
|
|
18120
|
+
"category": "planned",
|
|
18121
|
+
"goal": "Read the pod's apps (devplane_app), brand identities (brand-identity) and any ui-component records with the app they belong to, and list the apps and brand identities by name in your message. Ask nothing yourself; when your turn ends the pod asks where the Storybook is.",
|
|
18122
|
+
"endAsk": {
|
|
18123
|
+
"label": "Where the Storybook is",
|
|
18124
|
+
"why": "The pod reads a public Storybook over https, or a bundle a computer of yours builds and uploads after each push.",
|
|
18125
|
+
"unblocks": "The run asks which app the Storybook belongs to",
|
|
18126
|
+
"ask": {
|
|
18127
|
+
"mode": "form",
|
|
18128
|
+
"form": {
|
|
18129
|
+
"title": "Where is the Storybook?",
|
|
18130
|
+
"fields": [
|
|
18131
|
+
{
|
|
18132
|
+
"key": "storybookUrl",
|
|
18133
|
+
"label": "Public Storybook URL (https)",
|
|
18134
|
+
"type": "url",
|
|
18135
|
+
"required": false,
|
|
18136
|
+
"help": "Leave it empty when the Storybook is private; a computer of yours then builds it and uploads it to the pod after each push."
|
|
18137
|
+
}
|
|
18138
|
+
]
|
|
18139
|
+
}
|
|
18140
|
+
}
|
|
18141
|
+
}
|
|
18142
|
+
},
|
|
18143
|
+
{
|
|
18144
|
+
"key": "app",
|
|
18145
|
+
"name": "Which app",
|
|
18146
|
+
"category": "started",
|
|
18147
|
+
"goal": "Read the Storybook answer (a URL must be https; an empty answer means a computer uploads). Ask nothing yourself; when your turn ends the pod asks which app or project the Storybook belongs to.",
|
|
18148
|
+
"endAsk": {
|
|
18149
|
+
"label": "Which app the Storybook belongs to",
|
|
18150
|
+
"why": "Every component, page and flow is recorded as part of one app.",
|
|
18151
|
+
"unblocks": "The run asks which brand identity the Storybook expresses",
|
|
18152
|
+
"ask": {
|
|
18153
|
+
"mode": "form",
|
|
18154
|
+
"form": {
|
|
18155
|
+
"title": "Which app or project is it?",
|
|
18156
|
+
"fields": [
|
|
18157
|
+
{
|
|
18158
|
+
"key": "app",
|
|
18159
|
+
"label": "The app (or project) this Storybook belongs to, by name",
|
|
18160
|
+
"type": "text",
|
|
18161
|
+
"required": true,
|
|
18162
|
+
"help": "One of the apps listed above. A new name becomes a new app once you approve it."
|
|
18163
|
+
}
|
|
18164
|
+
]
|
|
18165
|
+
}
|
|
18166
|
+
}
|
|
18167
|
+
}
|
|
18168
|
+
},
|
|
18169
|
+
{
|
|
18170
|
+
"key": "brand",
|
|
18171
|
+
"name": "Which brand identity",
|
|
18172
|
+
"category": "started",
|
|
18173
|
+
"goal": "Resolve the app the person named (an existing devplane_app first, never a twin; a new one proposed with create_entity, filed into their project). Ask nothing yourself; when your turn ends the pod asks which brand identity the Storybook expresses.",
|
|
18174
|
+
"criteria": [
|
|
18175
|
+
{
|
|
18176
|
+
"key": "app-resolved-once",
|
|
18177
|
+
"statement": "The named app resolves to exactly one devplane_app, an existing one or one proposed in this run; no second record of an existing app was created.",
|
|
18178
|
+
"check": {
|
|
18179
|
+
"kind": "judge"
|
|
18180
|
+
}
|
|
18181
|
+
}
|
|
18182
|
+
],
|
|
18183
|
+
"endAsk": {
|
|
18184
|
+
"label": "Which brand identity it expresses",
|
|
18185
|
+
"why": "The sync source names the brand identity, so reviews and designs read the right brand.",
|
|
18186
|
+
"unblocks": "The run connects the Storybook and starts its first sync",
|
|
18187
|
+
"ask": {
|
|
18188
|
+
"mode": "form",
|
|
18189
|
+
"form": {
|
|
18190
|
+
"title": "Which brand identity?",
|
|
18191
|
+
"fields": [
|
|
18192
|
+
{
|
|
18193
|
+
"key": "brand",
|
|
18194
|
+
"label": "The brand identity this Storybook expresses, by name",
|
|
18195
|
+
"type": "text",
|
|
18196
|
+
"required": false,
|
|
18197
|
+
"help": "From the Brand space. Leave it empty to connect the Storybook without a brand."
|
|
18198
|
+
}
|
|
18199
|
+
]
|
|
18200
|
+
}
|
|
18201
|
+
}
|
|
18202
|
+
}
|
|
18203
|
+
},
|
|
18204
|
+
{
|
|
18205
|
+
"key": "connect",
|
|
18206
|
+
"name": "Connect and first sync",
|
|
18207
|
+
"category": "started",
|
|
18208
|
+
"goal": "Resolve the brand identity the person named (brand-identity in the Brand space; empty: none). A URL: run storybook.sync with url, appId and brandIdentityId. A computer: the build and upload run on the person's computer, not in this run; with an uploaded synap.storybook-bundle/v1 file, run storybook.sync with its bundleFileId, appId and brandIdentityId; without one yet, write the values the computer's agent passes and stop. The first run is one import proposal for the person; a refused or failed sync is reported with its reason, never retried blindly.",
|
|
18209
|
+
"criteria": [
|
|
18210
|
+
{
|
|
18211
|
+
"key": "sync-ran-with-answers",
|
|
18212
|
+
"statement": "storybook.sync ran once with the person's source (url, or a bundle file a computer uploaded), the resolved appId and, when one was named, the brandIdentityId, and its import proposal is filed or its refusal is reported with the reason; or, for a computer with no bundle uploaded yet, the run wrote the values its agent passes.",
|
|
18213
|
+
"check": {
|
|
18214
|
+
"kind": "judge"
|
|
18215
|
+
}
|
|
18216
|
+
},
|
|
18217
|
+
{
|
|
18218
|
+
"key": "brand-only-on-source",
|
|
18219
|
+
"statement": "The brand identity was passed to storybook.sync only; no mirrored record was written by hand.",
|
|
18220
|
+
"check": {
|
|
18221
|
+
"kind": "judge"
|
|
18222
|
+
}
|
|
18223
|
+
}
|
|
18224
|
+
]
|
|
18225
|
+
},
|
|
18226
|
+
{
|
|
18227
|
+
"key": "keep-current",
|
|
18228
|
+
"name": "Keep it current",
|
|
18229
|
+
"category": "completed",
|
|
18230
|
+
"goal": "A URL: name the daily automation the person turns on to keep it current (one storybook.sync step with the same url, appId and brandIdentityId): the pod does not re-sync a Storybook on its own. A computer: say that its build, upload and sync run after each push to the app's main. Then say how the weekly review of changed components is turned on (the schedule of Review a UI component is installed paused).",
|
|
18231
|
+
"criteria": [
|
|
18232
|
+
{
|
|
18233
|
+
"key": "sync-kept-current",
|
|
18234
|
+
"statement": "For a URL the answer names the daily storybook.sync automation with the same three values; for a computer it names the push that triggers the build, upload and sync.",
|
|
18235
|
+
"check": {
|
|
18236
|
+
"kind": "judge"
|
|
18237
|
+
}
|
|
18238
|
+
}
|
|
18239
|
+
]
|
|
18240
|
+
}
|
|
18241
|
+
]
|
|
18242
|
+
}
|
|
18243
|
+
]
|
|
18244
|
+
},
|
|
18063
18245
|
"ecosystem": {
|
|
18064
18246
|
"meta": {
|
|
18065
18247
|
"slug": "ecosystem",
|
|
@@ -36143,10 +36325,8 @@ var vocabularyFr = {
|
|
|
36143
36325
|
"kind.entity.other": "\xC9l\xE9ments",
|
|
36144
36326
|
"kind.view.one": "Vue",
|
|
36145
36327
|
"kind.view.other": "Vues",
|
|
36146
|
-
"kind.
|
|
36147
|
-
"kind.
|
|
36148
|
-
"kind.cell.one": "Carte",
|
|
36149
|
-
"kind.cell.other": "Cartes",
|
|
36328
|
+
"kind.cell.one": "Cellule",
|
|
36329
|
+
"kind.cell.other": "Cellules",
|
|
36150
36330
|
"kind.document.one": "Document",
|
|
36151
36331
|
"kind.document.other": "Documents",
|
|
36152
36332
|
"kind.channel.one": "Canal",
|
|
@@ -36648,6 +36828,9 @@ var vocabularyFr = {
|
|
|
36648
36828
|
"status.wont_fix": "Ne sera pas corrig\xE9",
|
|
36649
36829
|
"status.muted": "En sourdine",
|
|
36650
36830
|
"status.no_effect": "Aucun changement",
|
|
36831
|
+
"status.not_done": "Non abouti",
|
|
36832
|
+
"status.stopped_on_error": "Arr\xEAt\xE9e sur une erreur",
|
|
36833
|
+
"status.stopped_at_limit": "Arr\xEAt\xE9 \xE0 sa limite",
|
|
36651
36834
|
"status.blocked_by_policy": "Bloqu\xE9 par une r\xE8gle",
|
|
36652
36835
|
"status.no_active_goal": "Aucun objectif actif",
|
|
36653
36836
|
"status.stalled": "\xC0 l\u2019arr\xEAt",
|
|
@@ -37012,29 +37195,22 @@ var OBJECT_KIND_ROWS = {
|
|
|
37012
37195
|
labelPlural: "Views",
|
|
37013
37196
|
glyph: "\u25F0"
|
|
37014
37197
|
},
|
|
37015
|
-
|
|
37016
|
-
|
|
37017
|
-
|
|
37018
|
-
|
|
37019
|
-
|
|
37020
|
-
|
|
37021
|
-
labelPlural: "Widgets",
|
|
37022
|
-
glyph: "\u229E"
|
|
37023
|
-
},
|
|
37024
|
-
/* The kind stays `cell` — that is the engine's word and the DB's. The LABEL is
|
|
37025
|
-
"Card" because that is the only word a user may see: NORTH-STAR (team pod) §5 —
|
|
37026
|
-
"User-facing word is Card. 'Cell' is the internal engine term — never shown
|
|
37027
|
-
to users." This row said "Cell", so every surface resolving through the
|
|
37028
|
-
vocabulary printed "Install cell" / "Cell installed" at users. Fixing it
|
|
37029
|
-
here, at the one door, fixes all of them at once — which is exactly why a
|
|
37030
|
-
local label map at a call site is forbidden. */
|
|
37198
|
+
/* The made UI block is a Cell, for users and agents alike (founder decision,
|
|
37199
|
+
23 Nov 2026: "Cell everywhere"; "card" is only a renderer slot). It
|
|
37200
|
+
replaced "Card" (D3, 31 Oct 2026) and the retired `widget` kind, which now
|
|
37201
|
+
resolves here through `OBJECT_KIND_ALIASES` (`widget` → `cell`). Fixing
|
|
37202
|
+
the word at this one door fixes every surface at once — which is exactly
|
|
37203
|
+
why a local label map at a call site is forbidden. */
|
|
37031
37204
|
cell: {
|
|
37032
37205
|
kind: "cell",
|
|
37033
37206
|
category: "cell",
|
|
37034
37207
|
icon: "SquareDashedBottomCode",
|
|
37035
37208
|
color: ID(5),
|
|
37036
|
-
label: "
|
|
37037
|
-
labelPlural: "
|
|
37209
|
+
label: "Cell",
|
|
37210
|
+
labelPlural: "Cells",
|
|
37211
|
+
// Stored text filed before the rename says "Card" or "Widget".
|
|
37212
|
+
formerLabels: ["Card", "Cards", "Widget", "Widgets"],
|
|
37213
|
+
glyph: "\u229E"
|
|
37038
37214
|
},
|
|
37039
37215
|
document: {
|
|
37040
37216
|
kind: "document",
|
|
@@ -38234,6 +38410,13 @@ var STATUS_LABEL_ROWS = {
|
|
|
38234
38410
|
// operation COMPLETED and deliberately changed nothing (an acknowledged
|
|
38235
38411
|
// no-op door, an idempotent re-apply that matched 0 rows). Not a failure.
|
|
38236
38412
|
no_effect: "No change",
|
|
38413
|
+
// A session closed with required work still open (`sessionClosedAs`
|
|
38414
|
+
// not_done): it ended, it did not deliver.
|
|
38415
|
+
not_done: "Not done",
|
|
38416
|
+
// An automation the pod stopped on a fault (`automations.status` error).
|
|
38417
|
+
stopped_on_error: "Stopped on error",
|
|
38418
|
+
// A run that reached its budget or step limit: nothing broke.
|
|
38419
|
+
stopped_at_limit: "Stopped at its limit",
|
|
38237
38420
|
// A run or step whose effect a GOVERNANCE verdict refused
|
|
38238
38421
|
// (`automation_runs.status`, `automation_step_runs.status`): a calm outcome,
|
|
38239
38422
|
// not a failure; its unit state is `blocked` on a rule (`units/state.ts`).
|