rb-google-oauth 0.2.2__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 (61) hide show
  1. rb_google_oauth-0.2.2/.agents/antagor/.gitignore +3 -0
  2. rb_google_oauth-0.2.2/.agents/antagor/antagor.toml +47 -0
  3. rb_google_oauth-0.2.2/.agents/antagor/state/.residents +1 -0
  4. rb_google_oauth-0.2.2/.agents/antagor/state/.tasks +1 -0
  5. rb_google_oauth-0.2.2/.agents/antagor/state/architect_floor.json +1 -0
  6. rb_google_oauth-0.2.2/.agents/antagor/state/architect_labels +1 -0
  7. rb_google_oauth-0.2.2/.agents/antagor/state/architect_name +1 -0
  8. rb_google_oauth-0.2.2/.agents/antagor/state/architect_pane +1 -0
  9. rb_google_oauth-0.2.2/.agents/antagor/state/architect_session +1 -0
  10. rb_google_oauth-0.2.2/.agents/antagor/state/connector.json +13 -0
  11. rb_google_oauth-0.2.2/.agents/antagor/state/connector.lock +0 -0
  12. rb_google_oauth-0.2.2/.agents/antagor/state/connector_push.json +1 -0
  13. rb_google_oauth-0.2.2/.agents/antagor/state/connector_push.lock +0 -0
  14. rb_google_oauth-0.2.2/.agents/antagor/state/connector_sync.json +1 -0
  15. rb_google_oauth-0.2.2/.agents/antagor/state/daemon.json +1 -0
  16. rb_google_oauth-0.2.2/.agents/antagor/state/daemon.log +0 -0
  17. rb_google_oauth-0.2.2/.agents/antagor/state/delivery/queue.json +1 -0
  18. rb_google_oauth-0.2.2/.agents/antagor/state/delivery/queue.lock +0 -0
  19. rb_google_oauth-0.2.2/.agents/antagor/state/green_checks.json +1 -0
  20. rb_google_oauth-0.2.2/.agents/antagor/state/journal.jsonl +41 -0
  21. rb_google_oauth-0.2.2/.agents/antagor/state/mode.json +1 -0
  22. rb_google_oauth-0.2.2/.agents/antagor/state/notify.lock +0 -0
  23. rb_google_oauth-0.2.2/.agents/antagor/state/notify_position +1 -0
  24. rb_google_oauth-0.2.2/.agents/antagor/state/plane_cache.json +1 -0
  25. rb_google_oauth-0.2.2/.agents/antagor/state/precommit/24d492b2679f64088d9300e8e39aefdee0d239cc +0 -0
  26. rb_google_oauth-0.2.2/.agents/antagor/state/publishing.lock +0 -0
  27. rb_google_oauth-0.2.2/.agents/antagor/state/tabs_sweep.json +1 -0
  28. rb_google_oauth-0.2.2/.claude/settings.json +35 -0
  29. rb_google_oauth-0.2.2/.claude/settings.local.json +123 -0
  30. rb_google_oauth-0.2.2/.gitignore +12 -0
  31. rb_google_oauth-0.2.2/AGENTS.md +14 -0
  32. rb_google_oauth-0.2.2/CHANGELOG.md +42 -0
  33. rb_google_oauth-0.2.2/CLAUDE.md +57 -0
  34. rb_google_oauth-0.2.2/CODING_STANDARDS.md +15 -0
  35. rb_google_oauth-0.2.2/CONTEXT.md +13 -0
  36. rb_google_oauth-0.2.2/LICENSE +21 -0
  37. rb_google_oauth-0.2.2/PKG-INFO +131 -0
  38. rb_google_oauth-0.2.2/README.md +118 -0
  39. rb_google_oauth-0.2.2/changelog.d/.gitkeep +0 -0
  40. rb_google_oauth-0.2.2/docs/adr/README.md +17 -0
  41. rb_google_oauth-0.2.2/pyproject.toml +70 -0
  42. rb_google_oauth-0.2.2/scripts/check_command_docstrings.py +194 -0
  43. rb_google_oauth-0.2.2/src/google_oauth/__init__.py +59 -0
  44. rb_google_oauth-0.2.2/src/google_oauth/auth.py +235 -0
  45. rb_google_oauth-0.2.2/src/google_oauth/auth_command.py +282 -0
  46. rb_google_oauth-0.2.2/src/google_oauth/credentials.py +103 -0
  47. rb_google_oauth-0.2.2/src/google_oauth/errors.py +80 -0
  48. rb_google_oauth-0.2.2/src/google_oauth/profile.py +73 -0
  49. rb_google_oauth-0.2.2/src/google_oauth/status.py +263 -0
  50. rb_google_oauth-0.2.2/tests/__init__.py +0 -0
  51. rb_google_oauth-0.2.2/tests/conftest.py +127 -0
  52. rb_google_oauth-0.2.2/tests/fake_output.py +53 -0
  53. rb_google_oauth-0.2.2/tests/snapshots/help/auth-login.txt +33 -0
  54. rb_google_oauth-0.2.2/tests/snapshots/help/auth-logout.txt +18 -0
  55. rb_google_oauth-0.2.2/tests/snapshots/help/auth-status.txt +24 -0
  56. rb_google_oauth-0.2.2/tests/snapshots/help/auth.txt +16 -0
  57. rb_google_oauth-0.2.2/tests/test_auth.py +190 -0
  58. rb_google_oauth-0.2.2/tests/test_auth_command.py +98 -0
  59. rb_google_oauth-0.2.2/tests/test_help.py +154 -0
  60. rb_google_oauth-0.2.2/tests/test_status.py +287 -0
  61. rb_google_oauth-0.2.2/uv.lock +933 -0
