@inkeep/agents-core 0.43.0 → 0.45.0

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 (76) hide show
  1. package/dist/auth/auth.d.ts +4 -2
  2. package/dist/auth/auth.js +4 -3
  3. package/dist/auth/authz/client.d.ts +0 -1
  4. package/dist/auth/authz/client.js +0 -1
  5. package/dist/auth/authz/config.d.ts +1 -7
  6. package/dist/auth/authz/config.js +1 -9
  7. package/dist/auth/authz/index.d.ts +3 -3
  8. package/dist/auth/authz/index.js +3 -3
  9. package/dist/auth/authz/permissions.d.ts +16 -1
  10. package/dist/auth/authz/permissions.js +30 -9
  11. package/dist/auth/authz/sync.js +1 -11
  12. package/dist/auth/init.d.ts +1 -0
  13. package/dist/auth/init.js +115 -0
  14. package/dist/client-exports.d.ts +2 -6
  15. package/dist/client-exports.js +3 -7
  16. package/dist/constants/otel-attributes.d.ts +6 -0
  17. package/dist/constants/otel-attributes.js +9 -3
  18. package/dist/constants/signoz-queries.d.ts +1 -0
  19. package/dist/constants/signoz-queries.js +2 -1
  20. package/dist/data-access/index.d.ts +4 -3
  21. package/dist/data-access/index.js +6 -5
  22. package/dist/data-access/manage/agentFull.js +42 -1
  23. package/dist/data-access/manage/agents.d.ts +27 -10
  24. package/dist/data-access/manage/agents.js +33 -2
  25. package/dist/data-access/manage/artifactComponents.d.ts +4 -4
  26. package/dist/data-access/manage/artifactComponents.js +1 -1
  27. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  28. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  29. package/dist/data-access/manage/dataComponents.js +1 -1
  30. package/dist/data-access/manage/functionTools.d.ts +4 -4
  31. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  32. package/dist/data-access/manage/subAgentRelations.d.ts +18 -18
  33. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  34. package/dist/data-access/manage/subAgents.d.ts +3 -3
  35. package/dist/data-access/manage/tools.d.ts +20 -15
  36. package/dist/data-access/manage/tools.js +20 -1
  37. package/dist/data-access/runtime/apiKeys.d.ts +4 -4
  38. package/dist/data-access/runtime/cascade-delete.d.ts +48 -1
  39. package/dist/data-access/runtime/cascade-delete.js +52 -2
  40. package/dist/data-access/runtime/conversations.d.ts +19 -19
  41. package/dist/data-access/runtime/github-work-app-installations.d.ts +261 -0
  42. package/dist/data-access/runtime/github-work-app-installations.js +457 -0
  43. package/dist/data-access/runtime/messages.d.ts +6 -6
  44. package/dist/data-access/runtime/organizations.js +2 -2
  45. package/dist/data-access/runtime/tasks.d.ts +4 -4
  46. package/dist/db/manage/manage-schema.d.ts +17 -0
  47. package/dist/db/manage/manage-schema.js +1 -0
  48. package/dist/db/runtime/runtime-schema.d.ts +1009 -165
  49. package/dist/db/runtime/runtime-schema.js +173 -5
  50. package/dist/dolt/ref-middleware.js +1 -1
  51. package/dist/env.d.ts +6 -4
  52. package/dist/env.js +11 -10
  53. package/dist/index.d.ts +10 -11
  54. package/dist/index.js +22 -23
  55. package/dist/types/entities.d.ts +9 -2
  56. package/dist/types/index.d.ts +3 -3
  57. package/dist/types/utility.d.ts +16 -2
  58. package/dist/utils/temp-jwt.d.ts +2 -1
  59. package/dist/utils/temp-jwt.js +3 -2
  60. package/dist/validation/agentFull.js +1 -1
  61. package/dist/validation/dolt-schemas.d.ts +1 -1
  62. package/dist/validation/drizzle-schema-helpers.d.ts +1 -20
  63. package/dist/validation/drizzle-schema-helpers.js +3 -30
  64. package/dist/validation/index.d.ts +2 -4
  65. package/dist/validation/index.js +4 -6
  66. package/dist/validation/schemas.d.ts +3021 -1228
  67. package/dist/validation/schemas.js +164 -79
  68. package/drizzle/manage/0006_fixed_umar.sql +1 -0
  69. package/drizzle/manage/meta/0006_snapshot.json +3148 -0
  70. package/drizzle/manage/meta/_journal.json +7 -0
  71. package/drizzle/runtime/0010_previous_black_knight.sql +84 -0
  72. package/drizzle/runtime/meta/0010_snapshot.json +3066 -0
  73. package/drizzle/runtime/meta/_journal.json +7 -0
  74. package/package.json +4 -2
  75. package/dist/validation/id-validation.d.ts +0 -24
  76. package/dist/validation/id-validation.js +0 -52
