@eigenpal/cli 0.5.10 → 0.5.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/CHANGELOG.md +6 -0
- package/dist/cli.js +8 -3
- package/dist/skill/examples/hello-world/workflow.yaml +1 -1
- package/dist/skill/reference/workflow-yaml.md +6 -6
- package/dist/templates/blank/workflow.yaml +1 -2
- package/dist/templates/pdf-extraction/workflow.yaml +1 -1
- package/dist/templates/text-classification/workflow.yaml +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @eigenpal/cli
|
|
2
2
|
|
|
3
|
+
## 0.5.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2958f4d: Fix Git-backed source smoke-test polish: hidden `git show` and `git sync` now accept bare agent slugs, and workflow scaffolds use the current `triggerMethods` YAML shape.
|
|
8
|
+
|
|
3
9
|
## 0.5.10
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/cli.js
CHANGED
|
@@ -181738,7 +181738,7 @@ import { fileURLToPath as fileURLToPath6 } from "url";
|
|
|
181738
181738
|
// package.json
|
|
181739
181739
|
var package_default = {
|
|
181740
181740
|
name: "@eigenpal/cli",
|
|
181741
|
-
version: "0.5.
|
|
181741
|
+
version: "0.5.11",
|
|
181742
181742
|
description: "Eigenpal CLI — author and run document workflows from your terminal. Agent-ready.",
|
|
181743
181743
|
keywords: [
|
|
181744
181744
|
"eigenpal",
|
|
@@ -184784,6 +184784,11 @@ function checkRepoVersion(gitRoot, mutation) {
|
|
|
184784
184784
|
function resolvePackagePath(target) {
|
|
184785
184785
|
return target.includes("/") ? SourcePackagePathSchema.parse(target) : dottedPackageNameToPath(DottedPackageNameSchema.parse(target));
|
|
184786
184786
|
}
|
|
184787
|
+
function resolveAgentPackagePath(target) {
|
|
184788
|
+
if (target.includes("/") || target.includes("."))
|
|
184789
|
+
return resolvePackagePath(target);
|
|
184790
|
+
return SourcePackagePathSchema.parse(`agents/${target}`);
|
|
184791
|
+
}
|
|
184787
184792
|
function isAutomationPackagePath(packagePath) {
|
|
184788
184793
|
return packagePath.startsWith("agents/") || packagePath.startsWith("workflows/");
|
|
184789
184794
|
}
|
|
@@ -185129,7 +185134,7 @@ async function list(opts) {
|
|
|
185129
185134
|
}
|
|
185130
185135
|
}
|
|
185131
185136
|
async function show(target, opts) {
|
|
185132
|
-
const packagePath =
|
|
185137
|
+
const packagePath = resolveAgentPackagePath(target);
|
|
185133
185138
|
const slug = packagePath.replace(/^agents\//, "");
|
|
185134
185139
|
const client = new ApiClient(resolveConfig(opts));
|
|
185135
185140
|
const payload = await client.get(`/api/v1/agents/${encodeURIComponent(slug)}`, {
|
|
@@ -185242,7 +185247,7 @@ async function sync(target, opts) {
|
|
|
185242
185247
|
if (target?.includes("@")) {
|
|
185243
185248
|
throw new Error("Sync always uses latest; do not pass a versioned target.");
|
|
185244
185249
|
}
|
|
185245
|
-
const packagePath = target ?
|
|
185250
|
+
const packagePath = target ? resolveAgentPackagePath(target) : context.packagePath;
|
|
185246
185251
|
if (!packagePath) {
|
|
185247
185252
|
throw new Error("Pass an automation target or run sync inside a source package.");
|
|
185248
185253
|
}
|
|
@@ -16,7 +16,7 @@ eigenpal workflow step-type get <type> # JSON Schema for one type's config + o
|
|
|
16
16
|
name: extract-invoices # string, lowercase kebab/snake-case, unique within tenant
|
|
17
17
|
version: 1.0.0 # bare semver `MAJOR.MINOR.PATCH`, no leading `v`
|
|
18
18
|
description: Parse a PDF and extract invoice fields. # string, optional
|
|
19
|
-
triggerMethods: [api] # array, ≥1 entry
|
|
19
|
+
triggerMethods: [{ type: api }] # array, ≥1 entry with type: api | manual | email
|
|
20
20
|
inputs: [...] # array of input definitions (see below)
|
|
21
21
|
steps: [...] # array of steps, executed in topological order
|
|
22
22
|
output: {...} # object — the workflow's return shape
|
|
@@ -36,13 +36,13 @@ folder.
|
|
|
36
36
|
|
|
37
37
|
### `triggerMethods`
|
|
38
38
|
|
|
39
|
-
Required. Each entry adds an invocation surface:
|
|
39
|
+
Required. Each entry is an object that adds an invocation surface:
|
|
40
40
|
|
|
41
|
-
- `api` — the workflow can be called via REST or the CLI's `workflow execution run`
|
|
42
|
-
- `
|
|
43
|
-
- `
|
|
41
|
+
- `{ type: api }` — the workflow can be called via REST or the CLI's `workflow execution run`
|
|
42
|
+
- `{ type: manual }` — the workflow can be started manually
|
|
43
|
+
- `{ type: email, whitelist?: ... }` — inbound email
|
|
44
44
|
|
|
45
|
-
If `api` is missing, `eigenpal workflow execution run`
|
|
45
|
+
If `{ type: api }` is missing, `eigenpal workflow execution run` rejects with a
|
|
46
46
|
403 / "Workflow does not have API trigger enabled."
|
|
47
47
|
|
|
48
48
|
### `inputs`
|
|
@@ -4,9 +4,8 @@ description: Replace this with what your workflow does.
|
|
|
4
4
|
|
|
5
5
|
# `triggerMethods` controls how this workflow can be invoked:
|
|
6
6
|
# - api: workflow can be called via the REST API and CLI
|
|
7
|
-
# - cron: workflow can be scheduled (set `cron` field below)
|
|
8
7
|
triggerMethods:
|
|
9
|
-
- api
|
|
8
|
+
- type: api
|
|
10
9
|
|
|
11
10
|
# `inputs` declares the schema of arguments the workflow accepts. Each entry
|
|
12
11
|
# becomes a top-level key on the call's `triggerInput` object. Use `file: true`
|