broods 0.7.0 → 0.8.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/account.d.ts +6 -0
- package/dist/{chunk-jrshks26.js → chunk-phmt1gk7.js} +5 -5
- package/dist/cli/index.js +90 -99
- package/dist/index.d.ts +7 -0
- package/dist/index.js +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -262,6 +262,7 @@ interface AgentTelegramChannelConfig {
|
|
|
262
262
|
webhookSecret?: string;
|
|
263
263
|
allowedChatIds?: number[];
|
|
264
264
|
reactionEmoji?: string;
|
|
265
|
+
trace?: "enabled" | "disabled";
|
|
265
266
|
workspaceScope?: AgentChannelWorkspaceScope;
|
|
266
267
|
[key: string]: unknown;
|
|
267
268
|
}
|
|
@@ -280,6 +281,7 @@ interface AgentGitHubChannelConfig {
|
|
|
280
281
|
triggerOnIssueOpen?: boolean;
|
|
281
282
|
/** When false, the bot does not auto-trigger on new PRs (opened/edited/reopened). Defaults to true. The bot still triggers when assigned to a PR. */
|
|
282
283
|
triggerOnPROpen?: boolean;
|
|
284
|
+
trace?: "enabled" | "disabled";
|
|
283
285
|
workspaceScope?: AgentChannelWorkspaceScope;
|
|
284
286
|
[key: string]: unknown;
|
|
285
287
|
}
|
|
@@ -290,6 +292,7 @@ interface AgentSlackChannelConfig {
|
|
|
290
292
|
signingSecret?: string;
|
|
291
293
|
allowedChannelIds?: string[];
|
|
292
294
|
reactionEmoji?: string;
|
|
295
|
+
trace?: "enabled" | "disabled";
|
|
293
296
|
workspaceScope?: AgentChannelWorkspaceScope;
|
|
294
297
|
[key: string]: unknown;
|
|
295
298
|
}
|
|
@@ -303,6 +306,7 @@ interface AgentDiscordChannelConfig {
|
|
|
303
306
|
botUserId?: string;
|
|
304
307
|
/** Role ids that count as mentioning the agent, e.g. an on-call role. */
|
|
305
308
|
mentionRoleIds?: string[];
|
|
309
|
+
trace?: "enabled" | "disabled";
|
|
306
310
|
workspaceScope?: AgentChannelWorkspaceScope;
|
|
307
311
|
[key: string]: unknown;
|
|
308
312
|
}
|
|
@@ -312,6 +316,7 @@ interface AgentPancakeChannelConfig {
|
|
|
312
316
|
pageAccessToken?: string;
|
|
313
317
|
webhookSecret?: string;
|
|
314
318
|
senderId?: string;
|
|
319
|
+
trace?: "enabled" | "disabled";
|
|
315
320
|
workspaceScope?: AgentChannelWorkspaceScope;
|
|
316
321
|
[key: string]: unknown;
|
|
317
322
|
}
|
|
@@ -320,6 +325,7 @@ interface AgentZaloChannelConfig {
|
|
|
320
325
|
botToken?: string;
|
|
321
326
|
webhookSecret?: string;
|
|
322
327
|
allowedUserIds?: string[];
|
|
328
|
+
trace?: "enabled" | "disabled";
|
|
323
329
|
workspaceScope?: AgentChannelWorkspaceScope;
|
|
324
330
|
[key: string]: unknown;
|
|
325
331
|
}
|
|
@@ -1690,6 +1696,7 @@ interface ChannelDefinition<Type extends ChannelType, Config> {
|
|
|
1690
1696
|
type RequiredChannelKeys<Config, Keys extends keyof Config> = Required<Pick<Config, Keys>> & Omit<Config, Keys>;
|
|
1691
1697
|
type ChannelSecret = string | EnvRef | undefined;
|
|
1692
1698
|
type ChannelIdentityInput = {
|
|
1699
|
+
trace?: "enabled" | "disabled";
|
|
1693
1700
|
workspaceScope?: AgentChannelWorkspaceScope;
|
|
1694
1701
|
};
|
|
1695
1702
|
type TelegramChannelInput = EnvRefString<RequiredChannelKeys<Pick<AgentTelegramChannelConfig, "apiUrl" | "botToken" | "webhookSecret" | "allowedChatIds" | "reactionEmoji">, "botToken" | "webhookSecret" | "allowedChatIds">> & ChannelIdentityInput;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as M,b as h,c as O}from"./chunk-wvs39trg.js";import{A as _,B as P,C as H,D as U,E as B,F as K,G as j,H as F,I as G,J as z,K as Z,L as V,M as X,d as x,e as I,n as v,o as k,p as S,q as A,r as R,s as W,t as L,u as w,v as E,w as D,x as T,y as q,z as N}from"./chunk-
|
|
1
|
+
import{a as M,b as h,c as O}from"./chunk-wvs39trg.js";import{A as _,B as P,C as H,D as U,E as B,F as K,G as j,H as F,I as G,J as z,K as Z,L as V,M as X,d as x,e as I,n as v,o as k,p as S,q as A,r as R,s as W,t as L,u as w,v as E,w as D,x as T,y as q,z as N}from"./chunk-phmt1gk7.js";import"./chunk-51a2zca3.js";var o=500;function a(s){if(typeof s!=="object"||s===null)return!1;let e=s;if(e.type==="subscribe"){let t=e.stream;if(t!=="logs"&&t!=="traces")return!1;let r=e.backfill;if(r!==void 0&&(typeof r!=="number"||!Number.isSafeInteger(r)||r<0||r>500))return!1;if(e.liveOnly!==void 0&&typeof e.liveOnly!=="boolean")return!1;let n=e.minLevel;if(n!==void 0&&n!=="INFO"&&n!=="WARN"&&n!=="ERROR")return!1;return!0}if(e.type==="unsubscribe"){let t=e.stream;return t==="logs"||t==="traces"}return!1}export{h as BroodsAccountApiError,O as BroodsAccountClient,S as BroodsClient,R as BroodsWebSocketClient,v as DEFAULT_CORE_BASE_URL,k as IngressAcceptedError,o as MAX_OBSERVABILITY_BACKFILL,R as WebSocketClient,R as WebsocketClient,P as defineAgent,_ as defineBroods,G as defineChannelRecord,z as defineCron,T as defineDiscordChannel,E as defineGitHubChannel,H as defineHarness,q as definePancakeChannel,F as definePolicy,B as defineSandbox,K as defineSkill,D as defineSlackChannel,w as defineTelegramChannel,j as defineTool,U as defineWorkspace,N as defineZaloChannel,L as env,M as envPlaceholder,X as isBroodsConfig,V as isChannelDefinition,a as isObservabilityClientMessage,Z as isResource,A as normalizeHttpServiceUrl,I as readSseStream,x as resolveRunEvents,W as toWebSocketBaseUrl};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "broods",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "CLI + TypeScript SDK for the broods agent platform.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
"node": ">=22"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"esbuild": "^0.28.
|
|
53
|
+
"esbuild": "^0.28.2"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"ai": "^7.0.
|
|
56
|
+
"ai": "^7.0.58"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@ai-sdk/tui": "^1.0.
|
|
60
|
-
"ai": "^7.0.
|
|
59
|
+
"@ai-sdk/tui": "^1.0.59",
|
|
60
|
+
"ai": "^7.0.58",
|
|
61
61
|
"@chat-adapter/discord": "^4.35.0",
|
|
62
62
|
"@chat-adapter/github": "^4.35.0",
|
|
63
63
|
"@chat-adapter/slack": "^4.35.0",
|