@gitgov/core 1.6.1 → 1.6.2

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/src/index.js CHANGED
@@ -6,7 +6,6 @@ import * as yaml from 'js-yaml';
6
6
  import { generateKeyPair, createHash, sign, verify } from 'crypto';
7
7
  import { promisify } from 'util';
8
8
  import * as path from 'path';
9
- import { fileURLToPath } from 'url';
10
9
  import { EventEmitter } from 'events';
11
10
 
12
11
  var __defProp = Object.defineProperty;
@@ -6529,8 +6528,6 @@ var project_adapter_exports = {};
6529
6528
  __export(project_adapter_exports, {
6530
6529
  ProjectAdapter: () => ProjectAdapter
6531
6530
  });
6532
- var __filename = fileURLToPath(import.meta.url);
6533
- var __dirname = path.dirname(__filename);
6534
6531
  var ProjectAdapter = class {
6535
6532
  identityAdapter;
6536
6533
  backlogAdapter;
@@ -6825,9 +6822,14 @@ var ProjectAdapter = class {
6825
6822
  async copyAgentPrompt(gitgovPath) {
6826
6823
  const targetPrompt = path.join(gitgovPath, "gitgov");
6827
6824
  const potentialSources = [
6828
- path.join(ConfigManager.findProjectRoot() || process.cwd(), "docs/gitgov_agent_prompt.md"),
6829
- path.join(__dirname, "../../prompts/gitgov_agent_prompt.md")
6825
+ path.join(ConfigManager.findProjectRoot() || process.cwd(), "docs/gitgov_agent_prompt.md")
6830
6826
  ];
6827
+ try {
6828
+ if (typeof __dirname !== "undefined") {
6829
+ potentialSources.push(path.join(__dirname, "../../prompts/gitgov_agent_prompt.md"));
6830
+ }
6831
+ } catch {
6832
+ }
6831
6833
  for (const sourcePrompt of potentialSources) {
6832
6834
  try {
6833
6835
  await promises.access(sourcePrompt);