@@ -71,6 +71,13 @@
71
71
  "when": 1768646273355,
72
72
  "tag": "0009_freezing_leo",
73
73
  "breakpoints": true
74
+ },
75
+ {
76
+ "idx": 10,
77
+ "version": "7",
78
+ "when": 1769703627877,
79
+ "tag": "0010_previous_black_knight",
80
+ "breakpoints": true
74
81
  }
75
82
  ]
76
83
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-core",
3
- "version": "0.43.0",
3
+ "version": "0.45.0",
4
4
  "description": "Agents Core contains the database schema, types, and validation schemas for Inkeep Agent Framework, along with core components.",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -101,6 +101,7 @@
101
101
  "@ai-sdk/openai": "3.0.7",
102
102
  "@ai-sdk/openai-compatible": "2.0.4",
103
103
  "@authzed/authzed-node": "^1.6.1",
104
+ "@babel/parser": "^7.28.6",
104
105
  "@better-auth/sso": "~1.4.10",
105
106
  "@composio/core": "^0.2.4",
106
107
  "@electric-sql/pglite": "^0.3.13",
@@ -209,6 +210,7 @@
209
210
  "db:run:migrate": "drizzle-kit migrate --config=drizzle.run.config.ts",
210
211
  "db:run:drop": "drizzle-kit drop --config=drizzle.run.config.ts",
211
212
  "db:run:studio": "drizzle-kit studio --config=drizzle.run.config.ts",
212
- "db:run:check": "drizzle-kit check --config=drizzle.run.config.ts"
213
+ "db:run:check": "drizzle-kit check --config=drizzle.run.config.ts",
214
+ "db:auth:init": "tsx src/auth/init.ts"
213
215
  }
214
216
  }
@@ -1,24 +0,0 @@
1
- //#region src/validation/id-validation.d.ts
2
- /**
3
- * Valid URL-safe characters for resource IDs based on RFC 3986.
4
- *
5
- * Allowed characters:
6
- * - Letters: a-z, A-Z
7
- * - Numbers: 0-9
8
- * - Hyphens: -
9
- * - Underscores: _
10
- *
11
- * Note: While dots (.) and tildes (~) are technically URL-safe,
12
- * we exclude them for consistency with existing patterns in the codebase.
13
- */
14
- /**
15
- * Helper function to validate if a string is a valid resource ID
16
- */
17
- declare function isValidResourceId(id: string): boolean;
18
- /**
19
- * Helper function to generate a URL-safe ID from a name or title.
20
- * Converts to lowercase and replaces invalid characters with hyphens.
21
- */
22
- declare function generateIdFromName(name: string): string;
23
- //#endregion
24
- export { generateIdFromName, isValidResourceId };
@@ -1,52 +0,0 @@
1
- import { MAX_ID_LENGTH, resourceIdSchema } from "./drizzle-schema-helpers.js";
2
-
3
- //#region src/validation/id-validation.ts
4
- /**
5
- * Valid URL-safe characters for resource IDs based on RFC 3986.
6
- *
7
- * Allowed characters:
8
- * - Letters: a-z, A-Z
9
- * - Numbers: 0-9
10
- * - Hyphens: -
11
- * - Underscores: _
12
- *
13
- * Note: While dots (.) and tildes (~) are technically URL-safe,
14
- * we exclude them for consistency with existing patterns in the codebase.
15
- */
16
- /**
17
- * Helper function to validate if a string is a valid resource ID
18
- */
19
- function isValidResourceId(id) {
20
- return resourceIdSchema.safeParse(id).success;
21
- }
22
- /**
23
- * Helper function to generate a URL-safe ID from a name or title.
24
- * Converts to lowercase and replaces invalid characters with hyphens.
25
- */
26
- function generateIdFromName(name) {
27
- const id = name.toLowerCase().replace(/[^a-z0-9_-]+/g, "-").replace(/^-+|-+$/g, "").replace(/-{2,}/g, "-");
28
- if (!id) throw new Error("Cannot generate valid ID from provided name");
29
- const truncatedId = id.substring(0, MAX_ID_LENGTH);
30
- const result = resourceIdSchema.safeParse(truncatedId);
31
- if (!result.success) throw new Error(`Generated ID "${truncatedId}" is not valid: ${result.error.message}`);
32
- return truncatedId;
33
- }
34
- /**
35
- * Example valid IDs:
36
- * - "qa-agent"
37
- * - "customer_support_123"
38
- * - "router"
39
- * - "tool-executor-v2"
40
- * - "PRODUCTION_CONFIG"
41
- *
42
- * Example invalid IDs:
43
- * - "my.agent" (contains dot)
44
- * - "agent@123" (contains @)
45
- * - "agent/router" (contains slash)
46
- * - "my agent" (contains space)
47
- * - "agent#1" (contains hash)
48
- * - "" (empty string)
49
- */
50
-
51
- //#endregion
52
- export { generateIdFromName, isValidResourceId };