pythia-plsql 0.15.8__tar.gz → 0.15.9__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.
- {pythia_plsql-0.15.8/scripts/pythia_plsql.egg-info → pythia_plsql-0.15.9}/PKG-INFO +4 -1
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/README.md +3 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/pyproject.toml +1 -1
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/scripts/pythia.py +9 -6
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9/scripts/pythia_plsql.egg-info}/PKG-INFO +4 -1
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/tests/test_phase6.py +10 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/LICENSE +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/queries/comment-current.sql +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/queries/compile-errors.sql +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/queries/current-schema.sql +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/queries/db-nls.sql +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/queries/db-version.sql +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/queries/dependencies.sql +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/queries/explain-display.sql +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/queries/impact.sql +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/queries/invalid-objects.sql +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/queries/name-occupants.sql +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/queries/object-names.sql +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/queries/object-source.sql +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/queries/plscope-enabled.sql +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/queries/plscope-statements.sql +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/queries/plscope-usages.sql +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/queries/schema-settings.sql +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/queries/session-privileges.sql +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/queries/similar-candidates.sql +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/queries/source.sql +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/queries/table-comments.sql +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/queries/table-indexes.sql +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/queries/table-stats.sql +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/queries/unindexed-fks.sql +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/scripts/pythia_plsql.egg-info/SOURCES.txt +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/scripts/pythia_plsql.egg-info/dependency_links.txt +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/scripts/pythia_plsql.egg-info/entry_points.txt +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/scripts/pythia_plsql.egg-info/requires.txt +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/scripts/pythia_plsql.egg-info/top_level.txt +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/setup.cfg +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/skills/pythia-apply/SKILL.md +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/skills/pythia-autopilot/SKILL.md +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/skills/pythia-comment/SKILL.md +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/skills/pythia-conventions/SKILL.md +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/skills/pythia-deploy/SKILL.md +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/skills/pythia-explore/SKILL.md +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/skills/pythia-explore/reference/data-dictionary.md +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/skills/pythia-impact/SKILL.md +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/skills/pythia-package/SKILL.md +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/skills/pythia-package/reference/plsql-standards.md +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/skills/pythia-review/SKILL.md +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/skills/pythia-review/reference/antipatterns.md +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/skills/pythia-setup/SKILL.md +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/skills/pythia-setup/reference/environment.md +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/skills/pythia-skill-author/SKILL.md +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/skills/pythia-spec/SKILL.md +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/skills/pythia-table/SKILL.md +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/skills/pythia-table/reference/ddl-standards.md +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/skills/pythia-tune/SKILL.md +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/skills/pythia-tune/reference/tuning-checklist.md +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/skills/pythia-verify/SKILL.md +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/skills/pythia-write/SKILL.md +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/skills/pythia-write/reference/patterns.md +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/skills/using-pythia/SKILL.md +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/tests/test_install.py +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/tests/test_mcp.py +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/tests/test_phase1.py +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/tests/test_phase2.py +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/tests/test_phase3.py +0 -0
- {pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/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.
|
|
3
|
+
Version: 0.15.9
|
|
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
|
|
@@ -204,6 +204,9 @@ each agent needs you to finish by hand.
|
|
|
204
204
|
text untouched. The rules hold even with `--no-hooks`, before a restart,
|
|
205
205
|
or while the hooks are untrusted; when the block is there, the
|
|
206
206
|
SessionStart hook adds only the live state instead of repeating the guide.
|
|
207
|
+
A block from an older pythia (upgraded, not yet re-installed) gets the
|
|
208
|
+
current guide instead, with a `NOTE` line saying it wins until `pythia
|
|
209
|
+
install` refreshes the block.
|
|
207
210
|
|
|
208
211
|
**The interpreter is chosen by what really starts pythia.** A hook that
|
|
209
212
|
cannot start fails open — Claude Code treats its error as non-blocking —
|
|
@@ -190,6 +190,9 @@ each agent needs you to finish by hand.
|
|
|
190
190
|
text untouched. The rules hold even with `--no-hooks`, before a restart,
|
|
191
191
|
or while the hooks are untrusted; when the block is there, the
|
|
192
192
|
SessionStart hook adds only the live state instead of repeating the guide.
|
|
193
|
+
A block from an older pythia (upgraded, not yet re-installed) gets the
|
|
194
|
+
current guide instead, with a `NOTE` line saying it wins until `pythia
|
|
195
|
+
install` refreshes the block.
|
|
193
196
|
|
|
194
197
|
**The interpreter is chosen by what really starts pythia.** A hook that
|
|
195
198
|
cannot start fails open — Claude Code treats its error as non-blocking —
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pythia-plsql"
|
|
7
|
-
version = "0.15.
|
|
7
|
+
version = "0.15.9"
|
|
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.
|
|
64
|
+
__version__ = "0.15.9" # 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"
|
|
@@ -7254,13 +7254,16 @@ def cmd_hook(conn, schema, ns):
|
|
|
7254
7254
|
print("PYTHIA HARNESS ACTIVE - the rules are in CLAUDE.md "
|
|
7255
7255
|
f"(pythia block); `{run} guide` prints the full contract.")
|
|
7256
7256
|
else:
|
|
7257
|
+
head, rest = BRIEF_GUIDE.rstrip().split("\n", 1)
|
|
7258
|
+
print(head)
|
|
7257
7259
|
if loaded:
|
|
7258
7260
|
# upgraded, not re-installed: the block carries an older
|
|
7259
|
-
# version's rules (the door order among them)
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7261
|
+
# version's rules (the door order among them) — said
|
|
7262
|
+
# under the one header, before the rules that replace it
|
|
7263
|
+
print("NOTE CLAUDE.md's pythia block is from an older "
|
|
7264
|
+
"pythia; where it differs from the rules below, these "
|
|
7265
|
+
f"win. `{run} install` refreshes it.")
|
|
7266
|
+
print(rest)
|
|
7264
7267
|
if run not in ("pythia", "pythia.exe"):
|
|
7265
7268
|
# the shared files say `pythia`; this machine runs it otherwise
|
|
7266
7269
|
# (a venv nobody activated, a clone) — field test 0.15.4
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pythia-plsql
|
|
3
|
-
Version: 0.15.
|
|
3
|
+
Version: 0.15.9
|
|
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
|
|
@@ -204,6 +204,9 @@ each agent needs you to finish by hand.
|
|
|
204
204
|
text untouched. The rules hold even with `--no-hooks`, before a restart,
|
|
205
205
|
or while the hooks are untrusted; when the block is there, the
|
|
206
206
|
SessionStart hook adds only the live state instead of repeating the guide.
|
|
207
|
+
A block from an older pythia (upgraded, not yet re-installed) gets the
|
|
208
|
+
current guide instead, with a `NOTE` line saying it wins until `pythia
|
|
209
|
+
install` refreshes the block.
|
|
207
210
|
|
|
208
211
|
**The interpreter is chosen by what really starts pythia.** A hook that
|
|
209
212
|
cannot start fails open — Claude Code treats its error as non-blocking —
|
|
@@ -1606,6 +1606,16 @@ def test_session_start_supersedes_a_claude_md_block_from_an_older_pythia():
|
|
|
1606
1606
|
encoding="utf-8")
|
|
1607
1607
|
out = _session_start(td)
|
|
1608
1608
|
assert route in out and "older pythia" in out and "install" in out
|
|
1609
|
+
# one header, the note read first (field test 0.15.8: two headers)
|
|
1610
|
+
assert out.count("PYTHIA HARNESS ACTIVE") == 1, out
|
|
1611
|
+
lines = out.splitlines()
|
|
1612
|
+
assert lines[0].startswith("PYTHIA HARNESS ACTIVE")
|
|
1613
|
+
assert lines[1].startswith("NOTE ") and "older pythia" in lines[1], lines[:2]
|
|
1614
|
+
for state in ("none", "current"): # one header there too
|
|
1615
|
+
with tempfile.TemporaryDirectory() as td:
|
|
1616
|
+
if state == "current":
|
|
1617
|
+
pythia.merge_claude_md(pathlib.Path(td) / "CLAUDE.md")
|
|
1618
|
+
assert _session_start(td).count("PYTHIA HARNESS ACTIVE") == 1
|
|
1609
1619
|
|
|
1610
1620
|
|
|
1611
1621
|
def test_the_claude_md_block_puts_the_chat_question_first():
|
|
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
|
{pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/scripts/pythia_plsql.egg-info/dependency_links.txt
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
|
{pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/skills/pythia-explore/reference/data-dictionary.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/skills/pythia-package/reference/plsql-standards.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
|
{pythia_plsql-0.15.8 → pythia_plsql-0.15.9}/skills/pythia-tune/reference/tuning-checklist.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
|