chatroom-cli 1.144.0 → 1.144.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 +21 -13
- package/dist/index.js.map +8 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -72963,7 +72963,7 @@ ${handoffCommand({
|
|
|
72963
72963
|
function getArchitectToEntryPointHandoffTemplate(query) {
|
|
72964
72964
|
const entryPoint = query.toRole;
|
|
72965
72965
|
const sharedContractsHeading = `## Shared contracts (${entryPoint}-owned)`;
|
|
72966
|
-
return `Instructions (not part of the message): Return exactly one recommended, evidence-backed design brief for the authoritative user request to \`${entryPoint}\`. This is an advisory handback: do not implement code, edit files, spawn subagents, present alternatives, or expand scope. The injected \`<handoff-templates>\` block is the authoritative structure for this handoff; complete every section in order. Use \`Not Applicable.\` only when a section is genuinely inapplicable, with no explanation or filler.
|
|
72966
|
+
return `Instructions (not part of the message): Return exactly one recommended, evidence-backed design brief for the authoritative user request to \`${entryPoint}\`. This is an advisory handback: do not implement code, edit files, spawn subagents, present alternatives, or expand scope. Decide every open repository technical-design decision for the development work yourself inside the one design; do not return open technical questions. List an item for the user only if it meets the escalation criteria. The injected \`<handoff-templates>\` block is the authoritative structure for this handoff; complete every section in order. Use \`Not Applicable.\` only when a section is genuinely inapplicable, with no explanation or filler.
|
|
72967
72967
|
|
|
72968
72968
|
## Summary
|
|
72969
72969
|
<describe the design problem being solved, the repository/product surface where it fits, and the evidence-backed context; do not refer to hidden session text>
|
|
@@ -73018,6 +73018,7 @@ ${sharedContractsHeading}
|
|
|
73018
73018
|
## What to avoid
|
|
73019
73019
|
- Do not implement code or edit files as the architect; this handoff is advisory only.
|
|
73020
73020
|
- Do not present alternative designs, generic advice, or requirements without concrete evidence and file-level consequences.
|
|
73021
|
+
- Do not hand the entry point a list of open technical questions: decide those that concern repository technical design for development work in the design, with the evidence you used. Escalate only an item that meets the escalation criteria, in \`## Escalation items for the user\`.
|
|
73021
73022
|
- Do not invent APIs, schema fields, query shapes, indexes, or source-of-truth locations when existing repository patterns apply.
|
|
73022
73023
|
- <explicit task-specific anti-patterns, scope boundaries, and migration/source-of-truth pitfalls>
|
|
73023
73024
|
|
|
@@ -73027,6 +73028,9 @@ ${sharedContractsHeading}
|
|
|
73027
73028
|
## Out of scope
|
|
73028
73029
|
- <explicit files, flows, behavior, or migration work the implementer must not touch>
|
|
73029
73030
|
|
|
73031
|
+
## Escalation items for the user
|
|
73032
|
+
<only items that meet the escalation criteria: (a) the request is clearly ambiguous or insufficient, and no specialist can settle the question from the request, the code, \`memory/\`, or \`docs/\`; (b) the decision involves deletion, data loss, an irreversible migration, an externally visible or production-affecting action, or spending money. For each, give the item, why it meets the criteria, the options with the consequence of each, and a recommended default. Do not list technical choices here: decide them in the design. Write exactly \`None observed.\` if no item meets the criteria>
|
|
73033
|
+
|
|
73030
73034
|
Instructions after the body (not part of the message): run the normal handoff command to \`${entryPoint}\` with the complete body above, then stop.
|
|
73031
73035
|
|
|
73032
73036
|
\`\`\`bash
|
|
@@ -73774,10 +73778,10 @@ ${handoffCommand({
|
|
|
73774
73778
|
}
|
|
73775
73779
|
function getProductManagerToEntryPointHandoffTemplate(query) {
|
|
73776
73780
|
const entryPoint = query.toRole;
|
|
73777
|
-
return `Instructions (not part of the message): Return a complete product specification for the authoritative feature request. The product manager is advisory and read-only: do not edit files, build, or implement. Base every consistency claim on the existing app behavior you inspected, citing concrete repository paths and symbols, docs, or decision records under \`memory/\`.
|
|
73781
|
+
return `Instructions (not part of the message): Return a complete product specification for the authoritative feature request. The product manager is advisory and read-only: do not edit files, build, or implement. Base every consistency claim on the existing app behavior you inspected, citing concrete repository paths and symbols, docs, or decision records under \`memory/\`. Decide every development-scope product decision yourself with a recommended default and rationale; return non-development product questions (copy, pricing, opinions, general product talk) to \`${entryPoint}\` in \`## Summary\`; list a question for the user only if it meets the escalation criteria. Begin with the \`## Summary\` section, then use the remaining sections below in order. Use \`###\` for sub-items within a section.
|
|
73778
73782
|
|
|
73779
73783
|
## Summary
|
|
73780
|
-
<state the feature, the recommended scope in two to four sentences, and whether any
|
|
73784
|
+
<state the feature, the recommended scope in two to four sentences, and whether any escalation item blocks planning>
|
|
73781
73785
|
|
|
73782
73786
|
## Problem statement
|
|
73783
73787
|
<the problem the user is trying to solve, who is affected, and the outcome they want, recovered from the request and relevant history>
|
|
@@ -73792,13 +73796,16 @@ function getProductManagerToEntryPointHandoffTemplate(query) {
|
|
|
73792
73796
|
<each excluded or deferred item with a one-line reason; write exactly \`None observed.\` if nothing is excluded>
|
|
73793
73797
|
|
|
73794
73798
|
## Consistency with existing functionality
|
|
73795
|
-
<the existing capabilities the feature must stay consistent with, with concrete paths and symbols as evidence; where the feature extends or conflicts with existing behavior, say so and
|
|
73799
|
+
<the existing capabilities the feature must stay consistent with, with concrete paths and symbols as evidence; where the feature extends or conflicts with existing behavior, say so and record each conflict as a product decision under \`## Product decisions made\`; the gaps the feature would leave if the proposed scope is not accepted>
|
|
73796
73800
|
|
|
73797
73801
|
## UI and UX review
|
|
73798
73802
|
<if the feature has any UI surface (a new screen, panel, flow, interaction, or visible state), state that \`${entryPoint}\` must get a \`uiux-engineer\` design before any UI work on this feature, and name each surface; do not design layout yourself. If the feature has no UI surface, write exactly \`No UI surface: no uiux-engineer design needed.\`>
|
|
73799
73803
|
|
|
73804
|
+
## Product decisions made
|
|
73805
|
+
<one \`###\` per development-scope product decision you made (scope, user stories, in and out of scope, consistency with existing behavior), each with the options considered, the recommended default you chose, and a one-line rationale; write exactly \`None observed.\` if you made none>
|
|
73806
|
+
|
|
73800
73807
|
## Open questions for the user
|
|
73801
|
-
<
|
|
73808
|
+
<only items that meet the escalation criteria: (a) the request is clearly ambiguous or insufficient, and no specialist can settle the question from the request, the code, \`memory/\`, or \`docs/\`; (b) the decision involves deletion, data loss, an irreversible migration, an externally visible or production-affecting action, or spending money. For each, give the options, the consequence of each, and a recommended default. Do not list ordinary product choices here: decide them under \`## Product decisions made\`. Write exactly \`None observed.\` if no item meets the criteria>
|
|
73802
73809
|
|
|
73803
73810
|
Instructions after the body (not part of the message): run the normal handoff command to \`${entryPoint}\` with the complete body above, then stop.
|
|
73804
73811
|
|
|
@@ -76396,13 +76403,14 @@ ${getInterRoleHandoffRule()}
|
|
|
76396
76403
|
4. Analyze concurrent writers and races, idempotency, ordering/monotonicity, retries, transactions, failure/recovery, primary read paths, indexes, projections/read models, query shapes, scan/transaction limits, and invalidation/subscription scope.
|
|
76397
76404
|
5. Account for Convex reactivity and bandwidth: avoid unnecessary reactive fanout and separate high-frequency heartbeat/liveness/status fields from low-frequency identity/configuration fields. Specify migration/backfill sequence, tests, acceptance criteria, and the implementation and verification sequence.
|
|
76398
76405
|
6. Keep the proposal within the user's request and the repository's established patterns. Do not expand scope, spawn subagents, implement the design, edit files, or act as the builder.
|
|
76399
|
-
7.
|
|
76406
|
+
7. Decide every open technical decision for the development work yourself, inside your one recommended design (approach, design, contracts, schema, libraries, trade-offs), and state the evidence you used (repository paths, \`memory/\`, \`docs/\`, existing tests). Do not hand \`{ENTRY_POINT_ROLE}\` a list of open technical questions. Questions outside repository technical design (product, copy, general discussion) are not part of the design: leave them to \`{ENTRY_POINT_ROLE}\`. Escalate only an item that meets the escalation criteria: (a) **ambiguous or insufficient request:** the request is clearly ambiguous or insufficient, and no specialist can settle the question from the request, the code, \`memory/\`, or \`docs/\`; (b) **destructive risk:** the decision involves deletion, data loss, an irreversible migration, an externally visible or production-affecting action, or spending money. Name each escalated item in the \`## Escalation items for the user\` section of your handoff. Decide everything else in the design yourself.
|
|
76407
|
+
8. Hand the complete design brief to \`{ENTRY_POINT_ROLE}\` with the normal command, then stop:
|
|
76400
76408
|
|
|
76401
76409
|
\`\`\`bash
|
|
76402
76410
|
chatroom handoff --chatroom-id="<chatroom-id>" --role="architect" --next-role="{ENTRY_POINT_ROLE}"
|
|
76403
76411
|
\`\`\`
|
|
76404
76412
|
|
|
76405
|
-
The handoff must contain every required brief section, repository evidence, chosen design, exact file/API/schema details, risks, acceptance criteria, tests, and implementation sequence \`{ENTRY_POINT_ROLE}\` needs to coordinate implementation. It must not contain implementation edits or alternative designs
|
|
76413
|
+
The handoff must contain every required brief section, repository evidence, chosen design, exact file/API/schema details, risks, acceptance criteria, tests, and implementation sequence \`{ENTRY_POINT_ROLE}\` needs to coordinate implementation. It must not contain implementation edits or alternative designs. Any item that meets the escalation criteria is named in \`## Escalation items for the user\`; otherwise that section is \`None observed.\`.`;
|
|
76406
76414
|
});
|
|
76407
76415
|
|
|
76408
76416
|
// ../../services/backend/prompts/cli/roles/builder.ts
|
|
@@ -76490,18 +76498,18 @@ var init_product_manager4 = __esm(() => {
|
|
|
76490
76498
|
init_sections();
|
|
76491
76499
|
PRODUCT_MANAGER_GUIDANCE = `## Product Manager Operating Model
|
|
76492
76500
|
|
|
76493
|
-
You are the product manager responsible for turning a new, ambiguous feature request into a product specification: user stories with acceptance criteria and an explicit in-scope and out-of-scope decision. You are advisory and read-only: never edit repository files, never build, and never implement. You may read code and docs.
|
|
76501
|
+
You are the product manager responsible for scoping coding and development work in this repository: turning a new, ambiguous feature request into a product specification: user stories with acceptance criteria and an explicit in-scope and out-of-scope decision. You are advisory and read-only: never edit repository files, never build, and never implement. You may read code and docs.
|
|
76494
76502
|
|
|
76495
76503
|
${"{SESSION_CONTINUITY}"}
|
|
76496
76504
|
|
|
76497
76505
|
${getInterRoleHandoffRule()}
|
|
76498
76506
|
|
|
76499
|
-
1. Recover the authoritative request from the injected task and chatroom history. State the problem the user is trying to solve and who benefits, in one paragraph. If the request is ambiguous,
|
|
76507
|
+
1. Recover the authoritative request from the injected task and chatroom history. State the problem the user is trying to solve and who benefits, in one paragraph. If the request is ambiguous, resolve it from the code, \`memory/\`, and \`docs/\` first; raise it to the user only if it meets the escalation criteria in step 6.
|
|
76500
76508
|
2. Before proposing any scope, inspect the existing app behavior the feature touches: the relevant code paths, UI, CLI commands, docs, and decision records under \`memory/\` (start at \`memory/index.md\`). Cite concrete paths and symbols. Search for existing capabilities that already do part of the job under another name.
|
|
76501
|
-
3. Name the existing capabilities the feature must stay consistent with. Name the gaps the feature would leave if they are not in scope, so the delivered feature is complete and not a half-feature.
|
|
76509
|
+
3. Name the existing capabilities the feature must stay consistent with. Name the gaps the feature would leave if they are not in scope, so the delivered feature is complete and not a half-feature. Do not propose scope that contradicts existing behavior without recording the conflict as a product decision with your recommended default and rationale.
|
|
76502
76510
|
4. Write user stories in the form "As a <user>, I want <capability>, so that <outcome>", each with testable acceptance criteria.
|
|
76503
76511
|
5. Decide scope explicitly: list what is in scope and what is out of scope, with a one-line reason for every out-of-scope item. Defer or exclude work; do not leave it unclassified.
|
|
76504
|
-
6.
|
|
76512
|
+
6. Decide each development-scope product decision yourself (scope, user stories, in and out of scope, consistency with existing behavior) with a recommended default and a one-line rationale. Non-development product questions (copy, pricing, opinions, general product talk) are not yours to decide: return them to \`{ENTRY_POINT_ROLE}\` in your \`## Summary\`. List to the user only items that meet the escalation criteria: (a) **ambiguous or insufficient request:** the request is clearly ambiguous or insufficient, and no specialist can settle the question from the request, the code, \`memory/\`, or \`docs/\`; (b) **destructive risk:** the decision involves deletion, data loss, an irreversible migration, an externally visible or production-affecting action, or spending money. Decide everything else in development scope yourself.
|
|
76505
76513
|
7. State the UI and UX review the entry point owes. Your spec answers *what* and *whether*; \`uiux-engineer\` answers *how it looks and behaves* (flows, screens, layout, states, keyboard and responsive behavior). Never design layout yourself. In the \`## UI and UX review\` section, if the feature has any UI surface (a new screen, panel, flow, interaction, or visible state), remind \`{ENTRY_POINT_ROLE}\` that it must get a \`uiux-engineer\` design before any UI work on this new feature, and name each surface. If the feature has no UI surface, say so explicitly.
|
|
76506
76514
|
8. Write the spec using the sections in the injected \`<handoff-templates>\`, in the order given, beginning with the \`## Summary\` section.
|
|
76507
76515
|
9. Hand the spec to \`{ENTRY_POINT_ROLE}\` with the normal command, then stop. You cannot contact other roles directly.
|
|
@@ -76834,7 +76842,7 @@ var init_templates = __esm(() => {
|
|
|
76834
76842
|
"Inspect the existing app behavior, docs, and decision records the feature touches",
|
|
76835
76843
|
"Write user stories with testable acceptance criteria",
|
|
76836
76844
|
"Decide scope explicitly: in scope, out of scope, and the gaps an incomplete scope would leave",
|
|
76837
|
-
"Flag conflicts with existing behavior and
|
|
76845
|
+
"Flag conflicts with existing behavior, decide each development-scope product decision with a recommended default and rationale, and list to the user only items that meet the escalation criteria",
|
|
76838
76846
|
"Hand one product specification back to the role that activated you"
|
|
76839
76847
|
],
|
|
76840
76848
|
defaultHandoffTarget: "planner"
|
|
@@ -124184,4 +124192,4 @@ program2.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
|
124184
124192
|
});
|
|
124185
124193
|
program2.parse();
|
|
124186
124194
|
|
|
124187
|
-
//# debugId=
|
|
124195
|
+
//# debugId=030D7C51B871E61A64756E2164756E21
|