@eigenpal/cli 0.6.1 → 0.6.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/CHANGELOG.md +6 -0
- package/dist/cli.js +8 -4
- package/dist/skill/SKILL.md +10 -4
- package/dist/skill/reference/cli/agents.md +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/cli.js
CHANGED
|
@@ -188719,7 +188719,7 @@ import { fileURLToPath as fileURLToPath6 } from "url";
|
|
|
188719
188719
|
// package.json
|
|
188720
188720
|
var package_default = {
|
|
188721
188721
|
name: "@eigenpal/cli",
|
|
188722
|
-
version: "0.6.
|
|
188722
|
+
version: "0.6.2",
|
|
188723
188723
|
description: "Eigenpal CLI — author and run document workflows from your terminal. Agent-ready.",
|
|
188724
188724
|
keywords: [
|
|
188725
188725
|
"eigenpal",
|
|
@@ -191162,12 +191162,16 @@ function parseAgentTarget(target) {
|
|
|
191162
191162
|
const [rawTarget, rawRef, extra] = target.split("@");
|
|
191163
191163
|
if (extra !== undefined)
|
|
191164
191164
|
throw new Error("Agent target must be <slug>[@ref].");
|
|
191165
|
-
const normalizedTarget = rawTarget.includes(".") ? target : `agents.${rawTarget}${rawRef ? `@${rawRef}` : ""}`;
|
|
191165
|
+
const normalizedTarget = rawTarget.includes(".") ? target : `agents.${rawTarget}${rawRef !== undefined ? `@${rawRef}` : ""}`;
|
|
191166
191166
|
const parsed = parseAutomationTarget(normalizedTarget);
|
|
191167
191167
|
if (parsed.type !== "agents") {
|
|
191168
191168
|
throw new Error("Only agent targets are supported in this release. Use agents.<slug>[@ref].");
|
|
191169
191169
|
}
|
|
191170
|
-
return {
|
|
191170
|
+
return {
|
|
191171
|
+
packageName: parsed.packageName,
|
|
191172
|
+
slug: parsed.slug,
|
|
191173
|
+
sourceRef: rawRef !== undefined ? parsed.ref : undefined
|
|
191174
|
+
};
|
|
191171
191175
|
}
|
|
191172
191176
|
async function runTarget(target, opts) {
|
|
191173
191177
|
const parsed = parseAgentTarget(target);
|
|
@@ -191212,7 +191216,7 @@ function registerRunCommands(agent) {
|
|
|
191212
191216
|
process.stderr.write("`eigenpal agents runs` requires a subcommand. Run `eigenpal agents runs --help`.\n");
|
|
191213
191217
|
process.exit(2);
|
|
191214
191218
|
});
|
|
191215
|
-
const listRunsCmd = addJsonFlag(withPagination(withBaseUrl(runs.command("list <target>")), 50)).description("List runs for an agent target
|
|
191219
|
+
const listRunsCmd = addJsonFlag(withPagination(withBaseUrl(runs.command("list <target>")), 50)).description("List runs for an agent target; unqualified targets include all source refs.").option("--status <status>", "Filter by run status").option("--include <items>", "Comma-separated include list").option("--compact", "Render compact run rows").option("--sort <field>", "Sort field").option("--order <asc|desc>", "Sort order");
|
|
191216
191220
|
listRunsCmd.action(action(listRunsTarget));
|
|
191217
191221
|
addJsonFlag(withBaseUrl(runs.command("get <run-id>"))).description("Get one agent run.").option("--include <parts>", "Comma-separated extra parts: feedback,expected,files,trace,issues", "feedback").action(action(getRun));
|
|
191218
191222
|
addJsonFlag(withBaseUrl(runs.command("rerun <run-id>"))).description("Create a new run from a previous run's stored input snapshot.").option("--wait", "Poll until the rerun reaches a terminal status").option("--interval <seconds>", "Polling interval in seconds", intArg, 2).option("--max-wait <seconds>", "Maximum wait before exiting 2", intArg, 1800).action(action(rerunRun));
|
package/dist/skill/SKILL.md
CHANGED
|
@@ -148,7 +148,7 @@ eigenpal agents save -m "Improve invoice extraction prompts"
|
|
|
148
148
|
SOURCE_REF="$(eigenpal git -- rev-parse HEAD)"
|
|
149
149
|
eigenpal agents run agents.<slug>@"$SOURCE_REF" --input-json '{"text":"hello"}' --wait
|
|
150
150
|
eigenpal agents run agents.<slug>@"$SOURCE_REF" --example example-name --wait
|
|
151
|
-
eigenpal agents runs get <agent-execution-id> --json
|
|
151
|
+
eigenpal agents runs get <agent-execution-id> --json | jq '.run'
|
|
152
152
|
eigenpal agents runs trace <agent-execution-id> --out ./trace.jsonl
|
|
153
153
|
|
|
154
154
|
# 5. Release to main + tag when ready to ship (-m optional; defaults to "Release <packagePath>").
|
|
@@ -192,11 +192,13 @@ Run a persisted example with `eigenpal agents run agents.<slug>@<ref> --example
|
|
|
192
192
|
### Debug Agent Runs
|
|
193
193
|
|
|
194
194
|
```bash
|
|
195
|
+
eigenpal agents runs list agents.<slug> --compact
|
|
195
196
|
eigenpal agents runs list agents.<slug> --status failed --compact
|
|
196
197
|
eigenpal agents runs pull <agent-execution-id> --include all --out ./review/<agent-execution-id>
|
|
197
198
|
eigenpal agents runs trace <agent-execution-id> --out ./review/<agent-execution-id>/trace.jsonl
|
|
198
199
|
eigenpal agents runs rerun <agent-execution-id> --wait
|
|
199
200
|
eigenpal agents runs compare <source-agent-execution-id> <new-agent-execution-id> \
|
|
201
|
+
--baseline \
|
|
200
202
|
--normalize-dates
|
|
201
203
|
|
|
202
204
|
eigenpal agents runs feedback resolve <source-agent-execution-id> \
|
|
@@ -205,7 +207,10 @@ eigenpal agents runs feedback resolve <source-agent-execution-id> \
|
|
|
205
207
|
|
|
206
208
|
Agent commands commonly accept `<agent-id-or-slug>`. Agent execution commands
|
|
207
209
|
take an agent execution id. Execution pulls and comparisons write review
|
|
208
|
-
artifacts under `.eigenpal/artifacts/...` by default.
|
|
210
|
+
artifacts under `.eigenpal/artifacts/...` by default. Unqualified run-list
|
|
211
|
+
targets show all source refs; add `@<ref>` only when you want a specific
|
|
212
|
+
release, branch, tag, semver range, or commit. `runs list --json` returns
|
|
213
|
+
`{ runs, total, limit, offset }`; `runs get --json` returns `{ run }`.
|
|
209
214
|
|
|
210
215
|
Root `eigenpal run` / `eigenpal runs` and `eigenpal git <cmd>` (for moved subcommands) exit with a deprecation message — use `agents run`, `agents runs list`, and `agents <cmd>` instead.
|
|
211
216
|
|
|
@@ -319,7 +324,7 @@ would change.
|
|
|
319
324
|
```bash
|
|
320
325
|
eigenpal agents runs list <agent-id-or-slug> --status failed --limit 10
|
|
321
326
|
eigenpal agents runs list <agent-id-or-slug> --feedback-rating fail --include feedback,expected
|
|
322
|
-
eigenpal agents runs get <agent-execution-id> --include feedback,expected,files,trace,issues --json
|
|
327
|
+
eigenpal agents runs get <agent-execution-id> --include feedback,expected,files,trace,issues --json | jq '.run'
|
|
323
328
|
eigenpal agents runs pull <agent-execution-id> --include all
|
|
324
329
|
eigenpal agents runs artifacts list <agent-execution-id>
|
|
325
330
|
```
|
|
@@ -378,7 +383,8 @@ script or agent needs to inspect the result with `jq`.
|
|
|
378
383
|
|
|
379
384
|
```bash
|
|
380
385
|
eigenpal workflow execution list <workflow-id> --json | jq '.data[0].id'
|
|
381
|
-
eigenpal agents runs list <agent-id-or-slug> --json | jq '.
|
|
386
|
+
eigenpal agents runs list <agent-id-or-slug> --json | jq '.runs[0].id'
|
|
387
|
+
eigenpal agents runs get <agent-execution-id> --json | jq '.run.id'
|
|
382
388
|
```
|
|
383
389
|
|
|
384
390
|
General exit-code convention:
|
|
@@ -212,7 +212,7 @@ agents
|
|
|
212
212
|
|
|
213
213
|
| Command | Description |
|
|
214
214
|
| -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
|
|
215
|
-
| `eigenpal agents\|agent runs list\|ls [options] <target>` | List runs for an agent target
|
|
215
|
+
| `eigenpal agents\|agent runs list\|ls [options] <target>` | List runs for an agent target; unqualified targets include all source refs. |
|
|
216
216
|
| `eigenpal agents\|agent runs get [options] <run-id>` | Get one agent run. |
|
|
217
217
|
| `eigenpal agents\|agent runs rerun [options] <run-id>` | Create a new run from a previous run's stored input snapshot. |
|
|
218
218
|
| `eigenpal agents\|agent runs pull [options] <run-id>` | Download run feedback, expected artifacts, files, and metadata. |
|
|
@@ -737,7 +737,7 @@ Validate a local dataset directory against the agent input/output schemas.
|
|
|
737
737
|
|
|
738
738
|
### `eigenpal agents|agent runs list|ls [options] <target>`
|
|
739
739
|
|
|
740
|
-
List runs for an agent target
|
|
740
|
+
List runs for an agent target; unqualified targets include all source refs.
|
|
741
741
|
|
|
742
742
|
### Arguments
|
|
743
743
|
|