@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.
package/src/crm.yaml CHANGED
@@ -57,11 +57,46 @@ meta:
57
57
  suggestFor: [small-business, founder]
58
58
  views: [deal-pipeline, deals-table, deals-list]
59
59
  example:
60
- - { title: "Acme renewal", values: { commercialStage: negotiating, value: 12000, nextAction: "Send revised quote Thu" } }
61
- - { title: "Nordlys brand audit", values: { commercialStage: proposed, value: 6000, nextAction: "Follow up on proposal Mon" } }
62
- - { title: "Atelier 9 workshop", values: { commercialStage: draft, value: 2800, nextAction: "Discovery call Wed" } }
63
- - { title: "Maison Dupont redesign", values: { commercialStage: won, value: 18000, nextAction: "Kick-off next week" } }
64
- - { title: "Lumen Studio retainer", values: { commercialStage: lost, value: 4500 } }
60
+ - {
61
+ title: "Acme renewal",
62
+ values:
63
+ {
64
+ commercialStage: negotiating,
65
+ value: 12000,
66
+ nextAction: "Send revised quote Thu",
67
+ },
68
+ }
69
+ - {
70
+ title: "Nordlys brand audit",
71
+ values:
72
+ {
73
+ commercialStage: proposed,
74
+ value: 6000,
75
+ nextAction: "Follow up on proposal Mon",
76
+ },
77
+ }
78
+ - {
79
+ title: "Atelier 9 workshop",
80
+ values:
81
+ {
82
+ commercialStage: draft,
83
+ value: 2800,
84
+ nextAction: "Discovery call Wed",
85
+ },
86
+ }
87
+ - {
88
+ title: "Maison Dupont redesign",
89
+ values:
90
+ {
91
+ commercialStage: won,
92
+ value: 18000,
93
+ nextAction: "Kick-off next week",
94
+ },
95
+ }
96
+ - {
97
+ title: "Lumen Studio retainer",
98
+ values: { commercialStage: lost, value: 4500 },
99
+ }
65
100
  firstSession:
66
101
  title: Your live deals
67
102
  goal: "Add the 3 to 5 deals you are moving now, each with its company, a real person and a dated next step."
@@ -284,9 +319,53 @@ profiles:
284
319
  lifecycle:
285
320
  property: commercialStage
286
321
  options:
287
- - { key: draft, label: Meeting booked, category: open, stuckAfterDays: 14, requires: [{ kind: property, blockerKey: no_next_step, label: "A next step with a date", property: nextActionAt, owner: you }] }
288
- - { key: proposed, label: Proposal sent, category: active, stuckAfterDays: 14, requires: [{ kind: property, blockerKey: no_next_step, label: "A next step with a date", property: nextActionAt, owner: you }] }
289
- - { key: negotiating, category: active, stuckAfterDays: 14, requires: [{ kind: property, blockerKey: no_next_step, label: "A next step with a date", property: nextActionAt, owner: you }] }
322
+ - {
323
+ key: draft,
324
+ label: Meeting booked,
325
+ category: open,
326
+ stuckAfterDays: 14,
327
+ requires:
328
+ [
329
+ {
330
+ kind: property,
331
+ blockerKey: no_next_step,
332
+ label: "A next step with a date",
333
+ property: nextActionAt,
334
+ owner: you,
335
+ },
336
+ ],
337
+ }
338
+ - {
339
+ key: proposed,
340
+ label: Proposal sent,
341
+ category: active,
342
+ stuckAfterDays: 14,
343
+ requires:
344
+ [
345
+ {
346
+ kind: property,
347
+ blockerKey: no_next_step,
348
+ label: "A next step with a date",
349
+ property: nextActionAt,
350
+ owner: you,
351
+ },
352
+ ],
353
+ }
354
+ - {
355
+ key: negotiating,
356
+ category: active,
357
+ stuckAfterDays: 14,
358
+ requires:
359
+ [
360
+ {
361
+ kind: property,
362
+ blockerKey: no_next_step,
363
+ label: "A next step with a date",
364
+ property: nextActionAt,
365
+ owner: you,
366
+ },
367
+ ],
368
+ }
290
369
  - { key: won, category: done }
291
370
  - { key: lost, category: lost, humanOnly: true }
292
371
  properties:
@@ -629,8 +708,7 @@ profiles:
629
708
  label: Type
630
709
  valueType: string
631
710
  inputType: select
632
- enumValues:
633
- [scoping, outreach, live, partnership, event, other]
711
+ enumValues: [scoping, outreach, live, partnership, event, other]
634
712
  constraints: { defaultValue: outreach }
