openplanr 0.7.0 → 0.9.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 +11 -5
- package/dist/ai/prompts/prompt-builder.d.ts +1 -0
- package/dist/ai/prompts/prompt-builder.d.ts.map +1 -1
- package/dist/ai/prompts/prompt-builder.js +19 -2
- package/dist/ai/prompts/prompt-builder.js.map +1 -1
- package/dist/ai/prompts/system-prompts.d.ts +2 -1
- package/dist/ai/prompts/system-prompts.d.ts.map +1 -1
- package/dist/ai/prompts/system-prompts.js +44 -1
- package/dist/ai/prompts/system-prompts.js.map +1 -1
- package/dist/ai/schemas/ai-response-schemas.d.ts +13 -0
- package/dist/ai/schemas/ai-response-schemas.d.ts.map +1 -1
- package/dist/ai/schemas/ai-response-schemas.js +15 -0
- package/dist/ai/schemas/ai-response-schemas.js.map +1 -1
- package/dist/ai/types.d.ts +2 -1
- package/dist/ai/types.d.ts.map +1 -1
- package/dist/ai/types.js +2 -1
- package/dist/ai/types.js.map +1 -1
- package/dist/cli/commands/epic.d.ts.map +1 -1
- package/dist/cli/commands/epic.js +16 -3
- package/dist/cli/commands/epic.js.map +1 -1
- package/dist/cli/commands/estimate.d.ts +3 -0
- package/dist/cli/commands/estimate.d.ts.map +1 -0
- package/dist/cli/commands/estimate.js +367 -0
- package/dist/cli/commands/estimate.js.map +1 -0
- package/dist/cli/commands/export.d.ts +8 -0
- package/dist/cli/commands/export.d.ts.map +1 -0
- package/dist/cli/commands/export.js +280 -0
- package/dist/cli/commands/export.js.map +1 -0
- package/dist/cli/commands/github.d.ts +8 -0
- package/dist/cli/commands/github.d.ts.map +1 -0
- package/dist/cli/commands/github.js +412 -0
- package/dist/cli/commands/github.js.map +1 -0
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +9 -1
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/plan.d.ts.map +1 -1
- package/dist/cli/commands/plan.js +89 -20
- package/dist/cli/commands/plan.js.map +1 -1
- package/dist/cli/commands/search.d.ts +3 -0
- package/dist/cli/commands/search.d.ts.map +1 -0
- package/dist/cli/commands/search.js +115 -0
- package/dist/cli/commands/search.js.map +1 -0
- package/dist/cli/index.js +8 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/services/github-service.d.ts +83 -0
- package/dist/services/github-service.d.ts.map +1 -0
- package/dist/services/github-service.js +435 -0
- package/dist/services/github-service.js.map +1 -0
- package/dist/services/template-service.d.ts.map +1 -1
- package/dist/services/template-service.js +1 -0
- package/dist/services/template-service.js.map +1 -1
- package/dist/templates/export/planning-report.html.hbs +230 -0
- package/dist/templates/export/planning-report.md.hbs +136 -0
- package/dist/templates/guides/estimation.md.hbs +71 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,6 +35,7 @@ planr epic create
|
|
|
35
35
|
planr feature create --epic EPIC-001
|
|
36
36
|
planr story create --feature FEAT-001
|
|
37
37
|
planr task create --story US-001
|
|
38
|
+
# or: planr task create --feature FEAT-001 # one task list from every story + full planning context (AI)
|
|
38
39
|
|
|
39
40
|
# Generate AI rules for your editor
|
|
40
41
|
planr rules generate
|
|
@@ -47,12 +48,13 @@ planr init
|
|
|
47
48
|
└── planr epic create # Define the big picture
|
|
48
49
|
└── planr feature create --epic EPIC-001 # Break into features
|
|
49
50
|
└── planr story create --feature FEAT-001 # User stories + Gherkin
|
|
50
|
-
|
|
51
|
+
├── planr task create --story US-001 # Tasks from one story (+ parent feature/epic, Gherkin, ADRs, codebase context)
|
|
52
|
+
└── planr task create --feature FEAT-001 # Tasks from all stories in the feature (+ same context, wider scope; larger AI budget)
|
|
51
53
|
|
|
52
54
|
planr rules generate # Generate .cursor/rules, CLAUDE.md, AGENTS.md
|
|
53
55
|
```
|
|
54
56
|
|
|
55
|
-
Each command creates markdown artifacts in `docs/agile/` and interactively prompts for the details. The hierarchy is enforced — features require an epic, stories require a feature, tasks require a story or feature.
|
|
57
|
+
Each command creates markdown artifacts in `docs/agile/` and interactively prompts for the details. The hierarchy is enforced — features require an epic, stories require a feature, tasks require a story or feature. For AI-powered `task create`, context always includes parent feature and epic, Gherkin where present, all ADRs, and codebase-derived context; `--feature` aggregates every story under that feature and uses a higher output token limit than `--story`.
|
|
56
58
|
|
|
57
59
|
Or use `planr plan` to run the full flow in a single command:
|
|
58
60
|
|
|
@@ -80,15 +82,15 @@ planr rules generate --dry-run # preview
|
|
|
80
82
|
| Command | Description |
|
|
81
83
|
|---------|-------------|
|
|
82
84
|
| `planr init` | Initialize project with config and directory structure |
|
|
83
|
-
| `planr epic create` | Create a new epic |
|
|
85
|
+
| `planr epic create` | Create a new epic (supports `--file <path>` for PRDs) |
|
|
84
86
|
| `planr epic list` | List all epics |
|
|
85
87
|
| `planr feature create --epic <ID>` | Create features from an epic |
|
|
86
88
|
| `planr feature list` | List all features |
|
|
87
89
|
| `planr story create --feature <ID>` | Create user stories from a feature |
|
|
88
90
|
| `planr story create --epic <ID>` | Batch-generate stories for all features under an epic |
|
|
89
91
|
| `planr story list` | List all user stories |
|
|
90
|
-
| `planr task create --story <ID>` |
|
|
91
|
-
| `planr task create --feature <ID>` |
|
|
92
|
+
| `planr task create --story <ID>` | AI task list from one story (plus parent feature/epic, Gherkin, ADRs, codebase context) |
|
|
93
|
+
| `planr task create --feature <ID>` | AI task list from **all** stories under the feature, with the same artifact context and a larger model output budget |
|
|
92
94
|
| `planr task list` | List all task lists |
|
|
93
95
|
| `planr task implement <ID>` | View tasks and start implementing |
|
|
94
96
|
| `planr plan` | Full automated flow: Epic → Features → Stories → Tasks |
|
|
@@ -104,6 +106,10 @@ planr rules generate --dry-run # preview
|
|
|
104
106
|
| `planr config set-key` | Store API key securely |
|
|
105
107
|
| `planr config set-model` | Set AI model |
|
|
106
108
|
| `planr config set-agent` | Set default coding agent |
|
|
109
|
+
| `planr github push [ID]` | Push artifacts to GitHub Issues (single, `--epic`, or `--all`) |
|
|
110
|
+
| `planr github sync` | Bi-directional status sync with GitHub Issues |
|
|
111
|
+
| `planr github status` | Show sync status of linked artifacts |
|
|
112
|
+
| `planr export` | Export planning report (markdown, JSON, or HTML) |
|
|
107
113
|
|
|
108
114
|
See [docs/CLI.md](docs/CLI.md) for the full command reference with all options and flags.
|
|
109
115
|
|
|
@@ -39,6 +39,7 @@ export interface TasksPromptInput {
|
|
|
39
39
|
}
|
|
40
40
|
export declare function buildTasksPrompt(ctx: TasksPromptInput): AIMessage[];
|
|
41
41
|
export declare function buildQuickTasksPrompt(description: string, codebaseContext?: string): AIMessage[];
|
|
42
|
+
export declare function buildEstimatePrompt(artifactContent: string, artifactType: string, codebaseContext?: string): AIMessage[];
|
|
42
43
|
export declare function buildRefinePrompt(artifactContent: string, artifactType: string, parentContext?: {
|
|
43
44
|
type: string;
|
|
44
45
|
content: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-builder.d.ts","sourceRoot":"","sources":["../../../src/ai/prompts/prompt-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"prompt-builder.d.ts","sourceRoot":"","sources":["../../../src/ai/prompts/prompt-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAW7C,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,aAAa,GAAE,MAAM,EAAO,GAAG,SAAS,EAAE,CAkBxF;AAED,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,MAAM,EACnB,gBAAgB,GAAE,MAAM,EAAO,EAC/B,YAAY,CAAC,EAAE,MAAM,GACpB,SAAS,EAAE,CAeb;AAED,wBAAgB,kBAAkB,CAChC,cAAc,EAAE,MAAM,EACtB,WAAW,EAAE,MAAM,EACnB,eAAe,GAAE,MAAM,EAAO,GAC7B,SAAS,EAAE,CAYb;AAED,MAAM,WAAW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|
10
10
|
*/
|
|
11
|
-
import { EPIC_SYSTEM_PROMPT, FEATURES_SYSTEM_PROMPT, QUICK_TASKS_SYSTEM_PROMPT, REFINE_SYSTEM_PROMPT, STORIES_SYSTEM_PROMPT, TASKS_SYSTEM_PROMPT, } from './system-prompts.js';
|
|
11
|
+
import { EPIC_SYSTEM_PROMPT, ESTIMATE_SYSTEM_PROMPT, FEATURES_SYSTEM_PROMPT, QUICK_TASKS_SYSTEM_PROMPT, REFINE_SYSTEM_PROMPT, STORIES_SYSTEM_PROMPT, TASKS_SYSTEM_PROMPT, } from './system-prompts.js';
|
|
12
12
|
export function buildEpicPrompt(brief, existingEpics = []) {
|
|
13
|
-
|
|
13
|
+
const isDetailed = brief.split('\n').length > 5;
|
|
14
|
+
let userContent;
|
|
15
|
+
if (isDetailed) {
|
|
16
|
+
userContent = `Create an epic from this detailed requirements document. Extract ALL key requirements, features, and success criteria from the full document:\n\n${brief}`;
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
userContent = `Create an epic from this brief:\n\n"${brief}"`;
|
|
20
|
+
}
|
|
14
21
|
if (existingEpics.length > 0) {
|
|
15
22
|
userContent += `\n\nExisting epics in this project (do NOT duplicate):\n${existingEpics.map((e) => `- ${e}`).join('\n')}`;
|
|
16
23
|
}
|
|
@@ -96,6 +103,16 @@ export function buildQuickTasksPrompt(description, codebaseContext) {
|
|
|
96
103
|
{ role: 'user', content: userContent },
|
|
97
104
|
];
|
|
98
105
|
}
|
|
106
|
+
export function buildEstimatePrompt(artifactContent, artifactType, codebaseContext) {
|
|
107
|
+
let userContent = `Estimate the effort for this ${artifactType} artifact:\n\n${artifactContent}`;
|
|
108
|
+
if (codebaseContext) {
|
|
109
|
+
userContent += `\n\n--- Codebase Context ---\n${codebaseContext}`;
|
|
110
|
+
}
|
|
111
|
+
return [
|
|
112
|
+
{ role: 'system', content: ESTIMATE_SYSTEM_PROMPT },
|
|
113
|
+
{ role: 'user', content: userContent },
|
|
114
|
+
];
|
|
115
|
+
}
|
|
99
116
|
export function buildRefinePrompt(artifactContent, artifactType, parentContext) {
|
|
100
117
|
let userContent = `Review and improve this ${artifactType} artifact. The "improvedMarkdown" in your response must preserve the same file format (YAML frontmatter + markdown body) as shown below:\n\n${artifactContent}`;
|
|
101
118
|
if (parentContext) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-builder.js","sourceRoot":"","sources":["../../../src/ai/prompts/prompt-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,yBAAyB,EACzB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,UAAU,eAAe,CAAC,KAAa,EAAE,gBAA0B,EAAE;IACzE,IAAI,WAAW,GAAG,uCAAuC,KAAK,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"prompt-builder.js","sourceRoot":"","sources":["../../../src/ai/prompts/prompt-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,EACtB,yBAAyB,EACzB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,UAAU,eAAe,CAAC,KAAa,EAAE,gBAA0B,EAAE;IACzE,MAAM,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;IAEhD,IAAI,WAAmB,CAAC;IACxB,IAAI,UAAU,EAAE,CAAC;QACf,WAAW,GAAG,oJAAoJ,KAAK,EAAE,CAAC;IAC5K,CAAC;SAAM,CAAC;QACN,WAAW,GAAG,uCAAuC,KAAK,GAAG,CAAC;IAChE,CAAC;IAED,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC7B,WAAW,IAAI,2DAA2D,aAAa,CAAC,GAA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AoB,EACpB,eAAwB;IAExB,IAAI,WAAW,GAAG,gCAAgC,YAAY,iBAAiB,eAAe,EAAE,CAAC;IAEjG,IAAI,eAAe,EAAE,CAAC;QACpB,WAAW,IAAI,iCAAiC,eAAe,EAAE,CAAC;IACpE,CAAC;IAED,OAAO;QACL,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,sBAAsB,EAAE;QACnD,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE;KACvC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,iBAAiB,CAC/B,eAAuB,EACvB,YAAoB,EACpB,aAAiD;IAEjD,IAAI,WAAW,GAAG,2BAA2B,YAAY,+IAA+I,eAAe,EAAE,CAAC;IAE1N,IAAI,aAAa,EAAE,CAAC;QAClB,WAAW,IAAI,0BAA0B,aAAa,CAAC,IAAI,2BAA2B,aAAa,CAAC,OAAO,EAAE,CAAC;QAC9G,WAAW,IAAI,6BAA6B,aAAa,CAAC,IAAI,wCAAwC,YAAY,kHAAkH,CAAC;IACvO,CAAC;IAED,OAAO;QACL,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,oBAAoB,EAAE;QACjD,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE;KACvC,CAAC;AACJ,CAAC"}
|
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
* and instructs it to produce structured JSON output matching our
|
|
6
6
|
* artifact schemas.
|
|
7
7
|
*/
|
|
8
|
-
export declare const EPIC_SYSTEM_PROMPT = "You are an expert agile planning consultant with deep experience in software development, product management, and technical architecture. You help teams create clear, actionable, and well-structured planning artifacts.\n\nYour task is to expand a brief description into a complete, detailed epic document.\n\nYou MUST respond with a valid JSON object containing these fields:\n- \"title\": A concise, descriptive epic title (max 80 chars)\n- \"owner\": The responsible team or role (e.g., \"Engineering\", \"Product\", \"Platform Team\")\n- \"businessValue\": Why this matters to the business (2-3 sentences)\n- \"targetUsers\": Who benefits from this (specific user personas)\n- \"problemStatement\": The problem being solved (2-3 sentences)\n- \"solutionOverview\": High-level approach to solving it (2-3 sentences)\n- \"successCriteria\": Array of 3-5 measurable definition-of-done bullet points (e.g., [\"Users can X within Y seconds\", \"System supports Z\"])\n- \"keyFeatures\": Array of 3-7 high-level feature names that compose this epic\n- \"dependencies\": Known dependencies or \"None\"\n- \"risks\": Known risks or \"None\"\n\nBe specific, avoid generic filler. Ground the epic in the user's
|
|
8
|
+
export declare const EPIC_SYSTEM_PROMPT = "You are an expert agile planning consultant with deep experience in software development, product management, and technical architecture. You help teams create clear, actionable, and well-structured planning artifacts.\n\nYour task is to expand a brief description into a complete, detailed epic document.\n\nYou MUST respond with a valid JSON object containing these fields:\n- \"title\": A concise, descriptive epic title (max 80 chars)\n- \"owner\": The responsible team or role (e.g., \"Engineering\", \"Product\", \"Platform Team\")\n- \"businessValue\": Why this matters to the business (2-3 sentences)\n- \"targetUsers\": Who benefits from this (specific user personas)\n- \"problemStatement\": The problem being solved (2-3 sentences)\n- \"solutionOverview\": High-level approach to solving it (2-3 sentences)\n- \"successCriteria\": Array of 3-5 measurable definition-of-done bullet points (e.g., [\"Users can X within Y seconds\", \"System supports Z\"])\n- \"keyFeatures\": Array of 3-7 high-level feature names that compose this epic\n- \"dependencies\": Known dependencies or \"None\"\n- \"risks\": Known risks or \"None\"\n\nBe specific, avoid generic filler. Ground the epic in the user's input.\nIf the input is a detailed PRD or requirements document, extract and incorporate ALL sections \u2014 do not summarize or ignore content. Every key requirement should be reflected in the epic fields.\nRespond with JSON only, no markdown or explanation.";
|
|
9
9
|
export declare const FEATURES_SYSTEM_PROMPT = "You are an expert agile planning consultant with deep experience in software development, product management, and technical architecture. You help teams create clear, actionable, and well-structured planning artifacts.\n\nYour task is to decompose an epic into individual features. Read the epic carefully and generate features that fully cover its scope.\n\nYou MUST respond with a valid JSON object containing:\n- \"features\": An array of feature objects, each with:\n - \"title\": A clear feature title (max 80 chars)\n - \"overview\": What this feature does (2-3 sentences)\n - \"functionalRequirements\": Array of 3-6 specific functional requirements\n - \"dependencies\": Dependencies on other features or systems, or \"None\"\n - \"technicalConsiderations\": Technical notes for implementation, or \"None\"\n - \"risks\": Feature-specific risks, or \"None\"\n - \"successMetrics\": How to measure success of this feature\n\nGenerate features that are:\n- Independently deliverable where possible\n- Roughly equal in scope\n- Non-overlapping (no duplicate functionality)\n\nRespond with JSON only, no markdown or explanation.";
|
|
10
10
|
export declare const STORIES_SYSTEM_PROMPT = "You are an expert agile planning consultant with deep experience in software development, product management, and technical architecture. You help teams create clear, actionable, and well-structured planning artifacts.\n\nYour task is to break a feature into user stories. Read the feature and its parent epic context carefully.\n\nYou MUST respond with a valid JSON object containing:\n- \"stories\": An array of story objects, each with:\n - \"title\": Concise story title (max 80 chars)\n - \"role\": The user role (\"As a <role>\")\n - \"goal\": What they want to do (\"I want to <goal>\")\n - \"benefit\": Why (\"So that <benefit>\")\n - \"additionalNotes\": Implementation notes or edge cases (optional, can be empty string)\n - \"gherkinScenarios\": Array of scenario objects, each with:\n - \"name\": Scenario name\n - \"given\": Given precondition\n - \"when\": When action\n - \"then\": Then expected outcome\n\nEach story should:\n- Follow INVEST principles (Independent, Negotiable, Valuable, Estimable, Small, Testable)\n- Include 1-3 Gherkin scenarios (happy path + edge cases)\n- Be specific enough for a developer to implement\n\nRespond with JSON only, no markdown or explanation.";
|
|
11
11
|
export declare const TASKS_SYSTEM_PROMPT = "You are an expert agile planning consultant with deep experience in software development, product management, and technical architecture. You help teams create clear, actionable, and well-structured planning artifacts.\n\nYour task is to generate a comprehensive implementation task list from agile artifacts (user stories, gherkin acceptance criteria, feature specs, epic context, ADRs, and codebase context).\n\nYou MUST respond with a valid JSON object containing:\n- \"title\": A task list title \u2014 use the scope ID if provided (e.g., \"Tasks for FEAT-001: Feature Name\" when scope is a feature, or \"Tasks for US-001: Story Name\" when scope is a story)\n- \"tasks\": An array of task group objects, each with:\n - \"id\": Numbering like \"1.0\", \"2.0\", \"3.0\"\n - \"title\": Task group title\n - \"subtasks\": Array of subtask objects, each with:\n - \"id\": Numbering like \"1.1\", \"1.2\", \"2.1\"\n - \"title\": Specific, actionable subtask description\n- \"acceptanceCriteriaMapping\": Array of objects mapping acceptance criteria to tasks:\n - \"criterion\": The acceptance criterion text (from gherkin scenarios or story requirements)\n - \"sourceStoryId\": Which user story this criterion comes from (e.g., \"US-001\")\n - \"taskIds\": Array of task/subtask IDs that satisfy this criterion (e.g., [\"1.1\", \"2.3\"])\n- \"relevantFiles\": Array of files to create or modify:\n - \"path\": File path relative to project root (e.g., \"src/auth/login.ts\")\n - \"reason\": Brief explanation of why this file needs changes\n\nTasks should:\n- Reference actual files/paths from the codebase when possible\n- Follow existing code patterns and conventions\n- Include setup, implementation, testing, and cleanup steps\n- Be ordered logically (dependencies first)\n- Address specific acceptance criteria from gherkin scenarios\n- Respect architectural decisions from ADRs when provided\n- Align with component structure and system architecture\n\nWhen multiple user stories and gherkin scenarios are provided, ensure every acceptance criterion is covered by at least one task. When codebase context is available, identify specific files to modify in relevantFiles.\n\nRespond with JSON only, no markdown or explanation.";
|
|
12
12
|
export declare const QUICK_TASKS_SYSTEM_PROMPT = "You are an expert agile planning consultant with deep experience in software development, product management, and technical architecture. You help teams create clear, actionable, and well-structured planning artifacts.\n\nYour task is to generate a standalone implementation task list from a brief description. Unlike agile task generation, this is NOT tied to user stories or features \u2014 it is a direct, flat task list for quick execution.\n\nYou MUST respond with a valid JSON object containing:\n- \"title\": A concise task list title (max 80 chars)\n- \"tasks\": An array of task group objects, each with:\n - \"id\": Numbering like \"1.0\", \"2.0\", \"3.0\"\n - \"title\": Task group title\n - \"subtasks\": Array of subtask objects, each with:\n - \"id\": Numbering like \"1.1\", \"1.2\", \"2.1\"\n - \"title\": Specific, actionable subtask description\n- \"relevantFiles\": Array of files to create or modify:\n - \"path\": File path relative to project root\n - \"reason\": Brief explanation of why this file needs changes\n\nTasks should:\n- Be specific and actionable (a developer can start immediately)\n- Include setup, implementation, testing, and verification steps\n- Be ordered logically (dependencies first)\n- Reference actual files/paths from the codebase context when available\n- Follow existing code patterns and conventions when codebase context is provided\n\nRespond with JSON only, no markdown or explanation.";
|
|
13
|
+
export declare const ESTIMATE_SYSTEM_PROMPT = "You are an expert agile planning consultant with deep experience in software development, product management, and technical architecture. You help teams create clear, actionable, and well-structured planning artifacts.\n\nYour task is to estimate the effort required for a software development artifact. Analyze the artifact content, any codebase context provided, and produce a structured effort estimate.\n\n## Story Point Scale (Fibonacci)\n\nUse this rubric for storyPoints:\n- 1 (Trivial): Config change, typo fix, one-liner. Minutes to 1 hour.\n- 2 (Small): Single-file change, well-understood. 1-3 hours.\n- 3 (Moderate): A few files, clear approach. Half a day.\n- 5 (Medium): Multiple files, some unknowns. 1-2 days.\n- 8 (Large): Cross-cutting change, needs design. 2-4 days.\n- 13 (Very Large): Multi-system, significant unknowns. 1-2 weeks.\n- 21 (Epic-scale): Major feature or rewrite, high risk. 2+ weeks.\n\nPoints measure RELATIVE COMPLEXITY, not calendar time. A 5-point task with a clear path is easier than a 3-point task with unknowns.\n\n## Complexity Levels\n- \"low\": Well-understood domain, clear requirements, existing patterns to follow.\n- \"medium\": Some unknowns, may need research or new patterns, moderate integration.\n- \"high\": Significant unknowns, new technology, cross-system impact, security/performance-critical.\n\n## Risk Categories\nCommon risk categories: technical (new tech, performance), integration (external APIs, cross-team), requirements (ambiguous scope), infrastructure (deployment, scaling), knowledge (unfamiliar domain).\n\nYou MUST respond with a valid JSON object containing:\n- \"storyPoints\": A Fibonacci number from the set [1, 2, 3, 5, 8, 13, 21] per the scale above\n- \"estimatedHours\": Estimated developer-hours as a number (e.g., 4.5)\n- \"complexity\": One of \"low\", \"medium\", \"high\"\n- \"riskFactors\": Array of 1-5 risk factors that could affect the estimate\n- \"reasoning\": 2-4 sentences explaining the estimate rationale, referencing the scale\n- \"assumptions\": Array of 1-3 assumptions made during estimation\n\nIMPORTANT: Estimate the artifact AS WRITTEN. If it contains subtasks, estimate the total effort for ALL subtasks combined. Do not estimate individual subtasks separately.\n\nBase your estimate on:\n- The scope and technical complexity of the work described\n- The codebase context (tech stack, existing patterns, affected files) when provided\n- Industry norms for similar work\n- The number and depth of subtasks if present\n\nRespond with JSON only, no markdown or explanation.";
|
|
13
14
|
export declare const REFINE_SYSTEM_PROMPT = "You are an expert agile planning consultant with deep experience in software development, product management, and technical architecture. You help teams create clear, actionable, and well-structured planning artifacts.\n\nYour task is to review and improve an existing agile artifact. Analyze the content and suggest improvements for:\n- Clarity and specificity\n- Missing details or edge cases\n- Consistency with agile best practices\n- Technical accuracy\n\nIMPORTANT RULES:\n- Do NOT add, remove, or modify cross-reference links (## Features, ## User Stories, ## Tasks sections). These sections link to actual files on disk and must be preserved exactly as-is.\n- Do NOT invent new feature, story, or task references. Creating new artifacts is handled by separate commands.\n- If you think new features/stories should be added, mention it in \"suggestions\" instead of adding links.\n- Focus on improving the artifact's own content: descriptions, requirements, risks, success criteria, etc.\n\nYou MUST respond with a valid JSON object containing:\n- \"suggestions\": Array of improvement suggestions (strings). Include suggestions for new features/stories here if applicable, rather than adding them to the document.\n- \"improved\": The improved artifact data as a JSON object with the same fields as the original frontmatter\n- \"improvedMarkdown\": A raw markdown string that will be written directly to a .md file. It MUST preserve the original file format: YAML frontmatter between --- delimiters followed by the markdown body. Do NOT put JSON in this field.\n\nCRITICAL: The \"improvedMarkdown\" field must be a plain markdown string, NOT a JSON object. It should look exactly like the original artifact the user provided, but with improvements applied. For example, if the original starts with:\n---\nid: \"EPIC-001\"\ntitle: \"My Epic\"\n---\n# EPIC-001: My Epic\n...then \"improvedMarkdown\" must also start with --- frontmatter and contain markdown content. Keep the same structure, sections, and cross-reference links as the original.\n\nRespond with JSON only, no markdown or explanation.";
|
|
14
15
|
//# sourceMappingURL=system-prompts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system-prompts.d.ts","sourceRoot":"","sources":["../../../src/ai/prompts/system-prompts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"system-prompts.d.ts","sourceRoot":"","sources":["../../../src/ai/prompts/system-prompts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,eAAO,MAAM,kBAAkB,47CAkBqB,CAAC;AAErD,eAAO,MAAM,sBAAsB,wnCAmBiB,CAAC;AAErD,eAAO,MAAM,qBAAqB,osCAsBkB,CAAC;AAErD,eAAO,MAAM,mBAAmB,0sEA+BoB,CAAC;AAErD,eAAO,MAAM,yBAAyB,+6CAuBc,CAAC;AAErD,eAAO,MAAM,sBAAsB,shFAyCiB,CAAC;AAErD,eAAO,MAAM,oBAAoB,8jEA2BmB,CAAC"}
|
|
@@ -22,7 +22,8 @@ You MUST respond with a valid JSON object containing these fields:
|
|
|
22
22
|
- "dependencies": Known dependencies or "None"
|
|
23
23
|
- "risks": Known risks or "None"
|
|
24
24
|
|
|
25
|
-
Be specific, avoid generic filler. Ground the epic in the user's
|
|
25
|
+
Be specific, avoid generic filler. Ground the epic in the user's input.
|
|
26
|
+
If the input is a detailed PRD or requirements document, extract and incorporate ALL sections — do not summarize or ignore content. Every key requirement should be reflected in the epic fields.
|
|
26
27
|
Respond with JSON only, no markdown or explanation.`;
|
|
27
28
|
export const FEATURES_SYSTEM_PROMPT = `${BASE_PERSONA}
|
|
28
29
|
|
|
@@ -122,6 +123,48 @@ Tasks should:
|
|
|
122
123
|
- Reference actual files/paths from the codebase context when available
|
|
123
124
|
- Follow existing code patterns and conventions when codebase context is provided
|
|
124
125
|
|
|
126
|
+
Respond with JSON only, no markdown or explanation.`;
|
|
127
|
+
export const ESTIMATE_SYSTEM_PROMPT = `${BASE_PERSONA}
|
|
128
|
+
|
|
129
|
+
Your task is to estimate the effort required for a software development artifact. Analyze the artifact content, any codebase context provided, and produce a structured effort estimate.
|
|
130
|
+
|
|
131
|
+
## Story Point Scale (Fibonacci)
|
|
132
|
+
|
|
133
|
+
Use this rubric for storyPoints:
|
|
134
|
+
- 1 (Trivial): Config change, typo fix, one-liner. Minutes to 1 hour.
|
|
135
|
+
- 2 (Small): Single-file change, well-understood. 1-3 hours.
|
|
136
|
+
- 3 (Moderate): A few files, clear approach. Half a day.
|
|
137
|
+
- 5 (Medium): Multiple files, some unknowns. 1-2 days.
|
|
138
|
+
- 8 (Large): Cross-cutting change, needs design. 2-4 days.
|
|
139
|
+
- 13 (Very Large): Multi-system, significant unknowns. 1-2 weeks.
|
|
140
|
+
- 21 (Epic-scale): Major feature or rewrite, high risk. 2+ weeks.
|
|
141
|
+
|
|
142
|
+
Points measure RELATIVE COMPLEXITY, not calendar time. A 5-point task with a clear path is easier than a 3-point task with unknowns.
|
|
143
|
+
|
|
144
|
+
## Complexity Levels
|
|
145
|
+
- "low": Well-understood domain, clear requirements, existing patterns to follow.
|
|
146
|
+
- "medium": Some unknowns, may need research or new patterns, moderate integration.
|
|
147
|
+
- "high": Significant unknowns, new technology, cross-system impact, security/performance-critical.
|
|
148
|
+
|
|
149
|
+
## Risk Categories
|
|
150
|
+
Common risk categories: technical (new tech, performance), integration (external APIs, cross-team), requirements (ambiguous scope), infrastructure (deployment, scaling), knowledge (unfamiliar domain).
|
|
151
|
+
|
|
152
|
+
You MUST respond with a valid JSON object containing:
|
|
153
|
+
- "storyPoints": A Fibonacci number from the set [1, 2, 3, 5, 8, 13, 21] per the scale above
|
|
154
|
+
- "estimatedHours": Estimated developer-hours as a number (e.g., 4.5)
|
|
155
|
+
- "complexity": One of "low", "medium", "high"
|
|
156
|
+
- "riskFactors": Array of 1-5 risk factors that could affect the estimate
|
|
157
|
+
- "reasoning": 2-4 sentences explaining the estimate rationale, referencing the scale
|
|
158
|
+
- "assumptions": Array of 1-3 assumptions made during estimation
|
|
159
|
+
|
|
160
|
+
IMPORTANT: Estimate the artifact AS WRITTEN. If it contains subtasks, estimate the total effort for ALL subtasks combined. Do not estimate individual subtasks separately.
|
|
161
|
+
|
|
162
|
+
Base your estimate on:
|
|
163
|
+
- The scope and technical complexity of the work described
|
|
164
|
+
- The codebase context (tech stack, existing patterns, affected files) when provided
|
|
165
|
+
- Industry norms for similar work
|
|
166
|
+
- The number and depth of subtasks if present
|
|
167
|
+
|
|
125
168
|
Respond with JSON only, no markdown or explanation.`;
|
|
126
169
|
export const REFINE_SYSTEM_PROMPT = `${BASE_PERSONA}
|
|
127
170
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system-prompts.js","sourceRoot":"","sources":["../../../src/ai/prompts/system-prompts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,YAAY,GAAG,4NAA4N,CAAC;AAElP,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,YAAY
|
|
1
|
+
{"version":3,"file":"system-prompts.js","sourceRoot":"","sources":["../../../src/ai/prompts/system-prompts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,YAAY,GAAG,4NAA4N,CAAC;AAElP,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,YAAY;;;;;;;;;;;;;;;;;;oDAkBG,CAAC;AAErD,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,YAAY;;;;;;;;;;;;;;;;;;;oDAmBD,CAAC;AAErD,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,YAAY;;;;;;;;;;;;;;;;;;;;;;oDAsBA,CAAC;AAErD,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDA+BE,CAAC;AAErD,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,YAAY;;;;;;;;;;;;;;;;;;;;;;;oDAuBJ,CAAC;AAErD,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAyCD,CAAC;AAErD,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;oDA2BC,CAAC"}
|
|
@@ -132,6 +132,19 @@ export declare const aiQuickTasksResponseSchema: z.ZodObject<{
|
|
|
132
132
|
}, z.core.$strip>>>;
|
|
133
133
|
}, z.core.$strip>;
|
|
134
134
|
export type AIQuickTasksResponse = z.infer<typeof aiQuickTasksResponseSchema>;
|
|
135
|
+
export declare const aiEstimateResponseSchema: z.ZodObject<{
|
|
136
|
+
storyPoints: z.ZodNumber;
|
|
137
|
+
estimatedHours: z.ZodNumber;
|
|
138
|
+
complexity: z.ZodEnum<{
|
|
139
|
+
low: "low";
|
|
140
|
+
medium: "medium";
|
|
141
|
+
high: "high";
|
|
142
|
+
}>;
|
|
143
|
+
riskFactors: z.ZodArray<z.ZodString>;
|
|
144
|
+
reasoning: z.ZodString;
|
|
145
|
+
assumptions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
146
|
+
}, z.core.$strip>;
|
|
147
|
+
export type AIEstimateResponse = z.infer<typeof aiEstimateResponseSchema>;
|
|
135
148
|
export declare const aiRefineResponseSchema: z.ZodObject<{
|
|
136
149
|
suggestions: z.ZodArray<z.ZodString>;
|
|
137
150
|
improved: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-response-schemas.d.ts","sourceRoot":"","sources":["../../../src/ai/schemas/ai-response-schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;iBAuB/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAIlE,eAAO,MAAM,eAAe;;;;;;;;iBAQ1B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;iBAEnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,C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KlC,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;iBAOxB,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;iBAElC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAIxE,eAAO,MAAM,eAAe;;;iBAG1B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;iBAI5B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;iBAI5B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;iBAKhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAIpE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;iBAIrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAM9E,eAAO,MAAM,wBAAwB;;;;;;;;;;;iBAYnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAI1E,eAAO,MAAM,sBAAsB;;;;iBAIjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -90,6 +90,21 @@ export const aiQuickTasksResponseSchema = z.object({
|
|
|
90
90
|
tasks: z.array(aiTaskGroupSchema).min(1),
|
|
91
91
|
relevantFiles: z.array(aiRelevantFileSchema).default([]),
|
|
92
92
|
});
|
|
93
|
+
// --- Estimate ---
|
|
94
|
+
const FIBONACCI_POINTS = [1, 2, 3, 5, 8, 13, 21];
|
|
95
|
+
export const aiEstimateResponseSchema = z.object({
|
|
96
|
+
storyPoints: z
|
|
97
|
+
.number()
|
|
98
|
+
.int()
|
|
99
|
+
.refine((v) => FIBONACCI_POINTS.includes(v), {
|
|
100
|
+
message: `Must be a Fibonacci number: ${FIBONACCI_POINTS.join(', ')}`,
|
|
101
|
+
}),
|
|
102
|
+
estimatedHours: z.number().positive(),
|
|
103
|
+
complexity: z.enum(['low', 'medium', 'high']),
|
|
104
|
+
riskFactors: z.array(z.string().min(1)).min(1).max(5),
|
|
105
|
+
reasoning: z.string().min(1),
|
|
106
|
+
assumptions: z.array(z.string().min(1)).default([]),
|
|
107
|
+
});
|
|
93
108
|
// --- Refine ---
|
|
94
109
|
export const aiRefineResponseSchema = z.object({
|
|
95
110
|
suggestions: z.array(z.string().min(1)).min(1),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-response-schemas.js","sourceRoot":"","sources":["../../../src/ai/schemas/ai-response-schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAe;AAEf,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAChC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACnC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACnC,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC;QACvB,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EA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7C,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9C,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;IAC3C,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACpC,CAAC,CAAC"}
|
package/dist/ai/types.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export declare const DEFAULT_MAX_TOKENS = 8192;
|
|
|
35
35
|
* Commands producing larger outputs get higher budgets.
|
|
36
36
|
*/
|
|
37
37
|
export declare const TOKEN_BUDGETS: {
|
|
38
|
-
readonly epic:
|
|
38
|
+
readonly epic: 8192;
|
|
39
39
|
readonly feature: 8192;
|
|
40
40
|
readonly story: 8192;
|
|
41
41
|
readonly task: 16384;
|
|
@@ -43,6 +43,7 @@ export declare const TOKEN_BUDGETS: {
|
|
|
43
43
|
readonly refine: 8192;
|
|
44
44
|
/** Used by the `planr plan` pipeline for task generation per story. */
|
|
45
45
|
readonly plan: 16384;
|
|
46
|
+
readonly estimate: 4096;
|
|
46
47
|
};
|
|
47
48
|
export interface AIProvider {
|
|
48
49
|
readonly name: AIProviderName;
|
package/dist/ai/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ai/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,WAAW,CAAC;IACtC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EA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AG,QAAQ,GAAG,OAAO,CAAC;AAE5D,yDAAyD;AACzD,MAAM,WAAW,OAAO;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,8EAA8E;IAC9E,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAMD,wEAAwE;AACxE,eAAO,MAAM,kBAAkB,OAAO,CAAC;AAEvC;;;GAGG;AACH,eAAO,MAAM,aAAa;;;;;;;IAOxB,uEAAuE;;;CAG/D,CAAC;AAEX,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,IAAI,CAAC,QAAQ,EAAE,SAAS,EAAE,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;IAE/E;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,SAAS,EAAE,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAE7E;;;OAGG;IACH,YAAY,IAAI,OAAO,GAAG,SAAS,CAAC;CACrC;AAED,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAIhD,CAAC;AAEX,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAGrC,CAAC"}
|
package/dist/ai/types.js
CHANGED
|
@@ -14,7 +14,7 @@ export const DEFAULT_MAX_TOKENS = 8192;
|
|
|
14
14
|
* Commands producing larger outputs get higher budgets.
|
|
15
15
|
*/
|
|
16
16
|
export const TOKEN_BUDGETS = {
|
|
17
|
-
epic:
|
|
17
|
+
epic: 8192,
|
|
18
18
|
feature: 8192,
|
|
19
19
|
story: 8192,
|
|
20
20
|
task: 16384,
|
|
@@ -22,6 +22,7 @@ export const TOKEN_BUDGETS = {
|
|
|
22
22
|
refine: 8192,
|
|
23
23
|
/** Used by the `planr plan` pipeline for task generation per story. */
|
|
24
24
|
plan: 16384,
|
|
25
|
+
estimate: 4096,
|
|
25
26
|
};
|
|
26
27
|
export const DEFAULT_MODELS = {
|
|
27
28
|
anthropic: 'claude-sonnet-4-20250514',
|
package/dist/ai/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/ai/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AA+BH,8EAA8E;AAC9E,yBAAyB;AACzB,8EAA8E;AAE9E,wEAAwE;AACxE,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,CAAC;AAEvC;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,IAAI,EAAE,IAAI;IACV,OAAO,EAAE,IAAI;IACb,KAAK,EAAE,IAAI;IACX,IAAI,EAAE,KAAK;IACX,WAAW,EAAE,KAAK;IAClB,MAAM,EAAE,IAAI;IACZ,uEAAuE;IACvE,IAAI,EAAE,KAAK;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/ai/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AA+BH,8EAA8E;AAC9E,yBAAyB;AACzB,8EAA8E;AAE9E,wEAAwE;AACxE,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,CAAC;AAEvC;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,IAAI,EAAE,IAAI;IACV,OAAO,EAAE,IAAI;IACb,KAAK,EAAE,IAAI;IACX,IAAI,EAAE,KAAK;IACX,WAAW,EAAE,KAAK;IAClB,MAAM,EAAE,IAAI;IACZ,uEAAuE;IACvE,IAAI,EAAE,KAAK;IACX,QAAQ,EAAE,IAAI;CACN,CAAC;AAyBX,MAAM,CAAC,MAAM,cAAc,GAAmC;IAC5D,SAAS,EAAE,0BAA0B;IACrC,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,UAAU;CACV,CAAC;AAEX,MAAM,CAAC,MAAM,WAAW,GAA2B;IACjD,SAAS,EAAE,mBAAmB;IAC9B,MAAM,EAAE,gBAAgB;CAChB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"epic.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/epic.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAezC,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"epic.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/epic.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAezC,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,QA6CnD"}
|
|
@@ -19,7 +19,8 @@ export function registerEpicCommand(program) {
|
|
|
19
19
|
epic
|
|
20
20
|
.command('create')
|
|
21
21
|
.description('Create a new epic')
|
|
22
|
-
.option('--title <title>', 'epic title')
|
|
22
|
+
.option('--title <title>', 'epic title or brief description')
|
|
23
|
+
.option('--file <path>', 'read epic description from a file (e.g., a PRD)')
|
|
23
24
|
.option('--owner <owner>', 'epic owner')
|
|
24
25
|
.option('--manual', 'use manual interactive prompts instead of AI')
|
|
25
26
|
.action(async (opts) => {
|
|
@@ -78,7 +79,19 @@ function displayEpic(epicData) {
|
|
|
78
79
|
}
|
|
79
80
|
async function createEpicWithAI(projectDir, config, opts) {
|
|
80
81
|
logger.heading('Create Epic (AI-powered)');
|
|
81
|
-
|
|
82
|
+
let brief;
|
|
83
|
+
if (opts.file) {
|
|
84
|
+
const { readFile } = await import('../../utils/fs.js');
|
|
85
|
+
const path = await import('node:path');
|
|
86
|
+
brief = await readFile(path.resolve(opts.file));
|
|
87
|
+
logger.dim(`Read ${brief.split('\n').length} lines from ${opts.file}`);
|
|
88
|
+
}
|
|
89
|
+
else if (opts.title) {
|
|
90
|
+
brief = opts.title;
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
brief = await promptText('Describe your epic:');
|
|
94
|
+
}
|
|
82
95
|
// Get existing epics for deduplication
|
|
83
96
|
const existingEpics = await listArtifacts(projectDir, config, 'epic');
|
|
84
97
|
const existingTitles = existingEpics.map((e) => `${e.id}: ${e.title}`);
|
|
@@ -141,7 +154,7 @@ async function createEpicWithAI(projectDir, config, opts) {
|
|
|
141
154
|
logger.heading('Next steps:');
|
|
142
155
|
logger.dim(` 1. planr feature create --epic ${id} — Break epic into features`);
|
|
143
156
|
logger.dim(` 2. planr story create --feature FEAT-* — Create user stories per feature`);
|
|
144
|
-
logger.dim(` 3. planr task create --
|
|
157
|
+
logger.dim(` 3. planr task create --feature FEAT-* — Generate implementation tasks`);
|
|
145
158
|
logger.dim(` 4. planr task implement TASK-* — Implement with your coding agent`);
|
|
146
159
|
logger.dim('');
|
|
147
160
|
logger.dim(` Or run the full flow at once:`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"epic.js","sourceRoot":"","sources":["../../../src/cli/commands/epic.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACpG,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EACL,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,UAAU,GACX,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,MAA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