soliplex 0.92__tar.gz → 0.92.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.
Files changed (132) hide show
  1. {soliplex-0.92/src/soliplex.egg-info → soliplex-0.92.2}/PKG-INFO +2 -2
  2. {soliplex-0.92 → soliplex-0.92.2}/pyproject.toml +2 -2
  3. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/secrets.py +39 -5
  4. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/secrets.py +20 -1
  5. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/installation.py +19 -14
  6. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/secrets.py +14 -1
  7. {soliplex-0.92 → soliplex-0.92.2/src/soliplex.egg-info}/PKG-INFO +2 -2
  8. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex.egg-info/requires.txt +1 -1
  9. {soliplex-0.92 → soliplex-0.92.2}/LICENSE +0 -0
  10. {soliplex-0.92 → soliplex-0.92.2}/MANIFEST.in +0 -0
  11. {soliplex-0.92 → soliplex-0.92.2}/README.md +0 -0
  12. {soliplex-0.92 → soliplex-0.92.2}/example/skills/bare-bones/SKILL.md +0 -0
  13. {soliplex-0.92 → soliplex-0.92.2}/example/skills/stanzas/SKILL.md +0 -0
  14. {soliplex-0.92 → soliplex-0.92.2}/setup.cfg +0 -0
  15. {soliplex-0.92 → soliplex-0.92.2}/skills/soliplex-docs/SKILL.md +0 -0
  16. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/agents.py +0 -0
  17. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/agui/__init__.py +0 -0
  18. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/agui/parser.py +0 -0
  19. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/agui/persistence.py +0 -0
  20. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/agui/schema.py +0 -0
  21. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/agui/sse_delivery.py +0 -0
  22. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/agui/util.py +0 -0
  23. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/alembic_migrations/__init__.py +0 -0
  24. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/alembic_migrations/env.py +0 -0
  25. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/alembic_migrations/versions/216d48e1e2e5_soliplex_v0_53.py +0 -0
  26. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/alembic_migrations/versions/4b63e5f3f39e_soliplex_v0_51_1.py +0 -0
  27. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/alembic_migrations/versions/63edaa5987f6_soliplex_v0_67.py +0 -0
  28. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/alembic_migrations/versions/98cd91f27cb5_soliplex_v0_92.py +0 -0
  29. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/alembic_migrations/versions/a1c7d3e90b42_soliplex_v0_80.py +0 -0
  30. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/alembic_migrations/versions/b7e2f41c9d05_soliplex_v0_82.py +0 -0
  31. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/alembic_migrations/versions/d5009d4f9874_soliplex_v0_44.py +0 -0
  32. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/alembic_migrations/versions/f13fea6c1953_soliplex_v0_86.py +0 -0
  33. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/authn.py +0 -0
  34. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/authz/__init__.py +0 -0
  35. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/authz/persistence.py +0 -0
  36. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/authz/schema.py +0 -0
  37. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/capabilities/filesystem.py +0 -0
  38. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/capabilities/rag_audit.py +0 -0
  39. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/admin_users.py +0 -0
  40. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/ask.py +0 -0
  41. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/__init__.py +0 -0
  42. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/_common.py +0 -0
  43. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/admin_users.py +0 -0
  44. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/completions.py +0 -0
  45. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/databases.py +0 -0
  46. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/environment.py +0 -0
  47. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/installation.py +0 -0
  48. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/interpolation.py +0 -0
  49. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/logfire.py +0 -0
  50. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/logging.py +0 -0
  51. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/non_local_paths.py +0 -0
  52. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/oidc.py +0 -0
  53. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/ollama.py +0 -0
  54. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/quizzes.py +0 -0
  55. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/room_authz.py +0 -0
  56. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/rooms.py +0 -0
  57. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/skills.py +0 -0
  58. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/cli_util.py +0 -0
  59. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/database.py +0 -0
  60. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/main.py +0 -0
  61. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/ollama.py +0 -0
  62. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/room_authz.py +0 -0
  63. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/serve.py +0 -0
  64. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/service_token.py +0 -0
  65. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/types.py +0 -0
  66. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/completions.py +0 -0
  67. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/__init__.py +0 -0
  68. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/_utils.py +0 -0
  69. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/agents.py +0 -0
  70. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/agui.py +0 -0
  71. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/authsystem.py +0 -0
  72. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/completions.py +0 -0
  73. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/exceptions.py +0 -0
  74. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/installation.py +0 -0
  75. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/interpolation.py +0 -0
  76. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/logfire.py +0 -0
  77. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/meta.py +0 -0
  78. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/middleware.py +0 -0
  79. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/quizzes.py +0 -0
  80. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/rag.py +0 -0
  81. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/rooms.py +0 -0
  82. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/routing.py +0 -0
  83. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/skills.py +0 -0
  84. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/sse_delivery.py +0 -0
  85. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/tools.py +0 -0
  86. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/examples.py +0 -0
  87. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/labels.py +0 -0
  88. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/log_ingest.py +0 -0
  89. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/loggers.py +0 -0
  90. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/main.py +0 -0
  91. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/mcp_auth.py +0 -0
  92. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/mcp_client.py +0 -0
  93. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/mcp_server.py +0 -0
  94. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/models.py +0 -0
  95. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/ollama.py +0 -0
  96. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/quizzes.py +0 -0
  97. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/rag_audit.py +0 -0
  98. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/sandbox_audit.py +0 -0
  99. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/skills/bwrap_sandbox/SKILL.md +0 -0
  100. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/skills/bwrap_sandbox/__init__.py +0 -0
  101. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/titles.py +0 -0
  102. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/token_mint.py +0 -0
  103. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/tools/__init__.py +0 -0
  104. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/tools/agui_run_feedback.py +0 -0
  105. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/tools/file_uploads.py +0 -0
  106. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/tools/rag.py +0 -0
  107. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/tui/cli.py +0 -0
  108. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/tui/main.py +0 -0
  109. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/tui/rest_api.py +0 -0
  110. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/tui/serve.py +0 -0
  111. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/util.py +0 -0
  112. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/__init__.py +0 -0
  113. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/agui.py +0 -0
  114. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/authn.py +0 -0
  115. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/authz.py +0 -0
  116. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/completions.py +0 -0
  117. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/installation.py +0 -0
  118. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/labels.py +0 -0
  119. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/log_ingest.py +0 -0
  120. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/quizzes.py +0 -0
  121. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/room_file_uploads.py +0 -0
  122. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/rooms.py +0 -0
  123. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/sandbox_workdirs.py +0 -0
  124. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/stats.py +0 -0
  125. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/streaming.py +0 -0
  126. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/templates/consent.html.mako +0 -0
  127. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/templates/cookie-too-large.html.mako +0 -0
  128. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/thread_file_uploads.py +0 -0
  129. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex.egg-info/SOURCES.txt +0 -0
  130. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex.egg-info/dependency_links.txt +0 -0
  131. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex.egg-info/entry_points.txt +0 -0
  132. {soliplex-0.92 → soliplex-0.92.2}/src/soliplex.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: soliplex
