@schoolai/shipyard 3.6.0 → 3.7.0-rc.20260511.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.
Files changed (28) hide show
  1. package/dist/{chunk-DBAPXL44.js → chunk-MWH2XTEM.js} +2 -2
  2. package/dist/{chunk-DBAPXL44.js.map → chunk-MWH2XTEM.js.map} +1 -1
  3. package/dist/{chunk-52T3USYD.js → chunk-NZIHQQRN.js} +2 -2
  4. package/dist/index.js +3 -3
  5. package/dist/{login-WYC24WPA.js → login-KRVJVD2U.js} +3 -3
  6. package/dist/{serve-QRYOK5U4.js → serve-5GHTBELO.js} +2162 -940
  7. package/dist/{serve-QRYOK5U4.js.map → serve-5GHTBELO.js.map} +1 -1
  8. package/dist/{start-6SCOMMSU.js → start-FGCDER5G.js} +4 -4
  9. package/node_modules/loro-crdt/CHANGELOG.md +8 -0
  10. package/node_modules/loro-crdt/base64/index.js +79 -79
  11. package/node_modules/loro-crdt/base64/loro_wasm.d.ts +19 -19
  12. package/node_modules/loro-crdt/bundler/loro_wasm.d.ts +19 -19
  13. package/node_modules/loro-crdt/bundler/loro_wasm_bg.js +74 -74
  14. package/node_modules/loro-crdt/bundler/loro_wasm_bg.wasm +0 -0
  15. package/node_modules/loro-crdt/bundler/loro_wasm_bg.wasm.d.ts +3 -3
  16. package/node_modules/loro-crdt/nodejs/loro_wasm.d.ts +19 -19
  17. package/node_modules/loro-crdt/nodejs/loro_wasm.js +74 -74
  18. package/node_modules/loro-crdt/nodejs/loro_wasm_bg.wasm +0 -0
  19. package/node_modules/loro-crdt/nodejs/loro_wasm_bg.wasm.d.ts +3 -3
  20. package/node_modules/loro-crdt/package.json +1 -1
  21. package/node_modules/loro-crdt/web/loro_wasm.d.ts +22 -22
  22. package/node_modules/loro-crdt/web/loro_wasm.js +73 -73
  23. package/node_modules/loro-crdt/web/loro_wasm_bg.wasm +0 -0
  24. package/node_modules/loro-crdt/web/loro_wasm_bg.wasm.d.ts +3 -3
  25. package/package.json +2 -2
  26. /package/dist/{chunk-52T3USYD.js.map → chunk-NZIHQQRN.js.map} +0 -0
  27. /package/dist/{login-WYC24WPA.js.map → login-KRVJVD2U.js.map} +0 -0
  28. /package/dist/{start-6SCOMMSU.js.map → start-FGCDER5G.js.map} +0 -0
@@ -1,22 +1,5 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- /**
4
- * Decode the metadata of the import blob.
5
- *
6
- * This method is useful to get the following metadata of the import blob:
7
- *
8
- * - startVersionVector
9
- * - endVersionVector
10
- * - startTimestamp
11
- * - endTimestamp
12
- * - mode
13
- * - changeNum
14
- */
15
- export function decodeImportBlobMeta(blob: Uint8Array, check_checksum: boolean): ImportBlobMetadata;
16
- /**
17
- * Get the version of Loro
18
- */
19
- export function LORO_VERSION(): string;
20
3
  /**
21
4
  * Redacts sensitive content in JSON updates within the specified version range.
22
5
  *
@@ -38,13 +21,30 @@ export function LORO_VERSION(): string;
38
21
  */
39
22
  export function redactJsonUpdates(json_updates: string | JsonSchema, version_range: any): JsonSchema;
40
23
  export function decodeFrontiers(bytes: Uint8Array): { peer: PeerID, counter: number }[];
