@williambeto/ai-workflow 1.18.15 → 1.18.16

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 CHANGED
@@ -1,3 +1,11 @@
1
+ ## [1.18.16](https://github.com/williambeto/ai-workflow/compare/v1.18.15...v1.18.16) (2026-05-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **audit:** harden artifact safety and align CLI/OpenCode catalog ([047c3bd](https://github.com/williambeto/ai-workflow/commit/047c3bd92d2d7fd3bc7bef2afc5f29a8fba441e9))
7
+ * **audit:** harden artifact safety and align CLI/OpenCode catalog ([a13f489](https://github.com/williambeto/ai-workflow/commit/a13f489c1a5cc7a06ba67580b30dd30f670d9b62))
8
+
1
9
  ## [1.18.15](https://github.com/williambeto/ai-workflow/compare/v1.18.14...v1.18.15) (2026-05-22)
2
10
 
3
11
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.18.15",
2
+ "version": "1.18.16",
3
3
  "name": "@williambeto/ai-workflow",
4
4
  "description": "AI Workflow Kit repository for designing and validating AI-assisted software delivery workflows with Codex and OpenCode",
5
5
  "license": "MIT",
@@ -56,6 +56,7 @@
56
56
  "validate:json": "node scripts/validate-json.mjs",
57
57
  "validate:structure": "node scripts/validate-structure.mjs",
58
58
  "validate:refs": "node scripts/validate-refs.mjs",
59
+ "validate:artifact-safety": "node scripts/validate-artifact-safety.mjs",
59
60
  "validate:links": "node scripts/validate-links.mjs",
60
61
  "validate:docs-consistency": "node scripts/validate-doc-consistency.mjs",
61
62
  "validate:workflow": "node scripts/validate-workflow.mjs",
@@ -38,6 +38,21 @@ export function readPackageFile(relativePath) {
38
38
  }
39
39
  }
40
40
 
41
+ /**
42
+ * Resolve the current kit version from package metadata.
43
+ * Returns null if package.json cannot be read/parsed.
44
+ */
45
+ export function getPackageVersion() {
46
+ try {
47
+ const raw = readPackageFile("package.json");
48
+ if (!raw) return null;
49
+ const parsed = JSON.parse(raw);
50
+ return typeof parsed.version === "string" ? parsed.version : null;
51
+ } catch {
52
+ return null;
53
+ }
54
+ }
55
+
41
56
  /**
42
57
  * Discover ALL files under a package-relative directory.
43
58
  * Returns a flat map of { relativePath: content }.
@@ -1,4 +1,4 @@
1
- import { getFullAgentContent, getFullSkillFiles, discoverPackageFiles, readPackageFile } from "./package-assets.js";
1
+ import { getFullAgentContent, getFullSkillFiles, discoverPackageFiles, readPackageFile, getPackageVersion } from "./package-assets.js";
2
2
 
3
3
  const COMMON_FILES = {
4
4
  "README.workflow.md": `# AI Workflow Setup\n\nThis project is configured for Codex and OpenCode workflows via \`ai-workflow\`.\n\n## Quick start\n\n1. Run validation command for your project.\n2. Start your AI workflow using repository prompts and agent commands.\n3. Keep changes small and evidence-based.\n`,
@@ -101,6 +101,7 @@ const FULL_PRIMARY_AGENTS = [
101
101
  "release-manager",
102
102
  "wordpress-engineer",
103
103
  "prompt-engineer",
104
+ "spec-engineer",
104
105
  "orchestrator"
105
106
  ];
106
107
 
@@ -114,7 +115,6 @@ const FULL_SKILLS = [
114
115
  "interface-design",
115
116
  "minimal-context",
116
117
  "napkin",
117
- "nuxt-dashboard-workflow",
118
118
  "opencode-agent-design",
119
119
  "playwright-cli",
120
120
  "product-manager",
@@ -123,10 +123,12 @@ const FULL_SKILLS = [
123
123
  "tech-lead",
124
124
  "tester",
125
125
  "token-economy",
126
- "vue-clean-architecture",
126
+ "vue-nuxt",
127
127
  "wordpress-engineer"
128
128
  ];
129
129
 
130
+ const KIT_VERSION = getPackageVersion() ?? "unknown";
131
+
130
132
  function buildFullFiles() {
131
133
  const files = {};
132
134
 
@@ -249,7 +251,7 @@ export function buildAiWorkflowConfig({ profile, managedFiles, managedLinks = []
249
251
  return {
250
252
  $schema: "./schemas/ai-workflow.schema.json",
251
253
  version: 2,
252
- kitVersion: "0.1.0",
254
+ kitVersion: KIT_VERSION,
253
255
  mode: "standalone",
254
256
  profile,
255
257
  installedAt: now,
@@ -16,14 +16,20 @@ Use this checklist before making the GitHub repository public or before a major
16
16
  - [ ] GitHub-only folders (`evidence/`, `examples/`, `variants/`, `scripts/`, `tests/`) are appropriate for public readers.
17
17
  - [ ] CI and publish workflows reference secrets through GitHub Actions secrets only.
18
18
  - [ ] `npm run validate` passes.
19
+ - [ ] Local source archives are created with safe commands (`git archive`), not ad-hoc workspace zips.
20
+ - [ ] Local package inspection uses `npm pack --dry-run` and confirms no secrets or `.git/` content.
19
21
 
20
22
  ## Suggested verification commands
21
23
 
22
24
  ```bash
23
25
  npm run validate
26
+ npm pack --dry-run
27
+ git archive --format=zip --output ai-workflow-source.zip HEAD
24
28
  grep -R --exclude=publication-readiness-checklist.md "/home/" README.md docs runbooks evidence packages examples variants || true
25
29
  grep -R --exclude=publication-readiness-checklist.md "private preview\|private-preview\|not ready for broad public" README.md docs runbooks packages evidence || true
26
30
  grep -R --exclude=publication-readiness-checklist.md "arco-ptp" README.md docs runbooks packages evidence || true
27
31
  ```
28
32
 
29
33
  Review any matches before publication. Some historical references may be acceptable only when they are explicitly anonymized or explained.
34
+
35
+ Avoid manually zipping the working directory (`zip -r .`) for distribution, because it can accidentally include `.env*`, `.git/`, and other local-only files.