@synap-core/workspace-templates 0.46.0 → 0.48.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 +4 -3
- package/automations/lead-converted-becomes-client.automation.json +89 -0
- package/automations/lead-converted-becomes-client.catalog.json +13 -0
- package/capabilities/apify.capability.json +8 -1
- package/capabilities/apollo.capability.json +8 -1
- package/capabilities/cal-com.capability.json +8 -1
- package/capabilities/exa.capability.json +8 -1
- package/capabilities/fal-ai.capability.json +8 -1
- package/capabilities/fal-media-lab.capability.json +8 -1
- package/capabilities/fireflies.capability.json +8 -1
- package/capabilities/mailgun.capability.json +8 -1
- package/capabilities/omniroute.capability.json +7 -1
- package/capabilities/posthog-analytics.capability.json +7 -1
- package/capabilities/postiz.capability.json +7 -1
- package/capabilities/replicate-rvm.capability.json +21 -5
- package/capabilities/stripe.capability.json +10 -1
- package/capabilities/unipile-linkedin.capability.json +39 -3
- package/capabilities/vercel.capability.json +8 -1
- package/dist/{define-BAPO0xZf.d.ts → define-Dto5_E47.d.ts} +15 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +623 -96
- package/dist/index.js.map +1 -1
- package/dist/wire.d.ts +1 -1
- package/package.json +1 -1
- package/src/agency-os.yaml +1 -1
- package/src/brand-library.yaml +6 -6
- package/src/builder.yaml +17 -12
- package/src/content-os.template.test.ts +38 -22
- package/src/content-os.video-takes.template.test.ts +4 -2
- package/src/content-os.yaml +33 -23
- package/src/crm-absorbs-outreach.template.test.ts +5 -1
- package/src/crm.yaml +53 -30
- package/src/decisions-wave.template.test.ts +99 -5
- package/src/finance.yaml +11 -6
- package/src/foundation.yaml +22 -10
- package/src/grants.yaml +4 -0
- package/src/intent.test.ts +4 -2
- package/src/lead-automations.test.ts +93 -0
- package/src/lead-becomes-client.template.test.ts +137 -0
- package/src/lifecycle-declarations.test.ts +20 -1
- package/src/lifecycle-presets.test.ts +39 -7
- package/src/marketing.yaml +3 -3
- package/src/operations.yaml +155 -24
- package/src/postiz-contract.test.ts +3 -2
- package/src/process-contract.validate.test.ts +4 -1
- package/src/publish-official-lib.test.ts +8 -7
- package/src/research-base.yaml +2 -2
- package/src/research-decision.yaml +1 -1
- package/src/ship-a-change.template.test.ts +11 -2
- package/src/templates.ts +223 -74
- package/src/types.ts +15 -3
- package/src/unipile-lookups-read-only.test.ts +1 -0
- package/src/validate-flow.ts +15 -1
- package/src/validate.ts +40 -4
|
@@ -39,6 +39,7 @@ const pb = builder.playbooks!.find((p) => p.name === "Ship a change")! as unknow
|
|
|
39
39
|
stages: {
|
|
40
40
|
key: string;
|
|
41
41
|
subjectStatus?: string;
|
|
42
|
+
onApproved?: string;
|
|
42
43
|
gate?: { kind: string };
|
|
43
44
|
onFail?: { toStage: string };
|
|
44
45
|
criteria?: { key: string; check: { kind: string; evidenceKey?: string } }[];
|
|
@@ -74,11 +75,19 @@ describe("Ship a change — the process follows the feature's lifecycle", () =>
|
|
|
74
75
|
expect(pb.subjectProfile.profileSlug).toBe("devplane_feature");
|
|
75
76
|
const options = new Set(feature.lifecycle.options.map((o) => o.key));
|
|
76
77
|
const used = [
|
|
77
|
-
...pb.stages.
|
|
78
|
+
...pb.stages.flatMap((s) => [s.subjectStatus, s.onApproved]).filter(Boolean),
|
|
78
79
|
...(pb.activators ?? []).map((a) => a.status).filter(Boolean),
|
|
79
80
|
];
|
|
80
|
-
|
|
81
|
+
// non-vacuity: spec, in_progress, in_review, done + the worker's spec.
|
|
82
|
+
// `done` stays DECLARED on the last stage (verify) so the follow and
|
|
83
|
+
// flow.of know what it reaches, though nothing approves it (ungated, no
|
|
84
|
+
// output): the pod never writes it, and its goal tells the agent to move
|
|
85
|
+
// the feature, a move the person approves (decision D2).
|
|
86
|
+
expect(used.length).toBeGreaterThanOrEqual(5);
|
|
81
87
|
expect(used.filter((s) => !options.has(s!))).toEqual([]);
|
|
88
|
+
const verify = pb.stages.at(-1)! as { key: string; onApproved?: string; goal?: string };
|
|
89
|
+
expect(verify).toMatchObject({ key: "verify", onApproved: "done" });
|
|
90
|
+
expect(verify.goal).toMatch(/move it to done yourself \(update_entity, featureStatus done/);
|
|
82
91
|
});
|
|
83
92
|
|
|
84
93
|
it("one human gate, at the lab deploy; red checks go back to Build; the PR is a pull_request outcome", () => {
|