@inkeep/agents-api 0.0.0-dev-20260202155313 → 0.0.0-dev-20260203024837

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.
Files changed (57) hide show
  1. package/dist/.well-known/workflow/v1/manifest.debug.json +16 -16
  2. package/dist/.well-known/workflow/v1/step.cjs +57298 -56998
  3. package/dist/createApp.js +3 -3
  4. package/dist/domains/evals/routes/datasetTriggers.d.ts +2 -2
  5. package/dist/domains/evals/routes/index.d.ts +2 -2
  6. package/dist/domains/evals/workflow/routes.d.ts +2 -2
  7. package/dist/domains/manage/index.js +6 -0
  8. package/dist/domains/manage/routes/conversations.d.ts +2 -2
  9. package/dist/domains/manage/routes/evals/evaluationResults.d.ts +2 -2
  10. package/dist/domains/manage/routes/github.d.ts +16 -0
  11. package/dist/domains/manage/routes/github.js +511 -0
  12. package/dist/domains/manage/routes/index.d.ts +2 -2
  13. package/dist/domains/manage/routes/mcp.d.ts +2 -2
  14. package/dist/domains/manage/routes/mcpToolGithubAccess.d.ts +9 -0
  15. package/dist/domains/manage/routes/mcpToolGithubAccess.js +205 -0
  16. package/dist/domains/manage/routes/projectGithubAccess.d.ts +9 -0
  17. package/dist/domains/manage/routes/projectGithubAccess.js +167 -0
  18. package/dist/domains/manage/routes/signoz.d.ts +2 -2
  19. package/dist/domains/manage/routes/tools.js +4 -2
  20. package/dist/domains/mcp/routes/mcp.d.ts +2 -2
  21. package/dist/domains/run/agents/Agent.js +7 -1
  22. package/dist/domains/run/constants/execution-limits/defaults.d.ts +1 -1
  23. package/dist/domains/run/constants/execution-limits/defaults.js +1 -1
  24. package/dist/domains/run/constants/execution-limits/index.d.ts +1 -1
  25. package/dist/domains/run/context/ContextResolver.js +1 -1
  26. package/dist/domains/run/services/AgentSession.js +5 -1
  27. package/dist/domains/run/services/BaseCompressor.js +1 -1
  28. package/dist/domains/run/types/executionContext.js +3 -1
  29. package/dist/env.d.ts +12 -0
  30. package/dist/env.js +37 -31
  31. package/dist/factory.d.ts +18 -18
  32. package/dist/index.d.ts +18 -18
  33. package/dist/middleware/evalsAuth.d.ts +2 -2
  34. package/dist/middleware/manageAuth.d.ts +2 -2
  35. package/dist/middleware/projectAccess.d.ts +2 -2
  36. package/dist/middleware/projectConfig.d.ts +3 -3
  37. package/dist/middleware/requirePermission.d.ts +2 -2
  38. package/dist/middleware/runAuth.d.ts +4 -4
  39. package/dist/middleware/sessionAuth.d.ts +3 -3
  40. package/dist/middleware/tenantAccess.d.ts +2 -2
  41. package/dist/middleware/tracing.d.ts +3 -3
  42. package/dist/openapi.d.ts +1 -0
  43. package/dist/openapi.js +1 -0
  44. package/dist/types/runExecutionContext.js +3 -1
  45. package/package.json +5 -4
  46. package/dist/domains/github/config.d.ts +0 -14
  47. package/dist/domains/github/config.js +0 -47
  48. package/dist/domains/github/index.d.ts +0 -12
  49. package/dist/domains/github/index.js +0 -18
  50. package/dist/domains/github/installation.d.ts +0 -34
  51. package/dist/domains/github/installation.js +0 -172
  52. package/dist/domains/github/jwks.d.ts +0 -20
  53. package/dist/domains/github/jwks.js +0 -85
  54. package/dist/domains/github/oidcToken.d.ts +0 -22
  55. package/dist/domains/github/oidcToken.js +0 -140
  56. package/dist/domains/github/routes/tokenExchange.d.ts +0 -7
  57. package/dist/domains/github/routes/tokenExchange.js +0 -130
