broods 0.42.0 → 0.43.1

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
@@ -330,14 +330,19 @@ interface AgentWorkspaceRef {
330
330
  }
331
331
  interface AgentSessionConfig {
332
332
  pruning?: AgentSessionPruningConfig;
333
- compaction?: AgentSessionCompactionConfig;
333
+ autoCompaction?: AgentSessionAutoCompactionConfig;
334
334
  [key: string]: unknown;
335
335
  }
336
336
  interface AgentSessionPruningConfig {
337
337
  enabled?: boolean;
338
338
  [key: string]: unknown;
339
339
  }
340
- interface AgentSessionCompactionConfig {
340
+ /**
341
+ * Compaction after a finished turn, on unless `enabled: false`. It runs once
342
+ * the turn's last model call read `maxContextLength` input tokens or more
343
+ * (default 500000). `/compact` works whatever this says.
344
+ */
345
+ interface AgentSessionAutoCompactionConfig {
341
346
  enabled?: boolean;
342
347
  maxContextLength?: number;
343
348
  [key: string]: unknown;
@@ -400,6 +405,7 @@ interface AgentChannelsConfig {
400
405
  telegram?: AgentTelegramChannelConfig;
401
406
  gchat?: AgentGoogleChatChannelConfig;
402
407
  github?: AgentGitHubChannelConfig;
408
+ linear?: AgentLinearChannelConfig;
403
409
  slack?: AgentSlackChannelConfig;
404
410
  discord?: AgentDiscordChannelConfig;
405
411
  pancake?: AgentPancakeChannelConfig;
@@ -407,6 +413,8 @@ interface AgentChannelsConfig {
407
413
  twilio?: AgentTwilioChannelConfig;
408
414
  zalo?: AgentZaloChannelConfig;
409
415
  matrix?: AgentMatrixChannelConfig;
416
+ instagram?: AgentInstagramChannelConfig;
417
+ messenger?: AgentMessengerChannelConfig;
410
418
  whatsapp?: AgentWhatsAppChannelConfig;
411
419
  [key: string]: unknown;
412
420
  }
@@ -456,6 +464,25 @@ interface AgentGitHubChannelConfig {
456
464
  partition?: ChannelPartition;
457
465
  [key: string]: unknown;
458
466
  }
467
+ /**
468
+ * A Linear member the agent comments as, through that member's personal API
469
+ * key. The agent answers comments that mention `@userName` on issues, and
470
+ * `webhookSecret` checks every delivery.
471
+ */
472
+ interface AgentLinearChannelConfig {
473
+ allowedChannelIds?: string[];
474
+ allowedUserIds?: string[];
475
+ id?: string;
476
+ apiKey?: string;
477
+ /** Linear GraphQL endpoint. Defaults to `https://api.linear.app/graphql`. */
478
+ apiUrl?: string;
479
+ /** The member's display name, e.g. `acme-agent`. `@acme-agent` addresses the agent. */
480
+ userName?: string;
481
+ webhookSecret?: string;
482
+ trace?: "enabled" | "disabled";
483
+ partition?: ChannelPartition;
484
+ [key: string]: unknown;
485
+ }
459
486
  interface AgentSlackChannelConfig {
460
487
  id?: string;
461
488
  apiUrl?: string;
@@ -532,6 +559,47 @@ interface AgentZaloChannelConfig {
532
559
  partition?: ChannelPartition;
533
560
  [key: string]: unknown;
534
561
  }
562
+ /**
563
+ * An Instagram professional account, reached through a Meta app with
564
+ * Instagram Login. `accountId` is the account the webhook entries name.
565
+ */
566
+ interface AgentInstagramChannelConfig {
567
+ allowedChannelIds?: string[];
568
+ allowedUserIds?: string[];
569
+ id?: string;
570
+ /** Instagram user access token with `instagram_business_manage_messages`. */
571
+ accessToken?: string;
572
+ /** Instagram professional account id. */
573
+ accountId?: string;
574
+ /** Graph API version, e.g. `v26.0`. Defaults to the SDK's. */
575
+ apiVersion?: string;
576
+ /** Meta app secret; signs every webhook POST. */
577
+ appSecret?: string;
578
+ userName?: string;
579
+ /** The verify token typed into the Meta webhook settings. */
580
+ verifyToken?: string;
581
+ trace?: "enabled" | "disabled";
582
+ partition?: ChannelPartition;
583
+ [key: string]: unknown;
584
+ }
585
+ /** A Facebook Page the agent answers Messenger DMs for. */
586
+ interface AgentMessengerChannelConfig {
587
+ allowedChannelIds?: string[];
588
+ allowedUserIds?: string[];
589
+ id?: string;
590
+ /** Graph API version, e.g. `v21.0`. Defaults to the SDK's. */
591
+ apiVersion?: string;
592
+ /** Meta app secret; signs every webhook POST. */
593
+ appSecret?: string;
594
+ /** Page access token for the Page the app is subscribed to. */
595
+ pageAccessToken?: string;
596
+ userName?: string;
597
+ /** The verify token typed into the Meta webhook settings. */
598
+ verifyToken?: string;
599
+ trace?: "enabled" | "disabled";
600
+ partition?: ChannelPartition;
601
+ [key: string]: unknown;
602
+ }
535
603
  /**
536
604
  * A Google Chat app on the HTTP endpoint connection. It posts as the service
537
605
  * account in `credentials`, and a webhook is accepted when its Google-signed
@@ -845,6 +913,22 @@ interface GitHubSource {
845
913
  target: "issue" | "issue_comment" | "pull_request" | "pull_request_review_comment";
846
914
  }
847
915
 
916
+ /**
917
+ * Linear channel adapter, for @-mentions in issue comments. The Chat SDK
918
+ * adapter is the transport: it posts the reply under the comment thread and
919
+ * reacts to the comment. The signature check is the Linear SDK's webhook
920
+ * client, the same one the adapter runs. There is no streaming: every edit of
921
+ * a Linear comment comes back as another webhook delivery.
922
+ */
923
+
924
+ interface LinearSource {
925
+ /** The comment that mentioned the agent, where the reaction goes. */
926
+ commentId: string;
927
+ issueId: string;
928
+ /** `linear:{issueId}:c:{rootCommentId}`: the reply nests under the root comment. */
929
+ threadId: string;
930
+ }
931
+
848
932
  /** Slack channel adapter. */
849
933
 
850
934
  interface SlackSource {
@@ -989,6 +1073,45 @@ interface ZaloSource {
989
1073
  date?: number;
990
1074
  }
991
1075
 
1076
+ /**
1077
+ * What Messenger and Instagram share. Both deliver Meta Graph webhooks: a GET
1078
+ * subscription handshake answered with the verify token, an
1079
+ * `X-Hub-Signature-256` HMAC over every POST, and one envelope of batched
1080
+ * messaging events whose entries each name the Page or account they are for.
1081
+ * Both reply through a Chat SDK adapter used as transport only. Each channel
1082
+ * file builds its transport and names how the two differ.
1083
+ */
1084
+
1085
+ /**
1086
+ * Where a Messenger or Instagram message came from. `recipientId` is the Page
1087
+ * or Instagram professional account that received it; `threadId` is the Chat
1088
+ * SDK thread the reply goes to.
1089
+ */
1090
+ interface MetaSource {
1091
+ messageId: string;
1092
+ recipientId: string;
1093
+ senderId: string;
1094
+ threadId: string;
1095
+ }
1096
+
1097
+ /**
1098
+ * Instagram DM channel adapter, on the Instagram API with Instagram Login. The
1099
+ * Chat SDK adapter reads the message and posts the reply, media included; the
1100
+ * Meta webhook handshake, signature check and event walk are shared with
1101
+ * Messenger in `meta-channel.ts`.
1102
+ */
1103
+
1104
+ type InstagramSource = MetaSource;
1105
+
1106
+ /**
1107
+ * Facebook Messenger channel adapter, on the Messenger Platform Send API. The
1108
+ * Chat SDK adapter reads the message, posts the reply and names the Page its
1109
+ * token belongs to; the Meta webhook handshake, signature check and event walk
1110
+ * are shared with Instagram in `meta-channel.ts`.
1111
+ */
1112
+
1113
+ type MessengerSource = MetaSource;
1114
+
992
1115
  /**
993
1116
  * Canonical CLI manifest wire types, the single source of truth shared by the
994
1117
  * backend (cliSync.ts, cliHttp.ts) and the SDK/CLI (packages/broods).
@@ -1233,6 +1356,8 @@ interface AsyncStatus {
1233
1356
  /** Set on every core answer. Absent only on the `not_found` the SDK returns for a 404. */
1234
1357
  runId?: string;
1235
1358
  eventId?: string;
1359
+ /** The agent that owns the run. A subagent run names the child agent. */
1360
+ agentId?: string;
1236
1361
  conversationKey?: string;
1237
1362
  requestedMode?: "reject" | "followup" | "collect" | "steer";
1238
1363
  appliedMode?: "reject" | "followup" | "collect" | "steer";
@@ -1453,7 +1578,7 @@ interface AgentReference<Name extends string = string> {
1453
1578
  }
1454
1579
  interface ChannelReference {
1455
1580
  readonly kind: "channel";
1456
- readonly type: "telegram" | "gchat" | "github" | "slack" | "discord" | "matrix" | "pancake" | "teams" | "twilio" | "zalo" | "whatsapp";
1581
+ readonly type: "telegram" | "gchat" | "github" | "linear" | "slack" | "discord" | "matrix" | "pancake" | "teams" | "twilio" | "zalo" | "whatsapp" | "instagram" | "messenger";
1457
1582
  readonly agentName: string;
1458
1583
  readonly agentId: string;
1459
1584
  readonly accountId: string;
@@ -2305,7 +2430,7 @@ interface McpDefinitionConfig {
2305
2430
  /** Tool names agents may use from this server; omit to allow all. */
2306
2431
  allowedTools?: string[];
2307
2432
  }
2308
- type ChannelType = "telegram" | "gchat" | "github" | "slack" | "discord" | "matrix" | "pancake" | "teams" | "twilio" | "zalo" | "whatsapp";
2433
+ type ChannelType = "telegram" | "gchat" | "github" | "linear" | "slack" | "discord" | "matrix" | "pancake" | "teams" | "twilio" | "zalo" | "whatsapp" | "instagram" | "messenger";
2309
2434
  /**
2310
2435
  * A connection is one app install: the credentials an agent needs before a
2311
2436
  * provider can reach it at all. Channels point at a connection; a connection
@@ -2346,6 +2471,7 @@ type ConnectionIdentityInput = {
2346
2471
  type TelegramConnectionInput = EnvRefString<RequiredChannelKeys<Pick<AgentTelegramChannelConfig, "apiUrl" | "botToken" | "webhookSecret" | "botUsername" | "reactionEmoji">, "botToken" | "webhookSecret">> & ConnectionIdentityInput;
2347
2472
  type GoogleChatConnectionInput = EnvRefString<RequiredChannelKeys<Pick<AgentGoogleChatChannelConfig, "credentials" | "endpointUrl" | "googleChatProjectNumber" | "userName" | "workspaceAddOnServiceAccountEmail">, "credentials">> & ConnectionIdentityInput;
2348
2473
  type GitHubConnectionInput = EnvRefString<RequiredChannelKeys<Pick<AgentGitHubChannelConfig, "apiUrl" | "webhookSecret" | "appId" | "privateKey" | "botUserName" | "botUserId" | "triggerOnIssueOpen" | "triggerOnPROpen">, "webhookSecret" | "appId" | "privateKey">> & ConnectionIdentityInput;
2474
+ type LinearConnectionInput = EnvRefString<RequiredChannelKeys<Pick<AgentLinearChannelConfig, "apiKey" | "apiUrl" | "userName" | "webhookSecret">, "apiKey" | "userName" | "webhookSecret">> & ConnectionIdentityInput;
2349
2475
  type SlackConnectionInput = EnvRefString<RequiredChannelKeys<Pick<AgentSlackChannelConfig, "apiUrl" | "botToken" | "signingSecret" | "reactionEmoji">, "botToken" | "signingSecret">> & ConnectionIdentityInput;
2350
2476
  type DiscordConnectionInput = EnvRefString<RequiredChannelKeys<Pick<AgentDiscordChannelConfig, "apiUrl" | "botToken" | "publicKey" | "botUserId" | "mentionRoleIds">, "botToken" | "publicKey">> & ConnectionIdentityInput;
2351
2477
  type MatrixConnectionInput = EnvRefString<RequiredChannelKeys<Pick<AgentMatrixChannelConfig, "apiUrl" | "botToken" | "botName" | "mentionText">, "apiUrl" | "botToken">> & ConnectionIdentityInput;
@@ -2362,9 +2488,12 @@ interface ZaloConnectionInput extends ConnectionIdentityInput {
2362
2488
  botToken: ChannelSecret;
2363
2489
  webhookSecret: ChannelSecret;
2364
2490
  }
2491
+ type InstagramConnectionInput = EnvRefString<RequiredChannelKeys<Pick<AgentInstagramChannelConfig, "accessToken" | "accountId" | "apiVersion" | "appSecret" | "userName" | "verifyToken">, "accessToken" | "accountId" | "appSecret" | "verifyToken">> & ConnectionIdentityInput;
2492
+ type MessengerConnectionInput = EnvRefString<RequiredChannelKeys<Pick<AgentMessengerChannelConfig, "apiVersion" | "appSecret" | "pageAccessToken" | "userName" | "verifyToken">, "appSecret" | "pageAccessToken" | "verifyToken">> & ConnectionIdentityInput;
2365
2493
  type TelegramConnectionDefinition = ConnectionDefinition<"telegram", TelegramConnectionInput>;
2366
2494
  type GoogleChatConnectionDefinition = ConnectionDefinition<"gchat", GoogleChatConnectionInput>;
2367
2495
  type GitHubConnectionDefinition = ConnectionDefinition<"github", GitHubConnectionInput>;
2496
+ type LinearConnectionDefinition = ConnectionDefinition<"linear", LinearConnectionInput>;
2368
2497
  type SlackConnectionDefinition = ConnectionDefinition<"slack", SlackConnectionInput>;
2369
2498
  type DiscordConnectionDefinition = ConnectionDefinition<"discord", DiscordConnectionInput>;
2370
2499
  type MatrixConnectionDefinition = ConnectionDefinition<"matrix", MatrixConnectionInput>;
@@ -2372,8 +2501,10 @@ type PancakeConnectionDefinition = ConnectionDefinition<"pancake", PancakeConnec
2372
2501
  type TeamsConnectionDefinition = ConnectionDefinition<"teams", TeamsConnectionInput>;
2373
2502
  type TwilioConnectionDefinition = ConnectionDefinition<"twilio", TwilioConnectionInput>;
2374
2503
  type ZaloConnectionDefinition = ConnectionDefinition<"zalo", ZaloConnectionInput>;
2504
+ type InstagramConnectionDefinition = ConnectionDefinition<"instagram", InstagramConnectionInput>;
2505
+ type MessengerConnectionDefinition = ConnectionDefinition<"messenger", MessengerConnectionInput>;
2375
2506
  type WhatsAppConnectionDefinition = ConnectionDefinition<"whatsapp", WhatsAppConnectionInput>;
2376
- type AnyConnectionDefinition = TelegramConnectionDefinition | GoogleChatConnectionDefinition | GitHubConnectionDefinition | SlackConnectionDefinition | DiscordConnectionDefinition | MatrixConnectionDefinition | PancakeConnectionDefinition | TeamsConnectionDefinition | TwilioConnectionDefinition | ZaloConnectionDefinition | WhatsAppConnectionDefinition;
2507
+ type AnyConnectionDefinition = TelegramConnectionDefinition | GoogleChatConnectionDefinition | GitHubConnectionDefinition | LinearConnectionDefinition | SlackConnectionDefinition | DiscordConnectionDefinition | MatrixConnectionDefinition | PancakeConnectionDefinition | TeamsConnectionDefinition | TwilioConnectionDefinition | ZaloConnectionDefinition | WhatsAppConnectionDefinition | InstagramConnectionDefinition | MessengerConnectionDefinition;
2377
2508
  /**
2378
2509
  * One real place a team talks: a Slack channel, a Discord channel, a repo. It
2379
2510
  * narrows and adds, and never grants what a bound agent lacks: instructions
@@ -2440,6 +2571,11 @@ type GitHubChannelInput = ChannelRulesInput & {
2440
2571
  /** Repository full name, e.g. "beeblast/api". */
2441
2572
  repo: string;
2442
2573
  };
2574
+ type LinearChannelInput = ChannelRulesInput & {
2575
+ connection: LinearConnectionDefinition;
2576
+ /** Team key, e.g. "ENG", or several that share one set of rules. */
2577
+ team: string | readonly string[];
2578
+ };
2443
2579
  type TeamsChannelInput = ChannelRulesInput & {
2444
2580
  connection: TeamsConnectionDefinition;
2445
2581
  /** Teams channel id, or a chat's conversation id, e.g. "19:abc@thread.tacv2". */
@@ -2462,6 +2598,16 @@ type ZaloChannelInput = ChannelRulesInput & {
2462
2598
  /** Zalo user or group chat id, or several that share one set of rules. */
2463
2599
  chatId: string | readonly string[];
2464
2600
  };
2601
+ type InstagramChannelInput = ChannelRulesInput & {
2602
+ connection: InstagramConnectionDefinition;
2603
+ /** Instagram-scoped id (IGSID) of the person, or several. */
2604
+ igsid: string | readonly string[];
2605
+ };
2606
+ type MessengerChannelInput = ChannelRulesInput & {
2607
+ connection: MessengerConnectionDefinition;
2608
+ /** Page-scoped id (PSID) of the person, or several. */
2609
+ psid: string | readonly string[];
2610
+ };
2465
2611
  type WhatsAppChannelInput = ChannelRulesInput & {
2466
2612
  connection: WhatsAppConnectionDefinition;
2467
2613
  /** Customer's WhatsApp id, their number with country code and no "+", or several. */
@@ -2517,6 +2663,7 @@ type Handler<Event, Result> = (ctx: HookContext, event: Event) => Result | void
2517
2663
  type TelegramMessageSource = TelegramSource;
2518
2664
  type GoogleChatMessageSource = GoogleChatSource;
2519
2665
  type GitHubMessageSource = GitHubSource;
2666
+ type LinearMessageSource = LinearSource;
2520
2667
  type SlackMessageSource = SlackSource;
2521
2668
  type DiscordMessageSource = DiscordSource;
2522
2669
  type MatrixMessageSource = MatrixSource;
@@ -2524,6 +2671,8 @@ type PancakeMessageSource = PancakeSource;
2524
2671
  type TeamsMessageSource = TeamsSource;
2525
2672
  type TwilioMessageSource = TwilioSource;
2526
2673
  type ZaloMessageSource = ZaloSource;
2674
+ type InstagramMessageSource = InstagramSource;
2675
+ type MessengerMessageSource = MessengerSource;
2527
2676
  type WhatsAppMessageSource = WhatsAppSource;
2528
2677
  /**
2529
2678
  * Inbound channel message passed to `onMessageReceived`, discriminated on
@@ -2541,6 +2690,10 @@ type ChannelMessageReceived = {
2541
2690
  channel: "github";
2542
2691
  text: string;
2543
2692
  source: GitHubMessageSource;
2693
+ } | {
2694
+ channel: "linear";
2695
+ text: string;
2696
+ source: LinearMessageSource;
2544
2697
  } | {
2545
2698
  channel: "slack";
2546
2699
  text: string;
@@ -2573,6 +2726,14 @@ type ChannelMessageReceived = {
2573
2726
  channel: "whatsapp";
2574
2727
  text: string;
2575
2728
  source: WhatsAppMessageSource;
2729
+ } | {
2730
+ channel: "instagram";
2731
+ text: string;
2732
+ source: InstagramMessageSource;
2733
+ } | {
2734
+ channel: "messenger";
2735
+ text: string;
2736
+ source: MessengerMessageSource;
2576
2737
  };
2577
2738
  /**
2578
2739
  * Inline agent hook callbacks. Handlers are serialized with `.toString()`,
@@ -2758,7 +2919,10 @@ declare function defineWorkspace<const Name extends string>(input: ResourceInput
2758
2919
  declare function defineDiscordConnection(config: DiscordConnectionInput): DiscordConnectionDefinition;
2759
2920
  declare function defineGitHubConnection(config: GitHubConnectionInput): GitHubConnectionDefinition;
2760
2921
  declare function defineGoogleChatConnection(config: GoogleChatConnectionInput): GoogleChatConnectionDefinition;
2922
+ declare function defineInstagramConnection(config: InstagramConnectionInput): InstagramConnectionDefinition;
2923
+ declare function defineLinearConnection(config: LinearConnectionInput): LinearConnectionDefinition;
2761
2924
  declare function defineMatrixConnection(config: MatrixConnectionInput): MatrixConnectionDefinition;
2925
+ declare function defineMessengerConnection(config: MessengerConnectionInput): MessengerConnectionDefinition;
2762
2926
  declare function definePancakeConnection(config: PancakeConnectionInput): PancakeConnectionDefinition;
2763
2927
  declare function defineSlackConnection(config: SlackConnectionInput): SlackConnectionDefinition;
2764
2928
  declare function defineTeamsConnection(config: TeamsConnectionInput): TeamsConnectionDefinition;
@@ -2769,7 +2933,10 @@ declare function defineZaloConnection(config: ZaloConnectionInput): ZaloConnecti
2769
2933
  declare function defineDiscordChannel<const Name extends string>(input: ResourceInput<Name, DiscordChannelInput>): ChannelResource<Name>;
2770
2934
  declare function defineGitHubChannel<const Name extends string>(input: ResourceInput<Name, GitHubChannelInput>): ChannelResource<Name>;
2771
2935
  declare function defineGoogleChatChannel<const Name extends string>(input: ResourceInput<Name, GoogleChatChannelInput>): ChannelResource<Name>;
2936
+ declare function defineInstagramChannel<const Name extends string>(input: ResourceInput<Name, InstagramChannelInput>): ChannelResource<Name>;
2937
+ declare function defineLinearChannel<const Name extends string>(input: ResourceInput<Name, LinearChannelInput>): ChannelResource<Name>;
2772
2938
  declare function defineMatrixChannel<const Name extends string>(input: ResourceInput<Name, MatrixChannelInput>): ChannelResource<Name>;
2939
+ declare function defineMessengerChannel<const Name extends string>(input: ResourceInput<Name, MessengerChannelInput>): ChannelResource<Name>;
2773
2940
  declare function definePancakeChannel<const Name extends string>(input: ResourceInput<Name, PancakeChannelInput>): ChannelResource<Name>;
2774
2941
  declare function defineSlackChannel<const Name extends string>(input: ResourceInput<Name, SlackChannelInput>): ChannelResource<Name>;
2775
2942
  declare function defineTeamsChannel<const Name extends string>(input: ResourceInput<Name, TeamsChannelInput>): ChannelResource<Name>;
@@ -2781,5 +2948,5 @@ declare function isBroodsConfig(value: unknown): value is BroodsConfigDefinition
2781
2948
  declare function isConnectionDefinition(value: unknown): value is AnyConnectionDefinition;
2782
2949
  declare function isResource(value: unknown): value is AnyResource;
2783
2950
 
2784
- 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, defineGoogleChatChannel, defineGoogleChatConnection, defineHarness, defineMatrixChannel, defineMatrixConnection, defineMcp, definePancakeChannel, definePancakeConnection, definePolicy, defineSandbox, defineSkill, defineSlackChannel, defineSlackConnection, defineTeamsChannel, defineTeamsConnection, defineTelegramChannel, defineTelegramConnection, defineTwilioChannel, defineTwilioConnection, defineWhatsAppChannel, defineWhatsAppConnection, defineWorkspace, defineZaloChannel, defineZaloConnection, env, envPlaceholder, isBroodsConfig, isConnectionDefinition, isLogLevel, isObservabilityClientMessage, isResource, isRootSpanKind, isSandboxLogId, isTraceId, normalizeHttpServiceUrl, readSseStream, resolveEnvCredential, resolveRunEvents, toWebSocketBaseUrl, webSocketSubprotocols };
2785
- export type { Account, AccountAgent, AccountChannel, AccountEnvVar, AccountMcp, AccountPolicy, AccountRole, AccountSandbox, AccountWorkspace, Agent, AgentChannelsConfig, AgentCodeHookConfig, AgentConfig, AgentConfigDoc, AgentContinueInput, AgentDefinitionConfig, AgentDiscordChannelConfig, AgentGitHubChannelConfig, AgentGoogleChatChannelConfig, AgentHandle, AgentHookEventName, AgentHooks, AgentHooksConfig, AgentMatrixChannelConfig, AgentPancakeChannelConfig, AgentProviderSettings, AgentReference, AgentResource, AgentRunAnswerInput, AgentRunEventInput, AgentRunInput, AgentRunModelOverrides, AgentRunOverrides, AgentRunResult, AgentSkillsDefinitionConfig, AgentSlackChannelConfig, AgentStreamPart, AgentSubagentDefinitionConfig, AgentTeamsChannelConfig, AgentTelegramChannelConfig, AgentTwilioChannelConfig, AgentWebhookHookConfig, AgentWhatsAppChannelConfig, 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, ConfigPatch, ConnectionDefinition, CreateAgentResult, CreateCronInput, CreateMcpInput, Cron, CronDefinitionConfig, CronDoc, CronLastStatus, CronResource, CronRun, CronStatus, DeleteAccountResult, DiscordChannelInput, DiscordConnectionDefinition, DiscordConnectionInput, DiscordMessageSource, DiscordSource, Doc, EnvAccessor, EnvRef, EnvRefString, GeneratedIds, GitHubChannelInput, GitHubConnectionDefinition, GitHubConnectionInput, GitHubMessageSource, GitHubSource, GoogleChatChannelInput, GoogleChatConnectionDefinition, GoogleChatConnectionInput, GoogleChatMessageSource, GoogleChatSource, HarnessDefinition, HarnessType, HookAgentConfig, HookContext, Id, IngressMode, IngressStatus, LogLevel, MatrixChannelInput, MatrixConnectionDefinition, MatrixConnectionInput, MatrixMessageSource, MatrixSource, McpDefinitionConfig, McpHandler, McpOauthInput, McpResource, ObservabilityBackfillMessage, ObservabilityClientMessage, ObservabilityErrorMessage, ObservabilityFetchTraceMessage, ObservabilityLogEntry, ObservabilityLogMessage, ObservabilityReadyMessage, ObservabilityServerMessage, ObservabilitySpanMessage, ObservabilitySpanRow, ObservabilitySubscribeMessage, ObservabilityUnsubscribeMessage, PancakeChannelInput, PancakeConnectionDefinition, PancakeConnectionInput, PancakeMessageSource, PancakeSource, PendingQuestion, PolicyDefinitionConfig, PolicyDocument, PolicyResource, ProjectDoc, ProviderConfigInput, ProviderSettingsInput, QuestionAnswer, 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, TaskWaitingOn, TeamsChannelInput, TeamsConnectionDefinition, TeamsConnectionInput, TeamsMessageSource, TeamsSource, TelegramChannelInput, TelegramConnectionDefinition, TelegramConnectionInput, TelegramMessageSource, TelegramSource, ToolApprovalSummary, TwilioChannelInput, TwilioConnectionDefinition, TwilioConnectionInput, TwilioMessageSource, TwilioSource, UpdateAgentInput, UpdateCronInput, UpdateMcpInput, WebSocketAttachInput, WebSocketClientAttachMessage, WebSocketClientCancelMessage, WebSocketClientControlMessage, WebSocketClientExecuteMessage, WebSocketClientMessage, WebSocketConstructorLike, WebSocketHandlers, WebSocketLike, WebSocketOutputMessage, WebSocketRunInput, WebSocketServerMessage, WebSocketStreamMessage, WebSocketSubscription, WhatsAppChannelInput, WhatsAppConnectionDefinition, WhatsAppConnectionInput, WhatsAppMessageSource, WhatsAppSource, Workspace, WorkspaceConfig, WorkspaceConfigDoc, WorkspaceDefinitionConfig, WorkspaceFileEntry, WorkspaceResource, ZaloChannelInput, ZaloConnectionDefinition, ZaloConnectionInput, ZaloMessageSource, ZaloSource };
2951
+ 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, defineGoogleChatChannel, defineGoogleChatConnection, defineHarness, defineInstagramChannel, defineInstagramConnection, defineLinearChannel, defineLinearConnection, defineMatrixChannel, defineMatrixConnection, defineMcp, defineMessengerChannel, defineMessengerConnection, definePancakeChannel, definePancakeConnection, definePolicy, defineSandbox, defineSkill, defineSlackChannel, defineSlackConnection, defineTeamsChannel, defineTeamsConnection, defineTelegramChannel, defineTelegramConnection, defineTwilioChannel, defineTwilioConnection, defineWhatsAppChannel, defineWhatsAppConnection, defineWorkspace, defineZaloChannel, defineZaloConnection, env, envPlaceholder, isBroodsConfig, isConnectionDefinition, isLogLevel, isObservabilityClientMessage, isResource, isRootSpanKind, isSandboxLogId, isTraceId, normalizeHttpServiceUrl, readSseStream, resolveEnvCredential, resolveRunEvents, toWebSocketBaseUrl, webSocketSubprotocols };
2952
+ export type { Account, AccountAgent, AccountChannel, AccountEnvVar, AccountMcp, AccountPolicy, AccountRole, AccountSandbox, AccountWorkspace, Agent, AgentChannelsConfig, AgentCodeHookConfig, AgentConfig, AgentConfigDoc, AgentContinueInput, AgentDefinitionConfig, AgentDiscordChannelConfig, AgentGitHubChannelConfig, AgentGoogleChatChannelConfig, AgentHandle, AgentHookEventName, AgentHooks, AgentHooksConfig, AgentInstagramChannelConfig, AgentLinearChannelConfig, AgentMatrixChannelConfig, AgentMessengerChannelConfig, AgentPancakeChannelConfig, AgentProviderSettings, AgentReference, AgentResource, AgentRunAnswerInput, AgentRunEventInput, AgentRunInput, AgentRunModelOverrides, AgentRunOverrides, AgentRunResult, AgentSkillsDefinitionConfig, AgentSlackChannelConfig, AgentStreamPart, AgentSubagentDefinitionConfig, AgentTeamsChannelConfig, AgentTelegramChannelConfig, AgentTwilioChannelConfig, AgentWebhookHookConfig, AgentWhatsAppChannelConfig, 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, ConfigPatch, ConnectionDefinition, CreateAgentResult, CreateCronInput, CreateMcpInput, Cron, CronDefinitionConfig, CronDoc, CronLastStatus, CronResource, CronRun, CronStatus, DeleteAccountResult, DiscordChannelInput, DiscordConnectionDefinition, DiscordConnectionInput, DiscordMessageSource, DiscordSource, Doc, EnvAccessor, EnvRef, EnvRefString, GeneratedIds, GitHubChannelInput, GitHubConnectionDefinition, GitHubConnectionInput, GitHubMessageSource, GitHubSource, GoogleChatChannelInput, GoogleChatConnectionDefinition, GoogleChatConnectionInput, GoogleChatMessageSource, GoogleChatSource, HarnessDefinition, HarnessType, HookAgentConfig, HookContext, Id, IngressMode, IngressStatus, InstagramChannelInput, InstagramConnectionDefinition, InstagramConnectionInput, InstagramMessageSource, InstagramSource, LinearChannelInput, LinearConnectionDefinition, LinearConnectionInput, LinearMessageSource, LinearSource, LogLevel, MatrixChannelInput, MatrixConnectionDefinition, MatrixConnectionInput, MatrixMessageSource, MatrixSource, McpDefinitionConfig, McpHandler, McpOauthInput, McpResource, MessengerChannelInput, MessengerConnectionDefinition, MessengerConnectionInput, MessengerMessageSource, MessengerSource, ObservabilityBackfillMessage, ObservabilityClientMessage, ObservabilityErrorMessage, ObservabilityFetchTraceMessage, ObservabilityLogEntry, ObservabilityLogMessage, ObservabilityReadyMessage, ObservabilityServerMessage, ObservabilitySpanMessage, ObservabilitySpanRow, ObservabilitySubscribeMessage, ObservabilityUnsubscribeMessage, PancakeChannelInput, PancakeConnectionDefinition, PancakeConnectionInput, PancakeMessageSource, PancakeSource, PendingQuestion, PolicyDefinitionConfig, PolicyDocument, PolicyResource, ProjectDoc, ProviderConfigInput, ProviderSettingsInput, QuestionAnswer, 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, TaskWaitingOn, TeamsChannelInput, TeamsConnectionDefinition, TeamsConnectionInput, TeamsMessageSource, TeamsSource, TelegramChannelInput, TelegramConnectionDefinition, TelegramConnectionInput, TelegramMessageSource, TelegramSource, ToolApprovalSummary, TwilioChannelInput, TwilioConnectionDefinition, TwilioConnectionInput, TwilioMessageSource, TwilioSource, UpdateAgentInput, UpdateCronInput, UpdateMcpInput, WebSocketAttachInput, WebSocketClientAttachMessage, WebSocketClientCancelMessage, WebSocketClientControlMessage, WebSocketClientExecuteMessage, WebSocketClientMessage, WebSocketConstructorLike, WebSocketHandlers, WebSocketLike, WebSocketOutputMessage, WebSocketRunInput, WebSocketServerMessage, WebSocketStreamMessage, WebSocketSubscription, WhatsAppChannelInput, WhatsAppConnectionDefinition, WhatsAppConnectionInput, WhatsAppMessageSource, WhatsAppSource, Workspace, WorkspaceConfig, WorkspaceConfigDoc, WorkspaceDefinitionConfig, WorkspaceFileEntry, WorkspaceResource, ZaloChannelInput, ZaloConnectionDefinition, ZaloConnectionInput, ZaloMessageSource, ZaloSource };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{V,ge,Me,Pe,Ne,je,G,Ie,C,ye,U,J,xe,Y,E,qe,De,Le,Ue,Fe,Be,Ze,He,Ve,Ge,We,Ke,Je,Ye,Xe,Qe,et,tt,nt,rt,ot,st,it,at,ct,lt,ut,dt,pt,mt,ht,ft,ie,w,g}from"./chunk-zbp92p62.js";import{m,Ae,B,Z}from"./chunk-p7t6yawg.js";export{m as BroodsAccountApiError,Z as BroodsAccountClient,U as BroodsClient,xe as BroodsWebSocketClient,C as DEFAULT_CORE_BASE_URL,ye as IngressAcceptedError,Me as MAX_OBSERVABILITY_BACKFILL,xe as WebSocketClient,xe as WebsocketClient,De as defineAgent,Le as defineBroods,Ue as defineCron,st as defineDiscordChannel,We as defineDiscordConnection,it as defineGitHubChannel,Ke as defineGitHubConnection,at as defineGoogleChatChannel,Je as defineGoogleChatConnection,Fe as defineHarness,ct as defineMatrixChannel,Ye as defineMatrixConnection,Be as defineMcp,lt as definePancakeChannel,Xe as definePancakeConnection,Ze as definePolicy,He as defineSandbox,Ve as defineSkill,ut as defineSlackChannel,Qe as defineSlackConnection,dt as defineTeamsChannel,et as defineTeamsConnection,pt as defineTelegramChannel,tt as defineTelegramConnection,mt as defineTwilioChannel,nt as defineTwilioConnection,ht as defineWhatsAppChannel,rt as defineWhatsAppConnection,Ge as defineWorkspace,ft as defineZaloChannel,ot as defineZaloConnection,qe as env,Ae as envPlaceholder,ie as isBroodsConfig,w as isConnectionDefinition,Pe as isLogLevel,Ne as isObservabilityClientMessage,g as isResource,je as isRootSpanKind,G as isSandboxLogId,Ie as isTraceId,J as normalizeHttpServiceUrl,ge as readSseStream,B as resolveEnvCredential,V as resolveRunEvents,Y as toWebSocketBaseUrl,E as webSocketSubprotocols};
1
+ import{V,ge,Me,Pe,Ne,je,G,Ie,k,ye,U,J,xe,Y,E,qe,De,Le,Ue,Fe,Be,Ze,He,Ve,Ge,We,Ke,Je,Ye,Xe,Qe,et,tt,nt,rt,ot,st,it,at,ct,lt,ut,dt,pt,mt,ht,ft,gt,yt,St,bt,vt,_t,ie,w,g}from"./chunk-8h6ctjyq.js";import{m,Ae,B,Z}from"./chunk-p7t6yawg.js";export{m as BroodsAccountApiError,Z as BroodsAccountClient,U as BroodsClient,xe as BroodsWebSocketClient,k as DEFAULT_CORE_BASE_URL,ye as IngressAcceptedError,Me as MAX_OBSERVABILITY_BACKFILL,xe as WebSocketClient,xe as WebsocketClient,De as defineAgent,Le as defineBroods,Ue as defineCron,ct as defineDiscordChannel,We as defineDiscordConnection,lt as defineGitHubChannel,Ke as defineGitHubConnection,ut as defineGoogleChatChannel,Je as defineGoogleChatConnection,Fe as defineHarness,dt as defineInstagramChannel,Ye as defineInstagramConnection,pt as defineLinearChannel,Xe as defineLinearConnection,mt as defineMatrixChannel,Qe as defineMatrixConnection,Be as defineMcp,ht as defineMessengerChannel,et as defineMessengerConnection,ft as definePancakeChannel,tt as definePancakeConnection,Ze as definePolicy,He as defineSandbox,Ve as defineSkill,gt as defineSlackChannel,nt as defineSlackConnection,yt as defineTeamsChannel,rt as defineTeamsConnection,St as defineTelegramChannel,ot as defineTelegramConnection,bt as defineTwilioChannel,st as defineTwilioConnection,vt as defineWhatsAppChannel,it as defineWhatsAppConnection,Ge as defineWorkspace,_t as defineZaloChannel,at as defineZaloConnection,qe as env,Ae as envPlaceholder,ie as isBroodsConfig,w as isConnectionDefinition,Pe as isLogLevel,Ne as isObservabilityClientMessage,g as isResource,je as isRootSpanKind,G as isSandboxLogId,Ie as isTraceId,J as normalizeHttpServiceUrl,ge as readSseStream,B as resolveEnvCredential,V as resolveRunEvents,Y as toWebSocketBaseUrl,E as webSocketSubprotocols};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "broods",
3
- "version": "0.42.0",
3
+ "version": "0.43.1",
4
4
  "description": "CLI + TypeScript SDK for the broods agent platform.",
5
5
  "keywords": [
6
6
  "agents",
@@ -51,6 +51,7 @@
51
51
  "build": "bun scripts/build.ts && rollup -c rollup.dts.config.mjs && rm -rf .dts-temp",
52
52
  "check": "tsc --noEmit",
53
53
  "pack:check": "bun run build && publint && attw --pack .",
54
+ "prepublishOnly": "bun run build",
54
55
  "test": "bun test"
55
56
  },
56
57
  "dependencies": {