- Change token format to reviq_<base58> prefix instead of raw hex - Add me.authStatus API endpoint for detailed auth information - Enhance CLI `reviq auth status` to show token details from API - Add comprehensive tests for token generation (18 tests) - Extract bootstrap logic to @reviq/db for reusability and testing - Remove default db export; callers must use createDb() directly Token changes: - New format: reviq_<base58-encoded-32-bytes> - Added parseToken() for validation - Added isValidTokenFormat() helper Auth status endpoint returns: - User profile information - Auth method (api_token or session) - Token/session details (name, expiration, last used) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
33 lines
925 B
JSON
33 lines
925 B
JSON
{
|
|
"name": "@reviq/cli",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"bin": {
|
|
"reviq": "./dist/index.js",
|
|
"__reviq_bash_complete": "./dist/bash-complete.js"
|
|
},
|
|
"scripts": {
|
|
"build": "bun build src/bin/reviq.ts --outfile dist/index.js --target bun && bun build src/bin/bash-complete.ts --outfile dist/bash-complete.js --target bun",
|
|
"cli": "bun run src/bin/reviq.ts",
|
|
"typecheck": "tsc --noEmit",
|
|
"lint": "eslint . --cache",
|
|
"clean": "rm -rf dist .eslintcache",
|
|
"test": "bun test"
|
|
},
|
|
"dependencies": {
|
|
"@noble/hashes": "^2.0.1",
|
|
"@reviq/db": "workspace:*",
|
|
"@scure/base": "^2.0.0",
|
|
"@stricli/auto-complete": "^1.0.0",
|
|
"@stricli/core": "^1.2.5"
|
|
},
|
|
"devDependencies": {
|
|
"@macalinao/eslint-config": "catalog:",
|
|
"@macalinao/tsconfig": "catalog:",
|
|
"@types/bun": "catalog:",
|
|
"eslint": "catalog:",
|
|
"typescript": "catalog:"
|
|
}
|
|
}
|