635
713
  # `campaign-color` backs the per-campaign colour the CRM surfaces render.
636
714
  # Stored as a palette NAME (see apps/crm/lib/campaignColors.ts), not a hex.
@@ -701,12 +779,14 @@ profiles:
701
779
  label: Touch type
702
780
  valueType: string
703
781
  inputType: select
704
- enumValues: [first_message, connection_request, follow_up, intro_email, reply]
782
+ enumValues:
783
+ [first_message, connection_request, follow_up, intro_email, reply]
705
784
  - slug: status
706
785
  label: Status
707
786
  valueType: string
708
787
  inputType: select
709
- enumValues: [drafted, sent, opened, replied, bounced, no_response, replaced]
788
+ enumValues:
789
+ [drafted, sent, opened, replied, bounced, no_response, replaced]
710
790
  constraints: { defaultValue: drafted }
711
791
  - slug: sentDate
712
792
  label: Sent date
@@ -738,7 +818,7 @@ profiles:
738
818
  displayName: Outreach angle
739
819
  icon: compass
740
820
  color: violet
741
- description: "One row of \"By kind of lead\": if the lead is X, lead with this angle, offer, proof, tone and channel. The first row that fits the lead wins; a person makes a row current."
821
+ description: 'One row of "By kind of lead": if the lead is X, lead with this angle, offer, proof, tone and channel. The first row that fits the lead wins; a person makes a row current.'
742
822
  # The ONE lifecycle (work model L1): every option's category.
743
823
  lifecycle:
744
824
  property: angle-status
@@ -919,7 +999,8 @@ views:
919
999
  scopeProfileSlug: deal
920
1000
  description: Every deal with its stage, value, expected close date and next step.
921
1001
  config:
922
- columns: [title, commercialStage, value, closeDate, nextAction, nextActionAt]
1002
+ columns:
1003
+ [title, commercialStage, value, closeDate, nextAction, nextActionAt]
923
1004
  - name: Deals list
924
1005
  slug: deals-list
925
1006
  type: list
@@ -934,7 +1015,14 @@ views:
934
1015
  scopeProfileSlug: campaign
935
1016
  description: Every campaign people come from — its type, its status, who it is for and its offer.
936
1017
  config:
937
- columns: [title, campaign-type, campaign-status, campaign-target-audience, campaign-start-date]
1018
+ columns:
1019
+ [
1020
+ title,
1021
+ campaign-type,
1022
+ campaign-status,
1023
+ campaign-target-audience,
1024
+ campaign-start-date,
1025
+ ]
938
1026
  - name: Messages
939
1027
  slug: outreach-touches
940
1028
  type: kanban
@@ -1142,9 +1230,21 @@ playbooks:
1142
1230
  ask:
1143
1231
  mode: choose
1144
1232
  options:
1145
- - { label: Pursue, value: pursue, description: "Qualified, with booking a meeting as its next action" }
1146
- - { label: Nurture, value: nurture, description: The run sets a date to check in again }
1147
- - { label: Drop, value: drop, description: Disqualified once you approve the move }
1233
+ - {
1234
+ label: Pursue,
1235
+ value: pursue,
1236
+ description: "Qualified, with booking a meeting as its next action",
1237
+ }
1238
+ - {
1239
+ label: Nurture,
1240
+ value: nurture,
1241
+ description: The run sets a date to check in again,
1242
+ }
1243
+ - {
1244
+ label: Drop,
1245
+ value: drop,
1246
+ description: Disqualified once you approve the move,
1247
+ }
1148
1248
  - key: decide
1149
1249
  name: Decide
1150
1250
  category: started
@@ -1248,7 +1348,11 @@ playbooks:
1248
1348
  # No engagement here (17 Nov 2026): the client's engagement is opened or
1249
1349
  # reused by Operations' "Onboard a client", one door per output.
1250
1350
  expectedOutputs:
1251
- - { kind: person, label: Decision maker, relationToSubject: linked_to_deal }
1351
+ - {
1352
+ kind: person,
1353
+ label: Decision maker,
1354
+ relationToSubject: linked_to_deal,
1355
+ }
1252
1356
  - { kind: document, label: Proposal }
1253
1357
  metadata:
1254
1358
  lineage: { method: "BANT qualification, proposal-led B2B sale" }
@@ -1379,12 +1483,33 @@ playbooks:
1379
1483
  activators:
1380
1484
  - { on: manual, mode: propose }
1381
1485
  params:
