@synap-core/workspace-templates 0.38.0 → 0.38.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synap-core/workspace-templates",
3
- "version": "0.38.0",
3
+ "version": "0.38.1",
4
4
  "type": "module",
5
5
  "description": "Canonical workspace definitions — YAML source + typed exports for browser, backend, CLI, and marketplace",
6
6
  "repository": {
@@ -322,8 +322,9 @@ describe("Content OS Repurpose proposes once per original, never for a copy", ()
322
322
  });
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
- // decides: it writes the script's "## Caption draft" section, never the "## Caption" on its own; the person's yes to ONE
326
- // owed confirm ask (or their Save in the app) makes it the caption. It binds no stage and moves no status.
325
+ // decides: it writes the script's "## Caption draft" section, never the "## Caption"; the person's "Use this draft" and
326
+ // Save in the app make it the caption. It raises no ask and closes nothing: a run has no session tools (founder, 9 Nov:
327
+ // the tools win; schema/run-tools.guard.test.ts holds every playbook to that). It binds no stage and moves no status.
327
328
  describe("Content OS Write the caption drafts one post's caption, never the person's", () => {
328
329
  const playbooks = (template.playbooks ?? []) as TemplatePlaybook[];
329
330
  const caption = playbooks.find((p) => p.name === "Write the caption");
@@ -337,11 +338,11 @@ describe("Content OS Write the caption drafts one post's caption, never the pers
337
338
 
338
339
  it("writes the draft section only, never the saved caption, and never moves the status", () => {
339
340
  expect(caption?.goalTemplate).toMatch(/"## Caption draft" section/);
340
- expect(caption?.goalTemplate).toMatch(/Never write or change the "## Caption" section on\s+your own/);
341
- // The person's approval is ONE owed confirm ask; only their yes makes the draft the caption.
342
- expect(caption?.goalTemplate).toMatch(/ONE confirm ask on this session/);
343
- expect(caption?.goalTemplate).toMatch(/On yes, put the draft in\s+the "## Caption" section/);
344
- expect(caption?.goalTemplate).toMatch(/Never move the post's status/);
341
+ expect(caption?.goalTemplate).toMatch(/Never write or change the "## Caption" section:\s+it\s+is the person's/);
342
+ // The person approves in Content Studio ("Use this draft" + Save); the run itself asks nothing and closes nothing.
343
+ expect(caption?.goalTemplate).toMatch(/"Use this draft" and their Save make it the caption/);
344
+ expect(caption?.goalTemplate).not.toMatch(/\bask\b|\bclose\b|\bOn yes\b/i);
345
+ expect(caption?.goalTemplate).toMatch(/Never\s+move the post's status/);
345
346
  expect(caption?.stages ?? []).toEqual([]);
346
347
  expect(caption?.activators ?? []).toEqual([]);
347
348
  expect(caption?.expectedOutputs).toEqual([expect.objectContaining({ kind: "document", label: "Caption draft", relationToSubject: "none" })]);
@@ -2409,8 +2409,11 @@ playbooks:
2409
2409
  # caption so I don't have to"). Content Studio's "Write it for me" on a post's
2410
2410
  # Caption box runs it for that post. It writes a DRAFT, the script document's
2411
2411
  # "## Caption draft" section, never the "## Caption" the person saved; the
2412
- # person approves it through ONE owed confirm ask (yes: the draft becomes the
2413
- # caption) or uses it in the app's Caption box and saves it there. It works
2412
+ # person approves it in the app's Caption box ("Use this draft", then Save).
2413
+ # It raises no ask and closes nothing: a run has no session tools (founder,
2414
+ # 9 Nov: when a playbook's text and its run's tools disagree, the tools win;
2415
+ # the pod, not the agent, raises a person's approval at a run's end;
2416
+ # schema/run-tools.guard.test.ts keeps every playbook to that). It works
2414
2417
  # one post but binds no stage and never moves the status.
2415
2418
  - name: Write the caption
2416
2419
  description: Draft the caption of one post from its brief and its script, as a draft in its script document that the person edits and saves.
@@ -2428,15 +2431,11 @@ playbooks:
2428
2431
  and no line that starts with "##". Put it in the script document as its
2429
2432
  "## Caption draft" section: replace that section if it is there, else add
2430
2433
  it at the end, and change no other line (synap_update_document with the
2431
- revision you read). Never write or change the "## Caption" section on
2432
- your own: it is the person's. Then ask the person to approve your draft:
2433
- ONE confirm ask on this session (owner the person), its prompt the
2434
- caption itself, "Use this caption" recommended. On yes, put the draft in
2435
- the "## Caption" section (replace its words, or add it) and remove the
2436
- "## Caption draft" section, nothing else. On no, leave the draft where it
2437
- is (they may edit it and save it on the post's page in Content Studio,
2438
- which also makes it the caption). Never move the post's status. Close
2439
- this session once the person answered.
2434
+ revision you read). Never write or change the "## Caption" section: it
2435
+ is the person's. They approve your draft on the post's page in Content
2436
+ Studio, where "Use this draft" and their Save make it the caption. Never
2437
+ move the post's status. Stop once the draft is in the document: your
2438
+ answer is the caption draft itself.
2440
2439
  subjectProfile:
2441
2440
  profileSlug: post
2442
2441
  # Typed output: the draft lives in the post's own script document (a
package/src/templates.ts CHANGED
@@ -12534,7 +12534,7 @@ const DATA = {
12534
12534
  {
12535
12535
  "name": "Write the caption",
12536
12536
  "description": "Draft the caption of one post from its brief and its script, as a draft in its script document that the person edits and saves.",
12537
- "goalTemplate": "Draft the caption of this post ({post}). Read the post: its hook (post-hook), its call to action (post-cta), its pillar, its journey stage, its platform (post-platform) and its format. Read its script, the post's own document: its slides (the S1, S2 lines or the slide table) and any caption already written under \"## Caption\". Write ONE caption in the brand voice (the pod's brand kit) 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 \"##\". Put it in the script document as its \"## Caption draft\" section: replace that section if it is there, else add it at the end, and change no other line (synap_update_document with the revision you read). Never write or change the \"## Caption\" section on your own: it is the person's. Then ask the person to approve your draft: ONE confirm ask on this session (owner the person), its prompt the caption itself, \"Use this caption\" recommended. On yes, put the draft in the \"## Caption\" section (replace its words, or add it) and remove the \"## Caption draft\" section, nothing else. On no, leave the draft where it is (they may edit it and save it on the post's page in Content Studio, which also makes it the caption). Never move the post's status. Close this session once the person answered.",
12537
+ "goalTemplate": "Draft the caption of this post ({post}). Read the post: its hook (post-hook), its call to action (post-cta), its pillar, its journey stage, its platform (post-platform) and its format. Read its script, the post's own document: its slides (the S1, S2 lines or the slide table) and any caption already written under \"## Caption\". Write ONE caption in the brand voice (the pod's brand kit) 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 \"##\". Put it in the script document as its \"## Caption draft\" section: replace that section if it is there, else add it at the end, and change no other line (synap_update_document with the revision you read). Never write or change the \"## Caption\" section: it is the person's. They approve your draft on the post's page in Content Studio, where \"Use this draft\" and their Save make it the caption. Never move the post's status. Stop once the draft is in the document: your answer is the caption draft itself.",
12538
12538
  "subjectProfile": {
12539
12539
  "profileSlug": "post"
12540
12540
  },