3
- Version: 0.92
3
+ Version: 0.92.2
4
4
  Summary: An AI-powered Retrieval-Augmented Generation (RAG) system with a modern web interface.
5
5
  Author-email: Enfold <info@enfoldsystems.net>
6
6
  Classifier: Programming Language :: Python :: 3
@@ -20,7 +20,7 @@ Requires-Dist: fakeredis!=2.35.0
20
20
  Requires-Dist: fastapi
21
21
  Requires-Dist: fastmcp<5.0,>=4.1.2
22
22
  Requires-Dist: greenlet
23
- Requires-Dist: haiku.rag-slim<0.111,>=0.110.0
23
+ Requires-Dist: haiku.rag-slim<0.112,>=0.111.0
24
24
  Requires-Dist: idna>=3.15
25
25
  Requires-Dist: itsdangerous
26
26
  Requires-Dist: joserfc<1.8,>=1.7.5
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "soliplex"
7
- version = "0.92"
7
+ version = "0.92.2"
8
8
  description = "An AI-powered Retrieval-Augmented Generation (RAG) system with a modern web interface."
9
9
  authors = [{ name = "Enfold", email = "info@enfoldsystems.net" }]
10
10
  readme = "README.md"
@@ -26,7 +26,7 @@ dependencies = [
26
26
  "fastapi",
27
27
  "fastmcp >= 4.1.2, < 5.0",
28
28
  "greenlet",
29
- "haiku.rag-slim >= 0.110.0, < 0.111",
29
+ "haiku.rag-slim >= 0.111.0, < 0.112",
30
30
  "idna >= 3.15",
31
31
  "itsdangerous",
32
32
  "joserfc >= 1.7.5, < 1.8", # CVE-2026-11928{3,4}
@@ -17,11 +17,43 @@ def _missing_secrets(the_installation: installation.Installation) -> dict:
17
17
  return {}
18
18
 
19
19
 
20
+ def _secret_status(secret_config, missing_names: set[str]) -> str:
21
+ """Return the audit status for a secret, after resolution
22
+
23
+ A resolved secret's status names the kind of the source which
24
+ resolved it, e.g. 'OK (env_var)'.
25
+ """
26
+ if secret_config.secret_name in missing_names:
27
+ return "MISSING"
28
+
29
+ return f"OK ({secret_config.resolved_by.kind})"
30
+
31
+
32
+ def _ephemeral_secrets(the_installation: installation.Installation) -> list:
33
+ """Return the names of secrets resolved from a 'random_chars' source"""
34
+ return [
35
+ secret_config.secret_name
36
+ for secret_config in the_installation._config.secrets
37
+ if secret_config.is_ephemeral
38
+ ]
39
+
40
+
41
+ _EPHEMERAL_SECRETS_WARNING = """
42
+ WARNING: secrets resolved from a 'random_chars' source have values which
43
+ change whenever the server restarts / reloads, and differ between server
44
+ processes.
45
+ """
46
+
47
+
20
48
  def _audit_secrets_section(
21
49
  ctx: typer.Context,
22
50
  installation_path: types.installation_path_type,
23
51
  ) -> dict: # pragma NO COVER UI ONLY
24
- """Print the secrets section (rule header + per-secret OK/MISSING)."""
52
+ """Print the secrets section (rule header + per-secret OK/MISSING).
53
+
54
+ Secrets resolved from a 'random_chars' source are warning-grade:
55
+ the audit prints them, and no installation fails on their account.
56
+ """
25
57
  quiet = ctx.obj["quiet"]
26
58
  the_installation = audit_common._get_installation(ctx, installation_path)
27
59
  tc_line, tc_rule, tc_print, _ = audit_common._quiet_console_funcs(quiet)
@@ -34,10 +66,12 @@ def _audit_secrets_section(
34
66
  missing_names = set(errors.get("missing_secrets", ()))
35
67
 
36
68
  for secret_config in the_installation._config.secrets:
37
- flag = (
38
- "MISSING" if secret_config.secret_name in missing_names else "OK"
39
- )
40
- tc_print(f"- {secret_config.secret_name:25} {flag}")
69
+ status = _secret_status(secret_config, missing_names)
70
+ tc_print(f"- {secret_config.secret_name:25} {status}")
71
+
72
+ ephemeral = _ephemeral_secrets(the_installation)
73
+ if ephemeral:
74
+ tc_print(_EPHEMERAL_SECRETS_WARNING)
41
75
 
42
76
  tc_print()
43
77
  return errors
@@ -227,8 +227,9 @@ class SecretConfig:
227
227
  _no_repr_no_compare_none()
228
228
  )
229
229
 
230
- # Set by 'soliplex.secrets.get_secret'
230
+ # Set by 'get_secret' below
231
231
  _resolved: str = None
232
+ _resolved_by: SecretSource = _no_repr_no_compare_none()
232
233
 
233
234
  def __post_init__(self):
234
235
  if self.sources is None:
@@ -273,6 +274,23 @@ class SecretConfig:
273
274
  def resolved(self) -> str | None:
274
275
  return self._resolved
275
276
 
277
+ @property
278
+ def resolved_by(self) -> SecretSource | None:
279
+ """The source which resolved the secret, or 'None' if unresolved"""
280
+ return self._resolved_by
281
+
282
+ @property
283
+ def is_ephemeral(self) -> bool:
284
+ """True if the secret was resolved from a 'random_chars' source
285
+
286
+ Such a value changes whenever the process restarts, and differs
287
+ between processes.
288
+ """
289
+ return (
290
+ self._resolved_by is not None
291
+ and self._resolved_by.kind == RandomCharsSecretSource.kind
292
+ )
293
+
276
294
 
277
295
  def get_secret(secret_config: SecretConfig) -> str:
278
296
  excs = []
@@ -292,6 +310,7 @@ def get_secret(secret_config: SecretConfig) -> str:
292
310
  )
