@devtune/agentpicks 0.4.0 → 0.4.2
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 +9 -9
- package/dist/cli.js +24497 -24325
- package/package.json +1 -1
- package/schema/setup.v1.json +10 -10
package/README.md
CHANGED
|
@@ -195,11 +195,11 @@ runs: 3
|
|
|
195
195
|
|
|
196
196
|
| Field | |
|
|
197
197
|
|---|---|
|
|
198
|
-
| `job` | The job line, which labels the setup; a run asks `requests.add`. Required without `from`. |
|
|
198
|
+
| `job` | The job line, one line of up to 300 characters, which labels the setup; a run asks `requests.add`. A new job line is at least 8 characters; a file linked to a DevTune job may keep the shorter line that job is saved with. Required without `from`. |
|
|
199
199
|
| `from` | A built-in category, as `--category` takes it. The setup inherits its job, requests and tools. |
|
|
200
200
|
| `requests` | One request per intent: `add`, `recommend`, `hosted` and `improve`, each one line of 8 to 300 characters that names none of the setup's own tools. A run asks `add`, which a setup without `from` must give. With `from`, `null` leaves out the category's request of that intent, except `add`. |
|
|
201
|
-
| `tools` | `own`, your tool, and `competitors`. Each is the key of a tool in DevTune's catalogue (`sentry`), or a full entry: `key`, `name` and `signals`, and optionally `domain`. A full entry's key can't be one of the `from` category's. A setup without `from` needs at least one tool and
|
|
202
|
-
| `signals` | How a tool is recognised: `packages` by `npm`, `pypi` or `gem` (a name ending in `*` matches every package that starts with the text before the `*`, and one ending in `/` every package under that scope or path, so `@acme/` matches `@acme/flags`), `configNames` (environment variable names or API hosts, not starting with `-`), and `importPatterns`, `configFiles`, `configPatterns`, `commandPatterns`, `selfHosted` (patterns of up to 200 characters that RE2 compiles), `aliases`, `brandDomains`, `frameworkBuiltIn`, `yieldsTo` and `receivesFrom`.
|
|
201
|
+
| `tools` | `own`, your tool, and `competitors`. Each is the key of a tool in DevTune's catalogue (`sentry`), or a full entry: `key`, `name` and `signals`, and optionally `domain`. A full entry's key can't be one of the `from` category's. Your setup lists up to six `competitors`; a file pulled from one of DevTune's public boards may list every tool the board ranks. A setup without `from` needs at least one tool and holds at most seven; a setup `from` a category holds its category's tools plus seven. A setup from a category that names a catalogue tool its category doesn't measure is custom. |
|
|
202
|
+
| `signals` | How a tool is recognised: `packages` by `npm`, `pypi` or `gem` (a name ending in `*` matches every package that starts with the text before the `*`, and one ending in `/` every package under that scope or path, so `@acme/` matches `@acme/flags`), `configNames` (environment variable names or API hosts, not starting with `-`), and `importPatterns`, `configFiles`, `configPatterns`, `commandPatterns`, `selfHosted` (patterns of up to 200 characters that RE2 compiles), `aliases`, `brandDomains`, `frameworkBuiltIn`, `yieldsTo` and `receivesFrom`. A tool can give only `aliases` and `brandDomains`: DevTune recognizes it when an agent names it as its pick, and the early stop doesn't watch for it. Tools can't yield to each other in a loop. |
|
|
203
203
|
| `stacks` | Starter apps to test in, as `--stack` takes them, each once. A setup without `from` can't use `nextjs-github-actions`, `fastapi-aws` or `rails-own-servers-eu`, which run in some categories only or carry a deploy context. |
|
|
204
204
|
| `repo` | Your repository, in place of `stacks`: a path relative to the repository root, such as `.`, or `path` and `ref`. |
|
|
205
205
|
| `agents` | `claude-code`, `codex`, `opencode` or `pi`, each once and installed on the machine that runs it. Without `agents`, the one agent installed runs. |
|
|
@@ -215,7 +215,7 @@ agentpicks run agentpicks/feature-flags.yaml --agent codex --runs 1 --no-upload
|
|
|
215
215
|
agentpicks run
|
|
216
216
|
```
|
|
217
217
|
|
|
218
|
-
`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, so a setup whose tools are all
|
|
218
|
+
`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
219
|
|
|
220
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.
|
|
221
221
|
|
|
@@ -225,7 +225,7 @@ agentpicks validate
|
|
|
225
225
|
agentpicks validate feature-flags agentpicks/error-tracking.yaml
|
|
226
226
|
```
|
|
227
227
|
|
|
228
|
-
`agentpicks list` prints each setup's name, job, `from`, stacks or repo, agents and runs, and flags a file that fails its checks. Signed in, it also lists the project's DevTune setups, with where each setup is (`local`, `DevTune` or `both`) and, for a linked file, whether it is in sync or which side changed. `agentpicks validate` checks every setup file, or the ones named, against the schema and the catalogue: a known `from`, tool keys in DevTune's catalogue, stacks it runs in, known agents,
|
|
228
|
+
`agentpicks list` prints each setup's name, job, `from`, stacks or repo, agents and runs, and flags a file that fails its checks. Signed in, it also lists the project's DevTune setups, with where each setup is (`local`, `DevTune` or `both`) and, for a linked file, whether it is in sync or which side changed. When the table is wider than the terminal, it prints each setup as a block, one line per field; piped output is always the table. `agentpicks validate` checks every setup file, or the ones named, against the schema and the catalogue: a known `from`, tool keys in DevTune's catalogue, stacks it runs in, known agents, and the limits above. With no setup named, two files with one name, such as `x.yaml` and `x.yml`, both fail; a file named by path is checked alone, as `run <path>` runs it. It prints each problem as `file: field: fix` and exits 1 if any file fails, so CI can run it.
|
|
229
229
|
|
|
230
230
|
### DevTune setups
|
|
231
231
|
|
|
@@ -236,7 +236,7 @@ agentpicks push feature-flags
|
|
|
236
236
|
agentpicks run add-feature-flags
|
|
237
237
|
```
|
|
238
238
|
|
|
239
|
-
`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.
|
|
239
|
+
`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.
|
|
240
240
|
|
|
241
241
|
`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.
|
|
242
242
|
|
|
@@ -266,7 +266,7 @@ jobs:
|
|
|
266
266
|
steps:
|
|
267
267
|
- uses: actions/checkout@v5
|
|
268
268
|
- run: npm install -g @anthropic-ai/claude-code@2.1.323
|
|
269
|
-
- uses: devtunehq/agentpicks@v0.4.
|
|
269
|
+
- uses: devtunehq/agentpicks@v0.4.2
|
|
270
270
|
with:
|
|
271
271
|
setup: agentpicks/error-tracking.yaml
|
|
272
272
|
agent: claude-code
|
|
@@ -280,7 +280,7 @@ jobs:
|
|
|
280
280
|
|
|
281
281
|
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
282
|
|
|
283
|
-
Pin a release tag, such as `v0.4.
|
|
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.
|
|
284
284
|
|
|
285
285
|
| Input | Passed as |
|
|
286
286
|
|---|---|
|
|
@@ -321,7 +321,7 @@ Install Docker, Node.js 20 or later and the agent, set `DEVTUNE_API_KEY`, `DEVTU
|
|
|
321
321
|
|
|
322
322
|
```sh
|
|
323
323
|
npm install -g @anthropic-ai/claude-code@2.1.323
|
|
324
|
-
npx --yes @devtune/agentpicks@0.4.
|
|
324
|
+
npx --yes @devtune/agentpicks@0.4.2 run error-tracking --agent claude-code
|
|
325
325
|
```
|
|
326
326
|
|
|
327
327
|
## The bundle
|