@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.cjs
CHANGED
|
@@ -2068,12 +2068,10 @@ var init_telemetry2 = __esm({
|
|
|
2068
2068
|
// src/internal/task/registry.ts
|
|
2069
2069
|
var registry_exports = {};
|
|
2070
2070
|
__export(registry_exports, {
|
|
2071
|
-
__getCancelRequestedForTests: () => __getCancelRequestedForTests,
|
|
2072
2071
|
__getSubscribersCountForTests: () => __getSubscribersCountForTests,
|
|
2073
2072
|
__resetTaskRegistryForTests: () => __resetTaskRegistryForTests,
|
|
2074
2073
|
cancel: () => cancel,
|
|
2075
2074
|
configure: () => configure,
|
|
2076
|
-
evictNow: () => evictNow,
|
|
2077
2075
|
get: () => get,
|
|
2078
2076
|
list: () => list,
|
|
2079
2077
|
submit: () => submit,
|
|
@@ -2098,9 +2096,6 @@ function __resetTaskRegistryForTests() {
|
|
|
2098
2096
|
function __getSubscribersCountForTests(taskId) {
|
|
2099
2097
|
return state.subscribers.get(taskId)?.size ?? 0;
|
|
2100
2098
|
}
|
|
2101
|
-
function __getCancelRequestedForTests(_taskId) {
|
|
2102
|
-
return void 0;
|
|
2103
|
-
}
|
|
2104
2099
|
function configure(opts) {
|
|
2105
2100
|
if (state.firstSubmitSeen) {
|
|
2106
2101
|
process.stderr.write(
|
|
@@ -2362,9 +2357,6 @@ async function cancelInternal(id, currentState, reason) {
|
|
|
2362
2357
|
if (aborter !== void 0) aborter.abort(reason ?? "cancelled");
|
|
2363
2358
|
return { cancelled: true, alreadyTerminal: false };
|
|
2364
2359
|
}
|
|
2365
|
-
async function evictNow(now = Date.now()) {
|
|
2366
|
-
return state.store.evictTerminalOlderThan(now - state.retentionMs);
|
|
2367
|
-
}
|
|
2368
2360
|
var DEFAULT_CONCURRENCY, DEFAULT_RETENTION_MS, EVICTION_INTERVAL_MS, RING_CAP, reentryAls, state, subscribe;
|
|
2369
2361
|
var init_registry = __esm({
|
|
2370
2362
|
"src/internal/task/registry.ts"() {
|
|
@@ -2517,7 +2509,7 @@ var WorkflowBuilder = class {
|
|
|
2517
2509
|
get __steps() {
|
|
2518
2510
|
return this._steps;
|
|
2519
2511
|
}
|
|
2520
|
-
// biome-ignore lint/suspicious/noThenProperty: D233 locks the
|
|
2512
|
+
// biome-ignore lint/suspicious/noThenProperty: D233 locks the a peer framework-style `.then(step)` builder DSL. The method is fluent, never awaited.
|
|
2521
2513
|
then(step) {
|
|
2522
2514
|
this.assertNotCommitted();
|
|
2523
2515
|
validateStepId(step.id);
|