@cueloop/daemon 0.1.0-alpha.45 → 0.1.0-alpha.46

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cueloop/daemon",
3
- "version": "0.1.0-alpha.45",
3
+ "version": "0.1.0-alpha.46",
4
4
  "description": "The cueloop session daemon and its client: socket protocol, atomic store, resumable waits",
5
5
  "homepage": "https://github.com/mmurakaru/cueloop#readme",
6
6
  "bugs": {
@@ -30,7 +30,7 @@
30
30
  "access": "public"
31
31
  },
32
32
  "dependencies": {
33
- "@cueloop/schema": "0.1.0-alpha.45",
33
+ "@cueloop/schema": "0.1.0-alpha.46",
34
34
  "valibot": "^1.4.2"
35
35
  },
36
36
  "engines": {
package/src/review.ts CHANGED
@@ -55,6 +55,7 @@ export interface OpenReviewOptions {
55
55
  /** When set, a resubmit from the same agent session becomes a revision, not a new session. */
56
56
  agentSessionId?: string;
57
57
  planPath?: string;
58
+ prototypePath?: string;
58
59
  pr?: string;
59
60
  herdrPane?: string;
60
61
  /**
@@ -249,6 +250,7 @@ export async function openReview(
249
250
  agent: options.agent,
250
251
  agentSessionId: options.agentSessionId,
251
252
  planPath: options.planPath,
253
+ prototypePath: options.prototypePath,
252
254
  pr: options.pr,
253
255
  herdrPane: options.herdrPane,
254
256
  title: options.title ?? (options.type === "plan" ? firstHeading(options.content) : undefined),
@@ -168,6 +168,7 @@ describe("wire pins", () => {
168
168
  agent: "claude-code",
169
169
  agentSessionId: "sess-1",
170
170
  planPath: "/repo/plan.md",
171
+ prototypePath: "/repo/proto.html",
171
172
  pr: "org/repo#1",
172
173
  herdrPane: "%7",
173
174
  title: "Plan",
@@ -179,6 +180,7 @@ describe("wire pins", () => {
179
180
  blockIndex: 0,
180
181
  start: 0,
181
182
  end: 1,
183
+ selector: "div.card",
182
184
  };
183
185
  const fullAnnotation: Required<Annotation> = {
184
186
  id: "a1",
package/src/validate.ts CHANGED
@@ -46,6 +46,7 @@ export const ArtifactMetaSchema = v.object({
46
46
  agent: v.optional(v.string()),
47
47
  agentSessionId: v.optional(v.string()),
48
48
  planPath: v.optional(v.string()),
49
+ prototypePath: v.optional(v.string()),
49
50
  pr: v.optional(v.string()),
50
51
  herdrPane: v.optional(v.string()),
51
52
  title: v.optional(v.string()),
@@ -59,7 +60,7 @@ export const DiffFileContentsSchema = v.object({
59
60
  } satisfies EntriesOf<DiffFileContents>);
60
61
 
61
62
  export const ArtifactSchema = v.object({
62
- type: v.picklist(["plan", "diff"]),
63
+ type: v.picklist(["plan", "diff", "prototype"]),
63
64
  content: v.string(),
64
65
  meta: v.optional(ArtifactMetaSchema, {}),
65
66
  files: v.optional(v.array(DiffFileContentsSchema)),
@@ -72,6 +73,7 @@ export const AnchorSchema = v.object({
72
73
  blockIndex: v.optional(v.number()),
73
74
  start: v.optional(v.number()),
74
75
  end: v.optional(v.number()),
76
+ selector: v.optional(v.string()),
75
77
  } satisfies EntriesOf<Anchor>);
76
78
 
77
79
  /** Wire annotations arrive without createdAt - the daemon stamps it. */