cueloop 0.1.0-alpha.6 → 0.1.0-alpha.60

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,37 +1,41 @@
1
1
  {
2
2
  "name": "cueloop",
3
- "version": "0.1.0-alpha.6",
3
+ "version": "0.1.0-alpha.60",
4
+ "description": "Terminal review surface for coding agents: annotate plans and diffs, return a verdict, send structured feedback back",
5
+ "homepage": "https://github.com/mmurakaru/cueloop#readme",
6
+ "bugs": {
7
+ "url": "https://github.com/mmurakaru/cueloop/issues"
8
+ },
4
9
  "license": "Apache-2.0",
5
- "type": "module",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/mmurakaru/cueloop.git",
13
+ "directory": "packages/cli"
14
+ },
6
15
  "bin": {
7
16
  "cueloop": "./src/main.ts"
8
17
  },
18
+ "files": [
19
+ "src",
20
+ "README.md"
21
+ ],
22
+ "type": "module",
9
23
  "exports": {
10
24
  ".": "./src/main.ts"
11
25
  },
12
- "dependencies": {
13
- "@cueloop/schema": "0.1.0-alpha.6",
14
- "@cueloop/daemon": "0.1.0-alpha.6",
15
- "@cueloop/client": "0.1.0-alpha.6"
16
- },
17
26
  "publishConfig": {
18
27
  "access": "public"
19
28
  },