1382
- - { name: audience, type: entity, label: Audience to prospect, required: true }
1383
- - { name: count, type: number, label: How many accounts to propose, default: 25 }
1384
- - { name: market, type: text, label: Country and language, default: the market Foundation names }
1486
+ - {
1487
+ name: audience,
1488
+ type: entity,
1489
+ label: Audience to prospect,
1490
+ required: true,
1491
+ }
1492
+ - {
1493
+ name: count,
1494
+ type: number,
1495
+ label: How many accounts to propose,
1496
+ default: 25,
1497
+ }
1498
+ - {
1499
+ name: market,
1500
+ type: text,
1501
+ label: Country and language,
1502
+ default: the market Foundation names,
1503
+ }
1385
1504
  # public = search public sources; network = rank the person's own
1386
1505
  # contacts (the `contact` role holders) instead (2026-10-27).
1387
- - { name: pool, type: choice, label: Where to look, options: [public, network], defaultValue: public }
1506
+ - {
1507
+ name: pool,
1508
+ type: choice,
1509
+ label: Where to look,
1510
+ options: [public, network],
1511
+ defaultValue: public,
1512
+ }
1388
1513
  executor: is-agent
1389
1514
  status: active
1390
1515
  tools: [search_external]
@@ -1416,7 +1541,11 @@ playbooks:
1416
1541
  category: completed
1417
1542
  goal: Submit the batch as one proposal; the person keeps or drops each candidate in that one review, and only the kept ones are created.
1418
1543
  expectedOutputs:
1419
- - { kind: company, label: Prospect accounts, relationToSubject: targets }
1544
+ - {
1545
+ kind: company,
1546
+ label: Prospect accounts,
1547
+ relationToSubject: targets,
1548
+ }
1420
1549
  criteria:
1421
1550
  - key: prospect-one-proposal
1422
1551
  statement: The whole batch is one proposal, each candidate an item of it with its sources.
@@ -1478,9 +1607,24 @@ playbooks:
1478
1607
  activators:
1479
1608
  - { on: manual, mode: propose }
1480
1609
  params:
1481
- - { name: audience, type: entity, label: List (audience) to score, required: true }
1482
- - { name: limit, type: number, label: Most leads to score in this run, defaultValue: 50 }
1483
- - { name: rescoreAfterDays, type: number, label: Rescore leads scored more than this many days ago, defaultValue: 30 }
1610
+ - {
1611
+ name: audience,
1612
+ type: entity,
1613
+ label: List (audience) to score,
1614
+ required: true,
1615
+ }
1616
+ - {
1617
+ name: limit,
1618
+ type: number,
1619
+ label: Most leads to score in this run,
1620
+ defaultValue: 50,
1621
+ }
1622
+ - {
1623
+ name: rescoreAfterDays,
1624
+ type: number,
1625
+ label: Rescore leads scored more than this many days ago,
1626
+ defaultValue: 30,
1627
+ }
1484
1628
  executor: is-agent
1485
1629
  status: active
1486
1630
  tools: [search_external]
@@ -1618,7 +1762,13 @@ playbooks:
1618
1762
  params:
1619
1763
  - { name: lead, type: entity, label: Lead, required: true }
1620
1764
  - { name: campaign, type: entity, label: Outreach campaign (optional) }
1621
- - { name: channel, type: choice, label: Channel, options: [linkedin, email], defaultValue: linkedin }
1765
+ - {
1766
+ name: channel,
1767
+ type: choice,
1768
+ label: Channel,
1769
+ options: [linkedin, email],
1770
+ defaultValue: linkedin,
1771
+ }
1622
1772
  executor: is-agent
1623
1773
  status: active
1624
1774
  # The rules it writes by (design b199a3a4, backend#924): every run renders
@@ -1629,9 +1779,21 @@ playbooks:
1629
1779
  # from my sent messages"; DRAFT RULES and CADENCE stay here: they are
1630
1780
  # process. Foundation's positioning joins once its kind has a lifecycle.
1631
1781
  guidance:
1632
- - { ref: "kind:brand-voice-guide", label: Voice, where: { voice-context: [general, outreach] } }
1782
+ - {
1783
+ ref: "kind:brand-voice-guide",
1784
+ label: Voice,
1785
+ where: { voice-context: [general, outreach] },
1786
+ }
1633
1787
  - { ref: "kind:outreach-angle", label: By kind of lead }
1634
- tools: [messaging.send, channel.resolve, feed.read, linkedin_find_profile, linkedin_send_invite, entity.create]
1788
+ tools:
1789
+ [
1790
+ messaging.send,
1791
+ channel.resolve,
1792
+ feed.read,
1793
+ linkedin_find_profile,
1794
+ linkedin_send_invite,
1795
+ entity.create,
1796
+ ]
1635
1797
  stages:
