cc-pets 1.0.3 → 1.0.5
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/CHANGELOG.md +19 -0
- package/README.md +42 -5
- package/Sources/CCPets/CCPetsAppDelegate.h +8 -2
- package/Sources/CCPets/CCPetsAppDelegate.m +118 -11
- package/Sources/CCPets/CCPetsCleanup.h +7 -0
- package/Sources/CCPets/CCPetsCleanup.m +126 -0
- package/Sources/CCPets/CCPetsImageLoader.h +4 -0
- package/Sources/CCPets/CCPetsImageLoader.m +36 -0
- package/Sources/CCPets/CCPetsPaths.h +1 -0
- package/Sources/CCPets/CCPetsPaths.m +6 -4
- package/Sources/CCPets/CCPetsPreviews.m +20 -2
- package/Sources/CCPets/CCPetsUsage.h +10 -0
- package/Sources/CCPets/CCPetsUsage.m +694 -22
- package/Sources/CCPets/CCPetsUsageMonitor.h +10 -0
- package/Sources/CCPets/CCPetsUsageMonitor.m +167 -0
- package/Sources/CCPets/PetView.h +3 -1
- package/Sources/CCPets/PetView.m +40 -7
- package/Sources/CCPets/QuotaDashboardView.h +8 -0
- package/Sources/CCPets/QuotaDashboardView.m +222 -142
- package/Sources/CCPets/main.m +4 -0
- package/bin/cc-pets +5 -0
- package/package.json +1 -1
- package/scripts/build.sh +2 -0
- package/scripts/uninstall-app.sh +9 -0
- package/scripts/uninstall-shell-integration.sh +50 -2
|
@@ -2,9 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
// Codex 与 Claude 的额度读取。
|
|
4
4
|
int RecordClaudeUsage(void);
|
|
5
|
+
NSDictionary *ClaudeRateLimits(void);
|
|
5
6
|
NSDictionary *LatestClaudeUsage(void);
|
|
6
7
|
NSDictionary *LatestUsage(void);
|
|
7
8
|
|
|
9
|
+
// 增量跟读 ~/.claude/projects 下的会话转录,按官方 5 小时 / 7 天窗口聚合本地 Token。
|
|
10
|
+
@interface ClaudeUsageReader : NSObject
|
|
11
|
+
@property NSURL *projectsURL;
|
|
12
|
+
- (NSDictionary *)refresh;
|
|
13
|
+
- (NSDictionary *)refreshWithFullAggregation;
|
|
14
|
+
@end
|
|
15
|
+
|
|
8
16
|
// 增量跟读当前 Codex 会话文件:只在会话切换时做一次冷读,之后按偏移追读。
|
|
9
17
|
@interface CodexUsageReader : NSObject
|
|
10
18
|
@property NSURL *sessionsURL;
|
|
@@ -14,4 +22,6 @@ NSDictionary *LatestUsage(void);
|
|
|
14
22
|
@property NSMutableData *partialLine;
|
|
15
23
|
@property NSTimeInterval lastFullDiscovery;
|
|
16
24
|
- (NSDictionary *)refresh;
|
|
25
|
+
- (NSDictionary *)refreshWithFullDiscovery;
|
|
26
|
+
- (NSDictionary *)refreshForSessionURL:(NSURL *)url;
|
|
17
27
|
@end
|