llm-party-cli 0.3.7 → 0.3.8

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/index.js +4 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -77441,13 +77441,14 @@ async function bootApp(appRoot, renderer, root) {
77441
77441
  ---
77442
77442
 
77443
77443
  ` + artifactsPrompt;
77444
- const resolveFromAppRoot = (value) => {
77445
- return path11.isAbsolute(value) ? value : path11.resolve(appRoot, value);
77444
+ const configDir = path11.dirname(configPath);
77445
+ const resolveFromConfig = (value) => {
77446
+ return path11.isAbsolute(value) ? value : path11.resolve(configDir, value);
77446
77447
  };
77447
77448
  const adapters = await Promise.all(config.agents.map(async (agent, _index, allAgents) => {
77448
77449
  const promptParts = [mergedBase];
77449
77450
  if (agent.prompts && agent.prompts.length > 0) {
77450
- const extraPaths = agent.prompts.map((p2) => resolveFromAppRoot(p2));
77451
+ const extraPaths = agent.prompts.map((p2) => resolveFromConfig(p2));
77451
77452
  const extraParts = await Promise.all(extraPaths.map((p2) => readFile5(p2, "utf8")));
77452
77453
  promptParts.push(...extraParts);
77453
77454
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "llm-party-cli",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "llm-party": "dist/index.js"