@inkeep/agents-core 0.0.0-dev-20260408182658 → 0.0.0-dev-20260408202201

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 (78) hide show
  1. package/dist/_virtual/rolldown_runtime.js +25 -1
  2. package/dist/auth/permissions.d.ts +9 -9
  3. package/dist/data-access/manage/agents.d.ts +21 -21
  4. package/dist/data-access/manage/artifactComponents.d.ts +10 -10
  5. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  6. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  7. package/dist/data-access/manage/functionTools.d.ts +14 -14
  8. package/dist/data-access/manage/skills.d.ts +9 -9
  9. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  10. package/dist/data-access/manage/subAgentRelations.d.ts +20 -20
  11. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  12. package/dist/data-access/manage/subAgents.d.ts +15 -15
  13. package/dist/data-access/manage/tools.d.ts +21 -21
  14. package/dist/data-access/manage/triggers.d.ts +2 -2
  15. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  16. package/dist/data-access/runtime/apps.d.ts +10 -10
  17. package/dist/data-access/runtime/conversations.d.ts +24 -24
  18. package/dist/data-access/runtime/feedback.d.ts +8 -8
  19. package/dist/data-access/runtime/messages.d.ts +18 -18
  20. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  21. package/dist/data-access/runtime/tasks.d.ts +6 -6
  22. package/dist/db/manage/manage-schema.d.ts +4 -4
  23. package/dist/db/runtime/runtime-schema.d.ts +2 -2
  24. package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js +77 -0
  25. package/dist/node_modules/.pnpm/@vitest_expect@3.2.4/node_modules/@vitest/expect/dist/index.js +1356 -0
  26. package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js +1119 -0
  27. package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js +982 -0
  28. package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/index.js +4 -0
  29. package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/utils.js +3 -0
  30. package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js +1821 -0
  31. package/dist/node_modules/.pnpm/@vitest_spy@3.2.4/node_modules/@vitest/spy/dist/index.js +171 -0
  32. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +124 -0
  33. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/diff.js +1334 -0
  34. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.js +105 -0
  35. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/helpers.js +118 -0
  36. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/index.js +455 -0
  37. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/source-map.js +168 -0
  38. package/dist/node_modules/.pnpm/chai@5.3.3/node_modules/chai/index.js +3087 -0
  39. package/dist/node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js +384 -0
  40. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js +11 -0
  41. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js +16 -0
  42. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js +11 -0
  43. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js +15 -0
  44. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js +13 -0
  45. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js +34 -0
  46. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js +12 -0
  47. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js +122 -0
  48. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js +39 -0
  49. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js +99 -0
  50. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js +25 -0
  51. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js +14 -0
  52. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js +21 -0
  53. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js +6 -0
  54. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js +12 -0
  55. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js +18 -0
  56. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js +25 -0
  57. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js +8 -0
  58. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js +30 -0
  59. package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.js +939 -0
  60. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.js +81 -0
  61. package/dist/node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.js +51 -0
  62. package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +81 -0
  63. package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js +9 -0
  64. package/dist/node_modules/.pnpm/tinyspy@4.0.4/node_modules/tinyspy/dist/index.js +125 -0
  65. package/dist/node_modules/.pnpm/vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_93023d256ff9ed909ae8f0d436c922a0/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +8 -0
  66. package/dist/node_modules/.pnpm/vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_93023d256ff9ed909ae8f0d436c922a0/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +50 -0
  67. package/dist/node_modules/.pnpm/vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_93023d256ff9ed909ae8f0d436c922a0/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +48 -0
  68. package/dist/node_modules/.pnpm/vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_93023d256ff9ed909ae8f0d436c922a0/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +2613 -0
  69. package/dist/test-utils/index.d.ts +2 -0
  70. package/dist/test-utils/index.js +3 -0
  71. package/dist/test-utils/mocks/index.d.ts +2 -0
  72. package/dist/test-utils/mocks/index.js +3 -0
  73. package/dist/test-utils/mocks/logger.d.ts +27 -0
  74. package/dist/test-utils/mocks/logger.js +48 -0
  75. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  76. package/dist/validation/schemas/skills.d.ts +15 -15
  77. package/dist/validation/schemas.d.ts +778 -778
  78. package/package.json +5 -1
