@devtune/agentpicks 0.4.5 → 0.4.7

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.
Files changed (3) hide show
  1. package/README.md +13 -6
  2. package/dist/cli.js +649 -275
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -154,9 +154,10 @@ A setup is what you test, kept as a YAML file in your repository: one file per s
154
154
  ```sh
155
155
  agentpicks init
156
156
  agentpicks init --yes
157
+ agentpicks init --category authentication --tool clerk --competitors authjs,okta --stack nextjs --agent claude-code --name auth --yes
157
158
  ```
158
159
 
159
- `agentpicks init` writes a setup file from a few questions. Each shows its default in brackets, and Enter takes it:
160
+ `agentpicks init` writes a setup file from a few questions. Each shows its default in brackets, and Enter takes it. Categories, a category's tools and stacks are listed numbered: answer with a number or a key, and give competitors and stacks as a comma list that may hold ranges, such as `2, 5-8`.
160
161
 
161
162
  - **Job**: a built-in category, which the file inherits with `from:`, or a job line of your own. The default is the category of your tool.
162
163
  - **Requests**, for a job of your own: the add request a run asks, the recommend request `push` saves with it, and a hosted request or none.
@@ -168,9 +169,15 @@ agentpicks init --yes
168
169
 
169
170
  For a custom setup, run `agentpicks push <setup>` before running it with uploads.
170
171
 
172
+ Each question also has a flag, which takes keys, never list numbers: `--category <category>` or `--job <line>`, `--tool <tool>` or `none`, `--competitors <tool>,<tool>` or `all`, `--repo .` or `--stack <stack>`, `--agent <agent>` or `any`, `--runs <n>` and `--name <name>`. `--stack` and `--agent` repeat, or take a comma list. `init` asks only what the flags leave, and refuses a flag value that doesn't read, naming the flag. A job line's requests and tools have no flags: answer them on a terminal or, signed in, take DevTune's drafts with `--yes`. Without a sign-in, type them on a terminal, or have your coding agent write the file against `agentpicks schema` and check it with `agentpicks validate`.
173
+
174
+ `agentpicks catalogue` lists the category, tool and stack keys the flags take: every category and the stacks a job line can run in. `agentpicks catalogue <category>` lists the category's tool keys and the stacks it runs in. `--json` prints either as one JSON object.
175
+
176
+ After writing a category setup, `init` prints the command that writes the same setup in another repository, such as `To write the same setup in another repository: agentpicks init --category error-tracking --tool sentry --repo . --agent claude-code --name error-tracking --yes`.
177
+
171
178
  Signed in with `agentpicks login`, or with `DEVTUNE_API_KEY` and `DEVTUNE_PROJECT_ID` set, a job of your own is drafted by DevTune: its requests, its competitors, and each tool's packages and config names. Drafts count against your project's hourly draft allowance. If DevTune refuses a draft or can't be reached, `init` prints one warning and asks for the rest itself.
172
179
 
173
- `init` checks the file as `validate` does before writing it; on a terminal it asks again until the file passes. It won't replace a setup of the same name without `--force`. `--yes` takes every default without asking, and fails, naming what it couldn't detect, when there's no default for the job or where to test. Off a terminal, `init` needs `--yes`.
180
+ `init` checks the file as `validate` does before writing it. On a terminal it asks again for a typed answer until the file passes; a flag's value, or a default `--yes` took, that fails is refused instead, naming the problem. It won't replace a setup of the same name without `--force`. `--yes` takes every default without asking, and fails, naming what it couldn't detect, when there's no default for the job or where to test. Off a terminal, a question no flag answers takes its default with `--yes`, where it has one; without `--yes`, `init` stops at it and names its flag. Off a terminal, a job line needs `--yes`.
174
181
 
175
182
  `agentpicks/error-tracking.yaml` tests the built-in error tracking category:
176
183
 
@@ -253,7 +260,7 @@ agentpicks run add-feature-flags
253
260
 
254
261
  `agentpicks pull` writes each of the project's DevTune setups to `agentpicks/<name>.yaml`, or into the file already linked to it, with its `id` and `synced`; `pull <setup>` writes one. It leaves a file in sync alone, and refuses to replace a file with changes not yet pushed, or an unlinked file of that name, unless you pass `--force`. A setup's name is its `from` category for an unedited copy of one, else its job line in lowercase with dashes, cut at a word to at most 30 characters.
255
262
 
