cueloop 0.1.0-alpha.15 → 0.1.0-alpha.16

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",
3
- "version": "0.1.0-alpha.15",
3
+ "version": "0.1.0-alpha.16",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "bin": {
@@ -10,9 +10,9 @@
10
10
  ".": "./src/main.ts"
11
11
  },
12
12
  "dependencies": {
13
- "@cueloop/schema": "0.1.0-alpha.15",
14
- "@cueloop/daemon": "0.1.0-alpha.15",
15
- "@cueloop/client": "0.1.0-alpha.15"
13
+ "@cueloop/schema": "0.1.0-alpha.16",
14
+ "@cueloop/daemon": "0.1.0-alpha.16",
15
+ "@cueloop/client": "0.1.0-alpha.16"
16
16
  },
17
17
  "publishConfig": {
18
18
  "access": "public"
@@ -6,7 +6,7 @@
6
6
 
7
7
  import { newAnnotationId, type ArtifactType, type VerdictKind } from "@cueloop/schema";
8
8
  import { DaemonClient } from "@cueloop/daemon/client";
9
- import { openReview, verdictResponse } from "@cueloop/daemon/review";
9
+ import { openReview, verdictResponse, type ReviewNote } from "@cueloop/daemon/review";
10
10
  import { parseArgs, flagStr } from "./args";
11
11
 
12
12
  async function readStdin(): Promise<string> {
@@ -26,6 +26,9 @@ export async function sessionCommand(argv: string[]): Promise<number> {
26
26
  case "create": {
27
27
  const contentFile = flagStr(flags, "content-file");
28
28
  const content = contentFile ? await Bun.file(contentFile).text() : await readStdin();
29
+ // per-file agent notes for diff sessions: a JSON array of { path, body }
30
+ const notesFile = flagStr(flags, "notes-file");
31
+ const notes = notesFile ? (JSON.parse(await Bun.file(notesFile).text()) as ReviewNote[]) : undefined;
29
32
  const review = await openReview(client, {
30
33
  type: (flagStr(flags, "type") ?? "plan") as ArtifactType,
31
34
  content,
@@ -34,6 +37,7 @@ export async function sessionCommand(argv: string[]): Promise<number> {
34
37
  agentSessionId: flagStr(flags, "agent-session-id"),
35
38
  planPath: flagStr(flags, "plan-path"),
36
39
  title: flagStr(flags, "title"),
40
+ notes,
37
41
  });
38
42
  out(review.session);
39
43
  return 0;