chatroom-cli 1.84.3 → 1.84.4

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
@@ -77269,45 +77269,113 @@ var init_builder_to_planner = __esm(() => {
77269
77269
  init_role_guidance_disclosure();
77270
77270
  });
77271
77271
 
77272
+ // ../../services/backend/prompts/enhancer/webapp-ux-reference.ts
77273
+ function renderWebappUxHandoffReference() {
77274
+ return [
77275
+ "### UX review checklist",
77276
+ 'Complete the optional **UX** section in your output when the planner proposes UI changes. Write exactly "Not Applicable." for non-UI tasks. Put code snippets in **Suggested edits** only.',
77277
+ "",
77278
+ "1. **Flows** — primary action ≤3 clicks? simpler path exists?",
77279
+ "2. **Patterns** — matches existing components? recommend one if multiple. mobile vs desktop (md: variants vs separate mobile UI)?",
77280
+ "3. **Layout** — compact title+menu row, description, trailing end-aligned CTA? unnecessary wrappers?",
77281
+ "4. **Shortcuts** — consistent with catalog below? gaps or conflicts?",
77282
+ "",
77283
+ "### Flow complexity",
77284
+ "- Primary action ≤3 clicks from entry point",
77285
+ "- Extend existing surfaces (palette, settings tab, row action) before new navigation",
77286
+ "- Avoid nested modal chains and unjustified multi-step wizards",
77287
+ "- Prefer inline actions over navigate-away-and-back",
77288
+ "",
77289
+ "### Presentation & responsive patterns",
77290
+ "- Reuse existing components: `CommandPalette`, industrial dialogs, `ChatroomLoader`, timeline row chrome",
77291
+ "- Match badge/button patterns from timeline (`BADGE_BASE`, `navButtonClass` in All-tab)",
77292
+ "- When multiple valid patterns exist, recommend one and explain tradeoff",
77293
+ "- **md: breakpoint** (768px) splits mobile vs desktop",
77294
+ "- **Hide/show:** `hidden md:flex` / `flex md:hidden` for alternate chrome",
77295
+ "- **Mobile overlay:** fixed sidebar overlay with backdrop (`md:hidden`)",
77296
+ "- **Separate mobile UI:** dedicated mobile modal/picker when desktop uses side panel",
77297
+ "- **Shared responsive density:** same component, `md:` size variants (`h-7 md:h-9`)",
77298
+ "- **Command dialogs:** industrial theme via `commandDialogStyles.ts`, top-anchored, max-w-[90vw]",
77299
+ "",
77300
+ "### Layout simplification",
77301
+ "- Review card/section layouts for unnecessary rows, nested wrappers, or misaligned actions",
77302
+ "- Prefer compact rows: title and overflow menu (⋮ `MoreVertical` popover) on one line via flex/grid",
77303
+ '- Description on the next line; primary CTA (e.g. "View Details") on a trailing row aligned end',
77304
+ "- Canonical simplified card pattern:",
77305
+ " ```",
77306
+ " <title> <overflow-menu ⋮>",
77307
+ " <description>",
77308
+ " <primary-cta aligned end>",
77309
+ " ```",
77310
+ "- Reuse `CardHeader` + `CardAction` grid (`grid-cols-[1fr_auto]`) or equivalent flex `justify-between`",
77311
+ "- Flag multi-row chrome that could collapse (menu on its own row, CTA left-aligned when end-aligned matches existing cards)",
77312
+ "",
77313
+ "### Keyboard shortcuts (reference)",
77314
+ "| Shortcut | Action |",
77315
+ "|----------|--------|",
77316
+ "| ⌘K / Ctrl+K | Chatroom switcher |",
77317
+ "| ⌘P / Ctrl+P | File selector |",
77318
+ "| ⌘⇧P / Ctrl+Shift+P | Command palette (scripts, saved commands) |",
77319
+ "| ⌘⇧F / Ctrl+Shift+F | Workspace search |",
77320
+ "| ⌘I / Ctrl+I | Attach explorer snippet |",
77321
+ "| Enter (desktop, no Shift) | Send message |",
77322
+ "| Shift+Enter | New line in composer |",
77323
+ "| ⌘Enter / Ctrl+Enter | Confirm/save in modals |",
77324
+ "| ⌘S / Ctrl+S | Save in workspace file dialogs |",
77325
+ "| Escape | Close modal/dialog |"
77326
+ ].join(`
77327
+ `);
77328
+ }
77329
+
77272
77330
  // ../../services/backend/prompts/utils/enhancer-feedback-template-body.ts
