mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-25 06:36:49 +09:00
Closes #1793, #1652. #1793 — services/worker-daemon.ts: headless worker runs now persist their parsedOutput / output to the same metrics files the local fallback workers write to (.claude-flow/metrics/<name>.json). Previously the AI-mode branch returned the result and exited, leaving rich findings trapped in `.claude-flow/logs/headless/*_result.log` and invisible to `npx ruflo memory stats` and downstream consumers. Mapping mirrors the *Local methods: audit→security-audit.json, optimize→performance.json, testgaps→test-gaps.json, document→documentation.json, etc. Persisted record schema: { timestamp, mode:'headless', workerType, model, durationMs, tokensUsed, executionId, success, findings (= parsedOutput), rawOutputPreview (first 2KB), rawOutputLength }. Persistence is wrapped in try/catch so a write failure logs a warning but doesn't break the worker. #1652 — @claude-flow/guidance/src/analyzer.ts: abBenchmark now throws an actionable error when the provided executor is not content-aware instead of silently producing a guaranteed zero-delta verdict that costs ~$23 per run. The DefaultHeadlessExecutor IS content-aware as of @claude-flow/guidance@3.0.0-alpha.2 (it has `setContext` and physically swaps CLAUDE.md with backup/restore), so the guard only fires for caller-injected bare IHeadlessExecutor implementations. Verification: - @claude-flow/cli: 1963 tests pass / 0 fail / 46 skipped - @claude-flow/guidance: 1331 tests pass / 0 fail - Builds clean for both packages Published @claude-flow/cli@3.7.0-alpha.13, claude-flow@3.7.0-alpha.13, ruflo@3.7.0-alpha.13, and @claude-flow/guidance@3.0.0-alpha.3 with all dist-tags. Co-Authored-By: RuFlo <ruv@ruv.net>
199 lines
4.9 KiB
JSON
199 lines
4.9 KiB
JSON
{
|
|
"name": "@claude-flow/guidance",
|
|
"version": "3.0.0-alpha.3",
|
|
"description": "Guidance Control Plane - Compiles, retrieves, enforces, and evolves guidance rules for Claude Code sessions",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js"
|
|
},
|
|
"./compiler": {
|
|
"types": "./dist/compiler.d.ts",
|
|
"import": "./dist/compiler.js"
|
|
},
|
|
"./retriever": {
|
|
"types": "./dist/retriever.d.ts",
|
|
"import": "./dist/retriever.js"
|
|
},
|
|
"./gates": {
|
|
"types": "./dist/gates.d.ts",
|
|
"import": "./dist/gates.js"
|
|
},
|
|
"./hooks": {
|
|
"types": "./dist/hooks.d.ts",
|
|
"import": "./dist/hooks.js"
|
|
},
|
|
"./ledger": {
|
|
"types": "./dist/ledger.d.ts",
|
|
"import": "./dist/ledger.js"
|
|
},
|
|
"./optimizer": {
|
|
"types": "./dist/optimizer.d.ts",
|
|
"import": "./dist/optimizer.js"
|
|
},
|
|
"./headless": {
|
|
"types": "./dist/headless.d.ts",
|
|
"import": "./dist/headless.js"
|
|
},
|
|
"./persistence": {
|
|
"types": "./dist/persistence.d.ts",
|
|
"import": "./dist/persistence.js"
|
|
},
|
|
"./gateway": {
|
|
"types": "./dist/gateway.d.ts",
|
|
"import": "./dist/gateway.js"
|
|
},
|
|
"./manifest-validator": {
|
|
"types": "./dist/manifest-validator.d.ts",
|
|
"import": "./dist/manifest-validator.js"
|
|
},
|
|
"./proof": {
|
|
"types": "./dist/proof.d.ts",
|
|
"import": "./dist/proof.js"
|
|
},
|
|
"./memory-gate": {
|
|
"types": "./dist/memory-gate.d.ts",
|
|
"import": "./dist/memory-gate.js"
|
|
},
|
|
"./coherence": {
|
|
"types": "./dist/coherence.d.ts",
|
|
"import": "./dist/coherence.js"
|
|
},
|
|
"./artifacts": {
|
|
"types": "./dist/artifacts.d.ts",
|
|
"import": "./dist/artifacts.js"
|
|
},
|
|
"./capabilities": {
|
|
"types": "./dist/capabilities.d.ts",
|
|
"import": "./dist/capabilities.js"
|
|
},
|
|
"./evolution": {
|
|
"types": "./dist/evolution.d.ts",
|
|
"import": "./dist/evolution.js"
|
|
},
|
|
"./conformance-kit": {
|
|
"types": "./dist/conformance-kit.d.ts",
|
|
"import": "./dist/conformance-kit.js"
|
|
},
|
|
"./ruvbot-integration": {
|
|
"types": "./dist/ruvbot-integration.d.ts",
|
|
"import": "./dist/ruvbot-integration.js"
|
|
},
|
|
"./trust": {
|
|
"types": "./dist/trust.d.ts",
|
|
"import": "./dist/trust.js"
|
|
},
|
|
"./truth-anchors": {
|
|
"types": "./dist/truth-anchors.d.ts",
|
|
"import": "./dist/truth-anchors.js"
|
|
},
|
|
"./uncertainty": {
|
|
"types": "./dist/uncertainty.d.ts",
|
|
"import": "./dist/uncertainty.js"
|
|
},
|
|
"./temporal": {
|
|
"types": "./dist/temporal.d.ts",
|
|
"import": "./dist/temporal.js"
|
|
},
|
|
"./authority": {
|
|
"types": "./dist/authority.d.ts",
|
|
"import": "./dist/authority.js"
|
|
},
|
|
"./adversarial": {
|
|
"types": "./dist/adversarial.d.ts",
|
|
"import": "./dist/adversarial.js"
|
|
},
|
|
"./meta-governance": {
|
|
"types": "./dist/meta-governance.d.ts",
|
|
"import": "./dist/meta-governance.js"
|
|
},
|
|
"./continue-gate": {
|
|
"types": "./dist/continue-gate.d.ts",
|
|
"import": "./dist/continue-gate.js"
|
|
},
|
|
"./wasm-kernel": {
|
|
"types": "./dist/wasm-kernel.d.ts",
|
|
"import": "./dist/wasm-kernel.js"
|
|
},
|
|
"./generators": {
|
|
"types": "./dist/generators.d.ts",
|
|
"import": "./dist/generators.js"
|
|
},
|
|
"./analyzer": {
|
|
"types": "./dist/analyzer.d.ts",
|
|
"import": "./dist/analyzer.js"
|
|
}
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"wasm-pkg"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc -p tsconfig.json",
|
|
"clean": "rm -rf dist",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest watch",
|
|
"test:coverage": "vitest run --coverage",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@claude-flow/hooks": "^3.0.0-alpha.7",
|
|
"@claude-flow/memory": "^3.0.0-alpha.2",
|
|
"@claude-flow/shared": "^3.0.0-alpha.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.10.0",
|
|
"typescript": "^5.3.0",
|
|
"vitest": "^4.0.16"
|
|
},
|
|
"engines": {
|
|
"node": ">=20.0.0"
|
|
},
|
|
"keywords": [
|
|
"claude-flow",
|
|
"claude-code",
|
|
"claude",
|
|
"anthropic",
|
|
"ai-agent",
|
|
"ai-governance",
|
|
"agent-governance",
|
|
"guidance",
|
|
"control-plane",
|
|
"policy-enforcement",
|
|
"enforcement-gates",
|
|
"proof-chain",
|
|
"trust-system",
|
|
"long-horizon",
|
|
"autonomous-agent",
|
|
"claude-md",
|
|
"CLAUDE.md",
|
|
"memory-governance",
|
|
"adversarial-defense",
|
|
"prompt-injection",
|
|
"wasm",
|
|
"ruvbot",
|
|
"ruv",
|
|
"ai-safety",
|
|
"agent-orchestration",
|
|
"multi-agent",
|
|
"code-generation",
|
|
"llm-governance",
|
|
"mcp",
|
|
"model-context-protocol"
|
|
],
|
|
"author": "Claude Flow Team",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/ruvnet/claude-flow.git",
|
|
"directory": "v3/@claude-flow/guidance"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"tag": "v3alpha"
|
|
}
|
|
}
|