codex-to-im 1.0.23 → 1.0.26

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/daemon.mjs CHANGED
@@ -18094,7 +18094,7 @@ function getMirrorAssistantRuntimeLabel() {
18094
18094
  }
18095
18095
  function buildMirrorTitle(threadTitle, markdown = false) {
18096
18096
  const title = threadTitle?.trim() || "\u684C\u9762\u7EBF\u7A0B";
18097
- const rendered = markdown ? `&lt;${title}&gt;` : `<${title}>`;
18097
+ const rendered = markdown ? `\`<${title}>\`` : `<${title}>`;
18098
18098
  return markdown ? `**${rendered}**` : rendered;
18099
18099
  }
18100
18100
  function buildMirrorSpeakerLabel(label, markdown = false) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codex-to-im",
3
- "version": "1.0.23",
3
+ "version": "1.0.26",
4
4
  "description": "Installable Codex-to-IM bridge with local setup UI and background service",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/zhangle1987/codex-to-im#readme",
@@ -1,138 +0,0 @@
1
- # Codex-to-IM legacy env snapshot / migration reference
2
- # The primary runtime config is now ~/.codex-to-im/config.v2.json and is
3
- # normally managed from the Web workbench.
4
- # This file is kept only for:
5
- # 1. migrating old single-instance setups to v2
6
- # 2. compatibility snapshots / old tooling fallback
7
- # It no longer fully represents multi-instance channel configuration.
8
-
9
- # Runtime backend: claude | codex | auto
10
- # claude — uses Claude Code CLI + @anthropic-ai/claude-agent-sdk
11
- # codex (default) — uses @openai/codex-sdk (auth: codex auth login, or OPENAI_API_KEY)
12
- # auto — tries Claude first, falls back to Codex if CLI not found
13
- CTI_RUNTIME=codex
14
-
15
- # Legacy provider enable list (still used by non-v2 providers such as
16
- # telegram / discord / qq; Feishu and Weixin are now configured as channel
17
- # instances in config.v2.json).
18
- CTI_ENABLED_CHANNELS=feishu
19
-
20
- # Default workspace root for `/new proj1` style project creation.
21
- # When unset, codex-to-im falls back to `~/cx2im`
22
- # and expands it per OS (Windows/macOS/Linux).
23
- # CTI_DEFAULT_WORKSPACE_ROOT=/path/to/your/workspace
24
-
25
- # Default model (optional — inherits from runtime's own default if not set)
26
- # CTI_DEFAULT_MODEL=
27
-
28
- # Default mode (code, plan, ask)
29
- CTI_DEFAULT_MODE=code
30
-
31
- # Number of recent messages returned by /history
32
- # CTI_HISTORY_MESSAGE_LIMIT=8
33
-
34
- # ── Claude CLI path (optional) ──
35
- # Override if you have multiple `claude` versions in PATH, or the daemon
36
- # picks the wrong one (e.g. an npm-installed 1.x instead of the native 2.x).
37
- # CTI_CLAUDE_CODE_EXECUTABLE=/path/to/claude
38
-
39
- # ── Third-party API provider (optional) ──
40
- # If you use Claude through a third-party API provider (not the default
41
- # Anthropic API), set these so the daemon forwards them to the CLI subprocess.
42
- # They are automatically passed through in both inherit and strict env modes.
43
- # All ANTHROPIC_* vars in this file are forwarded to the launchd/setsid daemon.
44
- # ANTHROPIC_API_KEY=your-third-party-api-key
45
- # ANTHROPIC_BASE_URL=https://your-api-provider.com/v1
46
- # ANTHROPIC_AUTH_TOKEN=your-auth-token
47
-
48
- # ── Codex auth (optional — only if not using `codex auth login`) ──
49
- # Priority: CTI_CODEX_API_KEY > CODEX_API_KEY > OPENAI_API_KEY
50
- # CTI_CODEX_API_KEY=
51
- # CTI_CODEX_BASE_URL=
52
- # Allow Codex to run when the selected project directory is not inside a trusted Git repo.
53
- # This project defaults it to true so first-time setup works more smoothly.
54
- CTI_CODEX_SKIP_GIT_REPO_CHECK=true
55
- # Default filesystem permission mode for Codex threads created by codex-to-im.
56
- # Options: read-only | workspace-write | danger-full-access
57
- CTI_CODEX_SANDBOX_MODE=workspace-write
58
- # Default reasoning effort for Codex.
59
- # Official SDK/runtime levels: minimal | low | medium | high | xhigh
60
- # IM aliases also support: 1=minimal, 2=low, 3=medium, 4=high, 5=xhigh
61
- CTI_CODEX_REASONING_EFFORT=medium
62
-
63
- # ── Web 控制台访问 ──
64
- # 默认仅允许本机访问本地工作台。开启后,局域网设备访问时需要先输入 token。
65
- # 可以在 Web 工作台里直接勾选并自动生成 token。
66
- # CTI_UI_ALLOW_LAN=false
67
- # CTI_UI_ACCESS_TOKEN=your-random-access-token
68
-
69
- # ── Telegram ──
70
- CTI_TG_BOT_TOKEN=your-telegram-bot-token
71
- # Chat ID for authorization (at least one of CHAT_ID or ALLOWED_USERS is required)
72
- # Get it: send a message to the bot, then visit https://api.telegram.org/botYOUR_TOKEN/getUpdates
73
- CTI_TG_CHAT_ID=your-chat-id
74
- # CTI_TG_ALLOWED_USERS=user_id_1,user_id_2
75
-
76
- # ── Discord ──
77
- # CTI_DISCORD_BOT_TOKEN=your-discord-bot-token
78
- # CTI_DISCORD_ALLOWED_USERS=user_id_1,user_id_2
79
- # CTI_DISCORD_ALLOWED_CHANNELS=channel_id_1
80
- # CTI_DISCORD_ALLOWED_GUILDS=guild_id_1
81
-
82
- # ── Feishu / Lark (legacy single-instance migration fields) ──
83
- # For new setups, add Feishu/Lark channel instances in the Web workbench and
84
- # choose the site there. These env vars are only used when migrating an old
85
- # single-instance setup into config.v2.json.
86
- # CTI_FEISHU_APP_ID=your-app-id
87
- # CTI_FEISHU_APP_SECRET=your-app-secret
88
- # CTI_FEISHU_SITE=feishu
89
- # CTI_FEISHU_ALLOWED_USERS=user_id_1,user_id_2
90
- # Enable streaming response cards in Feishu (default true).
91
- # Requires published Feishu permissions such as:
92
- # - cardkit:card:write
93
- # - cardkit:card:read
94
- # - im:message:update
95
- # Current Codex runtime note: thinking/progress can update live, but
96
- # assistant body text may still arrive only at completion.
97
- # CTI_FEISHU_STREAMING_ENABLED=true
98
- # Use Markdown for text sent through the bridge, including normal replies,
99
- # shared-thread mirror messages, and system feedback such as /h or /status.
100
- # CTI_FEISHU_COMMAND_MARKDOWN_ENABLED=true
101
-
102
- # ── QQ ──
103
- # Required: obtain from https://q.qq.com/qqbot/openclaw
104
- # CTI_QQ_APP_ID=your-qq-app-id
105
- # CTI_QQ_APP_SECRET=your-qq-app-secret
106
- # Allowed users — comma-separated user_openid values (NOT QQ numbers)
107
- # CTI_QQ_ALLOWED_USERS=openid_1,openid_2
108
- # Image input — set to false if the underlying provider doesn't support image input
109
- # CTI_QQ_IMAGE_ENABLED=true
110
- # Max image size in MB (default 20)
111
- # CTI_QQ_MAX_IMAGE_SIZE=20
112
-
113
- # ── WeChat / 微信 (legacy single-instance migration fields) ──
114
- # For new setups, add Weixin channel instances in the Web workbench. These env
115
- # vars are only used when migrating an old single-instance setup into
116
- # config.v2.json.
117
- # No static token is required here. Use the QR login helper to add accounts:
118
- # npm run weixin:login
119
- # Optional protocol overrides (normally leave unset)
120
- # CTI_WEIXIN_BASE_URL=https://ilinkai.weixin.qq.com
121
- # CTI_WEIXIN_CDN_BASE_URL=https://novac2c.cdn.weixin.qq.com/c2c
122
- # Enable inbound media download/processing for image/file/video messages.
123
- # Voice messages do not use raw audio download/transcription here: the bridge
124
- # only accepts WeChat-provided speech-to-text text and otherwise returns an error.
125
- # (default false for safety in CLI setups)
126
- # CTI_WEIXIN_MEDIA_ENABLED=false
127
- # Use Markdown for text sent through the bridge, including normal replies,
128
- # shared-thread mirror messages, and system feedback such as /h or /status.
129
- # Default is false for WeChat.
130
- # CTI_WEIXIN_COMMAND_MARKDOWN_ENABLED=false
131
-
132
- # ── Permission ──
133
- # Auto-approve all tool permission requests without user confirmation.
134
- # Useful for channels that lack interactive permission UI (e.g. Feishu
135
- # WebSocket long-connection mode, where there is no HTTP webhook to
136
- # render clickable approve/deny buttons).
137
- # ⚠️ Only enable this in trusted, access-controlled environments.
138
- # CTI_AUTO_APPROVE=true