@agentconnect.md/setup 1.51.0 → 1.52.0-rc.11
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.js +20 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -37447,6 +37447,18 @@ var import_fastify = /* @__PURE__ */ __toESM(require_fastify(), 1);
|
|
|
37447
37447
|
const SLACK_MANAGE_SESSION_SHORTCUT_CALLBACK_ID = "ac_manage_session";
|
|
37448
37448
|
/** Public platform profile copy. Never derive this from an Agent description. */
|
|
37449
37449
|
const PLATFORM_APP_DESCRIPTION = "AI agent powered by AgentConnect.";
|
|
37450
|
+
/**
|
|
37451
|
+
* Every bot scope the app requests, and the exact set an installation must hold.
|
|
37452
|
+
*
|
|
37453
|
+
* There was briefly a required/capability split here, on the theory that a scope backing one
|
|
37454
|
+
* optional tool should not mark an older installation broken. It did not survive contact: the
|
|
37455
|
+
* "required" half was not required either — the app receives and answers messages without
|
|
37456
|
+
* several of them — so the line was invented rather than observed, and it bought a second
|
|
37457
|
+
* constant, an extra API field, extra console branches, and a message that said six permissions
|
|
37458
|
+
* were missing without naming them. One list is both simpler and more honest: these are the
|
|
37459
|
+
* scopes AgentConnect needs, an install short of any of them is incomplete, and the console
|
|
37460
|
+
* says exactly which to add.
|
|
37461
|
+
*/
|
|
37450
37462
|
const SLACK_BOT_SCOPES = [
|
|
37451
37463
|
"files:read",
|
|
37452
37464
|
"app_mentions:read",
|
|
@@ -37459,12 +37471,19 @@ const SLACK_BOT_SCOPES = [
|
|
|
37459
37471
|
"groups:history",
|
|
37460
37472
|
"groups:read",
|
|
37461
37473
|
"im:history",
|
|
37474
|
+
"im:read",
|
|
37462
37475
|
"im:write",
|
|
37463
37476
|
"mpim:history",
|
|
37464
37477
|
"mpim:read",
|
|
37478
|
+
"reactions:read",
|
|
37465
37479
|
"reactions:write",
|
|
37466
37480
|
"assistant:write",
|
|
37467
|
-
"users:read"
|
|
37481
|
+
"users:read",
|
|
37482
|
+
"canvases:read",
|
|
37483
|
+
"canvases:write",
|
|
37484
|
+
"channels:manage",
|
|
37485
|
+
"groups:write",
|
|
37486
|
+
"mpim:write"
|
|
37468
37487
|
];
|
|
37469
37488
|
const SLACK_BOT_EVENTS = [
|
|
37470
37489
|
"agent_session_stopped",
|