293
311
 
294
312
  secret_config._resolved = getter(source)
313
+ secret_config._resolved_by = source
295
314
  except secrets.SecretError as exc:
296
315
  excs.append(exc)
297
316
 
@@ -725,8 +725,8 @@ async def open_engines(
725
725
  ):
726
726
  """Yield both engines, at the revision this release of soliplex expects.
727
727
 
728
- Handle the special case for `no_auth_mode` (add the default user
729
- as an admin) here.
728
+ Handle the special case for `no_auth_mode` here, adding the default user
729
+ as an admin for RAM-based authz databases. See #1512.
730
730
 
731
731
  The engines are disposed on the way out, however the block ends -- a
732
732
  refused migration included.
@@ -738,17 +738,23 @@ async def open_engines(
738
738
  Refuse migrations prohibited by the installation's 'migration_policy',
739
739
  as well as in the case that the application runs with 'multiple_writers'.
740
740
  """
741
+ threads_engine = _create_async_engine(
742
+ the_installation.thread_persistence_async_dburi,
743
+ json_serializer=util.serialize_sqla_json,
744
+ pool_pre_ping=True,
745
+ )
746
+ authz_is_ram = (
747
+ the_installation.authorization_async_dburi
748
+ == config_installation.ASYNC_MEMORY_ENGINE_URL
749
+ )
750
+ authz_engine = _create_async_engine(
751
+ the_installation.authorization_async_dburi,
752
+ json_serializer=util.serialize_sqla_json,
753
+ pool_pre_ping=True,
754
+ )
741
755
  engines = Engines(
742
- threads_engine=_create_async_engine(
743
- the_installation.thread_persistence_async_dburi,
744
- json_serializer=util.serialize_sqla_json,
745
- pool_pre_ping=True,
746
- ),
747
- authorization_engine=_create_async_engine(
748
- the_installation.authorization_async_dburi,
749
- json_serializer=util.serialize_sqla_json,
750
- pool_pre_ping=True,
751
- ),
756
+ threads_engine=threads_engine,
757
+ authorization_engine=authz_engine,
752
758
  )
