@theokit/sdk 4.39.4 → 4.40.0

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 (41) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/{agent-ZCZa7YQv.d.ts → agent-BzZwYFiw.d.ts} +1 -1
  3. package/dist/{agent-D7bRK9Kg.d.cts → agent-DxEL4fHh.d.cts} +1 -1
  4. package/dist/{agent-UNWZCXBS.js → agent-MSR3DHO4.js} +3 -3
  5. package/dist/{agent-UNWZCXBS.js.map → agent-MSR3DHO4.js.map} +1 -1
  6. package/dist/{agent-DB245YMC.cjs → agent-OOXJJD6A.cjs} +4 -4
  7. package/dist/{agent-DB245YMC.cjs.map → agent-OOXJJD6A.cjs.map} +1 -1
  8. package/dist/{chunk-P3ZVI46Y.js → chunk-2UBBO2MD.js} +3 -3
  9. package/dist/{chunk-P3ZVI46Y.js.map → chunk-2UBBO2MD.js.map} +1 -1
  10. package/dist/{chunk-KV3HR7KL.cjs → chunk-6AE4QTSF.cjs} +5 -5
  11. package/dist/{chunk-KV3HR7KL.cjs.map → chunk-6AE4QTSF.cjs.map} +1 -1
  12. package/dist/{chunk-SHQEZ6Q2.cjs → chunk-BVGJXMSB.cjs} +15 -5
  13. package/dist/chunk-BVGJXMSB.cjs.map +1 -0
  14. package/dist/{chunk-SGGH3B2W.js → chunk-ZRQZOJ3N.js} +13 -3
  15. package/dist/chunk-ZRQZOJ3N.js.map +1 -0
  16. package/dist/{cron-D-DVjGQe.d.cts → cron-BGR0HOz9.d.cts} +2 -2
  17. package/dist/{cron-Bx7tzm5R.d.ts → cron-CDAIWCrL.d.ts} +2 -2
  18. package/dist/cron.cjs +3 -3
  19. package/dist/cron.d.cts +3 -3
  20. package/dist/cron.d.ts +3 -3
  21. package/dist/cron.js +2 -2
  22. package/dist/{errors-DjBQ4Tn8.d.ts → errors-DxQe4_Qy.d.ts} +1 -1
  23. package/dist/{errors-DMY-gLSK.d.cts → errors-L1bxHHO0.d.cts} +1 -1
  24. package/dist/errors.d.cts +2 -2
  25. package/dist/errors.d.ts +2 -2
  26. package/dist/eval.cjs +2 -2
  27. package/dist/eval.js +1 -1
  28. package/dist/index.cjs +18 -18
  29. package/dist/index.d.cts +8 -8
  30. package/dist/index.d.ts +8 -8
  31. package/dist/index.js +4 -4
  32. package/dist/{run-i2-fUohR.d.ts → run-XXnwwGOT.d.cts} +15 -0
  33. package/dist/{run-i2-fUohR.d.cts → run-XXnwwGOT.d.ts} +15 -0
  34. package/dist/server/errors-envelope.d.cts +3 -3
  35. package/dist/server/errors-envelope.d.ts +3 -3
  36. package/dist/subagents-loader.d.cts +2 -2
  37. package/dist/subagents-loader.d.ts +2 -2
  38. package/dist/types/run.d.ts +15 -0
  39. package/package.json +1 -1
  40. package/dist/chunk-SGGH3B2W.js.map +0 -1
  41. package/dist/chunk-SHQEZ6Q2.cjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { ZodType } from 'zod';
2
- import { e as SDKAgent, A as AgentOptions, g as ListResult } from './agent-D7bRK9Kg.cjs';
3
- import { u as MessageOrigin, ad as SDKUserMessage, b as Run } from './run-i2-fUohR.cjs';
2
+ import { e as SDKAgent, A as AgentOptions, g as ListResult } from './agent-DxEL4fHh.cjs';
3
+ import { u as MessageOrigin, ad as SDKUserMessage, b as Run } from './run-XXnwwGOT.cjs';
4
4
 
