@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/src/project-types.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { AppOptions, HostOptions, JsonValue, RuntimeMemoryOptions, RuntimeU
|
|
|
5
5
|
/** Replaceable declarations, never handler implementations. */
|
|
6
6
|
export interface ToolDeclaration { name: string; summary: string; commands: RuntimeCommand[] }
|
|
7
7
|
export type DeepPartial<T> = T extends readonly unknown[] ? T : T extends object ? { [K in keyof T]?: DeepPartial<T[K]> } : T;
|
|
8
|
-
export interface AgentConfig extends Pick<AppOptions, 'instructions' | 'markerGuide' | 'maxContextTokens' | 'maxOutputTokens' | 'maxIterations' | 'crocheTools' | 'heartbeat'> {
|
|
8
|
+
export interface AgentConfig extends Pick<AppOptions, 'instructions' | 'markerGuide' | 'maxContextTokens' | 'maxOutputTokens' | 'maxIterations' | 'crocheTools' | 'heartbeat' | 'temperature'> {
|
|
9
9
|
toolGuide?: string;
|
|
10
10
|
modes?: Record<string, {tools?: ToolDeclaration[]; toolGuide?: string}>;
|
|
11
11
|
tools?: ToolDeclaration[];
|
package/src/types.ts
CHANGED
|
@@ -59,6 +59,9 @@ export interface ToolContext {
|
|
|
59
59
|
* does not create a separate app-snapshot export.
|
|
60
60
|
*/
|
|
61
61
|
export interface AppOptions {
|
|
62
|
+
/** Agent sampling: finite 0–2; absent uses a tuned default; null omits it. Structured
|
|
63
|
+
* calls always omit temperature. Studio delivery of this field requires schema 4 / SDK 0.5.3+. */
|
|
64
|
+
temperature?: number | null;
|
|
62
65
|
instructions: string;
|
|
63
66
|
/** App-authored guidance, verbatim at the start of run_tool's App tools section. */
|
|
64
67
|
toolGuide?: string;
|
|
@@ -157,7 +160,9 @@ export interface HostOptions {
|
|
|
157
160
|
* Background upkeep (default true): after each turn and every maintenanceIntervalMs, the
|
|
158
161
|
* Runtime delivers its outbox of call reports and syncs balances, policy and the model
|
|
159
162
|
* key. Browsers also check on a visible foreground return, coalesced within the interval.
|
|
160
|
-
* Turns never wait for it. False disables the timer and foreground hook
|
|
163
|
+
* Turns never wait for it. False disables the timer and foreground hook. With
|
|
164
|
+
* CrocheRuntime.create, call maintain() yourself. With Croche.open, leave it on: that API has
|
|
165
|
+
* no maintain(), so call reports are kept and sent at the next open.
|
|
161
166
|
*/
|
|
162
167
|
backgroundSync?: boolean;
|
|
163
168
|
/**
|