longguard 0.2.0__tar.gz → 0.2.1.dev0__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 (125) hide show
  1. longguard-0.2.1.dev0/.github/ISSUE_TEMPLATE/bug_report.yml +64 -0
  2. longguard-0.2.1.dev0/.github/ISSUE_TEMPLATE/config.yml +12 -0
  3. longguard-0.2.1.dev0/.github/ISSUE_TEMPLATE/feature_request.yml +44 -0
  4. longguard-0.2.1.dev0/.github/PULL_REQUEST_TEMPLATE.md +24 -0
  5. longguard-0.2.1.dev0/.github/dependabot.yml +20 -0
  6. {longguard-0.2.0 → longguard-0.2.1.dev0}/CHANGELOG.md +18 -0
  7. longguard-0.2.1.dev0/CODE_OF_CONDUCT.md +120 -0
  8. {longguard-0.2.0 → longguard-0.2.1.dev0}/PKG-INFO +8 -15
  9. {longguard-0.2.0 → longguard-0.2.1.dev0}/README.md +4 -13
  10. {longguard-0.2.0 → longguard-0.2.1.dev0}/SECURITY.md +1 -0
  11. longguard-0.2.1.dev0/SUPPORT.md +49 -0
  12. longguard-0.2.1.dev0/assets/LongGuard-Logo.png +0 -0
  13. longguard-0.2.1.dev0/docs/assets/LongGuard-Logo.png +0 -0
  14. {longguard-0.2.0 → longguard-0.2.1.dev0}/docs/guides/configuration.md +1 -1
  15. {longguard-0.2.0 → longguard-0.2.1.dev0}/docs/guides/reporting.md +1 -1
  16. {longguard-0.2.0 → longguard-0.2.1.dev0}/docs/index.md +6 -2
  17. {longguard-0.2.0 → longguard-0.2.1.dev0}/docs/integrations/raw-client.md +1 -1
  18. {longguard-0.2.0 → longguard-0.2.1.dev0}/mkdocs.yml +1 -0
  19. {longguard-0.2.0 → longguard-0.2.1.dev0}/pyproject.toml +4 -2
  20. {longguard-0.2.0 → longguard-0.2.1.dev0}/src/longguard/__init__.py +1 -1
  21. {longguard-0.2.0 → longguard-0.2.1.dev0}/uv.lock +2 -2
  22. {longguard-0.2.0 → longguard-0.2.1.dev0}/.github/PR_v0.2.0_DRAFT.md +0 -0
  23. {longguard-0.2.0 → longguard-0.2.1.dev0}/.github/release.yml +0 -0
  24. {longguard-0.2.0 → longguard-0.2.1.dev0}/.github/workflows/ci.yml +0 -0
  25. {longguard-0.2.0 → longguard-0.2.1.dev0}/.github/workflows/docs.yml +0 -0
  26. {longguard-0.2.0 → longguard-0.2.1.dev0}/.github/workflows/release-on-merge.yml +0 -0
  27. {longguard-0.2.0 → longguard-0.2.1.dev0}/.github/workflows/release.yml +0 -0
  28. {longguard-0.2.0 → longguard-0.2.1.dev0}/.gitignore +0 -0
  29. {longguard-0.2.0 → longguard-0.2.1.dev0}/CONTRIBUTING.md +0 -0
  30. {longguard-0.2.0 → longguard-0.2.1.dev0}/LICENSE +0 -0
  31. {longguard-0.2.0 → longguard-0.2.1.dev0}/assets/architecture.svg +0 -0
  32. {longguard-0.2.0 → longguard-0.2.1.dev0}/assets/icon.svg +0 -0
  33. {longguard-0.2.0 → longguard-0.2.1.dev0}/assets/linkedin_card.png +0 -0
  34. {longguard-0.2.0 → longguard-0.2.1.dev0}/assets/linkedin_launch.jpg +0 -0
  35. {longguard-0.2.0 → longguard-0.2.1.dev0}/assets/logo-dark.svg +0 -0
  36. {longguard-0.2.0 → longguard-0.2.1.dev0}/assets/logo-light.svg +0 -0
  37. {longguard-0.2.0 → longguard-0.2.1.dev0}/assets/logo.svg +0 -0
  38. {longguard-0.2.0 → longguard-0.2.1.dev0}/docs/assets/architecture.svg +0 -0
  39. {longguard-0.2.0 → longguard-0.2.1.dev0}/docs/assets/icon.svg +0 -0
  40. {longguard-0.2.0 → longguard-0.2.1.dev0}/docs/assets/logo-dark.svg +0 -0
  41. {longguard-0.2.0 → longguard-0.2.1.dev0}/docs/assets/logo-light.svg +0 -0
  42. {longguard-0.2.0 → longguard-0.2.1.dev0}/docs/assets/logo.svg +0 -0
  43. {longguard-0.2.0 → longguard-0.2.1.dev0}/docs/changelog.md +0 -0
  44. {longguard-0.2.0 → longguard-0.2.1.dev0}/docs/concepts/detectors.md +0 -0
  45. {longguard-0.2.0 → longguard-0.2.1.dev0}/docs/concepts/how-it-works.md +0 -0
  46. {longguard-0.2.0 → longguard-0.2.1.dev0}/docs/concepts/reflect-and-pivot.md +0 -0
  47. {longguard-0.2.0 → longguard-0.2.1.dev0}/docs/contributing.md +0 -0
  48. {longguard-0.2.0 → longguard-0.2.1.dev0}/docs/getting-started.md +0 -0
  49. {longguard-0.2.0 → longguard-0.2.1.dev0}/docs/guides/benchmarks.md +0 -0
  50. {longguard-0.2.0 → longguard-0.2.1.dev0}/docs/guides/compatibility.md +0 -0
  51. {longguard-0.2.0 → longguard-0.2.1.dev0}/docs/guides/decorator.md +0 -0
  52. {longguard-0.2.0 → longguard-0.2.1.dev0}/docs/guides/development-evidence.md +0 -0
  53. {longguard-0.2.0 → longguard-0.2.1.dev0}/docs/guides/model-pricing-sources.md +0 -0
  54. {longguard-0.2.0 → longguard-0.2.1.dev0}/docs/integrations/crewai.md +0 -0
  55. {longguard-0.2.0 → longguard-0.2.1.dev0}/docs/integrations/langchain.md +0 -0
  56. {longguard-0.2.0 → longguard-0.2.1.dev0}/docs/integrations/langgraph.md +0 -0
  57. {longguard-0.2.0 → longguard-0.2.1.dev0}/examples/crewai_guarded.py +0 -0
  58. {longguard-0.2.0 → longguard-0.2.1.dev0}/examples/custom_detector.py +0 -0
  59. {longguard-0.2.0 → longguard-0.2.1.dev0}/examples/langchain_agent.py +0 -0
  60. {longguard-0.2.0 → longguard-0.2.1.dev0}/examples/langgraph_basic.py +0 -0
  61. {longguard-0.2.0 → longguard-0.2.1.dev0}/examples/langgraph_resume.py +0 -0
  62. {longguard-0.2.0 → longguard-0.2.1.dev0}/examples/openai_raw_guard.py +0 -0
  63. {longguard-0.2.0 → longguard-0.2.1.dev0}/scripts/prepare_merge_release.py +0 -0
  64. {longguard-0.2.0 → longguard-0.2.1.dev0}/scripts/release_notes.py +0 -0
  65. {longguard-0.2.0 → longguard-0.2.1.dev0}/scripts/verify_release.py +0 -0
  66. {longguard-0.2.0 → longguard-0.2.1.dev0}/src/longguard/config.py +0 -0
  67. {longguard-0.2.0 → longguard-0.2.1.dev0}/src/longguard/core/__init__.py +0 -0
  68. {longguard-0.2.0 → longguard-0.2.1.dev0}/src/longguard/core/breaker.py +0 -0
  69. {longguard-0.2.0 → longguard-0.2.1.dev0}/src/longguard/core/decorator.py +0 -0
  70. {longguard-0.2.0 → longguard-0.2.1.dev0}/src/longguard/core/detectors/__init__.py +0 -0
  71. {longguard-0.2.0 → longguard-0.2.1.dev0}/src/longguard/core/detectors/base.py +0 -0
  72. {longguard-0.2.0 → longguard-0.2.1.dev0}/src/longguard/core/detectors/dead_end.py +0 -0
  73. {longguard-0.2.0 → longguard-0.2.1.dev0}/src/longguard/core/detectors/semantic_osc.py +0 -0
  74. {longguard-0.2.0 → longguard-0.2.1.dev0}/src/longguard/core/detectors/token_velocity.py +0 -0
  75. {longguard-0.2.0 → longguard-0.2.1.dev0}/src/longguard/core/detectors/tool_repeat.py +0 -0
  76. {longguard-0.2.0 → longguard-0.2.1.dev0}/src/longguard/core/pivot.py +0 -0
  77. {longguard-0.2.0 → longguard-0.2.1.dev0}/src/longguard/core/reporter.py +0 -0
  78. {longguard-0.2.0 → longguard-0.2.1.dev0}/src/longguard/core/step.py +0 -0
  79. {longguard-0.2.0 → longguard-0.2.1.dev0}/src/longguard/integrations/__init__.py +0 -0
  80. {longguard-0.2.0 → longguard-0.2.1.dev0}/src/longguard/integrations/crewai.py +0 -0
  81. {longguard-0.2.0 → longguard-0.2.1.dev0}/src/longguard/integrations/graph_runner.py +0 -0
  82. {longguard-0.2.0 → longguard-0.2.1.dev0}/src/longguard/integrations/langchain.py +0 -0
  83. {longguard-0.2.0 → longguard-0.2.1.dev0}/src/longguard/integrations/langgraph.py +0 -0
  84. {longguard-0.2.0 → longguard-0.2.1.dev0}/src/longguard/integrations/messages.py +0 -0
  85. {longguard-0.2.0 → longguard-0.2.1.dev0}/src/longguard/integrations/strands.py +0 -0
  86. {longguard-0.2.0 → longguard-0.2.1.dev0}/src/longguard/pricing.py +0 -0
  87. {longguard-0.2.0 → longguard-0.2.1.dev0}/src/longguard/py.typed +0 -0
  88. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/__init__.py +0 -0
  89. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/benchmarks/LABEL_REVIEW.md +0 -0
  90. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/benchmarks/corpus.json +0 -0
  91. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/benchmarks/results/baseline-hash.json +0 -0
  92. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/benchmarks/results/current-hash.json +0 -0
  93. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/benchmarks/run.py +0 -0
  94. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/conftest.py +0 -0
  95. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/fixtures/report_v014.json +0 -0
  96. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_benchmark.py +0 -0
  97. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_breaker.py +0 -0
  98. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_config.py +0 -0
  99. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_crewai_callback_contracts.py +0 -0
  100. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_crewai_execution.py +0 -0
  101. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_crewai_integration.py +0 -0
  102. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_dead_end.py +0 -0
  103. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_decorator.py +0 -0
  104. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_decorator_contracts.py +0 -0
  105. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_langchain_integration.py +0 -0
  106. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_langgraph_integration.py +0 -0
  107. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_langgraph_node_contracts.py +0 -0
  108. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_langgraph_resume.py +0 -0
  109. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_merge_release_workflow.py +0 -0
  110. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_pivot.py +0 -0
  111. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_policy_edge_contracts.py +0 -0
  112. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_prepare_merge_release.py +0 -0
  113. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_pricing.py +0 -0
  114. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_public_exports.py +0 -0
  115. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_release_notes.py +0 -0
  116. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_report_persistence.py +0 -0
  117. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_reporter.py +0 -0
  118. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_semantic_osc.py +0 -0
  119. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_step.py +0 -0
  120. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_step_adapters.py +0 -0
  121. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_strands_integration.py +0 -0
  122. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_terminal_state.py +0 -0
  123. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_token_velocity.py +0 -0
  124. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_tool_cleanup.py +0 -0
  125. {longguard-0.2.0 → longguard-0.2.1.dev0}/tests/test_tool_repeat.py +0 -0
