@someonegg/codex-hub 0.0.0-stage → 0.1.1

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 (138) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +101 -2
  3. package/dist/client/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  4. package/dist/client/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  5. package/dist/client/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  6. package/dist/client/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  7. package/dist/client/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  8. package/dist/client/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  9. package/dist/client/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  10. package/dist/client/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  11. package/dist/client/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  12. package/dist/client/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  13. package/dist/client/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  14. package/dist/client/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  15. package/dist/client/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  16. package/dist/client/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  17. package/dist/client/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  18. package/dist/client/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  19. package/dist/client/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  20. package/dist/client/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  21. package/dist/client/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  22. package/dist/client/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  23. package/dist/client/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  24. package/dist/client/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  25. package/dist/client/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  26. package/dist/client/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  27. package/dist/client/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  28. package/dist/client/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  29. package/dist/client/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  30. package/dist/client/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  31. package/dist/client/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  32. package/dist/client/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  33. package/dist/client/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  34. package/dist/client/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  35. package/dist/client/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  36. package/dist/client/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  37. package/dist/client/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  38. package/dist/client/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  39. package/dist/client/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  40. package/dist/client/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  41. package/dist/client/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  42. package/dist/client/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  43. package/dist/client/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  44. package/dist/client/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  45. package/dist/client/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  46. package/dist/client/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  47. package/dist/client/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  48. package/dist/client/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  49. package/dist/client/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  50. package/dist/client/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  51. package/dist/client/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  52. package/dist/client/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  53. package/dist/client/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  54. package/dist/client/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  55. package/dist/client/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  56. package/dist/client/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  57. package/dist/client/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  58. package/dist/client/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  59. package/dist/client/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  60. package/dist/client/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  61. package/dist/client/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  62. package/dist/client/assets/index-CRB_Qi32.js +304 -0
  63. package/dist/client/assets/index-lmwuA3r2.css +1 -0
  64. package/dist/client/index.html +16 -0
  65. package/dist/server/server/adapters/codex/agent-identity.js +9 -0
  66. package/dist/server/server/adapters/codex/catalog-source.js +2 -0
  67. package/dist/server/server/adapters/codex/codex-session-source.js +300 -0
  68. package/dist/server/server/adapters/codex/identity-resolver.js +107 -0
  69. package/dist/server/server/adapters/codex/interaction-parser.js +90 -0
  70. package/dist/server/server/adapters/codex/internal-event-parser.js +56 -0
  71. package/dist/server/server/adapters/codex/io-errors.js +5 -0
  72. package/dist/server/server/adapters/codex/jsonl-catalog-source.js +58 -0
  73. package/dist/server/server/adapters/codex/limits.js +10 -0
  74. package/dist/server/server/adapters/codex/message-normalizer.js +121 -0
  75. package/dist/server/server/adapters/codex/path-policy.js +88 -0
  76. package/dist/server/server/adapters/codex/response-item-parser.js +100 -0
  77. package/dist/server/server/adapters/codex/rollout-decoder.js +286 -0
  78. package/dist/server/server/adapters/codex/session-index-reader.js +101 -0
  79. package/dist/server/server/adapters/codex/session-manager.js +65 -0
  80. package/dist/server/server/adapters/codex/session-normalizer.js +257 -0
  81. package/dist/server/server/adapters/codex/tool-normalizer.js +58 -0
  82. package/dist/server/server/adapters/codex/user-input-normalizer.js +123 -0
  83. package/dist/server/server/api/session-api-mapper.js +194 -0
  84. package/dist/server/server/application/session-read-service.js +109 -0
  85. package/dist/server/server/application/session-reader.js +2 -0
  86. package/dist/server/server/catalog/config.js +4 -0
  87. package/dist/server/server/catalog/session-catalog-service.js +103 -0
  88. package/dist/server/server/config.js +145 -0
  89. package/dist/server/server/create-hub.js +64 -0
  90. package/dist/server/server/domain/project-directory.js +5 -0
  91. package/dist/server/server/domain/session-domain.js +2 -0
  92. package/dist/server/server/domain/session-text.js +45 -0
  93. package/dist/server/server/http/api-route-handler.js +2 -0
  94. package/dist/server/server/http/api-router.js +63 -0
  95. package/dist/server/server/http/create-server.js +148 -0
  96. package/dist/server/server/http/query-params.js +19 -0
  97. package/dist/server/server/http/request-body.js +48 -0
  98. package/dist/server/server/http/router.js +16 -0
  99. package/dist/server/server/http/security.js +19 -0
  100. package/dist/server/server/http/session-interaction-routes.js +101 -0
  101. package/dist/server/server/http/session-management-routes.js +90 -0
  102. package/dist/server/server/http/session-path.js +13 -0
  103. package/dist/server/server/http/session-read-routes.js +198 -0
  104. package/dist/server/server/http/session-updates-routes.js +84 -0
  105. package/dist/server/server/http/terminal-preview-websocket.js +179 -0
  106. package/dist/server/server/http/upload-routes.js +74 -0
  107. package/dist/server/server/interaction/interaction-service.js +247 -0
  108. package/dist/server/server/interaction/message.js +19 -0
  109. package/dist/server/server/interaction/pane-binding-manager.js +60 -0
  110. package/dist/server/server/interaction/reconcile-session-state.js +21 -0
  111. package/dist/server/server/interaction/session-runtime.js +86 -0
  112. package/dist/server/server/interaction/terminal-preview-diff.js +71 -0
  113. package/dist/server/server/interaction/terminal-preview-service.js +194 -0
  114. package/dist/server/server/interaction/tmux-launcher.js +75 -0
  115. package/dist/server/server/interaction/tmux-preview-listener.js +101 -0
  116. package/dist/server/server/interaction/tmux-service.js +269 -0
  117. package/dist/server/server/interaction/transport.js +9 -0
  118. package/dist/server/server/main.js +41 -0
  119. package/dist/server/server/management/operation-service.js +553 -0
  120. package/dist/server/server/management/session-exit-service.js +50 -0
  121. package/dist/server/server/management/session-manager.js +59 -0
  122. package/dist/server/server/repository/catalog-snapshot-store.js +304 -0
  123. package/dist/server/server/repository/diagnostic-logger.js +70 -0
  124. package/dist/server/server/repository/opaque-cursor.js +79 -0
  125. package/dist/server/server/repository/refresh-coordinator.js +14 -0
  126. package/dist/server/server/repository/session-queries.js +151 -0
  127. package/dist/server/server/repository/session-query-criteria.js +2 -0
  128. package/dist/server/server/repository/timeline-prefix-index.js +342 -0
  129. package/dist/server/server/repository/timeline-prefix-registry.js +55 -0
  130. package/dist/server/server/security/opaque-id.js +13 -0
  131. package/dist/server/server/source/session-source.js +2 -0
  132. package/dist/server/server/updates/session-updates-service.js +147 -0
  133. package/dist/server/server/updates/update-revision.js +25 -0
  134. package/dist/server/shared/api-contract.js +2 -0
  135. package/dist/server/shared/domain.js +2 -0
  136. package/dist/server/shared/interaction.js +12 -0
  137. package/dist/server/shared/uploads.js +2 -0
  138. package/package.json +79 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 kngin
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,102 @@
1
- # Temporary Holding Version
1
+ # Codex Hub
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ A local web hub for Codex that pairs readable conversations with live CLI interaction.
4
+ Browse sessions by project, follow responses in near real time, and keep working with
5
+ Codex from desktop or mobile.
6
+
7
+ ![Codex Hub: create a session, send a prompt, and review an answered User input card](docs/images/codex-hub-intro.gif)
8
+
9
+ <details>
10
+ <summary>Mobile screenshots</summary>
11
+
12
+ <img src="docs/images/codex-hub-mobile-catalog.png" alt="Mobile project navigation" width="260">
13
+ <img src="docs/images/codex-hub-mobile-reader.png" alt="Mobile conversation with an answered User input question, options, and selected answer" width="260">
14
+
15
+ </details>
16
+
17
+ ## Quick start
18
+
19
+ Requirements:
20
+
21
+ - macOS or Linux with Node.js 22.13 or newer and npm
22
+ - A local Codex home (usually `~/.codex`)
23
+ - Codex CLI with `resume`, `--no-daemon`, `--no-alt-screen`, `--worktree`, `archive`, and `delete --force` support
24
+ - tmux for creating and interacting with sessions
25
+
26
+ Try it without a global installation:
27
+
28
+ ```sh
29
+ npx @someonegg/codex-hub@latest
30
+ ```
31
+
32
+ Or install it for regular use:
33
+
34
+ ```sh
35
+ npm install -g @someonegg/codex-hub
36
+ codex-hub
37
+ ```
38
+
39
+ Open <http://127.0.0.1:4173>. Press `Ctrl-C` to stop the server.
40
+ To use a different Codex home or port:
41
+
42
+ ```sh
43
+ codex-hub --codex-home 'personal=/path/to/codex-home' --port 4180
44
+ ```
45
+
46
+ To use multiple Codex homes:
47
+
48
+ ```sh
49
+ codex-hub \
50
+ --codex-home 'personal=~/.codex' \
51
+ --codex-home 'work=/path/to/codex-work'
52
+ ```
53
+
54
+ See [home configuration and usage](docs/usage.md#multiple-homes) for detailed rules.
55
+
56
+ To upgrade, run `npm install -g @someonegg/codex-hub@latest` again.
57
+ For running from source, see [Development](docs/development.md).
58
+
59
+ ## Features
60
+
61
+ - Navigate projects, main sessions, and child conversations.
62
+ - Read Markdown, code, tables, and math with optional technical events.
63
+ - Follow conversation updates while browsing their history.
64
+ - Create sessions with optional worktrees, send input, and preview their terminals.
65
+ - See live sessions, safely resume exited sessions, exit without archiving, and manage archives.
66
+
67
+ ## Session interaction
68
+
69
+ Send prompts and control the live terminal from the session page. Paste screenshots
70
+ or drop files into the message input, then review and send the inserted paths.
71
+ See [file uploads](docs/technical-reference.md#file-uploads) for limits and storage options.
72
+
73
+ <details>
74
+ <summary>Show session interaction screenshot</summary>
75
+
76
+ <img src="docs/images/codex-hub-session-interaction.png" alt="Session conversation with answered User input, live terminal preview, controls, message input, and Handoff" width="900">
77
+
78
+ </details>
79
+
80
+ ### Continue with Handoff
81
+
82
+ If Codex switches sessions in the same terminal after `/clear`, `/resume`, or
83
+ running a plan, click **Handoff** on the previous session's page. Once it shows
84
+ **Superseded**, follow **Go to bound session**. Your draft stays on the old page.
85
+ See [tmux interaction](docs/usage.md#binding-an-existing-tmux-session) for details.
86
+
87
+ ## Security
88
+
89
+ Codex Hub reads local session logs and the session index, interacts with Codex
90
+ through tmux, and manages sessions through native CLI commands. Authentication
91
+ stays with Codex; the hub does not read or manage tokens, API keys, or credential files.
92
+
93
+ The server binds to loopback by default. Interaction and management are enabled
94
+ without application authentication. Before exposing it to a network, add
95
+ authentication and restrict access. See the [security guidance](docs/usage.md#security).
96
+
97
+ ## Documentation
98
+
99
+ - [Usage and configuration](docs/usage.md)
100
+ - [Technical reference](docs/technical-reference.md)
101
+ - [Development and screenshots](docs/development.md)
102
+ - [All documentation and architecture decisions](docs/README.md)