@uxnan/shared 0.0.26-alpha.20260928 → 0.0.28-alpha.20260930

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.
@@ -196,6 +196,14 @@ export interface QueueStateResult {
196
196
  paused: boolean;
197
197
  /** Why it is held; absent when it is not paused. */
198
198
  pausedReason?: QueuePausedReason;
199
+ /**
200
+ * The queued turn the running agent is taking now: it went to the agent at a
201
+ * pause and is placed in the conversation once the agent reads it (Claude
202
+ * Code) or the step it is in ends (the others). Still listed in
203
+ * `queuedTurnIds` until then, but no longer editable nor cancellable.
204
+ * Absent when no delivery is under way.
205
+ */
206
+ deliveringTurnId?: string;
199
207
  }
200
208
  export interface GitCommitParams {
201
209
  cwd: string;
@@ -182,6 +182,8 @@ export interface QueueUpdatedParams {
182
182
  paused: boolean;
183
183
  /** Why it is held; absent when it is not paused. */
184
184
  pausedReason?: QueuePausedReason;
185
+ /** The queued turn being handed to the running agent (see `QueueStateResult.deliveringTurnId`). */
186
+ deliveringTurnId?: string;
185
187
  }
186
188
  export interface ModelResolvedParams {
187
189
  threadId: string;
@@ -133,6 +133,13 @@ export interface Thread {
133
133
  status: ThreadStatus;
134
134
  turnCount: number;
135
135
  createdAt: number;
136
+ /**
137
+ * When the conversation last MOVED (epoch ms): a turn started, stored or
138
+ * ended, its history re-read, its title or status decided. Every client
139
+ * sorts and dates its rows by it. A setting — `model`, `accessMode`,
140
+ * `agentSessionId` — does not move it: it reaches clients as a change of its
141
+ * own (`rev`) but never reorders a list.
142
+ */
136
143
  updatedAt: number;
137
144
  /** Agent driving this thread (e.g. `opencode`, `echo`). */
138
145
  agentId?: string;
@@ -222,4 +229,6 @@ export interface TurnList {
222
229
  queuePaused?: boolean;
223
230
  /** Why the queue is held; absent when it is not paused. */
224
231
  queuePausedReason?: QueuePausedReason;
232
+ /** The queued turn being handed to the running agent (see `QueueStateResult.deliveringTurnId`). */
233
+ queueDeliveringTurnId?: string;
225
234
  }
@@ -71,7 +71,10 @@ export interface CreditBalance {
71
71
  used: number;
72
72
  /** Spend/credit cap, when the provider exposes one. */
73
73
  limit?: number;
74
- /** ISO-4217 code (`USD`, `EUR`, …) or `credits` for non-currency units. */
74
+ /** ISO-4217 code (`USD`, `EUR`, …) or `credits` for non-currency units.
75
+ * Clients write every amount the way its currency is written — US dollars
76
+ * as `$1,234.56` in every UI language — through one formatter each
77
+ * (the desktop's `formatMoney`, the phone's `fmtMoney`). */
75
78
  currency: string;
76
79
  /** Period label (English; e.g. `Monthly`, `Credits`). */
77
80
  period: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxnan/shared",
3
- "version": "0.0.26-alpha.20260928",
3
+ "version": "0.0.28-alpha.20260930",
4
4
  "description": "Shared JSON-RPC and E2EE contracts for the Uxnan ecosystem (bridge, relay, mobile).",
5
5
  "license": "MPL-2.0",
6
6
  "author": "Luis Donaldo Gamas Vazquez",