@@ -0,0 +1,64 @@
1
+ name: Bug Report
2
+ description: Report a reproducible problem or unexpected behavior in LongGuard
3
+ title: "[Bug]: "
4
+ labels: ["bug"]
5
+ body:
6
+ - type: markdown
7
+ attributes:
8
+ value: |
9
+ Thank you for reporting an issue! Please check if a similar issue already exists before submitting.
10
+ - type: textarea
11
+ id: description
12
+ attributes:
13
+ label: Description
14
+ description: A clear and concise description of what the bug is.
15
+ placeholder: What happened vs what you expected to happen...
16
+ validations:
17
+ required: true
18
+ - type: textarea
19
+ id: reproduction
20
+ attributes:
21
+ label: Minimal Reproduction Code
22
+ description: Provide a minimal, self-contained Python script to reproduce the issue (without API keys).
23
+ placeholder: |
24
+ ```python
25
+ from longguard import CircuitBreaker, GuardConfig, AgentStep
26
+ ...
27
+ ```
28
+ render: python
29
+ validations:
30
+ required: true
31
+ - type: textarea
32
+ id: telemetry
33
+ attributes:
34
+ label: Telemetry / GuardReport Output
35
+ description: If applicable, attach redacted `GuardReport.summary()` or JSON output.
36
+ render: json
37
+ validations:
38
+ required: false
39
+ - type: input
40
+ id: environment
41
+ attributes:
42
+ label: Environment Details
43
+ description: "Versions: LongGuard version, Python version, OS (e.g. LongGuard 0.2.0, Python 3.12.3, Ubuntu 22.04)"
44
+ placeholder: "LongGuard 0.2.0, Python 3.12.3, Ubuntu 22.04"
45
+ validations:
46
+ required: true
47
+ - type: input
48
+ id: framework_versions
49
+ attributes:
50
+ label: Framework Versions (if relevant)
51
+ description: "e.g. LangGraph 1.0.0, LangChain 1.0.2, CrewAI 0.28.0"
52
+ placeholder: "LangGraph 1.0.0"
53
+ validations:
54
+ required: false
55
+ - type: checkboxes
56
+ id: checklist
57
+ attributes:
58
+ label: Confirmations
59
+ options:
60
+ - label: I have verified this is not a duplicate of an existing issue.
61
+ required: true
62
+ - label: I have verified that no sensitive information (API keys, secrets, private data) is included.
63
+ required: true
64
+
@@ -0,0 +1,12 @@
1
+ blank_issues_enabled: false
2
+ contact_links:
3
+ - name: GitHub Discussions
4
+ url: https://github.com/ENDEVSOLS/LongGuard/discussions
5
+ about: Ask questions, get help, or share how you are using LongGuard.
6
+ - name: Documentation
7
+ url: https://endevsols.github.io/LongGuard/
8
+ about: Read user guides, API references, and tutorials.
9
+ - name: Security Vulnerability Reporting
10
+ url: https://github.com/ENDEVSOLS/LongGuard/blob/main/SECURITY.md
11
+ about: Privately disclose potential security vulnerabilities.
12
+
@@ -0,0 +1,44 @@
1
+ name: Feature Request
2
+ description: Propose a new feature, adapter, detector, or enhancement for LongGuard
3
+ title: "[Feature]: "
4
+ labels: ["enhancement"]
5
+ body:
6
+ - type: markdown
7
+ attributes:
8
+ value: |
9
+ Have an idea to make LongGuard better? Let us know!
10
+ - type: textarea
11
+ id: problem
12
+ attributes:
13
+ label: Problem Statement
14
+ description: Is your feature request related to a problem or limitation? A clear and concise description of what the problem is.
15
+ placeholder: "I am always frustrated when..."
16
+ validations:
17
+ required: true
18
+ - type: textarea
19
+ id: proposed_solution
20
+ attributes:
21
+ label: Proposed Solution / API Design
22
+ description: Describe what you would like to happen and provide sample API usage if applicable.
23
+ placeholder: |
24
+ ```python
25
+ # Proposed API usage:
26
+ ...
27
+ ```
28
+ validations:
29
+ required: true
30
+ - type: textarea
31
+ id: alternatives
32
+ attributes:
33
+ label: Alternatives Considered
34
+ description: Any alternative solutions or workarounds you've considered.
35
+ validations:
36
+ required: false
37
+ - type: textarea
38
+ id: context
39
+ attributes:
40
+ label: Additional Context
41
+ description: Add any other context, screenshots, or framework documentation links here.
42
+ validations:
43
+ required: false
44
+
@@ -0,0 +1,24 @@
1
+ ## Description
2
+
3
+ <!-- Provide a brief explanation of the motivation and context for this change. -->
4
+
5
+ Fixes #(issue)
6
+
7
+ ## Type of Change
8
+
9
+ - [ ] Bug fix (non-breaking change which fixes an issue)
10
+ - [ ] New feature (non-breaking change which adds functionality)
11
+ - [ ] Documentation update
12
+ - [ ] Refactoring / performance improvement (no behavior change)
13
+ - [ ] CI / infrastructure / release tooling
14
+
15
+ ## Checklist
16
+
17
+ - [ ] Code follows the style guidelines of this project
18
+ - [ ] `uv run ruff check src/ tests/` passes
19
+ - [ ] `uv run mypy src/longguard/` passes with no errors
20
+ - [ ] `uv run pytest tests/` passes with all tests green
21
+ - [ ] Added tests for new features or bug fixes
22
+ - [ ] Documentation and `CHANGELOG.md` have been updated if applicable
23
+ - [ ] Runtime behavior is preserved (or explicitly documented if changed)
24
+
@@ -0,0 +1,20 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "pip"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+ day: "monday"
8
+ commit-message:
9
+ prefix: "chore(deps):"
10
+ open-pull-requests-limit: 10
11
+
12
+ - package-ecosystem: "github-actions"
13
+ directory: "/"
14
+ schedule:
15
+ interval: "weekly"
16
+ day: "monday"
17
+ commit-message:
18
+ prefix: "chore(deps):"
19
+ open-pull-requests-limit: 10
20
+
@@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ---
9
9
 
