@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.
package/dist/cron.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- export { V as Cron } from './cron-4u1UdmgC.cjs';
2
- import './run-CrHz9BAP.cjs';
1
+ export { V as Cron } from './cron-BxoLC-XX.cjs';
2
+ import './run-CL5Rw6a5.cjs';
3
3
  import 'zod';
package/dist/cron.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { V as Cron } from './cron-DuhVPer6.js';
2
- import './run-CrHz9BAP.js';
1
+ export { V as Cron } from './cron-DFta_5kE.js';
2
+ import './run-CL5Rw6a5.js';
3
3
  import 'zod';
package/dist/cron.js CHANGED
@@ -9003,7 +9003,9 @@ async function vetoFromPluginPreHook(inputs, call, callId, events) {
9003
9003
  name: call.name,
9004
9004
  args: call.input,
9005
9005
  agentId: inputs.agentId,
9006
- runId: inputs.runId
9006
+ runId: inputs.runId,
9007
+ // SE1 — thread the run's permission mode so a PermissionPlugin gates per-run.
9008
+ ...inputs.permissionMode !== void 0 ? { permissionMode: inputs.permissionMode } : {}
9007
9009
  });
9008
9010
  if (pluginVeto === void 0) return void 0;
9009
9011
  emitRunEvent(inputs.runEventSink, {
@@ -13414,6 +13416,10 @@ function buildLoopInputs(options, runId, userText) {
13414
13416
  ...options.onDelta !== void 0 ? { onDelta: options.onDelta } : {},
13415
13417
  ...options.sendOptions.toolChoice !== void 0 ? { toolChoice: options.sendOptions.toolChoice } : {},
13416
13418
  ...options.sendOptions.activeTools !== void 0 ? { activeTools: options.sendOptions.activeTools } : {},
13419
+ // SE1 — resolve the run's permission mode: per-send wins over creation-time.
13420
+ ...(options.sendOptions.permissionMode ?? options.agentOptions.permissionMode) !== void 0 ? {
13421
+ permissionMode: options.sendOptions.permissionMode ?? options.agentOptions.permissionMode
13422
+ } : {},
13417
13423
  ...options.priorMessages !== void 0 ? { priorMessages: options.priorMessages } : {},
13418
13424
  ...options.memoryTools !== void 0 && options.memoryTools.length > 0 ? { memoryTools: options.memoryTools } : {},
13419
13425
  ...buildCustomToolsInput(