@standardagents/skill 0.45.6 → 0.45.7
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/package.json
CHANGED
|
@@ -781,7 +781,7 @@ By default, `runCode()` executes the `default` export with no args. Use `execute
|
|
|
781
781
|
- **`state.context`** is in-memory scratch data for the *current execution*. It is not durable across thread restarts and should not be used for invocation or subagent creation arguments. For durable structured state, use `state.getValue` / `state.setValue`.
|
|
782
782
|
- **`state.getValue` / `state.setValue`** are durable per-thread JSON storage. Use them for small structured state; use files for larger content or artifacts.
|
|
783
783
|
- **`state.env` / `state.envType` / `state.setEnv`** are for runtime configuration and secrets. `state.env(name)` resolves thread -> account -> instance -> agent -> prompt. `state.envType(name)` returns `'secret'` by default; `'text'` means the value may be shown in tool output. `state.setEnv(name, value, { type: 'text' | 'secret' })` writes thread-scoped env and propagates to active descendants. Omit `type` only when preserving the existing type is intentional; new keys default to secret.
|
|
784
|
-
- **`state.runCode`** runs JavaScript or TypeScript in an isolated Dynamic Worker sandbox. The sandbox does not receive `ThreadState`, env, files, network, or host globals implicitly. Pass exact capabilities through `imports`, `globals`, `modules`, and `execute`. It executes exported values/functions; code such as `console.log(fibonacci(5))` can log, but it must still `export default ...` or export a named function/value for the host to receive a result.
|
|
784
|
+
- **`state.runCode`** runs JavaScript or TypeScript in an isolated Dynamic Worker sandbox. The sandbox does not receive `ThreadState`, env, files, network, or host globals implicitly. Pass exact capabilities through `imports`, `globals`, `modules`, and `execute`. It executes exported values/functions; code such as `console.log(fibonacci(5))` can log, but it must still `export default ...` or export a named function/value for the host to receive a result. The sandbox memory limit is 128 MB; `memoryLimitBytes` cannot lower it, and a higher value is clamped to it.
|
|
785
785
|
- **`state.scheduleEffect`** runs a named effect after a delay. It survives restarts. This is your cron, your queue, and your retry timer all in one.
|
|
786
786
|
- **`state.invokeTool` vs `state.queueTool`** — `invokeTool` runs synchronously and returns the result; `queueTool` schedules the call to run later in the normal tool-call flow. Prefer `queueTool` when the model should see the result as a regular tool call.
|
|
787
787
|
- **`state.notifyParent`** — for children whose relationship sets `parentCommunication: 'explicit'`, this is the main way the child talks to the parent. Use it sparingly; every delivered notification interrupts the parent. If there is no parent, nothing is queued externally.
|
|
@@ -871,7 +871,7 @@ PromptDefinition
|
|
|
871
871
|
model ModelName references agents/models/<name>
|
|
872
872
|
includeChat boolean (default false) pass full chat history to this LLM step
|
|
873
873
|
includePastTools boolean (default false) include tool calls and results in later requests
|
|
874
|
-
parallelToolCalls boolean (default
|
|
874
|
+
parallelToolCalls boolean (provider default) allow multiple tool calls per turn
|
|
875
875
|
toolChoice 'auto' | 'none' | 'required' tool calling strategy (default 'auto')
|
|
876
876
|
requiredSchema ZodSchema validate args when called as a tool
|
|
877
877
|
variables VariableDefinition[] declared text/secret variables
|