@devtune/agentpicks 0.4.6 → 0.4.8
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 +13 -6
- package/dist/cli.js +613 -269
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -154,23 +154,30 @@ 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.
|
|
163
164
|
- **Your tool**: a catalogue tool named by your `package.json` name or scope, or your git remote's repository or owner, such as `sentry` from `getsentry/sentry-docs`.
|
|
164
165
|
- **Competitors**: for a category, its tools; for your own job, typed as npm packages.
|
|
165
|
-
- **Where to test**: `repo: .` in a git repository, else the stacks your `package.json` and lockfiles name (`next`, `@tanstack/react-start`, `@sveltejs/kit` and `express`, a pnpm monorepo's apps included, plus FastAPI and Rails).
|
|
166
|
+
- **Where to test**: this repository (`repo`, written `repo: .`), every stack the job runs in (`all`), or stacks by number or range. The default is `repo` in a git repository, else the stacks your `package.json` and lockfiles name (`next`, `@tanstack/react-start`, `@sveltejs/kit` and `express`, a pnpm monorepo's apps included, plus FastAPI and Rails).
|
|
166
167
|
- **Agents**: those installed here that `run` could start now, with their sign-in or key.
|
|
167
168
|
- **Runs** and the setup's **name**.
|
|
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>` or `all`, `--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
|
|
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
|
|
|
@@ -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.
|
|
291
|
+
- uses: devtunehq/agentpicks@v0.4.8
|
|
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.
|
|
305
|
+
Pin a release tag, such as `v0.4.8`. 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.
|
|
346
|
+
npx --yes @devtune/agentpicks@0.4.8 run error-tracking --agent claude-code
|
|
340
347
|
```
|
|
341
348
|
|
|
342
349
|
## The bundle
|