5
5
  /**
6
6
  * Public type contract for `Workflow.create / .run / .resume` (Adoption
@@ -1,6 +1,6 @@
1
1
  import { ZodType } from 'zod';
2
- import { e as SDKAgent, A as AgentOptions, g as ListResult } from './agent-ZCZa7YQv.js';
3
- import { u as MessageOrigin, ad as SDKUserMessage, b as Run } from './run-i2-fUohR.js';
2
+ import { e as SDKAgent, A as AgentOptions, g as ListResult } from './agent-BzZwYFiw.js';
3
+ import { u as MessageOrigin, ad as SDKUserMessage, b as Run } from './run-XXnwwGOT.js';
4
4
 
5
5
  /**
6
6
  * Public type contract for `Workflow.create / .run / .resume` (Adoption
package/dist/cron.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkKV3HR7KL_cjs = require('./chunk-KV3HR7KL.cjs');
4
- require('./chunk-SHQEZ6Q2.cjs');
3
+ var chunk6AE4QTSF_cjs = require('./chunk-6AE4QTSF.cjs');
4
+ require('./chunk-BVGJXMSB.cjs');
5
5
  require('./chunk-BV2MWEMV.cjs');
6
6
  require('./chunk-QMIG7TKG.cjs');
7
7
  require('./chunk-BUUUWQMB.cjs');
@@ -50,7 +50,7 @@ require('./chunk-A76OFN2B.cjs');
50
50
 
51
51
  Object.defineProperty(exports, "Cron", {
52
52
  enumerable: true,
53
- get: function () { return chunkKV3HR7KL_cjs.Cron; }
53
+ get: function () { return chunk6AE4QTSF_cjs.Cron; }
54
54
  });
55
55
  //# sourceMappingURL=cron.cjs.map
56
56
  //# sourceMappingURL=cron.cjs.map
package/dist/cron.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { C as Cron } from './cron-D-DVjGQe.cjs';
2
- import './run-i2-fUohR.cjs';
3
- import './agent-D7bRK9Kg.cjs';
1
+ export { C as Cron } from './cron-BGR0HOz9.cjs';
2
+ import './run-XXnwwGOT.cjs';
3
+ import './agent-DxEL4fHh.cjs';
4
4
  import 'zod';
package/dist/cron.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { C as Cron } from './cron-Bx7tzm5R.js';
2
- import './run-i2-fUohR.js';
3
- import './agent-ZCZa7YQv.js';
1
+ export { C as Cron } from './cron-CDAIWCrL.js';
2
+ import './run-XXnwwGOT.js';
3
+ import './agent-BzZwYFiw.js';
4
4
  import 'zod';
package/dist/cron.js CHANGED
@@ -1,5 +1,5 @@
1
- export { Cron } from './chunk-P3ZVI46Y.js';
2
- import './chunk-SGGH3B2W.js';
1
+ export { Cron } from './chunk-2UBBO2MD.js';
2
+ import './chunk-ZRQZOJ3N.js';
3
3
  import './chunk-2SFBB54R.js';
4
4
  import './chunk-UIPTINIF.js';
5
5
  import './chunk-K2BQQ445.js';
@@ -1,4 +1,4 @@
1
- import { Q as RunOperation } from './run-i2-fUohR.js';
1
+ import { Q as RunOperation } from './run-XXnwwGOT.js';
2
2
 
3
3
  /**
4
4
  * Public type contract for the Budget enforcement primitive
@@ -1,4 +1,4 @@
1
- import { Q as RunOperation } from './run-i2-fUohR.cjs';
1
+ import { Q as RunOperation } from './run-XXnwwGOT.cjs';
2
2
 
3
3
  /**
4
4
  * Public type contract for the Budget enforcement primitive
package/dist/errors.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- export { A as AgentDisposedError, c as AgentRunError, d as AgentRunErrorCode, e as AuthenticationError, g as BudgetExceededError, C as ConfigurationError, u as CredentialPoolExhaustedError, m as ErrorCode, E as ErrorMetadata, I as IntegrationNotConnectedError, n as InvalidTaskIdError, K as KnownAgentRunErrorCode, M as MemoryAdapterError, o as MemoryAdapterErrorCode, N as NetworkError, R as RateLimitError, p as TaskNotFoundError, T as TheokitAgentError, U as UnknownAgentError, q as UnsupportedBudgetOperationError, r as UnsupportedRunOperationError, s as UnsupportedTaskOperationError, t as isTransientError } from './errors-DMY-gLSK.cjs';
2
- import './run-i2-fUohR.cjs';
1
+ export { A as AgentDisposedError, c as AgentRunError, d as AgentRunErrorCode, e as AuthenticationError, g as BudgetExceededError, C as ConfigurationError, u as CredentialPoolExhaustedError, m as ErrorCode, E as ErrorMetadata, I as IntegrationNotConnectedError, n as InvalidTaskIdError, K as KnownAgentRunErrorCode, M as MemoryAdapterError, o as MemoryAdapterErrorCode, N as NetworkError, R as RateLimitError, p as TaskNotFoundError, T as TheokitAgentError, U as UnknownAgentError, q as UnsupportedBudgetOperationError, r as UnsupportedRunOperationError, s as UnsupportedTaskOperationError, t as isTransientError } from './errors-L1bxHHO0.cjs';
2
+ import './run-XXnwwGOT.cjs';
3
3
  import 'zod';
package/dist/errors.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { A as AgentDisposedError, c as AgentRunError, d as AgentRunErrorCode, e as AuthenticationError, g as BudgetExceededError, C as ConfigurationError, u as CredentialPoolExhaustedError, m as ErrorCode, E as ErrorMetadata, I as IntegrationNotConnectedError, n as InvalidTaskIdError, K as KnownAgentRunErrorCode, M as MemoryAdapterError, o as MemoryAdapterErrorCode, N as NetworkError, R as RateLimitError, p as TaskNotFoundError, T as TheokitAgentError, U as UnknownAgentError, q as UnsupportedBudgetOperationError, r as UnsupportedRunOperationError, s as UnsupportedTaskOperationError, t as isTransientError } from './errors-DjBQ4Tn8.js';
2
- import './run-i2-fUohR.js';
1
+ export { A as AgentDisposedError, c as AgentRunError, d as AgentRunErrorCode, e as AuthenticationError, g as BudgetExceededError, C as ConfigurationError, u as CredentialPoolExhaustedError, m as ErrorCode, E as ErrorMetadata, I as IntegrationNotConnectedError, n as InvalidTaskIdError, K as KnownAgentRunErrorCode, M as MemoryAdapterError, o as MemoryAdapterErrorCode, N as NetworkError, R as RateLimitError, p as TaskNotFoundError, T as TheokitAgentError, U as UnknownAgentError, q as UnsupportedBudgetOperationError, r as UnsupportedRunOperationError, s as UnsupportedTaskOperationError, t as isTransientError } from './errors-DxQe4_Qy.js';
2
+ import './run-XXnwwGOT.js';
3
3
  import 'zod';
package/dist/eval.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkS7OEXQMI_cjs = require('./chunk-S7OEXQMI.cjs');
4
- var chunkSHQEZ6Q2_cjs = require('./chunk-SHQEZ6Q2.cjs');
4
+ var chunkBVGJXMSB_cjs = require('./chunk-BVGJXMSB.cjs');
5
5
  require('./chunk-BV2MWEMV.cjs');
6
6
  require('./chunk-QMIG7TKG.cjs');
7
7
  var chunkBUUUWQMB_cjs = require('./chunk-BUUUWQMB.cjs');
@@ -773,7 +773,7 @@ function makeDefaultEmbedder(opts) {
773
773
  let runtime;
774
774
  return (texts) => {
775
775
  if (runtime === void 0) {
776
- runtime = chunkSHQEZ6Q2_cjs.openRouterMemoryEmbeddingProviderAdapter.create(embedderCreateOptions(opts));
776
+ runtime = chunkBVGJXMSB_cjs.openRouterMemoryEmbeddingProviderAdapter.create(embedderCreateOptions(opts));
777
777
  }
778
778
  return runtime.then((rt) => rt.embed(texts));
779
779
  };
package/dist/eval.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { shellEscapePosix, LocalSandbox } from './chunk-SKWVAQAY.js';
2
- import { openRouterMemoryEmbeddingProviderAdapter } from './chunk-SGGH3B2W.js';
2
+ import { openRouterMemoryEmbeddingProviderAdapter } from './chunk-ZRQZOJ3N.js';
3
3
  import './chunk-2SFBB54R.js';
4
4
  import './chunk-UIPTINIF.js';
5
5
  import { getTracer } from './chunk-K2BQQ445.js';
package/dist/index.cjs CHANGED
@@ -8,8 +8,8 @@ require('./chunk-PIBXDEZM.cjs');
8
8
  var chunkEJNFZET4_cjs = require('./chunk-EJNFZET4.cjs');
9
9
  require('./chunk-5COPO3H4.cjs');
10
10
  require('./chunk-PNVDQL5Y.cjs');
11
- var chunkKV3HR7KL_cjs = require('./chunk-KV3HR7KL.cjs');
12
- var chunkSHQEZ6Q2_cjs = require('./chunk-SHQEZ6Q2.cjs');
11
+ var chunk6AE4QTSF_cjs = require('./chunk-6AE4QTSF.cjs');
12
+ var chunkBVGJXMSB_cjs = require('./chunk-BVGJXMSB.cjs');
13
13
  require('./chunk-BV2MWEMV.cjs');
14
14
  var chunkQMIG7TKG_cjs = require('./chunk-QMIG7TKG.cjs');
15
15
  require('./chunk-BUUUWQMB.cjs');
@@ -62,8 +62,8 @@ var fs = require('fs');
62
62
  // src/agent-factory.ts
63
63
  function createAgentFactory(common) {
64
64
  return {
65
- forSession: (agentId, overrides) => chunkSHQEZ6Q2_cjs.Agent.create(mergeAgentOptions(common, overrides, agentId)),
66
- getOrCreate: (agentId, overrides) => chunkSHQEZ6Q2_cjs.Agent.getOrCreate(agentId, mergeAgentOptions(common, overrides, agentId))
65
+ forSession: (agentId, overrides) => chunkBVGJXMSB_cjs.Agent.create(mergeAgentOptions(common, overrides, agentId)),
66
+ getOrCreate: (agentId, overrides) => chunkBVGJXMSB_cjs.Agent.getOrCreate(agentId, mergeAgentOptions(common, overrides, agentId))
67
67
  };
68
68
  }
69
69
  function mergeAgentOptions(common, overrides, agentId) {
@@ -1167,7 +1167,7 @@ var Memory = {
1167
1167
  return await peer.IndexManager.open(openArgs);
1168
1168
  }
1169
1169
  const { IndexManager } = await import('./index-manager-LEMQ73A7.cjs');
1170
- openArgs.embedding = await resolveEmbedding(opts.embedding, chunkSHQEZ6Q2_cjs.MEMORY_EMBEDDING_ADAPTERS);
1170
+ openArgs.embedding = await resolveEmbedding(opts.embedding, chunkBVGJXMSB_cjs.MEMORY_EMBEDDING_ADAPTERS);
1171
1171
  return await IndexManager.open(openArgs);
1172
1172
  },
1173
1173
  /**
@@ -1178,7 +1178,7 @@ var Memory = {
1178
1178
  */
