@llmsafespaces/sdk 0.13.0 → 0.13.1

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/index.cjs CHANGED
@@ -302,9 +302,21 @@ var SessionsAPI = class {
302
302
  enqueue(workspaceId, sessionId, text) {
303
303
  return this.client.request("POST", `/workspaces/${workspaceId}/sessions/${sessionId}/queue`, { text });
304
304
  }
305
+ /**
306
+ * @deprecated Under the V2 session-queue model (Epic 63), the queue is
307
+ * inboard in opencode and this endpoint returns a best-effort shadow
308
+ * derived from SSE events. Subscribe to the workspace SSE stream and
309
+ * track `queue.update` events instead. Removed in next major.
310
+ */
305
311
  listQueue(workspaceId, sessionId) {
306
312
  return this.client.request("GET", `/workspaces/${workspaceId}/sessions/${sessionId}/queue`);
307
313
  }
314
+ /**
315
+ * @deprecated Under the V2 session-queue model (Epic 63), abort is
316
+ * non-destructive and queued messages survive. This removes from the
317
+ * best-effort shadow only; it does not revoke the durable input.
318
+ * Removed in next major.
319
+ */
308
320
  dismissQueued(workspaceId, sessionId, messageId) {
309
321
  return this.client.request("DELETE", `/workspaces/${workspaceId}/sessions/${sessionId}/queue/${messageId}`);
310
322
  }
package/dist/index.d.cts CHANGED
@@ -182,6 +182,13 @@ interface UpdateProviderCredentialRequest {
182
182
  modelContextLimits?: Record<string, number>;
183
183
  modelOutputLimits?: Record<string, number>;
184
184
  }
185
+ /**
186
+ * A message waiting in the session queue.
187
+ *
188
+ * Under the V2 session-queue model (Epic 63), this is a best-effort shadow
189
+ * derived from SSE events. `retry_count` is vestigial (V2 has no retry —
190
+ * opencode handles durability internally).
191
+ */
185
192
  interface QueuedMessage {
186
193
  id: string;
187
194
  text: string;
@@ -272,9 +279,21 @@ declare class SessionsAPI {
272
279
  enqueue(workspaceId: string, sessionId: string, text: string): Promise<{
273
280
  messageID: string;
274
281
  }>;
282
+ /**
283
+ * @deprecated Under the V2 session-queue model (Epic 63), the queue is
284
+ * inboard in opencode and this endpoint returns a best-effort shadow
285
+ * derived from SSE events. Subscribe to the workspace SSE stream and
286
+ * track `queue.update` events instead. Removed in next major.
287
+ */
275
288
  listQueue(workspaceId: string, sessionId: string): Promise<{
276
289
  messages: QueuedMessage[];
277
290
  }>;
291
+ /**
292
+ * @deprecated Under the V2 session-queue model (Epic 63), abort is
293
+ * non-destructive and queued messages survive. This removes from the
294
+ * best-effort shadow only; it does not revoke the durable input.
295
+ * Removed in next major.
296
+ */
278
297
  dismissQueued(workspaceId: string, sessionId: string, messageId: string): Promise<void>;
279
298
  markSeen(workspaceId: string, sessionId: string): Promise<void>;
280
299
  }
package/dist/index.d.ts CHANGED
@@ -182,6 +182,13 @@ interface UpdateProviderCredentialRequest {
182
182
  modelContextLimits?: Record<string, number>;
183
183
  modelOutputLimits?: Record<string, number>;
184
184
  }
185
+ /**
186
+ * A message waiting in the session queue.
187
+ *
188
+ * Under the V2 session-queue model (Epic 63), this is a best-effort shadow
189
+ * derived from SSE events. `retry_count` is vestigial (V2 has no retry —
190
+ * opencode handles durability internally).
191
+ */
185
192
  interface QueuedMessage {
186
193
  id: string;
187
194
  text: string;
@@ -272,9 +279,21 @@ declare class SessionsAPI {
272
279
  enqueue(workspaceId: string, sessionId: string, text: string): Promise<{
273
280
  messageID: string;
274
281
  }>;
282
+ /**
283
+ * @deprecated Under the V2 session-queue model (Epic 63), the queue is
284
+ * inboard in opencode and this endpoint returns a best-effort shadow
285
+ * derived from SSE events. Subscribe to the workspace SSE stream and
286
+ * track `queue.update` events instead. Removed in next major.
287
+ */
275
288
  listQueue(workspaceId: string, sessionId: string): Promise<{
276
289
  messages: QueuedMessage[];
277
290
  }>;
291
+ /**
292
+ * @deprecated Under the V2 session-queue model (Epic 63), abort is
293
+ * non-destructive and queued messages survive. This removes from the
294
+ * best-effort shadow only; it does not revoke the durable input.
295
+ * Removed in next major.
296
+ */
278
297
  dismissQueued(workspaceId: string, sessionId: string, messageId: string): Promise<void>;
279
298
  markSeen(workspaceId: string, sessionId: string): Promise<void>;
280
299
  }
package/dist/index.js CHANGED
@@ -269,9 +269,21 @@ var SessionsAPI = class {
269
269
  enqueue(workspaceId, sessionId, text) {
270
270
  return this.client.request("POST", `/workspaces/${workspaceId}/sessions/${sessionId}/queue`, { text });
271
271
  }
272
+ /**
273
+ * @deprecated Under the V2 session-queue model (Epic 63), the queue is
274
+ * inboard in opencode and this endpoint returns a best-effort shadow
275
+ * derived from SSE events. Subscribe to the workspace SSE stream and
276
+ * track `queue.update` events instead. Removed in next major.
277
+ */
272
278
  listQueue(workspaceId, sessionId) {
273
279
  return this.client.request("GET", `/workspaces/${workspaceId}/sessions/${sessionId}/queue`);
274
280
  }
281
+ /**
282
+ * @deprecated Under the V2 session-queue model (Epic 63), abort is
283
+ * non-destructive and queued messages survive. This removes from the
284
+ * best-effort shadow only; it does not revoke the durable input.
285
+ * Removed in next major.
286
+ */
275
287
  dismissQueued(workspaceId, sessionId, messageId) {
276
288
  return this.client.request("DELETE", `/workspaces/${workspaceId}/sessions/${sessionId}/queue/${messageId}`);
277
289
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llmsafespaces/sdk",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "TypeScript SDK for LLMSafeSpaces API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",