@eigenpal/cli 0.20.69 → 0.20.71
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 +530 -105
- package/dist/docs-bundle.json +18 -4
- package/dist/skill/SKILL.md +14 -15
- package/package.json +1 -1
package/dist/skill/SKILL.md
CHANGED
|
@@ -323,7 +323,7 @@ eigenpal agents sync agents.<slug>
|
|
|
323
323
|
```
|
|
324
324
|
|
|
325
325
|
Define agents with `createAgent` from `@eigenpal/automations` in `agent.ts`.
|
|
326
|
-
Set `inputSchema`, `outputSchema`, model pins, triggers, and
|
|
326
|
+
Set `inputSchema`, `outputSchema`, model pins, triggers, and imported resources there.
|
|
327
327
|
Schemas accept Zod or raw JSON Schema. Keep instructions in `AGENT.md`.
|
|
328
328
|
Compilation happens in the platform sandbox; never import organization source
|
|
329
329
|
into a local host process. Frozen resumes reuse the run's compiled snapshot.
|
|
@@ -390,16 +390,16 @@ agents/<slug>/templates/<template-slug>/
|
|
|
390
390
|
|
|
391
391
|
```text
|
|
392
392
|
resources/templates/<template-slug>/
|
|
393
|
-
|
|
393
|
+
resource.ts # default export createTemplate, with text content and asset imports
|
|
394
394
|
template.docx # or template.xlsx
|
|
395
395
|
TEMPLATE.md # optional metadata
|
|
396
396
|
```
|
|
397
397
|
|
|
398
398
|
At runtime the agent fills templates with the baked-in **fill-template**
|
|
399
399
|
platform skill (`vars`, then `fill`) — not `transform.template`. Local
|
|
400
|
-
templates resolve by slug under `agent/templates/<slug>/`.
|
|
401
|
-
|
|
402
|
-
|
|
400
|
+
templates resolve by slug under `agent/templates/<slug>/`. Imported shared assets are installed under `agent/.eigenpal-resources/<alias>/`;
|
|
401
|
+
pass the actual asset path to fill-template. Portable template text also works
|
|
402
|
+
in ordinary agents without a sandbox.
|
|
403
403
|
|
|
404
404
|
```bash
|
|
405
405
|
# Add or update a local template, then validate and save.
|
|
@@ -412,22 +412,21 @@ eigenpal agents sync agents.<slug>
|
|
|
412
412
|
|
|
413
413
|
# Shared template: validate, save, and release the package.
|
|
414
414
|
cp ./report.xlsx resources/templates/monthly-report/template.xlsx
|
|
415
|
-
$EDITOR resources/templates/monthly-report/
|
|
415
|
+
$EDITOR resources/templates/monthly-report/resource.ts
|
|
416
416
|
eigenpal agents validate resources/templates/monthly-report
|
|
417
417
|
eigenpal agents save -m "Add monthly report template"
|
|
418
418
|
eigenpal agents release patch resources/templates/monthly-report
|
|
419
419
|
|
|
420
|
-
# Consuming agent:
|
|
421
|
-
$EDITOR agents/<slug>/agent.ts #
|
|
420
|
+
# Consuming agent: import the template into resources, then release and sync.
|
|
421
|
+
$EDITOR agents/<slug>/agent.ts # import report from ../../resources/templates/monthly-report/resource.js; resources: { report }
|
|
422
422
|
eigenpal agents validate agents/<slug>
|
|
423
423
|
eigenpal agents save -m "Use monthly report template"
|
|
424
424
|
eigenpal agents release patch agents/<slug>
|
|
425
425
|
eigenpal agents sync agents.<slug>
|
|
426
426
|
```
|
|
427
427
|
|
|
428
|
-
Updating a shared template does not
|
|
429
|
-
|
|
430
|
-
and sync those agents. Workspace `tmpl_...` templates are a different system —
|
|
428
|
+
Updating a shared template does not change already released agents. Release and
|
|
429
|
+
sync each consuming agent to capture the updated resource at its new source commit. Workspace `tmpl_...` templates are a different system —
|
|
431
430
|
use `eigenpal workflow templates`, not `agents save`.
|
|
432
431
|
|
|
433
432
|
## Shared Resource Updates
|
|
@@ -436,24 +435,24 @@ Do not move every dependent agent automatically. Find dependents, ask which ones
|
|
|
436
435
|
to update, then release and sync only those agents.
|
|
437
436
|
|
|
438
437
|
```bash
|
|
439
|
-
$EDITOR resources/skills/<slug>/SKILL.md resources/skills/<slug>/run.py
|
|
438
|
+
$EDITOR resources/skills/<slug>/resource.ts resources/skills/<slug>/SKILL.md resources/skills/<slug>/run.py
|
|
440
439
|
eigenpal agents validate resources/skills/<slug>
|
|
441
440
|
|
|
442
441
|
rg '<slug>|resources/skills/<slug>|resources/knowledge/<slug>' agents/ resources/
|
|
443
|
-
|
|
442
|
+
# Inspect the typed resource imports in each agent.ts.
|
|
444
443
|
|
|
445
444
|
eigenpal agents save -m "Improve shared <slug>"
|
|
446
445
|
eigenpal agents release patch resources/skills/<slug>
|
|
447
446
|
|
|
448
447
|
$EDITOR agents/<dependent-slug>/agent.ts
|
|
449
448
|
eigenpal agents validate agents/<dependent-slug>
|
|
450
|
-
eigenpal agents save -m "
|
|
449
|
+
eigenpal agents save -m "Update <slug> resource"
|
|
451
450
|
eigenpal agents release patch agents/<dependent-slug>
|
|
452
451
|
eigenpal agents sync agents.<dependent-slug>
|
|
453
452
|
```
|
|
454
453
|
|
|
455
454
|
After rollout, run one affected agent and inspect `eigenpal.lock` from run
|
|
456
|
-
artifacts to confirm the
|
|
455
|
+
artifacts to confirm the captured resource content.
|
|
457
456
|
|
|
458
457
|
## Agent Datasets
|
|
459
458
|
|