init claude-code
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { runExtraUsage } from './extra-usage-core.js'
|
||||
|
||||
export async function call(): Promise<{ type: 'text'; value: string }> {
|
||||
const result = await runExtraUsage()
|
||||
|
||||
if (result.type === 'message') {
|
||||
return { type: 'text', value: result.value }
|
||||
}
|
||||
|
||||
return {
|
||||
type: 'text',
|
||||
value: result.opened
|
||||
? `Browser opened to manage extra usage. If it didn't open, visit: ${result.url}`
|
||||
: `Please visit ${result.url} to manage extra usage.`,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user