@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/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:
@@ -574,7 +653,20 @@ profiles:
574
653
  valueType: string
575
654
  inputType: select
576
655
  enumValues:
577
- [email, social, event, content, partnership, paid, organic, other]
656
+ [
657
+ email,
658
+ social,
659
+ event,
660
+ content,
661
+ partnership,
662
+ paid,
663
+ organic,
664
+ other,
665
+ linkedin,
666
+ instagram,
667
+ website,
668
+ newsletter,
669
+ ]
578
670
  - slug: campaign-goal
579
671
  label: Goal
580
672
  valueType: string
@@ -616,8 +708,7 @@ profiles:
616
708
  label: Type
617
709
  valueType: string
618
710
  inputType: select
619
- enumValues:
620
- [scoping, outreach, live, partnership, event, other]
711
+ enumValues: [scoping, outreach, live, partnership, event, other]
621
712
  constraints: { defaultValue: outreach }
622
713
  # `campaign-color` backs the per-campaign colour the CRM surfaces render.
623
714
  # Stored as a palette NAME (see apps/crm/lib/campaignColors.ts), not a hex.
@@ -688,12 +779,14 @@ profiles:
688
779
  label: Touch type
689
780
  valueType: string
690
781
  inputType: select
691
- enumValues: [first_message, connection_request, follow_up, intro_email, reply]
782
+ enumValues:
783
+ [first_message, connection_request, follow_up, intro_email, reply]
692
784
  - slug: status
693
785
  label: Status
694
786
  valueType: string
695
787
  inputType: select
696
- enumValues: [drafted, sent, opened, replied, bounced, no_response, replaced]
788
+ enumValues:
789
+ [drafted, sent, opened, replied, bounced, no_response, replaced]
697
790
  constraints: { defaultValue: drafted }
698
791
  - slug: sentDate
699
792
  label: Sent date
@@ -725,7 +818,7 @@ profiles:
725
818
  displayName: Outreach angle
726
819
  icon: compass
727
820
  color: violet
728
- 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.'
729
822
  # The ONE lifecycle (work model L1): every option's category.
730
823
  lifecycle:
731
824
  property: angle-status
@@ -906,7 +999,8 @@ views:
906
999
  scopeProfileSlug: deal
907
1000
  description: Every deal with its stage, value, expected close date and next step.
908
1001
  config:
909
- columns: [title, commercialStage, value, closeDate, nextAction, nextActionAt]
1002
+ columns:
1003
+ [title, commercialStage, value, closeDate, nextAction, nextActionAt]
910
1004
  - name: Deals list
911
1005
  slug: deals-list
912
1006
  type: list
@@ -921,7 +1015,14 @@ views:
921
1015
  scopeProfileSlug: campaign
922
1016
  description: Every campaign people come from — its type, its status, who it is for and its offer.
923
1017
  config:
924
- 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
+ ]
925
1026
  - name: Messages
926
1027
  slug: outreach-touches
927
1028
  type: kanban
@@ -1129,9 +1230,21 @@ playbooks:
1129
1230
  ask:
1130
1231
  mode: choose
1131
1232
  options:
1132
- - { label: Pursue, value: pursue, description: "Qualified, with booking a meeting as its next action" }
1133
- - { label: Nurture, value: nurture, description: The run sets a date to check in again }
1134
- - { 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
+ }
1135
1248
  - key: decide
1136
1249
  name: Decide
1137
1250
  category: started
@@ -1235,7 +1348,11 @@ playbooks:
1235
1348
  # No engagement here (17 Nov 2026): the client's engagement is opened or
1236
1349
  # reused by Operations' "Onboard a client", one door per output.
1237
1350
  expectedOutputs:
1238
- - { kind: person, label: Decision maker, relationToSubject: linked_to_deal }
1351
+ - {
1352
+ kind: person,
1353
+ label: Decision maker,
1354
+ relationToSubject: linked_to_deal,
1355
+ }
1239
1356
  - { kind: document, label: Proposal }
1240
1357
  metadata:
1241
1358
  lineage: { method: "BANT qualification, proposal-led B2B sale" }
@@ -1366,12 +1483,33 @@ playbooks:
1366
1483
  activators:
1367
1484
  - { on: manual, mode: propose }
1368
1485
  params:
1369
- - { name: audience, type: entity, label: Audience to prospect, required: true }
1370
- - { name: count, type: number, label: How many accounts to propose, default: 25 }
1371
- - { 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
+ }
1372
1504
  # public = search public sources; network = rank the person's own
1373
1505
  # contacts (the `contact` role holders) instead (2026-10-27).
1374
- - { 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
+ }
1375
1513
  executor: is-agent
1376
1514
  status: active
1377
1515
  tools: [search_external]
@@ -1403,7 +1541,11 @@ playbooks:
1403
1541
  category: completed
1404
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.
1405
1543
  expectedOutputs:
1406
- - { kind: company, label: Prospect accounts, relationToSubject: targets }
1544
+ - {
1545
+ kind: company,
1546
+ label: Prospect accounts,
1547
+ relationToSubject: targets,
1548
+ }
1407
1549
  criteria:
1408
1550
  - key: prospect-one-proposal
1409
1551
  statement: The whole batch is one proposal, each candidate an item of it with its sources.
@@ -1465,9 +1607,24 @@ playbooks:
1465
1607
  activators:
1466
1608
  - { on: manual, mode: propose }
1467
1609
  params:
1468
- - { name: audience, type: entity, label: List (audience) to score, required: true }
1469
- - { name: limit, type: number, label: Most leads to score in this run, defaultValue: 50 }
1470
- - { 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
+ }
1471
1628
  executor: is-agent
1472
1629
  status: active
1473
1630
  tools: [search_external]
@@ -1605,7 +1762,13 @@ playbooks:
1605
1762
  params:
1606
1763
  - { name: lead, type: entity, label: Lead, required: true }
1607
1764
  - { name: campaign, type: entity, label: Outreach campaign (optional) }
1608
- - { 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
+ }
1609
1772
  executor: is-agent
1610
1773
  status: active
1611
1774
  # The rules it writes by (design b199a3a4, backend#924): every run renders
@@ -1616,9 +1779,21 @@ playbooks:
1616
1779
  # from my sent messages"; DRAFT RULES and CADENCE stay here: they are
1617
1780
  # process. Foundation's positioning joins once its kind has a lifecycle.
1618
1781
  guidance:
1619
- - { 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
+ }
1620
1787
  - { ref: "kind:outreach-angle", label: By kind of lead }
1621
- 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
+ ]
1622
1797
  stages:
1623
1798
  - key: draft
1624
1799
  name: Draft the first message
@@ -1628,7 +1803,11 @@ playbooks:
1628
1803
  # The proposed message: a `messaging.external.send` proposal on the
1629
1804
  # person's channel (target type `messaging`). The channel is already
1630
1805
  # bound to the person, so it writes no edge to the lead.
1631
- - { kind: messaging, label: Proposed first message, relationToSubject: none }
1806
+ - {
1807
+ kind: messaging,
1808
+ label: Proposed first message,
1809
+ relationToSubject: none,
1810
+ }
1632
1811
  criteria:
1633
1812
  # A judge: no core or catalog verb reads a session's proposals and
1634
1813
  # answers {passed}, so the pod has no exact check for this yet.
@@ -1790,10 +1969,21 @@ playbooks:
1790
1969
  - { on: manual, mode: propose }
1791
1970
  params:
1792
1971
  - { name: company, type: entity, label: Company, required: true }
1793
- - { 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
+ }
1794
1977
  executor: is-agent
1795
1978
  status: active
1796
- 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
+ ]
1797
1987
  stages:
1798
1988
  - key: read
1799
1989
  name: Read the company and the roles
@@ -1822,7 +2012,12 @@ playbooks:
1822
2012
  category: completed
1823
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.
1824
2014
  expectedOutputs:
1825
- - { 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
+ }
1826
2021
  criteria:
1827
2022
  - key: contact-identity-first
1828
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).
@@ -1948,7 +2143,14 @@ playbooks:
1948
2143
  - { on: schedule, cron: "0 7 * * 1-5", status: outreach, mode: propose }
1949
2144
  - { on: manual, mode: propose }
1950
2145
  executor: is-agent
1951
- 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
+ ]
1952
2154
  status: active
1953
2155
  # The rules it writes by (design b199a3a4, backend#924): every run renders
1954
2156
  # the CURRENT, person-approved versions under "Rules this playbook
@@ -1958,7 +2160,11 @@ playbooks:
1958
2160
  # from my sent messages"; DRAFT RULES and CADENCE stay here: they are
1959
2161
  # process. Foundation's positioning joins once its kind has a lifecycle.
1960
2162
  guidance:
1961
- - { 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
+ }
1962
2168
  - { ref: "kind:outreach-angle", label: By kind of lead }
1963
2169
  expectedOutputs:
1964
2170
  # Proposed messages on the people's channels (see "Draft a first message").
@@ -2084,8 +2290,19 @@ playbooks:
2084
2290
  activators:
2085
2291
  - { on: created, mode: propose }
2086
2292
  params:
2087
- - { name: campaign, type: entity, label: Outreach campaign, required: true }
2088
- - { 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
+ }
2089
2306
  executor: is-agent
2090
2307
  status: active
2091
2308
  # The rules it writes by (design b199a3a4, backend#924): every run renders
@@ -2096,12 +2313,29 @@ playbooks:
2096
2313
  # from my sent messages"; DRAFT RULES and CADENCE stay here: they are
2097
2314
  # process. Foundation's positioning joins once its kind has a lifecycle.
2098
2315
  guidance:
2099
- - { 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
+ }
2100
2321
  - { ref: "kind:outreach-angle", label: By kind of lead }
2101
- 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
+ ]
2102
2332
  expectedOutputs:
2103
2333
  # Proposed messages on the members' channels (see "Draft a first message").
2104
- - { kind: messaging, label: Proposed first messages, relationToSubject: none }
2334
+ - {
2335
+ kind: messaging,
2336
+ label: Proposed first messages,
2337
+ relationToSubject: none,
2338
+ }
2105
2339
  stages:
2106
2340
  - key: prepare
2107
2341
  name: Prepare
@@ -2263,7 +2497,12 @@ playbooks:
2263
2497
  - { on: manual, mode: propose }
2264
2498
  params:
2265
2499
  - { name: lead, type: entity, label: Lead, required: true }
2266
- - { 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
+ }
2267
2506
  executor: is-agent
2268
2507
  status: active
2269
2508
  tools: [search_external]
@@ -2281,7 +2520,11 @@ playbooks:
2281
2520
  category: started
2282
2521
  goal: Write the one-page estimate in its six blocks, with ranges and their assumptions, from the company's own offers.
2283
2522
  expectedOutputs:
2284
- - { kind: document, label: Pre-sale estimate, relationToSubject: relates_to }
2523
+ - {
2524
+ kind: document,
2525
+ label: Pre-sale estimate,
2526
+ relationToSubject: relates_to,
2527
+ }
2285
2528
  criteria:
2286
2529
  - key: estimate-six-blocks
2287
2530
  statement: The estimate has all six blocks, in the lead's language.
@@ -2352,8 +2595,16 @@ playbooks:
2352
2595
  status: active
2353
2596
  tools: [channel.resolve, feed.read, entity.create]
2354
2597
  expectedOutputs:
2355
- - { kind: brand-voice-guide, label: Draft outreach voice, relationToSubject: none }
2356
- - { 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
+ }
2357
2608
  stages:
2358
2609
  - key: draft
2359
2610
  name: Propose the drafts
@@ -2434,7 +2685,12 @@ playbooks:
2434
2685
  # No activator: a run is started by the person (the CRM's "Ask for a
2435
2686
  # tile"), and an activator fires on a subject this process has none of.
2436
2687
  params:
2437
- - { 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
+ }
2438
2694
  executor: external-agent
2439
2695
  status: active
2440
2696
  stages: