omp-superagent 0.1.16 → 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 +119 -33
- package/docs/OPERATIONS.md +83 -23
- package/docs/design/execution.md +66 -17
- package/docs/design/messaging.md +134 -47
- package/docs/releases/0.1.17.md +10 -0
- 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/host-owner/bin/omp-host-owner-darwin-arm64 +0 -0
- package/host-owner/bin/omp-host-owner-darwin-x64 +0 -0
- package/host-owner/bin/omp-host-owner-linux-arm64 +0 -0
- package/host-owner/bin/omp-host-owner-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 +49 -4
- 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 +515 -191
- 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 +389 -60
- package/src/worker/worker-checkout.ts +38 -4
- package/src/worker/worker-host.ts +114 -24
- package/src/worker/worker-ledger.ts +28 -9
- package/src/worker/worker-repository.ts +13 -0
- package/src/worker/worker-service.ts +74 -17
- package/src/worker/worker-wire.ts +3 -1
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
|
|
|
@@ -325,9 +325,9 @@ bun --no-env-file "$PROBE" capture gateway "$GATEWAY_SOCKET" > "$EVIDENCE_DIR/ga
|
|
|
325
325
|
`gateway: null`, or a failed probe. Do not wake a sleeping HEAD for evidence.
|
|
326
326
|
- Do not run `stop` or `start` for an instance or lane already confirmed intentionally
|
|
327
327
|
stopped. Use the known prior stop/exit and machine process inventory to establish
|
|
328
|
-
this; a missing socket, saved state, or an unrelated receipt is not proof.
|
|
329
|
-
|
|
330
|
-
|
|
328
|
+
this; a missing socket, saved state, or an unrelated receipt is not proof. If
|
|
329
|
+
capture fails for a previously running instance, follow the recovery path below
|
|
330
|
+
before attempting any replacement.
|
|
331
331
|
|
|
332
332
|
For each affected resident lane, take `id`, `socketPath` and `sessionId` from the
|
|
333
333
|
corresponding `lanes[]` entry and confirm `placement.target`. On the physical machine
|
|
@@ -357,6 +357,33 @@ HEADs, or cannot prove their ownership, leave that installation intact. A HEAD-o
|
|
|
357
357
|
update does not replace worker files or require stopping lanes on unchanged
|
|
358
358
|
installations.
|
|
359
359
|
|
|
360
|
+
#### Recover an unreachable Gateway before upgrading
|
|
361
|
+
|
|
362
|
+
An unreachable `gateway.sock` can outlive a crash. The last
|
|
363
|
+
`main.sock.exit.json` may describe an older Host that used the **same** session ID
|
|
364
|
+
and journal. It does not prove the exit of a later PID. Do not manufacture a
|
|
365
|
+
receipt or use that older one to authorize an update.
|
|
366
|
+
|
|
367
|
+
1. Keep the old installation in place. Establish that the instance was running
|
|
368
|
+
before the incident, was not intentionally stopped, and that no other launch
|
|
369
|
+
or maintenance is in progress. Match the configured state directory to the
|
|
370
|
+
process inventory, including the native HEAD and adapter owner. For a dead
|
|
371
|
+
instance, take a private backup of the state directory before recovery,
|
|
372
|
+
including `coordination.sqlite` and any SQLite sidecars, the session journals,
|
|
373
|
+
and existing receipts. Unix socket files are not needed in the backup.
|
|
374
|
+
2. Use the **old** CLI with the same account and config to run
|
|
375
|
+
`"$OLD_OMP_SA" start --config "$CONFIG"` once. This is recovery, not proof of
|
|
376
|
+
a clean exit. The native launcher checks recorded dead PIDs and socket
|
|
377
|
+
identities before reclaiming stale endpoints. It does not make a live or
|
|
378
|
+
unverified owner, PID reuse, or a pending restart handoff safe to override.
|
|
379
|
+
If it refuses, or HEAD cannot be identified, keep the old installation and
|
|
380
|
+
backup; do not delete sockets, edit ownership records, or force another start.
|
|
381
|
+
3. Verify transport, intake, and HEAD readiness and compare the resumed native
|
|
382
|
+
session ID and journal path with the pre-crash records. Do not resubmit
|
|
383
|
+
uncertain inputs. Take a **new** status and physical-socket capture of the
|
|
384
|
+
recovered owners, re-inventory resident lanes, then follow the normal stop
|
|
385
|
+
procedure. Only the recovered owners' verified exit permits replacement.
|
|
386
|
+
|
|
360
387
|
#### Stop, verify, and replace
|
|
361
388
|
|
|
362
389
|
For a **local** lane, use the private status saved from its managing instance and
|
|
@@ -753,6 +780,43 @@ guarantee cleanup for languages you did not select. The official API methods are
|
|
|
753
780
|
`/` forms as Slack controls. Commands registered in Slack's picker use
|
|
754
781
|
**`/superagent-<command>`**, for example `/superagent-new`, `/superagent-main`,
|
|
755
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.
|
|
756
820
|
|
|
757
821
|
Command registration needs an **app configuration token**, separate from the bot token and
|
|
758
822
|
the `connections:write` app token. Put it in an environment variable or private credential
|
|
@@ -1612,7 +1676,7 @@ command for every PR. Each level includes the actions allowed by the previous on
|
|
|
1612
1676
|
|
|
1613
1677
|
| Recognized Korean text to send in the parent channel | Equivalent command | Unattended behavior |
|
|
1614
1678
|
| --- | --- | --- |
|
|
1615
|
-
| `무인으로 리뷰만` (“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. |
|
|
1616
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. |
|
|
1617
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. |
|
|
1618
1682
|
|
|
@@ -1631,7 +1695,9 @@ target, send a new command specifying the repository. Quoted owner messages,
|
|
|
1631
1695
|
edited messages, PR descriptions, and model output are not configuration commands.
|
|
1632
1696
|
For example, to register `dbc-hbin/omp-superagent`, authenticate `gh` on HEAD as
|
|
1633
1697
|
`dbc-hbin` on `github.com` and send the commands below as the configured owner in
|
|
1634
|
-
**
|
|
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
|
|
1635
1701
|
owned by someone else, DMs, and existing threads are not eligible. Putting the same
|
|
1636
1702
|
instructions in an ordinary `/cron add` prompt will not enable this feature.
|
|
1637
1703
|
|
|
@@ -1660,12 +1726,15 @@ status with `/cron show JOB PR_NUMBER` in the parent channel.
|
|
|
1660
1726
|
is not copied as if it were owner input for each PR. The lane runs only after the
|
|
1661
1727
|
actual thread and delivery of the starter message are verified. If you need to
|
|
1662
1728
|
proceed manually, use `/cron pr-review JOB NUMBER SHA` from the notification. If a
|
|
1663
|
-
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.
|
|
1664
1733
|
2. **Created thread:** The lane performs a static review only of the changes fetched
|
|
1665
1734
|
from GitHub for that SHA. It does not check out the PR branch on the host or install,
|
|
1666
1735
|
build, or test it. The configured model provider processes the changes sent to the
|
|
1667
1736
|
model. Replies and fix proposals may contain excerpts of the code and can be seen
|
|
1668
|
-
by anyone who can read that
|
|
1737
|
+
by anyone who can read that thread. Check both disclosure boundaries before
|
|
1669
1738
|
registering a private repository. Keep `stateDir` outside the Git checkout.
|
|
1670
1739
|
Restricted mode uses an empty local directory and a stock OMP session with no tools.
|
|
1671
1740
|
If isolation cannot be verified, for example because of custom launch arguments or
|
|
@@ -2221,7 +2290,17 @@ the repository by Git origin, not folder name; local edits and ignored files are
|
|
|
2221
2290
|
not synchronized. Start with a clean, committed source tree. The worker reserves
|
|
2222
2291
|
its checkout for one resident lane; it does not fetch, switch branches, or discard
|
|
2223
2292
|
edits. Follow-ups stay on the same worker and native session; disconnecting SSH
|
|
2224
|
-
does not stop that Host.
|
|
2293
|
+
does not stop that Host. After a verified release, a lane can reopen its same
|
|
2294
|
+
session in its recorded worker checkout after ordinary file edits. The original
|
|
2295
|
+
Git revision and checkout identity must still match. Earlier lanes without a
|
|
2296
|
+
recorded physical checkout identity still need the clean checkout check.
|
|
2297
|
+
|
|
2298
|
+
If a worker leaves an untrusted journal, the next scoped probe, placement check,
|
|
2299
|
+
or open can release the checkout only after verifying the exact process exits
|
|
2300
|
+
and that no public socket remains. For a previously attached lane, this also
|
|
2301
|
+
requires proof that guarded shutdown confirmed no native work remained. The old
|
|
2302
|
+
lane stays held for inspection; its journal and permissions are unchanged.
|
|
2303
|
+
Missing proof is not permission to remove a stale-looking checkout claim.
|
|
2225
2304
|
Chat replies and approval cards use the original route; messenger file transfer
|
|
2226
2305
|
is not provided across SSH.
|
|
2227
2306
|
Remote lanes require the normal stock OMP command without extra head-side flags:
|
|
@@ -2391,33 +2470,38 @@ remain isolated. Setting `OMP_TEST_NATIVES_DIR` to a trusted absolute path uses
|
|
|
2391
2470
|
instead of the temporary cache; it is not deleted after the run.
|
|
2392
2471
|
|
|
2393
2472
|
GitHub Actions runs for PRs, `main`, manual dispatches, and `v*` release tags on Ubuntu 24.04
|
|
2394
|
-
and macOS 15 ARM64.
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
`
|
|
2398
|
-
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
|
|
2399
2481
|
`bun install --frozen-lockfile` and puts that CLI at the front of `PATH` only while running the
|
|
2400
|
-
shared test runner. The
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
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.
|
|
2404
2486
|
|
|
2405
2487
|
CI caches Rust dependencies, not the project's binaries or test results. Only a
|
|
2406
2488
|
successful `main` push saves the cache. Source tests and package builds use separate
|
|
2407
2489
|
targets; a tagged package build does not restore the dependency cache. All compilation,
|
|
2408
2490
|
tests, linkage checks and package install checks still run on a cache hit.
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
`
|
|
2414
|
-
|
|
2415
|
-
|
|
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
|
|
2416
2500
|
accounts, paid providers, herdr, or real login/reboot, and does not establish support for the
|
|
2417
2501
|
historical same-process TUI attach behavior. See the corresponding Actions run for the
|
|
2418
2502
|
actual result of the latest upstream check. Do not reuse the
|
|
2419
2503
|
[previous release's verification records for stock 18.20.2 and patched 18.20.0](releases/0.1.0.md#verification-records)
|
|
2420
|
-
as evidence for
|
|
2504
|
+
as evidence for later OMP versions or changes.
|
|
2421
2505
|
|
|
2422
2506
|
### Targeted native and omp-superkit regression tests
|
|
2423
2507
|
|
|
@@ -2486,9 +2570,11 @@ and `dist/omp-superagent-<version>.tgz`, plus a `.sha256` for each. The command
|
|
|
2486
2570
|
does not publish anything.
|
|
2487
2571
|
|
|
2488
2572
|
After an approved new version tag is pushed to the remote, CI must pass the Linux and macOS
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
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
|
|
2492
2578
|
its SHA-256, and publishes it to npm using GitHub Actions OIDC. The version, tag, and commit
|
|
2493
2579
|
must agree, and an ordinary tag push does not overwrite an existing release. Only with
|
|
2494
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
|
|
|
@@ -272,9 +273,8 @@ bun --no-env-file "$PROBE" capture gateway "$GATEWAY_SOCKET" > "$EVIDENCE_DIR/ga
|
|
|
272
273
|
증거를 얻으려고 절전 중인 HEAD를 깨우지 않는다.
|
|
273
274
|
- 의도적으로 이미 중지됐음이 확인된 인스턴스나 레인에는 `stop`도 `start`도 실행하지 않는다.
|
|
274
275
|
이전 정상 종료 증거와 머신의 프로세스 목록을 대조한다. 소켓 부재·저장된 상태·다른 종료
|
|
275
|
-
영수증으로는 충분하지 않다.
|
|
276
|
-
|
|
277
|
-
시작하지 않는다.
|
|
276
|
+
영수증으로는 충분하지 않다. 이전에 실행 중이던 인스턴스의 수집에 실패했다면 파일을
|
|
277
|
+
교체하기 전에 아래 복구 절차를 따른다.
|
|
278
278
|
|
|
279
279
|
교체할 설치본을 쓰는 각 상주 레인은 해당 `lanes[]` 항목의 `id`, `socketPath`, `sessionId`를
|
|
280
280
|
확인하고 `placement.target`을 확인한다. 소켓이 있는 실제 머신에서 현재 소유권을 기록한다.
|
|
@@ -301,6 +301,28 @@ bun --no-env-file "$PROBE" capture host "$LANE_SOCKET" "$LANE_SESSION" --worker
|
|
|
301
301
|
설치본을 그대로 둔다. HEAD 쪽만 업데이트할 때는 바꾸지 않는 설치본의 파일을 교체하거나 그
|
|
302
302
|
레인을 중지할 필요가 없다.
|
|
303
303
|
|
|
304
|
+
#### 응답하지 않는 Gateway부터 복구
|
|
305
|
+
|
|
306
|
+
비정상 종료 뒤에는 `gateway.sock`이 남아 있어도 응답하지 않을 수 있다. 마지막
|
|
307
|
+
`main.sock.exit.json`이 **같은** 세션 ID와 저널 경로를 가리키더라도 PID가 다르면 이전
|
|
308
|
+
Host의 영수증이다. 기존 영수증을 재사용하거나 새로 만들어 업데이트를 정당화하지 않는다.
|
|
309
|
+
|
|
310
|
+
1. 기존 설치를 유지한다. 장애 전 실행 중이었으며 의도적으로 중지된 인스턴스가 아닌지,
|
|
311
|
+
다른 시작이나 점검이 진행 중이지 않은지 확인한다. 설정의 상태 디렉터리를 실제 프로세스
|
|
312
|
+
목록과 대조하며 native HEAD와 어댑터 소유 프로세스도 확인한다. 모두 종료된
|
|
313
|
+
인스턴스는 복구 전에 상태 디렉터리를 비공개로 백업한다. `coordination.sqlite`와 함께
|
|
314
|
+
있는 SQLite 보조 파일, 세션 저널, 기존 영수증을 보존한다. Unix 소켓은 백업할 필요가 없다.
|
|
315
|
+
2. **구버전** CLI에 동일 계정과 설정을 사용해 `"$OLD_OMP_SA" start --config "$CONFIG"`를
|
|
316
|
+
한 번 실행한다. 이는 정상 종료 확인이 아니라 장애 복구다. 네이티브 실행기는 기록된 PID의
|
|
317
|
+
부재와 소켓 식별자를 대조한 뒤 남은 소켓을 정리한다. 살아 있거나 확인되지 않은 소유자,
|
|
318
|
+
PID 재사용, 대기 중인 재시작 인계를 우회하지 않는다. 시작이 거부되거나 HEAD 소유권을
|
|
319
|
+
확인할 수 없다면 기존 설치와 백업을 유지한다. 소켓을 지우거나 소유권 기록을 편집하거나
|
|
320
|
+
강제로 다시 시작하지 않는다.
|
|
321
|
+
3. 전송·접수·HEAD 준비 상태와 복구된 세션 ID·저널 경로가 장애 전 기록과 일치하는지 확인한다.
|
|
322
|
+
결과가 불확실한 입력을 다시 보내지 않는다. 복구된 실제 소켓에서 상태와 소유권을 **새로**
|
|
323
|
+
수집하고 상주 레인을 다시 확인한 뒤 아래 중지 절차를 따른다. 복구한 프로세스의 정상 종료가
|
|
324
|
+
검증된 뒤에만 설치를 교체한다.
|
|
325
|
+
|
|
304
326
|
#### 중지·검증·교체
|
|
305
327
|
|
|
306
328
|
**로컬 레인**은 관리 인스턴스에서 비공개로 저장한 상태 파일과 해당 Host의 수집 파일을 함께
|
|
@@ -641,6 +663,34 @@ bun --no-env-file src/cli.ts telegram-commands --config config.local.json --appl
|
|
|
641
663
|
Discord·Telegram의 `/` 표기를 Slack 명령으로 안내하지 않는다.
|
|
642
664
|
등록된 선택기는 `/superagent-new`, `/superagent-main`, `/superagent-status`처럼
|
|
643
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
|
+
메시지를 확인할 수 없으면 링크를 보내지 않는다.
|
|
644
694
|
|
|
645
695
|
명령 등록에는 bot token이나 `connections:write` app token과 별도로 **앱 구성 token**이 필요하다.
|
|
646
696
|
해당 token은 환경변수 또는 private 자격 증명 파일에 넣고, 아래 `NAME`에는 값이 아닌 변수 이름을
|
|
@@ -1365,7 +1415,7 @@ Discord·Telegram에서 `/cron`, Slack의 일반 메시지에서는 `!cron`을
|
|
|
1365
1415
|
|
|
1366
1416
|
| 부모 채널에 보낼 자연어 | 같은 명령 | 무인 동작 |
|
|
1367
1417
|
| --- | --- | --- |
|
|
1368
|
-
| `무인으로 리뷰만` | `/cron pr-mode JOB review` | PR별
|
|
1418
|
+
| `무인으로 리뷰만` | `/cron pr-mode JOB review` | PR별 메신저 스레드와 도구 없는 OMP 레인에서 검토한 뒤, 그 SHA에 GitHub 리뷰 코멘트만 남긴다. 승인 리뷰를 제출하지 않는다. |
|
|
1369
1419
|
| `무인으로 리뷰 후 수정커밋까지` | `/cron pr-mode JOB fix` | 리뷰·코멘트에 더해 안전하게 적용 가능한 수정이 있을 때만 일반 커밋을 넣고 새 SHA를 재검토한다. 병합하지 않는다. |
|
|
1370
1420
|
| `무인으로 수정커밋후 머지까지` | `/cron pr-mode JOB merge` | 수정이 필요하면 수정·재검토한다. 최종 SHA가 검토를 통과하고 독립 승인·필수 CI·보호 규칙이 모두 충족돼야 일반 병합한다. |
|
|
1371
1421
|
|
|
@@ -1378,7 +1428,9 @@ Discord·Telegram에서 `/cron`, Slack의 일반 메시지에서는 `!cron`을
|
|
|
1378
1428
|
이전 명령은 더 최근의 모드를 덮지 않는다. 저장소를 생략한 명령의 대상이 불확실하면
|
|
1379
1429
|
저장소를 명시해 새로 보낸다. 소유자 메시지의 인용, 수정본, PR 본문이나 모델 출력은 설정 명령이 아니다.
|
|
1380
1430
|
예를 들어 `dbc-hbin/omp-superagent`에 적용하려면, `gh`가 `github.com`의 `dbc-hbin`으로
|
|
1381
|
-
인증된 HEAD에서 **허용된 Discord
|
|
1431
|
+
인증된 HEAD에서 **허용된 Discord 또는 Slack 부모 채널**에 설정된 소유자 계정으로 아래 명령을 보낸다.
|
|
1432
|
+
Slack에서 PR을 등록·변경·승인할 때는 새 메시지에 `!cron`을 사용한다. `/superagent-cron` 호출에는
|
|
1433
|
+
실제 메시지 `ts`가 없어 PR 변경을 승인할 수 없다.
|
|
1382
1434
|
GitHub 조직·다른 사람의 저장소·DM·기존 스레드는 등록 대상이 아니다.
|
|
1383
1435
|
일반 `/cron add`에 같은 내용을 프롬프트로 넣어도 이 기능이 활성화되지 않는다.
|
|
1384
1436
|
|
|
@@ -1402,10 +1454,12 @@ GitHub 조직·다른 사람의 저장소·DM·기존 스레드는 등록 대상
|
|
|
1402
1454
|
자동 경로에서 지원하지 않는다. 등록 메시지를 PR별 소유자 입력처럼 복제하지 않는다.
|
|
1403
1455
|
실제 스레드와 시작 메시지 전송을 확인해야 해당 레인이 실행된다. 수동 진행이 필요한
|
|
1404
1456
|
경우 알림의 `/cron pr-review JOB NUMBER SHA`를 사용한다. 이미 열린 PR은 그 스레드를 쓴다.
|
|
1457
|
+
Slack은 전송과 작성자가 확인된 봇 알림 자체를 루트로 쓰며, 새 시작 메시지를 만들지 않는다.
|
|
1458
|
+
Slack의 수동 승인은 답변의 마지막 부분이 전송된 뒤에만 받고, 파일 영수증만 있으면 보류한다.
|
|
1405
1459
|
2. **생성된 스레드:** 레인은 GitHub에서 읽은 해당 SHA의 변경만 정적으로 검토한다.
|
|
1406
1460
|
PR 브랜치를 호스트에 체크아웃하거나 설치·빌드·테스트하지 않는다. 모델에게 전달되는
|
|
1407
1461
|
변경 내용은 설정된 모델 제공자가 처리한다. 답변과 수정 제안에는 코드 일부가 포함될 수 있고
|
|
1408
|
-
해당
|
|
1462
|
+
해당 스레드의 열람자가 볼 수 있다. 비공개 저장소는 등록 전에 두 경계를 확인한다.
|
|
1409
1463
|
`stateDir`은 Git 체크아웃 밖에 두어야 한다. 제한 모드는 비어 있는 로컬 폴더와 도구 없는
|
|
1410
1464
|
stock OMP 세션을 사용한다. 커스텀 실행 인자나 독립 실행 도구가 있는 모델 제공자 등
|
|
1411
1465
|
이 격리를 검증할 수 없는 환경은 일반 코딩 레인으로 대체하지 않고 보류한다.
|
|
@@ -1956,29 +2010,33 @@ standalone CLI를 찾는다. Bun이 앞에 넣은 `node_modules/.bin`은 건너
|
|
|
1956
2010
|
`OMP_TEST_NATIVES_DIR`에 신뢰하는 절대 경로를 직접 지정하면 임시 캐시 대신 사용하며, 이 경로는 실행 후 삭제하지 않는다.
|
|
1957
2011
|
|
|
1958
2012
|
PR, `main`, 수동 실행과 `v*` 릴리즈 태그의 GitHub Actions는 Ubuntu 24.04와 macOS 15 ARM64에서
|
|
1959
|
-
실행한다.
|
|
2013
|
+
실행한다. 한 번 조회한 최신 OMP 정식 릴리스 태그를 두 러너에서 함께 검사한다.
|
|
2014
|
+
전체 재실행 시에는 다시 조회하므로 같은 Actions 실행 ID라도 태그가 달라질 수 있다.
|
|
2015
|
+
검증 결과를 기록할 때는 실행 ID와 시도 번호, `Testing stock OMP` 로그 줄의 OMP 태그를 함께 남긴다.
|
|
1960
2016
|
릴리즈 게시는 양쪽의 테스트와 macOS Intel을 포함한 네 플랫폼의 패키지 설치 검증이 모두 통과해야 진행된다.
|
|
1961
|
-
각 러너는 `
|
|
2017
|
+
각 러너는 `bash scripts/test-omp.sh <release-tag>`로 선택된 공식 CLI를 임시 디렉터리에 받아
|
|
1962
2018
|
SHA-256과 `omp --version`을 확인한다.
|
|
1963
2019
|
`bun install --frozen-lockfile`이 준비한 네이티브 실행 파일을 재사용하며, 공통 테스트 러너를 실행할 때만
|
|
1964
|
-
그 CLI를 `PATH` 앞에 넣는다.
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
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`을 지정한다.
|
|
1968
2024
|
|
|
1969
2025
|
CI는 Rust 의존성만 캐시하며 프로젝트 바이너리나 테스트 결과는 재사용하지 않는다. 성공한
|
|
1970
2026
|
`main` 푸시만 캐시를 저장한다. 소스 테스트와 패키지 빌드의 캐시는 분리하고, 태그의 패키지는
|
|
1971
2027
|
캐시를 복원하지 않고 빌드한다. 캐시가 있어도 프로젝트 컴파일·테스트·링크·설치 검증은 그대로 수행한다.
|
|
2028
|
+
Bun 테스트에서 Host owner와 Gateway의 동작을 기록된 원본과 비교한다.
|
|
1972
2029
|
|
|
1973
|
-
**OMP upstream compatibility**는 매주 월요일 04:17 UTC
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
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`로 재현한다. 호환성 확인만으로
|
|
1977
2035
|
제품의 지원 범위나 SDK lockfile이 바뀌지는 않는다. 이 검사는 실제 계정·유료
|
|
1978
2036
|
제공자·herdr·실제 로그인/재부팅을 검증하지 않으며 과거의 동일 프로세스 TUI attach 지원도
|
|
1979
2037
|
뜻하지 않는다. 최신 upstream 검사의 실제 결과는 해당 Actions 실행에서 확인한다.
|
|
1980
2038
|
[이전 릴리즈의 stock 18.20.2와 패치된 18.20.0 검증 기록](releases/0.1.0.md#verification-records)은
|
|
1981
|
-
|
|
2039
|
+
이후 OMP 버전이나 변경의 증거로 재사용하지 않는다.
|
|
1982
2040
|
|
|
1983
2041
|
### 대상별 native·omp-superkit 회귀
|
|
1984
2042
|
|
|
@@ -2034,9 +2092,11 @@ CI·기준판 테스트·릴리즈 스크립트는 소스 checkout 전용이며
|
|
|
2034
2092
|
`bun pm pack --ignore-scripts`로 준비된 npm 패키지를 만든다. 네이티브 파일·고지와 실행
|
|
2035
2093
|
권한을 확인하며 `dist/omp-superagent-<version>.tar.gz`, `.tgz`와 각각의 `.sha256`을
|
|
2036
2094
|
만든다. 인자 없는 명령은 게시하지 않는다.
|
|
2037
|
-
승인받은 새 버전 태그를 원격에 푸시하면 CI가 Linux/macOS
|
|
2038
|
-
npm
|
|
2039
|
-
|
|
2095
|
+
승인받은 새 버전 태그를 원격에 푸시하면 CI가 선택한 최신 OMP로 Linux/macOS 소스 테스트를 실행한다.
|
|
2096
|
+
과거 npm 릴리즈를 다시 설치하거나 그 버전에서의 제자리 업그레이드를 재현하지는 않는다.
|
|
2097
|
+
이 테스트와 네 플랫폼에서 OMP 없이 현재 npm 패키지를 새로 설치하는 검증이 모두 통과하면
|
|
2098
|
+
`bun run release --publish`로 **검증한 배포 파일을 다시 빌드하지 않고** GitHub Release에 게시한다.
|
|
2099
|
+
이어 별도 npm job이 그 릴리즈의 동일한
|
|
2040
2100
|
`.tgz`를 내려받아 SHA-256을 확인하고 GitHub Actions OIDC로 npm에 게시한다.
|
|
2041
2101
|
버전과 태그·commit이 일치해야 하며 일반 태그 푸시는 기존 릴리즈를 덮어쓰지 않는다.
|
|
2042
2102
|
기존 릴리즈의 교체를 명시적으로 승인받은 경우에만, 이미 검증하고 병합한 커밋으로
|