wtt-connect 0.2.10 → 0.2.11

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/README.md CHANGED
@@ -26,7 +26,7 @@ Implemented production-oriented surfaces:
26
26
  - `none`
27
27
  - `macos-say` using the macOS `say` command, emitted as WAV when upload is enabled
28
28
  - HTTP task status update path
29
- - Permission broker for Codex modes, including explicit opt-in for dangerous `yolo`
29
+ - Permission broker for agent modes; `full-auto` is the default no-approval mode for Codex and Claude Code
30
30
  - Optional WTT media artifact upload path (`/media/sign` → direct upload → `/media/commit`)
31
31
  - Agent-generated file artifacts for WTT feed chat (`.docx`, `.pptx`, `.xlsx`, `.pdf`, `.csv`, `.zip`) using explicit final-response markers that are converted into WTT file cards
32
32
  - Attachment staging for WTT message media/files; image attachments are passed to Codex with `--image` (including Claude Code image fallback when the Claude provider cannot view images directly)
@@ -90,6 +90,7 @@ Important settings:
90
90
  - `WTT_CONNECT_ADAPTERS=codex,claude-code,cursor,gemini,qoder,opencode,iflow,kimi,pi,acp,devin`
91
91
  - `WTT_CONNECT_WORKDIR`
92
92
  - `WTT_CONNECT_MODE=full-auto|auto-edit|yolo|suggest`
93
+ - `full-auto` is the default no-approval mode: Codex runs with `--dangerously-bypass-approvals-and-sandbox`; Claude Code runs with `--dangerously-skip-permissions --permission-mode bypassPermissions`
93
94
  - `WTT_CONNECT_AGENT_ALIASES=alias1,alias2` for extra @mention names in discussion/collaborative topics; `WTT_AGENT_ID` always works
94
95
  - `WTT_CONNECT_ALLOW_YOLO=1` only when intentionally using `yolo`
95
96
  - `WTT_CONNECT_STATE_DIR` / `WTT_CONNECT_STORE_FILE` for durable sessions
@@ -267,7 +268,7 @@ wtt-connect up codex agent-codex '***'
267
268
  wtt-connect up claude-code agent-claude '***'
268
269
  ```
269
270
 
270
- Use named options when you need a custom service name, permission mode, or boot-before-login behavior:
271
+ Use named options when you need a custom service name, a stricter permission mode, or boot-before-login behavior:
271
272
 
272
273
  ```bash
273
274
  ./scripts/install-systemd-user.sh \
@@ -275,8 +276,7 @@ Use named options when you need a custom service name, permission mode, or boot-
275
276
  --agent-id agent-codex \
276
277
  --token '***' \
277
278
  --adapter codex \
278
- --mode yolo \
279
- --allow-yolo \
279
+ --mode full-auto \
280
280
  --publish-progress \
281
281
  --enable-linger
282
282
 
@@ -285,8 +285,7 @@ Use named options when you need a custom service name, permission mode, or boot-
285
285
  --agent-id agent-claude \
286
286
  --token '***' \
287
287
  --adapter claude-code \
288
- --mode yolo \
289
- --allow-yolo \
288
+ --mode full-auto \
290
289
  --publish-progress \
291
290
  --enable-linger
292
291
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wtt-connect",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "private": false,
5
5
  "description": "WTT-native connector daemon for Codex, Claude Code, Cursor, Gemini, ACP, and other coding agent surfaces.",
6
6
  "type": "module",
@@ -42,7 +42,7 @@ export class ClaudeCodeAdapter {
42
42
  const args = [];
43
43
  if (sessionId) args.push('--resume', sessionId);
44
44
  args.push('-p', prompt, '--output-format', 'stream-json', '--verbose');
45
- if (this.config.mode === 'yolo') args.push('--dangerously-skip-permissions', '--permission-mode', 'bypassPermissions');
45
+ if (['full-auto', 'yolo'].includes(this.config.mode)) args.push('--dangerously-skip-permissions', '--permission-mode', 'bypassPermissions');
46
46
  if (this.config.model) args.push('--model', this.config.model);
47
47
  return args;
48
48
  }
@@ -118,7 +118,7 @@ function extractSessionId(ev) {
118
118
 
119
119
  async function runCodexVision(bin, prompt, images, cwd, timeoutMs, config = {}, onEvent) {
120
120
  const args = ['exec', '--skip-git-repo-check', '--json', '--cd', cwd];
121
- if (config.mode === 'yolo') args.push('--dangerously-bypass-approvals-and-sandbox');
121
+ if (['full-auto', 'yolo'].includes(config.mode)) args.push('--dangerously-bypass-approvals-and-sandbox');
122
122
  for (const img of images || []) args.push('--image', img);
123
123
  args.push('-');
124
124
  return new Promise((resolve, reject) => {
@@ -1,7 +1,7 @@
1
1
  const MODE_TO_CODEX = {
2
2
  suggest: [],
3
3
  'auto-edit': ['--full-auto'],
4
- 'full-auto': ['--full-auto'],
4
+ 'full-auto': ['--dangerously-bypass-approvals-and-sandbox'],
5
5
  yolo: ['--dangerously-bypass-approvals-and-sandbox'],
6
6
  };
7
7
 
@@ -23,6 +23,7 @@ export class PermissionBroker {
23
23
 
24
24
  describe() {
25
25
  if (this.config.mode === 'yolo') return 'yolo/dangerously-bypass-approvals-and-sandbox';
26
+ if (this.config.mode === 'full-auto') return 'full-auto/dangerously-bypass-approvals-and-sandbox';
26
27
  return this.config.mode;
27
28
  }
28
29
  }