@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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/content-os.template.test.ts +8 -7
- package/src/content-os.yaml +10 -11
- package/src/templates.ts +1 -1
package/package.json
CHANGED
|
@@ -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"
|
|
326
|
-
//
|
|
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
|
|
341
|
-
// The person
|
|
342
|
-
expect(caption?.goalTemplate).toMatch(/
|
|
343
|
-
expect(caption?.goalTemplate).toMatch(
|
|
344
|
-
expect(caption?.goalTemplate).toMatch(/Never
|
|
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" })]);
|
package/src/content-os.yaml
CHANGED
|
@@ -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
|
|
2413
|
-
#
|
|
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
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
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
|
|
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
|
},
|