chatroom-cli 1.143.2 → 1.144.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 +287 -6
- package/dist/index.js.map +34 -17
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -33431,6 +33431,14 @@ var init_agent_role = __esm(() => {
|
|
|
33431
33431
|
{ teamId: "trio", order: 25 }
|
|
33432
33432
|
]
|
|
33433
33433
|
},
|
|
33434
|
+
"product-manager": {
|
|
33435
|
+
tags: ["ephemeral" /* Ephemeral */],
|
|
33436
|
+
teams: [
|
|
33437
|
+
{ teamId: "duo", order: 15 },
|
|
33438
|
+
{ teamId: "solo", order: 15 },
|
|
33439
|
+
{ teamId: "trio", order: 15 }
|
|
33440
|
+
]
|
|
33441
|
+
},
|
|
33434
33442
|
verifier: {
|
|
33435
33443
|
tags: ["ephemeral" /* Ephemeral */],
|
|
33436
33444
|
teams: [
|
|
@@ -72558,7 +72566,7 @@ var init_team_presets = __esm(() => {
|
|
|
72558
72566
|
duo: {
|
|
72559
72567
|
structureId: TEAM_STRUCTURE_IDS.duo,
|
|
72560
72568
|
name: "Duo",
|
|
72561
|
-
description: "A planner and builder working as a pair, planner as coordinator, with optional ephemeral architect, researcher, triage, reviewer, uiux-engineer, game-asset-designer, and verifier roles",
|
|
72569
|
+
description: "A planner and builder working as a pair, planner as coordinator, with optional ephemeral architect, product-manager, researcher, triage, reviewer, uiux-engineer, game-asset-designer, and verifier roles",
|
|
72562
72570
|
roles: getBuiltinRolesForTeam("duo"),
|
|
72563
72571
|
entryPoint: "planner",
|
|
72564
72572
|
handoffGraph: "advisory",
|
|
@@ -72567,7 +72575,7 @@ var init_team_presets = __esm(() => {
|
|
|
72567
72575
|
solo: {
|
|
72568
72576
|
structureId: TEAM_STRUCTURE_IDS.solo,
|
|
72569
72577
|
name: "Solo",
|
|
72570
|
-
description: "A single agent working independently, with optional ephemeral architect, triage, uiux-engineer, and verifier roles",
|
|
72578
|
+
description: "A single agent working independently, with optional ephemeral architect, product-manager, triage, uiux-engineer, and verifier roles",
|
|
72571
72579
|
roles: getBuiltinRolesForTeam("solo"),
|
|
72572
72580
|
entryPoint: "solo",
|
|
72573
72581
|
handoffGraph: "advisory",
|
|
@@ -72576,7 +72584,7 @@ var init_team_presets = __esm(() => {
|
|
|
72576
72584
|
trio: {
|
|
72577
72585
|
structureId: TEAM_STRUCTURE_IDS.trio,
|
|
72578
72586
|
name: "Trio",
|
|
72579
|
-
description: "A coordinator, specifier, and builder: the coordinator owns the user conversation and routes all work, the specifier turns plans into code-level builder briefs, with optional ephemeral architect, researcher, triage, reviewer, uiux-engineer, game-asset-designer, and verifier roles",
|
|
72587
|
+
description: "A coordinator, specifier, and builder: the coordinator owns the user conversation and routes all work, the specifier turns plans into code-level builder briefs, with optional ephemeral architect, product-manager, researcher, triage, reviewer, uiux-engineer, game-asset-designer, and verifier roles",
|
|
72580
72588
|
roles: getBuiltinRolesForTeam("trio"),
|
|
72581
72589
|
entryPoint: "coordinator",
|
|
72582
72590
|
handoffGraph: "enforced",
|
|
@@ -73746,6 +73754,80 @@ var init_planner_game_asset_designer_chat = __esm(() => {
|
|
|
73746
73754
|
init_planner_game_asset_designer_code();
|
|
73747
73755
|
});
|
|
73748
73756
|
|
|
73757
|
+
// ../../services/backend/prompts/teams/product-manager-handoff-templates.ts
|
|
73758
|
+
function getEntryPointToProductManagerHandoffTemplate(query) {
|
|
73759
|
+
const entryPoint = query.fromRole;
|
|
73760
|
+
return `The automatically injected \`<user-message>\` is the authoritative request. Pass the feature request in the user's words, the problem it solves and who it is for, any constraints or decisions already made, and the areas of the app it likely touches. List the domain nouns the product manager must check for existing equivalents in the repository. Ask the product manager for a specification only: do not edit files, implement code, or design the technical architecture.
|
|
73761
|
+
|
|
73762
|
+
Use this for a new, ambiguous feature request whose scope is not yet decided. Skip it for small bug fixes and for requests whose scope is already unambiguous, unless a bug fix needs a scope decision.
|
|
73763
|
+
|
|
73764
|
+
After completing the specification, the product manager must return it to \`${entryPoint}\` with the normal handoff command.
|
|
73765
|
+
|
|
73766
|
+
\`\`\`bash
|
|
73767
|
+
${handoffCommand({
|
|
73768
|
+
chatroomId: "<chatroom-id>",
|
|
73769
|
+
role: entryPoint,
|
|
73770
|
+
nextRole: "product-manager",
|
|
73771
|
+
cliEnvPrefix: ""
|
|
73772
|
+
})}
|
|
73773
|
+
\`\`\``;
|
|
73774
|
+
}
|
|
73775
|
+
function getProductManagerToEntryPointHandoffTemplate(query) {
|
|
73776
|
+
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/\`. List open questions instead of guessing them. Begin with the \`## Summary\` section, then use the remaining sections below in order. Use \`###\` for sub-items within a section.
|
|
73778
|
+
|
|
73779
|
+
## Summary
|
|
73780
|
+
<state the feature, the recommended scope in two to four sentences, and whether any open question blocks planning>
|
|
73781
|
+
|
|
73782
|
+
## Problem statement
|
|
73783
|
+
<the problem the user is trying to solve, who is affected, and the outcome they want, recovered from the request and relevant history>
|
|
73784
|
+
|
|
73785
|
+
## User stories
|
|
73786
|
+
<one \`###\` per story in the form "As a <user>, I want <capability>, so that <outcome>", each followed by a bullet list of testable acceptance criteria>
|
|
73787
|
+
|
|
73788
|
+
## In scope
|
|
73789
|
+
<every capability, behavior, and state the feature includes, including the states needed to make it feature complete (loading, empty, error, permissions, and migration of existing data where they apply)>
|
|
73790
|
+
|
|
73791
|
+
## Out of scope
|
|
73792
|
+
<each excluded or deferred item with a one-line reason; write exactly \`None observed.\` if nothing is excluded>
|
|
73793
|
+
|
|
73794
|
+
## 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 mark each conflict as a decision for the user; the gaps the feature would leave if the proposed scope is not accepted>
|
|
73796
|
+
|
|
73797
|
+
## UI and UX review
|
|
73798
|
+
<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
|
+
|
|
73800
|
+
## Open questions for the user
|
|
73801
|
+
<each open question with the options, the consequence of each, and a recommended default; write exactly \`None observed.\` if none remain>
|
|
73802
|
+
|
|
73803
|
+
Instructions after the body (not part of the message): run the normal handoff command to \`${entryPoint}\` with the complete body above, then stop.
|
|
73804
|
+
|
|
73805
|
+
\`\`\`bash
|
|
73806
|
+
${handoffCommand({
|
|
73807
|
+
chatroomId: "<chatroom-id>",
|
|
73808
|
+
role: "product-manager",
|
|
73809
|
+
nextRole: entryPoint,
|
|
73810
|
+
cliEnvPrefix: ""
|
|
73811
|
+
})}
|
|
73812
|
+
\`\`\``;
|
|
73813
|
+
}
|
|
73814
|
+
var init_product_manager_handoff_templates = __esm(() => {
|
|
73815
|
+
init_command2();
|
|
73816
|
+
});
|
|
73817
|
+
|
|
73818
|
+
// ../../services/backend/prompts/teams/duo/handoff-templates/planner-product-manager-code.ts
|
|
73819
|
+
function getPlannerProductManagerCodeTemplate(query) {
|
|
73820
|
+
return getEntryPointToProductManagerHandoffTemplate(query);
|
|
73821
|
+
}
|
|
73822
|
+
var init_planner_product_manager_code = __esm(() => {
|
|
73823
|
+
init_product_manager_handoff_templates();
|
|
73824
|
+
});
|
|
73825
|
+
|
|
73826
|
+
// ../../services/backend/prompts/teams/duo/handoff-templates/planner-product-manager-chat.ts
|
|
73827
|
+
var init_planner_product_manager_chat = __esm(() => {
|
|
73828
|
+
init_planner_product_manager_code();
|
|
73829
|
+
});
|
|
73830
|
+
|
|
73749
73831
|
// ../../services/backend/prompts/teams/researcher-handoff-templates.ts
|
|
73750
73832
|
function getEntryPointToResearcherHandoffTemplate(query) {
|
|
73751
73833
|
const entryPoint = query.fromRole;
|
|
@@ -74440,6 +74522,8 @@ var init_planner = __esm(() => {
|
|
|
74440
74522
|
init_planner_builder_code();
|
|
74441
74523
|
init_planner_game_asset_designer_chat();
|
|
74442
74524
|
init_planner_game_asset_designer_code();
|
|
74525
|
+
init_planner_product_manager_chat();
|
|
74526
|
+
init_planner_product_manager_code();
|
|
74443
74527
|
init_planner_researcher_chat();
|
|
74444
74528
|
init_planner_researcher_code();
|
|
74445
74529
|
init_planner_reviewer_chat();
|
|
@@ -74459,6 +74543,7 @@ var init_planner = __esm(() => {
|
|
|
74459
74543
|
"user",
|
|
74460
74544
|
"builder",
|
|
74461
74545
|
"architect",
|
|
74546
|
+
"product-manager",
|
|
74462
74547
|
"uiux-engineer",
|
|
74463
74548
|
"triage",
|
|
74464
74549
|
"researcher",
|
|
@@ -74470,6 +74555,7 @@ var init_planner = __esm(() => {
|
|
|
74470
74555
|
"user",
|
|
74471
74556
|
"builder",
|
|
74472
74557
|
"architect",
|
|
74558
|
+
"product-manager",
|
|
74473
74559
|
"uiux-engineer",
|
|
74474
74560
|
"triage",
|
|
74475
74561
|
"researcher",
|
|
@@ -74486,6 +74572,10 @@ var init_planner = __esm(() => {
|
|
|
74486
74572
|
chat: getPlannerArchitectCodeTemplate,
|
|
74487
74573
|
code: getPlannerArchitectCodeTemplate
|
|
74488
74574
|
}),
|
|
74575
|
+
"product-manager": handoffTemplateByMode({
|
|
74576
|
+
chat: getPlannerProductManagerCodeTemplate,
|
|
74577
|
+
code: getPlannerProductManagerCodeTemplate
|
|
74578
|
+
}),
|
|
74489
74579
|
"uiux-engineer": handoffTemplateByMode({
|
|
74490
74580
|
chat: getPlannerUiuxEngineerCodeTemplate,
|
|
74491
74581
|
code: getPlannerUiuxEngineerCodeTemplate
|
|
@@ -74518,6 +74608,38 @@ var init_planner = __esm(() => {
|
|
|
74518
74608
|
};
|
|
74519
74609
|
});
|
|
74520
74610
|
|
|
74611
|
+
// ../../services/backend/prompts/teams/duo/handoff-templates/product-manager-planner-code.ts
|
|
74612
|
+
function getProductManagerPlannerCodeTemplate(query) {
|
|
74613
|
+
return getProductManagerToEntryPointHandoffTemplate(query);
|
|
74614
|
+
}
|
|
74615
|
+
var init_product_manager_planner_code = __esm(() => {
|
|
74616
|
+
init_product_manager_handoff_templates();
|
|
74617
|
+
});
|
|
74618
|
+
|
|
74619
|
+
// ../../services/backend/prompts/teams/duo/handoff-templates/product-manager-planner-chat.ts
|
|
74620
|
+
var init_product_manager_planner_chat = __esm(() => {
|
|
74621
|
+
init_product_manager_planner_code();
|
|
74622
|
+
});
|
|
74623
|
+
|
|
74624
|
+
// ../../services/backend/prompts/teams/duo/handoff-templates/product-manager.ts
|
|
74625
|
+
var duoProductManagerHandoffContract;
|
|
74626
|
+
var init_product_manager = __esm(() => {
|
|
74627
|
+
init_product_manager_planner_chat();
|
|
74628
|
+
init_product_manager_planner_code();
|
|
74629
|
+
init_contracts();
|
|
74630
|
+
duoProductManagerHandoffContract = {
|
|
74631
|
+
role: "product-manager",
|
|
74632
|
+
receivesFrom: ["planner"],
|
|
74633
|
+
returnsTo: ["planner"],
|
|
74634
|
+
outboundTemplates: {
|
|
74635
|
+
planner: handoffTemplateByMode({
|
|
74636
|
+
chat: getProductManagerPlannerCodeTemplate,
|
|
74637
|
+
code: getProductManagerPlannerCodeTemplate
|
|
74638
|
+
})
|
|
74639
|
+
}
|
|
74640
|
+
};
|
|
74641
|
+
});
|
|
74642
|
+
|
|
74521
74643
|
// ../../services/backend/prompts/teams/duo/handoff-templates/researcher-planner-code.ts
|
|
74522
74644
|
function getResearcherPlannerCodeTemplate(query) {
|
|
74523
74645
|
return getResearcherToEntryPointHandoffTemplate(query);
|
|
@@ -74688,6 +74810,7 @@ var init_handoff_templates = __esm(() => {
|
|
|
74688
74810
|
init_builder();
|
|
74689
74811
|
init_game_asset_designer();
|
|
74690
74812
|
init_planner();
|
|
74813
|
+
init_product_manager();
|
|
74691
74814
|
init_researcher();
|
|
74692
74815
|
init_reviewer();
|
|
74693
74816
|
init_triage();
|
|
@@ -74698,6 +74821,7 @@ var init_handoff_templates = __esm(() => {
|
|
|
74698
74821
|
planner: duoPlannerHandoffContract,
|
|
74699
74822
|
builder: duoBuilderHandoffContract,
|
|
74700
74823
|
architect: duoArchitectHandoffContract,
|
|
74824
|
+
"product-manager": duoProductManagerHandoffContract,
|
|
74701
74825
|
researcher: duoResearcherHandoffContract,
|
|
74702
74826
|
reviewer: duoReviewerHandoffContract,
|
|
74703
74827
|
"uiux-engineer": duoUiuxEngineerHandoffContract,
|
|
@@ -74744,6 +74868,38 @@ var init_architect2 = __esm(() => {
|
|
|
74744
74868
|
};
|
|
74745
74869
|
});
|
|
74746
74870
|
|
|
74871
|
+
// ../../services/backend/prompts/teams/solo/handoff-templates/product-manager-solo-code.ts
|
|
74872
|
+
function getProductManagerSoloCodeTemplate(query) {
|
|
74873
|
+
return getProductManagerToEntryPointHandoffTemplate(query);
|
|
74874
|
+
}
|
|
74875
|
+
var init_product_manager_solo_code = __esm(() => {
|
|
74876
|
+
init_product_manager_handoff_templates();
|
|
74877
|
+
});
|
|
74878
|
+
|
|
74879
|
+
// ../../services/backend/prompts/teams/solo/handoff-templates/product-manager-solo-chat.ts
|
|
74880
|
+
var init_product_manager_solo_chat = __esm(() => {
|
|
74881
|
+
init_product_manager_solo_code();
|
|
74882
|
+
});
|
|
74883
|
+
|
|
74884
|
+
// ../../services/backend/prompts/teams/solo/handoff-templates/product-manager.ts
|
|
74885
|
+
var soloProductManagerHandoffContract;
|
|
74886
|
+
var init_product_manager2 = __esm(() => {
|
|
74887
|
+
init_product_manager_solo_chat();
|
|
74888
|
+
init_product_manager_solo_code();
|
|
74889
|
+
init_contracts();
|
|
74890
|
+
soloProductManagerHandoffContract = {
|
|
74891
|
+
role: "product-manager",
|
|
74892
|
+
receivesFrom: ["solo"],
|
|
74893
|
+
returnsTo: ["solo"],
|
|
74894
|
+
outboundTemplates: {
|
|
74895
|
+
solo: handoffTemplateByMode({
|
|
74896
|
+
chat: getProductManagerSoloCodeTemplate,
|
|
74897
|
+
code: getProductManagerSoloCodeTemplate
|
|
74898
|
+
})
|
|
74899
|
+
}
|
|
74900
|
+
};
|
|
74901
|
+
});
|
|
74902
|
+
|
|
74747
74903
|
// ../../services/backend/prompts/teams/solo/handoff-templates/solo-architect-code.ts
|
|
74748
74904
|
function getSoloArchitectCodeTemplate(query) {
|
|
74749
74905
|
return getEntryPointToArchitectHandoffTemplate(query);
|
|
@@ -74757,6 +74913,19 @@ var init_solo_architect_chat = __esm(() => {
|
|
|
74757
74913
|
init_solo_architect_code();
|
|
74758
74914
|
});
|
|
74759
74915
|
|
|
74916
|
+
// ../../services/backend/prompts/teams/solo/handoff-templates/solo-product-manager-code.ts
|
|
74917
|
+
function getSoloProductManagerCodeTemplate(query) {
|
|
74918
|
+
return getEntryPointToProductManagerHandoffTemplate(query);
|
|
74919
|
+
}
|
|
74920
|
+
var init_solo_product_manager_code = __esm(() => {
|
|
74921
|
+
init_product_manager_handoff_templates();
|
|
74922
|
+
});
|
|
74923
|
+
|
|
74924
|
+
// ../../services/backend/prompts/teams/solo/handoff-templates/solo-product-manager-chat.ts
|
|
74925
|
+
var init_solo_product_manager_chat = __esm(() => {
|
|
74926
|
+
init_solo_product_manager_code();
|
|
74927
|
+
});
|
|
74928
|
+
|
|
74760
74929
|
// ../../services/backend/prompts/teams/solo/handoff-templates/solo-triage-code.ts
|
|
74761
74930
|
function getSoloTriageCodeTemplate(query) {
|
|
74762
74931
|
return getEntryPointToTriageHandoffTemplate(query);
|
|
@@ -74816,6 +74985,8 @@ var soloHandoffContract;
|
|
|
74816
74985
|
var init_solo = __esm(() => {
|
|
74817
74986
|
init_solo_architect_chat();
|
|
74818
74987
|
init_solo_architect_code();
|
|
74988
|
+
init_solo_product_manager_chat();
|
|
74989
|
+
init_solo_product_manager_code();
|
|
74819
74990
|
init_solo_triage_chat();
|
|
74820
74991
|
init_solo_triage_code();
|
|
74821
74992
|
init_solo_uiux_engineer_chat();
|
|
@@ -74827,13 +74998,17 @@ var init_solo = __esm(() => {
|
|
|
74827
74998
|
init_contracts();
|
|
74828
74999
|
soloHandoffContract = {
|
|
74829
75000
|
role: "solo",
|
|
74830
|
-
receivesFrom: ["user", "architect", "uiux-engineer", "triage", "verifier"],
|
|
74831
|
-
returnsTo: ["user", "architect", "uiux-engineer", "triage", "verifier"],
|
|
75001
|
+
receivesFrom: ["user", "architect", "product-manager", "uiux-engineer", "triage", "verifier"],
|
|
75002
|
+
returnsTo: ["user", "architect", "product-manager", "uiux-engineer", "triage", "verifier"],
|
|
74832
75003
|
outboundTemplates: {
|
|
74833
75004
|
architect: handoffTemplateByMode({
|
|
74834
75005
|
chat: getSoloArchitectCodeTemplate,
|
|
74835
75006
|
code: getSoloArchitectCodeTemplate
|
|
74836
75007
|
}),
|
|
75008
|
+
"product-manager": handoffTemplateByMode({
|
|
75009
|
+
chat: getSoloProductManagerCodeTemplate,
|
|
75010
|
+
code: getSoloProductManagerCodeTemplate
|
|
75011
|
+
}),
|
|
74837
75012
|
"uiux-engineer": handoffTemplateByMode({
|
|
74838
75013
|
chat: getSoloUiuxEngineerCodeTemplate,
|
|
74839
75014
|
code: getSoloUiuxEngineerCodeTemplate
|
|
@@ -74957,6 +75132,7 @@ function listSoloRoleHandoffContracts() {
|
|
|
74957
75132
|
var SOLO_ROLE_HANDOFF_CATALOG, SOLO_ROLE_HANDOFF_CONTRACTS, validatedSoloRoleHandoffContracts;
|
|
74958
75133
|
var init_handoff_templates2 = __esm(() => {
|
|
74959
75134
|
init_architect2();
|
|
75135
|
+
init_product_manager2();
|
|
74960
75136
|
init_solo();
|
|
74961
75137
|
init_triage2();
|
|
74962
75138
|
init_uiux_engineer2();
|
|
@@ -74965,6 +75141,7 @@ var init_handoff_templates2 = __esm(() => {
|
|
|
74965
75141
|
SOLO_ROLE_HANDOFF_CATALOG = {
|
|
74966
75142
|
solo: soloHandoffContract,
|
|
74967
75143
|
architect: soloArchitectHandoffContract,
|
|
75144
|
+
"product-manager": soloProductManagerHandoffContract,
|
|
74968
75145
|
"uiux-engineer": soloUiuxEngineerHandoffContract,
|
|
74969
75146
|
triage: soloTriageHandoffContract,
|
|
74970
75147
|
verifier: soloVerifierHandoffContract
|
|
@@ -75066,6 +75243,19 @@ var init_coordinator_game_asset_designer_chat = __esm(() => {
|
|
|
75066
75243
|
init_coordinator_game_asset_designer_code();
|
|
75067
75244
|
});
|
|
75068
75245
|
|
|
75246
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/coordinator-product-manager-code.ts
|
|
75247
|
+
function getCoordinatorProductManagerCodeTemplate(query) {
|
|
75248
|
+
return getEntryPointToProductManagerHandoffTemplate(query);
|
|
75249
|
+
}
|
|
75250
|
+
var init_coordinator_product_manager_code = __esm(() => {
|
|
75251
|
+
init_product_manager_handoff_templates();
|
|
75252
|
+
});
|
|
75253
|
+
|
|
75254
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/coordinator-product-manager-chat.ts
|
|
75255
|
+
var init_coordinator_product_manager_chat = __esm(() => {
|
|
75256
|
+
init_coordinator_product_manager_code();
|
|
75257
|
+
});
|
|
75258
|
+
|
|
75069
75259
|
// ../../services/backend/prompts/teams/trio/handoff-templates/coordinator-researcher-code.ts
|
|
75070
75260
|
function getCoordinatorResearcherCodeTemplate(query) {
|
|
75071
75261
|
return getEntryPointToResearcherHandoffTemplate(query);
|
|
@@ -75197,6 +75387,8 @@ var init_coordinator = __esm(() => {
|
|
|
75197
75387
|
init_coordinator_architect_code();
|
|
75198
75388
|
init_coordinator_game_asset_designer_chat();
|
|
75199
75389
|
init_coordinator_game_asset_designer_code();
|
|
75390
|
+
init_coordinator_product_manager_chat();
|
|
75391
|
+
init_coordinator_product_manager_code();
|
|
75200
75392
|
init_coordinator_researcher_chat();
|
|
75201
75393
|
init_coordinator_researcher_code();
|
|
75202
75394
|
init_coordinator_reviewer_chat();
|
|
@@ -75218,6 +75410,7 @@ var init_coordinator = __esm(() => {
|
|
|
75218
75410
|
"user",
|
|
75219
75411
|
"specifier",
|
|
75220
75412
|
"architect",
|
|
75413
|
+
"product-manager",
|
|
75221
75414
|
"uiux-engineer",
|
|
75222
75415
|
"triage",
|
|
75223
75416
|
"researcher",
|
|
@@ -75229,6 +75422,7 @@ var init_coordinator = __esm(() => {
|
|
|
75229
75422
|
"user",
|
|
75230
75423
|
"specifier",
|
|
75231
75424
|
"architect",
|
|
75425
|
+
"product-manager",
|
|
75232
75426
|
"uiux-engineer",
|
|
75233
75427
|
"triage",
|
|
75234
75428
|
"researcher",
|
|
@@ -75249,6 +75443,10 @@ var init_coordinator = __esm(() => {
|
|
|
75249
75443
|
chat: getCoordinatorArchitectCodeTemplate,
|
|
75250
75444
|
code: getCoordinatorArchitectCodeTemplate
|
|
75251
75445
|
}),
|
|
75446
|
+
"product-manager": handoffTemplateByMode({
|
|
75447
|
+
chat: getCoordinatorProductManagerCodeTemplate,
|
|
75448
|
+
code: getCoordinatorProductManagerCodeTemplate
|
|
75449
|
+
}),
|
|
75252
75450
|
"uiux-engineer": handoffTemplateByMode({
|
|
75253
75451
|
chat: getCoordinatorUiuxEngineerCodeTemplate,
|
|
75254
75452
|
code: getCoordinatorUiuxEngineerCodeTemplate
|
|
@@ -75309,6 +75507,38 @@ var init_game_asset_designer2 = __esm(() => {
|
|
|
75309
75507
|
};
|
|
75310
75508
|
});
|
|
75311
75509
|
|
|
75510
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/product-manager-coordinator-code.ts
|
|
75511
|
+
function getProductManagerCoordinatorCodeTemplate(query) {
|
|
75512
|
+
return getProductManagerToEntryPointHandoffTemplate(query);
|
|
75513
|
+
}
|
|
75514
|
+
var init_product_manager_coordinator_code = __esm(() => {
|
|
75515
|
+
init_product_manager_handoff_templates();
|
|
75516
|
+
});
|
|
75517
|
+
|
|
75518
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/product-manager-coordinator-chat.ts
|
|
75519
|
+
var init_product_manager_coordinator_chat = __esm(() => {
|
|
75520
|
+
init_product_manager_coordinator_code();
|
|
75521
|
+
});
|
|
75522
|
+
|
|
75523
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/product-manager.ts
|
|
75524
|
+
var trioProductManagerHandoffContract;
|
|
75525
|
+
var init_product_manager3 = __esm(() => {
|
|
75526
|
+
init_product_manager_coordinator_chat();
|
|
75527
|
+
init_product_manager_coordinator_code();
|
|
75528
|
+
init_contracts();
|
|
75529
|
+
trioProductManagerHandoffContract = {
|
|
75530
|
+
role: "product-manager",
|
|
75531
|
+
receivesFrom: ["coordinator"],
|
|
75532
|
+
returnsTo: ["coordinator"],
|
|
75533
|
+
outboundTemplates: {
|
|
75534
|
+
coordinator: handoffTemplateByMode({
|
|
75535
|
+
chat: getProductManagerCoordinatorCodeTemplate,
|
|
75536
|
+
code: getProductManagerCoordinatorCodeTemplate
|
|
75537
|
+
})
|
|
75538
|
+
}
|
|
75539
|
+
};
|
|
75540
|
+
});
|
|
75541
|
+
|
|
75312
75542
|
// ../../services/backend/prompts/teams/trio/handoff-templates/researcher-coordinator-code.ts
|
|
75313
75543
|
function getResearcherCoordinatorCodeTemplate(query) {
|
|
75314
75544
|
return getResearcherToEntryPointHandoffTemplate(query);
|
|
@@ -75596,6 +75826,7 @@ var init_handoff_templates3 = __esm(() => {
|
|
|
75596
75826
|
init_builder2();
|
|
75597
75827
|
init_coordinator();
|
|
75598
75828
|
init_game_asset_designer2();
|
|
75829
|
+
init_product_manager3();
|
|
75599
75830
|
init_researcher2();
|
|
75600
75831
|
init_reviewer2();
|
|
75601
75832
|
init_specifier();
|
|
@@ -75608,6 +75839,7 @@ var init_handoff_templates3 = __esm(() => {
|
|
|
75608
75839
|
specifier: trioSpecifierHandoffContract,
|
|
75609
75840
|
builder: trioBuilderHandoffContract,
|
|
75610
75841
|
architect: trioArchitectHandoffContract,
|
|
75842
|
+
"product-manager": trioProductManagerHandoffContract,
|
|
75611
75843
|
researcher: trioResearcherHandoffContract,
|
|
75612
75844
|
reviewer: trioReviewerHandoffContract,
|
|
75613
75845
|
"uiux-engineer": trioUiuxEngineerHandoffContract,
|
|
@@ -76252,6 +76484,33 @@ var init_planner2 = __esm(() => {
|
|
|
76252
76484
|
init_sections();
|
|
76253
76485
|
});
|
|
76254
76486
|
|
|
76487
|
+
// ../../services/backend/prompts/cli/roles/product-manager.ts
|
|
76488
|
+
var PRODUCT_MANAGER_GUIDANCE;
|
|
76489
|
+
var init_product_manager4 = __esm(() => {
|
|
76490
|
+
init_sections();
|
|
76491
|
+
PRODUCT_MANAGER_GUIDANCE = `## Product Manager Operating Model
|
|
76492
|
+
|
|
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.
|
|
76494
|
+
|
|
76495
|
+
${"{SESSION_CONTINUITY}"}
|
|
76496
|
+
|
|
76497
|
+
${getInterRoleHandoffRule()}
|
|
76498
|
+
|
|
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, list what is unclear instead of guessing.
|
|
76500
|
+
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. Never propose scope that contradicts existing behavior without flagging it as a decision for the user.
|
|
76502
|
+
4. Write user stories in the form "As a <user>, I want <capability>, so that <outcome>", each with testable acceptance criteria.
|
|
76503
|
+
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. List every open question for the user with the options, the consequence of each, and a recommended default. Do not answer product decisions that belong to the user.
|
|
76505
|
+
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
|
+
8. Write the spec using the sections in the injected \`<handoff-templates>\`, in the order given, beginning with the \`## Summary\` section.
|
|
76507
|
+
9. Hand the spec to \`{ENTRY_POINT_ROLE}\` with the normal command, then stop. You cannot contact other roles directly.
|
|
76508
|
+
|
|
76509
|
+
\`\`\`bash
|
|
76510
|
+
chatroom handoff --chatroom-id="<chatroom-id>" --role="product-manager" --next-role="{ENTRY_POINT_ROLE}"
|
|
76511
|
+
\`\`\``;
|
|
76512
|
+
});
|
|
76513
|
+
|
|
76255
76514
|
// ../../services/backend/prompts/cli/roles/researcher.ts
|
|
76256
76515
|
var RESEARCHER_GUIDANCE;
|
|
76257
76516
|
var init_researcher3 = __esm(() => {
|
|
@@ -76393,10 +76652,14 @@ var init_planner_guidance_context = __esm(() => {
|
|
|
76393
76652
|
init_env();
|
|
76394
76653
|
});
|
|
76395
76654
|
|
|
76655
|
+
// ../../services/backend/prompts/teams/entry-point-coordination-gates.ts
|
|
76656
|
+
var init_entry_point_coordination_gates = () => {};
|
|
76657
|
+
|
|
76396
76658
|
// ../../services/backend/prompts/teams/solo/prompts/solo.ts
|
|
76397
76659
|
var init_solo2 = __esm(() => {
|
|
76398
76660
|
init_planner_guidance_context();
|
|
76399
76661
|
init_sections();
|
|
76662
|
+
init_entry_point_coordination_gates();
|
|
76400
76663
|
});
|
|
76401
76664
|
|
|
76402
76665
|
// ../../services/backend/prompts/teams/solo/prompts/fromContext.ts
|
|
@@ -76410,6 +76673,7 @@ var init_fromContext2 = __esm(() => {
|
|
|
76410
76673
|
init_builder3();
|
|
76411
76674
|
init_game_asset_designer3();
|
|
76412
76675
|
init_planner2();
|
|
76676
|
+
init_product_manager4();
|
|
76413
76677
|
init_researcher3();
|
|
76414
76678
|
init_reviewer3();
|
|
76415
76679
|
init_triage4();
|
|
@@ -76423,10 +76687,12 @@ var init_fromContext2 = __esm(() => {
|
|
|
76423
76687
|
var init_builder4 = __esm(() => {
|
|
76424
76688
|
init_builder3();
|
|
76425
76689
|
});
|
|
76690
|
+
|
|
76426
76691
|
// ../../services/backend/prompts/teams/duo/prompts/planner.ts
|
|
76427
76692
|
var init_planner3 = __esm(() => {
|
|
76428
76693
|
init_planner_guidance_context();
|
|
76429
76694
|
init_sections();
|
|
76695
|
+
init_entry_point_coordination_gates();
|
|
76430
76696
|
});
|
|
76431
76697
|
|
|
76432
76698
|
// ../../services/backend/prompts/teams/duo/prompts/fromContext.ts
|
|
@@ -76445,6 +76711,7 @@ var init_coordinator2 = __esm(() => {
|
|
|
76445
76711
|
init_agent_role();
|
|
76446
76712
|
init_planner_guidance_context();
|
|
76447
76713
|
init_sections();
|
|
76714
|
+
init_entry_point_coordination_gates();
|
|
76448
76715
|
});
|
|
76449
76716
|
|
|
76450
76717
|
// ../../services/backend/prompts/teams/trio/prompts/specifier.ts
|
|
@@ -76558,6 +76825,20 @@ var init_templates = __esm(() => {
|
|
|
76558
76825
|
],
|
|
76559
76826
|
defaultHandoffTarget: "planner"
|
|
76560
76827
|
},
|
|
76828
|
+
"product-manager": {
|
|
76829
|
+
role: "product-manager",
|
|
76830
|
+
title: "Product Manager",
|
|
76831
|
+
description: "You are the product manager responsible for producing one product specification (user stories with acceptance criteria and an explicit in-scope and out-of-scope decision) that is feature complete and consistent with existing app behavior; you are not an implementer.",
|
|
76832
|
+
responsibilities: [
|
|
76833
|
+
"Recover the authoritative feature request and the problem it solves",
|
|
76834
|
+
"Inspect the existing app behavior, docs, and decision records the feature touches",
|
|
76835
|
+
"Write user stories with testable acceptance criteria",
|
|
76836
|
+
"Decide scope explicitly: in scope, out of scope, and the gaps an incomplete scope would leave",
|
|
76837
|
+
"Flag conflicts with existing behavior and list open questions for the user instead of guessing",
|
|
76838
|
+
"Hand one product specification back to the role that activated you"
|
|
76839
|
+
],
|
|
76840
|
+
defaultHandoffTarget: "planner"
|
|
76841
|
+
},
|
|
76561
76842
|
reviewer: {
|
|
76562
76843
|
role: "reviewer",
|
|
76563
76844
|
title: "Reviewer",
|
|
@@ -123903,4 +124184,4 @@ program2.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
|
123903
124184
|
});
|
|
123904
124185
|
program2.parse();
|
|
123905
124186
|
|
|
123906
|
-
//# debugId=
|
|
124187
|
+
//# debugId=90CD4346AAE69F5264756E2164756E21
|