@zenera/cli 1.1.53 → 1.1.54

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.
Files changed (2) hide show
  1. package/dist/validate.js +17 -5
  2. package/package.json +4 -4
package/dist/validate.js CHANGED
@@ -1,4 +1,4 @@
1
- import { SHAPES, auditModels, credentialFor, envNames, form, resolveBuild, } from '@zenera/engine';
1
+ import { SHAPES, auditModels, credentialFor, envNames, form, machinePluginTools, PLUGINS_ENV, resolveBuild, } from '@zenera/engine';
2
2
  import { EXA_GROUP, FileSkillProvider, SANDBOX_MOUNT, Sandbox, exaTools, fileTools, frontmatter, projectRegistry, readProjectConfig, sandboxTools, selectTools, toList, } from '@zenera/neo';
3
3
  import { existsSync, mkdtempSync, readFileSync, readdirSync, realpathSync, rmSync, statSync, writeFileSync, } from 'node:fs';
4
4
  import { tmpdir } from 'node:os';
@@ -398,8 +398,19 @@ export async function validateProject(opts) {
398
398
  }
399
399
  entry = entrypoint(config, add);
400
400
  // The tools a `zen run` would actually offer, so a selector is checked
401
- // against the real set rather than a list written down twice.
402
- const available = availableTools(root, config);
401
+ // against the real set rather than a list written down twice: the built-ins
402
+ // and whatever the plugins `ZEN_PLUGINS` names add.
403
+ const builtins = availableTools(root, config);
404
+ const plugged = await machinePluginTools({ dir: root, name: name ?? basename(root) }, builtins, {
405
+ warn: (message) => add({
406
+ severity: 'warning',
407
+ code: 'plugins.load',
408
+ where: PLUGINS_ENV,
409
+ message,
410
+ fix: `fix or remove the entry in ${PLUGINS_ENV}; projects naming its tools will not load`,
411
+ }),
412
+ });
413
+ const available = [...builtins, ...plugged];
403
414
  for (const spec of config.agents) {
404
415
  agents.push(checkAgent(root, config, spec, entry, available, rules, record, add));
405
416
  }
@@ -701,8 +712,9 @@ function checkAgent(root, config, spec, entry, available, rules, record, add) {
701
712
  message: (err instanceof Error
702
713
  ? err.message.replace(`${where}.tools: `, '')
703
714
  : String(err)) + ' — `zen run` will refuse to load the project',
704
- fix: 'correct the name, or drop it. A tool this CLI does not ship can only ' +
705
- 'reach an agent from a TypeScript host, through ProjectOptions.tools',
715
+ fix: 'correct the name, or drop it. A tool this CLI does not ship reaches an ' +
716
+ `agent through a plugin: ${PLUGINS_ENV} on this machine, or a TypeScript ` +
717
+ 'host passing it to openEngine',
706
718
  });
707
719
  }
708
720
  if (resolved && tools.length === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenera/cli",
3
- "version": "1.1.53",
3
+ "version": "1.1.54",
4
4
  "description": "Command-line front end for @zenera/neo: agentic projects you can run, share and commit.",
5
5
  "keywords": [
6
6
  "agents",
@@ -54,9 +54,9 @@
54
54
  "@google/genai": "^2.30.0",
55
55
  "@inkjs/ui": "^2.0.0",
56
56
  "@openrouter/sdk": "^1.4.25",
57
- "@zenera/engine": "^1.1.53",
58
- "@zenera/neo": "^1.1.53",
59
- "@zenera/view": "^1.1.53",
57
+ "@zenera/engine": "^1.1.54",
58
+ "@zenera/neo": "^1.1.54",
59
+ "@zenera/view": "^1.1.54",
60
60
  "google-auth-library": "^10.0.0",
61
61
  "ink": "^7.1.1",
62
62
  "openai": "^6.0.0",