mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-10-16 03:49:26 +00:00
Legacy inventory 2, item R1. The vector half of index.py (VectorIndex, VectorRecord, RetrievalHit, RetrievalPackage, the EmbeddingClient protocol, index_reuse_key, build/write/read/query_vector_index, build_retrieval_package and their helpers) had no importer in src; `ousast index` wrote index/chunks.json that nothing read, and was the only reader of `[embeddings]`. index.py keeps CodeChunk and chunk_text_namespace, which skills.py imports; chunk_file/build_code_chunks go with their only caller. `[embeddings] model` and `[embeddings] store` join RETIRED_KEYS (RetiredConfigError naming the reason), the same way the [variants] keys were retired; OPENROUTER_EMBEDDING_MODEL is no longer read, so the README and .env.example drop it (`ousast learn memory embed --model` names the model). test_index.py now tests the chunker only; test_config.py covers the two retired keys and no longer asserts the removed field. The module audit record is regenerated (counts unchanged: 151 modules, 0 orphaned; the index module's importer list shrinks to skills). RELEASE_NOTES Unreleased carries the line. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01EmM1j46qgKMh3zqD1QMwEo
24 lines
1.1 KiB
Bash
24 lines
1.1 KiB
Bash
# Copy to .env and fill in. .env is gitignored and never committed.
|
|
# Note: values in .env never override variables already exported in your shell
|
|
# (e.g. from ~/.bashrc). Unset a stale export, or the shell value wins.
|
|
|
|
# LLM calls (verify, roles, the decision engine): DeepSeek.
|
|
DEEPSEEK_API_KEY=
|
|
# DEEPSEEK_BASE_URL=https://api.deepseek.com
|
|
|
|
# Embeddings only (`ousast learn memory embed`, default openai/text-embedding-3-small through OpenRouter).
|
|
OPENROUTER_API_KEY=
|
|
|
|
# Plane memory store. Default is a local FileStore under ~/ousast-results/plane/memory.
|
|
# For an S3-compatible server (RustFS is the tested one): OUSAST_MEMORY=s3://<bucket>[/<prefix>], or
|
|
# OUSAST_MEMORY=s3:// to use S3_BUCKET. Needs the s3 extra (boto3). Example for a RustFS server:
|
|
# OUSAST_MEMORY=s3://sast-memory
|
|
# S3_ENDPOINT=https://files.example.com
|
|
# S3_REGION=us-east-1
|
|
# S3_BUCKET=sast-memory
|
|
# AWS_ACCESS_KEY_ID=
|
|
# AWS_SECRET_ACCESS_KEY=
|
|
# AWS_SESSION_TOKEN=
|
|
# The bucket must have versioning enabled, a lifecycle rule expiring runs/, S3 Select and readable object tags
|
|
# (see docs/rustfs.md); the store verifies them at startup and refuses to run otherwise.
|