sourcefire 0.3.0__tar.gz → 0.3.1__tar.gz
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.
- {sourcefire-0.3.0/sourcefire.egg-info → sourcefire-0.3.1}/PKG-INFO +1 -1
- {sourcefire-0.3.0 → sourcefire-0.3.1}/pyproject.toml +1 -1
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire/api/models.py +1 -1
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire/chain/rag_chain.py +1 -1
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire/config.py +4 -4
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire/init.py +1 -1
- {sourcefire-0.3.0 → sourcefire-0.3.1/sourcefire.egg-info}/PKG-INFO +1 -1
- {sourcefire-0.3.0 → sourcefire-0.3.1}/LICENSE +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/MANIFEST.in +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/README.md +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/setup.cfg +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire/__init__.py +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire/api/__init__.py +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire/api/routes.py +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire/chain/__init__.py +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire/chain/prompts.py +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire/cli.py +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire/db.py +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire/global_config.py +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire/indexer/__init__.py +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire/indexer/embeddings.py +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire/indexer/language_profiles.py +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire/indexer/metadata.py +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire/indexer/pipeline.py +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire/prompts/system.md +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire/retriever/__init__.py +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire/retriever/graph.py +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire/retriever/search.py +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire/static/app.js +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire/static/index.html +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire/static/styles.css +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire/watcher.py +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire.egg-info/SOURCES.txt +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire.egg-info/dependency_links.txt +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire.egg-info/entry_points.txt +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire.egg-info/requires.txt +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/sourcefire.egg-info/top_level.txt +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/tests/test_config.py +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/tests/test_graph.py +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/tests/test_metadata.py +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/tests/test_prompts.py +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/tests/test_routes.py +0 -0
- {sourcefire-0.3.0 → sourcefire-0.3.1}/tests/test_search.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sourcefire
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: Get instant context on any codebase. One command to index, ask questions in plain English, get answers grounded in actual code.
|
|
5
5
|
Author-email: Athar Wani <athar@cravv.com>
|
|
6
6
|
License: MIT
|
|
@@ -8,7 +8,7 @@ from pydantic import BaseModel
|
|
|
8
8
|
class QueryRequest(BaseModel):
|
|
9
9
|
query: str
|
|
10
10
|
mode: Literal["debug", "feature", "explain"] = "debug"
|
|
11
|
-
model: Literal["gemini-
|
|
11
|
+
model: Literal["gemini-3.1-flash-lite-preview", "gemini-3.1-pro-preview"] = "gemini-3.1-flash-lite-preview"
|
|
12
12
|
history: list[dict] = []
|
|
13
13
|
|
|
14
14
|
|
|
@@ -827,7 +827,7 @@ async def stream_rag_response(
|
|
|
827
827
|
graph: ImportGraph,
|
|
828
828
|
query: str,
|
|
829
829
|
mode: str,
|
|
830
|
-
model: str = "gemini-
|
|
830
|
+
model: str = "gemini-3.1-flash-lite-preview",
|
|
831
831
|
history: list[dict[str, str]] | None = None,
|
|
832
832
|
profile: LanguageProfile | None = None,
|
|
833
833
|
project_dir: Path | None = None,
|
|
@@ -30,7 +30,7 @@ class SourcefireConfig:
|
|
|
30
30
|
|
|
31
31
|
# [llm]
|
|
32
32
|
provider: str = "gemini"
|
|
33
|
-
model: str = "gemini-
|
|
33
|
+
model: str = "gemini-3.1-flash-lite-preview"
|
|
34
34
|
api_key_env: str = "GEMINI_API_KEY"
|
|
35
35
|
|
|
36
36
|
# [server]
|
|
@@ -68,8 +68,8 @@ class SourcefireConfig:
|
|
|
68
68
|
# Constants used by other modules
|
|
69
69
|
EMBEDDING_MODEL: str = "sentence-transformers/all-MiniLM-L6-v2"
|
|
70
70
|
MAX_TOKEN_BUDGET: dict[str, int] = {
|
|
71
|
-
"gemini-
|
|
72
|
-
"gemini-
|
|
71
|
+
"gemini-3.1-flash-lite-preview": 100_000,
|
|
72
|
+
"gemini-3.1-pro-preview": 200_000,
|
|
73
73
|
}
|
|
74
74
|
MAX_HISTORY_PAIRS: int = 5
|
|
75
75
|
RESPONSE_HEADROOM: int = 8_000
|
|
@@ -118,7 +118,7 @@ def load_config(project_dir: Path, sourcefire_dir: Path) -> SourcefireConfig:
|
|
|
118
118
|
chunk_size=indexer.get("chunk_size", 1000),
|
|
119
119
|
chunk_overlap=indexer.get("chunk_overlap", 300),
|
|
120
120
|
provider=llm.get("provider", "gemini"),
|
|
121
|
-
model=llm.get("model", "gemini-
|
|
121
|
+
model=llm.get("model", "gemini-3.1-flash-lite-preview"),
|
|
122
122
|
api_key_env=llm.get("api_key_env", "GEMINI_API_KEY"),
|
|
123
123
|
host=server.get("host", "127.0.0.1"),
|
|
124
124
|
port=server.get("port", 8000),
|
|
@@ -49,7 +49,7 @@ def _generate_patterns_via_llm(file_tree: str, api_key: str) -> dict[str, list[s
|
|
|
49
49
|
from langchain_core.messages import HumanMessage
|
|
50
50
|
|
|
51
51
|
llm = ChatGoogleGenerativeAI(
|
|
52
|
-
model="gemini-
|
|
52
|
+
model="gemini-3.1-flash-lite-preview",
|
|
53
53
|
google_api_key=api_key,
|
|
54
54
|
)
|
|
55
55
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sourcefire
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: Get instant context on any codebase. One command to index, ask questions in plain English, get answers grounded in actual code.
|
|
5
5
|
Author-email: Athar Wani <athar@cravv.com>
|
|
6
6
|
License: MIT
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|