context-compiler 0.9.0.dev0__py3-none-any.whl → 0.9.0.dev2__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.
@@ -8,17 +8,9 @@ from .const import (
8
8
  POLICY_USE,
9
9
  )
10
10
  from .controller import (
11
- PreviewResult,
12
11
  StepResult,
13
- StructuralDiff,
14
- diff_has_changes,
15
- get_preview_decision,
16
- get_preview_state_after,
17
12
  get_step_decision,
18
13
  get_step_state,
19
- preview,
20
- preview_would_mutate,
21
- state_diff,
22
14
  step,
23
15
  )
24
16
  from .decision_helpers import (
@@ -30,43 +22,34 @@ from .decision_helpers import (
30
22
  )
31
23
  from .engine import (
32
24
  Decision,
25
+ DecisionKind,
33
26
  Engine,
27
+ PolicyValue,
34
28
  State,
35
29
  create_engine,
36
30
  )
37
- from .grammar import DirectiveKind, is_canonical_directive, render_directive, validate_directive
38
31
 
39
32
  __version__ = version("context-compiler")
40
33
 
41
34
  __all__ = [
42
35
  "Decision",
36
+ "DecisionKind",
43
37
  "DECISION_CLARIFY",
44
38
  "DECISION_PASSTHROUGH",
45
39
  "DECISION_UPDATE",
46
- "DirectiveKind",
47
40
  "Engine",
48
41
  "POLICY_PROHIBIT",
49
42
  "POLICY_USE",
50
- "PreviewResult",
43
+ "PolicyValue",
51
44
  "State",
52
45
  "StepResult",
53
- "StructuralDiff",
54
- "diff_has_changes",
55
46
  "create_engine",
56
47
  "get_clarify_prompt",
57
48
  "get_decision_state",
58
- "get_preview_decision",
59
- "get_preview_state_after",
60
49
  "get_step_decision",
61
50
  "get_step_state",
62
- "is_canonical_directive",
63
51
  "is_clarify",
64
52
  "is_passthrough",
65
53
  "is_update",
66
- "preview",
67
- "preview_would_mutate",
68
- "render_directive",
69
- "state_diff",
70
54
  "step",
71
- "validate_directive",
72
55
  ]
@@ -0,0 +1,23 @@
1
+ """Public auditability helpers layered above the authoritative engine."""
2
+
3
+ from .controller import (
4
+ PreviewResult,
5
+ StructuralDiff,
6
+ diff_has_changes,
7
+ get_preview_decision,
8
+ get_preview_state_after,
9
+ preview,
10
+ preview_would_mutate,
11
+ state_diff,
12
+ )
13
+
14
+ __all__ = [
15
+ "PreviewResult",
16
+ "StructuralDiff",
17
+ "diff_has_changes",
18
+ "get_preview_decision",
19
+ "get_preview_state_after",
20
+ "preview",
21
+ "preview_would_mutate",
22
+ "state_diff",
23
+ ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: context-compiler
3
- Version: 0.9.0.dev0
3
+ Version: 0.9.0.dev2
4
4
  Summary: Deterministic conversational state engine for LLM applications.
5
5
  Project-URL: Homepage, https://github.com/rlippmann/context-compiler
6
6
  Project-URL: Repository, https://github.com/rlippmann/context-compiler
@@ -306,14 +306,15 @@ Common API entry points:
306
306
  - decision helpers: `is_clarify(...)`, `is_update(...)`, `is_passthrough(...)`,
307
307
  `get_clarify_prompt(...)`, `get_decision_state(...)`
308
308
  - state transport: `engine.export_json(...)`, `engine.import_json(...)`
309
- - controller APIs: `preview(...)`, `step(...)`, `state_diff(...)`
309
+ - controller API: `step(...)`
310
+ - audit APIs: `preview(...)`, `state_diff(...)`
310
311
 
311
- ### Controller API (Reusable Outside REPL)
312
+ ### Controller And Audit APIs (Reusable Outside REPL)
312
313
 
313
- - `preview(engine, user_input)` performs a deterministic dry run and restores
314
- live engine state afterward
315
314
  - `step(engine, user_input)` returns a reusable result envelope around one
316
315
  engine turn
316
+ - `preview(engine, user_input)` performs a deterministic dry run and restores
317
+ live engine state afterward
317
318
  - `state_diff(state_before, state_after)` summarizes structural state changes
318
319
 
319
320
  For examples and helper accessors such as `get_step_decision(...)`,
@@ -1,4 +1,5 @@
1
- context_compiler/__init__.py,sha256=NS5_VAyPwcNKcJTKFkuHp6YTuBovvibgQ__miyglR60,1459
1
+ context_compiler/__init__.py,sha256=2nVa-dMpdcT_7BfP6dTBoLWanBItTWBBQ--AXEgNA7I,977
2
+ context_compiler/audit.py,sha256=AhDYy1G-xc4Ov9Jnjf_k11-hqWEp5BVIFztBJWbMpBM,476
2
3
  context_compiler/const.py,sha256=DgqVhkaNQ3hx2tToqHi9ZA6X6EYZj618vXacKxU-TDM,467
3
4
  context_compiler/controller.py,sha256=U9n9MVjbrIqlrcpqMkDTwvt_WC-FzOE2CZqbwcOXjQg,3858
4
5
  context_compiler/decision_helpers.py,sha256=RDl7TYeM7QywEFpWd3d4vw6fRnSfzgWXtgFFv044pe4,659
@@ -6,8 +7,8 @@ context_compiler/engine.py,sha256=june_5yvUF8oyWJQzoL3SINqwoY8BG-MPbjgqETwSMc,13
6
7
  context_compiler/grammar.py,sha256=PGBS5dZHx9GLHd-Emj-9TAna5PlN8MkaBMcr4HsVGLM,14165
7
8
  context_compiler/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
9
  context_compiler/repl.py,sha256=ZjjiKSj88KHKYJiaZ_YOkCncsOY8RYrHtvXUkdYVkgs,16549
9
- context_compiler-0.9.0.dev0.dist-info/METADATA,sha256=xzPGVRakAMQgbBaSHKohFzR19kGeboH4w31YGaBshN0,18109
10
- context_compiler-0.9.0.dev0.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
11
- context_compiler-0.9.0.dev0.dist-info/entry_points.txt,sha256=xnk4WE9zaC2NAMIF59WD3Y_45E8aA9KH-pZ4lqSzH-U,64
12
- context_compiler-0.9.0.dev0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
13
- context_compiler-0.9.0.dev0.dist-info/RECORD,,
10
+ context_compiler-0.9.0.dev2.dist-info/METADATA,sha256=Z2kBw2FJGEV2T9IOf3Va-JQv4Rf1nYdAfhnAp2qvnGY,18132
11
+ context_compiler-0.9.0.dev2.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
12
+ context_compiler-0.9.0.dev2.dist-info/entry_points.txt,sha256=xnk4WE9zaC2NAMIF59WD3Y_45E8aA9KH-pZ4lqSzH-U,64
13
+ context_compiler-0.9.0.dev2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
14
+ context_compiler-0.9.0.dev2.dist-info/RECORD,,