Metadata-Version: 2.4
Name: ai-usage-bar-mac
Version: 0.1.1a4
Summary: macOS team companion for AI Usage Bar
Author: noah-traderlab
License-Expression: MIT
Project-URL: Feedback, https://docs.google.com/forms/d/e/1FAIpQLScucMa18bwOd0HByQKaym4i5IFk9-P_EEkQg2sbT11G-9GJpg/viewform
Project-URL: Homepage, https://github.com/noah-traderlab/ai-usage-bar-support
Project-URL: Historical archive, https://github.com/noah-traderlab/ai-usage-bar
Project-URL: Issues, https://github.com/noah-traderlab/ai-usage-bar-support/issues
Project-URL: Security, https://github.com/noah-traderlab/ai-usage-bar-support/security/policy
Classifier: Development Status :: 3 - Alpha
Classifier: Operating System :: MacOS
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: THIRD_PARTY_NOTICES.md
Dynamic: license-file

# AI Usage Bar — macOS companion

An early-stage Python companion to the Windows AI Usage Bar application. It joins an existing team and reports Claude Code/Codex usage to a shared folder. The administrator dashboard is part of the separate Windows application.

This is the **0.1.1a4 alpha** Python package. The installation commands below use locally obtained distribution files; verify their source, matching version, and digests before installing. Requires Python 3.11 or newer. The optional GUI requires Tk support; macOS GUI behavior on end-user machines remains unverified. Linux and Windows can run synthetic checks, but their native desktop integration is not supported by this companion.

