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 +3 -3
- package/lib/file-tree.js +1 -1
- package/lib/setup.js +4 -4
- package/package.json +1 -1
- package/vercel-server/public/remote/assets/index-BTLc1QSv.js +168 -0
- package/vercel-server/public/remote/assets/index-DLa4X08t.css +1 -0
- package/vercel-server/public/remote/index.html +2 -2
- package/vercel-server/ui/src/App.jsx +1 -16
- package/vercel-server/ui/src/components/ContentCard.jsx +16 -8
- package/vercel-server/public/remote/assets/index-BsJsLDKc.css +0 -1
- package/vercel-server/public/remote/assets/index-CmtT6ADh.js +0 -168
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
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
|
|