@anynotate/protocol 0.5.0 → 0.6.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/PROTOCOL.md CHANGED
@@ -114,6 +114,7 @@ Each entry is a CSS selector for an `<iframe>`, outermost first, resolved in the
114
114
  - Optional `offscreen: true` on any annotation whose target was not on the page at send time (`box` and crop are from when the note was made); `README.md` puts "Not on the page when sent — crop is from when the note was made." under its heading (without the crop clause when no crop was sent; additive, same releases; wording since bridge 0.6.1).
115
115
  - Optional `anchor.frames` on notes made inside same-origin iframes; `README.md` names the frames after the selector (additive, same releases).
116
116
  - Optional `workspace` on `Session`: the display name of the herdr workspace holding a herdr pane (additive, `@anynotate/protocol` 0.5.0, bridge 0.6.1).
117
+ - Optional `published` on `Session`: claude.ai artifacts the session published, with the time of its first publish (additive, `@anynotate/protocol` 0.6.0, bridge 0.6.7).
117
118
 
118
119
  ## Threat model
119
120
 
@@ -26,6 +26,10 @@ export declare const responseSchemas: {
26
26
  pane: z.ZodOptional<z.ZodString>;
27
27
  sessionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
28
28
  workspace: z.ZodOptional<z.ZodString>;
29
+ published: z.ZodOptional<z.ZodArray<z.ZodObject<{
30
+ id: z.ZodString;
31
+ at: z.ZodString;
32
+ }, z.core.$strip>>>;
29
33
  }, z.core.$strip>>;
30
34
  SendResponse: z.ZodObject<{
31
35
  id: z.ZodString;
package/dist/index.d.ts CHANGED
@@ -276,6 +276,10 @@ export declare const Session: z.ZodObject<{
276
276
  pane: z.ZodOptional<z.ZodString>;
277
277
  sessionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
278
278
  workspace: z.ZodOptional<z.ZodString>;
279
+ published: z.ZodOptional<z.ZodArray<z.ZodObject<{
280
+ id: z.ZodString;
281
+ at: z.ZodString;
282
+ }, z.core.$strip>>>;
279
283
  }, z.core.$strip>;
280
284
  export type Session = z.infer<typeof Session>;
281
285
  export declare const PROTOCOL_VERSION = 2;
@@ -302,6 +306,10 @@ export declare const SessionsResponse: z.ZodArray<z.ZodObject<{
302
306
  pane: z.ZodOptional<z.ZodString>;
303
307
  sessionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
304
308
  workspace: z.ZodOptional<z.ZodString>;
309
+ published: z.ZodOptional<z.ZodArray<z.ZodObject<{
310
+ id: z.ZodString;
311
+ at: z.ZodString;
312
+ }, z.core.$strip>>>;
305
313
  }, z.core.$strip>>;
306
314
  export type SessionsResponse = z.infer<typeof SessionsResponse>;
307
315
  export declare const SendResponse: z.ZodObject<{
package/dist/index.js CHANGED
@@ -79,6 +79,8 @@ export const Session = z.object({
79
79
  sessionIds: z.array(z.string()).optional(),
80
80
  /** Display name of the herdr workspace a herdr pane is in. */
81
81
  workspace: z.string().optional(),
82
+ /** claude.ai artifacts this session published, each with the time of its first publish; newest first, at most 50. */
83
+ published: z.array(z.object({ id: z.string(), at: z.string() })).optional(),
82
84
  });
83
85
  // Protocol v2. Additive changes (optional fields, new endpoints) keep the version; removals, renames and
84
86
  // semantic changes bump PROTOCOL_VERSION, and the bridge keeps accepting the previous version for a release.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anynotate/protocol",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Wire types and zod schemas shared by Anynotate clients and the Anynotate bridge.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Kun Xu",
package/src/index.ts CHANGED
@@ -101,6 +101,8 @@ export const Session = z.object({
101
101
  sessionIds: z.array(z.string()).optional(),
102
102
  /** Display name of the herdr workspace a herdr pane is in. */
103
103
  workspace: z.string().optional(),
104
+ /** claude.ai artifacts this session published, each with the time of its first publish; newest first, at most 50. */
105
+ published: z.array(z.object({ id: z.string(), at: z.string() })).optional(),
104
106
  });
105
107
  export type Session = z.infer<typeof Session>;
106
108