github-agent 2.4.5__tar.gz → 2.4.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.
- {github_agent-2.4.5 → github_agent-2.4.6}/PKG-INFO +2 -2
- {github_agent-2.4.5 → github_agent-2.4.6}/README.md +1 -1
- github_agent-2.4.6/github_agent/__init__.py +1 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/mcp_server.py +1 -1
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/ontology/github.ttl +3 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent.egg-info/PKG-INFO +2 -2
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent.egg-info/SOURCES.txt +1 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/pyproject.toml +1 -1
- github_agent-2.4.6/tests/test_ontology_parent_link.py +114 -0
- github_agent-2.4.5/github_agent/__init__.py +0 -1
- {github_agent-2.4.5 → github_agent-2.4.6}/LICENSE +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/__main__.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/api/__init__.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/api/api_client_base.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/api/api_client_branches.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/api/api_client_comments.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/api/api_client_commits.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/api/api_client_contents.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/api/api_client_dependabot.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/api/api_client_issues.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/api/api_client_orgs.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/api/api_client_pages.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/api/api_client_pulls.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/api/api_client_releases.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/api/api_client_repos.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/api/api_client_search.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/api/api_client_workflows.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/api_client.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/auth.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/connectors/__init__.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/connectors/mcp_source_presets.json +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/connectors/tool_schema_fingerprints.json +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/github_gql.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/github_http.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/github_input_models.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/github_response_models.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/kg_ingest.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/mcp/__init__.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/mcp/mcp_action.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/mcp/mcp_branch.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/mcp/mcp_collaborator.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/mcp/mcp_commit.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/mcp/mcp_content.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/mcp/mcp_dependabot.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/mcp/mcp_issue.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/mcp/mcp_org.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/mcp/mcp_pull.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/mcp/mcp_release.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/mcp/mcp_repo.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/mcp/mcp_search.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/mcp_config.json +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/ontology/__init__.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/ontology/certification.json +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/ontology/fixtures/records.json +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/ontology/mappings/source.yaml +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/ontology/migrations/manifest.json +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/ontology/shapes/connector.shacl.ttl +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/prompts/__init__.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/__init__.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-actions-ci-review/SKILL.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-actions-ci-review/WORKFLOW.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-agent-operations/SKILL.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-agent-operations/agents/openai.yaml +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-agent-operations/references/catalog.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-backlog-planner/SKILL.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-backlog-planner/WORKFLOW.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-backlog-planner/references/addressed-heuristics.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-backlog-planner/scripts/build_plan.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-ci-failure-sweep/SKILL.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-ci-failure-sweep/WORKFLOW.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-ci-failure-sweep/references/actions-tool-cheatsheet.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-ci-failure-sweep/scripts/summarize_runs.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-dependabot-review/SKILL.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-dependabot-review/WORKFLOW.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-issue-tracking/SKILL.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-issue-tracking/WORKFLOW.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-org-remediation-loop/SKILL.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-org-remediation-loop/WORKFLOW.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-org-remediation-loop/scripts/classify_fix_risk.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-pr-review-sweep/SKILL.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-pr-review-sweep/WORKFLOW.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-pr-review-sweep/references/pulls-tool-cheatsheet.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-pr-review-sweep/scripts/summarize_prs.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-project-provisioner/SKILL.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-project-provisioner/WORKFLOW.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-project-provisioner/scripts/enable_pages.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-pull-request-create/SKILL.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-pull-request-create/WORKFLOW.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-pull-request-review/SKILL.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-pull-request-review/WORKFLOW.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-repository-management/SKILL.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-repository-management/WORKFLOW.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-tools/SKILL.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-tools/WORKFLOW.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-tools/code-reviewer.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-tools/scripts/fetch_comments.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-tools/scripts/inspect_pr_checks.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-triage-resolver/SKILL.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-triage-resolver/WORKFLOW.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-triage-resolver/references/resolution-rules.md +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-triage-resolver/scripts/classify_safe.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-triage-resolver/scripts/gh_write.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent.egg-info/dependency_links.txt +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent.egg-info/entry_points.txt +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent.egg-info/requires.txt +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/github_agent.egg-info/top_level.txt +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/scripts/security_sanitizer.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/scripts/verify_api_integration.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/setup.cfg +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/conftest.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/test_action_discovery.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/test_api_client_endpoints.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/test_api_validation.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/test_auth_client_edge_cases.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/test_comment_crud.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/test_default_content_surfaces.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/test_fleet_name.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/test_github_agent_api_brute_force_coverage.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/test_github_agent_brute_force_coverage.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/test_github_gql.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/test_github_http.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/test_hardening.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/test_init_dynamics.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/test_kg_ingest.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/test_mcp_coverage.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/test_mcp_package_dispatch.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/test_model_fields.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/test_org_crud.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/test_pages.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/test_repo_secrets_characterization.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/test_skill_backlog_build_plan.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/test_skill_ci_failure_sweep_summarize_runs.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/test_skill_github_tools_fetch_comments.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/test_skill_github_tools_inspect_pr_checks.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/test_skill_org_remediation_classify_fix_risk.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/test_skill_pr_review_sweep_summarize_prs.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/test_skill_triage_resolver_classify_safe.py +0 -0
- {github_agent-2.4.5 → github_agent-2.4.6}/tests/test_startup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: github-agent
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.6
|
|
4
4
|
Summary: GitHub Agent for MCP
|
|
5
5
|
Author-email: Project Maintainers <maintainers@users.noreply.github.com>
|
|
6
6
|
License: MIT
|
|
@@ -44,7 +44,7 @@ Dynamic: license-file
|
|
|
44
44
|

