@project-ava-supernova/core 0.2.154 → 0.2.156

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.
@@ -16,6 +16,18 @@
16
16
  // plan from a record into an opinion, and the whole point of writing the day
17
17
  // down is that it stays a record.
18
18
  const ISO_DATE = /^\d{4}-\d{2}-\d{2}$/;
19
+ /** Today as a local YYYY-MM-DD — never a UTC slice, which is tomorrow after
20
+ * midnight UTC for anyone east of it and yesterday for anyone west. */
21
+ function localToday() {
22
+ const d = new Date();
23
+ return `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, '0')}-${String(d.getDate()).padStart(2, '0')}`;
24
+ }
25
+ /** Shift a YYYY-MM-DD by whole days, as calendar arithmetic (no timezone). */
26
+ function shiftDay(day, by) {
27
+ const [y, m, d] = day.split('-').map(Number);
28
+ const t = new Date(Date.UTC(y, m - 1, d + by));
29
+ return t.toISOString().slice(0, 10);
30
+ }
19
31
  function store(context) {
20
32
  return context.sharedState?.dayPlanStore ?? null;
21
33
  }
@@ -45,10 +57,15 @@ function describe(items) {
45
57
  const state = r.status === 'done'
46
58
  ? `done${r.done_by ? ` (${r.done_by})` : ''}`
47
59
  : r.status;
48
- return `${where}: ${state}`;
60
+ // His mark, said plainly, and only when he has made one.
61
+ const landed = r.landed === true ? ', LANDED' : r.landed === false ? ', did not land' : '';
62
+ return `${where}: ${state}${landed}`;
49
63
  })
50
64
  .join(', ');
51
65
  lines.push(`- ${when} — ${head.title} [${outputs}]${head.notes ? ` — ${head.notes}` : ''}`);
66
+ const verdicts = [...new Set(rows.map(r => r.ava_verdict).filter((v) => !!v))];
67
+ for (const v of verdicts)
68
+ lines.push(` your verdict: ${v}`);
52
69
  if (rows[0].id)
53
70
  lines.push(` ids: ${rows.map(r => r.id).join(' ')}`);
54
71
  }
@@ -69,6 +86,10 @@ export class DayPlanReadTool {
69
86
  type: 'string',
70
87
  description: 'YYYY-MM-DD, the operator\'s LOCAL day. Omit for today. Call get_datetime rather than assuming what today is.',
71
88
  },
89
+ days_back: {
90
+ type: 'number',
91
+ description: 'Also read this many days BEFORE the date (up to 14) — the fortnight view: what went out, what he marked as landed, and your own verdicts. Use 14 when planning a day, so today is shaped by what actually worked.',
92
+ },
72
93
  },
73
94
  required: [],
74
95
  },
@@ -81,7 +102,38 @@ export class DayPlanReadTool {
81
102
  if (args.date && !date) {
82
103
  return { success: false, output: `Invalid date "${String(args.date)}" — must be YYYY-MM-DD. Call get_datetime and use the local day.` };
83
104
  }
105
+ const raw = args.days_back;
106
+ const back = typeof raw === 'number' && Number.isFinite(raw) ? Math.min(14, Math.max(0, Math.floor(raw))) : 0;
84
107
  try {
108
+ if (back > 0) {
109
+ // A host that cannot read the past must SAY so — an empty fortnight
110
+ // would read as "nothing has worked", which is a claim, not a gap.
111
+ if (typeof s.listRange !== 'function') {
112
+ return { success: false, output: 'This surface cannot read past days, so I cannot see what landed. Do not guess at it.' };
113
+ }
114
+ const end = date ?? localToday();
115
+ const start = shiftDay(end, -back);
116
+ const items = await s.listRange(start, end);
117
+ const byDay = new Map();
118
+ for (const it of items) {
119
+ const list = byDay.get(it.plan_date);
120
+ if (list)
121
+ list.push(it);
122
+ else
123
+ byDay.set(it.plan_date, [it]);
124
+ }
125
+ const days = [...byDay.keys()].sort();
126
+ const judged = items.filter(i => i.landed === true || i.landed === false);
127
+ const landed = items.filter(i => i.landed === true).length;
128
+ const header = judged.length
129
+ ? `${start} to ${end}: he has marked ${judged.length} output${judged.length === 1 ? '' : 's'} — ${landed} landed, ${judged.length - landed} did not.`
130
+ : `${start} to ${end}: he has not marked anything as landed or not yet, so there is no verdict of his to learn from — do not invent one.`;
131
+ return {
132
+ success: true,
133
+ output: [header, ...days.map(d => `\n${d}\n${describe(byDay.get(d) || [])}`)].join('\n'),
134
+ metadata: { count: items.length, from: start, to: end, judged: judged.length, landed },
135
+ };
136
+ }
85
137
  const items = await s.list(date ?? '');
86
138
  return {
87
139
  success: true,
@@ -204,4 +256,61 @@ export class DayPlanItemStatusTool {
204
256
  }
205
257
  }
206
258
  }
259
+ /**
260
+ * Her own verdict on her own work (20 Oct 2026).
261
+ *
262
+ * The operator: "i want ava to always have her say and judge her own work — it
263
+ * is what will help her improve as she has her memory too." He marks what
264
+ * landed; she says what she thinks of what she made. Neither replaces the
265
+ * other, and the disagreements between them are the most useful thing in the
266
+ * record.
267
+ */
268
+ export class DayPlanReviewTool {
269
+ name = 'day_plan_review';
270
+ description = 'Record your own honest verdict on your own work for a story that went out — what worked, what did not, what you would do differently.';
271
+ riskLevel = 'safe';
272
+ requiresConfirmation = false;
273
+ schema = {
274
+ name: 'day_plan_review',
275
+ description: 'Record YOUR verdict on YOUR OWN work for a story that went out: what worked, what did not, and what you would change. '
276
+ + 'Always give one, honestly — a weak post called weak is worth more than a flattering record. '
277
+ + 'Give it on your own judgement of the work, not by echoing his mark: where you and he disagree, that is the thing to learn from. '
278
+ + 'If a verdict teaches you something that should change how you work, save it with memory_save as well.',
279
+ parameters: {
280
+ type: 'object',
281
+ properties: {
282
+ ids: { type: 'array', items: { type: 'string' }, description: 'The item ids this verdict is about, from day_plan_read — one platform, or every platform of the story.' },
283
+ verdict: { type: 'string', description: 'One to three plain sentences. Specific: name the line that worked or the choice that did not.' },
284
+ },
285
+ required: ['ids', 'verdict'],
286
+ },
287
+ };
288
+ async execute(args, context) {
289
+ const s = store(context);
290
+ if (!s)
291
+ return { success: false, output: 'The day plan is not available in this context.' };
292
+ if (typeof s.setVerdict !== 'function') {
293
+ return { success: false, output: 'This surface cannot record a verdict. Say it to him in the chat instead, and save the lesson with memory_save.' };
294
+ }
295
+ const ids = Array.isArray(args.ids) ? args.ids.map(String).map(x => x.trim()).filter(Boolean) : [];
296
+ const verdict = typeof args.verdict === 'string' ? args.verdict.trim() : '';
297
+ if (!ids.length)
298
+ return { success: false, output: 'Missing `ids` — read the plan first to get them.' };
299
+ if (!verdict)
300
+ return { success: false, output: 'An empty verdict is not a verdict. Say what you actually think of the work.' };
301
+ try {
302
+ const n = await s.setVerdict(ids, verdict);
303
+ if (n === 0)
304
+ return { success: false, output: 'None of those ids are on the plan — read it again for the right ones.' };
305
+ return {
306
+ success: true,
307
+ output: `Verdict recorded on ${n} item${n === 1 ? '' : 's'}. If it changes how you will work, save the lesson with memory_save.`,
308
+ metadata: { updated: n },
309
+ };
310
+ }
311
+ catch (err) {
312
+ return { success: false, output: `Could not record the verdict: ${err instanceof Error ? err.message : String(err)}` };
313
+ }
314
+ }
315
+ }
207
316
  //# sourceMappingURL=day-plan.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"day-plan.js","sourceRoot":"","sources":["../../src/tools/day-plan.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,gCAAgC;AAChC,EAAE;AACF,8EAA8E;AAC9E,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,4DAA4D;AAC5D,EAAE;AACF,4EAA4E;AAC5E,6EAA6E;AAC7E,gFAAgF;AAChF,6EAA6E;AAC7E,kCAAkC;AAMlC,MAAM,QAAQ,GAAG,qBAAqB,CAAC;AAEvC,SAAS,KAAK,CAAC,OAA6B;IAC1C,OAAQ,OAAO,CAAC,WAAW,EAAE,YAAyC,IAAI,IAAI,CAAC;AACjF,CAAC;AAED,gEAAgE;AAChE,SAAS,QAAQ,CAAC,KAAgD;IAChE,IAAI,CAAC,KAAK,CAAC,MAAM;QAAE,OAAO,kBAAkB,CAAC;IAE7C,MAAM,MAAM,GAAG,IAAI,GAAG,EAAwB,CAAC;IAC/C,KAAK,MAAM,EAAE,IAAI,KAAK,EAAE,CAAC;QACvB,MAAM,GAAG,GAAG,EAAE,CAAC,QAAQ,IAAI,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAC;QAC3C,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAC7B,IAAI,IAAI;YAAE,IAAI,CAAC,IAAI,CAAC,E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K,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,sEAAsE;gBAChI,QAAQ,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE;aACzB,CAAC;QACJ,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,iCAAiC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;QACzH,CAAC;IACH,CAAC;CACF"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Propose the brief for one post — before it is written, for the operator to
3
+ * question (20 Oct 2026).
4
+ *
5
+ * The operator, asking for this: *"I want a discussion to happen before the
6
+ * creation, so we decide together the vision of the post — that's a marketing
7
+ * partner."* He is learning marketing through these conversations, so the
8
+ * brief is where the teaching happens: who this is for, why that angle, why
9
+ * that form. A post generated straight from a one-line angle teaches nothing
10
+ * and carries none of what was agreed.
11
+ *
12
+ * Side-effect-free, and NOT a producing tool: it works in a talking turn,
13
+ * which is exactly where a brief is discussed.
14
+ */
15
+ import type { Tool, ToolResult, ToolExecutionContext, ToolRiskLevel } from './types.js';
16
+ import type { FunctionSchema } from '../providers/types.js';
17
+ export declare class ProposeBriefTool implements Tool {
18
+ readonly name = "propose_brief";
19
+ readonly description = "Propose the brief for one post \u2014 what it argues, who it is for, the angle, the form, the one line it must land \u2014 for the operator to question BEFORE anything is written.";
20
+ readonly riskLevel: ToolRiskLevel;
21
+ readonly requiresConfirmation = false;
22
+ readonly schema: FunctionSchema;
23
+ execute(args: Record<string, unknown>, context: ToolExecutionContext): Promise<ToolResult>;
24
+ }
25
+ //# sourceMappingURL=propose-brief.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"propose-brief.d.ts","sourceRoot":"","sources":["../../src/tools/propose-brief.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACxF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAY5D,qBAAa,gBAAiB,YAAW,IAAI;IAC3C,QAAQ,CAAC,IAAI,mBAAmB;IAChC,QAAQ,CAAC,WAAW,yLAC0J;IAC9K,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAU;IAC3C,QAAQ,CAAC,oBAAoB,SAAS;IAEtC,QAAQ,CAAC,MAAM,EAAE,cAAc,CAqB7B;IAEI,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC;CAyCjG"}
@@ -0,0 +1,89 @@
1
+ /**
2
+ * Propose the brief for one post — before it is written, for the operator to
3
+ * question (20 Oct 2026).
4
+ *
5
+ * The operator, asking for this: *"I want a discussion to happen before the
6
+ * creation, so we decide together the vision of the post — that's a marketing
7
+ * partner."* He is learning marketing through these conversations, so the
8
+ * brief is where the teaching happens: who this is for, why that angle, why
9
+ * that form. A post generated straight from a one-line angle teaches nothing
10
+ * and carries none of what was agreed.
11
+ *
12
+ * Side-effect-free, and NOT a producing tool: it works in a talking turn,
13
+ * which is exactly where a brief is discussed.
14
+ */
15
+ const FIELDS = [
16
+ ['argues', 'what it argues'],
17
+ ['audience', 'who it is for'],
18
+ ['angle', 'the way in'],
19
+ ['form', 'the form'],
20
+ ['mustLand', 'the one line it has to land'],
21
+ ['reasoning', 'your reasoning'],
22
+ ];
23
+ export class ProposeBriefTool {
24
+ name = 'propose_brief';
25
+ description = 'Propose the brief for one post — what it argues, who it is for, the angle, the form, the one line it must land — for the operator to question BEFORE anything is written.';
26
+ riskLevel = 'safe';
27
+ requiresConfirmation = false;
28
+ schema = {
29
+ name: 'propose_brief',
30
+ description: 'Propose the BRIEF for one post, before it is written, so you and the operator decide its vision together. '
31
+ + 'Open with YOUR point of view — never "what would you like this to be?", which hands the marketing thinking back '
32
+ + 'to the person who does not do marketing. He learns by questioning a position, so give him one with its reasoning. '
33
+ + 'Call it again with the full brief whenever the discussion changes it; the latest call replaces what is on the table. '
34
+ + 'Do NOT write the post: he agrees the brief first, and the writing turn is given the agreed brief.',
35
+ parameters: {
36
+ type: 'object',
37
+ properties: {
38
+ subject: { type: 'string', description: 'The story, as it stands on the plan.' },
39
+ argues: { type: 'string', description: 'What this post ARGUES — its point, in one sentence. Not its topic.' },
40
+ audience: { type: 'string', description: 'Who it is for, specifically enough to picture one person. "Developers" is a category; "a backend dev who tried an agent once, got burned, and stopped" is a reader.' },
41
+ angle: { type: 'string', description: 'The way in — what makes THAT reader stop scrolling and care.' },
42
+ form: { type: 'string', description: 'The shape — single post, thread, clip, piece to camera, still — and why that form suits this idea.' },
43
+ mustLand: { type: 'string', description: 'The ONE line the post has to land. Everything else serves it.' },
44
+ reasoning: { type: 'string', description: 'Why this brief: what you weighed, what you rejected and why. This is the part he learns from — teach the thinking, not only the conclusion.' },
45
+ },
46
+ required: ['subject', 'argues', 'audience', 'angle', 'form', 'mustLand', 'reasoning'],
47
+ },
48
+ };
49
+ async execute(args, context) {
50
+ const store = context.sharedState?.briefStore;
51
+ if (!store) {
52
+ return {
53
+ success: false,
54
+ output: 'Briefs are not available in this context. The host must inject `briefStore` into shared state.',
55
+ };
56
+ }
57
+ const str = (k) => (typeof args[k] === 'string' ? args[k].trim() : '');
58
+ const brief = {
59
+ subject: str('subject'),
60
+ argues: str('argues'),
61
+ audience: str('audience'),
62
+ angle: str('angle'),
63
+ form: str('form'),
64
+ mustLand: str('mustLand'),
65
+ reasoning: str('reasoning'),
66
+ };
67
+ // A brief with a hole in it is the vague brief this replaces. Say which
68
+ // part is missing rather than accepting it and letting the writing fill it.
69
+ const missing = FIELDS.filter(([k]) => !brief[k]).map(([, label]) => label);
70
+ if (missing.length) {
71
+ return {
72
+ success: false,
73
+ output: `The brief is missing ${missing.join(', ')}. Every part matters — a hole here is filled by guesswork when the post is written.`,
74
+ };
75
+ }
76
+ try {
77
+ await store.propose(brief);
78
+ return {
79
+ success: true,
80
+ output: 'Brief proposed. He questions it before anything is written — answer with your reasoning, hold where you still think you are right, change it where he has a point. He agrees it when he is happy.',
81
+ metadata: { subject: brief.subject },
82
+ };
83
+ }
84
+ catch (err) {
85
+ return { success: false, output: `Failed to propose the brief: ${err instanceof Error ? err.message : String(err)}` };
86
+ }
87
+ }
88
+ }
89
+ //# sourceMappingURL=propose-brief.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"propose-brief.js","sourceRoot":"","sources":["../../src/tools/propose-brief.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAMH,MAAM,MAAM,GAAqC;IAC/C,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IAC5B,CAAC,UAAU,EAAE,eAAe,CAAC;IAC7B,CAAC,OAAO,EAAE,YAAY,CAAC;IACvB,CAAC,MAAM,EAAE,UAAU,CAAC;IACpB,CAAC,UAAU,EAAE,6BAA6B,CAAC;IAC3C,CAAC,WAAW,EAAE,gBAAgB,CAAC;CAChC,CAAC;AAEF,MAAM,OAAO,gBAAgB;IAClB,IAAI,GAAG,eAAe,CAAC;IACvB,WAAW,GAClB,2KAA2K,CAAC;IACrK,SAAS,GAAkB,MAAM,CAAC;IAClC,oBAAoB,GAAG,KAAK,CAAC;IAE7B,MAAM,GAAmB;QAChC,IAAI,EAAE,eAAe;QACrB,WAAW,EACT,4GAA4G;cAC1G,kHAAkH;cAClH,oHAAoH;cACpH,uHAAuH;cACvH,mGAAmG;QACvG,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,sCAAsC,EAAE;gBAChF,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,oEAAoE,EAA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U,CAAC;YACzB,SAAS,EAAE,GAAG,CAAC,WAAW,CAAC;SAC5B,CAAC;QAEF,wEAAwE;QACxE,4EAA4E;QAC5E,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC;QAC5E,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;YACnB,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,MAAM,EAAE,wBAAwB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,qFAAqF;aACxI,CAAC;QACJ,CAAC;QAED,IAAI,CAAC;YACH,MAAM,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAC3B,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,MAAM,EAAE,mMAAmM;gBAC3M,QAAQ,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE;aACrC,CAAC;QACJ,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,gCAAgC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;QACxH,CAAC;IACH,CAAC;CACF"}
@@ -1,14 +1,17 @@
1
1
  import type { Tool, ToolResult, ToolExecutionContext, ToolRiskLevel } from './types.js';
2
2
  import type { FunctionSchema } from '../providers/types.js';
3
3
  /**
4
- * Propose 3–5 things worth posting about TODAY — the studio's briefing. Side-
5
- * effect-free: validate + hand the beats to the surface-injected `beatStore`,
6
- * which the surface renders as the menu. Ava grounds herself first (release_notes
7
- * / research_post / memory_recall) then calls this; she does NOT write the posts.
4
+ * Propose four or five things worth posting about TODAY — her PROPOSAL for the
5
+ * day, which the operator then argues with until they agree it. Side-effect-
6
+ * free: validate + hand the beats to the surface-injected `beatStore`. Ava
7
+ * grounds herself first, then calls this; she does NOT write the posts.
8
+ *
9
+ * Called again, with the FULL set, whenever the discussion changes the plan —
10
+ * the surface replaces what is on the table with the latest call.
8
11
  */
9
12
  export declare class SuggestBeatsTool implements Tool {
10
13
  readonly name = "suggest_beats";
11
- readonly description = "Propose 3-5 things worth posting about today \u2014 the studio briefing. Ground yourself first (release_notes / research_post / memory_recall), then offer concrete angles. Do NOT write the posts; this is the menu.";
14
+ readonly description = "Propose four or five things worth posting about today \u2014 your proposal for the day, which the operator argues with before anything is written. Ground yourself first, then offer concrete angles. Do NOT write the posts.";
12
15
  readonly riskLevel: ToolRiskLevel;
13
16
  readonly requiresConfirmation = false;
14
17
  readonly schema: FunctionSchema;
@@ -1 +1 @@
1
- {"version":3,"file":"suggest-beats.d.ts","sourceRoot":"","sources":["../../src/tools/suggest-beats.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACxF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAG5D;;;;;GAKG;AACH,qBAAa,gBAAiB,YAAW,IAAI;IAC3C,QAAQ,CAAC,IAAI,mBAAmB;IAChC,QAAQ,CAAC,WAAW,2NACiM;IACrN,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAU;IAC3C,QAAQ,CAAC,oBAAoB,SAAS;IAEtC,QAAQ,CAAC,MAAM,EAAE,cAAc,CAwB7B;IAEI,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC;CAgEjG"}
1
+ {"version":3,"file":"suggest-beats.d.ts","sourceRoot":"","sources":["../../src/tools/suggest-beats.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACxF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAM5D;;;;;;;;GAQG;AACH,qBAAa,gBAAiB,YAAW,IAAI;IAC3C,QAAQ,CAAC,IAAI,mBAAmB;IAChC,QAAQ,CAAC,WAAW,mOACyM;IAC7N,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAU;IAC3C,QAAQ,CAAC,oBAAoB,SAAS;IAEtC,QAAQ,CAAC,MAAM,EAAE,cAAc,CA+B7B;IAEI,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC;CAyHjG"}
@@ -1,23 +1,28 @@
1
+ const KINDS = ['our_work', 'news', 'conversation'];
2
+ const KIND_LABEL = { our_work: 'our work', news: 'news', conversation: 'conversation' };
1
3
  /**
2
- * Propose 3–5 things worth posting about TODAY — the studio's briefing. Side-
3
- * effect-free: validate + hand the beats to the surface-injected `beatStore`,
4
- * which the surface renders as the menu. Ava grounds herself first (release_notes
5
- * / research_post / memory_recall) then calls this; she does NOT write the posts.
4
+ * Propose four or five things worth posting about TODAY — her PROPOSAL for the
5
+ * day, which the operator then argues with until they agree it. Side-effect-
6
+ * free: validate + hand the beats to the surface-injected `beatStore`. Ava
7
+ * grounds herself first, then calls this; she does NOT write the posts.
8
+ *
9
+ * Called again, with the FULL set, whenever the discussion changes the plan —
10
+ * the surface replaces what is on the table with the latest call.
6
11
  */
7
12
  export class SuggestBeatsTool {
8
13
  name = 'suggest_beats';
9
- description = 'Propose 3-5 things worth posting about today — the studio briefing. Ground yourself first (release_notes / research_post / memory_recall), then offer concrete angles. Do NOT write the posts; this is the menu.';
14
+ description = 'Propose four or five things worth posting about today — your proposal for the day, which the operator argues with before anything is written. Ground yourself first, then offer concrete angles. Do NOT write the posts.';
10
15
  riskLevel = 'safe';
11
16
  requiresConfirmation = false;
12
17
  schema = {
13
18
  name: 'suggest_beats',
14
- description: 'Propose the things worth posting about TODAY — FOUR OR FIVE, and AT LEAST ONE MUST BE ANCHORED TO A REAL NEWS STORY — the studio\'s briefing. Call this when the operator asks "what should I post today" / "today\'s beats" / opens a planning request. First ground yourself: release_notes for anything just shipped, research_post or web_search for what\'s currently landing in our space, memory_recall to avoid repeating recent angles. Then return STORIES that fit the mission — each a concrete angle, one line on why it lands now, and what FORM it wants. Form is part of the idea, not a flag bolted onto it: some beats only exist as a film, some only work written down. Offer a mix rather than a list of text posts with the occasional video attached. Do NOT name platforms: a story goes to every crowd in the same slot, adapted to each, and where it goes is a planning decision the operator makes, not a property of the idea. Do NOT write the posts either; this is the menu, the operator picks one to draft.',
19
+ description: 'Propose the things worth posting about TODAY — FOUR OR FIVE, split EQUALLY across three kinds: OUR WORK (what we built or shipped), NEWS (a real, named story from the last day or two) and CONVERSATION (an argument people are having in a named thread right now, where we take a position). Every kind at least once, none more than twice. The studio\'s briefing. Call this when the operator asks "what should I post today" / "today\'s beats" / opens a planning request. First ground yourself: release_notes for anything just shipped, research_post or web_search for what\'s currently landing in our space, memory_recall to avoid repeating recent angles. Then return STORIES that fit the mission — each a concrete angle, one line on why it lands now, and what FORM it wants. Form is part of the idea, not a flag bolted onto it: some beats only exist as a film, some only work written down. Offer a mix rather than a list of text posts with the occasional video attached. Do NOT name platforms: a story goes to every crowd in the same slot, adapted to each, and where it goes is a planning decision the operator makes, not a property of the idea. Do NOT write the posts either: this is your PROPOSAL for the day, and nothing is written until the operator has agreed it. When the discussion changes the plan, call this again with the FULL set — untouched beats reproduced exactly — because the latest call replaces what is on the table.',
15
20
  parameters: {
16
21
  type: 'object',
17
22
  properties: {
18
23
  beats: {
19
24
  type: 'array',
20
- description: 'The post ideas the day actually has — FOUR OR FIVE, no fewer. At least one must set `is_news`. A thin day is not a reason to return two: it is a reason to go and FIND the fourth, which is what the news beat is for — the field always has something happening, and a day with nothing of our own still has something worth saying about today. What is forbidden is padding the list with the same evergreen angle in new words.',
25
+ description: 'The post ideas the day actually has — FOUR OR FIVE, no fewer, with every `kind` present and none more than twice (so 2/2/1 or 2/1/1). A thin day is not a reason to return two: it is a reason to go and FIND the fourth, which is what the news beat is for — the field always has something happening, and a day with nothing of our own still has something worth saying about today. What is forbidden is padding the list with the same evergreen angle in new words.',
21
26
  items: {
22
27
  type: 'object',
23
28
  properties: {
@@ -25,9 +30,16 @@ export class SuggestBeatsTool {
25
30
  why: { type: 'string', description: 'One line on why this lands right now — a current beat, a fresh ship, a gap nobody else is filling.' },
26
31
  needs_video: { type: 'boolean', description: 'True when this story would land HARDER as a film than as text. Not only demos and before/afters — a mood piece, a piece to camera, a scene that sets a feeling all count, and a clip carries its own soundtrack. Decides whether Reels and Shorts are on by default. Ask which form the idea wants rather than whether it earns the effort: a clip now renders first-time in a couple of minutes, so a video is no longer an hour of the operator\'s day and should not be rationed like one. Still say false when the idea is genuinely an argument that reads better — a dense comparison, a technical correction, anything whose value is in re-reading it.' },
27
32
  is_news: { type: 'boolean', description: 'True when this beat is anchored to a REAL story from today or the last day or two — a named model release, a named outage, a named policy change, something the field is actually discussing. AT LEAST ONE BEAT A DAY MUST HAVE IT. Ground it first with web_search or the news desk and name the thing specifically in `angle`; \'AI is moving fast\' is not news. NEVER invent one — a fabricated story is far worse than a day without a news beat, and it is the one mistake here that cannot be walked back.' },
33
+ kind: {
34
+ type: 'string',
35
+ enum: ['our_work', 'news', 'conversation'],
36
+ description: 'Which move this is. our_work: something we built or shipped — show the thing; ground it in the commit log, docs_lookup or release_notes. news: something HAPPENED — a named release, outage, policy change from the last day or two; find it with web_search and name it in `angle`; never invent one. conversation: people are ARGUING about something right now — find the thread with web_search (search Reddit and Hacker News directly; a debate does not show up in news results) and take a side. The day is an equal split because posts about ourselves only reach people already looking at us, and people want a break from look-at-me posts.',
37
+ },
38
+ venue: { type: 'string', description: 'conversation beats ONLY, and REQUIRED for them: where the argument is, named specifically — e.g. an r/ExperiencedDevs thread on whether agents are useful yet, or an HN thread on a model\'s pricing. Not just "Reddit".' },
39
+ position: { type: 'string', description: 'conversation beats ONLY, and REQUIRED for them: the side we take, in one sentence. Our standing is that we SHIP a local-first agent while most of the thread is speculating — "we did this, here is what happened" is the move nobody can copy. A neutral observation is refused.' },
28
40
  format: { type: 'string', description: 'Optional. The shape the idea wants, when the FORM is the idea rather than a wrapper on it — e.g. "30s piece to camera", "15s held shot of the dish", "silent 30s scene, caption carries it". Say it here when a beat only really exists in one form; leave it out when the angle would work as either.' },
29
41
  },
30
- required: ['angle', 'why'],
42
+ required: ['angle', 'why', 'kind'],
31
43
  },
32
44
  },
33
45
  },
@@ -46,11 +58,25 @@ export class SuggestBeatsTool {
46
58
  const beats = rawBeats
47
59
  .map((b) => {
48
60
  const o = (b && typeof b === 'object') ? b : {};
61
+ // `kind` is what counts. An older caller that only set is_news is
62
+ // still read as news rather than refused for a field it never knew.
63
+ const kind = KINDS.includes(o.kind)
64
+ ? o.kind
65
+ : o.is_news === true ? 'news' : undefined;
66
+ const venue = typeof o.venue === 'string' ? o.venue.trim() : '';
67
+ const position = typeof o.position === 'string' ? o.position.trim() : '';
49
68
  return {
50
69
  angle: String(o.angle || '').trim(),
51
70
  why: String(o.why || '').trim(),
52
71
  needs_video: o.needs_video === true,
53
- is_news: o.is_news === true,
72
+ is_news: kind === 'news',
73
+ ...(kind ? { kind } : {}),
74
+ ...(kind === 'conversation' && venue ? { venue } : {}),
75
+ ...(kind === 'conversation' && position ? { position } : {}),
76
+ // The schema asks for it, so it has to survive the trip. It was
77
+ // dropped here, which meant "the form IS the idea" never reached
78
+ // the operator however clearly she had said it.
79
+ ...(typeof o.format === 'string' && o.format.trim() ? { format: o.format.trim() } : {}),
54
80
  };
55
81
  })
56
82
  .filter(b => b.angle)
@@ -71,21 +97,61 @@ export class SuggestBeatsTool {
71
97
  + 'with the same evergreen angle reworded — find a different one.',
72
98
  };
73
99
  }
74
- if (!beats.some(b => b.is_news)) {
100
+ // An equal split across the three kinds (20 Oct 2026, operator's call).
101
+ // With four or five beats that means every kind at least once and none
102
+ // more than twice. The news beat was already required; this adds the
103
+ // conversation beat and stops our own work taking three of five slots.
104
+ const unkinded = beats.filter(b => !b.kind);
105
+ if (unkinded.length) {
75
106
  return {
76
107
  success: false,
77
- output: 'No news beat. At least one of today\'s ideas has to be anchored to a REAL story from today '
78
- + 'or the last day or two — a named release, a named outage, a named policy change that the '
79
- + 'field is actually discussing.\n\nPosts about our own work only reach people already looking '
80
- + 'at us; a post about what everyone is discussing today reaches people who have never heard of '
81
- + 'us. Search for it, name it specifically, and set `is_news`. Never invent one.',
108
+ output: 'Every beat needs a `kind` — our_work, news or conversation. Missing on: '
109
+ + unkinded.map(b => `"${b.angle}"`).join(', ') + '.',
110
+ };
111
+ }
112
+ const count = (k) => beats.filter(b => b.kind === k).length;
113
+ const missing = KINDS.filter(k => count(k) === 0);
114
+ const heavy = KINDS.filter(k => count(k) > 2);
115
+ if (missing.length || heavy.length) {
116
+ const have = KINDS.map(k => `${count(k)} ${KIND_LABEL[k]}`).join(', ');
117
+ const needs = [];
118
+ if (missing.includes('news')) {
119
+ needs.push('No news beat. One has to be anchored to a REAL story from the last day or two — a named release, outage or policy change the field is discussing. Search for it and name it. Never invent one.');
120
+ }
121
+ if (missing.includes('conversation')) {
122
+ needs.push('No conversation beat. Find an argument people are having RIGHT NOW — search Reddit and Hacker News directly (a debate does not show up in news results) — name the thread in `venue` and take a side in `position`.');
123
+ }
124
+ if (missing.includes('our_work')) {
125
+ needs.push('No beat about our own work. One should show something we built or shipped — the commit log is in your context.');
126
+ }
127
+ if (heavy.length) {
128
+ needs.push(`Too many ${heavy.map(k => KIND_LABEL[k]).join(' and ')} — no kind more than twice. Swap one for a kind the day is short of.`);
129
+ }
130
+ return {
131
+ success: false,
132
+ output: 'The day is an EQUAL SPLIT across our work, news and conversation — every kind at least once, none more than twice. '
133
+ + `You have ${have}.\n\n${needs.join('\n\n')}\n\n`
134
+ + 'Why: posts about ourselves only reach people already looking at us, and people want a break from look-at-me posts.',
135
+ };
136
+ }
137
+ // A conversation beat without a side is worse than none: a neutral take in
138
+ // a thread full of people who know the subject gets scrolled past at best.
139
+ const sideless = beats.filter(b => b.kind === 'conversation' && (!b.venue || !b.position));
140
+ if (sideless.length) {
141
+ return {
142
+ success: false,
143
+ output: 'A conversation beat needs BOTH where the argument is (`venue` — the named thread, not just "Reddit") '
144
+ + 'and the side we take in it (`position` — one sentence). Missing on: '
145
+ + sideless.map(b => `"${b.angle}"`).join(', ') + '. '
146
+ + 'Our standing: we ship a local-first agent while most of the thread is speculating. "We did this, '
147
+ + 'here is what happened" is the move nobody else can make.',
82
148
  };
83
149
  }
84
150
  try {
85
151
  await store.suggest(beats);
86
152
  return {
87
153
  success: true,
88
- output: `Offered ${beats.length} beat${beats.length === 1 ? '' : 's'} for today — the operator picks one to take through to a draft.`,
154
+ output: `Proposed ${beats.length} beats for today (${KINDS.map(k => `${beats.filter(b => b.kind === k).length} ${KIND_LABEL[k]}`).join(', ')}). The operator questions and agrees the plan before anything is written.`,
89
155
  metadata: { count: beats.length },
90
156
  };
91
157
  }
@@ -1 +1 @@
1
- {"version":3,"file":"suggest-beats.js","sourceRoot":"","sources":["../../src/tools/suggest-beats.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,MAAM,OAAO,gBAAgB;IAClB,IAAI,GAAG,eAAe,CAAC;IACvB,WAAW,GAClB,kNAAkN,CAAC;IAC5M,SAAS,GAAkB,MAAM,CAAC;IAClC,oBAAoB,GAAG,KAAK,CAAC;IAE7B,MAAM,GAAmB;QAChC,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,++BAA++B;QAC5/B,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,KAAK,EAAE;oBACL,IAAI,EAAE,OAAO;oBACb,WAAW,EAAE,qaAAqa;oBAClb,KAAK,EAAE;wB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AAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS;IAIvC,UAAU,IAAI,UAAU,EAAE;IAiB1B,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO;IAsEhE,OAAO,CACX,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,UAAU,CAAC;IAyHtB,OAAO,CAAC,SAAS;CAwBlB"}
@@ -42,12 +42,13 @@ import { HealthPlanCreateTool } from './health-plan-create.js';
42
42
  import { HealthPlanUpdateTool } from './health-plan-update.js';
43
43
  import { HealthPlanListTool } from './health-plan-list.js';
44
44
  import { HealthPlanDeleteTool } from './health-plan-delete.js';
45
- import { DayPlanReadTool, DayPlanWriteTool, DayPlanItemStatusTool } from './day-plan.js';
45
+ import { DayPlanReadTool, DayPlanWriteTool, DayPlanItemStatusTool, DayPlanReviewTool } from './day-plan.js';
46
46
  import { WritePostTool } from './write-post.js';
47
47
  import { WriteVideoPostTool } from './write-video-post.js';
48
48
  import { WriteVoiceoverTool } from './write-voiceover.js';
49
49
  import { WritePostImageTool } from './write-post-image.js';
50
50
  import { ProposeHooksTool } from './propose-hooks.js';
51
+ import { ProposeBriefTool } from './propose-brief.js';
51
52
  import { ResearchPostTool } from './research-post.js';
52
53
  // Newsroom — Ava as Correspondent. She writes her OWN account and cites the
53
54
  // outlets she read; she is not an aggregator. write_article REFUSES an article
@@ -434,11 +435,13 @@ export class ToolRegistry {
434
435
  new DayPlanReadTool(),
435
436
  new DayPlanWriteTool(),
436
437
  new DayPlanItemStatusTool(),
438
+ new DayPlanReviewTool(),
437
439
  new WritePostTool(),
438
440
  new WriteVideoPostTool(),
439
441
  new WriteVoiceoverTool(),
440
442
  new WritePostImageTool(),
441
443
  new ProposeHooksTool(),
444
+ new ProposeBriefTool(),
442
445
  new ResearchPostTool(),
443
446
  new DiscoverNewsTool(),
444
447
  new SuggestStoriesTool(),