@makinbakin/sdk 0.0.1-rc.1 → 0.0.1-rc.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.
@@ -38,7 +38,19 @@ export interface WorkspaceFile {
38
38
  updatedAt?: string;
39
39
  metadata?: RuntimeMetadata;
40
40
  }
41
- export interface MessageArgs {
41
+ export type RuntimeMessageToolsMode = 'auto' | 'none';
42
+ export interface RuntimeMessageToolPolicy {
43
+ /**
44
+ * Controls whether runtime-native tools are available for this agent turn.
45
+ * `none` disables tools. Omit or use `auto` for runtime/provider defaults.
46
+ */
47
+ toolsMode?: RuntimeMessageToolsMode;
48
+ /** Optional runtime-native tool allowlist for this turn. */
49
+ toolsAllow?: string[];
50
+ /** Optional runtime-native tool denylist for this turn. */
51
+ toolsDeny?: string[];
52
+ }
53
+ export interface MessageArgs extends RuntimeMessageToolPolicy {
42
54
  agentId: string;
43
55
  content: string;
44
56
  /**
@@ -2,4 +2,4 @@ export type { AdapterAuditEvent, AdapterHealthCheckDefinition, AdapterHealthChec
2
2
  export type { ChannelCapability } from './capabilities';
3
3
  export { hasChannelCapability } from './capabilities';
4
4
  export { getRuntimeMainAgent, getRuntimeMainAgentId, getRuntimeMainAgentName, selectRuntimeMainAgent, } from './helpers';
5
- export type { AgentRuntimeAdapter, ApprovalDelivery, ApprovalOption, ApprovalPatch, ApprovalRenderRef, ApprovalRenderResult, ApprovalResolveEvent, ApprovalResponse, CancelApprovalArgs, ChannelInfo, ChannelInteractionEvent, ChannelMessageArgs, ChannelMessageEvent, ChatChunk, ContentDeliveryArgs, CreateApprovalArgs, CreateCronJobInput, CreateRuntimeAgentInput, CronJob, CronRun, DeliveryResult, DurableApprovalRecord, EditApprovalArgs, ListExecutionsOpts, MessageArgs, MessageResult, NotificationArgs, ResolveApprovalArgs, RuntimeAgent, RuntimeAllowlistPatch, RuntimeToolActivity, RuntimeAvailableModel, RuntimeConfigAccess, RuntimeMemoryEntry, RuntimeMemoryEntryStat, RuntimeMemoryPathMatch, RuntimeMemoryReadRange, RuntimeMemorySearchResult, RuntimeMemoryTier, RuntimeMetadata, RuntimePermissionPatch, RawCronSnapshot, RuntimeSession, RuntimeSkill, TaskDispatchArgs, TaskDispatchResult, TaskExecutionEvent, TaskExecutionStatus, ToolDefinition, ToolResult, UpdateCronJobInput, UpdateRuntimeAgentInput, WorkspaceFile, } from './concepts';
5
+ export type { AgentRuntimeAdapter, ApprovalDelivery, ApprovalOption, ApprovalPatch, ApprovalRenderRef, ApprovalRenderResult, ApprovalResolveEvent, ApprovalResponse, CancelApprovalArgs, ChannelInfo, ChannelInteractionEvent, ChannelMessageArgs, ChannelMessageEvent, ChatChunk, ContentDeliveryArgs, CreateApprovalArgs, CreateCronJobInput, CreateRuntimeAgentInput, CronJob, CronRun, DeliveryResult, DurableApprovalRecord, EditApprovalArgs, ListExecutionsOpts, MessageArgs, MessageResult, NotificationArgs, ResolveApprovalArgs, RuntimeAgent, RuntimeAllowlistPatch, RuntimeToolActivity, RuntimeAvailableModel, RuntimeConfigAccess, RuntimeMemoryEntry, RuntimeMemoryEntryStat, RuntimeMemoryPathMatch, RuntimeMemoryReadRange, RuntimeMemorySearchResult, RuntimeMemoryTier, RuntimeMessageToolPolicy, RuntimeMessageToolsMode, RuntimeMetadata, RuntimePermissionPatch, RawCronSnapshot, RuntimeSession, RuntimeSkill, TaskDispatchArgs, TaskDispatchResult, TaskExecutionEvent, TaskExecutionStatus, ToolDefinition, ToolResult, UpdateCronJobInput, UpdateRuntimeAgentInput, WorkspaceFile, } from './concepts';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makinbakin/sdk",
3
- "version": "0.0.1-rc.1",
3
+ "version": "0.0.1-rc.3",
4
4
  "description": "SDK for building Bakin plugins — UI components, slot types, hooks, and the runtime registerPlugin helper.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
package/types/index.d.ts CHANGED
@@ -262,7 +262,19 @@ export interface RuntimeChannel {
262
262
  capabilities: string[];
263
263
  metadata?: Record<string, unknown>;
264
264
  }
265
- export interface RuntimeMessageArgs {
265
+ export type RuntimeMessageToolsMode = 'auto' | 'none';
266
+ export interface RuntimeMessageToolPolicy {
267
+ /**
268
+ * Controls whether runtime-native tools are available for this agent turn.
269
+ * `none` disables tools. Omit or use `auto` for runtime/provider defaults.
270
+ */
271
+ toolsMode?: RuntimeMessageToolsMode;
272
+ /** Optional runtime-native tool allowlist for this turn. */
273
+ toolsAllow?: string[];
274
+ /** Optional runtime-native tool denylist for this turn. */
275
+ toolsDeny?: string[];
276
+ }
277
+ export interface RuntimeMessageArgs extends RuntimeMessageToolPolicy {
266
278
  agentId: string;
267
279
  content: string;
268
280
  /**