claude-flow-novice 2.18.12 → 2.18.14
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/.backups/unknown/1765417503_2999b9ec66f591dd76075617ec31fcea/metadata.json +8 -0
- package/.backups/unknown/1765417503_2999b9ec66f591dd76075617ec31fcea/original +3 -0
- package/.backups/unknown/1765417503_2999b9ec66f591dd76075617ec31fcea/revert.sh +7 -0
- package/.backups/unknown/1765417531_2999b9ec66f591dd76075617ec31fcea/metadata.json +8 -0
- package/.backups/unknown/1765417531_2999b9ec66f591dd76075617ec31fcea/original +3 -0
- package/.backups/unknown/1765417531_2999b9ec66f591dd76075617ec31fcea/revert.sh +7 -0
- package/.backups/unknown/1765417552_2999b9ec66f591dd76075617ec31fcea/metadata.json +8 -0
- package/.backups/unknown/1765417552_2999b9ec66f591dd76075617ec31fcea/original +3 -0
- package/.backups/unknown/1765417552_2999b9ec66f591dd76075617ec31fcea/revert.sh +7 -0
- package/.backups/unknown/1765417613_1f34dbf0fe1ec3b6cb74ba7c4e12a2a4/metadata.json +8 -0
- package/.backups/unknown/1765417613_1f34dbf0fe1ec3b6cb74ba7c4e12a2a4/original +1212 -0
- package/.backups/unknown/1765417613_1f34dbf0fe1ec3b6cb74ba7c4e12a2a4/revert.sh +7 -0
- package/.backups/unknown/1765417613_332e9bb223a26270398922640c1c1653/metadata.json +8 -0
- package/.backups/unknown/1765417613_332e9bb223a26270398922640c1c1653/original +1212 -0
- package/.backups/unknown/1765417613_332e9bb223a26270398922640c1c1653/revert.sh +7 -0
- package/.backups/unknown/1765417613_45880a7afef063347b701e7e88e2df9c/metadata.json +8 -0
- package/.backups/unknown/1765417613_45880a7afef063347b701e7e88e2df9c/original +1212 -0
- package/.backups/unknown/1765417613_45880a7afef063347b701e7e88e2df9c/revert.sh +7 -0
- package/.backups/unknown/1765417614_1b6c3b658c2891dbe245aea4bad41661/metadata.json +8 -0
- package/.backups/unknown/1765417614_1b6c3b658c2891dbe245aea4bad41661/original +1228 -0
- package/.backups/unknown/1765417614_1b6c3b658c2891dbe245aea4bad41661/revert.sh +7 -0
- package/.backups/unknown/1765417614_1ed5bd129f0b5d1b297a04ec5267ef62/metadata.json +8 -0
- package/.backups/unknown/1765417614_1ed5bd129f0b5d1b297a04ec5267ef62/original +1237 -0
- package/.backups/unknown/1765417614_1ed5bd129f0b5d1b297a04ec5267ef62/revert.sh +7 -0
- package/.backups/unknown/1765417614_28e032bd1b62dbfcecbd56327a0b0e23/metadata.json +8 -0
- package/.backups/unknown/1765417614_28e032bd1b62dbfcecbd56327a0b0e23/original +1240 -0
- package/.backups/unknown/1765417614_28e032bd1b62dbfcecbd56327a0b0e23/revert.sh +7 -0
- package/.backups/unknown/1765417614_40a1ce1b0efa2e1ba1958c27b2cbc557/metadata.json +8 -0
- package/.backups/unknown/1765417614_40a1ce1b0efa2e1ba1958c27b2cbc557/original +1216 -0
- package/.backups/unknown/1765417614_40a1ce1b0efa2e1ba1958c27b2cbc557/revert.sh +7 -0
- package/.backups/unknown/1765417614_f65dbf58cff7a9aa1c5c3d0d1618074a/metadata.json +8 -0
- package/.backups/unknown/1765417614_f65dbf58cff7a9aa1c5c3d0d1618074a/original +1238 -0
- package/.backups/unknown/1765417614_f65dbf58cff7a9aa1c5c3d0d1618074a/revert.sh +7 -0
- package/.backups/unknown/1765417615_0f45c28b9b8d5204974421c06075ff74/metadata.json +8 -0
- package/.backups/unknown/1765417615_0f45c28b9b8d5204974421c06075ff74/original +1167 -0
- package/.backups/unknown/1765417615_0f45c28b9b8d5204974421c06075ff74/revert.sh +7 -0
- package/.backups/unknown/1765417615_41d36156891ddb6f63d1b4da59d1db4c/metadata.json +8 -0
- package/.backups/unknown/1765417615_41d36156891ddb6f63d1b4da59d1db4c/original +1242 -0
- package/.backups/unknown/1765417615_41d36156891ddb6f63d1b4da59d1db4c/revert.sh +7 -0
- package/.backups/unknown/1765417709_77dda8631459cfc2ab94b8928f7d90b4/metadata.json +8 -0
- package/.backups/unknown/1765417709_77dda8631459cfc2ab94b8928f7d90b4/original +2 -0
- package/.backups/unknown/1765417709_77dda8631459cfc2ab94b8928f7d90b4/revert.sh +7 -0
- package/.backups/unknown/1765417775_1405837bacf112ba832a139840fe94e7/metadata.json +8 -0
- package/.backups/unknown/1765417775_1405837bacf112ba832a139840fe94e7/original +1169 -0
- package/.backups/unknown/1765417775_1405837bacf112ba832a139840fe94e7/revert.sh +7 -0
- package/.backups/unknown/1765417775_8044b4a5cfdcb5cd71317831ad53f5a2/metadata.json +8 -0
- package/.backups/unknown/1765417775_8044b4a5cfdcb5cd71317831ad53f5a2/original +1171 -0
- package/.backups/unknown/1765417775_8044b4a5cfdcb5cd71317831ad53f5a2/revert.sh +7 -0
- package/.backups/unknown/1765417775_8eb94d60151e1db262377fbf8a187212/metadata.json +8 -0
- package/.backups/unknown/1765417775_8eb94d60151e1db262377fbf8a187212/original +1170 -0
- package/.backups/unknown/1765417775_8eb94d60151e1db262377fbf8a187212/revert.sh +7 -0
- package/.backups/unknown/1765417776_a0d4b709e15e0bfa002c4b128f5e4603/metadata.json +8 -0
- package/.backups/unknown/1765417776_a0d4b709e15e0bfa002c4b128f5e4603/original +1173 -0
- package/.backups/unknown/1765417776_a0d4b709e15e0bfa002c4b128f5e4603/revert.sh +7 -0
- package/.backups/unknown/1765417776_cb1bc24d98b63564eb73ef782b8c68b3/metadata.json +8 -0
- package/.backups/unknown/1765417776_cb1bc24d98b63564eb73ef782b8c68b3/original +1170 -0
- package/.backups/unknown/1765417776_cb1bc24d98b63564eb73ef782b8c68b3/revert.sh +7 -0
- package/.backups/unknown/1765417777_1c4cc8c33f476f0c87c8efd4e34efc22/metadata.json +8 -0
- package/.backups/unknown/1765417777_1c4cc8c33f476f0c87c8efd4e34efc22/original +1172 -0
- package/.backups/unknown/1765417777_1c4cc8c33f476f0c87c8efd4e34efc22/revert.sh +7 -0
- package/.backups/unknown/1765417777_325de83ffd34544909b8b9aa6e18dd05/metadata.json +8 -0
- package/.backups/unknown/1765417777_325de83ffd34544909b8b9aa6e18dd05/original +1175 -0
- package/.backups/unknown/1765417777_325de83ffd34544909b8b9aa6e18dd05/revert.sh +7 -0
- package/.backups/unknown/1765417950_402e7c1a8956b56ac7b88e89f024acb4/metadata.json +8 -0
- package/.backups/unknown/1765417950_402e7c1a8956b56ac7b88e89f024acb4/original +1178 -0
- package/.backups/unknown/1765417950_402e7c1a8956b56ac7b88e89f024acb4/revert.sh +7 -0
- package/.backups/unknown/1765417950_647e27e4da18ae42c339e04b4d334feb/metadata.json +8 -0
- package/.backups/unknown/1765417950_647e27e4da18ae42c339e04b4d334feb/original +1174 -0
- package/.backups/unknown/1765417950_647e27e4da18ae42c339e04b4d334feb/revert.sh +7 -0
- package/.backups/unknown/1765417951_1424d2dd67b8c8a4e7cf649b379d21f2/metadata.json +8 -0
- package/.backups/unknown/1765417951_1424d2dd67b8c8a4e7cf649b379d21f2/original +1194 -0
- package/.backups/unknown/1765417951_1424d2dd67b8c8a4e7cf649b379d21f2/revert.sh +7 -0
- package/.backups/unknown/1765417951_6df070ca287ea94a7f08efc69ec9ea51/metadata.json +8 -0
- package/.backups/unknown/1765417951_6df070ca287ea94a7f08efc69ec9ea51/original +1186 -0
- package/.backups/unknown/1765417951_6df070ca287ea94a7f08efc69ec9ea51/revert.sh +7 -0
- package/.backups/unknown/1765417951_848919a1365f6536e5ef8d85d0c80fa7/metadata.json +8 -0
- package/.backups/unknown/1765417951_848919a1365f6536e5ef8d85d0c80fa7/original +1180 -0
- package/.backups/unknown/1765417951_848919a1365f6536e5ef8d85d0c80fa7/revert.sh +7 -0
- package/.backups/unknown/1765417951_b0d1d4ecf85ad10cda0f3900d414b608/metadata.json +8 -0
- package/.backups/unknown/1765417951_b0d1d4ecf85ad10cda0f3900d414b608/original +1198 -0
- package/.backups/unknown/1765417951_b0d1d4ecf85ad10cda0f3900d414b608/revert.sh +7 -0
- package/.backups/unknown/1765417952_2b720e213b5197cbaad53f9f0857f23f/metadata.json +8 -0
- package/.backups/unknown/1765417952_2b720e213b5197cbaad53f9f0857f23f/original +1202 -0
- package/.backups/unknown/1765417952_2b720e213b5197cbaad53f9f0857f23f/revert.sh +7 -0
- package/.backups/unknown/1765417952_ef1d15e8b83a802a0c0f0fc03e56a89c/metadata.json +8 -0
- package/.backups/unknown/1765417952_ef1d15e8b83a802a0c0f0fc03e56a89c/original +1202 -0
- package/.backups/unknown/1765417952_ef1d15e8b83a802a0c0f0fc03e56a89c/revert.sh +7 -0
- package/.backups/unknown/1765418048_ac94238a69a6f86a6ba9d31f623c18a7/metadata.json +8 -0
- package/.backups/unknown/1765418048_ac94238a69a6f86a6ba9d31f623c18a7/original +1209 -0
- package/.backups/unknown/1765418048_ac94238a69a6f86a6ba9d31f623c18a7/revert.sh +7 -0
- package/.backups/unknown/1765418048_f3afed98da63fef9ff57fb5646976f63/metadata.json +8 -0
- package/.backups/unknown/1765418048_f3afed98da63fef9ff57fb5646976f63/original +1207 -0
- package/.backups/unknown/1765418048_f3afed98da63fef9ff57fb5646976f63/revert.sh +7 -0
- package/.backups/unknown/1765418049_9c392702a4e1cace37d17f6f2dfaf54e/metadata.json +8 -0
- package/.backups/unknown/1765418049_9c392702a4e1cace37d17f6f2dfaf54e/original +1207 -0
- package/.backups/unknown/1765418049_9c392702a4e1cace37d17f6f2dfaf54e/revert.sh +7 -0
- package/.backups/unknown/1765418049_9e0777555b51dea4d24d0503b584cfc5/metadata.json +8 -0
- package/.backups/unknown/1765418049_9e0777555b51dea4d24d0503b584cfc5/original +1193 -0
- package/.backups/unknown/1765418049_9e0777555b51dea4d24d0503b584cfc5/revert.sh +7 -0
- package/.backups/unknown/1765418050_22d534bed68f9f5d883bee54e7cbc4d3/metadata.json +8 -0
- package/.backups/unknown/1765418050_22d534bed68f9f5d883bee54e7cbc4d3/original +1194 -0
- package/.backups/unknown/1765418050_22d534bed68f9f5d883bee54e7cbc4d3/revert.sh +7 -0
- package/.backups/unknown/1765418051_d9243722dc90dabc851c5767a62ac7f2/metadata.json +8 -0
- package/.backups/unknown/1765418051_d9243722dc90dabc851c5767a62ac7f2/original +1193 -0
- package/.backups/unknown/1765418051_d9243722dc90dabc851c5767a62ac7f2/revert.sh +7 -0
- package/.backups/unknown/1765418177_21a2fa816d25d419b54ef2d429aab474/metadata.json +8 -0
- package/.backups/unknown/1765418177_21a2fa816d25d419b54ef2d429aab474/original +1191 -0
- package/.backups/unknown/1765418177_21a2fa816d25d419b54ef2d429aab474/revert.sh +7 -0
- package/.backups/unknown/1765418177_33b673dce1eb59d7eb4f752aec882794/metadata.json +8 -0
- package/.backups/unknown/1765418177_33b673dce1eb59d7eb4f752aec882794/original +1190 -0
- package/.backups/unknown/1765418177_33b673dce1eb59d7eb4f752aec882794/revert.sh +7 -0
- package/.backups/unknown/1765418177_72568812ea5a73cf6861a6b14da065fa/metadata.json +8 -0
- package/.backups/unknown/1765418177_72568812ea5a73cf6861a6b14da065fa/original +1191 -0
- package/.backups/unknown/1765418177_72568812ea5a73cf6861a6b14da065fa/revert.sh +7 -0
- package/.backups/unknown/1765418178_20c28b95f12194fe4b81cfb35f4f3757/metadata.json +8 -0
- package/.backups/unknown/1765418178_20c28b95f12194fe4b81cfb35f4f3757/original +1189 -0
- package/.backups/unknown/1765418178_20c28b95f12194fe4b81cfb35f4f3757/revert.sh +7 -0
- package/.backups/unknown/1765418178_cdf68719cc09173769027743e2718ad4/metadata.json +8 -0
- package/.backups/unknown/1765418178_cdf68719cc09173769027743e2718ad4/original +1197 -0
- package/.backups/unknown/1765418178_cdf68719cc09173769027743e2718ad4/revert.sh +7 -0
- package/.backups/unknown/1765418178_eb19e0f8542405480e51af09fad84b71/metadata.json +8 -0
- package/.backups/unknown/1765418178_eb19e0f8542405480e51af09fad84b71/original +1190 -0
- package/.backups/unknown/1765418178_eb19e0f8542405480e51af09fad84b71/revert.sh +7 -0
- package/.backups/unknown/1765418236_c016507725847318a3c369b047cbb802/metadata.json +8 -0
- package/.backups/unknown/1765418236_c016507725847318a3c369b047cbb802/original +1197 -0
- package/.backups/unknown/1765418236_c016507725847318a3c369b047cbb802/revert.sh +7 -0
- package/.backups/unknown/1765418237_932c3cc3a5c537b7933c2370b65f4b39/metadata.json +8 -0
- package/.backups/unknown/1765418237_932c3cc3a5c537b7933c2370b65f4b39/original +1197 -0
- package/.backups/unknown/1765418237_932c3cc3a5c537b7933c2370b65f4b39/revert.sh +7 -0
- package/.claude/agents/cfn-dev-team/utility/epic-creator-v2.md +194 -2
- package/.claude/agents/cfn-dev-team/utility/epic-creator-v2.sh +264 -0
- package/.claude/agents/cfn-dev-team/utility/epic-creator-v2.sh.backup +698 -0
- package/.claude/agents/custom/claude-code-expert.md +56 -0
- package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-docker-runtime/SKILL.md +1 -1
- package/.claude/hooks/README.md +148 -0
- package/.claude/hooks/SessionStart:cfn-load-openai-key.sh +35 -0
- package/.claude/hooks/cfn-invoke-pre-edit.sh +1 -1
- package/.claude/hooks/cfn-load-cerebras-env.sh +65 -0
- package/.claude/hooks/cfn-precompact-enhanced.sh +283 -0
- package/.claude/hooks/deprecated/README.md +27 -0
- package/.claude/settings.json +71 -6
- package/.claude/skills/cfn-agent-lifecycle/SKILL.md +1 -1
- package/.claude/skills/cfn-agent-tooling/SKILL.md +1 -1
- package/.claude/skills/cfn-cerebras-coordinator/QUICKSTART.md +348 -0
- package/.claude/skills/cfn-cerebras-coordinator/README.md +525 -0
- package/.claude/skills/cfn-cerebras-coordinator/TDD_COORDINATOR_OVERVIEW.md +284 -0
- package/.claude/skills/cfn-cerebras-coordinator/conversations/2025-12-10-py-v2-test-1733854200.json +36 -0
- package/.claude/skills/cfn-cerebras-coordinator/conversations/2025-12-10-py-v3-test-1765383241.json +36 -0
- package/.claude/skills/cfn-cerebras-coordinator/conversations/2025-12-10-rust-v2-test-1765381361.json +36 -0
- package/.claude/skills/cfn-cerebras-coordinator/conversations/2025-12-10-rust-v3-test-1765383242.json +46 -0
- package/.claude/skills/cfn-cerebras-coordinator/conversations/2025-12-10-ts-v2-test-1733864400.json +66 -0
- package/.claude/skills/cfn-cerebras-coordinator/conversations/2025-12-10-ts-v3-test-1765383238.json +66 -0
- package/.claude/skills/cfn-cerebras-coordinator/conversations/2025-12-10-ts-v4-test-1765386506.json +66 -0
- package/.claude/skills/cfn-cerebras-coordinator/conversations/2025-12-10-ts-v5-test-1765393100.json +66 -0
- package/.claude/skills/cfn-cerebras-coordinator/example-usage.sh +206 -0
- package/.claude/skills/cfn-cerebras-coordinator/lib/tdd-conversation-coordinator.ts +569 -0
- package/.claude/skills/cfn-cerebras-coordinator/test-tdd-coordinator.sh +250 -0
- package/.claude/skills/cfn-compilation-error-fixer/SKILL.md +1 -1
- package/.claude/skills/cfn-compilation-error-fixer/lib/fixer/cerebras-gated-fixer-v2.ts +1 -1
- package/.claude/skills/cfn-config/SKILL.md +1 -1
- package/.claude/skills/cfn-dependency-management/SKILL.md +1 -1
- package/.claude/skills/cfn-deployment-lifecycle/SKILL.md +1 -1
- package/.claude/skills/cfn-edit-safety/SKILL.md +1 -1
- package/.claude/skills/cfn-epic-creator/SKILL.md +392 -0
- package/.claude/skills/cfn-epic-creator/estimate-costs.sh +524 -0
- package/.claude/skills/cfn-epic-creator/invoke.sh +445 -0
- package/.claude/skills/cfn-epic-creator/parse-personas.sh +533 -0
- package/.claude/skills/cfn-epic-creator/security-utils.sh +268 -0
- package/.claude/skills/cfn-epic-creator/security-verification-demo.sh +127 -0
- package/.claude/skills/cfn-epic-creator/test-invoke.sh +620 -0
- package/.claude/skills/cfn-epic-creator/test-security-fixes.sh +195 -0
- package/.claude/skills/cfn-epic-creator/test-security-simple.sh +165 -0
- package/.claude/skills/cfn-epic-creator/validate-epic.sh +474 -0
- package/.claude/skills/cfn-epic-parser/SKILL.md +8 -0
- package/.claude/skills/cfn-error-management/SKILL.md +1 -1
- package/.claude/skills/cfn-intervention-system/SKILL.md +1 -1
- package/.claude/skills/cfn-knowledge-base/SKILL.md +1 -1
- package/.claude/skills/cfn-local-ruvector-accelerator/.backups/unknown/1765358428_2cf0ad7377232c919ff0a65630cb307d/metadata.json +8 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/.backups/unknown/1765358428_2cf0ad7377232c919ff0a65630cb307d/original +209 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/.backups/unknown/1765358428_2cf0ad7377232c919ff0a65630cb307d/revert.sh +7 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/AGENT_INTEGRATION_PATTERNS.md +255 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/Cargo.toml +8 -1
- package/.claude/skills/cfn-local-ruvector-accelerator/Cargo.toml.backup +47 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/EXTRACTION_EXAMPLES.md +287 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/README.md +2 -563
- package/.claude/skills/cfn-local-ruvector-accelerator/SCHEMA_V2_IMPLEMENTATION.md +151 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/SECURITY_IMPLEMENTATION.md +185 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/SKILL.md +8 -343
- package/.claude/skills/cfn-local-ruvector-accelerator/docs/EXECUTIVE_SUMMARY.txt +90 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/docs/PHASE_4_QUERY_API.md +210 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/docs/RUST_AST_EXTRACTOR_IMPLEMENTATION.md +222 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/docs/TRANSACTION_MANAGEMENT.md +241 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/docs/VALIDATION_FINDINGS.txt +250 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/epic-ast-indexer.json +335 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/index-code.sh +292 -96
- package/.claude/skills/cfn-local-ruvector-accelerator/index-code.sh.backup +249 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/index_all.sh +65 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/cli/find.rs +214 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/cli/index.rs +275 -94
- package/.claude/skills/cfn-local-ruvector-accelerator/src/cli/index_ast.rs +767 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/cli/index_modified.rs +37 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/cli/init.rs +17 -12
- package/.claude/skills/cfn-local-ruvector-accelerator/src/cli/migration.rs +34 -1
- package/.claude/skills/cfn-local-ruvector-accelerator/src/cli/mod.rs +6 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/cli/query.rs +2 -2
- package/.claude/skills/cfn-local-ruvector-accelerator/src/cli/refs.rs +209 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/embeddings.rs +82 -33
- package/.claude/skills/cfn-local-ruvector-accelerator/src/extractors/mod.rs +251 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/extractors/rust.rs +425 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/extractors/rust_placeholder.rs +420 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/extractors/text_fallback.rs +490 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/extractors/typescript.rs +520 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/extractors/typescript_full.rs +531 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/lib.rs +20 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/main.rs +33 -2
- package/.claude/skills/cfn-local-ruvector-accelerator/src/main.rs.backup +360 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/migration.rs +325 -318
- package/.claude/skills/cfn-local-ruvector-accelerator/src/migration_backup.rs +325 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/migration_tx.rs +513 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/paths.rs +29 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/query_api.rs +609 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/schema_v2.rs +603 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/search_engine.rs +150 -29
- package/.claude/skills/cfn-local-ruvector-accelerator/src/security_tests.rs +154 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/sqlite_store.rs +1 -1
- package/.claude/skills/cfn-local-ruvector-accelerator/src/store_v2.rs +583 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/store_v2_backup.rs +560 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/store_v2_fixed.rs +0 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/store_v2_tx.rs +397 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/test_schema.rs +228 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/transaction_tests.rs +410 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/test_ast_indexing.rs +59 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/test_query_api.sh +103 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/test_schema.sql +158 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/test_schema_v2.sql +147 -0
- package/.claude/skills/cfn-loop-orchestration-v2/SKILL.md +1 -1
- package/.claude/skills/cfn-loop-orchestration-v2/lib/decision/SKILL.md +8 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/SKILL.md +1 -1
- package/.claude/skills/cfn-loop-orchestration-v2/lib/output/SKILL.md +8 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/SKILL.md +11 -2
- package/.claude/skills/cfn-mdap-context-injection/SKILL.md +31 -10
- package/.claude/skills/cfn-mdap-error-fixer/skill.md +15 -205
- package/.claude/skills/cfn-memory-persistence/lib/auto/SKILL.md +7 -0
- package/.claude/skills/cfn-memory-persistence/lib/management/SKILL.md +7 -0
- package/.claude/skills/cfn-parameterized-queries/SKILL.md +8 -0
- package/.claude/skills/cfn-planning/SKILL.md +1 -1
- package/.claude/skills/cfn-session-handoff/SKILL.md +1 -53
- package/.claude/skills/cfn-skill-management/SKILL.md +1 -1
- package/.claude/skills/cfn-task-decomposition/SKILL.md +1 -0
- package/.claude/skills/cfn-task-intelligence/SKILL.md +39 -18
- package/.claude/skills/cfn-task-planning/SKILL.md +37 -12
- package/.claude/skills/cfn-transparency-middleware/SKILL.md +1 -1
- package/.claude/skills/cfn-utilities/SKILL.md +1 -1
- package/.claude/skills/cfn-validation-framework/SKILL.md +3 -60
- package/.claude/skills/cfn-vision-analysis/SKILL.md +3 -20
- package/.claude-flow/metrics/performance.json +3 -3
- package/.claude-flow/metrics/task-metrics.json +3 -3
- package/.ruvector/index_v2.db-shm +0 -0
- package/.ruvector/index_v2.db-wal +0 -0
- package/CLAUDE.md +9 -1
- package/README.md +56 -0
- package/docs/AGENT_PRODUCTION_FEEDBACK_PATTERNS.md +389 -0
- package/docs/CEREBRAS_TDD_COORDINATOR_TEST_RESULTS.md +213 -0
- package/docs/CEREBRAS_TDD_ROUND1_VS_ROUND2_COMPARISON.md +225 -0
- package/docs/CEREBRAS_TDD_ROUND3_FINAL_RESULTS.md +264 -0
- package/docs/EPIC_CREATOR_V2_ARCHITECTURE.md +629 -0
- package/docs/HOOKS_IMPLEMENTATION_PRIORITY.md +585 -0
- package/docs/SKILLS_HOOKS_INTEGRATION.md +1074 -0
- package/epic-with-personas-2025-12-09-17-15-13.json +253 -0
- package/index/index.bin +0 -0
- package/index/metadata.json +1 -0
- package/package.json +2 -1
- package/test-epic-creator-security.sh +203 -0
- package/.claude/skills/cfn-compilation-error-fixer/HANDOFF.md +0 -29
- package/.claude/skills/cfn-local-ruvector-accelerator/__pycache__/search_engine_v2.cpython-312.pyc +0 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/search_engine.py +0 -200
- package/.ruvector/index.db-journal +0 -0
- package/jest.config.ts.cjs +0 -17
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-cerebras-code-generator/SKILL.md +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-cerebras-code-generator/context-analyzer.sh +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-cerebras-code-generator/generate-code.sh +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-docker-runtime/execute.sh +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-docker-runtime/lib/logging/INTEGRATION.md +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-docker-runtime/lib/logging/SAMPLE_OUTPUTS.md +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-docker-runtime/lib/logging/SKILL.md +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-docker-runtime/lib/logging/capture-container-logs.sh +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-docker-runtime/lib/logging/enable-logging.sh +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-docker-runtime/lib/logging/init-hybrid-logging.sh +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-docker-runtime/lib/logging/queries/analytics-summary.sh +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-docker-runtime/lib/logging/queries/query-agent-timeline.sh +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-docker-runtime/lib/logging/queries/query-consensus-history.sh +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-docker-runtime/lib/logging/queries/query-coordination-timeline.sh +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-docker-runtime/lib/logging/queries/query-failed-containers.sh +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-docker-runtime/lib/logging/queries/query-gate-checks.sh +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-docker-runtime/lib/logging/schema.sql +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-docker-runtime/lib/logging/sqlite-helpers.sh +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-docker-runtime/lib/logging/test-hybrid-logging.sh +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-docker-runtime/lib/mcp/SKILL.md +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-docker-runtime/lib/mcp/skill-mcp-selector.js +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-docker-runtime/lib/orchestration/SKILL.md +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-docker-runtime/lib/orchestration/orchestrate.sh +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-docker-runtime/lib/spawning/SKILL.md +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-docker-runtime/lib/spawning/spawn-agent.sh +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-docker-runtime/lib/waves/SKILL.md +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-docker-runtime/lib/waves/cleanup-wave.sh +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-docker-runtime/lib/waves/lib/docker-helpers.sh +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-docker-runtime/lib/waves/monitor-wave.sh +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-docker-runtime/lib/waves/spawn-wave.sh +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-node-heap-sizer/SKILL.md +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/cfn-node-heap-sizer/task-mode-heap-limiter.sh +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/deprecated/analyze-patterns.sh +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/equation-solver/README.md +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/equation-solver/SECURITY.md +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/equation-solver/SKILL.md +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/equation-solver/package.json +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/equation-solver/solve.sh +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/equation-solver/test-equation-solver-minimal.sh +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/equation-solver/test-equation-solver.sh +0 -0
- /package/.claude/{skills → cfn-extras/skills/deprecated}/equation-solver/test.cjs +0 -0
- /package/.claude/hooks/{cfn-credential-scanner.sh → deprecated/cfn-credential-scanner.sh} +0 -0
- /package/.claude/hooks/{cfn-detect-hardcoded-credentials.sh → deprecated/cfn-detect-hardcoded-credentials.sh} +0 -0
- /package/.claude/hooks/{cfn-invoke-post-edit-ts.sh → deprecated/cfn-invoke-post-edit-ts.sh} +0 -0
- /package/.claude/hooks/{cfn-invoke-pre-edit-ts.sh → deprecated/cfn-invoke-pre-edit-ts.sh} +0 -0
- /package/.claude/hooks/{cfn-invoke-security-validation.sh → deprecated/cfn-invoke-security-validation.sh} +0 -0
- /package/.claude/hooks/{cfn-lint-sql-injection.sh → deprecated/cfn-lint-sql-injection.sh} +0 -0
- /package/.claude/hooks/{cfn-post-edit.sh → deprecated/cfn-post-edit.sh} +0 -0
- /package/.claude/hooks/{cfn-pre-edit-backup.sh → deprecated/cfn-pre-edit-backup.sh} +0 -0
- /package/.claude/skills/cfn-local-ruvector-accelerator/{embeddings_manager.py → embeddings_manager.py.backup} +0 -0
- /package/{.ruvector → .claude/skills/cfn-local-ruvector-accelerator/index}/index.bin +0 -0
- /package/{.ruvector → .claude/skills/cfn-local-ruvector-accelerator/index}/metadata.json +0 -0
- /package/.claude/skills/cfn-local-ruvector-accelerator/{search_engine_v2.py → search_engine_v2.py.backup} +0 -0
- /package/.claude/skills/cfn-local-ruvector-accelerator/{sqlite_store.py → sqlite_store.py.backup} +0 -0
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# index-code.sh - Index codebase patterns for local RuVector
|
|
3
|
+
|
|
4
|
+
set -e
|
|
5
|
+
|
|
6
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
7
|
+
STORAGE_PATH="${HOME}/.local-ruvector"
|
|
8
|
+
DEFAULT_PATH="."
|
|
9
|
+
|
|
10
|
+
# Parse arguments
|
|
11
|
+
PATH_TO_INDEX=""
|
|
12
|
+
FILE_TYPES=("")
|
|
13
|
+
PATTERNS=""
|
|
14
|
+
VERBOSE=false
|
|
15
|
+
HELP=false
|
|
16
|
+
|
|
17
|
+
while [[ $# -gt 0 ]]; do
|
|
18
|
+
case $1 in
|
|
19
|
+
--path)
|
|
20
|
+
PATH_TO_INDEX="$2"
|
|
21
|
+
shift 2
|
|
22
|
+
;;
|
|
23
|
+
--types)
|
|
24
|
+
IFS=',' read -ra FILE_TYPES <<< "$2"
|
|
25
|
+
shift 2
|
|
26
|
+
;;
|
|
27
|
+
--patterns)
|
|
28
|
+
PATTERNS="$2"
|
|
29
|
+
shift 2
|
|
30
|
+
;;
|
|
31
|
+
--verbose)
|
|
32
|
+
VERBOSE=true
|
|
33
|
+
shift
|
|
34
|
+
;;
|
|
35
|
+
--help|-h)
|
|
36
|
+
HELP=true
|
|
37
|
+
shift
|
|
38
|
+
;;
|
|
39
|
+
*)
|
|
40
|
+
if [[ -z "$PATH_TO_INDEX" ]]; then
|
|
41
|
+
PATH_TO_INDEX="$1"
|
|
42
|
+
fi
|
|
43
|
+
shift
|
|
44
|
+
;;
|
|
45
|
+
esac
|
|
46
|
+
done
|
|
47
|
+
|
|
48
|
+
# Show help
|
|
49
|
+
if [[ "$HELP" == true ]]; then
|
|
50
|
+
cat << EOF
|
|
51
|
+
Usage: index-code [OPTIONS] [PATH]
|
|
52
|
+
|
|
53
|
+
Index codebase patterns for local RuVector search
|
|
54
|
+
|
|
55
|
+
Arguments:
|
|
56
|
+
PATH Path to directory to index (default: current directory)
|
|
57
|
+
|
|
58
|
+
Options:
|
|
59
|
+
--path PATH Path to directory to index
|
|
60
|
+
--types TYPES Comma-separated file types (default: rs,py,js,ts,go,java)
|
|
61
|
+
--patterns PATTERNS Comma-separated patterns to focus on
|
|
62
|
+
--verbose Show detailed progress
|
|
63
|
+
--help, -h Show this help
|
|
64
|
+
|
|
65
|
+
Examples:
|
|
66
|
+
index-code --path ~/projects/my-rust-app
|
|
67
|
+
index-code --types rs,py --patterns "error-handling,authentication"
|
|
68
|
+
index-code --verbose
|
|
69
|
+
|
|
70
|
+
EOF
|
|
71
|
+
exit 0
|
|
72
|
+
fi
|
|
73
|
+
|
|
74
|
+
# Set defaults
|
|
75
|
+
if [[ -z "$PATH_TO_INDEX" ]]; then
|
|
76
|
+
PATH_TO_INDEX="$DEFAULT_PATH"
|
|
77
|
+
fi
|
|
78
|
+
|
|
79
|
+
if [[ ${#FILE_TYPES[@]} -eq 0 ]]; then
|
|
80
|
+
FILE_TYPES=("rs" "py" "js" "ts" "go" "java" "tsx" "jsx" "cpp" "c" "h")
|
|
81
|
+
fi
|
|
82
|
+
|
|
83
|
+
# Validate path
|
|
84
|
+
if [[ ! -d "$PATH_TO_INDEX" ]]; then
|
|
85
|
+
echo "❌ Error: Directory '$PATH_TO_INDEX' does not exist"
|
|
86
|
+
exit 1
|
|
87
|
+
fi
|
|
88
|
+
|
|
89
|
+
# Convert to absolute path
|
|
90
|
+
PATH_TO_INDEX="$(cd "$PATH_TO_INDEX" && pwd)"
|
|
91
|
+
|
|
92
|
+
# Convert array to comma-separated string for Python
|
|
93
|
+
FILE_TYPES_STR=$(IFS=','; echo "${FILE_TYPES[*]}")
|
|
94
|
+
|
|
95
|
+
echo "🔍 Indexing code patterns in: $PATH_TO_INDEX"
|
|
96
|
+
echo "📄 File types: ${FILE_TYPES[*]}"
|
|
97
|
+
if [[ -n "$PATTERNS" ]]; then
|
|
98
|
+
echo "🎯 Focusing on patterns: $PATTERNS"
|
|
99
|
+
fi
|
|
100
|
+
|
|
101
|
+
# Initialize search engine
|
|
102
|
+
cd "$SCRIPT_DIR"
|
|
103
|
+
python3 -c "
|
|
104
|
+
import sys
|
|
105
|
+
import os
|
|
106
|
+
import json
|
|
107
|
+
import hashlib
|
|
108
|
+
from pathlib import Path
|
|
109
|
+
from search_engine_v2 import SearchEngine
|
|
110
|
+
|
|
111
|
+
def generate_pattern_id(file_path, content):
|
|
112
|
+
\"\"\"Generate unique pattern ID\"\"\"
|
|
113
|
+
hash_obj = hashlib.md5(f'{file_path}:{content}'.encode())
|
|
114
|
+
return f'pattern_{hash_obj.hexdigest()[:16]}'
|
|
115
|
+
|
|
116
|
+
def extract_functions(content, file_type):
|
|
117
|
+
\"\"\"Extract functions/classes from code\"\"\"
|
|
118
|
+
patterns = []
|
|
119
|
+
|
|
120
|
+
# Simple extraction based on language
|
|
121
|
+
if file_type == 'rs':
|
|
122
|
+
# Rust functions, structs, impls
|
|
123
|
+
import re
|
|
124
|
+
fn_pattern = r'^(pub\s+)?(async\s+)?(unsafe\s+)?fn\s+(\w+)'
|
|
125
|
+
struct_pattern = r'^(pub\s+)?struct\s+(\w+)'
|
|
126
|
+
impl_pattern = r'^impl\s+(\w+)\s*(for\s+(\w+))?'
|
|
127
|
+
|
|
128
|
+
for i, line in enumerate(content.split('\\n')):
|
|
129
|
+
for pattern, type_name in [(fn_pattern, 'function'),
|
|
130
|
+
(struct_pattern, 'struct'),
|
|
131
|
+
(impl_pattern, 'impl')]:
|
|
132
|
+
match = re.match(pattern, line)
|
|
133
|
+
if match:
|
|
134
|
+
patterns.append({
|
|
135
|
+
'type': type_name,
|
|
136
|
+
'name': match.groups()[-1],
|
|
137
|
+
'line': i + 1,
|
|
138
|
+
'signature': line.strip()
|
|
139
|
+
})
|
|
140
|
+
|
|
141
|
+
elif file_type == 'py':
|
|
142
|
+
# Python functions, classes
|
|
143
|
+
import re
|
|
144
|
+
fn_pattern = r'^\s*def\s+(\w+)'
|
|
145
|
+
class_pattern = r'^\s*class\s+(\w+)'
|
|
146
|
+
|
|
147
|
+
for i, line in enumerate(content.split('\\n')):
|
|
148
|
+
if re.match(fn_pattern, line):
|
|
149
|
+
patterns.append({
|
|
150
|
+
'type': 'function',
|
|
151
|
+
'name': re.match(fn_pattern, line).group(1),
|
|
152
|
+
'line': i + 1,
|
|
153
|
+
'signature': line.strip()
|
|
154
|
+
})
|
|
155
|
+
elif re.match(class_pattern, line):
|
|
156
|
+
patterns.append({
|
|
157
|
+
'type': 'class',
|
|
158
|
+
'name': re.match(class_pattern, line).group(1),
|
|
159
|
+
'line': i + 1,
|
|
160
|
+
'signature': line.strip()
|
|
161
|
+
})
|
|
162
|
+
|
|
163
|
+
return patterns
|
|
164
|
+
|
|
165
|
+
# Initialize engine
|
|
166
|
+
engine = SearchEngine('${STORAGE_PATH}/storage')
|
|
167
|
+
|
|
168
|
+
# Parse file types from shell
|
|
169
|
+
file_types = '${FILE_TYPES_STR}'.split(',')
|
|
170
|
+
verbose = '${VERBOSE}' == 'true'
|
|
171
|
+
|
|
172
|
+
# Index files
|
|
173
|
+
indexed_count = 0
|
|
174
|
+
pattern_count = 0
|
|
175
|
+
|
|
176
|
+
print('📂 Scanning files...')
|
|
177
|
+
for file_type in file_types:
|
|
178
|
+
file_type = file_type.strip()
|
|
179
|
+
if not file_type:
|
|
180
|
+
continue
|
|
181
|
+
pattern = f'**/*.{file_type}'
|
|
182
|
+
files = list(Path('${PATH_TO_INDEX}').rglob(pattern))
|
|
183
|
+
|
|
184
|
+
for file_path in files:
|
|
185
|
+
# Skip node_modules, .git, dist, build directories
|
|
186
|
+
path_str = str(file_path)
|
|
187
|
+
if any(skip in path_str for skip in ['node_modules', '.git', '/dist/', '/build/', '/target/']):
|
|
188
|
+
continue
|
|
189
|
+
|
|
190
|
+
if file_path.is_file():
|
|
191
|
+
try:
|
|
192
|
+
with open(file_path, 'r', encoding='utf-8') as f:
|
|
193
|
+
content = f.read()
|
|
194
|
+
|
|
195
|
+
if len(content) < 50: # Skip very small files
|
|
196
|
+
continue
|
|
197
|
+
|
|
198
|
+
# Generate pattern ID
|
|
199
|
+
pattern_id = generate_pattern_id(str(file_path), content)
|
|
200
|
+
|
|
201
|
+
# Extract functions/classes
|
|
202
|
+
patterns = extract_functions(content, file_type)
|
|
203
|
+
|
|
204
|
+
# Prepare metadata
|
|
205
|
+
metadata = {
|
|
206
|
+
'file_size': len(content),
|
|
207
|
+
'line_count': len(content.split('\\n')),
|
|
208
|
+
'patterns': patterns,
|
|
209
|
+
'last_modified': os.path.getmtime(file_path)
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
# Store pattern
|
|
213
|
+
engine.add_pattern(
|
|
214
|
+
pattern_id=pattern_id,
|
|
215
|
+
file_path=str(file_path),
|
|
216
|
+
file_type=file_type,
|
|
217
|
+
content=content,
|
|
218
|
+
metadata=metadata
|
|
219
|
+
)
|
|
220
|
+
|
|
221
|
+
indexed_count += 1
|
|
222
|
+
pattern_count += len(patterns)
|
|
223
|
+
|
|
224
|
+
if verbose:
|
|
225
|
+
print(f' ✅ {file_path} ({len(patterns)} patterns)')
|
|
226
|
+
|
|
227
|
+
except Exception as e:
|
|
228
|
+
if verbose:
|
|
229
|
+
print(f' ⚠️ Skipped {file_path}: {e}')
|
|
230
|
+
continue
|
|
231
|
+
|
|
232
|
+
print(f'\\n🎉 Indexed {indexed_count} files with {pattern_count} patterns')
|
|
233
|
+
print(f'📍 Storage: ${STORAGE_PATH}')
|
|
234
|
+
|
|
235
|
+
# Show stats
|
|
236
|
+
stats = engine.get_stats()
|
|
237
|
+
print(f'\\n📊 Stats:')
|
|
238
|
+
print(f' Total patterns: {stats[\"total_patterns\"]}')
|
|
239
|
+
print(f' Average success rate: {stats[\"avg_success_rate\"]:.2f}')
|
|
240
|
+
print(f' Total usage: {stats[\"total_usage\"]}')
|
|
241
|
+
print(f' File types: {stats[\"unique_file_types\"]}')
|
|
242
|
+
"
|
|
243
|
+
|
|
244
|
+
echo ""
|
|
245
|
+
echo "✅ Indexing complete!"
|
|
246
|
+
echo "💡 Query patterns with: query-local --pattern 'your search term'"
|
|
247
|
+
|
|
248
|
+
# Make script executable
|
|
249
|
+
chmod +x "${BASH_SOURCE[0]}"
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Index all files in the project
|
|
3
|
+
|
|
4
|
+
echo "Starting comprehensive indexing of all files..."
|
|
5
|
+
cd .claude/skills/cfn-local-ruvector-accelerator
|
|
6
|
+
|
|
7
|
+
# Clear existing index
|
|
8
|
+
rm -rf index/
|
|
9
|
+
|
|
10
|
+
# Define file extensions to index
|
|
11
|
+
declare -a file_types=("rs" "py" "js" "ts" "tsx" "jsx" "go" "java" "json" "yaml" "yml" "md" "sh" "sql" "html" "css" "xml" "toml" "cfg" "ini" "conf" "txt")
|
|
12
|
+
|
|
13
|
+
# Count total files
|
|
14
|
+
total_files=0
|
|
15
|
+
for ext in "${file_types[@]}"; do
|
|
16
|
+
count=$(find ../../ -type f -name "*.${ext}" 2>/dev/null | grep -v "/target/" | grep -v "/node_modules/" | grep -v "/.git/" | wc -l)
|
|
17
|
+
total_files=$((total_files + count))
|
|
18
|
+
echo "Found ${count} .${ext} files"
|
|
19
|
+
done
|
|
20
|
+
|
|
21
|
+
echo -e "\nTotal files to index: ${total_files}\n"
|
|
22
|
+
|
|
23
|
+
# Index each file type
|
|
24
|
+
start_time=$(date +%s)
|
|
25
|
+
|
|
26
|
+
for ext in "${file_types[@]}"; do
|
|
27
|
+
echo -e "\n=== Indexing .${ext} files ==="
|
|
28
|
+
|
|
29
|
+
# Check if any files exist
|
|
30
|
+
file_list=$(find ../../ -type f -name "*.${ext}" 2>/dev/null | grep -v "/target/" | grep -v "/node_modules/" | grep -v "/.git/" | head -5)
|
|
31
|
+
if [ -z "$file_list" ]; then
|
|
32
|
+
echo "No .${ext} files found"
|
|
33
|
+
continue
|
|
34
|
+
fi
|
|
35
|
+
|
|
36
|
+
# Index this file type
|
|
37
|
+
./target/release/local-ruvector index --path ../.. --types ${ext} --force
|
|
38
|
+
|
|
39
|
+
if [ $? -eq 0 ]; then
|
|
40
|
+
echo "✅ Successfully indexed .${ext} files"
|
|
41
|
+
else
|
|
42
|
+
echo "❌ Error indexing .${ext} files"
|
|
43
|
+
fi
|
|
44
|
+
done
|
|
45
|
+
|
|
46
|
+
end_time=$(date +%s)
|
|
47
|
+
duration=$((end_time - start_time))
|
|
48
|
+
|
|
49
|
+
echo -e "\n=== Indexing Complete ==="
|
|
50
|
+
echo "Duration: ${duration} seconds"
|
|
51
|
+
echo "Files indexed: ${total_files}"
|
|
52
|
+
|
|
53
|
+
# Show index size
|
|
54
|
+
if [ -d "index" ]; then
|
|
55
|
+
index_size=$(du -sh index | cut -f1)
|
|
56
|
+
echo "Index size: ${index_size}"
|
|
57
|
+
fi
|
|
58
|
+
|
|
59
|
+
# Show database stats
|
|
60
|
+
if [ -f "index/index.db" ]; then
|
|
61
|
+
echo -e "\n=== Database Statistics ==="
|
|
62
|
+
sqlite3 index/index.db "SELECT 'entities: ' || COUNT(*) FROM entities;"
|
|
63
|
+
sqlite3 index/index.db "SELECT 'embeddings: ' || COUNT(*) FROM embeddings;"
|
|
64
|
+
sqlite3 index/index.db "SELECT 'references: ' || COUNT(*) FROM references;"
|
|
65
|
+
fi
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
use anyhow::{Result, Context};
|
|
2
|
+
use clap::Args;
|
|
3
|
+
use serde_json::{json};
|
|
4
|
+
use std::path::{Path, PathBuf};
|
|
5
|
+
use tracing::{info, debug, warn};
|
|
6
|
+
use serde::Serialize;
|
|
7
|
+
|
|
8
|
+
use crate::query_api::{QueryApi, QueryResultFormatter};
|
|
9
|
+
use crate::store_v2::{StoreV2};
|
|
10
|
+
use crate::schema_v2::{EntityKind};
|
|
11
|
+
|
|
12
|
+
#[derive(Debug, Args)]
|
|
13
|
+
pub struct FindCommand {
|
|
14
|
+
/// Find functions using a specific type
|
|
15
|
+
#[arg(long)]
|
|
16
|
+
pub uses_type: Option<String>,
|
|
17
|
+
|
|
18
|
+
/// Find callers of a specific function
|
|
19
|
+
#[arg(long)]
|
|
20
|
+
pub called_by: Option<String>,
|
|
21
|
+
|
|
22
|
+
/// Find types from a file used elsewhere
|
|
23
|
+
#[arg(long)]
|
|
24
|
+
pub types_from: Option<String>,
|
|
25
|
+
|
|
26
|
+
/// Find implementations of a trait/interface
|
|
27
|
+
#[arg(long)]
|
|
28
|
+
pub implements: Option<String>,
|
|
29
|
+
|
|
30
|
+
/// Find public API of a module
|
|
31
|
+
#[arg(long)]
|
|
32
|
+
pub public_api: Option<String>,
|
|
33
|
+
|
|
34
|
+
/// Find references to a path
|
|
35
|
+
#[arg(long)]
|
|
36
|
+
pub refs_to: Option<String>,
|
|
37
|
+
|
|
38
|
+
/// Entity kind filter (function, struct, enum, etc.)
|
|
39
|
+
#[arg(long)]
|
|
40
|
+
pub kind: Option<String>,
|
|
41
|
+
|
|
42
|
+
/// Exclude module from results (for --called-by)
|
|
43
|
+
#[arg(long)]
|
|
44
|
+
pub exclude: Option<String>,
|
|
45
|
+
|
|
46
|
+
/// Maximum number of results to return
|
|
47
|
+
#[arg(short, long, default_value = "50")]
|
|
48
|
+
pub limit: usize,
|
|
49
|
+
|
|
50
|
+
/// Output format
|
|
51
|
+
#[arg(long, value_enum, default_value = "simple")]
|
|
52
|
+
pub format: FindOutputFormat,
|
|
53
|
+
|
|
54
|
+
/// Show detailed context
|
|
55
|
+
#[arg(long)]
|
|
56
|
+
pub detailed: bool,
|
|
57
|
+
|
|
58
|
+
/// Output file (optional)
|
|
59
|
+
#[arg(long)]
|
|
60
|
+
pub output: Option<PathBuf>,
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
#[derive(Debug, Clone, clap::ValueEnum)]
|
|
64
|
+
pub enum FindOutputFormat {
|
|
65
|
+
Simple,
|
|
66
|
+
Json,
|
|
67
|
+
Detailed,
|
|
68
|
+
Csv,
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
impl FindCommand {
|
|
72
|
+
pub fn execute(&self, project_dir: &Path) -> Result<()> {
|
|
73
|
+
// Initialize store and query API
|
|
74
|
+
let db_path = project_dir.join(".ruvector").join("index.db");
|
|
75
|
+
let store = StoreV2::new(&db_path)
|
|
76
|
+
.context("Failed to open database")?;
|
|
77
|
+
let query_api = QueryApi::new(store);
|
|
78
|
+
|
|
79
|
+
// Execute the appropriate query
|
|
80
|
+
let result = match &self.find_type() {
|
|
81
|
+
FindType::FunctionsUsingType(type_name) => {
|
|
82
|
+
query_api.find_functions_using_type(type_name)
|
|
83
|
+
}
|
|
84
|
+
FindType::CallersOfFunction { function_name, exclude_module } => {
|
|
85
|
+
query_api.find_callers_of_function(function_name, exclude_module.as_deref())
|
|
86
|
+
}
|
|
87
|
+
FindType::TypesUsedElsewhere(file_path) => {
|
|
88
|
+
query_api.find_types_used_elsewhere(file_path)
|
|
89
|
+
}
|
|
90
|
+
FindType::Implementations(trait_name) => {
|
|
91
|
+
query_api.find_implementations(trait_name)
|
|
92
|
+
}
|
|
93
|
+
FindType::PublicAPI(module_path) => {
|
|
94
|
+
query_api.find_public_api(module_path)
|
|
95
|
+
}
|
|
96
|
+
FindType::ReferencesToPath(path) => {
|
|
97
|
+
query_api.find_references_to_path(path)
|
|
98
|
+
}
|
|
99
|
+
FindType::None => {
|
|
100
|
+
return Err(anyhow::anyhow!("No find criteria specified. Use one of the find options."));
|
|
101
|
+
}
|
|
102
|
+
}?;
|
|
103
|
+
|
|
104
|
+
// Filter by kind if specified
|
|
105
|
+
let filtered_result = if let Some(kind_str) = &self.kind {
|
|
106
|
+
if let Some(kind) = EntityKind::from_str(kind_str) {
|
|
107
|
+
let filtered_items: Vec<_> = result.results.into_iter()
|
|
108
|
+
.filter(|item| item.entity.kind == kind)
|
|
109
|
+
.collect();
|
|
110
|
+
|
|
111
|
+
let count = filtered_items.len();
|
|
112
|
+
crate::query_api::QueryResult {
|
|
113
|
+
query_type: result.query_type,
|
|
114
|
+
results: filtered_items,
|
|
115
|
+
total_count: count,
|
|
116
|
+
}
|
|
117
|
+
} else {
|
|
118
|
+
warn!("Invalid entity kind: {}", kind_str);
|
|
119
|
+
result
|
|
120
|
+
}
|
|
121
|
+
} else {
|
|
122
|
+
result
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
// Apply limit
|
|
126
|
+
let limited_result = crate::query_api::QueryResult {
|
|
127
|
+
query_type: filtered_result.query_type,
|
|
128
|
+
results: filtered_result.results.into_iter().take(self.limit).collect(),
|
|
129
|
+
total_count: filtered_result.total_count,
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
// Format and output results
|
|
133
|
+
let output = match self.format {
|
|
134
|
+
FindOutputFormat::Simple => limited_result.format_simple(),
|
|
135
|
+
FindOutputFormat::Json => limited_result.format_json()?,
|
|
136
|
+
FindOutputFormat::Detailed => limited_result.format_detailed(),
|
|
137
|
+
FindOutputFormat::Csv => self.format_csv(&limited_result)?,
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
// Write output
|
|
141
|
+
if let Some(output_path) = &self.output {
|
|
142
|
+
std::fs::write(output_path, output)
|
|
143
|
+
.context("Failed to write output file")?;
|
|
144
|
+
info!("Results written to: {}", output_path.display());
|
|
145
|
+
} else {
|
|
146
|
+
println!("{}", output);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// Show summary if we truncated results
|
|
150
|
+
if limited_result.total_count > self.limit {
|
|
151
|
+
eprintln!("\n⚠️ Showing {} of {} total results", self.limit, limited_result.total_count);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
info!("Find command completed: {} results found", limited_result.total_count);
|
|
155
|
+
Ok(())
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
fn find_type(&self) -> FindType {
|
|
159
|
+
if let Some(type_name) = &self.uses_type {
|
|
160
|
+
FindType::FunctionsUsingType(type_name.clone())
|
|
161
|
+
} else if let Some(function_name) = &self.called_by {
|
|
162
|
+
FindType::CallersOfFunction {
|
|
163
|
+
function_name: function_name.clone(),
|
|
164
|
+
exclude_module: self.exclude.clone(),
|
|
165
|
+
}
|
|
166
|
+
} else if let Some(file_path) = &self.types_from {
|
|
167
|
+
FindType::TypesUsedElsewhere(file_path.clone())
|
|
168
|
+
} else if let Some(trait_name) = &self.implements {
|
|
169
|
+
FindType::Implementations(trait_name.clone())
|
|
170
|
+
} else if let Some(module_path) = &self.public_api {
|
|
171
|
+
FindType::PublicAPI(module_path.clone())
|
|
172
|
+
} else if let Some(path) = &self.refs_to {
|
|
173
|
+
FindType::ReferencesToPath(path.clone())
|
|
174
|
+
} else {
|
|
175
|
+
FindType::None
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
fn format_csv(&self, result: &crate::query_api::QueryResult) -> Result<String> {
|
|
180
|
+
let mut output = String::new();
|
|
181
|
+
|
|
182
|
+
// CSV header
|
|
183
|
+
output.push_str("file_path,line_number,kind,name,visibility,score\n");
|
|
184
|
+
|
|
185
|
+
// CSV rows
|
|
186
|
+
for item in &result.results {
|
|
187
|
+
output.push_str(&format!(
|
|
188
|
+
"{},{},{},{},{},{}\n",
|
|
189
|
+
item.entity.file_path,
|
|
190
|
+
item.entity.line_number,
|
|
191
|
+
item.entity.kind.as_str(),
|
|
192
|
+
item.entity.name,
|
|
193
|
+
item.entity.visibility.as_str(),
|
|
194
|
+
item.score
|
|
195
|
+
));
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
Ok(output)
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
#[derive(Debug)]
|
|
203
|
+
enum FindType {
|
|
204
|
+
FunctionsUsingType(String),
|
|
205
|
+
CallersOfFunction {
|
|
206
|
+
function_name: String,
|
|
207
|
+
exclude_module: Option<String>,
|
|
208
|
+
},
|
|
209
|
+
TypesUsedElsewhere(String),
|
|
210
|
+
Implementations(String),
|
|
211
|
+
PublicAPI(String),
|
|
212
|
+
ReferencesToPath(String),
|
|
213
|
+
None,
|
|
214
|
+
}
|