omp-superagent 0.0.0-stage → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DESIGN.md +1502 -0
- package/LICENSE +21 -0
- package/README.ko.md +198 -0
- package/README.md +224 -2
- package/THIRD_PARTY_NOTICES.md +388 -0
- package/assets/architecture.mmd +24 -0
- package/assets/architecture.svg +126 -0
- package/assets/superagent-avatar.jpg +0 -0
- package/assets/superagent-mascot.webp +0 -0
- package/config.example.json +26 -0
- package/docs/OPERATIONS.md +1178 -0
- package/docs/discord-voice.md +96 -0
- package/docs/releases/0.1.0.md +222 -0
- package/docs/releases/0.1.1.md +60 -0
- package/docs/releases/0.1.2.md +53 -0
- package/package.json +65 -4
- package/scripts/ci.ts +33 -0
- package/scripts/prepare-ulw.ts +18 -0
- package/scripts/release.ts +58 -0
- package/scripts/setup.sh +25 -0
- package/scripts/test-omp.sh +36 -0
- package/skills/head/SKILL.md +100 -0
- package/skills/head/references/model-selection.md +83 -0
- package/skills/head/references/routing.md +181 -0
- package/skills/head/references/supervision.md +122 -0
- package/skills/lane/SKILL.md +66 -0
- package/skills/lane/references/workflow.md +95 -0
- package/src/autostart.ts +295 -0
- package/src/board-extension.ts +217 -0
- package/src/board.ts +396 -0
- package/src/cli.ts +253 -0
- package/src/codex-live-bridge.py +73 -0
- package/src/codex-live.ts +244 -0
- package/src/codex-voice-requirements.txt +5 -0
- package/src/codex_live_auth.py +192 -0
- package/src/codex_live_media.py +219 -0
- package/src/codex_live_provider.py +192 -0
- package/src/config.ts +266 -0
- package/src/contracts.ts +381 -0
- package/src/credentials.ts +172 -0
- package/src/decision-tool.ts +59 -0
- package/src/decisions.ts +143 -0
- package/src/delivery.ts +17 -0
- package/src/dialog.ts +73 -0
- package/src/discord-command-registration.ts +201 -0
- package/src/discord-commands.ts +29 -0
- package/src/discord-context.ts +118 -0
- package/src/discord-markdown.ts +172 -0
- package/src/discord-voice-draft.ts +124 -0
- package/src/discord-voice-link.ts +270 -0
- package/src/discord-voice.ts +150 -0
- package/src/discord.ts +1012 -0
- package/src/extension.ts +446 -0
- package/src/gateway-client.ts +229 -0
- package/src/gateway-protocol.ts +85 -0
- package/src/gateway-restart.ts +151 -0
- package/src/gateway-server.ts +440 -0
- package/src/gateway-store.ts +251 -0
- package/src/gateway.ts +654 -0
- package/src/head-recovery.ts +61 -0
- package/src/host-broker-services.ts +108 -0
- package/src/host-extension.ts +561 -0
- package/src/host-owner.ts +366 -0
- package/src/host-protocol.ts +144 -0
- package/src/host-services.ts +54 -0
- package/src/host.ts +415 -0
- package/src/installed-omp.ts +71 -0
- package/src/lane-extension.ts +184 -0
- package/src/lane-models.ts +75 -0
- package/src/lane-report.ts +70 -0
- package/src/lane-rows.ts +12 -0
- package/src/managed-ulw-probe.ts +172 -0
- package/src/managed-ulw.ts +471 -0
- package/src/message-order.ts +21 -0
- package/src/messenger-commands.ts +16 -0
- package/src/messengers.ts +143 -0
- package/src/native-presets.ts +370 -0
- package/src/native-sessions.ts +32 -0
- package/src/native-settings.ts +131 -0
- package/src/openai-live.ts +377 -0
- package/src/pr-github-schema.ts +110 -0
- package/src/pr-github.ts +170 -0
- package/src/pr-watch.ts +200 -0
- package/src/repository.ts +12 -0
- package/src/runtime.ts +4229 -0
- package/src/setup-judge.ts +34 -0
- package/src/setup-memory.ts +39 -0
- package/src/setup-profiles.ts +84 -0
- package/src/setup.ts +300 -0
- package/src/slack-command-registration.ts +217 -0
- package/src/slack-commands.ts +18 -0
- package/src/slack.ts +779 -0
- package/src/store.ts +862 -0
- package/src/telegram-command-registration.ts +155 -0
- package/src/telegram.ts +677 -0
- package/src/workflow.ts +94 -0
- package/upstream/ulw.json +9 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# Discord 음성채팅
|
|
2
|
+
|
|
3
|
+
별도 OpenAI Live 모델이 소유자의 말을 듣고 음성으로 바로 답합니다. OMP의 HEAD 모델을 교체하지 않습니다.
|
|
4
|
+
일반 메시지·음성 첨부와 별개이며, 음성 모델은 셸을 쓰거나 레인을 시작하거나 승인을 대신할 수 없습니다.
|
|
5
|
+
|
|
6
|
+
## 준비
|
|
7
|
+
|
|
8
|
+
1. Discord 서버에 **봇과 소유자만 들어갈 수 있는 일반 음성 채널**과 작업 초안·답변용 텍스트 채널을 준비하세요.
|
|
9
|
+
서버는 `discord.allowedGuildIds`, 텍스트 채널은 `discord.allowedChannelIds`에 있어야 합니다.
|
|
10
|
+
봇에는 음성 채널 보기·연결·발언, 텍스트 채널 보기·보내기·기록 읽기 권한이 필요합니다.
|
|
11
|
+
권한으로 제삼자의 입장을 제한하세요. 참여자 변경 통지는 실시간 접근 제어를 대신할 수 없습니다.
|
|
12
|
+
2. 기존 설정의 `discord` 안에 `voice` 객체를 추가하세요. **Codex 구독**을 쓰려면 아래처럼 설정합니다.
|
|
13
|
+
ID는 본인의 채널 ID로 바꾸세요. `model`, `backendModel`, `apiKeyEnv`는 구독 설정에 넣지 않습니다.
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
"voice": {
|
|
17
|
+
"auth": "subscription",
|
|
18
|
+
"channelId": "111111111111111111",
|
|
19
|
+
"textChannelId": "222222222222222222",
|
|
20
|
+
"voice": "cove",
|
|
21
|
+
"maxSessionSeconds": 300
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
**API 과금**을 선택하려면 대신 다음 예시를 사용하세요. 기존 `auth` 없는 설정도 이 모드입니다. 계정에서 사용 가능한
|
|
26
|
+
[Live 모델](https://developers.openai.com/api/docs/models/gpt-live-1),
|
|
27
|
+
[Responses 위임 모델](https://developers.openai.com/api/docs/guides/live-delegation),
|
|
28
|
+
[목소리](https://developers.openai.com/api/docs/guides/live-conversations#voice-options)를 선택하세요. 아래는 기본값이 아닌 예시입니다.
|
|
29
|
+
|
|
30
|
+
```json
|
|
31
|
+
"voice": {
|
|
32
|
+
"auth": "api",
|
|
33
|
+
"channelId": "111111111111111111",
|
|
34
|
+
"textChannelId": "222222222222222222",
|
|
35
|
+
"apiKeyEnv": "SUPERAGENT_VOICE_OPENAI_KEY",
|
|
36
|
+
"model": "gpt-live-1",
|
|
37
|
+
"backendModel": "gpt-6-luna",
|
|
38
|
+
"voice": "marin",
|
|
39
|
+
"maxSessionSeconds": 300
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
3. **구독 모드:** Gateway를 실행하는 OS 사용자로 Codex CLI에 ChatGPT 계정 로그인이 되어 있어야 합니다
|
|
44
|
+
(`codex login`, API 키 방식 아님). Discord나 이 프로젝트의 설정 파일에 Codex 토큰을 붙여 넣지 마세요.
|
|
45
|
+
로그인 성공이 음성 사용 권한을 보장하지는 않습니다. 구독 음성 연결은 공개 Live API와 다른
|
|
46
|
+
WebRTC 프로토콜을 쓰므로 Codex나 서비스 변경으로 호환성이 깨질 수 있습니다.
|
|
47
|
+
**API 모드:** `apiKeyEnv`가 가리키는 변수에 OpenAI 키를 설정하세요. Gateway의 환경 또는 기존 비공개 `FILE.env`를 사용하고,
|
|
48
|
+
JSON에 키를 넣지 마세요. Discord 토큰과는 다른 변수여야 합니다. Gateway는 해당 변수를 HEAD·레인 환경에서 제외합니다.
|
|
49
|
+
4. 프로젝트의 잠금 파일로 의존성을 설치하세요(`bun install --frozen-lockfile`).
|
|
50
|
+
음성 링크는 `@discordjs/voice`, DAVE 및 Opus가 필요합니다. 음성 모듈은 연결 시 로드하며 설치·진단 중 봇을 접속시키지 않습니다.
|
|
51
|
+
설정 변경은 다음 Gateway 시작에 반영됩니다.
|
|
52
|
+
|
|
53
|
+
### 구독 모드의 WebRTC 브리지 설치
|
|
54
|
+
|
|
55
|
+
Gateway를 실행하는 OS 사용자로 아래 명령을 한 번 실행하세요(macOS/Linux, 프로젝트 루트 기준).
|
|
56
|
+
Codex CLI는 별도로 설치합니다. 로그인 조회에 사용한 버전은 `codex-cli 0.166.0`입니다.
|
|
57
|
+
브리지는 사용자 설치 위치(`~/.local/bin/codex`)와 표준 시스템 설치 위치만 검색하며 프로젝트의 `PATH`는 쓰지 않습니다.
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
VENV="$HOME/.local/share/omp-superagent/codex-voice"
|
|
61
|
+
uv venv --python 3.12 "$VENV"
|
|
62
|
+
uv pip install --python "$VENV/bin/python" -r src/codex-voice-requirements.txt
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
다른 가상환경을 쓰려면 Gateway를 시작하는 환경의 `OMP_SA_CODEX_VOICE_PYTHON`에 그 인터프리터의
|
|
66
|
+
절대 경로를 지정하세요. `FILE.env`는 메신저 자격증명 전용이며, macOS 로그인 런처는 터미널의
|
|
67
|
+
환경 변수를 상속하지 않으므로 기본 경로가 편합니다. API 모드나 텍스트 전용 설치에는 Python이 필요 없습니다.
|
|
68
|
+
|
|
69
|
+
`/voice start` 때만 브리지가 Codex의 로컬 `app-server`에 현재 로그인 정보를 요청합니다. Codex 작업 스레드는
|
|
70
|
+
시작하지 않습니다. 오디오는 WebRTC로 OpenAI에 보내고 작업 초안과 상태 이벤트는 같은 통화의 별도 연결로 받습니다.
|
|
71
|
+
Codex 로그인이나 음성 권한이 거절되면 먼저 같은 OS 사용자와 `CODEX_HOME`으로 로그인했는지 확인하세요.
|
|
72
|
+
API 키로 로그인한 Codex, 만료된 자격증명, 별도의 지역·전용 서버 경로가 필요한 워크스페이스는
|
|
73
|
+
지원하지 않습니다. 브리지는 조직의 경로 제한을 무시하거나 다른 계정·API 키로 재시도하지 않습니다.
|
|
74
|
+
|
|
75
|
+
## 사용
|
|
76
|
+
|
|
77
|
+
- 소유자가 지정 음성 채널에 들어간 뒤 **지정 텍스트 채널**에 일반 메시지 `/voice start`를 보냅니다.
|
|
78
|
+
등록형 슬래시 명령이나 DM이 아닙니다. 준비됐다는 알림 후 말하세요.
|
|
79
|
+
- 일반 질문에는 Live가 답합니다. **구독 모드에서 작업을 맡길 때는** 소유자가 먼저 지정 텍스트 채널에 `/voice share`를 보낸 뒤
|
|
80
|
+
작업을 말하세요. 이 명령은 1분간 초안 하나를 **그 채널의 독자에게 공개**하는 허용이며 작업 승인은 아닙니다.
|
|
81
|
+
일반 음성 대화만으로는 모델이 작업으로 오해하더라도 본문을 게시하지 않습니다. API 모드는 기존 방식대로 초안을 게시합니다.
|
|
82
|
+
내용을 확인하고 **그 초안에 Discord 답장으로** `/voice confirm`을 보내세요. 채널에 따로 쓰거나 음성으로 “승인”하는 것은 접수가 아닙니다.
|
|
83
|
+
위험한 작업은 기존 HEAD 승인 절차를 그대로 거칩니다. 초안이 만료됐거나 접수 여부가 불확실하면 기존 텍스트 요청 기록을 확인하세요.
|
|
84
|
+
- HEAD 답변은 기존 텍스트 경로에 남습니다. 해당 음성 세션에는 일치하는 텍스트 답변이 게시됐다는 알림만 전달할 수 있고, 답변 본문을 OpenAI Live에 보내지 않습니다.
|
|
85
|
+
- `/voice stop`, 소유자 퇴장, 다른 참여자 입장, 연결 종료, 설정 시간 만료 또는 Gateway 종료로 음성 세션을 닫습니다.
|
|
86
|
+
자동 재접속·유료 재시도·묵시적 재개가 없습니다. 다시 시작하려면 새 `/voice start`가 필요합니다.
|
|
87
|
+
|
|
88
|
+
## 개인정보·비용
|
|
89
|
+
|
|
90
|
+
음성은 OpenAI로 전송됩니다. 로컬에 녹음 파일이나 대화 전체 전사본을 남기지 않습니다.
|
|
91
|
+
작업 초안은 Discord에, 확인한 요청과 답변은 기존 Gateway/OMP 기록에 남습니다.
|
|
92
|
+
구독 모드는 해당 계정의 음성 권한과 사용량 제한을 따릅니다. 무료 계정 지원이나 공급자의 무보관 정책을 보장하지 않습니다.
|
|
93
|
+
구독 거절·사용량 초과·연결 실패 시 통화를 닫습니다. 유료 API 키가 있어도 대신 사용하지 않습니다.
|
|
94
|
+
API 모드에서는 Live 세션과 Responses 위임에 비용이 발생할 수 있습니다. `maxSessionSeconds`는 명시적 시작 1회의 시간 제한이지
|
|
95
|
+
금액·일일 예산 제한이 아닙니다. 실제 요금은 [OpenAI 가격표](https://developers.openai.com/api/docs/pricing)에서 확인하고 공급자 쪽 지출 한도를 설정하세요.
|
|
96
|
+
실계정 통화 품질이나 지연 시간은 오프라인 테스트로 검증되지 않습니다.
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
# omp-superagent 0.1.0
|
|
2
|
+
|
|
3
|
+
First source release: one messenger-facing OMP head, with independent work lanes.
|
|
4
|
+
|
|
5
|
+
- Discord, Telegram, and Slack adapters with durable intake and owner-scoped routing.
|
|
6
|
+
- Native OMP sessions, approvals, model selection, and recovery through public APIs.
|
|
7
|
+
- Managed extensions and reconnectable local transport, without OMP core patches.
|
|
8
|
+
- A shared informational board and managed omp-ulw integration.
|
|
9
|
+
- Interactive setup, the `omp-sa` CLI, and optional one-shot macOS login startup.
|
|
10
|
+
- MIT-licensed project code, with separate third-party notices.
|
|
11
|
+
|
|
12
|
+
## Install
|
|
13
|
+
|
|
14
|
+
Download `omp-superagent-0.1.0.tar.gz` and its `.sha256` file from this release.
|
|
15
|
+
Verify the checksum, extract the archive, and follow the included README.
|
|
16
|
+
This is a Bun source distribution, not a standalone executable or npm package.
|
|
17
|
+
It requires Git, Bun 1.4.4 or later, a separately installed OMP >=18.20.2 and <19,
|
|
18
|
+
and Unix sockets. OMP 18.20.2 is the tested baseline. Installation checks OMP and
|
|
19
|
+
prepares published dependencies and the managed ULW integration; it does not build,
|
|
20
|
+
patch, or replace OMP. No bot starts until an explicit `start`.
|
|
21
|
+
Native TUI/herdr attachment to managed RPC sessions is not supported.
|
|
22
|
+
|
|
23
|
+
## Verification scope
|
|
24
|
+
|
|
25
|
+
The release workflow gates publication on type checking and local regression tests,
|
|
26
|
+
including offline native Host/Gateway and setup PTY fixtures, on Linux and macOS.
|
|
27
|
+
The macOS launchd case is platform-specific. These checks do not verify live messenger
|
|
28
|
+
accounts, paid model providers, herdr, or a real login/reboot. Windows is not supported.
|
|
29
|
+
ULW follows its upstream default branch during preparation and later managed updates;
|
|
30
|
+
the CI log records the exact revision used by that run.
|
|
31
|
+
|
|
32
|
+
## Verification records
|
|
33
|
+
|
|
34
|
+
검증 결과는 실행 당시의 환경·기준선·범위에만 적용한다. 아래 기록은 현재 설계나 지원 계약을
|
|
35
|
+
대신하지 않는다. 현재 절차는 [운영 가이드](../OPERATIONS.md#6-개발자-검증), 현재 구조는
|
|
36
|
+
[설계](../../DESIGN.md)를 따른다. 겹치는 테스트 묶음을 합산하거나 과거 수치를 이후 변경의
|
|
37
|
+
결과로 재사용하지 않는다. 로컬 fixture·PTY와 운영 계정·제공자·herdr 검증을 구분한다.
|
|
38
|
+
|
|
39
|
+
### Stock 18.20.2 baseline
|
|
40
|
+
|
|
41
|
+
공개 기준선 소스 revision: `7c49c11aa5bbaf3f418406583096168ad5b8c6dc`.
|
|
42
|
+
|
|
43
|
+
2026-11-16 macOS arm64에서 Bun 1.4.4, 공식 OMP 18.20.2 실행 파일,
|
|
44
|
+
ULW `1625e0de2e4807f1cfdac19e6b54578af1329951`로 `bun run test:ci`를 실행했다.
|
|
45
|
+
타입 검사와 **40개 파일·963개 테스트·66,581 assertion, 실패 0개**가 통과했다(250.05초).
|
|
46
|
+
실제 OMP Host 재연결·승인 유지·소유 서비스 종료, 목표/대기 입력 중단·재개,
|
|
47
|
+
압축 중 상태·컨텍스트·사용량 조회, 세션별 모델 설정·전역 설정 경계,
|
|
48
|
+
게시판·Gateway 복구·재시작 12개 시나리오, 설정 PTY와 임시 macOS launchd 흐름을 포함한다.
|
|
49
|
+
이는 격리된 로컬 제공자·메신저 fixture의 검증이며 실계정 로그인, 유료 제공자,
|
|
50
|
+
herdr, 실제 로그인/재부팅 및 운영 봇 배포는 검증하지 않았다.
|
|
51
|
+
|
|
52
|
+
### Native session discovery
|
|
53
|
+
|
|
54
|
+
2026-11-16 macOS arm64·Bun 1.4.4에서 SDK 18.20.2와 설치 OMP **18.20.3**으로 확인했다.
|
|
55
|
+
최종 타입 검사, 기존 관련 회귀 393개, SDK 검색·artifact·rewrite 1개, 실제 native 재개 1개가
|
|
56
|
+
각각 통과했다. 다른 cwd의 ID 검색, writer 해제 후 원본 이어쓰기, 동시 writer의 native fork와
|
|
57
|
+
후속 세션 선택, 원본 보존을 포함한다. 최초 fixture의 provider 선택·lease 환경·continuation
|
|
58
|
+
기대는 수정 후 해당 native 시험을 재검증했다. 전체 CI·실계정·유료 제공자·seance 검증이나
|
|
59
|
+
운영 Gateway 재시작은 수행하지 않았다.
|
|
60
|
+
|
|
61
|
+
### Legacy patched baseline
|
|
62
|
+
|
|
63
|
+
이 절의 표와 후속 실패 분석은 OMP 18.20.0 소스 revision
|
|
64
|
+
`c308970263ae13744ea15ab67302e3dac840e266`와 당시 프로젝트 코어 패치를 대상으로 한다.
|
|
65
|
+
삭제된 패치 이름과 flag는 역사적 실행 식별을 위해서만 남기며 stock 18.20.2 호환성·현재
|
|
66
|
+
attach 지원의 근거가 아니다. 실계정 명령/UI 행도 해당 동작의 증거이지 전체 플랫폼 수명·
|
|
67
|
+
승인·재연결 검증은 아니다.
|
|
68
|
+
당시 통합 검증에는 프로젝트 로컬 Bun 1.4.4와 버전이 일치하는 캐시 native addon을 별도
|
|
69
|
+
준비해 사용했다. 소스 native 빌드 명령을 실제 실행했다는 증거는 아니며 당시 전역 Bun과
|
|
70
|
+
설치 OMP 18.20.0은 교체하지 않았다. 이는 현재 설치의 준비 절차가 아니다.
|
|
71
|
+
|
|
72
|
+
당시 코드·프롬프트 검토에서 확인된 Gateway 미해결 접수·답변 reconciliation, Telegram queued
|
|
73
|
+
답변 복구, Discord ACK 순서, uncertain dispatch fence와 실제 종료까지의 소유권 보존을 수정했다.
|
|
74
|
+
헤드의 최종 모델 선택/judge 자문 문구·영어 내부 보고, metadata의 native 키워드 격리,
|
|
75
|
+
managed extension 중복/disabled 처리, 비차단 updater startup과 native bind→chmod readiness
|
|
76
|
+
경합도 수정했다. 아래는 이 수정들의 관측 검증과 기존 native-core·플랫폼·모델 선택 기준선이다.
|
|
77
|
+
확인된 검토 결과를 반영했다는 뜻이지 코드·프롬프트 전체의 절대 무결함을 보증하지 않는다.
|
|
78
|
+
실제 SDK의 HTTP 경계 모의 응답·로컬 WebSocket fixture를 운영 메신저·모델 제공자·herdr
|
|
79
|
+
활성화 검증과 구분한다.
|
|
80
|
+
첫 runtime/store 묶음의 실패와 그 뒤의 좁은 수정 검증도 따로 기록한다. 당시 실행 경로 검증은
|
|
81
|
+
결정적 로컬 제공자·기록용 Messenger 범위이며 실제 메신저 로그인이나 제공자 과금 검증이 아니다.
|
|
82
|
+
|
|
83
|
+
| 검증 항목 | 당시 관측 결과 |
|
|
84
|
+
| --- | --- |
|
|
85
|
+
| 2026-11-15 셋업의 마스코트 프로필 자동 적용 | Bun 1.4.4에서 `tsc --noEmit` 통과. setup-profiles/실제 setup PTY 2파일 30개·56,311 assertion 통과·31.69초: 저장 후 Discord/Telegram 업로드·재조회, 실제 grammY JPG multipart, 비밀 비노출·재시도 없음, 저장 전 취소/충돌의 무호출, 셸 우선순위, 업로드 실패 시 로컬 저장 보존, doctor의 비활성화를 확인했다. Slack 수동 안내 추가 후 최종 타입 검사와 전체 플랫폼/Slack-only PTY 2개·1,276 assertion 통과·1.02초(앞 묶음과 중복하므로 합산하지 않음). 최초 multipart 파일명 quoting 기대 오류는 SDK 출력에 맞게 수정했고, 설치 미완료 Bun npm placeholder는 기존 postinstall 실행으로 정상화했다. 실제 controlling terminal·격리 native 설정·합성 토큰·SDK 경계 범위이며 운영 봇 프로필/API·Gateway는 호출/변경하지 않았다. |
|
|
86
|
+
| 2026-11-15 근거 기반 same-HEAD 자동 복구 | 최종 Bun 1.4.4 타입 검사와 runtime/store/skills/Gateway/Discord commands/Slack/Telegram 7파일 546개·4,591 assertion 통과. 격리된 실제 Gateway·native HEAD `recovery` 시나리오 1개·3.12초 통과: 동일 PID·세션·모델, 원본 native write 1회, 복구 판단 중 후속 보류, 실제 `head_recovery` 호출 뒤 native receipt 확인·후속 실행, receipt 없는 제출의 무재실행 보류, 금지 write의 실제 native 거절, 운영자 `/resolve`, 중복 무재전송과 network 0을 확인했다. 초기 스킬 fixture 도구목록·시작 시 통지 전달 순서·native 해제 거부를 수정했고, 결정 제안과 native 종료 후 최종 확정을 분리했다. 제안 이후 종료·재연결·외부 효과 불확실성·늦은 다른 실행·운영자 중단·원래 승인/goal 신원은 회귀로 검증했다. 독립 최종 리뷰의 기존 두 발견 사항을 해소했다. 전체 root suite·운영 메신저 계정·유료 제공자·실서비스 배포/재시작은 실행하지 않았다. |
|
|
87
|
+
| 2026-11-15 PR #1 수동 보류 해제 보완 | 보완 커밋 `731dab9892`를 포함해 PR #1을 `85da9e7`로 병합했다. 최신 main과 통합한 상태에서 Bun 1.4.4 타입 검사, runtime/Slack/Discord commands/store/Telegram 5파일 448개·3,967 assertion 통과. 취소 후 live 접수 정리, busy/미확인 native 보존, steering 소유자 취소, 중간 재시작의 대상 고정, Slack 명령 정규화를 검증했다. 운영 메신저·배포·재시작은 하지 않았으며 뒤의 자동 복구 기능 검증과 별개다. |
|
|
88
|
+
| 2026-11-15 Dori PR 비교 후 버그·높음 후보 반영 | Bun 1.4.4에서 대상 8파일을 서로 겹치지 않는 2묶음으로 실행: Discord/Telegram 122개·1,248 assertion, repository/Slack/runtime/store/Gateway/managed-ULW 431개·3,531 assertion 통과. 타입 검사 통과. 실제 native Gateway `valid` 시나리오 1개·2.73초에서 원래 head와 명시적 lane의 journal에 답장 스냅샷이 남고 인용된 `/restart`·ULW 이름이 권한을 얻지 않는 것을 확인했다. 공식 immutable ULW `22a8cfe89447a1cd55f2fd004d81e164372738a5`의 별도 offline 합성에서 일반·명시적 활성화 각 2턴, 메모리 세션·network 0 확인. 최초 native 실행은 기존 command의 Bun 경로 누락으로 실패했으며 기존 lockfile의 로컬 toolchain을 `npm ci --ignore-scripts`로 준비한 뒤 실제 패키지 binary로 검증했다. 최초 타입 오류는 probe narrowing과 SDK/native fixture 타입을 수정했다. 앞선 Bun 1.4.2 예비 실행은 이 지원 런타임 결과에 합산하지 않는다. 실제 메신저 계정·유료 제공자·운영 Gateway/HEAD 재시작·프로덕션 active pointer 변경은 수행하지 않음 |
|
|
89
|
+
| 2026-11-14 자율 재개 회귀 3건 수정 | `0004`는 기존 native `RpcUserInputGate`에서 serial 대기 중인 goal resume을 뒤늦은 abort로 무효화한다. 별도 resume receipt가 일반 source handoff/첨부와 충돌하지 않으며, source가 있는 completed/unloaded 재개도 기존 세션·middle preset을 보존한다. runtime/store 257개·2,299 assertion, native input-order/input-frame/goal 61개·229 assertion 통과. 의도적 원인 복원에서 correction identity 충돌·completed 복원 거절 2개와 실제 native queued resume 재활성화 1개가 각각 실패했고, 소스를 바이트 단위로 복원한 뒤 해당 2개·11 assertion과 native autonomy 1개·30 assertion이 통과했다. 최종 typecheck 통과. native model-selection도 source `103`·같은 세션·preset을 유지한 실제 완료/unload/reopen 흐름으로 통과했다. 최초 native barrier는 작은 transcript 기본 compaction 정책 때문에 미진입했고, 다음 시도는 held compaction 정리를 기다리는 abort ACK를 먼저 기다려 timeout됐다. fixture만 수정했다. 기존 model fixture의 kickoff 누락 기대값도 실제 durable kickoff receipt를 정확히 포함하도록 고쳤다. 실패 진단은 보존했고 남은 격리 fixture Host 1개는 신원 확인 후 barrier 해제·native 정상 종료했다. 운영 서비스·메신저 계정·전역 설정 변경이나 재시작은 하지 않음 |
|
|
90
|
+
| 2026-11-14 목표 기반 자율 실행 | Bun 1.4.4에서 `tsc --noEmit` 통과. Host/runtime/store/default-steering/skills 5파일 294개·2,575 assertion 통과·10.62초. native RPC goal/default tool 2파일 31개·122 assertion 통과·8.11초(관리 세션의 marker를 물려받지 않는 격리 환경). 실제 managed Host·production lane role·native goal·결정적 로컬 제공자·기록용 Messenger에서 1개·19 assertion 통과·5.14초: 목표 생성→첫 yield→native continuation→완료, 실제 `/stop` 후 paused 상태·추가 실행 없음, `/resume`의 동일 topic/source-bound durable report, `goal.enabled=false`와 명시적 `--tools read` 제외·전역 설정 무변경 확인. resume ACK만으로 성공 처리하지 않는 첫 run 실패/중단·zero-run 및 뒤늦은 pause·ACK 경합·unloaded 복원은 runtime 회귀로 확인했다. 첫 native 활성 도구 누락은 SDK 초기 선택에서 수정했으며 fixture ID·리소스·중복 관측 오류를 고친 뒤 위 결과를 얻었다. 실제 모델의 자율 판단 품질·실계정·운영 재시작 검증은 아니며 실행 중인 Gateway/head는 변경하지 않음 |
|
|
91
|
+
| 2026-11-14 `/restart` 리뷰·회귀·실계정 | 요청 UUID 규약 불일치, 확정 거절 뒤 fence 유지, 과거 receipt 갱신의 최신 상태 덮어쓰기를 수정했다. runtime/Gateway/lifecycle/default-steering 전체 4파일 286개·2,415 assertion 통과·11.28초. 마지막 fixture receipt 타입 수정 뒤 `tsc --noEmit` 및 lifecycle 전체 10개·78 assertion 통과·5.83초. Discord에 restart 포함 12개 명령을 적용·GET 검증하고 실제 자동완성에서 `/restart` 실행: Gateway 72353→72522, HEAD 72371→72526, 세션 `01a1d829-0eca-7323-8e3d-400f15811a55` 유지. 실제 접수 응답 `1571084170149757019`·준비 완료 응답 `1571084188050919425`의 UI 표시와 durable `sent`를 확인했다. 최종 두 프로세스 ready, 초기화 complete, 대기/미해결 이벤트 0, restart fence 해제. Telegram/Slack은 같은 경로의 회귀·SDK 검증 범위이며 실계정은 미설정 |
|
|
92
|
+
| 2026-11-14 Discord 명령 실계정·UI | 유휴·미처리 입력/출력 없음 확인 후 정상 stop/start로 Gateway 64050·HEAD 64055 기동, 같은 세션 `01a1d829-0eca-7323-8e3d-400f15811a55` 보존. 당시 11개 명령의 이름·Superagent 설명·옵션·범위를 실제 API에 적용하고 GET readback 일치 확인. Discord 브라우저 자동완성에서 `/status`를 선택·실행해 비공개 접수 확인과 실제 상태 답변을 확인했다. 입력 `1571074536387121294`는 `messageId:null`인 interaction으로 `done`, 응답 `1571074537733230604`는 `sent`; native 초기화 complete·유휴 상태 확인. 이후 추가한 `/restart` 자체의 검증과 Telegram/Slack 실계정 검증은 이 행의 범위가 아님 |
|
|
93
|
+
| 2026-11-14 세 메신저 명령 메뉴·실행 | 관련 14파일 전체 480개·4,981 assertion 통과·12.94초. 실제 Slack SocketModeClient의 로컬 WebSocket ACK·재전달, 명령 신원·비밀 비저장·토픽 경계·busy 상태 조회·기존 플랫폼 경로를 포함한다. 이후 SDK 타입 수정 뒤 `tsc --noEmit` 통과 및 Telegram/Slack 등록 2파일 전체 32개·843 assertion 통과·67ms. Discord·Telegram·Slack 등록 경계와 새 ingress에 대한 독립 정적 리뷰에서 추가 결함 없음. 실제 Discord 등록 dry-run은 bot/app 신원과 기존 Hermes 목록·guild 충돌 없음까지 확인했다. 운영 등록·재시작·실제 명령 UI 결과는 별도 기록하며 Telegram/Slack은 현재 운영 config에 없어 실계정 검증하지 않음 |
|
|
94
|
+
| 2026-11-14 최초 셋업의 native judge 권장·리뷰 수정 | `tsc --noEmit` 통과. setup와 실제 setup PTY 2파일 전체에서 47개·46,488 assertion 통과·59.83초. 새 구성 저장 후의 미설정 권장, 전역/프로젝트/overlay·별칭/선택자 체인·null/빈 값·쉼표/공백뿐인 체인·판독 실패 구분, 미이관 legacy JSON/DB의 확인 불가 처리와 현행 설정/상위 layer 우선순위, Mnemopi 동의와 독립된 안내, 기존 구성 갱신·취소·출판 실패의 검사 생략과 native 설정/계정 파일 무변경을 확인했다. 일반 OMP의 `/models` → Roles → Judge 경로로 안내하며 모델 가용성·인증·실제 judge 호출은 검증하거나 변경하지 않음 |
|
|
95
|
+
| 2026-11-14 최종 프리셋·Mnemopi·완료 이벤트 통합 | `tsc --noEmit` 통과. native-presets/runtime/Gateway/Gateway lifecycle/setup/실제 setup PTY 6파일 전체에서 210개·4,986 assertion 통과·16.20초. 최초 생성의 Mnemopi 명시적 yes·거절·Enter·취소·출판 실패·기존 구성 갱신·shadowed 설정·동시 변경·비밀 오류 비노출을 확인했다. terminal receipt가 완료 drain 종료 경계에 도착해도 유실되지 않는 결정적 회귀 포함. 운영 Gateway와 사용자 설정은 변경하지 않음 |
|
|
96
|
+
| 2026-11-14 최종 native 초기화·복구·effort | native-gateway와 native-model-selection 전체 2파일에서 6개·436 assertion 통과·28.38초. 생성/기존 유효/실패/미실행/중단 5개 Gateway 시나리오, 초기화 중 영속 입력 보존·정확한 head 소유권·재시작 무재실행·실제 CLI `status`의 running/complete 및 ready 전환·실제 HEAD effort 상속 확인. 최초 scripted provider의 last-user-wins와 1-input/1-report 가정을 source-aware·실제 steering cohort 계약으로 수정하고 전체 시나리오를 유지했다. mock과 광고 context window는 기존 ULW fixture와 같은 65,536으로 맞췄으며 native compaction은 유지했다. 실제 OMP/RPC·결정적 로컬 제공자·기록용 Messenger 범위이며 운영 봇의 새 코드 재시작 검증은 아님 |
|
|
97
|
+
| 2026-11-14 config-only native 설정 API | native `settings-manager.test.ts` 전체 157개·619 assertion 통과·2.40초. 계정 DB 미생성·기존 계정 바이트 미접근/보존·동시 무관 키 보존·malformed 및 legacy 설정 보호를 확인했다. `0002-config-only-settings.patch`를 변경 전 사본에 적용하여 실행 소스와 테스트의 바이트 일치를 확인했으며 배포 patch 목록과 순서별 결합 digest를 갱신했다 |
|
|
98
|
+
| 2026-11-14 프리셋 초기화·effort 수정 — 타입·단위 | 최종 `tsc --noEmit` 통과. native-presets/runtime/Gateway/Gateway lifecycle/setup 5파일 전체에서 191개·1,549 assertion 통과·6.90초. 최초 3개 lifecycle 실패는 초기화 완료 상태를 내보내지 않던 격리 Host fixture를 새 준비 계약에 맞춘 뒤 해결했다. 기존 준비 게이트를 완화하지 않았으며 운영 봇·사용자 프리셋은 변경하지 않음 |
|
|
99
|
+
| 2026-11-14 헤드 effort 상속 — 실제 OMP | native-model-selection 전체 파일 1개·431 assertion 통과·5.56초. 실제 NativePresetManager와 native RPC로 세션 정책 `low` 뒤 thinking을 생략한 프리셋을 적용해 정책 유지 확인. 명시적 정책·selector 우선순위와 기존 레인 고정 정책도 대상 단위 묶음에서 확인. 초기 fixture의 상위 judge 역할 shadowing과 비추론 모델의 유효 thinking 기대값을 수정했으며, 정책 `low`와 유효 thinking `undefined`를 구분한다. 격리 설정·결정적 로컬 제공자 범위이며 새 코드로 운영 Gateway를 재시작한 검증은 아님 |
|
|
100
|
+
| 셋업 비대화형 도움말 | wrapper/direct CLI의 `--help` 성공과 실제 secret 입력의 no-TTY 거부를 기존/미생성 설정 양쪽에서 확인: 대상 회귀 1개·80 assertion 통과. 설정·비밀 파일 무변경·비활성화 조건 유지. 아래 28개 묶음 이후의 좁은 수정 검증이며 합산하지 않음 |
|
|
101
|
+
| Hermes 참고 토큰 CLI 셋업 | 최종 타입 검사 통과. setup/config/실제 PTY/Gateway lifecycle 4파일에서 28개·692 assertion 통과·5.08초. 모든 메신저 입력, 숨김·xtrace/argv 비노출, mode 0600·literal dotenv, 기존 JSON 보존, 명시적 셸 우선순위, ambient dotenv 차단, Ctrl-C/EOF 및 부모 PID만의 SIGINT/SIGTERM/SIGHUP·terminal echo/reader 회수, no-TTY·긴 socket 경로의 무저장 거부, 2개 프로세스의 stale 갱신 거부, 실제 native `--help`를 사용하는 doctor와 명시적 Gateway 수명 확인. 합성 토큰·격리 경로이며 운영 계정은 활성화하지 않음 |
|
|
102
|
+
| 사용자 요청 최종 로컬 통합 검증 | `tsc --noEmit` 통과 후 변경 관련 12개 파일에서 358개 통과·0개 실패·3,144 assertion·16.65초. runtime/store/역할·기본 steer·3개 플랫폼·hub/Gateway·native topic capability 및 실제 native steering/중단/재시작 검증 포함. 아래 초기 실패와 기대값 충돌 모두 반영한 실행이며 저장소 전체 테스트나 운영 메신저 로그인 검증을 뜻하지 않음 |
|
|
103
|
+
| 기본 steer·주제 바인딩 최종 타입·대상 회귀 | `tsc --noEmit` 통과. 새 `default-steering.test.ts` 13개·90 assertion 통과; 기존 local-command 회귀 1개·2 assertion 통과. 같은 route와 교차 주제, 입력별 완료·중복·취소·disconnect, native 생성/논리 fallback·불확실성·sibling·head-only 결과 목적지 확인. 이후 사용자 승인으로 갱신한 기존 routing 계약 회귀도 1개·20 assertion 통과 |
|
|
104
|
+
| 기본 steer·자동 주제의 실제 OMP | `test/native-steering.test.ts` 1개·140 assertion 통과·4.40초. 실제 native tool barrier 중 same-run steer 반영·각 source receipt·단일 최종 답변, 다른 topic 분리, 명시적 lane steer와 독립 2개 세션, controller 재연결·원본 재전달 중복 방지, `/stop`의 두 ticket abort·후속 실행 없음, in-flight head SIGKILL 뒤 두 입력 uncertain·동일 native transcript 재시작 후 자동 replay 없음 확인. 결정적 로컬 제공자·기록용 Messenger이며 운영 계정 로그인은 미수행 |
|
|
105
|
+
| native topic capability·Gateway IPC | 어댑터·hub·Gateway 7파일에서 147개·1,101 assertion 통과. 이후 Discord forum/media 생성 확장 뒤 native-thread-capabilities·Discord 2파일 65개·652 assertion 통과. 두 묶음은 중복되므로 합산하지 않음. 실제 SDK 경계의 권한·필수 태그 거부·원래 source identity·네트워크 불확실성 확인; 운영 API 호출 성공 증거는 아님 |
|
|
106
|
+
| steer 변경 뒤 기존 runtime/store/skills 회귀 | 최초 189개 통과·2개 실패. 명시적 local 완료 응답(`agentInvoked:false`)에는 추가 `prompt_result`가 없다는 native 계약을 source에서 복구하고 해당 기존 회귀 통과. 나머지 pending-only 후속 기대값은 사용자 승인 뒤 기본 steer 계약으로 갱신: 같은 주제는 tracked steer로 제출되지만 main 소유 유지, 다른 주제는 pending 유지, lane 생성 후에도 두 입력 모두 자동 재배정·handoff 없음 검증. 해당 회귀 1개·20 assertion 통과. 두 수정 뒤 전체 묶음을 재실행한 결과로 확대하지 않음 |
|
|
107
|
+
| 명시적 preset `--global`·변경 알림 | 타입 검사 통과. native-presets 격리 wrapper 1개 통과, runtime preset/global 대상 17개 통과 후 잘못된 테스트 route 2개를 수정해 해당 2개·155 assertion 통과. session-only 무쓰기, 정확한 frozen 전역 저장·미제공/실패/불일치의 부분 성공 알림·중복 재저장 방지 확인 |
|
|
108
|
+
| preset 전역 저장 실제 OMP E2E | 최종 native-model-selection 1개 통과·421 assertion·4.32초. 실제 native Settings 전역 역할·effort 저장, 프리셋 원본·무관 설정 보존, 새 Settings 인스턴스 readback, 이후 더 새로운 전역 선택을 과거 명령 재전달이 덮지 않음, 기존 레인 불변, 실제 변경 전후·범위 알림과 session-only 복원 확인. 초기 테스트의 비추론 모델 effort 기대값을 native `undefined`로 정정한 뒤 통과. 격리된 로컬 fixture 설정만 변경했고 운영 계정·사용자 전역 설정은 미변경 |
|
|
109
|
+
| 우선 메신저 명령·native 프리셋 타입 검사 | 통과 — `bun run check` (`tsc --noEmit`) |
|
|
110
|
+
| 우선 메신저 명령·설정 복원 회귀 | Bun 1.4.4에서 runtime·Slack·Host·Gateway lifecycle 200개 통과·0개 실패·1,398 assertion. 조회의 native 값·busy 안전성, head/lane stop·접수 경계·중복·복구, 압축의 완료·중단·불확실성, 전체 native 프리셋 적용·세션별 원자적 복원 기록, Gateway 재기동 private overlay 확인 |
|
|
111
|
+
| 우선 메신저 명령 실제 OMP E2E | native-model-selection 1개 통과·365 assertion·4.42초. 기록용 Messenger와 실제 patched OMP에서 조회 무모델 호출, 전체 프리셋 적용과 이후 개별 모델·effort 선택의 재시작 복원, 실제 컨텍스트 압축·다중행 지시, 압축 중 조회·중단, 실제 streaming 작업 중단과 새 요청, 지정 레인 일시정지 확인. 결정적 로컬 제공자이며 운영 계정·외부 제공자는 미사용 |
|
|
112
|
+
| native RPC 우선 조회·중단·장기 응답 | rpc-input-frame·rpc-user-input-order·rpc-client.start의 39개 통과·130 assertion과 별도 zero-deadline 1개·5 assertion 통과. 압축 시작/후속 mutation 순서 보존, 대기 중 압축 취소, 압축 도중 상태 조회·abort, `timeoutMs: 0` 응답/연결 종료 확인. 초기 실행은 자식 Bun 1.4.2 선택과 테스트 rejection matcher의 EOF 유발 순서 오류로 실패/timeout했으며, 고정 Bun PATH 및 테스트 순서 수정 후 위 범위 통과 |
|
|
113
|
+
| 헤드 `/model`·`/effort` 타입 검사 | 통과 — `bun run check` (`tsc --noEmit`) |
|
|
114
|
+
| 헤드 명령·기존 runtime·Slack 회귀 | Bun 1.4.4에서 `test/runtime.test.ts`, `test/slack.test.ts` 170개 통과·0개 실패·1,194 assertion. 세션 범위, busy 조회/변경 거부, 지원값, 원래 route, 순서·중복·불확실성 fence, Slack live/catchup `!` 정규화 확인 |
|
|
115
|
+
| 헤드 명령 실제 native OMP 검증 | `test/native-model-selection.test.ts` 1개 통과·187 assertion·5.22초. 기존 judge·레인 프리셋 경로와 함께 기록용 Messenger → 실제 head RPC 모델·effort/off 변경, 레인 불변, 모델 턴 미발생, 중복 방지, 설정 파일 바이트 보존, 동일 head transcript 재시작 후 모델·effort 복원 확인. 운영 메신저 로그인·실제 제공자 호출은 하지 않음 |
|
|
116
|
+
| 당시 root 타입 검사 | 최종 통과 — 마지막 수정 뒤 최종 담당자의 실제 tsc 실행 |
|
|
117
|
+
| 당시 전체 root 회귀 | Bun 1.4.4에서 345개 통과·7개 skip·0개 실패·2,542 assertion. local-Git 설치 CLI·반복/동시 준비·업데이트/rewind/실패·old-live/new-host·delayed Gateway 회귀 포함. 마지막 native bind→chmod readiness 수정 전 결과이며 그 뒤 전체 재실행으로 확대하지 않음 |
|
|
118
|
+
| 당시 마지막 Host readiness 수정 회귀 | 15개·58 assertion 통과 — 실제 bind 뒤 chmod하도록 수정한 뒤의 targeted Host 결과 |
|
|
119
|
+
| 당시 native core managed-extension/discovery 회귀 | 80개·235 assertion 통과 — managed-extension precedence, extensions-discovery, plugin-discovery, disabled-extensions, task-discovery |
|
|
120
|
+
| 당시 공식 managed ULW 설치 CLI | 실제 `prepare-ulw` CLI 성공 — 프로젝트 소유 `.upstream/ulw`에 공식 revision `1f5ef903a2f4234ffdfe4a5295f4d8c994036c64`를 immutable `revisions/<sha>/package`로 활성화. 공용 사용자 ULW checkout은 변경하지 않음 |
|
|
121
|
+
| 당시 실제 native managed ULW 활성화 | 1 테스트 통과·3.50초 — wrapper expect 2개이며 내부 assert 수를 부풀려 합산하지 않음. 공식 managed revision `1f5ef903…`에서 plain ULW arm·자동 goal 미생성, head 선택 lane `ulw-plan`→`ultrathink`·`ulw-execute`→`orchestrate`의 실제 model-context notice와 영속 custom_message/directive 확인. passive 인용/report/board 비활성화, source/route/dedup 확인. 결정적 로컬 제공자·기록용 Messenger 범위 |
|
|
122
|
+
| 당시 실제 native Gateway/runtime/model 기준선 | 수정된 기준선 3개·217 assertion 통과 — 결정적 로컬 제공자·기록용 Messenger 범위 |
|
|
123
|
+
| 당시 native 프롬프트 조합·Host/TUI/board | 앞선 실행 묶음 17개 통과 — 14개 프롬프트 composition과 실제 Host/TUI/board 포함. 다른 행과 중복 가능하므로 합산하지 않음 |
|
|
124
|
+
| 통합 당시 root 타입 검사 | 당시 통과 — 최종 담당자의 실제 tsc 실행. 당시 마지막 fixture-only receipt correlation 변경 전 결과이며 현재 ULW 변경 전의 기록 |
|
|
125
|
+
| 통합 당시 Gateway IPC·수명 회귀 | 9개·49 assertion 통과 — detached CLI 수명, busy stop, head downtime durable 수신·승인 준비, framed attachment EOF/abort 포함 |
|
|
126
|
+
| 통합 당시 공유 board 회귀 | 13개·104 assertion 통과 — membership·read/post/알림·세션별 unread 등. 이전 host+skills+board 묶음은 32개·215 assertion 통과였고 board 1개 추가 전 결과이므로 합산하지 않음 |
|
|
127
|
+
| 통합 당시 Host·역할 스킬 회귀 | host 14개·skills 6개 통과 — 앞의 combined 묶음과 중복 가능. head/lane/common board 분리·자식 권한 경계 |
|
|
128
|
+
| 통합 당시 runtime/store 회귀와 좁은 수정 검증 | 최초 묶음 131개 통과·1개 실패. 비동기 report 기대 수정 뒤 해당 1개·8 assertion 통과. 이후 cross-conversation runtime 1개·10 assertion, store 29개·268 assertion 통과. 수정 뒤 전체 묶음을 다시 통과했다고 확대하지 않음 |
|
|
129
|
+
| 통합 당시 reconnect targeted 회귀 | 1개·9 assertion 통과 |
|
|
130
|
+
| 통합 당시 실제 native runtime + model-selection | 2개·215 assertion 통과 — 실제 patched OMP Host에서 모든 입력의 head 경유와 기존 모델/judge readback 유지. 결정적 로컬 제공자·기록용 Messenger 범위 |
|
|
131
|
+
| 통합 당시 실제 native board | 격리 wrapper에서 통과 — assertion 수 미보고. 실제 native 경로의 instance/역할/membership·게시판 계약 근거이며 운영 계정 검증 아님 |
|
|
132
|
+
| 통합 당시 실제 native Gateway E2E | wrapper 1개 통과·4.85초 — wrapper expect 1개와 fixture 내부 node assert; 내부 assertion 수 미집계. 실제 production Gateway·native head manager/lane 확장·board direct/xd 도구, head SIGSTOP/SIGKILL 중 ingress·복구, 동일 native 세션/모델·replay dedupe·정확한 원래 route의 head-only 회신, lane manager 거부·board actor/session, busy-stop 거부·Gateway client detach 시 Host 유지 확인. 결정적 로컬 모델·기록용 Messenger 범위이며 운영 로그인/실제 제공자 과금 근거 아님 |
|
|
133
|
+
| 레인 모델 선택·최초 native 프리셋 초기화·명시적 유휴 변경·격리·재개·역할 스킬 회귀 | 통과 — runtime 99개·608 assertion, 모델 목록 3개, 스킬 6시나리오, 별도 프로세스의 실제 native Settings 프리셋 회귀. 기존 항목 보존·동시 생성 충돌·전체 역할/thinking snapshot·지연 전환·재개 검증 |
|
|
134
|
+
| 모델 선택 native E2E·실제 judge 자문/사용량 | 1 테스트·121 assertion 통과 — 실제 patched OMP CLI와 native eval judge, purpose `judge` 사용량 기록, 자문과 최종 선택 분리, native 프리셋 변경·재개·설정 바이트 보존. 결정적인 로컬 제공자 범위이며 실제 모델 품질 평가는 아님 |
|
|
135
|
+
| native 프리셋 생성·세션 설정 격리 | 32 테스트·151 assertion 통과 — 동시 생성·손상 설정 보존, 세션 전용 프리셋 적용, 실제 TUI 모델 허브의 역할 선택·설정 바이트 보존 |
|
|
136
|
+
| 루트 타입 검사 | 통과 — 상위와 정렬한 TypeScript 7.0.2 사용 |
|
|
137
|
+
| native 스킬·역할 격리 | Bun 1.4.4에서 6 시나리오·76 assertion 통과 — 다른 cwd의 실제 OMP SDK discovery/URI 읽기, 기존 사용자·프로젝트·custom 스킬 보존, 헤드/레인/자식 도구 권한·스키마·명시적 제외 유지. 변경한 Host 테스트 14개도 통과 |
|
|
138
|
+
| Host·설정·플랫폼 분배·영속 장부 회귀 | 통과 — 다중 플랫폼 권한·분배, 실제 자식 프로세스의 메신저 자격 증명 제거, 첨부 재전달 포함 |
|
|
139
|
+
| Discord·Telegram·Slack·runtime 회귀 | 155개 통과 — 승인 복구 장벽, 늦은 답장, 동시 입력, 유휴 Telegram offset, 주제 격리·자율 goal 결과 포함 |
|
|
140
|
+
| 상위 native RPC 회귀·생성 wire | RPC 57 통과, 생성 wire 별도 1 통과 |
|
|
141
|
+
| 상위 Collab/소켓 회귀 | 29 통과 — 다른 상위 묶음과 중복 가능 |
|
|
142
|
+
| 실제 네이티브 Host | 1 테스트·28 assertion 통과 |
|
|
143
|
+
| CLI 진단 | 기존 `--help`·빈 `status`·Telegram+Slack 진단 통과. 격리된 실제 `doctor`에서 `--rpc-socket`·`--session-settings`·`--model-preset` 지원 재검증 통과 — 토큰 없음, `messengersActivated: false` |
|
|
144
|
+
| 네이티브 TUI PTY·동일 Host attach | 1 테스트·19 assertion 통과 — 대화 렌더링, 읽기 전용 입력 차단, 제어 TUI 입력, 연결 해제 후 동일 Host 유지 |
|
|
145
|
+
| 실제 Host를 통한 runtime 코드 E2E | 1 테스트·45 assertion 통과 — 실제 헤드·레인, 원래 대화로 회신, 중복 수신 방지, 스레드 세션 격리·후속 대화 유지; 로컬 모델/기록용 Messenger 범위 |
|
|
146
|
+
| 실제 Slack SocketModeClient·로컬 HTTP/WebSocket | 1 테스트·17 assertion 통과 — SQLite 영속화 이후 wire ACK, 재전달 중복 제거, 양방향 ping/pong 및 연결 유지. Bun 1.4.4·Socket Mode 3.2.0 |
|
|
147
|
+
| 운영 Discord 로그인·수신·발송·승인·재연결 | 미수행 — 실제 Discord 자격 증명으로 활성화하지 않음 |
|
|
148
|
+
| 운영 Telegram·Slack 로그인·수신·발송·승인·복구 | 미수행 — 실제 계정·토큰으로 활성화하지 않음 |
|
|
149
|
+
| 실제 모델 제공자 호출 | 미확인 — 잘못된 generator 호출의 보조 OMP가 파일 설명 응답을 반환했으나 실행 파일/PID/세션/제공자 사용량 미확보. 실제 제공자·비용 부작용은 검증하지 못했으며 결정적 로컬 테스트 증거와 별개 |
|
|
150
|
+
| herdr pane 연결·해제 후 실행 유지 | 미수행 — herdr는 설치되어 있으나 `HERDR_ENV`가 없고 제어를 시도하지 않음 |
|
|
151
|
+
|
|
152
|
+
steer 검증의 초기 실패/timeout은 새 fixture의 terminal-row 조회, 유효한 native Host 예산,
|
|
153
|
+
prompt와 읽기 전용 catalog 요청 구분, 기존 `/stop` receipt 상태, 종료한 fake Host 재연결
|
|
154
|
+
관측 오류를 포함한다. 새 fixture를 실제 API 계약에 맞추고 위 성공 기준은 유지했다.
|
|
155
|
+
별도로 확인된 production local 완료 처리 누락은 source를 수정해 기존 회귀로 검증했다.
|
|
156
|
+
기존 pending-only 기대값은 사용자 승인 뒤 새 동작과 원래 재배정 방지 조건을 함께 검증하도록
|
|
157
|
+
갱신했다. 이후 사용자 요청으로 위 12파일 최종 통합 검증을 실행해 통과했으며, 이를 저장소
|
|
158
|
+
전체 테스트나 운영 계정 검증으로 확대하지 않는다.
|
|
159
|
+
|
|
160
|
+
토큰 셋업의 초기 검증에서는 새 PTY relay/stream reader의 관측·타입 오류와 긴 임시 socket
|
|
161
|
+
경로를 수정했다. 별도로 실제 PTY에서 발견한 native 라이브러리 import의 ambient dotenv
|
|
162
|
+
주입은 제품 코드의 lazy import·시작 전 필수 credential 검사로 수정했다. 저장된 토큰·
|
|
163
|
+
셸 우선순위 기대값이나 비활성화 조건을 낮추지 않고 위 최종 묶음에서 확인했다.
|
|
164
|
+
|
|
165
|
+
운영 전에는 미검증 항목을 별도로 확인해야 한다. 테스트·PTY 결과를 실제 메신저나
|
|
166
|
+
herdr 사용자 흐름의 검증 결과로 대신 표시하지 않는다.
|
|
167
|
+
|
|
168
|
+
### Additional legacy observations
|
|
169
|
+
|
|
170
|
+
다음 기록도 위의 패치된 18.20.0 기준선에 속한다. 현재 stock 지원이나 이후 변경의 결과가 아니다.
|
|
171
|
+
|
|
172
|
+
#### 역할 프로필 합성
|
|
173
|
+
|
|
174
|
+
당시 역할 스킬 공급은 native package discovery를 사용했으며 고정 버전에서 호출되지 않던
|
|
175
|
+
`resources_discover` 훅에 의존하지 않았다.
|
|
176
|
+
이전 패치된 18.20.0 소스 기준선의 역할 특화 기록은 타입 검사와 스킬 회귀 14개·218 assertion 통과다.
|
|
177
|
+
기존 6개 시나리오에 더해 실제 OMP SDK에서 ULW/역할 확장의 양쪽 로드 순서,
|
|
178
|
+
head/lane·root/child 조합, 첫 턴·후속 턴과 OpenAI Responses 요청 훅의 프롬프트
|
|
179
|
+
보존을 확인했다. 이는 프롬프트 전달·권한 격리 검증이며 모델의 지침 준수나 실제
|
|
180
|
+
제공자 호출 검증은 아니며 현재 workflow/native activation·관리형 설치/업데이트 변경의 검증으로
|
|
181
|
+
재사용하지 않는다. 당시 root/설치/discovery와 실제 native·프롬프트 조합 결과는 위의 역사
|
|
182
|
+
기록에서 구분한다. stock 18.20.2 결과는 위의 별도 기준선 기록을 따른다.
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
#### 근거·대기 관측과 중간 진척
|
|
186
|
+
|
|
187
|
+
이전 패치된 18.20.0 소스 기준선의 PR #45/#46 검증: Bun 1.4.4에서 store/runtime/lane-report/skills 4파일의 최초 실행은
|
|
188
|
+
351개 통과·4개 실패였다. 실패는 native child의 선행 `tool_call` 거부 메시지 기대값 2개,
|
|
189
|
+
비동기 `SessionManager.newSession` 미대기 1개, 새 `get_entries`를 빠뜨린 명령 순서 기대값
|
|
190
|
+
1개였고 이를 수정했다. 이후 최종 `tsc --noEmit`과 변경·실패 범위 6개·61 assertion이 통과했다.
|
|
191
|
+
전체 4파일을 수정 뒤 다시 실행한 결과로 확대하지 않는다. 원본/세션/generation·pause/
|
|
192
|
+
uncertain fencing, 동일 근거·대기 시각 보존, 재시작 전 미회수 eval journal·중복·버퍼 순서를 포함한다.
|
|
193
|
+
실제 patched OMP + production Gateway/head/lane의 `startup (valid)`도 1개 통과·2.81초:
|
|
194
|
+
대기 관측의 헤드 전달, 원래 주제의 `/status`, 실제 파일 SHA-256, eval 내부 `lane_report`의
|
|
195
|
+
native journal 회수와 matching resolved 전달, 원본 입력의 비종료·정확한 route를 확인했다.
|
|
196
|
+
wrapper assertion은 1개이며 fixture 내부 node assertion 수를 합산하지 않는다.
|
|
197
|
+
결정적 로컬 provider·기록용 Messenger·격리 설정만 사용했고 운영 봇 활성화·재시작,
|
|
198
|
+
실계정 로그인·외부 발송·실제 제공자 호출·커밋은 하지 않았다.
|
|
199
|
+
|
|
200
|
+
이전 패치된 18.20.0 소스 기준선의 2026-11-15 검증: Bun 1.4.4에서 runtime/store 회귀 314개·2,720 assertion과
|
|
201
|
+
`tsc --noEmit` 통과. 실제 패치된 native Host + 로컬 결정적 provider의 autonomy 시나리오
|
|
202
|
+
1개·79 assertion으로 직접 헤드 및 레인→헤드의 도구 종료 전 중간 발송과 별도 최종 답변을
|
|
203
|
+
확인했다. Messenger는 기록용 transport이며 실제 계정 로그인·외부 발송·운영 재시작은
|
|
204
|
+
수행하지 않았다. 최초 native 실행은 기존 `topic-bound` 안내를 빠뜨린 fixture 기대값에서
|
|
205
|
+
실패했고, 원래 route의 안내와 작업 thread의 보고를 모두 명시한 뒤 통과했다.
|
|
206
|
+
|
|
207
|
+
#### macOS 로그인 launcher
|
|
208
|
+
|
|
209
|
+
이전 소스 기준선의 검증: Bun 1.4.4에서 autostart·Gateway lifecycle 회귀 35개와 타입 검사를 통과했다.
|
|
210
|
+
격리된 실제 CLI install/status/uninstall·`plutil`·macOS GUI `launchctl bootstrap` 시험도
|
|
211
|
+
통과했다. 시험은 생성된 argv·일회성 정책을 유지하고 HOME/PI/XDG만 격리한 plist 복사본으로,
|
|
212
|
+
이미 실행 중인 시험용 Gateway에 동일 PID로 연결했다. 실제 로그인·재부팅·cold 계정 기동·
|
|
213
|
+
cold detached process-group 생존·운영 메신저 왕복은 검증하지 않았다. 운영 자동 시작은
|
|
214
|
+
이 검증으로 등록되지 않는다.
|
|
215
|
+
|
|
216
|
+
#### 중간 출력 타입 조사
|
|
217
|
+
|
|
218
|
+
OMP 고정 revision `c308970263ae13744ea15ab67302e3dac840e266`의 기존
|
|
219
|
+
`AssistantMessage.stopReason`·`TextContent.textSignature`(`TextSignatureV1`)를 재사용한다.
|
|
220
|
+
2026-11-15 upstream `main`의 같은 타입도 확인했으나 별도 SHA를 수집하거나 핀을 갱신하지
|
|
221
|
+
않았다. phase가 없는 provider는 `toolUse`의 일반 텍스트를 중간 보고로 해석하며,
|
|
222
|
+
native 코어 패치·새 메신저 API·의존성을 추가하지 않는다.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# omp-superagent 0.1.1
|
|
2
|
+
|
|
3
|
+
First npm release, based on the work through `a3139fd`.
|
|
4
|
+
|
|
5
|
+
- Install the `omp-sa` CLI from npm with Bun or npm, without cloning the repository.
|
|
6
|
+
- Include runtime sources, managed role skills, ULW preparation, configuration examples,
|
|
7
|
+
documentation, artwork, and third-party notices in the npm package.
|
|
8
|
+
- Publish source and npm tarballs with SHA-256 checksums on GitHub.
|
|
9
|
+
- Include native OMP session discovery, bounded Discord Markdown table rendering,
|
|
10
|
+
and explicit native jevify workflow selection added since 0.1.0.
|
|
11
|
+
|
|
12
|
+
## Install
|
|
13
|
+
|
|
14
|
+
Requires Git, Bun >=1.4.4, a separately installed OMP >=18.20.2 and <19, and Unix sockets.
|
|
15
|
+
Windows and same-process native TUI/herdr attachment are not supported.
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
bun add --global --trust omp-superagent@0.1.1
|
|
19
|
+
omp-sa --help
|
|
20
|
+
omp-sa setup --config ./config.local.json
|
|
21
|
+
omp-sa doctor --config ./config.local.json
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Alternatively, with Bun on PATH:
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
npm install --global omp-superagent@0.1.1
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Bun's `--trust` permits the installed-OMP check and managed ULW preparation scripts.
|
|
31
|
+
Do not disable lifecycle scripts. Installation does not patch or build OMP, start
|
|
32
|
+
a bot, or activate a model session. Run `omp-sa start --config ./config.local.json`
|
|
33
|
+
only when ready to connect every configured messenger.
|
|
34
|
+
|
|
35
|
+
The GitHub `.tar.gz` is a source archive: extract it and run
|
|
36
|
+
`bun install --frozen-lockfile` followed by `bun link`. The `.tgz` is the npm package.
|
|
37
|
+
|
|
38
|
+
## Verification scope
|
|
39
|
+
|
|
40
|
+
The tag workflow gates GitHub publication on type checking and the offline native,
|
|
41
|
+
Gateway, and setup PTY regression suite on Linux and macOS. Local package installation
|
|
42
|
+
and CLI checks cover distribution, not live messenger accounts, paid model providers,
|
|
43
|
+
herdr, or a real login/reboot. The OMP SDK baseline remains 18.20.2; managed ULW follows
|
|
44
|
+
its upstream default branch and records its exact prepared revision.
|
|
45
|
+
|
|
46
|
+
### Local verification — 2026-11-16
|
|
47
|
+
|
|
48
|
+
On macOS arm64 with Bun 1.4.4, installed OMP 18.20.3, SDK 18.20.2, and managed ULW
|
|
49
|
+
`7f454dc40c1911884cc37d8d9feed72752376c8c`:
|
|
50
|
+
|
|
51
|
+
- `bun run test:ci`: type checking and 1,005 tests across 43 files passed, with
|
|
52
|
+
66,737 assertions and no failures (251.29 seconds for the tests).
|
|
53
|
+
- Installed the local npm tarball into separate temporary Bun and npm global
|
|
54
|
+
directories, with lifecycle scripts enabled. Both prepared ULW successfully
|
|
55
|
+
and ran `omp-sa --help`.
|
|
56
|
+
- Ran the Bun-installed CLI's `doctor` against the local configuration from
|
|
57
|
+
outside the repository. It detected installed OMP 18.20.3 and reported
|
|
58
|
+
`messengersActivated: false`.
|
|
59
|
+
- Inspected the 76-file npm tarball: runtime resources and notices were included;
|
|
60
|
+
local configuration, credentials, sessions, tests, and installed dependencies were not.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# omp-superagent 0.1.2
|
|
2
|
+
|
|
3
|
+
- Remove the OMP version check during installation. At runtime Superagent checks
|
|
4
|
+
the configured OMP executable's capabilities rather than enforcing a version
|
|
5
|
+
range. Stock OMP 18 and 19 both support session resume and managed service
|
|
6
|
+
ownership; the SDK remains pinned to 19.0.0.
|
|
7
|
+
- HEAD now receives only its core operating skill on each model turn. It reads
|
|
8
|
+
detailed routing, model selection, and supervision from the installed package
|
|
9
|
+
when needed. The routing skill distinguishes independent lane outcomes from
|
|
10
|
+
subtasks of one deliverable, and favors separate worktrees for independent
|
|
11
|
+
edits. A single original input can still create at most one new lane.
|
|
12
|
+
- Add Discord forum tags and managed thread controls, original-message replies
|
|
13
|
+
and channel context, explicit GitHub PR tracking, and native owner decisions
|
|
14
|
+
that HEAD can resolve for routine, reversible choices.
|
|
15
|
+
- Add owner-only Discord voice, off by default, with a Codex subscription or a
|
|
16
|
+
separately billed OpenAI API option. See the [voice setup guide](https://github.com/dbc-hbin/omp-superagent/blob/v0.1.2/docs/discord-voice.md).
|
|
17
|
+
- Support owner-requested HEAD model changes and refresh managed presets when
|
|
18
|
+
their source OMP model roles change.
|
|
19
|
+
|
|
20
|
+
## Install or upgrade
|
|
21
|
+
|
|
22
|
+
Installation requires Git and Bun >= 1.4.4, but does not require OMP on `PATH`.
|
|
23
|
+
Running a Host requires a compatible stock OMP executable and local Unix sockets.
|
|
24
|
+
Before switching a Host from OMP 18 to 19, check its background services;
|
|
25
|
+
the OMP 19 daemon does not take over services from the OMP 18 broker.
|
|
26
|
+
|
|
27
|
+
Install `omp-superagent@0.1.2` from npm, or download the verified
|
|
28
|
+
`omp-superagent-0.1.2.tgz` from this GitHub release if npm publication is pending.
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
bun add --global --trust omp-superagent@0.1.2
|
|
32
|
+
omp-sa --help
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Alternatively, with Bun on `PATH`:
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
npm install --global omp-superagent@0.1.2
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Keep lifecycle scripts enabled to prepare the managed ULW integration.
|
|
42
|
+
Installing does not start a bot or replace a running Host. See the
|
|
43
|
+
[operations guide](https://github.com/dbc-hbin/omp-superagent/blob/v0.1.2/docs/OPERATIONS.md)
|
|
44
|
+
before starting or restarting.
|
|
45
|
+
The GitHub `.tar.gz` is the source archive; `.tgz` is the npm package. For a
|
|
46
|
+
downloaded `.tgz`, verify its SHA-256 and use the file path in the install command.
|
|
47
|
+
|
|
48
|
+
Stock OMP **18.20.3, 18.22.2, and 19.0.0** each passed 1,228 regression tests
|
|
49
|
+
on macOS arm64. Release CI additionally checks Linux and macOS with stock
|
|
50
|
+
binaries before publishing. Offline tests do not verify real messenger
|
|
51
|
+
accounts, live voice/provider behavior, login startup, or native TUI attachment.
|
|
52
|
+
The original OMP-19-only GitHub build was made from `7d18ab563cd1`; the
|
|
53
|
+
replacement is built from the commit referenced by the updated `v0.1.2` tag.
|
package/package.json
CHANGED
|
@@ -1,6 +1,67 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omp-superagent",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "One messenger-connected OMP head with independent work sessions",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "dbc-hbin",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/dbc-hbin/omp-superagent.git"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/dbc-hbin/omp-superagent#readme",
|
|
12
|
+
"bugs": "https://github.com/dbc-hbin/omp-superagent/issues",
|
|
13
|
+
"type": "module",
|
|
14
|
+
"packageManager": "bun@1.4.4",
|
|
15
|
+
"files": [
|
|
16
|
+
"src/",
|
|
17
|
+
"scripts/",
|
|
18
|
+
"skills/",
|
|
19
|
+
"upstream/ulw.json",
|
|
20
|
+
"assets/",
|
|
21
|
+
"docs/",
|
|
22
|
+
"config.example.json",
|
|
23
|
+
"DESIGN.md",
|
|
24
|
+
"README.ko.md",
|
|
25
|
+
"THIRD_PARTY_NOTICES.md"
|
|
26
|
+
],
|
|
27
|
+
"bin": {
|
|
28
|
+
"omp-sa": "src/cli.ts"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"check": "tsc --noEmit",
|
|
32
|
+
"test": "bun test test",
|
|
33
|
+
"test:ci": "bun --no-env-file scripts/ci.ts",
|
|
34
|
+
"test:baseline": "bash scripts/test-omp.sh",
|
|
35
|
+
"release": "bun --no-env-file scripts/release.ts",
|
|
36
|
+
"start": "bun --no-env-file src/cli.ts start",
|
|
37
|
+
"setup": "bash scripts/setup.sh",
|
|
38
|
+
"prepare:ulw": "bun scripts/prepare-ulw.ts",
|
|
39
|
+
"postinstall": "bun scripts/prepare-ulw.ts"
|
|
40
|
+
},
|
|
41
|
+
"engines": {
|
|
42
|
+
"bun": ">=1.4.4"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@oh-my-pi/pi-ai": "19.0.0",
|
|
46
|
+
"@oh-my-pi/pi-catalog": "19.0.0",
|
|
47
|
+
"@oh-my-pi/pi-coding-agent": "19.0.0",
|
|
48
|
+
"@oh-my-pi/pi-natives": "19.0.0",
|
|
49
|
+
"@oh-my-pi/pi-tui": "19.0.0",
|
|
50
|
+
"@oh-my-pi/pi-utils": "19.0.0",
|
|
51
|
+
"@slack/socket-mode": "^3.2.0",
|
|
52
|
+
"@slack/web-api": "^8.3.0",
|
|
53
|
+
"@sinclair/typebox": "^0.34.41",
|
|
54
|
+
"abort-controller": "3.0.0",
|
|
55
|
+
"discord.js": "^14.25.1",
|
|
56
|
+
"grammy": "^1.46.0"
|
|
57
|
+
},
|
|
58
|
+
"optionalDependencies": {
|
|
59
|
+
"@discordjs/voice": "0.19.2",
|
|
60
|
+
"@noble/ciphers": "2.4.0",
|
|
61
|
+
"opusscript": "0.0.8"
|
|
62
|
+
},
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"@types/bun": "^1.3.0",
|
|
65
|
+
"typescript": "^7.0.2"
|
|
66
|
+
}
|
|
67
|
+
}
|
package/scripts/ci.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
import { mkdtempDisposable } from "node:fs/promises";
|
|
3
|
+
import { tmpdir } from "node:os";
|
|
4
|
+
import { delimiter, dirname, join, resolve } from "node:path";
|
|
5
|
+
import { activeManagedUlw } from "../src/managed-ulw";
|
|
6
|
+
import { nativeTestCommand } from "../test/fixtures/native-command";
|
|
7
|
+
|
|
8
|
+
const root = resolve(import.meta.dir, "..");
|
|
9
|
+
const explicitCache = process.env.OMP_TEST_NATIVES_DIR;
|
|
10
|
+
await using temporaryCache = explicitCache ? undefined : await mkdtempDisposable(join(tmpdir(), "omp-sa-natives-"));
|
|
11
|
+
const nativesDir = explicitCache || temporaryCache!.path;
|
|
12
|
+
const command = await nativeTestCommand({ ...process.env, OMP_TEST_NATIVES_DIR: nativesDir });
|
|
13
|
+
const ulw = activeManagedUlw();
|
|
14
|
+
const manifest = await Bun.file(join(ulw, "package.json")).json() as { omp: { extensions: string[] } };
|
|
15
|
+
if (manifest.omp.extensions.length !== 1) throw new Error("Native composition tests require one managed ULW entrypoint");
|
|
16
|
+
const env = {
|
|
17
|
+
...process.env,
|
|
18
|
+
CI: "true",
|
|
19
|
+
PATH: [dirname(process.execPath), process.env.PATH].filter(Boolean).join(delimiter),
|
|
20
|
+
OMP_SUPERAGENT_NATIVE_TEST: "1",
|
|
21
|
+
OMP_SUPERAGENT_SETUP_PTY_TEST: "1",
|
|
22
|
+
OMP_TEST_COMMAND: JSON.stringify(command),
|
|
23
|
+
OMP_TEST_NATIVES_DIR: nativesDir,
|
|
24
|
+
OMP_TEST_ULW_EXTENSION: resolve(ulw, manifest.omp.extensions[0]!),
|
|
25
|
+
};
|
|
26
|
+
console.log(`CI: Bun ${Bun.version}; ULW ${ulw}`);
|
|
27
|
+
for (const args of [["run", "check"], ["test", "test"]]) {
|
|
28
|
+
const child = Bun.spawn([process.execPath, "--no-env-file", ...args], {
|
|
29
|
+
cwd: root, env, stdin: "ignore", stdout: "inherit", stderr: "inherit",
|
|
30
|
+
});
|
|
31
|
+
const code = await child.exited;
|
|
32
|
+
if (code !== 0) { process.exitCode = code; break; }
|
|
33
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
import { resolve } from "node:path";
|
|
3
|
+
import { managedUlwStatus, updateManagedUlw, type ManagedUlwOptions } from "../src/managed-ulw";
|
|
4
|
+
|
|
5
|
+
const options: ManagedUlwOptions = {};
|
|
6
|
+
let statusOnly = false;
|
|
7
|
+
for (let index = 2; index < process.argv.length; index++) {
|
|
8
|
+
const arg = process.argv[index];
|
|
9
|
+
if (arg === "--status") statusOnly = true;
|
|
10
|
+
else if (arg === "--manifest" || arg === "--root") {
|
|
11
|
+
const value = process.argv[++index];
|
|
12
|
+
if (!value || value.startsWith("--")) throw new Error(`${arg} requires a path`);
|
|
13
|
+
if (arg === "--manifest") options.manifestPath = resolve(value);
|
|
14
|
+
else options.root = resolve(value);
|
|
15
|
+
} else throw new Error(`Unknown argument: ${arg}`);
|
|
16
|
+
}
|
|
17
|
+
const status = statusOnly ? managedUlwStatus(options) : await updateManagedUlw(options);
|
|
18
|
+
console.log(JSON.stringify(status, null, 2));
|