@theokit/sdk 4.2.1 → 4.2.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/CHANGELOG.md +103 -86
- package/README.md +5 -5
- package/dist/a2a/index.cjs.map +1 -1
- package/dist/a2a/index.js.map +1 -1
- package/dist/a2a/subagent.d.cts +2 -2
- package/dist/a2a/subagent.d.ts +2 -2
- package/dist/compaction.cjs.map +1 -1
- package/dist/compaction.d.cts +1 -1
- package/dist/compaction.d.ts +1 -1
- package/dist/compaction.js.map +1 -1
- package/dist/{cron-Y_aM4m4-.d.cts → cron-CWQPZTwX.d.cts} +2 -2
- package/dist/{cron-pjzn3jxf.d.ts → cron-DVM9f1I_.d.ts} +2 -2
- package/dist/cron.cjs.map +1 -1
- package/dist/cron.d.cts +2 -2
- package/dist/cron.d.ts +2 -2
- package/dist/cron.js.map +1 -1
- package/dist/{errors-B4QB3-Wu.d.ts → errors-CG2RpeW-.d.ts} +1 -1
- package/dist/{errors-B03TBTc_.d.cts → errors-gE8612p9.d.cts} +1 -1
- package/dist/errors.d.cts +2 -2
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js.map +1 -1
- package/dist/filesystem/index.cjs.map +1 -1
- package/dist/filesystem/index.js.map +1 -1
- package/dist/filesystem/local-filesystem.d.cts +1 -1
- package/dist/filesystem/local-filesystem.d.ts +1 -1
- package/dist/filesystem/types.d.cts +1 -1
- package/dist/filesystem/types.d.ts +1 -1
- package/dist/index.cjs +1 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +1 -9
- package/dist/index.js.map +1 -1
- package/dist/internal/agent-loop/doom-loop-tracker.d.ts +1 -1
- package/dist/internal/budget/usage-accumulator.d.ts +1 -1
- package/dist/internal/llm/model-identifier.d.ts +1 -1
- package/dist/internal/llm/ollama-native.d.ts +2 -2
- package/dist/internal/llm/openai.d.ts +1 -1
- package/dist/internal/llm/router.d.ts +3 -4
- package/dist/internal/llm/vertex-gemini.d.ts +1 -1
- package/dist/internal/memory/adapters/ollama-embedding.d.ts +1 -1
- package/dist/internal/memory/embedding-adapter.d.ts +3 -3
- package/dist/internal/persistence/index.cjs.map +1 -1
- package/dist/internal/persistence/index.js.map +1 -1
- package/dist/internal/providers/builtin/vertex.d.ts +1 -1
- package/dist/internal/resilience/circuit-breaker.d.ts +1 -1
- package/dist/internal/runtime/concurrency/abort-utils.d.ts +1 -1
- package/dist/internal/runtime/lifecycle/stream-to-completion.d.ts +1 -1
- package/dist/internal/runtime/registry/run-registry.d.ts +0 -1
- package/dist/internal/runtime/skills/skill-frontmatter.d.ts +0 -1
- package/dist/internal/task/registry.d.ts +0 -3
- package/dist/internal/telemetry/span-names.d.ts +0 -1
- package/dist/internal/workflow/telemetry.d.ts +0 -2
- package/dist/messages.cjs.map +1 -1
- package/dist/messages.d.cts +1 -1
- package/dist/messages.d.ts +1 -1
- package/dist/messages.js.map +1 -1
- package/dist/models.cjs.map +1 -1
- package/dist/models.js.map +1 -1
- package/dist/path-safety.d.cts +1 -2
- package/dist/path-safety.d.ts +1 -2
- package/dist/permission-engine.d.ts +3 -3
- package/dist/persistence.cjs.map +1 -1
- package/dist/persistence.js.map +1 -1
- package/dist/project.cjs.map +1 -1
- package/dist/project.js.map +1 -1
- package/dist/{run-CqihtbtU.d.cts → run-DFM1H2jW.d.cts} +8 -8
- package/dist/{run-CqihtbtU.d.ts → run-DFM1H2jW.d.ts} +8 -8
- package/dist/skills.cjs.map +1 -1
- package/dist/skills.js.map +1 -1
- package/dist/subscription/index.cjs.map +1 -1
- package/dist/subscription/index.js.map +1 -1
- package/dist/subscription/internal/sse-encoder.d.cts +1 -1
- package/dist/subscription/internal/sse-encoder.d.ts +1 -1
- package/dist/subscription/internal/sse-parser.d.cts +1 -1
- package/dist/subscription/internal/sse-parser.d.ts +1 -1
- package/dist/task-store.cjs.map +1 -1
- package/dist/task-store.js.map +1 -1
- package/dist/types/agent.d.ts +1 -1
- package/dist/types/mcp.d.ts +1 -1
- package/dist/types/processors.d.ts +1 -1
- package/dist/types/run.d.ts +2 -2
- package/dist/types/usage.d.ts +1 -1
- package/dist/workflow.cjs +1 -9
- package/dist/workflow.cjs.map +1 -1
- package/dist/workflow.d.cts +1 -1
- package/dist/workflow.d.ts +1 -1
- package/dist/workflow.js +1 -9
- package/dist/workflow.js.map +1 -1
- package/package.json +2 -3
package/dist/workflow.d.cts
CHANGED
|
@@ -128,7 +128,7 @@ export declare function workflowStep<TI = unknown, TO = unknown>(child: Workflow
|
|
|
128
128
|
/**
|
|
129
129
|
* SE30 — clone a committed workflow under a new id/name. The clone runs
|
|
130
130
|
* independently (its own single-flight lock + observability identity) with the
|
|
131
|
-
* same committed steps. Mirrors
|
|
131
|
+
* same committed steps. Mirrors a peer framework's `cloneWorkflow`.
|
|
132
132
|
*
|
|
133
133
|
* @public
|
|
134
134
|
*/
|
package/dist/workflow.d.ts
CHANGED
|
@@ -128,7 +128,7 @@ export declare function workflowStep<TI = unknown, TO = unknown>(child: Workflow
|
|
|
128
128
|
/**
|
|
129
129
|
* SE30 — clone a committed workflow under a new id/name. The clone runs
|
|
130
130
|
* independently (its own single-flight lock + observability identity) with the
|
|
131
|
-
* same committed steps. Mirrors
|
|
131
|
+
* same committed steps. Mirrors a peer framework's `cloneWorkflow`.
|
|
132
132
|
*
|
|
133
133
|
* @public
|
|
134
134
|
*/
|
package/dist/workflow.js
CHANGED
|
@@ -2065,12 +2065,10 @@ var init_telemetry2 = __esm({
|
|
|
2065
2065
|
// src/internal/task/registry.ts
|
|
2066
2066
|
var registry_exports = {};
|
|
2067
2067
|
__export(registry_exports, {
|
|
2068
|
-
__getCancelRequestedForTests: () => __getCancelRequestedForTests,
|
|
2069
2068
|
__getSubscribersCountForTests: () => __getSubscribersCountForTests,
|
|
2070
2069
|
__resetTaskRegistryForTests: () => __resetTaskRegistryForTests,
|
|
2071
2070
|
cancel: () => cancel,
|
|
2072
2071
|
configure: () => configure,
|
|
2073
|
-
evictNow: () => evictNow,
|
|
2074
2072
|
get: () => get,
|
|
2075
2073
|
list: () => list,
|
|
2076
2074
|
submit: () => submit,
|
|
@@ -2095,9 +2093,6 @@ function __resetTaskRegistryForTests() {
|
|
|
2095
2093
|
function __getSubscribersCountForTests(taskId) {
|
|
2096
2094
|
return state.subscribers.get(taskId)?.size ?? 0;
|
|
2097
2095
|
}
|
|
2098
|
-
function __getCancelRequestedForTests(_taskId) {
|
|
2099
|
-
return void 0;
|
|
2100
|
-
}
|
|
2101
2096
|
function configure(opts) {
|
|
2102
2097
|
if (state.firstSubmitSeen) {
|
|
2103
2098
|
process.stderr.write(
|
|
@@ -2359,9 +2354,6 @@ async function cancelInternal(id, currentState, reason) {
|
|
|
2359
2354
|
if (aborter !== void 0) aborter.abort(reason ?? "cancelled");
|
|
2360
2355
|
return { cancelled: true, alreadyTerminal: false };
|
|
2361
2356
|
}
|
|
2362
|
-
async function evictNow(now = Date.now()) {
|
|
2363
|
-
return state.store.evictTerminalOlderThan(now - state.retentionMs);
|
|
2364
|
-
}
|
|
2365
2357
|
var DEFAULT_CONCURRENCY, DEFAULT_RETENTION_MS, EVICTION_INTERVAL_MS, RING_CAP, reentryAls, state, subscribe;
|
|
2366
2358
|
var init_registry = __esm({
|
|
2367
2359
|
"src/internal/task/registry.ts"() {
|
|
@@ -2514,7 +2506,7 @@ var WorkflowBuilder = class {
|
|
|
2514
2506
|
get __steps() {
|
|
2515
2507
|
return this._steps;
|
|
2516
2508
|
}
|
|
2517
|
-
// biome-ignore lint/suspicious/noThenProperty: D233 locks the
|
|
2509
|
+
// biome-ignore lint/suspicious/noThenProperty: D233 locks the a peer framework-style `.then(step)` builder DSL. The method is fluent, never awaited.
|
|
2518
2510
|
then(step) {
|
|
2519
2511
|
this.assertNotCommitted();
|
|
2520
2512
|
validateStepId(step.id);
|