omp-superagent 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 (76) hide show
  1. package/DESIGN.md +1361 -0
  2. package/LICENSE +21 -0
  3. package/README.ko.md +184 -0
  4. package/README.md +205 -2
  5. package/THIRD_PARTY_NOTICES.md +313 -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 +1030 -0
  12. package/docs/releases/0.1.0.md +222 -0
  13. package/docs/releases/0.1.1.md +60 -0
  14. package/package.json +59 -4
  15. package/scripts/check-omp.ts +4 -0
  16. package/scripts/ci.ts +28 -0
  17. package/scripts/prepare-ulw.ts +18 -0
  18. package/scripts/release.ts +50 -0
  19. package/scripts/setup.sh +25 -0
  20. package/skills/head/SKILL.md +259 -0
  21. package/skills/head/references/model-selection.md +263 -0
  22. package/skills/head/references/routing.md +356 -0
  23. package/skills/head/references/supervision.md +312 -0
  24. package/skills/lane/SKILL.md +188 -0
  25. package/skills/lane/references/workflow.md +349 -0
  26. package/src/autostart.ts +295 -0
  27. package/src/board-extension.ts +217 -0
  28. package/src/board.ts +396 -0
  29. package/src/cli.ts +167 -0
  30. package/src/config.ts +191 -0
  31. package/src/contracts.ts +317 -0
  32. package/src/credentials.ts +172 -0
  33. package/src/delivery.ts +7 -0
  34. package/src/dialog.ts +73 -0
  35. package/src/discord-command-registration.ts +201 -0
  36. package/src/discord-commands.ts +29 -0
  37. package/src/discord-markdown.ts +172 -0
  38. package/src/discord.ts +745 -0
  39. package/src/extension.ts +289 -0
  40. package/src/gateway-client.ts +222 -0
  41. package/src/gateway-protocol.ts +85 -0
  42. package/src/gateway-restart.ts +151 -0
  43. package/src/gateway-server.ts +392 -0
  44. package/src/gateway-store.ts +237 -0
  45. package/src/gateway.ts +638 -0
  46. package/src/head-recovery.ts +61 -0
  47. package/src/host-extension.ts +449 -0
  48. package/src/host-owner.ts +350 -0
  49. package/src/host-protocol.ts +136 -0
  50. package/src/host.ts +414 -0
  51. package/src/installed-omp.ts +63 -0
  52. package/src/lane-extension.ts +179 -0
  53. package/src/lane-models.ts +75 -0
  54. package/src/lane-report.ts +70 -0
  55. package/src/managed-ulw-probe.ts +172 -0
  56. package/src/managed-ulw.ts +471 -0
  57. package/src/message-order.ts +21 -0
  58. package/src/messenger-commands.ts +16 -0
  59. package/src/messengers.ts +114 -0
  60. package/src/native-presets.ts +282 -0
  61. package/src/native-sessions.ts +32 -0
  62. package/src/native-settings.ts +129 -0
  63. package/src/repository.ts +12 -0
  64. package/src/runtime.ts +3864 -0
  65. package/src/setup-judge.ts +34 -0
  66. package/src/setup-memory.ts +39 -0
  67. package/src/setup-profiles.ts +84 -0
  68. package/src/setup.ts +300 -0
  69. package/src/slack-command-registration.ts +217 -0
  70. package/src/slack-commands.ts +18 -0
  71. package/src/slack.ts +776 -0
  72. package/src/store.ts +806 -0
  73. package/src/telegram-command-registration.ts +155 -0
  74. package/src/telegram.ts +661 -0
  75. package/src/workflow.ts +94 -0
  76. package/upstream/ulw.json +9 -0
