omp-superagent 0.1.1 → 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.
- package/DESIGN.md +189 -48
- package/README.ko.md +30 -16
- package/README.md +39 -20
- package/THIRD_PARTY_NOTICES.md +81 -6
- package/docs/OPERATIONS.md +178 -30
- package/docs/discord-voice.md +96 -0
- package/docs/releases/0.1.2.md +53 -0
- package/package.json +13 -7
- package/scripts/ci.ts +10 -5
- package/scripts/release.ts +14 -6
- package/scripts/test-omp.sh +36 -0
- package/skills/head/SKILL.md +82 -241
- package/skills/head/references/model-selection.md +81 -261
- package/skills/head/references/routing.md +179 -354
- package/skills/head/references/supervision.md +120 -310
- package/skills/lane/SKILL.md +53 -175
- package/skills/lane/references/workflow.md +93 -347
- package/src/cli.ts +96 -10
- package/src/codex-live-bridge.py +73 -0
- package/src/codex-live.ts +244 -0
- package/src/codex-voice-requirements.txt +5 -0
- package/src/codex_live_auth.py +192 -0
- package/src/codex_live_media.py +219 -0
- package/src/codex_live_provider.py +192 -0
- package/src/config.ts +77 -2
- package/src/contracts.ts +70 -6
- package/src/decision-tool.ts +59 -0
- package/src/decisions.ts +143 -0
- package/src/delivery.ts +10 -0
- package/src/discord-context.ts +118 -0
- package/src/discord-voice-draft.ts +124 -0
- package/src/discord-voice-link.ts +270 -0
- package/src/discord-voice.ts +150 -0
- package/src/discord.ts +312 -45
- package/src/extension.ts +178 -21
- package/src/gateway-client.ts +11 -4
- package/src/gateway-server.ts +52 -4
- package/src/gateway-store.ts +16 -2
- package/src/gateway.ts +27 -11
- package/src/host-broker-services.ts +108 -0
- package/src/host-extension.ts +159 -47
- package/src/host-owner.ts +16 -0
- package/src/host-protocol.ts +9 -1
- package/src/host-services.ts +54 -0
- package/src/host.ts +3 -2
- package/src/installed-omp.ts +34 -26
- package/src/lane-extension.ts +5 -0
- package/src/lane-rows.ts +12 -0
- package/src/messengers.ts +38 -9
- package/src/native-presets.ts +91 -3
- package/src/native-settings.ts +3 -1
- package/src/openai-live.ts +377 -0
- package/src/pr-github-schema.ts +110 -0
- package/src/pr-github.ts +170 -0
- package/src/pr-watch.ts +200 -0
- package/src/runtime.ts +419 -54
- package/src/slack.ts +14 -11
- package/src/store.ts +86 -30
- package/src/telegram.ts +28 -12
- package/scripts/check-omp.ts +0 -4
package/README.md
CHANGED
|
@@ -18,9 +18,9 @@ the results back to your conversation.
|
|
|
18
18
|
|
|
19
19
|
## Distribution
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
[GitHub Release](https://github.com/dbc-hbin/omp-superagent/releases/tag/v0.1.
|
|
21
|
+
Install from [npm](https://www.npmjs.com/package/omp-superagent) or use the source
|
|
22
|
+
and npm tarballs from the
|
|
23
|
+
[GitHub Release](https://github.com/dbc-hbin/omp-superagent/releases/tag/v0.1.2).
|
|
24
24
|
Install with Bun or npm below. Bun is still required at runtime; this is not a
|
|
25
25
|
standalone binary. OMP must already be installed; this project neither patches nor
|
|
26
26
|
builds it. Installation prepares the managed dependencies.
|
|
@@ -55,32 +55,42 @@ head; the head replies to the original conversation.
|
|
|
55
55
|
|
|
56
56
|
## Quick start
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
This checkout requires Git, **Bun >= 1.4.4**, and local Unix sockets. Installing the
|
|
59
|
+
package does not require OMP. To run a Host, install stock OMP separately; the
|
|
60
|
+
CLI checks capabilities, not a version range. The tested releases are
|
|
61
|
+
**OMP 18.20.3, 18.22.2, and 19.0.0**.
|
|
62
|
+
The SDK stays pinned to **19.0.0**, from upstream `v19.0.0` commit
|
|
63
|
+
[`57771ae562b9345e0579bceb2d68d585e3e6927e`](https://github.com/can1357/oh-my-pi/commit/57771ae562b9345e0579bceb2d68d585e3e6927e).
|
|
64
|
+
`bun run test:ci` tests the installed OMP. To reproduce CI, use
|
|
65
|
+
`bun run test:baseline` for the SDK-matched CLI or `bash scripts/test-omp.sh v18.22.2`
|
|
66
|
+
(or `v18.20.3`) for OMP 18. Each verifies the release binary and runs the same suite.
|
|
67
|
+
The separate weekly/manual **OMP upstream compatibility** workflow tests the latest
|
|
68
|
+
published CLI without falling back to the baseline or blocking releases.
|
|
69
|
+
Windows is unsupported.
|
|
60
70
|
Configure `command` with the installed OMP executable followed by native CLI flags;
|
|
61
71
|
runtime/script wrappers are unsupported.
|
|
62
72
|
|
|
63
73
|
### 1. Install
|
|
64
74
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
75
|
+
Before switching a Host from OMP 18 to 19, check its background services; the
|
|
76
|
+
OMP 19 daemon does not take over the old broker's services.
|
|
77
|
+
|
|
78
|
+
To install OMP separately, see the
|
|
79
|
+
[upstream instructions](https://github.com/can1357/oh-my-pi#installation).
|
|
68
80
|
|
|
69
81
|
```sh
|
|
70
|
-
|
|
71
|
-
bun add --global --trust omp-superagent@0.1.1
|
|
82
|
+
bun add --global --trust omp-superagent@0.1.2
|
|
72
83
|
omp-sa --help
|
|
73
84
|
```
|
|
74
85
|
|
|
75
|
-
`--trust` allows
|
|
86
|
+
`--trust` allows package lifecycle scripts, including managed `omp-ulw` preparation.
|
|
76
87
|
Ensure `bun pm bin --global` is on `PATH`. Alternatively, with Bun on `PATH`:
|
|
77
88
|
|
|
78
89
|
```sh
|
|
79
|
-
npm install --global omp-superagent@0.1.
|
|
90
|
+
npm install --global omp-superagent@0.1.2
|
|
80
91
|
```
|
|
81
92
|
|
|
82
|
-
|
|
83
|
-
`omp-ulw` integration. Do not skip lifecycle scripts.
|
|
93
|
+
Keep lifecycle scripts enabled for the managed `omp-ulw` integration.
|
|
84
94
|
Published SDK packages and platform-native dependencies come from the package registry;
|
|
85
95
|
no Rust toolchain, OMP source checkout, core patch, or native build is required.
|
|
86
96
|
Dependency installation needs network access. It does not start a bot or replace OMP.
|
|
@@ -132,9 +142,10 @@ Start the detached Gateway and head, connecting **all configured messengers**:
|
|
|
132
142
|
omp-sa start --config ./config.local.json
|
|
133
143
|
```
|
|
134
144
|
|
|
135
|
-
The same head initializes
|
|
136
|
-
work.
|
|
137
|
-
|
|
145
|
+
The same head initializes missing native `high`/`middle`/`low` presets before ordinary
|
|
146
|
+
work. Managed presets then follow OMP's `slow`/`default`/`smol` roles without changing
|
|
147
|
+
active sessions or overwriting custom presets. `status` distinguishes initialization from
|
|
148
|
+
transport readiness. Setup and doctor do not start bot/model sessions.
|
|
138
149
|
|
|
139
150
|
Native TUI/herdr attachment to managed RPC Hosts is not available in this patch-free
|
|
140
151
|
release. Use messenger commands and `omp-sa status` for managed sessions.
|
|
@@ -149,12 +160,19 @@ crash supervisor; Linux service installation is not provided.
|
|
|
149
160
|
|
|
150
161
|
## Working from chat
|
|
151
162
|
|
|
163
|
+
Discord can optionally join a private voice conversation with the owner. A separate
|
|
164
|
+
OpenAI Live session answers speech; work goes to HEAD only after written confirmation.
|
|
165
|
+
Select Codex subscription voice or the separately billed API in the
|
|
166
|
+
[voice configuration guide](docs/discord-voice.md). Voice is off by default;
|
|
167
|
+
a rejected subscription call never switches to API billing.
|
|
168
|
+
|
|
152
169
|
- Ask normally. Questions get direct answers; work instructions open a topic with a
|
|
153
170
|
brief approach, followed by meaningful progress and results.
|
|
154
171
|
- Follow up in the same topic to steer active work through the head. Repositories and
|
|
155
172
|
topics keep independent lane context; voice metadata does not imply transcription.
|
|
156
173
|
- Use `/help` and `/status` for controls and state. `/model` and `/effort` manage the
|
|
157
|
-
idle head session, not existing lanes or global defaults.
|
|
174
|
+
idle head session, not existing lanes or global defaults. You can also ask the head
|
|
175
|
+
in a normal message to switch its own model after that turn. Global preset changes
|
|
158
176
|
require explicit `--global`. Slack's message commands use `!`.
|
|
159
177
|
- `/stop` pauses the bound lane; `/resume` authorizes continuation. Approvals,
|
|
160
178
|
cancellations, tool exclusions, and uncertain-effect holds remain binding.
|
|
@@ -187,8 +205,9 @@ bun run test:ci
|
|
|
187
205
|
|
|
188
206
|
See [developer verification and source release steps](docs/OPERATIONS.md#6-개발자-검증)
|
|
189
207
|
for offline native/PTY coverage, prerequisites, and local packaging/publication boundaries.
|
|
190
|
-
[Recorded results and limitations](docs/releases/0.1.0.md#verification-records)
|
|
191
|
-
|
|
208
|
+
[Recorded results and limitations](docs/releases/0.1.0.md#verification-records) apply
|
|
209
|
+
to the versions tested; they do not verify the OMP 19.0.0 runtime, live accounts,
|
|
210
|
+
or production readiness.
|
|
192
211
|
|
|
193
212
|
## Documentation & credits
|
|
194
213
|
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -56,6 +56,19 @@ SOFTWARE.
|
|
|
56
56
|
|
|
57
57
|
## Discord transport
|
|
58
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.
|
|
59
72
|
- Gateway/REST and component support use the
|
|
60
73
|
[discord.js](https://github.com/discordjs/discord.js) dependency, not a copied
|
|
61
74
|
client. The declared range is `^14.25.1`; `bun.lock` records the resolved version.
|
|
@@ -96,8 +109,23 @@ current OMP tool/session contracts, not copied from Dori skill text or scripts.
|
|
|
96
109
|
[SUL and NOTICE](https://github.com/vntrevx/omp-dori/blob/3b5487df12540cdd428ebcf7455375d72921e2dc/NOTICE).
|
|
97
110
|
`LICENSE.omp-dori` is not treated as an MIT grant for that entire repository.
|
|
98
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
|
+
|
|
99
120
|
### Dori pull-request comparisons: independent implementation
|
|
100
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
|
+
|
|
101
129
|
- Snapshot: [vntrevx/omp-dori `dc7402efce8adc87aeac808a1b1f50100f9f53d9`](https://github.com/vntrevx/omp-dori/tree/dc7402efce8adc87aeac808a1b1f50100f9f53d9).
|
|
102
130
|
- Compared Git environment isolation in [#9](https://github.com/vntrevx/omp-dori/pull/9),
|
|
103
131
|
reply/voice context in [#32/#41](https://github.com/vntrevx/omp-dori/pull/41), and
|
|
@@ -113,6 +141,45 @@ current OMP tool/session contracts, not copied from Dori skill text or scripts.
|
|
|
113
141
|
supervisor, separate state registry, or timers were copied; its SUL notices are
|
|
114
142
|
not reinterpreted.
|
|
115
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
|
+
|
|
116
183
|
## Telegram transport: grammY
|
|
117
184
|
|
|
118
185
|
- API client: [`grammy` 1.46.0](https://github.com/grammyjs/grammY/tree/055a5a440f04d0b9fd5fd75a6d14dac4c2b83553),
|
|
@@ -265,11 +332,16 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
265
332
|
|
|
266
333
|
## OMP: installed runtime and published SDK
|
|
267
334
|
|
|
268
|
-
-
|
|
269
|
-
revision `7c49c11aa5bbaf3f418406583096168ad5b8c6dc`.
|
|
335
|
+
- SDK/API baseline: [can1357/oh-my-pi v19.0.0](https://github.com/can1357/oh-my-pi/tree/57771ae562b9345e0579bceb2d68d585e3e6927e).
|
|
270
336
|
- The operator installs OMP separately. This repository does not patch, build,
|
|
271
|
-
or redistribute an OMP executable.
|
|
272
|
-
verifies
|
|
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.
|
|
273
345
|
- Published `@oh-my-pi/pi-coding-agent`, `pi-ai`, `pi-catalog`, `pi-tui`, and `pi-utils`
|
|
274
346
|
dependencies are pinned in `package.json`; `bun.lock` records resolved packages
|
|
275
347
|
and integrity data. Public SDK interfaces support this project's managed
|
|
@@ -277,14 +349,17 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
277
349
|
- `pi-tui` supplies native thinking-level helpers and the keyword matcher used by
|
|
278
350
|
tests; no TUI implementation is copied into this project.
|
|
279
351
|
- The live state projection in `src/host-extension.ts` adapts the `get_state`
|
|
280
|
-
object from [`rpc-mode.ts`
|
|
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).
|
|
281
353
|
It reads the actual session through public getters so status remains observable
|
|
282
354
|
during a serialized command. It conservatively reports unsettled while that
|
|
283
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.
|
|
284
359
|
The upstream copyright and MIT terms below apply to this adapted projection.
|
|
285
360
|
- The published SDK and the source artwork identified above retain the following
|
|
286
361
|
MIT notice, also present in the installed package's `LICENSE` and the
|
|
287
|
-
[upstream LICENSE](https://github.com/can1357/oh-my-pi/blob/
|
|
362
|
+
[upstream LICENSE](https://github.com/can1357/oh-my-pi/blob/3e8cff3b7ce19a805c11a26a6dd1703066435851/LICENSE):
|
|
288
363
|
|
|
289
364
|
```text
|
|
290
365
|
MIT License
|
package/docs/OPERATIONS.md
CHANGED
|
@@ -15,10 +15,17 @@ Gateway가 메신저 연결과 헤드 수명을 맡고, 모든 요청·후속
|
|
|
15
15
|
플랫폼·계정·대화·주제 신원은 분리한다. 멀티테넌트 구성이나 OS 보안 샌드박스가 아니다.
|
|
16
16
|
관리 RPC Host의 동일 프로세스 native TUI/herdr attach는 지원하지 않는다.
|
|
17
17
|
|
|
18
|
+
선택 기능인 [Discord 실시간 음성채팅](discord-voice.md)은 일반 대화를 별도 OpenAI Live 세션에서
|
|
19
|
+
처리한다. 음성 모델이 제안한 작업은 소유자가 원래 텍스트 채널에서 서면으로 확인해야 HEAD에 접수된다.
|
|
20
|
+
|
|
18
21
|
### 레인 관리 도구와 운영 스킬
|
|
19
22
|
|
|
20
23
|
헤드만 `lane_models`, `lane_init_presets`, `lane_start`, `lane_set_model`,
|
|
21
|
-
`lane_inspect`, `lane_message`, `lane_pause`, `lane_resume`, `lane_close
|
|
24
|
+
`lane_inspect`, `lane_message`, `lane_pause`, `lane_resume`, `lane_close`,
|
|
25
|
+
`thread_inspect`, `lane_thread_update`, `pr_watch`, `pr_watch_list`,
|
|
26
|
+
`discord_context`, `discord_purpose_list`, `discord_purpose_set`, `discord_purpose_clear`,
|
|
27
|
+
`decision_list`, `decision_inspect`, `decision_withdraw`를 사용한다.
|
|
28
|
+
`decision_ask`는 HEAD와 레인 root에서 사용하며 native 자식에는 제공하지 않는다.
|
|
22
29
|
`lane_inspect({})`가 목록 조회다. 레인에는 관리 권한을, native 자식에는 관리·게시판 권한을 주지 않는다.
|
|
23
30
|
일반 OMP에 이 확장들을 전역 설치하지 않는다. 도구 인자·역할 경계는
|
|
24
31
|
[설계의 관리 도구 계약](../DESIGN.md#5-레인-관리-도구와-운영-스킬)을 따른다.
|
|
@@ -29,6 +36,57 @@ Gateway가 메신저 연결과 헤드 수명을 맡고, 모든 요청·후속
|
|
|
29
36
|
- native discovery를 사용하므로 현재 cwd와 무관하게 위 URI를 읽을 수 있다. 사용자·프로젝트
|
|
30
37
|
스킬을 덮어쓰지 않는다. `--no-skills`는 이 URI 기반 운영 흐름에서 사용하지 않는다.
|
|
31
38
|
|
|
39
|
+
### PR 후속 추적
|
|
40
|
+
|
|
41
|
+
헤드에 PR URL과 관찰 주기를 알려 추적을 요청한다. `pr_watch`는 `action: "track"`,
|
|
42
|
+
`ref`(GitHub PR URL 또는 `owner/repo#번호`), 실제 원본 `sourceId`,
|
|
43
|
+
`intervalSeconds`를 받는다. 선택적인 `laneId`는 기존 레인과의 정보상 연결이며,
|
|
44
|
+
`ignoreAuthors`는 알림에서 제외할 GitHub login 목록이다. 예를 들어 300초마다
|
|
45
|
+
리뷰·CI 변경을 확인하도록 요청할 수 있다. 자동 등록이나 기본 관찰 주기는 없다.
|
|
46
|
+
|
|
47
|
+
`pr_watch_list({})`로 등록·기준 head/state·다음 확인 시각·오류·보류를 조회하고,
|
|
48
|
+
`pr_watch({action: "untrack", ref, sourceId})`로 추적을 끝낸다. 이들은 HEAD의 native
|
|
49
|
+
도구이지 메신저 slash command나 셸 명령이 아니다.
|
|
50
|
+
|
|
51
|
+
- 별도 설치된 `gh`가 HEAD 환경의 PATH에 있어야 하고 `github.com` 읽기 인증이 필요하다.
|
|
52
|
+
기존 `gh` 인증을 쓰며 자체 토큰 저장이나 로그인은 하지 않는다. Enterprise 호스트는 지원하지 않는다.
|
|
53
|
+
- 첫 성공 조회는 기준점만 저장한다. 이후 새 리뷰·댓글, 리뷰 상태 변경, 현재 head의 CI 실패·재실패,
|
|
54
|
+
외부/불명 head 변경, PR 종료·재개·병합을 원래 등록 대화의 HEAD 입력으로 전달한다.
|
|
55
|
+
본인 댓글·본인만의 push와 이미 관측한 항목은 반복 알리지 않는다.
|
|
56
|
+
- 레인이 완료·비상주가 되어도 HEAD runtime의 일반 코드가 조회한다. 변화가 없으면 모델 턴을
|
|
57
|
+
만들지 않는다. HEAD/Gateway가 꺼져 있는 동안에는 조회하지 않으며 다시 시작하면 저장한
|
|
58
|
+
기준점과 비교한다. GitHub가 조회 사이 삭제한 정보까지 복원하는 이벤트 보관 서비스는 아니다.
|
|
59
|
+
- 변경 알림과 cursor는 같은 SQLite 트랜잭션으로 기록한다. 조회 실패는 기준점을 바꾸지 않고
|
|
60
|
+
동일 오류의 반복 알림을 억제한다. 병합된 PR은 조회를 끝내며, 미병합 종료는 재개를 관찰한다.
|
|
61
|
+
- `/stop head`는 기존 추적의 자동 깨우기도 보류한다. 이후 별도 사용자 요청으로 다시 등록해야
|
|
62
|
+
기준점을 새로 잡는다. 추적 해제·등록 변경과 경합한 이전 조회는 결과를 반영하지 않는다.
|
|
63
|
+
- 관측은 승인이나 작업 재개가 아니다. HEAD가 의미를 판단하며 레인 자동 재개, 댓글, push,
|
|
64
|
+
merge는 하지 않는다. 기존 pause·승인·불확실성 보류를 유지한다.
|
|
65
|
+
|
|
66
|
+
### Discord 채널 문맥과 용도 메모
|
|
67
|
+
|
|
68
|
+
새 Discord 입력에는 이미 확보된 채널 객체에서 읽은 이름·설명(topic), 스레드 이름과 부모
|
|
69
|
+
채널 정보가 문맥으로 붙는다. DM은 DM으로 표시한다. 메타데이터를 얻지 못한 필드는 생략하고
|
|
70
|
+
메시지 접수는 계속한다. 입력 재전달 때 채널 이름이나 설명이 달라져도 중복 요청으로 만들지
|
|
71
|
+
않으며 처음 접수한 스냅샷을 보존한다. 현재 상태가 필요하면 `discord_context({sourceId})`로 조회한다.
|
|
72
|
+
|
|
73
|
+
운영자는 해당 대화에서 “이 채널은 프로젝트 X 조사용”처럼 용도를 기록하도록 요청할 수 있다.
|
|
74
|
+
HEAD는 실제 입력 ID로 다음 도구를 사용한다.
|
|
75
|
+
|
|
76
|
+
- `discord_purpose_set({sourceId, purpose, scope?})`: 용도 기록·변경.
|
|
77
|
+
- `discord_purpose_list({sourceId})`: 원래 대화의 채널·스레드 메모 조회.
|
|
78
|
+
- `discord_purpose_clear({sourceId, scope?})`: 용도 메모 제거.
|
|
79
|
+
|
|
80
|
+
scope 생략은 원래 대화, `channel`은 정확한 부모 채널, `thread`는 입력이 발생한 스레드다.
|
|
81
|
+
다른 채널이나 형제 스레드 ID를 임의 지정할 수 없다. 같은 원본 요청으로 부모와 스레드에
|
|
82
|
+
각각 기록할 수 있지만 같은 대상에 대한 상충한 재시도는 거절한다. 새 변경에는 새 사용자
|
|
83
|
+
요청이 필요하다. 메모·재시도 영수증은 기존 SQLite에 저장되며 재시작 후에도 유지된다.
|
|
84
|
+
설정은 Discord 채널 설명 자체를 수정하지 않는 로컬 메모다.
|
|
85
|
+
|
|
86
|
+
채널 이름·설명과 용도 메모는 모두 **문맥이지 명령·승인·자동 라우팅 규칙이 아니다**.
|
|
87
|
+
HEAD가 저장소와 작업 범위를 판단하는 데 참고하며, 메모를 바꿔도 기존 입력 스냅샷·레인
|
|
88
|
+
연결·실행 상태는 바뀌지 않는다.
|
|
89
|
+
|
|
32
90
|
### 일반 모델 프로필과 역할 특화
|
|
33
91
|
|
|
34
92
|
관리형 ULW 설치·일반 프로필 로드만으로 workflow를 선택하거나 goal을 만들지 않는다.
|
|
@@ -74,14 +132,21 @@ board_subscribe({channels: ["general", "repo:/absolute/repository"]})
|
|
|
74
132
|
|
|
75
133
|
### 새 레인의 모델 선택
|
|
76
134
|
|
|
77
|
-
명시적 `start` 때 기존 헤드가 native `high/middle/low` 프리셋을 조사한다.
|
|
78
|
-
|
|
135
|
+
명시적 `start` 때 기존 헤드가 native `high/middle/low` 프리셋을 조사한다. 누락 항목은
|
|
136
|
+
같은 헤드의 최초 전용 초기화 턴에서 생성·재조회한다.
|
|
79
137
|
`setup`·`doctor`는 봇·모델을 실행하지 않는다. `head.initialization`이 `complete`여야 일반
|
|
80
138
|
작업을 시작한다. `blocked/failed/uncertain`이면 `status`의 사유를 확인하고 일반 OMP의
|
|
81
139
|
`/modelpreset list/save/switch/delete`로 충돌·누락을 복구한 뒤 헤드를 재시작해 재조회한다.
|
|
82
140
|
실패·재시작·완료 뒤 삭제를 이유로 초기화 턴을 자동 반복하지 않는다. 프리셋 이름은 실측
|
|
83
141
|
성능·가격 등급이 아니며 모델 정책은 이 JSON 설정에 별도 작성하지 않는다.
|
|
84
142
|
|
|
143
|
+
관리 프리셋은 영속 OMP 역할 `slow → high`, `default → middle`, `smol → low`를
|
|
144
|
+
따른다. 시작할 때와 실행 중 약 30초마다 역할을 확인하며, 변경된 역할들이 가용하면 모델
|
|
145
|
+
호출 없이 현재 역할·기본 effort를 다시 저장한다. 기존 프리셋은 역할 스냅샷과 모델이
|
|
146
|
+
현재 설정에 일치할 때만 관리 대상으로 인수한다. 수동으로 수정·삭제한 관리 항목과
|
|
147
|
+
다른 프리셋, 상위 설정이 가린 항목은 덮어쓰지 않는다. 이미 실행 중인 헤드와 기존
|
|
148
|
+
레인이 보유한 모델·프리셋 스냅샷은 바뀌지 않는다.
|
|
149
|
+
|
|
85
150
|
헤드는 실제 요구·native 가용 후보를 조사하고 통상 native judge 자문 뒤 최종 모델과 이유를
|
|
86
151
|
정한다. 자문은 스킬 정책이지 모든 호출에 영수증을 요구하는 runtime gate가 아니다.
|
|
87
152
|
레인 선택은 전체 preset snapshot으로 유지하며 이후 프리셋 편집·재개로 바뀌지 않는다.
|
|
@@ -94,20 +159,29 @@ board_subscribe({channels: ["general", "repo:/absolute/repository"]})
|
|
|
94
159
|
|
|
95
160
|
## 1. 로컬 준비 — 봇은 시작하지 않음
|
|
96
161
|
|
|
97
|
-
|
|
98
|
-
OMP
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
162
|
+
현재 소스는 Git, **Bun >= 1.4.4**(`packageManager: bun@1.4.4`)와 로컬 Unix socket을
|
|
163
|
+
사용한다. OMP 없이 패키지를 설치할 수 있다. Host 실행에는 별도로 설치한 stock OMP가
|
|
164
|
+
필요하며, 버전 번호로 차단하지 않고 `rpc-ui`, 세션 재개, 확장, 모델 선택과 프로세스 관측
|
|
165
|
+
인터페이스를 확인한다. 검증 대상은 OMP 18.20.3, 18.22.2, 19.0.0이다. SDK 기준선은
|
|
166
|
+
OMP 19.0.0이며 upstream `v19.0.0` 커밋은
|
|
167
|
+
[`57771ae562b9345e0579bceb2d68d585e3e6927e`](https://github.com/can1357/oh-my-pi/commit/57771ae562b9345e0579bceb2d68d585e3e6927e)이다.
|
|
168
|
+
`doctor`는 `command`가 고른 실행 파일 경로, 버전, 서비스 백엔드를 보여주며 로그인이나
|
|
169
|
+
런타임 호환성을 보증하지 않는다. Host는 실제 RPC 초기화와 소유권 검사를 거친다.
|
|
170
|
+
18에서 19로 올리기 전에 기존 Host가 맡은 백그라운드 서비스를 확인한다. OMP 19의 사용자별
|
|
171
|
+
데몬은 이전 브로커의 서비스를 인수하지 않는다. 새 데몬의 목록이 비어 있어도 이전 세션에서
|
|
172
|
+
완료를 확인하지 못한 작업의 종료·회수를 승인하는 증거는 아니다.
|
|
173
|
+
기본 `command: ["omp"]`는 PATH에서 찾는다. 다른 설치를 쓰려면 `command`의 첫 항목에
|
|
174
|
+
그 OMP 경로를 넣는다. 상대 경로는 설정 파일의 디렉터리 기준이며 모든 레인이 같은 경로를
|
|
175
|
+
사용한다. 이 저장소는 OMP를 다운로드하거나 소스에서 빌드하지 않는다.
|
|
102
176
|
|
|
103
177
|
```sh
|
|
104
|
-
bun add --global --trust omp-superagent@0.1.
|
|
178
|
+
bun add --global --trust omp-superagent@0.1.2
|
|
105
179
|
omp-sa --help
|
|
106
180
|
```
|
|
107
181
|
|
|
108
|
-
`--trust`는
|
|
182
|
+
`--trust`는 관리형 ULW 준비 등 패키지 설치 스크립트를 허용한다.
|
|
109
183
|
`bun pm bin --global`의 출력 경로를 PATH에 포함한다. Bun이 PATH에 있으면
|
|
110
|
-
`npm install --global omp-superagent@0.1.
|
|
184
|
+
`npm install --global omp-superagent@0.1.2`도 사용할 수 있다.
|
|
111
185
|
설정은 설치 디렉터리가 아닌 사용자 작업 디렉터리에
|
|
112
186
|
`omp-sa setup --config ./config.local.json`으로 만든다. 설치만으로 봇을 활성화하지 않는다.
|
|
113
187
|
|
|
@@ -117,9 +191,9 @@ omp-sa --help
|
|
|
117
191
|
bun install --frozen-lockfile
|
|
118
192
|
```
|
|
119
193
|
|
|
120
|
-
|
|
194
|
+
설치 단계에서는 OMP를 실행하지 않는다. `setup`·`doctor`와 실제 Host 시작에서 선택된 CLI를 확인한다.
|
|
121
195
|
루트 SDK 의존성은 배포된 `@oh-my-pi/pi-coding-agent`, `@oh-my-pi/pi-ai`,
|
|
122
|
-
`@oh-my-pi/pi-catalog`, `@oh-my-pi/pi-utils`
|
|
196
|
+
`@oh-my-pi/pi-catalog`, `@oh-my-pi/pi-natives`, `@oh-my-pi/pi-tui`, `@oh-my-pi/pi-utils` 19.0.0이다. 설치는 봇을 시작하지 않으며
|
|
123
197
|
기존 OMP 실행 파일·전역 설정을 교체하지 않는다.
|
|
124
198
|
|
|
125
199
|
시스템 Bun을 바꾸지 않으려면 선택적으로 격리된 로컬 도구를 사용한다.
|
|
@@ -361,6 +435,17 @@ export SLACK_BOT_TOKEN SLACK_APP_TOKEN
|
|
|
361
435
|
질문·계산·연결 테스트는 기존 대화에서 바로 답하고, 같은 작업의 후속 지시는 기존 주제를 쓴다.
|
|
362
436
|
native topic을 지원하지 않는 private chat은 기존의 논리 주제 제한을 유지한다.
|
|
363
437
|
|
|
438
|
+
Discord 포럼에서는 “버그 태그로 새 작업 글을 만들어”, 기존 작업에서는 “제목을 바꿔”,
|
|
439
|
+
“이 스레드를 보관해/다시 열어”처럼 요청할 수 있다. 헤드는 `thread_inspect`로 실제 태그 ID와
|
|
440
|
+
현재 상태를 조회하고 새 글은 `lane_start.appliedTags`, 기존 관리 스레드는
|
|
441
|
+
`lane_thread_update`로 처리한다. 태그는 전체 교체이며 생략하면 보존한다.
|
|
442
|
+
필수 태그가 있는 포럼에서 빈 태그를 선택하거나 존재하지 않는 태그를 지정할 수 없다.
|
|
443
|
+
기존 스레드 관리와 moderated 태그 선택에는 봇의 **Manage Threads** 권한이 필요하다.
|
|
444
|
+
서버 권한을 자동 변경하지 않으며 DM·다른 플랫폼·등록되지 않은 스레드의 변경은 지원하지 않는다.
|
|
445
|
+
보관/다시 열기는 레인 중지·완료·재개와 별개다. 진행 중인 레인의 보고 발송에 영향을 줄 수
|
|
446
|
+
있으므로 완료 여부만 보고 자동 보관하지 않는다. 변경 결과가 불확실하면 현재 상태를 조회한 뒤
|
|
447
|
+
새 명시적 요청으로 조정하며, 동일 요청을 자동 재전송하지 않는다.
|
|
448
|
+
|
|
364
449
|
오래 걸리는 작업에는 착수 뒤에도 같은 작업 스레드로 간결한 **중간 진척 보고**를 보낸다.
|
|
365
450
|
레인이 실제로 확인한 결과·현재/다음 단계·막힘을 중간 assistant 문장으로 보고하면 헤드가
|
|
366
451
|
검토해 사용자 언어로 전달한다. 레인 실행은 보고 때문에 멈추거나 헤드 답변을 기다리지 않는다.
|
|
@@ -693,6 +778,11 @@ Discord는 등록된 슬래시 명령을 함께 지원한다. Slack은 일반 `!
|
|
|
693
778
|
native 상태에 명시적 effort가 없으면 모델 기본값으로 표시하며 `off`와 혼동하지 않는다.
|
|
694
779
|
RPC에 광고되지 않는 `auto`·`inherit`는 이 메신저 명령의 선택값이 아니다.
|
|
695
780
|
|
|
781
|
+
일반 메시지로 **“헤드 모델을 6.2 Astra로 바꿔”**처럼 명시적으로 요청해도 된다. 헤드가
|
|
782
|
+
가용 모델을 확인하고, 현재 턴이 성공적으로 끝난 뒤 공유 헤드에만 적용한다. 예약 응답은
|
|
783
|
+
적용 완료가 아니며, 런타임이 원래 메시지에 실제 결과를 회신한다. 원래 턴이 중단되거나
|
|
784
|
+
종료 뒤에도 헤드가 유휴 상태가 아니면 자동으로 재시도하지 않는다.
|
|
785
|
+
|
|
696
786
|
옵션 없는 변경은 전역 OMP 기본값과 기존 레인의 선택을 유지한다. 모든 메신저가 같은 헤드를 사용하므로
|
|
697
787
|
헤드의 이후 작업에는 동일하게 적용되고, 동일 native 세션을 재시작해도 기록된 선택을
|
|
698
788
|
복원한다. 일반 `/model`·`/effort`의 `--global`과 모든 `--once`는 지원하지 않는다. 수신 중복은 재적용하지 않으며 변경
|
|
@@ -825,6 +915,20 @@ seance를 제거했으므로 major 18 전체에 제공된다고 가정하지 않
|
|
|
825
915
|
|
|
826
916
|
### 승인·질문 응답
|
|
827
917
|
|
|
918
|
+
추적할 owner 선택은 `decision_ask({questions: [...]})`로 묻는다. 각 질문은
|
|
919
|
+
`question`, `options: [{label, description?, preview?}]`, 선택적 `header`, `multi`,
|
|
920
|
+
0부터 시작하는 `recommended`를 사용한다. 기존 native 질문 카드로 표시하며 시간 초과로
|
|
921
|
+
추천을 확정하지 않는다. 별도 질문 메시지나 응답 명령은 없다.
|
|
922
|
+
|
|
923
|
+
HEAD는 `decision_list({})`로 미결 결정을, `decision_list({state: "all"})`로 이력을 확인하고
|
|
924
|
+
`decision_inspect({id})`로 원래 질문·선택지·추천·답변과 source/native/card 신원을 읽는다.
|
|
925
|
+
`answering`은 전송한 답변의 native 반영이 아직 확인되지 않았다는 뜻이며 재전송하지 않는다.
|
|
926
|
+
`decision_withdraw({id, sourceId, reason})`는 같은 원래 대화의 실제 owner 입력을 근거로
|
|
927
|
+
미결 질문만 철회한다. `withdrawn`은 동의가 아니며 `confirmedAt`이 없으면 native 취소
|
|
928
|
+
확인까지 주장하지 않는다. 일반 `ask`·tool permission 승인은 이 장부와 별개다.
|
|
929
|
+
답변은 원래 인증 카드로만 받으며 HEAD가 답변을 만들어 넣거나 일반 채팅의 A/B를 추정하지 않는다.
|
|
930
|
+
장부에 답변이 생겨도 일시정지된 레인이 자동 재개되지는 않는다.
|
|
931
|
+
|
|
828
932
|
승인·질문은 각 플랫폼의 아래 UI로 응답한다. 주제를 바꾼 뒤에도 이전 주제의
|
|
829
933
|
미해결 승인은 **그 카드에 연결된 정확한 native 요청**으로만 응답할 수 있다.
|
|
830
934
|
현재 주제나 일반 메시지 텍스트가 승인 목적지를 바꾸지 않으며 만료·소비된 응답은 거부한다.
|
|
@@ -839,9 +943,14 @@ head의 native 승인 카드 복구를 먼저 마친 뒤 입력·콜백 처리
|
|
|
839
943
|
복구 전에 들어온 답변을 오래된 것으로 소비하거나 ACK하지 않는다. Slack의 서로 다른
|
|
840
944
|
동시 선택·모달 제출은 카드별로 순서대로 처리하고 실제 재전달만 중복 제거한다.
|
|
841
945
|
|
|
946
|
+
레인이 `decision_ask`로 올린 질문은 먼저 헤드가 검토한다. 위임 범위 안의 일상적 선택이면
|
|
947
|
+
헤드가 대신 고르고 결과와 이유를 원래 대화에 보고한다. 중요한 범위·비용·권한·외부 약속이
|
|
948
|
+
걸린 선택이나 판단 근거가 부족한 질문은 원래 사용자 카드로 넘긴다. 실제 실행 승인과 일반
|
|
949
|
+
native dialog는 헤드가 대신 답하지 않는다.
|
|
950
|
+
|
|
842
951
|
| 플랫폼 | 승인·질문 UI와 실제 한계 |
|
|
843
952
|
| --- | --- |
|
|
844
|
-
| Discord | 버튼·선택·모달.
|
|
953
|
+
| Discord | 버튼·선택·모달. native `select`는 한 카드에서 25개씩 페이지로 표시하고, 긴 선택지·설명은 메뉴에서 줄여 표시하되 전문은 카드 본문이나 텍스트 첨부에 싣는다. 답변은 원래 선택값을 그대로 돌려준다. `ask`는 질문당 25개 및 label·설명당 100 UTF-16 단위 이하. 원래 요청·메시지·세션에 묶인 응답만 수락하고 durable 접수 뒤 ACK |
|
|
845
954
|
| Telegram | inline 버튼과 **정확한 활성 봇 카드에 대한 답장**으로 input/editor·ask 자유 입력. 카드 4,096 UTF-16 단위, 100행 이하, 버튼 label 64 UTF-16 단위 이하, callback_data 64바이트 이하. ask의 진행·답안을 영속화하며 재시작 시 같은 카드를 편집해 API 응답 신원을 확인. 단순 캐시를 readback으로 간주하거나 불확실한 카드를 새로 만들지 않음 |
|
|
846
955
|
| Slack | Block Kit 버튼·최대 100개 옵션 select·input/editor/ask 자유 입력 모달. label·옵션 설명 75자, 입력 3,000자, placeholder 150자 이하. 카드 50 blocks·39,000자·semantic content 100 KiB 이하. 원래 workspace·사용자·카드 및 모달 ID/metadata를 확인 |
|
|
847
956
|
|
|
@@ -852,6 +961,11 @@ Telegram은 인증한 승인 카드의 account·실제 chat/thread·메시지 ID
|
|
|
852
961
|
새 작업으로 접수되지 않게 한다. 닫힌 dialog의 별도 진행 메타데이터에서는 부분 ask 선택·자유
|
|
853
962
|
입력 답안을 제거한다. 이는 원래 native 세션이나 이미 접수된 기록 전체를 삭제한다는 뜻은 아니다.
|
|
854
963
|
|
|
964
|
+
Discord의 일반 출력은 원래 사용자 메시지와 같은 물리 대화일 때 그 메시지에 답장한다.
|
|
965
|
+
새 스레드로 보낸 결과나 실제 메시지가 없는 slash interaction에는 reply reference를 넣지 않는다.
|
|
966
|
+
삭제된 원문은 Discord의 단일 전송 요청에서 허용하며 실패 뒤 중복 전송하지 않는다.
|
|
967
|
+
작성자 mention은 끄고 긴 출력은 기존처럼 단일 텍스트 첨부로 보낸다.
|
|
968
|
+
|
|
855
969
|
```sh
|
|
856
970
|
bun --no-env-file src/cli.ts stop LANE_ID --config config.local.json
|
|
857
971
|
bun --no-env-file src/cli.ts stop main --config config.local.json
|
|
@@ -973,28 +1087,52 @@ bun --no-env-file src/cli.ts uninstall --config config.local.json
|
|
|
973
1087
|
일반 회귀는 `bun run check`와 `bun test test`(`bun run test`와 같음)로 실행한다.
|
|
974
1088
|
기본 테스트는 opt-in native/PTY 시나리오를 제외한다. `.upstream`까지 탐색하는 인수 없는
|
|
975
1089
|
`bun test`로 대체하지 않는다. 설치 OMP와 ULW가 준비된 checkout의 `bun run test:ci`는
|
|
976
|
-
타입 검사와 모든 로컬 project/native/PTY·관리형 ULW 회귀를 실행한다. `scripts/ci.ts
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
1090
|
+
타입 검사와 모든 로컬 project/native/PTY·관리형 ULW 회귀를 실행한다. `scripts/ci.ts`는 활성
|
|
1091
|
+
ULW entrypoint를 사용한다. CI와 대상별 native/PTY 실행은 공통 선택기로 PATH의 현재 설치
|
|
1092
|
+
standalone CLI를 찾는다. Bun이 앞에 넣은 `node_modules/.bin`은 건너뛰며 SDK CLI나 과거 binary로 대체하지 않는다.
|
|
1093
|
+
선택한 OMP 버전·실행 경로를 출력하고 공개 RPC·프로세스 관측 기능을 메타데이터로 확인한다.
|
|
1094
|
+
`test:ci` 자체는 OMP를 다운로드·빌드·업데이트하지 않는다. Python 3이 필요하며 launchd 검증은 macOS에서만 실행한다.
|
|
1095
|
+
`test:ci`는 설치된 CLI가 추출한 네이티브 바이너리만 실행별 임시 캐시에 공유한다. 각 fixture의 HOME·설정·인증은 계속 격리한다.
|
|
1096
|
+
`OMP_TEST_NATIVES_DIR`에 신뢰하는 절대 경로를 직접 지정하면 임시 캐시 대신 사용하며, 이 경로는 실행 후 삭제하지 않는다.
|
|
1097
|
+
|
|
1098
|
+
PR, `main`, 수동 실행과 `v*` 릴리즈 태그의 GitHub Actions는 Ubuntu 24.04와 macOS 15 ARM64에서
|
|
1099
|
+
실행한다. macOS Intel은 CI에서 검사하지 않으며, 릴리즈 게시는 두 러너가 모두 통과해야 진행된다.
|
|
1100
|
+
각 러너는 `bun run test:baseline`으로 SDK와 같은 공식 CLI를, `bash scripts/test-omp.sh v18.22.2`로
|
|
1101
|
+
공식 OMP 18을 임시 디렉터리에 받아 각각 SHA-256과 `omp --version`을 확인한다.
|
|
1102
|
+
`bun install --frozen-lockfile`로 패키지를 먼저 설치한 뒤 `bun run test:ci`에만 그 CLI를
|
|
1103
|
+
`PATH` 앞에 넣는다. 같은 명령을 로컬에서
|
|
1104
|
+
실행해도 PATH의 기존 OMP를 교체하지 않는다. 다운로드에는 인터넷·curl·shasum이 필요하다.
|
|
1105
|
+
Ubuntu CI는 이전 비동기 작업 API를 쓰는 `v18.20.3`도 같은 방식으로 검증한다.
|
|
1106
|
+
|
|
1107
|
+
**OMP upstream compatibility**는 매주 월요일 04:17 UTC 또는 Actions에서 수동으로 실행한다.
|
|
1108
|
+
upstream의 최신 정식 릴리스 태그를 한 번 조회한 뒤 Ubuntu·macOS ARM64에서 그 태그로 같은 검사를 수행한다.
|
|
1109
|
+
실패한 태그는 로컬에서 `bash scripts/test-omp.sh vX.Y.Z`로 재현한다. 필요한 기능이 없거나 회귀가
|
|
1110
|
+
있으면 이 워크플로는 실패하고 PR·릴리스의 기준판 검사는 영향을 받지 않는다. 호환성 확인만으로
|
|
1111
|
+
제품의 지원 범위나 SDK lockfile이 바뀌지는 않는다. 이 검사는 실제 계정·유료
|
|
981
1112
|
제공자·herdr·실제 로그인/재부팅을 검증하지 않으며 과거의 동일 프로세스 TUI attach 지원도
|
|
982
1113
|
뜻하지 않는다. 실행 결과는 [릴리즈 검증 기록](releases/0.1.0.md#verification-records)에 모은다.
|
|
983
|
-
stock 18.20.2와
|
|
1114
|
+
이전 stock 18.20.2와 패치된 18.20.0의 결과는 현재 기준 버전의 검증과 구분하며 이후 변경의 증거로 재사용하지 않는다.
|
|
984
1115
|
|
|
985
1116
|
### 대상별 native·ULW 회귀
|
|
986
1117
|
|
|
987
|
-
|
|
988
|
-
|
|
1118
|
+
native 시나리오는 기존 opt-in을 명시적으로 켜며 `OMP_TEST_COMMAND`가 없으면 PATH에서 현재
|
|
1119
|
+
설치 stock CLI를 자동 선택한다. 실제 CLI/소켓·결정적인 로컬 provider·기록용 Messenger를
|
|
989
1120
|
사용한다. 사용자 설정·인증은 분리하며 실제 메신저 로그인이나 동일 프로세스 TUI/herdr attach의
|
|
990
|
-
검증 명령이 아니다.
|
|
1121
|
+
검증 명령이 아니다. CLI 자동 선택은 native/PTY·외부 ULW opt-in을 대신 켜지 않는다.
|
|
991
1122
|
|
|
992
1123
|
```sh
|
|
993
|
-
export OMP_TEST_COMMAND="$(bun -e 'const c = await Bun.file("config.local.json").json(); console.log(JSON.stringify(c.command));')"
|
|
994
1124
|
OMP_SUPERAGENT_NATIVE_TEST=1 bun test test/native-host.test.ts test/native-runtime.test.ts test/native-model-selection.test.ts test/native-board.test.ts test/native-gateway.test.ts
|
|
995
1125
|
OMP_SUPERAGENT_NATIVE_TEST=1 bun test test/native-autonomy.test.ts
|
|
996
1126
|
```
|
|
997
1127
|
|
|
1128
|
+
의도적으로 격리한 설치를 검증할 때만 `OMP_TEST_COMMAND`에 standalone CLI argv의 비어 있지
|
|
1129
|
+
않은 JSON 문자열 배열을 지정한다. 직접 실행·fixture 하위 프로세스·PTY·`test:ci` 모두 같은
|
|
1130
|
+
override를 존중한다. 잘못된 argv·미지원 버전·실행 실패는 자동 선택으로 숨기지 않고 실패한다.
|
|
1131
|
+
override 첫 인수가 `omp`여도 dependency shim이 아닌 설치 CLI로 해석한다.
|
|
1132
|
+
PTY 새 설정 테스트는 선택된 실행 파일을 격리된 PATH에 연결해 실제 setup이 그 파일을
|
|
1133
|
+
발견하게 한다. 새 설정은 제품 계약대로 실행 파일 하나만 저장하며 테스트 override의 추가
|
|
1134
|
+
CLI 옵션을 자동 주입하지 않는다. 기존 설정의 명시된 옵션은 그대로 보존한다.
|
|
1135
|
+
|
|
998
1136
|
ULW 병합 회귀는 외부 checkout을 수정하거나 설치하지 않고 명시한 entrypoint를 읽어 실행한다.
|
|
999
1137
|
환경변수를 생략하면 외부 ULW 조합은 건너뛴다.
|
|
1000
1138
|
|
|
@@ -1021,10 +1159,20 @@ bun run release
|
|
|
1021
1159
|
`bun pm pack --ignore-scripts`로 `package.json`의 files 목록에 한정한 npm 패키지를 만든다.
|
|
1022
1160
|
`dist/omp-superagent-<version>.tar.gz`, `.tgz`와 각각의 `.sha256`이 생성된다.
|
|
1023
1161
|
이 명령 자체는 게시하지 않는다.
|
|
1024
|
-
승인받은 버전 태그를 원격에 푸시하면 `.github/workflows/ci.yml`이
|
|
1025
|
-
`bun run release --publish`로 GitHub Release를 게시한다.
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1162
|
+
승인받은 버전 태그를 원격에 푸시하면 `.github/workflows/ci.yml`이 Linux/macOS 검증 후
|
|
1163
|
+
`bun run release --publish`로 GitHub Release를 게시한다. 이어 별도 npm job이 그 릴리즈의
|
|
1164
|
+
동일한 `.tgz`를 내려받아 SHA-256을 확인하고 GitHub Actions OIDC로 npm에 게시한다.
|
|
1165
|
+
버전과 태그·commit이 일치해야 하며 일반 태그 푸시는 기존 릴리즈를 덮어쓰지 않는다.
|
|
1166
|
+
기존 릴리즈의 교체를 명시적으로 승인받은 경우에만, 이미 검증하고 병합한 커밋으로
|
|
1167
|
+
해당 태그를 옮긴 뒤 그 태그에서 `ci.yml`을 `replace_release=true`로 수동 실행한다.
|
|
1168
|
+
강제 태그 푸시 자체는 검증만 하며 게시하지 않는다. 수동 실행도 검증을 다시 통과해야
|
|
1169
|
+
첨부 파일과 노트를 교체하고, 같은 tarball을 npm에 게시한다. 이미 게시된 npm 버전은
|
|
1170
|
+
같은 번호로 덮어쓸 수 없다.
|
|
1171
|
+
|
|
1172
|
+
최초 한 번, npm의 `omp-superagent` 패키지 설정 → **Trusted publishing**에서 GitHub Actions를
|
|
1173
|
+
추가한다. 사용자/조직은 `dbc-hbin`, 저장소는 `omp-superagent`, 워크플로우 파일은 `ci.yml`,
|
|
1174
|
+
환경 이름은 비워두고 `npm publish`를 허용한다. 이후 로컬 `npm login`이나 저장된 npm 토큰은
|
|
1175
|
+
필요 없다. npm 게시 결과가 불확실하면 먼저 레지스트리에서 정확한 버전과 tarball 해시를
|
|
1176
|
+
확인한다. 버전이 없고 원인을 해소한 경우에만 실패한 npm job을 다시 실행한다. GitHub Release
|
|
1177
|
+
또는 성공한 검증 job을 다시 실행할 필요는 없다.
|
|
1030
1178
|
외부 게시, 태그 푸시, 운영 Gateway 재시작은 로컬 테스트 성공과 별개의 명시적 작업이다.
|