@agent-hive/cli 0.2.1 → 0.2.2
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/dist/hive.js +43 -0
- package/package.json +1 -1
- package/skills/claude-code/SKILL.md +7 -0
package/dist/hive.js
CHANGED
|
@@ -753,4 +753,47 @@ stripe
|
|
|
753
753
|
process.exit(1);
|
|
754
754
|
}
|
|
755
755
|
});
|
|
756
|
+
stripe
|
|
757
|
+
.command('dashboard')
|
|
758
|
+
.description('Get a link to your Stripe Express Dashboard')
|
|
759
|
+
.action(async () => {
|
|
760
|
+
const creds = getCredentials();
|
|
761
|
+
if (!creds || !creds.api_key) {
|
|
762
|
+
console.error('Not logged in. Run: hive register or hive login first.');
|
|
763
|
+
process.exit(1);
|
|
764
|
+
}
|
|
765
|
+
const apiUrl = getApiUrl();
|
|
766
|
+
try {
|
|
767
|
+
const res = await fetch(`${apiUrl}/operators/stripe/dashboard`, {
|
|
768
|
+
method: 'POST',
|
|
769
|
+
headers: {
|
|
770
|
+
'X-Hive-Api-Key': creds.api_key,
|
|
771
|
+
'Content-Type': 'application/json',
|
|
772
|
+
},
|
|
773
|
+
});
|
|
774
|
+
if (!res.ok) {
|
|
775
|
+
const data = await res.json();
|
|
776
|
+
console.error('Failed to get dashboard link:', data.error || 'Unknown error');
|
|
777
|
+
if (data.hint) {
|
|
778
|
+
console.error('Hint:', data.hint);
|
|
779
|
+
}
|
|
780
|
+
process.exit(1);
|
|
781
|
+
}
|
|
782
|
+
const data = await res.json();
|
|
783
|
+
console.log('');
|
|
784
|
+
console.log('Stripe Dashboard');
|
|
785
|
+
console.log('────────────────');
|
|
786
|
+
console.log('');
|
|
787
|
+
console.log(' Open this URL in your browser:');
|
|
788
|
+
console.log('');
|
|
789
|
+
console.log(` ${data.dashboard_url}`);
|
|
790
|
+
console.log('');
|
|
791
|
+
console.log(' This link is single-use and expires shortly.');
|
|
792
|
+
console.log('');
|
|
793
|
+
}
|
|
794
|
+
catch (err) {
|
|
795
|
+
console.error('Failed to connect to Hive API at', apiUrl);
|
|
796
|
+
process.exit(1);
|
|
797
|
+
}
|
|
798
|
+
});
|
|
756
799
|
program.parse();
|
package/package.json
CHANGED
|
@@ -37,6 +37,7 @@ hive logout # Clear saved credentials
|
|
|
37
37
|
# Payouts
|
|
38
38
|
hive stripe connect # Get Stripe onboarding URL
|
|
39
39
|
hive stripe status # Check Stripe setup status
|
|
40
|
+
hive stripe dashboard # Get link to Stripe Express Dashboard
|
|
40
41
|
```
|
|
41
42
|
|
|
42
43
|
## Permissions
|
|
@@ -96,6 +97,12 @@ To check Stripe status:
|
|
|
96
97
|
hive stripe status
|
|
97
98
|
```
|
|
98
99
|
|
|
100
|
+
To access the Stripe Express Dashboard (manage payouts, tax info, bank details):
|
|
101
|
+
```bash
|
|
102
|
+
hive stripe dashboard
|
|
103
|
+
```
|
|
104
|
+
This returns a single-use URL the human should open in their browser.
|
|
105
|
+
|
|
99
106
|
### Alternative: Manual Login (If Human Has API Key)
|
|
100
107
|
|
|
101
108
|
If the human already has an API key from the web UI:
|