@inkeep/agents-core 0.0.0-dev-20260318194245 → 0.0.0-dev-20260318213245

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 (29) hide show
  1. package/dist/auth/auth.d.ts +28 -28
  2. package/dist/auth/permissions.d.ts +13 -13
  3. package/dist/client-exports.d.ts +2 -2
  4. package/dist/data-access/manage/agents.d.ts +14 -14
  5. package/dist/data-access/manage/artifactComponents.d.ts +8 -8
  6. package/dist/data-access/manage/contextConfigs.d.ts +4 -4
  7. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  8. package/dist/data-access/manage/functionTools.d.ts +8 -8
  9. package/dist/data-access/manage/skills.d.ts +8 -8
  10. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  11. package/dist/data-access/manage/subAgentRelations.d.ts +12 -12
  12. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  13. package/dist/data-access/manage/subAgents.d.ts +6 -6
  14. package/dist/data-access/manage/tools.d.ts +15 -15
  15. package/dist/data-access/manage/triggers.d.ts +1 -1
  16. package/dist/data-access/runtime/apiKeys.d.ts +8 -8
  17. package/dist/data-access/runtime/apps.d.ts +6 -6
  18. package/dist/data-access/runtime/conversations.d.ts +15 -15
  19. package/dist/data-access/runtime/messages.d.ts +12 -12
  20. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +6 -6
  21. package/dist/data-access/runtime/tasks.d.ts +4 -4
  22. package/dist/data-access/runtime/triggerInvocations.d.ts +1 -1
  23. package/dist/db/manage/manage-schema.d.ts +2 -2
  24. package/dist/db/runtime/runtime-schema.d.ts +18 -18
  25. package/dist/env.js +7 -0
  26. package/dist/validation/dolt-schemas.d.ts +1 -1
  27. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  28. package/dist/validation/schemas.d.ts +756 -756
  29. package/package.json +1 -1
