moflo 4.8.66 → 4.8.67

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "moflo",
3
- "version": "4.8.66",
3
+ "version": "4.8.67",
4
4
  "description": "MoFlo — AI agent orchestration for Claude Code. Forked from ruflo/claude-flow with patches applied to source, plus feature-level orchestration.",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -112,7 +112,7 @@
112
112
  "@types/js-yaml": "^4.0.9",
113
113
  "@types/node": "^20.19.37",
114
114
  "eslint": "^8.0.0",
115
- "moflo": "^4.8.65",
115
+ "moflo": "^4.8.66",
116
116
  "tsx": "^4.21.0",
117
117
  "typescript": "^5.9.3",
118
118
  "vitest": "^4.0.0"
@@ -2,5 +2,5 @@
2
2
  * Auto-generated by build. Do not edit manually.
3
3
  * Source of truth: root package.json → scripts/sync-version.mjs
4
4
  */
5
- export const VERSION = '4.8.66';
5
+ export const VERSION = '4.8.67';
6
6
  //# sourceMappingURL=version.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moflo/cli",
3
- "version": "4.8.66",
3
+ "version": "4.8.67",
4
4
  "type": "module",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -12,6 +12,7 @@ import { builtinConnectors } from '../connectors/index.js';
12
12
  import { parseSpell } from '../schema/parser.js';
13
13
  import { validateSpellDefinition } from '../schema/validator.js';
14
14
  import { SpellConnectorRegistry } from '../registry/connector-registry.js';
15
+ import { loadSandboxConfigFromProject } from '../core/platform-sandbox.js';
15
16
  // ============================================================================
16
17
  // Factory
17
18
  // ============================================================================
@@ -78,6 +79,13 @@ export async function runSpellFromContent(content, sourceFile, options = {}) {
78
79
  const runner = createRunner(options);
79
80
  // Strip factory-only fields; keep RunSpellOptions (extends RunnerOptions) for runner.run()
80
81
  const { args = {}, stepDirs: _s, credentials: _c, memory: _m, connectorRegistry: _cr, ...runnerOptions } = options;
82
+ // Auto-load sandbox config from moflo.yaml when caller supplied projectRoot
83
+ // but not an explicit sandboxConfig. Keeps CLI/epic callers from having to
84
+ // thread config themselves; MCP tools still pass explicitly.
85
+ if (!runnerOptions.sandboxConfig && runnerOptions.projectRoot) {
86
+ const autoCfg = await loadSandboxConfigFromProject(runnerOptions.projectRoot);
87
+ runnerOptions.sandboxConfig = autoCfg;
88
+ }
81
89
  return runner.run(definition, args, runnerOptions);
82
90
  }
83
91
  // ============================================================================