@inkeep/agents-work-apps 0.0.0-dev-20260224023234 → 0.0.0-dev-20260224030137
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/github/index.d.ts +3 -3
- package/dist/github/mcp/auth.d.ts +2 -2
- package/dist/github/mcp/index.d.ts +2 -2
- package/dist/github/routes/setup.d.ts +2 -2
- package/dist/github/routes/tokenExchange.d.ts +2 -2
- package/dist/github/routes/webhooks.d.ts +2 -2
- package/dist/slack/services/events/utils.d.ts +4 -2
- package/dist/slack/services/events/utils.js +5 -5
- package/dist/slack/services/modals.js +2 -2
- package/package.json +2 -2
package/dist/github/index.d.ts
CHANGED
|
@@ -4,10 +4,10 @@ import "./routes/setup.js";
|
|
|
4
4
|
import "./routes/tokenExchange.js";
|
|
5
5
|
import { WebhookVerificationResult, verifyWebhookSignature } from "./routes/webhooks.js";
|
|
6
6
|
import { Hono } from "hono";
|
|
7
|
-
import * as
|
|
7
|
+
import * as hono_types0 from "hono/types";
|
|
8
8
|
|
|
9
9
|
//#region src/github/index.d.ts
|
|
10
|
-
declare function createGithubRoutes(): Hono<
|
|
11
|
-
declare const githubRoutes: Hono<
|
|
10
|
+
declare function createGithubRoutes(): Hono<hono_types0.BlankEnv, hono_types0.BlankSchema, "/">;
|
|
11
|
+
declare const githubRoutes: Hono<hono_types0.BlankEnv, hono_types0.BlankSchema, "/">;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { GenerateInstallationAccessTokenResult, GenerateTokenError, GenerateTokenResult, GitHubAppConfig, InstallationAccessToken, InstallationInfo, LookupInstallationError, LookupInstallationForRepoResult, LookupInstallationResult, WebhookVerificationResult, clearConfigCache, createAppJwt, createGithubRoutes, determineStatus, fetchInstallationDetails, fetchInstallationRepositories, generateInstallationAccessToken, getGitHubAppConfig, getGitHubAppName, getStateSigningSecret, getWebhookSecret, githubRoutes, isGitHubAppConfigured, isGitHubAppNameConfigured, isStateSigningConfigured, isWebhookConfigured, lookupInstallationForRepo, validateGitHubAppConfigOnStartup, validateGitHubInstallFlowConfigOnStartup, validateGitHubWebhookConfigOnStartup, verifyWebhookSignature };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as hono1 from "hono";
|
|
2
2
|
|
|
3
3
|
//#region src/github/mcp/auth.d.ts
|
|
4
|
-
declare const githubMcpAuth: () =>
|
|
4
|
+
declare const githubMcpAuth: () => hono1.MiddlewareHandler<{
|
|
5
5
|
Variables: {
|
|
6
6
|
toolId: string;
|
|
7
7
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Hono } from "hono";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono_types9 from "hono/types";
|
|
3
3
|
|
|
4
4
|
//#region src/github/mcp/index.d.ts
|
|
5
5
|
declare const app: Hono<{
|
|
6
6
|
Variables: {
|
|
7
7
|
toolId: string;
|
|
8
8
|
};
|
|
9
|
-
},
|
|
9
|
+
}, hono_types9.BlankSchema, "/">;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { app as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Hono } from "hono";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono_types3 from "hono/types";
|
|
3
3
|
|
|
4
4
|
//#region src/github/routes/setup.d.ts
|
|
5
|
-
declare const app: Hono<
|
|
5
|
+
declare const app: Hono<hono_types3.BlankEnv, hono_types3.BlankSchema, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Hono } from "hono";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono_types7 from "hono/types";
|
|
3
3
|
|
|
4
4
|
//#region src/github/routes/tokenExchange.d.ts
|
|
5
|
-
declare const app: Hono<
|
|
5
|
+
declare const app: Hono<hono_types7.BlankEnv, hono_types7.BlankSchema, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Hono } from "hono";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono_types5 from "hono/types";
|
|
3
3
|
|
|
4
4
|
//#region src/github/routes/webhooks.d.ts
|
|
5
5
|
interface WebhookVerificationResult {
|
|
@@ -7,6 +7,6 @@ interface WebhookVerificationResult {
|
|
|
7
7
|
error?: string;
|
|
8
8
|
}
|
|
9
9
|
declare function verifyWebhookSignature(payload: string, signature: string | undefined, secret: string): WebhookVerificationResult;
|
|
10
|
-
declare const app: Hono<
|
|
10
|
+
declare const app: Hono<hono_types5.BlankEnv, hono_types5.BlankSchema, "/">;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { WebhookVerificationResult, app as default, verifyWebhookSignature };
|
|
@@ -137,8 +137,10 @@ declare function getThreadContext(slackClient: {
|
|
|
137
137
|
}) => Promise<{
|
|
138
138
|
user?: {
|
|
139
139
|
real_name?: string;
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
profile?: {
|
|
141
|
+
display_name?: string;
|
|
142
|
+
email?: string;
|
|
143
|
+
};
|
|
142
144
|
};
|
|
143
145
|
}>;
|
|
144
146
|
};
|
|
@@ -347,15 +347,15 @@ async function getThreadContext(slackClient, channel, threadTs, options = {}) {
|
|
|
347
347
|
try {
|
|
348
348
|
const userInfo = await slackClient.users?.info({ user: userId });
|
|
349
349
|
userNameCache.set(userId, {
|
|
350
|
-
displayName: userInfo?.user?.display_name,
|
|
350
|
+
displayName: userInfo?.user?.profile?.display_name,
|
|
351
351
|
fullName: userInfo?.user?.real_name,
|
|
352
|
-
|
|
352
|
+
email: userInfo?.user?.profile?.email
|
|
353
353
|
});
|
|
354
354
|
} catch {
|
|
355
355
|
userNameCache.set(userId, {
|
|
356
356
|
displayName: void 0,
|
|
357
357
|
fullName: void 0,
|
|
358
|
-
|
|
358
|
+
email: void 0
|
|
359
359
|
});
|
|
360
360
|
}
|
|
361
361
|
}));
|
|
@@ -365,10 +365,10 @@ async function getThreadContext(slackClient, channel, threadTs, options = {}) {
|
|
|
365
365
|
const parts = [`userId: ${userId}`];
|
|
366
366
|
if (info.displayName) parts.push(`"${info.displayName}"`);
|
|
367
367
|
if (info.fullName) parts.push(`"${info.fullName}"`);
|
|
368
|
-
if (info.
|
|
368
|
+
if (info.email) parts.push(info.email);
|
|
369
369
|
userDirectoryLines.push(`- ${parts.join(", ")}`);
|
|
370
370
|
}
|
|
371
|
-
return `${userDirectoryLines.length > 0 ? `Users in this thread (UserId - DisplayName, FullName,
|
|
371
|
+
return `${userDirectoryLines.length > 0 ? `Users in this thread (UserId - DisplayName, FullName, Email):\n${userDirectoryLines.join("\n")}\n\n` : ""}Messages in this thread:\n${messagesToProcess.map((msg, index) => {
|
|
372
372
|
const isBot = !!msg.bot_id;
|
|
373
373
|
const isParent = index === 0;
|
|
374
374
|
let role;
|
|
@@ -29,7 +29,7 @@ function buildAgentSelectorModal(params) {
|
|
|
29
29
|
const agentOptions = agents.length > 0 ? agents.map((agent) => ({
|
|
30
30
|
text: {
|
|
31
31
|
type: "plain_text",
|
|
32
|
-
text: agent.name
|
|
32
|
+
text: agent.name ? `${agent.name} (${agent.id})` : agent.id,
|
|
33
33
|
emoji: true
|
|
34
34
|
},
|
|
35
35
|
value: JSON.stringify({
|
|
@@ -234,7 +234,7 @@ function buildMessageShortcutModal(params) {
|
|
|
234
234
|
const agentOptions = agents.length > 0 ? agents.map((agent) => ({
|
|
235
235
|
text: {
|
|
236
236
|
type: "plain_text",
|
|
237
|
-
text: agent.name
|
|
237
|
+
text: agent.name ? `${agent.name} (${agent.id})` : agent.id,
|
|
238
238
|
emoji: true
|
|
239
239
|
},
|
|
240
240
|
value: JSON.stringify({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-work-apps",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20260224030137",
|
|
4
4
|
"description": "First party integrations for Inkeep Agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"jose": "^6.1.0",
|
|
34
34
|
"minimatch": "^10.1.1",
|
|
35
35
|
"slack-block-builder": "^2.8.0",
|
|
36
|
-
"@inkeep/agents-core": "0.0.0-dev-
|
|
36
|
+
"@inkeep/agents-core": "0.0.0-dev-20260224030137"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@hono/zod-openapi": "^1.1.5",
|