omp-superagent 0.0.0-stage → 0.1.2

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 (97) hide show
  1. package/DESIGN.md +1502 -0
  2. package/LICENSE +21 -0
  3. package/README.ko.md +198 -0
  4. package/README.md +224 -2
  5. package/THIRD_PARTY_NOTICES.md +388 -0
  6. package/assets/architecture.mmd +24 -0
  7. package/assets/architecture.svg +126 -0
  8. package/assets/superagent-avatar.jpg +0 -0
  9. package/assets/superagent-mascot.webp +0 -0
  10. package/config.example.json +26 -0
  11. package/docs/OPERATIONS.md +1178 -0
  12. package/docs/discord-voice.md +96 -0
  13. package/docs/releases/0.1.0.md +222 -0
  14. package/docs/releases/0.1.1.md +60 -0
  15. package/docs/releases/0.1.2.md +53 -0
  16. package/package.json +65 -4
  17. package/scripts/ci.ts +33 -0
  18. package/scripts/prepare-ulw.ts +18 -0
  19. package/scripts/release.ts +58 -0
  20. package/scripts/setup.sh +25 -0
  21. package/scripts/test-omp.sh +36 -0
  22. package/skills/head/SKILL.md +100 -0
  23. package/skills/head/references/model-selection.md +83 -0
  24. package/skills/head/references/routing.md +181 -0
  25. package/skills/head/references/supervision.md +122 -0
  26. package/skills/lane/SKILL.md +66 -0
  27. package/skills/lane/references/workflow.md +95 -0
  28. package/src/autostart.ts +295 -0
  29. package/src/board-extension.ts +217 -0
  30. package/src/board.ts +396 -0
  31. package/src/cli.ts +253 -0
  32. package/src/codex-live-bridge.py +73 -0
  33. package/src/codex-live.ts +244 -0
  34. package/src/codex-voice-requirements.txt +5 -0
  35. package/src/codex_live_auth.py +192 -0
  36. package/src/codex_live_media.py +219 -0
  37. package/src/codex_live_provider.py +192 -0
  38. package/src/config.ts +266 -0
  39. package/src/contracts.ts +381 -0
  40. package/src/credentials.ts +172 -0
  41. package/src/decision-tool.ts +59 -0
  42. package/src/decisions.ts +143 -0
  43. package/src/delivery.ts +17 -0
  44. package/src/dialog.ts +73 -0
  45. package/src/discord-command-registration.ts +201 -0
  46. package/src/discord-commands.ts +29 -0
  47. package/src/discord-context.ts +118 -0
  48. package/src/discord-markdown.ts +172 -0
  49. package/src/discord-voice-draft.ts +124 -0
  50. package/src/discord-voice-link.ts +270 -0
  51. package/src/discord-voice.ts +150 -0
  52. package/src/discord.ts +1012 -0
  53. package/src/extension.ts +446 -0
  54. package/src/gateway-client.ts +229 -0
  55. package/src/gateway-protocol.ts +85 -0
  56. package/src/gateway-restart.ts +151 -0
  57. package/src/gateway-server.ts +440 -0
  58. package/src/gateway-store.ts +251 -0
  59. package/src/gateway.ts +654 -0
  60. package/src/head-recovery.ts +61 -0
  61. package/src/host-broker-services.ts +108 -0
  62. package/src/host-extension.ts +561 -0
  63. package/src/host-owner.ts +366 -0
  64. package/src/host-protocol.ts +144 -0
  65. package/src/host-services.ts +54 -0
  66. package/src/host.ts +415 -0
  67. package/src/installed-omp.ts +71 -0
  68. package/src/lane-extension.ts +184 -0
  69. package/src/lane-models.ts +75 -0
  70. package/src/lane-report.ts +70 -0
  71. package/src/lane-rows.ts +12 -0
  72. package/src/managed-ulw-probe.ts +172 -0
  73. package/src/managed-ulw.ts +471 -0
  74. package/src/message-order.ts +21 -0
  75. package/src/messenger-commands.ts +16 -0
  76. package/src/messengers.ts +143 -0
  77. package/src/native-presets.ts +370 -0
  78. package/src/native-sessions.ts +32 -0
  79. package/src/native-settings.ts +131 -0
  80. package/src/openai-live.ts +377 -0
  81. package/src/pr-github-schema.ts +110 -0
  82. package/src/pr-github.ts +170 -0
  83. package/src/pr-watch.ts +200 -0
  84. package/src/repository.ts +12 -0
  85. package/src/runtime.ts +4229 -0
  86. package/src/setup-judge.ts +34 -0
  87. package/src/setup-memory.ts +39 -0
  88. package/src/setup-profiles.ts +84 -0
  89. package/src/setup.ts +300 -0
  90. package/src/slack-command-registration.ts +217 -0
  91. package/src/slack-commands.ts +18 -0
  92. package/src/slack.ts +779 -0
  93. package/src/store.ts +862 -0
  94. package/src/telegram-command-registration.ts +155 -0
  95. package/src/telegram.ts +677 -0
  96. package/src/workflow.ts +94 -0
  97. package/upstream/ulw.json +9 -0
