agentv 0.14.2 → 0.15.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.
@@ -40474,7 +40474,15 @@ async function initCommand(options = {}) {
40474
40474
  const githubTemplates = TemplateManager.getGithubTemplates();
40475
40475
  const agentvTemplates = TemplateManager.getAgentvTemplates();
40476
40476
  const claudeTemplates = TemplateManager.getClaudeTemplates();
40477
+ const envTemplate = agentvTemplates.find((t) => t.path === ".env.template");
40478
+ const otherAgentvTemplates = agentvTemplates.filter((t) => t.path !== ".env.template");
40477
40479
  const existingFiles = [];
40480
+ if (envTemplate) {
40481
+ const envFilePath = path21.join(targetPath, ".env.template");
40482
+ if (existsSync(envFilePath)) {
40483
+ existingFiles.push(".env.template");
40484
+ }
40485
+ }
40478
40486
  if (existsSync(githubDir)) {
40479
40487
  for (const template of githubTemplates) {
40480
40488
  const targetFilePath = path21.join(githubDir, template.path);
@@ -40484,7 +40492,7 @@ async function initCommand(options = {}) {
40484
40492
  }
40485
40493
  }
40486
40494
  if (existsSync(agentvDir)) {
40487
- for (const template of agentvTemplates) {
40495
+ for (const template of otherAgentvTemplates) {
40488
40496
  const targetFilePath = path21.join(agentvDir, template.path);
40489
40497
  if (existsSync(targetFilePath)) {
40490
40498
  existingFiles.push(path21.relative(targetPath, targetFilePath));
@@ -40519,6 +40527,11 @@ async function initCommand(options = {}) {
40519
40527
  if (!existsSync(claudeDir)) {
40520
40528
  mkdirSync(claudeDir, { recursive: true });
40521
40529
  }
40530
+ if (envTemplate) {
40531
+ const envFilePath = path21.join(targetPath, ".env.template");
40532
+ writeFileSync(envFilePath, envTemplate.content, "utf-8");
40533
+ console.log("Created .env.template");
40534
+ }
40522
40535
  for (const template of githubTemplates) {
40523
40536
  const targetFilePath = path21.join(githubDir, template.path);
40524
40537
  const targetDirPath = path21.dirname(targetFilePath);
@@ -40528,7 +40541,7 @@ async function initCommand(options = {}) {
40528
40541
  writeFileSync(targetFilePath, template.content, "utf-8");
40529
40542
  console.log(`Created ${path21.relative(targetPath, targetFilePath)}`);
40530
40543
  }
40531
- for (const template of agentvTemplates) {
40544
+ for (const template of otherAgentvTemplates) {
40532
40545
  const targetFilePath = path21.join(agentvDir, template.path);
40533
40546
  const targetDirPath = path21.dirname(targetFilePath);
40534
40547
  if (!existsSync(targetDirPath)) {
@@ -40548,16 +40561,21 @@ async function initCommand(options = {}) {
40548
40561
  }
40549
40562
  console.log("\nAgentV initialized successfully!");
40550
40563
  console.log(`
40564
+ Files installed to root:`);
40565
+ if (envTemplate) {
40566
+ console.log(` - .env.template`);
40567
+ }
40568
+ console.log(`
40551
40569
  Files installed to ${path21.relative(targetPath, githubDir)}:`);
40552
40570
  githubTemplates.forEach((t) => console.log(` - ${t.path}`));
40553
40571
  console.log(`
40554
40572
  Files installed to ${path21.relative(targetPath, agentvDir)}:`);
40555
- agentvTemplates.forEach((t) => console.log(` - ${t.path}`));
40573
+ otherAgentvTemplates.forEach((t) => console.log(` - ${t.path}`));
40556
40574
  console.log(`
40557
40575
  Files installed to ${path21.relative(targetPath, claudeDir)}:`);
40558
40576
  claudeTemplates.forEach((t) => console.log(` - ${t.path}`));
40559
40577
  console.log("\nYou can now:");
40560
- console.log(" 1. Edit .agentv/.env with your API credentials");
40578
+ console.log(" 1. Copy .env.template to .env and add your API credentials");
40561
40579
  console.log(" 2. Configure targets in .agentv/targets.yaml");
40562
40580
  console.log(" 3. Create eval files using the schema and prompt templates");
40563
40581
  }
@@ -40809,4 +40827,4 @@ export {
40809
40827
  createProgram,
40810
40828
  runCli
40811
40829
  };
40812
- //# sourceMappingURL=chunk-TJ4U6A6X.js.map
40830
+ //# sourceMappingURL=chunk-LVLBPRCV.js.map