20
- "files": [
21
- "src",
22
- "README.md"
23
- ],
24
- "engines": {
25
- "bun": ">=1.3.0"
29
+ "scripts": {
30
+ "build:binary": "bun build --compile --external cpu-features ./src/main.ts --outfile dist/cueloop"
26
31
  },
27
- "repository": {
28
- "type": "git",
29
- "url": "git+https://github.com/mmurakaru/cueloop.git",
30
- "directory": "packages/cli"
31
- },
32
- "homepage": "https://github.com/mmurakaru/cueloop#readme",
33
- "bugs": {
34
- "url": "https://github.com/mmurakaru/cueloop/issues"
32
+ "dependencies": {
33
+ "@cueloop/adapters": "0.1.0-alpha.60",
34
+ "@cueloop/client": "0.1.0-alpha.60",
35
+ "@cueloop/daemon": "0.1.0-alpha.60",
36
+ "@cueloop/schema": "0.1.0-alpha.60"
35
37
  },
36
- "description": "Terminal review surface for coding agents: annotate plans and diffs, return a verdict, send structured feedback back"
37
- }
38
+ "engines": {
39
+ "bun": ">=1.3.0"
40
+ }
41
+ }
@@ -0,0 +1,49 @@
1
+ /**
2
+ * `cueloop actions list [--session <id>]` - print the quick-action vocabulary
3
+ * (the same presets a human picks in the marker popover) so a review-side agent
4
+ * can reference one by name or index via `session annotate --action`. With
5
+ * `--session`, the vocabulary comes from that session's repo (matching what
6
+ * `--action` will resolve); otherwise from the caller's cwd. JSON on stdout.
7
+ */
8
+
9
+ import { loadConfig } from "@cueloop/client/config";
10
+ import { DaemonClient } from "@cueloop/daemon/client";
11
+ import { parseArgs, stringFlag } from "./args";
12
+
13
+ export async function actionsCommand(argv: string[]): Promise<number> {
14
+ const { positional, flags } = parseArgs(argv);
15
+ const verb = positional[0] ?? "list";
16
+
17
+ if (verb !== "list") {
18
+ console.error("usage: cueloop actions list [--session <id>]");
19
+
20
+ return 2;
21
+ }
22
+ const role = stringFlag(flags, "role") === "agent" ? "agent" : undefined;
23
+ const repoRoot = await repoRootForSession(stringFlag(flags, "session"), role);
24
+ const actions = loadConfig({ repoRoot }).actions;
25
+ const numbered = actions.map((action, index) => ({
26
+ index: index + 1,
27
+ prompt: action.prompt,
28
+ metadata: action.metadata,
29
+ }));
30
+
31
+ console.log(JSON.stringify(numbered, null, 2));
32
+
33
+ return 0;
34
+ }
35
+
36
+ /** The repo the given session lives in, or the caller's cwd when no session is named. */
37
+ async function repoRootForSession(
38
+ sessionId: string | undefined,
39
+ role: "agent" | undefined,
40
+ ): Promise<string> {
41
+ if (sessionId === undefined) return process.cwd();
42
+ const client = await DaemonClient.connect({ autostart: true, role });
43
+
44
+ try {
45
+ return (await client.sessionGet(sessionId)).workspace.repoRoot;
46
+ } finally {
47
+ client.close();
48
+ }
49
+ }
package/src/args.ts CHANGED
@@ -8,18 +8,22 @@ export interface ParsedArgs {
8
8
  export function parseArgs(argv: string[]): ParsedArgs {
9
9
  const positional: string[] = [];
10
10
  const flags: Record<string, string | boolean> = {};
11
+
11
12
  for (let i = 0; i < argv.length; i++) {
12
- const a = argv[i]!;
13
- if (!a.startsWith("--")) {
14
- positional.push(a);
13
+ const argument = argv[i]!;
14
+
15
+ if (!argument.startsWith("--")) {
16
+ positional.push(argument);
15
17
  continue;
16
18
  }
17
- const eq = a.indexOf("=");
18
- if (eq !== -1) {
19
- flags[a.slice(2, eq)] = a.slice(eq + 1);
19
+ const equalsIndex = argument.indexOf("=");
20
+
21
+ if (equalsIndex !== -1) {
22
+ flags[argument.slice(2, equalsIndex)] = argument.slice(equalsIndex + 1);
20
23
  } else {
21
- const key = a.slice(2);
24
+ const key = argument.slice(2);
22
25
  const next = argv[i + 1];
26
+
23
27
  if (next !== undefined && !next.startsWith("--")) {
24
28
  flags[key] = next;
25
29
  i++;
@@ -28,10 +32,15 @@ export function parseArgs(argv: string[]): ParsedArgs {
28
32
  }
29
33
  }
30
34
  }
35
+
31
36
  return { positional, flags };
32
37
  }
33
38
 
34
- export function flagStr(flags: Record<string, string | boolean>, key: string): string | undefined {
35
- const v = flags[key];
36
- return typeof v === "string" ? v : undefined;
39
+ export function stringFlag(
40
+ flags: Record<string, string | boolean>,
41
+ key: string,
42
+ ): string | undefined {
43
+ const value = flags[key];
44
+
45
+ return typeof value === "string" ? value : undefined;
37
46
  }
package/src/main.ts CHANGED
@@ -1,103 +1,302 @@
1
1
  #!/usr/bin/env bun
2
2
  /**
3
- * cueloop entry points (#18): `cueloop` opens the TUI on the inbox,
4
- * `cueloop diff` reviews the working tree, `cueloop review <pr>` a PR,
5
- * `cueloop session *` mirrors the daemon API for agents and scripts,
6
- * `cueloop serve` shares a session over ssh (read-only observers),
7
- * `cueloop daemon` runs the daemon in the foreground.
3
+ * cueloop entry points: `cueloop` opens the TUI on the inbox, the verb-first
4
+ * openers `cueloop plan|reply|diff|review` open the latest pending review of
5
+ * that type (or address one by id/title), `cueloop diff`/`cueloop review <pr>` also
6
+ * keep their create paths, `cueloop session *` mirrors the daemon API for
7
+ * agents and scripts, `cueloop serve` shares a session over ssh (read-only
8
+ * observers), `cueloop daemon` runs the daemon in the foreground.
8
9
  */
9
10
 
10
- import { parseArgs, flagStr } from "./args";
11
- import { sessionCommand } from "./session-cmds";
12
- import { resolveWorkspace, workingTreeDiff } from "./workspace";
11
+ import { basename, resolve } from "node:path";
12
+ import { parseArgs, stringFlag, type ParsedArgs } from "./args";
13
+ import {
14
+ isDiffReview,
15
+ isPlanReview,
16
+ isPrototypeReview,
17
+ isPrReview,
18
+ isReplyReview,
19
+ isSessionId,
20
+ openTargetMessage,
21
+ resolveOpenTarget,
22
+ } from "./open-target";
23
+ import { sessionCommand } from "./session-commands";
24
+ import { CLI_VERSION } from "./version";
13
25
  import { DaemonClient } from "@cueloop/daemon/client";
26
+ import { workingTreeDiff } from "@cueloop/daemon/working-tree";
27
+ import type { ReviewSession } from "@cueloop/schema";
28
+ import { openReview, resolveWorkspace } from "@cueloop/daemon/review";
14
29
 
15
30
  const argv = process.argv.slice(2);
16
31
  const cmd = argv[0];
17
32
 
33
+ async function daemonCommand(): Promise<number> {
34
+ const { DaemonServer } = await import("@cueloop/daemon");
35
+ const server = new DaemonServer({ idleExitMs: 0 });
36
+ const path = server.start();
37
+
38
+ if (path === null) {
39
+ console.error("a cueloop daemon already owns this home - nothing to do");
40
+
41
+ return 1;
42
+ }
43
+ console.log(`cueloop daemon (foreground) on ${path}`);
44
+ await new Promise(() => {}); // run until signalled
45
+
46
+ return 0;
47
+ }
48
+
49
+ async function serveEntry(rest: string[]): Promise<number> {
50
+ const { positional, flags } = parseArgs(rest);
51
+ const port = stringFlag(flags, "port");
52
+ const { serveClient } = await import("@cueloop/client");
53
+ const handle = await serveClient({
54
+ port: port !== undefined ? Number(port) : undefined,
55
+ host: stringFlag(flags, "host"),
56
+ sessionId: positional[0],
57
+ });
58
+
59
+ console.log(
60
+ [
61
+ "",
62
+ `observers join with: ssh -p ${handle.port} ${handle.host === "0.0.0.0" || handle.host === "::" ? "<this-host>" : handle.host}`,
63
+ "",
64
+ "no passwords, no keys: anyone who can reach this address can watch.",
65
+ "share the address deliberately (SSH tunnel, tailnet). observers are",
66
+ "read-only; you stay the one writable controller via `cueloop` locally.",
67
+ "ctrl-c stops serving.",
68
+ ].join("\n"),
69
+ );
70
+ const stop = () => void handle.close().finally(() => process.exit(0));
71
+
72
+ process.on("SIGINT", stop);
73
+ process.on("SIGTERM", stop);
74
+ await new Promise(() => {}); // serve until signalled
75
+
76
+ return 0;
77
+ }
78
+
79
+ async function shareEntry(rest: string[]): Promise<number> {
80
+ const { positional, flags } = parseArgs(rest);
81
+ const { shareCommand, sharePullCommand } = await import("./share-command");
82
+ const port = stringFlag(flags, "port");
83
+ const target = {
84
+ host: stringFlag(flags, "host"),
85
+ port: port !== undefined ? Number(port) : undefined,
86
+ };
87
+
88
+ if (positional[0] === "pull") return sharePullCommand({ ...target, sessionId: positional[1] });
89
+
90
+ return shareCommand({ ...target, sessionId: positional[0] });
91
+ }
92
+
93
+ type CommandHandler = (rest: string[]) => number | Promise<number>;
94
+
95
+ const commandHandlers: Record<string, CommandHandler> = {
96
+ session: (rest) => sessionCommand(rest),
97
+ daemon: () => daemonCommand(),
98
+ plan: (rest) => planCommand(rest),
99
+ reply: (rest) => replyCommand(rest),
100
+ diff: (rest) => diffCommand(rest),
101
+ prototype: (rest) => prototypeCommand(rest),
102
+ serve: (rest) => serveEntry(rest),
103
+ share: (rest) => shareEntry(rest),
104
+ wake: async (rest) => (await import("./wake-command")).wakeCommand(rest),
105
+ actions: async (rest) => (await import("./actions-command")).actionsCommand(rest),
106
+ refine: async (rest) => (await import("./refine-command")).refineCommand(rest),
107
+ review: (rest) => reviewEntry(rest),
108
+ "review-post": async (rest) => (await import("./pr")).reviewPostCommand(rest),
109
+ };
110
+
111
+ const versionAliases = new Set(["-v", "--version", "version"]);
112
+ const helpAliases = new Set(["-h", "--help", "help"]);
113
+
18
114
  async function main(): Promise<number> {
19
- switch (cmd) {
20
- case "session":
21
- return sessionCommand(argv.slice(1));
22
- case "daemon": {
23
- const { DaemonServer } = await import("@cueloop/daemon");
24
- const server = new DaemonServer({ idleExitMs: 0 });
25
- const path = server.start();
26
- if (path === null) {
27
- console.error("a cueloop daemon already owns this home - nothing to do");
28
- return 1;
29
- }
30
- console.log(`cueloop daemon (foreground) on ${path}`);
31
- await new Promise(() => {}); // run until signalled
32
- return 0;
33
- }
34
- case "diff": {
35
- const workspace = await resolveWorkspace();
36
- const diff = await workingTreeDiff();
37
- if (!diff.trim()) {
38
- console.error("working tree is clean - nothing to review");
39
- return 1;
40
- }
41
- const client = await DaemonClient.connect({ autostart: true });
42
- const session = await client.sessionCreate(workspace, {
43
- type: "diff",
44
- content: diff,
45
- meta: { title: `working tree @ ${workspace.branch}`, cwd: process.cwd() },
46
- });
47
- client.close();
48
- return runTui(session.id);
49
- }
50
- case "serve": {
51
- const { positional, flags } = parseArgs(argv.slice(1));
52
- const port = flagStr(flags, "port");
53
- const { serveClient } = await import("@cueloop/client");
54
- const handle = await serveClient({
55
- port: port !== undefined ? Number(port) : undefined,
56
- host: flagStr(flags, "host"),
57
- sessionId: positional[0],
58
- });
59
- console.log(
60
- [
61
- "",
62
- `observers join with: ssh -p ${handle.port} ${handle.host === "0.0.0.0" || handle.host === "::" ? "<this-host>" : handle.host}`,
63
- "",
64
- "no passwords, no keys: anyone who can reach this address can watch.",
65
- "share the address deliberately (SSH tunnel, tailnet). observers are",
66
- "read-only; you stay the one writable controller via `cueloop` locally.",
67
- "ctrl-c stops serving.",
68
- ].join("\n"),
69
- );
70
- const stop = () => void handle.close().finally(() => process.exit(0));
71
- process.on("SIGINT", stop);
72
- process.on("SIGTERM", stop);
73
- await new Promise(() => {}); // serve until signalled
74
- return 0;
75
- }
76
- case "review": {
77
- const { reviewCommand } = await import("./pr");
78
- return reviewCommand(argv.slice(1));
79
- }
80
- case "review-post": {
81
- const { reviewPostCommand } = await import("./pr");
82
- return reviewPostCommand(argv.slice(1));
83
- }
84
- case "--help":
85
- case "help":
86
- printHelp();
87
- return 0;
88
- case undefined:
89
- return runTui();
90
- default: {
91
- // `cueloop <session-id>` opens the TUI on that session
92
- if (cmd.startsWith("ses_")) return runTui(cmd);
93
- printHelp();
94
- return 2;
95
- }
115
+ if (cmd === undefined) return runTui();
116
+ const handler = commandHandlers[cmd];
117
+
118
+ if (handler !== undefined) return handler(argv.slice(1));
119
+ if (versionAliases.has(cmd)) {
120
+ console.log(CLI_VERSION);
121
+
122
+ return 0;
123
+ }
124
+ if (helpAliases.has(cmd)) {
125
+ printHelp();
126
+
127
+ return 0;
128
+ }
129
+ if (cmd.startsWith("ses_")) return runTui(cmd);
130
+ printHelp();
131
+
132
+ return 2;
133
+ }
134
+
135
+ /**
136
+ * The id-or-title selector for a verb-first opener: the bare positional, or a
137
+ * value handed to `--open`/`--latest`. A bare `--latest`/`--open` flag carries
138
+ * no value, so the selector stays undefined and the opener defaults to the
139
+ * latest pending review.
140
+ */
141
+ function openSelector(parsed: ParsedArgs): string | undefined {
142
+ return (
143
+ parsed.positional[0] ?? stringFlag(parsed.flags, "open") ?? stringFlag(parsed.flags, "latest")
144
+ );
145
+ }
146
+
147
+ /**
148
+ * Resolve one review of the verb's scope and open it in the TUI, or print the
149
+ * miss and fail. `emptyMessage` overrides the default no-pending line for the
150
+ * one caller that needs a scope-specific hint (a clean working tree).
151
+ */
152
+ async function openReviewOfKind(
153
+ match: (session: ReviewSession) => boolean,
154
+ label: string,
155
+ selector: string | undefined,
156
+ emptyMessage?: string,
157
+ ): Promise<number> {
158
+ const client = await DaemonClient.connect({ autostart: true });
159
+ let sessions: ReviewSession[];
160
+
161
+ try {
162
+ sessions = await client.sessionList();
163
+ } finally {
164
+ client.close();
165
+ }
166
+ const target = resolveOpenTarget(sessions, { match, selector });
167
+
168
+ if (target.kind === "session") return runTui(target.sessionId);
169
+ if (target.kind === "no-pending" && emptyMessage !== undefined) {
170
+ console.error(emptyMessage);
171
+
172
+ return 1;
173
+ }
174
+ console.error(openTargetMessage(label, target));
175
+
176
+ return 1;
177
+ }
178
+
179
+ /** `cueloop plan [id|title]` - open the latest pending plan, or address one. */
180
+ async function planCommand(argv: string[]): Promise<number> {
181
+ return openReviewOfKind(isPlanReview, "plan", openSelector(parseArgs(argv)));
182
+ }
183
+
184
+ /**
185
+ * `cueloop reply [id|title]` - open the latest pending reply review, or address
186
+ * one. A reply artifact is the agent's previous message, submitted for review
187
+ * by the /cueloop:reply skill; the opener is scope-only, like plan.
188
+ */
189
+ async function replyCommand(argv: string[]): Promise<number> {
190
+ return openReviewOfKind(isReplyReview, "reply", openSelector(parseArgs(argv)));
191
+ }
192
+
193
+ /**
194
+ * `cueloop prototype <file.html>` creates a review of a rendered HTML file;
195
+ * a selector or `--open`/`--latest` (or a bare call with no file) opens the
196
+ * latest pending prototype review instead.
197
+ */
198
+ async function prototypeCommand(argv: string[]): Promise<number> {
199
+ const parsed = parseArgs(argv);
200
+ const selector = openSelector(parsed);
201
+ const wantsOpen = "open" in parsed.flags || "latest" in parsed.flags;
202
+ const looksLikeFile =
203
+ selector !== undefined && !isSessionId(selector) && selector.endsWith(".html");
204
+
205
+ if (wantsOpen || !looksLikeFile)
206
+ return openReviewOfKind(isPrototypeReview, "prototype", selector);
207
+
208
+ const path = resolve(selector);
209
+ const html = await Bun.file(path)
210
+ .text()
211
+ .catch(() => undefined);
212
+
213
+ if (html === undefined) {
214
+ console.error(`prototype: cannot read ${path}`);
215
+
216
+ return 1;
96
217
  }
218
+ const client = await DaemonClient.connect({ autostart: true });
219
+ const review = await openReview(client, {
220
+ type: "prototype",
221
+ content: html,
222
+ prototypePath: path,
223
+ title: basename(path),
224
+ });
225
+
226
+ client.close();
227
+
228
+ return runTui(review.id);
229
+ }
230
+
231
+ /**
232
+ * `cueloop diff` disambiguates create from open by intent:
233
+ * - a selector (`cueloop diff <id|title>`) or an explicit `--open`/`--latest`
234
+ * opens a pending diff review;
235
+ * - otherwise a dirty working tree still creates a review as before;
236
+ * - a clean working tree carries no create input, so it opens the latest
237
+ * pending diff review instead of erroring.
238
+ */
239
+ async function diffCommand(argv: string[]): Promise<number> {
240
+ const parsed = parseArgs(argv);
241
+ const selector = openSelector(parsed);
242
+ const wantsOpen = selector !== undefined || "open" in parsed.flags || "latest" in parsed.flags;
243
+
244
+ if (wantsOpen) return openReviewOfKind(isDiffReview, "diff", selector);
245
+
246
+ const workspace = await resolveWorkspace();
247
+ const diff = await workingTreeDiff();
248
+
249
+ if (!diff.patch.trim()) {
250
+ return openReviewOfKind(
251
+ isDiffReview,
252
+ "diff",
253
+ undefined,
254
+ "working tree is clean and no pending diff review - nothing to open",
255
+ );
256
+ }
257
+ const client = await DaemonClient.connect({ autostart: true });
258
+ const review = await openReview(client, {
259
+ type: "diff",
260
+ content: diff.patch,
261
+ files: diff.files,
262
+ workspace,
263
+ title: `working tree @ ${workspace.branch}`,
264
+ });
265
+
266
+ client.close();
267
+
268
+ return runTui(review.id);
269
+ }
270
+
271
+ /**
272
+ * `cueloop review` disambiguates create from open by intent:
273
+ * - bare `cueloop review`, `--open`/`--latest`, or a `ses_*` selector opens a
274
+ * pending PR review (a diff carrying a `pr` reference);
275
+ * - any other positional is a PR reference and takes the create path in pr.ts.
276
+ */
277
+ async function reviewEntry(argv: string[]): Promise<number> {
278
+ const parsed = parseArgs(argv);
279
+ const explicitOpen = "open" in parsed.flags || "latest" in parsed.flags;
280
+ const selector = openSelector(parsed);
281
+ const looksLikeSessionId = selector !== undefined && isSessionId(selector);
282
+ const wantsCreate = !explicitOpen && !looksLikeSessionId && selector !== undefined;
283
+
284
+ if (wantsCreate) {
285
+ const { reviewCommand } = await import("./pr");
286
+
287
+ return reviewCommand(argv);
288
+ }
289
+
290
+ return openReviewOfKind(
291
+ isPrReview,
292
+ "PR",
293
+ explicitOpen || looksLikeSessionId ? selector : undefined,
294
+ );
97
295
  }
98
296
 
99
297
  async function runTui(sessionId?: string): Promise<number> {
100
298
  const { runClient } = await import("@cueloop/client");
299
+
101
300
  return runClient({ sessionId });
102
301
  }
103
302
 
@@ -106,17 +305,40 @@ function printHelp(): void {
106
305
  [
107
306
  "cueloop - review surface for coding agents",
108
307
  "",
109
- "usage:",
308
+ "usage: cueloop [command] [options]",
309
+ "",
310
+ "common commands:",
110
311
  " cueloop open the inbox",
111
- " cueloop <session-id> open one session",
112
- " cueloop diff review the working tree",
312
+ " cueloop plan [id|title] open the latest pending plan review (or one by id/title)",
313
+ " cueloop reply [id|title] open the latest pending reply review (the agent's previous message)",
314
+ " cueloop diff [id|title] review your working tree (untracked files included);",
315
+ " with a clean tree, open the latest pending diff review",
113
316
  " cueloop review <pr> review a pull request (--no-tui prints the session)",
114
- " cueloop review-post <id> <pr> post a resolved session's verdict back to the PR",
317
+ " cueloop prototype <file.html> review a rendered HTML prototype (or open the latest by id/title)",
318
+ "",
319
+ "share:",
115
320
  " cueloop serve [session-id] share over ssh: observers are read-only,",
116
321
  " you stay the controller (--port 2222, --host 127.0.0.1;",
117
322
  " password-less - share the address deliberately)",
323
+ " cueloop share [session-id] hand a plan to a teammate: copies one",
324
+ " ssh line (--host cueloop.dev, --port 22)",
325
+ " cueloop share pull [session-id] pull a teammate's annotations back into the plan",
326
+ "",
327
+ "open a specific review:",
328
+ " cueloop <session-id> open one session",
329
+ " cueloop review [id|title] open the latest pending PR review (or one by id/title)",
330
+ " cueloop <plan|diff|review> --latest open the latest pending review of that type",
331
+ "",
332
+ "scripting:",
118
333
  " cueloop session <verb> [flags] script the daemon (create|get|list|wait|annotate|resolve|submit-revision)",
334
+ " cueloop actions list list the quick-action vocabulary (for annotate --action)",
335
+ " cueloop refine mine past reviews into a markdown report + writeback proposals",
336
+ " cueloop wake <id> [--harness codex --thread <id>] resume the agent with the verdict (spawn detached)",
337
+ " cueloop review-post <id> <pr> post a resolved session's verdict back to the PR",
119
338
  " cueloop daemon run the daemon in the foreground",
339
+ "",
340
+ " cueloop -v, --version print the installed version",
341
+ " cueloop -h, --help print this help",
120
342
  ].join("\n"),
121
343
  );
122
344
  }