@inkeep/agents-core 0.65.1 → 0.66.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 (112) hide show
  1. package/dist/_virtual/rolldown_runtime.js +25 -1
  2. package/dist/auth/permissions.d.ts +9 -9
  3. package/dist/constants/index.d.ts +14 -0
  4. package/dist/constants/index.js +15 -0
  5. package/dist/constants/relation-types.d.ts +5 -0
  6. package/dist/constants/relation-types.js +6 -0
  7. package/dist/constants/session-events.d.ts +13 -0
  8. package/dist/constants/session-events.js +14 -0
  9. package/dist/constants/tool-names.d.ts +7 -0
  10. package/dist/constants/tool-names.js +8 -0
  11. package/dist/constants/workflow.d.ts +7 -0
  12. package/dist/constants/workflow.js +8 -0
  13. package/dist/data-access/index.d.ts +3 -3
  14. package/dist/data-access/manage/agentFull.d.ts +7 -10
  15. package/dist/data-access/manage/agentFull.js +26 -28
  16. package/dist/data-access/manage/agents.d.ts +47 -47
  17. package/dist/data-access/manage/artifactComponents.d.ts +10 -10
  18. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  19. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  20. package/dist/data-access/manage/dataComponents.js +1 -1
  21. package/dist/data-access/manage/functionTools.d.ts +16 -16
  22. package/dist/data-access/manage/projectFull.d.ts +6 -8
  23. package/dist/data-access/manage/projectFull.js +18 -18
  24. package/dist/data-access/manage/skills.d.ts +12 -12
  25. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  26. package/dist/data-access/manage/subAgentRelations.d.ts +20 -20
  27. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  28. package/dist/data-access/manage/subAgents.d.ts +21 -21
  29. package/dist/data-access/manage/tools.d.ts +24 -24
  30. package/dist/data-access/manage/triggers.d.ts +4 -4
  31. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  32. package/dist/data-access/runtime/apps.d.ts +10 -10
  33. package/dist/data-access/runtime/conversations.d.ts +24 -24
  34. package/dist/data-access/runtime/feedback.d.ts +4 -4
  35. package/dist/data-access/runtime/messages.d.ts +12 -12
  36. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  37. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  38. package/dist/data-access/runtime/tasks.d.ts +5 -5
  39. package/dist/db/manage/dolt-safe-jsonb.d.ts +2 -2
  40. package/dist/db/manage/manage-client.js +15 -3
  41. package/dist/db/manage/manage-schema.d.ts +358 -358
  42. package/dist/db/runtime/runtime-client.js +7 -1
  43. package/dist/db/runtime/runtime-schema.d.ts +373 -373
  44. package/dist/dolt/merge.js +7 -9
  45. package/dist/dolt/ref-middleware.js +2 -2
  46. package/dist/dolt/ref-scope.js +9 -3
  47. package/dist/index.d.ts +9 -5
  48. package/dist/index.js +7 -3
  49. package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js +77 -0
  50. package/dist/node_modules/.pnpm/@vitest_expect@3.2.4/node_modules/@vitest/expect/dist/index.js +1356 -0
  51. package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js +1119 -0
  52. package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js +982 -0
  53. package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/index.js +4 -0
  54. package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/utils.js +3 -0
  55. package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js +1821 -0
  56. package/dist/node_modules/.pnpm/@vitest_spy@3.2.4/node_modules/@vitest/spy/dist/index.js +171 -0
  57. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +124 -0
  58. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/diff.js +1334 -0
  59. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.js +105 -0
  60. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/helpers.js +118 -0
  61. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/index.js +455 -0
  62. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/source-map.js +168 -0
  63. package/dist/node_modules/.pnpm/chai@5.3.3/node_modules/chai/index.js +3087 -0
  64. package/dist/node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js +384 -0
  65. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js +11 -0
  66. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js +16 -0
  67. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js +11 -0
  68. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js +15 -0
  69. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js +13 -0
  70. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js +34 -0
  71. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js +12 -0
  72. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js +122 -0
  73. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js +39 -0
  74. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js +99 -0
  75. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js +25 -0
  76. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js +14 -0
  77. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js +21 -0
  78. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js +6 -0
  79. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js +12 -0
  80. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js +18 -0
  81. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js +25 -0
  82. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js +8 -0
  83. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js +30 -0
  84. package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.js +939 -0
  85. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.js +81 -0
  86. package/dist/node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.js +51 -0
  87. package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +81 -0
  88. package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js +9 -0
  89. package/dist/node_modules/.pnpm/tinyspy@4.0.4/node_modules/tinyspy/dist/index.js +125 -0
  90. 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
  91. 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
  92. 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
  93. 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
  94. package/dist/test-utils/index.d.ts +2 -0
  95. package/dist/test-utils/index.js +3 -0
  96. package/dist/test-utils/mocks/index.d.ts +2 -0
  97. package/dist/test-utils/mocks/index.js +3 -0
  98. package/dist/test-utils/mocks/logger.d.ts +27 -0
  99. package/dist/test-utils/mocks/logger.js +48 -0
  100. package/dist/utils/error.d.ts +58 -52
  101. package/dist/utils/error.js +63 -21
  102. package/dist/utils/index.d.ts +3 -3
  103. package/dist/utils/index.js +3 -3
  104. package/dist/utils/jwt-helpers.js +1 -1
  105. package/dist/utils/logger.d.ts +21 -2
  106. package/dist/utils/logger.js +67 -11
  107. package/dist/utils/third-party-mcp-servers/composio-client.js +10 -10
  108. package/dist/utils/tracer-factory.js +1 -1
  109. package/dist/validation/schemas/skills.d.ts +45 -45
  110. package/dist/validation/schemas.d.ts +2289 -2289
  111. package/drizzle/runtime/meta/_journal.json +2 -2
  112. package/package.json +5 -1
