@h1r-ai/croche 0.5.0 → 0.5.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/README.md +21 -13
- package/dist/core-bindgen.js +18 -18
- package/dist/core-runtime.d.ts +1 -1
- package/dist/core-runtime.js +1 -1
- package/dist/core-wasm-bytes.d.ts +3 -3
- package/dist/core-wasm-bytes.js +3 -3
- package/dist/project-types.d.ts +2 -2
- package/dist/types.d.ts +5 -7
- package/docs/CODING-AGENT.md +11 -7
- package/docs/SKILL.md +307 -265
- package/docs/skills/croche/agents/openai.yaml +4 -0
- package/docs/skills/croche/references/agents.md +78 -0
- package/docs/skills/croche/references/first-turn.md +74 -0
- package/docs/skills/croche/references/tools.md +43 -0
- package/docs/skills/croche-cli/SKILL.md +158 -0
- package/docs/skills/croche-cli/agents/openai.yaml +4 -0
- package/docs/skills/croche-cli/references/powershell.md +47 -0
- package/docs/skills/croche-config/SKILL.md +152 -0
- package/docs/skills/croche-config/agents/openai.yaml +4 -0
- package/docs/skills/croche-config/references/models.md +12 -0
- package/docs/skills/croche-platforms/SKILL.md +55 -0
- package/docs/skills/croche-platforms/agents/openai.yaml +4 -0
- package/docs/skills/croche-platforms/references/android.md +185 -0
- package/docs/skills/croche-platforms/references/ios.md +165 -0
- package/docs/skills/croche-platforms/references/react-native.md +50 -0
- package/docs/skills/croche-platforms/references/web-backend.md +58 -0
- package/docs/skills/croche-troubleshoot/SKILL.md +72 -0
- package/docs/skills/croche-troubleshoot/agents/openai.yaml +4 -0
- package/docs/skills/croche-troubleshoot/references/recovery.md +31 -0
- package/package.json +1 -1
- package/src/core-bindgen.ts +18 -18
- package/src/core-runtime.ts +1 -1
- package/src/core-wasm-bytes.ts +3 -3
- package/src/project-types.ts +2 -2
- package/src/types.ts +5 -7
package/src/core-bindgen.ts
CHANGED
|
@@ -183,7 +183,7 @@ function _assertClass(instance, klass) {
|
|
|
183
183
|
throw new Error(`expected instance of ${klass.name}`);
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function __wbg_adapter_10(arg0, arg1, arg2) {
|
|
187
187
|
wasm.closure216_externref_shim(arg0, arg1, arg2);
|
|
188
188
|
}
|
|
189
189
|
|
|
@@ -1229,7 +1229,7 @@ function __wbg_get_imports() {
|
|
|
1229
1229
|
const ret = Reflect.get(arg0, arg1);
|
|
1230
1230
|
return ret;
|
|
1231
1231
|
}, arguments) };
|
|
1232
|
-
imports.wbg.
|
|
1232
|
+
imports.wbg.__wbg_http_36f5cf45b54f9a8a = function(arg0, arg1, arg2, arg3) {
|
|
1233
1233
|
const ret = arg0.http(arg1, WasmSink.__wrap(arg2), WasmCancel.__wrap(arg3));
|
|
1234
1234
|
return ret;
|
|
1235
1235
|
};
|
|
@@ -1251,7 +1251,7 @@ function __wbg_get_imports() {
|
|
|
1251
1251
|
const ret = arg0.length;
|
|
1252
1252
|
return ret;
|
|
1253
1253
|
};
|
|
1254
|
-
imports.wbg.
|
|
1254
|
+
imports.wbg.__wbg_lock_ffb73b1af2e996ca = function(arg0, arg1, arg2) {
|
|
1255
1255
|
const ret = arg0.lock(getStringFromWasm0(arg1, arg2));
|
|
1256
1256
|
return ret;
|
|
1257
1257
|
};
|
|
@@ -1285,7 +1285,7 @@ function __wbg_get_imports() {
|
|
|
1285
1285
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1286
1286
|
return ret;
|
|
1287
1287
|
};
|
|
1288
|
-
imports.wbg.
|
|
1288
|
+
imports.wbg.__wbg_nowMs_9aa4f6c3c6b72511 = function(arg0) {
|
|
1289
1289
|
const ret = arg0.nowMs();
|
|
1290
1290
|
return ret;
|
|
1291
1291
|
};
|
|
@@ -1307,26 +1307,26 @@ function __wbg_get_imports() {
|
|
|
1307
1307
|
const ret = arg0.queueMicrotask;
|
|
1308
1308
|
return ret;
|
|
1309
1309
|
};
|
|
1310
|
-
imports.wbg.
|
|
1310
|
+
imports.wbg.__wbg_random_df7fdc2e3d8ae9d8 = function(arg0, arg1) {
|
|
1311
1311
|
const ret = arg1.random();
|
|
1312
1312
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1313
1313
|
const len1 = WASM_VECTOR_LEN;
|
|
1314
1314
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1315
1315
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1316
1316
|
};
|
|
1317
|
-
imports.wbg.
|
|
1317
|
+
imports.wbg.__wbg_readSecret_743a2ddb0168daf4 = function(arg0, arg1, arg2) {
|
|
1318
1318
|
const ret = arg0.readSecret(getStringFromWasm0(arg1, arg2));
|
|
1319
1319
|
return ret;
|
|
1320
1320
|
};
|
|
1321
|
-
imports.wbg.
|
|
1321
|
+
imports.wbg.__wbg_read_132d87080ce45fd5 = function(arg0, arg1, arg2) {
|
|
1322
1322
|
const ret = arg0.read(getStringFromWasm0(arg1, arg2));
|
|
1323
1323
|
return ret;
|
|
1324
1324
|
};
|
|
1325
|
-
imports.wbg.
|
|
1325
|
+
imports.wbg.__wbg_removeSecret_59aad54cf2b3f780 = function(arg0, arg1, arg2) {
|
|
1326
1326
|
const ret = arg0.removeSecret(getStringFromWasm0(arg1, arg2));
|
|
1327
1327
|
return ret;
|
|
1328
1328
|
};
|
|
1329
|
-
imports.wbg.
|
|
1329
|
+
imports.wbg.__wbg_remove_09411f236af05924 = function(arg0, arg1, arg2) {
|
|
1330
1330
|
const ret = arg0.remove(getStringFromWasm0(arg1, arg2));
|
|
1331
1331
|
return ret;
|
|
1332
1332
|
};
|
|
@@ -1338,7 +1338,7 @@ function __wbg_get_imports() {
|
|
|
1338
1338
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1339
1339
|
return ret;
|
|
1340
1340
|
}, arguments) };
|
|
1341
|
-
imports.wbg.
|
|
1341
|
+
imports.wbg.__wbg_sleep_9b720f4c69a09fe3 = function(arg0, arg1) {
|
|
1342
1342
|
const ret = arg0.sleep(arg1);
|
|
1343
1343
|
return ret;
|
|
1344
1344
|
};
|
|
@@ -1358,7 +1358,7 @@ function __wbg_get_imports() {
|
|
|
1358
1358
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1359
1359
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1360
1360
|
};
|
|
1361
|
-
imports.wbg.
|
|
1361
|
+
imports.wbg.__wbg_storeIdentity_ca548355c80bd820 = function(arg0, arg1) {
|
|
1362
1362
|
const ret = arg1.storeIdentity();
|
|
1363
1363
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1364
1364
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -1377,7 +1377,7 @@ function __wbg_get_imports() {
|
|
|
1377
1377
|
const ret = arg0.then(arg1);
|
|
1378
1378
|
return ret;
|
|
1379
1379
|
};
|
|
1380
|
-
imports.wbg.
|
|
1380
|
+
imports.wbg.__wbg_tool_e17f330fb8f92f1f = function(arg0, arg1, arg2, arg3) {
|
|
1381
1381
|
let deferred0_0;
|
|
1382
1382
|
let deferred0_1;
|
|
1383
1383
|
try {
|
|
@@ -1389,15 +1389,15 @@ function __wbg_get_imports() {
|
|
|
1389
1389
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1390
1390
|
}
|
|
1391
1391
|
};
|
|
1392
|
-
imports.wbg.
|
|
1392
|
+
imports.wbg.__wbg_unlock_9cd7d86380527acf = function(arg0, arg1, arg2) {
|
|
1393
1393
|
const ret = arg0.unlock(getStringFromWasm0(arg1, arg2));
|
|
1394
1394
|
return ret;
|
|
1395
1395
|
};
|
|
1396
|
-
imports.wbg.
|
|
1396
|
+
imports.wbg.__wbg_utcOffsetMinutes_e75cc28f0dd11b37 = function(arg0, arg1) {
|
|
1397
1397
|
const ret = arg0.utcOffsetMinutes(arg1);
|
|
1398
1398
|
return ret;
|
|
1399
1399
|
};
|
|
1400
|
-
imports.wbg.
|
|
1400
|
+
imports.wbg.__wbg_wake_d81543b22f9a2d0d = function(arg0, arg1) {
|
|
1401
1401
|
arg0.wake(arg1);
|
|
1402
1402
|
};
|
|
1403
1403
|
imports.wbg.__wbg_wasmproject_new = function(arg0) {
|
|
@@ -1436,7 +1436,7 @@ function __wbg_get_imports() {
|
|
|
1436
1436
|
imports.wbg.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) {
|
|
1437
1437
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1438
1438
|
};
|
|
1439
|
-
imports.wbg.
|
|
1439
|
+
imports.wbg.__wbg_writeSecret_680e5076c2c6ce22 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1440
1440
|
let deferred0_0;
|
|
1441
1441
|
let deferred0_1;
|
|
1442
1442
|
try {
|
|
@@ -1448,7 +1448,7 @@ function __wbg_get_imports() {
|
|
|
1448
1448
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1449
1449
|
}
|
|
1450
1450
|
};
|
|
1451
|
-
imports.wbg.
|
|
1451
|
+
imports.wbg.__wbg_write_41d57f1d7256755f = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1452
1452
|
let deferred0_0;
|
|
1453
1453
|
let deferred0_1;
|
|
1454
1454
|
try {
|
|
@@ -1467,7 +1467,7 @@ function __wbg_get_imports() {
|
|
|
1467
1467
|
};
|
|
1468
1468
|
imports.wbg.__wbindgen_cast_9bf690dfafdef3b5 = function(arg0, arg1) {
|
|
1469
1469
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 215, function: Function { arguments: [Externref], shim_idx: 216, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1470
|
-
const ret = makeMutClosure(arg0, arg1, 215,
|
|
1470
|
+
const ret = makeMutClosure(arg0, arg1, 215, __wbg_adapter_10);
|
|
1471
1471
|
return ret;
|
|
1472
1472
|
};
|
|
1473
1473
|
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
package/src/core-runtime.ts
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
|
|
15
15
|
// Mirrors the protocol default; kept standalone so published SDK imports need no workspace.
|
|
16
16
|
export const DEFAULT_MODEL = 'deepseek/deepseek-v4.1-flash';
|
|
17
|
-
export const SDK_VERSION = '0.5.
|
|
17
|
+
export const SDK_VERSION = '0.5.1';
|
|
18
18
|
const DEFAULT_MAINTENANCE_INTERVAL_MS = 60_000;
|
|
19
19
|
/** What one round of background upkeep did. */
|
|
20
20
|
export interface MaintenanceResult { ran: boolean; ok?: boolean; preempted?: boolean; pendingEvents?: number; error?: { code: string; message: string } }
|