@devtune/agentpicks 0.4.9 → 0.4.10
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 +20 -10
- package/package.json +1 -1
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.10
|
|
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.10`. 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.10 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.10",
|
|
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: {
|
|
@@ -35653,7 +35653,10 @@ var SETUPS_DIR = "agentpicks";
|
|
|
35653
35653
|
var EXTENSIONS = [".yaml", ".yml"];
|
|
35654
35654
|
function gitRoot(dir) {
|
|
35655
35655
|
for (let at = (0, import_node_path.resolve)(dir); ; at = (0, import_node_path.dirname)(at)) {
|
|
35656
|
-
|
|
35656
|
+
const git = (0, import_node_fs.statSync)((0, import_node_path.join)(at, ".git"), { throwIfNoEntry: false });
|
|
35657
|
+
if (git?.isFile() || git && (0, import_node_fs.existsSync)((0, import_node_path.join)(at, ".git", "HEAD"))) {
|
|
35658
|
+
return at;
|
|
35659
|
+
}
|
|
35657
35660
|
if ((0, import_node_path.dirname)(at) === at) return null;
|
|
35658
35661
|
}
|
|
35659
35662
|
}
|
|
@@ -80876,14 +80879,16 @@ function signUpUrl(baseUrl = DEFAULT_API_BASE_URL) {
|
|
|
80876
80879
|
}
|
|
80877
80880
|
var AGENT_SETUP_URL = "https://docs.devtune.ai/getting-started/agent-setup";
|
|
80878
80881
|
function apiBaseUrl(env) {
|
|
80879
|
-
const
|
|
80880
|
-
const root = apiRoot(value);
|
|
80882
|
+
const root = usableApiBaseUrl(env);
|
|
80881
80883
|
if (!root)
|
|
80882
80884
|
throw new UsageError(
|
|
80883
|
-
`DEVTUNE_API_BASE_URL must be an HTTPS address ending in /api/v2 (HTTP only on this machine), not ${
|
|
80885
|
+
`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
80886
|
);
|
|
80885
80887
|
return root;
|
|
80886
80888
|
}
|
|
80889
|
+
function usableApiBaseUrl(env) {
|
|
80890
|
+
return apiRoot(env.DEVTUNE_API_BASE_URL || DEFAULT_API_BASE_URL);
|
|
80891
|
+
}
|
|
80887
80892
|
function parseSavedLogin(text3, path) {
|
|
80888
80893
|
let parsed2 = null;
|
|
80889
80894
|
try {
|
|
@@ -85657,7 +85662,9 @@ function eventError(line2) {
|
|
|
85657
85662
|
}
|
|
85658
85663
|
|
|
85659
85664
|
// src/cli/self-run.ts
|
|
85660
|
-
|
|
85665
|
+
function egressIpUrl(apiBaseUrl2) {
|
|
85666
|
+
return apiBaseUrl2 && new URL("/api/public/egress-ip", apiBaseUrl2).href;
|
|
85667
|
+
}
|
|
85661
85668
|
async function selfRun(input2) {
|
|
85662
85669
|
const { test, plan, credentials, repository, log } = input2;
|
|
85663
85670
|
const runId = (0, import_node_crypto9.randomUUID)();
|
|
@@ -85693,7 +85700,7 @@ async function selfRun(input2) {
|
|
|
85693
85700
|
// agent wrote is found by reading all of them; errors and output are redacted here.
|
|
85694
85701
|
redact: (text3, artifact) => artifact ? text3 : redactMessage(text3),
|
|
85695
85702
|
async afterUpload(box) {
|
|
85696
|
-
context.egressIp = await readEgressIp(box);
|
|
85703
|
+
context.egressIp = await readEgressIp(box, input2.egressIpUrl);
|
|
85697
85704
|
for (const endpoint2 of credentials.endpoints) {
|
|
85698
85705
|
const result = await box.exec(
|
|
85699
85706
|
`curl --noproxy '*' --globoff --head --silent --show-error --output /dev/null --max-time 10 --url ${shellQuote(new URL(endpoint2.url).origin)}`,
|
|
@@ -85810,9 +85817,10 @@ async function selfRun(input2) {
|
|
|
85810
85817
|
agentError: []
|
|
85811
85818
|
};
|
|
85812
85819
|
}
|
|
85813
|
-
async function readEgressIp(box) {
|
|
85820
|
+
async function readEgressIp(box, url2) {
|
|
85821
|
+
if (!url2) return null;
|
|
85814
85822
|
try {
|
|
85815
|
-
const r = await box.exec(`curl -fsS --max-time 10 ${
|
|
85823
|
+
const r = await box.exec(`curl -fsS --max-time 10 ${shellQuote(url2)}`, {
|
|
85816
85824
|
timeoutSec: 20
|
|
85817
85825
|
});
|
|
85818
85826
|
const ip = r.stdout.trim();
|
|
@@ -86145,6 +86153,7 @@ async function askLine(question) {
|
|
|
86145
86153
|
async function runPlan(given, ctx, link) {
|
|
86146
86154
|
const repository = given.repo === void 0 ? void 0 : readRepository(given.repo, given.ref);
|
|
86147
86155
|
const target = given.upload ? devtuneTarget(ctx.io) : null;
|
|
86156
|
+
const egressIpLookup = egressIpUrl(usableApiBaseUrl(ctx.io.env));
|
|
86148
86157
|
if (target && repository && repository.remoteUrl === null)
|
|
86149
86158
|
throw new RepositoryRemoteError(
|
|
86150
86159
|
`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 +86246,8 @@ async function runPlan(given, ctx, link) {
|
|
|
86237
86246
|
runner: RUNNER,
|
|
86238
86247
|
host: { os: ctx.io.platform, arch: ctx.io.arch },
|
|
86239
86248
|
platform,
|
|
86240
|
-
log: ctx.out
|
|
86249
|
+
log: ctx.out,
|
|
86250
|
+
egressIpUrl: egressIpLookup
|
|
86241
86251
|
});
|
|
86242
86252
|
for (const line2 of describeOutcome(outcome)) ctx.out(line2);
|
|
86243
86253
|
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.10",
|
|
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": {
|