artificial-intelligence-usage 0.0.3__tar.gz → 0.0.5__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 (15) hide show
  1. {artificial_intelligence_usage-0.0.3 → artificial_intelligence_usage-0.0.5}/PKG-INFO +19 -2
  2. {artificial_intelligence_usage-0.0.3 → artificial_intelligence_usage-0.0.5}/README.md +17 -1
  3. {artificial_intelligence_usage-0.0.3 → artificial_intelligence_usage-0.0.5}/pyproject.toml +2 -1
  4. {artificial_intelligence_usage-0.0.3 → artificial_intelligence_usage-0.0.5}/src/artificial_intelligence_usage.egg-info/PKG-INFO +19 -2
  5. {artificial_intelligence_usage-0.0.3 → artificial_intelligence_usage-0.0.5}/src/artificial_intelligence_usage.egg-info/SOURCES.txt +1 -0
  6. artificial_intelligence_usage-0.0.5/src/artificial_intelligence_usage.egg-info/requires.txt +1 -0
  7. artificial_intelligence_usage-0.0.5/src/artificial_intelligence_usage.py +716 -0
  8. artificial_intelligence_usage-0.0.5/tests/test_artificial_intelligence_usage.py +608 -0
  9. artificial_intelligence_usage-0.0.3/src/artificial_intelligence_usage.py +0 -359
  10. artificial_intelligence_usage-0.0.3/tests/test_artificial_intelligence_usage.py +0 -197
  11. {artificial_intelligence_usage-0.0.3 → artificial_intelligence_usage-0.0.5}/setup.cfg +0 -0
  12. {artificial_intelligence_usage-0.0.3 → artificial_intelligence_usage-0.0.5}/src/artificial_intelligence_usage.egg-info/dependency_links.txt +0 -0
  13. {artificial_intelligence_usage-0.0.3 → artificial_intelligence_usage-0.0.5}/src/artificial_intelligence_usage.egg-info/entry_points.txt +0 -0
  14. {artificial_intelligence_usage-0.0.3 → artificial_intelligence_usage-0.0.5}/src/artificial_intelligence_usage.egg-info/top_level.txt +0 -0
  15. {artificial_intelligence_usage-0.0.3 → artificial_intelligence_usage-0.0.5}/tests/test_publish_pypi.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: artificial-intelligence-usage
3
- Version: 0.0.3
3
+ Version: 0.0.5
4
4
  Summary: Analyze usage of artificial intelligence tool.
5
5
  Author: Kaizten Analytics
6
6
  License-Expression: LicenseRef-Proprietary
@@ -8,18 +8,34 @@ Classifier: Programming Language :: Python :: 3
8
8
  Classifier: Programming Language :: Python :: 3 :: Only
9
9
  Requires-Python: >=3.10
10
10
  Description-Content-Type: text/markdown
11
+ Requires-Dist: langid==1.1.6
11
12
 
12
13
  # Artificial Intelligence Usage
13
14
 
14
15
  `artificial-intelligence-usage` analyzes local Codex session rollouts and prints a summary of the
15
- latest session followed by daily session, turn, token, and rate-limit usage.
16
+ latest session followed by daily and per-session prompt, token, and rate-limit usage.
16
17
 
17
18
  ## Behavior
18
19
 
19
20
  - Reads rollout files below `~/.codex/sessions`.
21
+ - Shows the installed Codex and Claude CLI versions when those commands are
22
+ available.
20
23
  - Shows status details from the most recently modified session.
21
24
  - Reports sessions from the last 14 calendar days by default, including today.
22
25
  - Counts user turns and cumulative tokens for each session.
26
+ - Breaks applied prompts down into Normal, Plan, and Goal counts. Goal counts
27
+ include automatic goal continuations, while background tasks such as guardian
28
+ reviews are excluded.
29
+ - Shows a second table with one row per session, including its start time,
30
+ session name (up to 10 characters), first-prompt preview (up to 20
31
+ characters), GitHub repository, usage, and language.
32
+ - Reads session names from `~/.codex/session_index.jsonl`. Missing names and
33
+ prompts display as `Unknown`.
34
+ - For goal-only sessions, reads the goal objective from
35
+ `~/.codex/goals_1.sqlite` for the prompt preview and reports its language as
36
+ `Unknown`.
37
+ - Uses `langid`, restricted to English and Spanish, for prompt language
38
+ detection. Sessions without a detectable user prompt show `Unknown`.
23
39
  - Shows the remaining five-hour and weekly allowance recorded in each day's
24
40
  last session.
25
41
  - Ignores malformed JSON lines and incomplete status events.
@@ -29,6 +45,7 @@ The tool only reads local session files and does not modify them.
29
45
  ## Requirements
30
46
 
31
47
  - Python 3.10 or newer
48
+ - `langid` 1.1.6 (installed automatically with the package)
32
49
 
33
50
  ## Building
34
51
 
@@ -1,14 +1,29 @@
1
1
  # Artificial Intelligence Usage
2
2
 
3
3
  `artificial-intelligence-usage` analyzes local Codex session rollouts and prints a summary of the
4
- latest session followed by daily session, turn, token, and rate-limit usage.
4
+ latest session followed by daily and per-session prompt, token, and rate-limit usage.
5
5
 
6
6
  ## Behavior
7
7
 
8
8
  - Reads rollout files below `~/.codex/sessions`.
