@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/src/content-os.yaml
CHANGED
|
@@ -30,11 +30,26 @@ meta:
|
|
|
30
30
|
suggestFor: [writer, creator, marketer, musician, photographer]
|
|
31
31
|
views: [content-posts, content-calendar]
|
|
32
32
|
example:
|
|
33
|
-
- {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
- {
|
|
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."
|
|
@@ -1039,7 +1054,20 @@ profiles:
|
|
|
1039
1054
|
valueType: string
|
|
1040
1055
|
inputType: select
|
|
1041
1056
|
enumValues:
|
|
1042
|
-
[
|
|
1057
|
+
[
|
|
1058
|
+
email,
|
|
1059
|
+
social,
|
|
1060
|
+
event,
|
|
1061
|
+
content,
|
|
1062
|
+
partnership,
|
|
1063
|
+
paid,
|
|
1064
|
+
organic,
|
|
1065
|
+
other,
|
|
1066
|
+
linkedin,
|
|
1067
|
+
instagram,
|
|
1068
|
+
website,
|
|
1069
|
+
newsletter,
|
|
1070
|
+
]
|
|
1043
1071
|
- slug: campaign-goal
|
|
1044
1072
|
label: Goal
|
|
1045
1073
|
valueType: string
|
|
@@ -1081,8 +1109,7 @@ profiles:
|
|
|
1081
1109
|
label: Type
|
|
1082
1110
|
valueType: string
|
|
1083
1111
|
inputType: select
|
|
1084
|
-
enumValues:
|
|
1085
|
-
[scoping, outreach, live, partnership, event, other]
|
|
1112
|
+
enumValues: [scoping, outreach, live, partnership, event, other]
|
|
1086
1113
|
constraints: { defaultValue: outreach }
|
|
1087
1114
|
# `campaign-color` backs the per-campaign colour the CRM surfaces render.
|
|
1088
1115
|
# Stored as a palette NAME (see apps/crm/lib/campaignColors.ts), not a hex.
|
|
@@ -1332,13 +1359,38 @@ profiles:
|
|
|
1332
1359
|
property: status
|
|
1333
1360
|
options:
|
|
1334
1361
|
- { key: intent, label: Idea, category: open }
|
|
1335
|
-
- {
|
|
1362
|
+
- {
|
|
1363
|
+
key: drafting,
|
|
1364
|
+
label: Drafting,
|
|
1365
|
+
category: active,
|
|
1366
|
+
stuckAfterDays: 14,
|
|
1367
|
+
}
|
|
1336
1368
|
- { key: board, label: Board, category: active, stuckAfterDays: 14 }
|
|
1337
|
-
- {
|
|
1338
|
-
|
|
1339
|
-
|
|
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
|
+
}
|
|
1340
1387
|
- { key: approved, label: Ready, category: active, humanOnly: true }
|
|
1341
|
-
- {
|
|
1388
|
+
- {
|
|
1389
|
+
key: deriving,
|
|
1390
|
+
label: Deriving,
|
|
1391
|
+
category: active,
|
|
1392
|
+
stuckAfterDays: 7,
|
|
1393
|
+
}
|
|
1342
1394
|
- { key: published, label: Published, category: done }
|
|
1343
1395
|
- { key: retired, label: Retired, category: lost }
|
|
1344
1396
|
properties:
|
|
@@ -1346,7 +1398,19 @@ profiles:
|
|
|
1346
1398
|
label: Status
|
|
1347
1399
|
valueType: string
|
|
1348
1400
|
inputType: select
|
|
1349
|
-
enumValues:
|
|
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
|
+
]
|
|
1350
1414
|
constraints: { defaultValue: intent }
|
|
1351
1415
|
- slug: composition-id
|
|
1352
1416
|
label: Composition ID
|
|
@@ -1457,7 +1521,18 @@ profiles:
|
|
|
1457
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)."
|
|
1458
1522
|
valueType: string
|
|
1459
1523
|
inputType: select
|
|
1460
|
-
enumValues:
|
|
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
|
+
]
|
|
1461
1536
|
# The campaign this piece belongs to (founder, 23 Nov 2026, J2 plan
|
|
1462
1537
|
# e51783ca decision B1): ONE campaign per piece, the same single-valued
|
|
1463
1538
|
# shape as `post-campaign`. Derive outputs copies it onto the posts it
|
|
@@ -1671,7 +1746,17 @@ profiles:
|
|
|
1671
1746
|
valueType: string
|
|
1672
1747
|
inputType: select
|
|
1673
1748
|
enumValues:
|
|
1674
|
-
[
|
|
1749
|
+
[
|
|
1750
|
+
artboard,
|
|
1751
|
+
deck,
|
|
1752
|
+
carousel,
|
|
1753
|
+
banner,
|
|
1754
|
+
document,
|
|
1755
|
+
html,
|
|
1756
|
+
social,
|
|
1757
|
+
video,
|
|
1758
|
+
other,
|
|
1759
|
+
]
|
|
1675
1760
|
- slug: template-status
|
|
1676
1761
|
label: Status
|
|
1677
1762
|
valueType: string
|
|
@@ -1686,7 +1771,18 @@ profiles:
|
|
|
1686
1771
|
label: Format
|
|
1687
1772
|
valueType: string
|
|
1688
1773
|
inputType: select
|
|
1689
|
-
enumValues:
|
|
1774
|
+
enumValues:
|
|
1775
|
+
[
|
|
1776
|
+
tldraw,
|
|
1777
|
+
html,
|
|
1778
|
+
json,
|
|
1779
|
+
markdown,
|
|
1780
|
+
image,
|
|
1781
|
+
mixed,
|
|
1782
|
+
hyperframes,
|
|
1783
|
+
layered,
|
|
1784
|
+
open-design,
|
|
1785
|
+
]
|
|
1690
1786
|
- slug: template-config
|
|
1691
1787
|
label: Config JSON
|
|
1692
1788
|
valueType: string
|
|
@@ -1875,14 +1971,44 @@ bento:
|
|
|
1875
1971
|
profileEntityBentoTemplates:
|
|
1876
1972
|
series:
|
|
1877
1973
|
blocks:
|
|
1878
|
-
- {
|
|
1879
|
-
|
|
1880
|
-
|
|
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
|
+
}
|
|
1881
1992
|
pillar:
|
|
1882
1993
|
blocks:
|
|
1883
|
-
- {
|
|
1884
|
-
|
|
1885
|
-
|
|
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
|
+
}
|
|
1886
2012
|
|
|
1887
2013
|
# Editorial graph: connect posts to campaign / pillar / sponsor
|
|
1888
2014
|
entityLinks:
|
|
@@ -2657,7 +2783,11 @@ playbooks:
|
|
|
2657
2783
|
- key: nothing-applied-directly
|
|
2658
2784
|
statement: "No post date or status was changed directly: every date change is a pending proposal, and the final message says applied = none."
|
|
2659
2785
|
required: true
|
|
2660
|
-
check:
|
|
2786
|
+
check:
|
|
2787
|
+
{
|
|
2788
|
+
kind: judge,
|
|
2789
|
+
hint: Compare the final message with the records' updatedAt.,
|
|
2790
|
+
}
|
|
2661
2791
|
- key: rhythm-kept
|
|
2662
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.
|
|
2663
2793
|
required: true
|
|
@@ -2738,7 +2868,11 @@ playbooks:
|
|
|
2738
2868
|
subjectProfile:
|
|
2739
2869
|
profileSlug: post
|
|
2740
2870
|
guidance:
|
|
2741
|
-
- {
|
|
2871
|
+
- {
|
|
2872
|
+
ref: "kind:brand-voice-guide",
|
|
2873
|
+
label: Voice,
|
|
2874
|
+
where: { voice-context: [general, social] },
|
|
2875
|
+
}
|
|
2742
2876
|
# Typed output: the draft lands in the post's own script document, as its
|
|
2743
2877
|
# "## Caption" once approved (a proposal of the person's own block until
|
|
2744
2878
|
# then), so nothing new is created and there is no edge to add. `examples` (backend#1005, founder decision 8 of plan
|
|
@@ -2749,7 +2883,13 @@ playbooks:
|
|
|
2749
2883
|
- kind: document
|
|
2750
2884
|
label: Caption
|
|
2751
2885
|
relationToSubject: none
|
|
2752
|
-
lands:
|
|
2886
|
+
lands:
|
|
2887
|
+
{
|
|
2888
|
+
target: subject_document_section,
|
|
2889
|
+
section: Caption,
|
|
2890
|
+
owner: person,
|
|
2891
|
+
examples: { approved: 3, rejected: 3 },
|
|
2892
|
+
}
|
|
2753
2893
|
params:
|
|
2754
2894
|
- { name: post, type: entity, label: Post, required: true }
|
|
2755
2895
|
executor: generate
|
|
@@ -2772,7 +2912,12 @@ playbooks:
|
|
|
2772
2912
|
profileSlug: post
|
|
2773
2913
|
activators:
|
|
2774
2914
|
# A copy or repost sent for another account (post-copy-of) is not repurposed: its original is.
|
|
2775
|
-
- {
|
|
2915
|
+
- {
|
|
2916
|
+
on: enters_status,
|
|
2917
|
+
status: Published,
|
|
2918
|
+
mode: propose,
|
|
2919
|
+
unless: { property: post-copy-of, present: true },
|
|
2920
|
+
}
|
|
2776
2921
|
expectedOutputs:
|
|
2777
2922
|
- { kind: post, label: Repurposed post, relationToSubject: derived_from }
|
|
2778
2923
|
params:
|
|
@@ -2796,7 +2941,12 @@ playbooks:
|
|
|
2796
2941
|
subjectProfile:
|
|
2797
2942
|
profileSlug: newsletter
|
|
2798
2943
|
params:
|
|
2799
|
-
- {
|
|
2944
|
+
- {
|
|
2945
|
+
name: newsletter,
|
|
2946
|
+
type: entity,
|
|
2947
|
+
label: Newsletter issue,
|
|
2948
|
+
required: true,
|
|
2949
|
+
}
|
|
2800
2950
|
executor: is-agent
|
|
2801
2951
|
status: active
|
|
2802
2952
|
stages:
|
|
@@ -3028,7 +3178,12 @@ playbooks:
|
|
|
3028
3178
|
tools: [create_entity, create_relation]
|
|
3029
3179
|
expectedOutputs:
|
|
3030
3180
|
- { kind: post, label: Derived post, relationToSubject: derived_from }
|
|
3031
|
-
- {
|
|
3181
|
+
- {
|
|
3182
|
+
kind: newsletter,
|
|
3183
|
+
label: Newsletter issue,
|
|
3184
|
+
relationToSubject: derived_from,
|
|
3185
|
+
optional: true,
|
|
3186
|
+
}
|
|
3032
3187
|
|
|
3033
3188
|
automations:
|
|
3034
3189
|
# Tuesday, not Monday (J2 plan e51783ca, J2-cat item 4): Plan Next
|