@blunking/codexlink 0.1.10 → 0.1.12

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
@@ -1,117 +1,119 @@
1
- <div align="center">
2
-
3
- # CodexLink
4
-
5
- **Your agent in your pocket.**
6
-
7
- [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
8
- [![Powered by BLUN](https://img.shields.io/badge/Powered%20by-BLUN-22D3EE.svg)](https://blun.ai)
9
-
10
- </div>
11
-
12
- CodexLink is the BLUN launcher for one visible CLI session with optional Telegram delivery.
13
-
14
- It keeps transport and queueing around the operator, without spinning up a hidden second session.
15
-
16
- Telegram delivery is serial by default:
17
-
18
- - inbound messages land in queue first
19
- - active work is not interrupted immediately
20
- - direct messages wait until the visible session is quiet
21
- - ambient group noise stays queued until it is relevant or manually drained
22
- - escalation-style messages can still jump the line
23
- - stale pending replies time out automatically, so the queue cannot block forever
24
-
25
- ## Install
26
-
27
- From GitHub:
28
-
29
- ```powershell
30
- npm install -g github:maykbiletti/codexlink
31
- ```
32
-
33
- From npm:
34
-
35
- ```powershell
36
- npm install -g @blunking/codexlink
37
- ```
38
-
39
- Local development:
40
-
41
- ```powershell
42
- cd codexlink
43
- npm install
44
- npm link
45
- ```
46
-
47
- ## Schnellstart
48
-
49
- Normal starten:
50
-
51
- ```powershell
52
- blun-codex
53
- ```
54
-
55
- Telegram aktivieren:
56
-
57
- ```powershell
58
- blun-codex telegram-plugin
59
- ```
60
-
1
+ <div align="center">
2
+
3
+ # CodexLink
4
+
5
+ **Your agent in your pocket.**
6
+
7
+ [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
8
+ [![Powered by BLUN](https://img.shields.io/badge/Powered%20by-BLUN-22D3EE.svg)](https://blun.ai)
9
+
10
+ </div>
11
+
12
+ CodexLink is the BLUN launcher for one visible CLI session with optional Telegram delivery.
13
+
14
+ It keeps transport and queueing around the operator, without spinning up a hidden second session.
15
+
16
+ Telegram delivery is serial by default:
17
+
18
+ - inbound messages land in queue first
19
+ - active work is not interrupted immediately
20
+ - direct messages wait until the visible session is quiet
21
+ - ambient group noise stays queued until it is relevant or manually drained
22
+ - escalation-style messages can still jump the line
23
+ - stale pending replies time out automatically, so the queue cannot block forever
24
+
25
+ ## Install
26
+
27
+ From GitHub:
28
+
29
+ ```powershell
30
+ npm install -g github:maykbiletti/codexlink
31
+ ```
32
+
33
+ From npm:
34
+
35
+ ```powershell
36
+ npm install -g @blunking/codexlink
37
+ ```
38
+
39
+ Local development:
40
+
41
+ ```powershell
42
+ cd codexlink
43
+ npm install
44
+ npm link
45
+ ```
46
+
47
+ ## Schnellstart
48
+
49
+ Normal starten:
50
+
51
+ ```powershell
52
+ blun-codex
53
+ ```
54
+
55
+ Telegram aktivieren:
56
+
57
+ ```powershell
58
+ blun-codex telegram-plugin
59
+ ```
60
+
61
61
  Wenn Telegram noch nicht eingerichtet ist, startet automatisch ein kurzer Setup-Flow und fragt:
62
62
 
63
63
  - Telegram Bot Token
64
64
 
65
65
  Danach oeffnest du Telegram und sendest eine Nachricht an den Bot. CodexLink erkennt Chat oder Gruppe automatisch und schreibt alles lokal an die richtige Stelle. Du musst keine Chat-ID suchen und keine `.env`-Datei bearbeiten.
66
-
67
- Pruefen:
68
-
69
- ```powershell
70
- blun-codex telegram-doctor
71
- ```
72
-
73
- ## Commands
74
-
75
- Normal startup:
76
-
77
- ```powershell
78
- blun-codex
79
- ```
80
-
81
- Alias:
82
-
83
- ```powershell
84
- codexlink
85
- ```
86
-
87
- Telegram mode:
88
-
89
- ```powershell
90
- blun-codex telegram-plugin
91
- ```
92
-
93
- Manual setup:
94
-
95
- ```powershell
96
- blun-codex telegram-setup
97
- ```
98
-
99
- Legacy equivalent:
100
-
101
- ```powershell
102
- blun-codex --telegram plugin
103
- ```
104
-
105
- Status:
106
-
107
- ```powershell
108
- blun-codex telegram-status
109
- ```
110
-
66
+
67
+ Pruefen:
68
+
69
+ ```powershell
70
+ blun-codex telegram-doctor
71
+ ```
72
+
73
+ ## Commands
74
+
75
+ Normal startup:
76
+
77
+ ```powershell
78
+ blun-codex
79
+ ```
80
+
81
+ Alias:
82
+
83
+ ```powershell
84
+ codexlink
85
+ ```
86
+
87
+ Telegram mode:
88
+
89
+ ```powershell
90
+ blun-codex telegram-plugin
91
+ ```
92
+
93
+ Manual setup:
94
+
95
+ ```powershell
96
+ blun-codex telegram-setup
97
+ ```
98
+
99
+ Legacy equivalent:
100
+
101
+ ```powershell
102
+ blun-codex --telegram plugin
103
+ ```
104
+
105
+ Status:
106
+
107
+ ```powershell
108
+ blun-codex telegram-status
109
+ ```
110
+
111
111
  Wenn waehrend einer laufenden Arbeit Telegram-Nachrichten gepuffert werden, bleibt die sichtbare CLI-Eingabe unberuehrt. Pending-Nachrichten bleiben im Fenstertitel/Status sichtbar, bis die Antwort raus ist oder sie wirklich ablaufen. Den Queue-Stand kannst du jederzeit mit `blun-codex telegram-status` pruefen.
112
112
 
113
113
  Der automatische Progress-Hinweis ist bewusst defensiv: standardmaessig sendet Telegram nur finale Antworten plus bei laengeren echten Arbeitslaeufen einen neutralen Status. Interne Commentary-Texte werden nicht als zweite fachliche Antwort gespiegelt. Wer das alte Verhalten will, kann `BLUN_TELEGRAM_PROGRESS_RELAY=commentary` setzen; mit `off` werden Progress-Hinweise ganz deaktiviert.
114
114
 
115
+ Wichtig bei mehreren Profilen: ein Telegram-Bot-Token darf nicht gleichzeitig von alten oder fremden Pollern abgefragt werden. Sonst meldet Telegram `Conflict: terminated by other getUpdates request`, und Nachrichten koennen verspaetet oder gar nicht in der sichtbaren CLI landen. Aktuelle Versionen pollen non-blocking und schneller; wenn trotzdem Conflicts auftauchen, alle alten `blun-codex telegram-plugin` Fenster fuer denselben Bot schliessen und genau eine aktuelle Session starten.
116
+
115
117
  Wenn mehrere Agents denselben Gruppenchat nutzen, kann ein Agent andere Agent-Namen als Fremdroute markieren. Dann werden Owner-Nachrichten wie `Frida mach weiter` nicht in Ottos Session gezogen:
116
118
 
117
119
  ```text
@@ -120,126 +122,126 @@ BLUN_TELEGRAM_OTHER_AGENT_NAMES=frida,angel,dieter,alfred
120
122
  ```
121
123
 
122
124
  Doctor:
123
-
124
- ```powershell
125
- blun-codex telegram-doctor
126
- ```
127
-
128
- JSON doctor output:
129
-
130
- ```powershell
131
- blun-codex telegram-doctor --json
132
- ```
133
-
134
- Dry run:
135
-
136
- ```powershell
137
- blun-codex telegram-plugin --print-only
138
- ```
139
-
140
- ## Eigene Profile
141
-
142
- Der normale Start braucht kein eigenes Profil.
143
-
144
- Wenn du nur einen Slot auf deinem Rechner brauchst, reicht:
145
-
146
- ```powershell
147
- blun-codex telegram-plugin
148
- ```
149
-
150
- Ein eigenes Profil brauchst du nur fuer Fortgeschrittene oder Parallelbetrieb, zum Beispiel wenn mehrere Operatoren auf demselben Rechner laufen.
151
-
152
- Beispiel:
153
-
154
- ```powershell
155
- blun-codex --profile alfred telegram-plugin
156
- ```
157
-
158
- ## Private internal profiles
159
-
160
- If you run more than one internal operator on the same machine, do not start all of them on the shared `default` slot.
161
-
162
- Use a dedicated private profile per operator:
163
-
164
- ```powershell
165
- blun-codex --profile frida telegram-plugin
166
- ```
167
-
168
- Why this matters:
169
-
170
- - `blun-codex telegram-plugin` without `--profile` uses the shared `default` runtime slot
171
- - starting a second operator on `default` will replace the first `default` runtime
172
- - a private profile gives that operator a separate runtime slot, state directory, and Mnemo binding
173
-
174
- For internal/private profiles:
175
-
176
- - keep the profile local on the machine
177
- - give it its own `agent_name`
178
- - give it its own Telegram state directory
179
- - do not ship internal agent profiles in the public package
180
-
181
- Local private profiles are loaded from:
182
-
183
- ```text
184
- %USERPROFILE%\.codex\profiles\codexlink\<name>.json
185
- ```
186
-
187
- Example:
188
-
189
- ```powershell
190
- blun-codex --profile frida telegram-plugin
191
- ```
192
-
193
- looks for:
194
-
195
- ```text
196
- %USERPROFILE%\.codex\profiles\codexlink\frida.json
197
- ```
198
-
199
- ## What it does
200
-
201
- - starts one consistent local CLI runtime
202
- - writes a launch record into `.codex/runtimes/default/`
203
- - keeps Telegram queue state under `.codex/channels/telegram-default/`
204
- - attaches Telegram delivery to the same visible session
205
- - defers automatic Telegram delivery until the foreground session is idle
206
- - keeps poller, dispatcher, and reply relay separate from the foreground operator
207
-
208
- ## What it does not do
209
-
210
- - no hidden autonomous answer bot
211
- - no second shadow session
212
- - no per-agent internal company presets in the public package
213
-
214
- ## Public profile
215
-
216
- The shipped default profile is intentionally generic:
217
-
218
- - display name: `CodexLink`
219
- - lane: `general`
220
- - workspace: current directory by default
221
- - model: inherited from the local host unless explicitly set
222
-
223
- If you need custom paths or lane rules, add your own profile JSON next to `profiles/default.json`.
224
-
225
- ## Telegram plugin folder
226
-
227
- The bundled plugin lives under `telegram-plugin/` and contains:
228
-
229
- - `.codex-plugin/plugin.json`
230
- - `.mcp.json`
231
- - `server.js`
232
- - sidecars and bridge helpers
233
-
234
- ## Requirements
235
-
236
- - Windows PowerShell
237
- - Node.js 20+
238
- - a working local `codex` command in `PATH`
239
- - a Telegram bot token when Telegram mode is enabled
240
-
241
- ## First-run behavior
242
-
125
+
126
+ ```powershell
127
+ blun-codex telegram-doctor
128
+ ```
129
+
130
+ JSON doctor output:
131
+
132
+ ```powershell
133
+ blun-codex telegram-doctor --json
134
+ ```
135
+
136
+ Dry run:
137
+
138
+ ```powershell
139
+ blun-codex telegram-plugin --print-only
140
+ ```
141
+
142
+ ## Eigene Profile
143
+
144
+ Der normale Start braucht kein eigenes Profil.
145
+
146
+ Wenn du nur einen Slot auf deinem Rechner brauchst, reicht:
147
+
148
+ ```powershell
149
+ blun-codex telegram-plugin
150
+ ```
151
+
152
+ Ein eigenes Profil brauchst du nur fuer Fortgeschrittene oder Parallelbetrieb, zum Beispiel wenn mehrere Operatoren auf demselben Rechner laufen.
153
+
154
+ Beispiel:
155
+
156
+ ```powershell
157
+ blun-codex --profile alfred telegram-plugin
158
+ ```
159
+
160
+ ## Private internal profiles
161
+
162
+ If you run more than one internal operator on the same machine, do not start all of them on the shared `default` slot.
163
+
164
+ Use a dedicated private profile per operator:
165
+
166
+ ```powershell
167
+ blun-codex --profile frida telegram-plugin
168
+ ```
169
+
170
+ Why this matters:
171
+
172
+ - `blun-codex telegram-plugin` without `--profile` uses the shared `default` runtime slot
173
+ - starting a second operator on `default` will replace the first `default` runtime
174
+ - a private profile gives that operator a separate runtime slot, state directory, and Mnemo binding
175
+
176
+ For internal/private profiles:
177
+
178
+ - keep the profile local on the machine
179
+ - give it its own `agent_name`
180
+ - give it its own Telegram state directory
181
+ - do not ship internal agent profiles in the public package
182
+
183
+ Local private profiles are loaded from:
184
+
185
+ ```text
186
+ %USERPROFILE%\.codex\profiles\codexlink\<name>.json
187
+ ```
188
+
189
+ Example:
190
+
191
+ ```powershell
192
+ blun-codex --profile frida telegram-plugin
193
+ ```
194
+
195
+ looks for:
196
+
197
+ ```text
198
+ %USERPROFILE%\.codex\profiles\codexlink\frida.json
199
+ ```
200
+
201
+ ## What it does
202
+
203
+ - starts one consistent local CLI runtime
204
+ - writes a launch record into `.codex/runtimes/default/`
205
+ - keeps Telegram queue state under `.codex/channels/telegram-default/`
206
+ - attaches Telegram delivery to the same visible session
207
+ - defers automatic Telegram delivery until the foreground session is idle
208
+ - keeps poller, dispatcher, and reply relay separate from the foreground operator
209
+
210
+ ## What it does not do
211
+
212
+ - no hidden autonomous answer bot
213
+ - no second shadow session
214
+ - no per-agent internal company presets in the public package
215
+
216
+ ## Public profile
217
+
218
+ The shipped default profile is intentionally generic:
219
+
220
+ - display name: `CodexLink`
221
+ - lane: `general`
222
+ - workspace: current directory by default
223
+ - model: inherited from the local host unless explicitly set
224
+
225
+ If you need custom paths or lane rules, add your own profile JSON next to `profiles/default.json`.
226
+
227
+ ## Telegram plugin folder
228
+
229
+ The bundled plugin lives under `telegram-plugin/` and contains:
230
+
231
+ - `.codex-plugin/plugin.json`
232
+ - `.mcp.json`
233
+ - `server.js`
234
+ - sidecars and bridge helpers
235
+
236
+ ## Requirements
237
+
238
+ - Windows PowerShell
239
+ - Node.js 20+
240
+ - a working local `codex` command in `PATH`
241
+ - a Telegram bot token when Telegram mode is enabled
242
+
243
+ ## First-run behavior
244
+
243
245
  `blun-codex telegram-plugin` now behaves like a guided setup for normal users:
244
246
 
245
247
  1. check whether Telegram is already configured
@@ -252,12 +254,12 @@ Allowed Chat ID(s) are no longer typed by hand. To pair a different chat or grou
252
254
 
253
255
  ```powershell
254
256
  blun-codex telegram-setup
255
- ```
256
-
257
- If something is missing later, `blun-codex telegram-doctor` tells you exactly what is missing and what to run next.
258
-
259
- ## Notes
260
-
261
- - the package currently targets local Windows operators first
262
- - the package is installable from GitHub before registry publishing
263
- - once an npm token is available, the same package can be published without changing the command shape
257
+ ```
258
+
259
+ If something is missing later, `blun-codex telegram-doctor` tells you exactly what is missing and what to run next.
260
+
261
+ ## Notes
262
+
263
+ - the package currently targets local Windows operators first
264
+ - the package is installable from GitHub before registry publishing
265
+ - once an npm token is available, the same package can be published without changing the command shape