Files
ruflo/v3/@claude-flow/guidance/package.json
T
ruv 7307d1d86a chore(release): move 18 internal leaf packages from alpha to stable semver
Every @claude-flow/* leaf still on X.Y.Z-alpha.N moves to its stable X.Y.Z
(3.0.0, cli-core 3.7.0, the two plugins 1.0.0), matching the public train's
move to stable at 3.7.0. @claude-flow/embeddings is deliberately excluded:
its registry `latest` (3.0.0-alpha.45) was built from a branch not on main,
and publishing from main would drop 139 exported names.

Validated before publish:
- API surface: each package's main build compared against its published
  `latest` tarball (files, exports/bin keys, exported names). All 18 are
  equal-or-superset; no export removed.
- Every package builds; ~7.8k tests across 17 suites pass (cli-core has no
  suite of its own and is exercised through the CLI's).

Packaging fixes made along the way:
- publishConfig.tag v3alpha/alpha removed so stable versions land on
  `latest` rather than only the legacy channel tag.
- `files` allowlists (dist + README) on the 7 packages that had none. Their
  published tarballs shipped local runtime state: .claude-flow daemon logs
  and pids, settings.json, .swarm/memory.db, headless-worker prompt logs.
  A secret scan of every affected published version found no credentials.
  mcp shrinks from 335 files to 70, and no longer ships the .claude/
  helpers copy that #3411 concerned.
- plugins/providers/testing pointed every `types` condition at a
  nonexistent `.d.js` file; now `.d.ts`, so consumer type resolution works.
- Removed three subpath exports whose targets were never built (plugins
  ./examples/*, performance ./benchmarks/*); they could only throw
  ERR_MODULE_NOT_FOUND.
- Intra-leaf ranges normalised to ^<stable>, including a `file:../security`
  and a `workspace:*` devDependency that npm publish would ship verbatim.

Security: harden attention toSQL against injection (plugins)
The 13 attention SQL builders interpolated caller-supplied vectors and
config values into SQL that AttentionExecutor executes. TypeScript types do
not exist at runtime, so a string element could break out of the quoted
vector literal. Every interpolated value is now proven finite-numeric or
boolean. A differential run of 195 legitimate inputs across all 13
mechanisms produced byte-identical SQL; the new test fails 11/13 on the
original code (which emitted DROP TABLE for 5 payloads) and passes 13/13.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-09-28 16:54:24 -04:00

198 lines
4.8 KiB
JSON

{
"name": "@claude-flow/guidance",
"version": "3.0.0",
"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",
"@claude-flow/memory": "^3.0.0",
"@claude-flow/shared": "^3.0.0"
},
"devDependencies": {
"@types/node": "^20.10.0",
"typescript": "^5.3.0",
"vitest": "^4.1.0"
},
"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"
}
}