chatroom-cli 1.121.1 → 1.122.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.
- package/dist/index.js +119 -15
- package/dist/index.js.map +12 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -107804,16 +107804,16 @@ function normalizeEntryPointRole2(entryPointRole) {
|
|
|
107804
107804
|
return entryPointRole.trim().toLowerCase() || "planner";
|
|
107805
107805
|
}
|
|
107806
107806
|
function getUiuxEngineerFocus() {
|
|
107807
|
-
return "complete user flows, loading/empty/error/success states, component ownership, theme tokens and layout,
|
|
107807
|
+
return "complete user flows, loading/empty/error/success states, component ownership, theme tokens and layout, responsive details, and UI tests";
|
|
107808
107808
|
}
|
|
107809
107809
|
function getUiuxEngineerRequirements() {
|
|
107810
107810
|
return `
|
|
107811
107811
|
- Specify complete user flows with explicit loading, empty, error, success, disabled, and retry states where applicable.
|
|
107812
|
-
- Define exact keyboard shortcuts, focus order, keyboard navigation, focus restoration, and accessible semantics and labels.
|
|
107813
107812
|
- Define component hierarchy and ownership, props/state/events, data boundaries, and interaction behavior.
|
|
107814
107813
|
- Choose concrete existing ShadCN components with the Base UI backend and lucide-react/react-icons conventions; do not write "use an appropriate component."
|
|
107815
107814
|
- Specify Tailwind utility classes or semantic theme-token classes for layout, spacing, sizing, typography, states, responsive behavior, and dark mode.
|
|
107816
|
-
- Specify responsive breakpoints/layout behavior, visual feedback, destructive-action safeguards, exact files/components, and the UI/integration
|
|
107815
|
+
- Specify responsive breakpoints/layout behavior, visual feedback, destructive-action safeguards, exact files/components, and the UI/integration test plan.
|
|
107816
|
+
- Do not propose or require web accessibility implementation work unless the user explicitly requests it.`;
|
|
107817
107817
|
}
|
|
107818
107818
|
function getEntryPointToUiuxEngineerHandoffTemplate(entryPointRole) {
|
|
107819
107819
|
const entryPoint = normalizeEntryPointRole2(entryPointRole);
|
|
@@ -107886,23 +107886,23 @@ ${sharedContractsHeading}
|
|
|
107886
107886
|
|
|
107887
107887
|
### Interfaces & types
|
|
107888
107888
|
\`\`\`typescript
|
|
107889
|
-
// Shared props, state, events, query shapes, or
|
|
107889
|
+
// Shared props, state, events, query shapes, or interaction contracts.
|
|
107890
107890
|
\`\`\`
|
|
107891
107891
|
|
|
107892
107892
|
### Reference snippets
|
|
107893
107893
|
\`\`\`tsx
|
|
107894
|
-
// Canonical component imports, hook usage,
|
|
107894
|
+
// Canonical component imports, hook usage, or layout examples.
|
|
107895
107895
|
\`\`\`
|
|
107896
107896
|
|
|
107897
107897
|
## Requirements (acceptance criteria)
|
|
107898
|
-
- <one concrete, verifiable requirement per bullet; include exact states, interactions,
|
|
107899
|
-
- Include UI
|
|
107898
|
+
- <one concrete, verifiable requirement per bullet; include exact states, interactions, classes/tokens, and responsive behavior>
|
|
107899
|
+
- Include UI and integration test coverage for the design's risk areas.
|
|
107900
107900
|
- Verify the implemented user-facing entry point end-to-end; unit tests alone are insufficient.
|
|
107901
107901
|
|
|
107902
107902
|
## What to avoid
|
|
107903
107903
|
- Do not implement code or edit files as the UI/UX engineer; this handoff is advisory only.
|
|
107904
107904
|
- Do not present alternative designs, generic advice, or requirements without concrete evidence and file-level consequences.
|
|
107905
|
-
- Do not invent components, props, tokens,
|
|
107905
|
+
- Do not invent components, props, tokens, interaction behavior, or source-of-truth locations when existing repository patterns apply.
|
|
107906
107906
|
- <explicit task-specific anti-patterns, scope boundaries, and destructive-action/source-of-truth pitfalls>
|
|
107907
107907
|
|
|
107908
107908
|
## Skills to activate
|
|
@@ -108353,6 +108353,74 @@ function getChatToUserHandoffTemplate() {
|
|
|
108353
108353
|
}
|
|
108354
108354
|
var init_chat_handoff_template = () => {};
|
|
108355
108355
|
|
|
108356
|
+
// ../../services/backend/prompts/teams/triage-handoff-templates.ts
|
|
108357
|
+
function normalizeEntryPointRole3(entryPointRole) {
|
|
108358
|
+
return entryPointRole.trim().toLowerCase() || "planner";
|
|
108359
|
+
}
|
|
108360
|
+
function getEntryPointToTriageHandoffTemplate(entryPointRole) {
|
|
108361
|
+
const entryPoint = normalizeEntryPointRole3(entryPointRole);
|
|
108362
|
+
return `${getHandoffRecipientVisibilityCallout("triage")}
|
|
108363
|
+
|
|
108364
|
+
## Handoff Template (${entryPoint} → triage)
|
|
108365
|
+
|
|
108366
|
+
The automatically injected \`<user-message>\` is the authoritative request. Pass the reported bug, observed and expected behavior, reproduction details and commands, relevant constraints, and the files or symbols already suspected. Ask triage to investigate and report only. Triage may inspect code and attempt a focused automated regression test as evidence, but must not edit implementation files or implement a fix.
|
|
108367
|
+
|
|
108368
|
+
After completing the investigation, triage must return the evidence-backed report to \`${entryPoint}\` with the normal handoff command.
|
|
108369
|
+
|
|
108370
|
+
\`\`\`bash
|
|
108371
|
+
${handoffCommand({
|
|
108372
|
+
chatroomId: "<chatroom-id>",
|
|
108373
|
+
role: entryPoint,
|
|
108374
|
+
nextRole: "triage",
|
|
108375
|
+
cliEnvPrefix: ""
|
|
108376
|
+
})}
|
|
108377
|
+
\`\`\``;
|
|
108378
|
+
}
|
|
108379
|
+
function getTriageToEntryPointHandoffTemplate(entryPointRole) {
|
|
108380
|
+
const entryPoint = normalizeEntryPointRole3(entryPointRole);
|
|
108381
|
+
return `${getHandoffRecipientVisibilityCallout(entryPoint)}
|
|
108382
|
+
|
|
108383
|
+
## Handoff Template (Triage → ${entryPoint})
|
|
108384
|
+
|
|
108385
|
+
Return a complete, evidence-backed investigation of the authoritative reported bug. Triage is advisory: do not edit implementation files or implement the proposed fix. Use the exact sections below. Cite concrete repository paths and symbols, observed behavior, commands, and test output. Distinguish confirmed findings from hypotheses; never claim a test proved behavior unless its failing assertion demonstrates the report.
|
|
108386
|
+
|
|
108387
|
+
## Summary
|
|
108388
|
+
<briefly state the diagnosis and whether the root cause was confirmed or remains a hypothesis>
|
|
108389
|
+
|
|
108390
|
+
## Reported behavior
|
|
108391
|
+
<state the reported symptoms and expected behavior, including reproduction details and constraints recovered from the request or relevant history>
|
|
108392
|
+
|
|
108393
|
+
## Root cause
|
|
108394
|
+
<trace the relevant ownership, data, and control flow using concrete repository paths and symbols; explain the causal reasoning and explicitly label the finding as confirmed or a hypothesis>
|
|
108395
|
+
|
|
108396
|
+
## Reproduction attempt
|
|
108397
|
+
<give the focused test path and exact command, the failing assertion or exact blocker, and the outcome; if reproduction was blocked, state what was tried and what additional information would help; do not fabricate proof>
|
|
108398
|
+
|
|
108399
|
+
## Proposed immediate fix
|
|
108400
|
+
<recommend the smallest appropriate change, naming the likely files and the specific change; do not implement it>
|
|
108401
|
+
|
|
108402
|
+
## Systemic issues
|
|
108403
|
+
<list each separate systemic concern with repository evidence, impact, and follow-up concern, or write exactly: None observed.>
|
|
108404
|
+
|
|
108405
|
+
## Work completed
|
|
108406
|
+
<state the code paths inspected and every test or reproduction action taken, including results>
|
|
108407
|
+
|
|
108408
|
+
## Handoff
|
|
108409
|
+
Run the normal handoff command to \`${entryPoint}\` with this complete report, then stop.
|
|
108410
|
+
|
|
108411
|
+
\`\`\`bash
|
|
108412
|
+
${handoffCommand({
|
|
108413
|
+
chatroomId: "<chatroom-id>",
|
|
108414
|
+
role: "triage",
|
|
108415
|
+
nextRole: entryPoint,
|
|
108416
|
+
cliEnvPrefix: ""
|
|
108417
|
+
})}
|
|
108418
|
+
\`\`\``;
|
|
108419
|
+
}
|
|
108420
|
+
var init_triage_handoff_templates = __esm(() => {
|
|
108421
|
+
init_command2();
|
|
108422
|
+
});
|
|
108423
|
+
|
|
108356
108424
|
// ../../services/backend/prompts/teams/duo/handoff-templates/planner.ts
|
|
108357
108425
|
var duoPlannerHandoffContract;
|
|
108358
108426
|
var init_planner = __esm(() => {
|
|
@@ -108360,15 +108428,17 @@ var init_planner = __esm(() => {
|
|
|
108360
108428
|
init_planner_to_user();
|
|
108361
108429
|
init_chat_handoff_template();
|
|
108362
108430
|
init_architect_handoff_templates();
|
|
108431
|
+
init_triage_handoff_templates();
|
|
108363
108432
|
init_uiux_engineer_handoff_templates();
|
|
108364
108433
|
duoPlannerHandoffContract = {
|
|
108365
108434
|
role: "planner",
|
|
108366
|
-
receivesFrom: ["user", "builder", "architect", "uiux-engineer"],
|
|
108367
|
-
returnsTo: ["builder", "architect", "uiux-engineer", "user"],
|
|
108435
|
+
receivesFrom: ["user", "builder", "architect", "uiux-engineer", "triage"],
|
|
108436
|
+
returnsTo: ["builder", "architect", "uiux-engineer", "triage", "user"],
|
|
108368
108437
|
outboundTemplates: {
|
|
108369
108438
|
builder: () => getPlannerToBuilderHandoffTemplate(),
|
|
108370
108439
|
architect: () => getEntryPointToArchitectHandoffTemplate("planner"),
|
|
108371
108440
|
"uiux-engineer": () => getEntryPointToUiuxEngineerHandoffTemplate("planner"),
|
|
108441
|
+
triage: () => getEntryPointToTriageHandoffTemplate("planner"),
|
|
108372
108442
|
user: (query) => query.conversationMode === "chat" ? getChatToUserHandoffTemplate() : getPlannerToUserReportTemplate({
|
|
108373
108443
|
chatroomId: query.chatroomId,
|
|
108374
108444
|
role: query.role,
|
|
@@ -108378,6 +108448,20 @@ var init_planner = __esm(() => {
|
|
|
108378
108448
|
};
|
|
108379
108449
|
});
|
|
108380
108450
|
|
|
108451
|
+
// ../../services/backend/prompts/teams/duo/handoff-templates/triage.ts
|
|
108452
|
+
var duoTriageHandoffContract;
|
|
108453
|
+
var init_triage = __esm(() => {
|
|
108454
|
+
init_triage_handoff_templates();
|
|
108455
|
+
duoTriageHandoffContract = {
|
|
108456
|
+
role: "triage",
|
|
108457
|
+
receivesFrom: ["planner"],
|
|
108458
|
+
returnsTo: ["planner"],
|
|
108459
|
+
outboundTemplates: {
|
|
108460
|
+
planner: () => getTriageToEntryPointHandoffTemplate("planner")
|
|
108461
|
+
}
|
|
108462
|
+
};
|
|
108463
|
+
});
|
|
108464
|
+
|
|
108381
108465
|
// ../../services/backend/prompts/teams/duo/handoff-templates/uiux-engineer.ts
|
|
108382
108466
|
var duoUiuxEngineerHandoffContract;
|
|
108383
108467
|
var init_uiux_engineer = __esm(() => {
|
|
@@ -108436,12 +108520,14 @@ var init_handoff_templates = __esm(() => {
|
|
|
108436
108520
|
init_architect();
|
|
108437
108521
|
init_builder();
|
|
108438
108522
|
init_planner();
|
|
108523
|
+
init_triage();
|
|
108439
108524
|
init_uiux_engineer();
|
|
108440
108525
|
DUO_ROLE_HANDOFF_CONTRACTS = [
|
|
108441
108526
|
duoPlannerHandoffContract,
|
|
108442
108527
|
duoBuilderHandoffContract,
|
|
108443
108528
|
duoArchitectHandoffContract,
|
|
108444
|
-
duoUiuxEngineerHandoffContract
|
|
108529
|
+
duoUiuxEngineerHandoffContract,
|
|
108530
|
+
duoTriageHandoffContract
|
|
108445
108531
|
];
|
|
108446
108532
|
validatedDuoRoleHandoffContracts = (() => {
|
|
108447
108533
|
validateRoleHandoffContracts(DUO_ROLE_HANDOFF_CONTRACTS);
|
|
@@ -108483,14 +108569,16 @@ var init_solo = __esm(() => {
|
|
|
108483
108569
|
init_solo_to_user();
|
|
108484
108570
|
init_chat_handoff_template();
|
|
108485
108571
|
init_architect_handoff_templates();
|
|
108572
|
+
init_triage_handoff_templates();
|
|
108486
108573
|
init_uiux_engineer_handoff_templates();
|
|
108487
108574
|
soloHandoffContract = {
|
|
108488
108575
|
role: "solo",
|
|
108489
|
-
receivesFrom: ["user", "architect", "uiux-engineer"],
|
|
108490
|
-
returnsTo: ["architect", "uiux-engineer", "user"],
|
|
108576
|
+
receivesFrom: ["user", "architect", "uiux-engineer", "triage"],
|
|
108577
|
+
returnsTo: ["architect", "uiux-engineer", "triage", "user"],
|
|
108491
108578
|
outboundTemplates: {
|
|
108492
108579
|
architect: () => getEntryPointToArchitectHandoffTemplate("solo"),
|
|
108493
108580
|
"uiux-engineer": () => getEntryPointToUiuxEngineerHandoffTemplate("solo"),
|
|
108581
|
+
triage: () => getEntryPointToTriageHandoffTemplate("solo"),
|
|
108494
108582
|
user: (query) => query.conversationMode === "chat" ? getChatToUserHandoffTemplate() : getSoloToUserReportTemplate({
|
|
108495
108583
|
chatroomId: query.chatroomId,
|
|
108496
108584
|
role: query.role,
|
|
@@ -108500,6 +108588,20 @@ var init_solo = __esm(() => {
|
|
|
108500
108588
|
};
|
|
108501
108589
|
});
|
|
108502
108590
|
|
|
108591
|
+
// ../../services/backend/prompts/teams/solo/handoff-templates/triage.ts
|
|
108592
|
+
var soloTriageHandoffContract;
|
|
108593
|
+
var init_triage2 = __esm(() => {
|
|
108594
|
+
init_triage_handoff_templates();
|
|
108595
|
+
soloTriageHandoffContract = {
|
|
108596
|
+
role: "triage",
|
|
108597
|
+
receivesFrom: ["solo"],
|
|
108598
|
+
returnsTo: ["solo"],
|
|
108599
|
+
outboundTemplates: {
|
|
108600
|
+
solo: () => getTriageToEntryPointHandoffTemplate("solo")
|
|
108601
|
+
}
|
|
108602
|
+
};
|
|
108603
|
+
});
|
|
108604
|
+
|
|
108503
108605
|
// ../../services/backend/prompts/teams/solo/handoff-templates/uiux-engineer.ts
|
|
108504
108606
|
var soloUiuxEngineerHandoffContract;
|
|
108505
108607
|
var init_uiux_engineer2 = __esm(() => {
|
|
@@ -108529,11 +108631,13 @@ var SOLO_ROLE_HANDOFF_CONTRACTS, validatedSoloRoleHandoffContracts;
|
|
|
108529
108631
|
var init_handoff_templates2 = __esm(() => {
|
|
108530
108632
|
init_architect2();
|
|
108531
108633
|
init_solo();
|
|
108634
|
+
init_triage2();
|
|
108532
108635
|
init_uiux_engineer2();
|
|
108533
108636
|
SOLO_ROLE_HANDOFF_CONTRACTS = [
|
|
108534
108637
|
soloHandoffContract,
|
|
108535
108638
|
soloArchitectHandoffContract,
|
|
108536
|
-
soloUiuxEngineerHandoffContract
|
|
108639
|
+
soloUiuxEngineerHandoffContract,
|
|
108640
|
+
soloTriageHandoffContract
|
|
108537
108641
|
];
|
|
108538
108642
|
validatedSoloRoleHandoffContracts = (() => {
|
|
108539
108643
|
validateRoleHandoffContracts(SOLO_ROLE_HANDOFF_CONTRACTS);
|
|
@@ -136628,4 +136732,4 @@ program2.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
|
136628
136732
|
});
|
|
136629
136733
|
program2.parse();
|
|
136630
136734
|
|
|
136631
|
-
//# debugId=
|
|
136735
|
+
//# debugId=6A3FE3FB59437FFF64756E2164756E21
|