@synap-core/workspace-templates 0.43.0 → 0.44.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/wire.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { g as PackageDefinitionOutput, X as WorkspaceDefinitionInput } from './define-CRNRmaqi.js';
1
+ import { g as PackageDefinitionOutput, X as WorkspaceDefinitionInput } from './define-BAPO0xZf.js';
2
2
  import '@synap-core/types/presentation';
3
3
  import '@synap-core/types/space-brief';
4
4
  import '@synap-core/types/capability-intents';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synap-core/workspace-templates",
3
- "version": "0.43.0",
3
+ "version": "0.44.0",
4
4
  "type": "module",
5
5
  "description": "Canonical workspace definitions — YAML source + typed exports for browser, backend, CLI, and marketplace",
6
6
  "repository": {
@@ -323,8 +323,8 @@ describe("Content OS Repurpose proposes once per original, never for a copy", ()
323
323
 
324
324
  // "Write the caption" (founder, 5 Nov): Content Studio's "Write it for me" runs it on ONE post. It drafts, never
325
325
  // decides. One-shot (plan 08e4fba7, backend#988): the pod makes one call with no tools and files the answer as a
326
- // proposal of the script's "Caption draft" section, never the "Caption" the person saved; the person approves it
327
- // inline. No session, so no ask and nothing to close; it binds no stage and moves no status.
326
+ // proposal of the script's own "## Caption" (backend#1010, owner person): approving it is the one write of the
327
+ // caption. No session, so no ask and nothing to close; it binds no stage and moves no status.
328
328
  describe("Content OS Write the caption drafts one post's caption, never the person's", () => {
329
329
  const playbooks = (template.playbooks ?? []) as TemplatePlaybook[];
330
330
  const caption = playbooks.find((p) => p.name === "Write the caption");
@@ -336,9 +336,9 @@ describe("Content OS Write the caption drafts one post's caption, never the pers
336
336
  expect(caption?.status).toBe("active");
337
337
  });
338
338
 
339
- it("runs one-shot: one call with no tools, its draft landing in the \"Caption draft\" section, never the saved caption", () => {
340
- // backend#988: the pod files the answer as a proposal of the script's "Caption draft" section; the person
341
- // approves it inline. Nothing writes the "Caption" section the person saved, and nothing moves the status.
339
+ it("runs one-shot: one call with no tools, its draft a proposal of the person's own Caption", () => {
340
+ // backend#1010: the pod files the answer as a proposal of the script's plain "## Caption" block (owner person);
341
+ // approving it writes the caption, nothing else does. Nothing moves the status.
342
342
  expect(caption?.executor).toBe("generate");
343
343
  expect(caption?.tools ?? []).toEqual([]);
344
344
  expect(caption?.stages ?? []).toEqual([]);
@@ -346,11 +346,12 @@ describe("Content OS Write the caption drafts one post's caption, never the pers
346
346
  expect(caption?.expectedOutputs).toEqual([
347
347
  expect.objectContaining({
348
348
  kind: "document",
349
- label: "Caption draft",
349
+ label: "Caption",
350
350
  relationToSubject: "none",
351
351
  lands: {
352
352
  target: "subject_document_section",
353
- section: "Caption draft",
353
+ section: "Caption",
354
+ owner: "person",
354
355
  // backend#1005: the person's last decided captions in this space, as examples.
355
356
  examples: { approved: 3, rejected: 3 },
356
357
  },
@@ -2412,16 +2412,19 @@ playbooks:
2412
2412
  # Caption box runs it for that post. ONE-SHOT (executor generate, plan
2413
2413
  # 08e4fba7, backend#988): the pod reads the post's fields and its script
2414
2414
  # document, makes ONE model call with no tools, and files the answer as a
2415
- # PROPOSAL of the script's AI-owned "Caption draft" section (`lands`), never
2416
- # the "Caption" the person saved. No session, no room, no agent turn: the
2417
- # person approves the draft inline in the app or in Needs you. So the goal is
2415
+ # PROPOSAL of the script's own "## Caption" (`lands` owner person,
2416
+ # backend#1010; decision of 10 Nov 2026 "An approved one-shot draft lands in
2417
+ # the person's own target"): approving it IS the write of the caption, with
2418
+ # no AI draft section and no copy by the app. No session, no room, no agent
2419
+ # turn: the person approves (or edits, then approves) inline in the app or in
2420
+ # Needs you. So the goal is
2418
2421
  # a WRITING instruction only: what a good caption is, never a tool or a write
2419
2422
  # (schema/run-tools.guard.test.ts holds a one-shot run to no tools). The
2420
2423
  # brand voice reaches the call as guidance: the approved general and social
2421
2424
  # voice guides (Brand Library, a dependency), since the call cannot look
2422
2425
  # anything up. It binds no stage and never moves the status.
2423
2426
  - name: Write the caption
2424
- description: Draft the caption of one post from its brief and its script, filed as a draft section of its script document for the person to approve.
2427
+ description: Draft the caption of one post from its brief and its script, filed as a proposal of its script's Caption that the person approves.
2425
2428
  goalTemplate: >-
2426
2429
  Write the caption of this post ({post}) from its fields and its script
2427
2430
  below: its hook (post-hook), its call to action (post-cta), its pillar,
@@ -2439,16 +2442,16 @@ playbooks:
2439
2442
  guidance:
2440
2443
  - { ref: "kind:brand-voice-guide", label: Voice, where: { voice-context: [general, social] } }
2441
2444
  # Typed output: the draft lands in the post's own script document, as its
2442
- # "Caption draft" section (a proposal), so nothing new is created and there
2443
- # is no edge to add. `examples` (backend#1005, founder decision 8 of plan
2445
+ # "## Caption" once approved (a proposal of the person's own block until
2446
+ # then), so nothing new is created and there is no edge to add. `examples` (backend#1005, founder decision 8 of plan
2444
2447
  # 08e4fba7): the call also sees the person's last 3 approved captions (as
2445
2448
  # they kept them) and last 3 rejected ones (with their reason when given)
2446
2449
  # from this space, so a draft starts closer to what they keep.
2447
2450
  expectedOutputs:
2448
2451
  - kind: document
2449
- label: Caption draft
2452
+ label: Caption
2450
2453
  relationToSubject: none
2451
- lands: { target: subject_document_section, section: Caption draft, examples: { approved: 3, rejected: 3 } }
2454
+ lands: { target: subject_document_section, section: Caption, owner: person, examples: { approved: 3, rejected: 3 } }
2452
2455
  params:
2453
2456
  - { name: post, type: entity, label: Post, required: true }
2454
2457
  executor: generate
package/src/templates.ts CHANGED
@@ -12598,7 +12598,7 @@ const DATA = {
12598
12598
  },
12599
12599
  {
12600
12600
  "name": "Write the caption",
12601
- "description": "Draft the caption of one post from its brief and its script, filed as a draft section of its script document for the person to approve.",
12601
+ "description": "Draft the caption of one post from its brief and its script, filed as a proposal of its script's Caption that the person approves.",
12602
12602
  "goalTemplate": "Write the caption of this post ({post}) from its fields and its script below: its hook (post-hook), its call to action (post-cta), its pillar, its journey stage, its platform (post-platform) and its format, the script's slides (the S1, S2 lines or the slide table) and any caption already written under \"Caption\". Write ONE caption in the brand voice you are given that says what the slides leave out: a first line that stands on its own before the platform cuts it (Instagram shows about 125 characters before \"more\", LinkedIn about 210 before \"see more\"), then two or three short lines, and the call to action last. No hashtag wall, no emoji run, no claim the script does not make, and no line that starts with \"##\".",
12603
12603
  "subjectProfile": {
12604
12604
  "profileSlug": "post"
@@ -12618,11 +12618,12 @@ const DATA = {
12618
12618
  "expectedOutputs": [
12619
12619
  {
12620
12620
  "kind": "document",
12621
- "label": "Caption draft",
12621
+ "label": "Caption",
12622
12622
  "relationToSubject": "none",
12623
12623
  "lands": {
12624
12624
  "target": "subject_document_section",
12625
- "section": "Caption draft",
12625
+ "section": "Caption",
12626
+ "owner": "person",
12626
12627
  "examples": {
12627
12628
  "approved": 3,
12628
12629
  "rejected": 3
package/src/types.ts CHANGED
@@ -719,6 +719,13 @@ export interface TemplateOutputLanding {
719
719
  target: "subject_document_section";
720
720
  /** The section's title, one line (e.g. "Caption draft"). */
721
721
  section: string;
722
+ /**
723
+ * Whose section (backend#1010): `ai` (default) = an AI-owned section offered
724
+ * as a draft; `person` = the document's plain `## <section>` block (the
725
+ * person's own words, e.g. Content Studio's `## Caption`), replaced on
726
+ * approval, so approving is the one write.
727
+ */
728
+ owner?: "ai" | "person";
722
729
  /**
723
730
  * Past outcomes as context (backend#1005): how many of the person's last
724
731
  * approved and rejected drafts of this playbook in this space the run shows