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/README.md +2 -2
- package/dist/account.d.ts +70 -2
- package/dist/{chunk-p5134ra1.js → chunk-43d2rmnt.js} +8 -8
- package/dist/{chunk-t3g8jagy.js → chunk-44z8fx25.js} +8 -8
- package/dist/{chunk-zbp92p62.js → chunk-8h6ctjyq.js} +4 -4
- package/dist/{chunk-ghv3v607.js → chunk-e1r3sjyg.js} +1 -1
- package/dist/{chunk-zj2wzjc6.js → chunk-f3e652yr.js} +1 -1
- package/dist/{chunk-m42xgkbk.js → chunk-gx4bgysk.js} +1 -1
- package/dist/{chunk-7j1e8kv6.js → chunk-kv5jt2qt.js} +2 -2
- package/dist/{chunk-gerkxepr.js → chunk-r0kw4h6z.js} +1 -1
- package/dist/cli/index.js +62 -56
- package/dist/index.d.ts +174 -7
- package/dist/index.js +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -28,8 +28,8 @@ npm install -g broods
|
|
|
28
28
|
broods dev
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
`broods update` installs the newest release
|
|
32
|
-
`broods dev` says so when one is out.
|
|
31
|
+
`broods update` installs the newest release of the major you run over the copy
|
|
32
|
+
you are running, and `broods dev` says so when one is out.
|
|
33
33
|
|
|
34
34
|
`ai` is a peer dependency that bun, npm and pnpm install automatically, so the
|
|
35
35
|
CLI and your project share one copy. On a package manager that does not
|
package/dist/account.d.ts
CHANGED
|
@@ -312,14 +312,19 @@ interface AgentWorkspaceRef {
|
|
|
312
312
|
}
|
|
313
313
|
interface AgentSessionConfig {
|
|
314
314
|
pruning?: AgentSessionPruningConfig;
|
|
315
|
-
|
|
315
|
+
autoCompaction?: AgentSessionAutoCompactionConfig;
|
|
316
316
|
[key: string]: unknown;
|
|
317
317
|
}
|
|
318
318
|
interface AgentSessionPruningConfig {
|
|
319
319
|
enabled?: boolean;
|
|
320
320
|
[key: string]: unknown;
|
|
321
321
|
}
|
|
322
|
-
|
|
322
|
+
/**
|
|
323
|
+
* Compaction after a finished turn, on unless `enabled: false`. It runs once
|
|
324
|
+
* the turn's last model call read `maxContextLength` input tokens or more
|
|
325
|
+
* (default 500000). `/compact` works whatever this says.
|
|
326
|
+
*/
|
|
327
|
+
interface AgentSessionAutoCompactionConfig {
|
|
323
328
|
enabled?: boolean;
|
|
324
329
|
maxContextLength?: number;
|
|
325
330
|
[key: string]: unknown;
|
|
@@ -382,6 +387,7 @@ interface AgentChannelsConfig {
|
|
|
382
387
|
telegram?: AgentTelegramChannelConfig;
|
|
383
388
|
gchat?: AgentGoogleChatChannelConfig;
|
|
384
389
|
github?: AgentGitHubChannelConfig;
|
|
390
|
+
linear?: AgentLinearChannelConfig;
|
|
385
391
|
slack?: AgentSlackChannelConfig;
|
|
386
392
|
discord?: AgentDiscordChannelConfig;
|
|
387
393
|
pancake?: AgentPancakeChannelConfig;
|
|
@@ -389,6 +395,8 @@ interface AgentChannelsConfig {
|
|
|
389
395
|
twilio?: AgentTwilioChannelConfig;
|
|
390
396
|
zalo?: AgentZaloChannelConfig;
|
|
391
397
|
matrix?: AgentMatrixChannelConfig;
|
|
398
|
+
instagram?: AgentInstagramChannelConfig;
|
|
399
|
+
messenger?: AgentMessengerChannelConfig;
|
|
392
400
|
whatsapp?: AgentWhatsAppChannelConfig;
|
|
393
401
|
[key: string]: unknown;
|
|
394
402
|
}
|
|
@@ -438,6 +446,25 @@ interface AgentGitHubChannelConfig {
|
|
|
438
446
|
partition?: ChannelPartition;
|
|
439
447
|
[key: string]: unknown;
|
|
440
448
|
}
|
|
449
|
+
/**
|
|
450
|
+
* A Linear member the agent comments as, through that member's personal API
|
|
451
|
+
* key. The agent answers comments that mention `@userName` on issues, and
|
|
452
|
+
* `webhookSecret` checks every delivery.
|
|
453
|
+
*/
|
|
454
|
+
interface AgentLinearChannelConfig {
|
|
455
|
+
allowedChannelIds?: string[];
|
|
456
|
+
allowedUserIds?: string[];
|
|
457
|
+
id?: string;
|
|
458
|
+
apiKey?: string;
|
|
459
|
+
/** Linear GraphQL endpoint. Defaults to `https://api.linear.app/graphql`. */
|
|
460
|
+
apiUrl?: string;
|
|
461
|
+
/** The member's display name, e.g. `acme-agent`. `@acme-agent` addresses the agent. */
|
|
462
|
+
userName?: string;
|
|
463
|
+
webhookSecret?: string;
|
|
464
|
+
trace?: "enabled" | "disabled";
|
|
465
|
+
partition?: ChannelPartition;
|
|
466
|
+
[key: string]: unknown;
|
|
467
|
+
}
|
|
441
468
|
interface AgentSlackChannelConfig {
|
|
442
469
|
id?: string;
|
|
443
470
|
apiUrl?: string;
|
|
@@ -514,6 +541,47 @@ interface AgentZaloChannelConfig {
|
|
|
514
541
|
partition?: ChannelPartition;
|
|
515
542
|
[key: string]: unknown;
|
|
516
543
|
}
|
|
544
|
+
/**
|
|
545
|
+
* An Instagram professional account, reached through a Meta app with
|
|
546
|
+
* Instagram Login. `accountId` is the account the webhook entries name.
|
|
547
|
+
*/
|
|
548
|
+
interface AgentInstagramChannelConfig {
|
|
549
|
+
allowedChannelIds?: string[];
|
|
550
|
+
allowedUserIds?: string[];
|
|
551
|
+
id?: string;
|
|
552
|
+
/** Instagram user access token with `instagram_business_manage_messages`. */
|
|
553
|
+
accessToken?: string;
|
|
554
|
+
/** Instagram professional account id. */
|
|
555
|
+
accountId?: string;
|
|
556
|
+
/** Graph API version, e.g. `v26.0`. Defaults to the SDK's. */
|
|
557
|
+
apiVersion?: string;
|
|
558
|
+
/** Meta app secret; signs every webhook POST. */
|
|
559
|
+
appSecret?: string;
|
|
560
|
+
userName?: string;
|
|
561
|
+
/** The verify token typed into the Meta webhook settings. */
|
|
562
|
+
verifyToken?: string;
|
|
563
|
+
trace?: "enabled" | "disabled";
|
|
564
|
+
partition?: ChannelPartition;
|
|
565
|
+
[key: string]: unknown;
|
|
566
|
+
}
|
|
567
|
+
/** A Facebook Page the agent answers Messenger DMs for. */
|
|
568
|
+
interface AgentMessengerChannelConfig {
|
|
569
|
+
allowedChannelIds?: string[];
|
|
570
|
+
allowedUserIds?: string[];
|
|
571
|
+
id?: string;
|
|
572
|
+
/** Graph API version, e.g. `v21.0`. Defaults to the SDK's. */
|
|
573
|
+
apiVersion?: string;
|
|
574
|
+
/** Meta app secret; signs every webhook POST. */
|
|
575
|
+
appSecret?: string;
|
|
576
|
+
/** Page access token for the Page the app is subscribed to. */
|
|
577
|
+
pageAccessToken?: 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
|
+
}
|
|
517
585
|
/**
|
|
518
586
|
* A Google Chat app on the HTTP endpoint connection. It posts as the service
|
|
519
587
|
* account in `credentials`, and a webhook is accepted when its Google-signed
|