@h1r-ai/croche 0.5.4 → 0.5.5

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
@@ -33,7 +33,7 @@ and receives a report of every call in the background. **A Cloud outage does not
33
33
  The shared Rust Core owns conversations, command routing, receipts, spending and
34
34
  Cloud synchronization. This package embeds its WebAssembly build for browsers,
35
35
  Node, and WebViews. Native iOS (Swift) and Android (Kotlin) SDKs are published as
36
- 0.5.4, with the same `Croche.open` API.
36
+ 0.5.5, with the same `Croche.open` API.
37
37
  For React Native, install `@h1r-ai/croche-react-native` beside this package; it carries
38
38
  the native Core ([React Native](#react-native)).
39
39
  Your app can choose the model with `model` in the `config` passed to `Croche.open`; if it
@@ -65,7 +65,7 @@ WASM Core, with no runtime npm dependencies. Consuming apps need no Rust compile
65
65
  or source checkout. Rust is needed only to rebuild the Core from source. A strict
66
66
  browser CSP must include `script-src 'self' 'wasm-unsafe-eval'`; JavaScript `eval`
67
67
  and `new Function` remain unnecessary.
68
- Version 0.5.4 is published on the public npm registry as `@h1r-ai/croche`.
68
+ Version 0.5.5 is published on the public npm registry as `@h1r-ai/croche`.
69
69
 
70
70
  ## Projects and agents
71
71
 
@@ -157,7 +157,7 @@ function _assertClass(instance, klass) {
157
157
  throw new Error(`expected instance of ${klass.name}`);
158
158
  }
159
159
  }
160
- function __wbg_adapter_6(arg0, arg1, arg2) {
160
+ function __wbg_adapter_8(arg0, arg1, arg2) {
161
161
  wasm.closure216_externref_shim(arg0, arg1, arg2);
162
162
  }
163
163
  function __wbg_adapter_135(arg0, arg1, arg2, arg3) {
@@ -1213,7 +1213,7 @@ function __wbg_get_imports() {
1213
1213
  return ret;
1214
1214
  }, arguments);
1215
1215
  };
1216
- imports.wbg.__wbg_http_e9b575fe3d265a7a = function (arg0, arg1, arg2, arg3) {
1216
+ imports.wbg.__wbg_http_0ae0fcfc317bf166 = function (arg0, arg1, arg2, arg3) {
1217
1217
  const ret = arg0.http(arg1, WasmSink.__wrap(arg2), WasmCancel.__wrap(arg3));
1218
1218
  return ret;
1219
1219
  };
@@ -1236,7 +1236,7 @@ function __wbg_get_imports() {
1236
1236
  const ret = arg0.length;
1237
1237
  return ret;
1238
1238
  };
1239
- imports.wbg.__wbg_lock_e0eaba7753ddb53e = function (arg0, arg1, arg2) {
1239
+ imports.wbg.__wbg_lock_d8b2d93e8e4dbedb = function (arg0, arg1, arg2) {
1240
1240
  const ret = arg0.lock(getStringFromWasm0(arg1, arg2));
1241
1241
  return ret;
1242
1242
  };
@@ -1272,7 +1272,7 @@ function __wbg_get_imports() {
1272
1272
  const ret = new Function(getStringFromWasm0(arg0, arg1));
1273
1273
  return ret;
1274
1274
  };
1275
- imports.wbg.__wbg_nowMs_1ca5891a40094dae = function (arg0) {
1275
+ imports.wbg.__wbg_nowMs_347154ac53d09f5f = function (arg0) {
1276
1276
  const ret = arg0.nowMs();
1277
1277
  return ret;
1278
1278
  };
@@ -1294,26 +1294,26 @@ function __wbg_get_imports() {
1294
1294
  const ret = arg0.queueMicrotask;
1295
1295
  return ret;
1296
1296
  };
1297
- imports.wbg.__wbg_random_1e43f80205bcda1a = function (arg0, arg1) {
1297
+ imports.wbg.__wbg_random_a551b19d3d5dd99a = function (arg0, arg1) {
1298
1298
  const ret = arg1.random();
1299
1299
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1300
1300
  const len1 = WASM_VECTOR_LEN;
1301
1301
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1302
1302
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1303
1303
  };
1304
- imports.wbg.__wbg_readSecret_54824834e3c0cb53 = function (arg0, arg1, arg2) {
1304
+ imports.wbg.__wbg_readSecret_1b3cc2793ffc53a8 = function (arg0, arg1, arg2) {
1305
1305
  const ret = arg0.readSecret(getStringFromWasm0(arg1, arg2));
1306
1306
  return ret;
1307
1307
  };
1308
- imports.wbg.__wbg_read_9c800ddb8c809500 = function (arg0, arg1, arg2) {
1308
+ imports.wbg.__wbg_read_0e11fbfd1437442d = function (arg0, arg1, arg2) {
1309
1309
  const ret = arg0.read(getStringFromWasm0(arg1, arg2));
1310
1310
  return ret;
1311
1311
  };
1312
- imports.wbg.__wbg_removeSecret_9250e3320cd1ce02 = function (arg0, arg1, arg2) {
1312
+ imports.wbg.__wbg_removeSecret_02cb803d87b6b01a = function (arg0, arg1, arg2) {
1313
1313
  const ret = arg0.removeSecret(getStringFromWasm0(arg1, arg2));
1314
1314
  return ret;
1315
1315
  };
1316
- imports.wbg.__wbg_remove_ab1cab75d56111c0 = function (arg0, arg1, arg2) {
1316
+ imports.wbg.__wbg_remove_ff9817388427e99d = function (arg0, arg1, arg2) {
1317
1317
  const ret = arg0.remove(getStringFromWasm0(arg1, arg2));
1318
1318
  return ret;
1319
1319
  };
@@ -1327,7 +1327,7 @@ function __wbg_get_imports() {
1327
1327
  return ret;
1328
1328
  }, arguments);
1329
1329
  };
1330
- imports.wbg.__wbg_sleep_e48af34a7ce11555 = function (arg0, arg1) {
1330
+ imports.wbg.__wbg_sleep_b62cf103dff85d47 = function (arg0, arg1) {
1331
1331
  const ret = arg0.sleep(arg1);
1332
1332
  return ret;
1333
1333
  };
@@ -1347,7 +1347,7 @@ function __wbg_get_imports() {
1347
1347
  const ret = typeof window === 'undefined' ? null : window;
1348
1348
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1349
1349
  };
1350
- imports.wbg.__wbg_storeIdentity_6d65d77997c4e424 = function (arg0, arg1) {
1350
+ imports.wbg.__wbg_storeIdentity_671b20e35ed46a3f = function (arg0, arg1) {
1351
1351
  const ret = arg1.storeIdentity();
1352
1352
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1353
1353
  const len1 = WASM_VECTOR_LEN;
@@ -1368,7 +1368,7 @@ function __wbg_get_imports() {
1368
1368
  const ret = arg0.then(arg1);
1369
1369
  return ret;
1370
1370
  };
1371
- imports.wbg.__wbg_tool_c59f7574a5578ba1 = function (arg0, arg1, arg2, arg3) {
1371
+ imports.wbg.__wbg_tool_2282738d031c879d = function (arg0, arg1, arg2, arg3) {
1372
1372
  let deferred0_0;
1373
1373
  let deferred0_1;
1374
1374
  try {
@@ -1381,15 +1381,15 @@ function __wbg_get_imports() {
1381
1381
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1382
1382
  }
1383
1383
  };
1384
- imports.wbg.__wbg_unlock_679023430ed0a7ca = function (arg0, arg1, arg2) {
1384
+ imports.wbg.__wbg_unlock_e37306332974be1e = function (arg0, arg1, arg2) {
1385
1385
  const ret = arg0.unlock(getStringFromWasm0(arg1, arg2));
1386
1386
  return ret;
1387
1387
  };
1388
- imports.wbg.__wbg_utcOffsetMinutes_0ba1ff47635aea27 = function (arg0, arg1) {
1388
+ imports.wbg.__wbg_utcOffsetMinutes_0d97c0b98316556d = function (arg0, arg1) {
1389
1389
  const ret = arg0.utcOffsetMinutes(arg1);
1390
1390
  return ret;
1391
1391
  };
1392
- imports.wbg.__wbg_wake_f83d318227a0c2ab = function (arg0, arg1) {
1392
+ imports.wbg.__wbg_wake_f4f21f17647c711b = function (arg0, arg1) {
1393
1393
  arg0.wake(arg1);
1394
1394
  };
1395
1395
  imports.wbg.__wbg_wasmproject_new = function (arg0) {
@@ -1428,7 +1428,7 @@ function __wbg_get_imports() {
1428
1428
  imports.wbg.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function (arg0, arg1) {
1429
1429
  throw new Error(getStringFromWasm0(arg0, arg1));
1430
1430
  };
1431
- imports.wbg.__wbg_writeSecret_f07aee1666487fc5 = function (arg0, arg1, arg2, arg3, arg4) {
1431
+ imports.wbg.__wbg_writeSecret_1227ccc16863f7c0 = function (arg0, arg1, arg2, arg3, arg4) {
1432
1432
  let deferred0_0;
1433
1433
  let deferred0_1;
1434
1434
  try {
@@ -1441,7 +1441,7 @@ function __wbg_get_imports() {
1441
1441
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1442
1442
  }
1443
1443
  };
1444
- imports.wbg.__wbg_write_12da9c010f1662f3 = function (arg0, arg1, arg2, arg3, arg4) {
1444
+ imports.wbg.__wbg_write_a466c5779132150a = function (arg0, arg1, arg2, arg3, arg4) {
1445
1445
  let deferred0_0;
1446
1446
  let deferred0_1;
1447
1447
  try {
@@ -1461,7 +1461,7 @@ function __wbg_get_imports() {
1461
1461
  };
1462
1462
  imports.wbg.__wbindgen_cast_9bf690dfafdef3b5 = function (arg0, arg1) {
1463
1463
  // Cast intrinsic for `Closure(Closure { dtor_idx: 215, function: Function { arguments: [Externref], shim_idx: 216, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1464
- const ret = makeMutClosure(arg0, arg1, 215, __wbg_adapter_6);
1464
+ const ret = makeMutClosure(arg0, arg1, 215, __wbg_adapter_8);
1465
1465
  return ret;
1466
1466
  };
1467
1467
  imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function (arg0) {
@@ -3,7 +3,7 @@ import type { CoreRuntimeOptions, RuntimeTool, RuntimeToolMetadata } from './com
3
3
  import type { OpenOptions as ProjectOpenOptions } from './project-types.js';
4
4
  import { type BudgetAdjustment, type BudgetSnapshot, type DeferredWrite, type DisplayMessage, type RuntimeDebugObserverOptions, type RuntimeStatus, type SendInput, type SendOptions, type TurnResult, type RuntimeMemoryApi, type RuntimeWiki, type UserWikiResult, type WikiDocument } from './types.js';
5
5
  export declare const DEFAULT_MODEL = "deepseek/deepseek-v4.1-flash";
6
- export declare const SDK_VERSION = "0.5.4";
6
+ export declare const SDK_VERSION = "0.5.5";
7
7
  /** What one round of background upkeep did. */
8
8
  export interface MaintenanceResult {
9
9
  ran: boolean;
@@ -4,7 +4,7 @@ import { browserCodec, isToolResult, preparable, prepareImage } from './images.j
4
4
  import { CrocheError, } from './types.js';
5
5
  // Mirrors the protocol default; kept standalone so published SDK imports need no workspace.
6
6
  export const DEFAULT_MODEL = 'deepseek/deepseek-v4.1-flash';
7
- export const SDK_VERSION = '0.5.4';
7
+ export const SDK_VERSION = '0.5.5';
8
8
  const DEFAULT_MAINTENANCE_INTERVAL_MS = 60_000;
9
9
  const localOwners = new WeakMap();
10
10
  /** The longest delay a JS timer holds (2^31 - 1 ms, about 24.8 days); a longer one fires at once.