9
+ - Shows the installed Codex and Claude CLI versions when those commands are
10
+ available.
9
11
  - Shows status details from the most recently modified session.
10
12
  - Reports sessions from the last 14 calendar days by default, including today.
11
13
  - Counts user turns and cumulative tokens for each session.
14
+ - Breaks applied prompts down into Normal, Plan, and Goal counts. Goal counts
15
+ include automatic goal continuations, while background tasks such as guardian
16
+ reviews are excluded.
17
+ - Shows a second table with one row per session, including its start time,
18
+ session name (up to 10 characters), first-prompt preview (up to 20
19
+ characters), GitHub repository, usage, and language.
20
+ - Reads session names from `~/.codex/session_index.jsonl`. Missing names and
21
+ prompts display as `Unknown`.
22
+ - For goal-only sessions, reads the goal objective from
23
+ `~/.codex/goals_1.sqlite` for the prompt preview and reports its language as
24
+ `Unknown`.
25
+ - Uses `langid`, restricted to English and Spanish, for prompt language
26
+ detection. Sessions without a detectable user prompt show `Unknown`.
12
27
  - Shows the remaining five-hour and weekly allowance recorded in each day's
13
28
  last session.
14
29
  - Ignores malformed JSON lines and incomplete status events.
@@ -18,6 +33,7 @@ The tool only reads local session files and does not modify them.
18
33
  ## Requirements
19
34
 
20
35
  - Python 3.10 or newer
36
+ - `langid` 1.1.6 (installed automatically with the package)
21
37
 
22
38
  ## Building
23
39
 
@@ -4,12 +4,13 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "artificial-intelligence-usage"
7
- version = "0.0.3"
7
+ version = "0.0.5"
8
8
  description = "Analyze usage of artificial intelligence tool."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
11
11
  license = "LicenseRef-Proprietary"
12
12
  authors = [{ name = "Kaizten Analytics" }]
13
+ dependencies = ["langid==1.1.6"]
13
14
  classifiers = [
14
15
  "Programming Language :: Python :: 3",
15
16
  "Programming Language :: Python :: 3 :: Only",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: artificial-intelligence-usage
3
- Version: 0.0.3
3
+ Version: 0.0.5
4
4
  Summary: Analyze usage of artificial intelligence tool.
5
5
  Author: Kaizten Analytics
6
6
  License-Expression: LicenseRef-Proprietary
@@ -8,18 +8,34 @@ Classifier: Programming Language :: Python :: 3
8
8
  Classifier: Programming Language :: Python :: 3 :: Only
9
9
  Requires-Python: >=3.10
10
10
  Description-Content-Type: text/markdown
11
+ Requires-Dist: langid==1.1.6
11
12
 
12
13
  # Artificial Intelligence Usage
13
14
 
14
15
  `artificial-intelligence-usage` analyzes local Codex session rollouts and prints a summary of the
15
- latest session followed by daily session, turn, token, and rate-limit usage.
16
+ latest session followed by daily and per-session prompt, token, and rate-limit usage.
16
17
 
17
18
  ## Behavior
18
19
 
19
20
  - Reads rollout files below `~/.codex/sessions`.
21
+ - Shows the installed Codex and Claude CLI versions when those commands are
22
+ available.
20
23
  - Shows status details from the most recently modified session.
21
24
  - Reports sessions from the last 14 calendar days by default, including today.
22
25
  - Counts user turns and cumulative tokens for each session.
26
+ - Breaks applied prompts down into Normal, Plan, and Goal counts. Goal counts
27
+ include automatic goal continuations, while background tasks such as guardian
28
+ reviews are excluded.
29
+ - Shows a second table with one row per session, including its start time,
30
+ session name (up to 10 characters), first-prompt preview (up to 20
31
+ characters), GitHub repository, usage, and language.
32
+ - Reads session names from `~/.codex/session_index.jsonl`. Missing names and
33
+ prompts display as `Unknown`.
34
+ - For goal-only sessions, reads the goal objective from
35
+ `~/.codex/goals_1.sqlite` for the prompt preview and reports its language as
36
+ `Unknown`.
37
+ - Uses `langid`, restricted to English and Spanish, for prompt language
38
+ detection. Sessions without a detectable user prompt show `Unknown`.
23
39
  - Shows the remaining five-hour and weekly allowance recorded in each day's
24
40
  last session.
25
41
  - Ignores malformed JSON lines and incomplete status events.
@@ -29,6 +45,7 @@ The tool only reads local session files and does not modify them.
29
45
  ## Requirements
30
46
 
31
47
  - Python 3.10 or newer
48
+ - `langid` 1.1.6 (installed automatically with the package)
32
49
 
33
50
  ## Building
34
51
 
@@ -5,6 +5,7 @@ src/artificial_intelligence_usage.egg-info/PKG-INFO
5
5
  src/artificial_intelligence_usage.egg-info/SOURCES.txt
6
6
  src/artificial_intelligence_usage.egg-info/dependency_links.txt
7
7
  src/artificial_intelligence_usage.egg-info/entry_points.txt
8
+ src/artificial_intelligence_usage.egg-info/requires.txt
8
9
  src/artificial_intelligence_usage.egg-info/top_level.txt
9
10
  tests/test_artificial_intelligence_usage.py
10
11
  tests/test_publish_pypi.py