sweatstack-cli 0.10.0__tar.gz → 0.12.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 (64) hide show
  1. sweatstack_cli-0.12.0/.claude/settings.local.json +38 -0
  2. sweatstack_cli-0.12.0/CHANGELOG.md +72 -0
  3. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/PKG-INFO +6 -2
  4. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/README.md +4 -0
  5. sweatstack_cli-0.12.0/plans/001-page-init-command.md +593 -0
  6. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/pyproject.toml +1 -1
  7. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/src/sweatstack_cli/__init__.py +1 -1
  8. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/src/sweatstack_cli/api/client.py +41 -23
  9. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/src/sweatstack_cli/commands/app.py +16 -19
  10. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/src/sweatstack_cli/commands/auth.py +13 -3
  11. sweatstack_cli-0.12.0/src/sweatstack_cli/commands/page.py +695 -0
  12. sweatstack_cli-0.12.0/src/sweatstack_cli/exceptions.py +51 -0
  13. sweatstack_cli-0.12.0/src/sweatstack_cli/services/__init__.py +7 -0
  14. sweatstack_cli-0.12.0/src/sweatstack_cli/services/applications.py +112 -0
  15. sweatstack_cli-0.12.0/src/sweatstack_cli/templates/page/index.html +450 -0
  16. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/tests/test_commands/test_app.py +35 -41
  17. sweatstack_cli-0.12.0/tests/test_commands/test_auth.py +49 -0
  18. sweatstack_cli-0.12.0/tests/test_commands/test_page_deploy.py +155 -0
  19. sweatstack_cli-0.12.0/tests/test_commands/test_page_init.py +268 -0
  20. sweatstack_cli-0.12.0/tests/test_services/__init__.py +0 -0
  21. sweatstack_cli-0.12.0/tests/test_services/test_applications.py +112 -0
  22. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/uv.lock +1 -1
  23. sweatstack_cli-0.10.0/.claude/settings.local.json +0 -26
  24. sweatstack_cli-0.10.0/src/sweatstack_cli/commands/page.py +0 -278
  25. sweatstack_cli-0.10.0/src/sweatstack_cli/exceptions.py +0 -30
  26. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/.claude/skills/sweatstack/SKILL.md +0 -0
  27. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/.claude/skills/sweatstack/api.md +0 -0
  28. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/.claude/skills/sweatstack/auth.md +0 -0
  29. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/.claude/skills/sweatstack/cli.md +0 -0
  30. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/.claude/skills/sweatstack/pyscript.md +0 -0
  31. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/.claude/skills/sweatstack/webapp.md +0 -0
  32. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/.gitignore +0 -0
  33. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/.python-version +0 -0
  34. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/CREATE_PRIVATE_APP.md +0 -0
  35. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/DEVELOPMENT.md +0 -0
  36. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/Makefile +0 -0
  37. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/PLAN.md +0 -0
  38. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/src/sweatstack_cli/api/__init__.py +0 -0
  39. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/src/sweatstack_cli/auth/__init__.py +0 -0
  40. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/src/sweatstack_cli/auth/callback_server.py +0 -0
  41. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/src/sweatstack_cli/auth/jwt.py +0 -0
  42. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/src/sweatstack_cli/auth/pkce.py +0 -0
  43. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/src/sweatstack_cli/auth/tokens.py +0 -0
  44. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/src/sweatstack_cli/commands/__init__.py +0 -0
  45. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/src/sweatstack_cli/config.py +0 -0
  46. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/src/sweatstack_cli/console.py +0 -0
  47. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/src/sweatstack_cli/main.py +0 -0
  48. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/src/sweatstack_cli/project.py +0 -0
  49. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/src/sweatstack_cli/py.typed +0 -0
  50. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/src/sweatstack_cli/version_check.py +0 -0
  51. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/sweatstack.toml +0 -0
  52. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/tests/__init__.py +0 -0
  53. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/tests/conftest.py +0 -0
  54. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/tests/test_api/__init__.py +0 -0
  55. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/tests/test_api/test_client.py +0 -0
  56. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/tests/test_auth/__init__.py +0 -0
  57. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/tests/test_auth/test_callback_server.py +0 -0
  58. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/tests/test_auth/test_jwt.py +0 -0
  59. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/tests/test_auth/test_pkce.py +0 -0
  60. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/tests/test_auth/test_tokens.py +0 -0
  61. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/tests/test_commands/__init__.py +0 -0
  62. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/tests/test_commands/test_cli.py +0 -0
  63. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/tests/test_project.py +0 -0
  64. {sweatstack_cli-0.10.0 → sweatstack_cli-0.12.0}/tests/test_version_check.py +0 -0
