@gitgov/core 1.6.0 → 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
@@ -6822,9 +6822,14 @@ var ProjectAdapter = class {
6822
6822
  async copyAgentPrompt(gitgovPath) {
6823
6823
  const targetPrompt = path.join(gitgovPath, "gitgov");
6824
6824
  const potentialSources = [
6825
- path.join(ConfigManager.findProjectRoot() || process.cwd(), "docs/gitgov_agent_prompt.md"),
6826
- path.join(__dirname, "../../prompts/gitgov_agent_prompt.md")
6825
+ path.join(ConfigManager.findProjectRoot() || process.cwd(), "docs/gitgov_agent_prompt.md")
6827
6826
  ];
6827
+ try {
6828
+ if (typeof __dirname !== "undefined") {
6829
+ potentialSources.push(path.join(__dirname, "../../prompts/gitgov_agent_prompt.md"));
6830
+ }
6831
+ } catch {
6832
+ }
6828
6833
  for (const sourcePrompt of potentialSources) {
6829
6834
  try {
6830
6835
  await promises.access(sourcePrompt);