llm-api-scope 0.6.0__tar.gz → 0.6.1__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 (34) hide show
  1. {llm_api_scope-0.6.0/llm_api_scope.egg-info → llm_api_scope-0.6.1}/PKG-INFO +1 -1
  2. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/config.py +6 -1
  3. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1/llm_api_scope.egg-info}/PKG-INFO +1 -1
  4. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/pyproject.toml +1 -1
  5. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/LICENSE +0 -0
  6. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/README.md +0 -0
  7. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/__init__.py +0 -0
  8. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/main.py +0 -0
  9. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/openapi/__init__.py +0 -0
  10. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/openapi/app.py +0 -0
  11. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/openapi/fetch.py +0 -0
  12. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/openapi/reader.py +0 -0
  13. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/openapi/schema.py +0 -0
  14. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/openapi/spec/__init__.py +0 -0
  15. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/openapi/spec/app.py +0 -0
  16. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/openapi/spec/schema.py +0 -0
  17. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/repo/__init__.py +0 -0
  18. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/repo/app.py +0 -0
  19. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/repo/fetch.py +0 -0
  20. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/repo/schema.py +0 -0
  21. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/rfc/__init__.py +0 -0
  22. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/rfc/app.py +0 -0
  23. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/rfc/fetch.py +0 -0
  24. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/rfc/parse_txt.py +0 -0
  25. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/rfc/parse_xml.py +0 -0
  26. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/rfc/schema.py +0 -0
  27. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/rfc/search.py +0 -0
  28. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/schema.py +0 -0
  29. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/llm_api_scope.egg-info/SOURCES.txt +0 -0
  30. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/llm_api_scope.egg-info/dependency_links.txt +0 -0
  31. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/llm_api_scope.egg-info/entry_points.txt +0 -0
  32. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/llm_api_scope.egg-info/requires.txt +0 -0
  33. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/llm_api_scope.egg-info/top_level.txt +0 -0
  34. {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: llm-api-scope
3
- Version: 0.6.0
3
+ Version: 0.6.1
4
4
  Summary: read and cache structured documents from remote for LLM agents
5
5
  Author-email: D7x7z49 <85430783+D7x7z49@users.noreply.github.com>
6
6
  License: MIT License
@@ -153,7 +153,12 @@ def get_config() -> Config:
153
153
 
154
154
  # load and merge the project config
155
155
  project_config_path = get_project_config_path()
156
- if project_config_path is not None and project_config_path.exists():
156
+ if project_config_path is not None:
157
+ if not project_config_path.exists() or project_config_path.stat().st_size == 0:
158
+ # create default project config if not exists
159
+ project_config_path.write_text(
160
+ json.dumps({"$schema": DEFAULT_CONFIG_SCHEMA_PATH.as_uri()}, indent=2) + "\n"
161
+ )
157
162
  project_config = Config.model_validate_json(project_config_path.read_text())
158
163
  return global_config.merge(project_config)
159
164
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: llm-api-scope
3
- Version: 0.6.0
3
+ Version: 0.6.1
4
4
  Summary: read and cache structured documents from remote for LLM agents
5
5
  Author-email: D7x7z49 <85430783+D7x7z49@users.noreply.github.com>
6
6
  License: MIT License
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "llm-api-scope"
7
- version = "0.6.0"
7
+ version = "0.6.1"
8
8
  description = "read and cache structured documents from remote for LLM agents"
9
9
  readme = "README.md"
10
10
  license = { file = "LICENSE" }
File without changes
File without changes
File without changes