rigsby 0.3.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.
Files changed (76) hide show
  1. rigsby-0.3.0/.github/workflows/ci.yml +77 -0
  2. rigsby-0.3.0/.gitignore +11 -0
  3. rigsby-0.3.0/LICENSE +661 -0
  4. rigsby-0.3.0/PKG-INFO +83 -0
  5. rigsby-0.3.0/README.md +47 -0
  6. rigsby-0.3.0/docs/design.md +165 -0
  7. rigsby-0.3.0/docs/guide.md +504 -0
  8. rigsby-0.3.0/hatch_build.py +51 -0
  9. rigsby-0.3.0/install.py +173 -0
  10. rigsby-0.3.0/pyproject.toml +74 -0
  11. rigsby-0.3.0/rigsby_client/__init__.py +0 -0
  12. rigsby-0.3.0/rigsby_client/__main__.py +3 -0
  13. rigsby-0.3.0/rigsby_client/_build.py +3 -0
  14. rigsby-0.3.0/rigsby_client/account.py +36 -0
  15. rigsby-0.3.0/rigsby_client/cli.py +959 -0
  16. rigsby-0.3.0/rigsby_client/clipboard.py +73 -0
  17. rigsby-0.3.0/rigsby_client/connector_keys.py +217 -0
  18. rigsby-0.3.0/rigsby_client/daemon.py +187 -0
  19. rigsby-0.3.0/rigsby_client/jobs.py +473 -0
  20. rigsby-0.3.0/rigsby_client/jobs_cli.py +118 -0
  21. rigsby-0.3.0/rigsby_client/memory_repo.py +359 -0
  22. rigsby-0.3.0/rigsby_client/memory_sync.py +117 -0
  23. rigsby-0.3.0/rigsby_client/portal/__init__.py +1 -0
  24. rigsby-0.3.0/rigsby_client/portal/hub.py +279 -0
  25. rigsby-0.3.0/rigsby_client/portal/server.py +469 -0
  26. rigsby-0.3.0/rigsby_client/portal/static/THIRD_PARTY_NOTICES.txt +73 -0
  27. rigsby-0.3.0/rigsby_client/portal/static/assets/index-BefeX-ku.css +1 -0
  28. rigsby-0.3.0/rigsby_client/portal/static/assets/index-kTvUTlwU.js +13 -0
  29. rigsby-0.3.0/rigsby_client/portal/static/index.html +15 -0
  30. rigsby-0.3.0/rigsby_client/profile_store.py +98 -0
  31. rigsby-0.3.0/rigsby_client/room_cli.py +436 -0
  32. rigsby-0.3.0/rigsby_client/rooms.py +880 -0
  33. rigsby-0.3.0/rigsby_client/server_link.py +580 -0
  34. rigsby-0.3.0/rigsby_client/slack_agent.py +271 -0
  35. rigsby-0.3.0/rigsby_client/voice/__init__.py +2 -0
  36. rigsby-0.3.0/rigsby_client/voice/apple.py +155 -0
  37. rigsby-0.3.0/rigsby_client/voice/apple_stt.swift +133 -0
  38. rigsby-0.3.0/rigsby_client/voice/hotkey.py +192 -0
  39. rigsby-0.3.0/rigsby_client/voice/listener.py +475 -0
  40. rigsby-0.3.0/rigsby_client/voice/overlay.py +305 -0
  41. rigsby-0.3.0/rigsby_client/voice/recorder.py +87 -0
  42. rigsby-0.3.0/rigsby_client/voice/selection.py +115 -0
  43. rigsby-0.3.0/rigsby_client/voice/transcriber.py +80 -0
  44. rigsby-0.3.0/rigsby_client/voice/ui.py +206 -0
  45. rigsby-0.3.0/rigsby_client/watch/__init__.py +1 -0
  46. rigsby-0.3.0/rigsby_client/watch/browser.py +84 -0
  47. rigsby-0.3.0/rigsby_client/watch/triggers.py +122 -0
  48. rigsby-0.3.0/tests/__init__.py +0 -0
  49. rigsby-0.3.0/tests/conftest.py +7 -0
  50. rigsby-0.3.0/tests/test_connector_keys.py +113 -0
  51. rigsby-0.3.0/tests/test_daemon.py +70 -0
  52. rigsby-0.3.0/tests/test_jobs.py +198 -0
  53. rigsby-0.3.0/tests/test_memory_repo.py +125 -0
  54. rigsby-0.3.0/tests/test_portal.py +310 -0
  55. rigsby-0.3.0/tests/test_profile_store.py +74 -0
  56. rigsby-0.3.0/tests/test_slack_agent.py +163 -0
  57. rigsby-0.3.0/tests/test_triggers.py +85 -0
  58. rigsby-0.3.0/tests/test_voice.py +292 -0
  59. rigsby-0.3.0/web/.gitignore +1 -0
  60. rigsby-0.3.0/web/index.html +14 -0
  61. rigsby-0.3.0/web/package-lock.json +1390 -0
  62. rigsby-0.3.0/web/package.json +22 -0
  63. rigsby-0.3.0/web/scripts/notices.mjs +32 -0
  64. rigsby-0.3.0/web/src/App.tsx +82 -0
  65. rigsby-0.3.0/web/src/HistoryView.tsx +98 -0
  66. rigsby-0.3.0/web/src/JobsView.tsx +162 -0
  67. rigsby-0.3.0/web/src/MemoryView.tsx +259 -0
  68. rigsby-0.3.0/web/src/NowView.tsx +154 -0
  69. rigsby-0.3.0/web/src/RoomsView.tsx +407 -0
  70. rigsby-0.3.0/web/src/Transcript.tsx +129 -0
  71. rigsby-0.3.0/web/src/api.ts +268 -0
  72. rigsby-0.3.0/web/src/hooks.ts +70 -0
  73. rigsby-0.3.0/web/src/main.tsx +10 -0
  74. rigsby-0.3.0/web/src/styles.css +901 -0
  75. rigsby-0.3.0/web/tsconfig.json +17 -0
  76. rigsby-0.3.0/web/vite.config.ts +25 -0
