ccem 2.75.0 → 2.78.2

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -10,6 +10,7 @@ import { spawn as spawn3 } from "child_process";
10
10
  import * as fs14 from "fs";
11
11
  import * as path12 from "path";
12
12
  import { fileURLToPath as fileURLToPath2 } from "url";
13
+ import { randomUUID } from "crypto";
13
14
 
14
15
  // ../../packages/core/dist/chunk-WF72XTKK.js
15
16
  var DEFAULT_ROUTER_PORT = 17820;
@@ -4734,7 +4735,8 @@ async function runPreflightGate(options = {}) {
4734
4735
  "dsh binary not found on PATH. Install it with: npm install -g @deepseek-ai/dsh@0.1.1-rc.2"
4735
4736
  );
4736
4737
  }
4737
- const dshVersion = await probeBinVersion(invocation, { env });
4738
+ const probeDeps = { env, exec: options.exec };
4739
+ const dshVersion = await probeBinVersion(invocation, probeDeps);
4738
4740
  if (dshVersion === null) {
4739
4741
  throw new DshProjectionError(
4740
4742
  "DSH_VERSION_UNREADABLE",
@@ -4748,7 +4750,7 @@ async function runPreflightGate(options = {}) {
4748
4750
  );
4749
4751
  }
4750
4752
  const nodeBin = platform === "win32" && invocation.prefix.length > 0 ? invocation.bin : resolveBinOnPath("node", env, platform) ?? "node";
4751
- const nodeVersion = await probeSimpleBinVersion(nodeBin, { env });
4753
+ const nodeVersion = await probeSimpleBinVersion(nodeBin, probeDeps);
4752
4754
  if (nodeVersion === null) {
4753
4755
  throw new DshProjectionError(
4754
4756
  "NODE_VERSION_UNREADABLE",
@@ -6193,10 +6195,11 @@ desktopCmd.command("events <runtimeId>").description("Read CCEM Desktop workspac
6193
6195
  });
6194
6196
  outputDesktopResult(result, opts);
6195
6197
  });
6196
- desktopCmd.command("send <runtimeId>").description("Send input to a CCEM Desktop workspace session").requiredOption("--text <text>", "Text to send").option("--display-text <text>", "Text to show in Desktop").option("--json", "Output JSON").action(async function(runtimeId) {
6198
+ desktopCmd.command("send <runtimeId>").description("Send input to a CCEM Desktop workspace session").requiredOption("--text <text>", "Text to send").option("--display-text <text>", "Text to show in Desktop").option("--message-id <id>", "Stable idempotency key to reuse when retrying an uncertain send").option("--json", "Output JSON").action(async function(runtimeId) {
6197
6199
  const opts = this.opts();
6198
6200
  const result = await requestDesktopControl("ccem.workspace.sendInput", {
6199
6201
  runtimeId,
6202
+ clientMessageId: opts.messageId?.trim() || `ccem-cli-${randomUUID()}`,
6200
6203
  text: opts.text,
6201
6204
  displayText: opts.displayText ?? null
6202
6205
  });
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "ccem",
3
- "version": "2.75.0",
3
+ "version": "2.78.2",
4
4
  "type": "module",
5
5
  "description": "Claude Code Environment Manager",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "git+https://github.com/Genuifx/claude-code-env-manager.git",
8
+ "url": "git+https://github.com/Genuifx/ccem.git",
9
9
  "directory": "apps/cli"
10
10
  },
11
11
  "author": {