@theokit/sdk 4.2.1 → 4.2.2

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.
Files changed (76) hide show
  1. package/CHANGELOG.md +97 -86
  2. package/dist/a2a/index.cjs.map +1 -1
  3. package/dist/a2a/index.js.map +1 -1
  4. package/dist/a2a/subagent.d.cts +2 -2
  5. package/dist/a2a/subagent.d.ts +2 -2
  6. package/dist/{cron-Y_aM4m4-.d.cts → cron-DxBlp3i4.d.ts} +2 -2
  7. package/dist/{cron-pjzn3jxf.d.ts → cron-afuxJHol.d.cts} +2 -2
  8. package/dist/cron.cjs.map +1 -1
  9. package/dist/cron.d.cts +2 -2
  10. package/dist/cron.d.ts +2 -2
  11. package/dist/cron.js.map +1 -1
  12. package/dist/{errors-B4QB3-Wu.d.ts → errors-DzCWdfkp.d.ts} +1 -1
  13. package/dist/{errors-B03TBTc_.d.cts → errors-VY7_0ki7.d.cts} +1 -1
  14. package/dist/errors.d.cts +2 -2
  15. package/dist/eval.cjs.map +1 -1
  16. package/dist/eval.js.map +1 -1
  17. package/dist/filesystem/index.cjs.map +1 -1
  18. package/dist/filesystem/index.js.map +1 -1
  19. package/dist/filesystem/local-filesystem.d.cts +1 -1
  20. package/dist/filesystem/local-filesystem.d.ts +1 -1
  21. package/dist/filesystem/types.d.cts +1 -1
  22. package/dist/filesystem/types.d.ts +1 -1
  23. package/dist/index.cjs +1 -9
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +10 -10
  26. package/dist/index.d.ts +10 -10
  27. package/dist/index.js +1 -9
  28. package/dist/index.js.map +1 -1
  29. package/dist/internal/agent-loop/doom-loop-tracker.d.ts +1 -1
  30. package/dist/internal/budget/usage-accumulator.d.ts +1 -1
  31. package/dist/internal/llm/model-identifier.d.ts +1 -1
  32. package/dist/internal/llm/ollama-native.d.ts +2 -2
  33. package/dist/internal/llm/openai.d.ts +1 -1
  34. package/dist/internal/llm/router.d.ts +3 -4
  35. package/dist/internal/memory/adapters/ollama-embedding.d.ts +1 -1
  36. package/dist/internal/memory/embedding-adapter.d.ts +3 -3
  37. package/dist/internal/persistence/index.cjs.map +1 -1
  38. package/dist/internal/persistence/index.js.map +1 -1
  39. package/dist/internal/providers/builtin/vertex.d.ts +1 -1
  40. package/dist/internal/resilience/circuit-breaker.d.ts +1 -1
  41. package/dist/internal/runtime/concurrency/abort-utils.d.ts +1 -1
  42. package/dist/internal/runtime/registry/run-registry.d.ts +0 -1
  43. package/dist/internal/runtime/skills/skill-frontmatter.d.ts +0 -1
  44. package/dist/internal/task/registry.d.ts +0 -3
  45. package/dist/internal/telemetry/span-names.d.ts +0 -1
  46. package/dist/internal/workflow/telemetry.d.ts +0 -2
  47. package/dist/models.cjs.map +1 -1
  48. package/dist/models.js.map +1 -1
  49. package/dist/permission-engine.d.ts +3 -3
  50. package/dist/persistence.cjs.map +1 -1
  51. package/dist/persistence.js.map +1 -1
  52. package/dist/project.cjs.map +1 -1
  53. package/dist/project.js.map +1 -1
  54. package/dist/{run-CqihtbtU.d.cts → run-CsIsK9Gx.d.cts} +7 -7
  55. package/dist/{run-CqihtbtU.d.ts → run-CsIsK9Gx.d.ts} +7 -7
  56. package/dist/skills.cjs.map +1 -1
  57. package/dist/skills.js.map +1 -1
  58. package/dist/subscription/index.cjs.map +1 -1
  59. package/dist/subscription/index.js.map +1 -1
  60. package/dist/subscription/internal/sse-encoder.d.cts +1 -1
  61. package/dist/subscription/internal/sse-encoder.d.ts +1 -1
  62. package/dist/subscription/internal/sse-parser.d.cts +1 -1
  63. package/dist/subscription/internal/sse-parser.d.ts +1 -1
  64. package/dist/task-store.cjs.map +1 -1
  65. package/dist/task-store.js.map +1 -1
  66. package/dist/types/agent.d.ts +1 -1
  67. package/dist/types/processors.d.ts +1 -1
  68. package/dist/types/run.d.ts +2 -2
  69. package/dist/types/usage.d.ts +1 -1
  70. package/dist/workflow.cjs +1 -9
  71. package/dist/workflow.cjs.map +1 -1
  72. package/dist/workflow.d.cts +1 -1
  73. package/dist/workflow.d.ts +1 -1
  74. package/dist/workflow.js +1 -9
  75. package/dist/workflow.js.map +1 -1
  76. package/package.json +1 -1
@@ -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 Mastra's `cloneWorkflow`.
131
+ * same committed steps. Mirrors a peer framework's `cloneWorkflow`.
132
132
  *
133
133
  * @public
134
134
  */
@@ -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 Mastra's `cloneWorkflow`.
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 Mastra-style `.then(step)` builder DSL. The method is fluent, never awaited.
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);