@neta-art/cohub-cli 10.29.1 → 10.31.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.
Files changed (87) hide show
  1. package/dist/board-gpu/page.js +3011 -133
  2. package/dist/bootstrap.js +2 -4
  3. package/dist/build.json +1 -1
  4. package/dist/chunks/FilterPipe.js +145 -269
  5. package/dist/chunks/about.js +2 -3
  6. package/dist/chunks/app-realtime.js +113 -115
  7. package/dist/chunks/app-realtime2.js +1 -2
  8. package/dist/chunks/app-ref.js +4 -5
  9. package/dist/chunks/apps.js +8 -14
  10. package/dist/chunks/auth.js +1 -2
  11. package/dist/chunks/avatar.js +2 -4
  12. package/dist/chunks/binary-pins.js +1 -2
  13. package/dist/chunks/board-export-resources.js +55 -12
  14. package/dist/chunks/board-export.js +26 -21
  15. package/dist/chunks/board-export2.js +1 -2
  16. package/dist/chunks/board-kernel.js +2672 -1623
  17. package/dist/chunks/board-kernel2.js +2 -2
  18. package/dist/chunks/board-model.js +970 -0
  19. package/dist/chunks/board-profile.js +4 -5
  20. package/dist/chunks/board-simulate.js +6 -6
  21. package/dist/chunks/board-time.js +1 -2
  22. package/dist/chunks/boards.js +547 -23
  23. package/dist/chunks/browserAll.js +18 -35
  24. package/dist/chunks/channels.js +1 -2
  25. package/dist/chunks/client.js +637 -713
  26. package/dist/chunks/command-input.js +1 -2
  27. package/dist/chunks/commander.js +16 -22
  28. package/dist/chunks/cron-jobs.js +2 -3
  29. package/dist/chunks/daemon.js +18 -4
  30. package/dist/chunks/daemon2.js +1 -2
  31. package/dist/chunks/desktop.js +2 -3
  32. package/dist/chunks/endpoint-options.js +1 -2
  33. package/dist/chunks/env-proxy.js +4 -5
  34. package/dist/chunks/environment.js +2 -4
  35. package/dist/chunks/feedback.js +3 -4
  36. package/dist/chunks/generations.js +3 -4
  37. package/dist/chunks/host.js +1 -2
  38. package/dist/chunks/http-put.js +1 -2
  39. package/dist/chunks/id.js +77 -928
  40. package/dist/chunks/init.js +7 -12
  41. package/dist/chunks/install.js +142 -138
  42. package/dist/chunks/launch.js +4 -6
  43. package/dist/chunks/lexer.js +226 -66
  44. package/dist/chunks/local-media.js +1 -2
  45. package/dist/chunks/me.js +1 -2
  46. package/dist/chunks/media.js +1 -2
  47. package/dist/chunks/{themes.js → model-clips.js} +395 -43
  48. package/dist/chunks/models.js +3 -5
  49. package/dist/chunks/operands.js +1 -2
  50. package/dist/chunks/package-paths.js +1 -2
  51. package/dist/chunks/policy.js +1 -2
  52. package/dist/chunks/preferences.js +1 -2
  53. package/dist/chunks/profile.js +2 -3
  54. package/dist/chunks/prompts.js +1 -2
  55. package/dist/chunks/public.js +1 -2
  56. package/dist/chunks/public2.js +3 -4
  57. package/dist/chunks/references.js +3 -3
  58. package/dist/chunks/referrals.js +1 -2
  59. package/dist/chunks/rolldown-runtime.js +2 -3
  60. package/dist/chunks/rooms-connect.js +1 -2
  61. package/dist/chunks/rooms-connect2.js +1 -2
  62. package/dist/chunks/rooms-rtc.js +4 -6
  63. package/dist/chunks/rooms.js +2 -3
  64. package/dist/chunks/run.js +2 -3
  65. package/dist/chunks/runtime.js +6 -12
  66. package/dist/chunks/runtime2.js +2 -3
  67. package/dist/chunks/runtimes.js +1 -2
  68. package/dist/chunks/safe-remote-image.js +1 -2
  69. package/dist/chunks/schemas.js +58 -43
  70. package/dist/chunks/search.js +3 -3
  71. package/dist/chunks/self-update.js +4 -5
  72. package/dist/chunks/serve.js +11 -25
  73. package/dist/chunks/session-status.js +1 -2
  74. package/dist/chunks/skills.js +1 -2
  75. package/dist/chunks/spaces.js +26 -45
  76. package/dist/chunks/src.js +5 -9
  77. package/dist/chunks/supervisor.js +16 -28
  78. package/dist/chunks/supervisor2.js +1 -2
  79. package/dist/chunks/tasks.js +1 -2
  80. package/dist/chunks/user-lists.js +1 -2
  81. package/dist/chunks/version.js +1 -2
  82. package/dist/chunks/version2.js +1 -2
  83. package/dist/chunks/version3.js +3 -4
  84. package/dist/chunks/web.js +1 -2
  85. package/dist/runtime/native/pi-extension.js +1 -2
  86. package/dist/runtime/worker.js +2 -3
  87. package/package.json +11 -10
