@devtune/agentpicks 0.4.2 → 0.4.4

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 CHANGED
@@ -1,17 +1,27 @@
1
1
  # @devtune/agentpicks
2
2
 
3
- Test which tools the coding agents installed on your machine pick when they build your kind of app. `agentpicks run` gives an agent a real request (add error tracking, choose a database) in a committed starter app or your own repository, inside a fresh Docker container, writes what it did to a bundle on disk (its transcript, its code changes, every URL it fetched and every package it installed) and uploads the bundle to your DevTune project.
3
+ Test which tools the coding agents installed on your machine pick when they build your kind of app. `agentpicks run` gives an agent a real request (add error tracking, choose a database) in a committed starter app or your own repository, inside a fresh Docker container, and writes what it did to a bundle on disk: its transcript, its code changes, every URL it fetched and every package it installed. `agentpicks results` reads which tool each run picked from those bundles.
4
4
 
5
- Apache-2.0.
5
+ Apache-2.0. None of this needs a DevTune account:
6
6
 
7
7
  ```sh
8
- npx @devtune/agentpicks login
9
- npx @devtune/agentpicks run --category error-tracking --stack nextjs
10
- npx @devtune/agentpicks init # writes a setup file, such as agentpicks/error-tracking.yaml
11
- npx @devtune/agentpicks run error-tracking # runs agentpicks/error-tracking.yaml; see Setups
8
+ npx @devtune/agentpicks init # writes a setup file, such as agentpicks/error-tracking.yaml
9
+ npx @devtune/agentpicks run error-tracking --no-upload # runs it; see Setups
10
+ npx @devtune/agentpicks run --category error-tracking --stack nextjs --no-upload
11
+ npx @devtune/agentpicks results
12
12
  npm install -g @devtune/agentpicks # then: agentpicks run ...
13
13
  ```
14
14
 
