@inkeep/agents-core 0.0.0-dev-20260309173106 → 0.0.0-dev-20260309194303

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 hono3 from "hono";
1
+ import * as hono0 from "hono";
2
2
 
3
3
  //#region src/middleware/no-auth.d.ts
4
- declare const noAuth: () => hono3.MiddlewareHandler<any, string, {}, Response>;
4
+ declare const noAuth: () => hono0.MiddlewareHandler<any, string, {}, Response>;
5
5
  //#endregion
6
6
  export { noAuth };
@@ -353,7 +353,11 @@ async function runMigrations(config) {
353
353
  return;
354
354
  }
355
355
  logInfo(isFirstRun ? "Fresh install detected - running migrations only" : "Running migrations...");
356
- const [manageResult, runResult] = await Promise.allSettled([execAsync(config.manageMigrateCommand), execAsync(config.runMigrateCommand)]);
356
+ const execOpts = {
357
+ cwd: process.cwd(),
358
+ env: process.env
359
+ };
360
+ const [manageResult, runResult] = await Promise.allSettled([execAsync(config.manageMigrateCommand, execOpts), execAsync(config.runMigrateCommand, execOpts)]);
357
361
  if (manageResult.status === "fulfilled") logSuccess("Manage database migrations completed");
358
362
  else logWarning(`Manage migrations failed: ${manageResult.reason.message}`);
359
363
  if (runResult.status === "fulfilled") logSuccess("Runtime database migrations completed");
@@ -436,7 +440,8 @@ async function startServersIfNeeded(config) {
436
440
  const proc = spawn("sh", ["-c", config.devUiCommand], {
437
441
  stdio: "ignore",
438
442
  detached: true,
439
- cwd: process.cwd()
443
+ cwd: process.cwd(),
444
+ env: process.env
440
445
  });
441
446
  proc.unref();
442
447
  result.startedUi = true;
@@ -485,12 +490,18 @@ async function pushProject(pushConfig) {
485
490
  INKEEP_TENANT_ID: process.env.INKEEP_TENANT_ID || "default"
486
491
  } : { ...process.env };
487
492
  try {
488
- const { stdout } = await execAsync(`pnpm inkeep push --project ${pushConfig.projectPath} --config ${pushConfig.configPath}`, { env: pushEnv });
493
+ const { stdout } = await execAsync(`pnpm inkeep push --project ${pushConfig.projectPath} --config ${pushConfig.configPath}`, {
494
+ env: pushEnv,
495
+ cwd: process.cwd()
496
+ });
489
497
  if (stdout) console.log(`${colors.dim}${stdout.trim()}${colors.reset}`);
490
498
  logSuccess("Project pushed successfully");
491
499
  return true;
492
500
  } catch (error) {
493
501
  logError("Project push failed", error);
502
+ const err = error;
503
+ if (err.stdout?.trim()) console.error(`${colors.dim} stdout:\n${err.stdout.trim()}${colors.reset}`);
504
+ if (err.stderr?.trim()) console.error(`${colors.dim} stderr:\n${err.stderr.trim()}${colors.reset}`);
494
505
  logWarning("The project may not have been seeded. You can manually run:");
495
506
  logInfo(` pnpm inkeep push --project ${pushConfig.projectPath} --config ${pushConfig.configPath}`);
496
507
  return false;
@@ -32,8 +32,8 @@ declare const BranchNameParamsSchema: z.ZodObject<{
32
32
  }, z.core.$strip>;
33
33
  declare const ResolvedRefSchema: z.ZodObject<{
34
34
  type: z.ZodEnum<{
35
- commit: "commit";
36
35
  tag: "tag";
36
+ commit: "commit";
37
37
  branch: "branch";
38
38
  }>;
39
39
  name: z.ZodString;