cortex-kg 0.2.0__tar.gz → 0.2.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.
- {cortex_kg-0.2.0/src/cortex_kg.egg-info → cortex_kg-0.2.1}/PKG-INFO +1 -1
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/pyproject.toml +1 -1
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/__init__.py +1 -1
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/api/rest.py +24 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1/src/cortex_kg.egg-info}/PKG-INFO +1 -1
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/LICENSE +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/MANIFEST.in +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/README.md +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/docs/README.md +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/docs/automation.md +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/docs/cortex-brain.md +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/docs/cursor.md +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/docs/installation.md +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/docs/other-platforms.md +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/docs/project-workflow.md +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/docs/publishing.md +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/docs/templates/cortex-agent-rule.mdc +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/docs/templates/cortex-mcp.json +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/examples/sample_repo/api/openapi.yaml +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/examples/sample_repo/docs/adr-001-session-tokens.md +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/examples/sample_repo/docs/architecture.md +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/examples/sample_repo/notes/meeting-2026-07-10-billing-sync.md +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/examples/sample_repo/schema/schema.sql +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/examples/sample_repo/src/auth_service.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/examples/sample_repo/src/billing_service.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/scripts/build_brain_ui.sh +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/sdk/python/cortex_sdk/__init__.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/sdk/python/pyproject.toml +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/sdk/typescript/package.json +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/sdk/typescript/src/index.ts +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/sdk/typescript/tsconfig.json +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/setup.cfg +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/agents/__init__.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/agents/hooks.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/agents/writeback.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/api/__init__.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/api/graph_viz.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/cli.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/config.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/context/__init__.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/context/generator.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/daemon.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/extractors/__init__.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/extractors/api_spec_extractor.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/extractors/base.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/extractors/code_extractor.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/extractors/db_schema_extractor.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/extractors/git_extractor.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/extractors/image_extractor.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/extractors/llm_relation_extractor.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/extractors/markdown_extractor.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/extractors/notes_extractor.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/extractors/pdf_extractor.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/ingestion/__init__.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/ingestion/content_hash.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/ingestion/pipeline.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/ingestion/resolver.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/mcp_server/__init__.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/mcp_server/server.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/models.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/offline/__init__.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/offline/local_llm.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/ontology/__init__.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/ontology/registry.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/plugins/__init__.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/plugins/examples/jira_like_plugin/plugin.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/plugins/interface.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/plugins/loader.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/replication/__init__.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/replication/crdt.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/retrieval/__init__.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/retrieval/embeddings.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/retrieval/fusion.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/retrieval/planner.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/retrieval/query_engine.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/retrieval/traversal.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/security/__init__.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/security/acl.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/security/audit.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/security/encryption.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/security/secrets_scanner.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/server_profile/__init__.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/server_profile/neo4j_store.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/setup/__init__.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/setup/generators.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/static/brain/assets/index-B8habZrD.js +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/static/brain/assets/index-Dvrg6tJc.css +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/static/brain/index.html +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/storage/__init__.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/storage/graph_store.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/storage/keyword_store.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/storage/provenance.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/storage/vector_store.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/sync/__init__.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/sync/change_feed.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/sync/job_queue.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/sync/watcher.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/versioning/__init__.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/versioning/bitemporal.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/workspace/__init__.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/workspace/federation.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex/workspace/registry.py +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex_kg.egg-info/SOURCES.txt +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex_kg.egg-info/dependency_links.txt +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex_kg.egg-info/entry_points.txt +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex_kg.egg-info/requires.txt +0 -0
- {cortex_kg-0.2.0 → cortex_kg-0.2.1}/src/cortex_kg.egg-info/top_level.txt +0 -0
|
@@ -46,6 +46,30 @@ app.add_middleware(
|
|
|
46
46
|
)
|
|
47
47
|
|
|
48
48
|
|
|
49
|
+
class _StripApiPrefixMiddleware:
|
|
50
|
+
"""Rewrite ``/api/*`` → ``/*`` for Cortex Brain production builds.
|
|
51
|
+
|
|
52
|
+
The Vite dev server proxies ``/api`` and strips the prefix before
|
|
53
|
+
forwarding to ``cortex serve-api``. When the SPA is served as static
|
|
54
|
+
files from the same FastAPI process, fetches still use ``/api/...`` —
|
|
55
|
+
this middleware makes those routes hit the real handlers.
|
|
56
|
+
"""
|
|
57
|
+
|
|
58
|
+
def __init__(self, app):
|
|
59
|
+
self.app = app
|
|
60
|
+
|
|
61
|
+
async def __call__(self, scope, receive, send):
|
|
62
|
+
if scope["type"] == "http":
|
|
63
|
+
path = scope.get("path", "")
|
|
64
|
+
if path == "/api" or path.startswith("/api/"):
|
|
65
|
+
scope = dict(scope)
|
|
66
|
+
scope["path"] = path[4:] if len(path) > 4 else "/"
|
|
67
|
+
await self.app(scope, receive, send)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
app.add_middleware(_StripApiPrefixMiddleware)
|
|
71
|
+
|
|
72
|
+
|
|
49
73
|
def daemon_dep(workspace: str = Query(default=DEFAULT_WORKSPACE)) -> CortexDaemon:
|
|
50
74
|
return get_daemon(workspace)
|
|
51
75
|
|
|
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
|
{cortex_kg-0.2.0 → cortex_kg-0.2.1}/examples/sample_repo/notes/meeting-2026-07-10-billing-sync.md
RENAMED
|
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
|
|
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
|
|
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
|