@newpeak/barista-cli 0.2.197 → 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.
- package/dist/commands/liberica/courier/status.d.ts.map +1 -1
- package/dist/commands/liberica/courier/status.js.map +1 -1
- package/dist/commands/liberica/courier/uninstall.d.ts.map +1 -1
- package/dist/commands/liberica/courier/uninstall.js.map +1 -1
- package/dist/commands/liberica/files/upload.d.ts.map +1 -1
- package/dist/commands/liberica/files/upload.js +29 -6
- package/dist/commands/liberica/files/upload.js.map +1 -1
- package/dist/commands/liberica/teams/issues/fp-actual.d.ts.map +1 -1
- package/dist/commands/liberica/teams/issues/fp-actual.js +17 -21
- package/dist/commands/liberica/teams/issues/fp-actual.js.map +1 -1
- package/dist/commands/liberica/teams/issues/fp-estimate.d.ts.map +1 -1
- package/dist/commands/liberica/teams/issues/fp-estimate.js +18 -35
- package/dist/commands/liberica/teams/issues/fp-estimate.js.map +1 -1
- package/dist/commands/liberica/teams/issues/fp-review.d.ts.map +1 -1
- package/dist/commands/liberica/teams/issues/fp-review.js +15 -11
- package/dist/commands/liberica/teams/issues/fp-review.js.map +1 -1
- package/dist/commands/liberica/teams/issues/fp-summary.d.ts.map +1 -1
- package/dist/commands/liberica/teams/issues/fp-summary.js +15 -23
- package/dist/commands/liberica/teams/issues/fp-summary.js.map +1 -1
- package/dist/commands/skills/index.js +1 -1
- package/dist/commands/skills/index.js.map +1 -1
- package/dist/core/api/client.d.ts +34 -7
- package/dist/core/api/client.d.ts.map +1 -1
- package/dist/core/api/client.js +203 -39
- package/dist/core/api/client.js.map +1 -1
- package/dist/types/file.d.ts +30 -0
- package/dist/types/file.d.ts.map +1 -1
- package/dist/types/file.js +1 -0
- package/dist/types/file.js.map +1 -1
- package/dist/types/fp-evaluation.d.ts +20 -127
- package/dist/types/fp-evaluation.d.ts.map +1 -1
- package/package.json +1 -1
- package/skills/barista-cli/data/commands.json +5 -5
- package/skills/barista-cli/data/commands.yaml +5 -5
package/dist/types/file.d.ts
CHANGED
|
@@ -23,6 +23,13 @@ export interface SysFileUploadApiResponse {
|
|
|
23
23
|
message: string;
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
+
/** Response from ChunkedFileController single file upload (/enterprise/files/upload) */
|
|
27
|
+
export interface ChunkedFileUploadResult {
|
|
28
|
+
fileId: string;
|
|
29
|
+
fileName: string;
|
|
30
|
+
fileSize: number;
|
|
31
|
+
}
|
|
32
|
+
/** Response from DocumentController save (/enterprise/document/save) */
|
|
26
33
|
export interface DocumentUploadResult {
|
|
27
34
|
documentId: string;
|
|
28
35
|
categoryId?: string;
|
|
@@ -43,4 +50,27 @@ export interface DocumentUploadApiResponse {
|
|
|
43
50
|
message: string;
|
|
44
51
|
};
|
|
45
52
|
}
|
|
53
|
+
export interface ChunkInitResponse {
|
|
54
|
+
uploadId: string;
|
|
55
|
+
chunkCount: number;
|
|
56
|
+
chunkSize: number;
|
|
57
|
+
}
|
|
58
|
+
export type ChunkUploadStatus = 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'NOT_FOUND';
|
|
59
|
+
export interface ChunkUploadStatusResponse {
|
|
60
|
+
uploadId: string;
|
|
61
|
+
status: ChunkUploadStatus;
|
|
62
|
+
fileId?: string;
|
|
63
|
+
fileName?: string;
|
|
64
|
+
fileSize?: number;
|
|
65
|
+
errorMessage?: string;
|
|
66
|
+
}
|
|
67
|
+
export interface SaveDocumentRequest {
|
|
68
|
+
fileId: string;
|
|
69
|
+
fileName: string;
|
|
70
|
+
fileSize: number;
|
|
71
|
+
fileType?: string;
|
|
72
|
+
categoryCode?: string;
|
|
73
|
+
businessData?: string;
|
|
74
|
+
remark?: string;
|
|
75
|
+
}
|
|
46
76
|
//# sourceMappingURL=file.d.ts.map
|
package/dist/types/file.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../src/types/file.ts"],"names":[],"mappings":"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C;CACrB;AAED,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAC5B,KAAK,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3C;AAID,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;AAEhG,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
package/dist/types/file.js
CHANGED
package/dist/types/file.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.js","sourceRoot":"","sources":["../../src/types/file.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"file.js","sourceRoot":"","sources":["../../src/types/file.ts"],"names":[],"mappings":"AAAA,+DAA+D"}
|
|
@@ -1,145 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
9
|
+
teamIssueId: string;
|
|
10
|
+
postFpActual?: number;
|
|
11
|
+
postFpDetailJson?: string;
|
|
12
|
+
postFpAuditor?: string;
|
|
13
|
+
postFpActualTime?: number;
|
|
105
14
|
}
|
|
106
15
|
export interface FpReviewRequest {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
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
|
-
|
|
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?:
|
|
27
|
+
groupBy?: string;
|
|
120
28
|
startDate?: string;
|
|
121
29
|
endDate?: string;
|
|
122
30
|
includeTimeBuckets?: boolean;
|
|
123
31
|
includeLoadCheck?: boolean;
|
|
124
32
|
}
|
|
125
|
-
export interface
|
|
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?:
|
|
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,
|
|
1
|
+
{"version":3,"file":"fp-evaluation.d.ts","sourceRoot":"","sources":["../../src/types/fp-evaluation.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;IACpD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,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
|
"_metadata": {
|
|
3
|
-
"generatedAt": "2026-07-
|
|
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
|
|
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-
|
|
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
|
|
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"
|