@stndrds/schema 1.0.0-alpha.338 → 1.0.0-alpha.342

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.mts CHANGED
@@ -2310,6 +2310,20 @@ export type AIChatMessagePart = {
2310
2310
  * notification. `completed` reads as success; everything else reads as failure.
2311
2311
  */
2312
2312
  export type AISubagentStatus = "completed" | "failed" | "cancelled" | "timeout" | "expired";
2313
+ /**
2314
+ * `metadata.kind` of the `user` row the backend appends to a parent session when
2315
+ * a dispatched child finishes. It is delivered by its own mechanism and is NEVER
2316
+ * a waiting message: a person did not send it, and the agent's read watermark
2317
+ * ignores it. Every reader that decides "is this message waiting" reaches the
2318
+ * rule here: the SQL predicate (`waitingUserMessage` in the Postgres
2319
+ * repository) binds {@link AGENT_NOTIFICATION_KIND} as a query parameter; the
2320
+ * runtime mock and the client readers call {@link isAgentNotificationMetadata}.
2321
+ * A contract test in the runtime keeps the literal out of everywhere else
2322
+ * (#3792).
2323
+ */
2324
+ export declare const AGENT_NOTIFICATION_KIND = "agent-notification";
2325
+ /** Whether a message's metadata marks it as a subagent notification. */
2326
+ export declare function isAgentNotificationMetadata(metadata: Readonly<Record<string, unknown>> | null | undefined): boolean;
2313
2327
  /**
2314
2328
  * Narrow, UI-ready projection of an `agent-notification` message. Derived by the
2315
2329
  * react mapper from the raw `AgentSessionMessage.metadata` so the UI never has to
package/dist/index.d.ts CHANGED
@@ -2310,6 +2310,20 @@ export type AIChatMessagePart = {
2310
2310
  * notification. `completed` reads as success; everything else reads as failure.
2311
2311
  */
2312
2312
  export type AISubagentStatus = "completed" | "failed" | "cancelled" | "timeout" | "expired";
2313
+ /**
2314
+ * `metadata.kind` of the `user` row the backend appends to a parent session when
2315
+ * a dispatched child finishes. It is delivered by its own mechanism and is NEVER
2316
+ * a waiting message: a person did not send it, and the agent's read watermark
2317
+ * ignores it. Every reader that decides "is this message waiting" reaches the
2318
+ * rule here: the SQL predicate (`waitingUserMessage` in the Postgres
2319
+ * repository) binds {@link AGENT_NOTIFICATION_KIND} as a query parameter; the
2320
+ * runtime mock and the client readers call {@link isAgentNotificationMetadata}.
2321
+ * A contract test in the runtime keeps the literal out of everywhere else
2322
+ * (#3792).
2323
+ */
2324
+ export declare const AGENT_NOTIFICATION_KIND = "agent-notification";
2325
+ /** Whether a message's metadata marks it as a subagent notification. */
2326
+ export declare function isAgentNotificationMetadata(metadata: Readonly<Record<string, unknown>> | null | undefined): boolean;
2313
2327
  /**
2314
2328
  * Narrow, UI-ready projection of an `agent-notification` message. Derived by the
2315
2329
  * react mapper from the raw `AgentSessionMessage.metadata` so the UI never has to