pythia-plsql 0.15.5__tar.gz → 0.15.6__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 (66) hide show
  1. {pythia_plsql-0.15.5/scripts/pythia_plsql.egg-info → pythia_plsql-0.15.6}/PKG-INFO +1 -1
  2. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/pyproject.toml +1 -1
  3. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/scripts/pythia.py +7 -2
  4. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6/scripts/pythia_plsql.egg-info}/PKG-INFO +1 -1
  5. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/skills/pythia-setup/reference/environment.md +4 -2
  6. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/tests/test_phase6.py +6 -0
  7. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/LICENSE +0 -0
  8. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/README.md +0 -0
  9. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/queries/comment-current.sql +0 -0
  10. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/queries/compile-errors.sql +0 -0
  11. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/queries/current-schema.sql +0 -0
  12. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/queries/db-nls.sql +0 -0
  13. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/queries/db-version.sql +0 -0
  14. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/queries/dependencies.sql +0 -0
  15. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/queries/explain-display.sql +0 -0
  16. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/queries/impact.sql +0 -0
  17. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/queries/invalid-objects.sql +0 -0
  18. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/queries/name-occupants.sql +0 -0
  19. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/queries/object-names.sql +0 -0
  20. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/queries/object-source.sql +0 -0
  21. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/queries/plscope-enabled.sql +0 -0
  22. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/queries/plscope-statements.sql +0 -0
  23. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/queries/plscope-usages.sql +0 -0
  24. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/queries/schema-settings.sql +0 -0
  25. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/queries/session-privileges.sql +0 -0
  26. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/queries/similar-candidates.sql +0 -0
  27. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/queries/source.sql +0 -0
  28. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/queries/table-comments.sql +0 -0
  29. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/queries/table-indexes.sql +0 -0
  30. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/queries/table-stats.sql +0 -0
  31. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/queries/unindexed-fks.sql +0 -0
  32. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/scripts/pythia_plsql.egg-info/SOURCES.txt +0 -0
  33. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/scripts/pythia_plsql.egg-info/dependency_links.txt +0 -0
  34. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/scripts/pythia_plsql.egg-info/entry_points.txt +0 -0
  35. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/scripts/pythia_plsql.egg-info/requires.txt +0 -0
  36. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/scripts/pythia_plsql.egg-info/top_level.txt +0 -0
  37. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/setup.cfg +0 -0
  38. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/skills/pythia-apply/SKILL.md +0 -0
  39. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/skills/pythia-autopilot/SKILL.md +0 -0
  40. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/skills/pythia-comment/SKILL.md +0 -0
  41. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/skills/pythia-conventions/SKILL.md +0 -0
  42. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/skills/pythia-deploy/SKILL.md +0 -0
  43. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/skills/pythia-explore/SKILL.md +0 -0
  44. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/skills/pythia-explore/reference/data-dictionary.md +0 -0
  45. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/skills/pythia-impact/SKILL.md +0 -0
  46. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/skills/pythia-package/SKILL.md +0 -0
  47. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/skills/pythia-package/reference/plsql-standards.md +0 -0
  48. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/skills/pythia-review/SKILL.md +0 -0
  49. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/skills/pythia-review/reference/antipatterns.md +0 -0
  50. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/skills/pythia-setup/SKILL.md +0 -0
  51. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/skills/pythia-skill-author/SKILL.md +0 -0
  52. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/skills/pythia-spec/SKILL.md +0 -0
  53. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/skills/pythia-table/SKILL.md +0 -0
  54. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/skills/pythia-table/reference/ddl-standards.md +0 -0
  55. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/skills/pythia-tune/SKILL.md +0 -0
  56. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/skills/pythia-tune/reference/tuning-checklist.md +0 -0
  57. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/skills/pythia-verify/SKILL.md +0 -0
  58. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/skills/pythia-write/SKILL.md +0 -0
  59. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/skills/pythia-write/reference/patterns.md +0 -0
  60. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/skills/using-pythia/SKILL.md +0 -0
  61. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/tests/test_install.py +0 -0
  62. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/tests/test_mcp.py +0 -0
  63. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/tests/test_phase1.py +0 -0
  64. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/tests/test_phase2.py +0 -0
  65. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/tests/test_phase3.py +0 -0
  66. {pythia_plsql-0.15.5 → pythia_plsql-0.15.6}/tests/test_phase5.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pythia-plsql
