omp-superagent 0.1.17 → 0.1.18
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 +15 -12
- package/config.example.json +4 -1
- package/docs/OPERATIONS.en.md +78 -29
- package/docs/OPERATIONS.md +59 -20
- package/docs/design/execution.md +30 -15
- package/docs/design/messaging.md +126 -43
- package/docs/releases/0.1.18.md +10 -0
- package/gateway/bin/omp-gateway-darwin-arm64 +0 -0
- package/gateway/bin/omp-gateway-darwin-x64 +0 -0
- package/gateway/bin/omp-gateway-linux-arm64 +0 -0
- package/gateway/bin/omp-gateway-linux-x64 +0 -0
- package/package.json +1 -1
- package/skills/head/SKILL.md +2 -2
- package/skills/head/references/routing.md +17 -6
- package/src/config/config.ts +15 -0
- package/src/contracts.ts +46 -3
- package/src/cron/cron-jobs.ts +135 -92
- package/src/cron/cron-pr-intake.ts +18 -11
- package/src/extension.ts +15 -5
- package/src/gateway/gateway-client.ts +3 -1
- package/src/lane/workflow.ts +12 -6
- package/src/managed-super-probe.ts +21 -15
- package/src/messaging/messenger-command-catalog.json +1 -1
- package/src/messaging/messenger-commands.ts +8 -3
- package/src/messaging/slack-context.ts +50 -0
- package/src/omp/superkit-skills.ts +15 -2
- package/src/pr/pr-intake-order.ts +62 -0
- package/src/pr/pr-intake-review.ts +49 -31
- package/src/pr/pr-intake-work.ts +3 -2
- package/src/routing/message-order.ts +22 -1
- package/src/routing/topic-request.ts +41 -0
- package/src/runtime/controller.ts +461 -178
- package/src/runtime/deferred-routing.ts +12 -4
- package/src/runtime/dm-timeline.ts +3 -3
- package/src/storage/deferred-routing.ts +25 -4
- package/src/storage/store.ts +367 -50
package/DESIGN.md
CHANGED
|
@@ -11,7 +11,7 @@ without a HEAD review. Unbound ordinary requests go to the shared HEAD model
|
|
|
11
11
|
to answer directly or verify a workspace and assign work. Explicit placement,
|
|
12
12
|
historical lookup and code-handled controls do not require a shared-model turn
|
|
13
13
|
to route.
|
|
14
|
-
In a [bound Discord work thread](docs/design/messaging.md#topic-routing-and-controls),
|
|
14
|
+
In a [bound Discord or Slack work thread](docs/design/messaging.md#topic-routing-and-controls),
|
|
15
15
|
historical continuation and its replies stay there unless the operator explicitly
|
|
16
16
|
asks to split. Separately,
|
|
17
17
|
[restricted group rooms](docs/design/messaging.md#restricted-group-rooms) opt
|
|
@@ -245,20 +245,23 @@ surface. Do not patch or build OMP, use the in-tree SDK as the CLI, or use a
|
|
|
245
245
|
runtime wrapper in place of the native CLI.
|
|
246
246
|
|
|
247
247
|
[CI](https://github.com/dbc-hbin/omp-superagent/actions/workflows/ci.yml)
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
and
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
248
|
+
selects one latest official OMP tag per run for the Linux x64 and macOS ARM64
|
|
249
|
+
source tests, including the weekly schedule and manual `source_only` runs.
|
|
250
|
+
A full rerun repeats the lookup and can select a different tag under the same
|
|
251
|
+
Actions run ID. CI does not fall back or change SDK pins. Full runs also build and
|
|
252
|
+
verify a fresh install of the current npm payload on Linux and macOS on both
|
|
253
|
+
architectures. They do not reinstall a historical npm release; see the
|
|
254
|
+
[packaging procedure](docs/OPERATIONS.en.md#source-and-npm-releases).
|
|
255
|
+
Locally, `bun run test:ci` uses the installed CLI, `bun run test:baseline` downloads
|
|
256
|
+
and verifies the SDK-matched official binary, and `bash scripts/test-omp.sh <release-tag>`
|
|
257
|
+
reproduces checks for a particular release, including older releases such as OMP 18.
|
|
256
258
|
These local fixtures cover native RPC/Host, Gateway and setup surfaces; they do not
|
|
257
259
|
prove live messenger accounts, provider requests or costs, or login/reboot behavior.
|
|
258
|
-
Treat CI configuration as a test matrix, not a test result.
|
|
259
|
-
|
|
260
|
+
Treat CI configuration as a test matrix, not a test result. For the exact commit
|
|
261
|
+
or project tag, record the Actions run ID and attempt number and the OMP tag
|
|
262
|
+
printed on the `Testing stock OMP` log line. Past evidence, such as the
|
|
260
263
|
[v0.1.3 tag run](https://github.com/dbc-hbin/omp-superagent/actions/runs/44695941397),
|
|
261
|
-
applies only to that release's configured checks, not to
|
|
264
|
+
applies only to that release's configured checks, not to later OMP versions.
|
|
262
265
|
|
|
263
266
|
Same-process native TUI/herdr attachment to managed RPC Hosts is **unsupported**.
|
|
264
267
|
Native session discovery and ordinary resume are not attachment or a grant of
|
package/config.example.json
CHANGED
|
@@ -26,7 +26,10 @@
|
|
|
26
26
|
"appTokenEnv": "SLACK_APP_TOKEN",
|
|
27
27
|
"ownerId": "REPLACE_WITH_SLACK_OWNER_ID",
|
|
28
28
|
"teamId": "REPLACE_WITH_SLACK_TEAM_ID",
|
|
29
|
-
"allowedChannelIds": ["REPLACE_WITH_SLACK_CHANNEL_ID"]
|
|
29
|
+
"allowedChannelIds": ["REPLACE_WITH_SLACK_CHANNEL_ID"],
|
|
30
|
+
"requireAddressing": false,
|
|
31
|
+
"allowCrossChannelThreads": false,
|
|
32
|
+
"editProgressInPlace": false
|
|
30
33
|
},
|
|
31
34
|
"kakao": {
|
|
32
35
|
"bridgeUrl": "http://127.0.0.1:REPLACE_WITH_BRIDGE_PORT",
|
package/docs/OPERATIONS.en.md
CHANGED
|
@@ -35,6 +35,7 @@ Only the head can use `lane_models`, `lane_init_presets`, `lane_start`, `lane_se
|
|
|
35
35
|
`lane_inspect`, `lane_message`, `lane_pause`, `lane_resume`, `lane_close`,
|
|
36
36
|
`thread_inspect`, `lane_thread_update`, `messenger_presence`, `lane_watch`, `pr_watch`, `pr_watch_list`,
|
|
37
37
|
`discord_context`, `discord_purpose_list`, `discord_purpose_set`, `discord_purpose_clear`,
|
|
38
|
+
`slack_context`, `slack_purpose_list`, `slack_purpose_set`, `slack_purpose_clear`,
|
|
38
39
|
`decision_list`, `decision_inspect`, `decision_withdraw`, and `lane_review_decision`.
|
|
39
40
|
`decision_ask` is available to HEAD and root lanes, but not to native children.
|
|
40
41
|
Use `lane_inspect({})` to list lanes. Only root lanes can use `lane_report`; neither
|
|
@@ -256,9 +257,8 @@ exceptions, judge limits, model adoption, and the private overlay contract.
|
|
|
256
257
|
The current source uses Git, **Bun >= 1.4.4** (`packageManager: bun@1.4.4`), and a local
|
|
257
258
|
Unix socket. You can install the package without OMP. Running the Host requires a separately
|
|
258
259
|
installed stock OMP. Rather than gating by version number, the Host checks interfaces for
|
|
259
|
-
`rpc-ui`, session resumption, extensions, model selection, and process observation.
|
|
260
|
-
|
|
261
|
-
[OMP 19.1.1](https://github.com/can1357/oh-my-pi/commit/31ffee513f27a01bba7d4dfbe12bae239cdc646a).
|
|
260
|
+
`rpc-ui`, session resumption, extensions, model selection, and process observation. CI tests
|
|
261
|
+
the latest official OMP release. Older versions, such as OMP 18, can be checked by tag.
|
|
262
262
|
`doctor` reports the executable path selected by `command`, its version, and the service
|
|
263
263
|
backend. It does not guarantee login or runtime compatibility. The Host performs actual RPC
|
|
264
264
|
initialization and ownership checks.
|
|
@@ -270,8 +270,8 @@ never confirmed in the old session.
|
|
|
270
270
|
|
|
271
271
|
The default `command: ["omp"]` looks up OMP on PATH. To use a different installation, put
|
|
272
272
|
its OMP path in the first entry of `command`. A relative path is resolved against the
|
|
273
|
-
configuration file's directory, and all lanes use the same path.
|
|
274
|
-
download OMP or build it from source.
|
|
273
|
+
configuration file's directory, and all lanes use the same path. Installing or running
|
|
274
|
+
Superagent does not download OMP or build it from source.
|
|
275
275
|
|
|
276
276
|
### Update an Existing Installation
|
|
277
277
|
|
|
@@ -780,6 +780,43 @@ guarantee cleanup for languages you did not select. The official API methods are
|
|
|
780
780
|
`/` forms as Slack controls. Commands registered in Slack's picker use
|
|
781
781
|
**`/superagent-<command>`**, for example `/superagent-new`, `/superagent-main`,
|
|
782
782
|
and `/superagent-status`, to avoid conflicts with built-in Slack commands.
|
|
783
|
+
Slack [does not allow app slash commands in threads](https://docs.slack.dev/interactivity/implementing-slash-commands/);
|
|
784
|
+
use `!` there. `!model` can select HEAD or the bound lane. Use `!usage-reset`
|
|
785
|
+
or `/superagent-usage-reset` for the saved reset picker; `!usage reset` still works.
|
|
786
|
+
|
|
787
|
+
Set `slack.requireAddressing` to `true` to require a real mention of this bot in
|
|
788
|
+
ordinary workspace-channel messages, including their threads. It defaults to
|
|
789
|
+
`false` and does not affect owner DMs, written controls, installed slash commands,
|
|
790
|
+
or verified card interactions. To specify a workspace, start with a real bot
|
|
791
|
+
mention followed by `cwd: /absolute/path` and put the task on the next line.
|
|
792
|
+
In a Slack thread with several pending workspace
|
|
793
|
+
questions, use the exact `!choose <request-ts> <path or number>` printed by each
|
|
794
|
+
question. An expired `!choose` is ignored and does not start new work. A bare
|
|
795
|
+
number can still be ambiguous just after expiry; use `!choose` when referring to
|
|
796
|
+
a particular question.
|
|
797
|
+
|
|
798
|
+
Slack work already bound to a thread stays there unless explicitly split.
|
|
799
|
+
Set `slack.allowCrossChannelThreads` to `true` to permit explicit HEAD placement in
|
|
800
|
+
another allowlisted channel in the same workspace, where the bot is a member.
|
|
801
|
+
Set `slack.editProgressInPlace` to `true` to edit one confirmed progress message.
|
|
802
|
+
Progress too long for that single Slack status is sent as ordinary output.
|
|
803
|
+
Both settings default to `false`. A bot-created work starter supports an editable
|
|
804
|
+
label and the latest submitted run's status; user-authored roots are not edited.
|
|
805
|
+
If ordered intake is blocked in a bound work thread, bare `!stop` can still pause
|
|
806
|
+
the exact bound lane unless the root links the command to a different or unverified
|
|
807
|
+
target; use `!stop <lane-id>` to be explicit. Slack does not provide
|
|
808
|
+
native thread archive/reopen, forum tag, or bot Huddle media controls. Use
|
|
809
|
+
`!stop`/`!resume` for lane lifecycle, not to archive a thread. Configure bot presence
|
|
810
|
+
in the Slack app settings, not with a chat command.
|
|
811
|
+
|
|
812
|
+
For an original Slack request, `slack_context` reads the current channel name,
|
|
813
|
+
topic, native Slack purpose, and exact thread identity when available.
|
|
814
|
+
`slack_purpose_list`, `slack_purpose_set`, and `slack_purpose_clear` manage
|
|
815
|
+
Superagent's local notes for that channel or thread only; they do not change
|
|
816
|
+
Slack settings or work routing. A follow-up verified to have joined the same HEAD
|
|
817
|
+
answer gets a notice with links to the original follow-up and final answer in the
|
|
818
|
+
same conversation. No notice is sent when an exact message cannot be verified,
|
|
819
|
+
including when the final output only has a file receipt.
|
|
783
820
|
|
|
784
821
|
Command registration needs an **app configuration token**, separate from the bot token and
|
|
785
822
|
the `connections:write` app token. Put it in an environment variable or private credential
|
|
@@ -1639,7 +1676,7 @@ command for every PR. Each level includes the actions allowed by the previous on
|
|
|
1639
1676
|
|
|
1640
1677
|
| Recognized Korean text to send in the parent channel | Equivalent command | Unattended behavior |
|
|
1641
1678
|
| --- | --- | --- |
|
|
1642
|
-
| `무인으로 리뷰만` (“Unattended review only”) | `/cron pr-mode JOB review` | Review in a per-PR
|
|
1679
|
+
| `무인으로 리뷰만` (“Unattended review only”) | `/cron pr-mode JOB review` | Review in a per-PR messenger thread and a tool-free OMP lane, then leave only a GitHub review comment tied to that SHA. Do not submit an approving review. |
|
|
1643
1680
|
| `무인으로 리뷰 후 수정커밋까지` (“Unattended review and fix commits”) | `/cron pr-mode JOB fix` | In addition to reviewing and commenting, create a regular commit only if a fix can be applied safely, then review the new SHA. Do not merge. |
|
|
1644
1681
|
| `무인으로 수정커밋후 머지까지` (“Unattended fix commits and merge”) | `/cron pr-mode JOB merge` | If needed, fix and review again. Perform a regular merge only if the final SHA passes review and independent approval, required CI, and branch protection rules are all satisfied. |
|
|
1645
1682
|
|
|
@@ -1658,7 +1695,9 @@ target, send a new command specifying the repository. Quoted owner messages,
|
|
|
1658
1695
|
edited messages, PR descriptions, and model output are not configuration commands.
|
|
1659
1696
|
For example, to register `dbc-hbin/omp-superagent`, authenticate `gh` on HEAD as
|
|
1660
1697
|
`dbc-hbin` on `github.com` and send the commands below as the configured owner in
|
|
1661
|
-
**
|
|
1698
|
+
**an allowed Discord or Slack parent channel**. On Slack use `!cron` in a new
|
|
1699
|
+
message for PR enrollment, controls, and approval; `/superagent-cron` has no
|
|
1700
|
+
physical message timestamp and cannot authorize PR changes. GitHub organizations, repositories
|
|
1662
1701
|
owned by someone else, DMs, and existing threads are not eligible. Putting the same
|
|
1663
1702
|
instructions in an ordinary `/cron add` prompt will not enable this feature.
|
|
1664
1703
|
|
|
@@ -1687,12 +1726,15 @@ status with `/cron show JOB PR_NUMBER` in the parent channel.
|
|
|
1687
1726
|
is not copied as if it were owner input for each PR. The lane runs only after the
|
|
1688
1727
|
actual thread and delivery of the starter message are verified. If you need to
|
|
1689
1728
|
proceed manually, use `/cron pr-review JOB NUMBER SHA` from the notification. If a
|
|
1690
|
-
thread is already open for the PR, use that thread.
|
|
1729
|
+
thread is already open for the PR, use that thread. On Slack the verified
|
|
1730
|
+
bot alert is itself the root; Superagent does not create a second message
|
|
1731
|
+
to start the thread. Slack approval must follow the last confirmed answer
|
|
1732
|
+
part; a file receipt alone cannot authorize it.
|
|
1691
1733
|
2. **Created thread:** The lane performs a static review only of the changes fetched
|
|
1692
1734
|
from GitHub for that SHA. It does not check out the PR branch on the host or install,
|
|
1693
1735
|
build, or test it. The configured model provider processes the changes sent to the
|
|
1694
1736
|
model. Replies and fix proposals may contain excerpts of the code and can be seen
|
|
1695
|
-
by anyone who can read that
|
|
1737
|
+
by anyone who can read that thread. Check both disclosure boundaries before
|
|
1696
1738
|
registering a private repository. Keep `stateDir` outside the Git checkout.
|
|
1697
1739
|
Restricted mode uses an empty local directory and a stock OMP session with no tools.
|
|
1698
1740
|
If isolation cannot be verified, for example because of custom launch arguments or
|
|
@@ -2428,33 +2470,38 @@ remain isolated. Setting `OMP_TEST_NATIVES_DIR` to a trusted absolute path uses
|
|
|
2428
2470
|
instead of the temporary cache; it is not deleted after the run.
|
|
2429
2471
|
|
|
2430
2472
|
GitHub Actions runs for PRs, `main`, manual dispatches, and `v*` release tags on Ubuntu 24.04
|
|
2431
|
-
and macOS 15 ARM64.
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
`
|
|
2435
|
-
and
|
|
2473
|
+
and macOS 15 ARM64. One lookup selects the latest official OMP tag for both runners. A
|
|
2474
|
+
full rerun repeats the lookup, so the tag can change under the same Actions run ID. When
|
|
2475
|
+
recording verification results, include the run ID, attempt number, and OMP tag from the
|
|
2476
|
+
`Testing stock OMP` log line. Publishing a release requires tests to pass on both runners
|
|
2477
|
+
and package installation to pass on all four platforms, including macOS Intel. Each source
|
|
2478
|
+
runner uses `bash scripts/test-omp.sh <release-tag>`
|
|
2479
|
+
to download the selected official CLI to a temporary directory and verify its SHA-256 and
|
|
2480
|
+
`omp --version`. It reuses the native executables prepared by
|
|
2436
2481
|
`bun install --frozen-lockfile` and puts that CLI at the front of `PATH` only while running the
|
|
2437
|
-
shared test runner. The
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2482
|
+
shared test runner. The download requires internet access, curl, and shasum.
|
|
2483
|
+
Locally, `bun run test:baseline` verifies the SDK-matched CLI without replacing the installed OMP.
|
|
2484
|
+
To check an older release, run `bash scripts/test-omp.sh v18.22.2`, or specify `v18.20.3` to
|
|
2485
|
+
test the older asynchronous task API.
|
|
2441
2486
|
|
|
2442
2487
|
CI caches Rust dependencies, not the project's binaries or test results. Only a
|
|
2443
2488
|
successful `main` push saves the cache. Source tests and package builds use separate
|
|
2444
2489
|
targets; a tagged package build does not restore the dependency cache. All compilation,
|
|
2445
2490
|
tests, linkage checks and package install checks still run on a cache hit.
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
`
|
|
2451
|
-
|
|
2452
|
-
|
|
2491
|
+
The Bun suite compares the Host owner and Gateway with their recorded original behavior.
|
|
2492
|
+
|
|
2493
|
+
**OMP upstream compatibility** runs as part of **CI** every Monday at 04:17 UTC.
|
|
2494
|
+
For the same source tests without packaging or publishing, manually run **CI** with
|
|
2495
|
+
`source_only=true`. Both paths use the same Ubuntu and macOS ARM64 tests and latest
|
|
2496
|
+
OMP lookup as full CI. Missing required capabilities or regressions fail CI without
|
|
2497
|
+
falling back to another version. Reproduce a failing tag locally with
|
|
2498
|
+
`bash scripts/test-omp.sh vX.Y.Z`. A compatibility check alone does not change product
|
|
2499
|
+
support or the SDK lockfile. This check does not verify live
|
|
2453
2500
|
accounts, paid providers, herdr, or real login/reboot, and does not establish support for the
|
|
2454
2501
|
historical same-process TUI attach behavior. See the corresponding Actions run for the
|
|
2455
2502
|
actual result of the latest upstream check. Do not reuse the
|
|
2456
2503
|
[previous release's verification records for stock 18.20.2 and patched 18.20.0](releases/0.1.0.md#verification-records)
|
|
2457
|
-
as evidence for
|
|
2504
|
+
as evidence for later OMP versions or changes.
|
|
2458
2505
|
|
|
2459
2506
|
### Targeted native and omp-superkit regression tests
|
|
2460
2507
|
|
|
@@ -2523,9 +2570,11 @@ and `dist/omp-superagent-<version>.tgz`, plus a `.sha256` for each. The command
|
|
|
2523
2570
|
does not publish anything.
|
|
2524
2571
|
|
|
2525
2572
|
After an approved new version tag is pushed to the remote, CI must pass the Linux and macOS
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2573
|
+
source tests with the selected latest OMP release and a fresh installation of the current npm
|
|
2574
|
+
package without OMP on all four platforms. CI does not install a historical npm predecessor
|
|
2575
|
+
or replay an in-place npm upgrade. CI then runs `bun run release --publish` to publish
|
|
2576
|
+
**the verified artifacts without rebuilding them** to GitHub Releases. A separate npm job
|
|
2577
|
+
downloads the same `.tgz` from that release, verifies
|
|
2529
2578
|
its SHA-256, and publishes it to npm using GitHub Actions OIDC. The version, tag, and commit
|
|
2530
2579
|
must agree, and an ordinary tag push does not overwrite an existing release. Only with
|
|
2531
2580
|
explicit approval to replace an existing release, move its tag to a commit that has already
|
package/docs/OPERATIONS.md
CHANGED
|
@@ -30,6 +30,7 @@ Discord 텍스트로만 받는다.
|
|
|
30
30
|
`lane_inspect`, `lane_message`, `lane_pause`, `lane_resume`, `lane_close`,
|
|
31
31
|
`thread_inspect`, `lane_thread_update`, `messenger_presence`, `lane_watch`, `pr_watch`, `pr_watch_list`,
|
|
32
32
|
`discord_context`, `discord_purpose_list`, `discord_purpose_set`, `discord_purpose_clear`,
|
|
33
|
+
`slack_context`, `slack_purpose_list`, `slack_purpose_set`, `slack_purpose_clear`,
|
|
33
34
|
`decision_list`, `decision_inspect`, `decision_withdraw`, `lane_review_decision`을 사용한다.
|
|
34
35
|
`decision_ask`는 HEAD와 레인 root에서 사용하며 native 자식에는 제공하지 않는다.
|
|
35
36
|
`lane_inspect({})`로 목록을 조회한다. `lane_report`는 레인 root만 사용할 수 있다. 레인과
|
|
@@ -210,8 +211,8 @@ SUPER 스킬 조회·추가 레인·goal·모델 변경·workflow artifact가
|
|
|
210
211
|
현재 소스는 Git, **Bun >= 1.4.4**(`packageManager: bun@1.4.4`)와 로컬 Unix socket을
|
|
211
212
|
사용한다. OMP 없이 패키지를 설치할 수 있다. Host 실행에는 별도로 설치한 stock OMP가
|
|
212
213
|
필요하며, 버전 번호로 차단하지 않고 `rpc-ui`, 세션 재개, 확장, 모델 선택과 프로세스 관측
|
|
213
|
-
인터페이스를 확인한다. OMP
|
|
214
|
-
|
|
214
|
+
인터페이스를 확인한다. 자동 CI는 최신 OMP 정식 릴리스를 검사하며, OMP 18 등 이전 버전은
|
|
215
|
+
태그를 지정해 수동으로 검사할 수 있다.
|
|
215
216
|
`doctor`는 `command`가 고른 실행 파일 경로, 버전, 서비스 백엔드를 보여주며 로그인이나
|
|
216
217
|
런타임 호환성을 보증하지 않는다. Host는 실제 RPC 초기화와 소유권 검사를 거친다.
|
|
217
218
|
18에서 19로 올리기 전에 기존 Host가 맡은 백그라운드 서비스를 확인한다. OMP 19의 사용자별
|
|
@@ -220,7 +221,7 @@ SUPER 스킬 조회·추가 레인·goal·모델 변경·workflow artifact가
|
|
|
220
221
|
|
|
221
222
|
기본 `command: ["omp"]`는 PATH에서 찾는다. 다른 설치를 쓰려면 `command`의 첫 항목에
|
|
222
223
|
그 OMP 경로를 넣는다. 상대 경로는 설정 파일의 디렉터리 기준이며 모든 레인이 같은 경로를
|
|
223
|
-
사용한다.
|
|
224
|
+
사용한다. 제품 설치나 실행 시 OMP를 다운로드하거나 소스에서 빌드하지 않는다.
|
|
224
225
|
|
|
225
226
|
### 기존 설치 업데이트
|
|
226
227
|
|
|
@@ -662,6 +663,34 @@ bun --no-env-file src/cli.ts telegram-commands --config config.local.json --appl
|
|
|
662
663
|
Discord·Telegram의 `/` 표기를 Slack 명령으로 안내하지 않는다.
|
|
663
664
|
등록된 선택기는 `/superagent-new`, `/superagent-main`, `/superagent-status`처럼
|
|
664
665
|
**`/superagent-<명령>`**을 사용해 Slack 기본 명령과 충돌하지 않는다.
|
|
666
|
+
Slack은 [앱 슬래시 명령을 스레드에서 실행할 수 없다](https://docs.slack.dev/interactivity/implementing-slash-commands/).
|
|
667
|
+
스레드에서는 `!`를 쓴다. `!model`에서 HEAD 또는 연결된 레인을 선택할 수 있다.
|
|
668
|
+
리셋 메뉴는 `!usage-reset`, `/superagent-usage-reset`, 기존 `!usage reset`으로 연다.
|
|
669
|
+
|
|
670
|
+
`slack.requireAddressing: true`를 켜면 워크스페이스 채널과 그 스레드에서는 이 봇을 실제로 멘션한
|
|
671
|
+
일반 메시지만 접수한다. 기본값은 `false`이며 소유자 DM, `!` 제어 명령, 등록된 슬래시 명령,
|
|
672
|
+
검증된 카드 조작에는 적용하지 않는다. 작업 폴더를 지정하려면 메시지 첫머리에서 봇을 멘션하고
|
|
673
|
+
`cwd: /절대/경로`를 붙인 뒤, 다음 줄에 작업을 적는다. 같은 스레드에 작업 폴더 질문이 여러 개 있으면
|
|
674
|
+
질문마다 표시된 `!choose <요청 ts> <경로 또는 번호>`를 사용한다. 만료된 `!choose`는 새 작업으로
|
|
675
|
+
실행하지 않는다. 만료 직후의 숫자만 적은 답은 어느 질문을 가리키는지 모호할 수 있으므로,
|
|
676
|
+
특정 질문에 답하려면 `!choose`를 쓴다.
|
|
677
|
+
|
|
678
|
+
연결된 Slack 스레드는 명시적으로 분리하기 전까지 현재 레인을 유지한다.
|
|
679
|
+
`slack.allowCrossChannelThreads: true`는 같은 워크스페이스에서 봇이 가입한 다른 허용 채널로의
|
|
680
|
+
명시적 HEAD 배정을 허용한다. `slack.editProgressInPlace: true`는 전송이 확인된 진행 메시지를
|
|
681
|
+
갱신한다. 상태 메시지 한 건에 담기지 않는 긴 진행 내용은 일반 답변처럼 보낸다.
|
|
682
|
+
두 설정의 기본값은 `false`다. 봇이 만든 시작 메시지에서만 제목과 마지막 실행 상태를 갱신하며
|
|
683
|
+
소유자 메시지는 변경하지 않는다. 연결된 작업 스레드에선 앞선 입력의 처리가 막혀도 대상 레인이
|
|
684
|
+
명확하면 `!stop`으로 중지할 수 있다. 시작 메시지가 배정 질문 등 다른 대상을 가리킬 때는
|
|
685
|
+
`!stop <lane-id>`로 명시한다. Slack에는 스레드 보관·재열기, 포럼 태그,
|
|
686
|
+
봇의 Huddle 음성 입출력 API가 없다. `!stop`/`!resume`은 작업 레인만 제어하며,
|
|
687
|
+
봇 온라인 표시는 Slack 앱 설정에서 관리한다.
|
|
688
|
+
|
|
689
|
+
`slack_context`는 원래 Slack 요청을 기준으로 현재 채널 이름·주제·Slack 자체 목적 및 스레드 ID를
|
|
690
|
+
조회한다. `slack_purpose_list/set/clear`는 해당 채널·스레드에 저장한 Superagent 내부 메모만
|
|
691
|
+
다루며 Slack 설정이나 라우팅을 바꾸지 않는다. 같은 HEAD 실행에 합류했다고 확인된 후속 요청에는
|
|
692
|
+
원래 메시지와 통합 답변 링크를 같은 대화에 남긴다. 최종 출력이 파일로만 전송된 경우처럼 정확한
|
|
693
|
+
메시지를 확인할 수 없으면 링크를 보내지 않는다.
|
|
665
694
|
|
|
666
695
|
명령 등록에는 bot token이나 `connections:write` app token과 별도로 **앱 구성 token**이 필요하다.
|
|
667
696
|
해당 token은 환경변수 또는 private 자격 증명 파일에 넣고, 아래 `NAME`에는 값이 아닌 변수 이름을
|
|
@@ -1386,7 +1415,7 @@ Discord·Telegram에서 `/cron`, Slack의 일반 메시지에서는 `!cron`을
|
|
|
1386
1415
|
|
|
1387
1416
|
| 부모 채널에 보낼 자연어 | 같은 명령 | 무인 동작 |
|
|
1388
1417
|
| --- | --- | --- |
|
|
1389
|
-
| `무인으로 리뷰만` | `/cron pr-mode JOB review` | PR별
|
|
1418
|
+
| `무인으로 리뷰만` | `/cron pr-mode JOB review` | PR별 메신저 스레드와 도구 없는 OMP 레인에서 검토한 뒤, 그 SHA에 GitHub 리뷰 코멘트만 남긴다. 승인 리뷰를 제출하지 않는다. |
|
|
1390
1419
|
| `무인으로 리뷰 후 수정커밋까지` | `/cron pr-mode JOB fix` | 리뷰·코멘트에 더해 안전하게 적용 가능한 수정이 있을 때만 일반 커밋을 넣고 새 SHA를 재검토한다. 병합하지 않는다. |
|
|
1391
1420
|
| `무인으로 수정커밋후 머지까지` | `/cron pr-mode JOB merge` | 수정이 필요하면 수정·재검토한다. 최종 SHA가 검토를 통과하고 독립 승인·필수 CI·보호 규칙이 모두 충족돼야 일반 병합한다. |
|
|
1392
1421
|
|
|
@@ -1399,7 +1428,9 @@ Discord·Telegram에서 `/cron`, Slack의 일반 메시지에서는 `!cron`을
|
|
|
1399
1428
|
이전 명령은 더 최근의 모드를 덮지 않는다. 저장소를 생략한 명령의 대상이 불확실하면
|
|
1400
1429
|
저장소를 명시해 새로 보낸다. 소유자 메시지의 인용, 수정본, PR 본문이나 모델 출력은 설정 명령이 아니다.
|
|
1401
1430
|
예를 들어 `dbc-hbin/omp-superagent`에 적용하려면, `gh`가 `github.com`의 `dbc-hbin`으로
|
|
1402
|
-
인증된 HEAD에서 **허용된 Discord
|
|
1431
|
+
인증된 HEAD에서 **허용된 Discord 또는 Slack 부모 채널**에 설정된 소유자 계정으로 아래 명령을 보낸다.
|
|
1432
|
+
Slack에서 PR을 등록·변경·승인할 때는 새 메시지에 `!cron`을 사용한다. `/superagent-cron` 호출에는
|
|
1433
|
+
실제 메시지 `ts`가 없어 PR 변경을 승인할 수 없다.
|
|
1403
1434
|
GitHub 조직·다른 사람의 저장소·DM·기존 스레드는 등록 대상이 아니다.
|
|
1404
1435
|
일반 `/cron add`에 같은 내용을 프롬프트로 넣어도 이 기능이 활성화되지 않는다.
|
|
1405
1436
|
|
|
@@ -1423,10 +1454,12 @@ GitHub 조직·다른 사람의 저장소·DM·기존 스레드는 등록 대상
|
|
|
1423
1454
|
자동 경로에서 지원하지 않는다. 등록 메시지를 PR별 소유자 입력처럼 복제하지 않는다.
|
|
1424
1455
|
실제 스레드와 시작 메시지 전송을 확인해야 해당 레인이 실행된다. 수동 진행이 필요한
|
|
1425
1456
|
경우 알림의 `/cron pr-review JOB NUMBER SHA`를 사용한다. 이미 열린 PR은 그 스레드를 쓴다.
|
|
1457
|
+
Slack은 전송과 작성자가 확인된 봇 알림 자체를 루트로 쓰며, 새 시작 메시지를 만들지 않는다.
|
|
1458
|
+
Slack의 수동 승인은 답변의 마지막 부분이 전송된 뒤에만 받고, 파일 영수증만 있으면 보류한다.
|
|
1426
1459
|
2. **생성된 스레드:** 레인은 GitHub에서 읽은 해당 SHA의 변경만 정적으로 검토한다.
|
|
1427
1460
|
PR 브랜치를 호스트에 체크아웃하거나 설치·빌드·테스트하지 않는다. 모델에게 전달되는
|
|
1428
1461
|
변경 내용은 설정된 모델 제공자가 처리한다. 답변과 수정 제안에는 코드 일부가 포함될 수 있고
|
|
1429
|
-
해당
|
|
1462
|
+
해당 스레드의 열람자가 볼 수 있다. 비공개 저장소는 등록 전에 두 경계를 확인한다.
|
|
1430
1463
|
`stateDir`은 Git 체크아웃 밖에 두어야 한다. 제한 모드는 비어 있는 로컬 폴더와 도구 없는
|
|
1431
1464
|
stock OMP 세션을 사용한다. 커스텀 실행 인자나 독립 실행 도구가 있는 모델 제공자 등
|
|
1432
1465
|
이 격리를 검증할 수 없는 환경은 일반 코딩 레인으로 대체하지 않고 보류한다.
|
|
@@ -1977,29 +2010,33 @@ standalone CLI를 찾는다. Bun이 앞에 넣은 `node_modules/.bin`은 건너
|
|
|
1977
2010
|
`OMP_TEST_NATIVES_DIR`에 신뢰하는 절대 경로를 직접 지정하면 임시 캐시 대신 사용하며, 이 경로는 실행 후 삭제하지 않는다.
|
|
1978
2011
|
|
|
1979
2012
|
PR, `main`, 수동 실행과 `v*` 릴리즈 태그의 GitHub Actions는 Ubuntu 24.04와 macOS 15 ARM64에서
|
|
1980
|
-
실행한다.
|
|
2013
|
+
실행한다. 한 번 조회한 최신 OMP 정식 릴리스 태그를 두 러너에서 함께 검사한다.
|
|
2014
|
+
전체 재실행 시에는 다시 조회하므로 같은 Actions 실행 ID라도 태그가 달라질 수 있다.
|
|
2015
|
+
검증 결과를 기록할 때는 실행 ID와 시도 번호, `Testing stock OMP` 로그 줄의 OMP 태그를 함께 남긴다.
|
|
1981
2016
|
릴리즈 게시는 양쪽의 테스트와 macOS Intel을 포함한 네 플랫폼의 패키지 설치 검증이 모두 통과해야 진행된다.
|
|
1982
|
-
각 러너는 `
|
|
2017
|
+
각 러너는 `bash scripts/test-omp.sh <release-tag>`로 선택된 공식 CLI를 임시 디렉터리에 받아
|
|
1983
2018
|
SHA-256과 `omp --version`을 확인한다.
|
|
1984
2019
|
`bun install --frozen-lockfile`이 준비한 네이티브 실행 파일을 재사용하며, 공통 테스트 러너를 실행할 때만
|
|
1985
|
-
그 CLI를 `PATH` 앞에 넣는다.
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
2020
|
+
그 CLI를 `PATH` 앞에 넣는다. 다운로드에는 인터넷·curl·shasum이 필요하다.
|
|
2021
|
+
로컬에서 `bun run test:baseline`을 실행하면 기존 OMP를 교체하지 않고 SDK와 같은 버전으로 검증할 수 있다.
|
|
2022
|
+
이전 버전을 검사하려면 `bash scripts/test-omp.sh v18.22.2` 또는 이전 비동기 작업 API를 쓰는
|
|
2023
|
+
`v18.20.3`을 지정한다.
|
|
1989
2024
|
|
|
1990
2025
|
CI는 Rust 의존성만 캐시하며 프로젝트 바이너리나 테스트 결과는 재사용하지 않는다. 성공한
|
|
1991
2026
|
`main` 푸시만 캐시를 저장한다. 소스 테스트와 패키지 빌드의 캐시는 분리하고, 태그의 패키지는
|
|
1992
2027
|
캐시를 복원하지 않고 빌드한다. 캐시가 있어도 프로젝트 컴파일·테스트·링크·설치 검증은 그대로 수행한다.
|
|
2028
|
+
Bun 테스트에서 Host owner와 Gateway의 동작을 기록된 원본과 비교한다.
|
|
1993
2029
|
|
|
1994
|
-
**OMP upstream compatibility**는 매주 월요일 04:17 UTC
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
2030
|
+
**OMP upstream compatibility**는 매주 월요일 04:17 UTC에 **CI**에서 실행한다.
|
|
2031
|
+
패키징·게시 없이 같은 소스 테스트만 수동 실행하려면 **CI**에서 `source_only=true`를 선택한다.
|
|
2032
|
+
두 경로 모두 전체 CI와 같은 태그 조회 및 Ubuntu·macOS ARM64 테스트를 사용한다.
|
|
2033
|
+
필요한 기능이 없거나 회귀가 있으면 다른 버전으로 대체하지 않고 실패한다.
|
|
2034
|
+
실패한 태그는 로컬에서 `bash scripts/test-omp.sh vX.Y.Z`로 재현한다. 호환성 확인만으로
|
|
1998
2035
|
제품의 지원 범위나 SDK lockfile이 바뀌지는 않는다. 이 검사는 실제 계정·유료
|
|
1999
2036
|
제공자·herdr·실제 로그인/재부팅을 검증하지 않으며 과거의 동일 프로세스 TUI attach 지원도
|
|
2000
2037
|
뜻하지 않는다. 최신 upstream 검사의 실제 결과는 해당 Actions 실행에서 확인한다.
|
|
2001
2038
|
[이전 릴리즈의 stock 18.20.2와 패치된 18.20.0 검증 기록](releases/0.1.0.md#verification-records)은
|
|
2002
|
-
|
|
2039
|
+
이후 OMP 버전이나 변경의 증거로 재사용하지 않는다.
|
|
2003
2040
|
|
|
2004
2041
|
### 대상별 native·omp-superkit 회귀
|
|
2005
2042
|
|
|
@@ -2055,9 +2092,11 @@ CI·기준판 테스트·릴리즈 스크립트는 소스 checkout 전용이며
|
|
|
2055
2092
|
`bun pm pack --ignore-scripts`로 준비된 npm 패키지를 만든다. 네이티브 파일·고지와 실행
|
|
2056
2093
|
권한을 확인하며 `dist/omp-superagent-<version>.tar.gz`, `.tgz`와 각각의 `.sha256`을
|
|
2057
2094
|
만든다. 인자 없는 명령은 게시하지 않는다.
|
|
2058
|
-
승인받은 새 버전 태그를 원격에 푸시하면 CI가 Linux/macOS
|
|
2059
|
-
npm
|
|
2060
|
-
|
|
2095
|
+
승인받은 새 버전 태그를 원격에 푸시하면 CI가 선택한 최신 OMP로 Linux/macOS 소스 테스트를 실행한다.
|
|
2096
|
+
과거 npm 릴리즈를 다시 설치하거나 그 버전에서의 제자리 업그레이드를 재현하지는 않는다.
|
|
2097
|
+
이 테스트와 네 플랫폼에서 OMP 없이 현재 npm 패키지를 새로 설치하는 검증이 모두 통과하면
|
|
2098
|
+
`bun run release --publish`로 **검증한 배포 파일을 다시 빌드하지 않고** GitHub Release에 게시한다.
|
|
2099
|
+
이어 별도 npm job이 그 릴리즈의 동일한
|
|
2061
2100
|
`.tgz`를 내려받아 SHA-256을 확인하고 GitHub Actions OIDC로 npm에 게시한다.
|
|
2062
2101
|
버전과 태그·commit이 일치해야 하며 일반 태그 푸시는 기존 릴리즈를 덮어쓰지 않는다.
|
|
2063
2102
|
기존 릴리즈의 교체를 명시적으로 승인받은 경우에만, 이미 검증하고 병합한 커밋으로
|
package/docs/design/execution.md
CHANGED
|
@@ -211,7 +211,7 @@ references](../../skills/head/SKILL.md) for operating policy.
|
|
|
211
211
|
|
|
212
212
|
| Tools | Authority and outcome |
|
|
213
213
|
| --- | --- |
|
|
214
|
-
| `lane_start` | Requires a durable user source, title, existing absolute cwd, exact model or native preset, model reason and kickoff. Accepts a bounded brief, acceptance criteria, and an authorized destination or workflow. At most one new lane per source. Returns the durable ID and admission state, not an execution or completion receipt. |
|
|
214
|
+
| `lane_start` | Requires a durable user source, title, existing absolute cwd, exact model or native preset, model reason and kickoff. Accepts a bounded brief, acceptance criteria, and an authorized destination or workflow. At most one new lane per source. Returns the durable ID and admission state, including a pending kickoff when delivery is delayed, not an execution or completion receipt. |
|
|
215
215
|
| `lane_message` | Explicit follow-up with a real authorized `sourceId` and the target lane. Deduplicate by source and lane; check destination, attachment/quote scope and identity compatibility. For a physical Discord work thread and a source from its exact guild parent, pin the HEAD-reviewed report route to that thread per handoff. This does not rebind the source or resume a paused lane. The same source may reach existing lanes only where those routes and reporting are authorized. |
|
|
216
216
|
| `lane_inspect` | Lists records without a live probe; inspecting a specific lane adds live status where observable, model readback, queue blockers and observed progress. Null actual state is unknown, not a match. |
|
|
217
217
|
| `lane_pause` | Takes a managed lane ID. Persists pause intent and requests an interrupt without claiming owned services or earlier effects are gone. |
|
|
@@ -399,11 +399,12 @@ managed controller negotiates `activity-v1`: each incremental text, thinking or
|
|
|
399
399
|
one ordered activity frame instead of repeating the accumulated payload. The reduction is on that socket,
|
|
400
400
|
not the native pipe or the owner's observation queue. Terminal messages, prompt results, approvals and
|
|
401
401
|
lifecycle events retain their contents. The
|
|
402
|
-
[recorded RPC oracle](../../test/rust-anything/) covers
|
|
403
|
-
readiness, busy refusal, detach/reconnect and a chunked Unicode event.
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
402
|
+
[recorded RPC oracle](../../test/rust-anything/) covers clean and nonzero native exits,
|
|
403
|
+
readiness, protocol refusal, busy refusal, detach/reconnect and a chunked Unicode event.
|
|
404
|
+
The [Bun differential test](../../test/owner-differential.test.ts) compares the current
|
|
405
|
+
owner with those transcripts in CI; it does not replace the stock CLI lifecycle tests.
|
|
406
|
+
From a source checkout with the owner built, run
|
|
407
|
+
`OMP_SUPERAGENT_NATIVE_TEST=1 bun test test/owner-differential.test.ts`.
|
|
407
408
|
|
|
408
409
|
The [Host extension](../../src/host-extension.ts) uses the exact registered
|
|
409
410
|
`AgentSession` and native persistence/lifecycle guards. Use native `wakeSources`
|
|
@@ -679,8 +680,9 @@ the native notice, subject to native settings and Eval availability, with no
|
|
|
679
680
|
extension-command preflight. Installation, profile load, skill application,
|
|
680
681
|
actual native activation, goal creation, and work completion are separate facts.
|
|
681
682
|
|
|
682
|
-
On upgrade, old ULW invocations remain valid in original user text
|
|
683
|
-
|
|
683
|
+
On upgrade, old ULW invocations remain valid in original user text. The bridge
|
|
684
|
+
preserves that text and supplies a canonical selector to a Host that advertises
|
|
685
|
+
the canonical command. New structured choices use only the canonical values above
|
|
684
686
|
(or `jevify`), not legacy aliases or a `skill://` ID. Existing durable workflow
|
|
685
687
|
records, skill IDs, flags and native journal types are not renamed. A resident
|
|
686
688
|
pre-upgrade Host can still receive the mapped old command if it advertises
|
|
@@ -698,10 +700,14 @@ detection recognize both `omp-superkit` and the legacy `omp-ulw` package ID.
|
|
|
698
700
|
Stage the observed revision and its dependencies in a project-owned immutable
|
|
699
701
|
package. Ignore arbitrary dependency lifecycle scripts; run defined
|
|
700
702
|
materialization and an [offline native prompt-composition probe](../../src/managed-super-probe.ts)
|
|
701
|
-
for ordinary and explicitly activated operation.
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
703
|
+
for ordinary and explicitly activated operation. With identical inputs, the probe
|
|
704
|
+
requires the supported model's instructions to differ from the no-model result,
|
|
705
|
+
without depending on preset wording. For the canonical layout the probe checks
|
|
706
|
+
that native discovery resolves the canonical commands and skills, and that
|
|
707
|
+
workflow pointers identify the invoked command and its installed skill. At
|
|
708
|
+
[upstream `7078efa`](https://github.com/dbc-hbin/omp-superkit/commit/7078efa148)
|
|
709
|
+
Superkit removed the legacy aliases and switched pointer tags to canonical
|
|
710
|
+
names. Older layouts still use the full legacy skills. Serialize preparation via
|
|
705
711
|
the update lock and atomically publish `active.json` only after validation.
|
|
706
712
|
Once installed, activate only fast-forward revisions from the same source;
|
|
707
713
|
retain the last valid active revision and report failures. Do not delete older
|
|
@@ -751,18 +757,27 @@ discarding custom commands or enabling disabled extensions.
|
|
|
751
757
|
previously started legacy run on its original host before resolving it.
|
|
752
758
|
See the [operator reference](../OPERATIONS.en.md#scheduled-jobs-cron) for syntax and controls.
|
|
753
759
|
- [Repository PR intake](../../src/cron/cron-pr-intake.ts) is a typed cron job, not
|
|
754
|
-
an executable prompt. Only original configured-owner
|
|
755
|
-
|
|
760
|
+
an executable prompt. Only original configured-owner controls from an allowed
|
|
761
|
+
Discord or Slack parent enroll a repository. Slack PR mutations need a real
|
|
762
|
+
owner message ordered by its physical `ts`, not a native slash invocation.
|
|
763
|
+
Discovery pins the authenticated GitHub owner
|
|
756
764
|
and repository, filters old/self-authored PRs, and records each offer before
|
|
757
765
|
delivery. The separately authenticated registration/mode action sets a bounded
|
|
758
766
|
unattended ceiling: review/comment, safe fix, or protected merge. The confirmed
|
|
759
|
-
bot offer's Discord snowflake identifies the one thread
|
|
767
|
+
bot offer's Discord snowflake or Slack root `ts` identifies the one thread
|
|
768
|
+
for that PR. Slack reuses the verified bot alert without an extra root post.
|
|
769
|
+
Manual Slack mutations must follow the final confirmed message part; a file
|
|
770
|
+
receipt alone cannot prove this order. A
|
|
760
771
|
noninteractive controller receipt admits an exact SHA to a tool-less native
|
|
761
772
|
lane; it is not owner input and cannot serve as a source for manager tools.
|
|
762
773
|
No ordinary scheduled prompt, observed PR text or model answer grants authority.
|
|
763
774
|
Older discovery-only registrations remain manual until the owner opts in.
|
|
764
775
|
[Review control](../../src/pr/pr-intake-review.ts) binds subsequent actions to
|
|
765
776
|
that lane, route, enrollment epoch, review input, delivered answer and SHA.
|
|
777
|
+
A manual Slack review must be a fresh original message physically sent after
|
|
778
|
+
the control that opened the current enrollment epoch, even on history replay.
|
|
779
|
+
An edit to the same verified owner starter does not change its thread identity
|
|
780
|
+
or authorize another command.
|
|
766
781
|
Static review uses a trusted workspace without a contributor checkout. Unlike
|
|
767
782
|
ordinary coding lanes, this restricted local Host must attest a tool-less
|
|
768
783
|
session on a supported native provider before the controller submits patch
|