@williambeto/ai-workflow 2.9.4 → 2.9.6
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/CHANGELOG.md +44 -0
- package/bin/ai-workflow.js +113 -15
- package/bin/ai-workflow.js.map +1 -1
- package/{chunk-PP42PB7M.js → chunk-D2W2ZW3Y.js} +1 -1
- package/{chunk-JDSEOEYW.js → chunk-E7DHZFTN.js} +2 -2
- package/{chunk-FNT7DN3N.js → chunk-XRYGVFHF.js} +3 -2
- package/core/index.d.ts +3 -1
- package/core/index.js +1 -1
- package/dist-assets/commands/atlas.md +7 -0
- package/dist-assets/commands/deploy.md +6 -0
- package/dist-assets/commands/implement.md +7 -0
- package/dist-assets/commands/release.md +6 -0
- package/dist-assets/commands/validate.md +6 -0
- package/dist-assets/docs/cli-reference.md +3 -1
- package/{evidence-validator-HS3NTWAB.js → evidence-validator-6GD442JE.js} +2 -2
- package/package.json +2 -2
- package/{validate-7G3HBE2K.js → validate-YMBSICJL.js} +2 -2
|
@@ -1795,7 +1795,7 @@ var Finalizer = class {
|
|
|
1795
1795
|
const evidencePath = path7.join(this.cwd, "EVIDENCE.json");
|
|
1796
1796
|
const hasEvidence = await fs8.access(evidencePath).then(() => true).catch(() => false);
|
|
1797
1797
|
if (hasEvidence) {
|
|
1798
|
-
const { EvidenceValidator } = await import("./evidence-validator-
|
|
1798
|
+
const { EvidenceValidator } = await import("./evidence-validator-6GD442JE.js");
|
|
1799
1799
|
const isTest = process.env.NODE_ENV === "test" || process.env.VITEST === "true";
|
|
1800
1800
|
const evidenceValidator = new EvidenceValidator({ cwd: this.cwd, skipFileCheck: isTest, skipGitCheck: isTest });
|
|
1801
1801
|
const valResult = await evidenceValidator.validate();
|
|
@@ -2121,4 +2121,4 @@ export {
|
|
|
2121
2121
|
ExecutionPlanner,
|
|
2122
2122
|
WorkflowStateMachine
|
|
2123
2123
|
};
|
|
2124
|
-
//# sourceMappingURL=chunk-
|
|
2124
|
+
//# sourceMappingURL=chunk-E7DHZFTN.js.map
|
|
@@ -6548,6 +6548,7 @@ import fs from "fs/promises";
|
|
|
6548
6548
|
import path from "path";
|
|
6549
6549
|
import { execFileSync } from "child_process";
|
|
6550
6550
|
import { fileURLToPath } from "url";
|
|
6551
|
+
var Ajv = import_ajv.default;
|
|
6551
6552
|
var EvidenceValidator = class {
|
|
6552
6553
|
cwd;
|
|
6553
6554
|
skipFileCheck;
|
|
@@ -6587,7 +6588,7 @@ var EvidenceValidator = class {
|
|
|
6587
6588
|
try {
|
|
6588
6589
|
const schemaContent = await fs.readFile(schemaPath, "utf8");
|
|
6589
6590
|
const schema = JSON.parse(schemaContent);
|
|
6590
|
-
const ajv = new
|
|
6591
|
+
const ajv = new Ajv({ allErrors: true, allowUnionTypes: true });
|
|
6591
6592
|
const validateSchema = ajv.compile(schema);
|
|
6592
6593
|
const valid = validateSchema(evidence);
|
|
6593
6594
|
if (!valid) {
|
|
@@ -6678,4 +6679,4 @@ export {
|
|
|
6678
6679
|
require_ajv,
|
|
6679
6680
|
EvidenceValidator
|
|
6680
6681
|
};
|
|
6681
|
-
//# sourceMappingURL=chunk-
|
|
6682
|
+
//# sourceMappingURL=chunk-XRYGVFHF.js.map
|
package/core/index.d.ts
CHANGED
|
@@ -269,7 +269,9 @@ declare class DelegationController {
|
|
|
269
269
|
/**
|
|
270
270
|
* Runs validation locally without logging Sage since no validation agent runtime was executed.
|
|
271
271
|
*/
|
|
272
|
-
validate
|
|
272
|
+
validate<T extends {
|
|
273
|
+
overallStatus: string;
|
|
274
|
+
}>(taskSlug: string, profile: string, verifyFn: () => Promise<T>, evidencePolicy?: "optional" | "required" | null): Promise<T>;
|
|
273
275
|
}
|
|
274
276
|
|
|
275
277
|
interface HandoffGenerateOptions {
|
package/core/index.js
CHANGED
|
@@ -31,6 +31,13 @@ Route user requests safely, proportionately, and securely according to the permi
|
|
|
31
31
|
- Route workspace implementation to Astra, never directly to a skill-backed specialist.
|
|
32
32
|
- Printed code is not a substitute for a requested repository change.
|
|
33
33
|
|
|
34
|
+
## Canonical policies
|
|
35
|
+
Resolve these policy files from the policies directory declared in `.ai-workflow/config.json`:
|
|
36
|
+
- `01-BRANCH_GATE.md`
|
|
37
|
+
- `03-QUALITY_GATE.md`
|
|
38
|
+
- `05-AGENT_CONTRACT.md`
|
|
39
|
+
- `06-FINAL_EVIDENCE_CONTRACT.md`
|
|
40
|
+
|
|
34
41
|
## Allowed tools
|
|
35
42
|
- classify request
|
|
36
43
|
- evaluate routing permissions
|
|
@@ -32,6 +32,12 @@ Execute package publication or deployment securely after passing validation chec
|
|
|
32
32
|
- Do not deploy if any validation check fails.
|
|
33
33
|
- Do not claim deploy execution without verified deploy logs.
|
|
34
34
|
|
|
35
|
+
## Canonical policies
|
|
36
|
+
Resolve these policy files from the policies directory declared in `.ai-workflow/config.json`:
|
|
37
|
+
- `01-BRANCH_GATE.md`
|
|
38
|
+
- `06-FINAL_EVIDENCE_CONTRACT.md`
|
|
39
|
+
- `07-RELEASE_GATE.md`
|
|
40
|
+
|
|
35
41
|
## Allowed tools
|
|
36
42
|
- execute deployment scripts
|
|
37
43
|
- run environment smoke tests
|
|
@@ -31,6 +31,13 @@ Implement a small task with defined scope, verifying changes incrementally.
|
|
|
31
31
|
- Do not claim implementation without validation evidence.
|
|
32
32
|
- Treat the finalizer exit code and public status as authoritative.
|
|
33
33
|
|
|
34
|
+
## Canonical policies
|
|
35
|
+
Resolve these policy files from the policies directory declared in `.ai-workflow/config.json`:
|
|
36
|
+
- `01-BRANCH_GATE.md`
|
|
37
|
+
- `03-QUALITY_GATE.md`
|
|
38
|
+
- `06-FINAL_EVIDENCE_CONTRACT.md`
|
|
39
|
+
- `PROCEDURE_UI_CHECKLIST.md`
|
|
40
|
+
|
|
34
41
|
## Allowed tools
|
|
35
42
|
- read files
|
|
36
43
|
- edit source files
|
|
@@ -32,6 +32,12 @@ Coordinate the release process, verifying package status and generating release
|
|
|
32
32
|
- Do not push to remote, publish to npm, or create git tags without user approval.
|
|
33
33
|
- Do not claim release readiness without release evidence document.
|
|
34
34
|
|
|
35
|
+
## Canonical policies
|
|
36
|
+
Resolve these policy files from the policies directory declared in `.ai-workflow/config.json`:
|
|
37
|
+
- `01-BRANCH_GATE.md`
|
|
38
|
+
- `06-FINAL_EVIDENCE_CONTRACT.md`
|
|
39
|
+
- `07-RELEASE_GATE.md`
|
|
40
|
+
|
|
35
41
|
## Allowed tools
|
|
36
42
|
- read version configuration
|
|
37
43
|
- update changelog
|
|
@@ -29,6 +29,12 @@ Execute validation checks and compile an evidence report showing quality status.
|
|
|
29
29
|
- All validation commands must exit 0.
|
|
30
30
|
- Do not claim validation success without evidence log.
|
|
31
31
|
|
|
32
|
+
## Canonical policies
|
|
33
|
+
Resolve these policy files from the policies directory declared in `.ai-workflow/config.json`:
|
|
34
|
+
- `03-QUALITY_GATE.md`
|
|
35
|
+
- `06-FINAL_EVIDENCE_CONTRACT.md`
|
|
36
|
+
- `PROCEDURE_UI_CHECKLIST.md`
|
|
37
|
+
|
|
32
38
|
## Allowed tools
|
|
33
39
|
- execute test commands
|
|
34
40
|
- run code linters
|
|
@@ -128,7 +128,7 @@ Runs observed project validation and collects structured evidence.
|
|
|
128
128
|
|
|
129
129
|
**Synopsis:**
|
|
130
130
|
```bash
|
|
131
|
-
ai-workflow collect-evidence [--task=<slug>] [--mode=<mode>] [--dry-run] [--visual-dist=<path>] [--port=<port>]
|
|
131
|
+
ai-workflow collect-evidence [--task=<slug>] [--mode=<mode>] [--base-ref=<git-ref>] [--dry-run] [--visual-dist=<path>] [--port=<port>]
|
|
132
132
|
```
|
|
133
133
|
|
|
134
134
|
**Description:**
|
|
@@ -139,6 +139,7 @@ Executes validation scripts, collects results, and produces a delivery summary.
|
|
|
139
139
|
| `--task=<slug>` | Optional task slug to associate with the evidence |
|
|
140
140
|
| `--evidence-policy=<policy>` | Controls whether EVIDENCE.json is persisted: `optional` or `required` |
|
|
141
141
|
| `--mode=<mode>` | (Deprecated) Legacy validation mode compatibility mapping: `quick`, `standard`, or `full` |
|
|
142
|
+
| `--base-ref=<git-ref>` | Include committed changes since the merge base with this Git ref, plus current uncommitted changes |
|
|
142
143
|
| `--dry-run` | Run checks without writing `EVIDENCE.json` |
|
|
143
144
|
| `--visual-dist=<path>` | Path to built frontend assets for visual validation |
|
|
144
145
|
| `--port=<port>` | Port for serving frontend assets |
|
|
@@ -146,6 +147,7 @@ Executes validation scripts, collects results, and produces a delivery summary.
|
|
|
146
147
|
**Example:**
|
|
147
148
|
```bash
|
|
148
149
|
ai-workflow collect-evidence --evidence-policy=required --task=auth-feature
|
|
150
|
+
ai-workflow collect-evidence --evidence-policy=required --task=release-2-9-6 --base-ref=v2.9.5
|
|
149
151
|
ai-workflow collect-evidence --dry-run
|
|
150
152
|
```
|
|
151
153
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EvidenceValidator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XRYGVFHF.js";
|
|
4
4
|
import "./chunk-5WRI5ZAA.js";
|
|
5
5
|
export {
|
|
6
6
|
EvidenceValidator
|
|
7
7
|
};
|
|
8
|
-
//# sourceMappingURL=evidence-validator-
|
|
8
|
+
//# sourceMappingURL=evidence-validator-6GD442JE.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@williambeto/ai-workflow",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.6",
|
|
4
4
|
"description": "AI Workflow Kit — OpenCode-first software delivery workflow with agents, commands, skills, validation, and evidence",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "José Willams",
|
|
@@ -55,6 +55,6 @@
|
|
|
55
55
|
"CHANGELOG.md"
|
|
56
56
|
],
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@opencode-ai/sdk": "1.
|
|
58
|
+
"@opencode-ai/sdk": "1.18.3"
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
QualityGuard,
|
|
4
4
|
ValidationPlanner,
|
|
5
5
|
VisualVerifier
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-D2W2ZW3Y.js";
|
|
7
7
|
import "./chunk-H7GIKXFO.js";
|
|
8
8
|
import "./chunk-5WRI5ZAA.js";
|
|
9
9
|
|
|
@@ -86,4 +86,4 @@ async function runValidate({
|
|
|
86
86
|
export {
|
|
87
87
|
runValidate
|
|
88
88
|
};
|
|
89
|
-
//# sourceMappingURL=validate-
|
|
89
|
+
//# sourceMappingURL=validate-YMBSICJL.js.map
|