omp-superagent 0.0.0-stage → 0.1.1

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.
Files changed (76) hide show
  1. package/DESIGN.md +1361 -0
  2. package/LICENSE +21 -0
  3. package/README.ko.md +184 -0
  4. package/README.md +205 -2
  5. package/THIRD_PARTY_NOTICES.md +313 -0
  6. package/assets/architecture.mmd +24 -0
  7. package/assets/architecture.svg +126 -0
  8. package/assets/superagent-avatar.jpg +0 -0
  9. package/assets/superagent-mascot.webp +0 -0
  10. package/config.example.json +26 -0
  11. package/docs/OPERATIONS.md +1030 -0
  12. package/docs/releases/0.1.0.md +222 -0
  13. package/docs/releases/0.1.1.md +60 -0
  14. package/package.json +59 -4
  15. package/scripts/check-omp.ts +4 -0
  16. package/scripts/ci.ts +28 -0
  17. package/scripts/prepare-ulw.ts +18 -0
  18. package/scripts/release.ts +50 -0
  19. package/scripts/setup.sh +25 -0
  20. package/skills/head/SKILL.md +259 -0
  21. package/skills/head/references/model-selection.md +263 -0
  22. package/skills/head/references/routing.md +356 -0
  23. package/skills/head/references/supervision.md +312 -0
  24. package/skills/lane/SKILL.md +188 -0
  25. package/skills/lane/references/workflow.md +349 -0
  26. package/src/autostart.ts +295 -0
  27. package/src/board-extension.ts +217 -0
  28. package/src/board.ts +396 -0
  29. package/src/cli.ts +167 -0
  30. package/src/config.ts +191 -0
  31. package/src/contracts.ts +317 -0
  32. package/src/credentials.ts +172 -0
  33. package/src/delivery.ts +7 -0
  34. package/src/dialog.ts +73 -0
  35. package/src/discord-command-registration.ts +201 -0
  36. package/src/discord-commands.ts +29 -0
  37. package/src/discord-markdown.ts +172 -0
  38. package/src/discord.ts +745 -0
  39. package/src/extension.ts +289 -0
  40. package/src/gateway-client.ts +222 -0
  41. package/src/gateway-protocol.ts +85 -0
  42. package/src/gateway-restart.ts +151 -0
  43. package/src/gateway-server.ts +392 -0
  44. package/src/gateway-store.ts +237 -0
  45. package/src/gateway.ts +638 -0
  46. package/src/head-recovery.ts +61 -0
  47. package/src/host-extension.ts +449 -0
  48. package/src/host-owner.ts +350 -0
  49. package/src/host-protocol.ts +136 -0
  50. package/src/host.ts +414 -0
  51. package/src/installed-omp.ts +63 -0
  52. package/src/lane-extension.ts +179 -0
  53. package/src/lane-models.ts +75 -0
  54. package/src/lane-report.ts +70 -0
  55. package/src/managed-ulw-probe.ts +172 -0
  56. package/src/managed-ulw.ts +471 -0
  57. package/src/message-order.ts +21 -0
  58. package/src/messenger-commands.ts +16 -0
  59. package/src/messengers.ts +114 -0
  60. package/src/native-presets.ts +282 -0
  61. package/src/native-sessions.ts +32 -0
  62. package/src/native-settings.ts +129 -0
  63. package/src/repository.ts +12 -0
  64. package/src/runtime.ts +3864 -0
  65. package/src/setup-judge.ts +34 -0
  66. package/src/setup-memory.ts +39 -0
  67. package/src/setup-profiles.ts +84 -0
  68. package/src/setup.ts +300 -0
  69. package/src/slack-command-registration.ts +217 -0
  70. package/src/slack-commands.ts +18 -0
  71. package/src/slack.ts +776 -0
  72. package/src/store.ts +806 -0
  73. package/src/telegram-command-registration.ts +155 -0
  74. package/src/telegram.ts +661 -0
  75. package/src/workflow.ts +94 -0
  76. package/upstream/ulw.json +9 -0