10
+ ## [0.2.1] - 2026-11-09
11
+
12
+ ### Added
13
+
14
+ - GitHub issue templates (bug reports, feature requests), issue configuration linking to Discussions and Docs, and pull request template with pre-merge checklist.
15
+ - Community governance and support infrastructure (`CODE_OF_CONDUCT.md` and `SUPPORT.md`).
16
+ - Weekly Dependabot configuration (`.github/dependabot.yml`) for `pip` and `github-actions`.
17
+ - `Changelog` and `Discussions` links under `[project.urls]` in `pyproject.toml`.
18
+
19
+ ### Changed
20
+
21
+ - Corrected README and documentation claims to match code reality (Python 3.11+ requirement, CrewAI integration, `@guarded` decorator, guarded LangGraph resume, and removed stale v0.1.3 labels and static test count badges).
22
+
23
+ ### Compatibility and limits
24
+
25
+ - No runtime change: detectors, circuit breaker state machine, defaults, budget boundaries, and report schemas are identical to 0.2.0.
26
+ - Baseline 0.2.0 was published to PyPI on 2026-11-03.
27
+
10
28
  ## [0.2.0] - 2026-10-07
11
29
 
12
30
  ### Added
@@ -0,0 +1,120 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, caste, color, religion, or sexual
10
+ identity and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the
26
+ overall community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or advances of
31
+ any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email
35
+ address, without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ **technology@endevsols.com**.
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series of
86
+ actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or permanent
93
+ ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within the
113
+ community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org),
118
+ version 2.1, available at
119
+ https://www.contributor-covenant.org/version/2/1/code_of_conduct.html.
120
+
@@ -1,11 +1,13 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: longguard
3
- Version: 0.2.0
3
+ Version: 0.2.1.dev0
4
4
  Summary: Circuit breaker middleware for LangGraph/LangChain agents — detect loops, inject Reflect & Pivot, prevent runaway costs