@@ -0,0 +1,77 @@
1
+ # Tests on every pull request and push to main; on a version tag (v0.3.0), builds the package (with
2
+ # the portal) and publishes it to PyPI as `rigsby` with the pypi environment's API token.
3
+ name: CI
4
+
5
+ on:
6
+ pull_request:
7
+ push:
8
+ branches: [main]
9
+ tags: ["v*"]
10
+ workflow_dispatch:
11
+
12
+ permissions:
13
+ contents: read
14
+
15
+ jobs:
16
+ test:
17
+ runs-on: ${{ matrix.os }}
18
+ strategy:
19
+ fail-fast: false
20
+ matrix:
21
+ os: [ubuntu-latest, macos-latest]
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+ - uses: astral-sh/setup-uv@v6
25
+ - run: git config --global user.name ci && git config --global user.email ci@localhost # memory is git
26
+ - run: uv sync --python 3.12
27
+ - run: uv run pytest -q
28
+
29
+ build:
30
+ runs-on: ubuntu-latest
31
+ steps:
32
+ - uses: actions/checkout@v4
33
+ - uses: actions/setup-node@v4
34
+ with:
35
+ node-version: "20"
36
+ cache: npm
37
+ cache-dependency-path: web/package-lock.json
38
+ - name: Build the portal (it ships inside the package, with its third-party notices)
39
+ working-directory: web
40
+ run: npm ci && npm run build
41
+ - uses: astral-sh/setup-uv@v6
42
+ - name: The tag matches the package version
43
+ if: startsWith(github.ref, 'refs/tags/v')
44
+ run: |
45
+ want="${GITHUB_REF_NAME#v}"
46
+ got=$(grep -m1 '^version = ' pyproject.toml | cut -d'"' -f2)
47
+ [ "$got" = "$want" ] || { echo "pyproject.toml is $got, the tag is $want"; exit 1; }
48
+ - name: Build and check
49
+ env:
50
+ # The server `rigsby setup` uses without --server (a repository variable; the default otherwise).
51
+ RIGSBY_SERVER_URL: ${{ vars.RIGSBY_SERVER_URL }}
52
+ RIGSBY_RELEASE: "1" # refuse to build without the portal and its notices
53
+ run: |
54
+ uv build --no-sources --out-dir dist
55
+ uvx twine check --strict dist/*
56
+ - uses: actions/upload-artifact@v4
57
+ with:
58
+ name: dist
59
+ path: dist/
60
+
61
+ publish:
62
+ if: startsWith(github.ref, 'refs/tags/v')
63
+ needs: [test, build]
64
+ runs-on: ubuntu-latest
65
+ environment:
66
+ name: pypi
67
+ url: https://pypi.org/project/rigsby/
68
+ steps:
69
+ - uses: actions/download-artifact@v4
70
+ with:
71
+ name: dist
72
+ path: dist/
73
+ # PYPI_API_TOKEN is a secret of the `pypi` environment (a release waits for a reviewer's approval).
74
+ # Trusted publishing doesn't match this organization's OIDC subject format (repo:owner@id/repo@id).
75
+ - uses: pypa/gh-action-pypi-publish@release/v1
76
+ with:
77
+ password: ${{ secrets.PYPI_API_TOKEN }}
@@ -0,0 +1,11 @@
1
+ __pycache__/
2
+ *.pyc
3
+ .venv/
4
+ dist/
5
+ .pytest_cache/
6
+ .env
7
+ # Built from web/ (npm run build) and shipped in the package; written by hatch_build.py.
8
+ rigsby_client/portal/static/
9
+ rigsby_client/_build.py
10
+ rigsby_client/portal/package-lock.json
11
+ web/node_modules/