24
+ export function encodeFrontiers(frontiers: ({ peer: PeerID, counter: number })[]): Uint8Array;
25
+ /**
26
+ * Decode the metadata of the import blob.
27
+ *
28
+ * This method is useful to get the following metadata of the import blob:
29
+ *
30
+ * - startVersionVector
31
+ * - endVersionVector
32
+ * - startTimestamp
33
+ * - endTimestamp
34
+ * - mode
35
+ * - changeNum
36
+ */
37
+ export function decodeImportBlobMeta(blob: Uint8Array, check_checksum: boolean): ImportBlobMetadata;
38
+ /**
39
+ * Get the version of Loro
40
+ */
41
+ export function LORO_VERSION(): string;
41
42
  export function run(): void;
43
+ export function callPendingEvents(): void;
42
44
  /**
43
45
  * Enable debug info of Loro
44
46
  */
45
47
  export function setDebug(): void;
46
- export function encodeFrontiers(frontiers: ({ peer: PeerID, counter: number })[]): Uint8Array;
47
- export function callPendingEvents(): void;
48
48
 
49
49
  /**
50
50
  * Container types supported by loro.
@@ -4066,17 +4066,17 @@ export interface InitOutput {
4066
4066
  readonly versionvector_setLast: (a: number, b: number, c: number) => void;
4067
4067
  readonly versionvector_toJSON: (a: number) => number;
4068
4068
  readonly lorodoc_importUpdateBatch: (a: number, b: number, c: number) => void;
4069
+ readonly __wbg_loromovablelist_free: (a: number, b: number) => void;
4069
4070
  readonly lorocounter_toJSON: (a: number, b: number) => void;
4070
4071
  readonly lorocounter_value: (a: number, b: number) => void;
4071
- readonly __wbg_loromovablelist_free: (a: number, b: number) => void;
4072
4072
  readonly __wbindgen_malloc: (a: number, b: number) => number;
4073
4073
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
4074
4074
  readonly __wbindgen_exn_store: (a: number) => void;
4075
4075
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
4076
4076
  readonly __wbindgen_export_4: WebAssembly.Table;
4077
4077
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
4078
- readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7afcaee6eeda818a: (a: number, b: number, c: number) => void;
4079
- readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf2a43722f68d9ba1: (a: number, b: number) => void;
4078
+ readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h23bd7b34cf0bced7: (a: number, b: number, c: number) => void;
4079
+ readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd82b624f21a7fa96: (a: number, b: number) => void;
4080
4080
  readonly __wbindgen_start: () => void;
4081
4081
  }
4082
4082
 
@@ -255,60 +255,6 @@ function getArrayJsValueFromWasm0(ptr, len) {
255
255
  }
256
256
  return result;
257
257
  }
258
- /**
259
- * Decode the metadata of the import blob.
260
- *
261
- * This method is useful to get the following metadata of the import blob:
262
- *
263
- * - startVersionVector
264
- * - endVersionVector
265
- * - startTimestamp
266
- * - endTimestamp
267
- * - mode
268
- * - changeNum
269
- * @param {Uint8Array} blob
270
- * @param {boolean} check_checksum
271
- * @returns {ImportBlobMetadata}
272
- */
273
- export function decodeImportBlobMeta(blob, check_checksum) {
274
- try {
275
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
276
- const ptr0 = passArray8ToWasm0(blob, wasm.__wbindgen_malloc);
277
- const len0 = WASM_VECTOR_LEN;
278
- wasm.decodeImportBlobMeta(retptr, ptr0, len0, check_checksum);
279
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
280
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
281
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
282
- if (r2) {
283
- throw takeObject(r1);
284
- }
285
- return takeObject(r0);
286
- } finally {
287
- wasm.__wbindgen_add_to_stack_pointer(16);
288
- }
289
- }
290
-
291
- /**
292
- * Get the version of Loro
293
- * @returns {string}
294
- */
295
- export function LORO_VERSION() {
296
- let deferred1_0;
297
- let deferred1_1;
298
- try {
299
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
300
- wasm.LORO_VERSION(retptr);
301
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
302
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
303
- deferred1_0 = r0;
304
- deferred1_1 = r1;
305
- return getStringFromWasm0(r0, r1);
306
- } finally {
307
- wasm.__wbindgen_add_to_stack_pointer(16);
308
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
309
- }
310
- }
311
-
312
258
  /**
313
259
  * Redacts sensitive content in JSON updates within the specified version range.
314
260
  *
@@ -369,17 +315,6 @@ export function decodeFrontiers(bytes) {
369
315
  }
370
316
  }
371
317
 
372
- export function run() {
373
- wasm.run();
374
- }
375
-
376
- /**
377
- * Enable debug info of Loro
378
- */
379
- export function setDebug() {
380
- wasm.setDebug();
381
- }
382
-
383
318
  function passArrayJsValueToWasm0(array, malloc) {
384
319
  const ptr = malloc(array.length * 4, 4) >>> 0;
385
320
  const mem = getDataViewMemory0();
@@ -414,16 +349,81 @@ export function encodeFrontiers(frontiers) {
414
349
  }
415
350
  }
