chatroom-cli 1.139.0 → 1.141.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/README.md +2 -1
- package/dist/index.js +849 -100
- package/dist/index.js.map +106 -52
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -33143,7 +33143,7 @@ var init_reliability = __esm(() => {
|
|
|
33143
33143
|
// ../shared/src/domain/team-kind.ts
|
|
33144
33144
|
var TEAM_PRESET_IDS;
|
|
33145
33145
|
var init_team_kind = __esm(() => {
|
|
33146
|
-
TEAM_PRESET_IDS = ["duo", "solo"];
|
|
33146
|
+
TEAM_PRESET_IDS = ["duo", "solo", "trio"];
|
|
33147
33147
|
});
|
|
33148
33148
|
|
|
33149
33149
|
// ../shared/src/domain/agent-role.ts
|
|
@@ -33250,9 +33250,16 @@ var init_agent_role = __esm(() => {
|
|
|
33250
33250
|
tags: ["permanent" /* Permanent */],
|
|
33251
33251
|
teams: [{ teamId: "duo", order: 10 }]
|
|
33252
33252
|
},
|
|
33253
|
+
coordinator: {
|
|
33254
|
+
tags: ["permanent" /* Permanent */],
|
|
33255
|
+
teams: [{ teamId: "trio", order: 10 }]
|
|
33256
|
+
},
|
|
33253
33257
|
builder: {
|
|
33254
33258
|
tags: ["permanent" /* Permanent */],
|
|
33255
|
-
teams: [
|
|
33259
|
+
teams: [
|
|
33260
|
+
{ teamId: "duo", order: 50 },
|
|
33261
|
+
{ teamId: "trio", order: 50 }
|
|
33262
|
+
]
|
|
33256
33263
|
},
|
|
33257
33264
|
solo: {
|
|
33258
33265
|
tags: ["permanent" /* Permanent */],
|
|
@@ -33262,41 +33269,58 @@ var init_agent_role = __esm(() => {
|
|
|
33262
33269
|
tags: ["ephemeral" /* Ephemeral */],
|
|
33263
33270
|
teams: [
|
|
33264
33271
|
{ teamId: "duo", order: 20 },
|
|
33265
|
-
{ teamId: "solo", order: 20 }
|
|
33272
|
+
{ teamId: "solo", order: 20 },
|
|
33273
|
+
{ teamId: "trio", order: 20 }
|
|
33266
33274
|
]
|
|
33267
33275
|
},
|
|
33268
33276
|
triage: {
|
|
33269
33277
|
tags: ["ephemeral" /* Ephemeral */],
|
|
33270
33278
|
teams: [
|
|
33271
33279
|
{ teamId: "duo", order: 30 },
|
|
33272
|
-
{ teamId: "solo", order: 30 }
|
|
33280
|
+
{ teamId: "solo", order: 30 },
|
|
33281
|
+
{ teamId: "trio", order: 30 }
|
|
33273
33282
|
]
|
|
33274
33283
|
},
|
|
33275
33284
|
"uiux-engineer": {
|
|
33276
33285
|
tags: ["ephemeral" /* Ephemeral */],
|
|
33277
33286
|
teams: [
|
|
33278
33287
|
{ teamId: "duo", order: 40 },
|
|
33279
|
-
{ teamId: "solo", order: 40 }
|
|
33288
|
+
{ teamId: "solo", order: 40 },
|
|
33289
|
+
{ teamId: "trio", order: 40 }
|
|
33280
33290
|
]
|
|
33281
33291
|
},
|
|
33282
33292
|
researcher: {
|
|
33283
33293
|
tags: ["ephemeral" /* Ephemeral */],
|
|
33284
|
-
teams: [
|
|
33294
|
+
teams: [
|
|
33295
|
+
{ teamId: "duo", order: 25 },
|
|
33296
|
+
{ teamId: "trio", order: 25 }
|
|
33297
|
+
]
|
|
33285
33298
|
},
|
|
33286
33299
|
verifier: {
|
|
33287
33300
|
tags: ["ephemeral" /* Ephemeral */],
|
|
33288
33301
|
teams: [
|
|
33289
33302
|
{ teamId: "duo", order: 45 },
|
|
33290
|
-
{ teamId: "solo", order: 45 }
|
|
33303
|
+
{ teamId: "solo", order: 45 },
|
|
33304
|
+
{ teamId: "trio", order: 45 }
|
|
33291
33305
|
]
|
|
33292
33306
|
},
|
|
33293
33307
|
reviewer: {
|
|
33294
33308
|
tags: ["ephemeral" /* Ephemeral */],
|
|
33295
|
-
teams: [
|
|
33309
|
+
teams: [
|
|
33310
|
+
{ teamId: "duo", order: 35 },
|
|
33311
|
+
{ teamId: "trio", order: 35 }
|
|
33312
|
+
]
|
|
33296
33313
|
},
|
|
33297
33314
|
"game-asset-designer": {
|
|
33298
33315
|
tags: ["ephemeral" /* Ephemeral */],
|
|
33299
|
-
teams: [
|
|
33316
|
+
teams: [
|
|
33317
|
+
{ teamId: "duo", order: 42 },
|
|
33318
|
+
{ teamId: "trio", order: 42 }
|
|
33319
|
+
]
|
|
33320
|
+
},
|
|
33321
|
+
specifier: {
|
|
33322
|
+
tags: ["permanent" /* Permanent */],
|
|
33323
|
+
teams: [{ teamId: "trio", order: 48 }]
|
|
33300
33324
|
}
|
|
33301
33325
|
};
|
|
33302
33326
|
AGENT_ROLE_DEFINITIONS = Object.fromEntries(Object.entries(roleMetadata).map(([role, metadata]) => [role, { role, ...metadata }]));
|
|
@@ -49267,12 +49291,9 @@ class NativeTaskDeliveryQueue {
|
|
|
49267
49291
|
var roleKey2 = (chatroomId, role) => `${chatroomId}:${role.toLowerCase()}`;
|
|
49268
49292
|
|
|
49269
49293
|
// ../shared/src/domain/conversation-mode.ts
|
|
49270
|
-
function legacyConversationMode(plannerEnhancerEnabled) {
|
|
49271
|
-
return plannerEnhancerEnabled ? "code:enhanced" : "code";
|
|
49272
|
-
}
|
|
49273
49294
|
var CONVERSATION_MODES;
|
|
49274
49295
|
var init_conversation_mode = __esm(() => {
|
|
49275
|
-
CONVERSATION_MODES = ["chat", "code"
|
|
49296
|
+
CONVERSATION_MODES = ["chat", "code"];
|
|
49276
49297
|
});
|
|
49277
49298
|
|
|
49278
49299
|
// ../shared/src/domain/task-envelope.ts
|
|
@@ -49348,7 +49369,7 @@ function deriveLegacyMode(input) {
|
|
|
49348
49369
|
assertConversationMode(rawMode, "normalizeTaskEnvelope");
|
|
49349
49370
|
return rawMode;
|
|
49350
49371
|
}
|
|
49351
|
-
return
|
|
49372
|
+
return "code";
|
|
49352
49373
|
}
|
|
49353
49374
|
function deriveLegacySession(startInNewSession) {
|
|
49354
49375
|
return startInNewSession === true ? "new" : "continue";
|
|
@@ -49365,18 +49386,12 @@ function normalizeTaskEnvelope(input) {
|
|
|
49365
49386
|
var TASK_ENVELOPE_VERSION = 1, HANDOFF_WORKFLOW_PRESETS, HANDOFF_WORKFLOW_PHASES, TASK_SESSION_POLICIES, MODE_DEFAULT_PRESET;
|
|
49366
49387
|
var init_task_envelope = __esm(() => {
|
|
49367
49388
|
init_conversation_mode();
|
|
49368
|
-
HANDOFF_WORKFLOW_PRESETS = ["direct", "team"
|
|
49369
|
-
HANDOFF_WORKFLOW_PHASES = [
|
|
49370
|
-
"entry",
|
|
49371
|
-
"enhancement",
|
|
49372
|
-
"implementation",
|
|
49373
|
-
"delivery"
|
|
49374
|
-
];
|
|
49389
|
+
HANDOFF_WORKFLOW_PRESETS = ["direct", "team"];
|
|
49390
|
+
HANDOFF_WORKFLOW_PHASES = ["entry", "implementation", "delivery"];
|
|
49375
49391
|
TASK_SESSION_POLICIES = ["continue", "new"];
|
|
49376
49392
|
MODE_DEFAULT_PRESET = {
|
|
49377
49393
|
chat: "direct",
|
|
49378
|
-
code: "team"
|
|
49379
|
-
"code:enhanced": "enhanced-team"
|
|
49394
|
+
code: "team"
|
|
49380
49395
|
};
|
|
49381
49396
|
});
|
|
49382
49397
|
|
|
@@ -72374,11 +72389,7 @@ var init_get_next_task = __esm(() => {
|
|
|
72374
72389
|
// ../shared/src/domain/team-presets.ts
|
|
72375
72390
|
function getTeamPresetId(teamId) {
|
|
72376
72391
|
const normalized = teamId.trim().toLowerCase();
|
|
72377
|
-
|
|
72378
|
-
return "duo";
|
|
72379
|
-
if (normalized === "solo" || normalized === TEAM_STRUCTURE_IDS.solo)
|
|
72380
|
-
return "solo";
|
|
72381
|
-
return;
|
|
72392
|
+
return TEAM_PRESET_IDS.find((id) => normalized === id || normalized === TEAM_STRUCTURE_IDS[id]);
|
|
72382
72393
|
}
|
|
72383
72394
|
function getTeamPreset(teamId) {
|
|
72384
72395
|
const presetId = getTeamPresetId(teamId);
|
|
@@ -72394,7 +72405,8 @@ var init_team_presets = __esm(() => {
|
|
|
72394
72405
|
init_team_kind();
|
|
72395
72406
|
TEAM_STRUCTURE_IDS = {
|
|
72396
72407
|
duo: "duo@1",
|
|
72397
|
-
solo: "solo@1"
|
|
72408
|
+
solo: "solo@1",
|
|
72409
|
+
trio: "trio@1"
|
|
72398
72410
|
};
|
|
72399
72411
|
TEAM_PRESETS = {
|
|
72400
72412
|
duo: {
|
|
@@ -72402,14 +72414,32 @@ var init_team_presets = __esm(() => {
|
|
|
72402
72414
|
name: "Duo",
|
|
72403
72415
|
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",
|
|
72404
72416
|
roles: getBuiltinRolesForTeam("duo"),
|
|
72405
|
-
entryPoint: "planner"
|
|
72417
|
+
entryPoint: "planner",
|
|
72418
|
+
handoffGraph: "advisory",
|
|
72419
|
+
handoffSessionRules: []
|
|
72406
72420
|
},
|
|
72407
72421
|
solo: {
|
|
72408
72422
|
structureId: TEAM_STRUCTURE_IDS.solo,
|
|
72409
72423
|
name: "Solo",
|
|
72410
72424
|
description: "A single agent working independently, with optional ephemeral architect, triage, uiux-engineer, and verifier roles",
|
|
72411
72425
|
roles: getBuiltinRolesForTeam("solo"),
|
|
72412
|
-
entryPoint: "solo"
|
|
72426
|
+
entryPoint: "solo",
|
|
72427
|
+
handoffGraph: "advisory",
|
|
72428
|
+
handoffSessionRules: []
|
|
72429
|
+
},
|
|
72430
|
+
trio: {
|
|
72431
|
+
structureId: TEAM_STRUCTURE_IDS.trio,
|
|
72432
|
+
name: "Trio",
|
|
72433
|
+
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",
|
|
72434
|
+
roles: getBuiltinRolesForTeam("trio"),
|
|
72435
|
+
entryPoint: "coordinator",
|
|
72436
|
+
handoffGraph: "enforced",
|
|
72437
|
+
handoffSessionRules: [
|
|
72438
|
+
{ from: "coordinator", to: "specifier", sessionPolicy: "new" },
|
|
72439
|
+
{ from: "builder", to: "specifier", sessionPolicy: "continue" },
|
|
72440
|
+
{ from: "specifier", to: "builder", sessionPolicy: "new" },
|
|
72441
|
+
{ from: "*", to: "coordinator", sessionPolicy: "continue" }
|
|
72442
|
+
]
|
|
72413
72443
|
}
|
|
72414
72444
|
};
|
|
72415
72445
|
});
|
|
@@ -72656,7 +72686,7 @@ function unknownModeMessage(mode) {
|
|
|
72656
72686
|
}
|
|
72657
72687
|
function legacyRoleFlagsMessage(command, input) {
|
|
72658
72688
|
const header = `handoff ${command} no longer accepts --role/--next-role. Handoff templates are keyed by the (sender, recipient) pair.`;
|
|
72659
|
-
const modeArg = input.mode ?? "<chat|code
|
|
72689
|
+
const modeArg = input.mode ?? "<chat|code>";
|
|
72660
72690
|
if (input.legacyRole !== undefined && input.legacyNextRole !== undefined) {
|
|
72661
72691
|
return [
|
|
72662
72692
|
header,
|
|
@@ -73022,12 +73052,13 @@ var init_architect = __esm(() => {
|
|
|
73022
73052
|
var CODE_CHANGE_VERIFICATION_CONFIRMATION = "- [ ] I confirm that I have run typecheck and tests for the project (only required if code changes were made)";
|
|
73023
73053
|
|
|
73024
73054
|
// ../../services/backend/prompts/utils/delegation-disclosure.ts
|
|
73025
|
-
function getDelegationBriefDisclosureComment() {
|
|
73026
|
-
return `<!-- Reference the ## Goal and ## Requirements (acceptance criteria) sections from the
|
|
73055
|
+
function getDelegationBriefDisclosureComment(briefSourceRole) {
|
|
73056
|
+
return `<!-- Reference the ## Goal and ## Requirements (acceptance criteria) sections from the ${briefSourceRole} handoff you received. State the delegation goal and confirm it was achieved. -->`;
|
|
73027
73057
|
}
|
|
73028
|
-
function getDelegationBriefDisclosureBlock() {
|
|
73058
|
+
function getDelegationBriefDisclosureBlock(options) {
|
|
73059
|
+
const { briefSourceRole } = options;
|
|
73029
73060
|
return `${DELEGATION_BRIEF_DISCLOSURE_CHECKBOX}
|
|
73030
|
-
${getDelegationBriefDisclosureComment()}`;
|
|
73061
|
+
${getDelegationBriefDisclosureComment(briefSourceRole)}`;
|
|
73031
73062
|
}
|
|
73032
73063
|
var DELEGATION_BRIEF_DISCLOSURE_CHECKBOX = "- [ ] I confirm the delegation brief is fully met: all (Required) files done, verified end-to-end, acceptance criteria pass";
|
|
73033
73064
|
|
|
@@ -73118,8 +73149,16 @@ ${getRoleGuidanceDisclosureComment(params)}`;
|
|
|
73118
73149
|
var ROLE_GUIDANCE_DISCLOSURE_CHECKBOX = "- [ ] I confirm that I've read and followed the role guidance before starting any work";
|
|
73119
73150
|
var init_role_guidance_disclosure = () => {};
|
|
73120
73151
|
|
|
73121
|
-
// ../../services/backend/prompts/teams/
|
|
73122
|
-
function
|
|
73152
|
+
// ../../services/backend/prompts/teams/builder-handback-handoff-templates.ts
|
|
73153
|
+
function getBuilderHandbackTemplate(query) {
|
|
73154
|
+
const recipientRole = query.toRole;
|
|
73155
|
+
return getBuilderHandbackBody({
|
|
73156
|
+
chatroomId: query.chatroomId,
|
|
73157
|
+
role: query.role,
|
|
73158
|
+
cliEnvPrefix: query.cliEnvPrefix
|
|
73159
|
+
}, recipientRole);
|
|
73160
|
+
}
|
|
73161
|
+
function getBuilderHandbackBody(roleGuidanceContext, recipientRole) {
|
|
73123
73162
|
return `${getHandoffReportTemplateIntro()}
|
|
73124
73163
|
|
|
73125
73164
|
\`\`\`markdown
|
|
@@ -73133,7 +73172,7 @@ ${getRoleGuidanceDisclosureBlock(roleGuidanceContext)}
|
|
|
73133
73172
|
${getHandoffQualityPrinciplesSectionBlock()}
|
|
73134
73173
|
|
|
73135
73174
|
## Proof of Completion
|
|
73136
|
-
${getDelegationBriefDisclosureBlock()}
|
|
73175
|
+
${getDelegationBriefDisclosureBlock({ briefSourceRole: recipientRole })}
|
|
73137
73176
|
${getFileReferenceProofOfCompletionExample()}
|
|
73138
73177
|
<evidence the goal was met — list every file you modified; for each behavior the brief's \`## Test seams\` section names a seam for: the test name, the seam it calls, the failure output observed before the implementation, and the passing output after>
|
|
73139
73178
|
|
|
@@ -73142,23 +73181,24 @@ ${CODE_CHANGE_VERIFICATION_CONFIRMATION}
|
|
|
73142
73181
|
|
|
73143
73182
|
## Blockers / questions
|
|
73144
73183
|
${getHandoffNotApplicableSectionComment("List blockers")}
|
|
73145
|
-
<anything needing
|
|
73184
|
+
<anything needing ${recipientRole} decision>
|
|
73146
73185
|
|
|
73147
73186
|
## Notes for review
|
|
73148
73187
|
${getHandoffNotApplicableSectionComment("List review notes")}
|
|
73149
|
-
<specific areas for
|
|
73188
|
+
<specific areas for ${recipientRole} to check; any test written at a seam other than the one the brief's \`## Test seams\` section named, and why>
|
|
73150
73189
|
\`\`\``;
|
|
73151
73190
|
}
|
|
73191
|
+
var init_builder_handback_handoff_templates = __esm(() => {
|
|
73192
|
+
init_handoff_quality_principles();
|
|
73193
|
+
init_role_guidance_disclosure();
|
|
73194
|
+
});
|
|
73195
|
+
|
|
73196
|
+
// ../../services/backend/prompts/teams/duo/handoff-templates/builder-planner-code.ts
|
|
73152
73197
|
function getBuilderPlannerCodeTemplate(query) {
|
|
73153
|
-
return
|
|
73154
|
-
chatroomId: query.chatroomId,
|
|
73155
|
-
role: query.role,
|
|
73156
|
-
cliEnvPrefix: query.cliEnvPrefix
|
|
73157
|
-
});
|
|
73198
|
+
return getBuilderHandbackTemplate(query);
|
|
73158
73199
|
}
|
|
73159
73200
|
var init_builder_planner_code = __esm(() => {
|
|
73160
|
-
|
|
73161
|
-
init_role_guidance_disclosure();
|
|
73201
|
+
init_builder_handback_handoff_templates();
|
|
73162
73202
|
});
|
|
73163
73203
|
|
|
73164
73204
|
// ../../services/backend/prompts/teams/duo/handoff-templates/builder-planner-chat.ts
|
|
@@ -73297,7 +73337,7 @@ ${formatProofOfPrinciples()}
|
|
|
73297
73337
|
## Proof of Completion
|
|
73298
73338
|
- [ ] <one checkbox per acceptance criterion; state the evidence label required (measured or inspected)>
|
|
73299
73339
|
|
|
73300
|
-
Instructions after the body (not part of the message): the
|
|
73340
|
+
Instructions after the body (not part of the message): the ${entryPoint} may append extra Proof of Principles lines if needed. Run the normal handoff command to \`game-asset-designer\` with the complete body above, then stop. Use this template only under the conditions below; the body above ends at \`## Proof of Completion\`.
|
|
73301
73341
|
|
|
73302
73342
|
### When to use the game asset designer
|
|
73303
73343
|
- the request creates or changes any asset file: game art or audio (models, textures, sprites, UI art, sound effects), or non-game UI icons and illustrations;
|
|
@@ -73317,7 +73357,7 @@ ${handoffCommand({
|
|
|
73317
73357
|
}
|
|
73318
73358
|
function getGameAssetDesignerToEntryPointHandoffTemplate(query) {
|
|
73319
73359
|
const entryPoint = query.toRole;
|
|
73320
|
-
return `Instructions (not part of the message): Return a complete asset delivery report for the request the
|
|
73360
|
+
return `Instructions (not part of the message): Return a complete asset delivery report for the request the ${entryPoint} named. Label every checked property with one evidence label: ${GAME_ASSET_EVIDENCE_LABEL_LIST}. Definitions: ${GAME_ASSET_EVIDENCE_DEFINITIONS} ${GAME_ASSET_NEVER_CLAIM_RULE} ${GAME_ASSET_RESULT_RULE} Write only under the named output location and the named edit paths. In \`spec only\` you write no files. If you are blocked, send the same sections with Summary starting \`Blocked:\` and every section you could not reach written as \`Not started.\`
|
|
73321
73361
|
|
|
73322
73362
|
## Summary
|
|
73323
73363
|
<one to three sentences: what was delivered, whether it is spec only or includes files, and the count of \`fail\` and \`not checked\` items>
|
|
@@ -73335,13 +73375,13 @@ ${PROOF_OF_PRINCIPLES_REPORT}
|
|
|
73335
73375
|
- [ ] Every candidate in the brief has a decision with its licence and file sizes labelled \`inspected\`.
|
|
73336
73376
|
|
|
73337
73377
|
## Target and assumptions
|
|
73338
|
-
<each assumption you made and why; each deviation from the
|
|
73378
|
+
<each assumption you made and why; each deviation from the ${entryPoint}'s target or budgets; or \`None.\`>
|
|
73339
73379
|
|
|
73340
73380
|
## Free asset decisions
|
|
73341
73381
|
<one entry per candidate in the brief: pack name, licence quoted from the pack's own licence file, file sizes checked, decision (\`use\`, \`adapt\`, or \`reject\`), asset IDs covered, and the reason; for \`adapt\`, the edits made; write exactly \`None.\` if the brief named no candidates>
|
|
73342
73382
|
|
|
73343
73383
|
## Asset manifest
|
|
73344
|
-
<one entry per asset, keyed by the
|
|
73384
|
+
<one entry per asset, keyed by the ${entryPoint}'s stable ID (\`A01\`…): name, category, file format, path (or \`Specified only.\`), dimensions/units/scale, pivot, naming, LOD list with triangle budgets, texture set with resolution, color space and channel packing, atlas/pixel grid/frame data, audio format and loudness target, import settings, dependencies and variants; for each budget, the acceptance check (exact command and expected value); for each generated file, the command line the matching skill requires (model, seed, parameters, and any generator-specific flags), the sheet and tile manifests, and the isolated asset manifest path>
|
|
73345
73385
|
|
|
73346
73386
|
## Quality checklist results
|
|
73347
73387
|
<per asset: each applicable checklist item as \`pass\`, \`fail\`, \`n/a\`, or \`not checked\`, with its evidence label and, for \`measured\`, the command and value; write exactly \`None failed.\` after the list if no item failed>
|
|
@@ -73368,13 +73408,13 @@ Write exactly \`None.\` if no sheet was used.
|
|
|
73368
73408
|
<URLs for engine or platform rules relied on, with version or date checked>
|
|
73369
73409
|
|
|
73370
73410
|
## Open questions
|
|
73371
|
-
<each clarification needed from the
|
|
73411
|
+
<each clarification needed from the ${entryPoint} with a recommended default; write exactly \`None.\` if none>
|
|
73372
73412
|
|
|
73373
73413
|
## Not verified
|
|
73374
73414
|
<every property you could not measure or inspect; write exactly \`None.\` if none>
|
|
73375
73415
|
|
|
73376
73416
|
## Recommended next step
|
|
73377
|
-
<exactly one target: \`game-asset-designer\` (re-run with the listed asset IDs), \`builder\` (application logic outside the allowed edit paths), \`uiux-engineer\` (layout, component, or styling changes only, never asset files), or \`
|
|
73417
|
+
<exactly one target: \`game-asset-designer\` (re-run with the listed asset IDs), \`builder\` (application logic outside the allowed edit paths), \`uiux-engineer\` (layout, component, or styling changes only, never asset files), or \`${entryPoint}\` (decision needed on an open question); then the affected asset IDs>
|
|
73378
73418
|
|
|
73379
73419
|
Instructions after the body (not part of the message): run the normal handoff command to \`${entryPoint}\` with the complete body above, then stop.
|
|
73380
73420
|
|
|
@@ -73441,15 +73481,19 @@ var init_planner_architect_chat = __esm(() => {
|
|
|
73441
73481
|
init_planner_architect_code();
|
|
73442
73482
|
});
|
|
73443
73483
|
|
|
73444
|
-
// ../../services/backend/prompts/teams/
|
|
73445
|
-
function
|
|
73446
|
-
|
|
73447
|
-
|
|
73448
|
-
**Before you delegate:** if this slice introduces anything not yet grounded in the repository (a new library, API, external platform behavior, or an unresolved choice that depends on missing facts), hand off to \`researcher\` first and delegate only after its brief returns. Skip this when the \`researcher\` template's skip condition applies. The \`researcher\` handoff template defines the criteria.
|
|
73484
|
+
// ../../services/backend/prompts/teams/builder-delegation-handoff-templates.ts
|
|
73485
|
+
function getBuilderDelegationBriefTemplate(options) {
|
|
73486
|
+
const { delegatorRole, gatesOwner } = options;
|
|
73487
|
+
const prelude = gatesOwner === "self" ? `**Before you delegate:** if this slice introduces anything not yet grounded in the repository (a new library, API, external platform behavior, or an unresolved choice that depends on missing facts), hand off to \`researcher\` first and delegate only after its brief returns. Skip this when the \`researcher\` template's skip condition applies. The \`researcher\` handoff template defines the criteria.
|
|
73449
73488
|
|
|
73450
73489
|
**Bug fixes:** if this slice fixes a reported bug, delegate only after a \`triage\` report for that bug has returned, and build the brief from its root cause and proposed fix. The \`triage\` handoff template defines the investigation.
|
|
73451
73490
|
|
|
73452
|
-
**Division of labor:** For backend contract, API, or schema/persistence changes, the architect designs first and you delegate only after its design returns. You (
|
|
73491
|
+
**Division of labor:** For backend contract, API, or schema/persistence changes, the architect designs first and you delegate only after its design returns. You (${delegatorRole}) own slicing and sequencing of builder work. The UI/UX engineer owns UI/UX design. Include its target markup, classes, styles, and screen and flow drawings in UI implementation briefs; the builder implements the components.` : `**Before you delegate:** the \`${gatesOwner}\` clears research, triage, architecture, UI/UX, and asset gates before work reaches you. If a slice depends on a fact, design decision, or bug diagnosis that the work package does not settle, hand back to \`${gatesOwner}\` with the open question instead of guessing. Do not hand off to \`researcher\`, \`triage\`, \`architect\`, or any other specialist yourself.
|
|
73492
|
+
|
|
73493
|
+
**Division of labor:** You (${delegatorRole}) own turning the work package into file-level builder slices and sequencing them. Copy any UI/UX target markup, classes, styles, and drawings from the work package into UI implementation briefs; the builder implements the components.`;
|
|
73494
|
+
return `${getDelegationBriefIntro()}
|
|
73495
|
+
|
|
73496
|
+
${prelude}
|
|
73453
73497
|
|
|
73454
73498
|
**Detail bar:** Specify down to **every file** the builder will create or modify (full repo paths). Include code snippets — types, signatures, stubs, or target implementations — until a competent builder **cannot misinterpret** what to write. Vague layers ("update the backend", "fix the component") are not acceptable.
|
|
73455
73499
|
|
|
@@ -73492,7 +73536,7 @@ ${getFileReferenceGuidanceComment()}
|
|
|
73492
73536
|
|
|
73493
73537
|
(Add one ### block per file. If this slice touches only one file, still use the ### header.)
|
|
73494
73538
|
|
|
73495
|
-
## Shared contracts (
|
|
73539
|
+
## Shared contracts (${delegatorRole}-owned)
|
|
73496
73540
|
Cross-file types, interfaces, or patterns that apply beyond a single file. Omit if everything is already specified per-file above.
|
|
73497
73541
|
|
|
73498
73542
|
### Interfaces & types
|
|
@@ -73528,10 +73572,15 @@ Cross-file types, interfaces, or patterns that apply beyond a single file. Omit
|
|
|
73528
73572
|
|
|
73529
73573
|
\`\`\`\``;
|
|
73530
73574
|
}
|
|
73575
|
+
var init_builder_delegation_handoff_templates = () => {};
|
|
73576
|
+
|
|
73577
|
+
// ../../services/backend/prompts/teams/duo/handoff-templates/planner-builder-code.ts
|
|
73531
73578
|
function getPlannerBuilderCodeTemplate(_query) {
|
|
73532
|
-
return
|
|
73579
|
+
return getBuilderDelegationBriefTemplate({ delegatorRole: "planner", gatesOwner: "self" });
|
|
73533
73580
|
}
|
|
73534
|
-
var init_planner_builder_code = () => {
|
|
73581
|
+
var init_planner_builder_code = __esm(() => {
|
|
73582
|
+
init_builder_delegation_handoff_templates();
|
|
73583
|
+
});
|
|
73535
73584
|
|
|
73536
73585
|
// ../../services/backend/prompts/teams/duo/handoff-templates/planner-builder-chat.ts
|
|
73537
73586
|
var init_planner_builder_chat = __esm(() => {
|
|
@@ -73597,7 +73646,7 @@ function getResearcherToEntryPointHandoffTemplate(query) {
|
|
|
73597
73646
|
<one line per source: URL, the version or date checked, whether it is primary (official documentation, source code, changelog, release notes) or secondary, and the specific claim it supports; write exactly \`None consulted.\` if no external source was needed, and say why>
|
|
73598
73647
|
|
|
73599
73648
|
## Grounded facts for the plan
|
|
73600
|
-
<the facts the
|
|
73649
|
+
<the facts the ${entryPoint} can rely on when decomposing and delegating, each tagged confirmed or inferred>
|
|
73601
73650
|
|
|
73602
73651
|
## Remaining ambiguity
|
|
73603
73652
|
<each open decision, who must decide it, and a recommended default; write exactly \`None observed.\` if none remain>
|
|
@@ -73979,7 +74028,7 @@ function getEntryPointToVerifierHandoffTemplate(query) {
|
|
|
73979
74028
|
<1 or 2; for 2, cite the round-1 verdict message id>
|
|
73980
74029
|
|
|
73981
74030
|
## Mode
|
|
73982
|
-
<chat | code
|
|
74031
|
+
<chat | code>
|
|
73983
74032
|
|
|
73984
74033
|
## User message id
|
|
73985
74034
|
<id of the user's last message: the origin message id of the user task, or from \`chatroom messages anchor\`>
|
|
@@ -74781,6 +74830,649 @@ var init_handoff_templates2 = __esm(() => {
|
|
|
74781
74830
|
})();
|
|
74782
74831
|
});
|
|
74783
74832
|
|
|
74833
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/architect-coordinator-code.ts
|
|
74834
|
+
function getArchitectCoordinatorCodeTemplate(query) {
|
|
74835
|
+
return getArchitectToEntryPointHandoffTemplate(query);
|
|
74836
|
+
}
|
|
74837
|
+
var init_architect_coordinator_code = __esm(() => {
|
|
74838
|
+
init_architect_handoff_templates();
|
|
74839
|
+
});
|
|
74840
|
+
|
|
74841
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/architect-coordinator-chat.ts
|
|
74842
|
+
var init_architect_coordinator_chat = __esm(() => {
|
|
74843
|
+
init_architect_coordinator_code();
|
|
74844
|
+
});
|
|
74845
|
+
|
|
74846
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/architect.ts
|
|
74847
|
+
var trioArchitectHandoffContract;
|
|
74848
|
+
var init_architect3 = __esm(() => {
|
|
74849
|
+
init_architect_coordinator_chat();
|
|
74850
|
+
init_architect_coordinator_code();
|
|
74851
|
+
init_contracts();
|
|
74852
|
+
trioArchitectHandoffContract = {
|
|
74853
|
+
role: "architect",
|
|
74854
|
+
receivesFrom: ["coordinator"],
|
|
74855
|
+
returnsTo: ["coordinator"],
|
|
74856
|
+
outboundTemplates: {
|
|
74857
|
+
coordinator: handoffTemplateByMode({
|
|
74858
|
+
chat: getArchitectCoordinatorCodeTemplate,
|
|
74859
|
+
code: getArchitectCoordinatorCodeTemplate
|
|
74860
|
+
})
|
|
74861
|
+
}
|
|
74862
|
+
};
|
|
74863
|
+
});
|
|
74864
|
+
|
|
74865
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/builder-specifier-code.ts
|
|
74866
|
+
function getBuilderSpecifierCodeTemplate(query) {
|
|
74867
|
+
return getBuilderHandbackTemplate(query);
|
|
74868
|
+
}
|
|
74869
|
+
var init_builder_specifier_code = __esm(() => {
|
|
74870
|
+
init_builder_handback_handoff_templates();
|
|
74871
|
+
});
|
|
74872
|
+
|
|
74873
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/builder-specifier-chat.ts
|
|
74874
|
+
var init_builder_specifier_chat = __esm(() => {
|
|
74875
|
+
init_builder_specifier_code();
|
|
74876
|
+
});
|
|
74877
|
+
|
|
74878
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/builder.ts
|
|
74879
|
+
var trioBuilderHandoffContract;
|
|
74880
|
+
var init_builder2 = __esm(() => {
|
|
74881
|
+
init_builder_specifier_chat();
|
|
74882
|
+
init_builder_specifier_code();
|
|
74883
|
+
init_contracts();
|
|
74884
|
+
trioBuilderHandoffContract = {
|
|
74885
|
+
role: "builder",
|
|
74886
|
+
receivesFrom: ["specifier"],
|
|
74887
|
+
returnsTo: ["specifier"],
|
|
74888
|
+
outboundTemplates: {
|
|
74889
|
+
specifier: handoffTemplateByMode({
|
|
74890
|
+
chat: getBuilderSpecifierCodeTemplate,
|
|
74891
|
+
code: getBuilderSpecifierCodeTemplate
|
|
74892
|
+
})
|
|
74893
|
+
}
|
|
74894
|
+
};
|
|
74895
|
+
});
|
|
74896
|
+
|
|
74897
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/coordinator-architect-code.ts
|
|
74898
|
+
function getCoordinatorArchitectCodeTemplate(query) {
|
|
74899
|
+
return getEntryPointToArchitectHandoffTemplate(query);
|
|
74900
|
+
}
|
|
74901
|
+
var init_coordinator_architect_code = __esm(() => {
|
|
74902
|
+
init_architect_handoff_templates();
|
|
74903
|
+
});
|
|
74904
|
+
|
|
74905
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/coordinator-architect-chat.ts
|
|
74906
|
+
var init_coordinator_architect_chat = __esm(() => {
|
|
74907
|
+
init_coordinator_architect_code();
|
|
74908
|
+
});
|
|
74909
|
+
|
|
74910
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/coordinator-game-asset-designer-code.ts
|
|
74911
|
+
function getCoordinatorGameAssetDesignerCodeTemplate(query) {
|
|
74912
|
+
return getEntryPointToGameAssetDesignerHandoffTemplate(query);
|
|
74913
|
+
}
|
|
74914
|
+
var init_coordinator_game_asset_designer_code = __esm(() => {
|
|
74915
|
+
init_game_asset_designer_handoff_templates();
|
|
74916
|
+
});
|
|
74917
|
+
|
|
74918
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/coordinator-game-asset-designer-chat.ts
|
|
74919
|
+
var init_coordinator_game_asset_designer_chat = __esm(() => {
|
|
74920
|
+
init_coordinator_game_asset_designer_code();
|
|
74921
|
+
});
|
|
74922
|
+
|
|
74923
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/coordinator-researcher-code.ts
|
|
74924
|
+
function getCoordinatorResearcherCodeTemplate(query) {
|
|
74925
|
+
return getEntryPointToResearcherHandoffTemplate(query);
|
|
74926
|
+
}
|
|
74927
|
+
var init_coordinator_researcher_code = __esm(() => {
|
|
74928
|
+
init_researcher_handoff_templates();
|
|
74929
|
+
});
|
|
74930
|
+
|
|
74931
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/coordinator-researcher-chat.ts
|
|
74932
|
+
var init_coordinator_researcher_chat = __esm(() => {
|
|
74933
|
+
init_coordinator_researcher_code();
|
|
74934
|
+
});
|
|
74935
|
+
|
|
74936
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/coordinator-reviewer-code.ts
|
|
74937
|
+
function getCoordinatorReviewerCodeTemplate(query) {
|
|
74938
|
+
return getEntryPointToReviewerHandoffTemplate(query);
|
|
74939
|
+
}
|
|
74940
|
+
var init_coordinator_reviewer_code = __esm(() => {
|
|
74941
|
+
init_reviewer_handoff_templates();
|
|
74942
|
+
});
|
|
74943
|
+
|
|
74944
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/coordinator-reviewer-chat.ts
|
|
74945
|
+
var init_coordinator_reviewer_chat = __esm(() => {
|
|
74946
|
+
init_coordinator_reviewer_code();
|
|
74947
|
+
});
|
|
74948
|
+
|
|
74949
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/coordinator-specifier-code.ts
|
|
74950
|
+
function getCoordinatorSpecifierCodeTemplate(_query) {
|
|
74951
|
+
return `Instructions (not part of the message): Delegate ONE work package to the \`specifier\`. The specifier turns it into file-level builder slices, drives the builder through every build pass, and hands one consolidated report back to you. Clear every required gate first (researcher, triage, architect, uiux-engineer, game-asset-designer) and include the decisions from their briefs, citing message ids — the specifier cannot contact those roles. Do not write file-level code instructions yourself; state outcomes, constraints, and acceptance criteria. Each package starts the specifier in a fresh session: include everything it needs, or name the message ids it must read with \`chatroom messages download\`.
|
|
74952
|
+
|
|
74953
|
+
${getDelegationBriefIntro()}
|
|
74954
|
+
|
|
74955
|
+
\`\`\`markdown
|
|
74956
|
+
## Summary
|
|
74957
|
+
<the user's intent in plain terms and where this package fits in the larger task>
|
|
74958
|
+
|
|
74959
|
+
## Goal
|
|
74960
|
+
<one sentence: the outcome this work package delivers>
|
|
74961
|
+
|
|
74962
|
+
## User requirements
|
|
74963
|
+
<the user's requirements and constraints, quoted or paraphrased, each with its source message id>
|
|
74964
|
+
|
|
74965
|
+
## Inputs from specialists
|
|
74966
|
+
<for each architect / researcher / triage / uiux-engineer / game-asset-designer brief this package depends on: message id and the decisions to adopt; or \`None.\`>
|
|
74967
|
+
${getFileReferenceGuidanceComment()}
|
|
74968
|
+
|
|
74969
|
+
## Scope
|
|
74970
|
+
- In scope: <surfaces and behaviors>
|
|
74971
|
+
- Out of scope: <surfaces the specifier and builder must not touch>
|
|
74972
|
+
|
|
74973
|
+
## Rework findings (prior round)
|
|
74974
|
+
<message id of the specifier, reviewer, or verifier report and the blocking findings to fix (paste each with file and line where known); or \`None.\`>
|
|
74975
|
+
|
|
74976
|
+
## Acceptance criteria
|
|
74977
|
+
- <verifiable outcome; include at least one end-to-end check>
|
|
74978
|
+
|
|
74979
|
+
## Delivery expectations
|
|
74980
|
+
<commit, branch, push, and PR expectations from the user; or \`None stated.\`>
|
|
74981
|
+
|
|
74982
|
+
## History pointers
|
|
74983
|
+
<message ids or a \`--since-message-id\` anchor the specifier should download for context; or \`None.\`>
|
|
74984
|
+
\`\`\``;
|
|
74985
|
+
}
|
|
74986
|
+
var init_coordinator_specifier_code = () => {};
|
|
74987
|
+
|
|
74988
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/coordinator-specifier-chat.ts
|
|
74989
|
+
var init_coordinator_specifier_chat = __esm(() => {
|
|
74990
|
+
init_coordinator_specifier_code();
|
|
74991
|
+
});
|
|
74992
|
+
|
|
74993
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/coordinator-triage-code.ts
|
|
74994
|
+
function getCoordinatorTriageCodeTemplate(query) {
|
|
74995
|
+
return getEntryPointToTriageHandoffTemplate(query);
|
|
74996
|
+
}
|
|
74997
|
+
var init_coordinator_triage_code = __esm(() => {
|
|
74998
|
+
init_triage_handoff_templates();
|
|
74999
|
+
});
|
|
75000
|
+
|
|
75001
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/coordinator-triage-chat.ts
|
|
75002
|
+
var init_coordinator_triage_chat = __esm(() => {
|
|
75003
|
+
init_coordinator_triage_code();
|
|
75004
|
+
});
|
|
75005
|
+
|
|
75006
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/coordinator-uiux-engineer-code.ts
|
|
75007
|
+
function getCoordinatorUiuxEngineerCodeTemplate(query) {
|
|
75008
|
+
return getEntryPointToUiuxEngineerHandoffTemplate(query);
|
|
75009
|
+
}
|
|
75010
|
+
var init_coordinator_uiux_engineer_code = __esm(() => {
|
|
75011
|
+
init_uiux_engineer_handoff_templates();
|
|
75012
|
+
});
|
|
75013
|
+
|
|
75014
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/coordinator-uiux-engineer-chat.ts
|
|
75015
|
+
var init_coordinator_uiux_engineer_chat = __esm(() => {
|
|
75016
|
+
init_coordinator_uiux_engineer_code();
|
|
75017
|
+
});
|
|
75018
|
+
|
|
75019
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/coordinator-user-chat.ts
|
|
75020
|
+
var init_coordinator_user_chat = () => {};
|
|
75021
|
+
|
|
75022
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/coordinator-user-code.ts
|
|
75023
|
+
function getCoordinatorUserCodeTemplate(roleGuidanceContext) {
|
|
75024
|
+
return `${getHandoffReportTemplateIntro()}
|
|
75025
|
+
|
|
75026
|
+
\`\`\`markdown
|
|
75027
|
+
${getHandoffReportTemplateBody(roleGuidanceContext, { includeProofOfVerification: true })}
|
|
75028
|
+
\`\`\``;
|
|
75029
|
+
}
|
|
75030
|
+
var init_coordinator_user_code = __esm(() => {
|
|
75031
|
+
init_handoff_report_template_body();
|
|
75032
|
+
});
|
|
75033
|
+
|
|
75034
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/coordinator-verifier-code.ts
|
|
75035
|
+
function getCoordinatorVerifierCodeTemplate(query) {
|
|
75036
|
+
return getEntryPointToVerifierHandoffTemplate(query);
|
|
75037
|
+
}
|
|
75038
|
+
var init_coordinator_verifier_code = __esm(() => {
|
|
75039
|
+
init_verifier_handoff_templates();
|
|
75040
|
+
});
|
|
75041
|
+
|
|
75042
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/coordinator-verifier-chat.ts
|
|
75043
|
+
var init_coordinator_verifier_chat = __esm(() => {
|
|
75044
|
+
init_coordinator_verifier_code();
|
|
75045
|
+
});
|
|
75046
|
+
|
|
75047
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/coordinator.ts
|
|
75048
|
+
var trioCoordinatorHandoffContract;
|
|
75049
|
+
var init_coordinator = __esm(() => {
|
|
75050
|
+
init_coordinator_architect_chat();
|
|
75051
|
+
init_coordinator_architect_code();
|
|
75052
|
+
init_coordinator_game_asset_designer_chat();
|
|
75053
|
+
init_coordinator_game_asset_designer_code();
|
|
75054
|
+
init_coordinator_researcher_chat();
|
|
75055
|
+
init_coordinator_researcher_code();
|
|
75056
|
+
init_coordinator_reviewer_chat();
|
|
75057
|
+
init_coordinator_reviewer_code();
|
|
75058
|
+
init_coordinator_specifier_chat();
|
|
75059
|
+
init_coordinator_specifier_code();
|
|
75060
|
+
init_coordinator_triage_chat();
|
|
75061
|
+
init_coordinator_triage_code();
|
|
75062
|
+
init_coordinator_uiux_engineer_chat();
|
|
75063
|
+
init_coordinator_uiux_engineer_code();
|
|
75064
|
+
init_coordinator_user_chat();
|
|
75065
|
+
init_coordinator_user_code();
|
|
75066
|
+
init_coordinator_verifier_chat();
|
|
75067
|
+
init_coordinator_verifier_code();
|
|
75068
|
+
init_contracts();
|
|
75069
|
+
trioCoordinatorHandoffContract = {
|
|
75070
|
+
role: "coordinator",
|
|
75071
|
+
receivesFrom: [
|
|
75072
|
+
"user",
|
|
75073
|
+
"specifier",
|
|
75074
|
+
"architect",
|
|
75075
|
+
"uiux-engineer",
|
|
75076
|
+
"triage",
|
|
75077
|
+
"researcher",
|
|
75078
|
+
"reviewer",
|
|
75079
|
+
"game-asset-designer",
|
|
75080
|
+
"verifier"
|
|
75081
|
+
],
|
|
75082
|
+
returnsTo: [
|
|
75083
|
+
"user",
|
|
75084
|
+
"specifier",
|
|
75085
|
+
"architect",
|
|
75086
|
+
"uiux-engineer",
|
|
75087
|
+
"triage",
|
|
75088
|
+
"researcher",
|
|
75089
|
+
"reviewer",
|
|
75090
|
+
"game-asset-designer",
|
|
75091
|
+
"verifier"
|
|
75092
|
+
],
|
|
75093
|
+
outboundTemplates: {
|
|
75094
|
+
user: handoffTemplateByMode({
|
|
75095
|
+
chat: getChatToUserHandoffTemplate,
|
|
75096
|
+
code: getCoordinatorUserCodeTemplate
|
|
75097
|
+
}),
|
|
75098
|
+
specifier: handoffTemplateByMode({
|
|
75099
|
+
chat: getCoordinatorSpecifierCodeTemplate,
|
|
75100
|
+
code: getCoordinatorSpecifierCodeTemplate
|
|
75101
|
+
}),
|
|
75102
|
+
architect: handoffTemplateByMode({
|
|
75103
|
+
chat: getCoordinatorArchitectCodeTemplate,
|
|
75104
|
+
code: getCoordinatorArchitectCodeTemplate
|
|
75105
|
+
}),
|
|
75106
|
+
"uiux-engineer": handoffTemplateByMode({
|
|
75107
|
+
chat: getCoordinatorUiuxEngineerCodeTemplate,
|
|
75108
|
+
code: getCoordinatorUiuxEngineerCodeTemplate
|
|
75109
|
+
}),
|
|
75110
|
+
triage: handoffTemplateByMode({
|
|
75111
|
+
chat: getCoordinatorTriageCodeTemplate,
|
|
75112
|
+
code: getCoordinatorTriageCodeTemplate
|
|
75113
|
+
}),
|
|
75114
|
+
researcher: handoffTemplateByMode({
|
|
75115
|
+
chat: getCoordinatorResearcherCodeTemplate,
|
|
75116
|
+
code: getCoordinatorResearcherCodeTemplate
|
|
75117
|
+
}),
|
|
75118
|
+
reviewer: handoffTemplateByMode({
|
|
75119
|
+
chat: getCoordinatorReviewerCodeTemplate,
|
|
75120
|
+
code: getCoordinatorReviewerCodeTemplate
|
|
75121
|
+
}),
|
|
75122
|
+
"game-asset-designer": handoffTemplateByMode({
|
|
75123
|
+
chat: getCoordinatorGameAssetDesignerCodeTemplate,
|
|
75124
|
+
code: getCoordinatorGameAssetDesignerCodeTemplate
|
|
75125
|
+
}),
|
|
75126
|
+
verifier: handoffTemplateByMode({
|
|
75127
|
+
chat: getCoordinatorVerifierCodeTemplate,
|
|
75128
|
+
code: getCoordinatorVerifierCodeTemplate
|
|
75129
|
+
})
|
|
75130
|
+
}
|
|
75131
|
+
};
|
|
75132
|
+
});
|
|
75133
|
+
|
|
75134
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/game-asset-designer-coordinator-code.ts
|
|
75135
|
+
function getGameAssetDesignerCoordinatorCodeTemplate(query) {
|
|
75136
|
+
return getGameAssetDesignerToEntryPointHandoffTemplate(query);
|
|
75137
|
+
}
|
|
75138
|
+
var init_game_asset_designer_coordinator_code = __esm(() => {
|
|
75139
|
+
init_game_asset_designer_handoff_templates();
|
|
75140
|
+
});
|
|
75141
|
+
|
|
75142
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/game-asset-designer-coordinator-chat.ts
|
|
75143
|
+
var init_game_asset_designer_coordinator_chat = __esm(() => {
|
|
75144
|
+
init_game_asset_designer_coordinator_code();
|
|
75145
|
+
});
|
|
75146
|
+
|
|
75147
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/game-asset-designer.ts
|
|
75148
|
+
var trioGameAssetDesignerHandoffContract;
|
|
75149
|
+
var init_game_asset_designer2 = __esm(() => {
|
|
75150
|
+
init_game_asset_designer_coordinator_chat();
|
|
75151
|
+
init_game_asset_designer_coordinator_code();
|
|
75152
|
+
init_contracts();
|
|
75153
|
+
trioGameAssetDesignerHandoffContract = {
|
|
75154
|
+
role: "game-asset-designer",
|
|
75155
|
+
receivesFrom: ["coordinator"],
|
|
75156
|
+
returnsTo: ["coordinator"],
|
|
75157
|
+
outboundTemplates: {
|
|
75158
|
+
coordinator: handoffTemplateByMode({
|
|
75159
|
+
chat: getGameAssetDesignerCoordinatorCodeTemplate,
|
|
75160
|
+
code: getGameAssetDesignerCoordinatorCodeTemplate
|
|
75161
|
+
})
|
|
75162
|
+
}
|
|
75163
|
+
};
|
|
75164
|
+
});
|
|
75165
|
+
|
|
75166
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/researcher-coordinator-code.ts
|
|
75167
|
+
function getResearcherCoordinatorCodeTemplate(query) {
|
|
75168
|
+
return getResearcherToEntryPointHandoffTemplate(query);
|
|
75169
|
+
}
|
|
75170
|
+
var init_researcher_coordinator_code = __esm(() => {
|
|
75171
|
+
init_researcher_handoff_templates();
|
|
75172
|
+
});
|
|
75173
|
+
|
|
75174
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/researcher-coordinator-chat.ts
|
|
75175
|
+
var init_researcher_coordinator_chat = __esm(() => {
|
|
75176
|
+
init_researcher_coordinator_code();
|
|
75177
|
+
});
|
|
75178
|
+
|
|
75179
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/researcher.ts
|
|
75180
|
+
var trioResearcherHandoffContract;
|
|
75181
|
+
var init_researcher2 = __esm(() => {
|
|
75182
|
+
init_researcher_coordinator_chat();
|
|
75183
|
+
init_researcher_coordinator_code();
|
|
75184
|
+
init_contracts();
|
|
75185
|
+
trioResearcherHandoffContract = {
|
|
75186
|
+
role: "researcher",
|
|
75187
|
+
receivesFrom: ["coordinator"],
|
|
75188
|
+
returnsTo: ["coordinator"],
|
|
75189
|
+
outboundTemplates: {
|
|
75190
|
+
coordinator: handoffTemplateByMode({
|
|
75191
|
+
chat: getResearcherCoordinatorCodeTemplate,
|
|
75192
|
+
code: getResearcherCoordinatorCodeTemplate
|
|
75193
|
+
})
|
|
75194
|
+
}
|
|
75195
|
+
};
|
|
75196
|
+
});
|
|
75197
|
+
|
|
75198
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/reviewer-coordinator-code.ts
|
|
75199
|
+
function getReviewerCoordinatorCodeTemplate(query) {
|
|
75200
|
+
return getReviewerToEntryPointHandoffTemplate(query);
|
|
75201
|
+
}
|
|
75202
|
+
var init_reviewer_coordinator_code = __esm(() => {
|
|
75203
|
+
init_reviewer_handoff_templates();
|
|
75204
|
+
});
|
|
75205
|
+
|
|
75206
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/reviewer-coordinator-chat.ts
|
|
75207
|
+
var init_reviewer_coordinator_chat = __esm(() => {
|
|
75208
|
+
init_reviewer_coordinator_code();
|
|
75209
|
+
});
|
|
75210
|
+
|
|
75211
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/reviewer.ts
|
|
75212
|
+
var trioReviewerHandoffContract;
|
|
75213
|
+
var init_reviewer2 = __esm(() => {
|
|
75214
|
+
init_reviewer_coordinator_chat();
|
|
75215
|
+
init_reviewer_coordinator_code();
|
|
75216
|
+
init_contracts();
|
|
75217
|
+
trioReviewerHandoffContract = {
|
|
75218
|
+
role: "reviewer",
|
|
75219
|
+
receivesFrom: ["coordinator"],
|
|
75220
|
+
returnsTo: ["coordinator"],
|
|
75221
|
+
outboundTemplates: {
|
|
75222
|
+
coordinator: handoffTemplateByMode({
|
|
75223
|
+
chat: getReviewerCoordinatorCodeTemplate,
|
|
75224
|
+
code: getReviewerCoordinatorCodeTemplate
|
|
75225
|
+
})
|
|
75226
|
+
}
|
|
75227
|
+
};
|
|
75228
|
+
});
|
|
75229
|
+
|
|
75230
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/specifier-builder-code.ts
|
|
75231
|
+
function getSpecifierBuilderCodeTemplate(_query) {
|
|
75232
|
+
return getBuilderDelegationBriefTemplate({
|
|
75233
|
+
delegatorRole: "specifier",
|
|
75234
|
+
gatesOwner: "coordinator"
|
|
75235
|
+
});
|
|
75236
|
+
}
|
|
75237
|
+
var init_specifier_builder_code = __esm(() => {
|
|
75238
|
+
init_builder_delegation_handoff_templates();
|
|
75239
|
+
});
|
|
75240
|
+
|
|
75241
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/specifier-builder-chat.ts
|
|
75242
|
+
var init_specifier_builder_chat = __esm(() => {
|
|
75243
|
+
init_specifier_builder_code();
|
|
75244
|
+
});
|
|
75245
|
+
|
|
75246
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/specifier-coordinator-chat.ts
|
|
75247
|
+
function getSpecifierCoordinatorChatTemplate(_query) {
|
|
75248
|
+
return `Instructions (not part of the message): chat response for the coordinator —
|
|
75249
|
+
\`\`\`markdown
|
|
75250
|
+
<write only the concise status the coordinator needs: what was delivered, blockers, and decisions it must make; do not add handoff XML sections, proofs, or report headings>
|
|
75251
|
+
\`\`\``;
|
|
75252
|
+
}
|
|
75253
|
+
|
|
75254
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/specifier-coordinator-code.ts
|
|
75255
|
+
function getSpecifierCoordinatorCodeTemplate(query) {
|
|
75256
|
+
return `${getHandoffReportTemplateIntro()}
|
|
75257
|
+
|
|
75258
|
+
\`\`\`markdown
|
|
75259
|
+
## Summary
|
|
75260
|
+
<what this work package delivered, or why it stopped, in plain terms>
|
|
75261
|
+
|
|
75262
|
+
## Template Disclosure Confirmation
|
|
75263
|
+
- [ ] I confirm that I have seen this template at the start of this work package, before driving the builder
|
|
75264
|
+
${getRoleGuidanceDisclosureBlock({
|
|
75265
|
+
chatroomId: query.chatroomId,
|
|
75266
|
+
role: query.role,
|
|
75267
|
+
cliEnvPrefix: query.cliEnvPrefix
|
|
75268
|
+
})}
|
|
75269
|
+
|
|
75270
|
+
## What exists today
|
|
75271
|
+
${getHandoffNotApplicableSectionComment("Describe current state after this work package")}
|
|
75272
|
+
<current state after this work package: what the user can now do, what is in place, how the system behaves>
|
|
75273
|
+
|
|
75274
|
+
## Slices delivered
|
|
75275
|
+
<one entry per builder slice: builder handoff message id, commits, files changed, rework rounds>
|
|
75276
|
+
|
|
75277
|
+
${getHandoffQualityPrinciplesSectionBlock("work")}
|
|
75278
|
+
|
|
75279
|
+
## Proof of Completion
|
|
75280
|
+
${getFileReferenceProofOfCompletionExample()}
|
|
75281
|
+
<for each acceptance criterion in the work package: met / not met, with evidence (test names and output, commands run, commits)>
|
|
75282
|
+
|
|
75283
|
+
## Code Change Verification
|
|
75284
|
+
${CODE_CHANGE_VERIFICATION_CONFIRMATION}
|
|
75285
|
+
|
|
75286
|
+
## Key Technical Decisions
|
|
75287
|
+
${getHandoffNotApplicableSectionComment("List decisions")}
|
|
75288
|
+
- <schema design, modules, interfaces, domain entities: what you chose and why>
|
|
75289
|
+
|
|
75290
|
+
## Key Tradeoffs
|
|
75291
|
+
${getHandoffNotApplicableSectionComment("List tradeoffs")}
|
|
75292
|
+
- <what was weighed against what, and why you chose this path>
|
|
75293
|
+
|
|
75294
|
+
## Deviations from the work package
|
|
75295
|
+
${getHandoffNotApplicableSectionComment("List deviations")}
|
|
75296
|
+
<each place the implementation differs from the package, and why>
|
|
75297
|
+
|
|
75298
|
+
## Tech Debt Observed
|
|
75299
|
+
${getHandoffNotApplicableSectionComment("List tech debt")}
|
|
75300
|
+
${getHandoffSeverityGuidanceBlock()}
|
|
75301
|
+
- <issues noticed but intentionally left out of scope of this work package>
|
|
75302
|
+
|
|
75303
|
+
${getUnresolvedDecisionsSectionBlock()}
|
|
75304
|
+
|
|
75305
|
+
## Manual steps
|
|
75306
|
+
${getHandoffNotApplicableSectionComment("List manual steps outside the system")}
|
|
75307
|
+
<steps the user must take outside the system: deploy, configure credentials, run commands, verify in production>
|
|
75308
|
+
|
|
75309
|
+
## Notes for review
|
|
75310
|
+
${getHandoffNotApplicableSectionComment("List review notes")}
|
|
75311
|
+
<areas for the coordinator or reviewer to inspect>
|
|
75312
|
+
\`\`\``;
|
|
75313
|
+
}
|
|
75314
|
+
var init_specifier_coordinator_code = __esm(() => {
|
|
75315
|
+
init_handoff_quality_principles();
|
|
75316
|
+
init_role_guidance_disclosure();
|
|
75317
|
+
init_unresolved_decisions();
|
|
75318
|
+
});
|
|
75319
|
+
|
|
75320
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/specifier.ts
|
|
75321
|
+
var trioSpecifierHandoffContract;
|
|
75322
|
+
var init_specifier = __esm(() => {
|
|
75323
|
+
init_specifier_builder_chat();
|
|
75324
|
+
init_specifier_builder_code();
|
|
75325
|
+
init_specifier_coordinator_code();
|
|
75326
|
+
init_contracts();
|
|
75327
|
+
trioSpecifierHandoffContract = {
|
|
75328
|
+
role: "specifier",
|
|
75329
|
+
receivesFrom: ["coordinator", "builder"],
|
|
75330
|
+
returnsTo: ["coordinator", "builder"],
|
|
75331
|
+
outboundTemplates: {
|
|
75332
|
+
coordinator: handoffTemplateByMode({
|
|
75333
|
+
chat: getSpecifierCoordinatorChatTemplate,
|
|
75334
|
+
code: getSpecifierCoordinatorCodeTemplate
|
|
75335
|
+
}),
|
|
75336
|
+
builder: handoffTemplateByMode({
|
|
75337
|
+
chat: getSpecifierBuilderCodeTemplate,
|
|
75338
|
+
code: getSpecifierBuilderCodeTemplate
|
|
75339
|
+
})
|
|
75340
|
+
}
|
|
75341
|
+
};
|
|
75342
|
+
});
|
|
75343
|
+
|
|
75344
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/triage-coordinator-code.ts
|
|
75345
|
+
function getTriageCoordinatorCodeTemplate(query) {
|
|
75346
|
+
return getTriageToEntryPointHandoffTemplate(query);
|
|
75347
|
+
}
|
|
75348
|
+
var init_triage_coordinator_code = __esm(() => {
|
|
75349
|
+
init_triage_handoff_templates();
|
|
75350
|
+
});
|
|
75351
|
+
|
|
75352
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/triage-coordinator-chat.ts
|
|
75353
|
+
var init_triage_coordinator_chat = __esm(() => {
|
|
75354
|
+
init_triage_coordinator_code();
|
|
75355
|
+
});
|
|
75356
|
+
|
|
75357
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/triage.ts
|
|
75358
|
+
var trioTriageHandoffContract;
|
|
75359
|
+
var init_triage3 = __esm(() => {
|
|
75360
|
+
init_triage_coordinator_chat();
|
|
75361
|
+
init_triage_coordinator_code();
|
|
75362
|
+
init_contracts();
|
|
75363
|
+
trioTriageHandoffContract = {
|
|
75364
|
+
role: "triage",
|
|
75365
|
+
receivesFrom: ["coordinator"],
|
|
75366
|
+
returnsTo: ["coordinator"],
|
|
75367
|
+
outboundTemplates: {
|
|
75368
|
+
coordinator: handoffTemplateByMode({
|
|
75369
|
+
chat: getTriageCoordinatorCodeTemplate,
|
|
75370
|
+
code: getTriageCoordinatorCodeTemplate
|
|
75371
|
+
})
|
|
75372
|
+
}
|
|
75373
|
+
};
|
|
75374
|
+
});
|
|
75375
|
+
|
|
75376
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/uiux-engineer-coordinator-code.ts
|
|
75377
|
+
function getUiuxEngineerCoordinatorCodeTemplate(query) {
|
|
75378
|
+
return getUiuxEngineerToEntryPointHandoffTemplate(query);
|
|
75379
|
+
}
|
|
75380
|
+
var init_uiux_engineer_coordinator_code = __esm(() => {
|
|
75381
|
+
init_uiux_engineer_handoff_templates();
|
|
75382
|
+
});
|
|
75383
|
+
|
|
75384
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/uiux-engineer-coordinator-chat.ts
|
|
75385
|
+
var init_uiux_engineer_coordinator_chat = __esm(() => {
|
|
75386
|
+
init_uiux_engineer_coordinator_code();
|
|
75387
|
+
});
|
|
75388
|
+
|
|
75389
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/uiux-engineer.ts
|
|
75390
|
+
var trioUiuxEngineerHandoffContract;
|
|
75391
|
+
var init_uiux_engineer3 = __esm(() => {
|
|
75392
|
+
init_uiux_engineer_coordinator_chat();
|
|
75393
|
+
init_uiux_engineer_coordinator_code();
|
|
75394
|
+
init_contracts();
|
|
75395
|
+
trioUiuxEngineerHandoffContract = {
|
|
75396
|
+
role: "uiux-engineer",
|
|
75397
|
+
receivesFrom: ["coordinator"],
|
|
75398
|
+
returnsTo: ["coordinator"],
|
|
75399
|
+
outboundTemplates: {
|
|
75400
|
+
coordinator: handoffTemplateByMode({
|
|
75401
|
+
chat: getUiuxEngineerCoordinatorCodeTemplate,
|
|
75402
|
+
code: getUiuxEngineerCoordinatorCodeTemplate
|
|
75403
|
+
})
|
|
75404
|
+
}
|
|
75405
|
+
};
|
|
75406
|
+
});
|
|
75407
|
+
|
|
75408
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/verifier-coordinator-code.ts
|
|
75409
|
+
function getVerifierCoordinatorCodeTemplate(query) {
|
|
75410
|
+
return getVerifierToEntryPointHandoffTemplate(query);
|
|
75411
|
+
}
|
|
75412
|
+
var init_verifier_coordinator_code = __esm(() => {
|
|
75413
|
+
init_verifier_handoff_templates();
|
|
75414
|
+
});
|
|
75415
|
+
|
|
75416
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/verifier-coordinator-chat.ts
|
|
75417
|
+
var init_verifier_coordinator_chat = __esm(() => {
|
|
75418
|
+
init_verifier_coordinator_code();
|
|
75419
|
+
});
|
|
75420
|
+
|
|
75421
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/verifier.ts
|
|
75422
|
+
var trioVerifierHandoffContract;
|
|
75423
|
+
var init_verifier3 = __esm(() => {
|
|
75424
|
+
init_verifier_coordinator_chat();
|
|
75425
|
+
init_verifier_coordinator_code();
|
|
75426
|
+
init_contracts();
|
|
75427
|
+
trioVerifierHandoffContract = {
|
|
75428
|
+
role: "verifier",
|
|
75429
|
+
receivesFrom: ["coordinator"],
|
|
75430
|
+
returnsTo: ["coordinator"],
|
|
75431
|
+
outboundTemplates: {
|
|
75432
|
+
coordinator: handoffTemplateByMode({
|
|
75433
|
+
chat: getVerifierCoordinatorCodeTemplate,
|
|
75434
|
+
code: getVerifierCoordinatorCodeTemplate
|
|
75435
|
+
})
|
|
75436
|
+
}
|
|
75437
|
+
};
|
|
75438
|
+
});
|
|
75439
|
+
|
|
75440
|
+
// ../../services/backend/prompts/teams/trio/handoff-templates/index.ts
|
|
75441
|
+
function listTrioRoleHandoffContracts() {
|
|
75442
|
+
return validatedTrioRoleHandoffContracts;
|
|
75443
|
+
}
|
|
75444
|
+
var TRIO_ROLE_HANDOFF_CATALOG, TRIO_ROLE_HANDOFF_CONTRACTS, validatedTrioRoleHandoffContracts;
|
|
75445
|
+
var init_handoff_templates3 = __esm(() => {
|
|
75446
|
+
init_architect3();
|
|
75447
|
+
init_builder2();
|
|
75448
|
+
init_coordinator();
|
|
75449
|
+
init_game_asset_designer2();
|
|
75450
|
+
init_researcher2();
|
|
75451
|
+
init_reviewer2();
|
|
75452
|
+
init_specifier();
|
|
75453
|
+
init_triage3();
|
|
75454
|
+
init_uiux_engineer3();
|
|
75455
|
+
init_verifier3();
|
|
75456
|
+
init_contracts();
|
|
75457
|
+
TRIO_ROLE_HANDOFF_CATALOG = {
|
|
75458
|
+
coordinator: trioCoordinatorHandoffContract,
|
|
75459
|
+
specifier: trioSpecifierHandoffContract,
|
|
75460
|
+
builder: trioBuilderHandoffContract,
|
|
75461
|
+
architect: trioArchitectHandoffContract,
|
|
75462
|
+
researcher: trioResearcherHandoffContract,
|
|
75463
|
+
reviewer: trioReviewerHandoffContract,
|
|
75464
|
+
"uiux-engineer": trioUiuxEngineerHandoffContract,
|
|
75465
|
+
"game-asset-designer": trioGameAssetDesignerHandoffContract,
|
|
75466
|
+
triage: trioTriageHandoffContract,
|
|
75467
|
+
verifier: trioVerifierHandoffContract
|
|
75468
|
+
};
|
|
75469
|
+
TRIO_ROLE_HANDOFF_CONTRACTS = Object.values(TRIO_ROLE_HANDOFF_CATALOG);
|
|
75470
|
+
validatedTrioRoleHandoffContracts = (() => {
|
|
75471
|
+
validateBuiltinTeamRoleHandoffContracts("trio", TRIO_ROLE_HANDOFF_CONTRACTS);
|
|
75472
|
+
return TRIO_ROLE_HANDOFF_CONTRACTS;
|
|
75473
|
+
})();
|
|
75474
|
+
});
|
|
75475
|
+
|
|
74784
75476
|
// ../../services/backend/prompts/cli/handoff-templates/index.ts
|
|
74785
75477
|
function listHandoffTemplatePairs(teamId, fromRole) {
|
|
74786
75478
|
const team = (teamId ?? DEFAULT_HANDOFF_TEAM_ID).trim().toLowerCase();
|
|
@@ -74867,13 +75559,16 @@ function getReplyHandoffTemplatePair(pair) {
|
|
|
74867
75559
|
return { teamId: pair.teamId, fromRole: pair.toRole, toRole: pair.fromRole };
|
|
74868
75560
|
}
|
|
74869
75561
|
var BUILTIN_TEAM_HANDOFF_CONTRACTS;
|
|
74870
|
-
var
|
|
75562
|
+
var init_handoff_templates4 = __esm(() => {
|
|
75563
|
+
init_team_presets();
|
|
74871
75564
|
init_pair();
|
|
74872
75565
|
init_handoff_templates();
|
|
74873
75566
|
init_handoff_templates2();
|
|
75567
|
+
init_handoff_templates3();
|
|
74874
75568
|
BUILTIN_TEAM_HANDOFF_CONTRACTS = {
|
|
74875
75569
|
duo: listDuoRoleHandoffContracts(),
|
|
74876
|
-
solo: listSoloRoleHandoffContracts()
|
|
75570
|
+
solo: listSoloRoleHandoffContracts(),
|
|
75571
|
+
trio: listTrioRoleHandoffContracts()
|
|
74877
75572
|
};
|
|
74878
75573
|
});
|
|
74879
75574
|
|
|
@@ -74891,7 +75586,7 @@ function viewHandoffTemplate(params) {
|
|
|
74891
75586
|
return template;
|
|
74892
75587
|
}
|
|
74893
75588
|
var init_view_template2 = __esm(() => {
|
|
74894
|
-
|
|
75589
|
+
init_handoff_templates4();
|
|
74895
75590
|
init_pair();
|
|
74896
75591
|
});
|
|
74897
75592
|
|
|
@@ -74941,7 +75636,7 @@ function listHandoffTemplatesCommand(params) {
|
|
|
74941
75636
|
`);
|
|
74942
75637
|
}
|
|
74943
75638
|
var init_list_templates = __esm(() => {
|
|
74944
|
-
|
|
75639
|
+
init_handoff_templates4();
|
|
74945
75640
|
init_pair();
|
|
74946
75641
|
init_command2();
|
|
74947
75642
|
});
|
|
@@ -75266,7 +75961,7 @@ var init_commands_reference = __esm(() => {
|
|
|
75266
75961
|
|
|
75267
75962
|
// ../../services/backend/prompts/cli/sections/handoff-template-discovery.ts
|
|
75268
75963
|
var init_handoff_template_discovery = __esm(() => {
|
|
75269
|
-
|
|
75964
|
+
init_handoff_templates4();
|
|
75270
75965
|
init_pair();
|
|
75271
75966
|
});
|
|
75272
75967
|
|
|
@@ -75304,7 +75999,7 @@ var init_sections = __esm(() => {
|
|
|
75304
75999
|
|
|
75305
76000
|
// ../../services/backend/prompts/cli/roles/architect.ts
|
|
75306
76001
|
var ARCHITECT_GUIDANCE;
|
|
75307
|
-
var
|
|
76002
|
+
var init_architect4 = __esm(() => {
|
|
75308
76003
|
init_sections();
|
|
75309
76004
|
ARCHITECT_GUIDANCE = `## Architect Operating Model
|
|
75310
76005
|
|
|
@@ -75330,19 +76025,19 @@ The handoff must contain every required brief section, repository evidence, chos
|
|
|
75330
76025
|
});
|
|
75331
76026
|
|
|
75332
76027
|
// ../../services/backend/prompts/cli/roles/builder.ts
|
|
75333
|
-
var
|
|
76028
|
+
var init_builder3 = __esm(() => {
|
|
75334
76029
|
init_sections();
|
|
75335
76030
|
});
|
|
75336
76031
|
|
|
75337
76032
|
// ../../services/backend/prompts/cli/roles/game-asset-designer.ts
|
|
75338
76033
|
var GAME_ASSET_DESIGNER_GUIDANCE;
|
|
75339
|
-
var
|
|
76034
|
+
var init_game_asset_designer3 = __esm(() => {
|
|
75340
76035
|
init_game_asset_designer_evidence();
|
|
75341
76036
|
init_game_asset_designer_workflow();
|
|
75342
76037
|
init_sections();
|
|
75343
76038
|
GAME_ASSET_DESIGNER_GUIDANCE = `## Game Asset Designer Operating Model
|
|
75344
76039
|
|
|
75345
|
-
You specify and generate production-quality game and UI assets (generation is the default unless the brief says \`spec only\`). You use the matching skill for every generation step. You are not the builder or
|
|
76040
|
+
You specify and generate production-quality game and UI assets (generation is the default unless the brief says \`spec only\`). You use the matching skill for every generation step. You are not the builder or {ENTRY_POINT_ROLE}; do not implement application logic outside the asset-integration paths the brief allows. Your delivery report uses Proof of Principles and Proof of Completion.
|
|
75346
76041
|
|
|
75347
76042
|
${"{SESSION_CONTINUITY}"}
|
|
75348
76043
|
|
|
@@ -75410,17 +76105,17 @@ var init_planner2 = __esm(() => {
|
|
|
75410
76105
|
|
|
75411
76106
|
// ../../services/backend/prompts/cli/roles/researcher.ts
|
|
75412
76107
|
var RESEARCHER_GUIDANCE;
|
|
75413
|
-
var
|
|
76108
|
+
var init_researcher3 = __esm(() => {
|
|
75414
76109
|
init_sections();
|
|
75415
76110
|
RESEARCHER_GUIDANCE = `## Researcher Operating Model
|
|
75416
76111
|
|
|
75417
|
-
You are the researcher responsible for grounding a request with evidence so the
|
|
76112
|
+
You are the researcher responsible for grounding a request with evidence so the {ENTRY_POINT_ROLE} can decide and delegate without ambiguity. You are advisory only: do not edit files, implement code, or act as the builder or {ENTRY_POINT_ROLE}.
|
|
75418
76113
|
|
|
75419
76114
|
${"{SESSION_CONTINUITY}"}
|
|
75420
76115
|
|
|
75421
76116
|
${getInterRoleHandoffRule()}
|
|
75422
76117
|
|
|
75423
|
-
1. Recover the authoritative request and the research questions from the injected task and chatroom history. If the questions are not explicit, derive the decisions the
|
|
76118
|
+
1. Recover the authoritative request and the research questions from the injected task and chatroom history. If the questions are not explicit, derive the decisions the {ENTRY_POINT_ROLE} must make and answer those.
|
|
75424
76119
|
2. Investigate the repository first: existing modules, APIs, types, patterns, tests, and conventions that bear on the request. Cite concrete paths and symbols.
|
|
75425
76120
|
3. Investigate external sources when the request depends on libraries, APIs, platform behavior, versions, or recent changes. Prefer official documentation and primary sources (the package's own source or changelog, the platform's release notes). Record the URL, the version, and the date checked.
|
|
75426
76121
|
4. Label every finding \`confirmed\`, \`inferred\`, or \`unknown\`. Never present a guess as fact.
|
|
@@ -75435,17 +76130,17 @@ chatroom handoff --chatroom-id="<chatroom-id>" --role="researcher" --next-role="
|
|
|
75435
76130
|
|
|
75436
76131
|
// ../../services/backend/prompts/cli/roles/reviewer.ts
|
|
75437
76132
|
var REVIEWER_GUIDANCE;
|
|
75438
|
-
var
|
|
76133
|
+
var init_reviewer3 = __esm(() => {
|
|
75439
76134
|
init_sections();
|
|
75440
76135
|
REVIEWER_GUIDANCE = `## Reviewer Operating Model
|
|
75441
76136
|
|
|
75442
|
-
You are the reviewer responsible for inspecting the code artifacts the
|
|
76137
|
+
You are the reviewer responsible for inspecting the code artifacts the {ENTRY_POINT_ROLE} names and reporting the issues you observe. You are advisory only: do not edit files, implement fixes, or act as the builder or {ENTRY_POINT_ROLE}.
|
|
75443
76138
|
|
|
75444
76139
|
${"{SESSION_CONTINUITY}"}
|
|
75445
76140
|
|
|
75446
76141
|
${getInterRoleHandoffRule()}
|
|
75447
76142
|
|
|
75448
|
-
1. Recover the review target and focus from the injected task and the \`<handoff-templates>\` brief. If the target is not explicit, ask the
|
|
76143
|
+
1. Recover the review target and focus from the injected task and the \`<handoff-templates>\` brief. If the target is not explicit, ask the {ENTRY_POINT_ROLE} through the handoff; do not guess a range.
|
|
75449
76144
|
2. Inspect the target: the diff or commits, the changed files, and the surrounding code they depend on. Read the actual files; do not review from summaries.
|
|
75450
76145
|
3. Look for correctness bugs, security issues, missing or weak tests, unclear ownership or error handling, dead code, duplication, and type drift. Stay within the stated focus when one is given.
|
|
75451
76146
|
4. Audit authentication and authorization for every backend endpoint in review scope. An endpoint is any exported Convex query, mutation, or action, HTTP route, or API handler that the target adds or changes, plus any such endpoint the changed code calls or exposes. For each endpoint, check:
|
|
@@ -75465,7 +76160,7 @@ chatroom handoff --chatroom-id="<chatroom-id>" --role="reviewer" --next-role="{E
|
|
|
75465
76160
|
|
|
75466
76161
|
// ../../services/backend/prompts/cli/roles/triage.ts
|
|
75467
76162
|
var TRIAGE_GUIDANCE;
|
|
75468
|
-
var
|
|
76163
|
+
var init_triage4 = __esm(() => {
|
|
75469
76164
|
init_sections();
|
|
75470
76165
|
TRIAGE_GUIDANCE = `## Triage Operating Model
|
|
75471
76166
|
|
|
@@ -75488,7 +76183,7 @@ chatroom handoff --chatroom-id="<chatroom-id>" --role="triage" --next-role="{ENT
|
|
|
75488
76183
|
|
|
75489
76184
|
// ../../services/backend/prompts/cli/roles/uiux-engineer.ts
|
|
75490
76185
|
var UIUX_ENGINEER_GUIDANCE;
|
|
75491
|
-
var
|
|
76186
|
+
var init_uiux_engineer4 = __esm(() => {
|
|
75492
76187
|
init_sections();
|
|
75493
76188
|
UIUX_ENGINEER_GUIDANCE = `## UI/UX Engineer Operating Model
|
|
75494
76189
|
|
|
@@ -75516,7 +76211,7 @@ The handoff must contain every required brief section, repository evidence, chos
|
|
|
75516
76211
|
|
|
75517
76212
|
// ../../services/backend/prompts/cli/roles/verifier.ts
|
|
75518
76213
|
var ACHIEVED2, NOT_ACHIEVED2, INCONCLUSIVE2, VERIFIER_GUIDANCE;
|
|
75519
|
-
var
|
|
76214
|
+
var init_verifier4 = __esm(() => {
|
|
75520
76215
|
init_verifier_handoff_templates();
|
|
75521
76216
|
init_handoff_report_template_body();
|
|
75522
76217
|
init_sections();
|
|
@@ -75562,24 +76257,23 @@ var init_fromContext = __esm(() => {
|
|
|
75562
76257
|
|
|
75563
76258
|
// ../../services/backend/prompts/cli/roles/fromContext.ts
|
|
75564
76259
|
var init_fromContext2 = __esm(() => {
|
|
75565
|
-
|
|
75566
|
-
|
|
75567
|
-
|
|
76260
|
+
init_architect4();
|
|
76261
|
+
init_builder3();
|
|
76262
|
+
init_game_asset_designer3();
|
|
75568
76263
|
init_planner2();
|
|
75569
|
-
|
|
75570
|
-
|
|
75571
|
-
|
|
75572
|
-
|
|
75573
|
-
|
|
76264
|
+
init_researcher3();
|
|
76265
|
+
init_reviewer3();
|
|
76266
|
+
init_triage4();
|
|
76267
|
+
init_uiux_engineer4();
|
|
76268
|
+
init_verifier4();
|
|
75574
76269
|
init_fromContext();
|
|
75575
|
-
|
|
76270
|
+
init_handoff_templates4();
|
|
75576
76271
|
});
|
|
75577
76272
|
|
|
75578
76273
|
// ../../services/backend/prompts/teams/duo/prompts/builder.ts
|
|
75579
|
-
var
|
|
75580
|
-
|
|
76274
|
+
var init_builder4 = __esm(() => {
|
|
76275
|
+
init_builder3();
|
|
75581
76276
|
});
|
|
75582
|
-
|
|
75583
76277
|
// ../../services/backend/prompts/teams/duo/prompts/planner.ts
|
|
75584
76278
|
var init_planner3 = __esm(() => {
|
|
75585
76279
|
init_planner_guidance_context();
|
|
@@ -75588,14 +76282,41 @@ var init_planner3 = __esm(() => {
|
|
|
75588
76282
|
|
|
75589
76283
|
// ../../services/backend/prompts/teams/duo/prompts/fromContext.ts
|
|
75590
76284
|
var init_fromContext3 = __esm(() => {
|
|
75591
|
-
|
|
76285
|
+
init_builder4();
|
|
75592
76286
|
init_planner3();
|
|
75593
76287
|
});
|
|
76288
|
+
// ../../services/backend/prompts/teams/trio/prompts/builder.ts
|
|
76289
|
+
var init_builder5 = __esm(() => {
|
|
76290
|
+
init_builder3();
|
|
76291
|
+
init_env();
|
|
76292
|
+
});
|
|
76293
|
+
|
|
76294
|
+
// ../../services/backend/prompts/teams/trio/prompts/coordinator.ts
|
|
76295
|
+
var init_coordinator2 = __esm(() => {
|
|
76296
|
+
init_agent_role();
|
|
76297
|
+
init_planner_guidance_context();
|
|
76298
|
+
init_sections();
|
|
76299
|
+
});
|
|
76300
|
+
|
|
76301
|
+
// ../../services/backend/prompts/teams/trio/prompts/specifier.ts
|
|
76302
|
+
var init_specifier2 = __esm(() => {
|
|
76303
|
+
init_planner_guidance_context();
|
|
76304
|
+
init_sections();
|
|
76305
|
+
});
|
|
76306
|
+
|
|
76307
|
+
// ../../services/backend/prompts/teams/trio/prompts/fromContext.ts
|
|
76308
|
+
var init_fromContext4 = __esm(() => {
|
|
76309
|
+
init_builder5();
|
|
76310
|
+
init_coordinator2();
|
|
76311
|
+
init_specifier2();
|
|
76312
|
+
});
|
|
75594
76313
|
// ../../services/backend/prompts/selector-context.ts
|
|
75595
76314
|
var init_selector_context = __esm(() => {
|
|
76315
|
+
init_team_presets();
|
|
75596
76316
|
init_fromContext2();
|
|
75597
76317
|
init_fromContext3();
|
|
75598
76318
|
init_fromContext();
|
|
76319
|
+
init_fromContext4();
|
|
75599
76320
|
});
|
|
75600
76321
|
|
|
75601
76322
|
// ../../services/backend/prompts/sections/role-guidance.ts
|
|
@@ -75635,6 +76356,33 @@ var init_templates = __esm(() => {
|
|
|
75635
76356
|
],
|
|
75636
76357
|
defaultHandoffTarget: "builder"
|
|
75637
76358
|
},
|
|
76359
|
+
coordinator: {
|
|
76360
|
+
role: "coordinator",
|
|
76361
|
+
title: "Coordinator",
|
|
76362
|
+
description: "You are the team coordinator responsible for understanding what the user wants, owning the plan for the whole task, and routing all work between team roles.",
|
|
76363
|
+
responsibilities: [
|
|
76364
|
+
"Communicate with the user as the single point of contact",
|
|
76365
|
+
"Keep the plan and decisions across the whole task",
|
|
76366
|
+
"Clear research, triage, architecture, UI/UX, and asset gates with the specialists",
|
|
76367
|
+
"Delegate implementation to the specifier as work packages",
|
|
76368
|
+
"Review returned work against the user request",
|
|
76369
|
+
"Deliver the final result to the user"
|
|
76370
|
+
],
|
|
76371
|
+
defaultHandoffTarget: "specifier"
|
|
76372
|
+
},
|
|
76373
|
+
specifier: {
|
|
76374
|
+
role: "specifier",
|
|
76375
|
+
title: "Specifier",
|
|
76376
|
+
description: "You are the specifier responsible for turning the coordinator's work package into detailed, code-level builder briefs and driving the builder through every build pass; you do not implement code.",
|
|
76377
|
+
responsibilities: [
|
|
76378
|
+
"Inspect the repository to ground the work package",
|
|
76379
|
+
"Split the package into file-level builder slices",
|
|
76380
|
+
"Review each builder slice against the brief and acceptance criteria",
|
|
76381
|
+
"Send rework to the builder with specific feedback",
|
|
76382
|
+
"Report the completed package or blockers to the coordinator"
|
|
76383
|
+
],
|
|
76384
|
+
defaultHandoffTarget: "builder"
|
|
76385
|
+
},
|
|
75638
76386
|
architect: {
|
|
75639
76387
|
role: "architect",
|
|
75640
76388
|
title: "Architect",
|
|
@@ -75828,6 +76576,7 @@ function generateHandoffOutput(params) {
|
|
|
75828
76576
|
var init_generator = __esm(() => {
|
|
75829
76577
|
init_command();
|
|
75830
76578
|
init_reminder();
|
|
76579
|
+
init_handoff_templates4();
|
|
75831
76580
|
init_system_prompt();
|
|
75832
76581
|
init_classification_guide();
|
|
75833
76582
|
init_commands_reference();
|
|
@@ -122528,12 +123277,12 @@ teamCommand.command("get").description("Show the current team configuration").re
|
|
|
122528
123277
|
const { getTeam: getTeam2 } = await Promise.resolve().then(() => (init_team(), exports_team));
|
|
122529
123278
|
await getTeam2(options.chatroomId);
|
|
122530
123279
|
});
|
|
122531
|
-
teamCommand.command("set").description("Set the team preset for a chatroom").requiredOption("--chatroom-id <id>", "Chatroom identifier").requiredOption("--team <id>", "Team preset (duo|solo)").action(async (options) => {
|
|
123280
|
+
teamCommand.command("set").description("Set the team preset for a chatroom").requiredOption("--chatroom-id <id>", "Chatroom identifier").requiredOption("--team <id>", "Team preset (duo|solo|trio)").action(async (options) => {
|
|
122532
123281
|
await maybeRequireAuth();
|
|
122533
123282
|
const { setTeam: setTeam2 } = await Promise.resolve().then(() => (init_team(), exports_team));
|
|
122534
123283
|
await setTeam2(options.chatroomId, options.team);
|
|
122535
123284
|
});
|
|
122536
|
-
handoffCommandGroup.command("view-template").description("Print the handoff template for one sender → recipient pair in one conversation mode (requires --from, --to, and --mode)").option("--from <role>", "Sending role (the role that runs the handoff)").option("--to <role>", "Receiving role (the --next-role of the handoff)").option("--mode <mode>", "Conversation mode: chat | code
|
|
123285
|
+
handoffCommandGroup.command("view-template").description("Print the handoff template for one sender → recipient pair in one conversation mode (requires --from, --to, and --mode)").option("--from <role>", "Sending role (the role that runs the handoff)").option("--to <role>", "Receiving role (the --next-role of the handoff)").option("--mode <mode>", "Conversation mode: chat | code (required)").option("--team-id <teamId>", "Team id (solo, duo, trio); defaults to duo").action(async function(options) {
|
|
122537
123286
|
const parentOpts = this.parent?.opts() ?? {};
|
|
122538
123287
|
const { printHandoffViewTemplate: printHandoffViewTemplate2 } = await Promise.resolve().then(() => (init_view_template3(), exports_view_template));
|
|
122539
123288
|
printHandoffViewTemplate2({
|
|
@@ -122545,7 +123294,7 @@ handoffCommandGroup.command("view-template").description("Print the handoff temp
|
|
|
122545
123294
|
legacyNextRole: parentOpts.nextRole
|
|
122546
123295
|
});
|
|
122547
123296
|
});
|
|
122548
|
-
handoffCommandGroup.command("list-templates").description("Show the pair descriptor and handoff template for one sender → recipient pair in one conversation mode (requires --from, --to, and --mode; static, no chatroom required)").option("--from <role>", "Sending role (the role that runs the handoff)").option("--to <role>", "Receiving role (the --next-role of the handoff)").option("--mode <mode>", "Conversation mode: chat | code
|
|
123297
|
+
handoffCommandGroup.command("list-templates").description("Show the pair descriptor and handoff template for one sender → recipient pair in one conversation mode (requires --from, --to, and --mode; static, no chatroom required)").option("--from <role>", "Sending role (the role that runs the handoff)").option("--to <role>", "Receiving role (the --next-role of the handoff)").option("--mode <mode>", "Conversation mode: chat | code (required)").option("--team-id <teamId>", "Team id (solo, duo, trio); defaults to duo").action(async function(options) {
|
|
122549
123298
|
const parentOpts = this.parent?.opts() ?? {};
|
|
122550
123299
|
const { printHandoffListTemplates: printHandoffListTemplates2 } = await Promise.resolve().then(() => (init_list_templates2(), exports_list_templates));
|
|
122551
123300
|
printHandoffListTemplates2({
|
|
@@ -122998,4 +123747,4 @@ program2.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
|
122998
123747
|
});
|
|
122999
123748
|
program2.parse();
|
|
123000
123749
|
|
|
123001
|
-
//# debugId=
|
|
123750
|
+
//# debugId=E7468AF5E7D2685E64756E2164756E21
|