@costrict/csc 4.2.17 → 4.2.18

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.
@@ -736,8 +736,8 @@ function getClientVersion() {
736
736
  if (cached)
737
737
  return cached;
738
738
  try {
739
- if ("4.2.17") {
740
- cached = "4.2.17";
739
+ if ("4.2.18") {
740
+ cached = "4.2.18";
741
741
  return cached;
742
742
  }
743
743
  } catch {}
@@ -3930,6 +3930,7 @@ var init_commands_descriptions = __esm(() => {
3930
3930
  "commands.desc.commit": "Create a git commit",
3931
3931
  "commands.desc.compact": "Compact the conversation to free up context",
3932
3932
  "commands.desc.config": "Open config panel",
3933
+ "commands.desc.cloudNotify": "Toggle WeCom cloud notify via cs-cloud daemon (idle/permission/question events)",
3933
3934
  "commands.desc.context": "Visualize current context usage as a colored grid",
3934
3935
  "commands.desc.continue": "Continue the most recent conversation",
3935
3936
  "commands.desc.coordinator": "Toggle coordinator (multi-worker) mode",
@@ -5980,6 +5981,14 @@ Please critique my custom auto mode rules for clarity, completeness, conflicts,
5980
5981
  "cli.cloud.failedToRun": "failed to run cs-cloud: {error}",
5981
5982
  "cli.cloud.disconnected": "cs-cloud disconnected unexpectedly",
5982
5983
  "cli.cloud.usage": "specify a subcommand. usage: csc cloud <command> [args...]",
5984
+ "cli.cloudNotify.statusOn": "Cloud notify ON \u2014 events: {events}",
5985
+ "cli.cloudNotify.statusOff": "Cloud notify OFF",
5986
+ "cli.cloudNotify.daemonNotReady": "cs-cloud daemon not ready (running={running}, authenticated={auth}, device_id={deviceId})",
5987
+ "cli.cloudNotify.daemonReady": "cs-cloud daemon ready at {localUrl}",
5988
+ "cli.cloudNotify.hintLogin": "run `csc cloud login` or `csc cloud register` to bind your device",
5989
+ "cli.cloudNotify.idle": "idle",
5990
+ "cli.cloudNotify.permission": "permission",
5991
+ "cli.cloudNotify.question": "question",
5983
5992
  "cli.up.foundSection": 'Found "# csc up" in {path}',
5984
5993
  "cli.up.noSection": `No "# csc up" section found in CLAUDE.md.
5985
5994
  ` + `Add a section like:
@@ -8472,6 +8481,7 @@ var init_commands_descriptions2 = __esm(() => {
8472
8481
  "commands.desc.commit": "\u521B\u5EFA git commit",
8473
8482
  "commands.desc.compact": "\u538B\u7F29\u5BF9\u8BDD\u4EE5\u91CA\u653E\u4E0A\u4E0B\u6587",
8474
8483
  "commands.desc.config": "\u6253\u5F00\u914D\u7F6E\u9762\u677F",
8484
+ "commands.desc.cloudNotify": "\u901A\u8FC7 cs-cloud daemon \u63A8\u9001\u4F01\u5FAE\u901A\u77E5(\u7A7A\u95F2 / \u6743\u9650 / \u95EE\u9898 \u4E8B\u4EF6)",
8475
8485
  "commands.desc.context": "\u4EE5\u5F69\u8272\u7F51\u683C\u53EF\u89C6\u5316\u5F53\u524D\u4E0A\u4E0B\u6587\u7528\u91CF",
8476
8486
  "commands.desc.continue": "\u7EE7\u7EED\u6700\u8FD1\u7684\u5BF9\u8BDD",
8477
8487
  "commands.desc.coordinator": "\u5207\u6362\u534F\u8C03\u5668\uFF08\u591A worker\uFF09\u6A21\u5F0F",
@@ -10519,6 +10529,14 @@ detached \u5F15\u64CE\u6CA1\u6709\u7528\u4E8E\u4EA4\u4E92\u8F93\u5165\u7684\u7EC
10519
10529
  "cli.cloud.failedToRun": "\u8FD0\u884C cs-cloud \u5931\u8D25: {error}",
10520
10530
  "cli.cloud.disconnected": "cs-cloud \u610F\u5916\u65AD\u5F00\u8FDE\u63A5",
10521
10531
  "cli.cloud.usage": "\u8BF7\u6307\u5B9A\u5B50\u547D\u4EE4\u3002\u7528\u6CD5: csc cloud <command> [args...]",
10532
+ "cli.cloudNotify.statusOn": "\u4F01\u5FAE\u4E91\u901A\u77E5\u5DF2\u5F00\u542F \u2014 \u4E8B\u4EF6: {events}",
10533
+ "cli.cloudNotify.statusOff": "\u4F01\u5FAE\u4E91\u901A\u77E5\u5DF2\u5173\u95ED",
10534
+ "cli.cloudNotify.daemonNotReady": "cs-cloud daemon \u672A\u5C31\u7EEA(\u8FD0\u884C\u4E2D={running}, \u5DF2\u8BA4\u8BC1={auth}, device_id={deviceId})",
10535
+ "cli.cloudNotify.daemonReady": "cs-cloud daemon \u5DF2\u5C31\u7EEA:{localUrl}",
10536
+ "cli.cloudNotify.hintLogin": "\u8BF7\u6267\u884C `csc cloud login` \u6216 `csc cloud register` \u7ED1\u5B9A\u8BBE\u5907",
10537
+ "cli.cloudNotify.idle": "\u7A7A\u95F2",
10538
+ "cli.cloudNotify.permission": "\u6743\u9650",
10539
+ "cli.cloudNotify.question": "\u95EE\u9898",
10522
10540
  "cli.up.foundSection": '\u5728 {path} \u4E2D\u627E\u5230"# csc up"',
10523
10541
  "cli.up.noSection": `\u5728 CLAUDE.md \u4E2D\u672A\u627E\u5230"# csc up"\u90E8\u5206\u3002
10524
10542
  ` + `\u6DFB\u52A0\u5982\u4E0B\u90E8\u5206\uFF1A
@@ -13039,6 +13057,9 @@ var init_pickBy = __esm(() => {
13039
13057
  import { randomUUID } from "crypto";
13040
13058
  var init_crypto = () => {};
13041
13059
 
13060
+ // src/utils/uuid.ts
13061
+ var init_uuid = () => {};
13062
+
13042
13063
  // src/utils/settings/settingsCache.ts
13043
13064
  function getSessionSettingsCache() {
13044
13065
  return sessionSettingsCache;
@@ -13160,6 +13181,7 @@ function getInitialState() {
13160
13181
  statsStore: null,
13161
13182
  sessionId: randomUUID(),
13162
13183
  parentSessionId: undefined,
13184
+ mainThreadAgentId: undefined,
13163
13185
  loggerProvider: null,
13164
13186
  eventLogger: null,
13165
13187
  meterProvider: null,
@@ -13276,6 +13298,7 @@ function getSessionTrustAccepted() {
13276
13298
  var STATE, sessionSwitched, onSessionSwitch, scrollDraining = false, SCROLL_DRAIN_IDLE_MS = 150;
13277
13299
  var init_state = __esm(() => {
13278
13300
  init_crypto();
13301
+ init_uuid();
13279
13302
  init_settingsCache();
13280
13303
  STATE = getInitialState();
13281
13304
  sessionSwitched = createSignal();
@@ -88489,6 +88512,12 @@ var init_types2 = __esm(() => {
88489
88512
  fastModePerSessionOptIn: exports_external.boolean().optional().describe("When true, fast mode does not persist across sessions. Each session starts with fast mode off."),
88490
88513
  promptSuggestionEnabled: exports_external.boolean().optional().describe("When false, prompt suggestions are disabled. When absent or true, " + "prompt suggestions are enabled."),
88491
88514
  poorMode: exports_external.boolean().optional().describe("When true, poor mode is active \u2014 extract_memories and prompt_suggestion are disabled to save tokens."),
88515
+ cloudNotify: exports_external.object({
88516
+ enabled: exports_external.boolean().optional(),
88517
+ events: exports_external.array(exports_external.enum(["idle", "permission", "question"])).optional(),
88518
+ pollIntervalSec: exports_external.number().optional(),
88519
+ pollTimeoutMin: exports_external.number().optional()
88520
+ }).passthrough().optional().describe("CoStrict cloud notify \u2014 push TUI session events through the local cs-cloud daemon to WeCom. " + "No cloud credentials are stored in csc; auth handled by cs-cloud daemon itself."),
88492
88521
  showClearContextOnPlanAccept: exports_external.boolean().optional().describe('When true, the plan-approval dialog offers a "clear context" option. Defaults to false.'),
88493
88522
  agent: exports_external.string().optional().describe("Name of an agent (built-in or custom) to use for the main thread. " + "Applies the agent's system prompt, tool restrictions, and model."),
88494
88523
  companyAnnouncements: exports_external.array(exports_external.string()).optional().describe("Company announcements to display at startup (one will be randomly selected if multiple are provided)"),
@@ -138445,7 +138474,7 @@ var init_user = __esm(() => {
138445
138474
  deviceId,
138446
138475
  sessionId: getSessionId(),
138447
138476
  email: getEmail(),
138448
- appVersion: "4.2.17",
138477
+ appVersion: "4.2.18",
138449
138478
  platform: getHostPlatformForAnalytics(),
138450
138479
  organizationUuid,
138451
138480
  accountUuid,
@@ -138732,7 +138761,7 @@ var init_metadata = __esm(() => {
138732
138761
  "sed"
138733
138762
  ]);
138734
138763
  getVersionBase = memoize_default(() => {
138735
- const match = "4.2.17".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
138764
+ const match = "4.2.18".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
138736
138765
  return match ? match[0] : undefined;
138737
138766
  });
138738
138767
  buildEnvContext = memoize_default(async () => {
@@ -138772,9 +138801,9 @@ var init_metadata = __esm(() => {
138772
138801
  isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
138773
138802
  isClaudeCodeAction: isEnvTruthy(process.env.CLAUDE_CODE_ACTION),
138774
138803
  isClaudeAiAuth: isClaudeAISubscriber(),
138775
- version: "4.2.17",
138804
+ version: "4.2.18",
138776
138805
  versionBase: getVersionBase(),
138777
- buildTime: "2026-07-23T09:15:46.464Z",
138806
+ buildTime: "2026-07-29T00:51:16.556Z",
138778
138807
  deploymentEnvironment: env4.detectDeploymentEnvironment(),
138779
138808
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
138780
138809
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -143112,5 +143141,5 @@ export {
143112
143141
  isParentHeartbeatValid
143113
143142
  };
143114
143143
 
143115
- //# debugId=AA48DD7E9D5D86CF64756E2164756E21
143144
+ //# debugId=F6CB627EF01EE1A964756E2164756E21
143116
143145
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@costrict/csc",
3
- "version": "4.2.17",
3
+ "version": "4.2.18",
4
4
  "description": "costrict",
5
5
  "type": "module",
6
6
  "author": "costrict",