@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 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.10",
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 = resolvePackagePath(target);
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 ? resolvePackagePath(target) : context.packagePath;
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
  }
@@ -3,7 +3,7 @@ version: 1.0.0
3
3
  description: Smallest possible workflow — echoes the input back through transform.script.
4
4
 
5
5
  triggerMethods:
6
- - api
6
+ - type: api
7
7
 
8
8
  inputs:
9
9
  - name: text
@@ -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 from: api | cron | email
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
- - `cron` — scheduled. Add a sibling `cron: { schedule: "0 9 * * *", timezone: "UTC" }`
43
- - `email` — inbound email. Add a sibling `email: { subject?: ..., aliases?: [...] }`
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` and `workflow run` reject with a
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`
@@ -3,7 +3,7 @@ version: 1.0.0
3
3
  description: Parse a PDF and extract structured fields with an LLM.
4
4
 
5
5
  triggerMethods:
6
- - api
6
+ - type: api
7
7
 
8
8
  inputs:
9
9
  - name: document
@@ -3,7 +3,7 @@ version: 1.0.0
3
3
  description: Classify free-form text into one of a fixed set of labels.
4
4
 
5
5
  triggerMethods:
6
- - api
6
+ - type: api
7
7
 
8
8
  inputs:
9
9
  - name: text
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eigenpal/cli",
3
- "version": "0.5.10",
3
+ "version": "0.5.11",
4
4
  "description": "Eigenpal CLI — author and run document workflows from your terminal. Agent-ready.",
5
5
  "keywords": [
6
6
  "eigenpal",