5
5
  Project-URL: Homepage, https://github.com/ENDEVSOLS/LongGuard
6
6
  Project-URL: Repository, https://github.com/ENDEVSOLS/LongGuard
7
- Project-URL: Issues, https://github.com/ENDEVSOLS/LongGuard/issues
8
7
  Project-URL: Documentation, https://endevsols.github.io/LongGuard/
8
+ Project-URL: Changelog, https://github.com/ENDEVSOLS/LongGuard/blob/main/CHANGELOG.md
9
+ Project-URL: Issues, https://github.com/ENDEVSOLS/LongGuard/issues
10
+ Project-URL: Discussions, https://github.com/ENDEVSOLS/LongGuard/discussions
9
11
  Author-email: EnDevSols <technology@endevsols.com>
10
12
  License-Expression: MIT
11
13
  License-File: LICENSE
@@ -59,16 +61,9 @@ Description-Content-Type: text/markdown
59
61
  <div align="center">
60
62
 
61
63
  <p align="center">
62
- <picture>
63
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/ENDEVSOLS/LongGuard/main/assets/logo-dark.svg">
64
- <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/ENDEVSOLS/LongGuard/main/assets/logo-light.svg">
65
- <img alt="LongGuard Logo" src="https://raw.githubusercontent.com/ENDEVSOLS/LongGuard/main/assets/logo-light.svg" width="340">
66
- </picture>
64
+ <img src="assets/LongGuard-Logo.png" alt="LongGuard Logo" width="320">
67
65
  </p>