416
351
 
352
+ /**
353
+ * Decode the metadata of the import blob.
354
+ *
355
+ * This method is useful to get the following metadata of the import blob:
356
+ *
357
+ * - startVersionVector
358
+ * - endVersionVector
359
+ * - startTimestamp
360
+ * - endTimestamp
361
+ * - mode
362
+ * - changeNum
363
+ * @param {Uint8Array} blob
364
+ * @param {boolean} check_checksum
365
+ * @returns {ImportBlobMetadata}
366
+ */
367
+ export function decodeImportBlobMeta(blob, check_checksum) {
368
+ try {
369
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
370
+ const ptr0 = passArray8ToWasm0(blob, wasm.__wbindgen_malloc);
371
+ const len0 = WASM_VECTOR_LEN;
372
+ wasm.decodeImportBlobMeta(retptr, ptr0, len0, check_checksum);
373
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
374
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
375
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
376
+ if (r2) {
377
+ throw takeObject(r1);
378
+ }
379
+ return takeObject(r0);
380
+ } finally {
381
+ wasm.__wbindgen_add_to_stack_pointer(16);
382
+ }
383
+ }
384
+
385
+ /**
386
+ * Get the version of Loro
387
+ * @returns {string}
388
+ */
389
+ export function LORO_VERSION() {
390
+ let deferred1_0;
391
+ let deferred1_1;
392
+ try {
393
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
394
+ wasm.LORO_VERSION(retptr);
395
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
396
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
397
+ deferred1_0 = r0;
398
+ deferred1_1 = r1;
399
+ return getStringFromWasm0(r0, r1);
400
+ } finally {
401
+ wasm.__wbindgen_add_to_stack_pointer(16);
402
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
403
+ }
404
+ }
405
+
406
+ export function run() {
407
+ wasm.run();
408
+ }
409
+
417
410
  export function callPendingEvents() {
418
411
  wasm.callPendingEvents();
419
412
  }
420
413
 
414
+ /**
415
+ * Enable debug info of Loro
416
+ */
417
+ export function setDebug() {
418
+ wasm.setDebug();
419
+ }
420
+
421
421
  function __wbg_adapter_60(arg0, arg1, arg2) {
422
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7afcaee6eeda818a(arg0, arg1, addHeapObject(arg2));
422
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h23bd7b34cf0bced7(arg0, arg1, addHeapObject(arg2));
423
423
  }
424
424
 
425
425
  function __wbg_adapter_63(arg0, arg1) {
426
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf2a43722f68d9ba1(arg0, arg1);
426
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd82b624f21a7fa96(arg0, arg1);
427
427
  }
428
428
 
429
429
  const AwarenessWasmFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -6821,9 +6821,6 @@ function __wbg_get_imports() {
6821
6821
  const ret = getObject(arg0).entries();
6822
6822
  return addHeapObject(ret);
6823
6823
  };
6824
- imports.wbg.__wbg_error_0972c41c7c48e700 = function(arg0, arg1) {
6825
- console.error(getStringFromWasm0(arg0, arg1));
6826
- };
6827
6824
  imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
6828
6825
  let deferred0_0;
6829
6826
  let deferred0_1;
@@ -6835,6 +6832,9 @@ function __wbg_get_imports() {
6835
6832
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
6836
6833
  }
6837
6834
  };
