@staff0rd/assist 0.160.0 → 0.161.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.
Files changed (2) hide show
  1. package/dist/index.js +15 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { Command } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@staff0rd/assist",
9
- version: "0.160.0",
9
+ version: "0.161.0",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -337,6 +337,18 @@ function printVerboseDetails(item) {
337
337
  // src/commands/backlog/run.ts
338
338
  import chalk8 from "chalk";
339
339
 
340
+ // src/commands/backlog/buildCommentLines.ts
341
+ function buildCommentLines(comments2) {
342
+ if (!comments2?.length) return [];
343
+ return ["", "Comments:", ...comments2.map(formatPromptComment)];
344
+ }
345
+ function formatPromptComment(entry) {
346
+ const tag = entry.type === "summary" ? "[summary]" : "[comment]";
347
+ const phase = entry.phase !== void 0 ? ` (phase ${entry.phase + 1})` : "";
348
+ return `${tag}${phase} ${entry.timestamp}
349
+ ${entry.text}`;
350
+ }
351
+
340
352
  // src/commands/backlog/buildAuthoredPhasePrompt.ts
341
353
  function buildAuthoredPhasePrompt(item, phaseIndex, phase) {
342
354
  const manualChecks = phase.manualChecks ?? [];
@@ -349,7 +361,6 @@ function buildAuthoredPhasePrompt(item, phaseIndex, phase) {
349
361
  "When you have completed all tasks for this phase, run /verify to check your work.",
350
362
  ...buildManualCheckLines(manualChecks),
351
363
  "",
352
- `You can run \`assist backlog comments ${item.id}\` to read prior phase notes and comments.`,
353
364
  `Post concise comments for any notable findings or changes using \`assist backlog comment ${item.id} "<text>"\`.`,
354
365
  "",
355
366
  `Once verify passes${confirmSuffix}, run: assist backlog phase-done ${item.id} ${phaseIndex} "<summary>"`,
@@ -365,6 +376,7 @@ function buildContextLines(item, phaseIndex, phase) {
365
376
  "",
366
377
  "Acceptance criteria:",
367
378
  ac,
379
+ ...buildCommentLines(item.comments),
368
380
  "",
369
381
  `Phase ${phaseIndex + 1}: ${phase.name}`,
370
382
  "Tasks:",
@@ -403,10 +415,10 @@ function buildReviewPrompt(item, phaseIndex) {
403
415
  "For each criterion, inspect the code and report PASS or FAIL with a brief explanation:",
404
416
  "",
405
417
  acLines,
418
+ ...buildCommentLines(item.comments),
406
419
  "",
407
420
  "If any criterion fails, fix the issue and re-verify before proceeding.",
408
421
  "",
409
- `You can run \`assist backlog comments ${item.id}\` to read prior phase notes and comments.`,
410
422
  `Post concise comments for any notable findings or changes using \`assist backlog comment ${item.id} "<text>"\`.`,
411
423
  "",
412
424
  "After all criteria pass, ask the user to confirm any manual checks",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.160.0",
3
+ "version": "0.161.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {