remdb 0.3.14__py3-none-any.whl → 0.3.133__py3-none-any.whl
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.
- rem/agentic/README.md +76 -0
- rem/agentic/__init__.py +15 -0
- rem/agentic/agents/__init__.py +16 -2
- rem/agentic/agents/sse_simulator.py +502 -0
- rem/agentic/context.py +51 -27
- rem/agentic/llm_provider_models.py +301 -0
- rem/agentic/mcp/tool_wrapper.py +112 -17
- rem/agentic/otel/setup.py +93 -4
- rem/agentic/providers/phoenix.py +302 -109
- rem/agentic/providers/pydantic_ai.py +215 -26
- rem/agentic/schema.py +361 -21
- rem/agentic/tools/rem_tools.py +3 -3
- rem/api/README.md +215 -1
- rem/api/deps.py +255 -0
- rem/api/main.py +132 -40
- rem/api/mcp_router/resources.py +1 -1
- rem/api/mcp_router/server.py +26 -5
- rem/api/mcp_router/tools.py +465 -7
- rem/api/routers/admin.py +494 -0
- rem/api/routers/auth.py +70 -0
- rem/api/routers/chat/completions.py +402 -20
- rem/api/routers/chat/models.py +88 -10
- rem/api/routers/chat/otel_utils.py +33 -0
- rem/api/routers/chat/sse_events.py +542 -0
- rem/api/routers/chat/streaming.py +642 -45
- rem/api/routers/dev.py +81 -0
- rem/api/routers/feedback.py +268 -0
- rem/api/routers/messages.py +473 -0
- rem/api/routers/models.py +78 -0
- rem/api/routers/query.py +360 -0
- rem/api/routers/shared_sessions.py +406 -0
- rem/auth/middleware.py +126 -27
- rem/cli/commands/README.md +237 -64
- rem/cli/commands/cluster.py +1808 -0
- rem/cli/commands/configure.py +1 -3
- rem/cli/commands/db.py +386 -143
- rem/cli/commands/experiments.py +418 -27
- rem/cli/commands/process.py +14 -8
- rem/cli/commands/schema.py +97 -50
- rem/cli/main.py +27 -6
- rem/config.py +10 -3
- rem/models/core/core_model.py +7 -1
- rem/models/core/experiment.py +54 -0
- rem/models/core/rem_query.py +5 -2
- rem/models/entities/__init__.py +21 -0
- rem/models/entities/domain_resource.py +38 -0
- rem/models/entities/feedback.py +123 -0
- rem/models/entities/message.py +30 -1
- rem/models/entities/session.py +83 -0
- rem/models/entities/shared_session.py +180 -0
- rem/registry.py +10 -4
- rem/schemas/agents/rem.yaml +7 -3
- rem/services/content/service.py +92 -20
- rem/services/embeddings/api.py +4 -4
- rem/services/embeddings/worker.py +16 -16
- rem/services/phoenix/client.py +154 -14
- rem/services/postgres/README.md +159 -15
- rem/services/postgres/__init__.py +2 -1
- rem/services/postgres/diff_service.py +531 -0
- rem/services/postgres/pydantic_to_sqlalchemy.py +427 -129
- rem/services/postgres/repository.py +132 -0
- rem/services/postgres/schema_generator.py +205 -4
- rem/services/postgres/service.py +6 -6
- rem/services/rem/parser.py +44 -9
- rem/services/rem/service.py +36 -2
- rem/services/session/compression.py +24 -1
- rem/services/session/reload.py +1 -1
- rem/settings.py +324 -23
- rem/sql/background_indexes.sql +21 -16
- rem/sql/migrations/001_install.sql +387 -54
- rem/sql/migrations/002_install_models.sql +2320 -393
- rem/sql/migrations/003_optional_extensions.sql +326 -0
- rem/sql/migrations/004_cache_system.sql +548 -0
- rem/utils/__init__.py +18 -0
- rem/utils/date_utils.py +2 -2
- rem/utils/model_helpers.py +156 -1
- rem/utils/schema_loader.py +220 -22
- rem/utils/sql_paths.py +146 -0
- rem/utils/sql_types.py +3 -1
- rem/workers/__init__.py +3 -1
- rem/workers/db_listener.py +579 -0
- rem/workers/unlogged_maintainer.py +463 -0
- {remdb-0.3.14.dist-info → remdb-0.3.133.dist-info}/METADATA +335 -226
- {remdb-0.3.14.dist-info → remdb-0.3.133.dist-info}/RECORD +86 -66
- {remdb-0.3.14.dist-info → remdb-0.3.133.dist-info}/WHEEL +1 -1
- rem/sql/002_install_models.sql +0 -1068
- rem/sql/install_models.sql +0 -1051
- rem/sql/migrations/003_seed_default_user.sql +0 -48
- {remdb-0.3.14.dist-info → remdb-0.3.133.dist-info}/entry_points.txt +0 -0
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
-- ============================================================================
|
|
2
|
-
-- Migration: 003_seed_default_user.sql
|
|
3
|
-
-- Description: Seed the default system user for CLI and API operations
|
|
4
|
-
--
|
|
5
|
-
-- The default user is derived from settings.test.user_email (test@rem.ai)
|
|
6
|
-
-- using deterministic UUID v5 generation. This ensures consistent user ID
|
|
7
|
-
-- across all environments and test runs.
|
|
8
|
-
--
|
|
9
|
-
-- Default user:
|
|
10
|
-
-- email: test@rem.ai
|
|
11
|
-
-- user_id: 9e7dc22b-13bb-5cea-8aee-f6b8e6dc962f (UUID v5 from DNS namespace)
|
|
12
|
-
--
|
|
13
|
-
-- This user is used when:
|
|
14
|
-
-- - CLI commands run without --user-id flag
|
|
15
|
-
-- - API requests come without X-User-Id header
|
|
16
|
-
-- - Tests run without explicit user context
|
|
17
|
-
-- ============================================================================
|
|
18
|
-
|
|
19
|
-
-- Insert default user (idempotent - skip if exists)
|
|
20
|
-
INSERT INTO users (
|
|
21
|
-
id,
|
|
22
|
-
user_id,
|
|
23
|
-
tenant_id,
|
|
24
|
-
name,
|
|
25
|
-
email,
|
|
26
|
-
role,
|
|
27
|
-
tags,
|
|
28
|
-
metadata,
|
|
29
|
-
created_at,
|
|
30
|
-
updated_at
|
|
31
|
-
) VALUES (
|
|
32
|
-
'9e7dc22b-13bb-5cea-8aee-f6b8e6dc962f'::uuid,
|
|
33
|
-
'9e7dc22b-13bb-5cea-8aee-f6b8e6dc962f',
|
|
34
|
-
'9e7dc22b-13bb-5cea-8aee-f6b8e6dc962f',
|
|
35
|
-
'Default User',
|
|
36
|
-
'test@rem.ai',
|
|
37
|
-
'system',
|
|
38
|
-
ARRAY['system', 'default'],
|
|
39
|
-
'{"description": "Default system user for CLI and API operations without explicit user context"}'::jsonb,
|
|
40
|
-
NOW(),
|
|
41
|
-
NOW()
|
|
42
|
-
) ON CONFLICT (id) DO NOTHING;
|
|
43
|
-
|
|
44
|
-
-- Log migration
|
|
45
|
-
DO $$
|
|
46
|
-
BEGIN
|
|
47
|
-
RAISE NOTICE 'Seeded default user: test@rem.ai (id: 9e7dc22b-13bb-5cea-8aee-f6b8e6dc962f)';
|
|
48
|
-
END $$;
|
|
File without changes
|