chatroom-cli 1.80.0 → 1.80.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.
package/dist/index.js CHANGED
@@ -77151,10 +77151,24 @@ function getFileReferenceProofOfCompletionExample() {
77151
77151
  - \`apps/webapp/src/path/to/file.ts\` — <what changed and why>`;
77152
77152
  }
77153
77153
 
77154
+ // ../../services/backend/prompts/utils/handoff-section-guidance.ts
77155
+ function getHandoffNotApplicableSectionComment(context5) {
77156
+ return `<!-- REQUIRED. ${context5}, or write exactly "${HANDOFF_NOT_APPLICABLE_EXACT_TEXT}" with no explanation. Do not omit this section. -->`;
77157
+ }
77158
+ function getHandoffReportTemplateIntro(templateLabel) {
77159
+ return `**${templateLabel}** — complete every section below. Do not omit sections, principles, or XML wrappers:
77160
+
77161
+ When a section has no content, write exactly \`${HANDOFF_NOT_APPLICABLE_EXACT_TEXT}\` — no explanation, no em-dash, no additional text.`;
77162
+ }
77163
+ function getDelegationBriefIntro() {
77164
+ return `**Delegation Brief (Planner → Builder)** — paste into the handoff message. Include every field that applies. **Omit fields that do not apply** — do not write \`Not Applicable\` as filler.`;
77165
+ }
77166
+ var HANDOFF_NOT_APPLICABLE_EXACT_TEXT = "Not Applicable.";
77167
+
77154
77168
  // ../../services/backend/prompts/utils/handoff-quality-principles.ts
