@jush-agent/sdk 0.2.6247 → 0.2.6250

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/README.md CHANGED
@@ -52,6 +52,10 @@ await jush.close()
52
52
 
53
53
  `turn.outcome` is `finished`, `failed` or `stopped`; `turn.text` is the text
54
54
  the agent wrote after your message, and `turn.blocks` everything it did.
55
+ Blocks read back as a page, as after a dropped connection, come in the light
56
+ form the app's list holds: a tool call without its output's text, and with
57
+ only the description of a long input, and thinking without its text. The
58
+ answer's text is whole.
55
59
 
56
60
  ## Cores
57
61
 
@@ -288,9 +292,11 @@ await desk.update({ plugins: ['tickets-next'] })
288
292
  ```
289
293
 
290
294
  `conversation.run(input)` sends a message and resolves once the turn it
291
- starts ended. It fails when the message leaves the queue without running, as
292
- an abort that clears the queue makes it, or when the conversation closes
293
- first. The other actions are the ones the app has:
295
+ starts ended, with that turn's blocks and outcome, also when your program's
296
+ connection to the process dropped while the turn ended. It fails when the
297
+ message leaves the queue without running, as an abort that clears the queue
298
+ or gives the message back makes it, or when the conversation closes first.
299
+ The other actions are the ones the app has:
294
300
 
295
301
  | Method | What it does |
296
302
  | --- | --- |
@@ -340,14 +346,21 @@ The loop ends when you leave it or the conversation closes.
340
346
  `conversation.close()` stops following the conversation; its agents go on in
341
347
  the core, and the next action follows it again.
342
348
 
349
+ `conversation.agents` lists the conversation's agents: the root, whose id is
350
+ the conversation's, and each subagent, with its role, phase and queue. The
351
+ `agents` and `agent` events say they changed.
352
+
343
353
  `conversation.sendToAgent(node, text)` sends a message to one subagent, named
344
- by its id in the conversation's agents. A subagent at work takes it as a
345
- steer, an idle one starts a turn with it, and one that ended is resumed with
346
- it. Give the message an id when you may send it again, such as after a lost
347
- answer: the subagent takes a message once, however often it arrives.
354
+ by its id in `conversation.agents`. A subagent at work takes it as a steer, an
355
+ idle one starts a turn with it, and one that ended is resumed with it. Give
356
+ the message an id when you may send it again, such as after a lost answer:
357
+ the subagent takes a message once, however often it arrives.
348
358
 
349
359
  ```ts
