@h1r-ai/croche 0.5.2 → 0.5.3
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 +26 -2
- 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 +1 -1
- package/dist/types.d.ts +6 -1
- package/docs/SKILL.md +5 -4
- package/docs/skills/croche/references/first-turn.md +1 -1
- package/docs/skills/croche-cli/SKILL.md +1 -1
- package/docs/skills/croche-config/SKILL.md +4 -1
- package/docs/skills/croche-config/references/models.md +10 -0
- package/docs/skills/croche-platforms/SKILL.md +9 -5
- package/docs/skills/croche-platforms/references/android.md +8 -6
- package/docs/skills/croche-platforms/references/ios.md +9 -7
- package/docs/skills/croche-platforms/references/react-native.md +1 -1
- package/docs/skills/croche-troubleshoot/references/recovery.md +1 -1
- 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 +1 -1
- package/src/types.ts +6 -1
package/dist/project-types.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export interface ToolDeclaration {
|
|
|
10
10
|
export type DeepPartial<T> = T extends readonly unknown[] ? T : T extends object ? {
|
|
11
11
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
12
12
|
} : T;
|
|
13
|
-
export interface AgentConfig extends Pick<AppOptions, 'instructions' | 'markerGuide' | 'maxContextTokens' | 'maxOutputTokens' | 'maxIterations' | 'crocheTools' | 'heartbeat'> {
|
|
13
|
+
export interface AgentConfig extends Pick<AppOptions, 'instructions' | 'markerGuide' | 'maxContextTokens' | 'maxOutputTokens' | 'maxIterations' | 'crocheTools' | 'heartbeat' | 'temperature'> {
|
|
14
14
|
toolGuide?: string;
|
|
15
15
|
modes?: Record<string, {
|
|
16
16
|
tools?: ToolDeclaration[];
|
package/dist/types.d.ts
CHANGED
|
@@ -60,6 +60,9 @@ export interface ToolContext {
|
|
|
60
60
|
* does not create a separate app-snapshot export.
|
|
61
61
|
*/
|
|
62
62
|
export interface AppOptions {
|
|
63
|
+
/** Agent sampling: finite 0–2; absent uses a tuned default; null omits it. Structured
|
|
64
|
+
* calls always omit temperature. Studio delivery of this field requires schema 4 / SDK 0.5.3+. */
|
|
65
|
+
temperature?: number | null;
|
|
63
66
|
instructions: string;
|
|
64
67
|
/** App-authored guidance, verbatim at the start of run_tool's App tools section. */
|
|
65
68
|
toolGuide?: string;
|
|
@@ -159,7 +162,9 @@ export interface HostOptions {
|
|
|
159
162
|
* Background upkeep (default true): after each turn and every maintenanceIntervalMs, the
|
|
160
163
|
* Runtime delivers its outbox of call reports and syncs balances, policy and the model
|
|
161
164
|
* key. Browsers also check on a visible foreground return, coalesced within the interval.
|
|
162
|
-
* Turns never wait for it. False disables the timer and foreground hook
|
|
165
|
+
* Turns never wait for it. False disables the timer and foreground hook. With
|
|
166
|
+
* CrocheRuntime.create, call maintain() yourself. With Croche.open, leave it on: that API has
|
|
167
|
+
* no maintain(), so call reports are kept and sent at the next open.
|
|
163
168
|
*/
|
|
164
169
|
backgroundSync?: boolean;
|
|
165
170
|
/**
|
package/docs/SKILL.md
CHANGED
|
@@ -65,7 +65,7 @@ Choose the matching path:
|
|
|
65
65
|
|
|
66
66
|
- **Node script or web backend:** `@h1r-ai/croche`, Node.js 22+ on macOS/Linux.
|
|
67
67
|
- **React Native:** `@h1r-ai/croche` + `@h1r-ai/croche-react-native`; same project/agent API.
|
|
68
|
-
- **Native Swift/Kotlin SDKs are published as 0.5.
|
|
68
|
+
- **Native Swift/Kotlin SDKs are published as 0.5.3**, including the shared `Croche.open` project API.
|
|
69
69
|
Read the `croche-platforms` iOS/Android reference for installation and the first turn.
|
|
70
70
|
Verify package resolution and native execution in the target app; publication is not a test pass.
|
|
71
71
|
If its exact release is unavailable, offer TypeScript/React Native as an alternative, not an
|
|
@@ -73,9 +73,10 @@ Choose the matching path:
|
|
|
73
73
|
- **Windows:** verification pending; command forms are not a support claim. Use the
|
|
74
74
|
detected shell rather than assuming Bash; `croche-cli` has PowerShell guidance.
|
|
75
75
|
|
|
76
|
-
The TypeScript SDK, React Native SDK and CLI **0.5.
|
|
77
|
-
`npm install @h1r-ai/croche` and `npm install -g @h1r-ai/croche-cli
|
|
78
|
-
|
|
76
|
+
The TypeScript SDK, React Native SDK and CLI **0.5.3 are published on npm**. Use
|
|
77
|
+
`npm install @h1r-ai/croche` and `npm install -g @h1r-ai/croche-cli` without version suffixes;
|
|
78
|
+
for React Native, install `@h1r-ai/croche` and `@h1r-ai/croche-react-native` together. Commit
|
|
79
|
+
the project lockfile to record resolved versions. Check the installed version and command help. Publication alone does not prove the user's platform or first turn.
|
|
79
80
|
TODO verify: the matching release's first-turn and login workflows. The examples use
|
|
80
81
|
`debugKey`, Studio **Debug keys**, and automatic connection setup; do not substitute a
|
|
81
82
|
source build or guessed package. Native project API availability remains a separate gate.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Node: one real reply
|
|
2
2
|
|
|
3
3
|
Use for a Node script or the first local check before adding UI. Node.js 22+ on macOS/Linux;
|
|
4
|
-
Windows verification pending. SDK 0.5.
|
|
4
|
+
Windows verification pending. SDK 0.5.3 is published on npm; a real first turn on the user’s
|
|
5
5
|
platform still needs verification. With installation permission, install the published SDK:
|
|
6
6
|
|
|
7
7
|
```sh
|
|
@@ -7,7 +7,7 @@ description: Use the Croche CLI to create an app project and private debug-key f
|
|
|
7
7
|
|
|
8
8
|
Do the permitted CLI work and explain the next user action. Node.js 22+ on macOS/Linux;
|
|
9
9
|
Windows verification pending. Check `croche --help` and installed version before relying on
|
|
10
|
-
a command. CLI 0.5.
|
|
10
|
+
a command. CLI 0.5.3 is published on npm; platform and login verification remain separate.
|
|
11
11
|
With installation permission:
|
|
12
12
|
|
|
13
13
|
```sh
|
|
@@ -100,7 +100,10 @@ croche config save croche.config.json --project PROJECT_ID
|
|
|
100
100
|
|
|
101
101
|
Preserve the full project document. If no draft exists, prepare `schema: 2` with the complete
|
|
102
102
|
app config in `config`, not the returned `null`. Use `schema: 3` when `crocheTools` sets an object for
|
|
103
|
-
`web.search` (see the `croche` skill's web-search.md).
|
|
103
|
+
`web.search` (see the `croche` skill's web-search.md). Use `schema: 4` when setting
|
|
104
|
+
`temperature`: number 0–2, absent uses a tuned default, null = omit. This field requires SDK 0.5.3+
|
|
105
|
+
and structured calls always omit it. Preserve schema 4 when later editing web tools;
|
|
106
|
+
never downlabel a document carrying temperature. On a conflict, keep the local edit, fetch the
|
|
104
107
|
latest draft separately and reconcile; do not force an empty base or blindly overwrite.
|
|
105
108
|
Saving affects debug-key apps, not production: every debug key follows drafts. Verify all tool
|
|
106
109
|
handlers, allow sync and reopen; the change applies on the **next open after sync**, never
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Allowed model IDs
|
|
2
2
|
|
|
3
|
+
## Temperature (0.5.3)
|
|
4
|
+
|
|
5
|
+
The app's `config.temperature` is a finite number 0–2. Absent uses a tuned default;
|
|
6
|
+
null omits the parameter, overriding an inherited value. Structured calls always
|
|
7
|
+
omit it, even when the app set a number; summaries keep their current behavior.
|
|
8
|
+
Use project document schema 4 for this field. Cloud delivers schema 4 only to SDK
|
|
9
|
+
0.5.3+ that report support; existing schema-2/3 documents keep their identities.
|
|
10
|
+
Local code config needs no explicit schema number. This is app configuration,
|
|
11
|
+
not a Croche setting or a host credential option.
|
|
12
|
+
|
|
3
13
|
Use an exact ID below for the `model` field in a Croche project config. These are the IDs
|
|
4
14
|
supported by the current SDK candidate; public package availability remains pending verification.
|
|
5
15
|
|
|
@@ -14,11 +14,14 @@ use the usage and limits shown in Studio, not a separate model-service setup.
|
|
|
14
14
|
| Local Node check | `@h1r-ai/croche`, durable `FileStorage`, SDK debug key | Core `croche` skill |
|
|
15
15
|
| React Native | `Croche` from `@h1r-ai/croche-react-native`, SDK-managed storage | [react-native.md](references/react-native.md) |
|
|
16
16
|
| Web (local and production) | `Croche` on the app's Node backend, server key stays there | [web-backend.md](references/web-backend.md) |
|
|
17
|
-
| iOS · Swift | SPM,
|
|
18
|
-
| Android · Kotlin | Maven,
|
|
17
|
+
| iOS · Swift | SPM, **Up to Next Minor Version** from **0.5.2**, `Croche.open` | [ios.md](references/ios.md) |
|
|
18
|
+
| Android · Kotlin | Maven, **0.5.+**, `Croche.open` | [android.md](references/android.md) |
|
|
19
|
+
|
|
20
|
+
Install npm packages without a version suffix; the project lockfile records resolved versions.
|
|
21
|
+
Minor releases in 0.x may break compatibility, so the native ranges above stay within 0.5.x.
|
|
19
22
|
|
|
20
23
|
Node.js 22+ on macOS/Linux; Windows verification pending. PowerShell syntax does not establish
|
|
21
|
-
Windows support. SDK 0.5.
|
|
24
|
+
Windows support. SDK 0.5.3 is published on npm; verify the installed version and platform behavior.
|
|
22
25
|
Node and RN do not automatically load the CLI-created `.env`: Node needs `--env-file` or an
|
|
23
26
|
existing dotenv loader, web secrets stay server-side only, and RN needs debug-only build config
|
|
24
27
|
with no secret in release artifacts. Read the matching reference above before the first turn.
|
|
@@ -36,11 +39,12 @@ Use `croche-config` for the complete selection and next-open rules.
|
|
|
36
39
|
|
|
37
40
|
## Native gate
|
|
38
41
|
|
|
39
|
-
**Native Swift and Kotlin SDKs are published as 0.5.
|
|
42
|
+
**Native Swift and Kotlin SDKs are published as 0.5.3**, including the shared
|
|
40
43
|
**project/agent `Croche.open` API**. Do not describe published SDKs as nonexistent.
|
|
41
44
|
Installation and `Croche.open` first-turn examples are in [ios.md](references/ios.md)
|
|
42
45
|
and [android.md](references/android.md). For a native request, read the matching reference,
|
|
43
|
-
prepare the integration
|
|
46
|
+
prepare the integration using the declared 0.5.x range and record its resolved version.
|
|
47
|
+
Verify simulator/emulator first turn
|
|
44
48
|
and release credential exclusion in the target app. Do not substitute the native
|
|
45
49
|
0.5.0 single-agent API or claim an example was run without running it. Use git-ignored `.xcconfig` (iOS) or
|
|
46
50
|
`local.properties` (Android), wired only into Debug and excluded from Release at build time.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# Android · Kotlin project API
|
|
2
2
|
|
|
3
|
-
Use this guide for a native Android app, not the single-agent API. It targets **0.5.
|
|
3
|
+
Use this guide for a native Android app, not the single-agent API. It targets **0.5.3** and
|
|
4
4
|
`Croche.open` → `agent()` → `request()`.
|
|
5
5
|
|
|
6
|
-
> Version 0.5.
|
|
6
|
+
> Version 0.5.3 is published on Maven. Verify Gradle integration, emulator first turn and
|
|
7
7
|
> release credential exclusion in the target app; package publication is not proof of those checks.
|
|
8
|
-
> If the
|
|
8
|
+
> If the package cannot be resolved within the declared range, report that blocker; do not downgrade the API.
|
|
9
9
|
|
|
10
10
|
## Install from Maven
|
|
11
11
|
|
|
@@ -21,16 +21,17 @@ dependencyResolutionManagement {
|
|
|
21
21
|
}
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
Add the
|
|
24
|
+
Add the dependency range in `app/build.gradle.kts`:
|
|
25
25
|
|
|
26
26
|
```kotlin
|
|
27
27
|
dependencies {
|
|
28
|
-
implementation("ai.croche:croche-android:0.5
|
|
28
|
+
implementation("ai.croche:croche-android:0.5.+")
|
|
29
29
|
}
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
The distribution supplies the native binary and dependency metadata. No manual Rust/NDK build
|
|
33
33
|
or copied AAR is needed for this install path. Preserve the app's existing Android/Kotlin setup.
|
|
34
|
+
Minor releases in 0.x may break compatibility, so `0.5.+` stays within 0.5.x.
|
|
34
35
|
Windows verification is pending; these Gradle examples are not a Windows support claim.
|
|
35
36
|
|
|
36
37
|
## One human step; the agent sets up the project
|
|
@@ -176,7 +177,8 @@ Choose a model using [Models](https://docs.croche.ai/models.md).
|
|
|
176
177
|
|
|
177
178
|
## Verify before shipping
|
|
178
179
|
|
|
179
|
-
- Resolve
|
|
180
|
+
- Resolve the latest available 0.5.x patch, record the resolved version, build Debug and run on the
|
|
181
|
+
selected emulator. Confirm a nonempty,
|
|
180
182
|
completed reply; report the real error if it fails. In Studio, inspect **Monitoring → Logs**
|
|
181
183
|
with the development filter. Never paste credentials or private app data into the report.
|
|
182
184
|
- Inspect a clean Release APK/AAB without printing secrets: no debug key in classes/resources,
|
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
# iOS · Swift project API
|
|
2
2
|
|
|
3
|
-
Use this guide for a native iOS app, not the single-agent API. It targets **0.5.
|
|
3
|
+
Use this guide for a native iOS app, not the single-agent API. It targets **0.5.3** and
|
|
4
4
|
`Croche.open` → `agent()` → `request()`.
|
|
5
5
|
|
|
6
|
-
> Version 0.5.
|
|
6
|
+
> Version 0.5.3 is published through SPM. Verify Xcode integration, simulator first turn and
|
|
7
7
|
> release credential exclusion in the target app; package publication is not proof of those checks.
|
|
8
|
-
> If the
|
|
8
|
+
> If the package cannot be resolved within the declared range, report that blocker; do not downgrade the API.
|
|
9
9
|
|
|
10
10
|
## Install with Swift Package Manager
|
|
11
11
|
|
|
12
12
|
Requires iOS 15+ and a Swift 6-capable Xcode. In Xcode, **File → Add Package Dependencies…**:
|
|
13
13
|
|
|
14
14
|
- URL: `https://github.com/H1R-AI/croche-swift`
|
|
15
|
-
- Dependency rule: **
|
|
15
|
+
- Dependency rule: **Up to Next Minor Version**, from **0.5.2**
|
|
16
16
|
- Add the **CrocheRuntime** product to your app target; import `CrocheRuntime`.
|
|
17
17
|
|
|
18
18
|
For a Swift package target, add the dependency and product to its existing manifest:
|
|
19
19
|
|
|
20
20
|
```swift
|
|
21
|
-
.package(url: "https://github.com/H1R-AI/croche-swift",
|
|
21
|
+
.package(url: "https://github.com/H1R-AI/croche-swift", .upToNextMinor(from: "0.5.2"))
|
|
22
22
|
// In the app target's dependencies:
|
|
23
23
|
.product(name: "CrocheRuntime", package: "croche-swift")
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
The distribution supplies the native binary; an app developer does not need a Rust toolchain.
|
|
27
|
-
Do not replace the app's existing package dependencies.
|
|
27
|
+
Do not replace the app's existing package dependencies. Minor releases in 0.x may break
|
|
28
|
+
compatibility, so this range accepts 0.5.x patches from 0.5.2 and stops before 0.6.0.
|
|
28
29
|
|
|
29
30
|
## One human step; the agent sets up the project
|
|
30
31
|
|
|
@@ -156,7 +157,8 @@ Choose a model using [Models](https://docs.croche.ai/models.md).
|
|
|
156
157
|
|
|
157
158
|
## Verify before shipping
|
|
158
159
|
|
|
159
|
-
- Resolve
|
|
160
|
+
- Resolve the configured 0.5.x range, record the resolved version, build Debug and run on the
|
|
161
|
+
selected simulator. Confirm a nonempty,
|
|
160
162
|
completed reply; report the real error if it fails. In Studio, inspect **Monitoring → Logs**
|
|
161
163
|
with the development filter. Never paste credentials or private app data into the report.
|
|
162
164
|
- Inspect a clean Release archive without printing secrets: no debug key in the binary/plist,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# React Native
|
|
2
2
|
|
|
3
3
|
Requirements: React Native 0.76+ with New Architecture, iOS 15.1+ / Android API 26+.
|
|
4
|
-
Version 0.5.
|
|
4
|
+
Version 0.5.3 packages are published on npm; use the app's existing package manager.
|
|
5
5
|
With permission:
|
|
6
6
|
|
|
7
7
|
```sh
|
|
@@ -28,4 +28,4 @@ agent without deleting the whole project directory or another user's data.
|
|
|
28
28
|
|
|
29
29
|
Do not apply this recipe blindly to custom single-agent storage or an instance-specific case;
|
|
30
30
|
confirm the installed SDK's scoped deletion API first. A busy store must be closed, not forcibly
|
|
31
|
-
erased. Native 0.5.
|
|
31
|
+
erased. Native 0.5.3 recovery requires its reviewed API; do not translate this snippet by guesswork.
|
package/package.json
CHANGED
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_6(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_2af639ea7c47fa89 = 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_dd2690b270c25bed = 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_358fa26e354a964c = 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_9d0f5651e42e694a = 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_b1d5c388a03a92b4 = 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_8068502494b93816 = 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_1cab0de66f9f1716 = 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_a5b71afcbc195bcc = 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_8ade2ea00354679d = 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_3fa0855af69906b4 = 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_d5419c25f721b310 = 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_c8e87e66ad631344 = 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_ecca33e83b96a5ba = function(arg0, arg1) {
|
|
1397
1397
|
const ret = arg0.utcOffsetMinutes(arg1);
|
|
1398
1398
|
return ret;
|
|
1399
1399
|
};
|
|
1400
|
-
imports.wbg.
|
|
1400
|
+
imports.wbg.__wbg_wake_259f7faf1f3d2cba = 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_9a516bf7cb787763 = 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_a61538f7cb11ab8c = 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_6);
|
|
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.3';
|
|
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 } }
|