cc-pets 0.2.19 → 1.0.0

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.
@@ -42,6 +42,7 @@ static NSString *const NotificationCompletionKey = @"CCPetsNotifyCompletion";
42
42
  static NSString *const NotificationFailureKey = @"CCPetsNotifyFailure";
43
43
  static NSString *const NotificationApprovalKey = @"CCPetsNotifyApproval";
44
44
  static NSString *const StatusBubbleExpandedKey = @"CCPetsStatusBubbleExpanded";
45
+ static NSString *const StatusBubblePreferenceV2Key = @"CCPetsStatusBubblePreferenceV2";
45
46
  static const NSTimeInterval AgentStatusInactivityInterval = 60.0;
46
47
 
47
48
  static NSString *SanitizedShortString(id value, NSUInteger maximumLength) {
@@ -1834,7 +1835,7 @@ static int RenderMenuSwitches(NSString *path) {
1834
1835
  }
1835
1836
  - (NSString *)statusDetailForState:(NSString *)state {
1836
1837
  if ([state isEqualToString:@"starting"]) return @"正在准备当前会话…";
1837
- if ([state isEqualToString:@"thinking"]) return @"Agent 正在分析请求…";
1838
+ if ([state isEqualToString:@"thinking"]) return @"正在分析请求…";
1838
1839
  if ([state isEqualToString:@"approval"]) return @"请回到终端确认操作。";
1839
1840
  if ([state isEqualToString:@"subagent"]) return @"正在协调子 Agent。";
1840
1841
  if ([state isEqualToString:@"tool"]) return @"正在调用工具…";
@@ -1842,8 +1843,8 @@ static int RenderMenuSwitches(NSString *path) {
1842
1843
  if ([state isEqualToString:@"tool_failed"]) return @"工具执行失败,请查看终端。";
1843
1844
  if ([state isEqualToString:@"completed"]) return @"好的,当前任务已经完成。";
1844
1845
  if ([state isEqualToString:@"failed"]) return @"任务失败,请回到终端查看详情。";
1845
- if ([state isEqualToString:@"notification"]) return @"Agent 有一条状态需要你关注。";
1846
- return @"Agent 正在处理当前任务。";
1846
+ if ([state isEqualToString:@"notification"]) return @"有一条状态需要你关注。";
1847
+ return @"正在处理当前任务。";
1847
1848
  }
1848
1849
  - (NSColor *)statusColorForState:(NSString *)state {
1849
1850
  if ([state isEqualToString:@"completed"] || [state isEqualToString:@"tool_completed"]) {
@@ -2081,6 +2082,10 @@ static int RenderMenuSwitches(NSString *path) {
2081
2082
  }
2082
2083
  NSUserDefaults *defaults = NSUserDefaults.standardUserDefaults;
2083
2084
  [defaults registerDefaults:@{StatusBubbleExpandedKey: @YES}];
2085
+ if (![defaults boolForKey:StatusBubblePreferenceV2Key]) {
2086
+ [defaults setBool:YES forKey:StatusBubbleExpandedKey];
2087
+ [defaults setBool:YES forKey:StatusBubblePreferenceV2Key];
2088
+ }
2084
2089
  self.statusBubbleExpanded = [defaults boolForKey:StatusBubbleExpandedKey];
2085
2090
  NSString *selected = [defaults stringForKey:@"CCPetsSelectedSprite"];
2086
2091
  if (selected.length == 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-pets",
3
- "version": "0.2.19",
3
+ "version": "1.0.0",
4
4
  "description": "A native macOS desktop pet for Codex CLI and Claude Code",
5
5
  "author": "wangxinyusqn",
6
6
  "license": "MIT",