@inkeep/agents-core 0.0.0-dev-20260205195256 → 0.0.0-dev-20260205205159

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.
@@ -6,19 +6,19 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
6
6
 
7
7
  //#region src/data-access/runtime/tasks.d.ts
8
8
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
9
- tenantId: string;
10
- projectId: string;
11
9
  id: string;
12
- agentId: string;
13
10
  createdAt: string;
14
11
  updatedAt: string;
15
- metadata: TaskMetadataConfig | null;
16
- status: string;
17
12
  ref: {
18
- type: "tag" | "commit" | "branch";
13
+ type: "commit" | "tag" | "branch";
19
14
  name: string;
20
15
  hash: string;
21
16
  } | null;
17
+ metadata: TaskMetadataConfig | null;
18
+ status: string;
19
+ tenantId: string;
20
+ projectId: string;
21
+ agentId: string;
22
22
  subAgentId: string;
23
23
  contextId: string;
24
24
  }>;
@@ -36,7 +36,7 @@ declare const updateTask: (db: AgentsRunDatabaseClient) => (params: {
36
36
  updatedAt: string;
37
37
  contextId: string;
38
38
  ref: {
39
- type: "tag" | "commit" | "branch";
39
+ type: "commit" | "tag" | "branch";
40
40
  name: string;
41
41
  hash: string;
42
42
  } | null;
@@ -813,13 +813,13 @@ declare const triggers: drizzle_orm_pg_core208.PgTableWithColumns<{
813
813
  algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
814
814
  encoding: "hex" | "base64";
815
815
  signature: {
816
- source: "query" | "body" | "header";
816
+ source: "query" | "header" | "body";
817
817
  key: string;
818
818
  prefix?: string | undefined;
819
819
  regex?: string | undefined;
820
820
  };
821
821
  signedComponents: {
822
- source: "literal" | "body" | "header";
822
+ source: "literal" | "header" | "body";
823
823
  required: boolean;
824
824
  key?: string | undefined;
825
825
  value?: string | undefined;
@@ -850,13 +850,13 @@ declare const triggers: drizzle_orm_pg_core208.PgTableWithColumns<{
850
850
  algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
851
851
  encoding: "hex" | "base64";
852
852
  signature: {
853
- source: "query" | "body" | "header";
853
+ source: "query" | "header" | "body";
854
854
  key: string;
855
855
  prefix?: string | undefined;
856
856
  regex?: string | undefined;
857
857
  };
858
858
  signedComponents: {
859
- source: "literal" | "body" | "header";
859
+ source: "literal" | "header" | "body";
860
860
  required: boolean;
861
861
  key?: string | undefined;
862
862
  value?: string | undefined;
@@ -216,7 +216,7 @@ declare const conversations: drizzle_orm_pg_core509.PgTableWithColumns<{
216
216
  dataType: "json";
217
217
  columnType: "PgJsonb";
218
218
  data: {
219
- type: "tag" | "commit" | "branch";
219
+ type: "commit" | "tag" | "branch";
220
220
  name: string;
221
221
  hash: string;
222
222
  };
@@ -232,7 +232,7 @@ declare const conversations: drizzle_orm_pg_core509.PgTableWithColumns<{
232
232
  generated: undefined;
233
233
  }, {}, {
234
234
  $type: {
235
- type: "tag" | "commit" | "branch";
235
+ type: "commit" | "tag" | "branch";
236
236
  name: string;
237
237
  hash: string;
238
238
  };
@@ -413,7 +413,7 @@ declare const tasks: drizzle_orm_pg_core509.PgTableWithColumns<{
413
413
  dataType: "json";
414
414
  columnType: "PgJsonb";
415
415
  data: {
416
- type: "tag" | "commit" | "branch";
416
+ type: "commit" | "tag" | "branch";
417
417
  name: string;
418
418
  hash: string;
419
419
  };
@@ -429,7 +429,7 @@ declare const tasks: drizzle_orm_pg_core509.PgTableWithColumns<{
429
429
  generated: undefined;
430
430
  }, {}, {
431
431
  $type: {
432
- type: "tag" | "commit" | "branch";
432
+ type: "commit" | "tag" | "branch";
433
433
  name: string;
434
434
  hash: string;
435
435
  };
@@ -2011,7 +2011,7 @@ declare const contextCache: drizzle_orm_pg_core509.PgTableWithColumns<{
2011
2011
  dataType: "json";
2012
2012
  columnType: "PgJsonb";
2013
2013
  data: {
2014
- type: "tag" | "commit" | "branch";
2014
+ type: "commit" | "tag" | "branch";
2015
2015
  name: string;
2016
2016
  hash: string;
2017
2017
  };
@@ -2027,7 +2027,7 @@ declare const contextCache: drizzle_orm_pg_core509.PgTableWithColumns<{
2027
2027
  generated: undefined;
2028
2028
  }, {}, {
2029
2029
  $type: {
2030
- type: "tag" | "commit" | "branch";
2030
+ type: "commit" | "tag" | "branch";
2031
2031
  name: string;
2032
2032
  hash: string;
2033
2033
  };
@@ -2931,7 +2931,7 @@ declare const workAppGitHubInstallations: drizzle_orm_pg_core509.PgTableWithColu
2931
2931
  tableName: "work_app_github_installations";
2932
2932
  dataType: "string";
2933
2933
  columnType: "PgVarchar";
2934
- data: "User" | "Organization";
2934
+ data: "Organization" | "User";
2935
2935
  driverParam: string;
2936
2936
  notNull: true;
2937
2937
  hasDefault: false;
@@ -2944,7 +2944,7 @@ declare const workAppGitHubInstallations: drizzle_orm_pg_core509.PgTableWithColu
2944
2944
  generated: undefined;
2945
2945
  }, {}, {
2946
2946
  length: 20;
2947
- $type: "User" | "Organization";
2947
+ $type: "Organization" | "User";
2948
2948
  }>;
2949
2949
  status: drizzle_orm_pg_core509.PgColumn<{
2950
2950
  name: "status";
package/dist/env.d.ts CHANGED
@@ -18,6 +18,7 @@ declare const envSchema: z.ZodObject<{
18
18
  OAUTH_PROXY_PRODUCTION_URL: z.ZodOptional<z.ZodString>;
19
19
  INKEEP_AGENTS_MANAGE_UI_URL: z.ZodOptional<z.ZodString>;
20
20
  INKEEP_AGENTS_API_URL: z.ZodOptional<z.ZodString>;
21
+ AUTH_COOKIE_DOMAIN: z.ZodOptional<z.ZodString>;
21
22
  GITHUB_MCP_API_KEY: z.ZodOptional<z.ZodString>;
22
23
  }, z.core.$strip>;
23
24
  declare const env: {
@@ -31,6 +32,7 @@ declare const env: {
31
32
  OAUTH_PROXY_PRODUCTION_URL?: string | undefined;
32
33
  INKEEP_AGENTS_MANAGE_UI_URL?: string | undefined;
33
34
  INKEEP_AGENTS_API_URL?: string | undefined;
35
+ AUTH_COOKIE_DOMAIN?: string | undefined;
34
36
  GITHUB_MCP_API_KEY?: string | undefined;
35
37
  };
36
38
  type Env = z.infer<typeof envSchema>;
package/dist/env.js CHANGED
@@ -47,6 +47,7 @@ const envSchema = z.object({
47
47
  OAUTH_PROXY_PRODUCTION_URL: z.string().optional().describe("OAuth proxy URL for production environment (used in local/preview environments)"),
48
48
  INKEEP_AGENTS_MANAGE_UI_URL: z.string().optional().describe("URL where the management UI is hosted"),
49
49
  INKEEP_AGENTS_API_URL: z.string().optional().describe("URL where the agents management API is running"),
50
+ AUTH_COOKIE_DOMAIN: z.string().optional().describe("Explicit cookie domain for cross-subdomain auth (e.g., .inkeep.com). Required when the API and UI do not share a common 3-part parent domain."),
50
51
  GITHUB_MCP_API_KEY: z.string().optional().describe("API key for the GitHub MCP")
51
52
  });
52
53
  const parseEnv = () => {
@@ -32,8 +32,8 @@ declare const BranchNameParamsSchema: z.ZodObject<{
32
32
  }, z.core.$strip>;
33
33
  declare const ResolvedRefSchema: z.ZodObject<{
34
34
  type: z.ZodEnum<{
35
- tag: "tag";
36
35
  commit: "commit";
36
+ tag: "tag";
37
37
  branch: "branch";
38
38
  }>;
39
39
  name: z.ZodString;
@@ -1,10 +1,10 @@
1
1
  import { z } from "@hono/zod-openapi";
2
- import * as drizzle_zod15 from "drizzle-zod";
2
+ import * as drizzle_zod331 from "drizzle-zod";
3
3
  import { AnySQLiteTable } from "drizzle-orm/sqlite-core";
4
4
 
5
5
  //#region src/validation/drizzle-schema-helpers.d.ts
6
- declare function createSelectSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod15.BuildSchema<"select", T["_"]["columns"], drizzle_zod15.BuildRefine<T["_"]["columns"], undefined>, undefined>;
7
- declare function createInsertSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod15.BuildSchema<"insert", T["_"]["columns"], drizzle_zod15.BuildRefine<Pick<T["_"]["columns"], keyof T["$inferInsert"]>, undefined>, undefined>;
6
+ declare function createSelectSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod331.BuildSchema<"select", T["_"]["columns"], drizzle_zod331.BuildRefine<T["_"]["columns"], undefined>, undefined>;
7
+ declare function createInsertSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod331.BuildSchema<"insert", T["_"]["columns"], drizzle_zod331.BuildRefine<Pick<T["_"]["columns"], keyof T["$inferInsert"]>, undefined>, undefined>;
8
8
  declare const createSelectSchema: typeof createSelectSchemaWithModifiers;
9
9
  declare const createInsertSchema: typeof createInsertSchemaWithModifiers;
10
10
  /**