|
|
45
45
|

|
|
46
46
|
|
|
47
|
-
*Version: 2.4.
|
|
47
|
+
*Version: 2.4.6*
|
|
48
48
|
|
|
49
49
|
> **Documentation** — Installation, deployment, and usage across the MCP, API, and
|
|
50
50
|
> [official documentation](https://knuckles-team.github.io/github-agent/).
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|

|
|
21
21
|

|
|
22
22
|
|
|
23
|
-
*Version: 2.4.
|
|
23
|
+
*Version: 2.4.6*
|
|
24
24
|
|
|
25
25
|
> **Documentation** — Installation, deployment, and usage across the MCP, API, and
|
|
26
26
|
> [official documentation](https://knuckles-team.github.io/github-agent/).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.4.6"
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
rdfs:comment "A GitHub organization that owns repositories and members (github_orgs)." .
|
|
19
19
|
|
|
20
20
|
:Repository a owl:Class ;
|
|
21
|
+
rdfs:subClassOf :SoftwareProject ;
|
|
21
22
|
rdfs:label "Repository" ;
|
|
22
23
|
rdfs:comment "A GitHub repository / codebase (github_repos)." .
|
|
23
24
|
|
|
@@ -26,6 +27,7 @@
|
|
|
26
27
|
rdfs:comment "A proposed change under review, from a head to a base branch (github_pulls)." .
|
|
27
28
|
|
|
28
29
|
:Issue a owl:Class ;
|
|
30
|
+
rdfs:subClassOf :WorkItem ;
|
|
29
31
|
rdfs:label "Issue" ;
|
|
30
32
|
rdfs:comment "A tracked work item, bug, or discussion in a repository (github_issues)." .
|
|
31
33
|
|
|
@@ -46,6 +48,7 @@
|
|
|
46
48
|
rdfs:comment "A GitHub Actions CI/CD workflow definition (github_actions)." .
|
|
47
49
|
|
|
48
50
|
:WorkflowRun a owl:Class ;
|
|
51
|
+
rdfs:subClassOf :PipelineRun ;
|
|
49
52
|
rdfs:label "Workflow Run" ;
|
|
50
53
|
rdfs:comment "A single execution of a GitHub Actions workflow for a ref/commit (github_actions)." .
|
|
51
54
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: github-agent
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.6
|
|
4
4
|
Summary: GitHub Agent for MCP
|
|
5
5
|
Author-email: Project Maintainers <maintainers@users.noreply.github.com>
|
|
6
6
|
License: MIT
|
|
@@ -44,7 +44,7 @@ Dynamic: license-file
|
|
|
44
44
|

|
|
45
45
|

|
|
46
46
|
|
|
47
|
-
*Version: 2.4.
|
|
47
|
+
*Version: 2.4.6*
|
|
48
48
|
|
|
49
49
|
> **Documentation** — Installation, deployment, and usage across the MCP, API, and
|
|
50
50
|
> [official documentation](https://knuckles-team.github.io/github-agent/).
|
|
@@ -121,6 +121,7 @@ tests/test_kg_ingest.py
|
|
|
121
121
|
tests/test_mcp_coverage.py
|
|
122
122
|
tests/test_mcp_package_dispatch.py
|
|
123
123
|
tests/test_model_fields.py
|
|
124
|
+
tests/test_ontology_parent_link.py
|
|
124
125
|
tests/test_org_crud.py
|
|
125
126
|
tests/test_pages.py
|
|
126
127
|
tests/test_repo_secrets_characterization.py
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"""Every class of the packaged ontology reaches an epistemic-graph parent class (CONN-GITHUB-AGENT-CONNECTOR-CONTENT-R002)."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import re
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
|
|
8
|
+
import pytest
|
|
9
|
+
|
|
10
|
+
pytestmark = pytest.mark.spec("CONN-GITHUB-AGENT-CONNECTOR-CONTENT-R002")
|
|
11
|
+
|
|
12
|
+
PARENT_IRI = "http://knuckles.team/kg"
|
|
13
|
+
ONTOLOGIES = sorted(
|
|
14
|
+
(Path(__file__).resolve().parents[1] / "github_agent" / "ontology").glob("*.ttl")
|
|
15
|
+
)
|
|
16
|
+
OWL = "http://www.w3.org/2002/07/owl#"
|
|
17
|
+
RDF_TYPE = "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
|
|
18
|
+
SUBCLASS = "http://www.w3.org/2000/01/rdf-schema#subClassOf"
|
|
19
|
+
# Parent classes of the epistemic-graph ontology that this connector links to or redeclares.
|
|
20
|
+
PARENT_CLASSES = frozenset(
|
|
21
|
+
(
|
|
22
|
+
"http://knuckles.team/kg#Commit",
|
|
23
|
+
"http://knuckles.team/kg#Document",
|
|
24
|
+
"http://knuckles.team/kg#Organization",
|
|
25
|
+
"http://knuckles.team/kg#Person",
|
|
26
|
+
"http://knuckles.team/kg#PipelineRun",
|
|
27
|
+
"http://knuckles.team/kg#PullRequest",
|
|
28
|
+
"http://knuckles.team/kg#SoftwareProject",
|
|
29
|
+
"http://knuckles.team/kg#WorkItem",
|
|
30
|
+
"http://knuckles.team/kg#Workflow",
|
|
31
|
+
)
|
|
32
|
+
)
|
|
33
|
+
# Classes for which the parent ontology has no fitting class yet. Each is a candidate for a new
|
|
34
|
+
# parent class (see the orphan mapping report); a class leaves this set when it gains a parent.
|
|
35
|
+
PENDING_NEW_PARENT: frozenset[str] = frozenset(
|
|
36
|
+
(
|
|
37
|
+
"http://knuckles.team/kg#Branch",
|
|
38
|
+
"http://knuckles.team/kg#CheckRun",
|
|
39
|
+
"http://knuckles.team/kg#Release",
|
|
40
|
+
)
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
_STRING = re.compile(r'"""(?:.|\n)*?"""|"(?:[^"\\\n]|\\.)*"')
|
|
44
|
+
_IRI = re.compile(r"<([^<>\s]*)>")
|
|
45
|
+
_PREFIX = re.compile(r"(?im)^\s*@?prefix\s+([A-Za-z][\w.-]*)?:\s+\x00(\d+)\s*\.?")
|
|
46
|
+
_END = re.compile(r"\s\.(?=\s|$)|(?<=[\]>)\w\"'])\.(?=\s|$)")
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def _triples(text: str) -> list[tuple[str, str, str]]:
|
|
50
|
+
"""Subject, predicate and object of a Turtle file; names are expanded, literals dropped."""
|
|
51
|
+
iris: list[str] = []
|
|
52
|
+
|
|
53
|
+
def keep(match: re.Match[str]) -> str:
|
|
54
|
+
iris.append(match.group(1))
|
|
55
|
+
return f" \x00{len(iris)} "
|
|
56
|
+
|
|
57
|
+
body = re.sub(r"(?m)#[^\n]*$", "", _IRI.sub(keep, _STRING.sub(' "" ', text)))
|
|
58
|
+
prefixes = {
|
|
59
|
+
m.group(1) or "": iris[int(m.group(2)) - 1] for m in _PREFIX.finditer(body)
|
|
60
|
+
}
|
|
61
|
+
body = re.sub(r"\[[^\[\]]*\]", " _:b ", _PREFIX.sub("", body))
|
|
62
|
+
|
|
63
|
+
def expand(token: str) -> str:
|
|
64
|
+
if token.startswith("\x00"):
|
|
65
|
+
return iris[int(token[1:]) - 1]
|
|
66
|
+
prefix, sep, local = token.partition(":")
|
|
67
|
+
return (
|
|
68
|
+
prefixes[prefix] + local
|
|
69
|
+
if sep and prefix in prefixes
|
|
70
|
+
else RDF_TYPE
|
|
71
|
+
if token == "a"
|
|
72
|
+
else token
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
triples: list[tuple[str, str, str]] = []
|
|
76
|
+
for statement in _END.split(body):
|
|
77
|
+
tokens = statement.replace(";", " ; ").replace(",", " , ").split()
|
|
78
|
+
subject, predicate, fresh = "", "", True
|
|
79
|
+
for index, token in enumerate(tokens):
|
|
80
|
+
if index == 0:
|
|
81
|
+
subject = expand(token)
|
|
82
|
+
elif token == ";":
|
|
83
|
+
fresh = True
|
|
84
|
+
elif token != ",":
|
|
85
|
+
if fresh:
|
|
86
|
+
predicate, fresh = expand(token), False
|
|
87
|
+
else:
|
|
88
|
+
triples.append((subject, predicate, expand(token)))
|
|
89
|
+
return triples
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
def _orphans(triples: list[tuple[str, str, str]]) -> set[str]:
|
|
93
|
+
declared = {s for s, p, o in triples if p == RDF_TYPE and o == OWL + "Class"}
|
|
94
|
+
linked: set[str] = set()
|
|
95
|
+
changed = True
|
|
96
|
+
while changed:
|
|
97
|
+
changed = False
|
|
98
|
+
for cls in declared - linked - PARENT_CLASSES:
|
|
99
|
+
ups = {o for s, p, o in triples if s == cls and p == SUBCLASS}
|
|
100
|
+
if ups & (PARENT_CLASSES | linked):
|
|
101
|
+
linked.add(cls)
|
|
102
|
+
changed = True
|
|
103
|
+
return declared - linked - PARENT_CLASSES
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
@pytest.mark.parametrize("path", ONTOLOGIES, ids=lambda p: p.name)
|
|
107
|
+
def test_ontology_joins_the_parent_graph(path: Path) -> None:
|
|
108
|
+
triples = _triples(path.read_text(encoding="utf-8"))
|
|
109
|
+
declared = {s for s, p, o in triples if p == RDF_TYPE and o == OWL + "Class"}
|
|
110
|
+
if not declared:
|
|
111
|
+
pytest.skip("declares no classes")
|
|
112
|
+
imports = {o for s, p, o in triples if p == OWL + "imports"}
|
|
113
|
+
assert any(i == PARENT_IRI or i.startswith(PARENT_IRI + "/") for i in imports)
|
|
114
|
+
assert _orphans(triples) == PENDING_NEW_PARENT & declared
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.4.5"
|
|
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
|
{github_agent-2.4.5 → github_agent-2.4.6}/github_agent/connectors/tool_schema_fingerprints.json
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
|
|
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
|
{github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-actions-ci-review/SKILL.md
RENAMED
|
File without changes
|
{github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-actions-ci-review/WORKFLOW.md
RENAMED
|
File without changes
|
{github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-agent-operations/SKILL.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-backlog-planner/SKILL.md
RENAMED
|
File without changes
|
{github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-backlog-planner/WORKFLOW.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-ci-failure-sweep/SKILL.md
RENAMED
|
File without changes
|
{github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-ci-failure-sweep/WORKFLOW.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-dependabot-review/SKILL.md
RENAMED
|
File without changes
|
{github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-dependabot-review/WORKFLOW.md
RENAMED
|
File without changes
|
{github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-issue-tracking/SKILL.md
RENAMED
|
File without changes
|
{github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-issue-tracking/WORKFLOW.md
RENAMED
|
File without changes
|
{github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-org-remediation-loop/SKILL.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-pr-review-sweep/SKILL.md
RENAMED
|
File without changes
|
{github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-pr-review-sweep/WORKFLOW.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-project-provisioner/SKILL.md
RENAMED
|
File without changes
|
{github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-project-provisioner/WORKFLOW.md
RENAMED
|
File without changes
|
|
File without changes
|
{github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-pull-request-create/SKILL.md
RENAMED
|
File without changes
|
{github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-pull-request-create/WORKFLOW.md
RENAMED
|
File without changes
|
{github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-pull-request-review/SKILL.md
RENAMED
|
File without changes
|
{github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-pull-request-review/WORKFLOW.md
RENAMED
|
File without changes
|
{github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-repository-management/SKILL.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-tools/scripts/fetch_comments.py
RENAMED
|
File without changes
|
|
File without changes
|
{github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-triage-resolver/SKILL.md
RENAMED
|
File without changes
|
{github_agent-2.4.5 → github_agent-2.4.6}/github_agent/skills/github-triage-resolver/WORKFLOW.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{github_agent-2.4.5 → github_agent-2.4.6}/tests/test_github_agent_api_brute_force_coverage.py
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{github_agent-2.4.5 → github_agent-2.4.6}/tests/test_skill_ci_failure_sweep_summarize_runs.py
RENAMED
|
File without changes
|
|
File without changes
|
{github_agent-2.4.5 → github_agent-2.4.6}/tests/test_skill_github_tools_inspect_pr_checks.py
RENAMED
|
File without changes
|
{github_agent-2.4.5 → github_agent-2.4.6}/tests/test_skill_org_remediation_classify_fix_risk.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|