753
759
  try:
754
760
  for database, engine in (
@@ -764,8 +770,7 @@ async def open_engines(
764
770
  ),
765
771
  )
766
772
 
767
- if no_auth_mode:
768
- authz_engine = engines.authorization_engine
773
+ if no_auth_mode and authz_is_ram:
769
774
  async with authz_engine.begin() as ra_connection:
770
775
  await ra_connection.run_sync(
771
776
  add_no_auth_user_as_admin,
@@ -79,6 +79,10 @@ class SecretsNotFound(ExceptionGroup, SecretError):
79
79
  def get_env_var_secret(
80
80
  source: config_secrets.EnvVarSecretSource,
81
81
  ):
82
+ """Look up a secret value from the environment / doenv
83
+
84
+ Strip any whitespace from a found value.
85
+ """
82
86
  if source._installation_config is not None:
83
87
  from_dotenv = source._installation_config.from_dotenv
84
88
  else:
@@ -87,7 +91,7 @@ def get_env_var_secret(
87
91
  merged = os.environ | from_dotenv
88
92
 
89
93
  try:
90
- return merged[source.env_var_name]
94
+ return merged[source.env_var_name].strip()
91
95
  except KeyError as exc:
92
96
  raise SecretEnvVarNotFound(
93
97
  source.secret_name,
@@ -98,6 +102,10 @@ def get_env_var_secret(
98
102
  def get_file_path_secret(
99
103
  source: config_secrets.FilePathSecretSource,
100
104
  ):
105
+ """Look up a secret value from a file path.
106
+
107
+ Strip any whitespace from a found value.
108
+ """
101
109
  file_path = pathlib.Path(source.file_path)
102
110
  if not file_path.is_absolute():
103
111
  file_path = source._config_path.parent / source.file_path
@@ -115,6 +123,10 @@ def get_file_path_secret(
115
123
  def get_subprocess_secret(
116
124
  source: config_secrets.SubprocessSecretSource,
117
125
  ):
126
+ """Look up a secret value from a subprocess call.
127
+
128
+ Strip any whitespace from a found value.
129
+ """
118
130
  try:
119
131
  found = subprocess.check_output(
120
132
  [source.command, *source.args],
@@ -138,4 +150,5 @@ def get_subprocess_secret(
138
150
  def get_random_chars_secret(
139
151
  source: config_secrets.RandomCharsSecretSource,
140
152
  ):
153
+ """Compute a secret value from random characters."""
141
154
  return os.urandom(source.n_chars).hex()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: soliplex
3
- Version: 0.92
3
+ Version: 0.92.2
4
4
  Summary: An AI-powered Retrieval-Augmented Generation (RAG) system with a modern web interface.
5
5
  Author-email: Enfold <info@enfoldsystems.net>
6
6
  Classifier: Programming Language :: Python :: 3
@@ -20,7 +20,7 @@ Requires-Dist: fakeredis!=2.35.0
20
20
  Requires-Dist: fastapi
21
21
  Requires-Dist: fastmcp<5.0,>=4.1.2
22
22
  Requires-Dist: greenlet
23
- Requires-Dist: haiku.rag-slim<0.111,>=0.110.0
23
+ Requires-Dist: haiku.rag-slim<0.112,>=0.111.0
24
24
  Requires-Dist: idna>=3.15
25
25
  Requires-Dist: itsdangerous
26
26
  Requires-Dist: joserfc<1.8,>=1.7.5
@@ -10,7 +10,7 @@ fakeredis!=2.35.0
10
10
  fastapi
11
11
  fastmcp<5.0,>=4.1.2
12
12
  greenlet
13
- haiku.rag-slim<0.111,>=0.110.0
13
+ haiku.rag-slim<0.112,>=0.111.0
14
14
  idna>=3.15
15
15
  itsdangerous
16
16
  joserfc<1.8,>=1.7.5
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes