@synap-core/workspace-templates 0.59.0 → 0.63.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/dist/index.js CHANGED
@@ -189,11 +189,14 @@ var DATA = {
189
189
  "goalTemplate": "Run the weekly review. COLLECT: list everything captured this week that was never clarified, every question waiting on a person, and every session still open. CLARIFY: propose what each unclarified capture is. REVIEW: list deals with no next step, engagements with a deliverable past due, invoices overdue, campaigns past their end date without a report, and expenses waiting for approval \u2014 each with the one action that would move it \u2014 and end your answer with the three priorities you recommend for next week, most important first. Stop there: the pod then asks the person to pick next week's priorities and wakes you with their answer. PLAN: with their answer, create a task for each priority they picked (the three you recommended, or the ones they wrote instead); none when they want no new priorities.",
190
190
  "executor": "is-agent",
191
191
  "status": "active",
192
- "schedule": {
193
- "cron": "0 16 * * 5",
194
- "enabled": false,
195
- "mode": "appointment"
196
- },
192
+ "activators": [
193
+ {
194
+ "on": "schedule",
195
+ "cron": "0 16 * * 5",
196
+ "mode": "appointment",
197
+ "startsPaused": true
198
+ }
199
+ ],
197
200
  "expectedOutputs": [
198
201
  {
199
202
  "kind": "task",
@@ -3770,6 +3773,13 @@ var DATA = {
3770
3773
  "label": "Local Repository Path",
3771
3774
  "valueType": "string",
3772
3775
  "inputType": "text"
3776
+ },
3777
+ {
3778
+ "slug": "design-kit",
3779
+ "label": "Design kit",
3780
+ "valueType": "entity_id",
3781
+ "targetProfileSlug": "file",
3782
+ "description": "The app's own component kit for the Design app (the catalog.json its `pnpm design:kit --publish` stored, pinning the kit's code by sha256). Its designs are drawn and checked with that kit in the project's brand; empty = Synap's components."
3773
3783
  }
3774
3784
  ]
3775
3785
  },
@@ -11842,7 +11852,7 @@ var DATA = {
11842
11852
  {
11843
11853
  "slug": "content-format",
11844
11854
  "label": "Format",
11845
- "description": "What this piece is made as. Empty: a thinking piece. text-site = Text \xB7 your site, text-linkedin = Text \xB7 LinkedIn, text-newsletter = Text \xB7 newsletter, carousel-linkedin = Carousel \xB7 LinkedIn, carousel-instagram = Carousel \xB7 Instagram, carousel-both = Carousel \xB7 LinkedIn and Instagram, video-motion = Video \xB7 motion design, video-capture = Video \xB7 captured.",
11855
+ "description": "What this piece is made as. Empty: a thinking piece. text-site = Text \xB7 your site, text-linkedin = Text \xB7 LinkedIn, text-newsletter = Text \xB7 newsletter, carousel-linkedin = Carousel \xB7 LinkedIn, carousel-instagram = Carousel \xB7 Instagram, carousel-both = Carousel \xB7 LinkedIn and Instagram, video-motion = Video \xB7 motion design, video-capture = Video \xB7 captured, carousel = Carousel, network not set (made before design I).",
11846
11856
  "valueType": "string",
11847
11857
  "inputType": "select",
11848
11858
  "enumValues": [
@@ -11853,7 +11863,8 @@ var DATA = {
11853
11863
  "carousel-instagram",
11854
11864
  "carousel-both",
11855
11865
  "video-motion",
11856
- "video-capture"
11866
+ "video-capture",
11867
+ "carousel"
11857
11868
  ]
11858
11869
  }
11859
11870
  ]
@@ -15434,10 +15445,13 @@ var DATA = {
15434
15445
  "name": "CRM Hygiene",
15435
15446
  "description": "Always-on maintenance \u2014 enriches stale contacts/companies and flags stalled deals. Every change is proposed for your review, never auto-applied.",
15436
15447
  "goalTemplate": "You are the CRM hygiene maintenance agent, running unattended on a daily schedule. Keep the pipeline healthy in two passes, and remember: EVERY change you make is a proposal for the user to review, so be precise and never fabricate.\nPass 1 \u2014 Enrich stale records. Find `person` and `company` records that are missing key fields (e.g. industry, companySize, location, jobTitle, email, website) or whose `lastContactDate` is old. For each, fill in what you can verify from existing pod data and public sources (use the enrichment tools you are granted); leave a field blank rather than guess. Do not touch records that are already complete and current.\nPass 2 \u2014 Flag stalled deals. Find `deal` records with no activity for a while or stuck in the same `commercialStage` past the stage's stuck threshold (14 days in Meeting booked, Proposal sent or negotiating). For each stalled deal, propose a concise `nextAction` (and its `nextActionAt`) to unblock it and note why it looks stalled. Do not advance a deal's stage on its behalf \u2014 surface the risk and a recommended action for the human to decide.\nSkip anything already healthy. If nothing needs attention, do nothing.",
15437
- "schedule": {
15438
- "cron": "0 8 * * *",
15439
- "enabled": true
15440
- },
15448
+ "activators": [
15449
+ {
15450
+ "on": "schedule",
15451
+ "cron": "0 8 * * *",
15452
+ "mode": "run"
15453
+ }
15454
+ ],
15441
15455
  "metadata": {
15442
15456
  "governance": {
15443
15457
  "forceProposeWrites": true
@@ -17519,10 +17533,15 @@ var DATA = {
17519
17533
  }
17520
17534
  ],
17521
17535
  "executor": "is-agent",
17522
- "schedule": {
17523
- "cron": "0 9 * * 1",
17524
- "enabled": false
17525
- },
17536
+ "activators": [
17537
+ {
17538
+ "on": "schedule",
17539
+ "cron": "0 9 * * 1",
17540
+ "size": "per_thing",
17541
+ "mode": "run",
17542
+ "startsPaused": true
17543
+ }
17544
+ ],
17526
17545
  "tools": [
17527
17546
  "update_entity",
17528
17547
  "exa_search",
@@ -17535,10 +17554,14 @@ var DATA = {
17535
17554
  "name": "Discover Competitors",
17536
17555
  "description": "Scan the market for competitors we don't track yet and add them to the ecosystem \u2014 the self-generating half of the radar.",
17537
17556
  "goalTemplate": 'Find companies that compete with us in {ourSpace}. Fan out neural web searches with the exa_search skill using category "company" \u2014 cover direct competitors, adjacent tools that solve the same job a different way, and emerging players, not just the obvious incumbents. For each genuinely NEW one (not already a competitor in our ecosystem), propose it as a `competitor` entity and ALWAYS include its `website` (its canonical URL) as the dedup key \u2014 never create a company whose website already matches one we track. Skip anything already known. Report what you added, the search angles you covered, and why each new one matters.',
17538
- "schedule": {
17539
- "cron": "0 9 * * 1",
17540
- "enabled": false
17541
- },
17557
+ "activators": [
17558
+ {
17559
+ "on": "schedule",
17560
+ "cron": "0 9 * * 1",
17561
+ "mode": "run",
17562
+ "startsPaused": true
17563
+ }
17564
+ ],
17542
17565
  "params": [
17543
17566
  {
17544
17567
  "name": "ourSpace",
@@ -18850,10 +18873,14 @@ var DATA = {
18850
18873
  ],
18851
18874
  "executor": "is-agent",
18852
18875
  "status": "active",
18853
- "schedule": {
18854
- "cron": "0 8 1 * *",
18855
- "enabled": true
18856
- },
18876
+ "activators": [
18877
+ {
18878
+ "on": "schedule",
18879
+ "cron": "0 8 1 * *",
18880
+ "size": "per_thing",
18881
+ "mode": "run"
18882
+ }
18883
+ ],
18857
18884
  "metadata": {
18858
18885
  "governance": {
18859
18886
  "forceProposeWrites": true
@@ -18953,11 +18980,14 @@ var DATA = {
18953
18980
  "goalTemplate": "Close the month. RECONCILE: compare each account's balance with the bank or payment provider and list every difference, and every account with no bank or payment-provider connection. Stop there: the pod asks the person whether to go on or to connect those accounts first (a connection, never a password in a form) and wakes you with their answer; when they connected them, reconcile those accounts again. RECEIVABLES: list unpaid and overdue invoices and propose a reminder for each overdue one. PAYABLES: list expenses still pending or approved but unpaid. METRICS: record this month's cash in bank, net burn, runway in months and monthly recurring revenue as financial metrics, each with its as-of date and how it was computed. REVIEW: write a one-page month-end note for a person \u2014 what changed, what is at risk, what to decide \u2014 and wait for their approval before closing.",
18954
18981
  "executor": "is-agent",
18955
18982
  "status": "active",
18956
- "schedule": {
18957
- "cron": "0 9 1 * *",
18958
- "enabled": false,
18959
- "mode": "appointment"
18960
- },
18983
+ "activators": [
18984
+ {
18985
+ "on": "schedule",
18986
+ "cron": "0 9 1 * *",
18987
+ "mode": "appointment",
18988
+ "startsPaused": true
18989
+ }
18990
+ ],
18961
18991
  "tools": [
18962
18992
  "fetch_record",
18963
18993
  "list_records"
@@ -35221,8 +35251,8 @@ var vocabularyFr = {
35221
35251
  "action.top_up.past": "Recharg\xE9",
35222
35252
  "action.upgrade.imperative": "Mettre \xE0 niveau",
35223
35253
  "action.upgrade.past": "Mis \xE0 niveau",
35224
- "action.ask_admin.imperative": "Demander \xE0 l\u2019admin",
35225
- "action.ask_admin.past": "Demand\xE9 \xE0 l\u2019admin",
35254
+ "action.ask_admin.imperative": "Demander \xE0 un admin",
35255
+ "action.ask_admin.past": "Demand\xE9 \xE0 un admin",
35226
35256
  "action.fix_payment.imperative": "Corriger le paiement",
35227
35257
  "action.fix_payment.past": "Paiement corrig\xE9",
35228
35258
  "action.reopen.imperative": "Rouvrir",
@@ -35482,7 +35512,8 @@ var vocabularyFr = {
35482
35512
  "status.credits_low": "Cr\xE9dits faibles",
35483
35513
  "status.credits_empty": "Plus de cr\xE9dits",
35484
35514
  "status.not_entitled": "Pas de forfait IA",
35485
- "status.suspended": "Suspendu",
35515
+ "status.account_inactive": "IA d\xE9sactiv\xE9e",
35516
+ "status.suspended": "Paiement requis",
35486
35517
  "status.budget_paused": "En pause",
35487
35518
  "status.provider_issue": "Probl\xE8me d\u2019IA",
35488
35519
  "status.service_down": "IA hors ligne",
@@ -36441,7 +36472,7 @@ var ACTION_VERB_ROWS = {
36441
36472
  // they cannot pay; `upgrade` also covers renewing a plan that has no AI.
36442
36473
  top_up: { imperative: "Top up", past: "Topped up" },
36443
36474
  upgrade: { imperative: "Upgrade", past: "Upgraded" },
36444
- ask_admin: { imperative: "Ask admin", past: "Asked admin" },
36475
+ ask_admin: { imperative: "Ask an admin", past: "Asked an admin" },
36445
36476
  fix_payment: { imperative: "Fix payment", past: "Fixed payment" },
36446
36477
  // Put a REJECTED proposal back in the queue — the inverse of reject. Without
36447
36478
  // a row `resolveActionLabel("reopen", …)` fell through to `humanizeToken`,
@@ -37045,10 +37076,14 @@ var STATUS_LABEL_ROWS = {
37045
37076
  public: "Public",
37046
37077
  // AI AVAILABILITY (`AiAvailabilityKind`, `@synap-core/types/ai-availability`)
37047
37078
  // — the short state chip. Headlines and CTAs live in that module's copy deck.
37079
+ // `suspended` says what the payer does, as the deck's title does: humanized,
37080
+ // "Suspended" named no cause. `account_inactive` is the `not_entitled` chip
37081
+ // when AI was switched off rather than left out of the plan.
37048
37082
  credits_low: "Low credits",
37049
37083
  credits_empty: "Out of credits",
37050
37084
  not_entitled: "No AI plan",
37051
- suspended: "Suspended",
37085
+ account_inactive: "AI turned off",
37086
+ suspended: "Payment needed",
37052
37087
  budget_paused: "Paused",
37053
37088
  provider_issue: "AI issue",
37054
37089
  service_down: "AI offline",
@@ -37998,6 +38033,12 @@ function checkProcessContract(tpl, resolveDep, corpus, add) {
37998
38033
  `${at}.${field}`,
37999
38034
  `playbook "${pb.name}" declares ${field} \u2014 retired: the process follows the kind's declared lifecycle (a person-only status is \`humanOnly\` on that lifecycle, a status no stage owns is derived, and a session end moves nothing)`
38000
38035
  );
38036
+ if (raw.schedule !== void 0 && raw.schedule !== null)
38037
+ add(
38038
+ "playbook-field-retired",
38039
+ `${at}.schedule`,
38040
+ `playbook "${pb.name}" declares schedule \u2014 retired: declare a schedule activator ({ on: schedule, cron, mode }; enabled: false is startsPaused: true)`
38041
+ );
38001
38042
  let statuses = null;
38002
38043
  let labels = null;
38003
38044
  let lifecycleProperty;
@@ -38066,16 +38107,17 @@ function checkProcessContract(tpl, resolveDep, corpus, add) {
38066
38107
  const ap = `${at}.activators[${i}]`;
38067
38108
  if (!TEMPLATE_ACTIVATOR_ON.includes(a.on))
38068
38109
  add("activator-on-invalid", `${ap}.on`, `${ap}.on "${String(a.on)}" must be one of ${TEMPLATE_ACTIVATOR_ON.join(", ")}`);
38069
- if (a.mode !== "run" && a.mode !== "propose")
38070
- add("activator-mode-invalid", `${ap}.mode`, `${ap}.mode "${String(a.mode)}" must be "run" or "propose"`);
38071
- if (!kind)
38110
+ if (a.mode !== "run" && a.mode !== "propose" && a.mode !== "appointment")
38111
+ add("activator-mode-invalid", `${ap}.mode`, `${ap}.mode "${String(a.mode)}" must be "run", "propose" or "appointment"`);
38112
+ if (!kind && a.on !== "schedule")
38072
38113
  add("activator-no-subject", ap, `${ap} needs subjectProfile.profileSlug \u2014 an activator fires on an entity of that kind`);
38073
38114
  if (a.on === "enters_status" || a.on === "count") {
38074
38115
  if (a.status === void 0)
38075
38116
  add("activator-status-required", `${ap}.status`, `${ap} on "${a.on}" names no status`);
38076
38117
  else checkStatus("activator-status-unknown", `${ap}.status`, a.status);
38077
38118
  } else if (a.on === "schedule") {
38078
- if (a.status !== void 0) checkStatus("activator-status-unknown", `${ap}.status`, a.status);
38119
+ for (const st of a.status === void 0 ? [] : typeof a.status === "string" ? [a.status] : a.status)
38120
+ checkStatus("activator-status-unknown", `${ap}.status`, st);
38079
38121
  } else if (a.status !== void 0) {
38080
38122
  add("activator-status-unexpected", `${ap}.status`, `${ap}.status is not read when on = "${a.on}"`);
38081
38123
  }