@toolpack-sdk/agents 2.3.0 → 2.5.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/README.md +175 -0
- package/dist/{base-agent-65162dq7.d.cts → base-agent-C4fYjHPu.d.ts} +13 -1
- package/dist/{base-agent-DzspMyaG.d.ts → base-agent-Dqca3WLY.d.cts} +13 -1
- package/dist/capabilities/index.cjs +27 -9
- package/dist/capabilities/index.d.cts +3 -3
- package/dist/capabilities/index.d.ts +3 -3
- package/dist/capabilities/index.js +27 -9
- package/dist/channels/index.cjs +2 -2
- package/dist/channels/index.d.cts +2 -2
- package/dist/channels/index.d.ts +2 -2
- package/dist/channels/index.js +2 -2
- package/dist/{eval-report-C6dSvR3Y.d.ts → eval-report-CO98LRUC.d.ts} +1 -1
- package/dist/{eval-report-BUD6NRiP.d.cts → eval-report-DV-wNcjW.d.cts} +1 -1
- package/dist/{index-BxUlu-qG.d.ts → index-BCBukKC4.d.ts} +15 -5
- package/dist/{index-DrigwC1A.d.cts → index-CA38tE7C.d.cts} +15 -5
- package/dist/index.cjs +45 -27
- package/dist/index.d.cts +111 -9
- package/dist/index.d.ts +111 -9
- package/dist/index.js +45 -27
- package/dist/{intent-classifier-agent-mmNoAozf.d.ts → intent-classifier-agent-ACQSotfT.d.ts} +2 -2
- package/dist/{intent-classifier-agent-D0rWtviD.d.cts → intent-classifier-agent-CPKmOVJx.d.cts} +2 -2
- package/dist/interceptors/index.d.cts +4 -4
- package/dist/interceptors/index.d.ts +4 -4
- package/dist/testing/index.d.cts +3 -3
- package/dist/testing/index.d.ts +3 -3
- package/dist/{types-C3eW-auY.d.cts → types-C3EZvpe0.d.cts} +57 -1
- package/dist/{types-C3eW-auY.d.ts → types-C3EZvpe0.d.ts} +57 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AgentInput,
|
|
1
|
+
import { A as AgentInput, f as AgentOutput } from './types-C3EZvpe0.js';
|
|
2
2
|
import { Participant } from 'toolpack-sdk';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -132,6 +132,15 @@ declare class SlackChannel extends BaseChannel {
|
|
|
132
132
|
* ```
|
|
133
133
|
*/
|
|
134
134
|
botUserId?: string;
|
|
135
|
+
/**
|
|
136
|
+
* The bot's Slack integration id (e.g. `'B_BOT123'`), populated by the
|
|
137
|
+
* startup self-check (`auth.test`) alongside `botUserId`.
|
|
138
|
+
*
|
|
139
|
+
* Used internally for self-suppression of DM `bot_message` events where
|
|
140
|
+
* Slack omits the `user` field (so `botUserId` comparison cannot fire).
|
|
141
|
+
* Not needed for regular channel posts — those carry `event.user`.
|
|
142
|
+
*/
|
|
143
|
+
private botId?;
|
|
135
144
|
/**
|
|
136
145
|
* Normalized allowlist of channel identifiers, or `null` to accept any channel.
|
|
137
146
|
* Derived from `config.channel` at construction time.
|
|
@@ -200,10 +209,11 @@ declare class SlackChannel extends BaseChannel {
|
|
|
200
209
|
* 2. Channel allowlist (from `config.channel`): events outside the allowlist
|
|
201
210
|
* are dropped. DMs (`im`/`mpim`) always pass because they are per-user, not
|
|
202
211
|
* per-channel. Skipped entirely when `config.channel` is null/omitted.
|
|
203
|
-
* 3. **Self-suppression (automatic):** events where `event.user` matches
|
|
204
|
-
*
|
|
205
|
-
*
|
|
206
|
-
*
|
|
212
|
+
* 3. **Self-suppression (automatic):** events where `event.user` matches
|
|
213
|
+
* `botUserId`, OR where `event.bot_id` matches `botId`, are dropped. This
|
|
214
|
+
* handles both channel posts (where Slack sets `event.user`) and DM posts
|
|
215
|
+
* (where Slack omits `event.user` but sets `event.bot_id`). Requires no
|
|
216
|
+
* configuration — both ids are discovered via `auth.test` at startup.
|
|
207
217
|
* 4. Events without `bot_id` (human messages) pass.
|
|
208
218
|
* 5. Explicit blocklist check (`blockedBotIds`) runs first for bot messages.
|
|
209
219
|
* 6. If `allowedBotIds` is provided, strict mode applies: only listed bots
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AgentInput,
|
|
1
|
+
import { A as AgentInput, f as AgentOutput } from './types-C3EZvpe0.cjs';
|
|
2
2
|
import { Participant } from 'toolpack-sdk';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -132,6 +132,15 @@ declare class SlackChannel extends BaseChannel {
|
|
|
132
132
|
* ```
|
|
133
133
|
*/
|
|
134
134
|
botUserId?: string;
|
|
135
|
+
/**
|
|
136
|
+
* The bot's Slack integration id (e.g. `'B_BOT123'`), populated by the
|
|
137
|
+
* startup self-check (`auth.test`) alongside `botUserId`.
|
|
138
|
+
*
|
|
139
|
+
* Used internally for self-suppression of DM `bot_message` events where
|
|
140
|
+
* Slack omits the `user` field (so `botUserId` comparison cannot fire).
|
|
141
|
+
* Not needed for regular channel posts — those carry `event.user`.
|
|
142
|
+
*/
|
|
143
|
+
private botId?;
|
|
135
144
|
/**
|
|
136
145
|
* Normalized allowlist of channel identifiers, or `null` to accept any channel.
|
|
137
146
|
* Derived from `config.channel` at construction time.
|
|
@@ -200,10 +209,11 @@ declare class SlackChannel extends BaseChannel {
|
|
|
200
209
|
* 2. Channel allowlist (from `config.channel`): events outside the allowlist
|
|
201
210
|
* are dropped. DMs (`im`/`mpim`) always pass because they are per-user, not
|
|
202
211
|
* per-channel. Skipped entirely when `config.channel` is null/omitted.
|
|
203
|
-
* 3. **Self-suppression (automatic):** events where `event.user` matches
|
|
204
|
-
*
|
|
205
|
-
*
|
|
206
|
-
*
|
|
212
|
+
* 3. **Self-suppression (automatic):** events where `event.user` matches
|
|
213
|
+
* `botUserId`, OR where `event.bot_id` matches `botId`, are dropped. This
|
|
214
|
+
* handles both channel posts (where Slack sets `event.user`) and DM posts
|
|
215
|
+
* (where Slack omits `event.user` but sets `event.bot_id`). Requires no
|
|
216
|
+
* configuration — both ids are discovered via `auth.test` at startup.
|
|
207
217
|
* 4. Events without `bot_id` (human messages) pass.
|
|
208
218
|
* 5. Explicit blocklist check (`blockedBotIds`) runs first for bot messages.
|
|
209
219
|
* 6. If `allowedBotIds` is provided, strict mode applies: only listed bots
|