skilluse 0.8.0 → 0.9.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/dist/cli.js +91 -23
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -68609,7 +68609,6 @@ function Login(_props) {
|
|
|
68609
68609
|
phase: "no_installation",
|
|
68610
68610
|
installUrl: "https://github.com/apps/skilluse/installations/new"
|
|
68611
68611
|
});
|
|
68612
|
-
exit();
|
|
68613
68612
|
return;
|
|
68614
68613
|
}
|
|
68615
68614
|
if (installations.length === 0) {
|
|
@@ -68617,7 +68616,6 @@ function Login(_props) {
|
|
|
68617
68616
|
phase: "no_installation",
|
|
68618
68617
|
installUrl: "https://github.com/apps/skilluse/installations/new"
|
|
68619
68618
|
});
|
|
68620
|
-
exit();
|
|
68621
68619
|
return;
|
|
68622
68620
|
}
|
|
68623
68621
|
const storedInstallations = installations.map((inst) => ({
|
|
@@ -68635,10 +68633,14 @@ function Login(_props) {
|
|
|
68635
68633
|
username,
|
|
68636
68634
|
installations: storedInstallations
|
|
68637
68635
|
});
|
|
68638
|
-
exit();
|
|
68639
68636
|
}
|
|
68640
68637
|
runLogin();
|
|
68641
68638
|
}, [exit]);
|
|
68639
|
+
import_react35.useEffect(() => {
|
|
68640
|
+
if (state.phase === "success" || state.phase === "no_installation") {
|
|
68641
|
+
exit();
|
|
68642
|
+
}
|
|
68643
|
+
}, [state.phase, exit]);
|
|
68642
68644
|
switch (state.phase) {
|
|
68643
68645
|
case "requesting_code":
|
|
68644
68646
|
return /* @__PURE__ */ jsx_dev_runtime12.jsxDEV(Spinner2, {
|
|
@@ -68727,25 +68729,51 @@ function Login(_props) {
|
|
|
68727
68729
|
flexDirection: "column",
|
|
68728
68730
|
children: [
|
|
68729
68731
|
/* @__PURE__ */ jsx_dev_runtime12.jsxDEV(Text, {
|
|
68730
|
-
|
|
68731
|
-
|
|
68732
|
-
|
|
68733
|
-
|
|
68734
|
-
state.installations.length > 1 ? "s" : "",
|
|
68735
|
-
" found:"
|
|
68736
|
-
]
|
|
68737
|
-
}, undefined, true, undefined, this),
|
|
68738
|
-
state.installations.map((inst) => /* @__PURE__ */ jsx_dev_runtime12.jsxDEV(Text, {
|
|
68739
|
-
dimColor: true,
|
|
68732
|
+
children: "App installed on:"
|
|
68733
|
+
}, undefined, false, undefined, this),
|
|
68734
|
+
state.installations.map((inst) => /* @__PURE__ */ jsx_dev_runtime12.jsxDEV(Box_default, {
|
|
68735
|
+
marginLeft: 2,
|
|
68740
68736
|
children: [
|
|
68741
|
-
|
|
68742
|
-
|
|
68743
|
-
|
|
68744
|
-
|
|
68745
|
-
|
|
68737
|
+
/* @__PURE__ */ jsx_dev_runtime12.jsxDEV(Text, {
|
|
68738
|
+
color: "green",
|
|
68739
|
+
children: "*"
|
|
68740
|
+
}, undefined, false, undefined, this),
|
|
68741
|
+
/* @__PURE__ */ jsx_dev_runtime12.jsxDEV(Text, {
|
|
68742
|
+
children: [
|
|
68743
|
+
" ",
|
|
68744
|
+
inst.account
|
|
68745
|
+
]
|
|
68746
|
+
}, undefined, true, undefined, this),
|
|
68747
|
+
/* @__PURE__ */ jsx_dev_runtime12.jsxDEV(Text, {
|
|
68748
|
+
dimColor: true,
|
|
68749
|
+
children: [
|
|
68750
|
+
" ",
|
|
68751
|
+
"(",
|
|
68752
|
+
inst.accountType.toLowerCase(),
|
|
68753
|
+
",",
|
|
68754
|
+
" ",
|
|
68755
|
+
inst.repositorySelection === "all" ? "all repos" : "selected repos",
|
|
68756
|
+
")"
|
|
68757
|
+
]
|
|
68758
|
+
}, undefined, true, undefined, this)
|
|
68746
68759
|
]
|
|
68747
68760
|
}, inst.id, true, undefined, this))
|
|
68748
68761
|
]
|
|
68762
|
+
}, undefined, true, undefined, this),
|
|
68763
|
+
/* @__PURE__ */ jsx_dev_runtime12.jsxDEV(Box_default, {
|
|
68764
|
+
marginTop: 1,
|
|
68765
|
+
flexDirection: "column",
|
|
68766
|
+
children: [
|
|
68767
|
+
/* @__PURE__ */ jsx_dev_runtime12.jsxDEV(Text, {
|
|
68768
|
+
dimColor: true,
|
|
68769
|
+
children: "To publish skills to other orgs, install the App there first:"
|
|
68770
|
+
}, undefined, false, undefined, this),
|
|
68771
|
+
/* @__PURE__ */ jsx_dev_runtime12.jsxDEV(Text, {
|
|
68772
|
+
color: "cyan",
|
|
68773
|
+
dimColor: true,
|
|
68774
|
+
children: "https://github.com/apps/skilluse/installations/new"
|
|
68775
|
+
}, undefined, false, undefined, this)
|
|
68776
|
+
]
|
|
68749
68777
|
}, undefined, true, undefined, this)
|
|
68750
68778
|
]
|
|
68751
68779
|
}, undefined, true, undefined, this);
|
|
@@ -71638,11 +71666,51 @@ function Publish({ args: [skillName] }) {
|
|
|
71638
71666
|
]
|
|
71639
71667
|
}, undefined, true, undefined, this);
|
|
71640
71668
|
case "no_write_access":
|
|
71641
|
-
return /* @__PURE__ */ jsx_dev_runtime25.jsxDEV(
|
|
71642
|
-
type: "error",
|
|
71669
|
+
return /* @__PURE__ */ jsx_dev_runtime25.jsxDEV(jsx_dev_runtime25.Fragment, {
|
|
71643
71670
|
children: [
|
|
71644
|
-
|
|
71645
|
-
|
|
71671
|
+
/* @__PURE__ */ jsx_dev_runtime25.jsxDEV(StatusMessage, {
|
|
71672
|
+
type: "error",
|
|
71673
|
+
children: [
|
|
71674
|
+
"No write access to repo: ",
|
|
71675
|
+
state.repo
|
|
71676
|
+
]
|
|
71677
|
+
}, undefined, true, undefined, this),
|
|
71678
|
+
/* @__PURE__ */ jsx_dev_runtime25.jsxDEV(Box_default, {
|
|
71679
|
+
marginTop: 1,
|
|
71680
|
+
flexDirection: "column",
|
|
71681
|
+
children: [
|
|
71682
|
+
/* @__PURE__ */ jsx_dev_runtime25.jsxDEV(Text, {
|
|
71683
|
+
dimColor: true,
|
|
71684
|
+
children: "Possible causes:"
|
|
71685
|
+
}, undefined, false, undefined, this),
|
|
71686
|
+
/* @__PURE__ */ jsx_dev_runtime25.jsxDEV(Text, {
|
|
71687
|
+
dimColor: true,
|
|
71688
|
+
children: "1. Skilluse App not installed on this org/account"
|
|
71689
|
+
}, undefined, false, undefined, this),
|
|
71690
|
+
/* @__PURE__ */ jsx_dev_runtime25.jsxDEV(Text, {
|
|
71691
|
+
dimColor: true,
|
|
71692
|
+
children: "2. App not granted access to this specific repo"
|
|
71693
|
+
}, undefined, false, undefined, this)
|
|
71694
|
+
]
|
|
71695
|
+
}, undefined, true, undefined, this),
|
|
71696
|
+
/* @__PURE__ */ jsx_dev_runtime25.jsxDEV(Box_default, {
|
|
71697
|
+
marginTop: 1,
|
|
71698
|
+
flexDirection: "column",
|
|
71699
|
+
children: [
|
|
71700
|
+
/* @__PURE__ */ jsx_dev_runtime25.jsxDEV(Text, {
|
|
71701
|
+
dimColor: true,
|
|
71702
|
+
children: "Install or configure the App for this repo:"
|
|
71703
|
+
}, undefined, false, undefined, this),
|
|
71704
|
+
/* @__PURE__ */ jsx_dev_runtime25.jsxDEV(Text, {
|
|
71705
|
+
color: "cyan",
|
|
71706
|
+
children: "https://github.com/apps/skilluse/installations/new"
|
|
71707
|
+
}, undefined, false, undefined, this),
|
|
71708
|
+
/* @__PURE__ */ jsx_dev_runtime25.jsxDEV(Text, {
|
|
71709
|
+
dimColor: true,
|
|
71710
|
+
children: "Then run 'skilluse login' to refresh your token."
|
|
71711
|
+
}, undefined, false, undefined, this)
|
|
71712
|
+
]
|
|
71713
|
+
}, undefined, true, undefined, this)
|
|
71646
71714
|
]
|
|
71647
71715
|
}, undefined, true, undefined, this);
|
|
71648
71716
|
case "repo_not_found":
|
|
@@ -71717,7 +71785,7 @@ function Publish({ args: [skillName] }) {
|
|
|
71717
71785
|
// package.json
|
|
71718
71786
|
var package_default = {
|
|
71719
71787
|
name: "skilluse",
|
|
71720
|
-
version: "0.
|
|
71788
|
+
version: "0.9.0",
|
|
71721
71789
|
description: "CLI tool for managing and installing AI Coding Agent Skills",
|
|
71722
71790
|
main: "dist/cli.js",
|
|
71723
71791
|
bin: {
|