1636
1798
  - key: draft
1637
1799
  name: Draft the first message
@@ -1641,7 +1803,11 @@ playbooks:
1641
1803
  # The proposed message: a `messaging.external.send` proposal on the
1642
1804
  # person's channel (target type `messaging`). The channel is already
1643
1805
  # bound to the person, so it writes no edge to the lead.
1644
- - { kind: messaging, label: Proposed first message, relationToSubject: none }
1806
+ - {
1807
+ kind: messaging,
1808
+ label: Proposed first message,
1809
+ relationToSubject: none,
1810
+ }
1645
1811
  criteria:
1646
1812
  # A judge: no core or catalog verb reads a session's proposals and
1647
1813
  # answers {passed}, so the pod has no exact check for this yet.
@@ -1803,10 +1969,21 @@ playbooks:
1803
1969
  - { on: manual, mode: propose }
1804
1970
  params:
1805
1971
  - { name: company, type: entity, label: Company, required: true }
1806
- - { name: audience, type: entity, label: Audience (ICP) the company came from }
1972
+ - {
1973
+ name: audience,
1974
+ type: entity,
1975
+ label: Audience (ICP) the company came from,
1976
+ }
1807
1977
  executor: is-agent
1808
1978
  status: active
1809
- tools: [find_people, enrich_entity, web.read, unipile_list_accounts, entity.create]
1979
+ tools:
1980
+ [
1981
+ find_people,
1982
+ enrich_entity,
1983
+ web.read,
1984
+ unipile_list_accounts,
1985
+ entity.create,
1986
+ ]
1810
1987
  stages:
1811
1988
  - key: read
1812
1989
  name: Read the company and the roles
@@ -1835,7 +2012,12 @@ playbooks:
1835
2012
  category: completed
1836
2013
  goal: Resolve each person picked by their LinkedIn URL, create them only if new with their own fields, link them works_at the company, home them in this CRM space, measure their reach, and report who, why, their reach and the next step.
1837
2014
  expectedOutputs:
1838
- - { kind: person, label: Contact picked, relationToSubject: works_at, optional: true }
2015
+ - {
2016
+ kind: person,
2017
+ label: Contact picked,
2018
+ relationToSubject: works_at,
2019
+ optional: true,
2020
+ }
1839
2021
  criteria:
1840
2022
  - key: contact-identity-first
