copilot-session-usage 0.1.0__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.
- copilot_session_usage/__init__.py +10 -0
- copilot_session_usage/_internal/__init__.py +1 -0
- copilot_session_usage/_internal/copilot_cli.py +18 -0
- copilot_session_usage/_internal/core.py +1016 -0
- copilot_session_usage/_internal/vscode.py +242 -0
- copilot_session_usage/api.py +211 -0
- copilot_session_usage/cli.py +282 -0
- copilot_session_usage/data/__init__.py +0 -0
- copilot_session_usage/data/custom-models-pricing.yml +22 -0
- copilot_session_usage/data/models-and-pricing.lock +7 -0
- copilot_session_usage/data/models-and-pricing.yml +269 -0
- copilot_session_usage-0.1.0.dist-info/METADATA +187 -0
- copilot_session_usage-0.1.0.dist-info/RECORD +16 -0
- copilot_session_usage-0.1.0.dist-info/WHEEL +4 -0
- copilot_session_usage-0.1.0.dist-info/entry_points.txt +2 -0
- copilot_session_usage-0.1.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"""Copilot Session Usage — cost analytics for coding-agent session logs."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
try:
|
|
6
|
+
from importlib.metadata import version
|
|
7
|
+
|
|
8
|
+
__version__ = version("copilot-session-usage")
|
|
9
|
+
except Exception: # pragma: no cover
|
|
10
|
+
__version__ = "unknown"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Internal implementation modules."""
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""Stub for Copilot-CLI session discovery.
|
|
2
|
+
|
|
3
|
+
Planned support for Copilot-CLI v1 session logs. Not yet implemented.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from __future__ import annotations
|
|
7
|
+
|
|
8
|
+
from pathlib import Path
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def default_workspace_storage_roots() -> list[Path]: # pragma: no cover
|
|
12
|
+
"""Raise NotImplementedError — Copilot-CLI support is planned for a future release."""
|
|
13
|
+
raise NotImplementedError("Copilot-CLI session discovery is not yet implemented.")
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def resolve_ws_roots(workspace_storage: str | None) -> list[Path]: # pragma: no cover
|
|
17
|
+
"""Raise NotImplementedError — Copilot-CLI support is planned for a future release."""
|
|
18
|
+
raise NotImplementedError("Copilot-CLI session discovery is not yet implemented.")
|