🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/core/version.js
rUv7f5726883bdb
diff --git a/.claude/checkpoints/1754424621.json b/.claude/checkpoints/1754424621.jsonnew file mode 100644index 0000000000..e73df59f59--- /dev/null+++ b/.claude/checkpoints/1754424621.json@@ -0,0 +1 @@+{"branch": "checkpoint/pre-edit-20250805-201021", "file": "/workspaces/claude-code-flow/src/core/version.ts", "timestamp": "2025-08-05T20:10:21Z", "type": "pre-edit", "original_branch": "alpha-86"}diff --git a/.claude/checkpoints/1754424622.json b/.claude/checkpoints/1754424622.jsonnew file mode 100644index 0000000000..7cf1f3ed44--- /dev/null+++ b/.claude/checkpoints/1754424622.json@@ -0,0 +1 @@+{"tag": "checkpoint-20250805-201022", "file": "/workspaces/claude-code-flow/src/core/version.ts", "timestamp": "2025-08-05T20:10:22Z", "type": "post-edit", "branch": "alpha-86", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 12 ++++++++++ .claude-flow/metrics/task-metrics.json | 6 ++--- .claude/checkpoints/task-1754424604.json | 1 + src/core/version.ts | 41 ++++++++++++++++++++++++++++++++ 5 files changed, 58 insertions(+), 4 deletions(-) "}diff --git a/src/core/version.js b/src/core/version.jsnew file mode 100644index 0000000000..253b0da3a0--- /dev/null+++ b/src/core/version.js@@ -0,0 +1,41 @@+/**+ * Centralized version management (JavaScript version)+ * Reads version from package.json to ensure consistency+ */++import { readFileSync } from 'fs';+import { join, dirname } from 'path';+import { fileURLToPath } from 'url';++// Get the directory of this module+const __filename = fileURLToPath(import.meta.url);+const __dirname = dirname(__filename);++// Read version from package.json+let VERSION;+let BUILD_DATE;++try {+ // Navigate to project root and read package.json+ const packageJsonPath = join(__dirname, '../../package.json');+ const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf-8'));+ VERSION = packageJson.version;+ BUILD_DATE = new Date().toISOString().split('T')[0];+} catch (error) {+ // Fallback version if package.json can't be read+ console.warn('Warning: Could not read version from package.json, using fallback');+ VERSION = '2.0.0-alpha.87';+ BUILD_DATE = new Date().toISOString().split('T')[0];+}++export { VERSION, BUILD_DATE };++// Helper function to get formatted version string+export function getVersionString(includeV = true) {+ return includeV ? `v${VERSION}` : VERSION;+}++// Helper function for version display in CLI+export function displayVersion() {+ console.log(getVersionString());+}\ No newline at end of file