77273
77331
  function getEnhancerFeedbackTemplateBody() {
77274
77332
  return `<handoff-overview>
77275
77333
  ## Summary
77276
- <one paragraph: overall assessment — strengths, main risks, and whether the approach is sound>
77334
+ <overall assessment — cite specific strengths, risks, and whether the approach is sound; reference concrete elements from the check-in>
77277
77335
 
77278
77336
  ## User intent alignment
77279
- <does the planner's reading of the user request match what was asked? misreadings or missing constraints?>
77337
+ <specific misreadings or missing constraints — what the user asked vs what the planner proposed>
77280
77338
  </handoff-overview>
77281
77339
 
77282
- <!-- UI collapses proofs, direction, and notes by default; overview and action required are expanded -->
77340
+ <!-- UI collapses proofs, direction, ux, and notes by default; overview and action required are expanded -->
77283
77341
 
77284
77342
  <handoff-proofs>
77285
77343
  ## Reasoning review
77286
- <logical errors, weak inference, contradictions — challenge assumptions>
77344
+ <specific logical errors, weak inference, or contradictions — cite the claim and why it fails>
77287
77345
  </handoff-proofs>
77288
77346
 
77289
77347
  <handoff-direction>
77290
77348
  ## Alignment with eventual user handoff
77291
- <will this approach produce a credible planner→user report? what's missing for user-facing completeness?>
77349
+ <specific gaps for user-facing completeness what proof or report sections would be missing>
77292
77350
  </handoff-direction>
77293
77351
 
77352
+ <handoff-ux>
77353
+ <!-- Optional — write exactly "Not Applicable." when no UI changes are proposed -->
77354
+ <!-- When UI is proposed: specific findings tied to the planner's proposal. No code blocks (use Suggested edits). -->
77355
+ - **Flows:** <specific finding — click count, nested modals, simpler alternatives>
77356
+ - **Patterns:** <which existing pattern fits; recommend one if multiple; mobile vs desktop>
77357
+ - **Layout:** <compact rows, trailing CTAs, unnecessary wrappers>
77358
+ - **Shortcuts:** <alignment with catalog; gaps or conflicts>
77359
+ </handoff-ux>
77360
+
77294
77361
  <handoff-notes>
77295
77362
  ## Knowledge gaps
77296
- <facts, context, or research the planner should verify — advisory questions, not answers from codebase>
77363
+ <specific facts, files, or research to verify — name what to check and why>
77297
77364
  </handoff-notes>
77298
77365
 
77299
77366
  <handoff-action>
77300
77367
  ## Risks & failure modes
77301
- <what could go wrong if they proceed as planned? common pitfalls for this kind of work?>
77368
+ <specific risks tied to this plan what fails, under what conditions, and how to mitigate>
77302
77369
 
77303
- ## Questions for the planner
77304
- <specific questions they should answer before delegating not instructions disguised as questions>
77370
+ ## Recommendations
77371
+ <!-- SECOND-LAST concrete, actionable suggestions tied to the check-in. Include tradeoffs and considerations. No code blocks here (use Suggested edits for snippets). -->
77305
77372
 
77306
77373
  ## Suggested edits (remove or change only)
77307
- When you recommend removing or changing specific content in the planner's check-in (grounding, builder-handoff sections, or proposed approach), list each change here with file-level detail and code examples. **Omit this entire section** if you have no concrete removals or changes to suggest — keep other sections abstract.
77374
+ <!-- LAST proposed edits to grounding and builder-handoff. File paths and code snippets required when recommending changes. Omit entirely if none. -->
77375
+ When you recommend removing or changing specific content in the planner's check-in, list each change here with file-level detail and code examples.
77308
77376
  ${getFileReferenceGuidanceComment()}
77309
77377
 
77310
- ### <section or claim to remove or change — e.g. "builder-handoff > Files to implement" or "grounding: auth middleware claim">
77378
+ ### <section or claim to remove or change>
77311
77379
  **File:** \`apps/webapp/src/path/to/file.ts\`
77312
77380
  **Change:** <what to remove, replace, or correct and why>
77313
77381
 
@@ -77326,7 +77394,11 @@ function getEnhancerToPlannerHandoffTemplate() {
77326
77394
 
77327
77395
  ${getHandoffReportTemplateIntro("Planning Feedback (Enhancer → Planner)")}
77328
77396
 
77329
- The planner sent you three XML sections. Your job is **advisory adversarial review** — raise risks, challenge assumptions, and help the planner align with user intent. Keep most sections abstract; when you recommend removing or changing specific content, put file-level detail and code examples in **Suggested edits (remove or change only)** only. **Do not rewrite their full builder brief.** The planner makes the final call.
77397
+ The planner sent you three XML sections. Your job is **advisory adversarial review** — raise risks, challenge assumptions, align with user intent. Be **specific and targeted**: cite concrete claims, files, UX choices, and gaps from the check-in so the planner can improve the plan without re-synthesizing vague feedback.
77398
+
77399
+ Give **concrete, actionable recommendations** in every section. End with **Recommendations** (second-last: summarized suggestions, tradeoffs, and considerations) then **Suggested edits** (last: proposed edits to grounding and the builder-handoff with file paths and code snippets). For UI work, complete the optional **UX** section using the reference below. **Do not rewrite their full builder brief.** The planner makes the final call.
77400
+
77401
+ ${renderWebappUxHandoffReference()}
77330
77402
 
77331
77403
  \`\`\`markdown
77332
77404
  ${getEnhancerFeedbackTemplateBody()}
@@ -114318,4 +114390,4 @@ program2.hook("preAction", async (_thisCommand, actionCommand) => {
114318
114390
  });
114319
114391
  program2.parse();
114320
114392
 
114321
- //# debugId=F150EF2E5727967864756E2164756E21
114393
+ //# debugId=12F4187F56EA920864756E2164756E21