@tarcisiopgs/lisa 1.1.0 → 1.2.1

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 +24 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -638,9 +638,11 @@ ${readmeBlock}${hookBlock}
638
638
  {
639
639
  "repoPath": "<absolute path to the chosen repo>",
640
640
  "branch": "<your English branch name>",
641
- "prTitle": "<PR title in English, conventional commit format>"
641
+ "prTitle": "<PR title in English, conventional commit format>",
642
+ "prBody": "<markdown-formatted English summary>"
642
643
  }
643
644
  \`\`\`
645
+ The \`prBody\` MUST use markdown formatting. Use bullet points (\`-\`) to list key changes, and optionally bold (\`**text**\`) for emphasis. Do NOT write a wall of text \u2014 structure the summary as a bulleted list. Describe WHAT was changed and WHY, mentioning key files modified, new behavior added, or bugs fixed. Write in English.
644
646
  Do NOT commit this file.
645
647
 
646
648
  ## Rules
@@ -699,8 +701,9 @@ ${testBlock}${readmeBlock}${hookBlock}
699
701
 
700
702
  4. **Write manifest**: Create \`.lisa-manifest.json\` in the **current directory** with JSON:
701
703
  \`\`\`json
702
- {"branch": "<final English branch name>", "prTitle": "<English PR title, conventional commit format>"}
704
+ {"branch": "<final English branch name>", "prTitle": "<English PR title, conventional commit format>", "prBody": "<markdown-formatted English summary>"}
703
705
  \`\`\`
706
+ The \`prBody\` MUST use markdown formatting. Use bullet points (\`-\`) to list key changes, and optionally bold (\`**text**\`) for emphasis. Do NOT write a wall of text \u2014 structure the summary as a bulleted list. Describe WHAT was changed and WHY, mentioning key files modified, new behavior added, or bugs fixed. Write in English.
704
707
  Do NOT commit this file.
705
708
 
706
709
  ## Rules
@@ -768,8 +771,9 @@ ${testBlock}${readmeBlock}${hookBlock}
768
771
 
769
772
  6. **Write manifest**: Before finishing, create \`${manifestPath}\` with JSON:
770
773
  \`\`\`json
771
- {"repoPath": "<absolute path to this repo>", "branch": "<branch name>", "prTitle": "<English PR title, conventional commit format>"}
774
+ {"repoPath": "<absolute path to this repo>", "branch": "<branch name>", "prTitle": "<English PR title, conventional commit format>", "prBody": "<markdown-formatted English summary>"}
772
775
  \`\`\`
776
+ The \`prBody\` MUST use markdown formatting. Use bullet points (\`-\`) to list key changes, and optionally bold (\`**text**\`) for emphasis. Do NOT write a wall of text \u2014 structure the summary as a bulleted list. Describe WHAT was changed and WHY, mentioning key files modified, new behavior added, or bugs fixed. Write in English.
773
777
  Do NOT commit this file.
774
778
 
775
779
  ## Rules
@@ -1895,10 +1899,17 @@ function resolveModels(config2) {
1895
1899
  if (config2.models && config2.models.length > 0) return config2.models;
1896
1900
  return [config2.provider];
1897
1901
  }
1898
- function buildPrBody(issue, providerUsed) {
1899
- return `Closes ${issue.url}
1900
-
1901
- Implemented by [lisa](https://github.com/tarcisiopgs/lisa) using **${providerUsed}**.`;
1902
+ function buildPrBody(providerUsed, description) {
1903
+ const lines = [];
1904
+ if (description) {
1905
+ lines.push("## Summary", "", description, "");
1906
+ }
1907
+ lines.push(
1908
+ "---",
1909
+ "",
1910
+ `Implemented by [lisa](https://github.com/tarcisiopgs/lisa) using **${providerUsed}**.`
1911
+ );
1912
+ return lines.join("\n");
1902
1913
  }
1903
1914
  var PR_TITLE_FILE = ".pr-title";
1904
1915
  function readPrTitle(cwd) {
@@ -2390,6 +2401,7 @@ ${result.output}
2390
2401
  }
2391
2402
  startSpinner(`${issue.id} \u2014 creating PR...`);
2392
2403
  const prTitle = manifest?.prTitle ?? readPrTitle(worktreePath) ?? issue.title;
2404
+ const prBody = manifest?.prBody;
2393
2405
  cleanupPrTitle(worktreePath);
2394
2406
  cleanupManifest(worktreePath);
2395
2407
  const prUrls = [];
@@ -2402,7 +2414,7 @@ ${result.output}
2402
2414
  head: effectiveBranch,
2403
2415
  base: defaultBranch,
2404
2416
  title: prTitle,
2405
- body: buildPrBody(issue, result.providerUsed)
2417
+ body: buildPrBody(result.providerUsed, prBody)
2406
2418
  },
2407
2419
  config2.github
2408
2420
  );
@@ -2493,6 +2505,7 @@ ${result.output}
2493
2505
  }
2494
2506
  startSpinner(`${issue.id} \u2014 creating PR...`);
2495
2507
  const prTitle = manifest.prTitle ?? issue.title;
2508
+ const prBody = manifest.prBody;
2496
2509
  const prUrls = [];
2497
2510
  try {
2498
2511
  const repoInfo = await getRepoInfo(effectiveCwd);
@@ -2503,7 +2516,7 @@ ${result.output}
2503
2516
  head: manifest.branch,
2504
2517
  base: baseBranch,
2505
2518
  title: prTitle,
2506
- body: buildPrBody(issue, result.providerUsed)
2519
+ body: buildPrBody(result.providerUsed, prBody)
2507
2520
  },
2508
2521
  config2.github
2509
2522
  );
@@ -2605,6 +2618,7 @@ ${result.output}
2605
2618
  }
2606
2619
  startSpinner(`${issue.id} \u2014 creating PR...`);
2607
2620
  const prTitle = manifest?.prTitle ?? readPrTitle(workspace) ?? issue.title;
2621
+ const prBody = manifest?.prBody;
2608
2622
  cleanupPrTitle(workspace);
2609
2623
  const prUrls = [];
2610
2624
  for (const { repoPath, branch } of detected) {
@@ -2619,7 +2633,7 @@ ${result.output}
2619
2633
  head: branch,
2620
2634
  base: baseBranch,
2621
2635
  title: prTitle,
2622
- body: buildPrBody(issue, result.providerUsed)
2636
+ body: buildPrBody(result.providerUsed, prBody)
2623
2637
  },
2624
2638
  config2.github
2625
2639
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarcisiopgs/lisa",
3
- "version": "1.1.0",
3
+ "version": "1.2.1",
4
4
  "description": "Deterministic autonomous issue resolver — structured AI agent loop for Linear/Trello",
5
5
  "license": "MIT",
6
6
  "type": "module",