@quantiya/codevibe-codex-plugin 2.0.9 → 2.0.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.
Files changed (53) hide show
  1. package/README.md +24 -3
  2. package/dist/server.js +32 -31
  3. package/hooks/common.sh +10 -13
  4. package/libexec/companion-launcher +21 -17
  5. package/libexec/pane-mirror-writer.js +127 -0
  6. package/node_modules/@quantiya/codevibe-core/dist/appsync/__tests__/appsync-client-flag-locator.test.d.ts +1 -0
  7. package/node_modules/@quantiya/codevibe-core/dist/appsync/__tests__/dispose-watcher-socket.test.d.ts +1 -0
  8. package/node_modules/@quantiya/codevibe-core/dist/appsync/appsync-client.d.ts +62 -0
  9. package/node_modules/@quantiya/codevibe-core/dist/auth/__tests__/keychain-cli-nudge.test.d.ts +1 -0
  10. package/node_modules/@quantiya/codevibe-core/dist/auth/keychain-cli.d.ts +8 -0
  11. package/node_modules/@quantiya/codevibe-core/dist/index.js +523 -351
  12. package/node_modules/@quantiya/codevibe-core/dist/keychain/__tests__/migrate-nudge.test.d.ts +1 -0
  13. package/node_modules/@quantiya/codevibe-core/dist/keychain/keychain-migrate.d.ts +17 -0
  14. package/node_modules/@quantiya/codevibe-core/dist/keychain/migrate-nudge.d.ts +38 -0
  15. package/node_modules/@quantiya/codevibe-core/dist/local-executor/__tests__/protocol-backlog-wiring.test.d.ts +1 -0
  16. package/node_modules/@quantiya/codevibe-core/dist/local-executor/__tests__/protocol-backlog.test.d.ts +1 -0
  17. package/node_modules/@quantiya/codevibe-core/dist/local-executor/__tests__/workspace-cleanup-audit.test.d.ts +1 -0
  18. package/node_modules/@quantiya/codevibe-core/dist/local-executor/anchored-fs.d.ts +7 -0
  19. package/node_modules/@quantiya/codevibe-core/dist/local-executor/bounded-directory.d.ts +14 -0
  20. package/node_modules/@quantiya/codevibe-core/dist/local-executor/process-identity.d.ts +30 -0
  21. package/node_modules/@quantiya/codevibe-core/dist/local-executor/process-tree.d.ts +1 -1
  22. package/node_modules/@quantiya/codevibe-core/dist/local-executor/protocol-backlog.d.ts +62 -0
  23. package/node_modules/@quantiya/codevibe-core/dist/local-executor/workspace-cleanup-audit.d.ts +3 -0
  24. package/node_modules/@quantiya/codevibe-core/dist/local-executor/workspace-materializer.d.ts +23 -2
  25. package/node_modules/@quantiya/codevibe-core/dist/local-executor/workspace-shadow.d.ts +2 -0
  26. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/direct-file-delete.test.d.ts +1 -0
  27. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/flag-command.test.d.ts +1 -0
  28. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/halt-message-wire-content.test.d.ts +1 -0
  29. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/audit-browser.d.ts +54 -1
  30. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/cli.d.ts +10 -0
  31. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/cli.js +2711 -1474
  32. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/context-items.d.ts +3 -0
  33. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/direct-file-delete.d.ts +22 -0
  34. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/flag-command.d.ts +81 -0
  35. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/gate-prompts.d.ts +41 -0
  36. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/index.d.ts +31 -6
  37. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/quorum-loop.d.ts +42 -1
  38. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/task-progress.d.ts +3 -0
  39. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/types.d.ts +58 -0
  40. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/workspace-shutdown.d.ts +20 -0
  41. package/node_modules/@quantiya/codevibe-core/dist/reviewer/providers/codex.d.ts +5 -3
  42. package/node_modules/@quantiya/codevibe-core/dist/reviewer/token-usage.d.ts +41 -12
  43. package/node_modules/@quantiya/codevibe-core/dist/reviewer/types.d.ts +3 -0
  44. package/node_modules/@quantiya/codevibe-core/dist/substrate/__tests__/command-runner.test.d.ts +1 -0
  45. package/node_modules/@quantiya/codevibe-core/dist/substrate/types.d.ts +8 -0
  46. package/node_modules/@quantiya/codevibe-core/dist/track-presentation.d.ts +2 -0
  47. package/node_modules/@quantiya/codevibe-core/dist/track-presentation.test.d.ts +1 -0
  48. package/node_modules/@quantiya/codevibe-core/package.json +1 -1
  49. package/node_modules/fs-ext/build/Makefile +2 -2
  50. package/node_modules/fs-ext/build/Release/fs_ext.node +0 -0
  51. package/node_modules/fs-ext/build/Release/obj.target/fs_ext/fs-ext.o +0 -0
  52. package/node_modules/fs-ext/build/config.gypi +1 -1
  53. package/package.json +2 -2
package/README.md CHANGED
@@ -48,9 +48,30 @@ install the unified `codevibe --agent` interface yet.
48
48
 
49
49
  ## How it works
50
50
 
51
- Codex CLI writes session logs to `~/.codex/sessions/` as JSONL files. CodeVibe watches those files with chokidar, parses every log entry, and streams it through E2E-encrypted AWS AppSync to your phone.
52
-
53
- Approval prompts (Codex's interactive Y/N confirmations) aren't in the JSONL log, so CodeVibe observes the live tmux pane to detect them — you get real prompts with real options, and your mobile approve/reject is sent back via `tmux send-keys`.
51
+ Codex CLI writes session logs to `~/.codex/sessions/` as JSONL files. A native
52
+ hook supplies the exact rollout path and session id; CodeVibe never guesses log
53
+ ownership from timestamps or working directories, so concurrent sessions in the
54
+ same repository remain isolated. CodeVibe watches that owned log and streams new
55
+ entries through E2E-encrypted AWS AppSync to your phone. Native Codex history is
56
+ never rewritten or deleted. Safety limits keep an unread backlog to its recent
57
+ 64 MiB tail and skip an individual record over 16 MiB instead of risking an
58
+ out-of-memory failure.
59
+
60
+ Approval prompts use Codex's native `PermissionRequest` hook. On macOS and
61
+ qualified native Linux, a live tmux-pane observer is also a fallback for prompt
62
+ formats absent from hooks; mobile approve/reject is sent back via `tmux send-keys`.
63
+ The pane fallback fails closed on WSL until its filesystem boundary is qualified;
64
+ hook-based prompts and ordinary mobile control remain available there.
65
+
66
+ The transient tmux mirror lives in a private random `0700` directory with
67
+ exclusive `0600` data and writer-state files. Its writer independently stops at
68
+ 16 MiB and confirms quiescence before CodeVibe truncates or removes the files.
69
+ If quiescence cannot be confirmed, the linked, bounded files are retained for
70
+ writer-aware cleanup rather than unlinked beneath a live writer. The observer
71
+ will not allocate another mirror while that exact generation is unconfirmed;
72
+ once it reports `done`, the same owner safely reaps it. Completed crash
73
+ leftovers from dead owners are reaped after seven days. The mirror is a prompt
74
+ detector, not conversation storage.
54
75
 
55
76
  Each live Codex process appears as its own session on your phone, so you can run multiple concurrent Codex sessions side-by-side with Claude and Antigravity.
56
77