@axiomatic-labs/claudeflow 2.0.87 → 2.0.88

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axiomatic-labs/claudeflow",
3
- "version": "2.0.87",
3
+ "version": "2.0.88",
4
4
  "description": "Claudeflow — AI-powered development toolkit for Claude Code. Skills, agents, hooks, and quality gates that ship production apps.",
5
5
  "bin": {
6
6
  "claudeflow": "./bin/cli.js"
package/lib/manifest.js DELETED
@@ -1,38 +0,0 @@
1
- // Canonical list of template-managed files — mirrors build-zip.sh.
2
- // Only these files are managed by init/update. Everything else is user-generated.
3
-
4
- // Directory prefixes: any file under these paths is template-managed.
5
- const TEMPLATE_PREFIXES = [
6
- '.claude/skills/claudeflow-init/',
7
- '.claude/skills/claudeflow-update/',
8
- '.claude/skills/claudeflow-design-tokens/',
9
- '.claude/skills/claudeflow-create-ui/',
10
- '.claude/skills/claudeflow-test/',
11
- '.claude/skills/claudeflow-review/',
12
- '.claude/skills/claudeflow-ship/',
13
- '.claude/docs/',
14
- '.claude/hooks/',
15
- ];
16
-
17
- // Exact file paths that are template-managed.
18
- const TEMPLATE_FILES = [
19
- '.claude/settings.json',
20
- ];
21
-
22
- // Check if a path from the ZIP is a template file.
23
- function isTemplatePath(relativePath) {
24
- // Exact match
25
- if (TEMPLATE_FILES.includes(relativePath)) return true;
26
-
27
- // Prefix match (directory-based)
28
- for (const prefix of TEMPLATE_PREFIXES) {
29
- if (relativePath.startsWith(prefix)) return true;
30
- }
31
-
32
- // .claudeflow-version is also managed
33
- if (relativePath === '.claude/.claudeflow-version') return true;
34
-
35
- return false;
36
- }
37
-
38
- module.exports = { TEMPLATE_PREFIXES, TEMPLATE_FILES, isTemplatePath };
package/lib/update.js DELETED
@@ -1,101 +0,0 @@
1
- const fs = require('fs');
2
- const path = require('path');
3
- const { execSync } = require('child_process');
4
- const { requireAuth } = require('./auth.js');
5
- const { getLatestRelease, downloadReleaseAsset } = require('./download.js');
6
- const { readLocalVersion, writeLocalVersion } = require('./version.js');
7
- const { isTemplatePath } = require('./manifest.js');
8
- const ui = require('./ui.js');
9
-
10
- async function run() {
11
- const current = readLocalVersion();
12
- if (!current) {
13
- ui.banner();
14
- ui.error('Not initialized. Run: claudeflow init');
15
- console.log('');
16
- process.exit(1);
17
- }
18
-
19
- ui.banner(current);
20
-
21
- ui.step('Authenticating with GitHub...');
22
- const token = await requireAuth();
23
-
24
- ui.step('Checking for updates...');
25
- const release = await getLatestRelease(token);
26
- const latest = release.tag_name;
27
-
28
- if (current === latest) {
29
- ui.success(`Already up to date (${current}).`);
30
- console.log('');
31
- return;
32
- }
33
-
34
- ui.info(`${current} ${ui.DIM}->${ui.RESET} ${ui.BOLD}${latest}${ui.RESET}`);
35
-
36
- // Find the ZIP asset
37
- const asset = release.assets.find((a) => a.name.endsWith('.zip'));
38
- if (!asset) {
39
- ui.error('No ZIP asset found in the latest release.');
40
- process.exit(1);
41
- }
42
-
43
- ui.step(`Downloading ${latest}...`);
44
- const zipBuffer = await downloadReleaseAsset(asset, token);
45
-
46
- // Write ZIP to temp file
47
- const tmpZip = path.join(require('os').tmpdir(), `claudeflow-${Date.now()}.zip`);
48
- const tmpDir = path.join(require('os').tmpdir(), `claudeflow-extract-${Date.now()}`);
49
- fs.writeFileSync(tmpZip, zipBuffer);
50
-
51
- try {
52
- // Extract to temp directory first
53
- fs.mkdirSync(tmpDir, { recursive: true });
54
- execSync(`unzip -o "${tmpZip}" -d "${tmpDir}"`, { stdio: 'pipe' });
55
-
56
- ui.step('Updating template files...');
57
-
58
- // Copy only template files
59
- const updated = [];
60
- copyTemplateFiles(tmpDir, process.cwd(), '', updated);
61
-
62
- // Write version file
63
- writeLocalVersion(latest);
64
-
65
- console.log('');
66
- const skills = updated.filter((f) => f.includes('/skills/')).length;
67
- const hooks = updated.filter((f) => f.includes('/hooks/')).length;
68
- const docs = updated.filter((f) => f.includes('/docs/')).length;
69
- const other = updated.length - skills - hooks - docs;
70
-
71
- if (skills) ui.success(`${skills} skill files updated`);
72
- if (hooks) ui.success(`${hooks} hook files updated`);
73
- if (docs) ui.success(`${docs} doc files updated`);
74
- if (other) ui.success(`${other} other files updated`);
75
-
76
- ui.done(`Updated to ${latest}.`);
77
- ui.info('Generated skills/agents/rules are preserved.');
78
- console.log('');
79
- } finally {
80
- fs.unlinkSync(tmpZip);
81
- fs.rmSync(tmpDir, { recursive: true, force: true });
82
- }
83
- }
84
-
85
- function copyTemplateFiles(srcDir, destDir, prefix, updated) {
86
- const entries = fs.readdirSync(path.join(srcDir, prefix), { withFileTypes: true });
87
- for (const entry of entries) {
88
- const relative = prefix ? `${prefix}/${entry.name}` : entry.name;
89
- if (entry.isDirectory()) {
90
- copyTemplateFiles(srcDir, destDir, relative, updated);
91
- } else if (isTemplatePath(relative)) {
92
- const src = path.join(srcDir, relative);
93
- const dest = path.join(destDir, relative);
94
- fs.mkdirSync(path.dirname(dest), { recursive: true });
95
- fs.copyFileSync(src, dest);
96
- updated.push(relative);
97
- }
98
- }
99
- }
100
-
101
- module.exports = run;