@@ -0,0 +1,388 @@
1
+ # Third-Party Notices and Provenance
2
+
3
+ Original contributions to this project are licensed under the MIT License in
4
+ [`LICENSE`](LICENSE), Copyright (c) 2026 dbc-hbin. Third-party code, artwork,
5
+ dependencies, and separately managed packages retain their own licenses and
6
+ copyright notices; the project license does not replace or relicense them.
7
+ When redistributing dependencies, preserve their LICENSE/NOTICE files and those
8
+ of their transitive dependencies. This document also identifies conceptual
9
+ references separately from copied or adapted material.
10
+
11
+ ## Artwork adapted from oh-my-pi
12
+
13
+ - Source: [README hero](https://github.com/can1357/oh-my-pi/blob/c308970263ae13744ea15ab67302e3dac840e266/assets/hero.png)
14
+ and [icon.svg](https://github.com/can1357/oh-my-pi/blob/c308970263ae13744ea15ab67302e3dac840e266/assets/icon.svg).
15
+ - `assets/superagent-mascot.webp` was generated with `gpt-image-2` using the hero
16
+ as a reference, retaining its pi silhouette and pink/purple palette while adding
17
+ a visor, eyes, and short cape. The icon's plug motif became a small orange
18
+ ornament. This replaced the former connected-node SVG logo.
19
+ - `assets/superagent-avatar.jpg` is a white-background JPEG conversion of that
20
+ mascot, made with `sips -s format jpeg` at the original dimensions.
21
+ - This is an independent project's adapted logo, not an official upstream product
22
+ or endorsement. The upstream MIT license and copyright notices are reproduced
23
+ in the OMP section below and apply to the source artwork.
24
+
25
+ ## ompbot: adapted SQLite ledger patterns
26
+
27
+ - Source: [gimso2x/ompbot](https://github.com/gimso2x/ompbot/tree/ddd0f854e8e8d395b7ed43104ec541f909a52ad4),
28
+ revision `ddd0f854e8e8d395b7ed43104ec541f909a52ad4`.
29
+ - Original files: `src/store/db.ts`, `src/lanes/manager.ts`.
30
+ - Adapted in `src/store.ts`, whose header also retains the full MIT notice.
31
+ - Original [LICENSE](https://github.com/gimso2x/ompbot/blob/ddd0f854e8e8d395b7ed43104ec541f909a52ad4/LICENSE):
32
+
33
+ ```text
34
+ MIT License
35
+
36
+ Copyright (c) 2026 ompbot contributors
37
+
38
+ Permission is hereby granted, free of charge, to any person obtaining a copy
39
+ of this software and associated documentation files (the "Software"), to deal
40
+ in the Software without restriction, including without limitation the rights
41
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
42
+ copies of the Software, and to permit persons to whom the Software is
43
+ furnished to do so, subject to the following conditions:
44
+
45
+ The above copyright notice and this permission notice shall be included in all
46
+ copies or substantial portions of the Software.
47
+
48
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
49
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
50
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
51
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
52
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
53
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
54
+ SOFTWARE.
55
+ ```
56
+
57
+ ## Discord transport
58
+
59
+ - The optional voice link uses [`@discordjs/voice` 0.19.2](https://www.npmjs.com/package/@discordjs/voice/v/0.19.2)
60
+ (Apache-2.0), its locked DAVE implementation [`@snazzah/davey` 0.1.12](https://github.com/Snazzah/davey),
61
+ [`opusscript` 0.0.8](https://github.com/abalabahaha/opusscript) (MIT bindings for libopus),
62
+ and [`@noble/ciphers` 2.4.0](https://github.com/paulmillr/noble-ciphers) (MIT) for XChaCha20 transport encryption.
63
+ These packages are installed as dependencies, not vendored. Their licenses and included codec notices remain applicable.
64
+ - For subscription voice, we compared the independent billing/transport paths in
65
+ [TheSmokeDev/hermes-talk `f19bc975`](https://github.com/TheSmokeDev/hermes-talk/blob/f19bc975d3f5ea1bfb533c42966cec2fca7f7678/talk_live_realtime.py)
66
+ and the WebRTC media, server-side event handling and retention caveats in
67
+ [dmmeteo/codex-voice `956d6b29`](https://github.com/dmmeteo/codex-voice/blob/956d6b299f13b02a7ad036a619568e1740a2ee67/docs/voice.md#test-subscription-gpt-live).
68
+ The [Hermes Talk MIT notice](https://github.com/TheSmokeDev/hermes-talk/blob/f19bc975d3f5ea1bfb533c42966cec2fca7f7678/LICENSE)
69
+ credits `Copyright (c) 2026 SmokeDev`; the [codex-voice MIT notice](https://github.com/dmmeteo/codex-voice/blob/956d6b299f13b02a7ad036a619568e1740a2ee67/LICENSE-MIT)
70
+ credits `Copyright (c) 2026 codex-asr contributors`. Both use the MIT permission notice reproduced above.
71
+ Neither project grants a subscription entitlement. Discord routing, source-bound confirmation and HEAD delivery remain this project's responsibilities.
72
+ - Gateway/REST and component support use the
73
+ [discord.js](https://github.com/discordjs/discord.js) dependency, not a copied
74
+ client. The declared range is `^14.25.1`; `bun.lock` records the resolved version.
75
+ The inspected installed version, `14.28.1`, is **Apache-2.0, not MIT**.
76
+ - The full license is in `node_modules/discord.js/LICENSE` and the
77
+ [versioned upstream LICENSE](https://github.com/discordjs/discord.js/blob/14.28.1/packages/discord.js/LICENSE).
78
+ It includes `Copyright 2021 Noel Buechler` and `Copyright 2015 Amish Shah`.
79
+ Distributions containing the package must include its Apache-2.0 license and
80
+ applicable notices; the project MIT license does not replace these terms.
81
+ - `src/discord.ts` independently implements behavior compared with
82
+ [ompbot `4d2eb28d0bf66644892dc0fc333580d0eb7e7780`](https://github.com/gimso2x/ompbot/tree/4d2eb28d0bf66644892dc0fc333580d0eb7e7780),
83
+ `src/discord/{adapter,attachments,channel,transport}.ts`. That revision is MIT;
84
+ those files were not copied.
85
+ - `src/setup-profiles.ts` uses public `REST.get/patch` and `Routes.user` APIs from
86
+ `14.28.1`. The [Modify Current User](https://docs.discord.com/developers/resources/user#modify-current-user)
87
+ image-data upload and User response contracts were checked on 2026-11-15.
88
+ No external avatar implementation was copied.
89
+ - No unlicensed poke code or SUL-covered Dori code was imported. Referencing
90
+ operational concepts does not relicense code or grant permission to copy it.
91
+
92
+ ## Operational skills: conceptual references, independently written
93
+
94
+ `skills/head/` and `skills/lane/` were written for this repository's design and
95
+ current OMP tool/session contracts, not copied from Dori skill text or scripts.
96
+
97
+ - Reference: [vntrevx/omp-dori `3b5487df12540cdd428ebcf7455375d72921e2dc`](https://github.com/vntrevx/omp-dori/tree/3b5487df12540cdd428ebcf7455375d72921e2dc),
98
+ reviewed on 2026-11-13.
99
+ - Reviewed: `skills/dori-mode/SKILL.md`, `prompts/lead.md`,
100
+ `prompts/lane-footer.md`, `skills/dori-mode/references/sessions.md`, and
101
+ `skills/dori-mode/references/done-protocol.md`.
102
+ - Concepts: explicit handoff/completion conditions, checking reported facts and
103
+ interrupted external effects, and distinguishing a worker's completion claim
104
+ from verified closure.
105
+ - Not adopted: `dori`/`herdr`/`hc` commands, separate state/supervision registries,
106
+ a resident duty LLM, mandatory delegation, or elapsed-time-based automatic
107
+ approval, closure, or worktree deletion.
108
+ - The referenced upstream-derived material is governed by its
109
+ [SUL and NOTICE](https://github.com/vntrevx/omp-dori/blob/3b5487df12540cdd428ebcf7455375d72921e2dc/NOTICE).
110
+ `LICENSE.omp-dori` is not treated as an MIT grant for that entire repository.
111
+
112
+ The on-demand HEAD references and parallel-work guidance also use conceptual
113
+ comparisons with [original dori-superagent `78c863a`](https://github.com/sisyphuslabs/dori-superagent/tree/78c863a9b0c4c03fd7ef3e679e4dcf44a86d4fbf)
114
+ (role contract, sessions, and verifiable completion) and
115
+ [Cataly `9b380aa`](https://github.com/vntrevx/Cataly/tree/9b380aa0f454fed73b00d22ac6666d2e4de56ef0)
116
+ (per-resource sequencing in `docs/locks.md` and `src/lock.ts`). No prompt or code
117
+ was copied, and neither a shared lock service nor Cataly's patched OMP runtime
118
+ was imported. This project continues to use stock OMP and native skill discovery.
119
+
120
+ ### Dori pull-request comparisons: independent implementation
121
+
122
+ - The opt-in Discord voice assistant is conceptually based on
123
+ [Dori PR #86](https://github.com/vntrevx/omp-dori/pull/86), feature commit
124
+ `d2a5b3ac3f168650190a03167c86b20afe52b5b7`, reviewed at
125
+ `c136c9e7e78a54629b63c5093ac7b4b9c1ad65a0`. The Gateway integration,
126
+ voice link, provider client and written handoff are independently implemented;
127
+ no Dori source, prompts or tests were imported.
128
+
129
+ - Snapshot: [vntrevx/omp-dori `dc7402efce8adc87aeac808a1b1f50100f9f53d9`](https://github.com/vntrevx/omp-dori/tree/dc7402efce8adc87aeac808a1b1f50100f9f53d9).
130
+ - Compared Git environment isolation in [#9](https://github.com/vntrevx/omp-dori/pull/9),
131
+ reply/voice context in [#32/#41](https://github.com/vntrevx/omp-dori/pull/41), and
132
+ native prompt compatibility regressions in
133
+ [#8/#27](https://github.com/vntrevx/omp-dori/pull/27) and
134
+ [#31](https://github.com/vntrevx/omp-dori/pull/31).
135
+ - Also compared evidence-based progress, structured waiting, and visual
136
+ preservation concepts in [#45](https://github.com/vntrevx/omp-dori/pull/45) and
137
+ [#46](https://github.com/vntrevx/omp-dori/pull/46).
138
+ - Implemented independently using existing SQLite/Gateway contracts, native custom
139
+ journals, tool results, lanes, progress receipts, discord.js/grammY APIs, and the
140
+ OMP renderer/ExtensionRunner. No Dori code, skills, prompts, tests,
141
+ supervisor, separate state registry, or timers were copied; its SUL notices are
142
+ not reinterpreted.
143
+
144
+ ### Discord forum and thread management
145
+
146
+ - Conceptual reference: [Dori #40](https://github.com/vntrevx/omp-dori/pull/40),
147
+ feature commit `25197919ea82abcd8601950f67869306a829639f`, inspected at
148
+ [revision `dba30db8faa3c76c4dad15e239f3a56046027ca4`](https://github.com/vntrevx/omp-dori/tree/dba30db8faa3c76c4dad15e239f3a56046027ca4).
149
+ - Independently implemented exact forum-tag selection and thread rename/retag/
150
+ archive/reopen using the installed discord.js API and existing head/Gateway
151
+ authorization and effect receipts. No Dori source, prompts, or tests were copied.
152
+ - Management is limited to registered Discord guild threads. It does not import
153
+ Dori's alternate intake, command launcher, transcription, or automatic cleanup.
154
+
155
+ ### PR follow-up observation and Discord channel context
156
+
157
+ - Conceptual references: [Dori #70](https://github.com/vntrevx/omp-dori/pull/70)
158
+ at `2d773ad0b5824d24415ddad52bc78e950833088c` and
159
+ [Dori #69](https://github.com/vntrevx/omp-dori/pull/69)
160
+ at `2c1cbd66e9410885b053006c21aedad60293dcab`.
161
+ - Independently implemented with existing SQLite admission, managed HEAD tools,
162
+ discord.js channel metadata, and the public
163
+ [GitHub CLI `gh api`](https://cli.github.com/manual/gh_api) GET/pagination interface.
164
+ No Dori source, tests, prompt text, JSONL registry, or monitor framework was copied.
165
+ - GitHub observation uses the operator's separately installed CLI/authentication;
166
+ it does not bundle GitHub CLI or establish live-account/production verification.
167
+ Channel metadata and PR text are context, never instruction or authorization.
168
+
169
+ ### Discord reply references and tracked owner decisions
170
+
171
+ - Conceptual references: [Dori #68](https://github.com/vntrevx/omp-dori/pull/68)
172
+ at `f7072950ad6744b4756f69209e7bd7a19cd720f0` and
173
+ [Dori #71](https://github.com/vntrevx/omp-dori/pull/71)
174
+ at `8a777dc22f667eb4044b9f322f7677c770496414`.
175
+ - Independently implemented through the existing SQLite outbox and approval
176
+ transactions, discord.js reply references, and the public OMP
177
+ `ExtensionUIContext.askDialog` / `set_ask_dialog`. No Dori source, prompt,
178
+ tests, question transport, registry, or reply-splitting engine was copied.
179
+ - Owner answers remain bound to original authenticated native cards. The ledger
180
+ is coordination metadata, not a transcript copy, tool-permission approval,
181
+ automatic lane resumer, or a second messaging engine.
182
+
183
+ ## Telegram transport: grammY
184
+
185
+ - API client: [`grammy` 1.46.0](https://github.com/grammyjs/grammY/tree/055a5a440f04d0b9fd5fd75a6d14dac4c2b83553),
186
+ source revision `055a5a440f04d0b9fd5fd75a6d14dac4c2b83553`.
187
+ Installed metadata is in `node_modules/grammy/package.json`; dependency pins
188
+ are in `bun.lock`.
189
+ - `src/telegram.ts` and `src/setup-profiles.ts` use `Api` and `InputFile`, not a
190
+ copied Telegram bot or SUL implementation. Version `1.46.0`'s
191
+ `Api.setMyProfilePhoto`, the [official method](https://core.telegram.org/bots/api#setmyprofilephoto),
192
+ and [JPEG multipart contract](https://core.telegram.org/bots/api#inputprofilephotostatic)
193
+ were checked on 2026-11-15. No separate raw Bot API client or image-conversion
194
+ dependency was added.
195
+ - Documentation: [grammY API](https://grammy.dev/guide/api),
196
+ [Telegram Bot API](https://core.telegram.org/bots/api).
197
+ - SDK cancellation uses [`abort-controller` 3.0.0](https://github.com/mysticatea/abort-controller),
198
+ the signal implementation required by grammY's Node API. Its MIT license,
199
+ Copyright (c) 2017 Toru Nagashima, is retained in
200
+ `node_modules/abort-controller/LICENSE`; preserve it when redistributing the dependency.
201
+ - `node_modules/grammy/LICENSE` contains this MIT license. Preserve it when
202
+ redistributing the package:
203
+
204
+ ```text
205
+ MIT License
206
+
207
+ Copyright (c) 2021-2024 KnorpelSenf
208
+
209
+ Permission is hereby granted, free of charge, to any person obtaining a copy
210
+ of this software and associated documentation files (the "Software"), to deal
211
+ in the Software without restriction, including without limitation the rights
212
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
213
+ copies of the Software, and to permit persons to whom the Software is
214
+ furnished to do so, subject to the following conditions:
215
+
216
+ The above copyright notice and this permission notice shall be included in all
217
+ copies or substantial portions of the Software.
218
+
219
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
220
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
221
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
222
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
223
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
224
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
225
+ SOFTWARE.
226
+ ```
227
+
228
+ ## Slack transport: official Node Slack SDK
229
+
230
+ | Package | Installed version | Source revision | License |
231
+ | --- | --- | --- | --- |
232
+ | `@slack/web-api` | `8.3.0` | [`d8df118652c5749e56e00bb4f614b344993a24e4`](https://github.com/slackapi/node-slack-sdk/tree/d8df118652c5749e56e00bb4f614b344993a24e4) | MIT |
233
+ | `@slack/socket-mode` | `3.2.0` | [`5e8d3f08c16144a2d700c38389bf94cbcc4d5f0f`](https://github.com/slackapi/node-slack-sdk/tree/5e8d3f08c16144a2d700c38389bf94cbcc4d5f0f) | MIT |
234
+
235
+ - `src/slack.ts` uses the official `WebClient` and `SocketModeClient`.
236
+ Transport, routing, and approval coordination are implemented by this
237
+ repository's adapter, not copied from another Slack bot or SUL-covered bot.
238
+ - Documentation: [Web API SDK](https://docs.slack.dev/tools/node-slack-sdk/web-api/),
239
+ [Socket Mode SDK](https://docs.slack.dev/tools/node-slack-sdk/socket-mode/),
240
+ [Socket Mode setup](https://docs.slack.dev/apis/events-api/using-socket-mode),
241
+ [starting external uploads](https://docs.slack.dev/reference/methods/files.getUploadURLExternal/),
242
+ and [completing uploads](https://docs.slack.dev/reference/methods/files.completeUploadExternal/).
243
+ - Both installed `node_modules/@slack/{web-api,socket-mode}/LICENSE` files contain
244
+ the following identical MIT license and copyright notice. Preserve it when
245
+ redistributing either package:
246
+
247
+ ```text
248
+ MIT License
249
+
250
+ Copyright (c) 2014- Slack Technologies, LLC
251
+
252
+ Permission is hereby granted, free of charge, to any person obtaining
253
+ a copy of this software and associated documentation files (the
254
+ "Software"), to deal in the Software without restriction, including
255
+ without limitation the rights to use, copy, modify, merge, publish,
256
+ distribute, sublicense, and/or sell copies of the Software, and to
257
+ permit persons to whom the Software is furnished to do so, subject to
258
+ the following conditions:
259
+
260
+ The above copyright notice and this permission notice shall be
261
+ included in all copies or substantial portions of the Software.
262
+
263
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
264
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
265
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
266
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
267
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
268
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
269
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
270
+ ```
271
+
272
+ ## Hermes setup: UX reference, independent implementation
273
+
274
+ - Reference: [`NousResearch/hermes-agent` `4b40ffb0ad6d7da5d3260f5e499e1691508dd4d5`](https://github.com/NousResearch/hermes-agent/tree/4b40ffb0ad6d7da5d3260f5e499e1691508dd4d5).
275
+ - Reviewed [`scripts/install.sh`](https://github.com/NousResearch/hermes-agent/blob/4b40ffb0ad6d7da5d3260f5e499e1691508dd4d5/scripts/install.sh)
276
+ for `/dev/tty` setup handoff and `0600` environment files,
277
+ [`hermes_cli/secret_prompt.py`](https://github.com/NousResearch/hermes-agent/blob/4b40ffb0ad6d7da5d3260f5e499e1691508dd4d5/hermes_cli/secret_prompt.py)
278
+ for secret input and terminal restoration, and
279
+ [`hermes_cli/setup_platforms.py`](https://github.com/NousResearch/hermes-agent/blob/4b40ffb0ad6d7da5d3260f5e499e1691508dd4d5/hermes_cli/setup_platforms.py)
280
+ for platform credential prompts and preservation of existing configuration.
281
+ - `scripts/setup.sh` and CLI setup/credential loading were independently written
282
+ for this project's OMP/Gateway contracts using Bash builtins, Node's standard
283
+ `readline`/dotenv parser, and existing configuration validation. No Python or
284
+ installer code was copied, and Hermes is not a runtime dependency.
285
+ - Scope is Unix terminals, Bun, and a separately installed unmodified OMP.
286
+ Hermes automatic bot creation, login, Gateway service installation/restart,
287
+ and allow-all policies were not adopted.
288
+
289
+ ## Hermes Gateway: login-autostart UX reference, independent implementation
290
+
291
+ - Reference: [`NousResearch/hermes-agent` `fa1aab3187fa9951fa7c3620e0aa6f922d6636f6`](https://github.com/NousResearch/hermes-agent/tree/fa1aab3187fa9951fa7c3620e0aa6f922d6636f6).
292
+ - Reviewed install/uninstall dispatch in
293
+ [`hermes_cli/gateway.py`](https://github.com/NousResearch/hermes-agent/blob/fa1aab3187fa9951fa7c3620e0aa6f922d6636f6/hermes_cli/gateway.py)
294
+ and per-instance LaunchAgents, `ProgramArguments`, `RunAtLoad`, no-start
295
+ installation, and ownership checks in
296
+ [`hermes_cli/gateway_launchd.py`](https://github.com/NousResearch/hermes-agent/blob/fa1aab3187fa9951fa7c3620e0aa6f922d6636f6/hermes_cli/gateway_launchd.py).
297
+ - Upstream license: [MIT, Copyright (c) 2025 Nous Research](https://github.com/NousResearch/hermes-agent/blob/fa1aab3187fa9951fa7c3620e0aa6f922d6636f6/LICENSE).
298
+ `src/autostart.ts` and CLI install/uninstall/status were independently
299
+ implemented with Node/Bun APIs and macOS `launchctl`/`plutil`, not copied Python.
300
+ - Registration runs the existing `start` once at macOS login. It does not import
301
+ Hermes KeepAlive supervision, forced process replacement, detached fallback,
302
+ sudo/system services, or a Windows backend. Installation does not start the bot;
303
+ prepare/doctor/setup do not register it automatically.
304
+ - Assumptions: the current account's macOS GUI login, accessible absolute
305
+ Bun/repository/config paths, private sibling credentials, and separately installed
306
+ OMP. Registration is distinct from Gateway readiness and does not establish
307
+ successful reboot or operational-account round-trip verification.
308
+
309
+ ## Managed ULW: separately licensed package and bundled skills
310
+
311
+ - Source: [dbc-hbin/omp-ulw](https://github.com/dbc-hbin/omp-ulw);
312
+ management configuration: `upstream/ulw.json`. Packages are prepared separately
313
+ under `.upstream/ulw/revisions/<revision>/package`; `active.json` identifies the
314
+ selected revision. The inspected snapshot was
315
+ [`1625e0de2e4807f1cfdac19e6b54578af1329951`](https://github.com/dbc-hbin/omp-ulw/tree/1625e0de2e4807f1cfdac19e6b54578af1329951).
316
+ - This project's MIT license does not grant a license to that separate package or
317
+ override its per-file licenses and attribution. The inspected snapshot has no
318
+ root LICENSE or `package.json` license declaration; no blanket package license
319
+ is asserted here.
320
+ - Bundled `skills/{browser,coding-agent-sessions,ultimate-browsing}/LICENSE.md`
321
+ retain the Sustainable Use License. `skills/computer-use/LICENSE.md` retains
322
+ SUL terms for OMO-derived portions and MIT terms for OMP-derived guidance.
323
+ These are actual bundled materials, not merely conceptual references.
324
+ - Other retained notices include `skills/frontend/LICENSE-Apache-2.0.txt`,
325
+ the MIT license in `skills/frontend/references/designpowers/vendor/LICENSE`
326
+ (`Copyright (c) 2026 MC Dean`), and the MIT license in
327
+ `skills/programming/scripts/typescript/oxc/lint/oxlint-plugin/LICENSE`
328
+ (`Copyright (c) 2026 T3 Tools Inc.`).
329
+ - Consult the selected package's license and attribution files before using or
330
+ redistributing it. Preserve those files and applicable modification notices;
331
+ the Dori non-copy statements above do not imply that ULW's bundled skills are MIT.
332
+
333
+ ## OMP: installed runtime and published SDK
334
+
335
+ - SDK/API baseline: [can1357/oh-my-pi v19.0.0](https://github.com/can1357/oh-my-pi/tree/57771ae562b9345e0579bceb2d68d585e3e6927e).
336
+ - The operator installs OMP separately. This repository does not patch, build,
337
+ or redistribute an OMP executable. Local native tests discover that installed
338
+ runtime by default. CI verifies OMP release binaries against their checksum
339
+ manifests; PR and release runs cover OMP 18.22.2 and the SDK-matched release,
340
+ and also check OMP 18.20.3 on Ubuntu.
341
+ - `src/host-broker-services.ts` implements a read-only subset of the
342
+ [stock OMP 18.22.2 launch broker protocol](https://github.com/can1357/oh-my-pi/tree/e1ae2cc998efd1ca151b46ebefc0e0dab6c23c63/packages/coding-agent/src/launch).
343
+ It uses the published native IPC and lock primitives without copying the broker
344
+ or starting one to observe it.
345
+ - Published `@oh-my-pi/pi-coding-agent`, `pi-ai`, `pi-catalog`, `pi-tui`, and `pi-utils`
346
+ dependencies are pinned in `package.json`; `bun.lock` records resolved packages
347
+ and integrity data. Public SDK interfaces support this project's managed
348
+ extensions and transport adapter. Same-process native TUI attach is not claimed.
349
+ - `pi-tui` supplies native thinking-level helpers and the keyword matcher used by
350
+ tests; no TUI implementation is copied into this project.
351
+ - The live state projection in `src/host-extension.ts` adapts the `get_state`
352
+ object from [`rpc-mode.ts` in v18.22.0](https://github.com/can1357/oh-my-pi/blob/3e8cff3b7ce19a805c11a26a6dd1703066435851/packages/coding-agent/src/modes/rpc/rpc-mode.ts).
353
+ It reads the actual session through public getters so status remains observable
354
+ during a serialized command. It conservatively reports unsettled while that
355
+ command is pending; idle disposal still requires the stock RPC settlement check.
356
+ The async-work flag follows the running CLI's public `wakeSources` getter,
357
+ or `hasPendingAsyncWork()` on older CLIs that still use it for RPC. Separate
358
+ owned-resource checks remain intact.
359
+ The upstream copyright and MIT terms below apply to this adapted projection.
360
+ - The published SDK and the source artwork identified above retain the following
361
+ MIT notice, also present in the installed package's `LICENSE` and the
362
+ [upstream LICENSE](https://github.com/can1357/oh-my-pi/blob/3e8cff3b7ce19a805c11a26a6dd1703066435851/LICENSE):
363
+
364
+ ```text
365
+ MIT License
366
+
367
+ Copyright (c) 2025 Mario Zechner
368
+ Copyright (c) 2025-2026 Can Bölük
369
+ Copyright (c) 2026 Stencil Labs, Inc.
370
+
371
+ Permission is hereby granted, free of charge, to any person obtaining a copy
372
+ of this software and associated documentation files (the "Software"), to deal
373
+ in the Software without restriction, including without limitation the rights
374
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
375
+ copies of the Software, and to permit persons to whom the Software is
376
+ furnished to do so, subject to the following conditions:
377
+
378
+ The above copyright notice and this permission notice shall be included in all
379
+ copies or substantial portions of the Software.
380
+
381
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
382
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
383
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
384
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
385
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
386
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
387
+ SOFTWARE.
388
+ ```
@@ -0,0 +1,24 @@
1
+ flowchart LR
2
+ M["Messengers<br/>Discord · Telegram · Slack"]
3
+ G["Gateway<br/>Always-on service<br/>Admit · route · reply"]
4
+ H["OMP Head<br/>Agent session<br/>Decides · works<br/>Head-only lane control"]
5
+ A["Lane A<br/>Independent session<br/>repo / topic A"]
6
+ B["Lane B<br/>Independent session<br/>repo / topic B"]
7
+ S["Shared board<br/>Information only · not control"]
8
+
9
+ M --> G
10
+ G --> H
11
+ H -->|Head-only control| A
12
+ H -->|Head-only control| B
13
+ A -->|Results| H
14
+ B -->|Results| H
15
+ H --> G
16
+ G --> M
17
+ H -.- S
18
+ A -.- S
19
+ B -.- S
20
+
21
+ classDef head fill:#faf5ff,stroke:#9742c5,color:#752ba0,stroke-width:2px
22
+ classDef board fill:#f3f5f9,stroke:#8490a3,color:#222b3d
23
+ class H head
24
+ class S board
@@ -0,0 +1,126 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="960" height="410" viewBox="0 0 960 410" role="img" aria-labelledby="architecture-title architecture-desc">
2
+ <title id="architecture-title">One always-on service, one OMP head, independent lane sessions</title>
3
+ <desc id="architecture-desc">Discord, Telegram, and Slack connect to the always-on Gateway service. All input passes to the OMP Head agent session, which decides and works directly or controls independent repository or topic sessions in Lane A and Lane B. Only the head controls lanes. Lane results return through the head and Gateway to the messengers. The head and lanes share an informational board; dashed connections are not a command bus.</desc>
4
+ <style>
5
+ :root {
6
+ color-scheme: light dark;
7
+ --ink: #222b3d;
8
+ --muted: #536176;
9
+ --surface: #ffffff;
10
+ --border: #9aa6b8;
11
+ --edge: #66758c;
12
+ --board: #f3f5f9;
13
+ --info: #8490a3;
14
+ --head-surface: #faf5ff;
15
+ --head-border: #9742c5;
16
+ --head-ink: #752ba0;
17
+ --magenta: #ce3f9f;
18
+ --violet: #9350d0;
19
+ --cyan: #1596ad;
20
+ }
21
+ @media (prefers-color-scheme: dark) {
22
+ :root {
23
+ --ink: #edf1fa;
24
+ --muted: #bac5d7;
25
+ --surface: #171d29;
26
+ --border: #63718a;
27
+ --edge: #a5b2c9;
28
+ --board: #202838;
29
+ --info: #8797b1;
30
+ --head-surface: #2b1e3b;
31
+ --head-border: #cd8bf0;
32
+ --head-ink: #e3b4ff;
33
+ --magenta: #f077c7;
34
+ --violet: #bb8cf3;
35
+ --cyan: #5ccfdf;
36
+ }
37
+ }
38
+ text { fill: var(--ink); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
39
+ .heading { font-size: 24px; font-weight: 650; }
40
+ .node { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
41
+ .node-title { font-size: 22px; font-weight: 650; text-anchor: middle; }
42
+ .detail { fill: var(--muted); font-size: 16px; text-anchor: middle; }
43
+ .flow { fill: none; stroke: var(--edge); stroke-width: 1.8; stroke-linejoin: round; marker-end: url(#flow-arrow); }
44
+ .control { stroke: var(--head-border); marker-end: url(#control-arrow); }
45
+ .information { fill: none; stroke: var(--info); stroke-width: 1.6; stroke-dasharray: 5 5; stroke-linecap: round; stroke-linejoin: round; }
46
+ .head { fill: var(--head-surface); stroke: var(--head-border); stroke-width: 2; }
47
+ .head-label { fill: var(--head-ink); }
48
+ .caption { fill: var(--muted); font-size: 16px; }
49
+ .board { fill: var(--board); stroke: var(--info); stroke-width: 1.2; }
50
+ </style>
51
+ <defs>
52
+ <marker id="flow-arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto" markerUnits="userSpaceOnUse">
53
+ <path d="M0 0 10 5 0 10Z" fill="var(--edge)"/>
54
+ </marker>
55
+ <marker id="control-arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto" markerUnits="userSpaceOnUse">
56
+ <path d="M0 0 10 5 0 10Z" fill="var(--head-border)"/>
57
+ </marker>
58
+ </defs>
59
+
60
+ <text class="heading" x="24" y="34">One service. One head. Independent lanes.</text>
61
+
62
+ <!-- Connections precede nodes so every arrow terminates at a clean border. -->
63
+ <g aria-hidden="true">
64
+ <path class="flow" d="M184 150H224"/>
65
+ <path class="flow" d="M398 150H446"/>
66
+ <path class="flow" d="M446 222H398"/>
67
+ <path class="flow" d="M224 222H184"/>
68
+ <path class="flow control" d="M638 144H684V102H754"/>
69
+ <path class="flow" d="M754 142H714V180H638"/>
70
+ <path class="flow control" d="M638 214H714V246H754"/>
71
+ <path class="flow" d="M754 286H684V238H638"/>
72
+ <path class="information" d="M542 254V350"/>
73
+ <path class="information" d="M936 102H950V372H936"/>
74
+ <path class="information" d="M846 318V350"/>
75
+ </g>
76
+
77
+ <g>
78
+ <rect class="node" x="24" y="112" width="160" height="142" rx="14"/>
79
+ <text class="node-title" x="104" y="145">Messengers</text>
80
+ <text class="detail" x="104" y="177">Discord</text>
81
+ <text class="detail" x="104" y="201">Telegram</text>
82
+ <text class="detail" x="104" y="225">Slack</text>
83
+ </g>
84
+
85
+ <g>
86
+ <rect class="node" x="224" y="112" width="174" height="142" rx="14"/>
87
+ <text class="node-title" x="311" y="151">Gateway</text>
88
+ <text class="detail" x="311" y="181">always-on service</text>
89
+ <text class="detail" x="311" y="211">admit · route · reply</text>
90
+ </g>
91
+
92
+ <g>
93
+ <rect class="head" x="446" y="112" width="192" height="142" rx="14"/>
94
+ <path d="M470 113H514" stroke="var(--magenta)" stroke-width="3"/>
95
+ <path d="M520 113H564" stroke="var(--violet)" stroke-width="3"/>
96
+ <path d="M570 113H614" stroke="var(--cyan)" stroke-width="3"/>
97
+ <text class="node-title head-label" x="542" y="147">OMP Head</text>
98
+ <text class="detail" x="542" y="175">agent session</text>
99
+ <text class="detail" x="542" y="202">decides · works</text>
100
+ <text class="detail head-label" x="542" y="230">Head-only lane control</text>
101
+ </g>
102
+
103
+ <g>
104
+ <rect class="node" x="754" y="60" width="182" height="108" rx="14"/>
105
+ <text class="node-title" x="845" y="91">Lane A</text>
106
+ <text class="detail" x="845" y="118">independent session</text>
107
+ <text class="detail" x="845" y="145">repo / topic A</text>
108
+ </g>
109
+ <g>
110
+ <rect class="node" x="754" y="210" width="182" height="108" rx="14"/>
111
+ <text class="node-title" x="845" y="241">Lane B</text>
112
+ <text class="detail" x="845" y="268">independent session</text>
113
+ <text class="detail" x="845" y="295">repo / topic B</text>
114
+ </g>
115
+
116
+ <text class="caption" x="249" y="284">Replies via head</text>
117
+ <text class="caption" x="654" y="199">results</text>
118
+ <text class="caption" x="695" y="275">results</text>
119
+ <text class="caption" x="553" y="305">status / context</text>
120
+
121
+ <g>
122
+ <rect class="board" x="446" y="350" width="490" height="44" rx="12"/>
123
+ <text x="466" y="378" font-size="18" font-weight="650">Shared board</text>
124
+ <text class="caption" x="609" y="378">information only · not control</text>
125
+ </g>
126
+ </svg>
Binary file
Binary file
@@ -0,0 +1,26 @@
1
+ {
2
+ "command": ["omp"],
3
+ "stateDir": "/Users/REPLACE_ME/.omp-sa",
4
+ "headCwd": "/absolute/path/to/workspace",
5
+ "maxHosts": 4,
6
+ "maxSubagents": 8,
7
+ "idleMs": 300000,
8
+ "discord": {
9
+ "tokenEnv": "DISCORD_BOT_TOKEN",
10
+ "ownerId": "REPLACE_WITH_OWNER_USER_ID",
11
+ "allowedGuildIds": ["REPLACE_WITH_GUILD_ID"],
12
+ "allowedChannelIds": ["REPLACE_WITH_PARENT_CHANNEL_ID"]
13
+ },
14
+ "telegram": {
15
+ "tokenEnv": "TELEGRAM_BOT_TOKEN",
16
+ "ownerId": "REPLACE_WITH_POSITIVE_TELEGRAM_OWNER_ID",
17
+ "allowedChatIds": ["-REPLACE_WITH_GROUP_CHAT_ID"]
18
+ },
19
+ "slack": {
20
+ "botTokenEnv": "SLACK_BOT_TOKEN",
21
+ "appTokenEnv": "SLACK_APP_TOKEN",
22
+ "ownerId": "REPLACE_WITH_SLACK_OWNER_ID",
23
+ "teamId": "REPLACE_WITH_SLACK_TEAM_ID",
24
+ "allowedChannelIds": ["REPLACE_WITH_SLACK_CHANNEL_ID"]
25
+ }
26
+ }