6835
+ imports.wbg.__wbg_error_fd027616b8006afa = function(arg0, arg1) {
6836
+ console.error(getStringFromWasm0(arg0, arg1));
6837
+ };
6838
6838
  imports.wbg.__wbg_from_2a5d3e218e67aa85 = function(arg0) {
6839
6839
  const ret = Array.from(getObject(arg0));
6840
6840
  return addHeapObject(ret);
@@ -6933,7 +6933,7 @@ function __wbg_get_imports() {
6933
6933
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
6934
6934
  }
6935
6935
  };
6936
- imports.wbg.__wbg_log_b8c04cb043470f5b = function(arg0, arg1) {
6936
+ imports.wbg.__wbg_log_62fc5f7c674bfa10 = function(arg0, arg1) {
6937
6937
  console.log(getStringFromWasm0(arg0, arg1));
6938
6938
  };
6939
6939
  imports.wbg.__wbg_log_cb9e190acc5753fb = function(arg0, arg1) {
@@ -7046,7 +7046,7 @@ function __wbg_get_imports() {
7046
7046
  const ret = getObject(arg0).node;
7047
7047
  return addHeapObject(ret);
7048
7048
  };
7049
- imports.wbg.__wbg_now_6b1d11ce6d869dcd = function() {
7049
+ imports.wbg.__wbg_now_6727e3e536e11536 = function() {
7050
7050
  const ret = Date.now();
7051
7051
  return ret;
7052
7052
  };
@@ -7136,7 +7136,7 @@ function __wbg_get_imports() {
7136
7136
  const ret = VersionVector.__wrap(arg0);
7137
7137
  return addHeapObject(ret);
7138
7138
  };
7139
- imports.wbg.__wbg_warn_2f4fb126a7aea3cc = function(arg0, arg1) {
7139
+ imports.wbg.__wbg_warn_5cdab1103c5473b2 = function(arg0, arg1) {
7140
7140
  console.warn(getStringFromWasm0(arg0, arg1));
7141
7141
  };
7142
7142
  imports.wbg.__wbindgen_as_number = function(arg0) {
@@ -315,15 +315,15 @@ export const versionvector_setEnd: (a: number, b: number, c: number) => void;
315
315
  export const versionvector_setLast: (a: number, b: number, c: number) => void;
316
316
  export const versionvector_toJSON: (a: number) => number;
317
317
  export const lorodoc_importUpdateBatch: (a: number, b: number, c: number) => void;
318
+ export const __wbg_loromovablelist_free: (a: number, b: number) => void;
318
319
  export const lorocounter_toJSON: (a: number, b: number) => void;
319
320
  export const lorocounter_value: (a: number, b: number) => void;
320
- export const __wbg_loromovablelist_free: (a: number, b: number) => void;
321
321
  export const __wbindgen_malloc: (a: number, b: number) => number;
322
322
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
323
323
  export const __wbindgen_exn_store: (a: number) => void;
324
324
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
325
325
  export const __wbindgen_export_4: WebAssembly.Table;
326
326
  export const __wbindgen_add_to_stack_pointer: (a: number) => number;
327
- export const _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7afcaee6eeda818a: (a: number, b: number, c: number) => void;
328
- export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf2a43722f68d9ba1: (a: number, b: number) => void;
327
+ export const _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h23bd7b34cf0bced7: (a: number, b: number, c: number) => void;
328
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd82b624f21a7fa96: (a: number, b: number) => void;
329
329
  export const __wbindgen_start: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schoolai/shipyard",
3
- "version": "3.6.0",
3
+ "version": "3.7.0-rc.20260511.0",
4
4
  "description": "Shipyard daemon - Claude Agent SDK + Loro CRDT sync",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -22,7 +22,7 @@
22
22
  "@anthropic-ai/claude-agent-sdk": "0.2.120",
23
23
  "@linear/sdk": "82.1.0",
24
24
  "@modelcontextprotocol/sdk": "^1.29.0",
25
- "loro-crdt": "1.12.0",
25
+ "loro-crdt": "1.12.1",
26
26
  "node-datachannel": "^0.32.1",
27
27
  "node-pty": "^1.0.0",
28
28
  "@parcel/watcher": "^2.5.6",