@vfarcic/dot-ai 0.73.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,
|
|
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
|
-
|
|
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.
|
|
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",
|
|
@@ -83,11 +83,11 @@
|
|
|
83
83
|
"typescript": "^5.0.0"
|
|
84
84
|
},
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"@anthropic-ai/sdk": "^0.
|
|
86
|
+
"@anthropic-ai/sdk": "^0.60.0",
|
|
87
87
|
"@kubernetes/client-node": "^1.3.0",
|
|
88
88
|
"@modelcontextprotocol/sdk": "^1.13.2",
|
|
89
89
|
"@qdrant/js-client-rest": "^1.15.0",
|
|
90
|
-
"@vfarcic/dot-ai": "^0.
|
|
90
|
+
"@vfarcic/dot-ai": "^0.73.0",
|
|
91
91
|
"glob": "^11.0.3",
|
|
92
92
|
"openai": "^5.11.0",
|
|
93
93
|
"yaml": "^2.8.0"
|