stpr 1.0.0 → 1.0.1
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/cli.js +7 -7
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -576,10 +576,10 @@ Examples:
|
|
|
576
576
|
By default, requesting a skill returns the current parameters only; it does
|
|
577
577
|
not call the skill. Use --call to execute the action.
|
|
578
578
|
|
|
579
|
-
|
|
579
|
+
stpr google-sheets add_row -i '{"spreadsheet_id": "abc123"}'
|
|
580
580
|
|
|
581
581
|
Call a skill:
|
|
582
|
-
|
|
582
|
+
stpr stripe create_customer --call -i '{"email": "test@example.com"}'
|
|
583
583
|
|
|
584
584
|
Dynamic dropdown options:
|
|
585
585
|
Some actions have dynamic dropdown options, which change depending on the
|
|
@@ -661,11 +661,11 @@ async function main() {
|
|
|
661
661
|
if (subcommand === "use") {
|
|
662
662
|
const name = args[0];
|
|
663
663
|
if (!name) {
|
|
664
|
-
die("Usage:
|
|
664
|
+
die("Usage: stpr use <name>");
|
|
665
665
|
}
|
|
666
666
|
const ok = setActiveSkillset(name);
|
|
667
667
|
if (!ok) {
|
|
668
|
-
die(`Skillset "${name}" not found. Run "
|
|
668
|
+
die(`Skillset "${name}" not found. Run "stpr profiles" to list.`);
|
|
669
669
|
}
|
|
670
670
|
process.stderr.write(`Switched to skillset "${name}".
|
|
671
671
|
`);
|
|
@@ -683,7 +683,7 @@ async function main() {
|
|
|
683
683
|
die(`Skillset "${skillsetName2}" not found.`);
|
|
684
684
|
}
|
|
685
685
|
die(
|
|
686
|
-
`Skillset "${skillsetName2}" has expired or invalid token. Run "
|
|
686
|
+
`Skillset "${skillsetName2}" has expired or invalid token. Run "stpr login" to re-authenticate.`
|
|
687
687
|
);
|
|
688
688
|
}
|
|
689
689
|
const client2 = new StepperClient(stored.token, stored.baseUrl);
|
|
@@ -720,7 +720,7 @@ async function main() {
|
|
|
720
720
|
const sets = listSkillsets();
|
|
721
721
|
if (sets.length === 0) {
|
|
722
722
|
process.stderr.write(
|
|
723
|
-
'No skillset configured. Run "
|
|
723
|
+
'No skillset configured. Run "stpr login" to add one.\n'
|
|
724
724
|
);
|
|
725
725
|
return;
|
|
726
726
|
}
|
|
@@ -746,7 +746,7 @@ async function main() {
|
|
|
746
746
|
}
|
|
747
747
|
if (!token) {
|
|
748
748
|
die(
|
|
749
|
-
'No token provided. Run "
|
|
749
|
+
'No token provided. Run "stpr login" or use --token or set STEPPER_SKILL_TOKEN env var.'
|
|
750
750
|
);
|
|
751
751
|
}
|
|
752
752
|
const client = new StepperClient(token, resolvedBaseUrl);
|