@inkeep/agents-work-apps 0.0.0-dev-20260212085218 → 0.0.0-dev-20260212092330

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.
@@ -1,7 +1,7 @@
1
1
  import { Hono } from "hono";
2
- import * as hono_types8 from "hono/types";
2
+ import * as hono_types4 from "hono/types";
3
3
 
4
4
  //#region src/github/routes/setup.d.ts
5
- declare const app: Hono<hono_types8.BlankEnv, hono_types8.BlankSchema, "/">;
5
+ declare const app: Hono<hono_types4.BlankEnv, hono_types4.BlankSchema, "/">;
6
6
  //#endregion
7
7
  export { app as default };
@@ -1,7 +1,7 @@
1
1
  import { Hono } from "hono";
2
- import * as hono_types4 from "hono/types";
2
+ import * as hono_types6 from "hono/types";
3
3
 
4
4
  //#region src/github/routes/tokenExchange.d.ts
5
- declare const app: Hono<hono_types4.BlankEnv, hono_types4.BlankSchema, "/">;
5
+ declare const app: Hono<hono_types6.BlankEnv, hono_types6.BlankSchema, "/">;
6
6
  //#endregion
7
7
  export { app as default };
@@ -1,5 +1,5 @@
1
1
  import { Hono } from "hono";
2
- import * as hono_types6 from "hono/types";
2
+ import * as hono_types8 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_types6.BlankEnv, hono_types6.BlankSchema, "/">;
10
+ declare const app: Hono<hono_types8.BlankEnv, hono_types8.BlankSchema, "/">;
11
11
  //#endregion
12
12
  export { WebhookVerificationResult, app as default, verifyWebhookSignature };
@@ -275,22 +275,32 @@ app.openapi(createRoute({
275
275
  tenantId
276
276
  }, "Workspace already exists in database");
277
277
  else {
278
+ const pgCode = dbError && typeof dbError === "object" && "code" in dbError ? dbError.code : void 0;
278
279
  logger.error({
279
- error: dbErrorMessage,
280
- teamId: workspaceData.teamId
280
+ err: dbError,
281
+ dbErrorMessage,
282
+ pgCode,
283
+ teamId: workspaceData.teamId,
284
+ tenantId,
285
+ connectionId: nangoResult.connectionId
281
286
  }, "Failed to persist workspace to database, rolling back Nango connection");
282
287
  try {
283
288
  await deleteWorkspaceInstallation(nangoResult.connectionId);
284
289
  } catch (rollbackError) {
285
290
  logger.error({
286
- error: rollbackError,
291
+ err: rollbackError,
287
292
  connectionId: nangoResult.connectionId
288
293
  }, "Failed to rollback Nango connection after DB failure");
289
294
  }
290
295
  return c.redirect(`${dashboardUrl}?error=installation_failed`);
291
296
  }
292
297
  }
293
- } else logger.warn({ teamId: workspaceData.teamId }, "Failed to store in Nango, falling back to memory");
298
+ } else logger.warn({
299
+ teamId: workspaceData.teamId,
300
+ tenantId,
301
+ nangoSuccess: nangoResult.success,
302
+ nangoError: "error" in nangoResult ? nangoResult.error : void 0
303
+ }, "Failed to store in Nango, falling back to memory");
294
304
  setBotTokenForTeam(workspaceData.teamId, {
295
305
  botToken: workspaceData.botToken,
296
306
  teamName: workspaceData.teamName || "",
@@ -321,7 +331,10 @@ app.openapi(createRoute({
321
331
  const encodedData = encodeURIComponent(JSON.stringify(safeWorkspaceData));
322
332
  return c.redirect(`${dashboardUrl}?success=true&workspace=${encodedData}`);
323
333
  } catch (err) {
324
- logger.error({ error: err }, "Slack OAuth callback error");
334
+ logger.error({
335
+ err,
336
+ tenantId
337
+ }, "Slack OAuth callback error");
325
338
  return c.redirect(`${dashboardUrl}?error=callback_error`);
326
339
  }
327
340
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-work-apps",
3
- "version": "0.0.0-dev-20260212085218",
3
+ "version": "0.0.0-dev-20260212092330",
4
4
  "description": "First party integrations for Inkeep Agents",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -32,7 +32,7 @@
32
32
  "hono": "^4.11.7",
33
33
  "jose": "^6.1.0",
34
34
  "minimatch": "^10.1.1",
35
- "@inkeep/agents-core": "0.0.0-dev-20260212085218"
35
+ "@inkeep/agents-core": "0.0.0-dev-20260212092330"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@hono/zod-openapi": "^1.1.5",