opencode-harness-kit 0.5.7 → 0.6.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 +330 -0
- package/README.md +241 -11
- package/bin/baseline.mjs +16 -1
- package/bin/oc-harness.mjs +528 -42
- package/dist/index.js +294 -57
- package/dist/profile.d.ts +2 -1
- package/dist/rules.d.ts +6 -0
- package/docs/KNOWN-LIMITS.md +22 -2
- package/lanes.json +2 -2
- package/package.json +1 -1
- package/profiles/beam-free.json +2 -3
- package/profiles/deepseek-v4.1-flash-free.json +1 -2
- package/profiles/fleet-all.json +6 -14
- package/profiles/fleet-safe.json +8 -19
- package/profiles/glm-5.3-flash-free.json +1 -2
- package/profiles/index.json +4 -11
- package/profiles/mimo-v2.6-flash-free.json +1 -2
- package/profiles/minimax-m3.1-flash-free.json +1 -2
- package/profiles/nemotron-3.5-lightning-free.json +2 -3
- package/profiles/nemotron-3.5-super-vl-free.json +1 -2
- package/profiles/schema.json +8 -0
- package/retention.yml +0 -9
- package/src/config.js +9 -1
- package/src/profile.js +14 -1
- package/src/prune.ts +90 -5
- package/src/research.js +462 -0
- package/src/rules.js +303 -21
- package/profiles/longcat-2.5-preview-free.json +0 -45
package/bin/baseline.mjs
CHANGED
|
@@ -16,8 +16,23 @@ import { join } from "node:path"
|
|
|
16
16
|
|
|
17
17
|
const args = process.argv.slice(2)
|
|
18
18
|
const wantJson = args.includes("--json")
|
|
19
|
+
// Both spellings: `--db /path` and `--db=/path`. Only the first was read, so
|
|
20
|
+
// `--db=/path` was ignored and the DEFAULT database was measured instead -
|
|
21
|
+
// and the report said nothing about it. A flag that does not do what it was
|
|
22
|
+
// given is worse than a flag that is missing.
|
|
23
|
+
const dbEq = args.find((a) => a.startsWith("--db="))
|
|
19
24
|
const dbArg = args.indexOf("--db")
|
|
20
|
-
const
|
|
25
|
+
const dbValue =
|
|
26
|
+
dbEq !== undefined
|
|
27
|
+
? dbEq.slice("--db=".length)
|
|
28
|
+
: dbArg >= 0
|
|
29
|
+
? args[dbArg + 1]
|
|
30
|
+
: undefined
|
|
31
|
+
if (dbValue !== undefined && (!dbValue || dbValue.startsWith("--"))) {
|
|
32
|
+
console.error("pass --db <path> or --db=<path>")
|
|
33
|
+
process.exit(1)
|
|
34
|
+
}
|
|
35
|
+
const DB = dbValue ?? join(homedir(), ".local/share/opencode/opencode.db")
|
|
21
36
|
|
|
22
37
|
const { canQuerySqlite, sqliteMissingMessage, query: queryDb } = await import("../src/sqlite.js")
|
|
23
38
|
|