@runtypelabs/persona 3.33.0 → 3.34.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 +15 -10
- package/dist/codegen.cjs +1 -1
- package/dist/codegen.js +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.global.js +191 -190
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/launcher.global.js +117 -117
- package/dist/launcher.global.js.map +1 -1
- package/dist/smart-dom-reader.d.cts +32 -0
- package/dist/smart-dom-reader.d.ts +32 -0
- package/dist/theme-editor.cjs +13 -13
- package/dist/theme-editor.d.cts +32 -0
- package/dist/theme-editor.d.ts +32 -0
- package/dist/theme-editor.js +14 -14
- package/package.json +3 -3
- package/src/client.test.ts +55 -0
- package/src/client.ts +10 -1
- package/src/codegen.test.ts +0 -14
- package/src/runtime/host-layout.test.ts +51 -9
- package/src/runtime/host-layout.ts +29 -10
- package/src/runtime/init.test.ts +2 -2
- package/src/types.ts +29 -0
- package/src/ui.docked.test.ts +2 -2
- package/src/voice/voice.test.ts +0 -51
- package/src/install-config.test.ts +0 -38
package/dist/index.d.cts
CHANGED
|
@@ -2119,12 +2119,44 @@ type AgentToolsConfig = {
|
|
|
2119
2119
|
mcpServers?: Array<Record<string, unknown>>;
|
|
2120
2120
|
/** Maximum number of tool invocations per execution */
|
|
2121
2121
|
maxToolCalls?: number;
|
|
2122
|
+
/** How the model is steered toward tools: let it decide, force a call, or disable */
|
|
2123
|
+
toolCallStrategy?: "auto" | "required" | "none";
|
|
2124
|
+
/** Per-tool invocation limits / requirements keyed by tool name */
|
|
2125
|
+
perToolLimits?: Record<string, {
|
|
2126
|
+
maxCalls?: number;
|
|
2127
|
+
required?: boolean;
|
|
2128
|
+
}>;
|
|
2122
2129
|
/** Tool approval configuration for human-in-the-loop workflows */
|
|
2123
2130
|
approval?: {
|
|
2124
2131
|
/** Tool names/patterns to require approval for, or true for all tools */
|
|
2125
2132
|
require: string[] | boolean;
|
|
2126
2133
|
/** Approval timeout in milliseconds (default: 300000 / 5 minutes) */
|
|
2127
2134
|
timeout?: number;
|
|
2135
|
+
/** Ask the agent to state its intent alongside approval requests (default: true) */
|
|
2136
|
+
requestReason?: boolean;
|
|
2137
|
+
};
|
|
2138
|
+
/**
|
|
2139
|
+
* Enables the synthesized `spawn_subagent` tool: the model can spin up
|
|
2140
|
+
* ad-hoc child agents at runtime, restricted to `toolPool` (tool IDs /
|
|
2141
|
+
* runtime-tool names already granted to the parent agent).
|
|
2142
|
+
*/
|
|
2143
|
+
subagentConfig?: {
|
|
2144
|
+
toolPool: string[];
|
|
2145
|
+
defaultMaxTurns?: number;
|
|
2146
|
+
maxTurnsLimit?: number;
|
|
2147
|
+
maxSpawnsPerRun?: number;
|
|
2148
|
+
defaultModel?: string;
|
|
2149
|
+
allowNesting?: boolean;
|
|
2150
|
+
defaultTimeoutMs?: number;
|
|
2151
|
+
};
|
|
2152
|
+
/**
|
|
2153
|
+
* Enables the synthesized `code_mode` tool: the model writes JS that calls
|
|
2154
|
+
* pool tools inside a sandbox instead of issuing individual tool calls.
|
|
2155
|
+
*/
|
|
2156
|
+
codeModeConfig?: {
|
|
2157
|
+
toolPool: string[];
|
|
2158
|
+
description?: string;
|
|
2159
|
+
timeoutMs?: number;
|
|
2128
2160
|
};
|
|
2129
2161
|
};
|
|
2130
2162
|
/** Artifact kinds for the Persona sidebar and dispatch payload */
|
package/dist/index.d.ts
CHANGED
|
@@ -2119,12 +2119,44 @@ type AgentToolsConfig = {
|
|
|
2119
2119
|
mcpServers?: Array<Record<string, unknown>>;
|
|
2120
2120
|
/** Maximum number of tool invocations per execution */
|
|
2121
2121
|
maxToolCalls?: number;
|
|
2122
|
+
/** How the model is steered toward tools: let it decide, force a call, or disable */
|
|
2123
|
+
toolCallStrategy?: "auto" | "required" | "none";
|
|
2124
|
+
/** Per-tool invocation limits / requirements keyed by tool name */
|
|
2125
|
+
perToolLimits?: Record<string, {
|
|
2126
|
+
maxCalls?: number;
|
|
2127
|
+
required?: boolean;
|
|
2128
|
+
}>;
|
|
2122
2129
|
/** Tool approval configuration for human-in-the-loop workflows */
|
|
2123
2130
|
approval?: {
|
|
2124
2131
|
/** Tool names/patterns to require approval for, or true for all tools */
|
|
2125
2132
|
require: string[] | boolean;
|
|
2126
2133
|
/** Approval timeout in milliseconds (default: 300000 / 5 minutes) */
|
|
2127
2134
|
timeout?: number;
|
|
2135
|
+
/** Ask the agent to state its intent alongside approval requests (default: true) */
|
|
2136
|
+
requestReason?: boolean;
|
|
2137
|
+
};
|
|
2138
|
+
/**
|
|
2139
|
+
* Enables the synthesized `spawn_subagent` tool: the model can spin up
|
|
2140
|
+
* ad-hoc child agents at runtime, restricted to `toolPool` (tool IDs /
|
|
2141
|
+
* runtime-tool names already granted to the parent agent).
|
|
2142
|
+
*/
|
|
2143
|
+
subagentConfig?: {
|
|
2144
|
+
toolPool: string[];
|
|
2145
|
+
defaultMaxTurns?: number;
|
|
2146
|
+
maxTurnsLimit?: number;
|
|
2147
|
+
maxSpawnsPerRun?: number;
|
|
2148
|
+
defaultModel?: string;
|
|
2149
|
+
allowNesting?: boolean;
|
|
2150
|
+
defaultTimeoutMs?: number;
|
|
2151
|
+
};
|
|
2152
|
+
/**
|
|
2153
|
+
* Enables the synthesized `code_mode` tool: the model writes JS that calls
|
|
2154
|
+
* pool tools inside a sandbox instead of issuing individual tool calls.
|
|
2155
|
+
*/
|
|
2156
|
+
codeModeConfig?: {
|
|
2157
|
+
toolPool: string[];
|
|
2158
|
+
description?: string;
|
|
2159
|
+
timeoutMs?: number;
|
|
2128
2160
|
};
|
|
2129
2161
|
};
|
|
2130
2162
|
/** Artifact kinds for the Persona sidebar and dispatch payload */
|