@ego-z/contracts 0.15.25 → 0.15.26

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/agents.d.ts +10 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ego-z/contracts",
3
- "version": "0.15.25",
3
+ "version": "0.15.26",
4
4
  "description": "Wire-format type contracts shared between EgoZ backend, SDK, MCP and console. Type-only — no runtime artifacts.",
5
5
  "types": "./src/index.d.ts",
6
6
  "exports": {
package/src/agents.d.ts CHANGED
@@ -69,15 +69,17 @@
69
69
  * started, queue time included, so a run still waiting at `deadlineAt` ends
70
70
  * `failed: timeout` without having run.
71
71
  *
72
- * ── The note on the main agent's conversation ───────────────────────────
72
+ * ── What the main agent is told ──────────────────────────────────────────
73
73
  *
74
- * When a run ends, EgoZ adds a short note to the conversation that started
75
- * it, so the main agent's next turn knows — e.g.
76
- * `[translator finished. It reported: «…»]`, `[translator failed: budget]`,
77
- * `[translator needs your input: «…» — ask the user]`. The reported text is
78
- * cut to 500 characters and quoted as data, never as instructions: a
79
- * sub-agent may have read pages written by anyone. The full result is on the
80
- * run. EgoZ starts no turn by itself: to have the main agent tell the user
74
+ * The main agent's next turn on the conversation that started a run is told
75
+ * how it went, in a "Sub-agent runs" block of that turn's prompt — e.g.
76
+ * `translator (run …): finished. It reported: «…»`, `…: failed (budget): …`,
77
+ * `…: needs the user's input: «…» — ask the user …` — and runs still going are
78
+ * listed too, so it doesn't start them again. An ended run is shown once. The
79
+ * reported text is cut to 500 characters and quoted as data, never as
80
+ * instructions: a sub-agent may have read pages written by anyone. The full
81
+ * result is on the run. Nothing is added to the conversation's messages.
82
+ * EgoZ starts no turn by itself: to have the main agent tell the user
81
83
  * unprompted, send the next /ask yourself when the webhook arrives.
82
84
  */
83
85