@bobannomi/client 0.1.0-next.1 → 0.1.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/index.d.ts +3 -4
- package/dist/index.js +10 -13
- package/dist/index.js.map +3 -3
- package/dist/service.js +10 -13
- package/dist/service.js.map +3 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1695,7 +1695,6 @@ declare function streamServerSentEvents<T>(open: () => Promise<ReadableStream<Ui
|
|
|
1695
1695
|
declare class SseTransport {
|
|
1696
1696
|
private readonly transport;
|
|
1697
1697
|
constructor(transport: HttpTransport);
|
|
1698
|
-
streamFromReader<T>(open: () => Promise<ReadableStream<Uint8Array>>, decode?: (value: unknown) => T): AsyncIterable<T>;
|
|
1699
1698
|
stream<T>(url: string, options?: SseStreamOptions<T>): AsyncIterable<T>;
|
|
1700
1699
|
}
|
|
1701
1700
|
|
|
@@ -1814,7 +1813,7 @@ interface BobanNomiClientState {
|
|
|
1814
1813
|
/** 当前已应用到的最大事件序号,用作 SSE cursor。 */
|
|
1815
1814
|
lastSeq: number;
|
|
1816
1815
|
}
|
|
1817
|
-
/** `syncEvents`
|
|
1816
|
+
/** `syncEvents` 的过滤、取消与重连选项。 */
|
|
1818
1817
|
interface EventSyncOptions {
|
|
1819
1818
|
partView?: "summary";
|
|
1820
1819
|
sessionId?: string;
|
|
@@ -2425,7 +2424,7 @@ declare class EventResource {
|
|
|
2425
2424
|
list(options?: ListEventsOptions & {
|
|
2426
2425
|
signal?: AbortSignal;
|
|
2427
2426
|
}): Promise<SessionEventRecord[]>;
|
|
2428
|
-
stream(options?: EventSyncOptions & {
|
|
2427
|
+
stream(options?: Omit<EventSyncOptions, "reconnectDelayMs"> & {
|
|
2429
2428
|
transportReconnect?: boolean;
|
|
2430
2429
|
onOpen?: () => void;
|
|
2431
2430
|
}): AsyncIterable<SessionEventRecord>;
|
|
@@ -2509,7 +2508,7 @@ interface SyncEventsClient {
|
|
|
2509
2508
|
list(options?: ListEventsOptions & {
|
|
2510
2509
|
signal?: AbortSignal;
|
|
2511
2510
|
}): Promise<SessionEventRecord[]>;
|
|
2512
|
-
stream(options?: EventSyncOptions & {
|
|
2511
|
+
stream(options?: Omit<EventSyncOptions, "reconnectDelayMs"> & {
|
|
2513
2512
|
transportReconnect?: boolean;
|
|
2514
2513
|
}): AsyncIterable<SessionEventRecord>;
|
|
2515
2514
|
};
|
package/dist/index.js
CHANGED
|
@@ -2141,6 +2141,16 @@ var json = (value) => {
|
|
|
2141
2141
|
var jsonObject = (v) => !!v && typeof v === "object" && !Array.isArray(v) && json(v);
|
|
2142
2142
|
var wireConnection = object3({ connectionId: text2(256), baseUrl: text2(2048) });
|
|
2143
2143
|
|
|
2144
|
+
// ../domain-contracts/src/app-host/fetch.ts
|
|
2145
|
+
var FETCH_CHUNK_BYTES = 64 * 1024;
|
|
2146
|
+
var FETCH_INLINE_BODY_BYTES = 8 * 1024;
|
|
2147
|
+
var FETCH_METADATA_BYTES = 64 * 1024;
|
|
2148
|
+
|
|
2149
|
+
// ../domain-contracts/src/app-host/service-host-protocol.ts
|
|
2150
|
+
var SERVICE_HOST_MAX_FRAME_BYTES = 512 * 1024;
|
|
2151
|
+
var worktreeBody = { workspaceId: id, expectedHead: text2(256), branch: text2(1024) };
|
|
2152
|
+
var worktreeReceipt = object3({ requestId: id, state: enumeration("accepted", "completed", "failed", "unknown") }, { result: object3({ executionRoot: id, workspaceId: id, branch: text2(1024), sourceHead: text2(256) }) });
|
|
2153
|
+
|
|
2144
2154
|
// ../domain-contracts/src/app-host/workspace-conversations.ts
|
|
2145
2155
|
var validWorkspaceConversation = (value) => {
|
|
2146
2156
|
if (!object3(
|
|
@@ -2229,16 +2239,6 @@ function validSessionControlResult(method, value) {
|
|
|
2229
2239
|
return false;
|
|
2230
2240
|
}
|
|
2231
2241
|
|
|
2232
|
-
// ../domain-contracts/src/app-host/fetch.ts
|
|
2233
|
-
var FETCH_CHUNK_BYTES = 64 * 1024;
|
|
2234
|
-
var FETCH_INLINE_BODY_BYTES = 8 * 1024;
|
|
2235
|
-
var FETCH_METADATA_BYTES = 64 * 1024;
|
|
2236
|
-
|
|
2237
|
-
// ../domain-contracts/src/app-host/service-host-protocol.ts
|
|
2238
|
-
var SERVICE_HOST_MAX_FRAME_BYTES = 512 * 1024;
|
|
2239
|
-
var worktreeBody = { workspaceId: id, expectedHead: text2(256), branch: text2(1024) };
|
|
2240
|
-
var worktreeReceipt = object3({ requestId: id, state: enumeration("accepted", "completed", "failed", "unknown") }, { result: object3({ executionRoot: id, workspaceId: id, branch: text2(1024), sourceHead: text2(256) }) });
|
|
2241
|
-
|
|
2242
2242
|
// ../domain-contracts/src/app-host/model-providers.ts
|
|
2243
2243
|
var provider = text2(256);
|
|
2244
2244
|
var imageInputSupport = enumeration("native", "unsupported", "unknown");
|
|
@@ -2657,9 +2657,6 @@ var SseTransport = class {
|
|
|
2657
2657
|
this.transport = transport;
|
|
2658
2658
|
}
|
|
2659
2659
|
transport;
|
|
2660
|
-
streamFromReader(open, decode = (val) => val) {
|
|
2661
|
-
return streamServerSentEvents(open, decode);
|
|
2662
|
-
}
|
|
2663
2660
|
async *stream(url, options = {}) {
|
|
2664
2661
|
let lastEventId = options.lastEventId;
|
|
2665
2662
|
let reconnectDelayMs = options.reconnectDelayMs ?? 250;
|