@neta-art/cohub-cli 10.25.0 → 10.26.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/dist/build.json CHANGED
@@ -1 +1 @@
1
- {"commit":"ed87432","rootCommands":[["auth","Authentication management"],["boards","Read, write, animate and export Boards (by id or .board path)"],["profile","Manage your profile"],["me","Account-level data across your spaces"],["prompt [options] [content...]","Send or schedule a prompt in a space"],["completion [options] [content...]","Raw LLM completion with full message control"],["decision [options] [state...]","Answer yes/no, choice and score questions about text or images"],["spaces","Space management"],["labels","Manage personal labels"],["runtime","Connect a local workspace"],["generate [options] [prompt]","Generate multimodal outputs"],["models","List available LLM and multimodal models"],["prompts","Prompt template management"],["public","Upload and manage public Space files"],["skills","Skill management"],["search [options] [query]","Search spaces, chats, and label items"],["references","Inspect resource references (forks, mentions, tool calls, mods, file access)"],["referrals [options]","View and manage your referral link"],["tasks","Task runs"],["cron-jobs","Scheduled jobs"],["apps|works","App management"],["rooms","Take part in App rooms: join, read and publish events, set presence"],["feedback [options] [message...]","Send feedback or a bug report to the Cohub team"],["desktop","Drive the Cohub desktop that started this chat"],["version [options]","This CLI, the cohub on PATH, and the versions running Runtimes serve"]]}
1
+ {"commit":"a91bd8c","rootCommands":[["auth","Authentication management"],["boards","Read, write, animate and export Boards (by id or .board path)"],["profile","Manage your profile"],["me","Account-level data across your spaces"],["prompt [options] [content...]","Send or schedule a prompt in a space"],["completion [options] [content...]","Raw LLM completion with full message control"],["decision [options] [state...]","Answer yes/no, choice and score questions about text or images"],["spaces","Space management"],["labels","Manage personal labels"],["runtime","Connect a local workspace"],["generate [options] [prompt]","Generate multimodal outputs"],["models","List available LLM and multimodal models"],["prompts","Prompt template management"],["public","Upload and manage public Space files"],["skills","Skill management"],["search [options] [query]","Search spaces, chats, and label items"],["references","Inspect resource references (forks, mentions, tool calls, mods, file access)"],["referrals [options]","View and manage your referral link"],["tasks","Task runs"],["cron-jobs","Scheduled jobs"],["apps|works","App management"],["rooms","Take part in App rooms: join, read and publish events, set presence"],["feedback [options] [message...]","Send feedback or a bug report to the Cohub team"],["desktop","Drive the Cohub desktop that started this chat"],["version [options]","This CLI, the cohub on PATH, and the versions running Runtimes serve"]]}
@@ -0,0 +1,5 @@
1
+ //#region src/binary-pins.ts
2
+ const SANDBOXD_VERSION = "v2.96.0";
3
+ const RTC_HELPER_VERSION = "v2.96.0";
4
+ //#endregion
5
+ export { SANDBOXD_VERSION as n, RTC_HELPER_VERSION as t };
@@ -1171,6 +1171,30 @@ function list(value) {
1171
1171
  const entries = value?.split(",").map((entry) => entry.trim()).filter(Boolean);
1172
1172
  return entries?.length ? entries : void 0;
1173
1173
  }
