@przeprogramowani/10x-cli 1.17.0 → 1.18.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/README.md +35 -0
- package/dist/index.mjs +2 -18
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -62,6 +62,7 @@ Once installed, just tell your agent to **set up 10x-cli** and it will pick up t
|
|
|
62
62
|
| `10x sync` | Bulk-download / refresh lessons and report what changed upstream |
|
|
63
63
|
| `10x doctor` | Diagnose auth, API connectivity, and local config |
|
|
64
64
|
| `10x bench` | Live top-10 AI model leaderboard from [10xbench.ai](https://10xbench.ai) — no login needed |
|
|
65
|
+
| `10x bench-kit <action>` | Create (`init`) and update (`update`) a company benchmark instance from the [10x-bench-kit](https://github.com/przeprogramowani/10x-bench-kit) template |
|
|
65
66
|
|
|
66
67
|
### `10x get` Flags
|
|
67
68
|
|
|
@@ -180,6 +181,40 @@ color-coded score bars in your terminal. Public data, works without logging in.
|
|
|
180
181
|
The data refreshes whenever new benchmark results are published on 10xbench.ai.
|
|
181
182
|
Colors honor `NO_COLOR` and are disabled automatically when output is piped.
|
|
182
183
|
|
|
184
|
+
### `10x bench-kit`
|
|
185
|
+
|
|
186
|
+
Creates and maintains a **company benchmark instance** from the
|
|
187
|
+
[10x-bench-kit](https://github.com/przeprogramowani/10x-bench-kit) template —
|
|
188
|
+
a self-hosted benchmark that scores AI agents on tasks embedded in your own
|
|
189
|
+
repositories. The CLI is a thin installer/updater; tasks, assertions, and
|
|
190
|
+
scoring live in the template and the instance.
|
|
191
|
+
|
|
192
|
+
| Action | Description |
|
|
193
|
+
|--------|-------------|
|
|
194
|
+
| `init [dir]` | Materialize a fresh instance from the template (no git history, fresh `git init`), register the detected base repo, install runner dependencies |
|
|
195
|
+
| `update [dir]` | Upgrade the instance to a newer template: runtime zone replaced wholesale, skills proposed as a reviewable diff, company content untouched |
|
|
196
|
+
|
|
197
|
+
| Flag | Description |
|
|
198
|
+
|------|-------------|
|
|
199
|
+
| `--template-version <tag>` | Template tag to install (default: latest) |
|
|
200
|
+
| `--tool <id>` | Agent tool for skill placement (`claude-code`, `cursor`, `copilot`, `codex`, `windsurf`, `gemini`, `generic`) |
|
|
201
|
+
| `--yes` | Run non-interactively, accepting defaults |
|
|
202
|
+
|
|
203
|
+
```bash
|
|
204
|
+
# Create an instance next to your product repo (run inside it to auto-register)
|
|
205
|
+
10x bench-kit init my-benchmark
|
|
206
|
+
|
|
207
|
+
# Pin the template version
|
|
208
|
+
10x bench-kit init my-benchmark --template-version v0.8.0
|
|
209
|
+
|
|
210
|
+
# Upgrade an existing instance to the latest template
|
|
211
|
+
10x bench-kit update
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
Re-running `init` on an existing instance is a **repair**: missing template
|
|
215
|
+
files are restored, company content is never touched. After `update`, run the
|
|
216
|
+
instance's `bench validate` to confirm the content still matches the new kit.
|
|
217
|
+
|
|
183
218
|
### Global Flags
|
|
184
219
|
|
|
185
220
|
- `--json` — Machine-readable JSON output (auto-detected when piped)
|
package/dist/index.mjs
CHANGED
|
@@ -10173,7 +10173,7 @@ var cac = (name = "") => new CAC(name);
|
|
|
10173
10173
|
// package.json
|
|
10174
10174
|
var package_default = {
|
|
10175
10175
|
name: "@przeprogramowani/10x-cli",
|
|
10176
|
-
version: "1.
|
|
10176
|
+
version: "1.18.0",
|
|
10177
10177
|
description: "Open-source CLI for 10xDevs course content",
|
|
10178
10178
|
repository: {
|
|
10179
10179
|
type: "git",
|
|
@@ -11104,19 +11104,6 @@ import {
|
|
|
11104
11104
|
import { tmpdir } from "node:os";
|
|
11105
11105
|
import { basename, join as join4, resolve, sep } from "node:path";
|
|
11106
11106
|
|
|
11107
|
-
// src/lib/experimental.ts
|
|
11108
|
-
var EXPERIMENTAL_ENV = "TENX_CLI_EXPERIMENTAL";
|
|
11109
|
-
function experimentalEnabled(env = process.env) {
|
|
11110
|
-
const value = env[EXPERIMENTAL_ENV];
|
|
11111
|
-
return value === "1" || value === "true";
|
|
11112
|
-
}
|
|
11113
|
-
function requireExperimental(command, flags, env = process.env) {
|
|
11114
|
-
if (experimentalEnabled(env))
|
|
11115
|
-
return;
|
|
11116
|
-
const ctx = resolveContext(flags);
|
|
11117
|
-
outputError(ctx, "experimental_locked", `'10x ${command}' is experimental and currently locked.`, ExitCodes.FORBIDDEN, `Set ${EXPERIMENTAL_ENV}=1 and run '10x ${command}' again.`);
|
|
11118
|
-
}
|
|
11119
|
-
|
|
11120
11107
|
// src/lib/tool-detect.ts
|
|
11121
11108
|
import { existsSync as existsSync3 } from "node:fs";
|
|
11122
11109
|
import { join as join3 } from "node:path";
|
|
@@ -11462,10 +11449,7 @@ var TEMPLATE_REPO_URL = "https://github.com/przeprogramowani/10x-bench-kit";
|
|
|
11462
11449
|
var SHARED_ROOT_FILES = ["AGENTS.md"];
|
|
11463
11450
|
var PLACEHOLDER_BASE_REPO = "demo-app";
|
|
11464
11451
|
function registerBenchKitCommand(cli) {
|
|
11465
|
-
|
|
11466
|
-
return;
|
|
11467
|
-
cli.command("bench-kit <action> [dir]", "Manage a benchmark instance (actions: init, update; experimental)").option("--template-version <tag>", "Template tag to install (default: latest)").option("--tool <id>", `Agent tool for skill placement (${Object.keys(PROFILES).join(", ")})`).option("--yes", "Run non-interactively, accepting defaults").example("10x bench-kit init my-benchmark").example("10x bench-kit init my-benchmark --template-version v0.1.0").example("10x bench-kit update").action(async (action, dir, options) => {
|
|
11468
|
-
requireExperimental(`bench-kit ${action}`, options);
|
|
11452
|
+
cli.command("bench-kit <action> [dir]", "Manage a benchmark instance (actions: init, update)").option("--template-version <tag>", "Template tag to install (default: latest)").option("--tool <id>", `Agent tool for skill placement (${Object.keys(PROFILES).join(", ")})`).option("--yes", "Run non-interactively, accepting defaults").example("10x bench-kit init my-benchmark").example("10x bench-kit init my-benchmark --template-version v0.1.0").example("10x bench-kit update").action(async (action, dir, options) => {
|
|
11469
11453
|
const ctx = resolveContext(options);
|
|
11470
11454
|
if (action === "init") {
|
|
11471
11455
|
await runBenchKitInit(ctx, dir, options);
|