openmerit 0.1.11 → 0.2.0
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/CHANGELOG.md +15 -0
- package/README.md +20 -56
- package/dist/pi/scout-extension.mjs +190 -0
- package/dist/pi/src/index.d.ts +6 -32
- package/dist/pi/src/index.js +49 -787
- package/dist/terminal/public/app.js +37 -37
- package/dist/terminal/public/styles.css +0 -125
- package/dist/terminal/scout-update.json +1 -1
- package/dist/terminal/src/cli.mjs +2 -0
- package/dist/terminal/src/install.mjs +103 -166
- package/dist/terminal/src/scout-credentials.d.ts +12 -0
- package/dist/terminal/src/scout-credentials.js +41 -0
- package/dist/terminal/src/scout-credentials.ts +44 -0
- package/dist/terminal/src/scout-instructions.d.ts +5 -0
- package/dist/terminal/src/scout-instructions.js +116 -0
- package/dist/terminal/src/scout-instructions.ts +119 -0
- package/dist/terminal/src/scout-pi.d.ts +44 -0
- package/dist/terminal/src/scout-pi.js +84 -0
- package/dist/terminal/src/scout-pi.ts +76 -0
- package/dist/terminal/src/scout.d.ts +77 -0
- package/dist/terminal/src/scout.js +181 -0
- package/dist/terminal/src/scout.ts +164 -0
- package/dist/terminal/src/server.mjs +1 -1
- package/dist/terminal/src/telemetry.mjs +2 -2
- package/docs/commands.md +3 -77
- package/docs/getting-started.md +20 -45
- package/docs/index.md +9 -14
- package/docs/inference-terminal.md +2 -63
- package/docs/pi-extension.md +32 -28
- package/docs/roadmap.md +6 -18
- package/docs/scout.md +39 -255
- package/docs/security.md +8 -14
- package/docs/testing.md +8 -34
- package/docs/troubleshooting.md +23 -28
- package/package.json +6 -27
- package/dist/core/src/index.d.ts +0 -101
- package/dist/core/src/index.js +0 -1649
- package/dist/core/src/store.d.ts +0 -35
- package/dist/core/src/store.js +0 -102
- package/dist/pi/src/scheduler.d.ts +0 -11
- package/dist/pi/src/scheduler.js +0 -137
- package/dist/pi/src/wakeup.d.ts +0 -2
- package/dist/pi/src/wakeup.js +0 -108
- package/dist/protocol/src/index.d.ts +0 -484
- package/dist/protocol/src/index.js +0 -47
- package/dist/protocol/src/schemas.d.ts +0 -576
- package/dist/protocol/src/schemas.js +0 -280
- package/dist/terminal/public/brands/vllm.ico +0 -0
- package/dist/terminal/public/flow.css +0 -1
- package/dist/terminal/public/flow.js +0 -770
- package/dist/terminal/src/demo-policy.mjs +0 -205
- package/dist/terminal/src/enterprise-sample.mjs +0 -151
- package/docs/adapter-guide.md +0 -189
- package/docs/architecture.md +0 -59
- package/docs/automation.md +0 -74
- package/docs/budgets.md +0 -37
- package/docs/demo-backfill.md +0 -31
- package/docs/demo-fieldkit.md +0 -49
- package/docs/demo-placement.md +0 -32
- package/docs/demo-spam.md +0 -17
- package/docs/demo-support.md +0 -44
- package/docs/demo.md +0 -74
- package/docs/first-trial.md +0 -60
- package/docs/interactive-demo.md +0 -118
- package/docs/lifecycle.md +0 -30
- package/docs/metrics-and-evidence.md +0 -48
- package/docs/operations.md +0 -38
- package/docs/pareto-spec.md +0 -76
- package/docs/saga/a-steadier-compass.md +0 -25
- package/docs/saga/defining-a-task-for-ai.md +0 -154
- package/docs/saga/the-benchmark-is-not-the-job.md +0 -33
- package/docs/ux-reference.md +0 -32
|
@@ -914,133 +914,8 @@ progress:indeterminate { opacity:.55; }
|
|
|
914
914
|
.terminal-loading progress { max-width:260px;margin-bottom:16px; }
|
|
915
915
|
.terminal-loading>span { color:var(--muted);font-size:12px; }
|
|
916
916
|
@media(max-width:700px) { .index-progress { grid-template-columns:1fr auto;gap:14px; }.index-progress progress { grid-column:1 / -1;grid-row:2; }.index-progress small { line-height:1.5; } }
|
|
917
|
-
/* Hosted comparison uses the terminal's existing typography and neutral surfaces. */
|
|
918
|
-
.sample-disclosure a { color: inherit; white-space: nowrap; text-decoration: none; }
|
|
919
|
-
.sample-disclosure a:hover { color: var(--text); }
|
|
920
|
-
.sample-method { display: flex; justify-content: flex-end; margin: -10px 0 18px; font-size: 11px; }
|
|
921
|
-
.comparison { margin: 0 0 32px; padding: 28px 30px 20px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--stack); box-shadow: inset 0 1px 0 var(--panel-glint); }
|
|
922
|
-
.comparison-top { display: flex; align-items: center; gap: 28px; }
|
|
923
|
-
.comparison-bottom { display: grid; grid-template-columns: minmax(0,1fr) 24px minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 26px; padding: 26px 0; border-block: 1px solid var(--line); }
|
|
924
|
-
.comparison-top { justify-content: space-between; margin-bottom: 26px; }
|
|
925
|
-
.comparison h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.2; font-weight: 500; letter-spacing: -.85px; }
|
|
926
|
-
.comparison-top p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
|
|
927
|
-
.comparison-switch { display: flex; padding: 4px; gap: 3px; border: 1px solid var(--track); border-radius: 9px; background: var(--bg); flex-shrink: 0; }
|
|
928
|
-
.comparison-switch button { border: 0; border-radius: 5px; background: transparent; color: var(--quiet); padding: 11px 16px; font: inherit; font-size: 12px; cursor: pointer; transition: background-color 160ms ease-out, color 160ms ease-out, transform 160ms ease-out; }
|
|
929
|
-
.comparison-switch button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 3px #0003; }
|
|
930
|
-
.comparison-switch button:active { transform: scale(.98); }
|
|
931
|
-
.comparison-switch button:focus-visible { outline: 2px solid var(--muted); outline-offset: 3px; }
|
|
932
|
-
.comparison-cost { display: grid; gap: 10px; min-width: 0; color: var(--muted); transition: color 180ms ease-out; }
|
|
933
|
-
.comparison-cost.selected { color: var(--strong); }
|
|
934
|
-
.comparison-cost > span { font-size: 12px; color: var(--muted); }
|
|
935
|
-
.comparison-cost strong { font-size: clamp(30px,3.15vw,44px); line-height: 1.15; letter-spacing: -1.5px; font-weight: 450; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
936
|
-
.comparison-arrow { color: var(--line-active); font-size: 24px; padding-top: 26px; text-align: center; }
|
|
937
|
-
.comparison-saving { min-width: 0; padding-left: 26px; border-left: 1px solid var(--line-strong); display: grid; gap: 7px; }
|
|
938
|
-
.comparison-saving strong { color: var(--amber); font-size: 28px; line-height: 1.2; letter-spacing: -.7px; font-weight: 450; }
|
|
939
|
-
.comparison-saving span { color: var(--muted); font-size: 12px; line-height: 1.5; font-variant-numeric: tabular-nums; }
|
|
940
|
-
.comparison-saving > button { justify-self: start; margin-top: 3px; padding: 0; font-size: 12px; color: var(--text); }
|
|
941
|
-
.comparison-note { margin: 12px 0 0; color: var(--quiet); font-size: 11px; line-height: 1.7; }
|
|
942
|
-
.pricing-method { font-size: 12px; line-height: 1.7; color: var(--muted); padding-bottom: 16px; }
|
|
943
|
-
.price-assignment { padding: 22px 0; border-top: 1px solid var(--line); font-size: 12px; }
|
|
944
|
-
.price-provider { display: flex; justify-content: space-between; margin-bottom: 16px; }
|
|
945
|
-
.price-provider > span:last-child { color: var(--quiet); font-variant-numeric: tabular-nums; }
|
|
946
|
-
.price-models { display: grid; grid-template-columns: minmax(0,1fr) 18px minmax(0,1fr); gap: 12px; }
|
|
947
|
-
.price-models > div { display: flex; flex-direction: column; gap: 7px; }
|
|
948
|
-
.price-models strong { font-size: 13px; font-weight: 450; }
|
|
949
|
-
.price-models span, .price-result span { color: var(--quiet); font-size: 11px; }
|
|
950
|
-
.price-assignment a { color: var(--muted); font-size: 11px; text-decoration-color: var(--scrollbar); text-underline-offset: 3px; }
|
|
951
|
-
.price-assignment a:hover { color: var(--strong); }
|
|
952
|
-
.price-result { margin-top: 18px; color: var(--text); font-variant-numeric: tabular-nums; }
|
|
953
|
-
@media (max-width: 1000px) {
|
|
954
|
-
.comparison { padding-inline: 24px; }
|
|
955
|
-
.comparison-bottom { grid-template-columns: minmax(0,1fr) 20px minmax(0,1fr); gap: 20px; }
|
|
956
|
-
.comparison-saving { grid-column: 1 / -1; grid-template-columns: 1fr auto; border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; margin-top: 4px; }
|
|
957
|
-
.comparison-saving > span { grid-row: 2; }
|
|
958
|
-
.comparison-saving > button { grid-column: 2; grid-row: 1 / 3; align-self: center; }
|
|
959
|
-
}
|
|
960
917
|
@media (max-width: 650px) {
|
|
961
|
-
.comparison { margin-bottom: 24px; padding: 22px 18px 18px; border-radius: 12px; }
|
|
962
|
-
.comparison h2 { font-size: 24px; letter-spacing: -.65px; }
|
|
963
|
-
.comparison-top { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 22px; }
|
|
964
|
-
.comparison-top p { line-height: 1.6; }
|
|
965
|
-
.comparison-switch { width: 100%; }
|
|
966
|
-
.comparison-switch button { flex: 1; padding: 10px 8px; }
|
|
967
|
-
.comparison-bottom { gap: 12px; grid-template-columns: minmax(0,1fr) 16px minmax(0,1fr); padding: 22px 0; }
|
|
968
|
-
.comparison-cost { gap: 8px; }
|
|
969
|
-
.comparison-cost strong { font-size: clamp(19px,5.5vw,32px); letter-spacing: -.6px; }
|
|
970
|
-
.comparison-cost > span { font-size: 11px; }
|
|
971
|
-
.comparison-arrow { font-size: 18px; padding-top: 22px; }
|
|
972
|
-
.comparison-saving { grid-template-columns: minmax(0,1fr); padding-top: 18px; margin-top: 8px; }
|
|
973
|
-
.comparison-saving strong { font-size: 25px; }
|
|
974
|
-
.comparison-saving > button { grid-column: 1; grid-row: 3; margin-top: 5px; }
|
|
975
|
-
.comparison-note { margin-top: 15px; }
|
|
976
918
|
.sample-disclosure { align-items: flex-start; gap: 14px; }
|
|
977
|
-
.sample-disclosure a { white-space: normal; min-width: 70px; }
|
|
978
919
|
}
|
|
979
|
-
@media (prefers-reduced-motion: reduce) { .comparison-switch button, .comparison-cost { transition: none; } }
|
|
980
|
-
|
|
981
|
-
.pricing-assumptions { margin-top: 14px; }
|
|
982
|
-
.pricing-assumptions summary { cursor: pointer; color: var(--text); }
|
|
983
|
-
.pricing-assumptions p { margin-top: 12px; }
|
|
984
|
-
body.keyboard .comparison-switch button, body.keyboard .comparison-cost { transition: none; }
|
|
985
|
-
|
|
986
|
-
.comparison-controls { display: grid; gap: 10px; min-width: 314px; }
|
|
987
|
-
.comparison-preference { display: flex; align-items: center; gap: 12px; }
|
|
988
|
-
.comparison-preference > span { font-size: 11px; color: var(--quiet); white-space: nowrap; }
|
|
989
|
-
.comparison-preference .select-trigger { flex: 1; width: auto; min-width: 0; }
|
|
990
|
-
.comparison-eligibility { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--secondary); font-size: 12px; line-height: 1.6; }
|
|
991
|
-
.comparison-eligibility > span:last-child { color: var(--quiet); }
|
|
992
|
-
.preference-unresolved { color: var(--amber); }
|
|
993
|
-
.price-workload { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; margin-bottom: 12px; }
|
|
994
|
-
.price-workload h3 { font-size: 14px; font-weight: 450; margin: 0; }
|
|
995
|
-
.price-workload > span { color: var(--muted); font-size: 11px; }
|
|
996
|
-
.price-workload > .preference-unresolved { color: var(--amber); }
|
|
997
|
-
.price-decision { line-height: 1.6; color: var(--secondary); margin: 16px 0 10px; }
|
|
998
|
-
.benchmark-checks { margin: 12px 0; border-top: 1px solid var(--node-hover); }
|
|
999
|
-
.benchmark-check { display: flex; justify-content: space-between; gap: 16px; align-items: center; border-bottom: 1px solid var(--node-hover); padding: 10px 0; }
|
|
1000
|
-
.benchmark-check > div { display: grid; gap: 4px; }
|
|
1001
|
-
.benchmark-check > div > span { color: var(--quiet); font-size: 11px; }
|
|
1002
|
-
.benchmark-check strong { font-weight: 400; font-size: 12px; color: var(--secondary); }
|
|
1003
|
-
.benchmark-values { text-align: right; color: var(--text); font-size: 12px; font-variant-numeric: tabular-nums; }
|
|
1004
|
-
.candidate-review { padding: 16px 0; border-bottom: 1px solid var(--node-hover); }
|
|
1005
|
-
.candidate-review > p { line-height: 1.6; color: var(--muted); }
|
|
1006
|
-
.candidate-review > a { display: block; margin: 10px 0; }
|
|
1007
|
-
.candidate-review .benchmark-method { font-size: 11px; color: var(--quiet); }
|
|
1008
|
-
@media (max-width: 650px) { .comparison-controls { width: 100%; min-width: 0; } .comparison-eligibility { gap: 6px; } .comparison-note { font-size: 12px; } }
|
|
1009
|
-
|
|
1010
|
-
.comparison-switch button { flex: 1; }
|
|
1011
|
-
|
|
1012
|
-
.comparison-decisions { margin-top: 18px; border-top: 1px solid var(--node-hover); padding-top: 14px; }
|
|
1013
|
-
.comparison-decisions > summary { cursor: pointer; width: fit-content; color: var(--secondary); font-size: 12px; }
|
|
1014
|
-
.comparison-decisions > summary > span { margin-left: 8px; color: var(--quiet); font-variant-numeric: tabular-nums; }
|
|
1015
|
-
.comparison-decisions .data-table { margin-top: 14px; }
|
|
1016
|
-
.comparison-decisions td { vertical-align: top; }
|
|
1017
|
-
.comparison-decisions td small { display: block; color: var(--quiet); font-size: 12px; margin-top: 6px; }
|
|
1018
|
-
.candidate-review > summary { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; line-height: 1.5; }
|
|
1019
|
-
.candidate-review > summary > span:last-child { color: var(--quiet); white-space: nowrap; }
|
|
1020
|
-
.price-models > div > span { overflow-wrap: anywhere; }
|
|
1021
|
-
|
|
1022
|
-
.comparison-decisions .data-table th, .comparison-decisions .data-table td { text-align: left; font-family: var(--sans); }
|
|
1023
|
-
.comparison-decisions .data-table td { font-size: 12px; color: var(--text); }
|
|
1024
|
-
.comparison-decisions > summary::marker { color: var(--line-active); }
|
|
1025
|
-
.comparison-decisions .table-wrap { max-width: 100%; }
|
|
1026
|
-
.comparison-decisions .data-table td:last-child { color: var(--quiet); }
|
|
1027
|
-
|
|
1028
|
-
.comparison-unresolved { margin-top: 18px; padding: 16px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
|
|
1029
|
-
.comparison-unresolved > div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
|
|
1030
|
-
.comparison-unresolved strong { font-size: 13px; font-weight: 450; color: var(--text); }
|
|
1031
|
-
.comparison-unresolved ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 16px 0; }
|
|
1032
|
-
.comparison-unresolved li { font-size: 12px; }
|
|
1033
|
-
.comparison-unresolved small { display: block; margin-top: 6px; font-size: 12px; color: var(--quiet); }
|
|
1034
|
-
.comparison-unresolved > p { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 0; }
|
|
1035
|
-
@media (max-width: 650px) { .comparison-unresolved ul { grid-template-columns: 1fr; gap: 14px; } }
|
|
1036
|
-
|
|
1037
|
-
/* Preference exceptions use the terminal's existing warm evidence color. */
|
|
1038
|
-
.comparison-override{display:flex;align-items:baseline;gap:8px 14px;flex-wrap:wrap;margin:12px 0 0;padding:12px 0;border-top:1px solid var(--line);font-size:12px;line-height:1.6}
|
|
1039
|
-
.comparison-override strong,.preference-override,.price-workload .preference-override{color:var(--amber)}
|
|
1040
|
-
.comparison-override span{color:var(--muted)}
|
|
1041
|
-
.override-evidence{padding:14px 0;border-block:1px solid var(--line);font-size:12px;line-height:1.7}
|
|
1042
|
-
.override-evidence strong{color:var(--amber);font-weight:500}
|
|
1043
|
-
.override-evidence ul{margin:8px 0;padding-left:18px}
|
|
1044
|
-
.benchmark-check[data-check="regression"] .benchmark-values{color:var(--amber)}
|
|
1045
920
|
|
|
1046
921
|
::selection { background: var(--selected); color: var(--text); }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"format":1,"contract":"scout-recommend-v1","version":"0.
|
|
1
|
+
{"format":1,"contract":"scout-recommend-v1","version":"0.2.0","skill":"---\nname: openmerit-scout\ndescription: Consults OpenMerit Scout before choosing, adding, downloading, replacing or configuring any application inference model, including implicit choices while building features, pretrained browser/local models, SDK defaults, embeddings, OCR, speech, classification, detection, segmentation, LLMs and agents. Not for unrelated edits, ordinary inference calls or this coding agent's own model.\n---\n\n# OpenMerit · Scout\n\nBefore introducing, recommending, replacing or configuring an application\ninference model, call the `scout_models` tool on the `openmerit` MCP server.\nThis applies even when the user never mentions models or Scout. Downloading local\nweights, using a pretrained browser model or accepting an SDK default is a model\ndecision: consult Scout before model-specific code, installs or downloads.\nPreserve the user's explicit model choice; assess it rather than silently replacing\nit. Leave unchanged, approved application selections in place.\n\n## Project policy\n\nRead `.openmerit/scout.json` before searching. If it is absent, ask once whether this\nproject uses **existing-only** (only endpoints it can already reach) or\n**existing-first** (prefer them, ask before searching the whole catalogue), and\nwhich public catalogue endpoint IDs it can access. Save the answer:\n\n```sh\nnpx -y openmerit@latest project --policy existing-only --endpoint-id <id> ...\n```\n\nNever infer access from a model name, SDK or environment-variable name. Never\nrecord credentials, private URLs, prompts or customer data. An empty inventory\nis not permission to search all models.\n\n## Searching\n\nCall `scout_models` with a non-confidential task description as `prompt` and\n`endpointIds` set to the saved inventory, including `[]` when empty. Send\nonly task requirements, never source files, secrets or real customer records.\nIf the MCP tool is unavailable, run\n`npx -y openmerit@latest scout \"<task>\" --json`; it applies the saved inventory.\n\nScout is a conversation with the agent behind openmerit.ai/scout. When\n`status` is `needs_answers`, fill in what the user or project already states,\nshow the user Scout's brief and remaining questions, and wait for their answers.\nThen call again with the returned `conversationId` and `brief` set to the\nrewritten components, or `skip: true` if the user wants Scout to assume. Never\nanswer Scout's questions with guesses. Send later refinements to the same\n`conversationId`. A call with only a `conversationId` reads an interrupted turn.\n\nWhen `status` is `recommended`, Scout has split the work into `tasks`, one\nper model, each with up to five ranked `models`; cover every task. Each\nmodel's `cost` names the `endpointId` and `providerModelId` to call.\nExisting-only never broadens. For existing-first, if no existing candidate fits a\ntask, explain the gap and ask before a new conversation without `endpointIds`.\nCompare quality evidence, reference cost/time and watch-outs. Prefer the cheapest\nusable option the evidence supports, without claiming benchmarks prove\napplication accuracy. Use the project's actual SDK and protocol.\n\n## Boundaries\n\nAsk before adding providers or credentials, spending, deploying or external\nwrites. Report recommendation, endpoint connectivity and application checks as\nseparate results, each only after it succeeds. Do not switch this coding agent's\nown model.\n\nIf Scout fails or has no suitable candidate/evidence for the required deployment,\nsay so and pause the model decision; do not substitute a remembered recommendation\nor SDK default. Continue only model-independent work. Local/browser models are not\nexempt when the catalogue lacks coverage. If it reports that the device key is missing,\nexpired or revoked, run `npx -y openmerit@latest login` and then\n`npx -y openmerit@latest install` again. Never ask the user to paste a key.\n","rule":"# Application model decisions · OpenMerit Scout\n\nBefore choosing, recommending, adding, downloading, replacing or configuring\nANY application inference model, load the `openmerit-scout` skill and consult\n`scout_models` on the `openmerit` MCP server before committing to a model.\nThis applies even when the user only asks you to build a feature, never mentions\nmodels or Scout, or names a model themselves (assess it; do not silently replace it).\n\nA pretrained model, local weights, browser inference, an SDK's default model,\nembeddings, OCR, speech, image classification, detection and segmentation all\ncount as model choices, not implementation details. Identify this decision before\nwriting model-specific code, installing a model package or downloading weights.\n\nFollow the skill's project access policy. If it is missing, ask and save it first.\nScout may answer with clarifying questions: relay them to the user and continue\nthe same Scout conversation with their answers before choosing.\nIf Scout is unavailable, fails or has no suitable evidence/candidate, disclose the\ngap and pause the model decision; do not fall back to a remembered or SDK-default\nmodel. You may continue work that does not commit to a model.\n\nDo not consult Scout for unrelated edits, normal inference calls using an unchanged\napproved model, or this coding agent's own model. Do not reselect approved models\nunless the task introduces or changes a model decision.\n\nWhen the user says \"update openmerit\", run\n`npx -y openmerit@latest update --scope user` (use `--scope project` if this\nrule is in the project's .claude/rules directory). Report the result, including\nany conflict or manual-upgrade requirement. Do not delete edited files, bypass\npermissions or rerun login automatically. A new session loads updated instructions.\n"}
|
|
@@ -10,6 +10,7 @@ import { commandTelemetry } from './telemetry.mjs';
|
|
|
10
10
|
const help = `OpenMerit · Inference Terminal
|
|
11
11
|
|
|
12
12
|
openmerit dash [path] [options]
|
|
13
|
+
openmerit scout --help Ask Scout which models fit your tasks
|
|
13
14
|
openmerit install --help Connect OpenMerit to your coding agent
|
|
14
15
|
openmerit update --help Update installed Scout instructions
|
|
15
16
|
openmerit eval --help Evaluate CLI changes across coding agents
|
|
@@ -31,6 +32,7 @@ Coding-harness usage is outside this terminal's scope.
|
|
|
31
32
|
async function main() {
|
|
32
33
|
const args = process.argv.slice(2);
|
|
33
34
|
if (['install', 'status', 'remove', 'login', 'logout', 'project', 'doctor', 'update'].includes(args[0])) { const { main } = await import('./install.mjs'); process.exitCode = await main(args); return; }
|
|
35
|
+
if (args[0] === 'scout') { const { main } = await import('./scout.js'); process.exitCode = await main(args.slice(1)); return; }
|
|
34
36
|
if (args[0] === 'eval') { const { main } = await import('../../eval/src/cli.mjs'); await main(args.slice(1)); return; }
|
|
35
37
|
if (!args.length || args.includes('--help') || args.includes('-h')) { console.log(help); return; }
|
|
36
38
|
if (args.shift() !== 'dash') throw new Error('Unknown command. Run openmerit --help.');
|