68
66
 
69
-
70
-
71
-
72
67
  **In-flight circuit breaker & reasoning loop recovery for LangGraph & LangChain agents**
73
68
 
74
69
  [![PyPI version](https://img.shields.io/pypi/v/longguard.svg?color=blue)](https://pypi.org/project/longguard/)
@@ -86,11 +81,8 @@ Description-Content-Type: text/markdown
86
81
  <p align="center">
87
82
  <a href="https://endevsols.github.io/LongGuard/getting-started/"><strong>⚡ Quick Start</strong></a> &nbsp;·&nbsp;
88
83
  <a href="https://endevsols.github.io/LongGuard/"><strong>📖 Documentation</strong></a> &nbsp;·&nbsp;
89
- <a href="https://endevsols.github.io/LongGuard/integrations/crewai/"><strong>👥 CrewAI</strong></a> &nbsp;·&nbsp;
90
- <a href="https://endevsols.github.io/LongGuard/guides/decorator/"><strong>🪄 @guarded</strong></a> &nbsp;·&nbsp;
91
- <a href="https://endevsols.github.io/LongGuard/concepts/how-it-works/"><strong>💡 How It Works</strong></a> &nbsp;·&nbsp;
92
- <a href="https://endevsols.github.io/LongGuard/concepts/detectors/"><strong>🔍 Loop Detectors</strong></a> &nbsp;·&nbsp;
93
- <a href="https://endevsols.github.io/LongGuard/integrations/raw-client/"><strong>🐍 Raw Clients</strong></a> &nbsp;·&nbsp;
84
+ <a href="https://endevsols.github.io/LongGuard/guides/configuration/"><strong>⚙️ API Reference</strong></a> &nbsp;·&nbsp;
85
+ <a href="https://endevsols.github.io/LongGuard/concepts/detectors/"><strong>🔍 Loop Detection</strong></a> &nbsp;·&nbsp;
94
86
  <a href="https://endevsols.github.io/LongGuard/changelog/"><strong>📜 Changelog</strong></a>
95
87
  </p>
96
88
 
@@ -118,6 +110,7 @@ LongGuard is part of the **[EnDevSols Long Suite](https://endevsols.com/open-sou
118
110
 
119
111
  - **[LongParser](https://github.com/ENDEVSOLS/LongParser)** — High-speed, privacy-first local document ingestion & chunking (PDF, DOCX, PPTX, XLSX)
120
112
  - **[LongTrainer](https://github.com/ENDEVSOLS/Long-Trainer)** — Production multi-tenant RAG chatbot and agent framework
113
+ - **[LongCache](https://github.com/ENDEVSOLS/LongCache)** — Production semantic similarity caching for LLM and RAG pipelines
121
114
  - **[LongTracer](https://github.com/ENDEVSOLS/LongTracer)** — Post-generation hallucination detection via hybrid STS + NLI claim verification
122
115
  - **[LongProbe](https://github.com/ENDEVSOLS/LongProbe)** — Sub-second RAG retrieval regression testing with pytest
123
116
  - **[LongGuard](https://github.com/ENDEVSOLS/LongGuard)** — **In-flight runtime agent circuit breaker & reasoning loop recovery** ← *You are here*
@@ -1,16 +1,9 @@
1
1
  <div align="center">
2
2
 
3
3
  <p align="center">
4
- <picture>
5
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/ENDEVSOLS/LongGuard/main/assets/logo-dark.svg">
6
- <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/ENDEVSOLS/LongGuard/main/assets/logo-light.svg">
7
- <img alt="LongGuard Logo" src="https://raw.githubusercontent.com/ENDEVSOLS/LongGuard/main/assets/logo-light.svg" width="340">
8
- </picture>
4
+ <img src="assets/LongGuard-Logo.png" alt="LongGuard Logo" width="320">
9
5
  </p>
10
6
 
11
-
12
-
13
-
14
7
  **In-flight circuit breaker & reasoning loop recovery for LangGraph & LangChain agents**
15
8
 
16
9
  [![PyPI version](https://img.shields.io/pypi/v/longguard.svg?color=blue)](https://pypi.org/project/longguard/)
@@ -28,11 +21,8 @@
28
21
  <p align="center">
29
22
  <a href="https://endevsols.github.io/LongGuard/getting-started/"><strong>⚡ Quick Start</strong></a> &nbsp;·&nbsp;
30
23
  <a href="https://endevsols.github.io/LongGuard/"><strong>📖 Documentation</strong></a> &nbsp;·&nbsp;
31
- <a href="https://endevsols.github.io/LongGuard/integrations/crewai/"><strong>👥 CrewAI</strong></a> &nbsp;·&nbsp;
32
- <a href="https://endevsols.github.io/LongGuard/guides/decorator/"><strong>🪄 @guarded</strong></a> &nbsp;·&nbsp;
33
- <a href="https://endevsols.github.io/LongGuard/concepts/how-it-works/"><strong>💡 How It Works</strong></a> &nbsp;·&nbsp;
34
- <a href="https://endevsols.github.io/LongGuard/concepts/detectors/"><strong>🔍 Loop Detectors</strong></a> &nbsp;·&nbsp;
35
- <a href="https://endevsols.github.io/LongGuard/integrations/raw-client/"><strong>🐍 Raw Clients</strong></a> &nbsp;·&nbsp;
24
+ <a href="https://endevsols.github.io/LongGuard/guides/configuration/"><strong>⚙️ API Reference</strong></a> &nbsp;·&nbsp;
25
+ <a href="https://endevsols.github.io/LongGuard/concepts/detectors/"><strong>🔍 Loop Detection</strong></a> &nbsp;·&nbsp;
36
26
  <a href="https://endevsols.github.io/LongGuard/changelog/"><strong>📜 Changelog</strong></a>
37
27
  </p>
38
28
 
@@ -60,6 +50,7 @@ LongGuard is part of the **[EnDevSols Long Suite](https://endevsols.com/open-sou
60
50
 
61
51
  - **[LongParser](https://github.com/ENDEVSOLS/LongParser)** — High-speed, privacy-first local document ingestion & chunking (PDF, DOCX, PPTX, XLSX)
62
52
  - **[LongTrainer](https://github.com/ENDEVSOLS/Long-Trainer)** — Production multi-tenant RAG chatbot and agent framework
53
+ - **[LongCache](https://github.com/ENDEVSOLS/LongCache)** — Production semantic similarity caching for LLM and RAG pipelines
63
54
  - **[LongTracer](https://github.com/ENDEVSOLS/LongTracer)** — Post-generation hallucination detection via hybrid STS + NLI claim verification
64
55
  - **[LongProbe](https://github.com/ENDEVSOLS/LongProbe)** — Sub-second RAG retrieval regression testing with pytest
65
56
  - **[LongGuard](https://github.com/ENDEVSOLS/LongGuard)** — **In-flight runtime agent circuit breaker & reasoning loop recovery** ← *You are here*
@@ -4,6 +4,7 @@
4
4
 
5
5
  | Version | Supported |
6
6
  | ------- | ------------------ |
7
+ | 0.2.x | :white_check_mark: |
7
8
  | 0.1.x | :white_check_mark: |
8
9
 
9
10
  ## Reporting a Vulnerability
@@ -0,0 +1,49 @@
1
+ # Getting Support for LongGuard
2
+
3
+ Thank you for using **LongGuard**! Here is how to find help, report issues, and connect with the community.
4
+
5
+ ---
6
+
7
+ ## 1. Documentation & Guides
8
+
9
+ Before opening an issue, check the official documentation:
10
+
11
+ - **Official Documentation**: https://endevsols.github.io/LongGuard/
12
+ - **Quick Start**: https://endevsols.github.io/LongGuard/getting-started/
13
+ - **Integrations**:
14
+ - [LangGraph Integration](https://endevsols.github.io/LongGuard/integrations/langgraph/)
15
+ - [LangChain Integration](https://endevsols.github.io/LongGuard/integrations/langchain/)
16
+ - [CrewAI Integration](https://endevsols.github.io/LongGuard/integrations/crewai/)
17
+ - [Raw Client (OpenAI / Anthropic)](https://endevsols.github.io/LongGuard/integrations/raw-client/)
18
+ - **Concepts & Detectors**: https://endevsols.github.io/LongGuard/concepts/detectors/
19
+
20
+ ---
21
+
22
+ ## 2. Questions & Usage Discussions
23
+
24
+ For general questions, architecture discussions, or sharing your agent setup:
25
+
26
+ - **GitHub Discussions**: https://github.com/ENDEVSOLS/LongGuard/discussions
27
+ - **GitHub Issues**: Please reserve issues for reproducible bugs and targeted feature requests.
28
+
29
+ ---
30
+
31
+ ## 3. Reporting Bugs
32
+
33
+ If you encounter unexpected behavior or a bug:
34
+
35
+ 1. Search existing [GitHub Issues](https://github.com/ENDEVSOLS/LongGuard/issues) to avoid duplicates.
36
+ 2. Open a new issue using our **Bug Report** template.
37
+ 3. Include:
38
+ - LongGuard, Python, and OS versions
39
+ - Framework versions (`langgraph`, `langchain`, `crewai`, etc.)
40
+ - Minimal reproduction code snippet
41
+ - Redacted `GuardReport` output or logs if applicable
42
+
43
+ ---
44
+
45
+ ## 4. Security Vulnerabilities
46
+
47
+ Please **do not** open public GitHub issues for security vulnerabilities.
48
+ Refer to our [Security Policy](SECURITY.md) or email **technology@endevsols.com**.
49
+
@@ -39,7 +39,7 @@ config = GuardConfig(
39
39
  log_level="WARNING",
40
40
  emit_events=True,
41
41
 
42
- # --- Dollar Cost Tracking (v0.1.3) ---
42
+ # --- Dollar Cost Tracking ---
43
43
  model="gpt-4o", # Model identifier for built-in pricing lookup
44
44
  max_cost_usd=0.50, # Hard-kill when estimated spend hits $0.50
45
45
  # cost_per_input_token=2.5e-6, # Override: price per input token (USD)
@@ -61,7 +61,7 @@ data = report.to_dict()
61
61
 
62
62
  ---
63
63
 
64
- ## Saving & Loading Reports *(v0.1.3)*
64
+ ## Saving & Loading Reports
65
65
 
66
66
  Persist run telemetry to disk for CI artifacts, post-mortem debugging, or dashboards:
67
67
 
@@ -1,3 +1,7 @@
1
+ <p align="center">
2
+ <img src="assets/LongGuard-Logo.png" alt="LongGuard Logo" width="320">
3
+ </p>
4
+
1
5
  # LongGuard 🛡️
2
6
 
3
7
  **The Chain-of-Thought Circuit Breaker for LangGraph and LangChain Agents.**
@@ -6,8 +10,7 @@
6
10
  [![PyPI Downloads](https://img.shields.io/pypi/dm/longguard.svg?color=blue&label=downloads)](https://pypi.org/project/longguard/)
7
11
  [![Python 3.11+](https://img.shields.io/badge/python-3.11+-blue.svg)](https://www.python.org/downloads/)
8
12
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
9
- [![Tests: 271 passing](https://img.shields.io/badge/tests-271%20passing-brightgreen.svg)](https://github.com/ENDEVSOLS/LongGuard/actions/workflows/ci.yml)
10
- [![Coverage: 90%](https://img.shields.io/badge/coverage-90%25-green.svg)](https://github.com/ENDEVSOLS/LongGuard/actions/workflows/ci.yml)
13
+ [![CI](https://github.com/ENDEVSOLS/LongGuard/actions/workflows/ci.yml/badge.svg)](https://github.com/ENDEVSOLS/LongGuard/actions/workflows/ci.yml)
11
14
 
12
15
  ---
13
16
 
@@ -72,3 +75,4 @@ app = workflow.compile()
72
75
  - Check out the [Quick Start Guide](getting-started.md) to install and configure LongGuard.
73
76
  - Learn about the [4 Built-In Detectors](concepts/detectors.md).
74
77
  - Explore [LangGraph Integration](integrations/langgraph.md) and [LangChain Integration](integrations/langchain.md).
78
+ - Explore [CrewAI Integration](integrations/crewai.md) and [@guarded Decorator Guide](guides/decorator.md).
@@ -6,7 +6,7 @@ Use LongGuard directly with the OpenAI or Anthropic Python SDK — no LangGraph
6
6
 
7
7
  ## How It Works
8
8
 
9
- LongGuard v0.1.3 adds two class methods to `AgentStep` that extract all necessary
9
+ LongGuard provides two class methods on `AgentStep` that extract all necessary
10
10
  information from a raw SDK response using duck-typing (no hard SDK dependency):
11
11
 
12
12
  ```python
@@ -93,6 +93,7 @@ nav:
93
93
  - GuardReport & Telemetry: guides/reporting.md
94
94
  - Tested Compatibility: guides/compatibility.md
95
95
  - Detector Benchmarks: guides/benchmarks.md
96
+ - Model Pricing Sources: guides/model-pricing-sources.md
96
97
  - Preview Development Evidence: guides/development-evidence.md
97
98
  - Contributing: contributing.md
98
99
  - Changelog: changelog.md
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "longguard"
7
- version = "0.2.0"
7
+ version = "0.2.1.dev0"
8
8
  description = "Circuit breaker middleware for LangGraph/LangChain agents — detect loops, inject Reflect & Pivot, prevent runaway costs"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -50,8 +50,10 @@ dependencies = [
50
50
  [project.urls]
51
51
  Homepage = "https://github.com/ENDEVSOLS/LongGuard"
52
52
  Repository = "https://github.com/ENDEVSOLS/LongGuard"
53
- Issues = "https://github.com/ENDEVSOLS/LongGuard/issues"
54
53
  Documentation = "https://endevsols.github.io/LongGuard/"
54
+ Changelog = "https://github.com/ENDEVSOLS/LongGuard/blob/main/CHANGELOG.md"
55
+ Issues = "https://github.com/ENDEVSOLS/LongGuard/issues"
56
+ Discussions = "https://github.com/ENDEVSOLS/LongGuard/discussions"
55
57
 
56
58
  [project.optional-dependencies]
57
59
  langgraph = [
@@ -41,7 +41,7 @@ LangChain integration::
41
41
  result = guarded.run("Your query here")
42
42
  """
43
43
 
44
- __version__ = "0.2.0"
44
+ __version__ = "0.2.1.dev0"
45
45
 
46
46
  from typing import Any
47
47
 
@@ -1,5 +1,5 @@
1
1
  version = 1
2
- revision = 5
2
+ revision = 3
3
3
  requires-python = ">=3.11"
4
4
  resolution-markers = [
5
5
  "python_full_version >= '3.15'",
@@ -2096,7 +2096,7 @@ wheels = [
2096
2096
 
2097
2097
  [[package]]
2098
2098
  name = "longguard"
2099
- version = "0.2.0"
2099
+ version = "0.2.1.dev0"
2100
2100
  source = { editable = "." }
2101
2101
  dependencies = [
2102
2102
  { name = "numpy" },
File without changes
File without changes