1179
1179
  async runDreamingSweep(opts) {
1180
1180
  const peer = await tryLoadSdkMemoryPeer();
1181
- const catalog = peer !== null ? peer.MEMORY_EMBEDDING_ADAPTERS : chunkSHQEZ6Q2_cjs.MEMORY_EMBEDDING_ADAPTERS;
1181
+ const catalog = peer !== null ? peer.MEMORY_EMBEDDING_ADAPTERS : chunkBVGJXMSB_cjs.MEMORY_EMBEDDING_ADAPTERS;
1182
1182
  const sweepArgs = await buildDreamingSweepArgs(opts, catalog);
1183
1183
  const result = peer !== null ? (
1184
1184
  // biome-ignore lint/suspicious/noExplicitAny: peer is dynamically loaded — structural compat ensured by sdk-memory
@@ -1600,7 +1600,7 @@ function ehAgenteConstruido(m) {
1600
1600
  return typeof m.send === "function";
1601
1601
  }
1602
1602
  async function materializar(def, indice) {
1603
- const { Agent: Agent2 } = await import('./agent-DB245YMC.cjs');
1603
+ const { Agent: Agent2 } = await import('./agent-OOXJJD6A.cjs');
1604
1604
  return Agent2.create({
1605
1605
  // `AgentDefinition.model` admits the sentinel `'inherit'`, which is not a model id. Inheriting
1606
1606
  // here means "declare nothing and let the default apply" — forwarding the literal would create
@@ -1742,7 +1742,7 @@ var FIXTURE_USER = {
1742
1742
  };
1743
1743
  var FIXTURE_MODELS = [
1744
1744
  {
1745
- id: chunkSHQEZ6Q2_cjs.DEFAULT_AGENTIC_MODEL_ID,
1745
+ id: chunkBVGJXMSB_cjs.DEFAULT_AGENTIC_MODEL_ID,
1746
1746
  name: "Gemini 2.0 Flash",
1747
1747
  displayName: "Gemini 2.0 Flash",
1748
1748
  parameters: [
@@ -1945,7 +1945,7 @@ var Theokit = class {
1945
1945
  envVars: p.envVars
1946
1946
  }));
1947
1947
  },
1948
- embeddingAdapters: () => Object.entries(chunkSHQEZ6Q2_cjs.MEMORY_EMBEDDING_ADAPTERS).map(([id, adapter]) => ({
1948
+ embeddingAdapters: () => Object.entries(chunkBVGJXMSB_cjs.MEMORY_EMBEDDING_ADAPTERS).map(([id, adapter]) => ({
1949
1949
  id,
1950
1950
  transport: adapter.transport,
1951
1951
  defaultModel: adapter.defaultModel
@@ -1977,7 +1977,7 @@ function resolveLocalProviderBaseUrl(providerName, fallback) {
1977
1977
  return fallback;
1978
1978
  }
1979
1979
  async function executeCatalogRequest(request) {
1980
- const apiKey = chunkSHQEZ6Q2_cjs.resolveApiKey(request.apiKey);
1980
+ const apiKey = chunkBVGJXMSB_cjs.resolveApiKey(request.apiKey);
1981
1981
  if (apiKey === void 0) {
1982
1982
  throw new chunkE7WWIX34_cjs.AuthenticationError("Missing API key", { code: "missing_api_key" });
1983
1983
  }
@@ -2103,35 +2103,35 @@ Object.defineProperty(exports, "GenerateObjectError", {
2103
2103
  });
2104
2104
  Object.defineProperty(exports, "Cron", {
2105
2105
  enumerable: true,
2106
- get: function () { return chunkKV3HR7KL_cjs.Cron; }
2106
+ get: function () { return chunk6AE4QTSF_cjs.Cron; }
2107
2107
  });
2108
2108
  Object.defineProperty(exports, "Agent", {
2109
2109
  enumerable: true,
2110
- get: function () { return chunkSHQEZ6Q2_cjs.Agent; }
2110
+ get: function () { return chunkBVGJXMSB_cjs.Agent; }
2111
2111
  });
2112
2112
  Object.defineProperty(exports, "AgentBuilder", {
2113
2113
  enumerable: true,
2114
- get: function () { return chunkSHQEZ6Q2_cjs.AgentBuilder; }
2114
+ get: function () { return chunkBVGJXMSB_cjs.AgentBuilder; }
2115
2115
  });
2116
2116
  Object.defineProperty(exports, "Tool", {
2117
2117
  enumerable: true,
2118
- get: function () { return chunkSHQEZ6Q2_cjs.Tool; }
2118
+ get: function () { return chunkBVGJXMSB_cjs.Tool; }
2119
2119
  });
2120
2120
  Object.defineProperty(exports, "ToolError", {
2121
2121
  enumerable: true,
2122
- get: function () { return chunkSHQEZ6Q2_cjs.ToolError; }
2122
+ get: function () { return chunkBVGJXMSB_cjs.ToolError; }
2123
2123
  });
2124
2124
  Object.defineProperty(exports, "UsageAccumulator", {
2125
2125
  enumerable: true,
2126
- get: function () { return chunkSHQEZ6Q2_cjs.UsageAccumulator; }
2126
+ get: function () { return chunkBVGJXMSB_cjs.UsageAccumulator; }
2127
2127
  });
2128
2128
  Object.defineProperty(exports, "computeCost", {
2129
2129
  enumerable: true,
2130
- get: function () { return chunkSHQEZ6Q2_cjs.computeCost; }
2130
+ get: function () { return chunkBVGJXMSB_cjs.computeCost; }
2131
2131
  });
2132
2132
  Object.defineProperty(exports, "getPricingEntry", {
2133
2133
  enumerable: true,
2134
- get: function () { return chunkSHQEZ6Q2_cjs.getPricingEntry; }
2134
+ get: function () { return chunkBVGJXMSB_cjs.getPricingEntry; }
2135
2135
  });
2136
2136
  Object.defineProperty(exports, "emitRunEvent", {
2137
2137
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -1,13 +1,13 @@
1
- import { T as TheokitAgentError, B as BudgetOptions, a as BudgetHandle, b as BudgetSnapshot, E as ErrorMetadata } from './errors-DMY-gLSK.cjs';
2
- export { A as AgentDisposedError, c as AgentRunError, d as AgentRunErrorCode, e as AuthenticationError, f as BudgetExceedEvent, g as BudgetExceededError, h as BudgetLimit, i as BudgetMode, j as BudgetScope, k as BudgetThresholdEvent, l as BudgetWindow, C as ConfigurationError, m as ErrorCode, I as IntegrationNotConnectedError, n as InvalidTaskIdError, M as MemoryAdapterError, o as MemoryAdapterErrorCode, N as NetworkError, R as RateLimitError, p as TaskNotFoundError, U as UnknownAgentError, q as UnsupportedBudgetOperationError, r as UnsupportedRunOperationError, s as UnsupportedTaskOperationError, t as isTransientError } from './errors-DMY-gLSK.cjs';
3
- import { A as AgentOptions, L as LocalOptions, P as ProviderRoutingSettings, S as SystemPromptResolver, C as CloudOptions, M as MemorySettings, a as AgentDefinition, b as ContextSettings, c as PluginsSettings, d as SkillsSettings, e as SDKAgent, f as ListAgentsOptions, g as ListResult, h as SDKAgentInfo, G as GetAgentOptions, i as ListRunsOptions, j as GetRunOptions, k as AgentOperationOptions, l as AgentDescription, m as Plugin$1, n as ProviderProfile, I as InlineSkill, J as JudgeResult, o as GoalOptions, p as GoalEvent, q as GoalResult, B as BudgetTracker, r as MemoryProvider, s as MemoryId, t as PreToolCallDecision, u as SDKProvider } from './agent-D7bRK9Kg.cjs';
4
- export { v as ActiveMemoryPassArgs, w as ActiveMemoryPassResult, x as AgentMemory, y as AgentSubagentDescription, z as AgentToolDescription, D as BudgetCheck, E as BudgetTotal, F as BudgetUsageEvent, H as CloudEnv, K as CloudRepo, N as ContextBudget, O as ContextManagerKind, Q as ContextSnapshot, R as ContextSource, T as ContextSourceStatus, U as CreateSkillSpec, V as HookName, W as InvalidateCacheOptions, X as MemoryAdapter, Y as MemoryAdapterCapabilities, Z as MemoryContext, _ as MemoryFact, $ as MemoryProviderHandle, a0 as MemoryProviderInitOptions, a1 as MemoryRevision, a2 as MemoryToolSchema, a3 as MemoryTurnMessage, a4 as PersonalityPreset, a5 as PluginContext, a6 as PostAssistantReplyContext, a7 as PostToolCallContext, a8 as PreToolCallContext, a9 as PreUserSendContext, aa as PreUserSendResult, ab as ProviderCapability, ac as ProviderRoute, ad as ProviderTransform, ae as ProviderTransformContext, af as RecordSessionSummaryArgs, ag as ResolvedProviderRoute, ah as RunUntilIterator, ai as SDKAgentPlugins, aj as SDKAgentSkillDetail, ak as SDKAgentSkills, al as SDKArtifact, am as SDKContextManager, an as SDKPluginMetadata, ao as SDKProvidersManager, ap as SessionLifecycleContext, aq as SessionRecord, ar as SessionStore, as as SettingSource, at as Skill, au as SkillsResolver, av as SkillsResolverContext, aw as SystemPromptContext, ax as SystemPromptMemoryFact, ay as SystemPromptSkillRef, az as TelemetrySettings, aA as ToolCallSummary, aB as ToolResultTransformContext, aC as TransformContext, aD as Verdict } from './agent-D7bRK9Kg.cjs';
5
- import { R as RunResult, M as ModelSelection, C as CustomTool, a as McpServerConfig, T as ToolResultContentBlock, b as Run, P as Processor, c as PermissionMode, d as PermissionEngine, e as RunEventSink, S as SDKMessage } from './run-i2-fUohR.cjs';
6
- export { A as AgentConversationTurn, f as AssistantMessage, g as CompletionCheck, h as CompletionCheckResult, i as ConversationStep, j as ConversationTurn, k as CostBreakdown, l as CostSource, m as CostStatus, D as DoomLoopThresholds, G as GenerateOptions, n as GenerateRunResult, I as ImageBlock, o as InputProcessorContext, p as InteractionUpdate, q as McpAuthConfig, r as McpHttpServerConfig, s as McpOAuthConfig, t as McpStdioServerConfig, u as MessageOrigin, v as ModelParameterValue, O as OutputProcessorContext, w as PartialToolCallUpdate, x as PermissionAction, y as PermissionEngineOptions, z as PermissionRule, B as ProcessorControls, E as ProcessorTripwire, F as ProcessorViolation, H as RunCompactBoundaryEvent, J as RunCompletionCheckEvent, K as RunErrorDetail, L as RunEvent, N as RunGitInfo, Q as RunOperation, U as RunPermissionDeniedEvent, V as RunRateLimitEvent, W as RunStatus, X as RunTaskCompletedEvent, Y as RunTaskStartedEvent, Z as RunTaskUpdatedEvent, _ as RunTimelineEvent, $ as RunToCompletionOptions, a0 as RunToCompletionResult, a1 as RunToolProgressEvent, a2 as RunTripwireEvent, a3 as SDKAssistantMessage, a4 as SDKImage, a5 as SDKImageDimension, a6 as SDKObjectDelta, a7 as SDKRequestMessage, a8 as SDKStatusMessage, a9 as SDKSystemMessage, aa as SDKTaskMessage, ab as SDKThinkingMessage, ac as SDKToolUseMessage, ad as SDKUserMessage, ae as SDKUserMessageEvent, af as SendOptions, ag as ShellCommand, ah as ShellConversationTurn, ai as ShellOutput, aj as ShellOutputDeltaUpdate, ak as StepCompletedUpdate, al as StepStartedUpdate, am as StreamToCompletionResult, an as SummaryCompletedUpdate, ao as SummaryStartedUpdate, ap as SummaryUpdate, aq as TextBlock, ar as TextDeltaUpdate, as as ThinkingCompletedUpdate, at as ThinkingDeltaUpdate, au as ThinkingMessage, av as TokenDeltaUpdate, aw as TokenUsage, ax as ToolCall, ay as ToolCallCompletedUpdate, az as ToolCallStartedUpdate, aA as ToolContextMessage, aB as ToolResult, aC as ToolResultGuardOptions, aD as ToolUseBlock, aE as TurnEndedUpdate, aF as UserMessage, aG as UserMessageAppendedUpdate, aH as applyMode, aI as emitRunEvent } from './run-i2-fUohR.cjs';
1
+ import { T as TheokitAgentError, B as BudgetOptions, a as BudgetHandle, b as BudgetSnapshot, E as ErrorMetadata } from './errors-L1bxHHO0.cjs';
2
+ export { A as AgentDisposedError, c as AgentRunError, d as AgentRunErrorCode, e as AuthenticationError, f as BudgetExceedEvent, g as BudgetExceededError, h as BudgetLimit, i as BudgetMode, j as BudgetScope, k as BudgetThresholdEvent, l as BudgetWindow, C as ConfigurationError, m as ErrorCode, I as IntegrationNotConnectedError, n as InvalidTaskIdError, M as MemoryAdapterError, o as MemoryAdapterErrorCode, N as NetworkError, R as RateLimitError, p as TaskNotFoundError, U as UnknownAgentError, q as UnsupportedBudgetOperationError, r as UnsupportedRunOperationError, s as UnsupportedTaskOperationError, t as isTransientError } from './errors-L1bxHHO0.cjs';
3
+ import { A as AgentOptions, L as LocalOptions, P as ProviderRoutingSettings, S as SystemPromptResolver, C as CloudOptions, M as MemorySettings, a as AgentDefinition, b as ContextSettings, c as PluginsSettings, d as SkillsSettings, e as SDKAgent, f as ListAgentsOptions, g as ListResult, h as SDKAgentInfo, G as GetAgentOptions, i as ListRunsOptions, j as GetRunOptions, k as AgentOperationOptions, l as AgentDescription, m as Plugin$1, n as ProviderProfile, I as InlineSkill, J as JudgeResult, o as GoalOptions, p as GoalEvent, q as GoalResult, B as BudgetTracker, r as MemoryProvider, s as MemoryId, t as PreToolCallDecision, u as SDKProvider } from './agent-DxEL4fHh.cjs';
4
+ export { v as ActiveMemoryPassArgs, w as ActiveMemoryPassResult, x as AgentMemory, y as AgentSubagentDescription, z as AgentToolDescription, D as BudgetCheck, E as BudgetTotal, F as BudgetUsageEvent, H as CloudEnv, K as CloudRepo, N as ContextBudget, O as ContextManagerKind, Q as ContextSnapshot, R as ContextSource, T as ContextSourceStatus, U as CreateSkillSpec, V as HookName, W as InvalidateCacheOptions, X as MemoryAdapter, Y as MemoryAdapterCapabilities, Z as MemoryContext, _ as MemoryFact, $ as MemoryProviderHandle, a0 as MemoryProviderInitOptions, a1 as MemoryRevision, a2 as MemoryToolSchema, a3 as MemoryTurnMessage, a4 as PersonalityPreset, a5 as PluginContext, a6 as PostAssistantReplyContext, a7 as PostToolCallContext, a8 as PreToolCallContext, a9 as PreUserSendContext, aa as PreUserSendResult, ab as ProviderCapability, ac as ProviderRoute, ad as ProviderTransform, ae as ProviderTransformContext, af as RecordSessionSummaryArgs, ag as ResolvedProviderRoute, ah as RunUntilIterator, ai as SDKAgentPlugins, aj as SDKAgentSkillDetail, ak as SDKAgentSkills, al as SDKArtifact, am as SDKContextManager, an as SDKPluginMetadata, ao as SDKProvidersManager, ap as SessionLifecycleContext, aq as SessionRecord, ar as SessionStore, as as SettingSource, at as Skill, au as SkillsResolver, av as SkillsResolverContext, aw as SystemPromptContext, ax as SystemPromptMemoryFact, ay as SystemPromptSkillRef, az as TelemetrySettings, aA as ToolCallSummary, aB as ToolResultTransformContext, aC as TransformContext, aD as Verdict } from './agent-DxEL4fHh.cjs';
5
+ import { R as RunResult, M as ModelSelection, C as CustomTool, a as McpServerConfig, T as ToolResultContentBlock, b as Run, P as Processor, c as PermissionMode, d as PermissionEngine, e as RunEventSink, S as SDKMessage } from './run-XXnwwGOT.cjs';
6
+ export { A as AgentConversationTurn, f as AssistantMessage, g as CompletionCheck, h as CompletionCheckResult, i as ConversationStep, j as ConversationTurn, k as CostBreakdown, l as CostSource, m as CostStatus, D as DoomLoopThresholds, G as GenerateOptions, n as GenerateRunResult, I as ImageBlock, o as InputProcessorContext, p as InteractionUpdate, q as McpAuthConfig, r as McpHttpServerConfig, s as McpOAuthConfig, t as McpStdioServerConfig, u as MessageOrigin, v as ModelParameterValue, O as OutputProcessorContext, w as PartialToolCallUpdate, x as PermissionAction, y as PermissionEngineOptions, z as PermissionRule, B as ProcessorControls, E as ProcessorTripwire, F as ProcessorViolation, H as RunCompactBoundaryEvent, J as RunCompletionCheckEvent, K as RunErrorDetail, L as RunEvent, N as RunGitInfo, Q as RunOperation, U as RunPermissionDeniedEvent, V as RunRateLimitEvent, W as RunStatus, X as RunTaskCompletedEvent, Y as RunTaskStartedEvent, Z as RunTaskUpdatedEvent, _ as RunTimelineEvent, $ as RunToCompletionOptions, a0 as RunToCompletionResult, a1 as RunToolProgressEvent, a2 as RunTripwireEvent, a3 as SDKAssistantMessage, a4 as SDKImage, a5 as SDKImageDimension, a6 as SDKObjectDelta, a7 as SDKRequestMessage, a8 as SDKStatusMessage, a9 as SDKSystemMessage, aa as SDKTaskMessage, ab as SDKThinkingMessage, ac as SDKToolUseMessage, ad as SDKUserMessage, ae as SDKUserMessageEvent, af as SendOptions, ag as ShellCommand, ah as ShellConversationTurn, ai as ShellOutput, aj as ShellOutputDeltaUpdate, ak as StepCompletedUpdate, al as StepStartedUpdate, am as StreamToCompletionResult, an as SummaryCompletedUpdate, ao as SummaryStartedUpdate, ap as SummaryUpdate, aq as TextBlock, ar as TextDeltaUpdate, as as ThinkingCompletedUpdate, at as ThinkingDeltaUpdate, au as ThinkingMessage, av as TokenDeltaUpdate, aw as TokenUsage, ax as ToolCall, ay as ToolCallCompletedUpdate, az as ToolCallStartedUpdate, aA as ToolContextMessage, aB as ToolResult, aC as ToolResultGuardOptions, aD as ToolUseBlock, aE as TurnEndedUpdate, aF as UserMessage, aG as UserMessageAppendedUpdate, aH as applyMode, aI as emitRunEvent } from './run-XXnwwGOT.cjs';
7
7
  import * as zod from 'zod';
8
8
  import { ZodType, z } from 'zod';
9
- import { S as StepResult } from './cron-D-DVjGQe.cjs';
10
- export { C as Cron, a as CronCreateOptions, b as CronGetOptions, c as CronJob, d as CronJobStatus, e as CronListOptions, f as CronOperationOptions, g as CronRunOptions, h as CronRuntime, i as CronSchedulerStatus, j as CronStartOptions } from './cron-D-DVjGQe.cjs';
9
+ import { S as StepResult } from './cron-BGR0HOz9.cjs';
10
+ export { C as Cron, a as CronCreateOptions, b as CronGetOptions, c as CronJob, d as CronJobStatus, e as CronListOptions, f as CronOperationOptions, g as CronRunOptions, h as CronRuntime, i as CronSchedulerStatus, j as CronStartOptions } from './cron-BGR0HOz9.cjs';
11
11
 
12
12
  /**
13
13
  * Public compaction / context-management helpers (M2-1, extended V3-3).
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- import { T as TheokitAgentError, B as BudgetOptions, a as BudgetHandle, b as BudgetSnapshot, E as ErrorMetadata } from './errors-DjBQ4Tn8.js';
2
- export { A as AgentDisposedError, c as AgentRunError, d as AgentRunErrorCode, e as AuthenticationError, f as BudgetExceedEvent, g as BudgetExceededError, h as BudgetLimit, i as BudgetMode, j as BudgetScope, k as BudgetThresholdEvent, l as BudgetWindow, C as ConfigurationError, m as ErrorCode, I as IntegrationNotConnectedError, n as InvalidTaskIdError, M as MemoryAdapterError, o as MemoryAdapterErrorCode, N as NetworkError, R as RateLimitError, p as TaskNotFoundError, U as UnknownAgentError, q as UnsupportedBudgetOperationError, r as UnsupportedRunOperationError, s as UnsupportedTaskOperationError, t as isTransientError } from './errors-DjBQ4Tn8.js';
3
- import { A as AgentOptions, L as LocalOptions, P as ProviderRoutingSettings, S as SystemPromptResolver, C as CloudOptions, M as MemorySettings, a as AgentDefinition, b as ContextSettings, c as PluginsSettings, d as SkillsSettings, e as SDKAgent, f as ListAgentsOptions, g as ListResult, h as SDKAgentInfo, G as GetAgentOptions, i as ListRunsOptions, j as GetRunOptions, k as AgentOperationOptions, l as AgentDescription, m as Plugin$1, n as ProviderProfile, I as InlineSkill, J as JudgeResult, o as GoalOptions, p as GoalEvent, q as GoalResult, B as BudgetTracker, r as MemoryProvider, s as MemoryId, t as PreToolCallDecision, u as SDKProvider } from './agent-ZCZa7YQv.js';
4
- export { v as ActiveMemoryPassArgs, w as ActiveMemoryPassResult, x as AgentMemory, y as AgentSubagentDescription, z as AgentToolDescription, D as BudgetCheck, E as BudgetTotal, F as BudgetUsageEvent, H as CloudEnv, K as CloudRepo, N as ContextBudget, O as ContextManagerKind, Q as ContextSnapshot, R as ContextSource, T as ContextSourceStatus, U as CreateSkillSpec, V as HookName, W as InvalidateCacheOptions, X as MemoryAdapter, Y as MemoryAdapterCapabilities, Z as MemoryContext, _ as MemoryFact, $ as MemoryProviderHandle, a0 as MemoryProviderInitOptions, a1 as MemoryRevision, a2 as MemoryToolSchema, a3 as MemoryTurnMessage, a4 as PersonalityPreset, a5 as PluginContext, a6 as PostAssistantReplyContext, a7 as PostToolCallContext, a8 as PreToolCallContext, a9 as PreUserSendContext, aa as PreUserSendResult, ab as ProviderCapability, ac as ProviderRoute, ad as ProviderTransform, ae as ProviderTransformContext, af as RecordSessionSummaryArgs, ag as ResolvedProviderRoute, ah as RunUntilIterator, ai as SDKAgentPlugins, aj as SDKAgentSkillDetail, ak as SDKAgentSkills, al as SDKArtifact, am as SDKContextManager, an as SDKPluginMetadata, ao as SDKProvidersManager, ap as SessionLifecycleContext, aq as SessionRecord, ar as SessionStore, as as SettingSource, at as Skill, au as SkillsResolver, av as SkillsResolverContext, aw as SystemPromptContext, ax as SystemPromptMemoryFact, ay as SystemPromptSkillRef, az as TelemetrySettings, aA as ToolCallSummary, aB as ToolResultTransformContext, aC as TransformContext, aD as Verdict } from './agent-ZCZa7YQv.js';
5
- import { R as RunResult, M as ModelSelection, C as CustomTool, a as McpServerConfig, T as ToolResultContentBlock, b as Run, P as Processor, c as PermissionMode, d as PermissionEngine, e as RunEventSink, S as SDKMessage } from './run-i2-fUohR.js';
6
- export { A as AgentConversationTurn, f as AssistantMessage, g as CompletionCheck, h as CompletionCheckResult, i as ConversationStep, j as ConversationTurn, k as CostBreakdown, l as CostSource, m as CostStatus, D as DoomLoopThresholds, G as GenerateOptions, n as GenerateRunResult, I as ImageBlock, o as InputProcessorContext, p as InteractionUpdate, q as McpAuthConfig, r as McpHttpServerConfig, s as McpOAuthConfig, t as McpStdioServerConfig, u as MessageOrigin, v as ModelParameterValue, O as OutputProcessorContext, w as PartialToolCallUpdate, x as PermissionAction, y as PermissionEngineOptions, z as PermissionRule, B as ProcessorControls, E as ProcessorTripwire, F as ProcessorViolation, H as RunCompactBoundaryEvent, J as RunCompletionCheckEvent, K as RunErrorDetail, L as RunEvent, N as RunGitInfo, Q as RunOperation, U as RunPermissionDeniedEvent, V as RunRateLimitEvent, W as RunStatus, X as RunTaskCompletedEvent, Y as RunTaskStartedEvent, Z as RunTaskUpdatedEvent, _ as RunTimelineEvent, $ as RunToCompletionOptions, a0 as RunToCompletionResult, a1 as RunToolProgressEvent, a2 as RunTripwireEvent, a3 as SDKAssistantMessage, a4 as SDKImage, a5 as SDKImageDimension, a6 as SDKObjectDelta, a7 as SDKRequestMessage, a8 as SDKStatusMessage, a9 as SDKSystemMessage, aa as SDKTaskMessage, ab as SDKThinkingMessage, ac as SDKToolUseMessage, ad as SDKUserMessage, ae as SDKUserMessageEvent, af as SendOptions, ag as ShellCommand, ah as ShellConversationTurn, ai as ShellOutput, aj as ShellOutputDeltaUpdate, ak as StepCompletedUpdate, al as StepStartedUpdate, am as StreamToCompletionResult, an as SummaryCompletedUpdate, ao as SummaryStartedUpdate, ap as SummaryUpdate, aq as TextBlock, ar as TextDeltaUpdate, as as ThinkingCompletedUpdate, at as ThinkingDeltaUpdate, au as ThinkingMessage, av as TokenDeltaUpdate, aw as TokenUsage, ax as ToolCall, ay as ToolCallCompletedUpdate, az as ToolCallStartedUpdate, aA as ToolContextMessage, aB as ToolResult, aC as ToolResultGuardOptions, aD as ToolUseBlock, aE as TurnEndedUpdate, aF as UserMessage, aG as UserMessageAppendedUpdate, aH as applyMode, aI as emitRunEvent } from './run-i2-fUohR.js';
1
+ import { T as TheokitAgentError, B as BudgetOptions, a as BudgetHandle, b as BudgetSnapshot, E as ErrorMetadata } from './errors-DxQe4_Qy.js';
2
+ export { A as AgentDisposedError, c as AgentRunError, d as AgentRunErrorCode, e as AuthenticationError, f as BudgetExceedEvent, g as BudgetExceededError, h as BudgetLimit, i as BudgetMode, j as BudgetScope, k as BudgetThresholdEvent, l as BudgetWindow, C as ConfigurationError, m as ErrorCode, I as IntegrationNotConnectedError, n as InvalidTaskIdError, M as MemoryAdapterError, o as MemoryAdapterErrorCode, N as NetworkError, R as RateLimitError, p as TaskNotFoundError, U as UnknownAgentError, q as UnsupportedBudgetOperationError, r as UnsupportedRunOperationError, s as UnsupportedTaskOperationError, t as isTransientError } from './errors-DxQe4_Qy.js';
3
+ import { A as AgentOptions, L as LocalOptions, P as ProviderRoutingSettings, S as SystemPromptResolver, C as CloudOptions, M as MemorySettings, a as AgentDefinition, b as ContextSettings, c as PluginsSettings, d as SkillsSettings, e as SDKAgent, f as ListAgentsOptions, g as ListResult, h as SDKAgentInfo, G as GetAgentOptions, i as ListRunsOptions, j as GetRunOptions, k as AgentOperationOptions, l as AgentDescription, m as Plugin$1, n as ProviderProfile, I as InlineSkill, J as JudgeResult, o as GoalOptions, p as GoalEvent, q as GoalResult, B as BudgetTracker, r as MemoryProvider, s as MemoryId, t as PreToolCallDecision, u as SDKProvider } from './agent-BzZwYFiw.js';
4
+ export { v as ActiveMemoryPassArgs, w as ActiveMemoryPassResult, x as AgentMemory, y as AgentSubagentDescription, z as AgentToolDescription, D as BudgetCheck, E as BudgetTotal, F as BudgetUsageEvent, H as CloudEnv, K as CloudRepo, N as ContextBudget, O as ContextManagerKind, Q as ContextSnapshot, R as ContextSource, T as ContextSourceStatus, U as CreateSkillSpec, V as HookName, W as InvalidateCacheOptions, X as MemoryAdapter, Y as MemoryAdapterCapabilities, Z as MemoryContext, _ as MemoryFact, $ as MemoryProviderHandle, a0 as MemoryProviderInitOptions, a1 as MemoryRevision, a2 as MemoryToolSchema, a3 as MemoryTurnMessage, a4 as PersonalityPreset, a5 as PluginContext, a6 as PostAssistantReplyContext, a7 as PostToolCallContext, a8 as PreToolCallContext, a9 as PreUserSendContext, aa as PreUserSendResult, ab as ProviderCapability, ac as ProviderRoute, ad as ProviderTransform, ae as ProviderTransformContext, af as RecordSessionSummaryArgs, ag as ResolvedProviderRoute, ah as RunUntilIterator, ai as SDKAgentPlugins, aj as SDKAgentSkillDetail, ak as SDKAgentSkills, al as SDKArtifact, am as SDKContextManager, an as SDKPluginMetadata, ao as SDKProvidersManager, ap as SessionLifecycleContext, aq as SessionRecord, ar as SessionStore, as as SettingSource, at as Skill, au as SkillsResolver, av as SkillsResolverContext, aw as SystemPromptContext, ax as SystemPromptMemoryFact, ay as SystemPromptSkillRef, az as TelemetrySettings, aA as ToolCallSummary, aB as ToolResultTransformContext, aC as TransformContext, aD as Verdict } from './agent-BzZwYFiw.js';
5
+ import { R as RunResult, M as ModelSelection, C as CustomTool, a as McpServerConfig, T as ToolResultContentBlock, b as Run, P as Processor, c as PermissionMode, d as PermissionEngine, e as RunEventSink, S as SDKMessage } from './run-XXnwwGOT.js';
6
+ export { A as AgentConversationTurn, f as AssistantMessage, g as CompletionCheck, h as CompletionCheckResult, i as ConversationStep, j as ConversationTurn, k as CostBreakdown, l as CostSource, m as CostStatus, D as DoomLoopThresholds, G as GenerateOptions, n as GenerateRunResult, I as ImageBlock, o as InputProcessorContext, p as InteractionUpdate, q as McpAuthConfig, r as McpHttpServerConfig, s as McpOAuthConfig, t as McpStdioServerConfig, u as MessageOrigin, v as ModelParameterValue, O as OutputProcessorContext, w as PartialToolCallUpdate, x as PermissionAction, y as PermissionEngineOptions, z as PermissionRule, B as ProcessorControls, E as ProcessorTripwire, F as ProcessorViolation, H as RunCompactBoundaryEvent, J as RunCompletionCheckEvent, K as RunErrorDetail, L as RunEvent, N as RunGitInfo, Q as RunOperation, U as RunPermissionDeniedEvent, V as RunRateLimitEvent, W as RunStatus, X as RunTaskCompletedEvent, Y as RunTaskStartedEvent, Z as RunTaskUpdatedEvent, _ as RunTimelineEvent, $ as RunToCompletionOptions, a0 as RunToCompletionResult, a1 as RunToolProgressEvent, a2 as RunTripwireEvent, a3 as SDKAssistantMessage, a4 as SDKImage, a5 as SDKImageDimension, a6 as SDKObjectDelta, a7 as SDKRequestMessage, a8 as SDKStatusMessage, a9 as SDKSystemMessage, aa as SDKTaskMessage, ab as SDKThinkingMessage, ac as SDKToolUseMessage, ad as SDKUserMessage, ae as SDKUserMessageEvent, af as SendOptions, ag as ShellCommand, ah as ShellConversationTurn, ai as ShellOutput, aj as ShellOutputDeltaUpdate, ak as StepCompletedUpdate, al as StepStartedUpdate, am as StreamToCompletionResult, an as SummaryCompletedUpdate, ao as SummaryStartedUpdate, ap as SummaryUpdate, aq as TextBlock, ar as TextDeltaUpdate, as as ThinkingCompletedUpdate, at as ThinkingDeltaUpdate, au as ThinkingMessage, av as TokenDeltaUpdate, aw as TokenUsage, ax as ToolCall, ay as ToolCallCompletedUpdate, az as ToolCallStartedUpdate, aA as ToolContextMessage, aB as ToolResult, aC as ToolResultGuardOptions, aD as ToolUseBlock, aE as TurnEndedUpdate, aF as UserMessage, aG as UserMessageAppendedUpdate, aH as applyMode, aI as emitRunEvent } from './run-XXnwwGOT.js';
7
7
  import * as zod from 'zod';
8
8
  import { ZodType, z } from 'zod';
9
- import { S as StepResult } from './cron-Bx7tzm5R.js';
10
- export { C as Cron, a as CronCreateOptions, b as CronGetOptions, c as CronJob, d as CronJobStatus, e as CronListOptions, f as CronOperationOptions, g as CronRunOptions, h as CronRuntime, i as CronSchedulerStatus, j as CronStartOptions } from './cron-Bx7tzm5R.js';
9
+ import { S as StepResult } from './cron-CDAIWCrL.js';
10
+ export { C as Cron, a as CronCreateOptions, b as CronGetOptions, c as CronJob, d as CronJobStatus, e as CronListOptions, f as CronOperationOptions, g as CronRunOptions, h as CronRuntime, i as CronSchedulerStatus, j as CronStartOptions } from './cron-CDAIWCrL.js';
11
11
 
12
12
  /**
13
13
  * Public compaction / context-management helpers (M2-1, extended V3-3).
package/dist/index.js CHANGED
@@ -6,9 +6,9 @@ import './chunk-4HKAZRTC.js';
6
6
  import { Workflow, agentStep } from './chunk-WJOLIPEM.js';
7
7
  import './chunk-NHXPQN44.js';
8
8
  import './chunk-CAH3G4IS.js';
9
- export { Cron } from './chunk-P3ZVI46Y.js';
10
- import { MEMORY_EMBEDDING_ADAPTERS, resolveApiKey, DEFAULT_AGENTIC_MODEL_ID, Agent } from './chunk-SGGH3B2W.js';
11
- export { Agent, AgentBuilder, Tool, ToolError, UsageAccumulator, computeCost, getPricingEntry } from './chunk-SGGH3B2W.js';
9
+ export { Cron } from './chunk-2UBBO2MD.js';
10
+ import { MEMORY_EMBEDDING_ADAPTERS, resolveApiKey, DEFAULT_AGENTIC_MODEL_ID, Agent } from './chunk-ZRQZOJ3N.js';
11
+ export { Agent, AgentBuilder, Tool, ToolError, UsageAccumulator, computeCost, getPricingEntry } from './chunk-ZRQZOJ3N.js';
12
12
  import './chunk-2SFBB54R.js';
13
13
  import { configure, submit, list, get, cancel, subscribe } from './chunk-UIPTINIF.js';
14
14
  export { emitRunEvent } from './chunk-UIPTINIF.js';
@@ -1603,7 +1603,7 @@ function ehAgenteConstruido(m) {
1603
1603
  return typeof m.send === "function";
1604
1604
  }
1605
1605
  async function materializar(def, indice) {
1606
- const { Agent: Agent2 } = await import('./agent-UNWZCXBS.js');
1606
+ const { Agent: Agent2 } = await import('./agent-MSR3DHO4.js');
1607
1607
  return Agent2.create({
1608
1608
  // `AgentDefinition.model` admits the sentinel `'inherit'`, which is not a model id. Inheriting
1609
1609
  // here means "declare nothing and let the default apply" — forwarding the literal would create
@@ -1573,6 +1573,21 @@ interface CompletionCheckResult {
1573
1573
  type RunTimelineEvent = {
1574
1574
  kind: "message";
1575
1575
  message: SDKMessage;
1576
+ /**
1577
+ * theokit#140 - `true` when this message's TEXT content already crossed the timeline as
1578
+ * `kind: "delta"` events. Absent when the question does not apply (no text to duplicate).
1579
+ *
1580
+ * Unifying the source fixed ordering and the `callId` namespace; it did NOT stop the same
1581
+ * text arriving twice, because the run's event log carries the complete assistant message and
1582
+ * the deltas are additional. Without this field a consumer has to infer the relation by
1583
+ * COMPARING TEXT - which is where the `callId`-namespace and timestamp-fallback bugs came
1584
+ * from. The SDK emitted the deltas and emits the message from the same scope, so it knows the
1585
+ * answer as a fact; stating it replaces the inference with a boolean.
1586
+ *
1587
+ * Marked rather than suppressed: the message also carries tool calls and metadata, so
1588
+ * dropping it would trade a duplicate for a hole. Optional, so no existing consumer breaks.
1589
+ */
1590
+ textAlreadyStreamed?: boolean;
1576
1591
  } | {
1577
1592
  kind: "delta";
1578
1593
  update: InteractionUpdate;
@@ -1573,6 +1573,21 @@ interface CompletionCheckResult {
1573
1573
  type RunTimelineEvent = {
1574
1574
  kind: "message";
1575
1575
  message: SDKMessage;
1576
+ /**
1577
+ * theokit#140 - `true` when this message's TEXT content already crossed the timeline as
1578
+ * `kind: "delta"` events. Absent when the question does not apply (no text to duplicate).
1579
+ *
1580
+ * Unifying the source fixed ordering and the `callId` namespace; it did NOT stop the same
1581
+ * text arriving twice, because the run's event log carries the complete assistant message and
1582
+ * the deltas are additional. Without this field a consumer has to infer the relation by
1583
+ * COMPARING TEXT - which is where the `callId`-namespace and timestamp-fallback bugs came
1584
+ * from. The SDK emitted the deltas and emits the message from the same scope, so it knows the
1585
+ * answer as a fact; stating it replaces the inference with a boolean.
1586
+ *
1587
+ * Marked rather than suppressed: the message also carries tool calls and metadata, so
1588
+ * dropping it would trade a duplicate for a hole. Optional, so no existing consumer breaks.
1589
+ */
1590
+ textAlreadyStreamed?: boolean;
1576
1591
  } | {
1577
1592
  kind: "delta";
1578
1593
  update: InteractionUpdate;
@@ -1,6 +1,6 @@
1
- import { T as TheokitAgentError } from '../errors-DMY-gLSK.cjs';
2
- export { M as MemoryAdapterError } from '../errors-DMY-gLSK.cjs';
3
- import '../run-i2-fUohR.cjs';
1
+ import { T as TheokitAgentError } from '../errors-L1bxHHO0.cjs';
2
+ export { M as MemoryAdapterError } from '../errors-L1bxHHO0.cjs';
3
+ import '../run-XXnwwGOT.cjs';
4
4
  import 'zod';
5
5
 
6
6
  /**
@@ -1,6 +1,6 @@
1
- import { T as TheokitAgentError } from '../errors-DjBQ4Tn8.js';
2
- export { M as MemoryAdapterError } from '../errors-DjBQ4Tn8.js';
3
- import '../run-i2-fUohR.js';
1
+ import { T as TheokitAgentError } from '../errors-DxQe4_Qy.js';
2
+ export { M as MemoryAdapterError } from '../errors-DxQe4_Qy.js';
3
+ import '../run-XXnwwGOT.js';
4
4
  import 'zod';
5
5
 
6
6
  /**
@@ -1,5 +1,5 @@
1
- import { a as AgentDefinition } from './agent-D7bRK9Kg.cjs';
2
- import './run-i2-fUohR.cjs';
1
+ import { a as AgentDefinition } from './agent-DxEL4fHh.cjs';
2
+ import './run-XXnwwGOT.cjs';
3
3
  import 'zod';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { a as AgentDefinition } from './agent-ZCZa7YQv.js';
2
- import './run-i2-fUohR.js';
1
+ import { a as AgentDefinition } from './agent-BzZwYFiw.js';
2
+ import './run-XXnwwGOT.js';
3
3
  import 'zod';
4
4
 
5
5
  /**
@@ -533,6 +533,21 @@ export interface CompletionCheckResult {
533
533
  export type RunTimelineEvent = {
534
534
  kind: "message";
535
535
  message: SDKMessage;
536
+ /**
537
+ * theokit#140 - `true` when this message's TEXT content already crossed the timeline as
538
+ * `kind: "delta"` events. Absent when the question does not apply (no text to duplicate).
539
+ *
540
+ * Unifying the source fixed ordering and the `callId` namespace; it did NOT stop the same
541
+ * text arriving twice, because the run's event log carries the complete assistant message and
542
+ * the deltas are additional. Without this field a consumer has to infer the relation by
543
+ * COMPARING TEXT - which is where the `callId`-namespace and timestamp-fallback bugs came
544
+ * from. The SDK emitted the deltas and emits the message from the same scope, so it knows the
545
+ * answer as a fact; stating it replaces the inference with a boolean.
546
+ *
547
+ * Marked rather than suppressed: the message also carries tool calls and metadata, so
548
+ * dropping it would trade a duplicate for a hole. Optional, so no existing consumer breaks.
549
+ */
550
+ textAlreadyStreamed?: boolean;
536
551
  } | {
537
552
  kind: "delta";
538
553
  update: import("./updates.js").InteractionUpdate;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theokit/sdk",
3
- "version": "4.39.4",
3
+ "version": "4.40.0",
4
4
  "description": "TypeScript SDK for the Theo agent harness — same surface, local or cloud.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/usetheodev/theokit-sdk#readme",