3
- Version: 0.15.5
3
+ Version: 0.15.6
4
4
  Summary: PL/SQL development for AI agents on Oracle Database - expert data-dictionary queries, impact analysis, and a snapshot-verified write path with honest rollback.
5
5
  License: MIT
6
6
  Project-URL: Homepage, https://github.com/thaildhe172591/pythia
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pythia-plsql"
7
- version = "0.15.5"
7
+ version = "0.15.6"
8
8
  description = "PL/SQL development for AI agents on Oracle Database - expert data-dictionary queries, impact analysis, and a snapshot-verified write path with honest rollback."
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
@@ -61,7 +61,7 @@ import pathlib
61
61
  import re
62
62
  import sys
63
63
 
64
- __version__ = "0.15.5" # kept equal to pyproject.toml (tests/test_install.py)
64
+ __version__ = "0.15.6" # kept equal to pyproject.toml (tests/test_install.py)
65
65
 
66
66
  READONLY = re.compile(r"^\s*(select|with)\b", re.I)
67
67
  CONFIG_DIR = ".pythia"
@@ -7075,8 +7075,13 @@ def cmd_hook(conn, schema, ns):
7075
7075
  if run not in ("pythia", "pythia.exe"):
7076
7076
  # the shared files say `pythia`; this machine runs it otherwise
7077
7077
  # (a venv nobody activated, a clone) — field test 0.15.4
7078
+ # ...typed as written: a shell variable or a `;` makes it a
7079
+ # compound command, which the guard leaves to the client's
7080
+ # prompt (field test 0.15.5: PY=...; "$PY" -m pythia ...)
7078
7081
  print(f"RUN `pythia` here is `{run}` — spell every pythia "
7079
- "command the rules name that way.")
7082
+ "command the rules name that way, as written, one command "
7083
+ "per call: a shell variable or `;` makes it a compound "
7084
+ "command the guard asks about.")
7080
7085
  print("STATE " + "\n ".join(session_state_lines(root)))
7081
7086
  return
7082
7087
  out = (pre_tool_decision(payload) if event == "pre-tool"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pythia-plsql
3
- Version: 0.15.5
3
+ Version: 0.15.6
4
4
  Summary: PL/SQL development for AI agents on Oracle Database - expert data-dictionary queries, impact analysis, and a snapshot-verified write path with honest rollback.
5
5
  License: MIT
6
6
  Project-URL: Homepage, https://github.com/thaildhe172591/pythia
@@ -103,5 +103,7 @@ or remove it.
103
103
  `pythia: command not found` in the agent's shell does not mean the hooks are
104
104
  off: pythia's venv is just not on PATH. The session preamble's `RUN` line names
105
105
  the spelling that works on this machine (the venv's interpreter by absolute
106
- path, `-m pythia`); use it for every pythia command the rules name. Commands
107
- pythia prints already use it.
106
+ path, `-m pythia`); use it for every pythia command the rules name, typed as
107
+ written and one command per call — wrapped in a shell variable or joined with
108
+ `;`, it becomes a compound command the guard asks about. Commands pythia
109
+ prints already use it.
@@ -1166,6 +1166,12 @@ def test_session_start_names_the_launcher_that_runs_here():
1166
1166
  out = _session_start(td)
1167
1167
  assert f"`pythia` here is `{launcher}`" in out, out
1168
1168
  assert f"`{launcher} guide`" in out and f"`{launcher} connections`" in out
1169
+ # field test 0.15.5: the agent put the long launcher in a shell
1170
+ # variable (PY=...; "$PY" -m pythia ...) — a compound command, so
1171
+ # the guard asked instead of allowing. The line says how to type it.
1172
+ run = next(ln for ln in out.splitlines() if ln.startswith("RUN"))
1173
+ assert "as written" in run and "one command per call" in run, run
1174
+ assert "variable" in run and "`;`" in run, run
1169
1175
  pythia.invocation = lambda: "pythia"
1170
1176
  out = _session_start(td)
1171
1177
  assert "`pythia` here is" not in out and "`pythia guide`" in out
File without changes
File without changes
File without changes