@planu/cli 3.9.6 → 3.9.8
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/config/skill-templates/planu-context-assets.md +94 -0
- package/dist/engine/handoff-packager.js +151 -4
- package/dist/engine/sdd-model-routing.d.ts +16 -0
- package/dist/engine/sdd-model-routing.js +195 -0
- package/dist/engine/universal-rules/catalog.js +10 -0
- package/dist/engine/universal-rules/installer.js +9 -3
- package/dist/engine/universal-rules/rules/planu-approval-gates.d.ts +3 -0
- package/dist/engine/universal-rules/rules/planu-approval-gates.js +41 -0
- package/dist/engine/universal-rules/rules/planu-bdd-criteria.d.ts +3 -0
- package/dist/engine/universal-rules/rules/planu-bdd-criteria.js +45 -0
- package/dist/engine/universal-rules/rules/planu-english-specs.d.ts +3 -0
- package/dist/engine/universal-rules/rules/planu-english-specs.js +36 -0
- package/dist/engine/universal-rules/rules/planu-release-policy.d.ts +3 -0
- package/dist/engine/universal-rules/rules/planu-release-policy.js +38 -0
- package/dist/engine/universal-rules/rules/planu-sdd-model-routing.d.ts +3 -0
- package/dist/engine/universal-rules/rules/planu-sdd-model-routing.js +51 -0
- package/dist/tools/init-project/host-assets-writer.d.ts +21 -0
- package/dist/tools/init-project/host-assets-writer.js +171 -0
- package/dist/tools/init-project/scaffold-writer.d.ts +8 -0
- package/dist/tools/init-project/scaffold-writer.js +122 -74
- package/dist/tools/package-handoff.js +76 -0
- package/dist/tools/update-status/file-sync.d.ts +1 -0
- package/dist/tools/update-status/file-sync.js +1 -0
- package/dist/tools/update-status/index.js +88 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/readiness.d.ts +10 -1
- package/dist/types/sdd-model-routing.d.ts +22 -0
- package/dist/types/sdd-model-routing.js +2 -0
- package/dist/types/spec/inputs.d.ts +23 -0
- package/package.json +7 -7
- package/dist/types/data/estimation.d.ts +0 -147
- package/dist/types/data/estimation.js +0 -2
- package/dist/types/data/index.d.ts +0 -5
- package/dist/types/data/index.js +0 -6
- package/dist/types/data/velocity.d.ts +0 -168
- package/dist/types/data/velocity.js +0 -4
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import type { SpecScope, SpecType } from '../common/primitives.js';
|
|
2
|
-
/**
|
|
3
|
-
* A single week's throughput data point.
|
|
4
|
-
* weekLabel: ISO week string, e.g. "2026-W12"
|
|
5
|
-
*/
|
|
6
|
-
export interface ThroughputPoint {
|
|
7
|
-
weekLabel: string;
|
|
8
|
-
weekStart: string;
|
|
9
|
-
weekEnd: string;
|
|
10
|
-
specsCompleted: number;
|
|
11
|
-
specIds: string[];
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Lead time statistics grouped by scope.
|
|
15
|
-
* Lead time = done timestamp - created timestamp (in hours).
|
|
16
|
-
*/
|
|
17
|
-
export interface LeadTimeStats {
|
|
18
|
-
avgHours: number;
|
|
19
|
-
medianHours: number;
|
|
20
|
-
minHours: number;
|
|
21
|
-
maxHours: number;
|
|
22
|
-
/** Number of specs used to compute these stats */
|
|
23
|
-
sampleSize: number;
|
|
24
|
-
/** Breakdown by scope */
|
|
25
|
-
byScope: Record<SpecScope, LeadTimeScopeStats>;
|
|
26
|
-
}
|
|
27
|
-
export interface LeadTimeScopeStats {
|
|
28
|
-
avgHours: number;
|
|
29
|
-
sampleSize: number;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Cycle time statistics.
|
|
33
|
-
* Cycle time = done timestamp - implementing timestamp (in hours).
|
|
34
|
-
*/
|
|
35
|
-
export interface CycleTimeStats {
|
|
36
|
-
avgHours: number;
|
|
37
|
-
medianHours: number;
|
|
38
|
-
sampleSize: number;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* A single burndown data point for one week.
|
|
42
|
-
*/
|
|
43
|
-
export interface BurndownPoint {
|
|
44
|
-
weekLabel: string;
|
|
45
|
-
weekStart: string;
|
|
46
|
-
weekEnd: string;
|
|
47
|
-
/** Specs completed (done) up to and including this week */
|
|
48
|
-
completedCumulative: number;
|
|
49
|
-
/** Specs completed in this specific week */
|
|
50
|
-
completedThisWeek: number;
|
|
51
|
-
/** Specs created up to and including this week */
|
|
52
|
-
createdCumulative: number;
|
|
53
|
-
/** Backlog: total created - total completed */
|
|
54
|
-
backlog: number;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Flow efficiency: time spent in active states vs total lead time.
|
|
58
|
-
*/
|
|
59
|
-
export interface FlowEfficiencyStats {
|
|
60
|
-
/** 0.0-1.0 ratio of active time to total time */
|
|
61
|
-
efficiency: number;
|
|
62
|
-
/** Average hours spent in active states (implementing, review) */
|
|
63
|
-
avgActiveHours: number;
|
|
64
|
-
/** Average total lead time hours */
|
|
65
|
-
avgTotalHours: number;
|
|
66
|
-
sampleSize: number;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* WIP (Work In Progress) snapshot.
|
|
70
|
-
*/
|
|
71
|
-
export interface WipSnapshot {
|
|
72
|
-
current: number;
|
|
73
|
-
specIds: string[];
|
|
74
|
-
avgAgeHours: number;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Full velocity report for a project.
|
|
78
|
-
*/
|
|
79
|
-
export interface VelocityReport {
|
|
80
|
-
projectId: string;
|
|
81
|
-
projectPath: string;
|
|
82
|
-
generatedAt: string;
|
|
83
|
-
/** Number of weeks analyzed */
|
|
84
|
-
weeks: number;
|
|
85
|
-
/** Applied filters */
|
|
86
|
-
filters: VelocityFilters;
|
|
87
|
-
/** Average specs completed per week */
|
|
88
|
-
avgThroughputPerWeek: number;
|
|
89
|
-
throughput: ThroughputPoint[];
|
|
90
|
-
leadTime: LeadTimeStats | null;
|
|
91
|
-
cycleTime: CycleTimeStats | null;
|
|
92
|
-
wip: WipSnapshot;
|
|
93
|
-
flowEfficiency: FlowEfficiencyStats | null;
|
|
94
|
-
burndown: BurndownPoint[];
|
|
95
|
-
/** Human-readable summary line */
|
|
96
|
-
summary: string;
|
|
97
|
-
/** Total specs done in the period */
|
|
98
|
-
totalDone: number;
|
|
99
|
-
/** Total specs in the project */
|
|
100
|
-
totalSpecs: number;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Trend comparison: last N weeks vs previous N weeks.
|
|
104
|
-
*/
|
|
105
|
-
export interface VelocityTrend {
|
|
106
|
-
projectId: string;
|
|
107
|
-
projectPath: string;
|
|
108
|
-
generatedAt: string;
|
|
109
|
-
compareWeeks: number;
|
|
110
|
-
recent: VelocityPeriodStats;
|
|
111
|
-
previous: VelocityPeriodStats;
|
|
112
|
-
throughputDelta: number;
|
|
113
|
-
leadTimeDelta: number | null;
|
|
114
|
-
trend: 'improving' | 'stable' | 'declining';
|
|
115
|
-
summary: string;
|
|
116
|
-
}
|
|
117
|
-
export interface VelocityPeriodStats {
|
|
118
|
-
label: string;
|
|
119
|
-
fromDate: string;
|
|
120
|
-
toDate: string;
|
|
121
|
-
avgThroughputPerWeek: number;
|
|
122
|
-
avgLeadTimeHours: number | null;
|
|
123
|
-
totalDone: number;
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Input filters for velocity tools.
|
|
127
|
-
*/
|
|
128
|
-
export interface VelocityFilters {
|
|
129
|
-
weeks: number;
|
|
130
|
-
scope?: SpecScope;
|
|
131
|
-
type?: SpecType;
|
|
132
|
-
}
|
|
133
|
-
/** Input args for velocity_report tool */
|
|
134
|
-
export interface VelocityReportInput {
|
|
135
|
-
projectPath: string;
|
|
136
|
-
weeks?: number;
|
|
137
|
-
scope?: SpecScope;
|
|
138
|
-
type?: SpecType;
|
|
139
|
-
}
|
|
140
|
-
/** Input args for velocity_trend tool */
|
|
141
|
-
export interface VelocityTrendInput {
|
|
142
|
-
projectPath: string;
|
|
143
|
-
compareWeeks?: number;
|
|
144
|
-
scope?: SpecScope;
|
|
145
|
-
type?: SpecType;
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Velocity profile derived from recent spec actuals.
|
|
149
|
-
* Used to convert devHours estimates into real calendar days.
|
|
150
|
-
* SPEC-555
|
|
151
|
-
*/
|
|
152
|
-
export interface VelocityProfile {
|
|
153
|
-
/** SPECs completed per calendar day (in the window) */
|
|
154
|
-
specsPerDay: number;
|
|
155
|
-
/** Productive dev hours per calendar day */
|
|
156
|
-
hoursPerDay: number;
|
|
157
|
-
/** Average actual devHours by difficulty (1-5) */
|
|
158
|
-
avgHoursByDifficulty: Record<1 | 2 | 3 | 4 | 5, number>;
|
|
159
|
-
/** ISO date of last calculation */
|
|
160
|
-
calibrationDate: string;
|
|
161
|
-
/** Window used to calculate (default 30 days) */
|
|
162
|
-
windowDays: number;
|
|
163
|
-
/** Number of done specs used for calibration */
|
|
164
|
-
sampleSize: number;
|
|
165
|
-
/** Confidence based on sample size: high >20, medium 5-20, low <5 */
|
|
166
|
-
confidence: 'high' | 'medium' | 'low';
|
|
167
|
-
}
|
|
168
|
-
//# sourceMappingURL=velocity.d.ts.map
|