1174
+ /** Filters a saved Board locally; the checkpoint API returns the whole document. */
1175
+ function selectCheckpointBoard(saved, filter) {
1176
+ const { board, items, animations, ...rest } = saved;
1177
+ let picked = Object.entries(items);
1178
+ if (filter.items) picked = picked.filter(([id]) => filter.items?.includes(id));
1179
+ if (filter.within) {
1180
+ const inside = /* @__PURE__ */ new Set([filter.within]);
1181
+ for (let grew = true; grew;) {
1182
+ grew = false;
1183
+ for (const [id, item] of Object.entries(items)) if (!inside.has(id) && typeof item.parent === "string" && inside.has(item.parent)) {
1184
+ inside.add(id);
1185
+ grew = true;
1186
+ }
1187
+ }
1188
+ picked = picked.filter(([id]) => inside.has(id));
1189
+ }
1190
+ const show = (section) => !filter.sections || filter.sections.has(section);
1191
+ return {
1192
+ ...rest,
1193
+ ...show("board") ? { board } : {},
1194
+ ...show("items") ? { items: Object.fromEntries(picked) } : {},
1195
+ ...show("animations") ? { animations: filter.animations ? Object.fromEntries(Object.entries(animations).filter(([id]) => filter.animations?.includes(id))) : animations } : {}
1196
+ };
1197
+ }
1174
1198
  async function boardClient(boards, target, spaceId) {
1175
1199
  spaceId ??= await resolveSpace(boards);
1176
1200
  return createClient().space(spaceId).boards.open(target);
@@ -1668,15 +1692,32 @@ Times are milliseconds; 500ms, 12.5s and 2m also work on the command line.`);
1668
1692
  handleHttp(cause);
1669
1693
  }
1670
1694
  });
1671
- boards.command("get <board>").description("Print the Board document as JSON").option("--only <sections>", "board, items, animations (comma-separated)").option("--items <ids>", "Only these items").option("--within <frame-id>", "A frame and everything inside it").option("--rect <rect>", "Items intersecting x,y,width,height").option("--animations <ids>", "Only these animations").option("--limit <n>", "Page size for items").option("--cursor <cursor>", "Continue from a previous page's next").option("--since <version>", "Only the changes after this version; the whole Board when they are unavailable").addHelpText("after", `
1695
+ boards.command("get <board>").description("Print the Board document as JSON").option("--only <sections>", "board, items, animations (comma-separated)").option("--items <ids>", "Only these items").option("--within <frame-id>", "A frame and everything inside it").option("--rect <rect>", "Items intersecting x,y,width,height").option("--animations <ids>", "Only these animations").option("--limit <n>", "Page size for items").option("--cursor <cursor>", "Continue from a previous page's next").option("--since <version>", "Only the changes after this version; the whole Board when they are unavailable").option("--checkpoint <id>", "The Board as this checkpoint saved it").addHelpText("after", `
1672
1696
  cohub boards get plan.board
1673
1697
  cohub boards get plan.board --within s2
1674
1698
  cohub boards get plan.board --only board
1675
- cohub boards get plan.board --since 12`).action(async (target, options) => {
1699
+ cohub boards get plan.board --since 12
1700
+ cohub boards get plan.board --checkpoint <checkpoint-id>`).action(async (target, options) => {
1676
1701
  try {
1677
1702
  const only = list(options.only);
1678
1703
  if (only?.some((section) => section !== "board" && section !== "items" && section !== "animations")) throw new Error("--only takes board, items, animations, or a combination.");
1679
1704
  const sections = only ? new Set(only) : null;
1705
+ if (options.checkpoint) {
1706
+ const unsupported = [
1707
+ "rect",
1708
+ "limit",
1709
+ "cursor",
1710
+ "since"
1711
+ ].filter((name) => options[name] !== void 0);
1712
+ if (unsupported.length) throw new Error(`--checkpoint cannot be combined with ${unsupported.map((name) => `--${name}`).join(", ")}.`);
1713
+ const saved = await createClient().space(await resolveSpace(boards)).checkpoints(options.checkpoint).board(target);
1714
+ return json(selectCheckpointBoard(saved, {
1715
+ sections,
1716
+ items: list(options.items),
1717
+ within: options.within,
1718
+ animations: list(options.animations)
1719
+ }));
1720
+ }
1680
1721
  const input = {
1681
1722
  ...only ? { only: only.filter((section) => section !== "board") } : {},
1682
1723
  ...list(options.items) ? { items: list(options.items) } : {},
@@ -2927,6 +2927,12 @@ async function fileText(file, customFetch = fetch) {
2927
2927
  if (file.encoding !== "base64") return file.content;
2928
2928
  return new TextDecoder().decode(Uint8Array.from(atob(file.content), (char) => char.charCodeAt(0)));
2929
2929
  }
2930
+ async function readBoardId(files, path, customFetch) {
2931
+ const file = await files.read(path, customFetch);
2932
+ if (isSpaceFsSymlink(file)) throw new Error(`${path} is a symbolic link to ${file.target}.`);
2933
+ if (!("content" in file)) throw new Error(`${path} is being prepared; try again shortly.`);
2934
+ return parseBoardManifest(await fileText(file, customFetch)).boardId;
2935
+ }
2930
2936
  var SpaceBoardsApi = class {
2931
2937
  http;
2932
2938
  spaceId;
@@ -2955,11 +2961,8 @@ var SpaceBoardsApi = class {
2955
2961
  async open(target, customFetch) {
2956
2962
  return this.byId(isBoardPath(target) ? await this.resolveId(target, customFetch) : target);
2957
2963
  }
2958
- async resolveId(path, customFetch) {
2959
- const file = await this.files.read(path, customFetch);
2960
- if (isSpaceFsSymlink(file)) throw new Error(`${path} is a symbolic link to ${file.target}.`);
2961
- if (!("content" in file)) throw new Error(`${path} is being prepared; try again shortly.`);
2962
- return parseBoardManifest(await fileText(file, customFetch)).boardId;
2964
+ resolveId(path, customFetch) {
2965
+ return readBoardId(this.files, path, customFetch);
2963
2966
  }
2964
2967
  /** Create a `.board` file and its Board, optionally with an initial document. */
2965
2968
  create(input) {
@@ -6426,6 +6429,21 @@ var SpaceCheckpointFilesApi = class {
6426
6429
  if (!source) throw new HttpError(`Checkpoint file cannot be saved: ${path}`, 404, null);
6427
6430
  return source;
6428
6431
  }
6432
+ /** A browser-ready URL for a saved file; null when it was not saved. */
6433
+ async resolve(path, options = {}) {
6434
+ let file;
6435
+ try {
6436
+ file = await this.read(path);
6437
+ } catch (error) {
6438
+ if (error instanceof HttpError && (error.status === 404 || error.status === 410)) return null;
6439
+ throw error;
6440
+ }
6441
+ if (file.delivery === "url" && file.url) return file.media ? {
6442
+ url: file.url,
6443
+ media: file.media
6444
+ } : { url: file.url };
6445
+ return (options.purpose ?? "preview") === "preview" ? { url: inlineFileDataUrl(file) } : null;
6446
+ }
6429
6447
  };
6430
6448
  async function hydrateCheckpointDiffSummary(summary, customFetch) {
6431
6449
  if (summary.delivery !== "url" || !summary.url) return {
@@ -6505,6 +6523,11 @@ var SpaceCheckpointApi = class {
6505
6523
  get(customFetch) {
6506
6524
  return this.transport.request(`/api/spaces/${this.spaceId}/checkpoints/${this.id}`, { fetch: customFetch });
6507
6525
  }
6526
+ /** The Board as this checkpoint captured it, by id or by `.board` path. */
6527
+ async board(target, customFetch) {
6528
+ const boardId = isBoardPath(target) ? await readBoardId(this.files, target, customFetch) : target;
6529
+ return this.transport.request(`/api/spaces/${this.spaceId}/checkpoints/${this.id}/boards/${encodeURIComponent(boardId)}`, { fetch: customFetch });
6530
+ }
6508
6531
  };
6509
6532
  function createSpaceCheckpointsApi(transport, spaceId) {
6510
6533
  const checkpoint = (checkpointId) => new SpaceCheckpointApi(transport, spaceId, checkpointId);
@@ -10997,6 +10997,7 @@ const RETRY_MAX_MS = 3e5;
10997
10997
  * small enough to answer well within the request timeout; the protocol allows more.
10998
10998
  */
10999
10999
  const INGEST_BATCH_TURNS = Math.min(50, 500);
11000
+ const STAGE_BATCH_MESSAGES = 1e3;
11000
11001
  const IMPORT_FAILURES_KEPT = 100;
11001
11002
  const fileVersion = (info) => `${info.ino}:${info.size}:${info.mtimeMs}`;
11002
11003
  /** Headers are read this many at a time; each costs one small read. */
@@ -11049,15 +11050,16 @@ async function discoverTranscripts(cwd, harnesses, options = {}) {
11049
11050
  }));
11050
11051
  return kept.filter((candidate) => candidate !== null);
11051
11052
  }
11052
- /** Ingest batches stay well under the Runtime frame limit. */
11053
- const BATCH_MAX_BYTES = 8388608;
11053
+ /** Room left in a batch for the frame around its items: ids, harness, separators. */
11054
+ const ITEMS_MAX_BYTES = 8323072;
11055
+ const frameBytes = (value) => Buffer.byteLength(JSON.stringify(value));
11054
11056
  /** Split in order into batches of at most `count` items and the byte budget. */
11055
11057
  function* chunks(items, count, size = () => 0) {
11056
11058
  let batch = [];
11057
11059
  let bytes = 0;
11058
11060
  for (const item of items) {
11059
11061
  const itemBytes = size(item);
11060
- if (batch.length && (batch.length >= count || bytes + itemBytes > BATCH_MAX_BYTES)) {
11062
+ if (batch.length && (batch.length >= count || bytes + itemBytes > ITEMS_MAX_BYTES)) {
11061
11063
  yield batch;
11062
11064
  batch = [];
11063
11065
  bytes = 0;
@@ -11689,7 +11691,10 @@ var NativeIngest = class {
11689
11691
  result: item.settled ? this.complete(item.turn.result ?? this.cutOff(item, pending)) : null
11690
11692
  }
11691
11693
  }));
11692
- for (const batch of chunks(payloads, INGEST_BATCH_TURNS, (payload) => JSON.stringify(payload.turn).length)) {
11694
+ const sizes = new Map(payloads.map((payload) => [payload, frameBytes(payload.turn)]));
11695
+ for (const batch of chunks(payloads, INGEST_BATCH_TURNS, (payload) => sizes.get(payload) ?? 0)) {
11696
+ const [only] = batch;
11697
+ if (batch.length === 1 && only && (sizes.get(only) ?? 0) > ITEMS_MAX_BYTES) only.turn = await this.stage(state, transport, only.turn, known.get(only.item.turnId)?.sessionId);
11693
11698
  const result = await transport.ingest({
11694
11699
  type: "ingest",
11695
11700
  input: {
@@ -11719,6 +11724,49 @@ var NativeIngest = class {
11719
11724
  state.headTurnId = head;
11720
11725
  if (lastSettled) await this.archive(state, lastSettled.turn, lastSettled.turnId);
11721
11726
  }
11727
+ /**
11728
+ * Sends a settled Turn's messages in frames within the batch budget, resuming where the server's
11729
+ * staged messages end, and returns the Turn with an empty result tail to seal them.
11730
+ */
11731
+ async stage(state, transport, turn, sessionId) {
11732
+ const result = turn.result, stage = transport.messages;
11733
+ if (!result || !stage) return turn;
11734
+ const target = sessionId ?? (await transport.ingest({
11735
+ type: "ingest",
11736
+ input: {
11737
+ harness: state.harness,
11738
+ nativeSessionId: state.nativeSessionId,
11739
+ turns: [{
11740
+ ...turn,
11741
+ result: null
11742
+ }]
11743
+ }
11744
+ })).turns.find((entry) => entry.turnId === turn.turnId)?.sessionId;
11745
+ if (!target) throw new Error("Server did not record a native Turn");
11746
+ const send = (from, messages) => stage({
11747
+ type: "messages",
11748
+ sessionId: target,
11749
+ turnId: turn.turnId,
11750
+ input: {
11751
+ from,
11752
+ messages
11753
+ }
11754
+ });
11755
+ let from = Math.min((await send(0, [])).count, result.messages.length);
11756
+ for (const batch of chunks(result.messages.slice(from), STAGE_BATCH_MESSAGES, frameBytes)) {
11757
+ const { count } = await send(from, batch);
11758
+ if (count !== from + batch.length) throw new Error("Server staged an unexpected number of native messages");
11759
+ from = count;
11760
+ }
11761
+ return {
11762
+ ...turn,
11763
+ result: {
11764
+ ...result,
11765
+ from,
11766
+ messages: []
11767
+ }
11768
+ };
11769
+ }
11722
11770
  markRunning(state, sessionId, item) {
11723
11771
  const changed = state.runningTurnId !== item.turnId;
11724
11772
  state.sessionId = sessionId;
@@ -1,5 +1,6 @@
1
1
  import { r as createRealtimeClient } from "./client.js";
2
2
  import { s as HttpError } from "./app-realtime.js";
3
+ import "./binary-pins.js";
3
4
  import { r as readRoomLines } from "./rooms-connect2.js";
4
5
  import { spawn } from "node:child_process";
5
6
  import { homedir } from "node:os";
@@ -10,6 +11,7 @@ import { Readable, Transform } from "node:stream";
10
11
  import { chmod, lstat, mkdir, mkdtemp, readFile, rename, rm, writeFile } from "node:fs/promises";
11
12
  import { pipeline } from "node:stream/promises";
12
13
  import { createGunzip } from "node:zlib";
14
+ //#region src/commands/rooms-rtc-binary.ts
13
15
  const MAX_BINARY_BYTES = 134217728;
14
16
  async function digest(path) {
15
17
  const hash = createHash("sha256");
@@ -49,7 +51,7 @@ async function ensureRtcBinary(local) {
49
51
  arm64: "arm64"
50
52
  }[process.arch];
51
53
  if (!platform || !arch) throw new Error("Unsupported RTC helper platform; use --helper with a local binary");
52
- const version = process.env.COHUB_RTC_VERSION?.trim() || "v2.68.0";
54
+ const version = process.env.COHUB_RTC_VERSION?.trim() || "v2.96.0";
53
55
  if (!version) throw new Error("No RTC helper release is pinned yet; use --helper or COHUB_RTC_VERSION with a published global release");
54
56
  if (!/^[a-zA-Z0-9][a-zA-Z0-9._-]{0,63}$/.test(version)) throw new Error("Invalid RTC helper version");
55
57
  const directory = join(homedir(), ".cache", "cohub", "rtc", version, `${platform}-${arch}`);
@@ -220,9 +220,14 @@ const nativeTurnProgressSchema = object({
220
220
  from: number().int().nonnegative().max(1e4).optional(),
221
221
  messages: array(nativeTurnMessageSchema).max(1e4)
222
222
  }).strict();
223
- /** Final, immutable Turn receipt. Native bytes are archived separately, without lossy normalization. */
223
+ const messageOrdinal = number().int().nonnegative().max(1e4);
224
+ /**
225
+ * Final, immutable Turn receipt. Native bytes are archived separately, without lossy normalization.
226
+ * `messages` start at ordinal `from`; earlier ones were staged with `messages` events.
227
+ */
224
228
  const nativeTurnCompleteSchema = object({
225
229
  messages: array(nativeTurnMessageSchema).max(1e4),
230
+ from: messageOrdinal.optional(),
226
231
  status: _enum([
227
232
  "completed",
228
233
  "failed",
@@ -230,6 +235,11 @@ const nativeTurnCompleteSchema = object({
230
235
  ]),
231
236
  completedAt: datetime()
232
237
  }).strict();
238
+ /** Stages a registered Turn's messages from ordinal `from`, so no frame has to carry a whole Turn. */
239
+ const nativeTurnMessagesSchema = object({
240
+ from: messageOrdinal,
241
+ messages: array(nativeTurnMessageSchema).max(1e4)
242
+ }).strict();
233
243
  /** Durable ingest of one transcript's Turns. */
234
244
  const nativeIngestTurnSchema = object({
235
245
  turnId: id$1,
@@ -288,6 +298,12 @@ const nativeRuntimeEventSchema = discriminatedUnion("type", [
288
298
  turnId: id$1,
289
299
  progress: nativeTurnProgressSchema
290
300
  }).strict(),
301
+ object({
302
+ type: literal("messages"),
303
+ sessionId: id$1,
304
+ turnId: id$1,
305
+ input: nativeTurnMessagesSchema
306
+ }).strict(),
291
307
  object({
292
308
  type: literal("status"),
293
309
  sessionId: id$1,
@@ -4,6 +4,7 @@ import { a as runtimeCapabilitiesSchema, b as assertHarnessAccess, c as runtimeH
4
4
  import { F as AuthRequiredError, P as describeError, W as resolveAccessToken, Y as readRuntimeSpaceBindings, c as ownRuntimeInstance, h as currentIdentityKey, o as UNCONFIRMED_WORK, t as createClient, u as runtimeInstanceDirectory } from "./client.js";
5
5
  import { A as formatVersion, B as closeHost, E as CodexShared, F as piTranslator, G as RuntimeDiagnostics, H as ProcessCleanupUncertainError, I as ArchiveNotRestorableError, J as serializeDiagnosticError, L as PI_MIN_VERSION, M as SizeLimitError, N as LiveProgress, P as codexTranslator, R as PiLink, S as harnessAdapter, U as confirmQuiescentProcessGroup, V as record$1, Y as serializeProjectionRecords, a as NativeIngest, b as atomicRuntimeJson, c as runtimeStateRoot, d as createDiagnosticConsole, j as harnessVersion, k as atLeast, n as piExtensionSource, r as piExtensionState, s as readNativeConfig, v as readTranscript, w as refreshHarnesses, x as discoverHarnesses, y as RuntimeArchiveStore, z as controlSocketPath } from "./install.js";
6
6
  import { d as resolveWebsocketUrl } from "./environment.js";
7
+ import "./binary-pins.js";
7
8
  import { t as readRuntimePreferences } from "./preferences.js";
8
9
  import { spawn } from "node:child_process";
9
10
  import { homedir, tmpdir } from "node:os";
@@ -17,6 +18,7 @@ import { PassThrough, Readable } from "node:stream";
17
18
  import { chmod, copyFile, lstat, mkdir, mkdtemp, readFile, readdir, rename, rm, stat, writeFile } from "node:fs/promises";
18
19
  import { pipeline } from "node:stream/promises";
19
20
  import { isDeepStrictEqual } from "node:util";
21
+ //#region src/commands/sandboxd-binary.ts
20
22
  const BINARY_NAME = "cohub-sandboxd";
21
23
  const binaryName = (goos) => goos === "windows" ? `${BINARY_NAME}.exe` : BINARY_NAME;
22
24
  const cdnBaseUrl = () => (process.env.COHUB_SANDBOXD_CDN_BASE_URL?.trim() || "https://public.cohub.live/sandboxd").replace(/\/+$/, "");
@@ -209,7 +211,7 @@ const ensureSandboxdBinary = async (options = {}) => {
209
211
  if (!await isExecutableFile(override)) throw new SandboxdDownloadError(`COHUB_SANDBOXD_BIN=${override} is not a file`);
210
212
  return override;
211
213
  }
212
- const version = options.version?.trim() || "v2.95.0";
214
+ const version = options.version?.trim() || "v2.96.0";
213
215
  const target = resolveTarget();
214
216
  const cached = cachedBinaryPath(version, target);
215
217
  if (await isExecutableFile(cached)) return cached;
@@ -645,7 +647,7 @@ async function connect(options) {
645
647
  const timer = setTimeout(() => {
646
648
  nativePending.delete(requestId);
647
649
  reject(/* @__PURE__ */ new Error("Native Runtime event timed out"));
648
- }, event.type === "ingest" ? 12e4 : 3e4);
650
+ }, event.type === "ingest" || event.type === "messages" ? 12e4 : 3e4);
649
651
  nativePending.set(requestId, {
650
652
  resolve,
651
653
  reject,
@@ -863,7 +865,10 @@ async function connect(options) {
863
865
  }, { connectionId });
864
866
  nativeChannelReady = true;
865
867
  capabilitiesFrame = frame.features?.includes("capabilities") === true;
866
- options.onNativeChannel?.(sendNative, { approvals: frame.features?.includes("approvals") === true });
868
+ options.onNativeChannel?.(sendNative, {
869
+ approvals: frame.features?.includes("approvals") === true,
870
+ nativeMessages: frame.features?.includes("nativeMessages") === true
871
+ });
867
872
  options.onReady();
868
873
  options.announce.current = announceHere;
869
874
  options.catalog.publish = publishCatalog;
@@ -1623,7 +1628,7 @@ var NativeSessions = class {
1623
1628
  * Transcript ingest travels over the existing Runtime WebSocket: one connection, one credential, no
1624
1629
  * second channel and no local receipts.
1625
1630
  */
1626
- function nativeWebSocketTransport(send) {
1631
+ function nativeWebSocketTransport(send, features = {}) {
1627
1632
  const call = async (event, options) => {
1628
1633
  options?.signal?.throwIfAborted();
1629
1634
  return await send(event);
@@ -1635,6 +1640,7 @@ function nativeWebSocketTransport(send) {
1635
1640
  input: { turnIds }
1636
1641
  }, options)).turns,
1637
1642
  progress: (event, options) => call(event, options),
1643
+ ...features.messages ? { messages: (event, options) => call(event, options) } : {},
1638
1644
  status: (sessionId, turnId, controllable, options) => call({
1639
1645
  type: "status",
1640
1646
  sessionId,
@@ -1776,10 +1782,10 @@ var NativeRuntime = class {
1776
1782
  await this.ingest.watch(signal).catch(degraded("native.watch_unavailable"));
1777
1783
  if (this.codex.enabled) this.codex.get();
1778
1784
  }
1779
- /** `approvals`: the Gateway relays approval decisions back. */
1785
+ /** `approvals`: the Gateway relays approval decisions back. `nativeMessages`: a large Turn is sent in several frames. */
1780
1786
  connect(send, features = {}) {
1781
1787
  this.send = send;
1782
- this.ingest.connect(send ? nativeWebSocketTransport(send) : null);
1788
+ this.ingest.connect(send ? nativeWebSocketTransport(send, { messages: features.nativeMessages }) : null);
1783
1789
  this.approvals.connect(send && features.approvals ? send : null);
1784
1790
  }
1785
1791
  stop(sessionId, turnId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neta-art/cohub-cli",
3
- "version": "10.25.0",
3
+ "version": "10.26.0",
4
4
  "description": "CLI for Cohub — spaces, sessions, and agent collaboration.",
5
5
  "type": "module",
6
6
  "engines": {
@@ -33,7 +33,7 @@
33
33
  "@fontsource-variable/figtree": "^5.3.0",
34
34
  "@fontsource-variable/geist": "^5.3.0",
35
35
  "@fontsource-variable/geist-mono": "^5.3.0",
36
- "@neta-art/cohub": "13.16.0",
36
+ "@neta-art/cohub": "13.17.0",
37
37
  "@types/node": "26.6.4",
38
38
  "@types/ws": "^8.18.1",
39
39
  "commander": "^15.0.0",