@kody-ade/kody-engine-lite 0.1.2 → 0.1.3

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.
Files changed (2) hide show
  1. package/dist/bin/cli.js +10 -9
  2. package/package.json +1 -1
package/dist/bin/cli.js CHANGED
@@ -267,16 +267,17 @@ var init_config = __esm({
267
267
  import * as fs3 from "fs";
268
268
  import * as path3 from "path";
269
269
  function readPromptFile(stageName) {
270
- const promptPath = path3.resolve(
271
- new URL(".", import.meta.url).pathname,
272
- "..",
273
- "prompts",
274
- `${stageName}.md`
275
- );
276
- if (!fs3.existsSync(promptPath)) {
277
- throw new Error(`Prompt file not found: ${promptPath}`);
270
+ const scriptDir = new URL(".", import.meta.url).pathname;
271
+ const candidates = [
272
+ path3.resolve(scriptDir, "..", "prompts", `${stageName}.md`),
273
+ path3.resolve(scriptDir, "..", "..", "prompts", `${stageName}.md`)
274
+ ];
275
+ for (const candidate of candidates) {
276
+ if (fs3.existsSync(candidate)) {
277
+ return fs3.readFileSync(candidate, "utf-8");
278
+ }
278
279
  }
279
- return fs3.readFileSync(promptPath, "utf-8");
280
+ throw new Error(`Prompt file not found: tried ${candidates.join(", ")}`);
280
281
  }
281
282
  function injectTaskContext(prompt, taskId, taskDir) {
282
283
  let context = `## Task Context
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine-lite",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Autonomous SDLC pipeline: Kody orchestration + Claude Code + LiteLLM",
5
5
  "license": "MIT",
6
6
  "type": "module",