Files
ruflo/v3/@claude-flow/cli/package.json
T
rUvandClaude Opus 4.5 2c146e7050 feat(cli): Add auto-update system for @claude-flow packages (ADR-025)
Implements automatic package update checking and installation:

## Features
- Rate-limited startup check (24h default, configurable)
- Automatic patch updates for security-critical packages
- Package compatibility validation before updates
- Rollback capability with history logging
- CLI commands: update check/all/history/rollback/clear-cache

## Architecture
- UpdateChecker: Queries npm registry, compares versions
- RateLimiter: File-based cache in ~/.claude-flow/update-state.json
- PackageValidator: Compatibility matrix validation
- UpdateExecutor: npm install with rollback support

## Configuration
- CLAUDE_FLOW_AUTO_UPDATE=false to disable
- CLAUDE_FLOW_FORCE_UPDATE=true to force check
- Skips automatically in CI environments

## Package Priority
- critical: @claude-flow/security (always auto-update patches)
- high: @claude-flow/cli (auto-update patches)
- normal: @claude-flow/embeddings, integration (notify only)
- low: @claude-flow/testing (notify only)

Published as @claude-flow/cli@3.0.0-alpha.83

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 15:42:32 +00:00

60 lines
1.5 KiB
JSON

{
"name": "@claude-flow/cli",
"version": "3.0.0-alpha.83",
"type": "module",
"description": "CLI module - command parsing, prompts, output formatting",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"sideEffects": false,
"bin": {
"cli": "./bin/cli.js",
"claude-flow": "./bin/cli.js",
"claude-flow-mcp": "./bin/mcp-server.js"
},
"exports": {
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
},
"./ruvector": {
"types": "./dist/src/ruvector/index.d.ts",
"import": "./dist/src/ruvector/index.js"
},
"./ruvector/*": {
"types": "./dist/src/ruvector/*.d.ts",
"import": "./dist/src/ruvector/*.js"
},
"./mcp-tools": {
"types": "./dist/src/mcp-tools/index.d.ts",
"import": "./dist/src/mcp-tools/index.js"
}
},
"files": [
"dist",
"bin",
".claude",
"README.md"
],
"scripts": {
"build": "tsc",
"test": "vitest run",
"test:plugin-store": "npx tsx src/plugins/tests/standalone-test.ts",
"test:pattern-store": "npx tsx src/transfer/store/tests/standalone-test.ts",
"release": "npm version prerelease --preid=alpha && npm run publish:all",
"publish:all": "./scripts/publish.sh"
},
"devDependencies": {
"typescript": "^5.3.0",
"vitest": "^4.0.16"
},
"dependencies": {
"@claude-flow/shared": "^3.0.0-alpha.1",
"@claude-flow/aidefence": "^3.0.2",
"@claude-flow/embeddings": "^3.0.0-alpha.12"
},
"publishConfig": {
"access": "public",
"tag": "alpha"
}
}