agent-state-machine 2.2.2 → 2.3.0

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/bin/cli.js CHANGED
@@ -108,7 +108,7 @@ Environment Variables:
108
108
  STATE_MACHINE_REMOTE_URL Override the default remote server URL (for local dev testing)
109
109
 
110
110
  Workflow Structure:
111
- workflows/<name>/
111
+ .workflows/<name>/
112
112
  ├── workflow.js # Native JS workflow (async/await)
113
113
  ├── config.js # Model/API key configuration
114
114
  ├── package.json # Sets "type": "module" for this workflow folder
@@ -142,7 +142,7 @@ async function confirmHardReset(workflowName) {
142
142
  }
143
143
 
144
144
  function workflowsRoot() {
145
- return path.join(process.cwd(), 'workflows');
145
+ return path.join(process.cwd(), '.workflows');
146
146
  }
147
147
 
148
148
  function resolveWorkflowDir(workflowName) {
@@ -194,7 +194,7 @@ function listWorkflows() {
194
194
  const root = workflowsRoot();
195
195
 
196
196
  if (!fs.existsSync(root)) {
197
- console.log('No workflows directory found.');
197
+ console.log('No .workflows directory found.');
198
198
  console.log('Run `state-machine --setup <name>` to create your first workflow.');
199
199
  return;
200
200
  }
package/lib/file-tree.js CHANGED
@@ -21,7 +21,7 @@ export const DEFAULT_IGNORE = [
21
21
  'coverage/**',
22
22
  '.next/**',
23
23
  '.cache/**',
24
- 'workflows/**',
24
+ '.workflows/**',
25
25
  '*.log',
26
26
  '.DS_Store'
27
27
  ];
package/lib/setup.js CHANGED
@@ -70,7 +70,7 @@ function copyTemplateDir(srcDir, destDir, replacements, createdPaths) {
70
70
  * Setup a new workflow with directory structure
71
71
  */
72
72
  async function setup(workflowName, options = {}) {
73
- const workflowsDir = path.join(process.cwd(), 'workflows');
73
+ const workflowsDir = path.join(process.cwd(), '.workflows');
74
74
  const workflowDir = path.join(workflowsDir, workflowName);
75
75
  const templateName = options.template || DEFAULT_TEMPLATE;
76
76
 
@@ -111,9 +111,9 @@ async function setup(workflowName, options = {}) {
111
111
  console.log('─'.repeat(40));
112
112
  console.log(`\n✓ Workflow '${workflowName}' created successfully!\n`);
113
113
  console.log('Next steps:');
114
- console.log(` 1. Edit workflows/${workflowName}/workflow.js to implement your flow`);
115
- console.log(` 2. Edit workflows/${workflowName}/config.js to set models/API keys`);
116
- console.log(` 3. Add custom agents in workflows/${workflowName}/agents/`);
114
+ console.log(` 1. Edit .workflows/${workflowName}/workflow.js to implement your flow`);
115
+ console.log(` 2. Edit .workflows/${workflowName}/config.js to set models/API keys`);
116
+ console.log(` 3. Add custom agents in .workflows/${workflowName}/agents/`);
117
117
  console.log(` 4. Run: state-machine run ${workflowName}\n`);
118
118
  }
119
119
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-state-machine",
3
- "version": "2.2.2",
3
+ "version": "2.3.0",
4
4
  "type": "module",
5
5
  "description": "A workflow orchestrator for running agents and scripts in sequence with state management",
6
6
  "main": "lib/index.js",