cc-pets 1.0.0 → 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/Sources/CCPets/CCPetsAppDelegate.h +52 -0
- package/Sources/CCPets/CCPetsAppDelegate.m +1104 -0
- package/Sources/CCPets/CCPetsEvents.h +10 -0
- package/Sources/CCPets/CCPetsEvents.m +232 -0
- package/Sources/CCPets/CCPetsPaths.h +23 -0
- package/Sources/CCPets/CCPetsPaths.m +48 -0
- package/Sources/CCPets/CCPetsPreviews.h +6 -0
- package/Sources/CCPets/CCPetsPreviews.m +159 -0
- package/Sources/CCPets/CCPetsQuotaHistory.h +7 -0
- package/Sources/CCPets/CCPetsQuotaHistory.m +83 -0
- package/Sources/CCPets/CCPetsUsage.h +17 -0
- package/Sources/CCPets/CCPetsUsage.m +276 -0
- package/Sources/CCPets/CCPetsVersion.h +10 -0
- package/Sources/CCPets/CCPetsVersion.m +62 -0
- package/Sources/CCPets/MenuToggleSwitch.h +5 -0
- package/Sources/CCPets/MenuToggleSwitch.m +47 -0
- package/Sources/CCPets/PetView.h +33 -0
- package/Sources/CCPets/PetView.m +478 -0
- package/Sources/CCPets/QuotaDashboardView.h +23 -0
- package/Sources/CCPets/QuotaDashboardView.m +318 -0
- package/Sources/CCPets/main.m +7 -2521
- package/bin/claude-with-pet +2 -1
- package/bin/codex-with-pet +3 -1
- package/package.json +2 -3
- package/scripts/build.sh +18 -1
- package/scripts/install-git-hooks.sh +47 -0
- package/scripts/install-shell-integration.sh +14 -4
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
#import <Cocoa/Cocoa.h>
|
|
2
|
+
#import "PetView.h"
|
|
3
|
+
#import "QuotaDashboardView.h"
|
|
4
|
+
#import "CCPetsUsage.h"
|
|
5
|
+
|
|
6
|
+
@interface AppDelegate : NSObject <NSApplicationDelegate>
|
|
7
|
+
@property NSPanel *panel;
|
|
8
|
+
@property NSPanel *quotaPanel;
|
|
9
|
+
@property NSPanel *statusPanel;
|
|
10
|
+
@property NSVisualEffectView *statusGlass;
|
|
11
|
+
@property NSTextField *statusTitleLabel;
|
|
12
|
+
@property NSTextField *statusDetailLabel;
|
|
13
|
+
@property NSButton *statusIconButton;
|
|
14
|
+
@property NSPanel *statusTogglePanel;
|
|
15
|
+
@property NSVisualEffectView *statusToggleGlass;
|
|
16
|
+
@property NSButton *statusToggleButton;
|
|
17
|
+
@property BOOL statusBubbleExpanded;
|
|
18
|
+
@property BOOL statusBubbleAbove;
|
|
19
|
+
@property BOOL hasAgentStatus;
|
|
20
|
+
@property NSInteger liveClientCount;
|
|
21
|
+
@property NSString *lastStatusState;
|
|
22
|
+
@property NSString *lastStatusProvider;
|
|
23
|
+
@property NSTimeInterval lastStatusTimestamp;
|
|
24
|
+
@property NSSet<NSString *> *liveClientProviders;
|
|
25
|
+
@property BOOL hasUnlabeledClient;
|
|
26
|
+
@property NSMutableDictionary<NSString *, NSDictionary *> *pendingApprovalRecords;
|
|
27
|
+
@property QuotaDashboardView *quotaView;
|
|
28
|
+
@property BOOL managedByCLI;
|
|
29
|
+
@property BOOL pocketHovering;
|
|
30
|
+
@property BOOL dashboardHovering;
|
|
31
|
+
@property BOOL petDragging;
|
|
32
|
+
@property NSString *binaryDirectory;
|
|
33
|
+
@property PetView *petView;
|
|
34
|
+
@property CodexUsageReader *codexUsageReader;
|
|
35
|
+
@property unsigned long long agentEventOffset;
|
|
36
|
+
@property NSMutableData *agentEventPartialLine;
|
|
37
|
+
@property dispatch_source_t agentEventSource;
|
|
38
|
+
@property BOOL agentEventReaderInitialized;
|
|
39
|
+
@property BOOL checkingForUpdate;
|
|
40
|
+
@property BOOL updating;
|
|
41
|
+
@property NSTask *updateTask;
|
|
42
|
+
@property NSTimer *usageTimer;
|
|
43
|
+
- (void)showQuotaDashboard;
|
|
44
|
+
- (void)positionQuotaDashboard;
|
|
45
|
+
- (void)scheduleQuotaDashboardHide;
|
|
46
|
+
- (void)hideQuotaDashboardIfNeeded;
|
|
47
|
+
- (void)positionAgentStatus;
|
|
48
|
+
- (void)showAgentStatusForRecord:(NSDictionary *)record;
|
|
49
|
+
- (void)toggleAgentStatusBubble:(id)sender;
|
|
50
|
+
- (void)refreshUsage:(id)sender;
|
|
51
|
+
- (void)switchPetToID:(NSString *)petID;
|
|
52
|
+
@end
|