1841
2023
  statement: Each person picked was resolved by their LinkedIn URL first; an existing person was reused, and a new one carries only their own fields (never the company's website, domain or email).
@@ -1961,7 +2143,14 @@ playbooks:
1961
2143
  - { on: schedule, cron: "0 7 * * 1-5", status: outreach, mode: propose }
1962
2144
  - { on: manual, mode: propose }
1963
2145
  executor: is-agent
1964
- tools: [messaging.send, channel.resolve, feed.read, linkedin_find_profile, linkedin_send_invite]
2146
+ tools:
2147
+ [
2148
+ messaging.send,
2149
+ channel.resolve,
2150
+ feed.read,
2151
+ linkedin_find_profile,
2152
+ linkedin_send_invite,
2153
+ ]
1965
2154
  status: active
1966
2155
  # The rules it writes by (design b199a3a4, backend#924): every run renders
1967
2156
  # the CURRENT, person-approved versions under "Rules this playbook
@@ -1971,7 +2160,11 @@ playbooks:
1971
2160
  # from my sent messages"; DRAFT RULES and CADENCE stay here: they are
1972
2161
  # process. Foundation's positioning joins once its kind has a lifecycle.
1973
2162
  guidance:
1974
- - { ref: "kind:brand-voice-guide", label: Voice, where: { voice-context: [general, outreach] } }
2163
+ - {
2164
+ ref: "kind:brand-voice-guide",
2165
+ label: Voice,
2166
+ where: { voice-context: [general, outreach] },
2167
+ }
1975
2168
  - { ref: "kind:outreach-angle", label: By kind of lead }
1976
2169
  expectedOutputs:
1977
2170
  # Proposed messages on the people's channels (see "Draft a first message").
@@ -2097,8 +2290,19 @@ playbooks:
2097
2290
  activators:
2098
2291
  - { on: created, mode: propose }
2099
2292
  params:
2100
- - { name: campaign, type: entity, label: Outreach campaign, required: true }
2101
- - { name: channel, type: choice, label: Channel, options: [linkedin, email], defaultValue: linkedin }
2293
+ - {
2294
+ name: campaign,
2295
+ type: entity,
2296
+ label: Outreach campaign,
2297
+ required: true,
2298
+ }
2299
+ - {
2300
+ name: channel,
2301
+ type: choice,
2302
+ label: Channel,
2303
+ options: [linkedin, email],
2304
+ defaultValue: linkedin,
2305
+ }
2102
2306
  executor: is-agent
2103
2307
  status: active
2104
2308
  # The rules it writes by (design b199a3a4, backend#924): every run renders
@@ -2109,12 +2313,29 @@ playbooks:
2109
2313
  # from my sent messages"; DRAFT RULES and CADENCE stay here: they are
2110
2314
  # process. Foundation's positioning joins once its kind has a lifecycle.
2111
2315
  guidance:
2112
- - { ref: "kind:brand-voice-guide", label: Voice, where: { voice-context: [general, outreach] } }
2316
+ - {
2317
+ ref: "kind:brand-voice-guide",
2318
+ label: Voice,
2319
+ where: { voice-context: [general, outreach] },
2320
+ }
2113
2321
  - { ref: "kind:outreach-angle", label: By kind of lead }
2114
- tools: [find_people, enrich_entity, messaging.send, channel.resolve, feed.read, linkedin_send_invite, entity.create]
2322
+ tools:
2323
+ [
2324
+ find_people,
2325
+ enrich_entity,
2326
+ messaging.send,
2327
+ channel.resolve,
2328
+ feed.read,
2329
+ linkedin_send_invite,
2330
+ entity.create,
2331
+ ]
2115
2332
  expectedOutputs:
2116
2333
  # Proposed messages on the members' channels (see "Draft a first message").
2117
- - { kind: messaging, label: Proposed first messages, relationToSubject: none }
2334
+ - {
2335
+ kind: messaging,
2336
+ label: Proposed first messages,
2337
+ relationToSubject: none,
2338
+ }
2118
2339
  stages:
2119
2340
  - key: prepare
2120
2341
  name: Prepare
@@ -2276,7 +2497,12 @@ playbooks:
2276
2497
  - { on: manual, mode: propose }
2277
2498
  params:
2278
2499
  - { name: lead, type: entity, label: Lead, required: true }
2279
- - { name: formAnswers, type: text, label: What they wrote in the website form (empty for outbound), default: "" }
2500
+ - {
2501
+ name: formAnswers,
2502
+ type: text,
2503
+ label: What they wrote in the website form (empty for outbound),
2504
+ default: "",
2505
+ }
2280
2506
  executor: is-agent
2281
2507
  status: active
2282
2508
  tools: [search_external]
@@ -2294,7 +2520,11 @@ playbooks:
2294
2520
  category: started
2295
2521
  goal: Write the one-page estimate in its six blocks, with ranges and their assumptions, from the company's own offers.
2296
2522
  expectedOutputs:
2297
- - { kind: document, label: Pre-sale estimate, relationToSubject: relates_to }
2523
+ - {
2524
+ kind: document,
2525
+ label: Pre-sale estimate,
2526
+ relationToSubject: relates_to,
2527
+ }
2298
2528
  criteria:
2299
2529
  - key: estimate-six-blocks
2300
2530
  statement: The estimate has all six blocks, in the lead's language.
@@ -2365,8 +2595,16 @@ playbooks:
2365
2595
  status: active
2366
2596
  tools: [channel.resolve, feed.read, entity.create]
2367
2597
  expectedOutputs:
2368
- - { kind: brand-voice-guide, label: Draft outreach voice, relationToSubject: none }
2369
- - { kind: outreach-angle, label: "Draft \"By kind of lead\" rows", relationToSubject: none }
2598
+ - {
2599
+ kind: brand-voice-guide,
2600
+ label: Draft outreach voice,
2601
+ relationToSubject: none,
2602
+ }
2603
+ - {
2604
+ kind: outreach-angle,
2605
+ label: 'Draft "By kind of lead" rows',
2606
+ relationToSubject: none,
2607
+ }
2370
2608
  stages:
2371
2609
  - key: draft
2372
2610
  name: Propose the drafts
@@ -2447,7 +2685,12 @@ playbooks:
2447
2685
  # No activator: a run is started by the person (the CRM's "Ask for a
2448
2686
  # tile"), and an activator fires on a subject this process has none of.
2449
2687
  params:
2450
- - { name: question, type: text, label: What should the tile answer?, required: true }
2688
+ - {
2689
+ name: question,
2690
+ type: text,
2691
+ label: What should the tile answer?,
2692
+ required: true,
2693
+ }
2451
2694
  executor: external-agent
2452
2695
  status: active
2453
2696
  stages: