@standardagents/spec 0.33.1 → 0.35.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.
package/dist/index.d.ts CHANGED
@@ -1159,6 +1159,25 @@ interface Message {
1159
1159
  status?: 'pending' | 'completed' | 'failed' | null;
1160
1160
  /** Tool execution status (for tool result messages) */
1161
1161
  tool_status?: 'success' | 'error' | null;
1162
+ /**
1163
+ * Stored model reasoning/thinking text for assistant messages (when the
1164
+ * model produced any). Runtimes that persist reasoning expose it here so
1165
+ * hooks can weigh or transform it — e.g. context-budget estimation must
1166
+ * count reasoning that will be replayed for interleaved-thinking models.
1167
+ */
1168
+ reasoning_content?: string | null;
1169
+ /**
1170
+ * JSON-encoded array of structured reasoning detail objects (text,
1171
+ * summary, or encrypted blocks) for assistant messages, preserved exactly
1172
+ * as returned by the provider for multi-turn reasoning continuity.
1173
+ */
1174
+ reasoning_details?: string | null;
1175
+ /**
1176
+ * Name of the prompt that was active when this message was created.
1177
+ * Lets hooks scope per-prompt behavior (e.g. reasoning replay is only
1178
+ * valid for messages authored by the requesting prompt's model).
1179
+ */
1180
+ prompt?: string | null;
1162
1181
  /** Subagent reference UUID associated with this message */
1163
1182
  subagent_id?: string | null;
1164
1183
  /** Subagent agent name projected from runtime registry (when available) */
@@ -4921,6 +4940,17 @@ interface AgentDefinition<N extends string = string, Prompt extends string = Sta
4921
4940
  * @default false
4922
4941
  */
4923
4942
  exposeAsTool?: boolean;
4943
+ /**
4944
+ * Whether this agent is a PRIMARY, user-facing entry point (default true).
4945
+ *
4946
+ * Set `primary: false` on agents that exist only as internal handoff
4947
+ * targets or infrastructure — e.g. the specialist variants of a
4948
+ * domain-routing gearbox. Non-primary agents remain fully addressable
4949
+ * (handoffs, invokeTool, thread resumption) and their threads remain
4950
+ * visible; UIs use this flag to keep them out of top-level agent lists
4951
+ * and pickers so one logical product agent doesn't show up N times.
4952
+ */
4953
+ primary?: boolean;
4924
4954
  /**
4925
4955
  * Description shown when agent is used as a tool.
4926
4956
  * Required if exposeAsTool is true.