[Config] Add coding guidelines and code-fixer agent
Major additions: - Add CODING_GUIDELINES.md with "NO EMOJIS" rule - Create code-fixer agent for automated violation fixes - Add offline mode v2 hooks with local caching/queue - Add periodic context save with invisible Task Scheduler setup - Add agent coordination rules and database connection docs Infrastructure: - Update hooks: task-complete-v2, user-prompt-submit-v2 - Add periodic_save_check.py for auto-save every 5min - Add PowerShell scripts: setup_periodic_save.ps1, update_to_invisible.ps1 - Add sync-contexts script for queue synchronization Documentation: - OFFLINE_MODE.md, PERIODIC_SAVE_INVISIBLE_SETUP.md - Migration procedures and verification docs - Fix flashing window guide Updates: - Update agent configs (backup, code-review, coding, database, gitea, testing) - Update claude.md with coding guidelines reference - Update .gitignore for new cache/queue directories Status: Pre-automated-fixer baseline commit Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
28
create_jwt_token.py
Normal file
28
create_jwt_token.py
Normal file
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
Create a JWT token for ClaudeTools API access
|
||||
"""
|
||||
import jwt
|
||||
from datetime import datetime, timedelta, timezone
|
||||
|
||||
# Get the JWT secret from the RMM server's .env file
|
||||
# This should match what's in /opt/claudetools/.env on 172.16.3.30
|
||||
JWT_SECRET = "NdwgH6jsGR1WfPdUwR3u9i1NwNx3QthhLHBsRCfFxcg="
|
||||
|
||||
# Create token data
|
||||
data = {
|
||||
"sub": "import-script",
|
||||
"scopes": ["admin", "import"],
|
||||
"exp": datetime.now(timezone.utc) + timedelta(days=30)
|
||||
}
|
||||
|
||||
# Create token
|
||||
token = jwt.encode(data, JWT_SECRET, algorithm="HS256")
|
||||
|
||||
print(f"New JWT Token:")
|
||||
print(token)
|
||||
print()
|
||||
print(f"Expires: {data['exp']}")
|
||||
print()
|
||||
print("Add this to .claude/context-recall-config.env:")
|
||||
print(f"JWT_TOKEN={token}")
|
||||
Reference in New Issue
Block a user