Skip to content

Commit 1d5324a

Browse files
sergicalclaude
andcommitted
fix: add docs fragment and fix SDK codegen for hyphenated routes
- Add docs/src/fragments/commands/ai-conversations.md (required by CI) - Fix generate-sdk.ts to quote hyphenated route names in generated TS Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8dba914 commit 1d5324a

2 files changed

Lines changed: 37 additions & 2 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
2+
3+
4+
## Examples
5+
6+
### List conversations
7+
8+
```bash
9+
# List last 10 AI conversations
10+
sentry ai-conversations list
11+
12+
# Explicit organization
13+
sentry ai-conversations list my-org
14+
15+
# Show more, last 24 hours
16+
sentry ai-conversations list --limit 50 --period 24h
17+
18+
# Filter conversations
19+
sentry ai-conversations list -q "has:errors"
20+
21+
# Paginate through results
22+
sentry ai-conversations list my-org -c next
23+
```
24+
25+
### View a conversation transcript
26+
27+
```bash
28+
# View full transcript
29+
sentry ai-conversations view my-org conv-123
30+
31+
# JSON output
32+
sentry ai-conversations view my-org conv-123 --json
33+
```

script/generate-sdk.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,8 @@ function renderNamespaceNode(node: NamespaceNode, indent: string): string {
490490
// Render child namespaces
491491
for (const [name, child] of node.children) {
492492
const childBody = renderNamespaceNode(child, `${indent} `);
493-
parts.push(`${indent}${name}: {\n${childBody}\n${indent}},`);
493+
const key = needsQuoting(name) ? `"${name}"` : name;
494+
parts.push(`${indent}${key}: {\n${childBody}\n${indent}},`);
494495
}
495496

496497
return parts.join("\n");
@@ -508,7 +509,8 @@ function renderNamespaceTypeNode(node: NamespaceNode, indent: string): string {
508509
// Render child namespaces as nested object types
509510
for (const [name, child] of node.children) {
510511
const childBody = renderNamespaceTypeNode(child, `${indent} `);
511-
parts.push(`${indent}${name}: {\n${childBody}\n${indent}};`);
512+
const key = needsQuoting(name) ? `"${name}"` : name;
513+
parts.push(`${indent}${key}: {\n${childBody}\n${indent}};`);
512514
}
513515

514516
return parts.join("\n");

0 commit comments

Comments
 (0)