@inkeep/agents-work-apps 0.0.0-dev-20260219110526 → 0.0.0-dev-20260219144639

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.
@@ -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 hono_types5 from "hono/types";
7
+ import * as hono_types3 from "hono/types";
8
8
 
9
9
  //#region src/github/index.d.ts
10
- declare function createGithubRoutes(): Hono<hono_types5.BlankEnv, hono_types5.BlankSchema, "/">;
11
- declare const githubRoutes: Hono<hono_types5.BlankEnv, hono_types5.BlankSchema, "/">;
10
+ declare function createGithubRoutes(): Hono<hono_types3.BlankEnv, hono_types3.BlankSchema, "/">;
11
+ declare const githubRoutes: Hono<hono_types3.BlankEnv, hono_types3.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
1
  import { Hono } from "hono";
2
- import * as hono_types1 from "hono/types";
2
+ import * as hono_types7 from "hono/types";
3
3
 
4
4
  //#region src/github/routes/tokenExchange.d.ts
5
- declare const app: Hono<hono_types1.BlankEnv, hono_types1.BlankSchema, "/">;
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 hono_types3 from "hono/types";
2
+ import * as hono_types1 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<hono_types3.BlankEnv, hono_types3.BlankSchema, "/">;
10
+ declare const app: Hono<hono_types1.BlankEnv, hono_types1.BlankSchema, "/">;
11
11
  //#endregion
12
12
  export { WebhookVerificationResult, app as default, verifyWebhookSignature };
@@ -277,7 +277,10 @@ async function dispatchSlackEvent(eventType, payload, options, span) {
277
277
  span.setAttribute(SLACK_SPAN_KEYS.CALLBACK_ID, callbackId || "unknown");
278
278
  if (callbackId === "agent_selector_modal") {
279
279
  const view = payload.view;
280
- const agentSelect = view.state?.values?.agent_select_block?.agent_select;
280
+ const values = view.state?.values || {};
281
+ const agentSelectEntry = Object.entries(values).find(([, block]) => block.agent_select);
282
+ const agentSelectBlockId = agentSelectEntry?.[0];
283
+ const agentSelect = agentSelectEntry ? agentSelectEntry[1].agent_select : void 0;
281
284
  if (!agentSelect?.selected_option?.value || agentSelect.selected_option.value === "none") {
282
285
  outcome = "validation_error";
283
286
  span.setAttribute(SLACK_SPAN_KEYS.OUTCOME, outcome);
@@ -286,7 +289,7 @@ async function dispatchSlackEvent(eventType, payload, options, span) {
286
289
  outcome,
287
290
  response: {
288
291
  response_action: "errors",
289
- errors: { agent_select_block: "Please select an agent. If none are available, add agents to this project in the dashboard." }
292
+ errors: { [agentSelectBlockId || "agent_select_block"]: "Please select an agent. If none are available, add agents to this project in the dashboard." }
290
293
  }
291
294
  };
292
295
  }
@@ -29,7 +29,7 @@ async function handleModalSubmission(view) {
29
29
  span.setAttribute(SLACK_SPAN_KEYS.USER_ID, metadata.slackUserId || "");
30
30
  span.setAttribute(SLACK_SPAN_KEYS.TENANT_ID, metadata.tenantId || "");
31
31
  const values = view.state?.values || {};
32
- const agentSelectValue = values.agent_select_block?.agent_select;
32
+ const agentSelectValue = Object.values(values).map((block) => block.agent_select).find(Boolean);
33
33
  const questionValue = values.question_block?.question_input;
34
34
  const includeContextValue = values.context_block?.include_context_checkbox;
35
35
  const question = questionValue?.value || "";
@@ -66,7 +66,7 @@ function buildAgentSelectorModal(params) {
66
66
  }
67
67
  }, {
68
68
  type: "input",
69
- block_id: "agent_select_block",
69
+ block_id: selectedProjectId ? `agent_select_block_${selectedProjectId}` : "agent_select_block",
70
70
  element: {
71
71
  type: "static_select",
72
72
  action_id: "agent_select",
@@ -283,7 +283,7 @@ function buildMessageShortcutModal(params) {
283
283
  },
284
284
  {
285
285
  type: "input",
286
- block_id: "agent_select_block",
286
+ block_id: selectedProjectId ? `agent_select_block_${selectedProjectId}` : "agent_select_block",
287
287
  element: {
288
288
  type: "static_select",
289
289
  action_id: "agent_select",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-work-apps",
3
- "version": "0.0.0-dev-20260219110526",
3
+ "version": "0.0.0-dev-20260219144639",
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-20260219110526"
36
+ "@inkeep/agents-core": "0.0.0-dev-20260219144639"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@hono/zod-openapi": "^1.1.5",