package/dist/factory.d.ts CHANGED
@@ -794,25 +794,25 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
794
794
  ac: better_auth_plugins0.AccessControl;
795
795
  roles: {
796
796
  member: {
797
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
798
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
797
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
798
+ actions: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
799
799
  connector: "OR" | "AND";
800
800
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
801
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
801
+ statements: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
802
802
  };
803
803
  admin: {
804
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
805
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
804
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
805
+ actions: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
806
806
  connector: "OR" | "AND";
807
807
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
808
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
808
+ statements: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
809
809
  };
810
810
  owner: {
811
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
812
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
811
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
812
+ actions: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
813
813
  connector: "OR" | "AND";
814
814
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
815
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
815
+ statements: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
816
816
  };
817
817
  };
818
818
  creatorRole: "admin";
@@ -1104,25 +1104,25 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
1104
1104
  ac: better_auth_plugins0.AccessControl;
1105
1105
  roles: {
1106
1106
  member: {
1107
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
1108
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
1107
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1108
+ actions: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
1109
1109
  connector: "OR" | "AND";
1110
1110
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1111
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
1111
+ statements: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
1112
1112
  };
1113
1113
  admin: {
1114
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
1115
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
1114
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1115
+ actions: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
1116
1116
  connector: "OR" | "AND";
1117
1117
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1118
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
1118
+ statements: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
1119
1119
  };
1120
1120
  owner: {
1121
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
1122
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
1121
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1122
+ actions: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
1123
1123
  connector: "OR" | "AND";
1124
1124
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1125
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
1125
+ statements: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
1126
1126
  };
1127
1127
  };
1128
1128
  creatorRole: "admin";