@@ -0,0 +1,3 @@
1
+ state/
2
+ receipts/
3
+ scratch/
@@ -0,0 +1,47 @@
1
+ schema = 1
2
+ worktree_root = "~/.antagor/worktrees"
3
+ mode = "fast"
4
+ prefix = "GOAUTH"
5
+ name = "google-oauth"
6
+ worker = "pi"
7
+ checks = ["python3 scripts/check_command_docstrings.py"]
8
+ heavy = ["gate check"]
9
+
10
+ # the workserver, 48 cores (the Human 28.10: at least four tasks at once); heavy checks queue on the machine
11
+ parallel = 4
12
+
13
+ [review]
14
+ worker = "pi-glm" # another model than the author (the Human, 6.11)
15
+ required_types = ["feature", "bugfix"] # chore and docs: the short path without review
16
+
17
+ [connector]
18
+ webhook_secret = "PLANE_WEBHOOK_SECRET_TOOLS"
19
+ kind = "plane"
20
+ base_url = "https://homeserver.tailee01ab.ts.net:8443"
21
+ workspace = "tools"
22
+ project_id = "19a3d50f-dcca-4031-9302-7c19818ef32c"
23
+ humans = ["r.bolandau@gmail.com"]
24
+
25
+ [connector.states]
26
+ ideas = "Backlog"
27
+ queue = "Todo"
28
+ in_progress = "In Progress"
29
+ in_review = "In Review"
30
+ publish = "Publishing"
31
+ done = "Done"
32
+ cancelled = "Cancelled"
33
+
34
+ [daemon]
35
+ enabled = true
36
+
37
+ [publish]
38
+ versioning = "semver"
39
+ changelog = "CHANGELOG.md"
40
+ deploy_command = "git push origin main --follow-tags"
41
+ gate = "local"
42
+ gate_command = 'gate check'
43
+ env = { UV_PYTHON = "3.11" }
44
+
45
+ [workers.pi-glm] # the reviewer: kind pi, model from [model_policy.pi-glm]
46
+ kind = "pi"
47
+ args = []
@@ -0,0 +1 @@
1
+ state files use «resident» (10.10.2026)
@@ -0,0 +1 @@
1
+ state files use «task» (09.10.2026)
@@ -0,0 +1 @@
1
+ {"hand_fix": {"enabled": true, "max_files": 2, "max_lines": 10, "paths": ["*.md", "*.toml", "*.yaml", "*.yml", ".gitea/", ".github/"]}, "slow_run_minutes": 15, "floor": [], "order": {}, "effort_order": ["low", "medium", "high", "xhigh", "max"]}
@@ -0,0 +1 @@
1
+ google-oauth
@@ -0,0 +1 @@
1
+ {"session": "250cc4c2-6e84-4124-8a62-e2b4d9656137", "kind": null, "args": []}
@@ -0,0 +1,13 @@
1
+ {
2
+ "cards": {},
3
+ "events": [],
4
+ "health": {
5
+ "episode": false,
6
+ "failures": 0,
7
+ "last_error": null,
8
+ "last_ok": 1794989956.306359,
9
+ "last_ok_mono": 677.6867085
10
+ },
11
+ "modules": {},
12
+ "pending": {}
13
+ }
@@ -0,0 +1 @@
1
+ {"pid": null, "pending": false, "last": 1792828520.097425}
@@ -0,0 +1 @@
1
+ {"last": 1794989955.823909, "failures": 0}
@@ -0,0 +1 @@
1
+ {"enabled": true}
File without changes
@@ -0,0 +1 @@
1
+ {"seq": 2, "items": [], "targets": {}}
@@ -0,0 +1 @@
1
+ {"ead9c6daec8a856d01c0fba9ff9f0e88": {"cmd": "the project's CI (https://homeserver.tailee01ab.ts.net:3000/api/v1/repos/bolandeu/google-oauth/commits/bae98a2a4fe3b653cb5bb8059255474d9a6c177d/status)", "tree": "ab0284a4e09c2b1cbc2aad5fde9ede9d"}}
@@ -0,0 +1,41 @@
1
+ {"ts": "2026-10-24T07:52:03+00:00", "event": "autocommit.committed", "path": ".agents/antagor/antagor.toml", "message": "mode: fast"}
2
+ {"ts": "2026-10-24T07:52:03+00:00", "event": "mode.changed", "from": "default", "to": "fast", "actor": "human"}
3
+ {"ts": "2026-10-24T07:52:03+00:00", "event": "autocommit.committed", "path": ".agents/antagor/antagor.toml", "message": "daemon: enabled"}
4
+ {"ts": "2026-10-24T07:52:03+00:00", "event": "daemon.enabled_changed", "from": false, "to": true, "actor": "human"}
5
+ {"ts": "2026-10-24T07:52:03+00:00", "event": "daemon.started", "via": "launchd"}
6
+ {"ts": "2026-10-24T07:54:31+00:00", "event": "architect.zone_violation", "paths": ["scripts/deploy.sh"], "actor": "architect"}
7
+ {"ts": "2026-10-24T07:54:31+00:00", "event": "notify.sent", "seqs": [1], "lines": 1}
8
+ {"ts": "2026-10-24T07:54:31+00:00", "event": "delivery.queued", "task": "", "kind": "pane", "target": "w2T:p1", "mode": "text"}
9
+ {"ts": "2026-10-24T07:54:31+00:00", "event": "notify.human_decision", "task": "", "decision": "mode.changed", "line": "[antagor] Человек: режим default -> fast"}
10
+ {"ts": "2026-10-24T07:54:31+00:00", "event": "mode.free_approval", "action": "publish", "tasks": [], "actor": "architect"}
11
+ {"ts": "2026-10-24T07:54:46+00:00", "event": "mode.free_approval", "action": "publish", "tasks": [], "actor": "architect"}
12
+ {"ts": "2026-10-24T07:54:46+00:00", "event": "publish.started", "tasks": [], "pre": "bae98a2a4fe3b653cb5bb8059255474d9a6c177d", "actor": "architect", "main": true}
13
+ {"ts": "2026-10-24T07:54:46+00:00", "event": "publish.remote_gate_accepted", "actor": "human", "settings": {"remote": "origin", "branch": "antagor/publish-{commit}", "status_url": "https://homeserver.tailee01ab.ts.net:3000/api/v1/repos/bolandeu/google-oauth/commits/{commit}/status"}, "via": "any_repo"}
14
+ {"ts": "2026-10-24T07:55:17+00:00", "event": "publish.remote_gate", "commit": "bae98a2a4fe3b653cb5bb8059255474d9a6c177d", "state": "success", "waited_s": 30, "url": "https://homeserver.tailee01ab.ts.net:3000/api/v1/repos/bolandeu/google-oauth/commits/bae98a2a4fe3b653cb5bb8059255474d9a6c177d/status"}
15
+ {"ts": "2026-10-24T07:55:18+00:00", "event": "publish.gated", "tasks": []}
16
+ {"ts": "2026-10-24T07:55:18+00:00", "event": "publish.promoted", "commit": "a865c49d0777f596d6437fe972f1e5234f627206"}
17
+ {"ts": "2026-10-24T07:55:19+00:00", "event": "publish.deployed", "version": "v0.2.1"}
18
+ {"ts": "2026-10-24T07:55:19+00:00", "event": "publish.finished", "version": "v0.2.1", "tasks": []}
19
+ {"ts": "2026-10-24T07:55:19+00:00", "event": "notify.sent", "seqs": [17], "lines": 1}
20
+ {"ts": "2026-10-24T07:55:19+00:00", "event": "delivery.queued", "task": "", "kind": "pane", "target": "w2T:p1", "mode": "text"}
21
+ {"ts": "2026-10-24T07:55:49+00:00", "event": "delivery.sent", "count": 1, "kind": "pane", "target": "w2T:p1", "task": "", "architect": true}
22
+ {"ts": "2026-10-24T07:55:49+00:00", "event": "delivery.sent", "count": 1, "kind": "pane", "target": "w2T:p1", "task": "", "architect": true}
23
+ {"ts": "2026-10-24T07:58:52+00:00", "event": "daemon.reexec", "reason": "code changed", "antagor": "main@2c36796"}
24
+ {"ts": "2026-10-24T08:04:11+00:00", "event": "daemon.stopped", "reason": "architect_closed", "pid": 21102}
25
+ {"ts": "2026-10-27T05:02:03+00:00", "event": "connector.unhealthy", "lines": ["plane: синхронизировано 248283 с назад", "plane: сбои подряд: 1, последняя ошибка Plane is unreachable: <urlopen error [Errno 51] Network is unreachable>"]}
26
+ {"ts": "2026-10-27T05:02:03+00:00", "event": "notify.skipped", "reason": "pane closed", "seqs": [24]}
27
+ {"ts": "2026-10-27T05:02:03+00:00", "event": "connector.sync_failed", "error": "Plane is unreachable: <urlopen error [Errno 51] Network is unreachable>", "failures": 1}
28
+ {"ts": "2026-10-27T05:03:31+00:00", "event": "connector.sync_failed", "error": "Plane is unreachable: <urlopen error timed out>", "failures": 2}
29
+ {"ts": "2026-10-27T05:04:19+00:00", "event": "connector.sync_failed", "error": "Plane is unreachable: <urlopen error [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1082)>", "failures": 3}
30
+ {"ts": "2026-10-27T05:05:28+00:00", "event": "connector.sync_failed", "error": "Plane is unreachable: <urlopen error [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1082)>", "failures": 4}
31
+ {"ts": "2026-10-27T05:06:36+00:00", "event": "connector.sync_failed", "error": "Plane is unreachable: <urlopen error [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1082)>", "failures": 5}
32
+ {"ts": "2026-10-27T05:07:48+00:00", "event": "connector.sync_failed", "error": "Plane is unreachable: <urlopen error [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1082)>", "failures": 6}
33
+ {"ts": "2026-10-27T05:08:58+00:00", "event": "connector.healthy", "lines": ["plane: синхронизировано 0 с назад"]}
34
+ {"ts": "2026-10-27T05:08:58+00:00", "event": "notify.skipped", "reason": "pane closed", "seqs": [32]}
35
+ {"ts": "2026-10-27T05:12:10+00:00", "event": "daemon.stopped", "reason": "no_architect", "pid": 1195}
36
+ {"ts": "2026-10-28T10:54:25+00:00", "event": "daemon.stopped", "pid": null, "unit_removed": false, "still_running": false}
37
+ {"ts": "2026-11-06T19:28:32+00:00", "event": "daemon.stopped", "reason": "no_architect", "pid": 1438}
38
+ {"ts": "2026-11-17T16:48:19+00:00", "event": "daemon.stopped", "pid": null, "unit_removed": false, "still_running": false}
39
+ {"ts": "2026-11-17T16:48:22+00:00", "event": "daemon.started", "via": "launchd"}
40
+ {"ts": "2026-11-17T16:58:37+00:00", "event": "daemon.stopped", "reason": "no_architect", "pid": 31224}
41
+ {"ts": "2026-11-18T08:20:22+00:00", "event": "daemon.stopped", "reason": "no_architect", "pid": 1420}
@@ -0,0 +1 @@
1
+ {"mode": "fast"}
@@ -0,0 +1 @@
1
+ {"https://homeserver.tailee01ab.ts.net:8443|19a3d50f-dcca-4031-9302-7c19818ef32c|states": {"at": 1792828266.799955, "value": {"Backlog": "f607f680-4264-44fd-89bf-972337c736fe", "Todo": "4254dcc9-36dd-4529-8b69-70b428f292b4", "In Progress": "57a16c6c-9bba-4e3b-9f79-df82af351af4", "Done": "675e2e85-2d2f-4a9f-82db-034f25db838c", "Cancelled": "0e00418d-30bf-4f8c-b1d6-b03a47fd27c1"}}, "https://homeserver.tailee01ab.ts.net:8443|19a3d50f-dcca-4031-9302-7c19818ef32c|members": {"at": 1792828431.6749399, "value": {"9163bb43-bd16-4a5b-aad2-c77aa645fa7a": "antagor@homeserver.local", "33b1ce81-2dbc-47c5-b43d-847001a8b82d": "bot_user_48f648c7-f1a0-4365-a69c-e4209768884e@homeserver.tailee01ab.ts.net", "5d7d3c34-f092-4a1a-ab76-83d459e2e055": "r.bolandau@gmail.com"}}}
@@ -0,0 +1 @@
1
+ {"ts": 1793184865.7635572, "doubtful": []}
@@ -0,0 +1,35 @@
1
+ {
2
+ "hooks": {
3
+ "SessionStart": [
4
+ {
5
+ "hooks": [
6
+ {
7
+ "type": "command",
8
+ "command": "n=\"$CLAUDE_PROJECT_DIR/../scripts/herdr_name.sh\"; [ -x \"$n\" ] || n=\"$HOME/Work/tools/scripts/herdr_name.sh\"; [ -x \"$n\" ] && \"$n\" || true"
9
+ }
10
+ ]
11
+ }
12
+ ],
13
+ "PostToolUse": [
14
+ {
15
+ "matcher": "Edit|Write|MultiEdit",
16
+ "hooks": [
17
+ {
18
+ "type": "command",
19
+ "command": "python3 \"$CLAUDE_PROJECT_DIR/scripts/check_command_docstrings.py\" --claude-post-edit"
20
+ }
21
+ ]
22
+ }
23
+ ],
24
+ "Stop": [
25
+ {
26
+ "hooks": [
27
+ {
28
+ "type": "command",
29
+ "command": "python3 \"$CLAUDE_PROJECT_DIR/scripts/check_command_docstrings.py\" --claude-stop"
30
+ }
31
+ ]
32
+ }
33
+ ]
34
+ }
35
+ }
@@ -0,0 +1,123 @@
1
+ {
2
+ "model": "opus",
3
+ "effortLevel": "xhigh",
4
+ "env": {
5
+ "ANTAGOR_ROLE": "architect"
6
+ },
7
+ "permissions": {
8
+ "allow": [
9
+ "Bash(antagor status:*)",
10
+ "Bash(antagor next:*)",
11
+ "Bash(antagor board:*)",
12
+ "Bash(antagor task-create:*)",
13
+ "Bash(antagor task-update:*)",
14
+ "Bash(antagor models:*)",
15
+ "Bash(antagor run:*)",
16
+ "Bash(antagor accept:*)",
17
+ "Bash(antagor review-reject:*)",
18
+ "Bash(antagor review-queue:*)",
19
+ "Bash(antagor unblock:*)",
20
+ "Bash(antagor inbox:*)",
21
+ "Bash(antagor epic:*)",
22
+ "Bash(antagor idea:*)",
23
+ "Bash(antagor spec-check:*)",
24
+ "Bash(antagor validate:*)",
25
+ "Bash(antagor recover:*)",
26
+ "Bash(antagor gc:*)",
27
+ "Bash(antagor handoff:*)",
28
+ "Bash(antagor memory-check:*)",
29
+ "Bash(antagor journal:*)",
30
+ "Bash(antagor events:*)",
31
+ "Bash(antagor metrics:*)",
32
+ "Bash(antagor tools list:*)",
33
+ "Bash(antagor mode)",
34
+ "Bash(antagor architect:*)",
35
+ "Bash(antagor notify:*)",
36
+ "Bash(antagor autocommit:*)",
37
+ "Bash(herdr agent start:*)",
38
+ "Bash(herdr agent prompt:*)",
39
+ "Bash(herdr agent get:*)",
40
+ "Bash(herdr agent read:*)",
41
+ "Bash(herdr agent list:*)",
42
+ "Bash(herdr agent wait:*)",
43
+ "Bash(herdr tab create:*)",
44
+ "Bash(herdr tab list:*)",
45
+ "Bash(herdr pane get:*)",
46
+ "Bash(herdr pane read:*)",
47
+ "Bash(herdr pane list:*)",
48
+ "Bash(herdr workspace list:*)",
49
+ "Bash(git status:*)",
50
+ "Bash(git diff:*)",
51
+ "Bash(git log:*)",
52
+ "Bash(git show:*)",
53
+ "Bash(git add:*)",
54
+ "Bash(git commit:*)",
55
+ "Bash(git merge:*)",
56
+ "Bash(git branch:*)",
57
+ "Bash(git worktree:*)",
58
+ "Bash(uv run pytest:*)",
59
+ "Bash(uv run antagor:*)",
60
+ "Bash(antagor publish:*)"
61
+ ],
62
+ "ask": [
63
+ "Bash(git push:*)",
64
+ "Bash(herdr tab close:*)",
65
+ "Bash(herdr agent send-keys:*)"
66
+ ],
67
+ "deny": [
68
+ "Bash(antagor auth:*)",
69
+ "Bash(antagor secret:*)",
70
+ "Bash(antagor mode set:*)",
71
+ "Bash(antagor adopt:*)",
72
+ "Bash(git push --force:*)",
73
+ "Bash(git push -f:*)",
74
+ "Bash(git commit --amend:*)",
75
+ "Bash(git reset --hard:*)",
76
+ "Bash(herdr server stop:*)"
77
+ ],
78
+ "defaultMode": "auto"
79
+ },
80
+ "hooks": {
81
+ "SessionStart": [
82
+ {
83
+ "hooks": [
84
+ {
85
+ "type": "command",
86
+ "command": "antagor architect report-model"
87
+ }
88
+ ]
89
+ },
90
+ {
91
+ "hooks": [
92
+ {
93
+ "type": "command",
94
+ "command": "antagor -C \"$CLAUDE_PROJECT_DIR\" news --hook 2>/dev/null || true",
95
+ "timeout": 10
96
+ }
97
+ ]
98
+ }
99
+ ],
100
+ "PostModelSwitch": [
101
+ {
102
+ "hooks": [
103
+ {
104
+ "type": "command",
105
+ "command": "antagor architect report-model"
106
+ }
107
+ ]
108
+ }
109
+ ],
110
+ "PreToolUse": [
111
+ {
112
+ "matcher": "Bash",
113
+ "hooks": [
114
+ {
115
+ "type": "command",
116
+ "command": "test -e \"$CLAUDE_PROJECT_DIR/.agents/antagor/state/audit_open\" && antagor -C \"$CLAUDE_PROJECT_DIR\" architect bash-hook 2>/dev/null || true",
117
+ "timeout": 10
118
+ }
119
+ ]
120
+ }
121
+ ]
122
+ }
123
+ }
@@ -0,0 +1,12 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ .venv/
4
+ .pytest_cache/
5
+ .ruff_cache/
6
+ .coverage
7
+ dist/
8
+ *.egg-info/
9
+ .python-version
10
+ htmlcov/
11
+ .DS_Store
12
+ Thumbs.db
@@ -0,0 +1,14 @@
1
+ # AGENTS.md
2
+
3
+ Pointers for agents. Antagor shows the changing state (statuses, branches, tasks): `antagor board`.
4
+
5
+ - What the package is, its layout and its invariants: `CLAUDE.md`. Usage: `README.md`.
6
+ - Antagor keeps the tasks and epics: `.agents/antagor/`.
7
+ - The package Standard: https://homeserver.tailee01ab.ts.net:3000/bolandeu/cli-generator/src/branch/main/skills/cli-builder/reference/standard.md (sections by name, for example «Install»).
8
+ - The gate before a commit: `gate check`, on this machine — the command is `[publish] gate_command` in `.agents/antagor/antagor.toml` (Standard, CI). It is the only gate: no workflow runs it.
9
+
10
+ ## Particular to this package
11
+
12
+ - A library, not a CLI: no console script, so the gate skips `standard: commands|json|errors|health` (Standard, Technology). `[tool.rb.install]`: `homeserver = []`, `mac = false`. Tools take it as a git-tag or registry dependency.
13
+ - The help of `auth` commands is a contract: change a docstring, then `uv run pytest --snapshot-update` and read the diff in `tests/snapshots/help/`.
14
+ - Recommended rules not followed: `requires-python` is `>=3.11` (the consumers still run on it); the code and messages are partly in Russian.
@@ -0,0 +1,42 @@
1
+ # Changelog
2
+
3
+ Формат — [Keep a Changelog](https://keepachangelog.com/ru/1.1.0/), версии — [SemVer](https://semver.org/lang/ru/).
4
+
5
+ ## v0.2.1 — 2026-10-24
6
+
7
+ ### Main
8
+
9
+ - chore(antagor): publish config (semver, remote gate, deploy by push)
10
+ - daemon: enabled
11
+ - mode: fast
12
+ - antagor init: project google-oauth (GOAUTH)
13
+ - chore: drop the core.hooksPath hook and fragment notes
14
+ - fix(deps): certifi 2026.10.19 (PYSEC-2026-4320)
15
+ - docs: AGENTS.md; ci: Gitea workflow runs the gate (template v1.27.3)
16
+ - build: [tool.rb.install] for a library, coverage core ctrace, drop towncrier
17
+ - chore: remove the old release tooling (release.py, githooks, towncrier fragments, GitHub CI)
18
+ - test: help snapshots render the same under CI env (GITHUB_ACTIONS, FORCE_COLOR, PY_COLORS)
19
+ - chore: пути ~/Projects → ~/Work после переезда
20
+ - chore(hooks): скрипты tools ищутся относительно репозитория (перенос tools не ломает хуки)
21
+ - chore(claude): при старте сессии агент берёт имя в herdr по команде
22
+ - chore(hooks): pre-push сообщает корневому агенту tools о пушнутых тегах
23
+ - docs: инструмент в системе (стандарт §13)
24
+ - docs: каждое заметное изменение выходит релизом
25
+
26
+
27
+ ## [0.2.0] - 2026-09-27
28
+
29
+ ### Added
30
+
31
+ - `google_oauth.health_check(auth, check=None, provider=None)` → `Health` — делегат для `Provider.health_check()` инструментов: токен сервисного аккаунта у Google + дешёвый запрос инструмента, жёсткий лимит 10 с, 401/403 и отказ Google → `invalid`, сеть/429/5xx/таймаут → `unreachable`, значения секретов вычищаются из сообщений. Также `credential_status`, `status_report`, `status_problems`, `status_exit_code`, ошибка `CredentialsUnhealthy`, `ApiKey.required` и `make_auth_app(..., api_key_checks=…)` — проверка API-ключей под `auth status --check`. Без keychain (Linux-сервер, `doppler run`) всё работает от переменных окружения (`GOOGLE_OAUTH_SERVICE_ACCOUNT_JSON`, `GOOGLE_OAUTH_<NAME>_API_KEY`), а `auth status` называет причину недоступности keychain.
32
+
33
+ ### Changed
34
+
35
+ - **Ломающее.** Дистрибутив переименован: `google-oauth` → `rb-google-oauth` (стандарт tools §10: `google-oauth` на PyPI — чужой пакет); импорт `google_oauth` не меняется. Потребителям: новое имя в `dependencies` и ключ `[tool.uv.sources]` с пином на тег (`rb-google-oauth = { git = …, tag = "v0.2.0" }`), в существующем venv — `uv sync --reinstall-package rb-google-oauth`. **Ломающее:** `auth status [--check] --json` из `make_auth_app` выдаёт отчёт §8 (`tool`, `version`, `checked_at`, `credentials[]` — сервисный аккаунт и API-ключи) в стандартном конверте вместо плоского `{google, <key>_key, account, source, detail}`; при проблеме — exit 3, `ok: false` и `error` `CREDENTIALS_UNHEALTHY`. Стандарт релизов tools: версия из git-тега, changelog из фрагментов, `scripts/release.py` из шаблона cli-generator v1.2.7, контракт справки команд `auth` (§7).
36
+
37
+
38
+ ## [0.1.0] - 2026-09-27
39
+
40
+ ### Added
41
+
42
+ - Общая авторизация Google для CLI-инструментов: `Profile`, `GoogleAuth` (ключ сервисного аккаунта и API-ключи из env инструмента → общих `GOOGLE_OAUTH_…` → общего слота keychain `google-oauth:*`, access token с автообновлением через `google-auth`), `CredentialStore`, типизированные ошибки CLI и готовая Typer-команда `auth login|logout|status [--check]` (`make_auth_app`).
@@ -0,0 +1,57 @@
1
+ # CLAUDE.md
2
+
3
+ ## Commands
4
+
5
+ ```bash
6
+ uv sync
7
+ # гейт перед каждым коммитом — `gate check` на этой машине (команда — [publish] gate_command в .agents/antagor/antagor.toml)
8
+ ```
9
+
10
+ ## Что это
11
+
12
+ Дистрибутив `rb-google-oauth` (импорт `google_oauth`). Общая библиотека авторизации Google для CLI-инструментов `~/Work/tools/` (`gsc`, …), построенных по единой CLI-архитектуре (skill `python-package-gate:cli-builder`). Аналог `yandex-oauth`. Не CLI сама по себе — подключается git-источником в `[tool.uv.sources]` инструмента, см. README.
13
+
14
+ **Source layout:** `src/google_oauth/`
15
+
16
+ - `profile.py` — `Profile` (cli_name, service, scopes, env инструмента, `api_keys: tuple[ApiKey]`, login_hint, `keychain_namespace="google-oauth"`, provider=`google`) — единственное, чем инструменты отличаются
17
+ - `errors.py` — `CliError` (общий базовый: `output.guard` инструментов ловит его), `InvalidArguments`, `NotAuthorized(provider, reason, action=)`, `TokenRequestFailed`, `CredentialStoreUnavailable`
18
+ - `credentials.py` — `CredentialStore`: keychain `google-oauth:<kind>` / `<name>` через `keyring`, имена env (`<tool env…>` → `GOOGLE_OAUTH_…`), `backend()`
19
+ - `auth.py` — `GoogleAuth` (find/load/store сервисного аккаунта и API-ключей, `credentials`, `refresh`, `bearer`, `status`, `logout`), `AuthStatus.to_dict()`, `BearerToken`, `parse_service_account`, `refresh_credentials`
20
+ - `status.py` — контракт `auth status` (§8 стандарта tools): `health_check` (делегат для `Provider.health_check()` инструментов), `credential_status`, `status_report`, `status_problems`, `status_exit_code`
21
+ - `auth_command.py` — `make_auth_app(auth, output, check=None, api_key_checks=None)`: `auth login|logout|status [--check]`; вопросы в stderr, stdout чист для `--json`; docstring'и команд — их `--help` (плейсхолдеры `{cli}` и т.п., строка `Example:` обязательна, снапшоты в `tests/snapshots/help/`)
22
+
23
+ **Никаких `.env` и ADC:** секреты только в keychain и переменных окружения; `google.auth.default()` не используется намеренно (подхватил бы доступы gcloud).
24
+
25
+ **Инварианты, которые нельзя ломать (на них завязаны тесты инструментов):**
26
+ - `keyring.get_password/set_password/delete_password` вызываются через атрибут модуля `google_oauth.credentials.keyring` — тесты инструментов патчат его (напрямую или через реэкспорт).
27
+ - Импорт `google_oauth` не тянет `typer` и `google.auth` (есть тест); `auth_command` импортируется отдельно.
28
+ - Форма `auth status --json` — §8 стандарта tools (`tests/test_status.py`); её изменение — ломающее. `GoogleAuth.status()`/`AuthStatus` — старый плоский статус, им пользуется gsc (`core/auth.py`).
29
+ - Чтение из недоступного keychain — не ошибка (warning в лог), запись/удаление — `CredentialStoreUnavailable`.
30
+
31
+ **Тесты:** `tests/fake_output.py` — минимальный `output`-модуль; `conftest.py` подменяет keyring словарём (ключи `("google-oauth:service_account", "default")`, `("google-oauth:api_key", "pagespeed")`) и чистит env `DEMO_*`/`GOOGLE_OAUTH_*`.
32
+
33
+ ## Каждое заметное изменение выходит релизом
34
+
35
+ Серверы, другие инструменты и Mac ставят только по тегам, не из `main`:
36
+ влитое без релиза изменение для них не существует. Изменение закончено
37
+ только после релиза: `antagor publish --main --bump patch|minor|major` →
38
+ назвать новый тег в отчёте (`~/Work/tools/docs/standard-release.md` §3).
39
+
40
+ ## Инструмент в системе
41
+
42
+ Инструмент — один из сервисов `~/Work/tools/`: корневой агент его
43
+ деплоит, хранит ключи (Doppler) и бэкапит данные (S3). Полные правила —
44
+ `~/Work/tools/docs/standard-release.md` §13.
45
+
46
+ - **Сообщать корневому агенту** (в отчёте пользователю, рядом с тегом
47
+ релиза): новая или переименованная переменная окружения / ключ, новая
48
+ локальная база или новый путь к данным, новая или убранная зависимость от
49
+ другого инструмента, обновлённый токен сохраняется локально, ломающий релиз.
50
+ - **Потребители**: перед ломающим изменением проверить, кто пользуется
51
+ инструментом (корневой `AGENTS.md` → Service map), и назвать их в отчёте.
52
+ - **Серверы Linux без экрана**: сначала переменные окружения, keychain
53
+ необязателен (его отсутствие при заданной переменной — не ошибка); имена
54
+ переменных — уже существующие; без TTY никаких вопросов; без путей только для Mac.
55
+ - **Локальные данные** — в `platformdirs.user_data_dir("<tool>")`, не в
56
+ репозитории; всё состояние — в файле базы, миграции делает сам инструмент;
57
+ сам инструмент данные никуда не выгружает.
@@ -0,0 +1,15 @@
1
+ # Code rules
2
+
3
+ The reviewer reads this, not the worker. A mechanical rule (a forbidden API, an import form, a file location) is a
4
+ check in the linter or in `checks`, not a line here. Here are only the rules that need judgement.
5
+
6
+ The general rules of work (one source of truth, only what the task asks, one reason to change) come to the worker and
7
+ the reviewer from Antagor in the brief: the rubric «Rules of the work», items C3–C5. Here are the rules of this project on top of it. A rule true for
8
+ any project does not go here: send it to Antagor as a precedent (`antagor idea add --for antagor`), so it reaches every project.
9
+
10
+ <!-- - **Rule.** Why. -->
11
+
12
+ - **A simple solution is better than a clever one (KISS).** Why: agents edit the code in parts; a clever trick does not fit into their context.
13
+ - **No noodle code.** A file of thousands of lines is a sign of mixed duties: cut it by meaning. The gate `[docstring] max_file_lines` checks the file length, not only the reviewer.
14
+ - **One capability, one module, not a mix in one file.** A new capability lives in its own file; the shared file gets one line that connects it (a call, a command registration, an event subscription). A file that almost every task edits (the CLI, the main docs) is cut by topic. Why: parallel agents do not share files — a shared file puts them in a queue and gives merge conflicts; a small module fits into the agent's context and is checked on its own.
15
+ - **Every code file starts with a description that has one complete meaning** (a module docstring, a leading comment). What is in the file and why, in one paragraph. When the code changes, the description changes. Why: an agent reads the file from the start and decides by the description if it came to the right place; a stale description sends it the wrong way. For Python and JS/TS the gate `[docstring]` checks it, not only the reviewer.
@@ -0,0 +1,13 @@
1
+ # google-oauth
2
+
3
+ One or two sentences: what this project is and why it exists. Agents read this file: write it in English.
4
+
5
+ ## Glossary
6
+
7
+ <!-- Format of a term:
8
+
9
+ **Term** (the word to use with the Human, if it is another language):
10
+ What it is (one or two sentences), not what it does.
11
+ _Avoid_: synonyms we do not use
12
+
13
+ Only the concepts of this project, not general programming ones. No implementation details: this is a glossary, not a spec. -->
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Roman Bolandau
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.