@@ -0,0 +1,38 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(uv pip install:*)",
5
+ "Bash(uv venv:*)",
6
+ "Bash(source .venv/bin/activate:*)",
7
+ "Bash(uv run pytest:*)",
8
+ "Bash(uv run ruff check:*)",
9
+ "Bash(uv run ruff format:*)",
10
+ "Bash(uv run mypy:*)",
11
+ "Bash(uv run sweatstack:*)",
12
+ "Bash(uv sync:*)",
13
+ "Bash(pytest:*)",
14
+ "Bash(ruff check:*)",
15
+ "WebFetch(domain:localhost)",
16
+ "Bash(curl:*)",
17
+ "Bash(python3:*)",
18
+ "Bash(make help:*)",
19
+ "Bash(tree:*)",
20
+ "Bash(env:*)",
21
+ "Bash(uv run python:*)",
22
+ "Bash(git:*)",
23
+ "Bash(grep:*)",
24
+ "WebFetch(domain:docs.sweatstack.no)",
25
+ "WebFetch(domain:pages.sweatstack.dev)",
26
+ "Read(//Users/aart/.claude/**)",
27
+ "Bash(find / -type d -iname \"*sweatstack*skill*\")",
28
+ "WebFetch(domain:nlec.pages.sweatstack.dev)",
29
+ "Read(//Users/aart/projects/sweatstack-nlec/**)",
30
+ "Read(//Users/aart/projects/**)",
31
+ "Bash(uv build *)",
32
+ "Bash(rm -rf ssверify)",
33
+ "Bash(rm -rf ss_verify)",
34
+ "Bash(ss_verify/bin/sweatstack page *)",
35
+ "Bash(ss_verify/bin/python -c \"from sweatstack_cli.commands.page import _load_template; t=_load_template\\(\\); print\\('OK', len\\(t\\), 'chars; has CLIENT_ID placeholder:', '{{CLIENT_ID}}' in t\\)\")"
36
+ ]
37
+ }
38
+ }
@@ -0,0 +1,72 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented here. The format is based on
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project
5
+ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [0.12.0] - 2026-10-13
8
+
9
+ ### Fixed
10
+
11
+ - `login` no longer crashes after authenticating: it read a `name` claim that
12
+ the userinfo endpoint never returns. `login` and `status` now show
13
+ `given_name`/`family_name`, falling back to email.
14
+ - `page init` now sends the slug to `PUT /api/v1/applications/{id}/page` as a
15
+ form field, as the API expects; it was sent as JSON and rejected with a 422.
16
+
17
+ ### Changed
18
+
19
+ - `page deploy` now updates or creates: if the page doesn't exist, it is created
20
+ and the deploy goes ahead. With an application linked in `sweatstack.toml`, its
21
+ page is created at the slug. Without one, `deploy` asks to create a new
22
+ application with that page (the same flow as `page init`) and records it in
23
+ `sweatstack.toml`; non-interactively, it fails and points to `app link` and
24
+ `app create --page`.
25
+
26
+ ## [0.11.0] - 2026-06-30
27
+
28
+ ### Added
29
+
30
+ - **`sweatstack page init`**. Scaffold a deployable SweatStack Pages app. It
31
+ creates (or reuses) an OAuth2 application, ensures its Page exists, records
32
+ everything in `sweatstack.toml`, and generates `public/index.html`. Together
33
+ with `page deploy`, this takes you from nothing to a live page in two commands: 'sweatstack page init "My App"' and 'sweatstack page deploy'
34
+ ```
35
+
36
+ ### Changed
37
+
38
+ - `app create` now writes `directory = "public"` to `sweatstack.toml` by default.
39
+ - Application creation is now a single shared implementation used by both
40
+ `app create` and `page init`, so the two cannot drift.
41
+
42
+ ### Fixed
43
+
44
+ - `page deploy` no longer passes loosely-typed keyword arguments when updating
45
+ `sweatstack.toml` after a deploy (internal correctness; restores a clean
46
+ `mypy --strict`).
47
+
48
+ ## [0.10.0] - 2026-02
49
+
50
+ ### Added
51
+
52
+ - `sweatstack page serve` to preview a site locally.
53
+
54
+ ## [0.9.1] - 2026-02
55
+
56
+ ### Fixed
57
+
58
+ - Page directory verification bug.
59
+
60
+ ## [0.9.0] - 2026-02
61
+
62
+ ### Added
63
+
64
+ - Interactive flow for `app create`.
65
+
66
+ ## [0.8.0] - 2026-02
67
+
68
+ ### Changed
69
+
70
+ - `page deploy` cleanup: dropped the positional directory argument in favour of
71
+ `--dir`, added non-interactive guards, standardized exit codes, and protected
72
+ `sweatstack.toml` from accidental overwrite.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: sweatstack-cli
3
- Version: 0.10.0
3
+ Version: 0.12.0
4
4
  Summary: Command-line interface for SweatStack — the sports data platform for developers
5
5
  Project-URL: Homepage, https://sweatstack.no
6
6
  Project-URL: Documentation, https://docs.sweatstack.no
@@ -134,6 +134,10 @@ sweatstack page deploy
134
134
  sweatstack page deploy my-page --dir ./dist
135
135
  ```
136
136
 
137
+ If the page doesn't exist yet, `deploy` creates it. With an app linked in
138
+ `sweatstack.toml`, it creates that app's page. Without one, it asks to create a
139
+ new app with the page (and fails instead when not run interactively, e.g. in CI).
140
+
137
141
  ## License
138
142
 
139
143
  MIT
@@ -104,6 +104,10 @@ sweatstack page deploy
104
104
  sweatstack page deploy my-page --dir ./dist
105
105
  ```
106
106
 
107
+ If the page doesn't exist yet, `deploy` creates it. With an app linked in
108
+ `sweatstack.toml`, it creates that app's page. Without one, it asks to create a
109
+ new app with the page (and fails instead when not run interactively, e.g. in CI).
110
+
107
111
  ## License
108
112
 
109
113
  MIT