@locusai/sdk 0.9.16 → 0.9.17
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/git/git-utils.d.ts.map +1 -1
- package/dist/index-node.js +167 -10
- package/dist/planning/agents/architect.d.ts.map +1 -1
- package/dist/planning/agents/cross-task-reviewer.d.ts +19 -0
- package/dist/planning/agents/cross-task-reviewer.d.ts.map +1 -0
- package/dist/planning/agents/sprint-organizer.d.ts.map +1 -1
- package/dist/planning/agents/tech-lead.d.ts.map +1 -1
- package/dist/planning/planning-meeting.d.ts +3 -2
- package/dist/planning/planning-meeting.d.ts.map +1 -1
- package/dist/planning/sprint-plan.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-utils.d.ts","sourceRoot":"","sources":["../../src/git/git-utils.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,CAAC;AAE3E;;GAEG;AACH,wBAAgB,cAAc,IAAI,OAAO,CAUxC;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAW3D;AAED;;;GAGG;AACH,wBAAgB,aAAa,IAAI,MAAM,GAAG,IAAI,CAU7C;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,cAAc,CASxE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAC1B,WAAW,EAAE,MAAM,EACnB,MAAM,SAAW,GAChB,MAAM,GAAG,IAAI,CAUf;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAM5D;
|
|
1
|
+
{"version":3,"file":"git-utils.d.ts","sourceRoot":"","sources":["../../src/git/git-utils.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,CAAC;AAE3E;;GAEG;AACH,wBAAgB,cAAc,IAAI,OAAO,CAUxC;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAW3D;AAED;;;GAGG;AACH,wBAAgB,aAAa,IAAI,MAAM,GAAG,IAAI,CAU7C;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,cAAc,CASxE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAC1B,WAAW,EAAE,MAAM,EACnB,MAAM,SAAW,GAChB,MAAM,GAAG,IAAI,CAUf;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAM5D;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,MAAM,EACnB,MAAM,SAAW,GAChB,MAAM,CAsCR"}
|
package/dist/index-node.js
CHANGED
|
@@ -4810,7 +4810,10 @@ function parseSprintPlanFromAI(raw, directive) {
|
|
|
4810
4810
|
if (jsonMatch) {
|
|
4811
4811
|
jsonStr = jsonMatch[1]?.trim() || "";
|
|
4812
4812
|
}
|
|
4813
|
-
|
|
4813
|
+
let parsed = JSON.parse(jsonStr);
|
|
4814
|
+
if (parsed.revisedPlan) {
|
|
4815
|
+
parsed = parsed.revisedPlan;
|
|
4816
|
+
}
|
|
4814
4817
|
const now = new Date().toISOString();
|
|
4815
4818
|
const id = `plan-${Date.now()}`;
|
|
4816
4819
|
const tasks2 = (parsed.tasks || []).map((t, i) => ({
|
|
@@ -5007,10 +5010,25 @@ Review and refine the Tech Lead's breakdown:
|
|
|
5007
5010
|
|
|
5008
5011
|
1. **Ordering** — Order tasks so that foundational work comes first. Tasks that produce outputs consumed by later tasks must appear earlier in the list. Foundation tasks (schemas, config, shared code) must be listed before tasks that build on them. The array index IS the execution order.
|
|
5009
5012
|
2. **Risk Assessment** — Flag tasks that are risky, underestimated, or have unknowns.
|
|
5010
|
-
3. **Task
|
|
5011
|
-
4. **
|
|
5012
|
-
5. **
|
|
5013
|
-
|
|
5013
|
+
3. **Task Merging** — If two tasks are trivially small and related, merge them.
|
|
5014
|
+
4. **Complexity Scoring** — Rate each task 1-5 (1=trivial, 5=very complex).
|
|
5015
|
+
5. **Missing Tasks** — Add any tasks the Tech Lead missed (database migrations, configuration, testing, etc.).
|
|
5016
|
+
|
|
5017
|
+
## CRITICAL: Task Isolation & Overlap Detection
|
|
5018
|
+
|
|
5019
|
+
Tasks are executed by INDEPENDENT agents on SEPARATE git branches that get merged together. Each agent has NO knowledge of what other agents are doing. You MUST enforce these rules:
|
|
5020
|
+
|
|
5021
|
+
1. **Detect overlapping file modifications.** For each task, mentally list the files it will touch. If two tasks modify the same file (especially config files like app.module.ts, configuration.ts, package.json, or shared modules), they WILL cause merge conflicts. You must either:
|
|
5022
|
+
- **Merge them** into a single task, OR
|
|
5023
|
+
- **Move the shared file changes** into one foundational task that runs and merges first
|
|
5024
|
+
|
|
5025
|
+
2. **Detect duplicated work.** If two tasks both introduce the same environment variable, config field, dependency, helper function, or module registration — that is duplicated work. Consolidate it into ONE task.
|
|
5026
|
+
|
|
5027
|
+
3. **Do NOT split tasks that share code changes.** Even if a task is large, do NOT split it if the subtasks would both need to modify the same files. A single larger self-contained task is far better than two smaller conflicting tasks. Only split tasks when the parts are truly independent (touch completely different files and modules).
|
|
5028
|
+
|
|
5029
|
+
4. **Validate self-containment.** Each task must include ALL changes it needs to function: config, schema, module registration, implementation, and tests. A task must NOT assume another concurrent task will provide something it needs.
|
|
5030
|
+
|
|
5031
|
+
5. **Flag high-conflict zones.** In your risk assessment, specifically call out any remaining cases where tasks might touch the same files, and explain why it's unavoidable and how merge conflicts can be minimized.
|
|
5014
5032
|
|
|
5015
5033
|
## Output Format
|
|
5016
5034
|
|
|
@@ -5040,6 +5058,116 @@ Respond with ONLY a JSON object (no markdown code blocks, no explanation):
|
|
|
5040
5058
|
return prompt;
|
|
5041
5059
|
}
|
|
5042
5060
|
|
|
5061
|
+
// src/planning/agents/cross-task-reviewer.ts
|
|
5062
|
+
function buildCrossTaskReviewerPrompt(input) {
|
|
5063
|
+
let prompt = `# Role: Cross-Task Reviewer (Architect + Engineer + Planner)
|
|
5064
|
+
|
|
5065
|
+
You are a combined Architect, Senior Engineer, and Sprint Planner performing a FINAL review of a sprint plan. Your sole focus is ensuring that tasks are fully isolated and will not conflict when executed by independent agents on separate git branches.
|
|
5066
|
+
|
|
5067
|
+
## Context
|
|
5068
|
+
|
|
5069
|
+
In this system, each task is executed by an independent AI agent that:
|
|
5070
|
+
- Works on its own git branch (worktree)
|
|
5071
|
+
- Has NO knowledge of what other agents are working on
|
|
5072
|
+
- Cannot see changes made by other concurrent agents
|
|
5073
|
+
- Its branch will be merged into main after completion
|
|
5074
|
+
|
|
5075
|
+
This means that if two tasks modify the same file, add the same dependency, or introduce the same config variable — they WILL cause merge conflicts and duplicated code.
|
|
5076
|
+
|
|
5077
|
+
## CEO Directive
|
|
5078
|
+
> ${input.directive}
|
|
5079
|
+
`;
|
|
5080
|
+
if (input.feedback) {
|
|
5081
|
+
prompt += `
|
|
5082
|
+
## CEO Feedback on Previous Plan
|
|
5083
|
+
> ${input.feedback}
|
|
5084
|
+
|
|
5085
|
+
IMPORTANT: Ensure the reviewed plan still addresses this feedback.
|
|
5086
|
+
`;
|
|
5087
|
+
}
|
|
5088
|
+
prompt += `
|
|
5089
|
+
## Project Context
|
|
5090
|
+
${input.projectContext || "No project context available."}
|
|
5091
|
+
|
|
5092
|
+
## Sprint Plan to Review
|
|
5093
|
+
${input.sprintOrganizerOutput}
|
|
5094
|
+
|
|
5095
|
+
## Your Review Checklist
|
|
5096
|
+
|
|
5097
|
+
Go through EACH pair of tasks and check for:
|
|
5098
|
+
|
|
5099
|
+
### 1. File Overlap Analysis
|
|
5100
|
+
For each task, list the files it will likely modify. Then check:
|
|
5101
|
+
- Do any two tasks modify the same file? (e.g., app.module.ts, configuration.ts, package.json, shared DTOs)
|
|
5102
|
+
- If yes: MERGE those tasks or move shared changes to a foundational task
|
|
5103
|
+
|
|
5104
|
+
### 2. Duplicated Work Detection
|
|
5105
|
+
Check if multiple tasks:
|
|
5106
|
+
- Add the same environment variable or config field
|
|
5107
|
+
- Install or configure the same dependency
|
|
5108
|
+
- Register the same module or provider
|
|
5109
|
+
- Create the same helper function, guard, interceptor, or middleware
|
|
5110
|
+
- Add the same import to a shared file
|
|
5111
|
+
If yes: consolidate into ONE task
|
|
5112
|
+
|
|
5113
|
+
### 3. Self-Containment Validation
|
|
5114
|
+
For each task, verify:
|
|
5115
|
+
- Does it include ALL config/env changes it needs?
|
|
5116
|
+
- Does it include ALL module registrations it needs?
|
|
5117
|
+
- Does it include ALL dependency installations it needs?
|
|
5118
|
+
- Can it be completed without ANY output from concurrent tasks?
|
|
5119
|
+
|
|
5120
|
+
### 4. Merge Conflict Risk Zones
|
|
5121
|
+
Identify the highest-risk files (files that multiple tasks might touch) and ensure only ONE task modifies each.
|
|
5122
|
+
|
|
5123
|
+
## Output Format
|
|
5124
|
+
|
|
5125
|
+
Respond with ONLY a JSON object (no markdown code blocks, no explanation):
|
|
5126
|
+
|
|
5127
|
+
{
|
|
5128
|
+
"hasIssues": true | false,
|
|
5129
|
+
"issues": [
|
|
5130
|
+
{
|
|
5131
|
+
"type": "file_overlap" | "duplicated_work" | "not_self_contained" | "merge_conflict_risk",
|
|
5132
|
+
"description": "string describing the specific issue",
|
|
5133
|
+
"affectedTasks": ["Task Title 1", "Task Title 2"],
|
|
5134
|
+
"resolution": "string describing how to fix it (merge, move, consolidate)"
|
|
5135
|
+
}
|
|
5136
|
+
],
|
|
5137
|
+
"revisedPlan": {
|
|
5138
|
+
"name": "string (2-4 words)",
|
|
5139
|
+
"goal": "string (1 paragraph)",
|
|
5140
|
+
"estimatedDays": 3,
|
|
5141
|
+
"tasks": [
|
|
5142
|
+
{
|
|
5143
|
+
"title": "string",
|
|
5144
|
+
"description": "string",
|
|
5145
|
+
"assigneeRole": "BACKEND | FRONTEND | QA | PM | DESIGN",
|
|
5146
|
+
"priority": "CRITICAL | HIGH | MEDIUM | LOW",
|
|
5147
|
+
"labels": ["string"],
|
|
5148
|
+
"acceptanceCriteria": ["string"],
|
|
5149
|
+
"complexity": 3
|
|
5150
|
+
}
|
|
5151
|
+
],
|
|
5152
|
+
"risks": [
|
|
5153
|
+
{
|
|
5154
|
+
"description": "string",
|
|
5155
|
+
"mitigation": "string",
|
|
5156
|
+
"severity": "low | medium | high"
|
|
5157
|
+
}
|
|
5158
|
+
]
|
|
5159
|
+
}
|
|
5160
|
+
}
|
|
5161
|
+
|
|
5162
|
+
IMPORTANT:
|
|
5163
|
+
- If hasIssues is true, the revisedPlan MUST contain the corrected task list with issues resolved (tasks merged, duplicated work consolidated, etc.)
|
|
5164
|
+
- If hasIssues is false, the revisedPlan should be identical to the input plan (no changes needed)
|
|
5165
|
+
- The revisedPlan is ALWAYS required — it becomes the final plan
|
|
5166
|
+
- When merging tasks, combine their acceptance criteria and update descriptions to cover all consolidated work
|
|
5167
|
+
- Prefer fewer, larger, self-contained tasks over many small conflicting ones`;
|
|
5168
|
+
return prompt;
|
|
5169
|
+
}
|
|
5170
|
+
|
|
5043
5171
|
// src/planning/agents/sprint-organizer.ts
|
|
5044
5172
|
function buildSprintOrganizerPrompt(input) {
|
|
5045
5173
|
let prompt = `# Role: Sprint Organizer
|
|
@@ -5078,6 +5206,15 @@ Guidelines:
|
|
|
5078
5206
|
- Ensure acceptance criteria are specific and testable
|
|
5079
5207
|
- Keep the sprint focused — if it's too large (>12 tasks), consider reducing scope
|
|
5080
5208
|
|
|
5209
|
+
## CRITICAL: Task Isolation Validation
|
|
5210
|
+
|
|
5211
|
+
Before finalizing, validate that EVERY task is fully self-contained and conflict-free:
|
|
5212
|
+
|
|
5213
|
+
1. **No two tasks should modify the same file.** If they do, merge them or restructure so shared changes live in one foundational task.
|
|
5214
|
+
2. **No duplicated work.** Each env var, config field, dependency, module import, or helper function must be introduced by exactly ONE task.
|
|
5215
|
+
3. **Each task is independently executable.** An agent working on task N must be able to complete it without knowing what tasks N-1 or N+1 are doing. The only exception is foundational tasks that are merged BEFORE dependent tasks start.
|
|
5216
|
+
4. **Prefer fewer, larger self-contained tasks over many small overlapping ones.** Do not split a task if the parts would conflict with each other.
|
|
5217
|
+
|
|
5081
5218
|
## Output Format
|
|
5082
5219
|
|
|
5083
5220
|
Respond with ONLY a JSON object (no markdown code blocks, no explanation):
|
|
@@ -5149,6 +5286,16 @@ Think about:
|
|
|
5149
5286
|
- What the right granularity is (not too big, not too small)
|
|
5150
5287
|
- What risks or unknowns exist
|
|
5151
5288
|
|
|
5289
|
+
## CRITICAL: Task Isolation Rules
|
|
5290
|
+
|
|
5291
|
+
Tasks will be executed by INDEPENDENT agents on SEPARATE git branches that get merged together. Each agent has NO knowledge of what other agents are doing. Therefore:
|
|
5292
|
+
|
|
5293
|
+
1. **No shared work across tasks.** If two tasks both need the same config variable, helper function, database migration, or module setup, that shared work MUST be consolidated into ONE task (or placed into a dedicated foundational task that runs first and is merged before others start).
|
|
5294
|
+
2. **Each task must be fully self-contained.** A task must include ALL the code changes it needs to work — from config to implementation to tests. It should NOT assume that another task in the same sprint will create something it depends on.
|
|
5295
|
+
3. **Do NOT split tasks if they share code changes.** If implementing feature A and feature B both require modifying the same file or adding the same dependency/config, they should be ONE task — even if that makes the task larger. A bigger self-contained task is better than two smaller conflicting tasks.
|
|
5296
|
+
4. **Think about file-level conflicts.** Two tasks modifying the same file (e.g., app.module.ts, configuration.ts, package.json) will cause git merge conflicts. Minimize this by bundling related changes together.
|
|
5297
|
+
5. **Environment variables, configs, and shared modules are high-conflict zones.** If a task introduces a new env var, config schema field, or module import, NO other task should touch that same file unless absolutely necessary.
|
|
5298
|
+
|
|
5152
5299
|
## Output Format
|
|
5153
5300
|
|
|
5154
5301
|
Respond with ONLY a JSON object (no markdown code blocks, no explanation):
|
|
@@ -5184,7 +5331,7 @@ class PlanningMeeting {
|
|
|
5184
5331
|
async run(directive, feedback) {
|
|
5185
5332
|
const projectContext = this.getProjectContext();
|
|
5186
5333
|
const codebaseIndex = this.getCodebaseIndex();
|
|
5187
|
-
this.log("Phase 1/
|
|
5334
|
+
this.log("Phase 1/4: Tech Lead analyzing directive...", "info");
|
|
5188
5335
|
const techLeadPrompt = buildTechLeadPrompt({
|
|
5189
5336
|
directive,
|
|
5190
5337
|
projectContext,
|
|
@@ -5193,7 +5340,7 @@ class PlanningMeeting {
|
|
|
5193
5340
|
});
|
|
5194
5341
|
const techLeadOutput = await this.aiRunner.run(techLeadPrompt);
|
|
5195
5342
|
this.log("Tech Lead phase complete.", "success");
|
|
5196
|
-
this.log("Phase 2/
|
|
5343
|
+
this.log("Phase 2/4: Architect refining task breakdown...", "info");
|
|
5197
5344
|
const architectPrompt = buildArchitectPrompt({
|
|
5198
5345
|
directive,
|
|
5199
5346
|
projectContext,
|
|
@@ -5202,7 +5349,7 @@ class PlanningMeeting {
|
|
|
5202
5349
|
});
|
|
5203
5350
|
const architectOutput = await this.aiRunner.run(architectPrompt);
|
|
5204
5351
|
this.log("Architect phase complete.", "success");
|
|
5205
|
-
this.log("Phase 3/
|
|
5352
|
+
this.log("Phase 3/4: Sprint Organizer finalizing plan...", "info");
|
|
5206
5353
|
const sprintOrganizerPrompt = buildSprintOrganizerPrompt({
|
|
5207
5354
|
directive,
|
|
5208
5355
|
architectOutput,
|
|
@@ -5210,7 +5357,16 @@ class PlanningMeeting {
|
|
|
5210
5357
|
});
|
|
5211
5358
|
const sprintOrganizerOutput = await this.aiRunner.run(sprintOrganizerPrompt);
|
|
5212
5359
|
this.log("Sprint Organizer phase complete.", "success");
|
|
5213
|
-
|
|
5360
|
+
this.log("Phase 4/4: Cross-Task Review checking for conflicts and overlaps...", "info");
|
|
5361
|
+
const crossTaskReviewerPrompt = buildCrossTaskReviewerPrompt({
|
|
5362
|
+
directive,
|
|
5363
|
+
projectContext,
|
|
5364
|
+
sprintOrganizerOutput,
|
|
5365
|
+
feedback
|
|
5366
|
+
});
|
|
5367
|
+
const crossTaskReviewOutput = await this.aiRunner.run(crossTaskReviewerPrompt);
|
|
5368
|
+
this.log("Cross-Task Review phase complete.", "success");
|
|
5369
|
+
const plan = parseSprintPlanFromAI(crossTaskReviewOutput, directive);
|
|
5214
5370
|
if (feedback) {
|
|
5215
5371
|
plan.feedback = feedback;
|
|
5216
5372
|
}
|
|
@@ -5219,7 +5375,8 @@ class PlanningMeeting {
|
|
|
5219
5375
|
phaseOutputs: {
|
|
5220
5376
|
techLead: techLeadOutput,
|
|
5221
5377
|
architect: architectOutput,
|
|
5222
|
-
sprintOrganizer: sprintOrganizerOutput
|
|
5378
|
+
sprintOrganizer: sprintOrganizerOutput,
|
|
5379
|
+
crossTaskReview: crossTaskReviewOutput
|
|
5223
5380
|
}
|
|
5224
5381
|
};
|
|
5225
5382
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"architect.d.ts","sourceRoot":"","sources":["../../../src/planning/agents/architect.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"architect.d.ts","sourceRoot":"","sources":["../../../src/planning/agents/architect.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,CA8ElE"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cross-Task Reviewer Agent Persona
|
|
3
|
+
*
|
|
4
|
+
* Phase 4 (final) of the planning meeting. Reviews the Sprint Organizer's
|
|
5
|
+
* finalized plan specifically for task isolation issues: overlapping file
|
|
6
|
+
* modifications, duplicated work, shared dependencies, and merge conflict risks.
|
|
7
|
+
*
|
|
8
|
+
* This is a brainstorming review where the architect, engineer, and planner
|
|
9
|
+
* perspectives are combined to catch issues that would cause conflicts when
|
|
10
|
+
* tasks are executed by independent agents on separate git branches.
|
|
11
|
+
*/
|
|
12
|
+
export interface CrossTaskReviewerInput {
|
|
13
|
+
directive: string;
|
|
14
|
+
projectContext: string;
|
|
15
|
+
sprintOrganizerOutput: string;
|
|
16
|
+
feedback?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function buildCrossTaskReviewerPrompt(input: CrossTaskReviewerInput): string;
|
|
19
|
+
//# sourceMappingURL=cross-task-reviewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cross-task-reviewer.d.ts","sourceRoot":"","sources":["../../../src/planning/agents/cross-task-reviewer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,sBAAsB,GAC5B,MAAM,CA8GR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sprint-organizer.d.ts","sourceRoot":"","sources":["../../../src/planning/agents/sprint-organizer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,oBAAoB,GAC1B,MAAM,
|
|
1
|
+
{"version":3,"file":"sprint-organizer.d.ts","sourceRoot":"","sources":["../../../src/planning/agents/sprint-organizer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,oBAAoB,GAC1B,MAAM,CA6ER"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tech-lead.d.ts","sourceRoot":"","sources":["../../../src/planning/agents/tech-lead.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"tech-lead.d.ts","sourceRoot":"","sources":["../../../src/planning/agents/tech-lead.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,CAuEhE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AiRunner } from "../ai/runner.js";
|
|
2
2
|
import { type SprintPlan } from "./sprint-plan.js";
|
|
3
|
-
export type PlanningPhase = "tech-lead" | "architect" | "sprint-organizer" | "complete";
|
|
3
|
+
export type PlanningPhase = "tech-lead" | "architect" | "sprint-organizer" | "cross-task-review" | "complete";
|
|
4
4
|
export interface PlanningMeetingConfig {
|
|
5
5
|
projectPath: string;
|
|
6
6
|
aiRunner: AiRunner;
|
|
@@ -13,13 +13,14 @@ export interface PlanningMeetingResult {
|
|
|
13
13
|
techLead: string;
|
|
14
14
|
architect: string;
|
|
15
15
|
sprintOrganizer: string;
|
|
16
|
+
crossTaskReview: string;
|
|
16
17
|
};
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
19
20
|
* Orchestrates a multi-phase planning meeting where AI agent personas
|
|
20
21
|
* collaborate to produce a sprint plan.
|
|
21
22
|
*
|
|
22
|
-
* Flow: CEO Directive → Tech Lead → Architect → Sprint Organizer → Sprint Plan
|
|
23
|
+
* Flow: CEO Directive → Tech Lead → Architect → Sprint Organizer → Cross-Task Review → Sprint Plan
|
|
23
24
|
*/
|
|
24
25
|
export declare class PlanningMeeting {
|
|
25
26
|
private projectPath;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planning-meeting.d.ts","sourceRoot":"","sources":["../../src/planning/planning-meeting.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"planning-meeting.d.ts","sourceRoot":"","sources":["../../src/planning/planning-meeting.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAOhD,OAAO,EAAyB,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE1E,MAAM,MAAM,aAAa,GACrB,WAAW,GACX,WAAW,GACX,kBAAkB,GAClB,mBAAmB,GACnB,UAAU,CAAC;AAEf,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,QAAQ,CAAC;IACnB,GAAG,CAAC,EAAE,CACJ,OAAO,EAAE,MAAM,E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AAC;IAC7B,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;CACrC;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,CAAC;IAC1D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CA+D7D;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,UAAU,EAChB,QAAQ,EAAE,MAAM,GACf,UAAU,EAAE,CAgBd;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,GAChB,UAAU,CA+CZ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@locusai/sdk",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"clean": "rm -rf node_modules"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@locusai/shared": "^0.9.
|
|
33
|
+
"@locusai/shared": "^0.9.17",
|
|
34
34
|
"axios": "^1.13.2",
|
|
35
35
|
"events": "^3.3.0",
|
|
36
36
|
"globby": "^14.0.2"
|