@theokit/sdk 3.2.3 → 3.3.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.
@@ -1,4 +1,4 @@
1
- import { H as RunOperation } from './run-CrHz9BAP.js';
1
+ import { Q as RunOperation } from './run-CL5Rw6a5.js';
2
2
 
3
3
  /**
4
4
  * Public type contract for the Budget enforcement primitive
@@ -1,4 +1,4 @@
1
- import { H as RunOperation } from './run-CrHz9BAP.cjs';
1
+ import { Q as RunOperation } from './run-CL5Rw6a5.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-jxK4yfp5.cjs';
2
- import './run-CrHz9BAP.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-CIDoPGa7.cjs';
2
+ import './run-CL5Rw6a5.cjs';
3
3
  import 'zod';
package/dist/eval.cjs CHANGED
@@ -9002,7 +9002,9 @@ async function vetoFromPluginPreHook(inputs, call, callId, events) {
9002
9002
  name: call.name,
9003
9003
  args: call.input,
9004
9004
  agentId: inputs.agentId,
9005
- runId: inputs.runId
9005
+ runId: inputs.runId,
9006
+ // SE1 — thread the run's permission mode so a PermissionPlugin gates per-run.
9007
+ ...inputs.permissionMode !== void 0 ? { permissionMode: inputs.permissionMode } : {}
9006
9008
  });
9007
9009
  if (pluginVeto === void 0) return void 0;
9008
9010
  emitRunEvent(inputs.runEventSink, {
@@ -13413,6 +13415,10 @@ function buildLoopInputs(options, runId, userText) {
13413
13415
  ...options.onDelta !== void 0 ? { onDelta: options.onDelta } : {},
13414
13416
  ...options.sendOptions.toolChoice !== void 0 ? { toolChoice: options.sendOptions.toolChoice } : {},
13415
13417
  ...options.sendOptions.activeTools !== void 0 ? { activeTools: options.sendOptions.activeTools } : {},
13418
+ // SE1 — resolve the run's permission mode: per-send wins over creation-time.
13419
+ ...(options.sendOptions.permissionMode ?? options.agentOptions.permissionMode) !== void 0 ? {
13420
+ permissionMode: options.sendOptions.permissionMode ?? options.agentOptions.permissionMode
13421
+ } : {},
13416
13422
  ...options.priorMessages !== void 0 ? { priorMessages: options.priorMessages } : {},
13417
13423
  ...options.memoryTools !== void 0 && options.memoryTools.length > 0 ? { memoryTools: options.memoryTools } : {},
13418
13424
  ...buildCustomToolsInput(