@@ -0,0 +1,313 @@
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
+ - Gateway/REST and component support use the
60
+ [discord.js](https://github.com/discordjs/discord.js) dependency, not a copied
61
+ client. The declared range is `^14.25.1`; `bun.lock` records the resolved version.
62
+ The inspected installed version, `14.28.1`, is **Apache-2.0, not MIT**.
63
+ - The full license is in `node_modules/discord.js/LICENSE` and the
64
+ [versioned upstream LICENSE](https://github.com/discordjs/discord.js/blob/14.28.1/packages/discord.js/LICENSE).
65
+ It includes `Copyright 2021 Noel Buechler` and `Copyright 2015 Amish Shah`.
66
+ Distributions containing the package must include its Apache-2.0 license and
67
+ applicable notices; the project MIT license does not replace these terms.
68
+ - `src/discord.ts` independently implements behavior compared with
69
+ [ompbot `4d2eb28d0bf66644892dc0fc333580d0eb7e7780`](https://github.com/gimso2x/ompbot/tree/4d2eb28d0bf66644892dc0fc333580d0eb7e7780),
70
+ `src/discord/{adapter,attachments,channel,transport}.ts`. That revision is MIT;
71
+ those files were not copied.
72
+ - `src/setup-profiles.ts` uses public `REST.get/patch` and `Routes.user` APIs from
73
+ `14.28.1`. The [Modify Current User](https://docs.discord.com/developers/resources/user#modify-current-user)
74
+ image-data upload and User response contracts were checked on 2026-11-15.
75
+ No external avatar implementation was copied.
76
+ - No unlicensed poke code or SUL-covered Dori code was imported. Referencing
77
+ operational concepts does not relicense code or grant permission to copy it.
78
+
79
+ ## Operational skills: conceptual references, independently written
80
+
81
+ `skills/head/` and `skills/lane/` were written for this repository's design and
82
+ current OMP tool/session contracts, not copied from Dori skill text or scripts.
83
+
84
+ - Reference: [vntrevx/omp-dori `3b5487df12540cdd428ebcf7455375d72921e2dc`](https://github.com/vntrevx/omp-dori/tree/3b5487df12540cdd428ebcf7455375d72921e2dc),
85
+ reviewed on 2026-11-13.
86
+ - Reviewed: `skills/dori-mode/SKILL.md`, `prompts/lead.md`,
87
+ `prompts/lane-footer.md`, `skills/dori-mode/references/sessions.md`, and
88
+ `skills/dori-mode/references/done-protocol.md`.
89
+ - Concepts: explicit handoff/completion conditions, checking reported facts and
90
+ interrupted external effects, and distinguishing a worker's completion claim
91
+ from verified closure.
92
+ - Not adopted: `dori`/`herdr`/`hc` commands, separate state/supervision registries,
93
+ a resident duty LLM, mandatory delegation, or elapsed-time-based automatic
94
+ approval, closure, or worktree deletion.
95
+ - The referenced upstream-derived material is governed by its
96
+ [SUL and NOTICE](https://github.com/vntrevx/omp-dori/blob/3b5487df12540cdd428ebcf7455375d72921e2dc/NOTICE).
97
+ `LICENSE.omp-dori` is not treated as an MIT grant for that entire repository.
98
+
99
+ ### Dori pull-request comparisons: independent implementation
100
+
101
+ - Snapshot: [vntrevx/omp-dori `dc7402efce8adc87aeac808a1b1f50100f9f53d9`](https://github.com/vntrevx/omp-dori/tree/dc7402efce8adc87aeac808a1b1f50100f9f53d9).
102
+ - Compared Git environment isolation in [#9](https://github.com/vntrevx/omp-dori/pull/9),
103
+ reply/voice context in [#32/#41](https://github.com/vntrevx/omp-dori/pull/41), and
104
+ native prompt compatibility regressions in
105
+ [#8/#27](https://github.com/vntrevx/omp-dori/pull/27) and
106
+ [#31](https://github.com/vntrevx/omp-dori/pull/31).
107
+ - Also compared evidence-based progress, structured waiting, and visual
108
+ preservation concepts in [#45](https://github.com/vntrevx/omp-dori/pull/45) and
109
+ [#46](https://github.com/vntrevx/omp-dori/pull/46).
110
+ - Implemented independently using existing SQLite/Gateway contracts, native custom
111
+ journals, tool results, lanes, progress receipts, discord.js/grammY APIs, and the
112
+ OMP renderer/ExtensionRunner. No Dori code, skills, prompts, tests,
113
+ supervisor, separate state registry, or timers were copied; its SUL notices are
114
+ not reinterpreted.
115
+
116
+ ## Telegram transport: grammY
117
+
118
+ - API client: [`grammy` 1.46.0](https://github.com/grammyjs/grammY/tree/055a5a440f04d0b9fd5fd75a6d14dac4c2b83553),
119
+ source revision `055a5a440f04d0b9fd5fd75a6d14dac4c2b83553`.
120
+ Installed metadata is in `node_modules/grammy/package.json`; dependency pins
121
+ are in `bun.lock`.
122
+ - `src/telegram.ts` and `src/setup-profiles.ts` use `Api` and `InputFile`, not a
123
+ copied Telegram bot or SUL implementation. Version `1.46.0`'s
124
+ `Api.setMyProfilePhoto`, the [official method](https://core.telegram.org/bots/api#setmyprofilephoto),
125
+ and [JPEG multipart contract](https://core.telegram.org/bots/api#inputprofilephotostatic)
126
+ were checked on 2026-11-15. No separate raw Bot API client or image-conversion
127
+ dependency was added.
128
+ - Documentation: [grammY API](https://grammy.dev/guide/api),
129
+ [Telegram Bot API](https://core.telegram.org/bots/api).
130
+ - SDK cancellation uses [`abort-controller` 3.0.0](https://github.com/mysticatea/abort-controller),
131
+ the signal implementation required by grammY's Node API. Its MIT license,
132
+ Copyright (c) 2017 Toru Nagashima, is retained in
133
+ `node_modules/abort-controller/LICENSE`; preserve it when redistributing the dependency.
134
+ - `node_modules/grammy/LICENSE` contains this MIT license. Preserve it when
135
+ redistributing the package:
136
+
137
+ ```text
138
+ MIT License
139
+
140
+ Copyright (c) 2021-2024 KnorpelSenf
141
+
142
+ Permission is hereby granted, free of charge, to any person obtaining a copy
143
+ of this software and associated documentation files (the "Software"), to deal
144
+ in the Software without restriction, including without limitation the rights
145
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
146
+ copies of the Software, and to permit persons to whom the Software is
147
+ furnished to do so, subject to the following conditions:
148
+
149
+ The above copyright notice and this permission notice shall be included in all
150
+ copies or substantial portions of the Software.
151
+
152
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
153
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
154
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
155
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
156
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
157
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
158
+ SOFTWARE.
159
+ ```
160
+
161
+ ## Slack transport: official Node Slack SDK
162
+
163
+ | Package | Installed version | Source revision | License |
164
+ | --- | --- | --- | --- |
165
+ | `@slack/web-api` | `8.3.0` | [`d8df118652c5749e56e00bb4f614b344993a24e4`](https://github.com/slackapi/node-slack-sdk/tree/d8df118652c5749e56e00bb4f614b344993a24e4) | MIT |
166
+ | `@slack/socket-mode` | `3.2.0` | [`5e8d3f08c16144a2d700c38389bf94cbcc4d5f0f`](https://github.com/slackapi/node-slack-sdk/tree/5e8d3f08c16144a2d700c38389bf94cbcc4d5f0f) | MIT |
167
+
168
+ - `src/slack.ts` uses the official `WebClient` and `SocketModeClient`.
169
+ Transport, routing, and approval coordination are implemented by this
170
+ repository's adapter, not copied from another Slack bot or SUL-covered bot.
171
+ - Documentation: [Web API SDK](https://docs.slack.dev/tools/node-slack-sdk/web-api/),
172
+ [Socket Mode SDK](https://docs.slack.dev/tools/node-slack-sdk/socket-mode/),
173
+ [Socket Mode setup](https://docs.slack.dev/apis/events-api/using-socket-mode),
174
+ [starting external uploads](https://docs.slack.dev/reference/methods/files.getUploadURLExternal/),
175
+ and [completing uploads](https://docs.slack.dev/reference/methods/files.completeUploadExternal/).
176
+ - Both installed `node_modules/@slack/{web-api,socket-mode}/LICENSE` files contain
177
+ the following identical MIT license and copyright notice. Preserve it when
178
+ redistributing either package:
179
+
180
+ ```text
181
+ MIT License
182
+
183
+ Copyright (c) 2014- Slack Technologies, LLC
184
+
185
+ Permission is hereby granted, free of charge, to any person obtaining
186
+ a copy of this software and associated documentation files (the
187
+ "Software"), to deal in the Software without restriction, including
188
+ without limitation the rights to use, copy, modify, merge, publish,
189
+ distribute, sublicense, and/or sell copies of the Software, and to
190
+ permit persons to whom the Software is furnished to do so, subject to
191
+ the following conditions:
192
+
193
+ The above copyright notice and this permission notice shall be
194
+ included in all copies or substantial portions of the Software.
195
+
196
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
197
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
198
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
199
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
200
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
201
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
202
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
203
+ ```
204
+
205
+ ## Hermes setup: UX reference, independent implementation
206
+
207
+ - Reference: [`NousResearch/hermes-agent` `4b40ffb0ad6d7da5d3260f5e499e1691508dd4d5`](https://github.com/NousResearch/hermes-agent/tree/4b40ffb0ad6d7da5d3260f5e499e1691508dd4d5).
208
+ - Reviewed [`scripts/install.sh`](https://github.com/NousResearch/hermes-agent/blob/4b40ffb0ad6d7da5d3260f5e499e1691508dd4d5/scripts/install.sh)
209
+ for `/dev/tty` setup handoff and `0600` environment files,
210
+ [`hermes_cli/secret_prompt.py`](https://github.com/NousResearch/hermes-agent/blob/4b40ffb0ad6d7da5d3260f5e499e1691508dd4d5/hermes_cli/secret_prompt.py)
211
+ for secret input and terminal restoration, and
212
+ [`hermes_cli/setup_platforms.py`](https://github.com/NousResearch/hermes-agent/blob/4b40ffb0ad6d7da5d3260f5e499e1691508dd4d5/hermes_cli/setup_platforms.py)
213
+ for platform credential prompts and preservation of existing configuration.
214
+ - `scripts/setup.sh` and CLI setup/credential loading were independently written
215
+ for this project's OMP/Gateway contracts using Bash builtins, Node's standard
216
+ `readline`/dotenv parser, and existing configuration validation. No Python or
217
+ installer code was copied, and Hermes is not a runtime dependency.
218
+ - Scope is Unix terminals, Bun, and a separately installed unmodified OMP.
219
+ Hermes automatic bot creation, login, Gateway service installation/restart,
220
+ and allow-all policies were not adopted.
221
+
222
+ ## Hermes Gateway: login-autostart UX reference, independent implementation
223
+
224
+ - Reference: [`NousResearch/hermes-agent` `fa1aab3187fa9951fa7c3620e0aa6f922d6636f6`](https://github.com/NousResearch/hermes-agent/tree/fa1aab3187fa9951fa7c3620e0aa6f922d6636f6).
225
+ - Reviewed install/uninstall dispatch in
226
+ [`hermes_cli/gateway.py`](https://github.com/NousResearch/hermes-agent/blob/fa1aab3187fa9951fa7c3620e0aa6f922d6636f6/hermes_cli/gateway.py)
227
+ and per-instance LaunchAgents, `ProgramArguments`, `RunAtLoad`, no-start
228
+ installation, and ownership checks in
229
+ [`hermes_cli/gateway_launchd.py`](https://github.com/NousResearch/hermes-agent/blob/fa1aab3187fa9951fa7c3620e0aa6f922d6636f6/hermes_cli/gateway_launchd.py).
230
+ - Upstream license: [MIT, Copyright (c) 2025 Nous Research](https://github.com/NousResearch/hermes-agent/blob/fa1aab3187fa9951fa7c3620e0aa6f922d6636f6/LICENSE).
231
+ `src/autostart.ts` and CLI install/uninstall/status were independently
232
+ implemented with Node/Bun APIs and macOS `launchctl`/`plutil`, not copied Python.
233
+ - Registration runs the existing `start` once at macOS login. It does not import
234
+ Hermes KeepAlive supervision, forced process replacement, detached fallback,
235
+ sudo/system services, or a Windows backend. Installation does not start the bot;
236
+ prepare/doctor/setup do not register it automatically.
237
+ - Assumptions: the current account's macOS GUI login, accessible absolute
238
+ Bun/repository/config paths, private sibling credentials, and separately installed
239
+ OMP. Registration is distinct from Gateway readiness and does not establish
240
+ successful reboot or operational-account round-trip verification.
241
+
242
+ ## Managed ULW: separately licensed package and bundled skills
243
+
244
+ - Source: [dbc-hbin/omp-ulw](https://github.com/dbc-hbin/omp-ulw);
245
+ management configuration: `upstream/ulw.json`. Packages are prepared separately
246
+ under `.upstream/ulw/revisions/<revision>/package`; `active.json` identifies the
247
+ selected revision. The inspected snapshot was
248
+ [`1625e0de2e4807f1cfdac19e6b54578af1329951`](https://github.com/dbc-hbin/omp-ulw/tree/1625e0de2e4807f1cfdac19e6b54578af1329951).
249
+ - This project's MIT license does not grant a license to that separate package or
250
+ override its per-file licenses and attribution. The inspected snapshot has no
251
+ root LICENSE or `package.json` license declaration; no blanket package license
252
+ is asserted here.
253
+ - Bundled `skills/{browser,coding-agent-sessions,ultimate-browsing}/LICENSE.md`
254
+ retain the Sustainable Use License. `skills/computer-use/LICENSE.md` retains
255
+ SUL terms for OMO-derived portions and MIT terms for OMP-derived guidance.
256
+ These are actual bundled materials, not merely conceptual references.
257
+ - Other retained notices include `skills/frontend/LICENSE-Apache-2.0.txt`,
258
+ the MIT license in `skills/frontend/references/designpowers/vendor/LICENSE`
259
+ (`Copyright (c) 2026 MC Dean`), and the MIT license in
260
+ `skills/programming/scripts/typescript/oxc/lint/oxlint-plugin/LICENSE`
261
+ (`Copyright (c) 2026 T3 Tools Inc.`).
262
+ - Consult the selected package's license and attribution files before using or
263
+ redistributing it. Preserve those files and applicable modification notices;
264
+ the Dori non-copy statements above do not imply that ULW's bundled skills are MIT.
265
+
266
+ ## OMP: installed runtime and published SDK
267
+
268
+ - Runtime baseline: [can1357/oh-my-pi v18.20.2](https://github.com/can1357/oh-my-pi/tree/7c49c11aa5bbaf3f418406583096168ad5b8c6dc),
269
+ revision `7c49c11aa5bbaf3f418406583096168ad5b8c6dc`.
270
+ - The operator installs OMP separately. This repository does not patch, build,
271
+ or redistribute an OMP executable. CI downloads upstream release binaries and
272
+ verifies them against the upstream checksum manifest.
273
+ - Published `@oh-my-pi/pi-coding-agent`, `pi-ai`, `pi-catalog`, `pi-tui`, and `pi-utils`
274
+ dependencies are pinned in `package.json`; `bun.lock` records resolved packages
275
+ and integrity data. Public SDK interfaces support this project's managed
276
+ extensions and transport adapter. Same-process native TUI attach is not claimed.
277
+ - `pi-tui` supplies native thinking-level helpers and the keyword matcher used by
278
+ tests; no TUI implementation is copied into this project.
279
+ - The live state projection in `src/host-extension.ts` adapts the `get_state`
280
+ object from [`rpc-mode.ts` at the baseline revision](https://github.com/can1357/oh-my-pi/blob/7c49c11aa5bbaf3f418406583096168ad5b8c6dc/packages/coding-agent/src/modes/rpc/rpc-mode.ts).
281
+ It reads the actual session through public getters so status remains observable
282
+ during a serialized command. It conservatively reports unsettled while that
283
+ command is pending; idle disposal still requires the stock RPC settlement check.
284
+ The upstream copyright and MIT terms below apply to this adapted projection.
285
+ - The published SDK and the source artwork identified above retain the following
286
+ MIT notice, also present in the installed package's `LICENSE` and the
287
+ [upstream LICENSE](https://github.com/can1357/oh-my-pi/blob/7c49c11aa5bbaf3f418406583096168ad5b8c6dc/LICENSE):
288
+
289
+ ```text
290
+ MIT License
291
+
292
+ Copyright (c) 2025 Mario Zechner
293
+ Copyright (c) 2025-2026 Can Bölük
294
+ Copyright (c) 2026 Stencil Labs, Inc.
295
+
296
+ Permission is hereby granted, free of charge, to any person obtaining a copy
297
+ of this software and associated documentation files (the "Software"), to deal
298
+ in the Software without restriction, including without limitation the rights
299
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
300
+ copies of the Software, and to permit persons to whom the Software is
301
+ furnished to do so, subject to the following conditions:
302
+
303
+ The above copyright notice and this permission notice shall be included in all
304
+ copies or substantial portions of the Software.
305
+
306
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
307
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
308
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
309
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
310
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
311
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
312
+ SOFTWARE.
313
+ ```
@@ -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
+ }