77155
77169
  function getHandoffQualityPrinciplesTemplateBlock() {
77156
77170
  const lines = HANDOFF_QUALITY_PRINCIPLES.flatMap((p) => [
77157
- `- **${p.name}:** <how this work demonstrates ${p.name.toLowerCase()}, or Not Applicable>`,
77171
+ `- **${p.name}:** <how this work demonstrates ${p.name.toLowerCase()}, or exactly "${HANDOFF_NOT_APPLICABLE_EXACT_TEXT}">`,
77158
77172
  `<!-- ${p.name}: ${p.description} -->`,
77159
77173
  ""
77160
77174
  ]);
@@ -77166,7 +77180,7 @@ function getHandoffQualityPrinciplesSectionBlock() {
77166
77180
  ${PROOF_OF_PRINCIPLES_MANDATORY_COMMENT}
77167
77181
  ${getHandoffQualityPrinciplesTemplateBlock()}`;
77168
77182
  }
77169
- var HANDOFF_QUALITY_PRINCIPLES, PROOF_OF_PRINCIPLES_HEADING_H2 = "## Proof of Principles", PROOF_OF_PRINCIPLES_MANDATORY_COMMENT = '<!-- REQUIRED: Complete every principle below. Write an explanation or "Not Applicable" for each — do not omit this section or skip any principle bullet. -->';
77183
+ var HANDOFF_QUALITY_PRINCIPLES, PROOF_OF_PRINCIPLES_HEADING_H2 = "## Proof of Principles", PROOF_OF_PRINCIPLES_MANDATORY_COMMENT;
77170
77184
  var init_handoff_quality_principles = __esm(() => {
77171
77185
  HANDOFF_QUALITY_PRINCIPLES = [
77172
77186
  {
@@ -77194,16 +77208,9 @@ var init_handoff_quality_principles = __esm(() => {
77194
77208
  description: "leave the code in a slightly better state than before when touching files."
77195
77209
  }
77196
77210
  ];
77211
+ PROOF_OF_PRINCIPLES_MANDATORY_COMMENT = `<!-- REQUIRED: Complete every principle below. Write an explanation for each, or write exactly "${HANDOFF_NOT_APPLICABLE_EXACT_TEXT}" with no explanation when the principle does not apply — do not omit this section or skip any principle bullet. -->`;
77197
77212
  });
77198
77213
 
77199
- // ../../services/backend/prompts/utils/handoff-section-guidance.ts
77200
- function getHandoffReportTemplateIntro(templateLabel) {
77201
- return `**${templateLabel}** — complete every section below. Do not omit sections, principles, or XML wrappers:`;
77202
- }
77203
- function getDelegationBriefIntro() {
77204
- return `**Delegation Brief (Planner → Builder)** — paste into the handoff message. Include every field that applies. **Omit fields that do not apply** — do not write \`Not Applicable\` as filler.`;
77205
- }
77206
-
77207
77214
  // ../../services/backend/prompts/cli/role-guidance/command.ts
77208
77215
  function roleGuidanceCommand(params = {}) {
77209
77216
  const prefix = params.cliEnvPrefix ?? "";
@@ -77249,11 +77256,11 @@ ${getFileReferenceProofOfCompletionExample()}
77249
77256
  ${CODE_CHANGE_VERIFICATION_CONFIRMATION}
77250
77257
 
77251
77258
  ## Blockers / questions
77252
- <!-- REQUIRED. List blockers, or write "Not Applicable". Do not omit this section. -->
77259
+ ${getHandoffNotApplicableSectionComment("List blockers")}
77253
77260
  <anything needing planner decision>
77254
77261
 
77255
77262
  ## Notes for review
77256
- <!-- REQUIRED. List review notes, or write "Not Applicable". Do not omit this section. -->
77263
+ ${getHandoffNotApplicableSectionComment("List review notes")}
77257
77264
  <specific areas for planner to check>
77258
77265
  \`\`\``;
77259
77266
  }
@@ -77456,7 +77463,7 @@ function getHandoffSeverityGuidanceBlock() {
77456
77463
  // ../../services/backend/prompts/utils/unresolved-decisions.ts
77457
77464
  function getUnresolvedDecisionsSectionBlock() {
77458
77465
  return `## Unresolved Decisions
77459
- <!-- REQUIRED. List open decisions needing user input, or write "Not Applicable" if none. Do not omit this section. -->
77466
+ ${getHandoffNotApplicableSectionComment("List open decisions needing user input if none")}
77460
77467
  ${getHandoffSeverityGuidanceBlock()}
77461
77468
  - <decision or question — options considered, recommendation if any>
77462
77469
  <Carry forward decisions still open from earlier handoffs in this chatroom. Remove items the user has resolved. Do not decide on the user's behalf unless they explicitly asked you to.>`;
@@ -77481,7 +77488,7 @@ function getHandoffReportTemplateBody(roleGuidanceContext) {
77481
77488
  ${getRoleGuidanceDisclosureBlock(roleGuidanceContext)}
77482
77489
 
77483
77490
  ## Proof of Planning
77484
- <!-- REQUIRED. List planning steps, or write "Not Applicable" for trivial single-step tasks. Do not omit this section. -->
77491
+ ${getHandoffNotApplicableSectionComment("List planning steps for trivial single-step tasks")}
77485
77492
  - <step 1: concrete artifact or outcome>
77486
77493
  - <step 2: concrete artifact or outcome>
77487
77494
 
@@ -77493,11 +77500,11 @@ ${getFileReferenceProofOfCompletionExample()}
77493
77500
  <evidence the goal was met — list every file you (or the builder) modified>
77494
77501
 
77495
77502
  ## Backlog Tasks Implemented
77496
- <!-- REQUIRED. List backlog items addressed, or write "Not Applicable" if none were in scope. Do not omit this section. -->
77503
+ ${getHandoffNotApplicableSectionComment("List backlog items addressed if none were in scope")}
77497
77504
  - \`backlog-item-id\` — <backlog item title/summary and how this work addresses it>
77498
77505
 
77499
77506
  ## Backlog Pending User Review Confirmation
77500
- <!-- REQUIRED. Complete the attestation, or write "Not Applicable" if no backlog items apply. Do not omit this section. -->
77507
+ ${getHandoffNotApplicableSectionComment("Complete the attestation if no backlog items apply")}
77501
77508
  - [ ] I confirm that every backlog item implemented in this work has been moved to \`pending_user_review\` via \`chatroom backlog mark-for-review\` after the feature was verified end-to-end and a PR was raised for user review
77502
77509
  - PR URL(s): <link to PR(s)>
77503
77510
 
@@ -77507,19 +77514,19 @@ ${CODE_CHANGE_VERIFICATION_CONFIRMATION}
77507
77514
 
77508
77515
  <handoff-direction>
77509
77516
  ## What exists today
77510
- <!-- REQUIRED. Describe current state after this work, or write "Not Applicable". Do not omit this section. -->
77517
+ ${getHandoffNotApplicableSectionComment("Describe current state after this work")}
77511
77518
  <current state after this work — what the user can now do, what is in place, how the system behaves>
77512
77519
 
77513
77520
  ## Key Technical Decisions
77514
- <!-- REQUIRED. List decisions, or write "Not Applicable". Do not omit this section. -->
77521
+ ${getHandoffNotApplicableSectionComment("List decisions")}
77515
77522
  - <schema design, modules, interfaces, domain entities — what you chose and why>
77516
77523
 
77517
77524
  ## Key Tradeoffs
77518
- <!-- REQUIRED. List tradeoffs, or write "Not Applicable". Do not omit this section. -->
77525
+ ${getHandoffNotApplicableSectionComment("List tradeoffs")}
77519
77526
  - <what was weighed against what, and why you chose this path>
77520
77527
 
77521
77528
  ## System Design
77522
- <!-- REQUIRED. Include a mermaid diagram when the change has non-trivial structure, or write "Not Applicable". Do not omit this section. -->
77529
+ ${getHandoffNotApplicableSectionComment("Include a mermaid diagram when the change has non-trivial structure")}
77523
77530
 
77524
77531
  \`\`\`mermaid
77525
77532
  flowchart TD
@@ -77529,20 +77536,20 @@ flowchart TD
77529
77536
 
77530
77537
  <handoff-notes>
77531
77538
  ## Notes
77532
- <!-- REQUIRED. Write notes, or "Not Applicable" if none. Do not omit this section. -->
77539
+ ${getHandoffNotApplicableSectionComment("Write notes if none")}
77533
77540
  <anything the user should know — context, caveats, or observations not covered above>
77534
77541
  </handoff-notes>
77535
77542
 
77536
77543
  <handoff-action>
77537
77544
  ## Tech Debt Observed
77538
- <!-- REQUIRED. List tech debt, or write "Not Applicable". Do not omit this section. -->
77545
+ ${getHandoffNotApplicableSectionComment("List tech debt")}
77539
77546
  ${getHandoffSeverityGuidanceBlock()}
77540
77547
  - <issues noticed but intentionally left out of scope of this change>
77541
77548
 
77542
77549
  ${getUnresolvedDecisionsSectionBlock()}
77543
77550
 
77544
77551
  ## Manual steps
77545
- <!-- REQUIRED. List manual steps outside the system, or write "Not Applicable". Do not omit this section. -->
77552
+ ${getHandoffNotApplicableSectionComment("List manual steps outside the system")}
77546
77553
  <steps the user must take outside the system — deploy, configure credentials, run commands, verify in production, etc.>
77547
77554
  </handoff-action>`;
77548
77555
  }
@@ -114170,4 +114177,4 @@ program2.hook("preAction", async (_thisCommand, actionCommand) => {
114170
114177
  });
114171
114178
  program2.parse();
114172
114179
 
114173
- //# debugId=FA1D1FFEF43110F164756E2164756E21
114180
+ //# debugId=DFC337C81483539964756E2164756E21