package/dist/index.d.ts CHANGED
@@ -795,25 +795,25 @@ declare const auth: better_auth78.Auth<{
795
795
  ac: better_auth_plugins69.AccessControl;
796
796
  roles: {
797
797
  member: {
798
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>[key] | {
799
- actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>[key];
798
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
799
+ actions: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
800
800
  connector: "OR" | "AND";
801
801
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
802
- statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>;
802
+ statements: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
803
803
  };
804
804
  admin: {
805
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>[key] | {
806
- actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>[key];
805
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
806
+ actions: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
807
807
  connector: "OR" | "AND";
808
808
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
809
- statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>;
809
+ statements: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
810
810
  };
811
811
  owner: {
812
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>[key] | {
813
- actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>[key];
812
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
813
+ actions: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
814
814
  connector: "OR" | "AND";
815
815
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
816
- statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>;
816
+ statements: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
817
817
  };
818
818
  };
819
819
  creatorRole: "admin";
@@ -1105,25 +1105,25 @@ declare const auth: better_auth78.Auth<{
1105
1105
  ac: better_auth_plugins69.AccessControl;
1106
1106
  roles: {
1107
1107
  member: {
1108
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>[key] | {
1109
- actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>[key];
1108
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
1109
+ actions: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
1110
1110
  connector: "OR" | "AND";
1111
1111
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
1112
- statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>;
1112
+ statements: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
1113
1113
  };
1114
1114
  admin: {
1115
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>[key] | {
1116
- actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>[key];
1115
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
1116
+ actions: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
1117
1117
  connector: "OR" | "AND";
1118
1118
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
1119
- statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>;
1119
+ statements: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
1120
1120
  };
1121
1121
  owner: {
1122
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>[key] | {
1123
- actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>[key];
1122
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
1123
+ actions: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
1124
1124
  connector: "OR" | "AND";
1125
1125
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
1126
- statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>;
1126
+ statements: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
1127
1127
  };
1128
1128
  };
1129
1129
  creatorRole: "admin";
@@ -1,5 +1,5 @@
1
1
  import { BaseExecutionContext } from "@inkeep/agents-core";
2
- import * as hono0 from "hono";
2
+ import * as hono16 from "hono";
3
3
 
4
4
  //#region src/middleware/evalsAuth.d.ts
5
5
 
@@ -7,7 +7,7 @@ import * as hono0 from "hono";
7
7
  * Middleware to authenticate API requests using Bearer token authentication
8
8
  * First checks if token matches INKEEP_AGENTS_EVAL_API_BYPASS_SECRET,
9
9
  */
10
- declare const evalApiKeyAuth: () => hono0.MiddlewareHandler<{
10
+ declare const evalApiKeyAuth: () => hono16.MiddlewareHandler<{
11
11
  Variables: {
12
12
  executionContext: BaseExecutionContext;
13
13
  };
@@ -1,5 +1,5 @@
1
1
  import { BaseExecutionContext } from "@inkeep/agents-core";
2
- import * as hono1 from "hono";
2
+ import * as hono15 from "hono";
3
3
  import { createAuth } from "@inkeep/agents-core/auth";
4
4
 
5
5
  //#region src/middleware/manageAuth.d.ts
@@ -12,7 +12,7 @@ import { createAuth } from "@inkeep/agents-core/auth";
12
12
  * 3. Database API key
13
13
  * 4. Internal service token
14
14
  */
15
- declare const manageApiKeyAuth: () => hono1.MiddlewareHandler<{
15
+ declare const manageApiKeyAuth: () => hono15.MiddlewareHandler<{
16
16
  Variables: {
17
17
  executionContext: BaseExecutionContext;
18
18
  userId?: string;
@@ -1,6 +1,6 @@
1
1
  import { ManageAppVariables } from "../types/app.js";
2
2
  import { ProjectPermissionLevel } from "@inkeep/agents-core";
3
- import * as hono2 from "hono";
3
+ import * as hono0 from "hono";
4
4
 
5
5
  //#region src/middleware/projectAccess.d.ts
6
6
  /**
@@ -10,6 +10,6 @@ declare const requireProjectPermission: <Env$1 extends {
10
10
  Variables: ManageAppVariables;
11
11
  } = {
12
12
  Variables: ManageAppVariables;
13
- }>(permission?: ProjectPermissionLevel) => hono2.MiddlewareHandler<Env$1, string, {}, Response>;
13
+ }>(permission?: ProjectPermissionLevel) => hono0.MiddlewareHandler<Env$1, string, {}, Response>;
14
14
  //#endregion
15
15
  export { requireProjectPermission };
@@ -1,11 +1,11 @@
1
1
  import { BaseExecutionContext, ResolvedRef } from "@inkeep/agents-core";
2
- import * as hono3 from "hono";
2
+ import * as hono4 from "hono";
3
3
 
4
4
  //#region src/middleware/projectConfig.d.ts
5
5
  /**
6
6
  * Middleware that fetches the full project definition from the Management API
7
7
  */
8
- declare const projectConfigMiddleware: hono3.MiddlewareHandler<{
8
+ declare const projectConfigMiddleware: hono4.MiddlewareHandler<{
9
9
  Variables: {
10
10
  executionContext: BaseExecutionContext;
11
11
  resolvedRef: ResolvedRef;
@@ -15,7 +15,7 @@ declare const projectConfigMiddleware: hono3.MiddlewareHandler<{
15
15
  * Creates a middleware that applies project config fetching except for specified route patterns
16
16
  * @param skipRouteCheck - Function that returns true if the route should skip the middleware
17
17
  */
18
- declare const projectConfigMiddlewareExcept: (skipRouteCheck: (path: string) => boolean) => hono3.MiddlewareHandler<{
18
+ declare const projectConfigMiddlewareExcept: (skipRouteCheck: (path: string) => boolean) => hono4.MiddlewareHandler<{
19
19
  Variables: {
20
20
  executionContext: BaseExecutionContext;
21
21
  resolvedRef: ResolvedRef;
@@ -1,5 +1,5 @@
1
1
  import { ManageAppVariables } from "../types/app.js";
2
- import * as hono5 from "hono";
2
+ import * as hono6 from "hono";
3
3
 
4
4
  //#region src/middleware/requirePermission.d.ts
5
5
  type Permission = {
@@ -9,6 +9,6 @@ declare const requirePermission: <Env$1 extends {
9
9
  Variables: ManageAppVariables;
10
10
  } = {
11
11
  Variables: ManageAppVariables;
12
- }>(permissions: Permission) => hono5.MiddlewareHandler<Env$1, string, {}, Response>;
12
+ }>(permissions: Permission) => hono6.MiddlewareHandler<Env$1, string, {}, Response>;
13
13
  //#endregion
14
14
  export { requirePermission };
@@ -1,8 +1,8 @@
1
1
  import { BaseExecutionContext } from "@inkeep/agents-core";
2
- import * as hono6 from "hono";
2
+ import * as hono1 from "hono";
3
3
 
4
4
  //#region src/middleware/runAuth.d.ts
5
- declare const runApiKeyAuth: () => hono6.MiddlewareHandler<{
5
+ declare const runApiKeyAuth: () => hono1.MiddlewareHandler<{
6
6
  Variables: {
7
7
  executionContext: BaseExecutionContext;
8
8
  };
@@ -11,7 +11,7 @@ declare const runApiKeyAuth: () => hono6.MiddlewareHandler<{
11
11
  * Creates a middleware that applies API key authentication except for specified route patterns
12
12
  * @param skipRouteCheck - Function that returns true if the route should skip authentication
13
13
  */
14
- declare const runApiKeyAuthExcept: (skipRouteCheck: (path: string) => boolean) => hono6.MiddlewareHandler<{
14
+ declare const runApiKeyAuthExcept: (skipRouteCheck: (path: string) => boolean) => hono1.MiddlewareHandler<{
15
15
  Variables: {
16
16
  executionContext: BaseExecutionContext;
17
17
  };
@@ -20,7 +20,7 @@ declare const runApiKeyAuthExcept: (skipRouteCheck: (path: string) => boolean) =
20
20
  * Helper middleware for endpoints that optionally support API key authentication
21
21
  * If no auth header is present, it continues without setting the executionContext
22
22
  */
23
- declare const runOptionalAuth: () => hono6.MiddlewareHandler<{
23
+ declare const runOptionalAuth: () => hono1.MiddlewareHandler<{
24
24
  Variables: {
25
25
  executionContext?: BaseExecutionContext;
26
26
  };
@@ -1,4 +1,4 @@
1
- import * as hono9 from "hono";
1
+ import * as hono11 from "hono";
2
2
 
3
3
  //#region src/middleware/sessionAuth.d.ts
4
4
 
@@ -7,11 +7,11 @@ import * as hono9 from "hono";
7
7
  * Requires that a user has already been authenticated via Better Auth session.
8
8
  * Used primarily for manage routes that require an active user session.
9
9
  */
10
- declare const sessionAuth: () => hono9.MiddlewareHandler<any, string, {}, Response>;
10
+ declare const sessionAuth: () => hono11.MiddlewareHandler<any, string, {}, Response>;
11
11
  /**
12
12
  * Global session middleware - sets user and session in context for all routes
13
13
  * Used for all routes that require an active user session.
14
14
  */
15
- declare const sessionContext: () => hono9.MiddlewareHandler<any, string, {}, Response>;
15
+ declare const sessionContext: () => hono11.MiddlewareHandler<any, string, {}, Response>;
16
16
  //#endregion
17
17
  export { sessionAuth, sessionContext };
@@ -1,4 +1,4 @@
1
- import * as hono11 from "hono";
1
+ import * as hono8 from "hono";
2
2
 
3
3
  //#region src/middleware/tenantAccess.d.ts
4
4
 
@@ -11,7 +11,7 @@ import * as hono11 from "hono";
11
11
  * - API key user: Access only to the tenant associated with the API key
12
12
  * - Session user: Access based on organization membership
13
13
  */
14
- declare const requireTenantAccess: () => hono11.MiddlewareHandler<{
14
+ declare const requireTenantAccess: () => hono8.MiddlewareHandler<{
15
15
  Variables: {
16
16
  userId: string;
17
17
  tenantId: string;
@@ -1,7 +1,7 @@
1
- import * as hono12 from "hono";
1
+ import * as hono13 from "hono";
2
2
 
3
3
  //#region src/middleware/tracing.d.ts
4
- declare const otelBaggageMiddleware: () => hono12.MiddlewareHandler<any, string, {}, Response>;
5
- declare const executionBaggageMiddleware: () => hono12.MiddlewareHandler<any, string, {}, Response>;
4
+ declare const otelBaggageMiddleware: () => hono13.MiddlewareHandler<any, string, {}, Response>;
5
+ declare const executionBaggageMiddleware: () => hono13.MiddlewareHandler<any, string, {}, Response>;
6
6
  //#endregion
7
7
  export { executionBaggageMiddleware, otelBaggageMiddleware };
package/dist/openapi.d.ts CHANGED
@@ -19,6 +19,7 @@ declare const TagToDescription: {
19
19
  'External Agents': string;
20
20
  'Function Tools': string;
21
21
  Functions: string;
22
+ GitHub: string;
22
23
  Invitations: string;
23
24
  MCP: string;
24
25
  'MCP Catalog': string;
package/dist/openapi.js CHANGED
@@ -18,6 +18,7 @@ const TagToDescription = {
18
18
  "External Agents": "Operations for managing external agents",
19
19
  "Function Tools": "Operations for managing function tools",
20
20
  Functions: "Operations for managing functions",
21
+ GitHub: "GitHub App integration endpoints",
21
22
  Invitations: "Operations for managing invitations",
22
23
  MCP: "MCP (Model Context Protocol) endpoints",
23
24
  "MCP Catalog": "Operations for MCP catalog",
@@ -1,3 +1,5 @@
1
+ import { env } from "../env.js";
2
+
1
3
  //#region src/types/runExecutionContext.ts
2
4
  /**
3
5
  * Extract userId from execution context metadata (when available)
@@ -16,7 +18,7 @@ function createBaseExecutionContext(params) {
16
18
  tenantId: params.tenantId,
17
19
  projectId: params.projectId,
18
20
  agentId: params.agentId,
19
- baseUrl: params.baseUrl || process.env.API_URL || "http://localhost:3003",
21
+ baseUrl: params.baseUrl || env.INKEEP_AGENTS_API_URL,
20
22
  apiKeyId: params.apiKeyId,
21
23
  subAgentId: params.subAgentId,
22
24
  ref: params.ref,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-api",
3
- "version": "0.0.0-dev-20260202155313",
3
+ "version": "0.0.0-dev-20260203024837",
4
4
  "description": "Unified Inkeep Agents API - combines management, runtime, and evaluation capabilities",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
@@ -66,9 +66,10 @@
66
66
  "openid-client": "^6.8.1",
67
67
  "pg": "^8.16.3",
68
68
  "workflow": "4.0.1-beta.33",
69
- "@inkeep/agents-core": "^0.0.0-dev-20260202155313",
70
- "@inkeep/agents-manage-mcp": "^0.0.0-dev-20260202155313",
71
- "@inkeep/agents-mcp": "^0.0.0-dev-20260202155313"
69
+ "@inkeep/agents-core": "^0.0.0-dev-20260203024837",
70
+ "@inkeep/agents-manage-mcp": "^0.0.0-dev-20260203024837",
71
+ "@inkeep/agents-mcp": "^0.0.0-dev-20260203024837",
72
+ "@inkeep/agents-work-apps": "^0.0.0-dev-20260203024837"
72
73
  },
73
74
  "peerDependencies": {
74
75
  "@hono/zod-openapi": "^1.1.5",
@@ -1,14 +0,0 @@
1
- import { z } from "@hono/zod-openapi";
2
-
3
- //#region src/domains/github/config.d.ts
4
- declare const GitHubAppConfigSchema: z.ZodObject<{
5
- appId: z.ZodString;
6
- privateKey: z.ZodString;
7
- }, z.core.$strip>;
8
- type GitHubAppConfig = z.infer<typeof GitHubAppConfigSchema>;
9
- declare function getGitHubAppConfig(): GitHubAppConfig;
10
- declare function isGitHubAppConfigured(): boolean;
11
- declare function validateGitHubAppConfigOnStartup(): void;
12
- declare function clearConfigCache(): void;
13
- //#endregion
14
- export { GitHubAppConfig, clearConfigCache, getGitHubAppConfig, isGitHubAppConfigured, validateGitHubAppConfigOnStartup };
@@ -1,47 +0,0 @@
1
- import { getLogger } from "../../logger.js";
2
- import { z } from "@hono/zod-openapi";
3
-
4
- //#region src/domains/github/config.ts
5
- const logger = getLogger("github-config");
6
- const GitHubAppConfigSchema = z.object({
7
- appId: z.string().min(1, "GITHUB_APP_ID is required"),
8
- privateKey: z.string().min(1, "GITHUB_APP_PRIVATE_KEY is required")
9
- });
10
- let cachedConfig = null;
11
- function getGitHubAppConfig() {
12
- if (cachedConfig) return cachedConfig;
13
- const appId = process.env.GITHUB_APP_ID;
14
- const privateKey = process.env.GITHUB_APP_PRIVATE_KEY?.replace(/\\n/g, "\n");
15
- const result = GitHubAppConfigSchema.safeParse({
16
- appId,
17
- privateKey
18
- });
19
- if (!result.success) {
20
- const errorMessage = `GitHub App credentials are not configured. ${result.error.issues.map((issue) => issue.message).join(". ")}. Please set GITHUB_APP_ID and GITHUB_APP_PRIVATE_KEY environment variables.`;
21
- logger.error({}, errorMessage);
22
- throw new Error(errorMessage);
23
- }
24
- cachedConfig = result.data;
25
- logger.info({}, "GitHub App credentials loaded successfully");
26
- return cachedConfig;
27
- }
28
- function isGitHubAppConfigured() {
29
- return Boolean(process.env.GITHUB_APP_ID && process.env.GITHUB_APP_PRIVATE_KEY);
30
- }
31
- function validateGitHubAppConfigOnStartup() {
32
- if (!isGitHubAppConfigured()) {
33
- logger.warn({}, "GitHub App credentials not configured. Token exchange endpoint will return 500 errors. Set GITHUB_APP_ID and GITHUB_APP_PRIVATE_KEY to enable the feature.");
34
- return;
35
- }
36
- try {
37
- getGitHubAppConfig();
38
- } catch (error) {
39
- logger.error({ error }, "GitHub App credentials are invalid. Token exchange endpoint will return 500 errors.");
40
- }
41
- }
42
- function clearConfigCache() {
43
- cachedConfig = null;
44
- }
45
-
46
- //#endregion
47
- export { clearConfigCache, getGitHubAppConfig, isGitHubAppConfigured, validateGitHubAppConfigOnStartup };
@@ -1,12 +0,0 @@
1
- import { GitHubAppConfig, getGitHubAppConfig, isGitHubAppConfigured } from "./config.js";
2
- import { GenerateInstallationAccessTokenResult, GenerateTokenError, GenerateTokenResult, InstallationAccessToken, InstallationInfo, LookupInstallationError, LookupInstallationForRepoResult, LookupInstallationResult, generateInstallationAccessToken, lookupInstallationForRepo } from "./installation.js";
3
- import { GetJwkResult, JwksError, JwksResult, clearJwksCache, getJwkForToken, getJwksCacheStatus } from "./jwks.js";
4
- import { GitHubOidcClaims, ValidateOidcTokenResult, ValidateTokenError, ValidateTokenResult, validateOidcToken } from "./oidcToken.js";
5
- import { Hono } from "hono";
6
- import * as hono_types5 from "hono/types";
7
-
8
- //#region src/domains/github/index.d.ts
9
- declare function createGithubRoutes(): Hono<hono_types5.BlankEnv, hono_types5.BlankSchema, "/">;
10
- declare const githubRoutes: Hono<hono_types5.BlankEnv, hono_types5.BlankSchema, "/">;
11
- //#endregion
12
- export { type GenerateInstallationAccessTokenResult, type GenerateTokenError, type GenerateTokenResult, type GetJwkResult, type GitHubAppConfig, type GitHubOidcClaims, type InstallationAccessToken, type InstallationInfo, type JwksError, type JwksResult, type LookupInstallationError, type LookupInstallationForRepoResult, type LookupInstallationResult, type ValidateOidcTokenResult, type ValidateTokenError, type ValidateTokenResult, clearJwksCache, createGithubRoutes, generateInstallationAccessToken, getGitHubAppConfig, getJwkForToken, getJwksCacheStatus, githubRoutes, isGitHubAppConfigured, lookupInstallationForRepo, validateOidcToken };
@@ -1,18 +0,0 @@
1
- import { getGitHubAppConfig, isGitHubAppConfigured, validateGitHubAppConfigOnStartup } from "./config.js";
2
- import { generateInstallationAccessToken, lookupInstallationForRepo } from "./installation.js";
3
- import { clearJwksCache, getJwkForToken, getJwksCacheStatus } from "./jwks.js";
4
- import { validateOidcToken } from "./oidcToken.js";
5
- import tokenExchange_default from "./routes/tokenExchange.js";
6
- import { Hono } from "hono";
7
-
8
- //#region src/domains/github/index.ts
9
- function createGithubRoutes() {
10
- validateGitHubAppConfigOnStartup();
11
- const app = new Hono();
12
- app.route("/token-exchange", tokenExchange_default);
13
- return app;
14
- }
15
- const githubRoutes = createGithubRoutes();
16
-
17
- //#endregion
18
- export { clearJwksCache, createGithubRoutes, generateInstallationAccessToken, getGitHubAppConfig, getJwkForToken, getJwksCacheStatus, githubRoutes, isGitHubAppConfigured, lookupInstallationForRepo, validateOidcToken };
@@ -1,34 +0,0 @@
1
- //#region src/domains/github/installation.d.ts
2
- interface InstallationInfo {
3
- installationId: number;
4
- accountLogin: string;
5
- accountType: 'User' | 'Organization';
6
- }
7
- interface LookupInstallationResult {
8
- success: true;
9
- installation: InstallationInfo;
10
- }
11
- interface LookupInstallationError {
12
- success: false;
13
- errorType: 'not_installed' | 'api_error' | 'jwt_error';
14
- message: string;
15
- }
16
- type LookupInstallationForRepoResult = LookupInstallationResult | LookupInstallationError;
17
- interface InstallationAccessToken {
18
- token: string;
19
- expiresAt: string;
20
- }
21
- interface GenerateTokenResult {
22
- success: true;
23
- accessToken: InstallationAccessToken;
24
- }
25
- interface GenerateTokenError {
26
- success: false;
27
- errorType: 'api_error' | 'jwt_error';
28
- message: string;
29
- }
30
- type GenerateInstallationAccessTokenResult = GenerateTokenResult | GenerateTokenError;
31
- declare function lookupInstallationForRepo(repositoryOwner: string, repositoryName: string): Promise<LookupInstallationForRepoResult>;
32
- declare function generateInstallationAccessToken(installationId: number): Promise<GenerateInstallationAccessTokenResult>;
33
- //#endregion
34
- export { GenerateInstallationAccessTokenResult, GenerateTokenError, GenerateTokenResult, InstallationAccessToken, InstallationInfo, LookupInstallationError, LookupInstallationForRepoResult, LookupInstallationResult, generateInstallationAccessToken, lookupInstallationForRepo };