350
- await conversation.sendToAgent(node, 'The build finished.', 'reminder-7')
360
+ const tester = conversation.agents.find((agent) => agent.role.kind === 'subagent' && agent.role.profile === 'tester')
361
+ if (tester) {
362
+ await conversation.sendToAgent(tester.id, 'The build finished.', 'reminder-7')
363
+ }
351
364
  ```
352
365
 
353
366
  ## Permission requests
package/dist/index.d.mts CHANGED
@@ -3826,6 +3826,7 @@ declare const errorBodySchema: z.ZodObject<{
3826
3826
  not_a_paired_device: "not_a_paired_device";
3827
3827
  conversation_not_found: "conversation_not_found";
3828
3828
  block_not_found: "block_not_found";
3829
+ turn_not_found: "turn_not_found";
3829
3830
  transcript_changed: "transcript_changed";
3830
3831
  conversation_unreadable: "conversation_unreadable";
3831
3832
  conversation_archived: "conversation_archived";
@@ -4812,6 +4813,7 @@ declare const portAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4812
4813
  not_a_paired_device: "not_a_paired_device";
4813
4814
  conversation_not_found: "conversation_not_found";
4814
4815
  block_not_found: "block_not_found";
4816
+ turn_not_found: "turn_not_found";
4815
4817
  transcript_changed: "transcript_changed";
4816
4818
  conversation_unreadable: "conversation_unreadable";
4817
4819
  conversation_archived: "conversation_archived";
@@ -4975,6 +4977,7 @@ declare const portAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4975
4977
  not_a_paired_device: "not_a_paired_device";
4976
4978
  conversation_not_found: "conversation_not_found";
4977
4979
  block_not_found: "block_not_found";
4980
+ turn_not_found: "turn_not_found";
4978
4981
  transcript_changed: "transcript_changed";
4979
4982
  conversation_unreadable: "conversation_unreadable";
4980
4983
  conversation_archived: "conversation_archived";
@@ -5303,6 +5306,7 @@ declare const laneRefusalSchema: z.ZodObject<{
5303
5306
  not_a_paired_device: "not_a_paired_device";
5304
5307
  conversation_not_found: "conversation_not_found";
5305
5308
  block_not_found: "block_not_found";
5309
+ turn_not_found: "turn_not_found";
5306
5310
  transcript_changed: "transcript_changed";
5307
5311
  conversation_unreadable: "conversation_unreadable";
5308
5312
  conversation_archived: "conversation_archived";
@@ -15637,6 +15641,7 @@ declare const conversationUpdateSchema: z.ZodObject<{
15637
15641
  cwd: z.ZodString;
15638
15642
  lastTurn: z.ZodNullable<z.ZodObject<{
15639
15643
  id: z.ZodString;
15644
+ turnId: z.ZodString;
15640
15645
  outcome: z.ZodEnum<{
15641
15646
  stopped: "stopped";
15642
15647
  failed: "failed";
@@ -15970,6 +15975,7 @@ declare const conversationUpdateSchema: z.ZodObject<{
15970
15975
  not_a_paired_device: "not_a_paired_device";
15971
15976
  conversation_not_found: "conversation_not_found";
15972
15977
  block_not_found: "block_not_found";
15978
+ turn_not_found: "turn_not_found";
15973
15979
  transcript_changed: "transcript_changed";
15974
15980
  conversation_unreadable: "conversation_unreadable";
15975
15981
  conversation_archived: "conversation_archived";
@@ -18158,10 +18164,10 @@ declare class ConversationClient {
18158
18164
  transcriptVersion(node?: string | null): Version | null;
18159
18165
  /** The version of the agents the client holds; null before the open answered. */
18160
18166
  heldAgents(): Version | null;
18167
+ /** The agents' entries the client holds, the root's and every subagent's and side question's, as copies. */
18168
+ agentEntries(): AgentEntry[];
18161
18169
  /** The accepted steers not yet in the transcript, as copies. */
18162
18170
  pendingSteers(): PendingSteer[];
18163
- /** The message the root's running turn started with, until its turn writes it, as a copy. */
18164
- startingMessage(): QueuedMessage | null;
18165
18171
  /** The calls the root's model is writing, as copies. */
18166
18172
  pendingCalls(): PendingCall[];
18167
18173
  /** Sends `frame` unless the client is detached; answers whether it did. */
@@ -18183,8 +18189,14 @@ declare class ConversationClient {
18183
18189
  private untilState;
18184
18190
  /**
18185
18191
  * Whether the client holds the agents at `at`, the version a command's
18186
- * answer names: at or past its revision, or at another epoch, whose reset
18187
- * showed the whole state; null names no tree, and nothing to wait for.
18192
+ * answer names: at or past its revision, or at another epoch once no read
18193
+ * of the agents is under way; null names no tree, and nothing to wait for.
18194
+ *
18195
+ * The answer comes after its step reached the page, so a page that held
18196
+ * another epoch, such as the stored one it read before its open restored
18197
+ * the tree, which the open's follow answered as stale, has begun reading
18198
+ * the agents again by then: the read shows the whole state, the command's
18199
+ * step included.
18188
18200
  */
18189
18201
  private holdsVersion;
18190
18202
  /** The wait of a `send` whose message has not run. */
@@ -18639,9 +18651,6 @@ declare class Conversation {
18639
18651
  /** The root's transcript, as the lane keeps it. */
18640
18652
  private transcript;
18641
18653
  private metadata;
18642
- /** The ids of the messages waiting in the root's queue. */
18643
- private queued;
18644
- private rootPhase;
18645
18654
  /** The permission requests told already. */
18646
18655
  private readonly told;
18647
18656
  private readonly listeners;
@@ -18666,6 +18675,12 @@ declare class Conversation {
18666
18675
  get permissions(): Permission[];
18667
18676
  /** The root's blocks the conversation holds, oldest first. */
18668
18677
  get blocks(): Block[];
18678
+ /**
18679
+ * The conversation's agents as its lane holds them: the root's entry,
18680
+ * whose id is the conversation's, each subagent's, whose id `sendToAgent`
18681
+ * takes, and each side question's. Empty until the lane opens.
18682
+ */
18683
+ get agents(): AgentEntry[];
18669
18684
  /**
18670
18685
  * Sends a message; resolves once it is in the transcript or the queue.
18671
18686
  * The conversation takes it once however often it is sent under
@@ -18679,10 +18694,11 @@ declare class Conversation {
18679
18694
  */
18680
18695
  update(patch: ConversationPatch): Promise<ConversationUpdate>;
18681
18696
  /**
18682
- * Sends `text` to the subagent `node`, an id of the conversation's agents,
18683
- * which takes it once however often it is sent under `messageId`: a live
18684
- * one as a steer, and an ended one is resumed with it. Resolves with the
18685
- * message's id, the one made for it when `messageId` is absent.
18697
+ * Sends `text` to the subagent `node`, the id of one of `agents` whose
18698
+ * role is a subagent's, which takes it once however often it is sent
18699
+ * under `messageId`: a live one as a steer, and an ended one is resumed
18700
+ * with it. Resolves with the message's id, the one made for it when
18701
+ * `messageId` is absent.
18686
18702
  */
18687
18703
  sendToAgent(node: string, text: string, messageId?: string): Promise<string>;
18688
18704
  /**
@@ -18697,20 +18713,37 @@ declare class Conversation {
18697
18713
  compact(): Promise<void>;
18698
18714
  /**
18699
18715
  * Sends `input`, and answers the turn it starts once the turn ended: once
18700
- * the conversation's last ended turn is one whose ending block follows
18701
- * the message, as a turn the root resumes ends anew. It fails when the
18702
- * message leaves the queue without running, as an abort's clearing of
18703
- * the queue removes it.
18716
+ * the conversation's last ended turn is its own, as a turn the root
18717
+ * resumes ends anew. When the lane's view cannot tell, as after its
18718
+ * connection dropped while the turn ended, it asks the conversation where
18719
+ * the turn stands, again at each view that cannot tell. It reads the
18720
+ * transcript back to the message when the turn ended past what the lane
18721
+ * holds. It fails when the message left the queue without running, as an
18722
+ * abort's clearing of the queue removes it.
18704
18723
  */
18705
18724
  run(input: Input): Promise<Turn>;
18706
18725
  /**
18707
- * Whether the message `messageId`, which was sent, will not run: the root
18708
- * is idle, and the message is neither in the queue, nor starting a turn,
18709
- * nor in the transcript.
18726
+ * The lane's view of the conversation when it leaves the turn of the sent
18727
+ * message `messageId` unaccounted for: the root idle, and the message
18728
+ * neither queued, nor starting, nor the last ended turn's, as when the
18729
+ * turn ended unseen or the message left the queue. Null when the view
18730
+ * accounts for it, or cannot tell yet: while the lane opens again, or
18731
+ * before it holds both the agents and the root's transcript current, as
18732
+ * after a drop.
18710
18733
  */
18711
- private leftUnrun;
18712
- /** The turn `messageId` started, once it ended; null before. */
18734
+ private unaccounted;
18735
+ /** Where the turn `messageId` stands, as the conversation answers; null when it holds no turn of it. */
18736
+ private turnState;
18737
+ /** The turn `messageId` started, which ended at `ending`; null until one window of the transcript holds both ends. */
18713
18738
  private turnOf;
18739
+ /**
18740
+ * The window of the root's transcript that holds the turn's end `ending`
18741
+ * but not the message `messageId` that started it, when the transcript
18742
+ * goes on before it; null otherwise.
18743
+ */
18744
+ private shortOf;
18745
+ /** Reads the page of the root's transcript before `window` into what the conversation holds. */
18746
+ private readBefore;
18714
18747
  /**
18715
18748
  * Everything the conversation's lane tells from now on, until the loop
18716
18749
  * that reads it stops or the conversation closes.
package/dist/index.mjs CHANGED
@@ -2740,6 +2740,7 @@ const errorCodeSchema = z.enum([
2740
2740
  "not_a_paired_device",
2741
2741
  "conversation_not_found",
2742
2742
  "block_not_found",
2743
+ "turn_not_found",
2743
2744
  "transcript_changed",
2744
2745
  "conversation_unreadable",
2745
2746
  "conversation_archived",
@@ -6309,6 +6310,13 @@ const lastTurnSchema = z.object({
6309
6310
  * ends anew.
6310
6311
  */
6311
6312
  id: z.string().min(1),
6313
+ /**
6314
+ * The turn it ended, which the turn's input blocks name: for a turn a
6315
+ * message started, the message's id, which a Resume of the turn keeps;
6316
+ * a turn Jush started for a command's report or an agent's message has
6317
+ * an id of its own.
6318
+ */
6319
+ turnId: z.string().min(1),
6312
6320
  outcome: turnOutcomeSchema
6313
6321
  });
6314
6322
  /**
@@ -10423,6 +10431,19 @@ const transcriptPageSchema = z.object({
10423
10431
  */
10424
10432
  cacheChart: cacheChartSchema.optional()
10425
10433
  });
10434
+ /**
10435
+ * Where a turn of a conversation's root stands, by the id of the message
10436
+ * that started it (`GET /conversations/{id}/turns/{turnId}`).
10437
+ */
10438
+ const turnStateSchema = z.discriminatedUnion("state", [
10439
+ z.object({ state: z.literal("queued") }),
10440
+ z.object({ state: z.literal("running") }),
10441
+ z.object({
10442
+ state: z.literal("ended"),
10443
+ end: z.string().min(1),
10444
+ outcome: turnOutcomeSchema
10445
+ })
10446
+ ]);
10426
10447
  z.object({ totals: z.array(usageGroupSchema) });
10427
10448
  z.strictObject({
10428
10449
  role: newRoleSchema.nullable().optional(),
@@ -11204,6 +11225,7 @@ var ConversationClient = class {
11204
11225
  }, (event) => {
11205
11226
  if (event.type === "send_result" && event.messageId === messageId) at = event.at;
11206
11227
  if (at !== void 0 && this.holdsVersion(at)) return { resolve: void 0 };
11228
+ if (at !== void 0 && event.type === "error") return;
11207
11229
  return this.failure(event, "send");
11208
11230
  });
11209
11231
  }
@@ -11237,6 +11259,7 @@ var ConversationClient = class {
11237
11259
  }
11238
11260
  if (event.type === "send_result" && event.messageId === turnId) at = event.at;
11239
11261
  if (at !== void 0 && this.holdsVersion(at)) return { resolve: void 0 };
11262
+ if (at !== void 0 && event.type === "error") return;
11240
11263
  if (event.type === "rejected" && event.command === "send_saved" && event.code === "saved_not_found") return { reject: new SavedGoneError() };
11241
11264
  return this.failure(event, "send_saved");
11242
11265
  });
@@ -11537,14 +11560,14 @@ var ConversationClient = class {
11537
11560
  heldAgents() {
11538
11561
  return this.agentsVersion ? { ...this.agentsVersion } : null;
11539
11562
  }
11563
+ /** The agents' entries the client holds, the root's and every subagent's and side question's, as copies. */
11564
+ agentEntries() {
11565
+ return structuredClone([...this.agents.values()]);
11566
+ }
11540
11567
  /** The accepted steers not yet in the transcript, as copies. */
11541
11568
  pendingSteers() {
11542
11569
  return structuredClone(this.pending);
11543
11570
  }
11544
- /** The message the root's running turn started with, until its turn writes it, as a copy. */
11545
- startingMessage() {
11546
- return structuredClone(this.starting);
11547
- }
11548
11571
  /** The calls the root's model is writing, as copies. */
11549
11572
  pendingCalls() {
11550
11573
  const root = this.root === null ? void 0 : this.agents.get(this.root);
@@ -11658,12 +11681,20 @@ var ConversationClient = class {
11658
11681
  }
11659
11682
  /**
11660
11683
  * Whether the client holds the agents at `at`, the version a command's
11661
- * answer names: at or past its revision, or at another epoch, whose reset
11662
- * showed the whole state; null names no tree, and nothing to wait for.
11684
+ * answer names: at or past its revision, or at another epoch once no read
11685
+ * of the agents is under way; null names no tree, and nothing to wait for.
11686
+ *
11687
+ * The answer comes after its step reached the page, so a page that held
11688
+ * another epoch, such as the stored one it read before its open restored
11689
+ * the tree, which the open's follow answered as stale, has begun reading
11690
+ * the agents again by then: the read shows the whole state, the command's
11691
+ * step included.
11663
11692
  */
11664
11693
  holdsVersion(at) {
11665
11694
  const held = this.agentsVersion;
11666
- return at === null || held !== null && (held.epoch !== at.epoch || held.revision >= at.revision);
11695
+ if (at === null) return true;
11696
+ if (held === null) return false;
11697
+ return held.epoch === at.epoch ? held.revision >= at.revision : !this.agentsReading;
11667
11698
  }
11668
11699
  /** The wait of a `send` whose message has not run. */
11669
11700
  queuedSendWaiter(messageId) {
@@ -12352,6 +12383,10 @@ function latestWindow(held) {
12352
12383
  const last = held.windows.at(-1);
12353
12384
  return last && windowEnd(last) >= held.length ? last : void 0;
12354
12385
  }
12386
+ /** The window that holds the block `id`. */
12387
+ function windowOf(held, id) {
12388
+ return held.windows.find((window) => window.blocks.some((block) => block.id === id));
12389
+ }
12355
12390
  /** Every block the page holds, in order, the windows' one after another. */
12356
12391
  function heldBlocks(held) {
12357
12392
  return held.windows.flatMap((window) => window.blocks);
@@ -12436,6 +12471,33 @@ function resetTranscript(held, reset, asked) {
12436
12471
  blocks: withVersions(blocks, reset.versions)
12437
12472
  }, "incoming"), reset.version);
12438
12473
  }
12474
+ /**
12475
+ * The transcript with a page of it the page read, its blocks light. A block the page
12476
+ * already holds stays as it is. A page tells the transcript's length as the database
12477
+ * holds it, which the page takes only while no stream told it one.
12478
+ */
12479
+ function addPage(held, page, live) {
12480
+ const blocks = withVersions(page.blocks.map((block) => ({
12481
+ ...block,
12482
+ light: true
12483
+ })), page.versions);
12484
+ return addWindow(held, {
12485
+ start: page.start,
12486
+ length: page.length,
12487
+ blocks
12488
+ }, live);
12489
+ }
12490
+ /**
12491
+ * The transcript with `page`'s items, as the page holds them, among its
12492
+ * windows: an item the page already holds stays as it is, and the page's
12493
+ * length is taken only while no stream told one.
12494
+ */
12495
+ function addWindow(held, page, live) {
12496
+ return heldTranscript(live ? held.length : page.length, joined(held.windows, {
12497
+ start: page.start,
12498
+ blocks: page.blocks
12499
+ }, "held"), held.version);
12500
+ }
12439
12501
  /** `windows` without the blocks from `length` on. */
12440
12502
  function truncated(windows, length) {
12441
12503
  return windows.flatMap((window) => {
@@ -13143,6 +13205,82 @@ function connectTransport(connection, conversation) {
13143
13205
  };
13144
13206
  }
13145
13207
  //#endregion
13208
+ //#region src/routes.ts
13209
+ /** A route refused the call: its status, and the core's error body. */
13210
+ var JushError = class extends Error {
13211
+ status;
13212
+ body;
13213
+ code;
13214
+ requestId;
13215
+ constructor(status, body, fallback) {
13216
+ super(body?.message ?? fallback);
13217
+ this.status = status;
13218
+ this.body = body;
13219
+ this.name = "JushError";
13220
+ this.code = body?.code ?? null;
13221
+ this.requestId = body?.requestId ?? null;
13222
+ }
13223
+ };
13224
+ /** The base of a process's URLs; the process reads the path alone. */
13225
+ const PROCESS_ORIGIN = "http://jush-core";
13226
+ /**
13227
+ * `path` below `base`, such as `/conversations` of `/jush/api/conversations`
13228
+ * below `/jush/api`; `path` itself when it is not below it, as
13229
+ * `/jush/apiary` is not.
13230
+ */
13231
+ function below(path, base) {
13232
+ const root = base.endsWith("/") ? base.slice(0, -1) : base;
13233
+ return path === root || path.startsWith(`${root}/`) ? path.slice(root.length) : path;
13234
+ }
13235
+ /** The refusal `response`, an answer other than 2xx to `what`, carries. */
13236
+ async function refusal(response, what) {
13237
+ const text = await response.text();
13238
+ let body = null;
13239
+ try {
13240
+ const parsed = errorBodySchema.safeParse(JSON.parse(text));
13241
+ body = parsed.success ? parsed.data : null;
13242
+ } catch {}
13243
+ return new JushError(response.status, body, `${what} answered ${response.status}: ${text}`);
13244
+ }
13245
+ var CoreRoutes = class {
13246
+ process;
13247
+ id;
13248
+ connection;
13249
+ constructor(process, id, connection) {
13250
+ this.process = process;
13251
+ this.id = id;
13252
+ this.connection = connection;
13253
+ }
13254
+ /** The process's path of the core's route `path`, such as `/conversations`. */
13255
+ path(path) {
13256
+ return `/cores/${encodeURIComponent(this.id)}/api${path}`;
13257
+ }
13258
+ /** Calls the route `path` with `body` as JSON; throws `JushError` for an answer other than 2xx. */
13259
+ async request(method, path, body, signal) {
13260
+ const response = await this.process.fetch(new Request(PROCESS_ORIGIN + this.path(path), {
13261
+ method,
13262
+ ...body === void 0 ? {} : {
13263
+ body: JSON.stringify(body),
13264
+ headers: { "content-type": "application/json" }
13265
+ },
13266
+ ...signal === void 0 ? {} : { signal }
13267
+ }));
13268
+ if (!response.ok) throw await refusal(response, `${method} ${path}`);
13269
+ return response;
13270
+ }
13271
+ /** The answer of the route `path`, read with `schema`. */
13272
+ async json(method, path, schema, body, signal) {
13273
+ const response = await this.request(method, path, body, signal);
13274
+ const parsed = schema.safeParse(await response.json());
13275
+ if (!parsed.success) throw new Error(schemaRefusal(parsed.error));
13276
+ return parsed.data;
13277
+ }
13278
+ /** Calls the route `path`, and drops its answer. */
13279
+ async send(method, path, body) {
13280
+ await (await this.request(method, path, body)).body?.cancel();
13281
+ }
13282
+ };
13283
+ //#endregion
13146
13284
  //#region src/conversation.ts
13147
13285
  /**
13148
13286
  * A conversation of a core, driven as the web app drives one: a
@@ -13163,9 +13301,6 @@ var Conversation = class {
13163
13301
  /** The root's transcript, as the lane keeps it. */
13164
13302
  transcript = EMPTY_TRANSCRIPT;
13165
13303
  metadata = null;
13166
- /** The ids of the messages waiting in the root's queue. */
13167
- queued = /* @__PURE__ */ new Set();
13168
- rootPhase = "idle";
13169
13304
  /** The permission requests told already. */
13170
13305
  told = /* @__PURE__ */ new Set();
13171
13306
  listeners = /* @__PURE__ */ new Set();
@@ -13241,15 +13376,6 @@ var Conversation = class {
13241
13376
  case "disconnected":
13242
13377
  this.reopen();
13243
13378
  break;
13244
- case "queue":
13245
- this.queued = new Set(event.queue.map((message) => message.id));
13246
- break;
13247
- case "agents":
13248
- this.rootPhase = event.agents.find((agent) => agent.role.kind === "root")?.phase ?? this.rootPhase;
13249
- break;
13250
- case "agent":
13251
- if (event.agent.role.kind === "root") this.rootPhase = event.agent.phase;
13252
- break;
13253
13379
  case "transcript_reset":
13254
13380
  if (event.node === this.id) this.transcript = resetTranscript(this.transcript, event, event.asked);
13255
13381
  break;
@@ -13280,6 +13406,7 @@ var Conversation = class {
13280
13406
  }
13281
13407
  } finally {
13282
13408
  this.reopening = false;
13409
+ this.changed();
13283
13410
  }
13284
13411
  })();
13285
13412
  this.opening = opening;
@@ -13322,6 +13449,14 @@ var Conversation = class {
13322
13449
  return heldBlocks(this.transcript);
13323
13450
  }
13324
13451
  /**
13452
+ * The conversation's agents as its lane holds them: the root's entry,
13453
+ * whose id is the conversation's, each subagent's, whose id `sendToAgent`
13454
+ * takes, and each side question's. Empty until the lane opens.
13455
+ */
13456
+ get agents() {
13457
+ return this.client?.agentEntries() ?? [];
13458
+ }
13459
+ /**
13325
13460
  * Sends a message; resolves once it is in the transcript or the queue.
13326
13461
  * The conversation takes it once however often it is sent under
13327
13462
  * `messageId`, which messages and steers share.
@@ -13338,10 +13473,11 @@ var Conversation = class {
13338
13473
  return this.routes.json("PATCH", `/conversations/${encodeURIComponent(this.id)}`, conversationUpdateSchema, patch);
13339
13474
  }
13340
13475
  /**
13341
- * Sends `text` to the subagent `node`, an id of the conversation's agents,
13342
- * which takes it once however often it is sent under `messageId`: a live
13343
- * one as a steer, and an ended one is resumed with it. Resolves with the
13344
- * message's id, the one made for it when `messageId` is absent.
13476
+ * Sends `text` to the subagent `node`, the id of one of `agents` whose
13477
+ * role is a subagent's, which takes it once however often it is sent
13478
+ * under `messageId`: a live one as a steer, and an ended one is resumed
13479
+ * with it. Resolves with the message's id, the one made for it when
13480
+ * `messageId` is absent.
13345
13481
  */
13346
13482
  async sendToAgent(node, text, messageId) {
13347
13483
  const path = `/conversations/${encodeURIComponent(this.id)}/agents/${encodeURIComponent(node)}/messages`;
@@ -13373,29 +13509,88 @@ var Conversation = class {
13373
13509
  }
13374
13510
  /**
13375
13511
  * Sends `input`, and answers the turn it starts once the turn ended: once
13376
- * the conversation's last ended turn is one whose ending block follows
13377
- * the message, as a turn the root resumes ends anew. It fails when the
13378
- * message leaves the queue without running, as an abort's clearing of
13379
- * the queue removes it.
13512
+ * the conversation's last ended turn is its own, as a turn the root
13513
+ * resumes ends anew. When the lane's view cannot tell, as after its
13514
+ * connection dropped while the turn ended, it asks the conversation where
13515
+ * the turn stands, again at each view that cannot tell. It reads the
13516
+ * transcript back to the message when the turn ended past what the lane
13517
+ * holds. It fails when the message left the queue without running, as an
13518
+ * abort's clearing of the queue removes it.
13380
13519
  */
13381
13520
  async run(input) {
13382
13521
  const messageId = randomUUID();
13383
13522
  let sent = false;
13523
+ let answered = null;
13524
+ let asked = null;
13525
+ let reading = false;
13526
+ let failures = 0;
13384
13527
  let change = {
13385
13528
  changed: () => {},
13386
13529
  closed: () => {}
13387
13530
  };
13388
13531
  const ended = new Promise((resolve, reject) => {
13389
- change = {
13390
- changed: () => {
13391
- const turn = this.turnOf(messageId);
13392
- if (turn !== null) {
13393
- this.changes.delete(change);
13394
- resolve(turn);
13395
- } else if (sent && this.leftUnrun(messageId)) {
13532
+ const again = () => {
13533
+ if (this.changes.has(change)) change.changed();
13534
+ };
13535
+ const later = () => {
13536
+ failures += 1;
13537
+ setTimeout(again, reconnectWait(failures));
13538
+ };
13539
+ const ask = (view) => {
13540
+ asked = view;
13541
+ this.turnState(messageId).then((state) => {
13542
+ if (asked !== view) return;
13543
+ if (state === null) {
13396
13544
  this.changes.delete(change);
13397
13545
  reject(/* @__PURE__ */ new Error("The message left the queue without running"));
13546
+ } else if (state.state === "ended") {
13547
+ failures = 0;
13548
+ answered = {
13549
+ end: state.end,
13550
+ outcome: state.outcome
13551
+ };
13552
+ again();
13553
+ } else {
13554
+ asked = null;
13555
+ later();
13556
+ }
13557
+ }, () => {
13558
+ if (asked === view) {
13559
+ asked = null;
13560
+ later();
13561
+ }
13562
+ });
13563
+ };
13564
+ const readBefore = (window) => {
13565
+ reading = true;
13566
+ this.readBefore(window).then(() => {
13567
+ reading = false;
13568
+ failures = 0;
13569
+ again();
13570
+ }, () => {
13571
+ reading = false;
13572
+ later();
13573
+ });
13574
+ };
13575
+ change = {
13576
+ changed: () => {
13577
+ const last = this.metadata?.lastTurn;
13578
+ const end = last?.turnId === messageId ? {
13579
+ end: last.id,
13580
+ outcome: last.outcome
13581
+ } : answered;
13582
+ if (end) {
13583
+ const turn = this.turnOf(messageId, end);
13584
+ if (turn) {
13585
+ this.changes.delete(change);
13586
+ resolve(turn);
13587
+ return;
13588
+ }
13589
+ const short = this.shortOf(messageId, end);
13590
+ if (short && !reading) readBefore(short);
13398
13591
  }
13592
+ const view = sent ? this.unaccounted(messageId) : null;
13593
+ if (view !== null && view !== asked) ask(view);
13399
13594
  },
13400
13595
  closed: () => reject(/* @__PURE__ */ new Error("The conversation was closed before its turn ended"))
13401
13596
  };
@@ -13413,30 +13608,70 @@ var Conversation = class {
13413
13608
  return ended;
13414
13609
  }
13415
13610
  /**
13416
- * Whether the message `messageId`, which was sent, will not run: the root
13417
- * is idle, and the message is neither in the queue, nor starting a turn,
13418
- * nor in the transcript.
13611
+ * The lane's view of the conversation when it leaves the turn of the sent
13612
+ * message `messageId` unaccounted for: the root idle, and the message
13613
+ * neither queued, nor starting, nor the last ended turn's, as when the
13614
+ * turn ended unseen or the message left the queue. Null when the view
13615
+ * accounts for it, or cannot tell yet: while the lane opens again, or
13616
+ * before it holds both the agents and the root's transcript current, as
13617
+ * after a drop.
13419
13618
  */
13420
- leftUnrun(messageId) {
13421
- return (this.rootPhase === "idle" || this.rootPhase === "compacting_idle") && !this.queued.has(messageId) && this.client?.startingMessage()?.id !== messageId && !this.blocks.some((block) => block.type === "user" && block.turnId === messageId);
13619
+ unaccounted(messageId) {
13620
+ const client = this.client;
13621
+ const agents = client?.heldAgents();
13622
+ if (this.reopening || !client || !agents || !client.holdsCurrent(this.id)) return null;
13623
+ const root = this.agents.find((agent) => agent.role.kind === "root");
13624
+ const phase = root?.phase ?? "idle";
13625
+ const last = this.metadata?.lastTurn ?? null;
13626
+ return phase !== "idle" && phase !== "compacting_idle" || root?.queue.some((message) => message.id === messageId) || root?.starting?.id === messageId || last?.turnId === messageId ? null : JSON.stringify([
13627
+ agents,
13628
+ client.transcriptVersion(this.id),
13629
+ last?.id ?? null
13630
+ ]);
13631
+ }
13632
+ /** Where the turn `messageId` stands, as the conversation answers; null when it holds no turn of it. */
13633
+ async turnState(messageId) {
13634
+ const path = `/conversations/${encodeURIComponent(this.id)}/turns/${encodeURIComponent(messageId)}`;
13635
+ try {
13636
+ return await this.routes.json("GET", path, turnStateSchema);
13637
+ } catch (error) {
13638
+ if (error instanceof JushError && error.code === "turn_not_found") return null;
13639
+ throw error;
13640
+ }
13422
13641
  }
13423
- /** The turn `messageId` started, once it ended; null before. */
13424
- turnOf(messageId) {
13425
- const last = this.metadata?.lastTurn;
13426
- if (!last) return null;
13427
- const blocks = this.blocks;
13642
+ /** The turn `messageId` started, which ended at `ending`; null until one window of the transcript holds both ends. */
13643
+ turnOf(messageId, ending) {
13644
+ const blocks = windowOf(this.transcript, ending.end)?.blocks ?? [];
13428
13645
  const at = blocks.findIndex((block) => block.type === "user" && block.turnId === messageId);
13429
- const end = blocks.findIndex((block) => block.id === last.id);
13646
+ const end = blocks.findIndex((block) => block.id === ending.end);
13430
13647
  if (at < 0 || end <= at) return null;
13431
13648
  const after = blocks.slice(at + 1, end + 1);
13432
13649
  const text = after.flatMap((block) => block.type === "text" ? [block.text] : []).join("\n\n");
13433
13650
  return {
13434
- outcome: last.outcome,
13651
+ outcome: ending.outcome,
13435
13652
  blocks: after,
13436
13653
  text
13437
13654
  };
13438
13655
  }
13439
13656
  /**
13657
+ * The window of the root's transcript that holds the turn's end `ending`
13658
+ * but not the message `messageId` that started it, when the transcript
13659
+ * goes on before it; null otherwise.
13660
+ */
13661
+ shortOf(messageId, ending) {
13662
+ const window = windowOf(this.transcript, ending.end);
13663
+ const started = window?.blocks.some((block) => block.type === "user" && block.turnId === messageId);
13664
+ return window && window.start > 0 && !started ? window : null;
13665
+ }
13666
+ /** Reads the page of the root's transcript before `window` into what the conversation holds. */
13667
+ async readBefore(window) {
13668
+ const root = encodeURIComponent(this.id);
13669
+ const edge = encodeURIComponent(window.blocks[0].id);
13670
+ const path = `/conversations/${root}/agents/${root}/transcript?before=${window.start}&edge=${edge}`;
13671
+ const page = await this.routes.json("GET", path, transcriptPageSchema);
13672
+ this.transcript = addPage(this.transcript, page, true);
13673
+ }
13674
+ /**
13440
13675
  * Everything the conversation's lane tells from now on, until the loop
13441
13676
  * that reads it stops or the conversation closes.
13442
13677
  */
@@ -13876,82 +14111,6 @@ function pluginError(error) {
13876
14111
  };
13877
14112
  }
13878
14113
  //#endregion
13879
- //#region src/routes.ts
13880
- /** A route refused the call: its status, and the core's error body. */
13881
- var JushError = class extends Error {
13882
- status;
13883
- body;
13884
- code;
13885
- requestId;
13886
- constructor(status, body, fallback) {
13887
- super(body?.message ?? fallback);
13888
- this.status = status;
13889
- this.body = body;
13890
- this.name = "JushError";
13891
- this.code = body?.code ?? null;
13892
- this.requestId = body?.requestId ?? null;
13893
- }
13894
- };
13895
- /** The base of a process's URLs; the process reads the path alone. */
13896
- const PROCESS_ORIGIN = "http://jush-core";
13897
- /**
13898
- * `path` below `base`, such as `/conversations` of `/jush/api/conversations`
13899
- * below `/jush/api`; `path` itself when it is not below it, as
13900
- * `/jush/apiary` is not.
13901
- */
13902
- function below(path, base) {
13903
- const root = base.endsWith("/") ? base.slice(0, -1) : base;
13904
- return path === root || path.startsWith(`${root}/`) ? path.slice(root.length) : path;
13905
- }
13906
- /** The refusal `response`, an answer other than 2xx to `what`, carries. */
13907
- async function refusal(response, what) {
13908
- const text = await response.text();
13909
- let body = null;
13910
- try {
13911
- const parsed = errorBodySchema.safeParse(JSON.parse(text));
13912
- body = parsed.success ? parsed.data : null;
13913
- } catch {}
13914
- return new JushError(response.status, body, `${what} answered ${response.status}: ${text}`);
13915
- }
13916
- var CoreRoutes = class {
13917
- process;
13918
- id;
13919
- connection;
13920
- constructor(process, id, connection) {
13921
- this.process = process;
13922
- this.id = id;
13923
- this.connection = connection;
13924
- }
13925
- /** The process's path of the core's route `path`, such as `/conversations`. */
13926
- path(path) {
13927
- return `/cores/${encodeURIComponent(this.id)}/api${path}`;
13928
- }
13929
- /** Calls the route `path` with `body` as JSON; throws `JushError` for an answer other than 2xx. */
13930
- async request(method, path, body, signal) {
13931
- const response = await this.process.fetch(new Request(PROCESS_ORIGIN + this.path(path), {
13932
- method,
13933
- ...body === void 0 ? {} : {
13934
- body: JSON.stringify(body),
13935
- headers: { "content-type": "application/json" }
13936
- },
13937
- ...signal === void 0 ? {} : { signal }
13938
- }));
13939
- if (!response.ok) throw await refusal(response, `${method} ${path}`);
13940
- return response;
13941
- }
13942
- /** The answer of the route `path`, read with `schema`. */
13943
- async json(method, path, schema, body, signal) {
13944
- const response = await this.request(method, path, body, signal);
13945
- const parsed = schema.safeParse(await response.json());
13946
- if (!parsed.success) throw new Error(schemaRefusal(parsed.error));
13947
- return parsed.data;
13948
- }
13949
- /** Calls the route `path`, and drops its answer. */
13950
- async send(method, path, body) {
13951
- await (await this.request(method, path, body)).body?.cancel();
13952
- }
13953
- };
13954
- //#endregion
13955
14114
  //#region src/socket.ts
13956
14115
  /**
13957
14116
  * A WebSocket on a stream of the process's HTTP/2 connection (RFC 8441):
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jush-agent/sdk",
3
3
  "description": "Jush's agents in a program: its cores, conversations, providers, devices and plugins, in a process of the program's own.",
4
- "version": "0.2.6247",
4
+ "version": "0.2.6250",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "exports": {
@@ -35,11 +35,11 @@
35
35
  "homepage": "https://github.com/jush-ai/jush/tree/main/packages/sdk#readme",
36
36
  "bugs": "https://github.com/jush-ai/jush/issues",
37
37
  "optionalDependencies": {
38
- "@jush-agent/sdk-darwin-arm64": "0.2.6247",
39
- "@jush-agent/sdk-darwin-x64": "0.2.6247",
40
- "@jush-agent/sdk-linux-arm64": "0.2.6247",
41
- "@jush-agent/sdk-linux-x64": "0.2.6247",
42
- "@jush-agent/sdk-win32-arm64": "0.2.6247",
43
- "@jush-agent/sdk-win32-x64": "0.2.6247"
38
+ "@jush-agent/sdk-darwin-arm64": "0.2.6250",
39
+ "@jush-agent/sdk-darwin-x64": "0.2.6250",
40
+ "@jush-agent/sdk-linux-arm64": "0.2.6250",
41
+ "@jush-agent/sdk-linux-x64": "0.2.6250",
42
+ "@jush-agent/sdk-win32-arm64": "0.2.6250",
43
+ "@jush-agent/sdk-win32-x64": "0.2.6250"
44
44
  }
45
45
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "id": "jush.browser",
3
- "version": "0.2.6247",
3
+ "version": "0.2.6250",
4
4
  "protocolVersion": 1,
5
5
  "operations": [
6
6
  "browser.tab.new",
@@ -60,28 +60,28 @@
60
60
  ],
61
61
  "targets": {
62
62
  "aarch64-apple-darwin": {
63
- "sha256": "c42eb65f13f935f969b41681dc11ff7806cbae3bb98c3c5bc4ee9bf435213878",
64
- "size": 27325072
63
+ "sha256": "0aaf3d98986aeff23c0642ae40a81e0861198dd9db5a98862e65323fc550550a",
64
+ "size": 27304144
65
65
  },
66
66
  "aarch64-pc-windows-msvc": {
67
- "sha256": "0394c435f041649b95db44dee6d152e7f56a655ab5bd299be1225e02418c1417",
68
- "size": 24746496
67
+ "sha256": "78bcff4e614ce46eb4a77862d8012cc139f907022703941043983c8eb231c721",
68
+ "size": 24744960
69
69
  },
70
70
  "aarch64-unknown-linux-musl": {
71
- "sha256": "6045e4d91044b744ab279ca633d958d35efcd26dd20e546a2447bc5d017eb79d",
72
- "size": 23378096
71
+ "sha256": "f4e4ac3c83ee7b476986d65cc0d517f17bf76b2e1f42e307e4fb3d2dfe7df901",
72
+ "size": 23383216
73
73
  },
74
74
  "x86_64-apple-darwin": {
75
- "sha256": "ff3ef5915fde30b8acc5b376b85493f8821d7f665dd7b860e68bf377a7a41735",
76
- "size": 27940960
75
+ "sha256": "efec638d13d7e8f0acfa4d00e45ebfa958c7e9c6d139c3604c637b53b51fb8df",
76
+ "size": 27940984
77
77
  },
78
78
  "x86_64-pc-windows-msvc": {
79
- "sha256": "2e07649ef240765b766249db324a915e66f9fb66e9114937721bacf226fa08ba",
80
- "size": 27760128
79
+ "sha256": "b7f9329f3f14d4bfb611ba7ad386fec87cea310eee5516a1f6de5d81890c56d6",
80
+ "size": 27747840
81
81
  },
82
82
  "x86_64-unknown-linux-musl": {
83
- "sha256": "de88c10df76746ec3cdbc0c8382c66a9d1e44c57207eb2dda87cb0431792d49c",
84
- "size": 25852408
83
+ "sha256": "d656278eb517f41213413b7c1346a746cf936a4c4e48cddb095373b093f978eb",
84
+ "size": 25847032
85
85
  }
86
86
  }
87
87
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "id": "jush.claude-code",
3
- "version": "0.2.6247",
3
+ "version": "0.2.6250",
4
4
  "protocolVersion": 1,
5
5
  "operations": [
6
6
  "claude-code.ensure",
@@ -8,28 +8,28 @@
8
8
  ],
9
9
  "targets": {
10
10
  "aarch64-apple-darwin": {
11
- "sha256": "f2f0c69a7686056752d5bc45f327ac9c10eda4df214c0b349c382adcce479c44",
12
- "size": 3900912
11
+ "sha256": "fcc93e6eac80512f72d0bcf329dcfa5432152bbe7870be235e1e1d2e719e294c",
12
+ "size": 3883952
13
13
  },
14
14
  "aarch64-pc-windows-msvc": {
15
- "sha256": "8749a691a9c1b80bb232c0cf035a4e114369133f2e0f140141afb6337fdaf10a",
16
- "size": 3497984
15
+ "sha256": "e5d37c558d731dc56b2b84d8fd60e477965d9590ede208bba0b7740fabb19355",
16
+ "size": 3499520
17
17
  },
18
18
  "aarch64-unknown-linux-musl": {
19
- "sha256": "e31ef1ce633a383a2a7d422a040afa895af5f165187027512aff9c99f9c632e1",
20
- "size": 3590536
19
+ "sha256": "adaf4c90e9d101adbb253abfc31368c729b432134d6e3b6f7e321cb8e8bca81b",
20
+ "size": 3589832
21
21
  },
22
22
  "x86_64-apple-darwin": {
23
- "sha256": "28c0ff9f2269ed32a401af5d2b599a8e5f8631e6d35bc7542dfb1f5e51805480",
24
- "size": 3786744
23
+ "sha256": "d0ae38d798f39dd3dc51891af21abf1481705f2fe2ce041c601549197671f73b",
24
+ "size": 3787168
25
25
  },
26
26
  "x86_64-pc-windows-msvc": {
27
- "sha256": "4a9f991adc4a1a968f110f21ebace43990974d2e548c36a0f71aa33f88a36611",
28
- "size": 3725824
27
+ "sha256": "bf28d2324b53c3055b38f6b4924ce0d1ee2680b343563ad119951ae4ae6b5e4a",
28
+ "size": 3726336
29
29
  },
30
30
  "x86_64-unknown-linux-musl": {
31
- "sha256": "261c9c3152c64de42b786ccf4f3536e7aab0ded55bbd418809ce1d73cae1e748",
32
- "size": 3756488
31
+ "sha256": "a87e5e6b8866160fd4fee53e9d8cc9425ce6fc58abbdce13b9f3deff965af5d7",
32
+ "size": 3755656
33
33
  }
34
34
  }
35
35
  }
@@ -1,33 +1,33 @@
1
1
  {
2
2
  "id": "jush.fetch",
3
- "version": "0.2.6247",
3
+ "version": "0.2.6250",
4
4
  "protocolVersion": 1,
5
5
  "operations": [
6
6
  "fetch.get"
7
7
  ],
8
8
  "targets": {
9
9
  "aarch64-apple-darwin": {
10
- "sha256": "849f0fc4afe9ef0382fa97308138fc8597852d5ee7dc1e6ce97d6936a895b1b7",
11
- "size": 7164576
10
+ "sha256": "604ec5996948013ed0413744a0f1932a01b35329538f1387589955f8215ebddd",
11
+ "size": 7164608
12
12
  },
13
13
  "aarch64-pc-windows-msvc": {
14
- "sha256": "c015ac9ca97b37a231b6919fb8d699ad1f581adedc5c60cac36c194cd6a80dfa",
15
- "size": 6514176
14
+ "sha256": "b7c1c2c68ee03c735f2eb14874676f745a636c468de30f2c355256daafc9247e",
15
+ "size": 6515200
16
16
  },
17
17
  "aarch64-unknown-linux-musl": {
18
- "sha256": "c0c708ebbdaa9f8cf0b1c74abb3c2953bc1ba8564f2a4cb073c18d26eb8335ad",
19
- "size": 6527984
18
+ "sha256": "c1985f543fbfd7cf6fd0d57ed021cba92b9687da52a06d63d642c5a3323a5111",
19
+ "size": 6527472
20
20
  },
21
21
  "x86_64-apple-darwin": {
22
- "sha256": "5c49ad756300a58386a30e6e9ff15ed69d6b88055df2d57d4ff3042f52021579",
23
- "size": 7276024
22
+ "sha256": "12c7809ca591d180de30a652ee3671d7615d5986c719cb63e86a3d126c0ec10e",
23
+ "size": 7275944
24
24
  },
25
25
  "x86_64-pc-windows-msvc": {
26
- "sha256": "841a06e6324a77b778e1a770c4d1523402863b6e3f5113a99c64b905a27a1c72",
27
- "size": 6989824
26
+ "sha256": "6440a5845fa15f67af75d7c50dbb4eb011c41a1f731ceb8a8b13ebd544d35e97",
27
+ "size": 6991360
28
28
  },
29
29
  "x86_64-unknown-linux-musl": {
30
- "sha256": "7812ce7559d95fce379ccfed7460fcd2418598803336d7abb017b021490bf657",
30
+ "sha256": "3d95f5625052d82b636dca93afd947fe2ab52b20942b3d1e0bb2d7dec60200a7",
31
31
  "size": 7016688
32
32
  }
33
33
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "id": "jush.file",
3
- "version": "0.2.6247",
3
+ "version": "0.2.6250",
4
4
  "protocolVersion": 1,
5
5
  "operations": [
6
6
  "file.view",
@@ -9,28 +9,28 @@
9
9
  ],
10
10
  "targets": {
11
11
  "aarch64-apple-darwin": {
12
- "sha256": "c264e81fe915f77dae5f96712237293b7f30ec1760bb77db099c62d63fdbfb61",
13
- "size": 4930256
12
+ "sha256": "8af8c288aed5a6d3b520922b1516197bbee89f81fcc4fe3cbb5c42ea0a1f8f4c",
13
+ "size": 4930144
14
14
  },
15
15
  "aarch64-pc-windows-msvc": {
16
- "sha256": "dd9716ca48a0f7e79477e7b881ca213e9a54c56026944b9a572dfa3e1f37c07f",
16
+ "sha256": "67bfe5d430d468372fd4ab15767217e2a1e32f8963992b1b29a0dc7550940b4e",
17
17
  "size": 4361728
18
18
  },
19
19
  "aarch64-unknown-linux-musl": {
20
- "sha256": "6b88ecab650856b08647d5dcac85d6eafcd3cda0f5bc8face30fa52f3bb21a0c",
21
- "size": 4468608
20
+ "sha256": "0668192a23849359f551b37f823adda37114cd9d3b457a7e5747f03f0cafb018",
21
+ "size": 4468800
22
22
  },
23
23
  "x86_64-apple-darwin": {
24
- "sha256": "6b7d81c439662ac5e135d961584aec773bb1da91c1cb7b1244a23afa69a7b463",
25
- "size": 4806240
24
+ "sha256": "92dc3da02258f92a8538e786a18ad9d343e1a862548804ca45f52d718b3f81c4",
25
+ "size": 4806248
26
26
  },
27
27
  "x86_64-pc-windows-msvc": {
28
- "sha256": "9dd4cae32099adfff6b4f187329bdaf0367aa71395c101badfd93d1c32c44c83",
28
+ "sha256": "388661f7d7b072b11879c3f2900ae882e66d1b5e51ea1754e6f729d5da6c589c",
29
29
  "size": 4665344
30
30
  },
31
31
  "x86_64-unknown-linux-musl": {
32
- "sha256": "ab0019255c60945ff00b3ca26ddd2da13697dcb62b19578de3ba2bcd61ac3043",
33
- "size": 4691520
32
+ "sha256": "443846c28baf2b96dea36dcd6039907e467b999fc0806c5844e610d72e2b4a3e",
33
+ "size": 4691456
34
34
  }
35
35
  }
36
36
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "id": "jush.mobile",
3
- "version": "0.2.6247",
3
+ "version": "0.2.6250",
4
4
  "protocolVersion": 1,
5
5
  "operations": [
6
6
  "mobile.list",
@@ -25,28 +25,28 @@
25
25
  ],
26
26
  "targets": {
27
27
  "aarch64-apple-darwin": {
28
- "sha256": "e3dd98aae5e7cf40578594e5dcae3173926c99c66f5fe7366a1847f96f8e5097",
29
- "size": 22392880
28
+ "sha256": "dd0824782dbb7ab723344c21fe9c2a6e71cc3f5c90cfd336aa803183be0c17f6",
29
+ "size": 22392496
30
30
  },
31
31
  "aarch64-pc-windows-msvc": {
32
- "sha256": "5d08985cc2843abd727409a1241d03d1e70f7b7b89db4c744e38787c376e5df4",
33
- "size": 17902080
32
+ "sha256": "7f3a308f51292c26d844aeff281a06ebb8b142b58e0b9e56f560fa915839406d",
33
+ "size": 17901568
34
34
  },
35
35
  "aarch64-unknown-linux-musl": {
36
- "sha256": "3dffdac8e87c4e532ac859c0c53d815b70be2e0eae1c7871e666b4ee64ef9ef9",
37
- "size": 17343728
36
+ "sha256": "05a680aa9628c1676d0566178b29d7098eaeba16fae630badb5f42e5f5875d1f",
37
+ "size": 17346480
38
38
  },
39
39
  "x86_64-apple-darwin": {
40
- "sha256": "e7207723b8b1b9350288ada768133e7e38b1c649c93b1677b54b0212c0d724b2",
41
- "size": 21513552
40
+ "sha256": "87da27fff28856af526c53769710f0343cdd87f6cf2dcf3a9cf36a9c9e5a051a",
41
+ "size": 21514416
42
42
  },
43
43
  "x86_64-pc-windows-msvc": {
44
- "sha256": "159f2ca9ebac24d521e5178b6a5d414bf3e5718fdd39c11cd7808d5a63df25e7",
45
- "size": 20924416
44
+ "sha256": "f67def4e6d010d41218f04cc7acde6bf95799ffe5c103c1ed07ff130f3d46a8c",
45
+ "size": 20918784
46
46
  },
47
47
  "x86_64-unknown-linux-musl": {
48
- "sha256": "c9e73542c466911e9eab5016d9c520864b5a80697c2cc5e9931dbfb612458166",
49
- "size": 19924864
48
+ "sha256": "f1792dde1c8a7a7a60fd2b80447bbbae08df04c1949aaaf5b303874b8479b03e",
49
+ "size": 19921792
50
50
  }
51
51
  }
52
52
  }