@synap-core/workspace-templates 0.67.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.
@@ -33,8 +33,12 @@ describe("Content OS pin strategy", () => {
33
33
  });
34
34
 
35
35
  it("pins Produce Content; Plan Next Content runs weekly and by hand, once per tick, proposing", () => {
36
- const produce = template.playbooks?.find((p) => p.name === "Produce Content");
37
- const plan = template.playbooks?.find((p) => p.name === "Plan Next Content");
36
+ const produce = template.playbooks?.find(
37
+ (p) => p.name === "Produce Content"
38
+ );
39
+ const plan = template.playbooks?.find(
40
+ (p) => p.name === "Plan Next Content"
41
+ );
38
42
 
39
43
  expect(produce?.inputStrategy).toEqual({
40
44
  kind: "pinned",
@@ -63,8 +67,13 @@ describe("Content OS pin strategy", () => {
63
67
 
64
68
  it("ships one paused playbook_run of Produce Content, with no subject binding", () => {
65
69
  // Two automations: this weekly run, and Publish due posts (content-os.publish-due-posts.template.test.ts).
66
- expect(template.automations?.map((a) => a.key)).toEqual(["content-os-weekly-produce", "content-os-publish-due-posts"]);
67
- const automation = template.automations?.find((a) => a.key === "content-os-weekly-produce");
70
+ expect(template.automations?.map((a) => a.key)).toEqual([
71
+ "content-os-weekly-produce",
72
+ "content-os-publish-due-posts",
73
+ ]);
74
+ const automation = template.automations?.find(
75
+ (a) => a.key === "content-os-weekly-produce"
76
+ );
68
77
  expect(automation).toMatchObject({
69
78
  key: "content-os-weekly-produce",
70
79
  triggerType: "cron",
@@ -97,7 +106,8 @@ describe("Content OS pin strategy", () => {
97
106
  * with only Content OS: `Profile not found: content-composition`.
98
107
  */
99
108
  describe("Content OS owns the video / visual pipeline", () => {
100
- const profile = (slug: string) => template.profiles.find((p) => p.slug === slug);
109
+ const profile = (slug: string) =>
110
+ template.profiles.find((p) => p.slug === slug);
101
111
 
102
112
  it("declares content-composition, content-asset and render-job (workspace scope)", () => {
103
113
  for (const slug of ["content-composition", "content-asset", "render-job"]) {
@@ -107,16 +117,23 @@ describe("Content OS owns the video / visual pipeline", () => {
107
117
  }
108
118
  // The fields the Content app and the composition detail read.
109
119
  expect(profile("render-job")?.properties.map((d) => d.slug)).toEqual(
110
- expect.arrayContaining(["job-status", "render-progress", "composition-ref"])
120
+ expect.arrayContaining([
121
+ "job-status",
122
+ "render-progress",
123
+ "composition-ref",
124
+ ])
125
+ );
126
+ expect(profile("content-asset")?.properties.map((d) => d.slug)).toContain(
127
+ "asset-kind"
111
128
  );
112
- expect(profile("content-asset")?.properties.map((d) => d.slug)).toContain("asset-kind");
113
129
  });
114
130
 
115
131
  it("re-declares brand-template as shared (the grant) and requires brand-library (the SSOT)", () => {
116
132
  expect(profile("brand-template")?.scope).toBe("shared");
117
133
  expect(
118
134
  (template.dependencies ?? []).some(
119
- (d) => d.slug === "brand-library" && (d.relation ?? "require") === "require"
135
+ (d) =>
136
+ d.slug === "brand-library" && (d.relation ?? "require") === "require"
120
137
  )
121
138
  ).toBe(true);
122
139
  });
@@ -124,7 +141,11 @@ describe("Content OS owns the video / visual pipeline", () => {
124
141
  it("ships the pipeline views and links", () => {
125
142
  const viewScopes = (template.views ?? []).map((v) => v.scopeProfileSlug);
126
143
  expect(viewScopes).toEqual(
127
- expect.arrayContaining(["content-composition", "content-asset", "render-job"])
144
+ expect.arrayContaining([
145
+ "content-composition",
146
+ "content-asset",
147
+ "render-job",
148
+ ])
128
149
  );
129
150
  const links = (template.entityLinks ?? []).map(
130
151
  (l) => `${l.sourceProfileSlug}-${l.type}->${l.targetProfileSlug}`
@@ -140,7 +161,10 @@ describe("Content OS owns the video / visual pipeline", () => {
140
161
  });
141
162
 
142
163
  it("keeps its own home: the content-home cell", () => {
143
- expect(template.app).toMatchObject({ kind: "stored", cellKey: "content-home" });
164
+ expect(template.app).toMatchObject({
165
+ kind: "stored",
166
+ cellKey: "content-home",
167
+ });
144
168
  });
145
169
  });
146
170
 
@@ -156,61 +180,106 @@ describe("Content OS owns the video / visual pipeline", () => {
156
180
  describe("Content OS never writes an outside act before a person confirms it", () => {
157
181
  const playbooks = (template.playbooks ?? []) as TemplatePlaybook[];
158
182
  type Stage = NonNullable<TemplatePlaybook["stages"]>[number];
159
- const bound: Array<{ playbook: string; stage: Stage; value: string; via: "enter" | "reach"; next?: Stage }> =
160
- playbooks.flatMap((pb) =>
161
- (pb.stages ?? []).flatMap((stage, i, all) => [
162
- ...(typeof stage.subjectStatus === "string"
163
- ? [{ playbook: pb.name, stage, value: stage.subjectStatus, via: "enter" as const }]
164
- : []),
165
- ...(typeof stage.onApproved === "string"
166
- ? [{ playbook: pb.name, stage, value: stage.onApproved, via: "reach" as const, next: all[i + 1] }]
167
- : []),
168
- ]),
169
- );
183
+ const bound: Array<{
184
+ playbook: string;
185
+ stage: Stage;
186
+ value: string;
187
+ via: "enter" | "reach";
188
+ next?: Stage;
189
+ }> = playbooks.flatMap((pb) =>
190
+ (pb.stages ?? []).flatMap((stage, i, all) => [
191
+ ...(typeof stage.subjectStatus === "string"
192
+ ? [
193
+ {
194
+ playbook: pb.name,
195
+ stage,
196
+ value: stage.subjectStatus,
197
+ via: "enter" as const,
198
+ },
199
+ ]
200
+ : []),
201
+ ...(typeof stage.onApproved === "string"
202
+ ? [
203
+ {
204
+ playbook: pb.name,
205
+ stage,
206
+ value: stage.onApproved,
207
+ via: "reach" as const,
208
+ next: all[i + 1],
209
+ },
210
+ ]
211
+ : []),
212
+ ])
213
+ );
170
214
  // Values another playbook's activator listens for, per subject kind.
171
- const activatedElsewhere = (owner: string, kind: string | undefined, status: string) =>
215
+ const activatedElsewhere = (
216
+ owner: string,
217
+ kind: string | undefined,
218
+ status: string
219
+ ) =>
172
220
  playbooks.some(
173
221
  (pb) =>
174
222
  pb.name !== owner &&
175
223
  pb.subjectProfile?.profileSlug === kind &&
176
- (pb.activators ?? []).some((a) => a.on === "enters_status" && a.status === status),
224
+ (pb.activators ?? []).some(
225
+ (a) => a.on === "enters_status" && a.status === status
226
+ )
177
227
  );
178
- const kindOf = (name: string) => playbooks.find((p) => p.name === name)?.subjectProfile?.profileSlug;
228
+ const kindOf = (name: string) =>
229
+ playbooks.find((p) => p.name === name)?.subjectProfile?.profileSlug;
179
230
 
180
231
  const mustBeHuman = bound.filter(
181
232
  ({ playbook, stage, value }) =>
182
- stage.category === "completed" || activatedElsewhere(playbook, kindOf(playbook), value),
233
+ stage.category === "completed" ||
234
+ activatedElsewhere(playbook, kindOf(playbook), value)
183
235
  );
184
236
 
185
237
  it("finds the stages it guards (non-vacuity)", () => {
186
- expect(mustBeHuman.map(({ playbook, stage, via }) => `${playbook}/${stage.key}/${via}`).sort()).toEqual([
187
- "Newsletter issue/sent/enter",
188
- "Produce Content/publish/reach",
189
- ]);
238
+ expect(
239
+ mustBeHuman
240
+ .map(({ playbook, stage, via }) => `${playbook}/${stage.key}/${via}`)
241
+ .sort()
242
+ ).toEqual(["Newsletter issue/sent/enter", "Produce Content/publish/reach"]);
190
243
  });
191
244
 
192
245
  it("gates each of them on a person, or leaves them to the act itself", () => {
193
246
  for (const { playbook, stage, via, next } of mustBeHuman) {
194
247
  const at = `${playbook}/${stage.key}`;
195
248
  if (via === "enter") {
196
- expect({ at, gate: stage.gate }).toEqual({ at, gate: { kind: "human" } });
249
+ expect({ at, gate: stage.gate }).toEqual({
250
+ at,
251
+ gate: { kind: "human" },
252
+ });
197
253
  continue;
198
254
  }
199
255
  // Reached: approved by the next stage's PERSON gate, or by nothing (no
200
256
  // outputs, no next stage) — the sender or a person writes it.
201
257
  const approvedBy =
202
- (stage.expectedOutputs ?? []).length > 0 ? "its outputs" : next ? `next gate: ${next.gate?.kind ?? "none"}` : "nothing";
203
- expect({ at, ok: approvedBy === "nothing" || approvedBy === "next gate: human" }).toEqual({ at, ok: true });
258
+ (stage.expectedOutputs ?? []).length > 0
259
+ ? "its outputs"
260
+ : next
261
+ ? `next gate: ${next.gate?.kind ?? "none"}`
262
+ : "nothing";
263
+ expect({
264
+ at,
265
+ ok: approvedBy === "nothing" || approvedBy === "next gate: human",
266
+ }).toEqual({ at, ok: true });
204
267
  }
205
268
  });
206
269
 
207
270
  it("keeps a recorded-evidence criterion on each (URL / date)", () => {
208
271
  for (const { playbook, stage } of mustBeHuman) {
209
272
  const evidence = (stage.criteria ?? [])
210
- .map((c) => (c as { check?: { kind?: string; evidenceKey?: string } }).check)
273
+ .map(
274
+ (c) =>
275
+ (c as { check?: { kind?: string; evidenceKey?: string } }).check
276
+ )
211
277
  .filter((c) => c?.kind === "evidence")
212
278
  .map((c) => c!.evidenceKey);
213
- expect({ at: `${playbook}/${stage.key}`, has: evidence.length > 0 }).toEqual({
279
+ expect({
280
+ at: `${playbook}/${stage.key}`,
281
+ has: evidence.length > 0,
282
+ }).toEqual({
214
283
  at: `${playbook}/${stage.key}`,
215
284
  has: true,
216
285
  });
@@ -224,20 +293,34 @@ describe("Content OS never writes an outside act before a person confirms it", (
224
293
  // without a rebuild.
225
294
  describe("Content OS scripts a post before generating it", () => {
226
295
  const source = load(
227
- readFileSync(join(dirname(fileURLToPath(import.meta.url)), "content-os.yaml"), "utf8"),
296
+ readFileSync(
297
+ join(dirname(fileURLToPath(import.meta.url)), "content-os.yaml"),
298
+ "utf8"
299
+ )
228
300
  ) as WorkspaceYaml;
229
301
  const post = source.profiles.find((p) => p.slug === "post");
230
302
  const prop = (slug: string) => post?.properties.find((d) => d.slug === slug);
231
- const produce = (source.playbooks ?? []).find((p) => p.name === "Produce Content") as
232
- | TemplatePlaybook
233
- | undefined;
303
+ const produce = (source.playbooks ?? []).find(
304
+ (p) => p.name === "Produce Content"
305
+ ) as TemplatePlaybook | undefined;
234
306
  const stage = (key: string) => produce?.stages?.find((s) => s.key === key);
235
307
 
236
308
  it("puts Scripted between Briefed and In Draft, in the enum and the lifecycle", () => {
237
- const order = ["Idea", "Briefed", "Scripted", "In Draft", "Review", "Scheduled", "Published", "Archived"];
309
+ const order = [
310
+ "Idea",
311
+ "Briefed",
312
+ "Scripted",
313
+ "In Draft",
314
+ "Review",
315
+ "Scheduled",
316
+ "Published",
317
+ "Archived",
318
+ ];
238
319
  expect(prop("post-status")?.enumValues).toEqual(order);
239
320
  expect(post?.lifecycle?.options.map((o) => o.key)).toEqual(order);
240
- expect(post?.lifecycle?.options.find((o) => o.key === "Scripted")?.category).toBe("active");
321
+ expect(
322
+ post?.lifecycle?.options.find((o) => o.key === "Scripted")?.category
323
+ ).toBe("active");
241
324
  });
242
325
 
243
326
  it("declares post-goal with the shared goal enum", () => {
@@ -285,27 +368,43 @@ describe("Content OS ideas: their own kind, feeding posts", () => {
285
368
 
286
369
  it("declares the idea kind with one lifecycle and no post fields", () => {
287
370
  expect(idea?.lifecycle?.property).toBe("idea-status");
288
- expect(idea?.lifecycle?.options.map((o) => `${o.key}:${o.category}`)).toEqual([
289
- "New:open",
290
- "Shaped:active",
291
- "Used:done",
292
- "Dropped:lost",
293
- ]);
371
+ expect(
372
+ idea?.lifecycle?.options.map((o) => `${o.key}:${o.category}`)
373
+ ).toEqual(["New:open", "Shaped:active", "Used:done", "Dropped:lost"]);
294
374
  const fields = (idea?.properties ?? []).map((p) => p.slug);
295
- expect(fields).toEqual(expect.arrayContaining(["idea-status", "content", "idea-pillar", "idea-stage", "idea-tags"]));
375
+ expect(fields).toEqual(
376
+ expect.arrayContaining([
377
+ "idea-status",
378
+ "content",
379
+ "idea-pillar",
380
+ "idea-stage",
381
+ "idea-tags",
382
+ ])
383
+ );
296
384
  // An idea has no format and no date (that is what makes it not a post).
297
- expect(fields.some((f) => f.startsWith("post-") || f === "publish-date")).toBe(false);
385
+ expect(
386
+ fields.some((f) => f.startsWith("post-") || f === "publish-date")
387
+ ).toBe(false);
298
388
  });
299
389
 
300
390
  it("links an idea to the posts it feeds, many-to-many", () => {
301
- const links = (template.entityLinks ?? []).map((l) => `${l.sourceProfileSlug}-${l.type}->${l.targetProfileSlug}`);
302
- expect(links).toEqual(expect.arrayContaining(["idea-feeds->post", "idea-belongs_to_pillar->pillar"]));
391
+ const links = (template.entityLinks ?? []).map(
392
+ (l) => `${l.sourceProfileSlug}-${l.type}->${l.targetProfileSlug}`
393
+ );
394
+ expect(links).toEqual(
395
+ expect.arrayContaining([
396
+ "idea-feeds->post",
397
+ "idea-belongs_to_pillar->pillar",
398
+ ])
399
+ );
303
400
  });
304
401
 
305
402
  it("packages ideas through a bank-wide playbook that proposes posts, never writes them", () => {
306
403
  const pkg = template.playbooks?.find((p) => p.name === "Package ideas");
307
404
  expect(pkg?.subjectProfile).toBeUndefined();
308
- expect(pkg?.expectedOutputs).toEqual([expect.objectContaining({ kind: "post", relationToSubject: "none" })]);
405
+ expect(pkg?.expectedOutputs).toEqual([
406
+ expect.objectContaining({ kind: "post", relationToSubject: "none" }),
407
+ ]);
309
408
  expect(pkg?.goalTemplate).toMatch(/idea feeds post/);
310
409
  expect(pkg?.goalTemplate).toMatch(/ONE synap_capture graph/);
311
410
  expect(pkg?.goalTemplate).toMatch(/Never a script/);
@@ -322,12 +421,21 @@ describe("Content OS Repurpose proposes once per original, never for a copy", ()
322
421
 
323
422
  it("finds Repurpose and its Published activator (non-vacuity)", () => {
324
423
  expect(repurpose?.subjectProfile?.profileSlug).toBe("post");
325
- expect(repurpose?.activators?.filter((a) => a.on === "enters_status" && a.status === "Published")).toHaveLength(1);
424
+ expect(
425
+ repurpose?.activators?.filter(
426
+ (a) => a.on === "enters_status" && a.status === "Published"
427
+ )
428
+ ).toHaveLength(1);
326
429
  });
327
430
 
328
431
  it("leaves out a post that carries post-copy-of", () => {
329
- const published = repurpose?.activators?.find((a) => a.on === "enters_status" && a.status === "Published");
330
- expect(published?.unless).toEqual({ property: "post-copy-of", present: true });
432
+ const published = repurpose?.activators?.find(
433
+ (a) => a.on === "enters_status" && a.status === "Published"
434
+ );
435
+ expect(published?.unless).toEqual({
436
+ property: "post-copy-of",
437
+ present: true,
438
+ });
331
439
  });
332
440
 
333
441
  it("names a property the post kind declares", () => {
@@ -346,7 +454,9 @@ describe("Content OS Write the caption drafts one post's caption, never the pers
346
454
 
347
455
  it("is a post's process, run by hand on one post (non-vacuity)", () => {
348
456
  expect(caption?.subjectProfile?.profileSlug).toBe("post");
349
- expect(caption?.params).toEqual([expect.objectContaining({ name: "post", type: "entity", required: true })]);
457
+ expect(caption?.params).toEqual([
458
+ expect.objectContaining({ name: "post", type: "entity", required: true }),
459
+ ]);
350
460
  expect(caption?.goalTemplate).toContain("{post}");
351
461
  expect(caption?.status).toBe("active");
352
462
  });
@@ -373,9 +483,15 @@ describe("Content OS Write the caption drafts one post's caption, never the pers
373
483
  }),
374
484
  ]);
375
485
  // A writing instruction only: no tool, no write, no ask, no close, no status move.
376
- expect(caption?.goalTemplate).not.toMatch(/synap_|update_document|revision|\bask\b|\bclose\b|\bstatus\b/i);
377
- expect(caption?.goalTemplate).toMatch(/Write ONE caption in the brand voice/);
486
+ expect(caption?.goalTemplate).not.toMatch(
487
+ /synap_|update_document|revision|\bask\b|\bclose\b|\bstatus\b/i
488
+ );
489
+ expect(caption?.goalTemplate).toMatch(
490
+ /Write ONE caption in the brand voice/
491
+ );
378
492
  // The voice reaches the one call as guidance (the call cannot look it up).
379
- expect(caption?.guidance).toEqual([expect.objectContaining({ ref: "kind:brand-voice-guide" })]);
493
+ expect(caption?.guidance).toEqual([
494
+ expect.objectContaining({ ref: "kind:brand-voice-guide" }),
495
+ ]);
380
496
  });
381
497
  });
@@ -30,11 +30,26 @@ meta:
30
30
  suggestFor: [writer, creator, marketer, musician, photographer]
31
31
  views: [content-posts, content-calendar]
32
32
  example:
33
- - { title: "Why we left spreadsheets", values: { post-status: Idea, post-format: Article } }
34
- - { title: "Three mistakes in our first launch", values: { post-status: Briefed, post-format: Thread } }
35
- - { title: "Behind the scenes: build week", values: { post-status: "In Draft", post-format: "Short Video" } }
36
- - { title: "Customer story: the Lyon bakery", values: { post-status: Review, post-format: Carousel } }
37
- - { title: "Our pricing, explained", values: { post-status: Published, post-format: Article } }
33
+ - {
34
+ title: "Why we left spreadsheets",
35
+ values: { post-status: Idea, post-format: Article },
36
+ }
37
+ - {
38
+ title: "Three mistakes in our first launch",
39
+ values: { post-status: Briefed, post-format: Thread },
40
+ }
41
+ - {
42
+ title: "Behind the scenes: build week",
43
+ values: { post-status: "In Draft", post-format: "Short Video" },
44
+ }
45
+ - {
46
+ title: "Customer story: the Lyon bakery",
47
+ values: { post-status: Review, post-format: Carousel },
48
+ }
49
+ - {
50
+ title: "Our pricing, explained",
51
+ values: { post-status: Published, post-format: Article },
52
+ }
38
53
  firstSession:
39
54
  title: Your content pipeline
40
55
  goal: "Add the 3 to 5 posts you are working on now, each with a format and a status, and set a publish date on the next one."
@@ -1094,8 +1109,7 @@ profiles:
1094
1109
  label: Type
1095
1110
  valueType: string
1096
1111
  inputType: select
1097
- enumValues:
1098
- [scoping, outreach, live, partnership, event, other]
1112
+ enumValues: [scoping, outreach, live, partnership, event, other]
1099
1113
  constraints: { defaultValue: outreach }
1100
1114
  # `campaign-color` backs the per-campaign colour the CRM surfaces render.
1101
1115
  # Stored as a palette NAME (see apps/crm/lib/campaignColors.ts), not a hex.
@@ -1345,13 +1359,38 @@ profiles:
1345
1359
  property: status
1346
1360
  options:
1347
1361
  - { key: intent, label: Idea, category: open }
1348
- - { key: drafting, label: Drafting, category: active, stuckAfterDays: 14 }
1362
+ - {
1363
+ key: drafting,
1364
+ label: Drafting,
1365
+ category: active,
1366
+ stuckAfterDays: 14,
1367
+ }
1349
1368
  - { key: board, label: Board, category: active, stuckAfterDays: 14 }
1350
- - { key: assets_chosen, label: Assets chosen, category: active, stuckAfterDays: 7 }
1351
- - { key: generating, label: Generating, category: active, stuckAfterDays: 3 }
1352
- - { key: in_review, label: In review, category: active, stuckAfterDays: 5 }
1369
+ - {
1370
+ key: assets_chosen,
1371
+ label: Assets chosen,
1372
+ category: active,
1373
+ stuckAfterDays: 7,
1374
+ }
1375
+ - {
1376
+ key: generating,
1377
+ label: Generating,
1378
+ category: active,
1379
+ stuckAfterDays: 3,
1380
+ }
1381
+ - {
1382
+ key: in_review,
1383
+ label: In review,
1384
+ category: active,
1385
+ stuckAfterDays: 5,
1386
+ }
1353
1387
  - { key: approved, label: Ready, category: active, humanOnly: true }
1354
- - { key: deriving, label: Deriving, category: active, stuckAfterDays: 7 }
1388
+ - {
1389
+ key: deriving,
1390
+ label: Deriving,
1391
+ category: active,
1392
+ stuckAfterDays: 7,
1393
+ }
1355
1394
  - { key: published, label: Published, category: done }
1356
1395
  - { key: retired, label: Retired, category: lost }
1357
1396
  properties:
@@ -1359,7 +1398,19 @@ profiles:
1359
1398
  label: Status
1360
1399
  valueType: string
1361
1400
  inputType: select
1362
- enumValues: [intent, drafting, board, assets_chosen, generating, in_review, approved, deriving, published, retired]
1401
+ enumValues:
1402
+ [
1403
+ intent,
1404
+ drafting,
1405
+ board,
1406
+ assets_chosen,
1407
+ generating,
1408
+ in_review,
1409
+ approved,
1410
+ deriving,
1411
+ published,
1412
+ retired,
1413
+ ]
1363
1414
  constraints: { defaultValue: intent }
1364
1415
  - slug: composition-id
1365
1416
  label: Composition ID
@@ -1470,7 +1521,18 @@ profiles:
1470
1521
  description: "What this piece is made as. Empty: a thinking piece. text-site = Text · your site, text-linkedin = Text · LinkedIn, text-newsletter = Text · newsletter, carousel-linkedin = Carousel · LinkedIn, carousel-instagram = Carousel · Instagram, carousel-both = Carousel · LinkedIn and Instagram, video-motion = Video · motion design, video-capture = Video · captured, carousel = Carousel, network not set (made before design I)."
1471
1522
  valueType: string
1472
1523
  inputType: select
1473
- enumValues: [text-site, text-linkedin, text-newsletter, carousel-linkedin, carousel-instagram, carousel-both, video-motion, video-capture, carousel]
1524
+ enumValues:
1525
+ [
1526
+ text-site,
1527
+ text-linkedin,
1528
+ text-newsletter,
1529
+ carousel-linkedin,
1530
+ carousel-instagram,
1531
+ carousel-both,
1532
+ video-motion,
1533
+ video-capture,
1534
+ carousel,
1535
+ ]
1474
1536
  # The campaign this piece belongs to (founder, 23 Nov 2026, J2 plan
1475
1537
  # e51783ca decision B1): ONE campaign per piece, the same single-valued
1476
1538
  # shape as `post-campaign`. Derive outputs copies it onto the posts it
@@ -1684,7 +1746,17 @@ profiles:
1684
1746
  valueType: string
1685
1747
  inputType: select
1686
1748
  enumValues:
1687
- [artboard, deck, carousel, banner, document, html, social, video, other]
1749
+ [
1750
+ artboard,
1751
+ deck,
1752
+ carousel,
1753
+ banner,
1754
+ document,
1755
+ html,
1756
+ social,
1757
+ video,
1758
+ other,
1759
+ ]
1688
1760
  - slug: template-status
1689
1761
  label: Status
1690
1762
  valueType: string
@@ -1699,7 +1771,18 @@ profiles:
1699
1771
  label: Format
1700
1772
  valueType: string
1701
1773
  inputType: select
1702
- enumValues: [tldraw, html, json, markdown, image, mixed, hyperframes, layered, open-design]
1774
+ enumValues:
1775
+ [
1776
+ tldraw,
1777
+ html,
1778
+ json,
1779
+ markdown,
1780
+ image,
1781
+ mixed,
1782
+ hyperframes,
1783
+ layered,
1784
+ open-design,
1785
+ ]
1703
1786
  - slug: template-config
1704
1787
  label: Config JSON
1705
1788
  valueType: string
@@ -1888,14 +1971,44 @@ bento:
1888
1971
  profileEntityBentoTemplates:
1889
1972
  series:
1890
1973
  blocks:
1891
- - { id: series-eb-header, kind: widget, widgetType: entity-header, pos: { x: 0, y: 0, w: 12, h: 2 } }
1892
- - { id: series-eb-props, kind: widget, widgetType: entity-properties, pos: { x: 0, y: 2, w: 5, h: 8 } }
1893
- - { id: series-eb-curriculum, kind: widget, widgetType: series-curriculum, pos: { x: 5, y: 2, w: 7, h: 8 } }
1974
+ - {
1975
+ id: series-eb-header,
1976
+ kind: widget,
1977
+ widgetType: entity-header,
1978
+ pos: { x: 0, y: 0, w: 12, h: 2 },
1979
+ }
1980
+ - {
1981
+ id: series-eb-props,
1982
+ kind: widget,
1983
+ widgetType: entity-properties,
1984
+ pos: { x: 0, y: 2, w: 5, h: 8 },
1985
+ }
1986
+ - {
1987
+ id: series-eb-curriculum,
1988
+ kind: widget,
1989
+ widgetType: series-curriculum,
1990
+ pos: { x: 5, y: 2, w: 7, h: 8 },
1991
+ }
1894
1992
  pillar:
1895
1993
  blocks:
1896
- - { id: pillar-eb-header, kind: widget, widgetType: entity-header, pos: { x: 0, y: 0, w: 12, h: 2 } }
1897
- - { id: pillar-eb-props, kind: widget, widgetType: entity-properties, pos: { x: 0, y: 2, w: 5, h: 8 } }
1898
- - { id: pillar-eb-chapter, kind: widget, widgetType: pillar-chapter, pos: { x: 5, y: 2, w: 7, h: 8 } }
1994
+ - {
1995
+ id: pillar-eb-header,
1996
+ kind: widget,
1997
+ widgetType: entity-header,
1998
+ pos: { x: 0, y: 0, w: 12, h: 2 },
1999
+ }
2000
+ - {
2001
+ id: pillar-eb-props,
2002
+ kind: widget,
2003
+ widgetType: entity-properties,
2004
+ pos: { x: 0, y: 2, w: 5, h: 8 },
2005
+ }
2006
+ - {
2007
+ id: pillar-eb-chapter,
2008
+ kind: widget,
2009
+ widgetType: pillar-chapter,
2010
+ pos: { x: 5, y: 2, w: 7, h: 8 },
2011
+ }
1899
2012
 
1900
2013
  # Editorial graph: connect posts to campaign / pillar / sponsor
1901
2014
  entityLinks:
@@ -2670,7 +2783,11 @@ playbooks:
2670
2783
  - key: nothing-applied-directly
2671
2784
  statement: "No post date or status was changed directly: every date change is a pending proposal, and the final message says applied = none."
2672
2785
  required: true
2673
- check: { kind: judge, hint: Compare the final message with the records' updatedAt. }
2786
+ check:
2787
+ {
2788
+ kind: judge,
2789
+ hint: Compare the final message with the records' updatedAt.,
2790
+ }
2674
2791
  - key: rhythm-kept
2675
2792
  statement: Each proposed publishing day follows the campaign's rhythm; when the rhythm pairs formats, no companion goes out alone, and no take, composition or board is given a date.
2676
2793
  required: true
@@ -2751,7 +2868,11 @@ playbooks:
2751
2868
  subjectProfile:
2752
2869
  profileSlug: post
2753
2870
  guidance:
2754
- - { ref: "kind:brand-voice-guide", label: Voice, where: { voice-context: [general, social] } }
2871
+ - {
2872
+ ref: "kind:brand-voice-guide",
2873
+ label: Voice,
2874
+ where: { voice-context: [general, social] },
2875
+ }
2755
2876
  # Typed output: the draft lands in the post's own script document, as its
2756
2877
  # "## Caption" once approved (a proposal of the person's own block until
2757
2878
  # then), so nothing new is created and there is no edge to add. `examples` (backend#1005, founder decision 8 of plan
@@ -2762,7 +2883,13 @@ playbooks:
2762
2883
  - kind: document
2763
2884
  label: Caption
2764
2885
  relationToSubject: none
2765
- lands: { target: subject_document_section, section: Caption, owner: person, examples: { approved: 3, rejected: 3 } }
2886
+ lands:
2887
+ {
2888
+ target: subject_document_section,
2889
+ section: Caption,
2890
+ owner: person,
2891
+ examples: { approved: 3, rejected: 3 },
2892
+ }
2766
2893
  params:
2767
2894
  - { name: post, type: entity, label: Post, required: true }
2768
2895
  executor: generate
@@ -2785,7 +2912,12 @@ playbooks:
2785
2912
  profileSlug: post
2786
2913
  activators:
2787
2914
  # A copy or repost sent for another account (post-copy-of) is not repurposed: its original is.
2788
- - { on: enters_status, status: Published, mode: propose, unless: { property: post-copy-of, present: true } }
2915
+ - {
2916
+ on: enters_status,
2917
+ status: Published,
2918
+ mode: propose,
2919
+ unless: { property: post-copy-of, present: true },
2920
+ }
2789
2921
  expectedOutputs:
2790
2922
  - { kind: post, label: Repurposed post, relationToSubject: derived_from }
2791
2923
  params:
@@ -2809,7 +2941,12 @@ playbooks:
2809
2941
  subjectProfile:
2810
2942
  profileSlug: newsletter
2811
2943
  params:
2812
- - { name: newsletter, type: entity, label: Newsletter issue, required: true }
2944
+ - {
2945
+ name: newsletter,
2946
+ type: entity,
2947
+ label: Newsletter issue,
2948
+ required: true,
2949
+ }
2813
2950
  executor: is-agent
2814
2951
  status: active
2815
2952
  stages:
@@ -3041,7 +3178,12 @@ playbooks:
3041
3178
  tools: [create_entity, create_relation]
3042
3179
  expectedOutputs:
3043
3180
  - { kind: post, label: Derived post, relationToSubject: derived_from }
3044
- - { kind: newsletter, label: Newsletter issue, relationToSubject: derived_from, optional: true }
3181
+ - {
3182
+ kind: newsletter,
3183
+ label: Newsletter issue,
3184
+ relationToSubject: derived_from,
3185
+ optional: true,
3186
+ }
3045
3187
 
3046
3188
  automations:
3047
3189
  # Tuesday, not Monday (J2 plan e51783ca, J2-cat item 4): Plan Next