broods 0.27.0 → 0.28.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/index.d.ts CHANGED
@@ -573,7 +573,6 @@ type PolicyEffect = "allow" | "deny";
573
573
  */
574
574
  interface PolicyResourceSelector {
575
575
  toolNames?: string[];
576
- toolIds?: string[];
577
576
  /** MCP registration ids, for scoping tool.call rules per server (#331). */
578
577
  mcpIds?: string[];
579
578
  workspaceIds?: string[];
@@ -717,7 +716,7 @@ interface ZaloSource {
717
716
  * import it without pulling the Convex server module graph into its typecheck.
718
717
  */
719
718
  type CliManifestResource = {
720
- kind: "agent" | "workspace" | "sandbox" | "cron" | "skill" | "tool" | "hook" | "mcp" | "policy" | "channelRecord";
719
+ kind: "agent" | "workspace" | "sandbox" | "cron" | "skill" | "hook" | "mcp" | "policy" | "channelRecord";
721
720
  name: string;
722
721
  description?: string;
723
722
  config: unknown;
@@ -728,7 +727,6 @@ type GeneratedIds = {
728
727
  sandboxes: Record<string, string>;
729
728
  crons: Record<string, string>;
730
729
  skills: Record<string, string>;
731
- tools: Record<string, string>;
732
730
  hooks: Record<string, string>;
733
731
  mcpServers: Record<string, string>;
734
732
  policies: Record<string, string>;
@@ -759,7 +757,6 @@ type AgentConfigDoc = Doc<"agentConfigs">;
759
757
  type WorkspaceConfigDoc = Doc<"workspaceConfigs">;
760
758
  type SandboxConfigDoc = Doc<"sandboxConfigs">;
761
759
  type CronDoc = Doc<"crons">;
762
- type CliResourceKind = "agent" | "workspace" | "sandbox" | "cron" | "skill" | "tool" | "mcp" | "policy" | "channelRecord";
763
760
 
764
761
  /**
765
762
  * Wire types for the public account-manage and harness APIs. These mirror
@@ -853,14 +850,6 @@ interface Skill {
853
850
  size?: number;
854
851
  }>;
855
852
  }
856
- interface CustomTool {
857
- accountId: string;
858
- toolId: string;
859
- name: string;
860
- description: string;
861
- sha256: string;
862
- runtime?: "isolate" | "sandbox";
863
- }
864
853
 
865
854
  type StreamTextOptions = Parameters<typeof streamText>[0];
866
855
  type JsonCallSettings = Partial<LanguageModelCallOptions & Pick<RequestOptions, "maxRetries" | "timeout">>;
@@ -1128,7 +1117,6 @@ interface ResourceApi {
1128
1117
  readonly sandboxes?: Record<string, unknown>;
1129
1118
  readonly crons?: Record<string, unknown>;
1130
1119
  readonly skills?: Record<string, unknown>;
1131
- readonly tools?: Record<string, unknown>;
1132
1120
  readonly policies?: Record<string, unknown>;
1133
1121
  }
1134
1122
  interface BroodsClientOptions {
@@ -1410,46 +1398,11 @@ interface ChannelRecordConfig {
1410
1398
  userIds: string[];
1411
1399
  }>;
1412
1400
  }
1413
- /** The stage a tool belongs to. Tools with the same name in two stages are two tools. */
1414
- interface ToolScope {
1401
+ /** The stage a resource belongs to. Same name in two stages = two resources. */
1402
+ interface StageScope {
1415
1403
  project: string;
1416
1404
  stage: string;
1417
1405
  }
1418
- /** Public uploaded-tool record returned by the tools routes. */
1419
- interface AccountTool {
1420
- accountId: string;
1421
- toolId: string;
1422
- projectId: string;
1423
- stageId: string;
1424
- name: string;
1425
- description: string;
1426
- inputSchema: unknown;
1427
- sha256: string;
1428
- runtime: "isolate" | "sandbox";
1429
- defaultConfig?: unknown;
1430
- status: string;
1431
- createdAt: string;
1432
- updatedAt: string;
1433
- deletedAt?: string;
1434
- }
1435
- /** Fields accepted by `POST /v1/tools`. `bundle` is already-bundled JavaScript module source. */
1436
- interface CreateToolInput {
1437
- name: string;
1438
- description: string;
1439
- inputSchema: unknown;
1440
- bundle: string;
1441
- runtime?: "isolate" | "sandbox";
1442
- defaultConfig?: unknown;
1443
- }
1444
- /** Fields accepted by `PATCH /v1/tools/{toolId}`; every field is optional. Omitting `bundle` keeps the stored one. */
1445
- interface UpdateToolInput {
1446
- name?: string;
1447
- description?: string;
1448
- inputSchema?: unknown;
1449
- bundle?: string;
1450
- runtime?: "isolate" | "sandbox";
1451
- defaultConfig?: unknown;
1452
- }
1453
1406
  /** Public MCP server registration returned by the `/v1/mcp` routes (#331). */
1454
1407
  interface AccountMcpServer {
1455
1408
  accountId: string;
@@ -1654,16 +1607,9 @@ declare class BroodsAccountClient {
1654
1607
  snapshotSandbox(sandboxId: string, reservationKey: string, name: string): Promise<SandboxSnapshotResult>;
1655
1608
  /** Mint a short-lived sealed ticket for an interactive PTY session on a persistent sandbox (`sandbox`/`lambda` providers). Throws on 404/403/409. */
1656
1609
  openSandboxTerminal(sandboxId: string, reservationKey: string): Promise<SandboxTerminalTicket>;
1657
- /** Tools live in one stage, so the collection routes need a scope. Both fields are required. */
1658
- listTools(scope: ToolScope): Promise<AccountTool[]>;
1659
- createTool(scope: ToolScope, input: CreateToolInput): Promise<AccountTool>;
1660
- getTool(toolId: string): Promise<AccountTool | null>;
1661
- /** PATCH an uploaded tool. Omitting `bundle` keeps the stored bundle and runtime. Returns null when the tool is gone. */
1662
- updateTool(toolId: string, patch: UpdateToolInput): Promise<AccountTool | null>;
1663
- deleteTool(toolId: string): Promise<boolean>;
1664
- /** MCP servers are stage-scoped like tools; both scope fields are required. */
1665
- listMcpServers(scope: ToolScope): Promise<AccountMcpServer[]>;
1666
- createMcpServer(scope: ToolScope, input: CreateMcpServerInput): Promise<AccountMcpServer>;
1610
+ /** MCP servers live in one stage, so the collection routes need a scope. */
1611
+ listMcpServers(scope: StageScope): Promise<AccountMcpServer[]>;
1612
+ createMcpServer(scope: StageScope, input: CreateMcpServerInput): Promise<AccountMcpServer>;
1667
1613
  getMcpServer(serverId: string): Promise<AccountMcpServer | null>;
1668
1614
  updateMcpServer(serverId: string, patch: UpdateMcpServerInput): Promise<AccountMcpServer | null>;
1669
1615
  deleteMcpServer(serverId: string): Promise<boolean>;
@@ -1858,7 +1804,7 @@ interface BroodsConfigDefinition {
1858
1804
  readonly [CONFIG_MARKER]: true;
1859
1805
  readonly config: BroodsProjectConfig;
1860
1806
  }
1861
- type ResourceKind = "agent" | "workspace" | "sandbox" | "cron" | "skill" | "tool" | "mcp" | "policy" | "channelRecord";
1807
+ type ResourceKind = "agent" | "workspace" | "sandbox" | "cron" | "skill" | "mcp" | "policy" | "channelRecord";
1862
1808
  interface ResourceDefinition<Kind extends ResourceKind, Name extends string, Config> {
1863
1809
  readonly [RESOURCE_MARKER]: true;
1864
1810
  readonly kind: Kind;
@@ -1905,49 +1851,6 @@ interface SkillDefinitionConfig {
1905
1851
  */
1906
1852
  path: string;
1907
1853
  }
1908
- /** Broods-side context on `ToolExecuteOptions`, alongside the AI SDK's own fields. */
1909
- interface ToolExecuteContext {
1910
- /** Resolved tool config, `env("NAME")` already substituted. Where secrets arrive. */
1911
- config: Record<string, unknown>;
1912
- /** SSRF-guarded fetch. Also installed as the global `fetch`. */
1913
- fetch: typeof fetch;
1914
- /** Per-run scratchpad. Read back after hooks; empty and unused for tools. */
1915
- state: Record<string, unknown>;
1916
- }
1917
- /** Call options an inline `execute` receives, mirroring the AI SDK's tool(). */
1918
- interface ToolExecuteOptions {
1919
- toolCallId?: string;
1920
- context: ToolExecuteContext;
1921
- abortSignal?: AbortSignal;
1922
- /** Conversation so far. Truncated from the front to the newest 512 KB. */
1923
- messages: ModelMessage[];
1924
- experimental_context?: unknown;
1925
- }
1926
- interface ToolDefinitionConfig<Input = Record<string, unknown>> {
1927
- /**
1928
- * Optional module file exporting the tool implementation, resolved from the
1929
- * `broods/` project directory. Omit it and declare `execute` inline instead —
1930
- * the CLI then bundles the module this tool is exported from.
1931
- */
1932
- path?: string;
1933
- /**
1934
- * Runs in the isolate or the sandbox runner, not locally. Shaped like the AI
1935
- * SDK's `tool({ execute })`: the input first, call options second. Annotate
1936
- * the parameter to type it — `inputSchema` is JSON Schema, so it cannot be
1937
- * inferred.
1938
- */
1939
- execute?: (input: Input, options: ToolExecuteOptions) => unknown;
1940
- description: string;
1941
- inputSchema: Record<string, unknown>;
1942
- runtime?: "isolate" | "sandbox";
1943
- /**
1944
- * Account-wide, non-secret defaults. Environment variable references are
1945
- * rejected here; put `env("NAME")` under the enabling agent's
1946
- * `tools.<tool>.config` so the value is resolved per stage and stored with
1947
- * encrypted agent config.
1948
- */
1949
- defaultConfig?: Record<string, unknown>;
1950
- }
1951
1854
  type PolicyDefinitionConfig = Omit<PolicyDocument, "version"> & {
1952
1855
  version?: PolicyDocument["version"];
1953
1856
  };
@@ -2317,12 +2220,11 @@ type WorkspaceDefinitionConfig = Omit<WorkspaceConfig, "isolation"> & {
2317
2220
  type WorkspaceResource<Name extends string = string> = ResourceDefinition<"workspace", Name, WorkspaceDefinitionConfig>;
2318
2221
  type SandboxResource<Name extends string = string> = ResourceDefinition<"sandbox", Name, SandboxDefinitionConfig>;
2319
2222
  type SkillResource<Name extends string = string> = ResourceDefinition<"skill", Name, SkillDefinitionConfig>;
2320
- type ToolResource<Name extends string = string> = ResourceDefinition<"tool", Name, ToolDefinitionConfig>;
2321
2223
  type McpServerResource<Name extends string = string> = ResourceDefinition<"mcp", Name, McpServerDefinitionConfig>;
2322
2224
  type PolicyResource<Name extends string = string> = ResourceDefinition<"policy", Name, PolicyDefinitionConfig>;
2323
2225
  type CronResource<Name extends string = string> = ResourceDefinition<"cron", Name, CronDefinitionConfig>;
2324
2226
  type ChannelResource<Name extends string = string> = ResourceDefinition<"channelRecord", Name, ChannelDefinitionConfig>;
2325
- type AnyResource = AgentResource | WorkspaceResource | SandboxResource | CronResource | SkillResource | ToolResource | McpServerResource | PolicyResource | ChannelResource;
2227
+ type AnyResource = AgentResource | WorkspaceResource | SandboxResource | CronResource | SkillResource | McpServerResource | PolicyResource | ChannelResource;
2326
2228
  /**
2327
2229
  * References an account/environment variable resolved on the SERVER at runtime —
2328
2230
  * set it with `broods env set <NAME>` or in the dashboard (the Convex-style
@@ -2359,9 +2261,6 @@ declare function defineHarness<const Definition extends HarnessDefinition>(defin
2359
2261
  declare function defineWorkspace<const Name extends string>(input: ResourceInput<Name, WorkspaceDefinitionConfig>): WorkspaceResource<Name>;
2360
2262
  declare function defineSandbox<const Name extends string>(input: ResourceInput<Name, SandboxDefinitionConfig>): SandboxResource<Name>;
2361
2263
  declare function defineSkill<const Name extends string>(input: ResourceInput<Name, SkillDefinitionConfig>): SkillResource<Name>;
2362
- declare function defineTool<const Name extends string, Input = Record<string, unknown>>(input: {
2363
- name: Name;
2364
- } & ToolDefinitionConfig<Input>): ToolResource<Name>;
2365
2264
  declare function defineMcp<const Name extends string>(input: ResourceInput<Name, McpServerDefinitionConfig>): McpServerResource<Name>;
2366
2265
  declare function definePolicy<const Name extends string>(input: ResourceInput<Name, PolicyDefinitionConfig>): PolicyResource<Name>;
2367
2266
  declare function defineCron<const Name extends string>(input: ResourceInput<Name, CronDefinitionConfig>): CronResource<Name>;
@@ -2369,5 +2268,5 @@ declare function isResource(value: unknown): value is AnyResource;
2369
2268
  declare function isConnectionDefinition(value: unknown): value is AnyConnectionDefinition;
2370
2269
  declare function isBroodsConfig(value: unknown): value is BroodsConfigDefinition;
2371
2270
 
2372
- export { BroodsAccountApiError, BroodsAccountClient, BroodsClient, BroodsWebSocketClient, DEFAULT_CORE_BASE_URL, IngressAcceptedError, MAX_OBSERVABILITY_BACKFILL, BroodsWebSocketClient as WebSocketClient, BroodsWebSocketClient as WebsocketClient, defineAgent, defineBroods, defineCron, defineDiscordChannel, defineDiscordConnection, defineGitHubChannel, defineGitHubConnection, defineHarness, defineMcp, definePancakeChannel, definePancakeConnection, definePolicy, defineSandbox, defineSkill, defineSlackChannel, defineSlackConnection, defineTelegramChannel, defineTelegramConnection, defineTool, defineWorkspace, defineZaloChannel, defineZaloConnection, env, envPlaceholder, isBroodsConfig, isConnectionDefinition, isLogLevel, isObservabilityClientMessage, isResource, isRootSpanKind, normalizeHttpServiceUrl, readSseStream, resolveRunEvents, toWebSocketBaseUrl };
2373
- export type { Account, AccountAgent, AccountChannel, AccountEnvVar, AccountMcpServer, AccountPolicy, AccountRole, AccountSandbox, AccountTool, AccountWorkspace, Agent, AgentChannelsConfig, AgentCodeHookConfig, AgentConfig, AgentConfigDoc, AgentDefinitionConfig, AgentDiscordChannelConfig, AgentGitHubChannelConfig, AgentHandle, AgentHookEventName, AgentHooks, AgentHooksConfig, AgentPancakeChannelConfig, AgentProviderSettings, AgentReference, AgentResource, AgentRunEventInput, AgentRunInput, AgentRunModelOverrides, AgentRunOverrides, AgentRunResult, AgentSkillsDefinitionConfig, AgentSlackChannelConfig, AgentStreamPart, AgentSubagentDefinitionConfig, AgentTelegramChannelConfig, AgentWebhookHookConfig, AgentWorkspaceInput, AgentWorkspaceRef, AgentWorkspaceRefInput, AgentZaloChannelConfig, AnyConnectionDefinition, AnyResource, AssumeRoleResult, AsyncAgentRun, AsyncPollOptions, AsyncRequestAccepted, AsyncStatus, BroodsAccount, BroodsAccountClientOptions, BroodsClientOptions, BroodsConfigDefinition, BroodsProjectConfig, BroodsWebSocketClientOptions, ChannelAgentInput, ChannelDefinitionConfig, ChannelMessageReceived, ChannelPartition, ChannelRecordConfig, ChannelReference, ChannelReplyIn, ChannelResource, ChannelType, CliManifest, CliManifestResource, CliResourceKind, ConnectionDefinition, CreateAgentResult, CreateClientCronInput, CreateCronInput, CreateMcpServerInput, CreateToolInput, Cron, CronDefinitionConfig, CronDoc, CronLastStatus, CronResource, CronRun, CronStatus, CustomTool, DeleteAccountResult, DiscordChannelInput, DiscordConnectionDefinition, DiscordConnectionInput, DiscordMessageSource, DiscordSource, Doc, EnvAccessor, EnvRef, EnvRefString, GeneratedIds, GitHubChannelInput, GitHubConnectionDefinition, GitHubConnectionInput, GitHubMessageSource, GitHubSource, HarnessDefinition, HarnessType, HookContext, Id, IngressMode, IngressStatus, LogLevel, McpServerDefinitionConfig, McpServerResource, ObservabilityBackfillMessage, ObservabilityClientMessage, ObservabilityErrorMessage, ObservabilityLogEntry, ObservabilityLogMessage, ObservabilityReadyMessage, ObservabilityServerMessage, ObservabilitySpanMessage, ObservabilitySpanRow, ObservabilitySubscribeMessage, ObservabilityUnsubscribeMessage, PancakeChannelInput, PancakeConnectionDefinition, PancakeConnectionInput, PancakeMessageSource, PancakeSource, PolicyDefinitionConfig, PolicyDocument, PolicyResource, ProjectDoc, ProviderConfigInput, ProviderSettingsInput, ResourceApi, ResourceDefinition, ResourceInput, ResourceKind, RotateSecretResult, Sandbox, SandboxConfig, SandboxConfigDoc, SandboxDefinitionConfig, SandboxDefinitionOptions, SandboxLifecycleResult, SandboxResource, SandboxSnapshotResult, SandboxTerminalTicket, Skill, SkillDefinitionConfig, SkillResource, SkillUploadInput, SlackChannelInput, SlackConnectionDefinition, SlackConnectionInput, SlackMessageSource, SlackSource, StageDoc, TelegramChannelInput, TelegramConnectionDefinition, TelegramConnectionInput, TelegramMessageSource, TelegramSource, ToolApprovalSummary, ToolDefinitionConfig, ToolExecuteContext, ToolExecuteOptions, ToolResource, ToolScope, UpdateAgentInput, UpdateCronInput, UpdateMcpServerInput, UpdateToolInput, WebSocketAttachInput, WebSocketClientAttachMessage, WebSocketClientCancelMessage, WebSocketClientControlMessage, WebSocketClientExecuteMessage, WebSocketClientMessage, WebSocketConstructorLike, WebSocketHandlers, WebSocketLike, WebSocketOutputMessage, WebSocketRunInput, WebSocketServerMessage, WebSocketStreamMessage, WebSocketSubscription, Workspace, WorkspaceConfig, WorkspaceConfigDoc, WorkspaceDefinitionConfig, WorkspaceFileEntry, WorkspaceResource, ZaloChannelInput, ZaloConnectionDefinition, ZaloConnectionInput, ZaloMessageSource, ZaloSource };
2271
+ export { BroodsAccountApiError, BroodsAccountClient, BroodsClient, BroodsWebSocketClient, DEFAULT_CORE_BASE_URL, IngressAcceptedError, MAX_OBSERVABILITY_BACKFILL, BroodsWebSocketClient as WebSocketClient, BroodsWebSocketClient as WebsocketClient, defineAgent, defineBroods, defineCron, defineDiscordChannel, defineDiscordConnection, defineGitHubChannel, defineGitHubConnection, defineHarness, defineMcp, definePancakeChannel, definePancakeConnection, definePolicy, defineSandbox, defineSkill, defineSlackChannel, defineSlackConnection, defineTelegramChannel, defineTelegramConnection, defineWorkspace, defineZaloChannel, defineZaloConnection, env, envPlaceholder, isBroodsConfig, isConnectionDefinition, isLogLevel, isObservabilityClientMessage, isResource, isRootSpanKind, normalizeHttpServiceUrl, readSseStream, resolveRunEvents, toWebSocketBaseUrl };
2272
+ export type { Account, AccountAgent, AccountChannel, AccountEnvVar, AccountMcpServer, AccountPolicy, AccountRole, AccountSandbox, AccountWorkspace, Agent, AgentChannelsConfig, AgentCodeHookConfig, AgentConfig, AgentConfigDoc, AgentDefinitionConfig, AgentDiscordChannelConfig, AgentGitHubChannelConfig, AgentHandle, AgentHookEventName, AgentHooks, AgentHooksConfig, AgentPancakeChannelConfig, AgentProviderSettings, AgentReference, AgentResource, AgentRunEventInput, AgentRunInput, AgentRunModelOverrides, AgentRunOverrides, AgentRunResult, AgentSkillsDefinitionConfig, AgentSlackChannelConfig, AgentStreamPart, AgentSubagentDefinitionConfig, AgentTelegramChannelConfig, AgentWebhookHookConfig, AgentWorkspaceInput, AgentWorkspaceRef, AgentWorkspaceRefInput, AgentZaloChannelConfig, AnyConnectionDefinition, AnyResource, AssumeRoleResult, AsyncAgentRun, AsyncPollOptions, AsyncRequestAccepted, AsyncStatus, BroodsAccount, BroodsAccountClientOptions, BroodsClientOptions, BroodsConfigDefinition, BroodsProjectConfig, BroodsWebSocketClientOptions, ChannelAgentInput, ChannelDefinitionConfig, ChannelMessageReceived, ChannelPartition, ChannelRecordConfig, ChannelReference, ChannelReplyIn, ChannelResource, ChannelType, CliManifest, CliManifestResource, ConnectionDefinition, CreateAgentResult, CreateClientCronInput, CreateCronInput, CreateMcpServerInput, Cron, CronDefinitionConfig, CronDoc, CronLastStatus, CronResource, CronRun, CronStatus, DeleteAccountResult, DiscordChannelInput, DiscordConnectionDefinition, DiscordConnectionInput, DiscordMessageSource, DiscordSource, Doc, EnvAccessor, EnvRef, EnvRefString, GeneratedIds, GitHubChannelInput, GitHubConnectionDefinition, GitHubConnectionInput, GitHubMessageSource, GitHubSource, HarnessDefinition, HarnessType, HookContext, Id, IngressMode, IngressStatus, LogLevel, McpServerDefinitionConfig, McpServerResource, ObservabilityBackfillMessage, ObservabilityClientMessage, ObservabilityErrorMessage, ObservabilityLogEntry, ObservabilityLogMessage, ObservabilityReadyMessage, ObservabilityServerMessage, ObservabilitySpanMessage, ObservabilitySpanRow, ObservabilitySubscribeMessage, ObservabilityUnsubscribeMessage, PancakeChannelInput, PancakeConnectionDefinition, PancakeConnectionInput, PancakeMessageSource, PancakeSource, PolicyDefinitionConfig, PolicyDocument, PolicyResource, ProjectDoc, ProviderConfigInput, ProviderSettingsInput, ResourceApi, ResourceDefinition, ResourceInput, ResourceKind, RotateSecretResult, Sandbox, SandboxConfig, SandboxConfigDoc, SandboxDefinitionConfig, SandboxDefinitionOptions, SandboxLifecycleResult, SandboxResource, SandboxSnapshotResult, SandboxTerminalTicket, Skill, SkillDefinitionConfig, SkillResource, SkillUploadInput, SlackChannelInput, SlackConnectionDefinition, SlackConnectionInput, SlackMessageSource, SlackSource, StageDoc, StageScope, TelegramChannelInput, TelegramConnectionDefinition, TelegramConnectionInput, TelegramMessageSource, TelegramSource, ToolApprovalSummary, UpdateAgentInput, UpdateCronInput, UpdateMcpServerInput, WebSocketAttachInput, WebSocketClientAttachMessage, WebSocketClientCancelMessage, WebSocketClientControlMessage, WebSocketClientExecuteMessage, WebSocketClientMessage, WebSocketConstructorLike, WebSocketHandlers, WebSocketLike, WebSocketOutputMessage, WebSocketRunInput, WebSocketServerMessage, WebSocketStreamMessage, WebSocketSubscription, Workspace, WorkspaceConfig, WorkspaceConfigDoc, WorkspaceDefinitionConfig, WorkspaceFileEntry, WorkspaceResource, ZaloChannelInput, ZaloConnectionDefinition, ZaloConnectionInput, ZaloMessageSource, ZaloSource };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{a as O,b as R,c as L}from"./chunk-36yhe6qb.js";import{A as _,B as P,C as U,D as B,E as H,F as K,G as j,H as G,I as F,J as z,K as Z,L as V,M as X,N as Y,O as J,P as Q,Q as ee,R as te,S as re,T as ne,U as se,d as v,e as k,p as S,q as A,r as M,s as h,t as w,u as W,v as E,w as D,x as T,y as q,z as N}from"./chunk-rwpj4428.js";import"./chunk-4sdsq7gb.js";var a=500;function i(e){if(typeof e!=="object"||e===null)return!1;let t=e;if(t.type==="subscribe"){let r=t.stream;if(r!=="logs"&&r!=="traces")return!1;let n=t.backfill;if(n!==void 0&&(typeof n!=="number"||!Number.isSafeInteger(n)||n<0||n>500))return!1;if(t.liveOnly!==void 0&&typeof t.liveOnly!=="boolean")return!1;let s=t.minLevel;if(s!==void 0&&!o(s))return!1;return!0}if(t.type==="unsubscribe"){let r=t.stream;return r==="logs"||r==="traces"}return!1}function o(e){return e==="DEBUG"||e==="INFO"||e==="WARN"||e==="ERROR"}function p(e){return e==="task"||e==="cron"||e==="subtask"}export{R as BroodsAccountApiError,L as BroodsAccountClient,M as BroodsClient,w as BroodsWebSocketClient,S as DEFAULT_CORE_BASE_URL,A as IngressAcceptedError,a as MAX_OBSERVABILITY_BACKFILL,w as WebSocketClient,w as WebsocketClient,z as defineAgent,F as defineBroods,te as defineCron,U as defineDiscordChannel,D as defineDiscordConnection,B as defineGitHubChannel,T as defineGitHubConnection,Z as defineHarness,Q as defineMcp,H as definePancakeChannel,q as definePancakeConnection,ee as definePolicy,X as defineSandbox,Y as defineSkill,K as defineSlackChannel,N as defineSlackConnection,j as defineTelegramChannel,_ as defineTelegramConnection,J as defineTool,V as defineWorkspace,G as defineZaloChannel,P as defineZaloConnection,E as env,O as envPlaceholder,se as isBroodsConfig,ne as isConnectionDefinition,o as isLogLevel,i as isObservabilityClientMessage,re as isResource,p as isRootSpanKind,h as normalizeHttpServiceUrl,k as readSseStream,v as resolveRunEvents,W as toWebSocketBaseUrl};
1
+ import{a as O,b as R,c as L}from"./chunk-mnc0tart.js";import{A as _,B as P,C as U,D as B,E as H,F as K,G as j,H as G,I as F,J as z,K as Z,L as V,M as X,N as Y,O as J,P as Q,Q as ee,R as te,S as re,T as ne,d as v,e as S,p as k,q as A,r as M,s as h,t as W,u as w,v as E,w as D,x as T,y as q,z as N}from"./chunk-2149yqc1.js";import"./chunk-3cvxks4m.js";var a=500;function i(e){if(typeof e!=="object"||e===null)return!1;let t=e;if(t.type==="subscribe"){let r=t.stream;if(r!=="logs"&&r!=="traces")return!1;let n=t.backfill;if(n!==void 0&&(typeof n!=="number"||!Number.isSafeInteger(n)||n<0||n>500))return!1;if(t.liveOnly!==void 0&&typeof t.liveOnly!=="boolean")return!1;let s=t.minLevel;if(s!==void 0&&!o(s))return!1;return!0}if(t.type==="unsubscribe"){let r=t.stream;return r==="logs"||r==="traces"}return!1}function o(e){return e==="DEBUG"||e==="INFO"||e==="WARN"||e==="ERROR"}function p(e){return e==="task"||e==="cron"||e==="subtask"}export{R as BroodsAccountApiError,L as BroodsAccountClient,M as BroodsClient,W as BroodsWebSocketClient,k as DEFAULT_CORE_BASE_URL,A as IngressAcceptedError,a as MAX_OBSERVABILITY_BACKFILL,W as WebSocketClient,W as WebsocketClient,z as defineAgent,F as defineBroods,ee as defineCron,U as defineDiscordChannel,D as defineDiscordConnection,B as defineGitHubChannel,T as defineGitHubConnection,Z as defineHarness,J as defineMcp,H as definePancakeChannel,q as definePancakeConnection,Q as definePolicy,X as defineSandbox,Y as defineSkill,K as defineSlackChannel,N as defineSlackConnection,j as defineTelegramChannel,_ as defineTelegramConnection,V as defineWorkspace,G as defineZaloChannel,P as defineZaloConnection,E as env,O as envPlaceholder,ne as isBroodsConfig,re as isConnectionDefinition,o as isLogLevel,i as isObservabilityClientMessage,te as isResource,p as isRootSpanKind,h as normalizeHttpServiceUrl,S as readSseStream,v as resolveRunEvents,w as toWebSocketBaseUrl};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "broods",
3
- "version": "0.27.0",
3
+ "version": "0.28.0",
4
4
  "description": "CLI + TypeScript SDK for the broods agent platform.",
5
5
  "keywords": [
6
6
  "agents",