@ziggs-ai/contracts 0.49.0 → 0.49.1

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.
@@ -123,11 +123,14 @@ export interface MessageRecord {
123
123
  artifactId: string;
124
124
  name: string;
125
125
  }> | null;
126
- /** Set when the person who owns the sending agent wrote this message as that
127
- * agent: the ref of that person among `readers`. The message is the agent's;
128
- * this says who wrote it, the way `ownerOf` says who reads along. Absent on
129
- * every message the agent wrote itself. */
130
- writtenBy?: string;
126
+ /** Set when a person who runs the sending agent wrote this message as that
127
+ * agent, from their own session. The message is the agent's; this says who
128
+ * wrote it, by the name the viewer may see them under. Absent on every
129
+ * message the agent wrote itself. */
130
+ writtenBy?: {
131
+ name: string;
132
+ isSelf: boolean;
133
+ };
131
134
  }
132
135
  export interface MessageCommandResult {
133
136
  outcome: 'created' | 'existing';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ziggs-ai/contracts",
3
- "version": "0.49.0",
3
+ "version": "0.49.1",
4
4
  "description": "Wire contracts for the Ziggs API — response shapes, error body, and socket events, shared by every client.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",