onto-mcp 0.4.12 → 0.4.13
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/.onto/authority/core-lexicon.yaml +1 -1
- package/.onto/authority/supported-models.yaml +137 -0
- package/.onto/domains/accounting-kr/competency_qs.md +153 -153
- package/.onto/processes/reconstruct/obligation-coverage-ledger.yaml +842 -0
- package/.onto/processes/reconstruct/obligation-coverage-recorded.yaml +225 -0
- package/.onto/processes/reconstruct/ontology-seeding-and-maturation-design.md +93 -54
- package/.onto/processes/reconstruct/reconstruct-contract-registry.yaml +169 -8
- package/.onto/processes/reconstruct/reconstruct-execution-ux-contract.md +72 -1
- package/.onto/processes/reconstruct/source-profiles/spreadsheet.md +35 -0
- package/.onto/processes/review/productized-live-path.md +9 -5
- package/.onto/processes/review/prompt-execution-runner-contract.md +32 -8
- package/.onto/processes/review/review-target-profile-contract.md +47 -4
- package/.onto/processes/shared/pipeline-execution-ledger-contract.md +11 -0
- package/.onto/processes/shared/target-material-kind-contract.md +1 -1
- package/README.md +64 -1
- package/dist/cli.js +11 -1
- package/dist/core-api/reconstruct-api.js +575 -24
- package/dist/core-api/review-api.js +70 -5
- package/dist/core-api/review-progress.js +7 -0
- package/dist/core-api/runtime-observation.js +7 -0
- package/dist/core-runtime/artifact-io.js +75 -3
- package/dist/core-runtime/cli/claude-code-review-unit-executor.js +19 -8
- package/dist/core-runtime/cli/materialize-review-prompt-packets.js +68 -14
- package/dist/core-runtime/cli/prepare-review-session.js +34 -1
- package/dist/core-runtime/cli/render-review-final-output.js +2 -1
- package/dist/core-runtime/cli/run-review-prompt-execution.js +758 -48
- package/dist/core-runtime/cli/run-seats.js +18 -0
- package/dist/core-runtime/cli/runtime-submit-context.js +10 -2
- package/dist/core-runtime/cli/unit-resubmit.js +269 -0
- package/dist/core-runtime/cli/worker-structured-output.js +80 -2
- package/dist/core-runtime/discovery/host-detection.js +71 -22
- package/dist/core-runtime/discovery/review-cert-assemble.js +208 -0
- package/dist/core-runtime/discovery/review-cert-record.js +442 -0
- package/dist/core-runtime/discovery/review-execution-units.js +22 -0
- package/dist/core-runtime/discovery/seat-inventory.js +167 -0
- package/dist/core-runtime/discovery/settings-chain.js +311 -52
- package/dist/core-runtime/discovery/supported-models.js +282 -29
- package/dist/core-runtime/discovery/synthesize-cert-assemble.js +197 -0
- package/dist/core-runtime/discovery/synthesize-cert-capsule.js +399 -0
- package/dist/core-runtime/discovery/synthesize-cert-judge.js +340 -0
- package/dist/core-runtime/discovery/synthesize-cert-loop.js +234 -0
- package/dist/core-runtime/discovery/synthesize-cert-mutation.js +117 -0
- package/dist/core-runtime/discovery/synthesize-cert-packet.js +182 -0
- package/dist/core-runtime/discovery/synthesize-cert-record.js +831 -0
- package/dist/core-runtime/discovery/synthesize-cert-sampler.js +336 -0
- package/dist/core-runtime/effort-calibration-ingest.js +135 -0
- package/dist/core-runtime/llm/dispatch-breaker.js +412 -0
- package/dist/core-runtime/llm/dispatch-fallback-adapter-capabilities.js +33 -0
- package/dist/core-runtime/llm/llm-caller.js +188 -47
- package/dist/core-runtime/llm/mock-llm-realization.js +35 -4
- package/dist/core-runtime/llm/model-switcher.js +1 -1
- package/dist/core-runtime/llm/openai-responses-incomplete-error.js +46 -0
- package/dist/core-runtime/llm/sealed-dispatch-capability.js +359 -0
- package/dist/core-runtime/llm/structured-dispatch-error.js +15 -0
- package/dist/core-runtime/onboard/claude-profile-scan.js +65 -0
- package/dist/core-runtime/onboard/cli-host.js +5 -2
- package/dist/core-runtime/onboard/configure-provider.js +33 -1
- package/dist/core-runtime/onboard/host-target.js +28 -3
- package/dist/core-runtime/onboard/register.js +54 -12
- package/dist/core-runtime/pipeline-execution-ledger.js +10 -0
- package/dist/core-runtime/reconstruct/artifact-types.js +35 -0
- package/dist/core-runtime/reconstruct/claim-projection-validation.js +17 -0
- package/dist/core-runtime/reconstruct/competency-projection-contract.js +63 -0
- package/dist/core-runtime/reconstruct/comprehension-artifact.js +321 -0
- package/dist/core-runtime/reconstruct/comprehension-reduce.js +367 -0
- package/dist/core-runtime/reconstruct/comprehension-semantic-map.js +771 -0
- package/dist/core-runtime/reconstruct/contract-registry.js +20 -0
- package/dist/core-runtime/reconstruct/dispatch-fallback-artifacts.js +640 -0
- package/dist/core-runtime/reconstruct/execution-telemetry.js +83 -9
- package/dist/core-runtime/reconstruct/final-output-sections.js +89 -0
- package/dist/core-runtime/reconstruct/governing-snapshot.js +36 -1
- package/dist/core-runtime/reconstruct/leaf-reader.js +305 -0
- package/dist/core-runtime/reconstruct/llm-dispatch-failure.js +270 -0
- package/dist/core-runtime/reconstruct/llm-touch-fingerprint.js +94 -0
- package/dist/core-runtime/reconstruct/material-admission-validation.js +18 -0
- package/dist/core-runtime/reconstruct/material-profile-validation.js +14 -0
- package/dist/core-runtime/reconstruct/materialize-preparation.js +304 -18
- package/dist/core-runtime/reconstruct/maturation-validation.js +1231 -53
- package/dist/core-runtime/reconstruct/mock-llm-realization.js +107 -3
- package/dist/core-runtime/reconstruct/obligation-assertion.js +18 -0
- package/dist/core-runtime/reconstruct/ontology-seed-validation.js +27 -0
- package/dist/core-runtime/reconstruct/output-budget.js +6 -0
- package/dist/core-runtime/reconstruct/pipeline-execution-ledger.js +87 -3
- package/dist/core-runtime/reconstruct/post-seed-validation.js +118 -5
- package/dist/core-runtime/reconstruct/purpose-authority-validation.js +117 -2
- package/dist/core-runtime/reconstruct/record.js +42 -0
- package/dist/core-runtime/reconstruct/registry-verification-validation.js +16 -0
- package/dist/core-runtime/reconstruct/run-control-validation.js +1011 -34
- package/dist/core-runtime/reconstruct/run.js +5198 -536
- package/dist/core-runtime/reconstruct/seed-authoring-readiness-validation.js +54 -3
- package/dist/core-runtime/reconstruct/semantic-quality-gate.js +105 -2
- package/dist/core-runtime/reconstruct/source-observation-delta-validation.js +41 -0
- package/dist/core-runtime/reconstruct/source-observations.js +166 -0
- package/dist/core-runtime/reconstruct/source-safety-validation.js +71 -183
- package/dist/core-runtime/reconstruct/source-scout-pack-validation.js +37 -1
- package/dist/core-runtime/reconstruct/terminal-validation.js +132 -2
- package/dist/core-runtime/review/continuation-plan.js +12 -5
- package/dist/core-runtime/review/issue-artifact-runtime.js +4 -1
- package/dist/core-runtime/review/materializers.js +100 -11
- package/dist/core-runtime/review/nesting-batch.js +6 -2
- package/dist/core-runtime/review/obligation-shardability.js +138 -0
- package/dist/core-runtime/review/pipeline-execution-ledger.js +42 -2
- package/dist/core-runtime/review/review-artifact-utils.js +217 -5
- package/dist/core-runtime/review/review-execution-steps.js +32 -8
- package/dist/core-runtime/review/review-progress-contract.js +8 -0
- package/dist/core-runtime/review/review-prompt-budget.js +97 -0
- package/dist/core-runtime/review/semantic-quality-gate.js +33 -7
- package/dist/core-runtime/review/spreadsheet-review-disposition.js +94 -0
- package/dist/core-runtime/route-identity.js +182 -0
- package/dist/core-runtime/spreadsheet-header-escalation.js +204 -0
- package/dist/core-runtime/spreadsheet-structure-observer.js +2689 -0
- package/dist/core-runtime/target-material-kind.js +58 -0
- package/dist/mcp/server.js +12 -5
- package/dist/tui/app.js +167 -0
- package/dist/tui/data/event-follower.js +116 -0
- package/dist/tui/data/node-detail.js +42 -0
- package/dist/tui/data/projection-poll.js +26 -0
- package/dist/tui/data/session-discovery.js +65 -0
- package/dist/tui/index.js +108 -0
- package/dist/tui/screens/log.js +25 -0
- package/dist/tui/screens/node-detail.js +17 -0
- package/dist/tui/screens/session-selector.js +26 -0
- package/dist/tui/screens/workflow-tree.js +90 -0
- package/dist/tui/view-model/reconstruct-adapter.js +162 -0
- package/dist/tui/view-model/review-adapter.js +270 -0
- package/dist/tui/view-model/tree-view-model.js +19 -0
- package/package.json +18 -3
- package/settings.example.json +77 -16
package/README.md
CHANGED
|
@@ -55,7 +55,19 @@ only host-owned config; it never writes onto runtime data. Override the
|
|
|
55
55
|
launched command or server name with `--command <cmd>` / `--name <id>`.
|
|
56
56
|
|
|
57
57
|
**Claude Code profiles.** Claude Code stores MCP servers per config directory
|
|
58
|
-
(`CLAUDE_CONFIG_DIR`).
|
|
58
|
+
(`CLAUDE_CONFIG_DIR`). To register every profile in one command, let `onto`
|
|
59
|
+
discover them — it scans `~/.claude` and `~/.claude-*` for real config dirs
|
|
60
|
+
(those carrying `settings.json`, `.credentials.json`, `.claude.json`, or
|
|
61
|
+
`projects/`) plus any ambient `CLAUDE_CONFIG_DIR`, and registers each:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
onto register --hosts claude-code --all-claude-profiles --yes # every profile
|
|
65
|
+
onto register --all --all-claude-profiles --yes # profiles + other hosts
|
|
66
|
+
onto register --all-claude-profiles --list # preview discovered profiles
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
To target a single profile instead, name it explicitly (mutually exclusive with
|
|
70
|
+
`--all-claude-profiles`):
|
|
59
71
|
|
|
60
72
|
```bash
|
|
61
73
|
onto register --hosts claude-code --claude-config-dir ~/.claude-1 --yes
|
|
@@ -284,6 +296,57 @@ LLM switcher axes:
|
|
|
284
296
|
|
|
285
297
|
Unsupported settings stop during profile resolution.
|
|
286
298
|
|
|
299
|
+
### provider·model 전환 (권장: `onto configure-provider`)
|
|
300
|
+
|
|
301
|
+
`settings.json`을 손으로 고치는 대신 `onto configure-provider`가 actor LLM 블록을
|
|
302
|
+
라우트 검증 후 기록합니다(units 등 다른 설정은 보존). 라우팅 불가능한 조합은 기록
|
|
303
|
+
전에 fail-loud 합니다.
|
|
304
|
+
|
|
305
|
+
```sh
|
|
306
|
+
# Codex (OpenAI) OAuth
|
|
307
|
+
onto configure-provider --provider openai --model gpt-5.5 --auth oauth \
|
|
308
|
+
--effort medium --service-tier fast
|
|
309
|
+
|
|
310
|
+
# Claude Code (Anthropic) OAuth
|
|
311
|
+
onto configure-provider --provider anthropic --model claude-opus-4-8 --auth oauth \
|
|
312
|
+
--effort high
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
- `--service-tier`는 `openai`+`oauth`(Codex) 경로 전용입니다 — anthropic에 주면
|
|
316
|
+
profile 해석 단계에서 거부됩니다.
|
|
317
|
+
- `--auth`를 주면 reconstruct actor 블록(`semantic_author`/`confirmation_provider`)도
|
|
318
|
+
함께 기록합니다. 생략하면 review actor만 기록하고 loader가 provider 기본 auth를 파생합니다.
|
|
319
|
+
- `--timeout-ms <ms>`는 각 actor `llm` 블록에 per-actor `timeout_ms`(양의 정수)를
|
|
320
|
+
함께 기록합니다 — codex/claude direct-call worker 호출 타임아웃(아래 [타임아웃](#타임아웃)
|
|
321
|
+
참고). api_key SDK 경로에는 적용되지 않습니다.
|
|
322
|
+
- `--project`는 프로젝트 seat(`.onto/settings.json`)에, 생략하면 사용자 seat
|
|
323
|
+
(`~/.onto/settings.json`)에 기록합니다.
|
|
324
|
+
- 지원 model id는 [`.onto/authority/supported-models.yaml`](.onto/authority/supported-models.yaml)가
|
|
325
|
+
authority입니다(현재 anthropic: `claude-opus-4-8`; `claude-sonnet-5`는
|
|
326
|
+
`semantic_map_synthesize` 역할 전용).
|
|
327
|
+
- 이 명령은 actor 블록만 기록합니다. `units[].llm.model`로 unit별 model을 고정해
|
|
328
|
+
두었다면(위 정적 프로필 예시가 그렇습니다) 같은 model로 바꾸거나 그 `model` 키를
|
|
329
|
+
지워 actor 값을 상속하게 하세요.
|
|
330
|
+
|
|
331
|
+
### 타임아웃
|
|
332
|
+
|
|
333
|
+
| 경로 | 기본값 | 조절 knob (우선순위) |
|
|
334
|
+
|---|---|---|
|
|
335
|
+
| review unit worker (codex/claude) | 240s (짧은 응답 단계 180s, `issue_stance_matrix` 120s) | `units[].timeout_ms` |
|
|
336
|
+
| direct-call CLI worker (codex/claude) — reconstruct·inline review | 600s | actor `llm.timeout_ms` → 없으면 `ONTO_LLM_TIMEOUT_MS` |
|
|
337
|
+
| SDK direct call (`api_key`) | 120s | `ONTO_LLM_TIMEOUT_MS` (ms) |
|
|
338
|
+
|
|
339
|
+
`llm.timeout_ms`(ms)는 actor `llm` 블록에 넣는 per-actor 값으로, codex/claude CLI worker
|
|
340
|
+
경로(reconstruct의 `semantic_author`/`confirmation_provider`, inline review actor)의 호출
|
|
341
|
+
타임아웃을 그 값으로 고정합니다. 없으면 env `ONTO_LLM_TIMEOUT_MS`, 그것도 없으면 기본값을
|
|
342
|
+
씁니다(api_key SDK 경로에는 적용되지 않고 `ONTO_LLM_TIMEOUT_MS`만 반영). 이 knob은 review의
|
|
343
|
+
`units[].timeout_ms`(worker 프로세스 bound)와 구분되는 별개 계층입니다.
|
|
344
|
+
|
|
345
|
+
`ONTO_LLM_TIMEOUT_MS`(ms)는 direct-call/CLI-worker와 SDK 경로 기본값을 전역으로 덮어씁니다.
|
|
346
|
+
opus 같은 프론티어 모델의 긴 단일-turn authoring도 600s worker 기본값으로 완료되므로 지원
|
|
347
|
+
모델에는 override가 필요 없습니다. 특정 review unit이 오래 걸리면 그 unit의
|
|
348
|
+
`units[].timeout_ms`만 키우면 됩니다(모든 unit에 큰 값을 박을 필요 없음).
|
|
349
|
+
|
|
287
350
|
## Documentation
|
|
288
351
|
|
|
289
352
|
| Document | Contents |
|
package/dist/cli.js
CHANGED
|
@@ -40,6 +40,8 @@ function printHelp() {
|
|
|
40
40
|
" mcp Start the MCP stdio tool server",
|
|
41
41
|
" register Register the onto MCP server into supported hosts",
|
|
42
42
|
" configure-provider Write LLM provider settings into the settings.json chain",
|
|
43
|
+
" seats List every LLM model seat, resolved (--json for machine output)",
|
|
44
|
+
" watch Live read-only TUI for review/reconstruct sessions",
|
|
43
45
|
"",
|
|
44
46
|
"Available MCP tools:",
|
|
45
47
|
" onto_review",
|
|
@@ -63,7 +65,7 @@ function printHelp() {
|
|
|
63
65
|
function unsupportedCommandMessage(subcommand) {
|
|
64
66
|
return [
|
|
65
67
|
`[onto] Unsupported public CLI subcommand: ${subcommand}`,
|
|
66
|
-
"Active public commands: onto mcp, onto register, onto configure-provider",
|
|
68
|
+
"Active public commands: onto mcp, onto register, onto configure-provider, onto seats, onto watch",
|
|
67
69
|
].join("\n");
|
|
68
70
|
}
|
|
69
71
|
async function main() {
|
|
@@ -80,10 +82,18 @@ async function main() {
|
|
|
80
82
|
const { runRegister } = await import("./core-runtime/onboard/register.js");
|
|
81
83
|
return runRegister(argv.slice(1));
|
|
82
84
|
}
|
|
85
|
+
case "watch": {
|
|
86
|
+
const { runWatch } = await import("./tui/index.js");
|
|
87
|
+
return runWatch(argv.slice(1));
|
|
88
|
+
}
|
|
83
89
|
case "configure-provider": {
|
|
84
90
|
const { runConfigureProvider } = await import("./core-runtime/onboard/configure-provider.js");
|
|
85
91
|
return runConfigureProvider(argv.slice(1));
|
|
86
92
|
}
|
|
93
|
+
case "seats": {
|
|
94
|
+
const { runSeats } = await import("./core-runtime/cli/run-seats.js");
|
|
95
|
+
return runSeats(argv.slice(1));
|
|
96
|
+
}
|
|
87
97
|
case "--version":
|
|
88
98
|
case "-v": {
|
|
89
99
|
const version = await readOntoVersion();
|