@@ -0,0 +1,168 @@
1
+ //#region ../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/source-map.js
2
+ const comma = ",".charCodeAt(0);
3
+ const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
4
+ const intToChar = new Uint8Array(64);
5
+ const charToInt = new Uint8Array(128);
6
+ for (let i = 0; i < 64; i++) {
7
+ const c = chars.charCodeAt(i);
8
+ intToChar[i] = c;
9
+ charToInt[c] = i;
10
+ }
11
+ var UrlType;
12
+ (function(UrlType$1) {
13
+ UrlType$1[UrlType$1["Empty"] = 1] = "Empty";
14
+ UrlType$1[UrlType$1["Hash"] = 2] = "Hash";
15
+ UrlType$1[UrlType$1["Query"] = 3] = "Query";
16
+ UrlType$1[UrlType$1["RelativePath"] = 4] = "RelativePath";
17
+ UrlType$1[UrlType$1["AbsolutePath"] = 5] = "AbsolutePath";
18
+ UrlType$1[UrlType$1["SchemeRelative"] = 6] = "SchemeRelative";
19
+ UrlType$1[UrlType$1["Absolute"] = 7] = "Absolute";
20
+ })(UrlType || (UrlType = {}));
21
+ const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
22
+ function normalizeWindowsPath(input = "") {
23
+ if (!input) return input;
24
+ return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
25
+ }
26
+ const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
27
+ function cwd() {
28
+ if (typeof process !== "undefined" && typeof process.cwd === "function") return process.cwd().replace(/\\/g, "/");
29
+ return "/";
30
+ }
31
+ const resolve = function(...arguments_) {
32
+ arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
33
+ let resolvedPath = "";
34
+ let resolvedAbsolute = false;
35
+ for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
36
+ const path = index >= 0 ? arguments_[index] : cwd();
37
+ if (!path || path.length === 0) continue;
38
+ resolvedPath = `${path}/${resolvedPath}`;
39
+ resolvedAbsolute = isAbsolute(path);
40
+ }
41
+ resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
42
+ if (resolvedAbsolute && !isAbsolute(resolvedPath)) return `/${resolvedPath}`;
43
+ return resolvedPath.length > 0 ? resolvedPath : ".";
44
+ };
45
+ function normalizeString(path, allowAboveRoot) {
46
+ let res = "";
47
+ let lastSegmentLength = 0;
48
+ let lastSlash = -1;
49
+ let dots = 0;
50
+ let char = null;
51
+ for (let index = 0; index <= path.length; ++index) {
52
+ if (index < path.length) char = path[index];
53
+ else if (char === "/") break;
54
+ else char = "/";
55
+ if (char === "/") {
56
+ if (lastSlash === index - 1 || dots === 1);
57
+ else if (dots === 2) {
58
+ if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
59
+ if (res.length > 2) {
60
+ const lastSlashIndex = res.lastIndexOf("/");
61
+ if (lastSlashIndex === -1) {
62
+ res = "";
63
+ lastSegmentLength = 0;
64
+ } else {
65
+ res = res.slice(0, lastSlashIndex);
66
+ lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
67
+ }
68
+ lastSlash = index;
69
+ dots = 0;
70
+ continue;
71
+ } else if (res.length > 0) {
72
+ res = "";
73
+ lastSegmentLength = 0;
74
+ lastSlash = index;
75
+ dots = 0;
76
+ continue;
77
+ }
78
+ }
79
+ if (allowAboveRoot) {
80
+ res += res.length > 0 ? "/.." : "..";
81
+ lastSegmentLength = 2;
82
+ }
83
+ } else {
84
+ if (res.length > 0) res += `/${path.slice(lastSlash + 1, index)}`;
85
+ else res = path.slice(lastSlash + 1, index);
86
+ lastSegmentLength = index - lastSlash - 1;
87
+ }
88
+ lastSlash = index;
89
+ dots = 0;
90
+ } else if (char === "." && dots !== -1) ++dots;
91
+ else dots = -1;
92
+ }
93
+ return res;
94
+ }
95
+ const isAbsolute = function(p) {
96
+ return _IS_ABSOLUTE_RE.test(p);
97
+ };
98
+ const CHROME_IE_STACK_REGEXP = /^\s*at .*(?:\S:\d+|\(native\))/m;
99
+ const SAFARI_NATIVE_CODE_REGEXP = /^(?:eval@)?(?:\[native code\])?$/;
100
+ function extractLocation(urlLike) {
101
+ if (!urlLike.includes(":")) return [urlLike];
102
+ const parts = /(.+?)(?::(\d+))?(?::(\d+))?$/.exec(urlLike.replace(/^\(|\)$/g, ""));
103
+ if (!parts) return [urlLike];
104
+ let url = parts[1];
105
+ if (url.startsWith("async ")) url = url.slice(6);
106
+ if (url.startsWith("http:") || url.startsWith("https:")) {
107
+ const urlObj = new URL(url);
108
+ urlObj.searchParams.delete("import");
109
+ urlObj.searchParams.delete("browserv");
110
+ url = urlObj.pathname + urlObj.hash + urlObj.search;
111
+ }
112
+ if (url.startsWith("/@fs/")) {
113
+ const isWindows = /^\/@fs\/[a-zA-Z]:\//.test(url);
114
+ url = url.slice(isWindows ? 5 : 4);
115
+ }
116
+ return [
117
+ url,
118
+ parts[2] || void 0,
119
+ parts[3] || void 0
120
+ ];
121
+ }
122
+ function parseSingleFFOrSafariStack(raw) {
123
+ let line = raw.trim();
124
+ if (SAFARI_NATIVE_CODE_REGEXP.test(line)) return null;
125
+ if (line.includes(" > eval")) line = line.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1");
126
+ if (!line.includes("@") && !line.includes(":")) return null;
127
+ const functionNameRegex = /((.*".+"[^@]*)?[^@]*)(@)/;
128
+ const matches = line.match(functionNameRegex);
129
+ const functionName = matches && matches[1] ? matches[1] : void 0;
130
+ const [url, lineNumber, columnNumber] = extractLocation(line.replace(functionNameRegex, ""));
131
+ if (!url || !lineNumber || !columnNumber) return null;
132
+ return {
133
+ file: url,
134
+ method: functionName || "",
135
+ line: Number.parseInt(lineNumber),
136
+ column: Number.parseInt(columnNumber)
137
+ };
138
+ }
139
+ function parseSingleStack(raw) {
140
+ const line = raw.trim();
141
+ if (!CHROME_IE_STACK_REGEXP.test(line)) return parseSingleFFOrSafariStack(line);
142
+ return parseSingleV8Stack(line);
143
+ }
144
+ function parseSingleV8Stack(raw) {
145
+ let line = raw.trim();
146
+ if (!CHROME_IE_STACK_REGEXP.test(line)) return null;
147
+ if (line.includes("(eval ")) line = line.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(,.*$)/g, "");
148
+ let sanitizedLine = line.replace(/^\s+/, "").replace(/\(eval code/g, "(").replace(/^.*?\s+/, "");
149
+ const location = sanitizedLine.match(/ (\(.+\)$)/);
150
+ sanitizedLine = location ? sanitizedLine.replace(location[0], "") : sanitizedLine;
151
+ const [url, lineNumber, columnNumber] = extractLocation(location ? location[1] : sanitizedLine);
152
+ let method = location && sanitizedLine || "";
153
+ let file = url && ["eval", "<anonymous>"].includes(url) ? void 0 : url;
154
+ if (!file || !lineNumber || !columnNumber) return null;
155
+ if (method.startsWith("async ")) method = method.slice(6);
156
+ if (file.startsWith("file://")) file = file.slice(7);
157
+ file = file.startsWith("node:") || file.startsWith("internal:") ? file : resolve(file);
158
+ if (method) method = method.replace(/__vite_ssr_import_\d+__\./g, "");
159
+ return {
160
+ method,
161
+ file,
162
+ line: Number.parseInt(lineNumber),
163
+ column: Number.parseInt(columnNumber)
164
+ };
165
+ }
166
+
167
+ //#endregion
168
+ export { parseSingleStack };