[Share feedback — optional, no sign-in or name required](https://docs.google.com/forms/d/e/1FAIpQLScucMa18bwOd0HByQKaym4i5IFk9-P_EEkQg2sbT11G-9GJpg/viewform). Short comments, difficulties, and questions are welcome, including from people who have not used the product. Responses are kept non-public for product improvement.

## Install a verified wheel and inspect it

Use the exact wheel whose source and digest you have checked. These commands install that local file without contacting a package index:

```sh
python3 -m venv .venv
.venv/bin/python -m pip install --no-index --no-deps path/to/ai_usage_bar_mac-0.1.1a4-py3-none-any.whl
.venv/bin/aiusagebar --help
```

On Windows, the equivalent executables are under `.venv\Scripts\`. Installation and `--help` do not join a team or start the GUI.

To inspect saved sharing settings without showing personal values:

```sh
.venv/bin/aiusagebar status --sharing
```

This reads the local participation settings, which can contain a private key, but does not use or display that key. It shows the saved participation state, consent ceiling, and names of information that may be shared. It does not read raw logs, authentication data, or the shared folder, and does not send reports or save settings. The current effective sharing scope remains unverified; friends settings are separate. See the bundled `docs/sharing-status.md`. Ordinary `status` may display personal values; the joined GUI retains automatic reporting.

## Source and repeatable checks

The source distribution includes this companion's runtime source, seven synthetic test files (132 regression methods and 36 selftest checks), the packaging verifier, licenses, and verification instructions in `docs/python-package-release.md`. These counts describe the required checks; record passing results for the exact files tested. Test fixtures are generated locally. The wheel contains runtime code and metadata; obtain the matching source distribution to repeat the checks. Neither artifact includes the Windows application or its tests.

With the documented build tools already installed, unpack the source distribution and run its verifier against that same archive. It rebuilds from the archive, installs into a temporary environment without an index, checks the imported code's location, and runs the synthetic checks against the installed wheel, including 34 Codex object-shape cases, 35 model-type cases, 10 token-value cases, and 38 Claude quota-value cases. The verifier checks the installed origins of logs, services, and resetwatch. A skipped regression is an incomplete result, not a full pass. This does not verify the macOS GUI or establish a security audit.

Active development remains in the private `noah-traderlab/ai-project` repository. The [historical source archive](https://github.com/noah-traderlab/ai-usage-bar) preserves earlier source and releases; it does not represent this version. The matching source distribution and its recorded digest identify the packaged source.

## Repair in 0.1.1a4

A positive non-finite token count in a Claude or Codex JSONL file, such as the numeric value `1e309`, could stop parsing later valid records in that file. The parser treats non-finite float counts as zero so that usable values and subsequent records can still be counted. Existing handling of integers, finite positive floats, truncation, negative values, and booleans is retained.

The 10 token-value regression methods cover both tools, continued parsing, other valid fields in the same record, numeric compatibility, total fallback, deduplication, and archived logs with synthetic temporary inputs. Real-world occurrence and affected user counts remain unknown. The repair does not change timestamps, sharing/reporting behavior, or notification delivery. Verification results apply to the exact tested archives; source changes alone do not establish registry publication.

## Previous repairs in 0.1.1a3

[PyPI 0.1.1a3](https://pypi.org/project/ai-usage-bar-mac/0.1.1a3/) was published on 2026-11-10. Its Linux package verification passed 122 regressions without skips and 36 selftest checks; its two published artifacts also passed independent digest and provenance verification. Those are historical results for a3 and do not verify the 0.1.1a4 files.

Two local-input repairs preserve usable results when optional metadata is invalid:

- An explicitly non-string model value in a Codex context or Claude usage record previously caused daily-history aggregation to raise an exception, including otherwise valid records from the other tool. Such a model is now unknown, while its token count is retained. Codex's existing missing/null/empty-string inheritance and Claude's placeholder handling remain unchanged. An invalid record is not attributed to the previous known model.
- Claude usage values such as `"NaN"` previously became 100% remaining and could generate a false reset indication. Non-finite or unconvertible usage is now unknown; a valid value for the other period remains available, and two unknown values produce no quota snapshot. Finite numeric strings, clamping, rounding, and legitimate reset detection retain their existing behavior.

The 35 model-type and 38 quota-value tests use synthetic temporary inputs. Reset tests exercise the calculation only, with notification delivery disabled. These checks do not establish how often malformed values occur in real user data. Timestamp parsing, notification delivery, team/reporting behavior, and macOS GUI behavior are outside these repairs.

## Previous repair in 0.1.1a2

[PyPI 0.1.1a1](https://pypi.org/project/ai-usage-bar-mac/0.1.1a1/) was published on 2026-11-07 UTC (2026-11-08 JST) from revision `0f1f7e8bb0a2d8f042bda44373ca72115b3c75b3`. In that version, a syntactically valid Codex JSON record with an unexpected object shape could stop parsing later records in the same file and undercount usage. Version 0.1.1a2 skips the affected record and continues parsing. It checks object boundaries for `turn_context`, `session_meta`, and `token_usage_record`, including nested subagent metadata, before updating session state.

The 34 synthetic Codex cases check continued counting, model and session preservation, parent/nickname metadata, and deduplication. They use generated temporary logs, not user logs. This repair does not validate every possible field or future log schema. The release also includes the existing optional accountless feedback link near installation instructions and in package metadata.

[PyPI 0.1.0](https://pypi.org/project/ai-usage-bar-mac/0.1.0/) remains the earlier stable release. It predates `status --sharing`, the consent display, and the source-distribution checks added in 0.1.1a1. Existing Windows releases and Mac app previews are separate artifacts. A successful check of an earlier version is not a result for 0.1.1a4.

## Privacy, reporting, and license

Joining is optional and requires explicit consent. Team reports can include machine/user identifiers, email, token usage, session titles, working directories, activity times, and prompt text from recent Claude Code/Codex sessions. Read the sharing guide and join consent before using `join --yes`. Reports are encrypted for the team administrator; the administrator and shared-folder permissions still need to be trusted. Use `leave` to stop team participation. The optional friends feature is separate and off by default.

Use the [support repository](https://github.com/noah-traderlab/ai-usage-bar-support/issues/new/choose) for ordinary bugs or installation questions, and the [private reporting form](https://github.com/noah-traderlab/ai-usage-bar-support/security/advisories/new) for suspected vulnerabilities. Private reporting requires a GitHub account; read the [reporting policy](https://github.com/noah-traderlab/ai-usage-bar-support/blob/main/SECURITY.md) first. Do not put private logs, keys, personal information, or vulnerability details in public posts.

Maintained by [noah-traderlab](https://github.com/noah-traderlab). MIT licensed; see the bundled license and third-party notices. Investigation and implementation can use AI assistance with recorded checks. This is an independent project and is not affiliated with Anthropic or OpenAI.

## Optional feedback

[Share feedback — optional, no sign-in or name required](https://docs.google.com/forms/d/e/1FAIpQLScucMa18bwOd0HByQKaym4i5IFk9-P_EEkQg2sbT11G-9GJpg/viewform). Short comments, difficulties, and questions are welcome, including from people who have not used the product. Responses are kept non-public for product improvement.

No name or email address is required. Do not include secrets, raw logs, or personal information. Complete anonymity, including records kept by Google, is not guaranteed. Sending feedback does not grant permission to quote or republish it for other purposes. The form explains how to request a correction or deletion and the limits of those requests.

No feedback is required to install or use this package. Send suspected vulnerabilities to the private reporting channel above, not this general feedback form.
