@synap-core/workspace-templates 0.62.0 → 0.64.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 +1 -1
- package/capabilities/design.capability.json +19 -1
- package/dist/{define-KudS9Ja_.d.ts → define-gpV3Inzh.d.ts} +16 -16
- package/dist/index.d.ts +2 -2
- package/dist/index.js +149 -37
- package/dist/index.js.map +1 -1
- package/dist/wire.d.ts +1 -1
- package/package.json +1 -1
- package/src/agency-os.yaml +2 -1
- package/src/content-os.campaigns.template.test.ts +127 -0
- package/src/content-os.template.test.ts +6 -7
- package/src/content-os.yaml +159 -48
- package/src/crm.yaml +2 -3
- package/src/decisions-wave.template.test.ts +4 -3
- package/src/ecosystem.yaml +8 -6
- package/src/finance.yaml +7 -7
- package/src/process-contract.validate.test.ts +14 -1
- package/src/templates.ts +138 -33
- package/src/types.ts +16 -16
- package/src/validate.ts +12 -4
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ How installs, reconciles and tiers work is in the `synap-market` skill
|
|
|
26
26
|
| `views/<slug>.view.json` | `view` | Manifest; `spec.views` in the canonical shape the CP stores (`{slug, displayName, type, config, scopeProfileSlugs}`) | Category `view`. Three today (`bookmark-views-pack`, `event-views-pack`, `task-views-pack`), moved from the old CP pack fragments on 2026-11-05. CI on every push to main |
|
|
27
27
|
| `automations/<slug>.automation.json` | `automation` | bridge-setup `flowDefinition` form, plus a header `automations/<slug>.catalog.json` beside it | Only with its header, and only without apply-time placeholders. Headers decided by the founder on 2026-11-05: `bookmark-enrichment` public; `url-bookmark-capture`, `github-pr-events` and the five `ship-a-change-*` unlisted. `mail-feed` stays **staged**: it carries two placeholders bridge-setup fills |
|
|
28
28
|
| `agents/<slug>.agent.yaml` | `agent` | Manifest. `spec` (`schema/agent.ts`) is what the pod reads as `definition.agent`: `harness` (the `agent_type` join key), `aliases`, `worker`, `tried`, `detect`, `wake` (data: `program` + `args` + `params`, never a shell line; required for a worker only), `practices.skills`, `mcp` (where its program reads MCP servers: `config` under ~/, `format` yaml/json, `key` dot path, `entry`; the CLI writes the pod's server there on `synap agents add`, the pod ignores it), `toolProfile` (`entry` / `builder`) + `toolGroups` (only with `entry`): the MCP tools an agent's first key lists, read by the pod (backend#900). One per program of the backend harness registry, plus `hermes`. CP category `agent`, official vendor only, left out of browse lists (the catalog installs every official agent on every pod, founder decision D8) | Yes, on every push to main, like every other kind (the first publish was the founder's, by hand, on 2026-11-07; `FIRST_PUBLISH_BY_HAND` is empty since) |
|
|
29
|
-
| `renderer-bundles/<slug>.yaml` | `renderer-bundle` | Manifest (`schema/renderer-bundle.ts`): the cells (each an entry module under `packages/web/src/renderer-bundle/cells/`, importing only the bundle's kit `space-packages/kit-bundle.ts`), and the host's fallbacks (`defaults`). `pnpm --filter @synap-core/workspace-templates build:renderer-bundle` builds `renderer-bundles/built/<slug>.definition.json` (the `RendererBundleDefinition`: its own React, kit and tokens, the cells' code, every sha256) and `<slug>.build.json` (inputs
|
|
29
|
+
| `renderer-bundles/<slug>.yaml` | `renderer-bundle` | Manifest (`schema/renderer-bundle.ts`): the cells (each an entry module under `packages/web/src/renderer-bundle/cells/`, importing only the bundle's kit `space-packages/kit-bundle.ts`), and the host's fallbacks (`defaults`). `pnpm --filter @synap-core/workspace-templates build:renderer-bundle` builds `renderer-bundles/built/<slug>.definition.json` (the `RendererBundleDefinition`: its own React, kit and tokens, the cells' code, every sha256) and `<slug>.build.json` (inputs, the commits it was built from, the tRPC trace). Neither is committed (`built/` is gitignored): the publish workflow builds them from the commit it publishes, and `scripts/build-renderer-bundle.test.ts` runs the same build and checks it. Never in the npm package (`files`). Licence PolyForm Noncommercial 1.0.0 | Category `renderer-bundle`, private, never synced: the CP delivers it to any live pod a Synap plan covers (decision c91d26dc; founder, 20 Nov 2026). CI on every push to main, once the CP accepts the category |
|
|
30
30
|
| `schema/` | | Zod manifest schema: `header.ts`, plus one body per kind (`workspace`, `capability`, `skill`, `automation`, `view`, `agent`, `playbook`) | |
|
|
31
31
|
| `standards/*.standard.yaml` | | Quality standard per workspace (`pnpm eval`) | |
|
|
32
32
|
| `scripts/catalog-lib.mjs` | | **The ONE lib**: `loadCatalog` → `validateCatalog` → `diffCatalog` → `publishCatalog` | |
|
|
@@ -52,6 +52,23 @@
|
|
|
52
52
|
"type": "string",
|
|
53
53
|
"format": "uuid",
|
|
54
54
|
"description": "The app (devplane_app) a design is for. Its designs are drawn with the app's own component kit when it has one (its `design-kit`); omit it for Synap's own components."
|
|
55
|
+
},
|
|
56
|
+
"detail": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"enum": [
|
|
59
|
+
"summary",
|
|
60
|
+
"full"
|
|
61
|
+
],
|
|
62
|
+
"description": "summary (default): every block's prop names and kinds, no select options. full: every prop spec (long: read the blocks you use with `components` instead)."
|
|
63
|
+
},
|
|
64
|
+
"components": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"items": {
|
|
67
|
+
"type": "string"
|
|
68
|
+
},
|
|
69
|
+
"minItems": 1,
|
|
70
|
+
"maxItems": 100,
|
|
71
|
+
"description": "Block names (kit components or canvas blocks): only these, with their full prop specs (select options, list items, slot rules). Names the catalog does not declare come back in `unknown`."
|
|
55
72
|
}
|
|
56
73
|
},
|
|
57
74
|
"additionalProperties": false
|
|
@@ -2853,6 +2870,7 @@
|
|
|
2853
2870
|
}
|
|
2854
2871
|
}
|
|
2855
2872
|
}
|
|
2856
|
-
}
|
|
2873
|
+
},
|
|
2874
|
+
"provides": []
|
|
2857
2875
|
}
|
|
2858
2876
|
}
|
|
@@ -471,11 +471,8 @@ interface TemplatePlaybook {
|
|
|
471
471
|
aiReactionMode?: "on_mention" | "always" | "never";
|
|
472
472
|
};
|
|
473
473
|
/**
|
|
474
|
-
*
|
|
475
|
-
*
|
|
476
|
-
* `enabled` is read STRICTLY (`materializePlaybookCronAutomation` requires
|
|
477
|
-
* `enabled === true`) — omit it and the backing cron is NEVER created, so the
|
|
478
|
-
* playbook silently never fires. Always set it explicitly.
|
|
474
|
+
* RETIRED: declare a `schedule` activator instead. The pod still accepts it
|
|
475
|
+
* and folds it into one (`enabled: false` → `startsPaused`).
|
|
479
476
|
*/
|
|
480
477
|
schedule?: {
|
|
481
478
|
cron: string;
|
|
@@ -514,11 +511,8 @@ interface TemplatePlaybook {
|
|
|
514
511
|
subjectProfile?: {
|
|
515
512
|
profileSlug: string;
|
|
516
513
|
/**
|
|
517
|
-
* Narrows a
|
|
518
|
-
* `{ "properties.<key>": value }
|
|
519
|
-
* keeps only a string (`readSubjectProfile`, synap-backend
|
|
520
|
-
* cron-automation.ts) — an object would be dropped, and an unfiltered AI
|
|
521
|
-
* fan-out is refused, so the schedule would silently never be created.
|
|
514
|
+
* Narrows the set of a per_thing `schedule` activator: a JSON string of
|
|
515
|
+
* `{ "properties.<key>": value }` (the pod's query filter grammar).
|
|
522
516
|
*/
|
|
523
517
|
filter?: string;
|
|
524
518
|
};
|
|
@@ -692,19 +686,25 @@ interface TemplateCriterion {
|
|
|
692
686
|
interface TemplatePlaybookActivator {
|
|
693
687
|
/**
|
|
694
688
|
* `created` / `enters_status` per thing; `count` (≥ `min` things in
|
|
695
|
-
* `status`)
|
|
689
|
+
* `status`) over the whole set; `schedule` (on `cron`) over the set, once
|
|
690
|
+
* per thing (`per_thing`), or once per tick with no subject; `manual` a
|
|
696
691
|
* button that compiles no rule. The pod's grammar (`ACTIVATOR_ON`).
|
|
697
692
|
*/
|
|
698
693
|
on: "created" | "enters_status" | "count" | "schedule" | "manual";
|
|
699
|
-
/** Required for `enters_status` / `count`, optional for `schedule
|
|
700
|
-
status?: string;
|
|
701
|
-
/** Required for `schedule
|
|
694
|
+
/** Required for `enters_status` / `count`, optional for `schedule` (a list there): a value of the status property. */
|
|
695
|
+
status?: string | string[];
|
|
696
|
+
/** Required for `schedule`. */
|
|
702
697
|
cron?: string;
|
|
698
|
+
/** `schedule`: the IANA zone of `cron`; absent = the owner's zone. */
|
|
699
|
+
timezone?: string;
|
|
700
|
+
/** `schedule`: installed paused, a person turns it on. */
|
|
701
|
+
startsPaused?: true;
|
|
703
702
|
/** Required for `count`. */
|
|
704
703
|
min?: number;
|
|
705
|
-
/** `per_thing` (default) or `per_moment`; count
|
|
704
|
+
/** `per_thing` (default) or `per_moment`; count is per_moment, schedule defaults to it. */
|
|
706
705
|
size?: "per_thing" | "per_moment";
|
|
707
|
-
|
|
706
|
+
/** `appointment` (schedule only): each tick opens a session that waits for a person. */
|
|
707
|
+
mode: "run" | "propose" | "appointment";
|
|
708
708
|
/** Pending approvals before the worker stops starting runs (default 20). */
|
|
709
709
|
maxPendingApprovals?: number;
|
|
710
710
|
/** Per-thing `created` / `enters_status` only: leave out a thing that carries this property. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WorkspaceYaml, T as TemplateDependency, a as TemplateLifecycleOption, b as TemplateLifecycleOptionWaits } from './define-
|
|
2
|
-
export { B as BentoViewBlockWire, c as BentoWidgetBlockWire, d as BuiltSpacePackage, e as BuiltSpacePackageCell, I as INTENT_LABEL_MAX, P as PACKAGE_DEPENDENCY_KINDS, f as PackageAutomationWire, g as PackageDefinitionOutput, h as PackageDependencyKind, S as START_EXAMPLE_RANGE, i as START_STARTERS_RANGE, j as START_VIEWS_MAX, k as SpacePackageCellWire, l as SplitBentoBlocks, m as TemplateActionPlacement, n as TemplateAppKind, o as TemplateAppRef, p as TemplateAutomation, q as TemplateBentoBlock, r as TemplateDefaultSource, s as TemplateDisplayTemplate, t as TemplateEntityLink, u as TemplateExtendsRef, v as TemplateIntegration, w as TemplateIntent, x as TemplateLayoutConfig, y as TemplateMeta, z as TemplateOnboarding, A as TemplateOnboardingCollectTarget, C as TemplatePlaybook, D as TemplatePlaybookParam, E as TemplatePrimarySurface, F as TemplateProfile, G as TemplateProfileEntityBentoTemplates, H as TemplateProperty, J as TemplateSeedEntity, K as TemplateSidebarItem, L as TemplateSidebarSurface, M as TemplateSourceRole, N as TemplateSpacePackage, O as TemplateSpacePackageCell, Q as TemplateStart, R as TemplateSuggestedRelation, U as TemplateView, V as ToDefinitionResult, X as WorkspaceDefinitionInput, Y as WorkspaceJsonValue, Z as WorkspacePrimarySurface, _ as WorkspacePrimarySurfaceViewReference, $ as normalizeTemplateLayout, a0 as spacePackageCells, a1 as splitBentoBlocks, a2 as toAutomationWire, a3 as toPackageDefinition, a4 as toWorkspaceDefinition } from './define-
|
|
1
|
+
import { W as WorkspaceYaml, T as TemplateDependency, a as TemplateLifecycleOption, b as TemplateLifecycleOptionWaits } from './define-gpV3Inzh.js';
|
|
2
|
+
export { B as BentoViewBlockWire, c as BentoWidgetBlockWire, d as BuiltSpacePackage, e as BuiltSpacePackageCell, I as INTENT_LABEL_MAX, P as PACKAGE_DEPENDENCY_KINDS, f as PackageAutomationWire, g as PackageDefinitionOutput, h as PackageDependencyKind, S as START_EXAMPLE_RANGE, i as START_STARTERS_RANGE, j as START_VIEWS_MAX, k as SpacePackageCellWire, l as SplitBentoBlocks, m as TemplateActionPlacement, n as TemplateAppKind, o as TemplateAppRef, p as TemplateAutomation, q as TemplateBentoBlock, r as TemplateDefaultSource, s as TemplateDisplayTemplate, t as TemplateEntityLink, u as TemplateExtendsRef, v as TemplateIntegration, w as TemplateIntent, x as TemplateLayoutConfig, y as TemplateMeta, z as TemplateOnboarding, A as TemplateOnboardingCollectTarget, C as TemplatePlaybook, D as TemplatePlaybookParam, E as TemplatePrimarySurface, F as TemplateProfile, G as TemplateProfileEntityBentoTemplates, H as TemplateProperty, J as TemplateSeedEntity, K as TemplateSidebarItem, L as TemplateSidebarSurface, M as TemplateSourceRole, N as TemplateSpacePackage, O as TemplateSpacePackageCell, Q as TemplateStart, R as TemplateSuggestedRelation, U as TemplateView, V as ToDefinitionResult, X as WorkspaceDefinitionInput, Y as WorkspaceJsonValue, Z as WorkspacePrimarySurface, _ as WorkspacePrimarySurfaceViewReference, $ as normalizeTemplateLayout, a0 as spacePackageCells, a1 as splitBentoBlocks, a2 as toAutomationWire, a3 as toPackageDefinition, a4 as toWorkspaceDefinition } from './define-gpV3Inzh.js';
|
|
3
3
|
import '@synap-core/types/presentation';
|
|
4
4
|
import '@synap-core/types/space-brief';
|
|
5
5
|
import '@synap-core/types/capability-intents';
|
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
|
-
"
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
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",
|
|
@@ -10717,6 +10720,13 @@ var DATA = {
|
|
|
10717
10720
|
"targetProfileSlug": "pillar",
|
|
10718
10721
|
"inputType": "entity_select"
|
|
10719
10722
|
},
|
|
10723
|
+
{
|
|
10724
|
+
"slug": "idea-campaign",
|
|
10725
|
+
"label": "Campaign",
|
|
10726
|
+
"valueType": "entity_id",
|
|
10727
|
+
"targetProfileSlug": "campaign",
|
|
10728
|
+
"inputType": "entity_select"
|
|
10729
|
+
},
|
|
10720
10730
|
{
|
|
10721
10731
|
"slug": "idea-stage",
|
|
10722
10732
|
"label": "Journey Stage",
|
|
@@ -11863,6 +11873,13 @@ var DATA = {
|
|
|
11863
11873
|
"video-capture",
|
|
11864
11874
|
"carousel"
|
|
11865
11875
|
]
|
|
11876
|
+
},
|
|
11877
|
+
{
|
|
11878
|
+
"slug": "composition-campaign",
|
|
11879
|
+
"label": "Campaign",
|
|
11880
|
+
"valueType": "entity_id",
|
|
11881
|
+
"targetProfileSlug": "campaign",
|
|
11882
|
+
"inputType": "entity_select"
|
|
11866
11883
|
}
|
|
11867
11884
|
]
|
|
11868
11885
|
},
|
|
@@ -12535,6 +12552,18 @@ var DATA = {
|
|
|
12535
12552
|
"type": "belongs_to_pillar",
|
|
12536
12553
|
"label": "Pillar"
|
|
12537
12554
|
},
|
|
12555
|
+
{
|
|
12556
|
+
"sourceProfileSlug": "idea",
|
|
12557
|
+
"targetProfileSlug": "campaign",
|
|
12558
|
+
"type": "part_of_campaign",
|
|
12559
|
+
"label": "Campaign"
|
|
12560
|
+
},
|
|
12561
|
+
{
|
|
12562
|
+
"sourceProfileSlug": "content-composition",
|
|
12563
|
+
"targetProfileSlug": "campaign",
|
|
12564
|
+
"type": "part_of_campaign",
|
|
12565
|
+
"label": "Campaign"
|
|
12566
|
+
},
|
|
12538
12567
|
{
|
|
12539
12568
|
"sourceProfileSlug": "content-composition",
|
|
12540
12569
|
"targetProfileSlug": "post",
|
|
@@ -12995,9 +13024,9 @@ var DATA = {
|
|
|
12995
13024
|
{
|
|
12996
13025
|
"name": "Plan Next Content",
|
|
12997
13026
|
"description": "Audit the whole corpus against the journey, find the gap, propose what to make next, and propose dates for the posts that have none or whose date has passed.",
|
|
12998
|
-
"goalTemplate":
|
|
13027
|
+
"goalTemplate": `Plan the next content. THREE RULES FIRST (founder, 9 Nov 2026): (A) Only POSTS are planned. A recording, a free take, a composition or a board is raw material that posts are made FROM; never give one a slot or a date, and never treat a post that is only a take (tag source:take, no finished cut) as publishable. (B) The rhythm is the campaign's: which days it publishes and what each day carries (for example one produced video plus one companion carousel on the same idea) are written on the campaign (its notes or its plan document), never in this text. When the rhythm pairs formats, a companion never goes out alone: if a day has no finished lead piece, propose the piece to make (its idea, hook and format), not a lone companion. (C) You change nothing yourself: every new date, swap or move is filed as a proposal for the person (a capture or a proposed update), never applied directly, so never apply a date yourself; your final message must say exactly what is applied and what is proposed, read back from the records. WHICH CAMPAIGN: when this run has a subject, it is the campaign to plan, and you plan THAT campaign only: its dates (campaign-start-date, campaign-end-date), its goal, its audience, its notes and its plan document, its ideas (idea-campaign), its pieces (composition-campaign) and its posts (post-campaign). With no subject, plan every active campaign whose dates cover the coming weeks, each on its own rhythm; when none is active, plan without one and say so. Read the campaign's plan document first: its BACKBONE is the fixed series of slots and its BANK is every post at Idea or Briefed that has no slot yet, with the campaign's ideas and pieces (ideas from interviews, notes, news). Audit the corpus: map every post onto its pillar and its journey stage, list the pillar \xD7 stage cells that are empty or thin, and check the running series for the missing chapter. Then place the flow: for each bank idea, decide where it goes and say why: (1) TIMELY (news, a release, something people talk about this week): the next free day, or replace the backbone slot whose topic it covers better; (2) FITS THIS WEEK'S STAGE (the journey's stages in their order): swap it with the backbone slot of the same stage; (3) otherwise it waits in the bank. A displaced slot moves later, never silently dropped. Propose the coming week's days on the campaign's rhythm, with the reason for each (new pieces as post entities at Idea with their post-campaign set, existing ones as proposed date changes); the person decides every swap. When the campaign states no rhythm, follow each publishing account's cadence (platform-posting-freq on its platform) and each pillar's target (posting-frequency on the pillar). Keep a campaign's posts inside its dates, never put two posts of one account on the same day, never move a Published or Archived post, and never change a post's status. If the pod has offers, note which ones no content teaches toward; if it has none, plan purely for audience-building and do not invent commerce. When an input is missing (no rhythm, no cadence, no plan document), say which one in the run's summary and plan without it. Say "agent", never "AI".`,
|
|
12999
13028
|
"subjectProfile": {
|
|
13000
|
-
"profileSlug": "
|
|
13029
|
+
"profileSlug": "campaign"
|
|
13001
13030
|
},
|
|
13002
13031
|
"activators": [
|
|
13003
13032
|
{
|
|
@@ -13011,6 +13040,63 @@ var DATA = {
|
|
|
13011
13040
|
"mode": "propose"
|
|
13012
13041
|
}
|
|
13013
13042
|
],
|
|
13043
|
+
"stages": [
|
|
13044
|
+
{
|
|
13045
|
+
"key": "read",
|
|
13046
|
+
"name": "Read the calendar and the corpus",
|
|
13047
|
+
"category": "started",
|
|
13048
|
+
"tier": "quick",
|
|
13049
|
+
"goal": "Read the campaign (the run's subject, else every active campaign): its plan document (backbone and bank), its rhythm, its ideas and its pieces, and list the posts with their status, pillar, stage, campaign and date. Read by id; write a short summary in the room and do not re-read it later."
|
|
13050
|
+
},
|
|
13051
|
+
{
|
|
13052
|
+
"key": "audit",
|
|
13053
|
+
"name": "Audit pillar x stage",
|
|
13054
|
+
"category": "started",
|
|
13055
|
+
"tier": "deep",
|
|
13056
|
+
"goal": "Map every post onto its pillar and journey stage, list empty or thin cells, name the missing chapter of the running series, and note offers no content teaches toward (or say there are none). Write the result in the room."
|
|
13057
|
+
},
|
|
13058
|
+
{
|
|
13059
|
+
"key": "place",
|
|
13060
|
+
"name": "Place the bank and the week",
|
|
13061
|
+
"category": "started",
|
|
13062
|
+
"tier": "deep",
|
|
13063
|
+
"goal": "For each bank idea decide timely / fits this week's stage / waits, with the reason. Propose the coming week's days on the campaign's rhythm. Every date change or swap is filed as a proposal; never apply it."
|
|
13064
|
+
},
|
|
13065
|
+
{
|
|
13066
|
+
"key": "file",
|
|
13067
|
+
"name": "File the plan and the next post idea",
|
|
13068
|
+
"category": "completed",
|
|
13069
|
+
"tier": "quick",
|
|
13070
|
+
"goal": "Create the plan document and the Next post idea (status Idea, no date), record both on the session, and post one message that says what is applied and what is proposed, read back from the records."
|
|
13071
|
+
}
|
|
13072
|
+
],
|
|
13073
|
+
"criteria": [
|
|
13074
|
+
{
|
|
13075
|
+
"key": "nothing-applied-directly",
|
|
13076
|
+
"statement": "No post date or status was changed directly: every date change is a pending proposal, and the final message says applied = none.",
|
|
13077
|
+
"required": true,
|
|
13078
|
+
"check": {
|
|
13079
|
+
"kind": "judge",
|
|
13080
|
+
"hint": "Compare the final message with the records' updatedAt."
|
|
13081
|
+
}
|
|
13082
|
+
},
|
|
13083
|
+
{
|
|
13084
|
+
"key": "rhythm-kept",
|
|
13085
|
+
"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.",
|
|
13086
|
+
"required": true,
|
|
13087
|
+
"check": {
|
|
13088
|
+
"kind": "judge"
|
|
13089
|
+
}
|
|
13090
|
+
},
|
|
13091
|
+
{
|
|
13092
|
+
"key": "outputs-filed",
|
|
13093
|
+
"statement": "The Next post idea and the plan document are recorded on the session before it ends, within one run's turns and without a 'Keep the run going' ask.",
|
|
13094
|
+
"required": true,
|
|
13095
|
+
"check": {
|
|
13096
|
+
"kind": "judge"
|
|
13097
|
+
}
|
|
13098
|
+
}
|
|
13099
|
+
],
|
|
13014
13100
|
"expectedOutputs": [
|
|
13015
13101
|
{
|
|
13016
13102
|
"kind": "post",
|
|
@@ -13413,7 +13499,7 @@ var DATA = {
|
|
|
13413
13499
|
{
|
|
13414
13500
|
"name": "Derive outputs",
|
|
13415
13501
|
"description": "Make posts from a piece, spread over two weeks on the accounts you pick (several per account, never two on one account the same day), each linked to the piece, and optionally a newsletter issue.",
|
|
13416
|
-
"goalTemplate": "Derive outputs from this piece ({piece}). Read the piece's body (its document) first. Then create {posts} posts (six when that is empty), each a `post` at Idea (post-status Idea), linked derived_from the piece. Accounts: {accounts} (each a platform entity's id and name; when empty, ask the person which accounts, offering first those whose default-project-id is a project the piece is filed in). Give each post its account (post-account, the platform's id) and a publish-date, spread over the two weeks starting {from} (today when it is empty): several posts per account, never two posts on one account the same day, and skip any day an account already has a post (read that account's posts first). Each post gets its own post-hook and its own text (in `content`), taken from the piece's own words, cut and shaped for the account's platform; never a claim the piece does not make, and no two posts with the same angle. Set post-platform from the account's platform-type. Optionally, when the piece reads as one, add ONE newsletter issue at Idea (newsletter-status Idea) linked derived_from the piece. Create each post and the issue (create_entity), then link each one derived_from the piece (create_relation); each write is a proposal the person approves. The piece's own status is not moved by this run. Nothing is scheduled or published.",
|
|
13502
|
+
"goalTemplate": "Derive outputs from this piece ({piece}). Read the piece's body (its document) first. Then create {posts} posts (six when that is empty), each a `post` at Idea (post-status Idea), linked derived_from the piece. Accounts: {accounts} (each a platform entity's id and name; when empty, ask the person which accounts, offering first those whose default-project-id is a project the piece is filed in). Give each post its account (post-account, the platform's id) and a publish-date, spread over the two weeks starting {from} (today when it is empty): several posts per account, never two posts on one account the same day, and skip any day an account already has a post (read that account's posts first). Each post gets its own post-hook and its own text (in `content`), taken from the piece's own words, cut and shaped for the account's platform; never a claim the piece does not make, and no two posts with the same angle. Set post-platform from the account's platform-type. When the piece has a campaign (composition-campaign), give each post that campaign (post-campaign). Optionally, when the piece reads as one, add ONE newsletter issue at Idea (newsletter-status Idea, and its newsletter-campaign when the piece has one) linked derived_from the piece. Create each post and the issue (create_entity), then link each one derived_from the piece (create_relation); each write is a proposal the person approves. The piece's own status is not moved by this run. Nothing is scheduled or published.",
|
|
13417
13503
|
"subjectProfile": {
|
|
13418
13504
|
"profileSlug": "content-composition"
|
|
13419
13505
|
},
|
|
@@ -13471,10 +13557,10 @@ var DATA = {
|
|
|
13471
13557
|
{
|
|
13472
13558
|
"key": "content-os-weekly-produce",
|
|
13473
13559
|
"name": "Weekly content production",
|
|
13474
|
-
"description": "
|
|
13560
|
+
"description": "Tuesday 09:00. Runs Produce Content once, with no subject. The playbook takes the first eligible pinned post, or the oldest post still in Idea when the pin list has nobody eligible. Shipped paused because Content OS is public: an active cron would spend a run for every installer. Turn it on to start the cycle. Produce Content's own schedule stays off.\n",
|
|
13475
13561
|
"triggerType": "cron",
|
|
13476
13562
|
"triggerConfig": {
|
|
13477
|
-
"expression": "0 9 * *
|
|
13563
|
+
"expression": "0 9 * * 2"
|
|
13478
13564
|
},
|
|
13479
13565
|
"status": "paused",
|
|
13480
13566
|
"flow": {
|
|
@@ -13487,10 +13573,10 @@ var DATA = {
|
|
|
13487
13573
|
"y": 0
|
|
13488
13574
|
},
|
|
13489
13575
|
"data": {
|
|
13490
|
-
"label": "
|
|
13576
|
+
"label": "Tuesday at 09:00",
|
|
13491
13577
|
"triggerType": "cron",
|
|
13492
13578
|
"config": {
|
|
13493
|
-
"expression": "0 9 * *
|
|
13579
|
+
"expression": "0 9 * * 2"
|
|
13494
13580
|
}
|
|
13495
13581
|
}
|
|
13496
13582
|
},
|
|
@@ -15442,10 +15528,13 @@ var DATA = {
|
|
|
15442
15528
|
"name": "CRM Hygiene",
|
|
15443
15529
|
"description": "Always-on maintenance \u2014 enriches stale contacts/companies and flags stalled deals. Every change is proposed for your review, never auto-applied.",
|
|
15444
15530
|
"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.",
|
|
15445
|
-
"
|
|
15446
|
-
|
|
15447
|
-
|
|
15448
|
-
|
|
15531
|
+
"activators": [
|
|
15532
|
+
{
|
|
15533
|
+
"on": "schedule",
|
|
15534
|
+
"cron": "0 8 * * *",
|
|
15535
|
+
"mode": "run"
|
|
15536
|
+
}
|
|
15537
|
+
],
|
|
15449
15538
|
"metadata": {
|
|
15450
15539
|
"governance": {
|
|
15451
15540
|
"forceProposeWrites": true
|
|
@@ -17527,10 +17616,15 @@ var DATA = {
|
|
|
17527
17616
|
}
|
|
17528
17617
|
],
|
|
17529
17618
|
"executor": "is-agent",
|
|
17530
|
-
"
|
|
17531
|
-
|
|
17532
|
-
|
|
17533
|
-
|
|
17619
|
+
"activators": [
|
|
17620
|
+
{
|
|
17621
|
+
"on": "schedule",
|
|
17622
|
+
"cron": "0 9 * * 1",
|
|
17623
|
+
"size": "per_thing",
|
|
17624
|
+
"mode": "run",
|
|
17625
|
+
"startsPaused": true
|
|
17626
|
+
}
|
|
17627
|
+
],
|
|
17534
17628
|
"tools": [
|
|
17535
17629
|
"update_entity",
|
|
17536
17630
|
"exa_search",
|
|
@@ -17543,10 +17637,14 @@ var DATA = {
|
|
|
17543
17637
|
"name": "Discover Competitors",
|
|
17544
17638
|
"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.",
|
|
17545
17639
|
"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.',
|
|
17546
|
-
"
|
|
17547
|
-
|
|
17548
|
-
|
|
17549
|
-
|
|
17640
|
+
"activators": [
|
|
17641
|
+
{
|
|
17642
|
+
"on": "schedule",
|
|
17643
|
+
"cron": "0 9 * * 1",
|
|
17644
|
+
"mode": "run",
|
|
17645
|
+
"startsPaused": true
|
|
17646
|
+
}
|
|
17647
|
+
],
|
|
17550
17648
|
"params": [
|
|
17551
17649
|
{
|
|
17552
17650
|
"name": "ourSpace",
|
|
@@ -18858,10 +18956,14 @@ var DATA = {
|
|
|
18858
18956
|
],
|
|
18859
18957
|
"executor": "is-agent",
|
|
18860
18958
|
"status": "active",
|
|
18861
|
-
"
|
|
18862
|
-
|
|
18863
|
-
|
|
18864
|
-
|
|
18959
|
+
"activators": [
|
|
18960
|
+
{
|
|
18961
|
+
"on": "schedule",
|
|
18962
|
+
"cron": "0 8 1 * *",
|
|
18963
|
+
"size": "per_thing",
|
|
18964
|
+
"mode": "run"
|
|
18965
|
+
}
|
|
18966
|
+
],
|
|
18865
18967
|
"metadata": {
|
|
18866
18968
|
"governance": {
|
|
18867
18969
|
"forceProposeWrites": true
|
|
@@ -18961,11 +19063,14 @@ var DATA = {
|
|
|
18961
19063
|
"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.",
|
|
18962
19064
|
"executor": "is-agent",
|
|
18963
19065
|
"status": "active",
|
|
18964
|
-
"
|
|
18965
|
-
|
|
18966
|
-
|
|
18967
|
-
|
|
18968
|
-
|
|
19066
|
+
"activators": [
|
|
19067
|
+
{
|
|
19068
|
+
"on": "schedule",
|
|
19069
|
+
"cron": "0 9 1 * *",
|
|
19070
|
+
"mode": "appointment",
|
|
19071
|
+
"startsPaused": true
|
|
19072
|
+
}
|
|
19073
|
+
],
|
|
18969
19074
|
"tools": [
|
|
18970
19075
|
"fetch_record",
|
|
18971
19076
|
"list_records"
|
|
@@ -38011,6 +38116,12 @@ function checkProcessContract(tpl, resolveDep, corpus, add) {
|
|
|
38011
38116
|
`${at}.${field}`,
|
|
38012
38117
|
`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)`
|
|
38013
38118
|
);
|
|
38119
|
+
if (raw.schedule !== void 0 && raw.schedule !== null)
|
|
38120
|
+
add(
|
|
38121
|
+
"playbook-field-retired",
|
|
38122
|
+
`${at}.schedule`,
|
|
38123
|
+
`playbook "${pb.name}" declares schedule \u2014 retired: declare a schedule activator ({ on: schedule, cron, mode }; enabled: false is startsPaused: true)`
|
|
38124
|
+
);
|
|
38014
38125
|
let statuses = null;
|
|
38015
38126
|
let labels = null;
|
|
38016
38127
|
let lifecycleProperty;
|
|
@@ -38079,16 +38190,17 @@ function checkProcessContract(tpl, resolveDep, corpus, add) {
|
|
|
38079
38190
|
const ap = `${at}.activators[${i}]`;
|
|
38080
38191
|
if (!TEMPLATE_ACTIVATOR_ON.includes(a.on))
|
|
38081
38192
|
add("activator-on-invalid", `${ap}.on`, `${ap}.on "${String(a.on)}" must be one of ${TEMPLATE_ACTIVATOR_ON.join(", ")}`);
|
|
38082
|
-
if (a.mode !== "run" && a.mode !== "propose")
|
|
38083
|
-
add("activator-mode-invalid", `${ap}.mode`, `${ap}.mode "${String(a.mode)}" must be "run" or "
|
|
38084
|
-
if (!kind)
|
|
38193
|
+
if (a.mode !== "run" && a.mode !== "propose" && a.mode !== "appointment")
|
|
38194
|
+
add("activator-mode-invalid", `${ap}.mode`, `${ap}.mode "${String(a.mode)}" must be "run", "propose" or "appointment"`);
|
|
38195
|
+
if (!kind && a.on !== "schedule")
|
|
38085
38196
|
add("activator-no-subject", ap, `${ap} needs subjectProfile.profileSlug \u2014 an activator fires on an entity of that kind`);
|
|
38086
38197
|
if (a.on === "enters_status" || a.on === "count") {
|
|
38087
38198
|
if (a.status === void 0)
|
|
38088
38199
|
add("activator-status-required", `${ap}.status`, `${ap} on "${a.on}" names no status`);
|
|
38089
38200
|
else checkStatus("activator-status-unknown", `${ap}.status`, a.status);
|
|
38090
38201
|
} else if (a.on === "schedule") {
|
|
38091
|
-
|
|
38202
|
+
for (const st of a.status === void 0 ? [] : typeof a.status === "string" ? [a.status] : a.status)
|
|
38203
|
+
checkStatus("activator-status-unknown", `${ap}.status`, st);
|
|
38092
38204
|
} else if (a.status !== void 0) {
|
|
38093
38205
|
add("activator-status-unexpected", `${ap}.status`, `${ap}.status is not read when on = "${a.on}"`);
|
|
38094
38206
|
}
|