memuron 0.1.1__tar.gz → 0.1.2__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.
- {memuron-0.1.1 → memuron-0.1.2}/PKG-INFO +1 -1
- {memuron-0.1.1 → memuron-0.1.2}/pyproject.toml +1 -1
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/application/app.py +1 -1
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/application/cli.py +22 -5
- {memuron-0.1.1 → memuron-0.1.2}/README.md +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/__init__.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/actions/__init__.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/actions/context.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/actions/helpers.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/actions/memory.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/actions/memory_write.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/actions/nodes.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/actions/registry.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/actions/runtime.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/actions/spaces_documents.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/actions/sync.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/application/__init__.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/application/api.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/application/capabilities.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/application/config.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/application/mcp.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/application/mcp_oauth.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/application/registry.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/context.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/documents/__init__.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/documents/link_guardian.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/documents/linking.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/documents/parser.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/documents/storage.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/documents/url_ingest.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/domain/__init__.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/domain/decoders.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/domain/encoders.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/domain/lifecycles.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/domain/limits.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/domain/representations.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/domain/schemas.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/domain/scope_filter.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/graphfs/__init__.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/graphfs/manual.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/graphfs/projection.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/graphfs/query.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/graphfs/read_model.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/ingest/__init__.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/ingest/guardian.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/ingest/jobs.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/ingest/prompts.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/memory/__init__.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/memory/engine.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/memory/projections.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/memory/recipes.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/persistence/__init__.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/persistence/db_pool.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/persistence/identity_store.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/persistence/store_helpers.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/search/__init__.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/search/fulltext.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/search/hybrid.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/search/pgvector.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/security/__init__.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/security/auth.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/security/auth_provider.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/security/authorization.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/security/clerk_scopes.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/security/clerk_webhooks.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/security/jwt_tokens.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/security/passwords.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/security/tenant.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/spaces/__init__.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/spaces/model.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/spaces/service.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/sync/__init__.py +0 -0
- {memuron-0.1.1 → memuron-0.1.2}/src/memuron/sync/folder.py +0 -0
|
@@ -58,7 +58,7 @@ def create_application(db: str | Path | None = None) -> ArthaApplication:
|
|
|
58
58
|
}
|
|
59
59
|
application = ArthaApplication(
|
|
60
60
|
name="memuron",
|
|
61
|
-
version="0.1.
|
|
61
|
+
version="0.1.2",
|
|
62
62
|
description="Product memory layer on Artha Engine",
|
|
63
63
|
engine=engine,
|
|
64
64
|
actions=actions,
|
|
@@ -9,6 +9,16 @@ from pathlib import Path
|
|
|
9
9
|
from memuron.application.app import close_application, configure_clerk_env, create_application
|
|
10
10
|
|
|
11
11
|
|
|
12
|
+
def _ensure_local_db_path() -> None:
|
|
13
|
+
from artha_engine.store.factory import is_postgres_dsn, resolve_database_target
|
|
14
|
+
|
|
15
|
+
default_path = Path.home() / ".config" / "memuron" / "memuron.db"
|
|
16
|
+
os.environ.setdefault("ARTHA_DB_PATH", str(default_path))
|
|
17
|
+
target = resolve_database_target(None)
|
|
18
|
+
if not is_postgres_dsn(target):
|
|
19
|
+
Path(target).parent.mkdir(parents=True, exist_ok=True)
|
|
20
|
+
|
|
21
|
+
|
|
12
22
|
def main(argv: list[str] | None = None) -> int:
|
|
13
23
|
configure_clerk_env()
|
|
14
24
|
os.environ.setdefault("ARTHA_AUTH_PROVIDER", "api_key")
|
|
@@ -20,11 +30,18 @@ def main(argv: list[str] | None = None) -> int:
|
|
|
20
30
|
os.environ["ARTHA_API_KEY"] = os.environ["MEMURON_API_KEY"]
|
|
21
31
|
if os.environ.get("MEMURON_BASE_URL") and not os.environ.get("ARTHA_BASE_URL"):
|
|
22
32
|
os.environ["ARTHA_BASE_URL"] = os.environ["MEMURON_BASE_URL"]
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
33
|
+
local_cli = os.environ.get("MEMURON_LOCAL_CLI", "").strip().lower() in {
|
|
34
|
+
"1",
|
|
35
|
+
"true",
|
|
36
|
+
"yes",
|
|
37
|
+
}
|
|
38
|
+
if local_cli:
|
|
39
|
+
_ensure_local_db_path()
|
|
40
|
+
db: str | Path | None = None
|
|
41
|
+
else:
|
|
42
|
+
# Remote-first CLI only needs the action registry, not a persistent local DB.
|
|
43
|
+
db = ":memory:"
|
|
44
|
+
application = create_application(db)
|
|
28
45
|
try:
|
|
29
46
|
return application.run_cli(argv, prog="memuron")
|
|
30
47
|
finally:
|
|
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
|