Skip to content

Commit a13e688

Browse files
chore: update documentation and example configurations
- Revised CLAUDE.md to emphasize end-to-end testing over unit tests. - Updated expose.md with example URLs and IP addresses for clarity and consistency. - Changed TAILSCALE_DOMAIN in expose_service function to reflect new hostname format.
1 parent 204298e commit a13e688

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

claude-code/CLAUDE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Quick Reference
99
Key Principles:
1010

1111
Write tests first (TDD)
12-
Test behavior, not implementation
12+
Test behavior, not implementation , focus on end to end tests over unit tests or implementation tests
1313
No any types or type assertions
1414
Immutable data only
1515
Small, pure functions
@@ -165,6 +165,7 @@ Key principles:
165165
<commit_requirements>
166166
- CRITICAL: Never use --no-verify when committing code
167167
- Rationale: Pre-commit hooks ensure code quality and security standards
168+
- Never mention claude in commit messages or as a contributor.
168169
</commit_requirements>
169170

170171
<code_consistency>

claude-code/commands/expose.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ When called, this command will:
5757
"port": 3000,
5858
"path": "/svc-a8f3d2c1",
5959
"name": "frontend",
60-
"url": "https://mb1412-1.tailae910a.ts.net/svc-a8f3d2c1",
61-
"direct": "http://100.98.203.32:3000",
60+
"url": "https://example-hostname.example.ts.net/svc-a8f3d2c1",
61+
"direct": "http://100.64.1.2:3000",
6262
"created": "2024-01-15T10:30:00Z"
6363
}
6464
]
@@ -70,9 +70,9 @@ When called, this command will:
7070
✅ Service exposed successfully!
7171
7272
📍 Service: frontend (port 3000)
73-
🔗 HTTPS Path: https://mb1412-1.tailae910a.ts.net/svc-a8f3d2c1
74-
🔗 Direct Access: http://100.98.203.32:3000
75-
🔗 Hostname Access: http://mb1412-1:3000
73+
🔗 HTTPS Path: https://example-hostname.example.ts.net/svc-a8f3d2c1
74+
🔗 Direct Access: http://100.64.1.2:3000
75+
🔗 Hostname Access: http://example-hostname:3000
7676
7777
💡 For SPAs, use direct access URLs to avoid routing issues
7878
```
@@ -162,7 +162,7 @@ expose_service() {
162162
# Get Tailscale info
163163
TAILSCALE_IP=$(tailscale ip -4)
164164
TAILSCALE_HOSTNAME=$(tailscale status --self --peers=false | awk '{print $2}')
165-
TAILSCALE_DOMAIN="${TAILSCALE_HOSTNAME}.tailae910a.ts.net"
165+
TAILSCALE_DOMAIN="${TAILSCALE_HOSTNAME}.example.ts.net"
166166

167167
# Generate path
168168
if [ -z "$SERVICE_NAME" ]; then

0 commit comments

Comments
 (0)