@@ -0,0 +1,2 @@
1
+ import { MockLogger, MockLoggerModule, MockLoggerResult, createMockLogger, createMockLoggerModule } from "./mocks/logger.js";
2
+ export { MockLogger, MockLoggerModule, MockLoggerResult, createMockLogger, createMockLoggerModule };
@@ -0,0 +1,3 @@
1
+ import { createMockLogger, createMockLoggerModule } from "./mocks/logger.js";
2
+
3
+ export { createMockLogger, createMockLoggerModule };
@@ -0,0 +1,2 @@
1
+ import { MockLogger, MockLoggerModule, MockLoggerResult, createMockLogger, createMockLoggerModule } from "./logger.js";
2
+ export { type MockLogger, type MockLoggerModule, type MockLoggerResult, createMockLogger, createMockLoggerModule };
@@ -0,0 +1,3 @@
1
+ import { createMockLogger, createMockLoggerModule } from "./logger.js";
2
+
3
+ export { createMockLogger, createMockLoggerModule };
@@ -0,0 +1,27 @@
1
+ import { vi } from "vitest";
2
+
3
+ //#region src/test-utils/mocks/logger.d.ts
4
+
5
+ interface MockLogger {
6
+ info: ReturnType<typeof vi.fn>;
7
+ warn: ReturnType<typeof vi.fn>;
8
+ error: ReturnType<typeof vi.fn>;
9
+ debug: ReturnType<typeof vi.fn>;
10
+ child: ReturnType<typeof vi.fn>;
11
+ with: ReturnType<typeof vi.fn>;
12
+ getPinoInstance: ReturnType<typeof vi.fn>;
13
+ }
14
+ interface MockLoggerModule {
15
+ getLogger: ReturnType<typeof vi.fn>;
16
+ runWithLogContext: ReturnType<typeof vi.fn>;
17
+ }
18
+ interface MockLoggerResult {
19
+ mockLogger: MockLogger;
20
+ module: MockLoggerModule;
21
+ /** Clear all mock call data. Use in beforeEach when asserting on logger calls. */
22
+ clearAll: () => void;
23
+ }
24
+ declare function createMockLogger(): MockLogger;
25
+ declare function createMockLoggerModule(): MockLoggerResult;
26
+ //#endregion
27
+ export { MockLogger, MockLoggerModule, MockLoggerResult, createMockLogger, createMockLoggerModule };
@@ -0,0 +1,48 @@
1
+ import { vi } from "../../node_modules/.pnpm/vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_93023d256ff9ed909ae8f0d436c922a0/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js";
2
+
3
+ //#region src/test-utils/mocks/logger.ts
4
+ /**
5
+ * Shared mock factories for the logger module.
6
+ *
7
+ * These utilities require `vitest` in the consumer's environment — they
8
+ * import `vi` from `vitest` to create mock functions. Only use in test files
9
+ * where vitest is already available as a devDependency.
10
+ */
11
+ function createMockLogger() {
12
+ const mockLogger = {
13
+ info: vi.fn(),
14
+ warn: vi.fn(),
15
+ error: vi.fn(),
16
+ debug: vi.fn(),
17
+ child: vi.fn(),
18
+ with: vi.fn(),
19
+ getPinoInstance: vi.fn().mockReturnValue({
20
+ info: vi.fn(),
21
+ warn: vi.fn(),
22
+ error: vi.fn(),
23
+ debug: vi.fn(),
24
+ child: vi.fn().mockReturnThis()
25
+ })
26
+ };
27
+ mockLogger.child.mockReturnValue(mockLogger);
28
+ mockLogger.with.mockReturnValue(mockLogger);
29
+ return mockLogger;
30
+ }
31
+ function createMockLoggerModule() {
32
+ const mockLogger = createMockLogger();
33
+ const module = {
34
+ getLogger: vi.fn(() => mockLogger),
35
+ runWithLogContext: vi.fn((_bindings, fn) => fn())
36
+ };
37
+ return {
38
+ mockLogger,
39
+ module,
40
+ clearAll: () => {
41
+ for (const fn of Object.values(mockLogger)) if (typeof fn === "function" && "mockClear" in fn) fn.mockClear();
42
+ for (const fn of Object.values(module)) if (typeof fn === "function" && "mockClear" in fn) fn.mockClear();
43
+ }
44
+ };
45
+ }
46
+
47
+ //#endregion
48
+ export { createMockLogger, createMockLoggerModule };
@@ -1,10 +1,10 @@
1
1
  import { z } from "@hono/zod-openapi";