@@ -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.
package/package.json CHANGED
@@ -1,6 +1,61 @@
1
1
  {
2
2
  "name": "omp-superagent",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.1",
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
+ "release": "bun --no-env-file scripts/release.ts",
35
+ "start": "bun --no-env-file src/cli.ts start",
36
+ "setup": "bash scripts/setup.sh",
37
+ "prepare:ulw": "bun scripts/prepare-ulw.ts",
38
+ "preinstall": "bun --no-env-file scripts/check-omp.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": "18.20.2",
46
+ "@oh-my-pi/pi-catalog": "18.20.2",
47
+ "@oh-my-pi/pi-coding-agent": "18.20.2",
48
+ "@oh-my-pi/pi-tui": "18.20.2",
49
+ "@oh-my-pi/pi-utils": "18.20.2",
50
+ "@slack/socket-mode": "^3.2.0",
51
+ "@slack/web-api": "^8.3.0",
52
+ "@sinclair/typebox": "^0.34.41",
53
+ "abort-controller": "3.0.0",
54
+ "discord.js": "^14.25.1",
55
+ "grammy": "^1.46.0"
56
+ },
57
+ "devDependencies": {
58
+ "@types/bun": "^1.3.0",
59
+ "typescript": "^7.0.2"
60
+ }
61
+ }
@@ -0,0 +1,4 @@
1
+ import { inspectInstalledOmp } from "../src/installed-omp";
2
+
3
+ const omp = await inspectInstalledOmp();
4
+ console.log(`Installed stock OMP ${omp.version} (${omp.supported}; tested ${omp.testedVersion})`);
package/scripts/ci.ts ADDED
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env bun
2
+ import { delimiter, dirname, join, resolve } from "node:path";
3
+ import { discoverInstalledOmp, inspectInstalledOmp } from "../src/installed-omp";
4
+ import { activeManagedUlw } from "../src/managed-ulw";
5
+
6
+ const root = resolve(import.meta.dir, "..");
7
+ const command = [discoverInstalledOmp()];
8
+ const omp = await inspectInstalledOmp(command);
9
+ const ulw = activeManagedUlw();
10
+ const manifest = await Bun.file(join(ulw, "package.json")).json() as { omp: { extensions: string[] } };
11
+ if (manifest.omp.extensions.length !== 1) throw new Error("Native composition tests require one managed ULW entrypoint");
12
+ const env = {
13
+ ...process.env,
14
+ CI: "true",
15
+ PATH: [dirname(process.execPath), process.env.PATH].filter(Boolean).join(delimiter),
16
+ OMP_SUPERAGENT_NATIVE_TEST: "1",
17
+ OMP_SUPERAGENT_SETUP_PTY_TEST: "1",
18
+ OMP_TEST_COMMAND: JSON.stringify(command),
19
+ OMP_TEST_ULW_EXTENSION: resolve(ulw, manifest.omp.extensions[0]!),
20
+ };
21
+ console.log(`CI: Bun ${Bun.version}; installed OMP ${omp.version} (${command[0]}); ULW ${ulw}`);
22
+ for (const args of [["run", "check"], ["test", "test"]]) {
23
+ const child = Bun.spawn([process.execPath, "--no-env-file", ...args], {
24
+ cwd: root, env, stdin: "ignore", stdout: "inherit", stderr: "inherit",
25
+ });
26
+ const code = await child.exited;
27
+ if (code !== 0) process.exit(code);
28
+ }
@@ -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));
@@ -0,0 +1,50 @@
1
+ #!/usr/bin/env bun
2
+ import { mkdir } from "node:fs/promises";
3
+ import { join, resolve } from "node:path";
4
+
5
+ const root = resolve(import.meta.dir, "..");
6
+ const args = process.argv.slice(2);
7
+ if (args.length && (args.length !== 1 || args[0] !== "--publish"))
8
+ throw new Error("Usage: bun run release [--publish]");
9
+
10
+ async function run(command: string[]): Promise<string> {
11
+ const child = Bun.spawn(command, { cwd: root, stdin: "ignore", stdout: "pipe", stderr: "inherit" });
12
+ const text = await new Response(child.stdout).text();
13
+ if (await child.exited !== 0) throw new Error(`Command failed: ${command.join(" ")}`);
14
+ return text.trim();
15
+ }
16
+
17
+ if (await run(["git", "status", "--porcelain"]))
18
+ throw new Error("Release packaging requires a clean checkout; commit the intended release changes first");
19
+ const { name, version } = JSON.parse(await run(["git", "show", "HEAD:package.json"])) as { name: string; version: string };
20
+ const tag = `v${version}`;
21
+ const revision = await run(["git", "rev-parse", "HEAD"]);
22
+ const publish = args[0] === "--publish";
23
+ if (publish) {
24
+ if (process.env.GITHUB_REF_TYPE !== "tag" || process.env.GITHUB_REF_NAME !== tag)
25
+ throw new Error(`Publishing requires the ${tag} tag workflow`);
26
+ if (await run(["git", "rev-parse", `${tag}^{commit}`]) !== revision)
27
+ throw new Error("Release tag does not identify the checked-out commit");
28
+ }
29
+ const notes = join(root, "docs/releases", `${version}.md`);
30
+ if (!await Bun.file(notes).exists()) throw new Error(`Missing release notes: ${notes}`);
31
+ const directory = join(root, "dist");
32
+ await mkdir(directory, { recursive: true });
33
+ const sourceFilename = `${name}-${version}.tar.gz`;
34
+ const packageFilename = `${name}-${version}.tgz`;
35
+ const archive = join(directory, sourceFilename);
36
+ await run(["git", "archive", "--format=tar.gz", `--prefix=${name}-${version}/`, `--output=${archive}`, revision]);
37
+ await run([process.execPath, "pm", "pack", "--ignore-scripts", "--filename", join(directory, packageFilename)]);
38
+ const assets: string[] = [];
39
+ for (const filename of [sourceFilename, packageFilename]) {
40
+ const path = join(directory, filename);
41
+ const digest = new Bun.CryptoHasher("sha256").update(await Bun.file(path).arrayBuffer()).digest("hex");
42
+ const checksum = `${path}.sha256`;
43
+ await Bun.write(checksum, `${digest} ${filename}\n`);
44
+ assets.push(path, checksum);
45
+ }
46
+ console.log(`Packaged ${revision}\n${assets.join("\n")}`);
47
+ if (publish) {
48
+ console.log(await run(["gh", "release", "create", tag, ...assets,
49
+ "--verify-tag", "--title", `${name} ${version}`, "--notes-file", notes]));
50
+ }
@@ -0,0 +1,25 @@
1
+ #!/bin/bash
2
+ # Interactive preparation only. Never source credentials or enable shell tracing.
3
+ set +x
4
+ set -euo pipefail
5
+ ROOT="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)"
6
+ if command -v bun >/dev/null 2>&1; then
7
+ BUN="$(command -v bun)"
8
+ else
9
+ printf '%s\n' 'Bun is required. Install Bun explicitly first.' >&2
10
+ exit 1
11
+ fi
12
+ if [[ $# -eq 0 ]]; then
13
+ set -- --config "$ROOT/config.local.json"
14
+ fi
15
+ for argument in "$@"; do
16
+ if [[ "$argument" == --help ]]; then
17
+ exec "$BUN" --no-env-file "$ROOT/src/cli.ts" setup "$@"
18
+ fi
19
+ done
20
+ # A pipe may carry the script, not passwords. Native setup independently checks tty.
21
+ if ! { exec 3<>/dev/tty; } 2>/dev/null; then
22
+ printf '%s\n' 'Setup requires a controlling terminal; no piped secret fallback is supported.' >&2
23
+ exit 1
24
+ fi
25
+ exec "$BUN" --no-env-file "$ROOT/src/cli.ts" setup "$@" <&3 3>&-