@@ -35,11 +35,11 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
35
35
  data: {
36
36
  scheduledTriggerId: string;
37
37
  ref: {
38
- type: "tag" | "commit" | "branch";
38
+ type: "commit" | "tag" | "branch";
39
39
  name: string;
40
40
  hash: string;
41
41
  } | null;
42
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
42
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
43
43
  scheduledFor: string;
44
44
  startedAt: string | null;
45
45
  completedAt: string | null;
@@ -180,11 +180,11 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
180
180
  data: {
181
181
  scheduledTriggerId: string;
182
182
  ref: {
183
- type: "tag" | "commit" | "branch";
183
+ type: "commit" | "tag" | "branch";
184
184
  name: string;
185
185
  hash: string;
186
186
  } | null;
187
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
187
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
188
188
  scheduledFor: string;
189
189
  startedAt: string | null;
190
190
  completedAt: string | null;
@@ -219,11 +219,11 @@ declare const listProjectScheduledTriggerInvocationsPaginated: (db: AgentsRunDat
219
219
  data: {
220
220
  scheduledTriggerId: string;
221
221
  ref: {
222
- type: "tag" | "commit" | "branch";
222
+ type: "commit" | "tag" | "branch";
223
223
  name: string;
224
224
  hash: string;
225
225
  } | null;
226
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
226
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
227
227
  scheduledFor: string;
228
228
  startedAt: string | null;
229
229
  completedAt: string | null;
@@ -7,20 +7,20 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
7
7
 
8
8
  //#region src/data-access/runtime/tasks.d.ts
9
9
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
10
- id: string;
11
10
  tenantId: string;
12
11
  projectId: string;
13
12
  agentId: string;
13
+ subAgentId: string;
14
+ id: string;
14
15
  createdAt: string;
15
16
  updatedAt: string;
16
17
  metadata: TaskMetadataConfig | null;
17
18
  ref: {
18
- type: "tag" | "commit" | "branch";
19
+ type: "commit" | "tag" | "branch";
19
20
  name: string;
20
21
  hash: string;
21
22
  } | null;
22
23
  status: string;
23
- subAgentId: string;
24
24
  contextId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
@@ -39,7 +39,7 @@ declare const updateTask: (db: AgentsRunDatabaseClient) => (params: {
39
39
  updatedAt: string;
40
40
  contextId: string;
41
41
  ref: {
42
- type: "tag" | "commit" | "branch";
42
+ type: "commit" | "tag" | "branch";
43
43
  name: string;
44
44
  hash: string;
45
45
  } | null;
@@ -29,7 +29,7 @@ declare const listTriggerInvocationsPaginated: (db: AgentsRunDatabaseClient) =>
29
29
  triggerId: string;
30
30
  conversationId: string | null;
31
31
  ref: {
32
- type: "tag" | "commit" | "branch";
32
+ type: "commit" | "tag" | "branch";
33
33
  name: string;
34
34
  hash: string;
35
35
  } | null;
@@ -820,7 +820,7 @@ declare const triggers: drizzle_orm_pg_core1457.PgTableWithColumns<{
820
820
  regex?: string | undefined;
821
821
  };
822
822
  signedComponents: {
823
- source: "literal" | "header" | "body";
823
+ source: "header" | "literal" | "body";
824
824
  required: boolean;
825
825
  key?: string | undefined;
826
826
  value?: string | undefined;
@@ -857,7 +857,7 @@ declare const triggers: drizzle_orm_pg_core1457.PgTableWithColumns<{
857
857
  regex?: string | undefined;
858
858
  };
859
859
  signedComponents: {
860
- source: "literal" | "header" | "body";
860
+ source: "header" | "literal" | "body";
861
861
  required: boolean;
862
862
  key?: string | undefined;
863
863
  value?: string | undefined;
@@ -216,7 +216,7 @@ declare const conversations: drizzle_orm_pg_core1813.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_core1813.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_core1813.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_core1813.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
  };
@@ -1113,7 +1113,7 @@ declare const triggerInvocations: drizzle_orm_pg_core1813.PgTableWithColumns<{
1113
1113
  dataType: "json";
1114
1114
  columnType: "PgJsonb";
1115
1115
  data: {
1116
- type: "tag" | "commit" | "branch";
1116
+ type: "commit" | "tag" | "branch";
1117
1117
  name: string;
1118
1118
  hash: string;
1119
1119
  };
@@ -1129,7 +1129,7 @@ declare const triggerInvocations: drizzle_orm_pg_core1813.PgTableWithColumns<{
1129
1129
  generated: undefined;
1130
1130
  }, {}, {
1131
1131
  $type: {
1132
- type: "tag" | "commit" | "branch";
1132
+ type: "commit" | "tag" | "branch";
1133
1133
  name: string;
1134
1134
  hash: string;
1135
1135
  };
@@ -2137,7 +2137,7 @@ declare const scheduledTriggerInvocations: drizzle_orm_pg_core1813.PgTableWithCo
2137
2137
  dataType: "json";
2138
2138
  columnType: "PgJsonb";
2139
2139
  data: {
2140
- type: "tag" | "commit" | "branch";
2140
+ type: "commit" | "tag" | "branch";
2141
2141
  name: string;
2142
2142
  hash: string;
2143
2143
  };
@@ -2153,7 +2153,7 @@ declare const scheduledTriggerInvocations: drizzle_orm_pg_core1813.PgTableWithCo
2153
2153
  generated: undefined;
2154
2154
  }, {}, {
2155
2155
  $type: {
2156
- type: "tag" | "commit" | "branch";
2156
+ type: "commit" | "tag" | "branch";
2157
2157
  name: string;
2158
2158
  hash: string;
2159
2159
  };
@@ -2163,7 +2163,7 @@ declare const scheduledTriggerInvocations: drizzle_orm_pg_core1813.PgTableWithCo
2163
2163
  tableName: "scheduled_trigger_invocations";
2164
2164
  dataType: "string";
2165
2165
  columnType: "PgVarchar";
2166
- data: "pending" | "failed" | "running" | "completed" | "cancelled";
2166
+ data: "pending" | "running" | "completed" | "failed" | "cancelled";
2167
2167
  driverParam: string;
2168
2168
  notNull: true;
2169
2169
  hasDefault: false;
@@ -2176,7 +2176,7 @@ declare const scheduledTriggerInvocations: drizzle_orm_pg_core1813.PgTableWithCo
2176
2176
  generated: undefined;
2177
2177
  }, {}, {
2178
2178
  length: 50;
2179
- $type: "pending" | "failed" | "running" | "completed" | "cancelled";
2179
+ $type: "pending" | "running" | "completed" | "failed" | "cancelled";
2180
2180
  }>;
2181
2181
  scheduledFor: drizzle_orm_pg_core1813.PgColumn<{
2182
2182
  name: "scheduled_for";
@@ -3398,7 +3398,7 @@ declare const contextCache: drizzle_orm_pg_core1813.PgTableWithColumns<{
3398
3398
  dataType: "json";
3399
3399
  columnType: "PgJsonb";
3400
3400
  data: {
3401
- type: "tag" | "commit" | "branch";
3401
+ type: "commit" | "tag" | "branch";
3402
3402
  name: string;
3403
3403
  hash: string;
3404
3404
  };
@@ -3414,7 +3414,7 @@ declare const contextCache: drizzle_orm_pg_core1813.PgTableWithColumns<{
3414
3414
  generated: undefined;
3415
3415
  }, {}, {
3416
3416
  $type: {
3417
- type: "tag" | "commit" | "branch";
3417
+ type: "commit" | "tag" | "branch";
3418
3418
  name: string;
3419
3419
  hash: string;
3420
3420
  };
@@ -3661,7 +3661,7 @@ declare const datasetRun: drizzle_orm_pg_core1813.PgTableWithColumns<{
3661
3661
  dataType: "json";
3662
3662
  columnType: "PgJsonb";
3663
3663
  data: {
3664
- type: "tag" | "commit" | "branch";
3664
+ type: "commit" | "tag" | "branch";
3665
3665
  name: string;
3666
3666
  hash: string;
3667
3667
  };
@@ -3677,7 +3677,7 @@ declare const datasetRun: drizzle_orm_pg_core1813.PgTableWithColumns<{
3677
3677
  generated: undefined;
3678
3678
  }, {}, {
3679
3679
  $type: {
3680
- type: "tag" | "commit" | "branch";
3680
+ type: "commit" | "tag" | "branch";
3681
3681
  name: string;
3682
3682
  hash: string;
3683
3683
  };
@@ -3991,7 +3991,7 @@ declare const evaluationRun: drizzle_orm_pg_core1813.PgTableWithColumns<{
3991
3991
  dataType: "json";
3992
3992
  columnType: "PgJsonb";
3993
3993
  data: {
3994
- type: "tag" | "commit" | "branch";
3994
+ type: "commit" | "tag" | "branch";
3995
3995
  name: string;
3996
3996
  hash: string;
3997
3997
  };
@@ -4007,7 +4007,7 @@ declare const evaluationRun: drizzle_orm_pg_core1813.PgTableWithColumns<{
4007
4007
  generated: undefined;
4008
4008
  }, {}, {
4009
4009
  $type: {
4010
- type: "tag" | "commit" | "branch";
4010
+ type: "commit" | "tag" | "branch";
4011
4011
  name: string;
4012
4012
  hash: string;
4013
4013
  };
@@ -4486,7 +4486,7 @@ declare const workAppGitHubInstallations: drizzle_orm_pg_core1813.PgTableWithCol
4486
4486
  tableName: "work_app_github_installations";
4487
4487
  dataType: "string";
4488
4488
  columnType: "PgVarchar";
4489
- data: "User" | "Organization";
4489
+ data: "Organization" | "User";
4490
4490
  driverParam: string;
4491
4491
  notNull: true;
4492
4492
  hasDefault: false;
@@ -4499,7 +4499,7 @@ declare const workAppGitHubInstallations: drizzle_orm_pg_core1813.PgTableWithCol
4499
4499
  generated: undefined;
4500
4500
  }, {}, {
4501
4501
  length: 20;
4502
- $type: "User" | "Organization";
4502
+ $type: "Organization" | "User";
4503
4503
  }>;
4504
4504
  status: drizzle_orm_pg_core1813.PgColumn<{
4505
4505
  name: "status";
package/dist/env.js CHANGED
@@ -54,11 +54,18 @@ const envSchema = z.object({
54
54
  SPICEDB_PRESHARED_KEY: z.string().optional().describe("SpiceDB pre-shared key"),
55
55
  SPICEDB_TLS_ENABLED: z.stringbool().optional().describe("SpiceDB TLS enabled")
56
56
  });
57
+ const logEnvIssues = (scope, error) => {
58
+ for (const issue of error.issues) {
59
+ const key = issue.path.length > 0 ? issue.path.join(".") : "<root>";
60
+ console.error(`[${scope}] ${key}: ${issue.message}`);
61
+ }
62
+ };
57
63
  const parseEnv = () => {
58
64
  try {
59
65
  return envSchema.parse(process.env);
60
66
  } catch (error) {
61
67
  if (error instanceof z.ZodError) {
68
+ logEnvIssues("agents-core env", error);
62
69
  const missingVars = error.issues.map((issue) => issue.path.join("."));
63
70
  throw new Error(`❌ Invalid environment variables: ${missingVars.join(", ")}\n${error.message}`);
64
71
  }
@@ -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_zod371 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_zod371.BuildSchema<"select", T["_"]["columns"], drizzle_zod371.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_zod371.BuildSchema<"insert", T["_"]["columns"], drizzle_zod371.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
  /**