@synap-core/workspace-templates 0.66.0 → 0.68.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/README.md +135 -68
- package/capabilities/design.capability.json +126 -643
- package/capabilities/storybook.capability.json +84 -0
- package/capabilities/vast-ai-compute-worker.capability.json +178 -76
- package/dist/index.js +1401 -85
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/designing-with-real-components/SKILL.md +7 -1
- package/src/agency-os.yaml +22 -4
- package/src/builder.yaml +1480 -773
- package/src/campaign-channel-platforms.template.test.ts +46 -0
- package/src/catalog-safety.test.ts +14 -3
- package/src/content-os.campaigns.template.test.ts +63 -20
- package/src/content-os.piece-model.template.test.ts +185 -41
- package/src/content-os.template.test.ts +174 -58
- package/src/content-os.yaml +184 -29
- package/src/crm.yaml +303 -47
- package/src/decisions-wave.template.test.ts +171 -47
- package/src/ecosystem.yaml +7 -1
- package/src/finance.yaml +27 -5
- package/src/lifecycle-declarations.test.ts +8 -0
- package/src/marketing.yaml +20 -4
- package/src/process-contract.validate.test.ts +217 -71
- package/src/templates.ts +2349 -1304
- package/src/types.ts +35 -6
- package/src/ui-inventory.template.test.ts +256 -0
- package/src/validate.ts +541 -130
package/README.md
CHANGED
|
@@ -18,19 +18,19 @@ How installs, reconciles and tiers work is in the `synap-market` skill
|
|
|
18
18
|
|
|
19
19
|
## 1. What lives here, by kind
|
|
20
20
|
|
|
21
|
-
| Dir
|
|
22
|
-
|
|
23
|
-
| `src/*.yaml`
|
|
24
|
-
| `capabilities/<key>.capability.json` | `capability`
|
|
25
|
-
| `skills/<slug>/`
|
|
26
|
-
| `views/<slug>.view.json`
|
|
27
|
-
| `automations/<slug>.automation.json` | `automation`
|
|
28
|
-
| `agents/<slug>.agent.yaml`
|
|
29
|
-
| `renderer-bundles/<slug>.yaml`
|
|
30
|
-
| `schema/`
|
|
31
|
-
| `standards/*.standard.yaml`
|
|
32
|
-
| `scripts/catalog-lib.mjs`
|
|
33
|
-
| `src/*.ts`
|
|
21
|
+
| Dir | Kind | Format | Published today? |
|
|
22
|
+
| ------------------------------------ | ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
23
|
+
| `src/*.yaml` | `workspace` (and `pack`, for a suite) | Legacy workspace YAML (`meta:` plus body). A thin adapter reads it as `{kind: workspace, meta, spec}` | Yes. 31 entries, CI on every push to main |
|
|
24
|
+
| `capabilities/<key>.capability.json` | `capability` | Manifest (below). `meta` carries the listing and visibility; `spec` is the CapabilityDefinition | Yes, CI on every push to main (§4) |
|
|
25
|
+
| `skills/<slug>/` | `skill` | Either a manifest `<slug>.skill.json` (`creative-director`), or an Agent-Skills folder (`SKILL.md` plus references) with a header `skills/<slug>.catalog.json` beside it. A manifest folder may also hold a source file the skill builds on a computer (`facecam-edit/synap-matte.swift`): never a catalog entry, it reaches the computer through the npm package, pinned by version and sha256 in the skill's body (held equal by `src/facecam-edit.matte.test.ts`) | The manifest: yes. A folder: only with its header, and only when it holds no reference files (a skill package carries no documents). Headers decided by the founder on 2026-11-05: `bookmark-enrichment` and `routing-to-channels` public, `mapping-the-server` unlisted (private to the official owner); `reading-client-progress` and the parked `stellar-scf-grants-advisor` stay **staged** |
|
|
26
|
+
| `views/<slug>.view.json` | `view` | Manifest; `spec.views` in the canonical shape the CP stores (`{slug, displayName, type, config, scopeProfileSlugs}`) | Category `view`. Three today (`bookmark-views-pack`, `event-views-pack`, `task-views-pack`), moved from the old CP pack fragments on 2026-11-05. CI on every push to main |
|
|
27
|
+
| `automations/<slug>.automation.json` | `automation` | bridge-setup `flowDefinition` form, plus a header `automations/<slug>.catalog.json` beside it | Only with its header, and only without apply-time placeholders. Headers decided by the founder on 2026-11-05: `bookmark-enrichment` public; `url-bookmark-capture`, `github-pr-events` and the five `ship-a-change-*` unlisted. `mail-feed` stays **staged**: it carries two placeholders bridge-setup fills |
|
|
28
|
+
| `agents/<slug>.agent.yaml` | `agent` | Manifest. `spec` (`schema/agent.ts`) is what the pod reads as `definition.agent`: `harness` (the `agent_type` join key), `aliases`, `worker`, `tried`, `detect`, `wake` (data: `program` + `args` + `params`, never a shell line; required for a worker only), `practices.skills`, `mcp` (where its program reads MCP servers: `config` under ~/, `format` yaml/json, `key` dot path, `entry`; the CLI writes the pod's server there on `synap agents add`, the pod ignores it), `toolProfile` (`entry` / `builder`) + `toolGroups` (only with `entry`): the MCP tools an agent's first key lists, read by the pod (backend#900). One per program of the backend harness registry, plus `hermes`. CP category `agent`, official vendor only, left out of browse lists (the catalog installs every official agent on every pod, founder decision D8) | Yes, on every push to main, like every other kind (the first publish was the founder's, by hand, on 2026-11-07; `FIRST_PUBLISH_BY_HAND` is empty since) |
|
|
29
|
+
| `renderer-bundles/<slug>.yaml` | `renderer-bundle` | Manifest (`schema/renderer-bundle.ts`): the cells (each an entry module under `packages/web/src/renderer-bundle/cells/`, importing only the bundle's kit `space-packages/kit-bundle.ts`), and the host's fallbacks (`defaults`). `pnpm --filter @synap-core/workspace-templates build:renderer-bundle` builds `renderer-bundles/built/<slug>.definition.json` (the `RendererBundleDefinition`: its own React, kit and tokens, the cells' code, every sha256) and `<slug>.build.json` (inputs, the commits it was built from, the tRPC trace). Neither is committed (`built/` is gitignored): the publish workflow builds them from the commit it publishes, and `scripts/build-renderer-bundle.test.ts` runs the same build and checks it. Never in the npm package (`files`). Licence PolyForm Noncommercial 1.0.0 | Category `renderer-bundle`, private, never synced: the CP delivers it to any live pod a Synap plan covers (decision c91d26dc; founder, 20 Nov 2026). CI on every push to main, once the CP accepts the category |
|
|
30
|
+
| `schema/` | | Zod manifest schema: `header.ts`, plus one body per kind (`workspace`, `capability`, `skill`, `automation`, `view`, `agent`, `playbook`) | |
|
|
31
|
+
| `standards/*.standard.yaml` | | Quality standard per workspace (`pnpm eval`) | |
|
|
32
|
+
| `scripts/catalog-lib.mjs` | | **The ONE lib**: `loadCatalog` → `validateCatalog` → `diffCatalog` → `publishCatalog` | |
|
|
33
|
+
| `src/*.ts` | | The typed bundle (`dist/`) that clients ship as the zero-network fallback | |
|
|
34
34
|
|
|
35
35
|
A staged file is read, validated and counted, and the problem list carries a
|
|
36
36
|
`staged` warning for it. It cannot reach `POST /api/packages`. On 2026-11-05 the
|
|
@@ -45,6 +45,7 @@ retired the `profile-pack` category in its migration 0049, and the playbook neve
|
|
|
45
45
|
reached the CP.
|
|
46
46
|
|
|
47
47
|
**What stays elsewhere:**
|
|
48
|
+
|
|
48
49
|
- **System skills** (`system/*`) stay in `synap-backend/skills/`. They are the pod's
|
|
49
50
|
teaching substrate, seeded at boot, and are not marketplace items. Catalog files
|
|
50
51
|
may reference `system/*` slugs; the validator checks those exist when the
|
|
@@ -88,6 +89,7 @@ only when it is strictly newer than their bundle.
|
|
|
88
89
|
|
|
89
90
|
**Capability.** Edit `capabilities/<key>.capability.json`. The listing and
|
|
90
91
|
visibility go in `meta`; the definition goes in `spec`.
|
|
92
|
+
|
|
91
93
|
- This file is the only copy. The CP's insert-only bootstrap reads this package's
|
|
92
94
|
`capabilities/` (installed from npm); it holds no copy of its own.
|
|
93
95
|
- **A reader** is an ordinary verb that reads one link: `intent: "read_webpage"`, `metadata.readOnly: true`,
|
|
@@ -113,9 +115,18 @@ the folder as a document):
|
|
|
113
115
|
|
|
114
116
|
```jsonc
|
|
115
117
|
// skills/<slug>.catalog.json — a manifest without spec
|
|
116
|
-
{
|
|
117
|
-
"
|
|
118
|
-
"
|
|
118
|
+
{
|
|
119
|
+
"apiVersion": "synap/v1",
|
|
120
|
+
"kind": "skill",
|
|
121
|
+
"meta": {
|
|
122
|
+
"slug": "<slug>",
|
|
123
|
+
"name": "Display name",
|
|
124
|
+
"description": "listing copy",
|
|
125
|
+
"tags": [],
|
|
126
|
+
"isPublic": true,
|
|
127
|
+
},
|
|
128
|
+
"dependencies": [],
|
|
129
|
+
}
|
|
119
130
|
```
|
|
120
131
|
|
|
121
132
|
It compiles to `definition.skill = { slug: <frontmatter name>, name: meta.name,
|
|
@@ -132,10 +143,31 @@ package; the CLI holds no copy (synap-cli#91).
|
|
|
132
143
|
**View.** Add or edit `views/<slug>.view.json`:
|
|
133
144
|
|
|
134
145
|
```jsonc
|
|
135
|
-
{
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
146
|
+
{
|
|
147
|
+
"apiVersion": "synap/v1",
|
|
148
|
+
"kind": "view",
|
|
149
|
+
"meta": {
|
|
150
|
+
"slug": "task-views-pack",
|
|
151
|
+
"name": "Task Views",
|
|
152
|
+
"description": "listing copy",
|
|
153
|
+
"icon": "layout-grid",
|
|
154
|
+
"color": "#3B82F6",
|
|
155
|
+
"tags": ["tasks"],
|
|
156
|
+
"isPublic": true,
|
|
157
|
+
},
|
|
158
|
+
"spec": {
|
|
159
|
+
"views": [
|
|
160
|
+
{
|
|
161
|
+
"slug": "task-board",
|
|
162
|
+
"displayName": "Task Board",
|
|
163
|
+
"type": "kanban",
|
|
164
|
+
"config": { "groupByField": "status" },
|
|
165
|
+
"scopeProfileSlugs": ["task"],
|
|
166
|
+
},
|
|
167
|
+
],
|
|
168
|
+
},
|
|
169
|
+
"dependencies": [],
|
|
170
|
+
}
|
|
139
171
|
```
|
|
140
172
|
|
|
141
173
|
It publishes as category `view` with `definition = { profiles: [], views, description:
|
|
@@ -181,8 +213,8 @@ X" from "never heard of it" and offer the person a safe move to X.
|
|
|
181
213
|
2. Add an entry to `retired.yaml`:
|
|
182
214
|
```yaml
|
|
183
215
|
- slug: radar
|
|
184
|
-
kind: workspace
|
|
185
|
-
replacedBy: ecosystem
|
|
216
|
+
kind: workspace # default; capability · skill · pack · automation · view
|
|
217
|
+
replacedBy: ecosystem # a LIVE slug of the same kind, or omit when nothing replaces it
|
|
186
218
|
reason: Radar was merged into Ecosystem, which tracks competitors and trends in one place.
|
|
187
219
|
since: "2026-07-16"
|
|
188
220
|
```
|
|
@@ -235,10 +267,11 @@ A step that can still move may also say when it is late and what it waits on, by
|
|
|
235
267
|
(`lifecycleOptionWaitsProblems` in `src/validate.ts`; never on a done or lost option):
|
|
236
268
|
|
|
237
269
|
```yaml
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
270
|
+
- key: sent
|
|
271
|
+
category: active
|
|
272
|
+
dateBinding: dueDate # late once this date passes while it stands here
|
|
273
|
+
waits:
|
|
274
|
+
{ on: external, waitKind: payment, refFrom: clientId, dateBinding: dueDate }
|
|
242
275
|
```
|
|
243
276
|
|
|
244
277
|
`dateBinding` and `waits.refFrom` / `waits.dateBinding` are property slugs. `waits.on` is a hold's `on` (person ·
|
|
@@ -251,13 +284,13 @@ publication, agreement, pipeline, relationship, offering, initiative) and say on
|
|
|
251
284
|
lifecycle:
|
|
252
285
|
property: reference-status
|
|
253
286
|
adopts: asset
|
|
254
|
-
rename: { in-review: studied, deprecated: archived }
|
|
255
|
-
drop: []
|
|
256
|
-
add: []
|
|
257
|
-
humanOnly: {}
|
|
258
|
-
stuckAfterDays: {}
|
|
259
|
-
dateBinding: {}
|
|
260
|
-
waits: {}
|
|
287
|
+
rename: { in-review: studied, deprecated: archived } # base key → this kind's key
|
|
288
|
+
drop: [] # base keys this kind does not use
|
|
289
|
+
add: [] # { key, category, after | before }
|
|
290
|
+
humanOnly: {} # per step; false removes a base's mark
|
|
291
|
+
stuckAfterDays: {} # per step
|
|
292
|
+
dateBinding: {} # per step: { sent: dueDate }
|
|
293
|
+
waits: {} # per step: { sent: { on: external } }
|
|
261
294
|
```
|
|
262
295
|
|
|
263
296
|
The build compiles it into the flat `options` above and writes the select's `enumValues` when the YAML leaves them
|
|
@@ -274,20 +307,20 @@ playbook, kind or automation an agent creates on a pod (`synap_create_playbook`,
|
|
|
274
307
|
on main. A pod draft proposal mirrored into the catalog is a second copy: once the file lands, withdraw the
|
|
275
308
|
proposal; the review is the catalog commit.
|
|
276
309
|
|
|
277
|
-
| Field
|
|
278
|
-
|
|
279
|
-
| `subjectProfile.profileSlug` | playbook
|
|
280
|
-
| (no status field)
|
|
281
|
-
| `stages[].subjectStatus`
|
|
282
|
-
| `stages[].onApproved`
|
|
283
|
-
| `stages[].gate`
|
|
284
|
-
| `stages[].onFail`
|
|
285
|
-
| `stages[].criteria`
|
|
286
|
-
| `expectedOutputs[]`
|
|
287
|
-
| `activators[]` (workers)
|
|
288
|
-
| `goalTemplate`
|
|
289
|
-
| `params`
|
|
290
|
-
| `guidance[]`
|
|
310
|
+
| Field | Where | Rule |
|
|
311
|
+
| ---------------------------- | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
312
|
+
| `subjectProfile.profileSlug` | playbook | The kind or role the process works. |
|
|
313
|
+
| (no status field) | playbook | The process FOLLOWS the kind's declared lifecycle: every `subjectStatus`, `onApproved` and worker `status` is an option of it. `statusProperty`, `onEnd` and `humanOnlyStatuses` are retired (One model decision 4, `playbook-field-retired`): a person-only option is `humanOnly` on the lifecycle, a status no stage owns is derived by the pod, and a session that ends early moves nothing. |
|
|
314
|
+
| `stages[].subjectStatus` | stage | The IN-PROGRESS status (In Draft, Review): entering the stage moves the subject to this option, through the door. Must be an **existing option** of the lifecycle — never invent one. |
|
|
315
|
+
| `stages[].onApproved` | stage | The RESULT status (Scripted, sent, won): reached when the stage's work is APPROVED — its `expectedOutputs` all delivered, else the next stage's gate passing (decision D2). The subject holding it means the run stands at the NEXT stage. With neither (a last stage, or an ungated next stage, and no required output) the engine never writes it, never on a session's end: it stays declared so the follow and `flow.of` know what the stage reaches, and the stage's goal must name the move (the value or its label) for whoever finishes it, through the status door (`stage-on-approved-no-signal`). An agent's move into a done or lost option comes back proposed for the person. |
|
|
316
|
+
| `stages[].gate` | stage | `{kind: human}` at every commitment: send to a client, sign, pay, publish, won/lost, anything irreversible. `{kind: check}` only where the stage's own criteria can be verified. A gated stage writes its status only when the gate passes. A check gate judges the stage being LEFT, so never use it to guard an irreversible status. |
|
|
317
|
+
| `stages[].onFail` | stage | `{toStage: <key>}` — where a rejected gate sends the run (rework loop). |
|
|
318
|
+
| `stages[].criteria` | stage | 2–5 binary statements; `check.kind` evidence (cheapest) · capability · judge · human. |
|
|
319
|
+
| `expectedOutputs[]` | stage or playbook | What the step must produce: `kind` + `label` + `relationToSubject` (an existing relation slug, or `none`). The UI shows what was produced from this. |
|
|
320
|
+
| `activators[]` (workers) | playbook | `on`: `created` · `enters_status` (+ `status`) · `count` (+ `status`, `min` ≥ 2) · `schedule` (+ `cron`, UTC) · `manual`. `size`: `per_thing` (default) · `per_moment` (count and schedule always are). `mode`: `propose` (default) · `run` only when cheap and safe. `maxPendingApprovals` (default 20) throttles. Compiled to a governed rule the owner can pause; it fires once per thing per transition. |
|
|
321
|
+
| `goalTemplate` | playbook | Placeholders are `{paramName}`. Never `@{arg:…}` (read-only legacy). |
|
|
322
|
+
| `params` | playbook | The subject is a `type: entity` param. A required param left unanswered becomes a question owed by the person, not an empty string. |
|
|
323
|
+
| `guidance[]` | playbook | The rules it follows (backend#924): `{ref: "kind:<slug>" \| "skill:<slug>", label?, when?, where?}`, refs never ids. Each run renders the CURRENT versions under "Rules this playbook follows": a kind's entities whose lifecycle category is `done`, an approved skill. So a `kind:` ref names a catalog kind with a lifecycle whose done options are all `humanOnly` (entity text becomes prompt text); a kind with an `order` property renders as "the first row that fits". Style lives here, never in the goal; process stays in the goal. `guidance-ref` in `synap catalog validate`. |
|
|
291
324
|
|
|
292
325
|
Human moments use an `ask` on an owed slot: `confirm` / `choose` (one `recommended`) / `form` / `act` / `provide`
|
|
293
326
|
(connection, file or secret through the vault). Never ask for a secret in a form.
|
|
@@ -307,9 +340,9 @@ The template that owns the space says both, in `meta.intent`:
|
|
|
307
340
|
```yaml
|
|
308
341
|
meta:
|
|
309
342
|
intent:
|
|
310
|
-
label: Product
|
|
343
|
+
label: Product # the purpose word, ≤ 24 characters
|
|
311
344
|
primary: devplane_feature # the ONE output the main flow produces; one of produces
|
|
312
|
-
produces:
|
|
345
|
+
produces: # ordered; kinds or roles
|
|
313
346
|
- profile: devplane_feature
|
|
314
347
|
- profile: devplane_story
|
|
315
348
|
- profile: ui-design
|
|
@@ -345,14 +378,15 @@ the media capabilities in `capabilities/media-*.capability.json` are the referen
|
|
|
345
378
|
**One model, two kinds.** What an installation is comes from the manifest, never from a field you set
|
|
346
379
|
(`installKind`):
|
|
347
380
|
|
|
348
|
-
|
|
|
349
|
-
|
|
350
|
-
| What the computer runs | a program installed by per-OS steps
|
|
351
|
-
| Declared by
|
|
352
|
-
| Platforms
|
|
353
|
-
| Example
|
|
381
|
+
| | a **tool** | a **service** |
|
|
382
|
+
| ---------------------- | ----------------------------------------------- | ----------------------------------------------------------------- |
|
|
383
|
+
| What the computer runs | a program installed by per-OS steps | containers |
|
|
384
|
+
| Declared by | `install.<os>`, `verify.<os>`, `uninstall.<os>` | `services[]`: image by digest, ports on 127.0.0.1, health, limits |
|
|
385
|
+
| Platforms | any of `darwin`, `linux`, `win32` | `linux` only, with `placement.requires.runtimes.docker` |
|
|
386
|
+
| Example | `media-ffmpeg` | (none yet) |
|
|
354
387
|
|
|
355
388
|
Both at once is refused. Every computer capability carries:
|
|
389
|
+
|
|
356
390
|
- **`placement`**: `runsOn: ["computer"]`, `platforms` (Node's `process.platform` / `process.arch`; the UI says
|
|
357
391
|
Mac, Linux, Windows), `labels` (`gpu?` ranks, `gpu` filters), `requires` (other catalog capabilities, runtimes
|
|
358
392
|
such as `uv` or `python`), and an optional pod `fallback` with its price, only ever offered per tool, never used
|
|
@@ -365,6 +399,7 @@ Both at once is refused. Every computer capability carries:
|
|
|
365
399
|
**A tool's steps are data.** Each step is a package manager (`brew`, `apt`, `dnf`, `winget`, `uv`, `pip`, `npm`),
|
|
366
400
|
a `download`, or a `script`. Commands are argv arrays, never shell lines, and paths use the placeholders the
|
|
367
401
|
computer fills: `{home}`, `{brewPrefix}`, `{tools}`, `{models}`, `{workdir}`, `{fixture}`.
|
|
402
|
+
|
|
368
403
|
- A download by url is pinned by its `sha256` (a model by `id` comes from its hub). Pin a dated build, never a
|
|
369
404
|
`latest` link: `media-ffmpeg` pins BtbN's month-end build.
|
|
370
405
|
- A script is pinned by its `sha256`, declares `elevation: "never"` (no sudo, no admin prompt in v1) and is
|
|
@@ -381,19 +416,48 @@ slideshow, GIF/WebP, keyframes, platform exports). A recipe is:
|
|
|
381
416
|
|
|
382
417
|
```jsonc
|
|
383
418
|
{
|
|
384
|
-
"name": "loudness-normalize",
|
|
419
|
+
"name": "loudness-normalize", // kebab-case, unique in the capability
|
|
385
420
|
"description": "Two-pass loudness normalisation to -14 LUFS.",
|
|
386
|
-
"params": {
|
|
387
|
-
|
|
388
|
-
"
|
|
389
|
-
|
|
421
|
+
"params": {
|
|
422
|
+
// typed; each required or with a default
|
|
423
|
+
"in": {
|
|
424
|
+
"type": "file",
|
|
425
|
+
"description": "The video to work on.",
|
|
426
|
+
"required": true,
|
|
427
|
+
},
|
|
428
|
+
"out": {
|
|
429
|
+
"type": "output",
|
|
430
|
+
"description": "Where the result is written.",
|
|
431
|
+
"required": true,
|
|
432
|
+
},
|
|
433
|
+
"target": {
|
|
434
|
+
"type": "number",
|
|
435
|
+
"description": "Integrated loudness in LUFS.",
|
|
436
|
+
"default": -14,
|
|
437
|
+
},
|
|
390
438
|
},
|
|
391
|
-
"steps": [
|
|
392
|
-
|
|
439
|
+
"steps": [
|
|
440
|
+
// argv templates; program = a pinned bin, or python
|
|
441
|
+
{
|
|
442
|
+
"program": "python",
|
|
443
|
+
"args": [
|
|
444
|
+
"{script:loudnorm2pass.py}",
|
|
445
|
+
"{bin:ffmpeg}",
|
|
446
|
+
"{in}",
|
|
447
|
+
"{out}",
|
|
448
|
+
"{target}",
|
|
449
|
+
],
|
|
450
|
+
},
|
|
393
451
|
],
|
|
394
|
-
"scripts": [
|
|
395
|
-
|
|
396
|
-
|
|
452
|
+
"scripts": [
|
|
453
|
+
{
|
|
454
|
+
"name": "loudnorm2pass.py",
|
|
455
|
+
"sha256": "<64 hex>",
|
|
456
|
+
"source": "#!/usr/bin/env python3\n…",
|
|
457
|
+
},
|
|
458
|
+
],
|
|
459
|
+
"needs": { "filters": ["loudnorm"] }, // what the computer's ffmpeg must have
|
|
460
|
+
"gotchas": ["Normalise after the mix, as the last audio step."],
|
|
397
461
|
}
|
|
398
462
|
```
|
|
399
463
|
|
|
@@ -446,9 +510,9 @@ synap market publish --official [slug...] [--dry-run] # alias of: catalog pu
|
|
|
446
510
|
**CI** (`synap-app/.github/workflows/publish-official-templates.yml`, through the
|
|
447
511
|
wrapper `scripts/publish-official.mjs`, which uses the same lib):
|
|
448
512
|
|
|
449
|
-
| Event
|
|
450
|
-
|
|
451
|
-
| PR touching the catalog
|
|
513
|
+
| Event | What runs |
|
|
514
|
+
| -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
515
|
+
| PR touching the catalog | Job `validate` only: build, validate every kind, print the **offline** preview (each entry and the version the CP will derive, where knowable offline). It holds **no secret and no `id-token`**: a PR runs its own lockfile and scripts. Guarded by `scripts/publish-workflow.guard.test.ts`. |
|
|
452
516
|
| Push to `main` (or manual) | `validate`, then job `publish` (environment `catalog-publish`): a read-only preview against the live CP, then publish EVERY kind live (no `--kind`), tombstones included, then npm publish, only if the `package.json` version is new on npm. A live run with no `SYNAP_CP_PUBLISH_TOKEN` exits 1: a `main` run that publishes nothing is red, never green with a warning. |
|
|
453
517
|
|
|
454
518
|
Main publishes every kind (founder, 2026-11-05: "remove the blocker that only do
|
|
@@ -482,6 +546,7 @@ rule ↔ the CP publish core); their CI-safe halves are snapshots.
|
|
|
482
546
|
## 5. History, and an empty CP
|
|
483
547
|
|
|
484
548
|
**How the catalog got here** (the by-hand runbook this section used to hold is done):
|
|
549
|
+
|
|
485
550
|
- Until 2026-11-05 the founder published by hand, kind by kind, with
|
|
486
551
|
`synap catalog publish --official`, after deploying the CP that adopts the seeded
|
|
487
552
|
rows; the CP and the CLI each held a copy of catalog files.
|
|
@@ -494,11 +559,13 @@ rule ↔ the CP publish core); their CI-safe halves are snapshots.
|
|
|
494
559
|
then landing on `main` publishes.
|
|
495
560
|
|
|
496
561
|
**A brand-new, empty CP only:** seed it once, then let CI publish:
|
|
562
|
+
|
|
497
563
|
```bash
|
|
498
564
|
docker compose -f docker-compose.prod.yml run --rm control-plane pnpm seed:capabilities
|
|
499
565
|
docker compose -f docker-compose.prod.yml run --rm control-plane pnpm seed:templates
|
|
500
566
|
gh workflow run publish-official-templates.yml -R Synap-core/app-bases
|
|
501
567
|
```
|
|
568
|
+
|
|
502
569
|
Both seeders are insert-only; `seed:templates` seeds workspaces only (views reach
|
|
503
570
|
an empty CP through the publish).
|
|
504
571
|
|