@vfarcic/dot-ai 0.74.0 → 0.75.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.
@@ -1 +1 @@
1
- {"version":3,"file":"shared-prompt-loader.d.ts","sourceRoot":"","sources":["../../src/core/shared-prompt-loader.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH;;GAEG;AACH,wBAAgB,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GAAG,MAAM,CAe7F"}
1
+ {"version":3,"file":"shared-prompt-loader.d.ts","sourceRoot":"","sources":["../../src/core/shared-prompt-loader.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH;;GAEG;AACH,wBAAgB,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GAAG,MAAM,CAiB7F"}
@@ -49,7 +49,9 @@ const path = __importStar(require("path"));
49
49
  */
50
50
  function loadPrompt(promptName, variables = {}) {
51
51
  try {
52
- const promptPath = path.join(process.cwd(), 'prompts', `${promptName}.md`);
52
+ // Use __dirname to resolve paths relative to the module location
53
+ // This works both locally and when installed as an npm package
54
+ const promptPath = path.join(__dirname, '..', '..', 'prompts', `${promptName}.md`);
53
55
  let template = fs.readFileSync(promptPath, 'utf8');
54
56
  // Replace template variables
55
57
  for (const [key, value] of Object.entries(variables)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vfarcic/dot-ai",
3
- "version": "0.74.0",
3
+ "version": "0.75.0",
4
4
  "description": "AI-powered development productivity platform that enhances software development workflows through intelligent automation and AI-driven assistance",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",