256
- `agentpicks push` saves every setup file to DevTune, and `push <setup>` one. A new file becomes a new DevTune setup, and push writes its `id` and `synced` into the file. A linked file in sync sends nothing. If the DevTune setup changed since the file last saw it, push refuses with `setup_changed` and saves nothing: pull it, apply your changes again, and push. A setup `from` a category saves as the project's setup of that category, its tools by key; a setup without `from` saves as a job. To add your own tool to a category copy, add it in the DevTune app, then run `agentpicks pull`: pull writes it as a full entry, and push refuses a full entry DevTune doesn't hold as written. DevTune doesn't send the signals of its catalogue's tools, so pull writes a catalogue tool by its key, in a job as in a copy, and push sends the key for DevTune to fill in its signals. A job can name, by key, any tool of a category DevTune publishes; a copy names its category's tools, and another only once it is added to the copy in the DevTune app and pulled. What a file can't say, such as agent models and a job's building blocks, push sends as DevTune holds it. For a new file with `repo`, push detects the repository's stacks from its manifests and lockfiles and saves those to DevTune. The file keeps `repo`, so `run <setup>` still tests your repository. If no supported stack is detected, replace `repo` with `stacks` before pushing and pass `--repo` when running. A linked file with `repo` keeps the stacks DevTune already holds.
263
+ `agentpicks push` saves every setup file to DevTune, and `push <setup>` one. A new file becomes a new DevTune setup, and push writes its `id` and `synced` into the file. A linked file in sync sends nothing. If the DevTune setup changed since the file last saw it, push refuses with `setup_changed` and saves nothing: pull it, apply your changes again, and push. A setup `from` a category saves as the project's setup of that category. Adding or editing a full entry (`key`, `name` and `signals`) for a tool outside DevTune's catalogue, or adding a catalogue tool by key outside the category, saves the category's copy with those tools. Use catalogue keys alone; a full entry with edited catalogue signals is refused. A tool from DevTune's catalogue goes by key alone: `pull` writes it that way, and DevTune fills in its signals when you push. A job or copy can name, by key, any tool of a category DevTune publishes. When adding or editing tools this way, keep `requests.add` and `requests.recommend` as text and `requests.improve` at its inherited or pulled value. Push the tools first, then push any supported request omissions or improve changes separately; `requests.hosted: null` can be saved with the tools. What a file can't say, such as agent models and a job's building blocks, push keeps as DevTune holds it. For a new file with `repo`, push detects the repository's stacks from its manifests and lockfiles and saves those to DevTune. The file keeps `repo`, so `run <setup>` still tests your repository. If no supported stack is detected, replace `repo` with `stacks` before pushing and pass `--repo` when running. A linked file with `repo` keeps the stacks DevTune already holds.
257
264
 
258
265
  `agentpicks run <name>` also runs a DevTune setup that has no file here, by the name `list` shows, and its runs upload under that setup. A job, or a copy that asks an add request of its own, is refused before Docker starts: anyone who can edit the setup in DevTune could change that request, and the agent runs it with your keys. `agentpicks pull` it and run the file.
259
266
 
@@ -281,7 +288,7 @@ jobs:
281
288
  steps:
282
289
  - uses: actions/checkout@v5
283
290
  - run: npm install -g @anthropic-ai/claude-code@2.1.323
284
- - uses: devtunehq/agentpicks@v0.4.5
291
+ - uses: devtunehq/agentpicks@v0.4.7
285
292
  with:
286
293
  setup: agentpicks/error-tracking.yaml
287
294
  agent: claude-code
@@ -295,7 +302,7 @@ jobs:
295
302
 
296
303
  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.
297
304
 
298
- Pin a release tag, such as `v0.4.5`. 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.
305
+ Pin a release tag, such as `v0.4.7`. 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.
299
306
 
300
307
  | Input | Passed as |
301
308
  |---|---|
@@ -336,7 +343,7 @@ Install Docker, Node.js 20 or later and the agent, set `DEVTUNE_API_KEY`, `DEVTU
336
343
 
337
344
  ```sh
338
345
  npm install -g @anthropic-ai/claude-code@2.1.323
339
- npx --yes @devtune/agentpicks@0.4.5 run error-tracking --agent claude-code
346
+ npx --yes @devtune/agentpicks@0.4.7 run error-tracking --agent claude-code
340
347
  ```
341
348
 
342
349
  ## The bundle