@@ -1,5 +1,5 @@
1
1
  import { C as error } from "./client.js";
2
- //#region src/command-input.ts
2
+ // src/command-input.ts
3
3
  function collectOption(value, previous = []) {
4
4
  return [...previous, value];
5
5
  }
@@ -13,5 +13,4 @@ async function readPromptContent(words, options = {}) {
13
13
  if (!content && !options.allowEmpty) return error("No content", "Pass as argument or pipe via stdin");
14
14
  return content;
15
15
  }
16
- //#endregion
17
16
  export { readPromptContent as n, collectOption as t };
@@ -4,7 +4,7 @@ import path from "node:path";
4
4
  import process from "node:process";
5
5
  import { stripVTControlCharacters } from "node:util";
6
6
  import { EventEmitter } from "node:events";
7
- //#region ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/error.js
7
+ // ../../node_modules/.pnpm/commander@15.1.0/node_modules/commander/lib/error.js
8
8
  /**
9
9
  * CommanderError class
10
10
  */
@@ -38,8 +38,7 @@ var InvalidArgumentError = class extends CommanderError {
38
38
  this.name = this.constructor.name;
39
39
  }
40
40
  };
41
- //#endregion
42
- //#region ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/argument.js
41
+ // ../../node_modules/.pnpm/commander@15.1.0/node_modules/commander/lib/argument.js
43
42
  var Argument = class {
44
43
  /**
45
44
  * Initialize a new command argument with the given name and description.
@@ -157,8 +156,7 @@ function humanReadableArgName(arg) {
157
156
  const nameOutput = arg.name() + (arg.variadic === true ? "..." : "");
158
157
  return arg.required ? "<" + nameOutput + ">" : "[" + nameOutput + "]";
159
158
  }
160
- //#endregion
161
- //#region ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/help.js
159
+ // ../../node_modules/.pnpm/commander@15.1.0/node_modules/commander/lib/help.js
162
160
  /**
163
161
  * TypeScript import types for JSDoc, used by Visual Studio Code IntelliSense and `npm run typescript-checkJS`
164
162
  * https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html#import-types
@@ -226,8 +224,8 @@ var Help = class {
226
224
  const removeShort = helpOption.short && cmd._findOption(helpOption.short);
227
225
  const removeLong = helpOption.long && cmd._findOption(helpOption.long);
228
226
  if (!removeShort && !removeLong) visibleOptions.push(helpOption);
229
- else if (helpOption.long && !removeLong) visibleOptions.push(cmd.createOption(helpOption.long, helpOption.description));
230
- else if (helpOption.short && !removeShort) visibleOptions.push(cmd.createOption(helpOption.short, helpOption.description));
227
+ else if (helpOption.long && !removeLong) visibleOptions.push(cmd.createOption(helpOption.long, helpOption.description).helpGroup(helpOption.helpGroupHeading));
228
+ else if (helpOption.short && !removeShort) visibleOptions.push(cmd.createOption(helpOption.short, helpOption.description).helpGroup(helpOption.helpGroupHeading));
231
229
  }
232
230
  if (this.sortOptions) visibleOptions.sort(this.compareOptions);
233
231
  return visibleOptions;
@@ -632,8 +630,7 @@ var Help = class {
632
630
  return wrappedLines.join("\n");
633
631
  }
634
632
  };
635
- //#endregion
636
- //#region ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/option.js
633
+ // ../../node_modules/.pnpm/commander@15.1.0/node_modules/commander/lib/option.js
637
634
  var Option = class {
638
635
  /**
639
636
  * Initialize a new `Option` with the given `flags` and `description`.
@@ -646,7 +643,7 @@ var Option = class {
646
643
  this.description = description || "";
647
644
  this.required = flags.includes("<");
648
645
  this.optional = flags.includes("[");
649
- this.variadic = /\w\.\.\.[>\]]$/.test(flags);
646
+ this.variadic = /\p{ID_Continue}\.\.\.[>\]]$/u.test(flags);
650
647
  this.mandatory = false;
651
648
  const optionFlags = splitOptionFlags(flags);
652
649
  this.short = optionFlags.shortFlag;
@@ -930,8 +927,7 @@ function splitOptionFlags(flags) {
930
927
  longFlag
931
928
  };
932
929
  }
933
- //#endregion
934
- //#region ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/suggestSimilar.js
930
+ // ../../node_modules/.pnpm/commander@15.1.0/node_modules/commander/lib/suggestSimilar.js
935
931
  const maxDistance = 3;
936
932
  function editDistance(a, b) {
937
933
  if (Math.abs(a.length - b.length) > maxDistance) return Math.max(a.length, b.length);
@@ -982,8 +978,7 @@ function suggestSimilar(word, candidates) {
982
978
  if (similar.length === 1) return `\n(Did you mean ${similar[0]}?)`;
983
979
  return "";
984
980
  }
985
- //#endregion
986
- //#region ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/command.js
981
+ // ../../node_modules/.pnpm/commander@15.1.0/node_modules/commander/lib/command.js
987
982
  var Command = class Command extends EventEmitter {
988
983
  /**
989
984
  * Initialize a new `Command`.
@@ -1733,7 +1728,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
1733
1728
  getOptionValueSourceWithGlobals(key) {
1734
1729
  let source;
1735
1730
  this._getCommandAndAncestors().forEach((cmd) => {
1736
- if (cmd.getOptionValueSource(key) !== void 0) source = cmd.getOptionValueSource(key);
1731
+ if (Object.hasOwn(cmd._optionValueSources, key)) source = cmd.getOptionValueSource(key);
1737
1732
  });
1738
1733
  return source;
1739
1734
  }
@@ -2242,7 +2237,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
2242
2237
  return arg.length > 1 && arg[0] === "-";
2243
2238
  }
2244
2239
  const negativeNumberArg = (arg) => {
2245
- if (!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(arg)) return false;
2240
+ if (!/^-(\d+|\d*\.\d+)([eE][+-]?\d+)?$/.test(arg)) return false;
2246
2241
  return !this._getCommandAndAncestors().some((cmd) => cmd.options.map((opt) => opt.short).some((short) => /^-\d$/.test(short)));
2247
2242
  };
2248
2243
  let activeVariadicOption = null;
@@ -2642,7 +2637,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
2642
2637
  * (This does not override a group set directly on the subcommand using .helpGroup().)
2643
2638
  *
2644
2639
  * @example
2645
- * program.commandsGroup('Development Commands:);
2640
+ * program.commandsGroup('Development Commands:');
2646
2641
  * program.command('watch')...
2647
2642
  * program.command('lint')...
2648
2643
  * ...
@@ -2811,7 +2806,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
2811
2806
  * Pass in false to disable the built-in help option.
2812
2807
  *
2813
2808
  * @example
2814
- * program.helpOption('-?, --help' 'show help'); // customise
2809
+ * program.helpOption('-?, --help', 'show help'); // customise
2815
2810
  * program.helpOption(false); // disable
2816
2811
  *
2817
2812
  * @param {(string | boolean)} flags
@@ -2933,12 +2928,12 @@ function incrementNodeInspectorPort(args) {
2933
2928
  let debugHost = "127.0.0.1";
2934
2929
  let debugPort = "9229";
2935
2930
  let match;
2936
- if ((match = arg.match(/^(--inspect(-brk)?)$/)) !== null) debugOption = match[1];
2937
- else if ((match = arg.match(/^(--inspect(-brk|-port)?)=([^:]+)$/)) !== null) {
2931
+ if ((match = arg.match(/^(--inspect(-brk|-wait)?)$/)) !== null) debugOption = match[1];
2932
+ else if ((match = arg.match(/^(--inspect(-brk|-port|-wait)?)=(\[[^\]]+\]|[^:]+)$/)) !== null) {
2938
2933
  debugOption = match[1];
2939
2934
  if (/^\d+$/.test(match[3])) debugPort = match[3];
2940
2935
  else debugHost = match[3];
2941
- } else if ((match = arg.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/)) !== null) {
2936
+ } else if ((match = arg.match(/^(--inspect(-brk|-port|-wait)?)=(\[[^\]]+\]|[^:]+):(\d+)$/)) !== null) {
2942
2937
  debugOption = match[1];
2943
2938
  debugHost = match[3];
2944
2939
  debugPort = match[4];
@@ -2958,5 +2953,4 @@ function useColor() {
2958
2953
  if (process.env.FORCE_COLOR || process.env.CLICOLOR_FORCE !== void 0) return true;
2959
2954
  }
2960
2955
  new Command();
2961
- //#endregion
2962
2956
  export { InvalidArgumentError as i, Option as n, Help as r, Command as t };
@@ -1,7 +1,7 @@
1
- import { C as error, D as json, E as handleHttp, O as jsonRequested, j as table, k as ok, t as createClient } from "./client.js";
2
1
  import { n as isUserCronJobFilter } from "./user-lists.js";
2
+ import { C as error, D as json, E as handleHttp, O as jsonRequested, j as table, k as ok, t as createClient } from "./client.js";
3
3
  import { readFileSync } from "node:fs";
4
- //#region src/commands/cron-jobs.ts
4
+ // src/commands/cron-jobs.ts
5
5
  function readJsonObject(pathOrJson) {
6
6
  const raw = pathOrJson.trim().startsWith("{") ? pathOrJson : readFileSync(pathOrJson, "utf8");
7
7
  const parsed = JSON.parse(raw);
@@ -206,5 +206,4 @@ function registerCronJobs(program) {
206
206
  }
207
207
  });
208
208
  }
209
- //#endregion
210
209
  export { registerCronJobs };
@@ -1,3 +1,4 @@
1
+ import { E as isSafeBoardSourcePath } from "./board-model.js";
1
2
  import { t as packagePath } from "./package-paths.js";
2
3
  import { t as CLI_VERSION } from "./version2.js";
3
4
  import { createServer } from "node:http";
@@ -8,7 +9,7 @@ import { basename, join } from "node:path";
8
9
  import { createHash, randomBytes } from "node:crypto";
9
10
  import { createConnection, createServer as createServer$1 } from "node:net";
10
11
  import { mkdtemp, readFile, rm } from "node:fs/promises";
11
- //#region src/board-gpu/index.ts
12
+ // src/board-gpu/index.ts
12
13
  function findBoardGpuBrowser(env = process.env) {
13
14
  const named = env.COHUB_CHROME?.trim();
14
15
  if (named) return existsSync(named) ? named : null;
@@ -109,6 +110,12 @@ async function launchBoardGpuExporter(resources, options) {
109
110
  response.writeHead(200, { "content-type": "text/javascript" }).end(code);
110
111
  return;
111
112
  }
113
+ if (route === "file") {
114
+ const path = url.searchParams.get("path") ?? "";
115
+ if (!isSafeBoardSourcePath(path)) throw Object.assign(/* @__PURE__ */ new Error("Not found"), { status: 404 });
116
+ response.writeHead(200, { "content-type": "application/octet-stream" }).end(await resources.readFile(path));
117
+ return;
118
+ }
112
119
  if (route === "asset") {
113
120
  const picture = await resources.readPicture(url.searchParams.has("background") ? { background: true } : {
114
121
  key: url.searchParams.get("key") ?? "",
@@ -225,8 +232,7 @@ async function launchBoardGpuExporter(resources, options) {
225
232
  throw error;
226
233
  }
227
234
  }
228
- //#endregion
229
- //#region src/board-gpu/daemon.ts
235
+ // src/board-gpu/daemon.ts
230
236
  const IDLE_MS = 3e5;
231
237
  const CONNECT_MS = 2e4;
232
238
  const TURN_MS = 2e4;
@@ -293,6 +299,14 @@ async function serveBoardGpu(browser) {
293
299
  if (answer.error !== void 0 || answer.text === void 0) throw new Error(answer.error ?? `${path} is not available.`);
294
300
  return answer.text;
295
301
  },
302
+ async readFile(path) {
303
+ const answer = await ask({
304
+ kind: "file",
305
+ path
306
+ });
307
+ if (answer.error !== void 0 || answer.bytes === void 0) throw new Error(answer.error ?? `${path} is not available.`);
308
+ return Buffer.from(answer.bytes, "base64");
309
+ },
296
310
  async readPicture(request) {
297
311
  const answer = await ask({
298
312
  kind: "picture",
@@ -494,6 +508,7 @@ async function connectBoardGpu(resources, options) {
494
508
  async function answer(request) {
495
509
  try {
496
510
  if (request.kind === "module") return { text: await resources.readModule(request.path) };
511
+ if (request.kind === "file") return { bytes: Buffer.from(await resources.readFile(request.path)).toString("base64") };
497
512
  const picture = await resources.readPicture(request.request);
498
513
  return picture ? {
499
514
  bytes: Buffer.from(picture.bytes).toString("base64"),
@@ -541,5 +556,4 @@ async function openBoardGpu(resources, options) {
541
556
  options.signal?.throwIfAborted();
542
557
  return launchBoardGpuExporter(resources, options);
543
558
  }
544
- //#endregion
545
559
  export { findBoardGpuBrowser as a, serveBoardGpu as i, connectBoardGpu as n, openBoardGpu as r, boardGpuSocket as t };
@@ -1,2 +1 @@
1
- import { i as serveBoardGpu } from "./daemon.js";
2
- export { serveBoardGpu };
1
+ export { i as serveBoardGpu } from "./daemon.js";
@@ -1,8 +1,8 @@
1
- import { C as error, D as json, E as handleHttp, O as jsonRequested, _ as failSpaceTarget, at as DESKTOP_COMMAND_OPEN_TIMEOUT_MS, g as explicitSpace, it as DESKTOP_COMMAND_MAX_TIMEOUT_MS, k as ok, nt as DESKTOP_COMMAND_ACCEPT_TIMEOUT_MS, ot as resolveOpenSurface, rt as DESKTOP_COMMAND_DEFAULT_TIMEOUT_MS, t as createClient, x as resolveSpaceRef, y as resolveBoundSpace } from "./client.js";
2
1
  import { s as HttpError } from "./app-realtime.js";
3
2
  import { n as parseAppRef, t as getAppByRef } from "./app-ref.js";
3
+ import { C as error, D as json, E as handleHttp, O as jsonRequested, _ as failSpaceTarget, ct as DESKTOP_COMMAND_MAX_TIMEOUT_MS, g as explicitSpace, k as ok, lt as DESKTOP_COMMAND_OPEN_TIMEOUT_MS, ot as DESKTOP_COMMAND_ACCEPT_TIMEOUT_MS, st as DESKTOP_COMMAND_DEFAULT_TIMEOUT_MS, t as createClient, ut as resolveOpenSurface, x as resolveSpaceRef, y as resolveBoundSpace } from "./client.js";
4
4
  import { readFileSync } from "node:fs";
5
- //#region src/commands/desktop.ts
5
+ // src/commands/desktop.ts
6
6
  const FILE_SCHEME = "file://";
7
7
  const APP_SCHEME = "app://";
8
8
  const LEGACY_WORK_SCHEME = "work://";
@@ -168,5 +168,4 @@ function registerDesktop(program) {
168
168
  function registerLegacyUi(program) {
169
169
  registerOpen(program.command("ui", { hidden: true }).description("Deprecated: use `cohub desktop open`").addHelpText("after", OPEN_HELP), true);
170
170
  }
171
- //#endregion
172
171
  export { registerDesktop, registerLegacyUi };
@@ -1,6 +1,6 @@
1
1
  import { i as normalizeBaseUrl } from "./environment.js";
2
2
  import { i as InvalidArgumentError } from "./commander.js";
3
- //#region src/endpoint-options.ts
3
+ // src/endpoint-options.ts
4
4
  function setApiBaseUrl(value) {
5
5
  const url = normalizeBaseUrl(value);
6
6
  if (!url) throw new InvalidArgumentError("API base URL must not be empty");
@@ -22,5 +22,4 @@ function consumeBaseUrlOption(tokens, index) {
22
22
  setApiBaseUrl(value);
23
23
  return index + 1;
24
24
  }
25
- //#endregion
26
25
  export { registerEndpointOptions as n, consumeBaseUrlOption as t };
@@ -1,5 +1,5 @@
1
- import * as http$1 from "node:http";
2
- //#region src/env-proxy.ts
1
+ import * as http from "node:http";
2
+ // src/env-proxy.ts
3
3
  const PROXY_ENV_KEYS = [
4
4
  "http_proxy",
5
5
  "https_proxy",
@@ -27,9 +27,8 @@ function shouldRelaunchWithEnvProxy(execArgv = process.execArgv, env = process.e
27
27
  const envProxyExecArgv = [USE_ENV_PROXY_FLAG];
28
28
  function enableEnvProxy() {
29
29
  if (!shouldRelaunchWithEnvProxy()) return true;
30
- if (typeof http$1.setGlobalProxyFromEnv !== "function") return false;
31
- http$1.setGlobalProxyFromEnv();
30
+ if (typeof http.setGlobalProxyFromEnv !== "function") return false;
31
+ http.setGlobalProxyFromEnv();
32
32
  return true;
33
33
  }
34
- //#endregion
35
34
  export { envProxyExecArgv as n, enableEnvProxy as t };
@@ -1,4 +1,4 @@
1
- //#region ../sdk/src/types.ts
1
+ // ../sdk/src/types.ts
2
2
  /**
3
3
  * The full permission vocabulary, mirrored from `@cohub/core` permissions.
4
4
  * Kept as a runtime constant so hosts can validate untrusted scopes from
@@ -45,8 +45,7 @@ const PERMISSIONS = [
45
45
  "user.app.list",
46
46
  "user.cronjob.list"
47
47
  ];
48
- //#endregion
49
- //#region ../sdk/src/environment.ts
48
+ // ../sdk/src/environment.ts
50
49
  const COHUB_ENVIRONMENTS = {
51
50
  prod: {
52
51
  apiBaseUrl: "https://api.cohub.live",
@@ -152,5 +151,4 @@ const resolveVoiceInputWebsocketUrl = (options = {}) => {
152
151
  if (url) return normalizeVoiceInputWebsocketUrl(url);
153
152
  return COHUB_ENVIRONMENTS[resolveCohubEnvironment(options.env)].voiceInputWebsocketUrl;
154
153
  };
155
- //#endregion
156
154
  export { resolveApiBaseUrl as a, resolveExecutionToken as c, resolveWebsocketUrl as d, PERMISSIONS as f, normalizeBaseUrl as i, resolveVoiceInputWebsocketUrl as l, decodeJwtPayload as n, resolveCohubEnvironment as o, getCohubContext as r, resolveExecutionAppId as s, COHUB_ENVIRONMENTS as t, resolveWebBaseUrl as u };
@@ -1,16 +1,16 @@
1
1
  import { r as cliCommit } from "./version2.js";
2
- import { A as spinner, C as error, D as json, L as authSource, O as jsonRequested, P as describeError, g as explicitSpace, t as createClient } from "./client.js";
3
2
  import { o as mimeTypeForPath } from "./id.js";
4
3
  import { f as readRequestSourceFromEnv } from "./app-realtime.js";
5
- import { K as readRuntimeDiagnosticEvents, c as runtimeStateRoot } from "./install.js";
6
4
  import { a as resolveApiBaseUrl, o as resolveCohubEnvironment } from "./environment.js";
5
+ import { A as spinner, C as error, D as json, L as authSource, O as jsonRequested, P as describeError, g as explicitSpace, t as createClient } from "./client.js";
7
6
  import { n as readPromptContent, t as collectOption } from "./command-input.js";
7
+ import { K as readRuntimeDiagnosticEvents, c as runtimeStateRoot } from "./install.js";
8
8
  import { a as resolveRuntimeTarget } from "./launch.js";
9
9
  import { arch, platform, release } from "node:os";
10
10
  import { openAsBlob } from "node:fs";
11
11
  import { basename, resolve } from "node:path";
12
12
  import { stat } from "node:fs/promises";
13
- //#region src/commands/feedback.ts
13
+ // src/commands/feedback.ts
14
14
  const CFEED_ENDPOINT = "https://cfeed.neta.art/api/v1/feedback";
15
15
  const CFEED_APP = "cohub";
16
16
  const RUNTIME_LOG_MAX_BYTES = 5242880;
@@ -116,5 +116,4 @@ Examples:
116
116
  }
117
117
  });
118
118
  }
119
- //#endregion
120
119
  export { registerFeedback };
@@ -1,11 +1,11 @@
1
- import { A as spinner, C as error, D as json, E as handleHttp, O as jsonRequested, b as resolveSpace, k as ok, t as createClient } from "./client.js";
2
- import { o as mimeTypeForPath } from "./id.js";
3
1
  import { a as parseGenerationPolicyFromEnv, n as assertGenerationRequestAllowedByPolicy, t as GenerationPolicyError } from "./policy.js";
2
+ import { o as mimeTypeForPath } from "./id.js";
4
3
  import { a as probeMediaInfo } from "./media.js";
4
+ import { A as spinner, C as error, D as json, E as handleHttp, O as jsonRequested, b as resolveSpace, k as ok, t as createClient } from "./client.js";
5
5
  import { openAsBlob } from "node:fs";
6
6
  import { basename, dirname, extname, join } from "node:path";
7
7
  import { mkdir, readFile, stat, writeFile } from "node:fs/promises";
8
- //#region src/commands/generations.ts
8
+ // src/commands/generations.ts
9
9
  const frameMediaRoles = /* @__PURE__ */ new Set(["first_frame", "last_frame"]);
10
10
  const referenceMediaRoles = /* @__PURE__ */ new Set([
11
11
  "reference_image",
@@ -375,5 +375,4 @@ function collect(value, previous) {
375
375
  previous.push(value);
376
376
  return previous;
377
377
  }
378
- //#endregion
379
378
  export { registerGenerations };
@@ -1,9 +1,8 @@
1
- //#region src/commands/host.ts
1
+ // src/commands/host.ts
2
2
  function registerHost(program) {
3
3
  program.command("host", { hidden: true }).description("Machine interface for native desktop hosts").command("serve").description("Answer host bridge requests over stdio, one JSON message per line").action(async () => {
4
4
  const { serveHost } = await import("./serve.js");
5
5
  await serveHost();
6
6
  });
7
7
  }
8
- //#endregion
9
8
  export { registerHost };
@@ -1,5 +1,5 @@
1
1
  import { createReadStream } from "node:fs";
2
- //#region src/http-put.ts
2
+ // src/http-put.ts
3
3
  const DEFAULT_ATTEMPTS = 3;
4
4
  const DEFAULT_DELAY_MS = 200;
5
5
  const RETRYABLE_STATUS = /* @__PURE__ */ new Set([
@@ -127,5 +127,4 @@ async function putBytes(input) {
127
127
  fetch: input.fetch
128
128
  });
129
129
  }
130
- //#endregion
131
130
  export { putBytes as n, putLocalFile as r, HttpPutError as t };