agent-workflow-kit-cli 1.3.0 → 1.3.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.
@@ -30,7 +30,14 @@ function printSuccessAndNextSteps(options) {
30
30
  }
31
31
  export async function updateGitignore(targetDir, dryRun) {
32
32
  const gitignorePath = path.join(targetDir, ".gitignore");
33
- const rulesToIgnore = [".cursorrules", ".copilot-instructions.md", ".clinerules"];
33
+ const rulesToIgnore = [
34
+ ".cursorrules",
35
+ ".copilot-instructions.md",
36
+ ".clinerules",
37
+ "AGENTS.md",
38
+ "GEMINI.md",
39
+ ".agents/"
40
+ ];
34
41
  if (dryRun) {
35
42
  console.log(chalk.gray(`[Dry Run] Would update .gitignore in ${targetDir} to exclude IDE rule files.`));
36
43
  return;
@@ -78,6 +85,87 @@ async function writeWorkspaceIdeRulesAndGitignore(cwd, options) {
78
85
  }
79
86
  await updateGitignore(cwd, options.dryRun);
80
87
  }
88
+ async function writeDefaultWorkflow(cwd, options) {
89
+ const workflowsDir = path.join(cwd, ".agents", "workflows");
90
+ const workflowFile = path.join(workflowsDir, "pr-verification.json");
91
+ const sampleWorkflow = {
92
+ id: "pr-verification",
93
+ name: "Pull Request Verification & ADR Flow",
94
+ description: "Compiles project, validates architecture boundaries, creates ADR, and requests human sign-off.",
95
+ version: "1.0.0",
96
+ supportedArchitectures: ["layered", "clean-architecture", "feature-first"],
97
+ requiredRoles: ["developer"],
98
+ graph: {
99
+ nodes: [
100
+ {
101
+ id: "build-and-lint",
102
+ name: "Compile and Lint Check",
103
+ type: "task",
104
+ executor: "command",
105
+ params: {
106
+ command: "npm run build || mvn compile || python -m py_compile **/*.py"
107
+ },
108
+ mockOutput: {
109
+ status: "success",
110
+ duration: "3.5s"
111
+ }
112
+ },
113
+ {
114
+ id: "verify-architecture",
115
+ name: "Verify Layer Boundaries",
116
+ type: "task",
117
+ executor: "command",
118
+ params: {
119
+ command: "npx agent-workflow-kit-cli profile"
120
+ },
121
+ mockOutput: {
122
+ violationsFound: 0,
123
+ status: "clean"
124
+ }
125
+ },
126
+ {
127
+ id: "create-adr",
128
+ name: "Generate Architecture Decision Record",
129
+ type: "task",
130
+ executor: "adr-generate",
131
+ params: {
132
+ title: "Automated PR Validation Record",
133
+ status: "proposed",
134
+ context: "Auto-generated during pipeline test run.",
135
+ decision: "All structural layers passed boundary checks successfully.",
136
+ consequences: "Workspace rules integrity confirmed."
137
+ },
138
+ mockOutput: {
139
+ adrId: "ADR-0001",
140
+ status: "proposed"
141
+ }
142
+ },
143
+ {
144
+ id: "operator-approval",
145
+ name: "Operator Sign-off Hook",
146
+ type: "approval"
147
+ }
148
+ ],
149
+ edges: [
150
+ { sourceId: "build-and-lint", targetId: "verify-architecture" },
151
+ { sourceId: "verify-architecture", targetId: "create-adr" },
152
+ { sourceId: "create-adr", targetId: "operator-approval" }
153
+ ]
154
+ }
155
+ };
156
+ if (options.dryRun) {
157
+ console.log(chalk.gray(`[Dry Run] Would create default workflow under ${workflowFile}`));
158
+ return;
159
+ }
160
+ try {
161
+ await fs.mkdir(workflowsDir, { recursive: true });
162
+ await fs.writeFile(workflowFile, JSON.stringify(sampleWorkflow, null, 2), "utf8");
163
+ console.log(chalk.green("✔️ Created default workflow pack: .agents/workflows/pr-verification.json"));
164
+ }
165
+ catch (err) {
166
+ console.warn(chalk.yellow(`Could not create default workflow: ${err instanceof Error ? err.message : String(err)}`));
167
+ }
168
+ }
81
169
  export async function runInit(options) {
82
170
  const cwd = process.cwd();
83
171
  console.log(chalk.bold.cyan("\n🚀 Agent Workflow Kit - Initializing..."));
@@ -292,5 +380,7 @@ export async function runInit(options) {
292
380
  }
293
381
  // Write workspace-level IDE rules and update gitignore
294
382
  await writeWorkspaceIdeRulesAndGitignore(cwd, options);
383
+ // Write default sample workflow DAG
384
+ await writeDefaultWorkflow(cwd, options);
295
385
  printSuccessAndNextSteps(options);
296
386
  }
package/dist/cli/index.js CHANGED
@@ -19,7 +19,7 @@ export function runCli() {
19
19
  program
20
20
  .name("agent-workflow-kit")
21
21
  .description("Generate AI coding workflows/rules/templates for Codex and Antigravity")
22
- .version("1.3.0");
22
+ .version("1.3.1");
23
23
  program
24
24
  .command("init")
25
25
  .description("Initialize agent guidelines and skills for the repository")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-workflow-kit-cli",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "AI-Ready Repository Workflow Generator & Guideline Optimizer for Codex and Antigravity",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",