@inkeep/agents-core 0.65.2 → 0.66.1
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.
- package/dist/_virtual/rolldown_runtime.js +25 -1
- package/dist/auth/auth.d.ts +6 -6
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/constants/index.d.ts +14 -0
- package/dist/constants/index.js +15 -0
- package/dist/constants/relation-types.d.ts +5 -0
- package/dist/constants/relation-types.js +6 -0
- package/dist/constants/session-events.d.ts +13 -0
- package/dist/constants/session-events.js +14 -0
- package/dist/constants/tool-names.d.ts +7 -0
- package/dist/constants/tool-names.js +8 -0
- package/dist/constants/workflow.d.ts +7 -0
- package/dist/constants/workflow.js +8 -0
- package/dist/data-access/index.d.ts +3 -3
- package/dist/data-access/manage/agentFull.d.ts +7 -10
- package/dist/data-access/manage/agentFull.js +26 -28
- package/dist/data-access/manage/agents.d.ts +10 -10
- package/dist/data-access/manage/artifactComponents.d.ts +6 -6
- package/dist/data-access/manage/contextConfigs.d.ts +4 -4
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +8 -8
- package/dist/data-access/manage/projectFull.d.ts +6 -8
- package/dist/data-access/manage/projectFull.js +18 -18
- package/dist/data-access/manage/skills.d.ts +7 -7
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +14 -14
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +6 -6
- package/dist/data-access/manage/tools.d.ts +18 -18
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/apps.d.ts +10 -10
- package/dist/data-access/runtime/conversations.d.ts +16 -16
- package/dist/data-access/runtime/feedback.d.ts +2 -2
- package/dist/data-access/runtime/messages.d.ts +3 -3
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
- package/dist/data-access/runtime/tasks.d.ts +5 -5
- package/dist/db/manage/manage-schema.d.ts +4 -4
- package/dist/db/runtime/runtime-schema.d.ts +373 -373
- package/dist/dolt/ref-middleware.js +2 -2
- package/dist/index.d.ts +7 -3
- package/dist/index.js +5 -1
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js +77 -0
- package/dist/node_modules/.pnpm/@vitest_expect@3.2.4/node_modules/@vitest/expect/dist/index.js +1356 -0
- package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js +1119 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js +982 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/index.js +4 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/utils.js +3 -0
- package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js +1821 -0
- package/dist/node_modules/.pnpm/@vitest_spy@3.2.4/node_modules/@vitest/spy/dist/index.js +171 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +124 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/diff.js +1334 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.js +105 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/helpers.js +118 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/index.js +455 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/source-map.js +168 -0
- package/dist/node_modules/.pnpm/chai@5.3.3/node_modules/chai/index.js +3087 -0
- package/dist/node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js +384 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js +11 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js +16 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js +11 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js +15 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js +13 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js +34 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js +12 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js +122 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js +39 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js +99 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js +25 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js +14 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js +21 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js +6 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js +12 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js +18 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js +25 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js +8 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js +30 -0
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.js +939 -0
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.js +81 -0
- package/dist/node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.js +51 -0
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +81 -0
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js +9 -0
- package/dist/node_modules/.pnpm/tinyspy@4.0.4/node_modules/tinyspy/dist/index.js +125 -0
- 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
- 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
- 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
- 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
- package/dist/test-utils/index.d.ts +2 -0
- package/dist/test-utils/index.js +3 -0
- package/dist/test-utils/mocks/index.d.ts +2 -0
- package/dist/test-utils/mocks/index.js +3 -0
- package/dist/test-utils/mocks/logger.d.ts +27 -0
- package/dist/test-utils/mocks/logger.js +48 -0
- package/dist/utils/jwt-helpers.js +1 -1
- package/dist/utils/third-party-mcp-servers/composio-client.js +10 -10
- package/dist/utils/tracer-factory.js +1 -1
- package/dist/validation/schemas/skills.d.ts +51 -51
- package/dist/validation/schemas.d.ts +600 -600
- package/package.json +5 -1
package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/source-map.js
ADDED
|
@@ -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 };
|