@devtune/agentpicks 0.4.9 → 0.4.11
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 +4 -4
- package/dist/cli.js +25 -12
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -290,7 +290,7 @@ jobs:
|
|
|
290
290
|
steps:
|
|
291
291
|
- uses: actions/checkout@v5
|
|
292
292
|
- run: npm install -g @anthropic-ai/claude-code@2.1.323
|
|
293
|
-
- uses: devtunehq/agentpicks@v0.4.
|
|
293
|
+
- uses: devtunehq/agentpicks@v0.4.11
|
|
294
294
|
with:
|
|
295
295
|
setup: agentpicks/error-tracking.yaml
|
|
296
296
|
agent: claude-code
|
|
@@ -304,7 +304,7 @@ jobs:
|
|
|
304
304
|
|
|
305
305
|
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.
|
|
306
306
|
|
|
307
|
-
Pin a release tag, such as `v0.4.
|
|
307
|
+
Pin a release tag, such as `v0.4.11`. 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.
|
|
308
308
|
|
|
309
309
|
| Input | Passed as |
|
|
310
310
|
|---|---|
|
|
@@ -345,7 +345,7 @@ Install Docker, Node.js 20 or later and the agent, set `DEVTUNE_API_KEY`, `DEVTU
|
|
|
345
345
|
|
|
346
346
|
```sh
|
|
347
347
|
npm install -g @anthropic-ai/claude-code@2.1.323
|
|
348
|
-
npx --yes @devtune/agentpicks@0.4.
|
|
348
|
+
npx --yes @devtune/agentpicks@0.4.11 run error-tracking --agent claude-code
|
|
349
349
|
```
|
|
350
350
|
|
|
351
351
|
## The bundle
|
|
@@ -358,7 +358,7 @@ redactions.json what redaction removed, per artifact
|
|
|
358
358
|
artifacts/ what the run captured, already redacted
|
|
359
359
|
```
|
|
360
360
|
|
|
361
|
-
`manifest.json` holds `bundleVersion` (1), the generated `runId`, the runner's version, the agent's kind, version and model, the host's OS and architecture, the image digest, the container's egress IP, the stack with its starter and lock digest or the repository with its remote address (`origin`, or the first remote) as host and path alone, without user, password, query, fragment or `transport::` prefix, or `null` with no remote, a local path, or an address it can't read with confidence, and its full commit id, the category (`setup:<name>` for a custom setup), request intent (`add`) and exact prompt, start and end times, and each artifact's size and SHA-256. An artifact that analysis doesn't read and that is over DevTune's upload limit (50 MiB) is trimmed to whole lines within it, and the manifest records its size before and after under `truncation`: `mitm.log` and `agent.err` keep their end, and the rest keep their start. The artifacts analysis reads (the transcript, `requests.jsonl`, the diff and the source files, and the package and manifest files before and after) are never trimmed, so a result is never drawn from part of a run; over the limit, `agentpicks upload` refuses the bundle and names the limit. The egress IP is read inside the container from `https://
|
|
361
|
+
`manifest.json` holds `bundleVersion` (1), the generated `runId`, the runner's version, the agent's kind, version and model, the host's OS and architecture, the image digest, the container's egress IP, the stack with its starter and lock digest or the repository with its remote address (`origin`, or the first remote) as host and path alone, without user, password, query, fragment or `transport::` prefix, or `null` with no remote, a local path, or an address it can't read with confidence, and its full commit id, the category (`setup:<name>` for a custom setup), request intent (`add`) and exact prompt, start and end times, and each artifact's size and SHA-256. An artifact that analysis doesn't read and that is over DevTune's upload limit (50 MiB) is trimmed to whole lines within it, and the manifest records its size before and after under `truncation`: `mitm.log` and `agent.err` keep their end, and the rest keep their start. The artifacts analysis reads (the transcript, `requests.jsonl`, the diff and the source files, and the package and manifest files before and after) are never trimmed, so a result is never drawn from part of a run; over the limit, `agentpicks upload` refuses the bundle and names the limit. The egress IP is read inside the container before setup from DevTune's `/api/public/egress-ip`, at the origin of `DEVTUNE_API_BASE_URL` (`https://devtune.ai` by default), which answers with the caller's address as plain text; when it can't be read it is `null`.
|
|
362
362
|
|
|
363
363
|
The artifacts are those a DevTune managed run captures: `transcript.jsonl`, `diff.patch`, `requests.jsonl` (every request the agent's traffic made through the logging proxy), `llm-usage.jsonl`, `deps.txt`, the manifests and lockfiles before and after, `meta.json` (the agent's exit code) and `earlystop.json`, among others.
|
|
364
364
|
|
package/dist/cli.js
CHANGED
|
@@ -7375,7 +7375,7 @@ var import_promises5 = require("node:readline/promises");
|
|
|
7375
7375
|
// package.json
|
|
7376
7376
|
var package_default = {
|
|
7377
7377
|
name: "@devtune/agentpicks",
|
|
7378
|
-
version: "0.4.
|
|
7378
|
+
version: "0.4.11",
|
|
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: {
|
|
@@ -7383,8 +7383,11 @@ var package_default = {
|
|
|
7383
7383
|
},
|
|
7384
7384
|
repository: {
|
|
7385
7385
|
type: "git",
|
|
7386
|
-
url: "https://github.com/devtunehq/
|
|
7387
|
-
|
|
7386
|
+
url: "git+https://github.com/devtunehq/agentpicks.git"
|
|
7387
|
+
},
|
|
7388
|
+
homepage: "https://github.com/devtunehq/agentpicks#readme",
|
|
7389
|
+
bugs: {
|
|
7390
|
+
url: "https://github.com/devtunehq/agentpicks/issues"
|
|
7388
7391
|
},
|
|
7389
7392
|
bin: {
|
|
7390
7393
|
agentpicks: "./dist/cli.js"
|
|
@@ -35653,7 +35656,10 @@ var SETUPS_DIR = "agentpicks";
|
|
|
35653
35656
|
var EXTENSIONS = [".yaml", ".yml"];
|
|
35654
35657
|
function gitRoot(dir) {
|
|
35655
35658
|
for (let at = (0, import_node_path.resolve)(dir); ; at = (0, import_node_path.dirname)(at)) {
|
|
35656
|
-
|
|
35659
|
+
const git = (0, import_node_fs.statSync)((0, import_node_path.join)(at, ".git"), { throwIfNoEntry: false });
|
|
35660
|
+
if (git?.isFile() || git && (0, import_node_fs.existsSync)((0, import_node_path.join)(at, ".git", "HEAD"))) {
|
|
35661
|
+
return at;
|
|
35662
|
+
}
|
|
35657
35663
|
if ((0, import_node_path.dirname)(at) === at) return null;
|
|
35658
35664
|
}
|
|
35659
35665
|
}
|
|
@@ -80876,14 +80882,16 @@ function signUpUrl(baseUrl = DEFAULT_API_BASE_URL) {
|
|
|
80876
80882
|
}
|
|
80877
80883
|
var AGENT_SETUP_URL = "https://docs.devtune.ai/getting-started/agent-setup";
|
|
80878
80884
|
function apiBaseUrl(env) {
|
|
80879
|
-
const
|
|
80880
|
-
const root = apiRoot(value);
|
|
80885
|
+
const root = usableApiBaseUrl(env);
|
|
80881
80886
|
if (!root)
|
|
80882
80887
|
throw new UsageError(
|
|
80883
|
-
`DEVTUNE_API_BASE_URL must be an HTTPS address ending in /api/v2 (HTTP only on this machine), not ${
|
|
80888
|
+
`DEVTUNE_API_BASE_URL must be an HTTPS address ending in /api/v2 (HTTP only on this machine), not ${env.DEVTUNE_API_BASE_URL}.`
|
|
80884
80889
|
);
|
|
80885
80890
|
return root;
|
|
80886
80891
|
}
|
|
80892
|
+
function usableApiBaseUrl(env) {
|
|
80893
|
+
return apiRoot(env.DEVTUNE_API_BASE_URL || DEFAULT_API_BASE_URL);
|
|
80894
|
+
}
|
|
80887
80895
|
function parseSavedLogin(text3, path) {
|
|
80888
80896
|
let parsed2 = null;
|
|
80889
80897
|
try {
|
|
@@ -85657,7 +85665,9 @@ function eventError(line2) {
|
|
|
85657
85665
|
}
|
|
85658
85666
|
|
|
85659
85667
|
// src/cli/self-run.ts
|
|
85660
|
-
|
|
85668
|
+
function egressIpUrl(apiBaseUrl2) {
|
|
85669
|
+
return apiBaseUrl2 && new URL("/api/public/egress-ip", apiBaseUrl2).href;
|
|
85670
|
+
}
|
|
85661
85671
|
async function selfRun(input2) {
|
|
85662
85672
|
const { test, plan, credentials, repository, log } = input2;
|
|
85663
85673
|
const runId = (0, import_node_crypto9.randomUUID)();
|
|
@@ -85693,7 +85703,7 @@ async function selfRun(input2) {
|
|
|
85693
85703
|
// agent wrote is found by reading all of them; errors and output are redacted here.
|
|
85694
85704
|
redact: (text3, artifact) => artifact ? text3 : redactMessage(text3),
|
|
85695
85705
|
async afterUpload(box) {
|
|
85696
|
-
context.egressIp = await readEgressIp(box);
|
|
85706
|
+
context.egressIp = await readEgressIp(box, input2.egressIpUrl);
|
|
85697
85707
|
for (const endpoint2 of credentials.endpoints) {
|
|
85698
85708
|
const result = await box.exec(
|
|
85699
85709
|
`curl --noproxy '*' --globoff --head --silent --show-error --output /dev/null --max-time 10 --url ${shellQuote(new URL(endpoint2.url).origin)}`,
|
|
@@ -85810,9 +85820,10 @@ async function selfRun(input2) {
|
|
|
85810
85820
|
agentError: []
|
|
85811
85821
|
};
|
|
85812
85822
|
}
|
|
85813
|
-
async function readEgressIp(box) {
|
|
85823
|
+
async function readEgressIp(box, url2) {
|
|
85824
|
+
if (!url2) return null;
|
|
85814
85825
|
try {
|
|
85815
|
-
const r = await box.exec(`curl -fsS --max-time 10 ${
|
|
85826
|
+
const r = await box.exec(`curl -fsS --max-time 10 ${shellQuote(url2)}`, {
|
|
85816
85827
|
timeoutSec: 20
|
|
85817
85828
|
});
|
|
85818
85829
|
const ip = r.stdout.trim();
|
|
@@ -86145,6 +86156,7 @@ async function askLine(question) {
|
|
|
86145
86156
|
async function runPlan(given, ctx, link) {
|
|
86146
86157
|
const repository = given.repo === void 0 ? void 0 : readRepository(given.repo, given.ref);
|
|
86147
86158
|
const target = given.upload ? devtuneTarget(ctx.io) : null;
|
|
86159
|
+
const egressIpLookup = egressIpUrl(usableApiBaseUrl(ctx.io.env));
|
|
86148
86160
|
if (target && repository && repository.remoteUrl === null)
|
|
86149
86161
|
throw new RepositoryRemoteError(
|
|
86150
86162
|
`DevTune groups a repository's runs by its remote, and ${repository.root} has none agentpicks can record. Add an origin remote with a network address, or pass --no-upload to keep the bundles on this machine only.`
|
|
@@ -86237,7 +86249,8 @@ async function runPlan(given, ctx, link) {
|
|
|
86237
86249
|
runner: RUNNER,
|
|
86238
86250
|
host: { os: ctx.io.platform, arch: ctx.io.arch },
|
|
86239
86251
|
platform,
|
|
86240
|
-
log: ctx.out
|
|
86252
|
+
log: ctx.out,
|
|
86253
|
+
egressIpUrl: egressIpLookup
|
|
86241
86254
|
});
|
|
86242
86255
|
for (const line2 of describeOutcome(outcome)) ctx.out(line2);
|
|
86243
86256
|
if (!outcome.bundle) continue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devtune/agentpicks",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.11",
|
|
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": {
|
|
@@ -8,8 +8,11 @@
|
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/devtunehq/
|
|
12
|
-
|
|
11
|
+
"url": "git+https://github.com/devtunehq/agentpicks.git"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://github.com/devtunehq/agentpicks#readme",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/devtunehq/agentpicks/issues"
|
|
13
16
|
},
|
|
14
17
|
"bin": {
|
|
15
18
|
"agentpicks": "./dist/cli.js"
|