feedbackbasket-cli 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ feedbackbasket login
|
|
|
16
16
|
# Or use a token directly (for CI/headless)
|
|
17
17
|
feedbackbasket login --token fb_cli_your_token_here
|
|
18
18
|
|
|
19
|
-
# Remote server
|
|
19
|
+
# Remote server flow: use when localhost browser callbacks cannot reach the CLI
|
|
20
20
|
feedbackbasket login --manual
|
|
21
21
|
|
|
22
22
|
# Start exploring
|
|
@@ -51,7 +51,7 @@ feedbackbasket setup claude
|
|
|
51
51
|
|
|
52
52
|
```bash
|
|
53
53
|
feedbackbasket login # Browser OAuth flow (alias for auth login)
|
|
54
|
-
feedbackbasket login --manual #
|
|
54
|
+
feedbackbasket login --manual # No localhost browser callback (remote servers)
|
|
55
55
|
feedbackbasket login --token <token> # Use an existing CLI token (CI / scripts)
|
|
56
56
|
feedbackbasket logout # Clear credentials (alias for auth logout)
|
|
57
57
|
feedbackbasket auth status # Show auth state, scope, default project
|
package/dist/src/auth/login.js
CHANGED
|
@@ -108,7 +108,8 @@ export async function browserLogin(baseUrl, scope = 'read') {
|
|
|
108
108
|
console.log(` ${brand.primary(authorizeUrl)}`);
|
|
109
109
|
console.log();
|
|
110
110
|
console.log(` ${brand.muted('Waiting for authentication...')}`);
|
|
111
|
-
console.log(` ${brand.muted('
|
|
111
|
+
console.log(` ${brand.muted('If this machine cannot receive the localhost browser callback, use:')}`);
|
|
112
|
+
console.log(` ${brand.command('feedbackbasket login --manual')}`);
|
|
112
113
|
console.log();
|
|
113
114
|
open(authorizeUrl).catch(() => {
|
|
114
115
|
// Browser open failed; user will use the URL manually.
|
|
@@ -121,10 +122,13 @@ export async function manualLogin(baseUrl, scope = 'read') {
|
|
|
121
122
|
console.log();
|
|
122
123
|
console.log(` ${logo()} CLI`);
|
|
123
124
|
console.log();
|
|
124
|
-
console.log(` ${brand.primary('Open this URL
|
|
125
|
+
console.log(` ${brand.primary('Open this URL on any machine with a browser:')}`);
|
|
125
126
|
console.log();
|
|
126
127
|
console.log(` ${brand.primary(authorizeUrl)}`);
|
|
127
128
|
console.log();
|
|
129
|
+
console.log(` ${brand.muted('Use this when a remote server cannot receive the localhost browser callback.')}`);
|
|
130
|
+
console.log(` ${brand.muted('The CLI still needs outbound HTTPS access to verify and use the token.')}`);
|
|
131
|
+
console.log();
|
|
128
132
|
console.log(` ${brand.muted('After approving access, paste the token shown in your browser.')}`);
|
|
129
133
|
console.log();
|
|
130
134
|
open(authorizeUrl).catch(() => {
|
|
@@ -18,7 +18,7 @@ export function createAuthCommand(getWriter) {
|
|
|
18
18
|
.command('login')
|
|
19
19
|
.description('Authenticate with FeedbackBasket')
|
|
20
20
|
.option('--token <token>', 'Use an API token directly (for CI/headless)')
|
|
21
|
-
.option('--manual', '
|
|
21
|
+
.option('--manual', 'Authenticate without a localhost browser callback')
|
|
22
22
|
.option('--scope <scope>', 'Access scope: read or full', 'full')
|
|
23
23
|
.action(async (opts) => {
|
|
24
24
|
const writer = getWriter();
|
|
@@ -299,7 +299,7 @@ export function createLoginCommand(getWriter) {
|
|
|
299
299
|
return new Command('login')
|
|
300
300
|
.description('Authenticate with FeedbackBasket (alias for auth login)')
|
|
301
301
|
.option('--token <token>', 'Use an API token directly (for CI/headless)')
|
|
302
|
-
.option('--manual', '
|
|
302
|
+
.option('--manual', 'Authenticate without a localhost browser callback')
|
|
303
303
|
.option('--scope <scope>', 'Access scope: read or full', 'full')
|
|
304
304
|
.action(async (opts) => {
|
|
305
305
|
// Delegate to auth login by re-parsing
|
package/dist/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
2
|
-
export declare const USER_AGENT = "FeedbackBasket-CLI/0.
|
|
1
|
+
export declare const VERSION = "0.5.0";
|
|
2
|
+
export declare const USER_AGENT = "FeedbackBasket-CLI/0.5.0";
|
package/dist/src/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.5.0';
|
|
2
2
|
export const USER_AGENT = `FeedbackBasket-CLI/${VERSION}`;
|
package/package.json
CHANGED
|
@@ -21,7 +21,7 @@ Full command-line interface for managing feedback, bug reports, projects, widget
|
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
23
|
feedbackbasket login # Opens browser — one click, full access
|
|
24
|
-
feedbackbasket login --manual #
|
|
24
|
+
feedbackbasket login --manual # No localhost browser callback (remote servers)
|
|
25
25
|
feedbackbasket login --token <TOKEN> # Manual token (CI/headless)
|
|
26
26
|
feedbackbasket auth status # Check auth state
|
|
27
27
|
feedbackbasket doctor # Full diagnostics
|