@gitgov/core 1.6.3 → 1.6.4

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
@@ -6530,6 +6530,15 @@ var project_adapter_exports = {};
6530
6530
  __export(project_adapter_exports, {
6531
6531
  ProjectAdapter: () => ProjectAdapter
6532
6532
  });
6533
+
6534
+ // src/utils/esm_helper.ts
6535
+ function getImportMetaUrl() {
6536
+ try {
6537
+ return import.meta.url;
6538
+ } catch {
6539
+ return null;
6540
+ }
6541
+ }
6533
6542
  var ProjectAdapter = class {
6534
6543
  identityAdapter;
6535
6544
  backlogAdapter;
@@ -6822,14 +6831,6 @@ var ProjectAdapter = class {
6822
6831
  }
6823
6832
  }
6824
6833
  async copyAgentPrompt(gitgovPath) {
6825
- function getImportMetaUrl() {
6826
- try {
6827
- const getUrl = new Function("return import.meta.url");
6828
- return getUrl();
6829
- } catch {
6830
- return null;
6831
- }
6832
- }
6833
6834
  const targetPrompt = pathUtils.join(gitgovPath, "gitgov");
6834
6835
  const potentialSources = [];
6835
6836
  potentialSources.push(
@@ -6841,9 +6842,8 @@ var ProjectAdapter = class {
6841
6842
  const require2 = createRequire(metaUrl);
6842
6843
  const pkgJsonPath = require2.resolve("@gitgov/core/package.json");
6843
6844
  const pkgRoot = pathUtils.dirname(pkgJsonPath);
6844
- potentialSources.push(
6845
- pathUtils.join(pkgRoot, "prompts/gitgov_agent_prompt.md")
6846
- );
6845
+ const promptPath = pathUtils.join(pkgRoot, "prompts/gitgov_agent_prompt.md");
6846
+ potentialSources.push(promptPath);
6847
6847
  }
6848
6848
  } catch {
6849
6849
  }
@@ -6852,9 +6852,8 @@ var ProjectAdapter = class {
6852
6852
  if (metaUrl) {
6853
6853
  const __filename = fileURLToPath(metaUrl);
6854
6854
  const __dirname = pathUtils.dirname(__filename);
6855
- potentialSources.push(
6856
- pathUtils.resolve(__dirname, "../../prompts/gitgov_agent_prompt.md")
6857
- );
6855
+ const promptPath = pathUtils.resolve(__dirname, "../../prompts/gitgov_agent_prompt.md");
6856
+ potentialSources.push(promptPath);
6858
6857
  }
6859
6858
  } catch {
6860
6859
  }