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.
- rigsby-0.3.0/.github/workflows/ci.yml +77 -0
- rigsby-0.3.0/.gitignore +11 -0
- rigsby-0.3.0/LICENSE +661 -0
- rigsby-0.3.0/PKG-INFO +83 -0
- rigsby-0.3.0/README.md +47 -0
- rigsby-0.3.0/docs/design.md +165 -0
- rigsby-0.3.0/docs/guide.md +504 -0
- rigsby-0.3.0/hatch_build.py +51 -0
- rigsby-0.3.0/install.py +173 -0
- rigsby-0.3.0/pyproject.toml +74 -0
- rigsby-0.3.0/rigsby_client/__init__.py +0 -0
- rigsby-0.3.0/rigsby_client/__main__.py +3 -0
- rigsby-0.3.0/rigsby_client/_build.py +3 -0
- rigsby-0.3.0/rigsby_client/account.py +36 -0
- rigsby-0.3.0/rigsby_client/cli.py +959 -0
- rigsby-0.3.0/rigsby_client/clipboard.py +73 -0
- rigsby-0.3.0/rigsby_client/connector_keys.py +217 -0
- rigsby-0.3.0/rigsby_client/daemon.py +187 -0
- rigsby-0.3.0/rigsby_client/jobs.py +473 -0
- rigsby-0.3.0/rigsby_client/jobs_cli.py +118 -0
- rigsby-0.3.0/rigsby_client/memory_repo.py +359 -0
- rigsby-0.3.0/rigsby_client/memory_sync.py +117 -0
- rigsby-0.3.0/rigsby_client/portal/__init__.py +1 -0
- rigsby-0.3.0/rigsby_client/portal/hub.py +279 -0
- rigsby-0.3.0/rigsby_client/portal/server.py +469 -0
- rigsby-0.3.0/rigsby_client/portal/static/THIRD_PARTY_NOTICES.txt +73 -0
- rigsby-0.3.0/rigsby_client/portal/static/assets/index-BefeX-ku.css +1 -0
- rigsby-0.3.0/rigsby_client/portal/static/assets/index-kTvUTlwU.js +13 -0
- rigsby-0.3.0/rigsby_client/portal/static/index.html +15 -0
- rigsby-0.3.0/rigsby_client/profile_store.py +98 -0
- rigsby-0.3.0/rigsby_client/room_cli.py +436 -0
- rigsby-0.3.0/rigsby_client/rooms.py +880 -0
- rigsby-0.3.0/rigsby_client/server_link.py +580 -0
- rigsby-0.3.0/rigsby_client/slack_agent.py +271 -0
- rigsby-0.3.0/rigsby_client/voice/__init__.py +2 -0
- rigsby-0.3.0/rigsby_client/voice/apple.py +155 -0
- rigsby-0.3.0/rigsby_client/voice/apple_stt.swift +133 -0
- rigsby-0.3.0/rigsby_client/voice/hotkey.py +192 -0
- rigsby-0.3.0/rigsby_client/voice/listener.py +475 -0
- rigsby-0.3.0/rigsby_client/voice/overlay.py +305 -0
- rigsby-0.3.0/rigsby_client/voice/recorder.py +87 -0
- rigsby-0.3.0/rigsby_client/voice/selection.py +115 -0
- rigsby-0.3.0/rigsby_client/voice/transcriber.py +80 -0
- rigsby-0.3.0/rigsby_client/voice/ui.py +206 -0
- rigsby-0.3.0/rigsby_client/watch/__init__.py +1 -0
- rigsby-0.3.0/rigsby_client/watch/browser.py +84 -0
- rigsby-0.3.0/rigsby_client/watch/triggers.py +122 -0
- rigsby-0.3.0/tests/__init__.py +0 -0
- rigsby-0.3.0/tests/conftest.py +7 -0
- rigsby-0.3.0/tests/test_connector_keys.py +113 -0
- rigsby-0.3.0/tests/test_daemon.py +70 -0
- rigsby-0.3.0/tests/test_jobs.py +198 -0
- rigsby-0.3.0/tests/test_memory_repo.py +125 -0
- rigsby-0.3.0/tests/test_portal.py +310 -0
- rigsby-0.3.0/tests/test_profile_store.py +74 -0
- rigsby-0.3.0/tests/test_slack_agent.py +163 -0
- rigsby-0.3.0/tests/test_triggers.py +85 -0
- rigsby-0.3.0/tests/test_voice.py +292 -0
- rigsby-0.3.0/web/.gitignore +1 -0
- rigsby-0.3.0/web/index.html +14 -0
- rigsby-0.3.0/web/package-lock.json +1390 -0
- rigsby-0.3.0/web/package.json +22 -0
- rigsby-0.3.0/web/scripts/notices.mjs +32 -0
- rigsby-0.3.0/web/src/App.tsx +82 -0
- rigsby-0.3.0/web/src/HistoryView.tsx +98 -0
- rigsby-0.3.0/web/src/JobsView.tsx +162 -0
- rigsby-0.3.0/web/src/MemoryView.tsx +259 -0
- rigsby-0.3.0/web/src/NowView.tsx +154 -0
- rigsby-0.3.0/web/src/RoomsView.tsx +407 -0
- rigsby-0.3.0/web/src/Transcript.tsx +129 -0
- rigsby-0.3.0/web/src/api.ts +268 -0
- rigsby-0.3.0/web/src/hooks.ts +70 -0
- rigsby-0.3.0/web/src/main.tsx +10 -0
- rigsby-0.3.0/web/src/styles.css +901 -0
- rigsby-0.3.0/web/tsconfig.json +17 -0
- 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 }}
|
rigsby-0.3.0/.gitignore
ADDED
|
@@ -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/
|