omp-superagent 0.1.18 โ 0.1.19
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/docs/OPERATIONS.en.md +127 -30
- package/docs/OPERATIONS.md +114 -27
- package/docs/design/execution.md +90 -23
- package/docs/design/messaging.md +34 -2
- package/docs/releases/0.1.19.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 +4 -3
- package/skills/head/references/model-selection.md +8 -22
- package/skills/head/references/routing.md +19 -11
- package/skills/lane/SKILL.md +24 -76
- package/skills/lane/references/workflow.md +7 -94
- package/src/cli.ts +36 -16
- package/src/config/config.ts +6 -2
- package/src/contracts.ts +20 -4
- package/src/extension.ts +10 -5
- package/src/host-extension.ts +76 -8
- package/src/lane/lane-report.ts +1 -1
- package/src/lane/lane-rows.ts +2 -1
- package/src/lane-extension.ts +4 -21
- package/src/messaging/result-attachment.ts +77 -19
- package/src/messaging/written-directives.ts +56 -0
- package/src/omp/exit-record.ts +27 -0
- package/src/omp/host-protocol.ts +20 -0
- package/src/omp/host.ts +73 -20
- package/src/omp/installed-omp.ts +15 -12
- package/src/omp/managed-super.ts +135 -65
- package/src/routing/topic-request.ts +7 -4
- package/src/runtime/controller.ts +512 -165
- package/src/runtime/inbound-attachments.ts +70 -0
- package/src/runtime/local-host-fence.ts +85 -0
- package/src/runtime/model-journal.ts +14 -9
- package/src/runtime/native-frames.ts +5 -1
- package/src/runtime/result-attachments.ts +151 -24
- package/src/runtime/worker-result-download.ts +36 -0
- package/src/storage/store.ts +79 -26
- package/src/worker/worker-checkout.ts +89 -9
- package/src/worker/worker-destination.ts +8 -7
- package/src/worker/worker-doctor.ts +29 -9
- package/src/worker/worker-enrollment.ts +44 -12
- package/src/worker/worker-git-startup.ts +157 -0
- package/src/worker/worker-host.ts +16 -26
- package/src/worker/worker-ledger.ts +42 -18
- package/src/worker/worker-placement-intent.ts +13 -0
- package/src/worker/worker-placement.ts +204 -28
- package/src/worker/worker-profile.ts +18 -65
- package/src/worker/worker-project-startup.ts +106 -0
- package/src/worker/worker-registration.ts +85 -30
- package/src/worker/worker-repository.ts +55 -6
- package/src/worker/worker-request.ts +13 -6
- package/src/worker/worker-result-attachments.ts +185 -0
- package/src/worker/worker-result-wire.ts +12 -0
- package/src/worker/worker-service.ts +51 -23
- package/src/worker/worker-trust.ts +19 -4
- package/src/worker/worker-wire.ts +47 -14
- package/upstream/super.json +2 -3
package/docs/OPERATIONS.en.md
CHANGED
|
@@ -239,9 +239,8 @@ entries that were manually changed or deleted, other presets, and entries shadow
|
|
|
239
239
|
higher-precedence configuration are not overwritten. Model and preset snapshots held by
|
|
240
240
|
the running head and existing lanes remain unchanged.
|
|
241
241
|
|
|
242
|
-
The head
|
|
243
|
-
|
|
244
|
-
Consultation is skill policy, not a runtime gate requiring a receipt for every invocation.
|
|
242
|
+
The head selects an exact model or preset. A judge comparison and a written
|
|
243
|
+
selection note are optional for new lanes; neither is needed to start ordinary work.
|
|
245
244
|
The lane's selection is stored as a full preset snapshot and does not change on later
|
|
246
245
|
preset edits or resume. Availability or identity drift puts the lane on hold without
|
|
247
246
|
automatic substitution. Request an explicit model change for an idle lane only through
|
|
@@ -537,21 +536,29 @@ previous layout still work. To prepare only omp-superkit again, run:
|
|
|
537
536
|
bun run prepare:ulw
|
|
538
537
|
```
|
|
539
538
|
|
|
540
|
-
`upstream/super.json` specifies the official
|
|
541
|
-
Installation checks
|
|
539
|
+
`upstream/super.json` specifies the official GitHub release source and
|
|
540
|
+
`checkIntervalMs: 3600000` (one hour). Installation checks GitHub's **latest stable
|
|
541
|
+
release** and verifies its packaged ZIP against the published SHA-256. Unreleased
|
|
542
|
+
commits are not installed. A production Gateway needs a
|
|
542
543
|
valid active installation before startup. Once it confirms that, it starts IPC and the
|
|
543
|
-
head first, checks the remote in the background, and then checks hourly for new
|
|
544
|
+
head first, checks the remote in the background, and then checks hourly for new releases
|
|
544
545
|
to prepare and activate. A slow or unreachable upstream does not delay startup if the
|
|
545
546
|
Gateway already has a valid active installation. Ordinary code checks for updates; this
|
|
546
547
|
is not a model watchdog, does not run a work lane, and does not authorize messenger bot
|
|
547
|
-
login.
|
|
548
|
+
login. Preparation needs `curl`, `git`, and `unzip` on PATH, and network access for
|
|
549
|
+
GitHub and any package dependencies. The process does not modify the
|
|
548
550
|
user's omp-superkit checkout, global OMP installation or configuration, or shared prompt
|
|
549
551
|
sources.
|
|
550
552
|
|
|
553
|
+
If GitHub limits anonymous API requests, set `OMP_SUPERAGENT_SUPERKIT_GITHUB_TOKEN`
|
|
554
|
+
for preparation to a GitHub token with read access to the public release metadata.
|
|
555
|
+
It is used only for the official metadata endpoint, not the ZIP download.
|
|
556
|
+
|
|
551
557
|
Only an immutable revision that passes preparation and the offline composition probe is
|
|
552
|
-
activated, and activation is atomic.
|
|
553
|
-
|
|
554
|
-
|
|
558
|
+
activated, and activation is atomic. An existing commit-based installation remains
|
|
559
|
+
usable. The next release must come from the same remote and tag the active commit or
|
|
560
|
+
a descendant; this also applies across the official `omp-ulw` โ `omp-superkit` rename.
|
|
561
|
+
Failures, rewinds, and divergence leave the previous package active.
|
|
555
562
|
See the [design](design/execution.md#managed-omp-superkit-integration) for the lock, staging,
|
|
556
563
|
and probe contracts. Do not bypass them by manually editing the managed pointer or lock.
|
|
557
564
|
If there is no valid active revision, `start` fails before activating adapters. Recover
|
|
@@ -564,11 +571,11 @@ To check installation status without network access, run:
|
|
|
564
571
|
bun run prepare:ulw -- --status
|
|
565
572
|
```
|
|
566
573
|
|
|
567
|
-
The Gateway status response's `ulw` fields
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
574
|
+
The Gateway status response's `ulw` fields `releaseTag`, `revision`, and `packagePath`
|
|
575
|
+
identify the **active package the next new Host will use**, not the version of every
|
|
576
|
+
running Host. `releaseTag` is null for a legacy commit-based installation.
|
|
577
|
+
`upstreamReleaseTag` and `upstreamRevision` describe the last remote check; read them
|
|
578
|
+
alongside `checkedAt`, `error`, and `updating`. `injected` appears only for test injection. A failed or
|
|
572
579
|
unperformed remote check does not show as a confirmed match with the latest version.
|
|
573
580
|
In `omp-sa status --config FILE`, `gateway.head.loadedSuperkitPath` is the package path
|
|
574
581
|
verified when the connected head's actual OMP session started. If it differs from
|
|
@@ -970,6 +977,15 @@ also shows uncertain IDs for earlier inputs or inputs joined to the current exec
|
|
|
970
977
|
and any runtime or kickoff blocks. `pending` does not guarantee native delivery or
|
|
971
978
|
execution.
|
|
972
979
|
|
|
980
|
+
When admission waits for `maxHosts`, `queueHolds.capacity` reports the last
|
|
981
|
+
completed admission check: resident count (including HEAD), limit, and `unverifiedLocalLaneIds`.
|
|
982
|
+
Inspect those lanes individually. `localFence: "journal-unverified"` means
|
|
983
|
+
HEAD verified a dead local Host and released only its slot; the original
|
|
984
|
+
journal, approvals and inputs remain held. Use a new lane for independent
|
|
985
|
+
work. Do not rename the socket, edit the ledger, or replay uncertain input.
|
|
986
|
+
An unknown owner, including an older installation with neither a recorded
|
|
987
|
+
handshake nor a matching fresh exit receipt, continues to count.
|
|
988
|
+
|
|
973
989
|
Elapsed time is calculated at query time and is null if the clock moves backward. Only
|
|
974
990
|
the root lane's `lane_report` selects and hashes actual files or tool results and records
|
|
975
991
|
them in the native journal. In `eval`, finish the report cell before entering a long
|
|
@@ -2247,16 +2263,23 @@ checkout, use the source checkout instructions in [Local preparation](#1-local-p
|
|
|
2247
2263
|
Configure the worker account's own OMP provider access (not a shell-command
|
|
2248
2264
|
API key or remote auth broker) and enable its native
|
|
2249
2265
|
memory backend (for example `omp config set memory.backend mnemopi` if none
|
|
2250
|
-
is enabled).
|
|
2251
|
-
**at the requested commit**.
|
|
2266
|
+
is enabled). Choose the repository to enroll. For reproducible placement (`--repo`),
|
|
2267
|
+
prepare a clean checkout **at the requested commit**. To work on the worker's
|
|
2268
|
+
existing files, including uncommitted work, choose a current-checkout mode below. Enable **OpenSSH
|
|
2252
2269
|
server** for this account over your private network (e.g. a tailnet). The
|
|
2253
2270
|
endpoint must enforce OpenSSH `authorized_keys` forced commands; Tailscale
|
|
2254
2271
|
SSH's own login policy is not a substitute. No public port, second head,
|
|
2255
2272
|
`omp-sa setup` or `omp-sa start` is needed on the worker.
|
|
2256
2273
|
2. **On the head:** verify the worker's SSH host-key fingerprint with its operator
|
|
2257
2274
|
and trust it in the head account's `known_hosts`. Use a directly resolvable DNS
|
|
2258
|
-
name/IP, not a nickname from `~/.ssh/config`.
|
|
2259
|
-
|
|
2275
|
+
name/IP, not a nickname from `~/.ssh/config`. To route through the head's
|
|
2276
|
+
local Tailscale client instead of system DNS/TCP, use `tailscale://dev@linux-box:2222`.
|
|
2277
|
+
This uses `tailscale nc` as a byte pipe; it is **not** Tailscale SSH login.
|
|
2278
|
+
IPv6 literals use brackets, e.g. `dev@[fd00::42]:2222`. If Tailscale SSH handles port 22,
|
|
2279
|
+
use an OpenSSH port on the private network. Alternatively, an operator can
|
|
2280
|
+
expose an existing loopback OpenSSH listener through a tailnet-only TCP forward
|
|
2281
|
+
(Tailscale Serve), without moving its listening port. Restrict the exposed
|
|
2282
|
+
port to the intended client in the tailnet access policy. Pin the OpenSSH host key as
|
|
2260
2283
|
`[host]:port` in `known_hosts`, and use `dev@linux-box:port` in both `worker add`
|
|
2261
2284
|
calls. For the default SSH port:
|
|
2262
2285
|
```sh
|
|
@@ -2267,6 +2290,18 @@ checkout, use the source checkout instructions in [Local preparation](#1-local-p
|
|
|
2267
2290
|
```sh
|
|
2268
2291
|
omp-sa worker init --head-key 'ssh-ed25519 โฆ' --repo "$HOME/src/my-app"
|
|
2269
2292
|
```
|
|
2293
|
+
Choose a flag **per checkout**, when authorizing the key:
|
|
2294
|
+
|
|
2295
|
+
| Flag | What a new lane can use |
|
|
2296
|
+
| --- | --- |
|
|
2297
|
+
| `--repo PATH` | The exact, clean commit matched to the head. |
|
|
2298
|
+
| `--current-repo PATH` | Also the current contents on the worker, including staged, unstaged and untracked files, without copying or resetting them. Normal startup restrictions apply. |
|
|
2299
|
+
| `--trusted-repo PATH` | Also permits the supported project settings, filters and submodules described below. Use only for code the worker operator trusts. |
|
|
2300
|
+
|
|
2301
|
+
To run simultaneous lanes in **different, non-overlapping** enrolled repositories,
|
|
2302
|
+
pass `--capacity N` here (default `1`, at most the number of repositories).
|
|
2303
|
+
Each physical checkout still admits only one resident writer. A repeated init
|
|
2304
|
+
with a different policy does not broaden an existing key's permissions.
|
|
2270
2305
|
This authorizes a dedicated forced-command key in that account's
|
|
2271
2306
|
`~/.ssh/authorized_keys`. Do not copy the head's private key, bot tokens or
|
|
2272
2307
|
configuration. Use a dedicated OS account if the worker should not have access
|
|
@@ -2277,17 +2312,65 @@ checkout, use the source checkout instructions in [Local preparation](#1-local-p
|
|
|
2277
2312
|
repeat `worker add` with `--default --local-repo /path/on/head/my-app`.
|
|
2278
2313
|
Omitting `--local-repo` uses the configured `headCwd`. Other checkouts with
|
|
2279
2314
|
the same Git origin do not inherit permission to send ordinary tasks there.
|
|
2315
|
+
To work in the **worker's current files by default** instead, use this on the
|
|
2316
|
+
head after enrolling that repository with `--current-repo` or `--trusted-repo`:
|
|
2317
|
+
```sh
|
|
2318
|
+
omp-sa worker add dev@linux-box --default-current --local-repo /path/on/head/my-app --config ./config.local.json
|
|
2319
|
+
```
|
|
2320
|
+
New ordinary requests for that physical head checkout now use the worker's
|
|
2321
|
+
files without a special chat directive. You can register a path through a
|
|
2322
|
+
symlink. If you later point it at another checkout, reselect the intended
|
|
2323
|
+
default explicitly; `worker doctor` will report the change. If the binding cannot be verified,
|
|
2324
|
+
placement fails rather than running against other files. Explicit local
|
|
2325
|
+
placement opts out. Existing defaults and previously bound lanes do not change
|
|
2326
|
+
just because the software was upgraded. If an older enrollment recorded only
|
|
2327
|
+
the physical directory, repeat `worker add --default-current` with the alias
|
|
2328
|
+
before retargeting it; its original spelling cannot be recovered from the old record.
|
|
2280
2329
|
|
|
2281
2330
|
Use `omp-sa worker list --config ./config.local.json` to see verified enrollments
|
|
2282
2331
|
without contacting the workers. To check one now, run
|
|
2283
2332
|
`omp-sa worker doctor dev@linux-box --config ./config.local.json` using the exact
|
|
2284
2333
|
enrolled destination, including its port if specified. It checks the worker identity
|
|
2285
|
-
and available slots.
|
|
2286
|
-
|
|
2334
|
+
and available slots. It checks a default's workspace policy: matching commit
|
|
2335
|
+
for `--default`, or the original local checkout and currently verified worker
|
|
2336
|
+
checkout for `--default-current`. A blocked check exits nonzero; neither command starts a lane.
|
|
2337
|
+
|
|
2338
|
+
Now ask for a remote lane or name the required platform in chat. Ordinary exact
|
|
2339
|
+
placement matches the repository by Git origin, not folder name, and requires a
|
|
2340
|
+
clean, committed source tree. To select the worker's own files for a single request,
|
|
2341
|
+
send the following to HEAD. Copy the worker ID and repository ID from `worker list`;
|
|
2342
|
+
append the relative subdirectory to the first line only if not working at the root.
|
|
2343
|
+
|
|
2344
|
+
```text
|
|
2345
|
+
/head worker-current: WORKER_ID REPO_ID
|
|
2346
|
+
attach: reports/test-results.txt
|
|
2347
|
+
Run the tests against the worker's uncommitted changes and send me the report.
|
|
2348
|
+
```
|
|
2287
2349
|
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2350
|
+
The `attach:` line is optional. Write both control lines yourself, not in a
|
|
2351
|
+
quote or forward. You can attach input files to the same message. The result
|
|
2352
|
+
file is relative to the selected **worker** directory. An exact model ID
|
|
2353
|
+
available only in the worker profile can be used there; the worker verifies
|
|
2354
|
+
the selected model before starting the request. An already-open lane in
|
|
2355
|
+
that worker directory can handle the request; no additional registration or
|
|
2356
|
+
second copy of the selector is needed. If an older Slack or
|
|
2357
|
+
Telegram receipt cannot show that you wrote the directive, replaying the
|
|
2358
|
+
message will not grant permission. Check whether the earlier request ran or
|
|
2359
|
+
sent a file before sending a new instruction.
|
|
2360
|
+
|
|
2361
|
+
The head needs a verified local directory for the same repository and relative
|
|
2362
|
+
subdirectory, but the commits and working files need not match in this mode.
|
|
2363
|
+
The lane pins the worker's actual base commit and physical directories. A
|
|
2364
|
+
different checkout or base is not a continuation. **This does not sync files.**
|
|
2365
|
+
If the changes exist only on the head, send the specific files or a reviewed
|
|
2366
|
+
patch as attachments, or prepare the worker checkout through your own authorized
|
|
2367
|
+
file-sharing workflow before opening it. For example, attach a reviewed patch
|
|
2368
|
+
and ask the lane to run `git apply --check` in its checkout before applying it;
|
|
2369
|
+
an overlapping worker edit is a conflict, not permission to overwrite it.
|
|
2370
|
+
Send a new untracked file explicitly if it is not in the patch. Do not send
|
|
2371
|
+
dotenv, credentials or a whole home directory. An `ovnfs attach` view without a
|
|
2372
|
+
physical `.git` directory is not itself an enrollable Git checkout. There is no automatic copy back.
|
|
2373
|
+
The worker reserves
|
|
2291
2374
|
its checkout for one resident lane; it does not fetch, switch branches, or discard
|
|
2292
2375
|
edits. Follow-ups stay on the same worker and native session; disconnecting SSH
|
|
2293
2376
|
does not stop that Host. After a verified release, a lane can reopen its same
|
|
@@ -2301,14 +2384,28 @@ and that no public socket remains. For a previously attached lane, this also
|
|
|
2301
2384
|
requires proof that guarded shutdown confirmed no native work remained. The old
|
|
2302
2385
|
lane stays held for inspection; its journal and permissions are unchanged.
|
|
2303
2386
|
Missing proof is not permission to remove a stale-looking checkout claim.
|
|
2304
|
-
Chat replies and approval cards use the original route
|
|
2305
|
-
|
|
2387
|
+
Chat replies and approval cards use the original route. Supported messenger
|
|
2388
|
+
attachments travel as verified bytes over the enrolled connection, not as CDN
|
|
2389
|
+
links, bot credentials or head-local paths. Use matching builds at both ends.
|
|
2390
|
+
To receive a result in an existing worker lane, start the owner message with
|
|
2391
|
+
`attach: relative/path` on its own line. The named regular file comes from the worker,
|
|
2392
|
+
not a same-name file on the head; the local 8 MiB limit and route checks apply.
|
|
2306
2393
|
Remote lanes require the normal stock OMP command without extra head-side flags:
|
|
2307
2394
|
custom tool/profile/approval flags are never silently removed to run remotely.
|
|
2308
|
-
Use a dedicated worker OMP profile without ambient plugins.
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2395
|
+
Use a dedicated worker OMP profile without ambient plugins. With `--trusted-repo`
|
|
2396
|
+
and current placement, owned regular `.env` files may remain for the project's
|
|
2397
|
+
own tools; the worker does not load them as Host credentials. The selected
|
|
2398
|
+
directory's `.omp/config.yml` or `.omp/settings.json` can provide `modelRoles`
|
|
2399
|
+
and `defaultThinkingLevel`. A project role set to `null` inherits the worker
|
|
2400
|
+
profile's role, as it does in local OMP. Selecting an exact lane model changes only the
|
|
2401
|
+
`default` role; a named preset still supplies its own role map. `.omp/README.md`
|
|
2402
|
+
and `.omp/.gitignore` may remain alongside these settings. Ordinary fetch, pull
|
|
2403
|
+
and push preferences, local Git filters and validated submodules do not need to
|
|
2404
|
+
be removed; verification does not execute filters or fetch/update modules.
|
|
2405
|
+
Use stored worker model credentials, not provider keys inherited through the
|
|
2406
|
+
environment, in this mode. This is **not** permission for ambient project plugins,
|
|
2407
|
+
MCP servers, Git hooks/includes, arbitrary `.omp` settings or linked worktrees.
|
|
2408
|
+
An operator who needs a custom model extension can list its trusted,
|
|
2312
2409
|
absolute module path in a private `worker-extensions.json` array in the worker's
|
|
2313
2410
|
OMP agent directory (`0600`, outside enrolled checkouts).
|
|
2314
2411
|
Check `omp-sa status --config ./config.local.json` for the saved placement.
|
package/docs/OPERATIONS.md
CHANGED
|
@@ -196,8 +196,8 @@ SUPER ์คํฌ ์กฐํยท์ถ๊ฐ ๋ ์ธยทgoalยท๋ชจ๋ธ ๋ณ๊ฒฝยทworkflow artifact๊ฐ
|
|
|
196
196
|
๋ค๋ฅธ ํ๋ฆฌ์
, ์์ ์ค์ ์ด ๊ฐ๋ฆฐ ํญ๋ชฉ์ ๋ฎ์ด์ฐ์ง ์๋๋ค. ์ด๋ฏธ ์คํ ์ค์ธ ํค๋์ ๊ธฐ์กด
|
|
197
197
|
๋ ์ธ์ด ๋ณด์ ํ ๋ชจ๋ธยทํ๋ฆฌ์
์ค๋
์ท์ ๋ฐ๋์ง ์๋๋ค.
|
|
198
198
|
|
|
199
|
-
ํค๋๋
|
|
200
|
-
|
|
199
|
+
ํค๋๋ ์ ํํ ๋ชจ๋ธ์ด๋ ํ๋ฆฌ์
์ ์ง์ ํฉ๋๋ค. ์ ๋ ์ธ์ ์ด ๋ ๋ชจ๋ธ ๋น๊ต๋ฅผ ์ํ
|
|
200
|
+
judge ํธ์ถ์ด๋ ์ ํ ์ฌ์ ์์ฑ์ ํ์๊ฐ ์๋๋๋ค.
|
|
201
201
|
๋ ์ธ ์ ํ์ ์ ์ฒด preset snapshot์ผ๋ก ์ ์งํ๋ฉฐ ์ดํ ํ๋ฆฌ์
ํธ์งยท์ฌ๊ฐ๋ก ๋ฐ๋์ง ์๋๋ค.
|
|
202
202
|
๊ฐ์ฉ์ฑยทidentity drift๋ ์๋ ๋์ฒด ์์ด ๋ณด๋ฅํ๋ค. ๋ช
์์ ์ ํด ๋ ์ธ ๋ณ๊ฒฝ์ ํค๋์
|
|
203
203
|
`lane_set_model`๋ก๋ง ์์ฒญํ๋ฉฐ ์ ์ญ ์ค์ ยทํค๋ยท๋ค๋ฅธ ๋ ์ธยทpause/uncertain ์ํ๋ฅผ ๋ฐ๊พธ์ง ์๋๋ค.
|
|
@@ -464,17 +464,23 @@ export PATH="$PWD/.upstream/toolchain/node_modules/.bin:$PATH"
|
|
|
464
464
|
bun run prepare:ulw
|
|
465
465
|
```
|
|
466
466
|
|
|
467
|
-
|
|
468
|
-
|
|
467
|
+
`upstream/super.json`์ ๊ณต์ GitHub ๋ฆด๋ฆฌ์ค ์ฃผ์์ `checkIntervalMs: 3600000`(1์๊ฐ)์ด ์ง์ ๋์ด ์๋ค.
|
|
468
|
+
์ค์นํ ๋ GitHub์ **์ต์ ์ ์ ๋ฆด๋ฆฌ์ค**๋ฅผ ํ์ธํ๊ณ ๋ฐฐํฌ ZIP์ ๊ณต๊ฐ๋ SHA-256์ผ๋ก ๊ฒ์ฆํ๋ค.
|
|
469
|
+
๋ฆด๋ฆฌ์ค๋์ง ์์ ์ปค๋ฐ์ ์ค์นํ์ง ์๋๋ค. production Gateway ์์์๋ ์ด๋ฏธ ์ ํจํ active ์ค์น๊ฐ
|
|
469
470
|
ํ์ํ๋ค. ์ด๋ฅผ ํ์ธํ๋ฉด IPC/head๋ฅผ ๋จผ์ ์์ํ๊ณ startup ์๊ฒฉ ํ์ธ์ ๋ฐฑ๊ทธ๋ผ์ด๋๋ก ์ํํ๋ฉฐ,
|
|
470
|
-
์ดํ ๋งค์๊ฐ ์
|
|
471
|
+
์ดํ ๋งค์๊ฐ ์ ๋ฆด๋ฆฌ์ค๋ฅผ ํ์ธํด ์ค๋นยทํ์ฑํํ๋ค. ๋๋ฆฌ๊ฑฐ๋ ์ ๊ทผ ๋ถ๊ฐ๋ฅํ upstream ๋๋ฌธ์ ์ ์
|
|
471
472
|
active๊ฐ ์๋ Gateway ์์์ ๊ธฐ๋ค๋ฆฌ๊ฒ ํ์ง ์๋๋ค. ์ด๋ ์ผ๋ฐ ์ฝ๋์ ์
๋ฐ์ดํธ ํ์ธ์ด์ง ๋ชจ๋ธ watchdogยท์์
๋ ์ธ ์คํ์ด๋
|
|
472
|
-
๋ฉ์ ์ ๋ด ๋ก๊ทธ์ธ ํ๊ฐ๊ฐ ์๋๋ค.
|
|
473
|
-
checkout, ์ ์ญ OMP ์ค์นยท์ค์ , ๊ณต์ ํ๋กฌํํธ ์๋ณธ์ ์์ ํ์ง ์๋๋ค.
|
|
473
|
+
๋ฉ์ ์ ๋ด ๋ก๊ทธ์ธ ํ๊ฐ๊ฐ ์๋๋ค. ์ค์น์๋ PATH์ `curl`, `git`, `unzip`๊ณผ GitHub ๋ฐ ์์กด์ฑ ๋ค์ด๋ก๋์ฉ
|
|
474
|
+
๋คํธ์ํฌ๊ฐ ํ์ํ๋ค. ์ฌ์ฉ์ omp-superkit checkout, ์ ์ญ OMP ์ค์นยท์ค์ , ๊ณต์ ํ๋กฌํํธ ์๋ณธ์ ์์ ํ์ง ์๋๋ค.
|
|
475
|
+
|
|
476
|
+
GitHub๊ฐ ์ต๋ช
API ์์ฒญ์ ์ ํํ๋ฉด, ํจํค์ง ์ค๋น ์ `OMP_SUPERAGENT_SUPERKIT_GITHUB_TOKEN`์
|
|
477
|
+
๊ณต๊ฐ ๋ฆด๋ฆฌ์ค ๋ฉํ๋ฐ์ดํฐ๋ฅผ ์ฝ์ ์ ์๋ GitHub ํ ํฐ์ ์ค์ ํ ์ ์๋ค. ํ ํฐ์ ๊ณต์ ๋ฉํ๋ฐ์ดํฐ
|
|
478
|
+
์กฐํ์๋ง ์ฐ๋ฉฐ ZIP ๋ค์ด๋ก๋์๋ ๋ณด๋ด์ง ์๋๋ค.
|
|
474
479
|
|
|
475
480
|
์ค๋นยทoffline composition probe๊ฐ ์ฑ๊ณตํ immutable revision๋ง ์์์ ์ผ๋ก ํ์ฑํํ๋ค.
|
|
476
|
-
๊ธฐ์กด
|
|
477
|
-
|
|
481
|
+
๊ธฐ์กด ์ปค๋ฐ ๊ธฐ๋ฐ ์ค์น๋ ๊ทธ๋๋ก ์ฌ์ฉํ ์ ์๋ค. ์ดํ์๋ ๊ฐ์ ์๊ฒฉ์์ ๊ธฐ์กด ํ์ฑ ์ปค๋ฐ์ด๋
|
|
482
|
+
๊ทธ ํ์ ์ปค๋ฐ์ ํ๊ทธํ ๋ฆด๋ฆฌ์ค๋ง ํ์ฑํํ๋ค. ๊ณต์ `omp-ulw` โ `omp-superkit` ์ด๋ฆ ๋ณ๊ฒฝ์๋
|
|
483
|
+
๊ฐ์ ๊ฒ์ฌ๋ฅผ ์ ์ฉํ๋ค. ์คํจยทrewindยทdivergence๋ ์ด์ ํ์ฑ ํจํค์ง๋ฅผ ๋ณด์กดํ๋ค.
|
|
478
484
|
์์ธ lockยทstagingยทprobe ๊ณ์ฝ์ [์ค๊ณ](design/execution.md#managed-omp-superkit-integration)๋ฅผ ๋ฐ๋ฅธ๋ค.
|
|
479
485
|
๊ด๋ฆฌ pointer/lock์ ์๋ ํธ์งํด ์ฐํํ์ง ์๋๋ค. active๊ฐ ์๊ฑฐ๋ ๋ฌดํจ๋ฉด start๋ ์ด๋ํฐ
|
|
480
486
|
ํ์ฑํ ์ ์ ์คํจํ๋ฏ๋ก `bun run prepare:ulw`๋ก ๋จผ์ ๋ณต๊ตฌํ๋ค. doctor๋ ์๊ฒฉ ์ต์ ์ฑ์ด๋
|
|
@@ -486,10 +492,10 @@ loader ์ฑ๊ณต์ ๊ฒ์ฌํ์ง ์๋๋ค. ์ด์ revision์ ์๋ ์ญ์ ํ์ง
|
|
|
486
492
|
bun run prepare:ulw -- --status
|
|
487
493
|
```
|
|
488
494
|
|
|
489
|
-
Gateway ์ํ ์๋ต์ `ulw
|
|
490
|
-
|
|
491
|
-
`
|
|
492
|
-
`
|
|
495
|
+
Gateway ์ํ ์๋ต์ `ulw`์์ `releaseTag`, `revision`, `packagePath`๋ **๋ค์ ์ Host๊ฐ ์ฌ์ฉํ
|
|
496
|
+
ํ์ฑ ํจํค์ง**๋ฅผ ๊ฐ๋ฆฌํค๋ฉฐ ์คํ ์ค ๋ชจ๋ Host์ ๋ฒ์ ์ด ์๋๋ค. ์ด์ ์ปค๋ฐ ๊ธฐ๋ฐ ์ค์น์ `releaseTag`๋
|
|
497
|
+
`null`์ด๋ค. ๋ง์ง๋ง ์๊ฒฉ ์กฐํ์ `upstreamReleaseTag`ยท`upstreamRevision`์
|
|
498
|
+
`checkedAt`ยท`error`ยท`updating`๊ณผ ํจ๊ป ์ฝ๋๋ค(`injected`๋ ํ
์คํธ์ฉ ์ฃผ์
์ธ ๊ฒฝ์ฐ์๋ง ํ์).
|
|
493
499
|
์๊ฒฉ ์กฐํ ์คํจยท๋ฏธํ์ธ์ ์ต์ ์ผ์น๋ก ํ์ํ์ง ์๋๋ค. `omp-sa status --config FILE`์
|
|
494
500
|
`gateway.head.loadedSuperkitPath`๋ ์ฐ๊ฒฐ๋ head์ ์ค์ OMP ์ธ์
์ด ์์ํ ๋ ํ์ธํ ํจํค์ง ๊ฒฝ๋ก๋ค.
|
|
495
501
|
์ด ๊ฒฝ๋ก์ `gateway.ulw.packagePath`๊ฐ ๋ค๋ฅด๋ฉด head๋ ์์ง ์ด์ ๋ฒ์ ์ ์ฐ๊ณ ์๋ค.
|
|
@@ -810,6 +816,15 @@ job/dependency๋ ๋ช
์์ ์ธ ๊ทผ๊ฑฐ ํฌํจ `resolved`๋ฅผ ์ฌ์ฉํ๋ค.
|
|
|
810
816
|
๋ฐํํ๋ค. `lane_message`๋ ์์ ์
๋ ฅ ID์ ์ํ๋ฅผ ๋ฐํํ๋ฉฐ, `pending`์ด๋ฉด
|
|
811
817
|
์์ ์
๋ ฅ ๋๋ ํ์ฌ ์คํ์ ํฉ๋ฅํ ์
๋ ฅ์ ๋ถํ์คํ ID์ ๋ฐํ์/์ฐฉ์ ๋ฉ์์ง ์ฐจ๋จ๋
|
|
812
818
|
ํ์ํ๋ค. `pending`์ native ์ ๋ฌ์ด๋ ์คํ์ ๋ณด์ฅํ์ง ์๋๋ค.
|
|
819
|
+
|
|
820
|
+
`maxHosts` ํ๋ ๋๋ฌธ์ ๊ธฐ๋ค๋ฆฌ๋ ๋ ์ธ์ `queueHolds.capacity`์๋ ๋ง์ง๋ง์ผ๋ก ์๋ฃํ
|
|
821
|
+
๋ฐฐ์ ๊ฒ์ฌ์์ ํ์ธํ ์์ฃผ ์(HEAD ํฌํจ), ํ๋, ์์ ๊ถ ๋ฏธํ์ธ ๋ก์ปฌ ๋ ์ธ ID(`unverifiedLocalLaneIds`)๊ฐ
|
|
822
|
+
ํ์๋๋ค. ํด๋น ๋ ์ธ์ ๊ฐ๋ณ ์กฐํํ๋ค. `localFence: "journal-unverified"`๋ ์ข
๋ฃ๊ฐ
|
|
823
|
+
ํ์ธ๋ ๋ก์ปฌ Host์ **์ฌ๋กฏ๋ง** ๋ฐํํ๋ค๋ ๋ป์ด๋ค. ์๋ ์ ๋ยท์น์ธยท์
๋ ฅ์ ๊ทธ๋๋ก
|
|
824
|
+
๋ณดํธ๋๋ค. ๋
๋ฆฝ๋ ์์
์ ์ ๋ ์ธ์์ ์งํํ๊ณ ์์ผ ์ด๋ฆ ๋ณ๊ฒฝ, DB ์์ , ๋ถํ์คํ
|
|
825
|
+
์
๋ ฅ ์ฌ์ ์ก์ ํ์ง ์๋๋ค. ์ด์ ๋ฒ์ ์์ ์ฐ๊ฒฐ ๋น์์ ์์ ์ ์ ๋ณด๋ ์ผ์นํ๋
|
|
826
|
+
์ต์ ์ข
๋ฃ ๊ธฐ๋ก๋ ๋จ์ง ์์ ๊ฒฝ์ฐ์ฒ๋ผ ์์ ์๋ฅผ ํ์ธํ ์ ์์ผ๋ฉด ์ฌ๋กฏ์ ์ ์ง๋๋ค.
|
|
827
|
+
|
|
813
828
|
๊ฒฝ๊ณผ ์๊ฐ์ ์กฐํ ์ ๊ณ์ฐํ๋ฉฐ ์๊ณ ์ญํ์ด๋ฉด null์ด๋ค. root lane์ `lane_report`๋ง
|
|
814
829
|
์ค์ ํ์ผ/๋๊ตฌ ๊ฒฐ๊ณผ๋ฅผ ์ ํยทํด์ํ๊ณ native journal์ ๊ธฐ๋กํ๋ค. eval์์๋ ๋ณด๊ณ cell์
|
|
815
830
|
์๋ฃํ ๋ค ๊ธด ๋๊ธฐ์ ๋ค์ด๊ฐ์ผ ํด๋น ๊ฒฝ๊ณ์์ ํค๋๊ฐ ํ์ํ ์ ์๋ค. ์ฌ์์ ์ ๊ฐ์ ์๋ณธ
|
|
@@ -1836,14 +1851,19 @@ bun --no-env-file src/cli.ts uninstall --config config.local.json
|
|
|
1836
1851
|
๋ค๋ฅธ ์ฌ์ฉ์๊ฐ ํด๋น ๊ฒฝ๋ก์ ํ์ผ์ ๊ต์ฒดํ ์ ์์ด์ผ ํฉ๋๋ค.
|
|
1837
1852
|
์์
ํ ๊ณ์ ์์ OMP ๋ชจ๋ธ ์ธ์ฆ๊ณผ ๋ค์ดํฐ๋ธ ๋ฉ๋ชจ๋ฆฌ ๋ฐฑ์๋๋ฅผ ์ค์ ํ์ธ์. ์์ปค์์๋ ์
ธ ๋ช
๋ น์ผ๋ก
|
|
1838
1853
|
๊ฐ์ ธ์ค๋ API ํค์ ์๊ฒฉ ์ธ์ฆ ๋ธ๋ก์ปค๋ฅผ ์ง์ํ์ง ์์ต๋๋ค. ๋ฉ๋ชจ๋ฆฌ ๋ฐฑ์๋๊ฐ ์๋ค๋ฉด
|
|
1839
|
-
์๋ฅผ ๋ค์ด `omp config set memory.backend mnemopi`๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค.
|
|
1840
|
-
|
|
1854
|
+
์๋ฅผ ๋ค์ด `omp config set memory.backend mnemopi`๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค. `--repo`๋ก ๋ฑ๋กํ ๋๋
|
|
1855
|
+
๊ฐ์ Git ์ ์ฅ์์ ๊นจ๋ํ checkout์ **์์ฒญํ ์ปค๋ฐ์ผ๋ก** ๋ง์ถฅ๋๋ค. ์์ปค์ ํ์ฌ ํ์ผ๋ก
|
|
1856
|
+
์์
ํ๋ ค๋ฉด ์๋์ `--current-repo` ๋๋ `--trusted-repo`๋ฅผ ์ฌ์ฉํ์ธ์.
|
|
1841
1857
|
ํ
์ผ๋ท ๋ฑ ์ฌ์ค๋ง์ ํตํด ์ด ๊ณ์ ์ **OpenSSH ์๋ฒ**์ ์ ์ํ ์ ์์ด์ผ ํฉ๋๋ค.
|
|
1842
1858
|
`authorized_keys`์ ์ง์ ๋ช
๋ น ์ ํ์ ์ฌ์ฉํ๋ฏ๋ก Tailscale SSH ์์ฒด์ ๋ก๊ทธ์ธ ์ ์ฑ
์ผ๋ก ๋์ฒดํ ์ ์์ต๋๋ค.
|
|
1843
1859
|
๊ณต๊ฐ ํฌํธ, ๋ ๋ฒ์งธ ํค๋, ์์ปค์์์ `omp-sa setup`์ด๋ `omp-sa start`๋ ํ์ ์์ต๋๋ค.
|
|
1844
1860
|
2. **ํค๋์์:** ์์ปค ์ด์์์ SSH ํธ์คํธ ํค ์ง๋ฌธ์ ํ์ธํ ๋ค `known_hosts`์ ๋ฑ๋กํฉ๋๋ค.
|
|
1845
|
-
`~/.ssh/config` ๋ณ์นญ ๋์
|
|
1846
|
-
|
|
1861
|
+
`~/.ssh/config` ๋ณ์นญ ๋์ DNS ์ด๋ฆ์ด๋ IP๋ฅผ ์ฌ์ฉํ์ธ์. ํค๋์์ ์์คํ
DNS๋ TCP ๊ฒฝ๋ก ๋์
|
|
1862
|
+
Tailscale ํด๋ผ์ด์ธํธ๋ฅผ ๊ฑฐ์น๋ ค๋ฉด `tailscale://dev@linux-box:2222`๋ฅผ ์ง์ ํฉ๋๋ค. ์ด ๋ฐฉ์์
|
|
1863
|
+
`tailscale nc`๋ก OpenSSH ์ฐ๊ฒฐ์ ์ด๋ฐํ๋ฉฐ **Tailscale SSH ๋ก๊ทธ์ธ๊ณผ๋ ๋ค๋ฆ
๋๋ค**.
|
|
1864
|
+
IPv6 ์ฃผ์๋ `dev@[fd00::42]:2222`์ฒ๋ผ ๋๊ดํธ๋ก ๊ฐ์๋๋ค. Tailscale SSH๊ฐ 22๋ฒ์ ์ฐ๋ฉด ๋ณ๋
|
|
1865
|
+
OpenSSH ํฌํธ๋ฅผ ์ฌ์ฉํ๊ฑฐ๋, ์ด์์๊ฐ Tailscale Serve์ ํ
์ผ๋ท ์ ์ฉ TCP ํฌ์๋ฉ์ผ๋ก ๊ธฐ์กด
|
|
1866
|
+
๋ฃจํ๋ฐฑ OpenSSH ํฌํธ์ ์ฐ๊ฒฐํ ์ ์์ต๋๋ค. ํ
์ผ๋ท ์ ๊ทผ ์ ์ฑ
์์ ๋์ ํฌํธ๋ฅผ ํ์ํ ํด๋ผ์ด์ธํธ์๋ง ํ์ฉํ์ธ์. ํด๋น ํค๋
|
|
1847
1867
|
`known_hosts`์ `[ํธ์คํธ]:ํฌํธ`์ ๊ณ ์ ํ๊ณ , ๋ ๋ฒ์ `worker add` ๋ชจ๋ `dev@linux-box:ํฌํธ`๋ฅผ
|
|
1848
1868
|
์ง์ ํฉ๋๋ค. ๊ธฐ๋ณธ SSH ํฌํธ๋ฅผ ์ธ ๋๋ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
|
|
1849
1869
|
```sh
|
|
@@ -1854,6 +1874,17 @@ bun --no-env-file src/cli.ts uninstall --config config.local.json
|
|
|
1854
1874
|
```sh
|
|
1855
1875
|
omp-sa worker init --head-key 'ssh-ed25519 โฆ' --repo "$HOME/src/my-app"
|
|
1856
1876
|
```
|
|
1877
|
+
์ ์ฅ์๋ณ๋ก ์์ปค ์ด์์๊ฐ ์ด๋ ํ์ผ์ ์ฌ์ฉํ ์ง ์ ํํฉ๋๋ค.
|
|
1878
|
+
|
|
1879
|
+
| ๋ฑ๋ก ์ต์
| ์ ๋ ์ธ์์ ์ฌ์ฉํ ์ ์๋ ์์
์ฌ๋ณธ |
|
|
1880
|
+
| --- | --- |
|
|
1881
|
+
| `--repo PATH` | ํค๋์ ๊ฐ์ ์ปค๋ฐ์ ๊นจ๋ํ checkout |
|
|
1882
|
+
| `--current-repo PATH` | ์ ๋ฐฉ์์ ๋ํด ์์ปค์ ์ด๋ฏธ ์๋ ํ์ผ. ์คํ
์ด์งํ ๋ณ๊ฒฝยท์์ง ์คํ
์ด์งํ์ง ์์ ๋ณ๊ฒฝยท์ถ์ ํ์ง ์๋ ํ์ผ์ ๋ณด์กดํ๋ฉฐ ์์ ์ค์ ์ ํ์ ๊ทธ๋๋ก์
๋๋ค. |
|
|
1883
|
+
| `--trusted-repo PATH` | ์ ๋ ๋ฐฉ์์ ๋ํด ์๋์ ๋ช
์ํ ํ๋ก์ ํธ ์ค์ ยทGit ํํฐยท์๋ธ๋ชจ๋์ ํ์ฉํฉ๋๋ค. ์ด์์๊ฐ ์ ๋ขฐํ๋ ํ๋ก์ ํธ์๋ง ์ฐ์ธ์. |
|
|
1884
|
+
|
|
1885
|
+
**์๋ก ๊ฒน์น์ง ์๋ ๋ค๋ฅธ ์ ์ฅ์** ์ฌ๋ฌ ๊ฐ์์ ๋ ์ธ์ ๋์์ ์คํํ๋ ค๋ฉด ๋ฑ๋กํ ๋
|
|
1886
|
+
`--capacity N`์ ์ถ๊ฐํฉ๋๋ค. ๊ธฐ๋ณธ์ 1, ์ต๋๋ ๋ฑ๋กํ ์ ์ฅ์ ์์ด๋ฉฐ, ๊ฐ์ ๋ฌผ๋ฆฌ์
|
|
1887
|
+
checkout์ ์ฌ์ ํ ํ ๋ ์ธ๋ง ์ ์ ํฉ๋๋ค. ๋ค๋ฅธ ์ ์ฑ
์ผ๋ก `init`์ ๋ฐ๋ณตํด๋ ๊ธฐ์กด ํค์ ๊ถํ์ ๋ฐ๋์ง ์์ต๋๋ค.
|
|
1857
1888
|
์ง์ ๋ ์์ปค ๋ช
๋ น๋ง ํธ์ถํ ์ ์๋ ์ ์ฉ ํค๊ฐ `~/.ssh/authorized_keys`์ ๋ฑ๋ก๋ฉ๋๋ค.
|
|
1858
1889
|
ํค๋์ ๊ฐ์ธ ํคยท๋ด ํ ํฐยท์ค์ ํ์ผ์ ๋ณต์ฌํ์ง ๋ง์ธ์. ๋ ์ธ์ ๋๊ตฌ๋ ์์ปค OS ๊ณ์ ์
|
|
1859
1890
|
๊ถํ์ผ๋ก ์คํ๋๋ฏ๋ก ๋ค๋ฅธ ํ์ผ๊ณผ ๊ฒฉ๋ฆฌํ๋ ค๋ฉด ์ ์ฉ ๊ณ์ ์ ์ฌ์ฉํ์ธ์.
|
|
@@ -1862,23 +1893,79 @@ bun --no-env-file src/cli.ts uninstall --config config.local.json
|
|
|
1862
1893
|
์ด ์์ปค๋ฅผ ์ฐ์ ์ฌ์ฉํ๋ ค๋ฉด `--default --local-repo /ํค๋์/๊ฒฝ๋ก/my-app`์ ๋ถ์
๋๋ค.
|
|
1863
1894
|
`--local-repo`๋ฅผ ์๋ตํ๋ฉด ์ค์ ์ `headCwd`๋ฅผ ์ฌ์ฉํฉ๋๋ค. ๊ฐ์ Git ์๊ฒฉ ์ฃผ์๋ผ๋
|
|
1864
1895
|
๋ค๋ฅธ checkout์ ์ด ๊ธฐ๋ณธ ๋ฐฐ์น ๊ถํ์ด ๋์ด๊ฐ์ง๋ ์์ต๋๋ค.
|
|
1896
|
+
๊ทธ ๋์ **์์ปค์ ํ์ฌ ํ์ผ์ ๊ธฐ๋ณธ์ผ๋ก** ์ฌ์ฉํ๋ ค๋ฉด ์์ปค์์ `--current-repo` ๋๋
|
|
1897
|
+
`--trusted-repo`๋ก ๋ฑ๋กํ ํ ํค๋์์ ๋ค์์ ์คํํ์ธ์.
|
|
1898
|
+
```sh
|
|
1899
|
+
omp-sa worker add dev@linux-box --default-current --local-repo /ํค๋์/๊ฒฝ๋ก/my-app --config ./config.local.json
|
|
1900
|
+
```
|
|
1901
|
+
์ด์ ํด๋น ํค๋ checkout์ ์ผ๋ฐ ์์ฒญ์๋ ๋งค๋ฒ ์์ปค ID๋ฅผ ์
๋ ฅํ ํ์๊ฐ ์์ต๋๋ค.
|
|
1902
|
+
์ฌ๋ณผ๋ฆญ ๋งํฌ๋ฅผ ๊ฑฐ์น๋ ๊ฒฝ๋ก๋ ๋ฑ๋กํ ์ ์์ต๋๋ค. ๋์ค์ ๋งํฌ๋ฅผ ๋ค๋ฅธ ์์
์ฌ๋ณธ์ผ๋ก
|
|
1903
|
+
๋ฐ๊พธ๋ฉด `worker doctor`๊ฐ ์๋ ค ์ค๋๋ค. ๊ทธ ์ฌ๋ณธ์ ๊ธฐ๋ณธ์ผ๋ก ์ธ ๋๋ง ๋ค์ ์ง์ ํ์ธ์.
|
|
1904
|
+
์ฐ๊ฒฐ์ด๋ ์์
์ฌ๋ณธ์ ์ ์์ ํ์ธํ ์ ์์ผ๋ฉด ๋ค๋ฅธ ํ์ผ์์ ๋์ ์คํํ์ง ์์ต๋๋ค.
|
|
1905
|
+
๋ก์ปฌ ์คํ์ ๋ช
์ํ๋ฉด ์ด ๊ธฐ๋ณธ๊ฐ์ ์ฐ์ง ์์ต๋๋ค. ํ๋ก๊ทธ๋จ์ ์
๋ฐ์ดํธํ๋ ๊ฒ๋ง์ผ๋ก ๊ธฐ์กด
|
|
1906
|
+
๊ธฐ๋ณธ๊ฐ์ด๋ ์ด๋ฏธ ๋ฐฐ์น๋ ๋ ์ธ์ ์์น๊ฐ ๋ฐ๋์ง๋ ์์ต๋๋ค. ์ด์ ๋ฒ์ ์์ ์ค์ ๋๋ ํฐ๋ฆฌ๋ง
|
|
1907
|
+
์ ์ฅํ๋ค๋ฉด ์๋ ๋งํฌ ์ด๋ฆ์ ๋ณต์ํ ์ ์์ต๋๋ค. ๋งํฌ ๋์์ ๋ฐ๊พธ๊ธฐ ์ ์ ๊ฐ์ ๋งํฌ ๊ฒฝ๋ก๋ก
|
|
1908
|
+
`worker add --default-current`๋ฅผ ๋ค์ ์คํํ์ธ์.
|
|
1865
1909
|
|
|
1866
1910
|
๋ฑ๋ก ๋ชฉ๋ก์ `omp-sa worker list --config ./config.local.json`์ผ๋ก ํ์ธํฉ๋๋ค. ๋ชฉ๋ก ์กฐํ๋
|
|
1867
1911
|
์์ปค์ ์ ์ํ์ง ์์ต๋๋ค. ์ง๊ธ ์ฐ๊ฒฐ๋๋์ง ํ์ธํ๋ ค๋ฉด
|
|
1868
1912
|
`omp-sa worker doctor dev@linux-box --config ./config.local.json`์ ๋ฑ๋ก ๋ ์ด ์ฃผ์์
|
|
1869
|
-
ํฌํธ๋ฅผ ๊ทธ๋๋ก ์ง์ ํ์ธ์. ์์ปค ์ ์๊ณผ ๋น ์ฌ๋กฏ์
|
|
1870
|
-
|
|
1913
|
+
ํฌํธ๋ฅผ ๊ทธ๋๋ก ์ง์ ํ์ธ์. ์์ปค ์ ์๊ณผ ๋น ์ฌ๋กฏ์ ํ์ธํฉ๋๋ค. `--default`๋ ์์ชฝ ์ปค๋ฐ์
|
|
1914
|
+
๋์กฐํ๊ณ `--default-current`๋ ๋ฑ๋กํ ํค๋ ๋๋ ํฐ๋ฆฌ์ ์์ปค์ ํ์ฌ checkout์ ๊ฒ์ฆํฉ๋๋ค.
|
|
1915
|
+
ํ์ธ์ด ๋งํ๋ฉด ์ข
๋ฃ ์ฝ๋๋ 0์ด ์๋๋ฉฐ, ๋ ์ธ์ ์์ํ์ง ์์ต๋๋ค.
|
|
1916
|
+
|
|
1917
|
+
์ด์ ์ฑํ
์์ ์๊ฒฉ ์คํ์ด๋ ํ์ํ OS๋ฅผ ์ง์ ํ๋ฉด ๋ฉ๋๋ค. ์ผ๋ฐ ๋ฐฐ์น๋ ํด๋ ์ด๋ฆ์ด ์๋๋ผ
|
|
1918
|
+
Git ์๊ฒฉ ์ฃผ์์ ๊นจ๋ํ ์ปค๋ฐ์ ๋์กฐํฉ๋๋ค. ํ ๋ฒ๋ง **์์ปค์ ํ์ฌ ํ์ผ**์ ๊ธฐ์ค์ผ๋ก ์คํํ๋ ค๋ฉด
|
|
1919
|
+
`worker list`์ ๋์จ ์์ปค ID์ ์ ์ฅ์ ID๋ก ๋ค์์ฒ๋ผ ์์ฒญํ์ธ์. ๋ฃจํธ๊ฐ ์๋ ๊ฒฝ์ฐ์๋ง
|
|
1920
|
+
์ฒซ ์ค์ ์ ์ฅ์ ID ๋ค์ ์๋ ํ์ ๊ฒฝ๋ก๋ฅผ ๋ถ์
๋๋ค.
|
|
1921
|
+
|
|
1922
|
+
```text
|
|
1923
|
+
/head worker-current: ์์ปคID ์ ์ฅ์ID
|
|
1924
|
+
attach: reports/test-results.txt
|
|
1925
|
+
์์ปค์ ๋ฏธ์ปค๋ฐ ๋ณ๊ฒฝ์ผ๋ก ํ
์คํธํ๊ณ ๊ฒฐ๊ณผ ๋ณด๊ณ ์๋ฅผ ๋ณด๋ด ์ค.
|
|
1926
|
+
```
|
|
1871
1927
|
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1928
|
+
๊ฒฐ๊ณผ ํ์ผ์ด ํ์ ์์ผ๋ฉด `attach:` ์ค์ ์๋ตํ์ธ์. ๋ ์ง์ ์ค์ ์ธ์ฉ๋ฌธ์ด๋
|
|
1929
|
+
์ ๋ฌ ๋ฉ์์ง๊ฐ ์๋๋ผ ์์ ์๊ฐ ์ง์ ์์ฑํด์ผ ํฉ๋๋ค. ๊ฐ์ ๋ฉ์์ง์ ์
๋ ฅ ํ์ผ๋
|
|
1930
|
+
์ฒจ๋ถํ ์ ์์ต๋๋ค. ๊ฒฐ๊ณผ ํ์ผ ๊ฒฝ๋ก๋ **์ ํํ ์์ปค ๋๋ ํฐ๋ฆฌ**๋ฅผ ๊ธฐ์ค์ผ๋ก ํฉ๋๋ค.
|
|
1931
|
+
ํค๋์ ์๊ณ ์์ปค ํ๋กํ์๋ง ์๋ ๋ชจ๋ธ๋ ์ ํํ ID๋ก ์ง์ ํ ์ ์์ต๋๋ค.
|
|
1932
|
+
์คํ ์ ์๋ ์์ปค๊ฐ ์ค์ ์ ํ๋ ๋ชจ๋ธ์ ํ์ธํฉ๋๋ค.
|
|
1933
|
+
ํด๋น ๋๋ ํฐ๋ฆฌ์ ์ด๋ฏธ ์ด๋ฆฐ ๋ ์ธ์ด ์๋ค๋ฉด ๊ทธ๋๋ก ์ธ ์ ์์ต๋๋ค. ๋ค์ ๋ฑ๋กํ๊ฑฐ๋
|
|
1934
|
+
์์ฒญ์ ์์ปค ID์ ๊ฒฝ๋ก๋ฅผ ๋ ๋ฒ ์ธ ํ์๋ ์์ต๋๋ค.
|
|
1935
|
+
์ด์ ๋ฒ์ ์ SlackยทTelegram ์์ ๊ธฐ๋ก์ผ๋ก๋ ๋๊ฐ ์ง์ ์ค์ ์์ฑํ๋์ง ํ์ธํ ์
|
|
1936
|
+
์๋ ๊ฒฝ์ฐ๊ฐ ์์ต๋๋ค. ๊ฐ์ ๋ฉ์์ง๊ฐ ๋ค์ ๋์ฐฉํด๋ ๊ถํ์ด ์๊ธฐ์ง๋ ์์ต๋๋ค.
|
|
1937
|
+
์ ์์ฒญ์ ๋ณด๋ด๊ธฐ ์ , ์ด์ ์์ฒญ์ด ์ด๋ฏธ ์คํ๋๊ฑฐ๋ ํ์ผ์ด ์ ๋ฌ๋์ง๋ ์์๋์ง ํ์ธํ์ธ์.
|
|
1938
|
+
|
|
1939
|
+
ํค๋์๋ ๊ฐ์ ์ ์ฅ์ยท์๋ ๊ฒฝ๋ก๋ฅผ ํ์ธํ ์ ์๋ ๋๋ ํฐ๋ฆฌ๋ ํ์ํ์ง๋ง, ์ด ๋ฐฉ์์์๋
|
|
1940
|
+
์ปค๋ฐ๊ณผ ํ์ผ ๋ด์ฉ๊น์ง ๊ฐ์ ํ์๋ ์์ต๋๋ค. ๋ ์ธ์ ์์ปค์์ ์ค์ ํ์ธํ ๊ธฐ์ค ์ปค๋ฐ๊ณผ
|
|
1941
|
+
๋ฌผ๋ฆฌ์ ๋๋ ํฐ๋ฆฌ๋ฅผ ๊ณ ์ ํฉ๋๋ค. **์๋ ๋๊ธฐํ๋ ์๋๋๋ค.** ๋ณ๊ฒฝ์ด ํค๋์๋ง ์๋ค๋ฉด ํ์ํ
|
|
1942
|
+
ํ์ผ์ด๋ ๊ฒํ ํ ํจ์น๋ฅผ ์ฒจ๋ถํ๊ฑฐ๋, ์ด์์๊ฐ ์น์ธํ ํ์ผ ๊ณต์ ๋ฐฉ์์ผ๋ก ์์ปค์ ์์
์ฌ๋ณธ์
|
|
1943
|
+
๋จผ์ ์ค๋นํ์ธ์. ์๋ฅผ ๋ค์ด ๊ฒํ ํ ํจ์น๋ฅผ ์ฒจ๋ถํ๋ฉด์ ์์ปค์์ `git apply --check`๊ฐ
|
|
1944
|
+
ํต๊ณผํ ๋ค ์ ์ฉํ๋๋ก ์์ฒญํ ์ ์์ต๋๋ค. ๊ธฐ์กด ์์ ๊ณผ ์ถฉ๋ํ๋ฉด ๋ฎ์ด์ฐ์ง ๋ง์ธ์. ํจ์น์
|
|
1945
|
+
์๋ ์ ํ์ผ์ ๋ฐ๋ก ์ฒจ๋ถํฉ๋๋ค. `.env`ยท์ธ์ฆ ์ ๋ณดยทํ ๋๋ ํฐ๋ฆฌ ์ ์ฒด๋ ๋ณด๋ด์ง ๋ง์ธ์.
|
|
1946
|
+
๋ฌผ๋ฆฌ์ ์ธ `.git` ๋๋ ํฐ๋ฆฌ๊ฐ ์๋ `ovnfs attach` ๋ทฐ ์์ฒด๋ ๋ฑ๋กํ ์ ์์ต๋๋ค.
|
|
1947
|
+
์์
๊ฒฐ๊ณผ๊ฐ ํค๋์ ์๋์ผ๋ก ๋ฎ์ด์จ์ง์ง๋ ์์ต๋๋ค.
|
|
1948
|
+
์คํ ์ค์ธ ๋ ์ธ์ด ํด๋น checkout์ ์์ฝํ๋ฉฐ
|
|
1875
1949
|
์๋ fetchยท๋ธ๋์น ์ ํยท๋ณ๊ฒฝ ํ๊ธฐ๋ ํ์ง ์์ต๋๋ค. ํ์ ์์ฒญ์ ๊ฐ์ ์์ปค์ ๊ฐ์ ์ธ์
์ผ๋ก ๊ฐ๋๋ค.
|
|
1876
|
-
SSH๊ฐ ๋๊ฒจ๋ Host ์์ฒด๋ ์ข
๋ฃ๋์ง ์์ต๋๋ค. Host๊ฐ ์ข
๋ฃ๋ ๋ค checkout
|
|
1877
|
-
์ฌ๊ธฐ๋์ ๋ณด๋ฅ๋ฉ๋๋ค. ๋ต๋ณ๊ณผ ์น์ธ ์นด๋๋ ์๋ ๋ํ๋ก
|
|
1878
|
-
|
|
1950
|
+
SSH๊ฐ ๋๊ฒจ๋ Host ์์ฒด๋ ์ข
๋ฃ๋์ง ์์ต๋๋ค. Host๊ฐ ์ข
๋ฃ๋ ๋ค ๋ค๋ฅธ checkout์ด๋ ๊ธฐ์ค ์ปค๋ฐ์ผ๋ก
|
|
1951
|
+
๋ฐ๋๋ฉด ์ฌ๊ธฐ๋์ ๋ณด๋ฅ๋ฉ๋๋ค. ๋ต๋ณ๊ณผ ์น์ธ ์นด๋๋ ์๋ ๋ํ๋ก ๋์์ต๋๋ค. ์์ชฝ์ ๊ฐ์ ๊ธฐ๋ฅ์ด
|
|
1952
|
+
์๋ ๋น๋๋ฅผ ์ฌ์ฉํ๋ฉด ๋ฉ์ ์ ์ฒจ๋ถํ์ผ์ ์ ์ฉ ์ฐ๊ฒฐ๋ก ์ ๋ฌ๋ฉ๋๋ค. ์์ปค์ ๋ณด๋ด๋ ๊ฒ์ ํ์ธํ
|
|
1953
|
+
ํ์ผ ๋ด์ฉ์ด๋ฉฐ, ๋ฉ์ ์ ๋ค์ด๋ก๋ URLยท๋ด ํ ํฐยทํค๋์ ๋ก์ปฌ ํ์ผ ๊ฒฝ๋ก๊ฐ ์๋๋๋ค. ์์ปค์ ๊ฒฐ๊ณผ
|
|
1954
|
+
ํ์ผ์ ๊ธฐ์กด ๋ ์ธ์์ ๋ฐ์ผ๋ ค๋ฉด ์์ ์ ๋ฉ์์ง ์ฒซ ์ค์ `attach: ์๋/๊ฒฝ๋ก`๋ฅผ ์๋๋ค. ํค๋์ ๋๋ช
ํ์ผ์ด
|
|
1955
|
+
์๋๋ผ ์์ปค์ ํ์ผ์ ๊ฐ์ ธ์ค๋ฉฐ ๋ก์ปฌ๊ณผ ๊ฐ์ 8 MiB ํ๋์ ์๋ ๋ํ ๊ถํ ๊ฒ์ฌ๋ฅผ ์ ์ฉํฉ๋๋ค.
|
|
1956
|
+
ํค๋์ OMP ์คํ ๋ช
๋ น์
|
|
1879
1957
|
๋๊ตฌยทํ๋กํยท์น์ธ ๋ฑ์ ์ถ๊ฐ ํ๋๊ทธ๊ฐ ์์ผ๋ฉด ์ด๋ฅผ ๋นผ๊ณ ์๊ฒฉ ์คํํ์ง ์๊ณ ์์ฒญ์ ๊ฑฐ๋ถํฉ๋๋ค.
|
|
1880
|
-
์์ปค๋ ์๋ ๋ก๋ ํ๋ฌ๊ทธ์ธ์ด ์๋ ์ ์ฉ OMP ํ๋กํ์ ์ฌ์ฉํ์ธ์.
|
|
1881
|
-
|
|
1958
|
+
์์ปค๋ ์๋ ๋ก๋ ํ๋ฌ๊ทธ์ธ์ด ์๋ ์ ์ฉ OMP ํ๋กํ์ ์ฌ์ฉํ์ธ์. `--trusted-repo`์ ํ์ฌ ํ์ผ๋ก
|
|
1959
|
+
์คํํ ๋ ๊ณ์ ์์ ์ ์ผ๋ฐ `.env` ํ์ผ์ ํ๋ก์ ํธ ๋๊ตฌ๋ฅผ ์ํด ๊ทธ๋๋ก ๋ ์ ์์ง๋ง Host ์ธ์ฆ์
|
|
1960
|
+
์๋ ๋ก๋ํ์ง ์์ต๋๋ค. ์ ํํ ๋๋ ํฐ๋ฆฌ์ `.omp/config.yml` ๋๋ `.omp/settings.json`์์๋
|
|
1961
|
+
`modelRoles`, `defaultThinkingLevel`์ ์ฌ์ฉํ ์ ์์ต๋๋ค. ํ๋ก์ ํธ ์ญํ ์ `null`๋ก
|
|
1962
|
+
์ค์ ํ๋ฉด ๋ก์ปฌ OMP์ฒ๋ผ ์์ปค ํ๋กํ์ ์ญํ ์ ์์ํฉ๋๋ค. ๋ ์ธ์ ๋ชจ๋ธ ํ๋๋ฅผ ๋ช
์ํ๋ฉด
|
|
1963
|
+
`default` ์ญํ ๋ง ๋ฐ๋๊ณ ๋๋จธ์ง ์ญํ ์ ์ ์ง๋ฉ๋๋ค. ์ด๋ฆ ์๋ ํ๋ฆฌ์
์ ์ ํํ๋ฉด ํ๋ฆฌ์
์
|
|
1964
|
+
์ญํ ๊ตฌ์ฑ์ ์ฌ์ฉํฉ๋๋ค. `.omp/README.md`์ `.omp/.gitignore`, ์ผ๋ฐ์ ์ธ Git
|
|
1965
|
+
fetchยทpullยทpush ์ค์ , ๋ก์ปฌ ํํฐ, ๊ฒ์ฆ๋ ์๋ธ๋ชจ๋์ ๊ทธ๋๋ก ๋ ์ ์์ต๋๋ค.
|
|
1966
|
+
๊ฒ์ฆ ๊ณผ์ ์์ ํํฐ๋ฅผ ์คํํ๊ฑฐ๋ ์๋ธ๋ชจ๋์ ๋ฐ์์ค๊ฑฐ๋ ์
๋ฐ์ดํธํ์ง ์์ต๋๋ค.
|
|
1967
|
+
์ด ๋ชจ๋์์๋ ์์ปค ํ๋กํ์ ์ ์ฅํ ๋ชจ๋ธ ์ธ์ฆ์ ์ฌ์ฉํ๋ฉฐ ํ๊ฒฝ ๋ณ์์ ๊ณต๊ธ์ ํค๋ ์์ํ์ง
|
|
1968
|
+
์์ต๋๋ค. ํ๋ก์ ํธ ํ๋ฌ๊ทธ์ธยทMCPยทGit ํ
๊ณผ includeยท์์์ `.omp` ์ค์ ยทlinked worktree๋ ๊ณ์ ๊ฑฐ๋ถํฉ๋๋ค.
|
|
1882
1969
|
์ปค์คํ
๋ชจ๋ธ ํ์ฅ์ด ํ์ํ๋ฉด ์์ปค OMP agent ๋๋ ํฐ๋ฆฌ์ `worker-extensions.json`(`0600`)์
|
|
1883
1970
|
๋ฑ๋ก๋ checkout ๋ฐ์ ์ ๋ขฐํ๋ ๋ชจ๋ ์ ๋๊ฒฝ๋ก๋ฅผ JSON ๋ฐฐ์ด๋ก ์ ์ต๋๋ค. ๋ฐฐ์น๋ ์์น๋
|
|
1884
1971
|
`omp-sa status --config ./config.local.json`์์ ํ์ธํฉ๋๋ค. ์ ๊ทผ์ ์ฒ ํํ ๋๋
|