@inkeep/agents-core 0.0.0-dev-20260225231647 → 0.0.0-dev-20260226082947
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/auth/auth-schema.d.ts +107 -107
- package/dist/auth/auth-validation-schemas.d.ts +135 -135
- package/dist/auth/auth.d.ts +28 -28
- package/dist/auth/init.js +12 -2
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/conversations.d.ts +4 -4
- package/dist/data-access/runtime/tasks.d.ts +1 -1
- package/dist/db/manage/manage-schema.d.ts +449 -449
- package/dist/db/runtime/runtime-schema.d.ts +292 -292
- package/dist/middleware/no-auth.d.ts +2 -2
- package/dist/setup/setup.js +19 -5
- package/dist/validation/schemas.d.ts +1323 -1323
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as hono3 from "hono";
|
|
2
2
|
|
|
3
3
|
//#region src/middleware/no-auth.d.ts
|
|
4
|
-
declare const noAuth: () =>
|
|
4
|
+
declare const noAuth: () => hono3.MiddlewareHandler<any, string, {}, Response>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { noAuth };
|
package/dist/setup/setup.js
CHANGED
|
@@ -210,15 +210,23 @@ async function generateSecrets() {
|
|
|
210
210
|
for (let i = 0; i < lines.length; i++) {
|
|
211
211
|
if (lines[i].startsWith("# INKEEP_AGENTS_TEMP_JWT_PRIVATE_KEY=") || lines[i].startsWith("INKEEP_AGENTS_TEMP_JWT_PRIVATE_KEY=")) {
|
|
212
212
|
lines[i] = `INKEEP_AGENTS_TEMP_JWT_PRIVATE_KEY=${privateKeyBase64}`;
|
|
213
|
+
process.env.INKEEP_AGENTS_TEMP_JWT_PRIVATE_KEY = privateKeyBase64;
|
|
213
214
|
privateKeyFound = true;
|
|
214
215
|
}
|
|
215
216
|
if (lines[i].startsWith("# INKEEP_AGENTS_TEMP_JWT_PUBLIC_KEY=") || lines[i].startsWith("INKEEP_AGENTS_TEMP_JWT_PUBLIC_KEY=")) {
|
|
216
217
|
lines[i] = `INKEEP_AGENTS_TEMP_JWT_PUBLIC_KEY=${publicKeyBase64}`;
|
|
218
|
+
process.env.INKEEP_AGENTS_TEMP_JWT_PUBLIC_KEY = publicKeyBase64;
|
|
217
219
|
publicKeyFound = true;
|
|
218
220
|
}
|
|
219
221
|
}
|
|
220
|
-
if (!privateKeyFound)
|
|
221
|
-
|
|
222
|
+
if (!privateKeyFound) {
|
|
223
|
+
lines.push(`INKEEP_AGENTS_TEMP_JWT_PRIVATE_KEY=${privateKeyBase64}`);
|
|
224
|
+
process.env.INKEEP_AGENTS_TEMP_JWT_PRIVATE_KEY = privateKeyBase64;
|
|
225
|
+
}
|
|
226
|
+
if (!publicKeyFound) {
|
|
227
|
+
lines.push(`INKEEP_AGENTS_TEMP_JWT_PUBLIC_KEY=${publicKeyBase64}`);
|
|
228
|
+
process.env.INKEEP_AGENTS_TEMP_JWT_PUBLIC_KEY = publicKeyBase64;
|
|
229
|
+
}
|
|
222
230
|
modified = true;
|
|
223
231
|
logSuccess("JWT keys generated and added to .env");
|
|
224
232
|
} catch (error) {
|
|
@@ -248,20 +256,26 @@ async function generateSecrets() {
|
|
|
248
256
|
for (let i = 0; i < lines.length; i++) if (lines[i].startsWith(`# ${varName}=`) || lines[i].startsWith(`${varName}=`)) {
|
|
249
257
|
found = true;
|
|
250
258
|
if (lines[i].startsWith(`# ${varName}=`)) {
|
|
251
|
-
|
|
259
|
+
const value = generate();
|
|
260
|
+
lines[i] = `${varName}=${value}`;
|
|
261
|
+
process.env[varName] = value;
|
|
252
262
|
modified = true;
|
|
253
263
|
break;
|
|
254
264
|
}
|
|
255
265
|
const eqIdx = lines[i].indexOf("=");
|
|
256
266
|
const currentValue = lines[i].substring(eqIdx + 1).trim();
|
|
257
267
|
if (currentValue === "" || placeholders.includes(currentValue)) {
|
|
258
|
-
|
|
268
|
+
const value = generate();
|
|
269
|
+
lines[i] = `${varName}=${value}`;
|
|
270
|
+
process.env[varName] = value;
|
|
259
271
|
modified = true;
|
|
260
272
|
}
|
|
261
273
|
break;
|
|
262
274
|
}
|
|
263
275
|
if (!found) {
|
|
264
|
-
|
|
276
|
+
const value = generate();
|
|
277
|
+
lines.push(`${varName}=${value}`);
|
|
278
|
+
process.env[varName] = value;
|
|
265
279
|
modified = true;
|
|
266
280
|
}
|
|
267
281
|
}
|