15
+ To have DevTune analyse the runs (what the agent said it picked, pick rates, loss reasons and the Actions that follow), sign in, save the setup and upload what you already ran:
16
+
17
+ ```sh
18
+ npx @devtune/agentpicks login
19
+ npx @devtune/agentpicks push
20
+ npx @devtune/agentpicks upload ./agentpicks-runs
21
+ ```
22
+
23
+ A kept run uploads once its setup is pushed with the same `from`, add request and tools the run tested. See [Upload](#upload).
24
+
15
25
  ## Requirements
16
26
 
17
27
  - Docker, running. Each run uses a fresh container with 2 CPUs and 4 GB of memory, needs 20 GB free on Docker's disk and may write up to 15 GB there. The image is built for your machine's own architecture, x86_64 or arm64, so nothing is emulated.
@@ -36,7 +46,7 @@ agentpicks run --category error-tracking --repo .
36
46
  | `--agent` | `claude-code`, `codex`, `opencode` or `pi`. Required when several are installed. |
37
47
  | `--model` | The model to ask for. OpenCode and Pi take `anthropic/<model>` or `openai/<model>`. |
38
48
  | `--out` | Where bundles go. Default `./agentpicks-runs`. |
39
- | `--no-upload` | Keep bundles on this machine only. Send them later with `agentpicks upload`, except a custom setup's (see [Setups](#setups)). |
49
+ | `--no-upload` | Keep bundles on this machine only. Send them later with `agentpicks upload`; a custom setup's once `agentpicks push` saves it (see [Setups](#setups)). |
40
50
 
41
51
  `agentpicks --help`, or `--help` after any command, prints the usage and exits successfully.
42
52
 
@@ -95,6 +105,8 @@ agentpicks upload ./agentpicks-runs/<run id>
95
105
 
96
106
  `agentpicks login` signs in to DevTune in your browser, where you choose the project and approve its scopes. Uploading needs Agent Picks Run; `login` prints every scope the sign-in holds. If no browser opens, or with `--no-browser`, it prints the address: open it in a browser on the same machine. The sign-in is renewed when it expires. Before anything starts, `run` and `upload` ask DevTune what the sign-in may do now, and stop, saying to log in again, if DevTune refuses to renew it or it lacks Agent Picks Run. If DevTune can't be reached or is briefly unavailable, they warn and carry on, and the upload checks again. If a renewal's answer is lost, so DevTune may have renewed the sign-in without `agentpicks` saving it, they stop; run `login` again. A sign-in revoked during a long `run`, or one DevTune no longer renews, is refused at upload, and the bundle stays on disk. Uploads act as the signed-in member, who needs DevTune management permission on the account and edit rights on the project.
97
107
 
108
+ On a terminal, `agentpicks` with no command, `--help` and a successful `login` show the DevTune logo first. Set `AGENTPICKS_NO_LOGO=1` to leave it out.
109
+
98
110
  `agentpicks login --api-key` reads a project API key from standard input instead: paste it at the prompt, which doesn't echo it, or pipe it in. Create the key under **API Keys** in DevTune, with the **Agent Picks Run** scope. `login` asks DevTune which project the key belongs to, which needs the key's Project Read scope too; with `--project`, it saves the key for that project without asking.
99
111
 
100
112
  Either login is saved to `agentpicks/credentials.json` under `$XDG_CONFIG_HOME`, or else `%APPDATA%` on Windows and `~/.config` elsewhere, in a file with mode 0600, so only your user can read it, and replaces the other. `agentpicks` never prints a key or token.
@@ -217,7 +229,7 @@ agentpicks run
217
229
 
218
230
  `agentpicks run <setup>` takes the setup's name or the path of its file. Each run asks the setup's `add` request, once per agent and stack. Claude Code's early stop watches for the `from` category's tools and for the package and config names of the setup's own tools; a tool that yields to another tool in the setup (`yieldsTo`) doesn't stop it, and nor does a tool named by key alone or a full entry with no package or config name, so a setup whose tools are all like these isn't stopped early. Flags override the file: `--stack` or `--repo` replaces its stacks or repo, `--ref` its commit, `--agent` its agents, and `--runs` its runs. `--model` sets one agent's model, so a setup with several agents needs `--agent` with it. On a terminal, `agentpicks run` with no setup and no `--category` lists the setups and asks which to run.
219
231
 
220
- A setup file linked to a DevTune setup (it has an `id`) uploads under that setup. An unlinked setup `from` a category, with no requests or tool signals of its own, uploads as that category. Naming the category's tools under `tools` doesn't change that. Any other setup is custom, and can't share its name with a built-in category: until `agentpicks push` saves it to DevTune, `run` refuses to start it without `--no-upload`, and `upload` refuses its bundles. A run of a linked file whose DevTune setup is gone is refused before it starts, and so is a run of a linked file with changes not pushed (push it first) or whose DevTune setup changed since the file last saw it (pull it first). DevTune refuses an upload whose prompt isn't its setup's current request, as `prompt_mismatch`. With `--no-upload`, such a run's bundles record the unpushed changes, and `upload` refuses them.
232
+ A setup file linked to a DevTune setup (it has an `id`) uploads under that setup. An unlinked setup `from` a category, with no requests or tool signals of its own, uploads as that category. Naming the category's tools under `tools` doesn't change that. Any other setup is custom, and can't share its name with a built-in category: until `agentpicks push` saves it to DevTune, `run` refuses to start it without `--no-upload`. A run of a linked file whose DevTune setup is gone is refused before it starts, and so is a run of a linked file with changes not pushed (push it first) or whose DevTune setup changed since the file last saw it (pull it first). DevTune refuses an upload whose prompt isn't its setup's current request, as `prompt_mismatch`. A `--no-upload` bundle of a custom setup, or of a linked file's changes not pushed, uploads once `agentpicks push` has saved the file with the same `from`, add request and tools the run tested: run `upload` from the repository that holds the file. Adding what `push` needs and a run doesn't, such as a `recommend` request, is fine. A bundle of an add request or tools the file or DevTune no longer holds can't file under the setup; run the setup again.
221
233
 
222
234
  ```sh
223
235
  agentpicks list
@@ -266,7 +278,7 @@ jobs:
266
278
  steps:
267
279
  - uses: actions/checkout@v5
268
280
  - run: npm install -g @anthropic-ai/claude-code@2.1.323
269
- - uses: devtunehq/agentpicks@v0.4.2
281
+ - uses: devtunehq/agentpicks@v0.4.4
270
282
  with:
271
283
  setup: agentpicks/error-tracking.yaml
272
284
  agent: claude-code
@@ -280,7 +292,7 @@ jobs:
280
292
 
281
293
  Use a Linux runner: `ubuntu-latest` has Docker and Node.js 20 or later. Without Docker, `run` refuses; without Node.js 20 or later, the action does. The action uses the runner's Node.js and doesn't change it for later steps.
282
294
 
283
- Pin a release tag, such as `v0.4.2`. The action runs the `@devtune/agentpicks` version in the `package.json` of its ref, so a tag runs the same CLI every time. A branch moves to each new version when the mirror syncs, and fails while that version isn't on npm.
295
+ Pin a release tag, such as `v0.4.4`. The action runs the `@devtune/agentpicks` version in the `package.json` of its ref, so a tag runs the same CLI every time. A branch moves to each new version when the mirror syncs, and fails while that version isn't on npm.
284
296
 
285
297
  | Input | Passed as |
286
298
  |---|---|
@@ -321,7 +333,7 @@ Install Docker, Node.js 20 or later and the agent, set `DEVTUNE_API_KEY`, `DEVTU
321
333
 
322
334
  ```sh
323
335
  npm install -g @anthropic-ai/claude-code@2.1.323
324
- npx --yes @devtune/agentpicks@0.4.2 run error-tracking --agent claude-code
336
+ npx --yes @devtune/agentpicks@0.4.4 run error-tracking --agent claude-code
325
337
  ```
326
338
 
327
339
  ## The bundle
package/dist/cli.js CHANGED
@@ -7370,12 +7370,12 @@ var import_node_path19 = require("node:path");
7370
7370
  // src/cli/main.ts
7371
7371
  var import_node_crypto10 = require("node:crypto");
7372
7372
  var import_node_path18 = require("node:path");
7373
- var import_promises4 = require("node:readline/promises");
7373
+ var import_promises5 = require("node:readline/promises");
7374
7374
 
7375
7375
  // package.json
7376
7376
  var package_default = {
7377
7377
  name: "@devtune/agentpicks",
7378
- version: "0.4.2",
7378
+ version: "0.4.4",
7379
7379
  description: "The open Agent Picks runner: the agentpicks CLI, which tests the coding agents installed on your machine in fresh Docker containers, and the sandbox code DevTune runs its managed tests on",
7380
7380
  license: "Apache-2.0",
7381
7381
  engines: {
@@ -8786,6 +8786,14 @@ function fileDigest(file2) {
8786
8786
  for (const key of LOCAL_ONLY) delete content[key];
8787
8787
  return (0, import_node_crypto2.createHash)("sha256").update(canonical(content)).digest("hex");
8788
8788
  }
8789
+ function runDigest(file2) {
8790
+ const tested = {
8791
+ from: file2.from,
8792
+ add: file2.requests?.add,
8793
+ tools: file2.tools
8794
+ };
8795
+ return (0, import_node_crypto2.createHash)("sha256").update(canonical(tested)).digest("hex");
8796
+ }
8789
8797
 
8790
8798
  // ../../node_modules/.pnpm/zod@4.6.6_patch_hash=96bd69fd10dbaf45f7f092f491f5876d12a54eb6e3908dd65bb626412caa94b4/node_modules/zod/v4/classic/external.js
8791
8799
  var external_exports = {};
@@ -28522,7 +28530,7 @@ var SETUP_MAX_RECORDED_TOOLS = LARGEST_CATEGORY_TOOLS + SETUP_MAX_TOOLS;
28522
28530
  function setupMaxTools(categorySlug) {
28523
28531
  return (categorySlug ? CATEGORY_TOOLS[categorySlug]?.length ?? 0 : 0) + SETUP_MAX_TOOLS;
28524
28532
  }
28525
- var PACKAGE_NAME = /^[A-Za-z0-9@._/:*-]*[A-Za-z0-9][A-Za-z0-9@._/:*-]*$/;
28533
+ var PACKAGE_NAME = /^[@._/:*-]*[A-Za-z0-9][A-Za-z0-9@._/:*-]*$/;
28526
28534
  var CONFIG_NAME = /^[A-Za-z0-9@._/:*][A-Za-z0-9@._/:*-]*$/;
28527
28535
  function signalFormat(base, field, format2, message, reviewed) {
28528
28536
  const passes2 = (value) => typeof format2 === "function" ? format2(value) : format2.test(value);
@@ -28548,7 +28556,7 @@ var toolNameSchema = external_exports.string().trim().min(1).max(TOOL_NAME_MAX_L
28548
28556
  var domainSchema = external_exports.string().trim().toLowerCase().min(3).max(DOMAIN_MAX_LENGTH).regex(/^[a-z0-9-]+(?:\.[a-z0-9-]+)+$/, {
28549
28557
  message: "Give a bare domain, such as example.com."
28550
28558
  });
28551
- var packageNameSchema = external_exports.string().trim().min(1, { message: PACKAGE_NAME_MESSAGE }).max(PACKAGE_NAME_MAX_LENGTH, { message: PACKAGE_NAME_MESSAGE }).regex(PACKAGE_NAME, { message: PACKAGE_NAME_MESSAGE });
28559
+ var packageNameSchema = external_exports.string().trim().min(1, { message: PACKAGE_NAME_MESSAGE }).max(PACKAGE_NAME_MAX_LENGTH, { message: PACKAGE_NAME_MESSAGE, abort: true }).regex(PACKAGE_NAME, { message: PACKAGE_NAME_MESSAGE });
28552
28560
  function configNameSchema(reviewed) {
28553
28561
  return signalFormat(
28554
28562
  external_exports.string().trim().min(CONFIG_NAME_MIN_LENGTH, { message: CONFIG_NAME_MESSAGE }).max(CONFIG_NAME_MAX_LENGTH, { message: CONFIG_NAME_MESSAGE }),
@@ -77794,8 +77802,13 @@ var bundleSetupSchema = external_exports.object({
77794
77802
  id: external_exports.string().min(1).nullable(),
77795
77803
  /** The job line. */
77796
77804
  job: external_exports.string().min(1),
77797
- /** Set when the run asked a linked file's changes not yet pushed, so it can't file under its setup. */
77805
+ /** Set when the run asked a linked file's changes not yet pushed, so it files only once they are. */
77798
77806
  unpushed: external_exports.boolean().optional(),
77807
+ /**
77808
+ * The digest of what the run tested (runDigest), for a run kept with --no-upload: `upload` files
77809
+ * a custom setup's run, or one of changes not pushed, once a push has saved a file that tests this.
77810
+ */
77811
+ asked: external_exports.string().regex(/^[0-9a-f]{64}$/).optional(),
77799
77812
  /** The catalogue tools the setup names by key that the run's early stop doesn't hold. */
77800
77813
  unrecognised: external_exports.array(external_exports.string().min(1)).optional()
77801
77814
  });
@@ -81075,11 +81088,15 @@ async function linkedSetup(id, shown3, ctx) {
81075
81088
  async function linkUploads(plan, setup, content, shown3, ctx) {
81076
81089
  const unpushed = setup.id !== null && content !== void 0 && hasUnpushedChanges(content);
81077
81090
  if (!plan.upload)
81078
- return unpushed && plan.setup ? {
81091
+ return content && plan.setup ? {
81079
81092
  ...plan,
81080
81093
  setup: {
81081
81094
  ...plan.setup,
81082
- record: { ...plan.setup.record, unpushed: true }
81095
+ record: {
81096
+ ...plan.setup.record,
81097
+ asked: runDigest(content),
81098
+ ...unpushed ? { unpushed: true } : {}
81099
+ }
81083
81100
  }
81084
81101
  } : plan;
81085
81102
  if (setup.id === null) {
@@ -81107,13 +81124,14 @@ async function linkUploads(plan, setup, content, shown3, ctx) {
81107
81124
  };
81108
81125
  }
81109
81126
  async function linkedBundle(bundle, ctx) {
81110
- const id = bundle.setup?.id;
81127
+ const record2 = bundle.setup;
81128
+ if (!record2) return null;
81129
+ const shown3 = `${bundle.dir} (a run of ${record2.name})`;
81130
+ const custom2 = bundle.manifest.request.category.startsWith(
81131
+ CUSTOM_SETUP_CATEGORY_PREFIX
81132
+ );
81133
+ const id = record2.id && !record2.unpushed ? record2.id : record2.unpushed || custom2 ? pushedSince(record2, bundle.dir, shown3, ctx) : null;
81111
81134
  if (!id) return null;
81112
- const shown3 = `${bundle.dir} (a run of ${bundle.setup.name})`;
81113
- if (bundle.setup.unpushed)
81114
- throw new UsageError(
81115
- `${shown3} ran with changes not pushed to its DevTune setup, so it can't file under it. Run agentpicks push ${bundle.setup.name}, then run the setup again.`
81116
- );
81117
81135
  const slug2 = (await linkedSetup(id, shown3, ctx)).category_slug;
81118
81136
  return {
81119
81137
  ...bundle,
@@ -81123,6 +81141,38 @@ async function linkedBundle(bundle, ctx) {
81123
81141
  }
81124
81142
  };
81125
81143
  }
81144
+ function pushedSince(record2, dir, shown3, ctx) {
81145
+ if (!record2.asked) {
81146
+ if (!record2.id) return null;
81147
+ throw new UsageError(
81148
+ `${shown3} ran with changes not pushed to its DevTune setup, so it can't file under it. Run agentpicks push ${record2.name}, then run the setup again.`
81149
+ );
81150
+ }
81151
+ const named = listSetupFiles(setupsRoot(ctx.cwd)).filter(
81152
+ (path) => (0, import_node_path10.basename)(path, (0, import_node_path10.extname)(path)) === record2.name
81153
+ );
81154
+ const content = named.length === 1 ? readSetupFile(named[0]).content : void 0;
81155
+ if (!content)
81156
+ throw new UsageError(
81157
+ `${shown3} uploads under the DevTune setup its file ${record2.name} is linked to, and there is no readable setup ${record2.name} here. Run agentpicks upload from the repository whose agentpicks folder holds it.`
81158
+ );
81159
+ const asked = runDigest(content) === record2.asked;
81160
+ const runAgain = `Run agentpicks run ${record2.name} again to upload its runs.`;
81161
+ if (content.id === void 0 || hasUnpushedChanges(content)) {
81162
+ if (!asked)
81163
+ throw new UsageError(
81164
+ `${shown3} tested a version of ${record2.name} that the file no longer holds, so no push can save what it tested. ${runAgain}`
81165
+ );
81166
+ throw new UsageError(
81167
+ `${shown3} tested what ${record2.name} holds now, which isn't saved to DevTune yet. Run agentpicks push ${record2.name}, then agentpicks upload ${dir} again.`
81168
+ );
81169
+ }
81170
+ if (!asked || record2.id && record2.id !== content.id)
81171
+ throw new UsageError(
81172
+ `${shown3} tested a version of ${record2.name} that DevTune doesn't hold, so it can't file under its setup. ${runAgain}`
81173
+ );
81174
+ return content.id;
81175
+ }
81126
81176
 
81127
81177
  // src/cli/category-copy.ts
81128
81178
  async function categoryCopyPlan(args, ctx) {
@@ -82356,6 +82406,7 @@ async function loginCommand(argv, ctx) {
82356
82406
  const path = loginPath(ctx.io);
82357
82407
  if (args.apiKey) {
82358
82408
  await apiKeyLogin(args.project, baseUrl, path, ctx);
82409
+ await ctx.logo?.();
82359
82410
  ctx.out(`Saved to ${path}. run and upload send bundles to this project.`);
82360
82411
  if (ctx.io.env.DEVTUNE_API_KEY || ctx.io.env.DEVTUNE_PROJECT_ID)
82361
82412
  ctx.out(
@@ -82379,6 +82430,7 @@ ${url2}`
82379
82430
  ),
82380
82431
  save: (session) => withLoginLock(path, () => saveLogin(path, session))
82381
82432
  });
82433
+ await ctx.logo?.();
82382
82434
  ctx.out(`Signed in to ${project.name} (${project.id}).`);
82383
82435
  ctx.out(`Granted: ${[...scopes].sort().join(", ")}.`);
82384
82436
  const missing = AGENTPICKS_SCOPES.filter((s) => !scopes.includes(s));
@@ -82426,6 +82478,63 @@ async function apiKeyLogin(project, baseUrl, path, ctx) {
82426
82478
  });
82427
82479
  }
82428
82480
 
82481
+ // src/cli/logo.ts
82482
+ var import_promises4 = require("node:timers/promises");
82483
+ var MARK = [
82484
+ " b c b ",
82485
+ " b ccc b ",
82486
+ "b ccc b",
82487
+ " b ccc b ",
82488
+ " b c b "
82489
+ ];
82490
+ var CENTRE = 5;
82491
+ var LAST_STEP = CENTRE + 1;
82492
+ var FRAME_MS = 55;
82493
+ var LOGO_COLUMNS = 40;
82494
+ var GREEN = "\x1B[38;5;36m";
82495
+ var BOLD = "\x1B[1m";
82496
+ var DIM = "\x1B[2m";
82497
+ var RESET = "\x1B[0m";
82498
+ function logoFrames(version2) {
82499
+ const text3 = [
82500
+ "",
82501
+ `${BOLD}DevTune${RESET}`,
82502
+ "Agent Picks",
82503
+ `${DIM}${version2}${RESET}`,
82504
+ ""
82505
+ ];
82506
+ const frame = (step, words) => MARK.map((row, r) => {
82507
+ const dots = [...row].map((cell, col) => {
82508
+ const distance = Math.abs(col - CENTRE);
82509
+ if (cell === " " || distance > step) return " ";
82510
+ const dot = distance === step ? "\xB7" : "\u25CF";
82511
+ return cell === "b" ? `${GREEN}${dot}${RESET}` : dot;
82512
+ }).join(" ");
82513
+ return r < words + 1 && text3[r] ? `${dots} ${text3[r]}` : dots.trimEnd();
82514
+ });
82515
+ return [
82516
+ ...Array.from({ length: LAST_STEP + 1 }, (_, step) => frame(step, 0)),
82517
+ frame(LAST_STEP, 1),
82518
+ frame(LAST_STEP, 3)
82519
+ ];
82520
+ }
82521
+ function logoPlayer(env, stdout) {
82522
+ if (!stdout.isTTY || (stdout.columns ?? 0) < LOGO_COLUMNS || env.CI || env.TERM === "dumb" || env.NO_COLOR || env.AGENTPICKS_NO_LOGO)
82523
+ return void 0;
82524
+ return async () => {
82525
+ const frames = logoFrames(package_default.version);
82526
+ for (const [i, lines] of frames.entries()) {
82527
+ if (i > 0) {
82528
+ await (0, import_promises4.setTimeout)(FRAME_MS);
82529
+ stdout.write(`\x1B[${lines.length}A`);
82530
+ }
82531
+ stdout.write(lines.map((line2) => `\r\x1B[2K${line2}
82532
+ `).join(""));
82533
+ }
82534
+ stdout.write("\n");
82535
+ };
82536
+ }
82537
+
82429
82538
  // src/cli/pull-command.ts
82430
82539
  var import_node_fs9 = require("node:fs");
82431
82540
  var import_node_path15 = require("node:path");
@@ -85015,7 +85124,7 @@ function writtenSecrets(texts) {
85015
85124
  }
85016
85125
 
85017
85126
  // src/run/artifact-redaction.ts
85018
- var MARK = "[redacted]";
85127
+ var MARK2 = "[redacted]";
85019
85128
  var WRITTEN_SECRETS_LIMIT = 200;
85020
85129
  var WrittenSecretsLimitError = class extends Error {
85021
85130
  constructor() {
@@ -85044,7 +85153,7 @@ function redactArtifacts(artifacts, credentials) {
85044
85153
  return { artifacts: redacted, counts, redact };
85045
85154
  }
85046
85155
  function marks(text3) {
85047
- return text3.split(MARK).length - 1;
85156
+ return text3.split(MARK2).length - 1;
85048
85157
  }
85049
85158
 
85050
85159
  // src/cli/self-run.ts
@@ -85239,7 +85348,8 @@ push Saves a setup file, or every one, to DevTune and links it. A setup cha
85239
85348
  validate Checks every setup file, or the ones named, against the setup schema and the
85240
85349
  catalogue. Exits non-zero if any fails, naming the file and field.
85241
85350
  upload Uploads a bundle directory, or every bundle in an --out directory. Uploading again
85242
- sends only what isn't stored yet. An unlinked custom setup's bundles are refused.
85351
+ sends only what isn't stored yet. A custom setup's bundle, or one of changes not
85352
+ pushed, uploads once agentpicks push has saved the add request and tools it tested.
85243
85353
  results Shows which tool each run in ./agentpicks-runs, or the directories named, picked: the
85244
85354
  packages it added, or the code or config file that shows the pick, read from its
85245
85355
  bundle as the run's early stop reads it. A run with no pick shows none, and one whose
@@ -85259,6 +85369,15 @@ A setup file, agentpicks/error-tracking.yaml:
85259
85369
 
85260
85370
  Its schema is schema/setup.v1.json in this package; the README describes every field.
85261
85371
  `;
85372
+ var INTRO = `Test which tools coding agents pick when they build your kind of app.
85373
+
85374
+ agentpicks login Sign in to your DevTune project
85375
+ agentpicks init Write a setup file for this repository
85376
+ agentpicks run Run a setup with the coding agent installed here
85377
+ agentpicks results Show which tool each run picked
85378
+ agentpicks list List this repository's setups and your project's
85379
+
85380
+ agentpicks --help lists every command and flag.`;
85262
85381
  function defaultContext(dockerfileDir) {
85263
85382
  return {
85264
85383
  io: hostIo(),
@@ -85270,7 +85389,8 @@ function defaultContext(dockerfileDir) {
85270
85389
  dockerfileDir,
85271
85390
  stdinIsTerminal: Boolean(process.stdin.isTTY),
85272
85391
  interactive: Boolean(process.stdin.isTTY && process.stdout.isTTY),
85273
- columns: process.stdout.isTTY ? process.stdout.columns : void 0
85392
+ columns: process.stdout.isTTY ? process.stdout.columns : void 0,
85393
+ logo: logoPlayer(process.env, process.stdout)
85274
85394
  };
85275
85395
  }
85276
85396
  function printable(line2) {
@@ -85292,9 +85412,15 @@ async function main(argv, given) {
85292
85412
  ctx.out(RUNNER.version);
85293
85413
  return 0;
85294
85414
  }
85295
- if (!command || command === "help" || command === "--help" || command === "-h" || rest.includes("--help")) {
85415
+ if (!command) {
85416
+ await ctx.logo?.();
85417
+ ctx.out(INTRO);
85418
+ return 0;
85419
+ }
85420
+ if (command === "help" || command === "--help" || command === "-h" || rest.includes("--help")) {
85421
+ await ctx.logo?.();
85296
85422
  ctx.out(USAGE);
85297
- return command ? 0 : 1;
85423
+ return 0;
85298
85424
  }
85299
85425
  if (command === "init")
85300
85426
  return await initCommand(rest, { ...ctx, ask: ctx.ask ?? askLine });
@@ -85395,7 +85521,7 @@ Or run a built-in category: agentpicks run --category <category> --stack <stack>
85395
85521
  return chosen.path;
85396
85522
  }
85397
85523
  async function askLine(question) {
85398
- const rl = (0, import_promises4.createInterface)({ input: process.stdin, output: process.stdout });
85524
+ const rl = (0, import_promises5.createInterface)({ input: process.stdin, output: process.stdout });
85399
85525
  try {
85400
85526
  return await rl.question(question);
85401
85527
  } finally {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtune/agentpicks",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "description": "The open Agent Picks runner: the agentpicks CLI, which tests the coding agents installed on your machine in fresh Docker containers, and the sandbox code DevTune runs its managed tests on",
5
5
  "license": "Apache-2.0",
6
6
  "engines": {
@@ -145,7 +145,7 @@
145
145
  "type": "string",
146
146
  "minLength": 1,
147
147
  "maxLength": 214,
148
- "pattern": "^[A-Za-z0-9@._/:*-]*[A-Za-z0-9][A-Za-z0-9@._/:*-]*$"
148
+ "pattern": "^[@._/:*-]*[A-Za-z0-9][A-Za-z0-9@._/:*-]*$"
149
149
  }
150
150
  },
151
151
  "pypi": {
@@ -155,7 +155,7 @@
155
155
  "type": "string",
156
156
  "minLength": 1,
157
157
  "maxLength": 214,
158
- "pattern": "^[A-Za-z0-9@._/:*-]*[A-Za-z0-9][A-Za-z0-9@._/:*-]*$"
158
+ "pattern": "^[@._/:*-]*[A-Za-z0-9][A-Za-z0-9@._/:*-]*$"
159
159
  }
160
160
  },
161
161
  "gem": {
@@ -165,7 +165,7 @@
165
165
  "type": "string",
166
166
  "minLength": 1,
167
167
  "maxLength": 214,
168
- "pattern": "^[A-Za-z0-9@._/:*-]*[A-Za-z0-9][A-Za-z0-9@._/:*-]*$"
168
+ "pattern": "^[@._/:*-]*[A-Za-z0-9][A-Za-z0-9@._/:*-]*$"
169
169
  }
170
170
  }
171
171
  },
@@ -317,7 +317,7 @@
317
317
  "type": "string",
318
318
  "minLength": 1,
319
319
  "maxLength": 214,
320
- "pattern": "^[A-Za-z0-9@._/:*-]*[A-Za-z0-9][A-Za-z0-9@._/:*-]*$"
320
+ "pattern": "^[@._/:*-]*[A-Za-z0-9][A-Za-z0-9@._/:*-]*$"
321
321
  }
322
322
  },
323
323
  "pypi": {
@@ -327,7 +327,7 @@
327
327
  "type": "string",
328
328
  "minLength": 1,
329
329
  "maxLength": 214,
330
- "pattern": "^[A-Za-z0-9@._/:*-]*[A-Za-z0-9][A-Za-z0-9@._/:*-]*$"
330
+ "pattern": "^[@._/:*-]*[A-Za-z0-9][A-Za-z0-9@._/:*-]*$"
331
331
  }
332
332
  },
333
333
  "gem": {
@@ -337,7 +337,7 @@
337
337
  "type": "string",
338
338
  "minLength": 1,
339
339
  "maxLength": 214,
340
- "pattern": "^[A-Za-z0-9@._/:*-]*[A-Za-z0-9][A-Za-z0-9@._/:*-]*$"
340
+ "pattern": "^[@._/:*-]*[A-Za-z0-9][A-Za-z0-9@._/:*-]*$"
341
341
  }
342
342
  }
343
343
  },