Skip to content

Commit 32cfe98

Browse files
authored
Merge pull request #28 from hypercerts-org/gen-keys-jetstream-fix
2 parents 3192e5c + 3900389 commit 32cfe98

5 files changed

Lines changed: 6 additions & 2 deletions

File tree

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ testdata/ # Test fixtures and sample lexicons
186186
2. **Commit and PUSH**:
187187
```bash
188188
git add -A && git commit -m "feat: description"
189-
git push
189+
git push origin $branchname
190190
git status # MUST show "up to date with origin"
191191
```
192192
3. **Verify** - Work is NOT complete until `git push` succeeds

client/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ COOKIE_SECRET=development-secret-at-least-32-chars!!
2525

2626
# Private JWK for confidential OAuth client (optional)
2727
# For production, you can generate a key pair with:
28-
# npx @atproto/jwk-cli generate --alg ES256
28+
# npm run gen-keys
2929
# Then paste the private key JSON here (minified, single line)
3030
# Leave empty to use public client mode (simpler, works for most cases)
3131
ATPROTO_JWK_PRIVATE=

client/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {
6+
"gen-keys": "scripts/generate-jwk.js",
67
"dev": "next dev",
78
"build": "next build",
89
"start": "next start",

client/scripts/generate-jwk.js

100644100755
File mode changed.

internal/graphql/admin/resolvers.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,9 @@ func (r *Resolver) RegisterLexicon(ctx context.Context, nsid string) (map[string
582582
return nil, fmt.Errorf("failed to save lexicon: %w", err)
583583
}
584584

585+
// Notify Jetstream consumer of collection changes
586+
r.notifyLexiconChange(ctx)
587+
585588
// Parse schema to extract description
586589
var schema struct {
587590
ID string `json:"id"`

0 commit comments

Comments
 (0)