Skip to content

Commit ff6f2f6

Browse files
committed
fix: restore @auth/core for Convex auth
1 parent c25bd08 commit ff6f2f6

File tree

8 files changed

+27
-26
lines changed

8 files changed

+27
-26
lines changed

bun.lock

Lines changed: 8 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"format": "biome format --write ."
2020
},
2121
"dependencies": {
22-
"@auth/core": "^0.34.3",
22+
"@auth/core": "^0.41.1",
2323
"@clawdhub/schema": "^0.1.0",
2424
"@convex-dev/auth": "^0.0.90",
2525
"@fontsource/bricolage-grotesque": "^5.2.10",

packages/clawdhub/src/cli/commands/auth.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { buildCliAuthUrl, startLoopbackAuthServer } from '../../browserAuth.js'
33
import { readGlobalConfig, writeGlobalConfig } from '../../config.js'
44
import { discoverRegistryFromSite } from '../../discovery.js'
55
import { apiRequest } from '../../http.js'
6-
import type { GlobalOpts } from '../types.js'
76
import { getRegistry } from '../registry.js'
7+
import type { GlobalOpts } from '../types.js'
88
import { createSpinner, fail, formatError, openInBrowser, promptHidden } from '../ui.js'
99

1010
export async function cmdLoginFlow(
@@ -40,7 +40,11 @@ export async function cmdLoginFlow(
4040
await cmdLogin({ ...opts, registry }, result.token, inputAllowed)
4141
}
4242

43-
export async function cmdLogin(opts: GlobalOpts, tokenFlag: string | undefined, inputAllowed: boolean) {
43+
export async function cmdLogin(
44+
opts: GlobalOpts,
45+
tokenFlag: string | undefined,
46+
inputAllowed: boolean,
47+
) {
4448
if (!tokenFlag && !inputAllowed) fail('Token required (use --token or remove --no-input)')
4549

4650
const token = tokenFlag || (await promptHidden('ClawdHub token: '))
@@ -91,4 +95,3 @@ export async function cmdWhoami(opts: GlobalOpts) {
9195
throw error
9296
}
9397
}
94-

packages/clawdhub/src/cli/commands/publish.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import semver from 'semver'
1313
import { readGlobalConfig } from '../../config.js'
1414
import { apiRequest } from '../../http.js'
1515
import { listTextFiles, sha256Hex } from '../../skills.js'
16-
import type { GlobalOpts } from '../types.js'
1716
import { getRegistry } from '../registry.js'
17+
import type { GlobalOpts } from '../types.js'
1818
import { createSpinner, fail, formatError } from '../ui.js'
1919

2020
export async function cmdPublish(
@@ -148,4 +148,3 @@ function titleCase(value: string) {
148148
.replace(/\s+/g, ' ')
149149
.replace(/\b\w/g, (char) => char.toUpperCase())
150150
}
151-

packages/clawdhub/src/cli/commands/skills.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ export async function cmdSearch(opts: GlobalOpts, query: string, limit?: number)
3030
if (typeof limit === 'number' && Number.isFinite(limit)) {
3131
url.searchParams.set('limit', String(limit))
3232
}
33-
const result = await apiRequest(registry, { method: 'GET', url: url.toString() }, ApiSearchResponseSchema)
33+
const result = await apiRequest(
34+
registry,
35+
{ method: 'GET', url: url.toString() },
36+
ApiSearchResponseSchema,
37+
)
3438

3539
spinner.stop()
3640
for (const entry of result.results) {
@@ -45,7 +49,12 @@ export async function cmdSearch(opts: GlobalOpts, query: string, limit?: number)
4549
}
4650
}
4751

48-
export async function cmdInstall(opts: GlobalOpts, slug: string, versionFlag?: string, force = false) {
52+
export async function cmdInstall(
53+
opts: GlobalOpts,
54+
slug: string,
55+
versionFlag?: string,
56+
force = false,
57+
) {
4958
const trimmed = slug.trim()
5059
if (!trimmed) fail('Slug required')
5160

@@ -229,4 +238,3 @@ async function fileExists(path: string) {
229238
return false
230239
}
231240
}
232-

packages/clawdhub/src/cli/registry.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,3 @@ export async function getRegistry(opts: GlobalOpts, params?: { cache?: boolean }
2727
}
2828
return registry
2929
}
30-

packages/clawdhub/src/cli/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ export type ResolveResult = {
99
match: { version: string } | null
1010
latestVersion: { version: string } | null
1111
}
12-

packages/clawdhub/src/cli/ui.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,3 @@ export function fail(message: string): never {
7373
console.error(`Error: ${message}`)
7474
process.exit(1)
7575
}
76-

0 commit comments

Comments
 (0)