@christianmaf80/agentic-workflow 1.12.0-beta.1 → 1.13.0-beta.1
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 +1 -0
- package/dist/cli/commands/init.js +16 -1
- package/dist/workflows/init.md +3 -2
- package/package.json +2 -1
package/bin/cli.js
CHANGED
|
@@ -16,6 +16,7 @@ program
|
|
|
16
16
|
.command('init')
|
|
17
17
|
.description('Initialize the agentic system in the current directory')
|
|
18
18
|
.option('--non-interactive', 'Run without prompts (assume YES)')
|
|
19
|
+
.option('--bootstrap', 'Install bootstrap bundle if available')
|
|
19
20
|
.action((options) => initCommand(options));
|
|
20
21
|
|
|
21
22
|
program
|
|
@@ -9,6 +9,7 @@ export async function initCommand(options = {}) {
|
|
|
9
9
|
const cwd = process.cwd();
|
|
10
10
|
const agentDir = path.join(cwd, '.agent');
|
|
11
11
|
const nonInteractive = Boolean(options.nonInteractive);
|
|
12
|
+
const useBootstrap = Boolean(options.bootstrap);
|
|
12
13
|
// 1. Existing System Detection
|
|
13
14
|
const systemType = await detectAgentSystem(cwd);
|
|
14
15
|
if (systemType === 'legacy') {
|
|
@@ -61,8 +62,12 @@ export async function initCommand(options = {}) {
|
|
|
61
62
|
await fs.rm(agentDir, { recursive: true, force: true });
|
|
62
63
|
await fs.mkdir(agentDir, { recursive: true });
|
|
63
64
|
await copyCoreToAgent(corePath, agentDir);
|
|
65
|
+
if (useBootstrap) {
|
|
66
|
+
await copyBootstrap(corePath, agentDir);
|
|
67
|
+
}
|
|
64
68
|
s.stop('Configuration complete.');
|
|
65
|
-
|
|
69
|
+
const bootstrapNote = useBootstrap ? '\nBootstrap bundle installed into .agent.' : '';
|
|
70
|
+
note(`Core located at: ${corePath}\nCore files installed into .agent.${bootstrapNote}`, 'Installed');
|
|
66
71
|
outro('Agentic System initialized successfully.');
|
|
67
72
|
}
|
|
68
73
|
catch (error) {
|
|
@@ -108,3 +113,13 @@ async function copyCoreToAgent(corePath, agentDir) {
|
|
|
108
113
|
}
|
|
109
114
|
}
|
|
110
115
|
}
|
|
116
|
+
async function copyBootstrap(corePath, agentDir) {
|
|
117
|
+
const srcPath = path.join(corePath, 'bootstrap.md');
|
|
118
|
+
const destPath = path.join(agentDir, 'bootstrap.md');
|
|
119
|
+
try {
|
|
120
|
+
await fs.copyFile(srcPath, destPath);
|
|
121
|
+
}
|
|
122
|
+
catch {
|
|
123
|
+
// Ignore if bootstrap doesn't exist.
|
|
124
|
+
}
|
|
125
|
+
}
|
package/dist/workflows/init.md
CHANGED
|
@@ -8,14 +8,15 @@ owner: architect-agent
|
|
|
8
8
|
version: 4.0.0
|
|
9
9
|
severity: PERMANENT
|
|
10
10
|
trigger:
|
|
11
|
-
commands: ["init", "/init"]
|
|
11
|
+
commands: ["init", "/init", "/agentic-init"]
|
|
12
12
|
blocking: true
|
|
13
13
|
---
|
|
14
14
|
|
|
15
15
|
# WORKFLOW: init
|
|
16
16
|
|
|
17
17
|
## Input (REQUIRED)
|
|
18
|
-
- Comando del desarrollador: `init`
|
|
18
|
+
- Comando del desarrollador: `init` o `/agentic-init`
|
|
19
|
+
- Si se desea usar el bundle opcional: `--bootstrap`
|
|
19
20
|
|
|
20
21
|
## Objetivo (ONLY)
|
|
21
22
|
- Activar el rol **architect-agent**.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@christianmaf80/agentic-workflow",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0-beta.1",
|
|
4
4
|
"description": "Portable agentic workflow orchestration system with strict identity and gate discipline",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
],
|
|
16
16
|
"scripts": {
|
|
17
17
|
"build": "node scripts/clean-dist.mjs && tsc && npm run copy-assets",
|
|
18
|
+
"build:bootstrap": "node scripts/build-bootstrap.mjs",
|
|
18
19
|
"copy-assets": "cp -r src/rules src/workflows src/templates src/artifacts src/skills src/tools src/todo src/metrics dist/ && cp src/index.md dist/index.md",
|
|
19
20
|
"start": "node dist/index.js",
|
|
20
21
|
"publish:npm": "npm publish --registry https://registry.npmjs.org --access public",
|