@newpeak/barista-cli 0.2.199 → 0.2.200

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.
@@ -1,145 +1,38 @@
1
- import type { PageResult } from './employee.js';
2
- export type FpComponentType = 'ILF' | 'EIF' | 'EI' | 'EO' | 'EQ';
3
- export type FpComplexity = 'LOW' | 'MEDIUM' | 'HIGH';
4
- export type FpMethodType = 'INDICATIVE' | 'ESTIMATED' | 'DETAILED';
5
- export type FpEstimateStatus = 'DRAFT' | 'SUBMITTED' | 'REVIEWED' | 'APPROVED' | 'REJECTED';
6
- export interface FpComponentDetail {
7
- componentType: FpComponentType;
8
- componentName: string;
9
- det: number;
10
- ret?: number;
11
- ftr?: number;
12
- complexity: FpComplexity;
13
- functionPoints: number;
14
- description?: string;
15
- }
16
- export interface FpComplexityMatrix {
17
- lowDetMax: number;
18
- lowRetMax: number;
19
- medDetMax: number;
20
- medRetMax: number;
21
- highDetMin: number;
22
- highRetMin: number;
23
- }
24
- export interface FpProjectConfig {
25
- projectId: string;
26
- projectName: string;
27
- methodType: FpMethodType;
28
- complexityMatrix?: FpComplexityMatrix;
29
- languageFactor?: number;
30
- productivityFactor?: number;
31
- teamId?: string;
32
- teamName?: string;
33
- }
34
- export interface FpEvaluation {
35
- fpEvaluationId: string;
36
- projectId: string;
37
- projectName?: string;
38
- estimateName: string;
39
- methodType: FpMethodType;
40
- components: FpComponentDetail[];
41
- totalFunctionPoints: number;
42
- status: FpEstimateStatus;
43
- reviewerName?: string;
44
- reviewComment?: string;
45
- actualFunctionPoints?: number;
46
- estimatorName: string;
47
- estimateDate?: string;
48
- actualDate?: string;
49
- reviewDate?: string;
50
- gmtCreateTime?: string;
51
- gmtUpdateTime?: string;
52
- }
53
- export interface FpCalibrateSuggestion {
54
- componentType: FpComponentType;
55
- suggestedDet: number;
56
- suggestedRet?: number;
57
- suggestedFtr?: number;
58
- reason: string;
59
- confidence: 'HIGH' | 'MEDIUM' | 'LOW';
60
- }
61
- export interface FpTimeBucket {
62
- bucket: string;
63
- count: number;
64
- totalFp: number;
65
- }
66
- export interface FpLoadCheckResult {
67
- projectId: string;
68
- projectName: string;
69
- pendingEstimates: number;
70
- pendingReviews: number;
71
- loadLevel: 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL';
72
- }
73
- export interface FpStatsResult {
74
- totalProjects: number;
75
- totalEstimates: number;
76
- totalFunctionPoints: number;
77
- byComponentType: Record<FpComponentType, number>;
78
- byStatus: Record<FpEstimateStatus, number>;
79
- timeBuckets?: FpTimeBucket[];
80
- loadCheck?: FpLoadCheckResult[];
81
- }
82
- export interface FpGuideSection {
83
- section: string;
84
- title: string;
85
- content: string;
86
- }
87
- export interface CreateFpEstimateRequest {
88
- projectId: string;
89
- estimateName: string;
90
- methodType: FpMethodType;
91
- components: FpComponentDetail[];
92
- description?: string;
93
- }
94
- export interface UpdateFpEstimateRequest {
95
- fpEvaluationId: string;
96
- estimateName?: string;
97
- components?: FpComponentDetail[];
98
- description?: string;
1
+ export interface FpEstimateRequest {
2
+ teamIssueId: string;
3
+ preFpEstimate?: number;
4
+ preFpDetailJson?: string;
5
+ preFpEstimator?: string;
6
+ preFpEstimateTime?: number;
99
7
  }
100
8
  export interface FpActualRequest {
101
- fpEvaluationId: string;
102
- actualFunctionPoints: number;
103
- actualComponents: FpComponentDetail[];
104
- notes?: string;
9
+ teamIssueId: string;
10
+ postFpActual?: number;
11
+ postFpDetailJson?: string;
12
+ postFpAuditor?: string;
13
+ postFpActualTime?: number;
105
14
  }
106
15
  export interface FpReviewRequest {
107
- fpEvaluationId: string;
108
- status: 'APPROVED' | 'REJECTED';
109
- reviewComment?: string;
16
+ teamIssueId: string;
17
+ fpReviewStatus: 'PENDING' | 'APPROVED' | 'REJECTED';
18
+ fpReviewNote?: string;
19
+ fpReviewer?: string;
20
+ fpReviewTime?: number;
110
21
  }
111
22
  export interface FpSummaryQueryParams {
112
- projectId?: string;
113
- startDate?: string;
114
- endDate?: string;
115
- methodType?: FpMethodType;
23
+ teamIssueId: string;
116
24
  }
117
25
  export interface FpStatsQueryParams {
118
26
  projectId?: string;
119
- groupBy?: 'componentType' | 'status' | 'date';
27
+ groupBy?: string;
120
28
  startDate?: string;
121
29
  endDate?: string;
122
30
  includeTimeBuckets?: boolean;
123
31
  includeLoadCheck?: boolean;
124
32
  }
125
- export interface FpCalibrateParams {
126
- projectId?: string;
127
- componentType?: FpComponentType;
128
- historicalData?: boolean;
129
- }
130
- export interface FpConfigParams {
131
- projectId?: string;
132
- teamId?: string;
133
- methodType?: FpMethodType;
134
- languageFactor?: number;
135
- productivityFactor?: number;
136
- complexityMatrix?: FpComplexityMatrix;
137
- }
138
- export interface FpEvaluationListResponse extends PageResult<FpEvaluation> {
139
- }
140
- export interface FpEvaluationApiResponse {
33
+ export interface FpApiResponse {
141
34
  success: boolean;
142
- data?: FpEvaluation | FpEvaluationListResponse | FpStatsResult | FpCalibrateSuggestion[] | FpGuideSection[];
35
+ data?: Record<string, unknown>;
143
36
  error?: {
144
37
  code: string;
145
38
  message: string;
@@ -1 +1 @@
1
- {"version":3,"file":"fp-evaluation.d.ts","sourceRoot":"","sources":["../../src/types/fp-evaluation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEjE,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;AAErD,MAAM,MAAM,YAAY,GAAG,YAAY,GAAG,WAAW,GAAG,UAAU,CAAC;AAEnE,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC;AAE5F,MAAM,WAAW,iBAAiB;IAChC,aAAa,EAAE,eAAe,CAAC;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB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pB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newpeak/barista-cli",
3
- "version": "0.2.199",
3
+ "version": "0.2.200",
4
4
  "description": "AI Tools CLI for Liberica and Arabica services",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "_metadata": {
3
- "generatedAt": "2026-07-29T09:26:14.277Z",
3
+ "generatedAt": "2026-07-29T10:35:23.429Z",
4
4
  "source": "src/commands/",
5
5
  "generator": "src/skills/barista-cli/scripts/generate.ts"
6
6
  },
@@ -2738,19 +2738,19 @@
2738
2738
  "force": true
2739
2739
  },
2740
2740
  "fp-actual": {
2741
- "description": "Submit actual FP counts",
2741
+ "description": "Submit actual FP counts for a team issue",
2742
2742
  "json": true
2743
2743
  },
2744
2744
  "fp-estimate": {
2745
- "description": "Submit an FP estimate",
2745
+ "description": "Submit an FP estimate for a team issue",
2746
2746
  "json": true
2747
2747
  },
2748
2748
  "fp-review": {
2749
- "description": "Review an FP estimate",
2749
+ "description": "Review (approve/reject) an FP estimate for a team issue",
2750
2750
  "json": true
2751
2751
  },
2752
2752
  "fp-summary": {
2753
- "description": "Get FP summary statistics",
2753
+ "description": "Get FP summary for a team issue",
2754
2754
  "json": true
2755
2755
  },
2756
2756
  "get": {
@@ -1,5 +1,5 @@
1
1
  # ★ 自动生成。修改源码后重新生成:npm run generate-skills-data
2
- # ★ 生成时间: 2026-07-29T09:26:14.286Z
2
+ # ★ 生成时间: 2026-07-29T10:35:23.441Z
3
3
 
4
4
  global:
5
5
  # ── 全局 ──
@@ -1759,16 +1759,16 @@ liberica:
1759
1759
  description: "Delete a team issue"
1760
1760
  options: [--json, --dry-run, --force]
1761
1761
  fp-actual:
1762
- description: "Submit actual FP counts"
1762
+ description: "Submit actual FP counts for a team issue"
1763
1763
  options: [--json]
1764
1764
  fp-estimate:
1765
- description: "Submit an FP estimate"
1765
+ description: "Submit an FP estimate for a team issue"
1766
1766
  options: [--json]
1767
1767
  fp-review:
1768
- description: "Review an FP estimate"
1768
+ description: "Review (approve/reject) an FP estimate for a team issue"
1769
1769
  options: [--json]
1770
1770
  fp-summary:
1771
- description: "Get FP summary statistics"
1771
+ description: "Get FP summary for a team issue"
1772
1772
  options: [--json]
1773
1773
  get:
1774
1774
  description: "Get team issue details by ID"