codex-to-im 1.0.32 → 1.0.34

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/dist/cli.mjs CHANGED
@@ -15,6 +15,22 @@ import { fileURLToPath } from "node:url";
15
15
  import fs from "node:fs";
16
16
  import os from "node:os";
17
17
  import path from "node:path";
18
+
19
+ // src/runtime-options.ts
20
+ function parseSandboxMode(value) {
21
+ if (value === "read-only" || value === "workspace-write" || value === "danger-full-access") {
22
+ return value;
23
+ }
24
+ return void 0;
25
+ }
26
+ function parseReasoningEffort(value) {
27
+ if (value === "minimal" || value === "low" || value === "medium" || value === "high" || value === "xhigh") {
28
+ return value;
29
+ }
30
+ return void 0;
31
+ }
32
+
33
+ // src/config.ts
18
34
  var DEFAULT_CTI_HOME = path.join(os.homedir(), ".codex-to-im");
19
35
  var DEFAULT_WORKSPACE_ROOT = path.join(os.homedir(), "cx2im");
20
36
  var CTI_HOME = process.env.CTI_HOME || DEFAULT_CTI_HOME;
@@ -61,18 +77,6 @@ function parsePositiveInt(value) {
61
77
  if (!Number.isFinite(parsed) || parsed <= 0) return void 0;
62
78
  return Math.floor(parsed);
63
79
  }
64
- function parseSandboxMode(value) {
65
- if (value === "read-only" || value === "workspace-write" || value === "danger-full-access") {
66
- return value;
67
- }
68
- return void 0;
69
- }
70
- function parseReasoningEffort(value) {
71
- if (value === "minimal" || value === "low" || value === "medium" || value === "high" || value === "xhigh") {
72
- return value;
73
- }
74
- return void 0;
75
- }
76
80
  function normalizeFeishuSite(value) {
77
81
  const normalized = (value || "").trim().replace(/\/+$/, "").toLowerCase();
78
82
  if (!normalized) return "feishu";