shine-code-submit 1.0.1 → 1.0.3
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/.claude-plugin/plugin.json +3 -3
- package/README.md +2 -0
- package/dist/install.cjs +1 -1
- package/package.json +4 -4
- package/src/daemon/git.ts +10 -0
- package/src/daemon/server.ts +30 -26
- package/src/daemon/settings.ts +11 -3
- package/src/daemon/ui-assets.ts +2 -2
- package/src/shared/types.ts +1 -13
- package/ui/.build/app.js +42 -42
- package/ui/components/OverviewModule.tsx +2 -2
- package/ui/components/ReportModule.tsx +60 -25
- package/ui/components/SessionDetail.tsx +3 -3
- package/ui/components/SessionTree.tsx +3 -6
- package/ui/components/StatsModule.tsx +3 -3
- package/ui/components/SummaryView.tsx +3 -3
- package/ui/lib/aggregate.ts +2 -1
- package/ui/lib/util.ts +30 -9
- package/ui/style.css +5 -2
package/src/shared/types.ts
CHANGED
|
@@ -124,24 +124,15 @@ export interface ReportSession {
|
|
|
124
124
|
tokenTotal: TokenUsage | null;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
/** 报告里单项目的提交汇总(窗口内)。 */
|
|
128
|
-
export interface ReportProjectCommits {
|
|
129
|
-
count: number;
|
|
130
|
-
added: number;
|
|
131
|
-
deleted: number;
|
|
132
|
-
lastTime: number | null; // 最近提交时间(ms),无提交 null
|
|
133
|
-
}
|
|
134
|
-
|
|
135
127
|
/** 报告里单个项目(=cwd)的聚合行。 */
|
|
136
128
|
export interface ReportProject {
|
|
137
129
|
cwd: string;
|
|
138
130
|
name: string; // shortDir(cwd),展示用
|
|
139
131
|
gitUser: string | null; // git config user.name
|
|
132
|
+
gitRemote: string | null; // git remote origin URL
|
|
140
133
|
sessionCount: number;
|
|
141
134
|
sessions: ReportSession[]; // 每会话 token 明细
|
|
142
135
|
totalTokens: TokenUsage; // 该项目 token 合计
|
|
143
|
-
commits: ReportProjectCommits;
|
|
144
|
-
recentCommits: CommitLog[]; // 最近若干条(展示用,限 5)
|
|
145
136
|
gitError?: string;
|
|
146
137
|
}
|
|
147
138
|
|
|
@@ -150,9 +141,6 @@ export interface ReportTotals {
|
|
|
150
141
|
projects: number;
|
|
151
142
|
sessions: number;
|
|
152
143
|
tokens: TokenUsage;
|
|
153
|
-
commitCount: number;
|
|
154
|
-
added: number;
|
|
155
|
-
deleted: number;
|
|
156
144
|
}
|
|
157
145
|
|
|
158
146
|
/** GET /api/report 响应。 */
|