@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.
@@ -1,6 +1,6 @@
1
- import * as hono0 from "hono";
1
+ import * as hono3 from "hono";
2
2
 
3
3
  //#region src/middleware/no-auth.d.ts
4
- declare const noAuth: () => hono0.MiddlewareHandler<any, string, {}, Response>;
4
+ declare const noAuth: () => hono3.MiddlewareHandler<any, string, {}, Response>;
5
5
  //#endregion
6
6
  export { noAuth };
@@ -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) lines.push(`INKEEP_AGENTS_TEMP_JWT_PRIVATE_KEY=${privateKeyBase64}`);
221
- if (!publicKeyFound) lines.push(`INKEEP_AGENTS_TEMP_JWT_PUBLIC_KEY=${publicKeyBase64}`);
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
- lines[i] = `${varName}=${generate()}`;
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
- lines[i] = `${varName}=${generate()}`;
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
- lines.push(`${varName}=${generate()}`);
276
+ const value = generate();
277
+ lines.push(`${varName}=${value}`);
278
+ process.env[varName] = value;
265
279
  modified = true;
266
280
  }
267
281
  }