@comfanion/workflow 4.5.1 ā 4.5.2
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 +6 -2
- package/package.json +1 -1
- package/src/build-info.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -15,6 +15,10 @@ const OPENCODE_SRC = path.join(PACKAGE_DIR, 'src', 'opencode');
|
|
|
15
15
|
const REPO_TEMPLATES_SRC = path.join(PACKAGE_DIR, 'src', 'repo-structure');
|
|
16
16
|
const VECTORIZER_SRC = path.join(PACKAGE_DIR, 'src', 'vectorizer');
|
|
17
17
|
|
|
18
|
+
// Read version from package.json
|
|
19
|
+
const packageJson = JSON.parse(fs.readFileSync(path.join(PACKAGE_DIR, 'package.json'), 'utf8'));
|
|
20
|
+
const VERSION = packageJson.version;
|
|
21
|
+
|
|
18
22
|
/**
|
|
19
23
|
* Install vectorizer module with dependencies
|
|
20
24
|
*/
|
|
@@ -70,7 +74,7 @@ const program = new Command();
|
|
|
70
74
|
program
|
|
71
75
|
.name('create-opencode-workflow')
|
|
72
76
|
.description('Initialize OpenCode Workflow system for AI-assisted development')
|
|
73
|
-
.version(
|
|
77
|
+
.version(VERSION);
|
|
74
78
|
|
|
75
79
|
program
|
|
76
80
|
.command('init')
|
|
@@ -82,7 +86,7 @@ program
|
|
|
82
86
|
.option('--full', 'Create full repo structure')
|
|
83
87
|
.option('--vectorizer', 'Install vectorizer for semantic code search')
|
|
84
88
|
.action(async (options) => {
|
|
85
|
-
console.log(chalk.blue.bold(
|
|
89
|
+
console.log(chalk.blue.bold(`\nš OpenCode Workflow v${VERSION}\n`));
|
|
86
90
|
|
|
87
91
|
const targetDir = path.join(process.cwd(), '.opencode');
|
|
88
92
|
const existingConfigPath = path.join(targetDir, 'config.yaml');
|
package/package.json
CHANGED