@introspection-ai/recipes 0.63.1 → 0.64.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.
Files changed (74) hide show
  1. package/dist/agent-tool/arguments.d.ts +39 -0
  2. package/dist/agent-tool/arguments.d.ts.map +1 -0
  3. package/dist/agent-tool/arguments.generated.d.ts +4 -0
  4. package/dist/agent-tool/arguments.generated.d.ts.map +1 -0
  5. package/dist/agent-tool/arguments.generated.js +60 -0
  6. package/dist/agent-tool/arguments.generated.js.map +1 -0
  7. package/dist/agent-tool/arguments.js +8 -0
  8. package/dist/agent-tool/arguments.js.map +1 -0
  9. package/dist/agents.d.ts +28 -6
  10. package/dist/agents.d.ts.map +1 -1
  11. package/dist/agents.js +269 -46
  12. package/dist/agents.js.map +1 -1
  13. package/dist/batch/agent-batches.d.ts +53 -0
  14. package/dist/batch/agent-batches.d.ts.map +1 -0
  15. package/dist/batch/agent-batches.js +168 -0
  16. package/dist/batch/agent-batches.js.map +1 -0
  17. package/dist/batch/index.d.ts +2 -0
  18. package/dist/batch/index.d.ts.map +1 -1
  19. package/dist/batch/index.js +2 -1
  20. package/dist/batch/index.js.map +1 -1
  21. package/dist/child/agent-completions.d.ts +16 -1
  22. package/dist/child/agent-completions.d.ts.map +1 -1
  23. package/dist/child/agent-completions.js +31 -5
  24. package/dist/child/agent-completions.js.map +1 -1
  25. package/dist/child/agent-store.d.ts +2 -0
  26. package/dist/child/agent-store.d.ts.map +1 -1
  27. package/dist/child/agent-store.js.map +1 -1
  28. package/dist/child/agent.d.ts +9 -0
  29. package/dist/child/agent.d.ts.map +1 -1
  30. package/dist/child/agent.js +7 -0
  31. package/dist/child/agent.js.map +1 -1
  32. package/dist/child/arguments.d.ts +32 -0
  33. package/dist/child/arguments.d.ts.map +1 -0
  34. package/dist/child/arguments.generated.d.ts +4 -0
  35. package/dist/child/arguments.generated.d.ts.map +1 -0
  36. package/dist/child/arguments.generated.js +29 -0
  37. package/dist/child/arguments.generated.js.map +1 -0
  38. package/dist/child/arguments.js +8 -0
  39. package/dist/child/arguments.js.map +1 -0
  40. package/dist/child/messages.d.ts +128 -0
  41. package/dist/child/messages.d.ts.map +1 -0
  42. package/dist/child/messages.js +265 -0
  43. package/dist/child/messages.js.map +1 -0
  44. package/dist/child/session.d.ts +10 -0
  45. package/dist/child/session.d.ts.map +1 -1
  46. package/dist/child/session.js +22 -3
  47. package/dist/child/session.js.map +1 -1
  48. package/dist/child/streaming-usage.d.ts +40 -0
  49. package/dist/child/streaming-usage.d.ts.map +1 -0
  50. package/dist/child/streaming-usage.js +101 -0
  51. package/dist/child/streaming-usage.js.map +1 -0
  52. package/dist/pi-extension.d.ts +2 -0
  53. package/dist/pi-extension.d.ts.map +1 -1
  54. package/dist/pi-extension.js +236 -42
  55. package/dist/pi-extension.js.map +1 -1
  56. package/dist/recipe/manifest.generated.d.ts +1 -1
  57. package/dist/recipe/manifest.generated.js +1 -1
  58. package/dist/run-controller.d.ts +5 -0
  59. package/dist/run-controller.d.ts.map +1 -1
  60. package/dist/run-controller.js +70 -8
  61. package/dist/run-controller.js.map +1 -1
  62. package/dist/session.d.ts +11 -0
  63. package/dist/session.d.ts.map +1 -1
  64. package/dist/session.js +15 -1
  65. package/dist/session.js.map +1 -1
  66. package/dist/skill-progress.d.ts +12 -1
  67. package/dist/skill-progress.d.ts.map +1 -1
  68. package/dist/skill-progress.js +11 -4
  69. package/dist/skill-progress.js.map +1 -1
  70. package/docs/agent-batch.md +87 -0
  71. package/docs/agent-composition.md +49 -19
  72. package/docs/batch.md +7 -0
  73. package/docs/productivity/google.md +27 -15
  74. package/package.json +6 -6
@@ -181,6 +181,7 @@ class RecipeChildAgentSessionRunner {
181
181
  ...(this.opts.onAgentRunEvent
182
182
  ? { onAgentRunEvent: this.opts.onAgentRunEvent }
183
183
  : {}),
184
+ ...(this.opts.messages ? { messages: this.opts.messages } : {}),
184
185
  });
185
186
  this.session = this.handle.session;
186
187
  }
@@ -205,6 +206,12 @@ class RecipeChildAgentSessionRunner {
205
206
  throw new Error("Background agent did not start");
206
207
  await this.session.steer(message);
207
208
  }
209
+ async followUp(message) {
210
+ await this.start();
211
+ if (!this.session)
212
+ throw new Error("Background agent did not start");
213
+ await this.session.followUp(message);
214
+ }
208
215
  async cancel() {
209
216
  await this.handle?.interrupt();
210
217
  }
@@ -1 +1 @@
1
- {"version":3,"file":"agent.js","sourceRoot":"","sources":["../../src/child/agent.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,0BAA0B,GAE3B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,kCAAkC,EAAE,MAAM,oBAAoB,CAAC;AAwDxE,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAChE,CAAC,CAAE,KAAiC;QACpC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC;AAED,SAAS,WAAW,CAAC,OAAgB;IACnC,IAAI,OAAO,OAAO,KAAK,QAAQ;QAAE,OAAO,OAAO,CAAC;IAChD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;QAAE,OAAO,EAAE,CAAC;IACvC,OAAO,OAAO;SACX,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACZ,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC9B,OAAO,MAAM,EAAE,IAAI,KAAK,MAAM,IAAI,OAAO,MAAM,CAAC,IAAI,KAAK,QAAQ;YAC/D,CAAC,CAAC,MAAM,CAAC,IAAI;YACb,CAAC,CAAC,EAAE,CAAC;IACT,CAAC,CAAC;SACD,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC;AAED,SAAS,sBAAsB,CAC7B,MAAe;IAEf,IAAI,CAAC,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AAC;QACnB,IAAI,CAAC,IAAI,CAAC,OAAO;YAAE,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;QACrE,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,OAAe;QAC5B,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;QACnB,IAAI,CAAC,IAAI,CAAC,OAAO;YAAE,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;QACrE,MAAM,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IACvC,CAAC;IAED,KAAK,CAAC,MAAM;QACV,MAAM,IAAI,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC;IACjC,CAAC;IAED,KAAK,CAAC,QAAQ;QACZ,MAAM,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC;QAC7B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;IACtB,CAAC;CACF;AAED,MAAM,UAAU,4BAA4B,CAC1C,IAAyC;IAEzC,OAAO,IAAI,6BAA6B,CAAC,IAAI,CAAC,CAAC;AACjD,CAAC"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * The arguments `send_message` takes, as the model sees them.
3
+ * `scripts/generate-tool-schemas.mjs` turns `SendMessageArguments` into the
4
+ * JSON Schema in `arguments.generated.ts`: a field's doc comment is its
5
+ * description.
6
+ */
7
+ /** Tokens and cost of work a run ran elsewhere, such as cloud trials. */
8
+ interface SendMessageUsage {
9
+ input: number;
10
+ output: number;
11
+ /** USD. */
12
+ cost: number;
13
+ }
14
+ export interface SendMessageArguments {
15
+ /** Who to message: "root" for the agent that started this work, or another run's name or id. */
16
+ to: string;
17
+ /** What to tell them. */
18
+ message: string;
19
+ /**
20
+ * "steer" (default): something they must act on soon. "followUp": a milestone that can wait until
21
+ * they finish their current work. "status": a one-line progress note shown to the person in place
22
+ * of your current command, never to them; `to` is ignored.
23
+ */
24
+ deliver?: "steer" | "followUp" | "status";
25
+ /**
26
+ * With deliver "status" only: the running total of tokens and cost of work you ran elsewhere, such
27
+ * as cloud trials, not your own model calls. Each status replaces the last total.
28
+ */
29
+ usage?: SendMessageUsage;
30
+ }
31
+ export {};
32
+ //# sourceMappingURL=arguments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arguments.d.ts","sourceRoot":"","sources":["../../src/child/arguments.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,yEAAyE;AACzE,UAAU,gBAAgB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,oBAAoB;IACnC,gGAAgG;IAChG,EAAE,EAAE,MAAM,CAAC;IACX,yBAAyB;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;IAC1C;;;OAGG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B"}
@@ -0,0 +1,4 @@
1
+ import type { ArgumentsSchema } from "../command-parameters.js";
2
+ import type { SendMessageArguments } from "./arguments.js";
3
+ export declare const SEND_MESSAGE_ARGUMENTS: ArgumentsSchema<SendMessageArguments>;
4
+ //# sourceMappingURL=arguments.generated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arguments.generated.d.ts","sourceRoot":"","sources":["../../src/child/arguments.generated.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,eAAO,MAAM,sBAAsB,EA8B9B,eAAe,CAAC,oBAAoB,CAAC,CAAC"}
@@ -0,0 +1,29 @@
1
+ export const SEND_MESSAGE_ARGUMENTS = {
2
+ type: "object",
3
+ properties: {
4
+ to: {
5
+ type: "string",
6
+ description: 'Who to message: "root" for the agent that started this work, or another run\'s name or id.',
7
+ },
8
+ message: { type: "string", description: "What to tell them." },
9
+ deliver: {
10
+ type: "string",
11
+ enum: ["steer", "followUp", "status"],
12
+ description: '"steer" (default): something they must act on soon. "followUp": a milestone that can wait until they finish their current work. "status": a one-line progress note shown to the person in place of your current command, never to them; `to` is ignored.',
13
+ },
14
+ usage: {
15
+ type: "object",
16
+ properties: {
17
+ input: { type: "number" },
18
+ output: { type: "number" },
19
+ cost: { type: "number", description: "USD." },
20
+ },
21
+ required: ["input", "output", "cost"],
22
+ additionalProperties: false,
23
+ description: 'With deliver "status" only: the running total of tokens and cost of work you ran elsewhere, such as cloud trials, not your own model calls. Each status replaces the last total.',
24
+ },
25
+ },
26
+ required: ["to", "message"],
27
+ additionalProperties: false,
28
+ };
29
+ //# sourceMappingURL=arguments.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arguments.generated.js","sourceRoot":"","sources":["../../src/child/arguments.generated.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,EAAE,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,4FAA4F;SAC/F;QACD,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,oBAAoB,EAAE;QAC9D,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,CAAC;YACrC,WAAW,EACT,0PAA0P;SAC7P;QACD,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACzB,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC1B,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE;aAC9C;YACD,QAAQ,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC;YACrC,oBAAoB,EAAE,KAAK;YAC3B,WAAW,EACT,kLAAkL;SACrL;KACF;IACD,QAAQ,EAAE,CAAC,IAAI,EAAE,SAAS,CAAC;IAC3B,oBAAoB,EAAE,KAAK;CACa,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * The arguments `send_message` takes, as the model sees them.
3
+ * `scripts/generate-tool-schemas.mjs` turns `SendMessageArguments` into the
4
+ * JSON Schema in `arguments.generated.ts`: a field's doc comment is its
5
+ * description.
6
+ */
7
+ export {};
8
+ //# sourceMappingURL=arguments.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arguments.js","sourceRoot":"","sources":["../../src/child/arguments.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
@@ -0,0 +1,128 @@
1
+ /**
2
+ * Messages between the agents of one Pi session: the root agent and the runs
3
+ * it started, at every depth. A run sends one with `send_message`, naming its
4
+ * recipient as `root` or another run's name (its label) or id, as Claude
5
+ * Code's teammates use `SendMessage`.
6
+ *
7
+ * A message reaches an agent that is waiting on its runs at once, whichever
8
+ * run it waits on: Pi delivers a steer only after the current tool call ends,
9
+ * and an `agent` wait blocks until its run settles, so a steer to a waiting
10
+ * agent would never arrive. Otherwise it is steered into the agent's turn, or
11
+ * starts one.
12
+ */
13
+ import { type ToolDefinition } from "@earendil-works/pi-coding-agent";
14
+ /** Pi custom message type of a message delivered to the root agent. */
15
+ export declare const AGENT_RUN_MESSAGE_TYPE = "agent_run_message";
16
+ /** The name the root agent is addressed by. */
17
+ export declare const ROOT_AGENT = "root";
18
+ /** A message one agent sent another. */
19
+ export interface AgentRunMessage {
20
+ /** The sender's name: its run label, or `root`. */
21
+ from: string;
22
+ /** The sender's run id, `root` for the root agent. */
23
+ fromId: string;
24
+ text: string;
25
+ /**
26
+ * How it reaches an agent that is not waiting: `steer`, before its next
27
+ * model call, or `followUp`, once it finishes its current work. A wait in
28
+ * progress takes either at once.
29
+ */
30
+ deliver: AgentMessageDelivery;
31
+ }
32
+ /** The ways a message can reach an agent that is not waiting. */
33
+ export type AgentMessageDelivery = "steer" | "followUp";
34
+ /**
35
+ * A run's own progress note, from `send_message` with `deliver: "status"`: shown
36
+ * on its line for the person, never to an agent. `usage` is the running total
37
+ * of work it ran elsewhere, such as cloud trials, apart from its own model calls.
38
+ */
39
+ export interface AgentStatusNote {
40
+ text: string;
41
+ usage?: ReportedUsage;
42
+ }
43
+ /** Usage a run reports for work it ran elsewhere; each report replaces the last. */
44
+ export interface ReportedUsage {
45
+ input_tokens: number;
46
+ output_tokens: number;
47
+ cost_usd: number;
48
+ }
49
+ /** The model-facing text of a delivered message. */
50
+ export declare function renderAgentMessage(message: AgentRunMessage): string;
51
+ /** Several messages, in the order they were sent. */
52
+ export declare function renderAgentMessages(messages: readonly AgentRunMessage[]): string;
53
+ /**
54
+ * One agent's incoming messages, kept in send order. A message to an agent in
55
+ * a wait ends it with every held message before it. With none waiting, a steer
56
+ * goes to the agent's session now; a follow-up to a busy agent is held until
57
+ * its next wait ends or its turn does, so it cannot land after a message sent
58
+ * later.
59
+ */
60
+ export declare class AgentInbox {
61
+ private readonly held;
62
+ private readonly waiters;
63
+ private readonly send;
64
+ private readonly busy;
65
+ private starting;
66
+ private delivering;
67
+ /**
68
+ * `send` hands one message to the agent's session; `busy` says whether it is
69
+ * mid-turn, where a follow-up handed over now would land late.
70
+ */
71
+ constructor(send: (message: AgentRunMessage) => Promise<void>, busy?: () => boolean);
72
+ /** Hold every message until `started`: the agent's session is not there yet to take one. */
73
+ holdUntilStarted(): void;
74
+ /** The agent's session is up: the messages held until now, in send order, for its first prompt. */
75
+ started(): AgentRunMessage[];
76
+ /** Give the oldest wait every held message and this one, else send or hold it, in send order. */
77
+ deliver(message: AgentRunMessage): Promise<void>;
78
+ private deliverNow;
79
+ /**
80
+ * Put back messages a wait took but did not report, because what it waited on
81
+ * settled first: they are held again, ahead of anything held since.
82
+ */
83
+ restore(messages: readonly AgentRunMessage[]): void;
84
+ /** Whether messages are held for the end of the agent's turn. */
85
+ hasHeld(): boolean;
86
+ /** The held messages, in send order, removed from the inbox. */
87
+ take(): AgentRunMessage[];
88
+ /** Send the held messages to the agent's session, at the end of its turn, in turn with deliveries. */
89
+ flush(): Promise<void>;
90
+ /**
91
+ * The messages delivered while this is pending, held ones first, or
92
+ * `undefined` once `signal` aborts. Held follow-ups alone don't end it: the
93
+ * wait they ride on is the agent's current work. Stop listening by aborting.
94
+ */
95
+ next(signal: AbortSignal): Promise<AgentRunMessage[] | undefined>;
96
+ }
97
+ /** An agent that can receive messages. */
98
+ export interface AgentMessageRecipient {
99
+ /** Run id, or `root`. */
100
+ id: string;
101
+ /** The name it is addressed by: its run label, or `root`. */
102
+ name?: string;
103
+ inbox: AgentInbox;
104
+ /** Whether it can take a message now: a settled run cannot. */
105
+ accepting(): boolean;
106
+ /** Show the note on this agent's line, in place of the tool it is in. Root has none. */
107
+ setStatus?(note: AgentStatusNote): void;
108
+ }
109
+ /** Every agent of a session that can be messaged, by id and by name. */
110
+ export declare class AgentMessageBus {
111
+ private readonly byId;
112
+ private readonly byName;
113
+ /** Whether a live agent already goes by `name`. */
114
+ hasName(name: string): boolean;
115
+ /** Add an agent; a name already in use is refused. Returns its removal. */
116
+ register(recipient: AgentMessageRecipient): () => void;
117
+ /** The line a run's system prompt carries so it knows how it is addressed. */
118
+ introduce(id: string): string;
119
+ /** The name a sender signs a message with: its name, else its id. */
120
+ nameOf(id: string): string;
121
+ /** Set the agent `id`'s own status note; it reaches no other agent. */
122
+ setStatus(id: string, note: AgentStatusNote): void;
123
+ /** Send `text` from the agent `fromId` to `to`, a name or a run id. */
124
+ send(fromId: string, to: string, text: string, deliver?: AgentMessageDelivery): Promise<string>;
125
+ }
126
+ /** The `send_message` tool of the agent `senderId`. */
127
+ export declare function createSendMessageTool(bus: AgentMessageBus, senderId: string): ToolDefinition;
128
+ //# sourceMappingURL=messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/child/messages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,iCAAiC,CAAC;AAKzC,uEAAuE;AACvE,eAAO,MAAM,sBAAsB,sBAAsB,CAAC;AAE1D,+CAA+C;AAC/C,eAAO,MAAM,UAAU,SAAS,CAAC;AAEjC,wCAAwC;AACxC,MAAM,WAAW,eAAe;IAC9B,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,sDAAsD;IACtD,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,EAAE,oBAAoB,CAAC;CAC/B;AAED,iEAAiE;AACjE,MAAM,MAAM,oBAAoB,GAAG,OAAO,GAAG,UAAU,CAAC;AAExD;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,oFAAoF;AACpF,MAAM,WAAW,aAAa;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,oDAAoD;AACpD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM,CAMnE;AAED,qDAAqD;AACrD,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,SAAS,eAAe,EAAE,GACnC,MAAM,CAER;AAED;;;;;;GAMG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAyB;IAC9C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoD;IAC5E,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA8C;IACnE,OAAO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,MAAM,GAAG,OAAO,CAE7B;IAED,2EAA2E;IAC3E,QAAQ,CAAC,SAAS,EAAE,qBAAqB,GAAG,MAAM,IAAI,CAiCrD;IAED,8EAA8E;IAC9E,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAG5B;IAED,qEAAqE;IACrE,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAEzB;IAED,uEAAuE;IACvE,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,GAAG,IAAI,CAEjD;IAED,uEAAuE;IACjE,IAAI,CACR,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,oBAA8B,GACtC,OAAO,CAAC,MAAM,CAAC,CA0BjB;CACF;AAED,uDAAuD;AACvD,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,eAAe,EACpB,QAAQ,EAAE,MAAM,GACf,cAAc,CA2DhB"}
@@ -0,0 +1,265 @@
1
+ /**
2
+ * Messages between the agents of one Pi session: the root agent and the runs
3
+ * it started, at every depth. A run sends one with `send_message`, naming its
4
+ * recipient as `root` or another run's name (its label) or id, as Claude
5
+ * Code's teammates use `SendMessage`.
6
+ *
7
+ * A message reaches an agent that is waiting on its runs at once, whichever
8
+ * run it waits on: Pi delivers a steer only after the current tool call ends,
9
+ * and an `agent` wait blocks until its run settles, so a steer to a waiting
10
+ * agent would never arrive. Otherwise it is steered into the agent's turn, or
11
+ * starts one.
12
+ */
13
+ import { defineTool, } from "@earendil-works/pi-coding-agent";
14
+ import { SEND_MESSAGE_ARGUMENTS } from "./arguments.generated.js";
15
+ /** Pi custom message type of a message delivered to the root agent. */
16
+ export const AGENT_RUN_MESSAGE_TYPE = "agent_run_message";
17
+ /** The name the root agent is addressed by. */
18
+ export const ROOT_AGENT = "root";
19
+ /** The model-facing text of a delivered message. */
20
+ export function renderAgentMessage(message) {
21
+ return [
22
+ `<agent_message from="${message.from}" id="${message.fromId}">`,
23
+ message.text,
24
+ "</agent_message>",
25
+ ].join("\n");
26
+ }
27
+ /** Several messages, in the order they were sent. */
28
+ export function renderAgentMessages(messages) {
29
+ return messages.map(renderAgentMessage).join("\n\n");
30
+ }
31
+ /**
32
+ * One agent's incoming messages, kept in send order. A message to an agent in
33
+ * a wait ends it with every held message before it. With none waiting, a steer
34
+ * goes to the agent's session now; a follow-up to a busy agent is held until
35
+ * its next wait ends or its turn does, so it cannot land after a message sent
36
+ * later.
37
+ */
38
+ export class AgentInbox {
39
+ held = [];
40
+ waiters = [];
41
+ send;
42
+ busy;
43
+ starting = false;
44
+ // Deliveries run one at a time, so a later sender never overtakes an earlier one mid-send.
45
+ delivering = Promise.resolve();
46
+ /**
47
+ * `send` hands one message to the agent's session; `busy` says whether it is
48
+ * mid-turn, where a follow-up handed over now would land late.
49
+ */
50
+ constructor(send, busy = () => true) {
51
+ this.send = send;
52
+ this.busy = busy;
53
+ }
54
+ /** Hold every message until `started`: the agent's session is not there yet to take one. */
55
+ holdUntilStarted() {
56
+ this.starting = true;
57
+ }
58
+ /** The agent's session is up: the messages held until now, in send order, for its first prompt. */
59
+ started() {
60
+ this.starting = false;
61
+ return this.take();
62
+ }
63
+ /** Give the oldest wait every held message and this one, else send or hold it, in send order. */
64
+ deliver(message) {
65
+ const delivered = this.delivering.then(() => this.deliverNow(message));
66
+ this.delivering = delivered.catch(() => { });
67
+ return delivered;
68
+ }
69
+ async deliverNow(message) {
70
+ if (this.starting) {
71
+ this.held.push(message);
72
+ return;
73
+ }
74
+ const waiter = this.waiters.shift();
75
+ if (waiter) {
76
+ waiter([...this.take(), message]);
77
+ return;
78
+ }
79
+ if (message.deliver === "followUp" && this.busy()) {
80
+ this.held.push(message);
81
+ return;
82
+ }
83
+ // Older held follow-ups go first, as this one is delivered, so none lands after it.
84
+ for (const held of this.take())
85
+ await this.send({ ...held, deliver: message.deliver });
86
+ await this.send(message);
87
+ }
88
+ /**
89
+ * Put back messages a wait took but did not report, because what it waited on
90
+ * settled first: they are held again, ahead of anything held since.
91
+ */
92
+ restore(messages) {
93
+ this.held.unshift(...messages);
94
+ }
95
+ /** Whether messages are held for the end of the agent's turn. */
96
+ hasHeld() {
97
+ return this.held.length > 0;
98
+ }
99
+ /** The held messages, in send order, removed from the inbox. */
100
+ take() {
101
+ return this.held.splice(0);
102
+ }
103
+ /** Send the held messages to the agent's session, at the end of its turn, in turn with deliveries. */
104
+ flush() {
105
+ const flushed = this.delivering.then(async () => {
106
+ for (const message of this.take())
107
+ await this.send(message);
108
+ });
109
+ this.delivering = flushed.catch(() => { });
110
+ return flushed;
111
+ }
112
+ /**
113
+ * The messages delivered while this is pending, held ones first, or
114
+ * `undefined` once `signal` aborts. Held follow-ups alone don't end it: the
115
+ * wait they ride on is the agent's current work. Stop listening by aborting.
116
+ */
117
+ next(signal) {
118
+ if (signal.aborted)
119
+ return Promise.resolve(undefined);
120
+ return new Promise((resolve) => {
121
+ const take = (messages) => {
122
+ signal.removeEventListener("abort", stop);
123
+ resolve(messages);
124
+ };
125
+ const stop = () => {
126
+ const index = this.waiters.indexOf(take);
127
+ if (index >= 0)
128
+ this.waiters.splice(index, 1);
129
+ resolve(undefined);
130
+ };
131
+ this.waiters.push(take);
132
+ signal.addEventListener("abort", stop, { once: true });
133
+ });
134
+ }
135
+ }
136
+ // The form of a run id, which a label may not take.
137
+ const RUN_ID = /^agent-run-\d+$/;
138
+ /** Every agent of a session that can be messaged, by id and by name. */
139
+ export class AgentMessageBus {
140
+ byId = new Map();
141
+ byName = new Map();
142
+ /** Whether a live agent already goes by `name`. */
143
+ hasName(name) {
144
+ return this.byName.has(name);
145
+ }
146
+ /** Add an agent; a name already in use is refused. Returns its removal. */
147
+ register(recipient) {
148
+ if (recipient.name !== undefined && this.byName.has(recipient.name)) {
149
+ throw new Error(`An agent named "${recipient.name}" is already running in this session; pick another label.`);
150
+ }
151
+ // A name resolves before an id, so neither may stand for the other's run.
152
+ if (recipient.name !== undefined &&
153
+ recipient.name !== recipient.id &&
154
+ (RUN_ID.test(recipient.name) || this.byId.has(recipient.name))) {
155
+ throw new Error(`"${recipient.name}" reads as a run id; pick a label that does not.`);
156
+ }
157
+ if (this.byName.has(recipient.id)) {
158
+ throw new Error(`A run is labelled "${recipient.id}", which is this run's id; pick another label for it.`);
159
+ }
160
+ this.byId.set(recipient.id, recipient);
161
+ if (recipient.name !== undefined)
162
+ this.byName.set(recipient.name, recipient.id);
163
+ return () => {
164
+ if (this.byId.get(recipient.id) !== recipient)
165
+ return;
166
+ this.byId.delete(recipient.id);
167
+ if (recipient.name !== undefined &&
168
+ this.byName.get(recipient.name) === recipient.id)
169
+ this.byName.delete(recipient.name);
170
+ };
171
+ }
172
+ /** The line a run's system prompt carries so it knows how it is addressed. */
173
+ introduce(id) {
174
+ const name = this.byId.get(id)?.name;
175
+ return `Your name is ${name ?? id}${name ? ` (run ${id})` : ""}. Sign messages with your name; send_message's \`to\` is ${ROOT_AGENT} or another run's name.`;
176
+ }
177
+ /** The name a sender signs a message with: its name, else its id. */
178
+ nameOf(id) {
179
+ return this.byId.get(id)?.name ?? id;
180
+ }
181
+ /** Set the agent `id`'s own status note; it reaches no other agent. */
182
+ setStatus(id, note) {
183
+ this.byId.get(id)?.setStatus?.(note);
184
+ }
185
+ /** Send `text` from the agent `fromId` to `to`, a name or a run id. */
186
+ async send(fromId, to, text, deliver = "steer") {
187
+ const recipientId = this.byName.get(to) ?? to;
188
+ const recipient = this.byId.get(recipientId);
189
+ if (!recipient || recipientId === fromId) {
190
+ const others = [...this.byId.values()]
191
+ .filter((agent) => agent.id !== fromId && agent.accepting())
192
+ .map((agent) => agent.name ?? agent.id);
193
+ const reason = recipient
194
+ ? "You cannot message yourself"
195
+ : `No agent "${to}"`;
196
+ throw new Error(`${reason}. You can message: ${others.length ? others.join(", ") : "nobody"}.`);
197
+ }
198
+ if (!recipient.accepting()) {
199
+ throw new Error(`"${to}" has finished and takes no messages; it was started by its parent, which can resume it.`);
200
+ }
201
+ await recipient.inbox.deliver({
202
+ from: this.nameOf(fromId),
203
+ fromId,
204
+ text,
205
+ deliver,
206
+ });
207
+ return recipient.name ?? recipient.id;
208
+ }
209
+ }
210
+ /** The `send_message` tool of the agent `senderId`. */
211
+ export function createSendMessageTool(bus, senderId) {
212
+ return defineTool({
213
+ name: "send_message",
214
+ label: "Send message",
215
+ description: [
216
+ `Send a message to another agent of this session while you keep working: "${ROOT_AGENT}" is the agent that started this work.`,
217
+ "It arrives at once, even while they wait on you, so use it for what they need to know before you finish: a result that changes their plan, a failure, a question.",
218
+ "Your final answer still reaches them when you finish; don't repeat it here.",
219
+ ].join(" "),
220
+ parameters: SEND_MESSAGE_ARGUMENTS,
221
+ async execute(_callId, rawParams) {
222
+ const params = rawParams;
223
+ try {
224
+ if (params.deliver === "status") {
225
+ bus.setStatus(senderId, {
226
+ text: params.message,
227
+ ...(params.usage
228
+ ? {
229
+ usage: {
230
+ input_tokens: params.usage.input,
231
+ output_tokens: params.usage.output,
232
+ cost_usd: params.usage.cost,
233
+ },
234
+ }
235
+ : {}),
236
+ });
237
+ return {
238
+ content: [{ type: "text", text: "Status set." }],
239
+ details: { to: params.to },
240
+ };
241
+ }
242
+ if (params.usage)
243
+ throw new Error('usage goes with deliver "status" only: it reports work you ran elsewhere, on your own line.');
244
+ const to = await bus.send(senderId, params.to, params.message, params.deliver);
245
+ return {
246
+ content: [{ type: "text", text: `Sent to ${to}.` }],
247
+ details: { to },
248
+ };
249
+ }
250
+ catch (error) {
251
+ return {
252
+ content: [
253
+ {
254
+ type: "text",
255
+ text: error instanceof Error ? error.message : String(error),
256
+ },
257
+ ],
258
+ details: { to: params.to },
259
+ isError: true,
260
+ };
261
+ }
262
+ },
263
+ });
264
+ }
265
+ //# sourceMappingURL=messages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/child/messages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EACL,UAAU,GAEX,MA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AE,GAAG,EAAE,CAAC;oBAC5D,OAAO,EAAE,EAAE,EAAE,EAAE;iBAChB,CAAC;YACJ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO;oBACL,OAAO,EAAE;wBACP;4BACE,IAAI,EAAE,MAAe;4BACrB,IAAI,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;yBAC7D;qBACF;oBACD,OAAO,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE;oBAC1B,OAAO,EAAE,IAAI;iBACd,CAAC;YACJ,CAAC;QACH,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import type { Api, CredentialStore, Model } from "@earendil-works/pi-ai";
2
2
  import type { AgentSessionEvent, ModelRegistry, SettingsManager } from "@earendil-works/pi-coding-agent";
3
3
  import { type AgentRunEventObserver } from "../agents.js";
4
+ import { type AgentInbox, type AgentMessageBus } from "./messages.js";
4
5
  import type { ResolvedRecipe } from "../recipe/resolve.js";
5
6
  import type { ApiLocalConfig } from "../api-bindings.js";
6
7
  import type { RecipeClockOptions } from "../clock.js";
@@ -32,6 +33,15 @@ export interface CreateIsolatedChildSessionOptions {
32
33
  depth?: number;
33
34
  /** Observe events from runs this child starts in turn. */
34
35
  onAgentRunEvent?: AgentRunEventObserver;
36
+ /**
37
+ * The session's agents, this child's run id and its inbox: the child gets
38
+ * `send_message`, and runs it starts join the same bus.
39
+ */
40
+ messages?: {
41
+ bus: AgentMessageBus;
42
+ id: string;
43
+ inbox: AgentInbox;
44
+ };
35
45
  /**
36
46
  * Pi's model registry, when the child was bound through it: the runs this
37
47
  * child starts are bound the same way, each for its own model and provider,
@@ -1 +1 @@
1
- {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/child/session.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,eAAe,E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