2
- import * as drizzle_zod365 from "drizzle-zod";
2
+ import * as drizzle_zod15 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_zod365.BuildSchema<"select", T["_"]["columns"], drizzle_zod365.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_zod365.BuildSchema<"insert", T["_"]["columns"], drizzle_zod365.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_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>;
8
8
  declare const createSelectSchema: typeof createSelectSchemaWithModifiers;
9
9
  declare const createInsertSchema: typeof createInsertSchemaWithModifiers;
10
10
  /**
@@ -337,8 +337,8 @@ declare const SkillFileInsertSchema: z.ZodObject<{
337
337
  }>;
338
338
  declare const SkillInsertSchema: z.ZodObject<{
339
339
  name: z.ZodString;
340
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
341
340
  description: z.ZodString;
341
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
342
342
  content: z.ZodString;
343
343
  }, {
344
344
  out: {};
@@ -353,10 +353,10 @@ declare const SkillUpdateSchema: z.ZodObject<{
353
353
  declare const SkillApiSelectSchema: z.ZodObject<{
354
354
  id: z.ZodString;
355
355
  name: z.ZodString;
356
+ description: z.ZodString;
356
357
  createdAt: z.ZodString;
357
358
  updatedAt: z.ZodString;
358
359
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
359
- description: z.ZodString;
360
360
  content: z.ZodString;
361
361
  }, z.core.$strip>;
362
362
  declare const SkillApiInsertSchema: z.ZodPipe<z.ZodPipe<z.ZodObject<{
@@ -413,8 +413,8 @@ declare const SkillFileApiSelectSchema: z.ZodObject<{
413
413
  createdAt: z.ZodString;
414
414
  updatedAt: z.ZodString;
415
415
  content: z.ZodString;
416
- filePath: z.ZodString;
417
416
  skillId: z.ZodString;
417
+ filePath: z.ZodString;
418
418
  }, z.core.$strip>;
419
419
  declare const SkillFileApiInsertSchema: z.ZodObject<{
420
420
  filePath: z.ZodString;
@@ -426,18 +426,18 @@ declare const SkillFileApiUpdateSchema: z.ZodObject<{
426
426
  declare const SkillWithFilesApiSelectSchema: z.ZodObject<{
427
427
  id: z.ZodString;
428
428
  name: z.ZodString;
429
+ description: z.ZodString;
429
430
  createdAt: z.ZodString;
430
431
  updatedAt: z.ZodString;
431
432
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
432
- description: z.ZodString;
433
433
  content: z.ZodString;
434
434
  files: z.ZodArray<z.ZodObject<{
435
435
  id: z.ZodString;
436
436
  createdAt: z.ZodString;
437
437
  updatedAt: z.ZodString;
438
438
  content: z.ZodString;
439
- filePath: z.ZodString;
440
439
  skillId: z.ZodString;
440
+ filePath: z.ZodString;
441
441
  }, z.core.$strip>>;
442
442
  }, z.core.$strip>;
443
443
  declare const SubAgentSkillSelectSchema: z.ZodObject<{
@@ -489,16 +489,16 @@ declare const SubAgentSkillApiSelectSchema: z.ZodObject<{
489
489
  id: z.ZodString;
490
490
  createdAt: z.ZodString;
491
491
  updatedAt: z.ZodString;
492
- subAgentId: z.ZodString;
493
492
  index: z.ZodInt;
494
493
  alwaysLoaded: z.ZodBoolean;
494
+ subAgentId: z.ZodString;
495
495
  skillId: z.ZodString;
496
496
  }, z.core.$strip>;
497
497
  declare const SubAgentSkillApiInsertSchema: z.ZodObject<{
498
498
  agentId: z.ZodString;
499
- subAgentId: z.ZodString;
500
499
  index: z.ZodInt;
501
500
  alwaysLoaded: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
501
+ subAgentId: z.ZodString;
502
502
  skillId: z.ZodString;
503
503
  }, {
504
504
  out: {};
@@ -508,18 +508,18 @@ declare const SubAgentSkillApiUpdateSchema: z.ZodObject<{
508
508
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
509
509
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
510
510
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
511
- subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
512
511
  index: z.ZodOptional<z.ZodOptional<z.ZodInt>>;
513
512
  alwaysLoaded: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>>;
513
+ subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
514
514
  skillId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
515
515
  }, z.core.$strip>;
516
516
  declare const SubAgentSkillWithIndexSchema: z.ZodObject<{
517
517
  id: z.ZodString;
518
518
  name: z.ZodString;
519
+ description: z.ZodString;
519
520
  createdAt: z.ZodString;
520
521
  updatedAt: z.ZodString;
521
522
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
522
- description: z.ZodString;
523
523
  content: z.ZodString;
524
524
  subAgentSkillId: z.ZodString;
525
525
  subAgentId: z.ZodString;
@@ -532,26 +532,26 @@ declare const SkillFileResponse: z.ZodObject<{
532
532
  createdAt: z.ZodString;
533
533
  updatedAt: z.ZodString;
534
534
  content: z.ZodString;
535
- filePath: z.ZodString;
536
535
  skillId: z.ZodString;
536
+ filePath: z.ZodString;
537
537
  }, z.core.$strip>;
538
538
  }, z.core.$strip>;
539
539
  declare const SkillWithFilesResponse: z.ZodObject<{
540
540
  data: z.ZodObject<{
541
541
  id: z.ZodString;
542
542
  name: z.ZodString;
543
+ description: z.ZodString;
543
544
  createdAt: z.ZodString;
544
545
  updatedAt: z.ZodString;
545
546
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
546
- description: z.ZodString;
547
547
  content: z.ZodString;
548
548
  files: z.ZodArray<z.ZodObject<{
549
549
  id: z.ZodString;
550
550
  createdAt: z.ZodString;
551
551
  updatedAt: z.ZodString;
552
552
  content: z.ZodString;
553
- filePath: z.ZodString;
554
553
  skillId: z.ZodString;
554
+ filePath: z.ZodString;
555
555
  }, z.core.$strip>>;
556
556
  }, z.core.$strip>;
557
557
  }, z.core.$strip>;
@@ -559,10 +559,10 @@ declare const SkillListResponse: z.ZodObject<{
559
559
  data: z.ZodArray<z.ZodObject<{
560
560
  id: z.ZodString;
561
561
  name: z.ZodString;
562
+ description: z.ZodString;
562
563
  createdAt: z.ZodString;
563
564
  updatedAt: z.ZodString;
564
565
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
565
- description: z.ZodString;
566
566
  content: z.ZodString;
567
567
  }, z.core.$strip>>;
568
568
  pagination: z.ZodObject<{
@@ -577,9 +577,9 @@ declare const SubAgentSkillResponse: z.ZodObject<{
577
577
  id: z.ZodString;
578
578
  createdAt: z.ZodString;
579
579
  updatedAt: z.ZodString;
580
- subAgentId: z.ZodString;
581
580
  index: z.ZodInt;
582
581
  alwaysLoaded: z.ZodBoolean;
582
+ subAgentId: z.ZodString;
583
583
  skillId: z.ZodString;
584
584
  }, z.core.$strip>;
585
585
  }, z.core.$strip>;
@@ -587,10 +587,10 @@ declare const SubAgentSkillWithIndexArrayResponse: z.ZodObject<{
587
587
  data: z.ZodArray<z.ZodObject<{
588
588
  id: z.ZodString;
589
589
  name: z.ZodString;
590
+ description: z.ZodString;
590
591
  createdAt: z.ZodString;
591
592
  updatedAt: z.ZodString;
592
593
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
593
- description: z.ZodString;
594
594
  content: z.ZodString;
595
595
  subAgentSkillId: z.ZodString;
596
596
  subAgentId: z.ZodString;