call-copilot 0.2.0__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.
@@ -0,0 +1,45 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ # Cancel in-flight runs for the same ref when a new commit is pushed.
10
+ concurrency:
11
+ group: ${{ github.workflow }}-${{ github.ref }}
12
+ cancel-in-progress: true
13
+
14
+ jobs:
15
+ test:
16
+ name: Test (Python ${{ matrix.python-version }})
17
+ # audiotap is macOS-only (Core Audio process taps), so the editable install
18
+ # would fail on Linux before a single test runs. The test suite itself is
19
+ # offline and mocks audiotap / faster-whisper, so no audio device or model
20
+ # download is needed.
21
+ runs-on: macos-latest
22
+ strategy:
23
+ fail-fast: false
24
+ matrix:
25
+ python-version: ["3.11", "3.12", "3.13"]
26
+
27
+ steps:
28
+ - uses: actions/checkout@v4
29
+
30
+ - name: Set up Python ${{ matrix.python-version }}
31
+ uses: actions/setup-python@v5
32
+ with:
33
+ python-version: ${{ matrix.python-version }}
34
+ cache: pip
35
+
36
+ - name: Install package and dev dependencies
37
+ run: |
38
+ python -m pip install --upgrade pip
39
+ pip install -e ".[dev]"
40
+
41
+ - name: Lint with ruff
42
+ run: ruff check .
43
+
44
+ - name: Run tests
45
+ run: python -m pytest tests -v
@@ -0,0 +1,103 @@
1
+ name: Release
2
+
3
+ # Publishes to PyPI when a `v*` tag is pushed. Uses PyPI Trusted Publishing
4
+ # (OIDC) — no API token stored in repo secrets. Configure the trusted publisher
5
+ # once on PyPI (see docs/HOMEBREW.md / repo settings):
6
+ # PyPI project → Publishing → Add a publisher
7
+ # Environment: release
8
+ # Workflow: .github/workflows/release.yml
9
+ # GitHub repo: AnisurRahmann/call-copilot
10
+
11
+ on:
12
+ push:
13
+ tags:
14
+ - "v*"
15
+
16
+ # One release at a time per tag; never cancel a publish mid-flight.
17
+ concurrency:
18
+ group: release-${{ github.ref }}
19
+ cancel-in-progress: false
20
+
21
+ # The OIDC token needs these permissions to be issued by GitHub.
22
+ permissions:
23
+ id-token: write
24
+ contents: read
25
+
26
+ jobs:
27
+ build:
28
+ name: Build sdist + wheel
29
+ runs-on: macos-latest
30
+ # Trusted Publishing scopes the publish to this environment name; it must
31
+ # match the environment configured on the PyPI project.
32
+ environment: release
33
+ steps:
34
+ - uses: actions/checkout@v4
35
+
36
+ - name: Set up Python 3.12
37
+ uses: actions/setup-python@v5
38
+ with:
39
+ python-version: "3.12"
40
+ cache: pip
41
+
42
+ # Run the test suite on the exact tag we're publishing, so a broken
43
+ # release can never reach PyPI. Install with dev extras for pytest/ruff.
44
+ - name: Install package + dev dependencies
45
+ run: |
46
+ python -m pip install --upgrade pip
47
+ pip install -e ".[dev]"
48
+ pip install build
49
+
50
+ - name: Lint
51
+ run: ruff check .
52
+
53
+ - name: Run tests
54
+ run: python -m pytest tests -v
55
+
56
+ - name: Build sdist + wheel
57
+ run: python -m build
58
+
59
+ # A quick sanity check that the just-built wheel installs cleanly and the
60
+ # console script is present — catches packaging regressions before upload.
61
+ - name: Verify the wheel installs and exposes `rec`
62
+ run: |
63
+ pip install --force-reinstall dist/*.whl
64
+ rec --version
65
+
66
+ - name: Upload build artifacts
67
+ uses: actions/upload-artifact@v4
68
+ with:
69
+ name: dist
70
+ path: dist/
71
+ if-no-files-found: error
72
+ retention-days: 7
73
+
74
+ publish:
75
+ name: Publish to PyPI
76
+ needs: build
77
+ runs-on: ubuntu-latest
78
+ environment: release
79
+ steps:
80
+ - name: Download build artifacts
81
+ uses: actions/download-artifact@v4
82
+ with:
83
+ name: dist
84
+ path: dist/
85
+
86
+ # Trusted Publishing: no password/token. pypa/gh-action-pypi-publish
87
+ # exchanges the OIDC token issued by GitHub for a short-lived PyPI upload
88
+ # credential scoped to this exact workflow + environment.
89
+ - name: Publish to PyPI
90
+ uses: pypa/gh-action-pypi-publish@release/v1
91
+ with:
92
+ # `skip-existing` avoids a hard failure if the same version is
93
+ # re-pushed (e.g. re-running a partially-failed release). PyPI never
94
+ # overwrites a file — it just skips the duplicate.
95
+ skip-existing: true
96
+
97
+ - name: Create GitHub Release
98
+ uses: softprops/action-gh-release@v2
99
+ with:
100
+ generate_release_notes: true
101
+ files: |
102
+ dist/*.whl
103
+ dist/*.tar.gz
@@ -0,0 +1,133 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, caste, color, religion, or sexual identity
10
+ and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the
26
+ overall community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or
31
+ advances of any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email
35
+ address, without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official email address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community maintainer responsible for enforcement at
63
+ **pshakilwizard@gmail.com**.
64
+
65
+ All complaints will be reviewed and investigated promptly and fairly.
66
+
67
+ All community leaders are obligated to respect the privacy and security of the
68
+ reporter of any incident.
69
+
70
+ ## Enforcement Guidelines
71
+
72
+ Community leaders will follow these Community Impact Guidelines in determining
73
+ the consequences for any action they deem in violation of this Code of Conduct:
74
+
75
+ ### 1. Correction
76
+
77
+ **Community Impact**: Use of inappropriate language or other behavior deemed
78
+ unprofessional or unwelcome in the community.
79
+
80
+ **Consequence**: A private, written warning from community leaders, providing
81
+ clarity around the nature of the violation and an explanation of why the
82
+ behavior was inappropriate. A public apology may be requested.
83
+
84
+ ### 2. Warning
85
+
86
+ **Community Impact**: A violation through a single incident or series
87
+ of actions.
88
+
89
+ **Consequence**: A warning with consequences for continued behavior. No
90
+ interaction with the people involved, including unsolicited interaction with
91
+ those enforcing the Code of Conduct, for a specified period of time. This
92
+ includes avoiding interactions in community spaces as well as external channels
93
+ like social media. Violating these terms may lead to a temporary or
94
+ permanent ban.
95
+
96
+ ### 3. Temporary Ban
97
+
98
+ **Community Impact**: A serious violation of community standards, including
99
+ sustained inappropriate behavior.
100
+
101
+ **Consequence**: A temporary ban from any sort of interaction or public
102
+ communication with the community for a specified period of time. No public or
103
+ private interaction with the people involved, including unsolicited interaction
104
+ with those enforcing the Code of Conduct, is allowed during this period.
105
+ Violating these terms may lead to a permanent ban.
106
+
107
+ ### 4. Permanent Ban
108
+
109
+ **Community Impact**: Demonstrating a pattern of violation of community
110
+ standards, including sustained inappropriate behavior, harassment of an
111
+ individual, or aggression toward or disparagement of classes of individuals.
112
+
113
+ **Consequence**: A permanent ban from any sort of public interaction within
114
+ the community.
115
+
116
+ ## Attribution
117
+
118
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
119
+ version 2.1, available at
120
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
121
+
122
+ Community Impact Guidelines were inspired by
123
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
124
+
125
+ For answers to common questions about this code of conduct, see the FAQ at
126
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
127
+ [https://www.contributor-covenant.org/translations][translations].
128
+
129
+ [homepage]: https://www.contributor-covenant.org
130
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
131
+ [Mozilla CoC]: https://github.com/mozilla/diversity
132
+ [FAQ]: https://www.contributor-covenant.org/faq
133
+ [translations]: https://www.contributor-covenant.org/translations
@@ -0,0 +1,84 @@
1
+ # Contributing to Call Copilot
2
+
3
+ Thanks for your interest in Call Copilot! This project is small and focused — a
4
+ terminal meeting recorder for macOS that transcribes locally. The easiest way to
5
+ help is one of these:
6
+
7
+ 1. **File an issue** for a bug, a missing feature, or a doc gap.
8
+ 2. **Open a pull request** for a concrete fix. Small, focused PRs land fastest.
9
+
10
+ ## Project scope
11
+
12
+ Call Copilot deliberately does one thing: record meeting audio and produce a clean
13
+ local transcript. It is **not** aiming to become a meeting summarizer, a calendar
14
+ integrator, or a cloud product. If your change broadens the scope, open an issue to
15
+ discuss it before investing in a PR — it may be a better fit as a separate tool.
16
+
17
+ ## Development setup
18
+
19
+ You need **macOS 14.2+** (the `audiotap` dependency uses Core Audio process taps,
20
+ which is macOS-only) and **Python 3.11+**.
21
+
22
+ ```bash
23
+ git clone https://github.com/AnisurRahmann/call-copilot.git
24
+ cd call-copilot
25
+ make install # creates .venv and installs the package + dev deps (editable)
26
+ ```
27
+
28
+ ## Running the tests
29
+
30
+ ```bash
31
+ make test # == .venv/bin/python -m pytest tests -v
32
+ ```
33
+
34
+ The suite is **fully offline**: no audio device, no microphone permission, and no
35
+ Whisper model download is required. It mocks `audiotap`, `faster-whisper`, and the
36
+ filesystem, so it runs on any macOS box (including CI) without setup. Expect **89
37
+ passing** on a clean tree.
38
+
39
+ > The tests pass anywhere, but running the actual `rec` commands still requires
40
+ > macOS 14.2+ with capture permissions granted.
41
+
42
+ ## Code style
43
+
44
+ - **Lint:** [ruff](https://docs.astral.sh/ruff/) is configured in `pyproject.toml`
45
+ (`target-version = "py311"`, `line-length = 100`). Run `ruff check .` before
46
+ pushing; CI enforces it.
47
+ - **Python:** 3.11+. New code may use modern syntax (`X | None`, `match`, etc.).
48
+ - Match the surrounding style — module docstrings, `from __future__ import
49
+ annotations`, type hints, and `log.debug/info/warning` via the `log.py` helper.
50
+
51
+ ## Pull requests
52
+
53
+ 1. **Branch** off `main`. Use a descriptive name: `feat/...`, `fix/...`, `docs/...`.
54
+ 2. **Keep it focused.** One logical change per PR; put unrelated work in separate PRs.
55
+ 3. **Add or update tests** for any behavior change. The test suite is the contract.
56
+ 4. **Run the gate locally** before pushing:
57
+ ```bash
58
+ make test
59
+ .venv/bin/ruff check .
60
+ ```
61
+ 5. **Reference the issue** your PR addresses in the description (e.g. `Closes #12`).
62
+ 6. Be patient and kind. This is a small project; review may take a few days.
63
+
64
+ If a change touches audio capture, transcription output, or the session file format,
65
+ call that out explicitly in the PR description — those are the load-bearing parts.
66
+
67
+ ## Reporting bugs
68
+
69
+ Open an [issue](https://github.com/AnisurRahmann/call-copilot/issues) and include:
70
+
71
+ - macOS version and chip (Intel / Apple Silicon).
72
+ - Python version (`python3 --version`).
73
+ - The exact `rec` command(s) you ran and the flags used.
74
+ - The output of `rec diagnose <session-id> --stdout` (it bundles logs + metadata
75
+ without including the audio itself).
76
+
77
+ ## Security issues
78
+
79
+ Do **not** open a public issue for security problems. See [SECURITY.md](SECURITY.md)
80
+ for private reporting.
81
+
82
+ ## Code of conduct
83
+
84
+ By participating you agree to uphold the [Code of Conduct](CODE_OF_CONDUCT.md).
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Anisur Rahman
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,11 @@
1
+ # Include docs + metadata in the source distribution (sdist). The wheel only
2
+ # needs the Python package under src/; the sdist also carries README, LICENSE,
3
+ # the Homebrew formula, and the release docs so the package is self-describing.
4
+ include README.md
5
+ include LICENSE
6
+ include CONTRIBUTING.md
7
+ include SECURITY.md
8
+ include CODE_OF_CONDUCT.md
9
+ include Makefile
10
+ recursive-include docs *.md
11
+ recursive-include .github *.yml
@@ -0,0 +1,60 @@
1
+ .PHONY: install test build run run-verbose list status logs diagnose clean help
2
+
3
+ PYTHON := .venv/bin/python
4
+ PIP := .venv/bin/pip
5
+ REC := .venv/bin/rec
6
+
7
+ help:
8
+ @echo "rec — meeting recorder"
9
+ @echo " make install create venv + install dev deps"
10
+ @echo " make test run unit tests"
11
+ @echo " make build build sdist + wheel into dist/ (for release)"
12
+ @echo " make run rec start"
13
+ @echo " make run-verbose rec -v start (INFO logs on stderr)"
14
+ @echo " make list rec list"
15
+ @echo " make status rec status"
16
+ @echo " make logs tail -f the global log"
17
+ @echo " make diagnose rec diagnose <latest> --stdout (bundle for AI debugging)"
18
+ @echo " make clean remove build artifacts"
19
+
20
+ install: .venv
21
+ $(PIP) install -e ".[dev]"
22
+
23
+ .venv:
24
+ python3.11 -m venv .venv
25
+ $(PIP) install --upgrade pip
26
+
27
+ test:
28
+ $(PYTHON) -m pytest tests -v
29
+
30
+ # Build the publishable sdist + wheel. `build` is a dev-only tool (not a
31
+ # runtime dependency), so install it here if the editable env lacks it.
32
+ build:
33
+ $(PIP) install --quiet build >/dev/null
34
+ $(PYTHON) -m build
35
+
36
+ run:
37
+ $(REC) start
38
+
39
+ run-verbose:
40
+ $(REC) -v start
41
+
42
+ list:
43
+ $(REC) list
44
+
45
+ status:
46
+ $(REC) status
47
+
48
+ logs:
49
+ @echo "Tailing ~/.local/share/rec/logs/rec.log (Ctrl+C to stop)"
50
+ @tail -f ~/.local/share/rec/logs/rec.log
51
+
52
+ diagnose:
53
+ @echo "Bundling debug info for the most recent session..."
54
+ @latest=$$(ls -1 ~/.local/share/rec/sessions/ 2>/dev/null | tail -1); \
55
+ if [ -z "$$latest" ]; then echo "No sessions found."; exit 1; fi; \
56
+ $(REC) diagnose "$$latest" --stdout
57
+
58
+ clean:
59
+ rm -rf build dist *.egg-info .pytest_cache .mypy_cache
60
+ find . -type d -name __pycache__ -exec rm -rf {} +