opencode-remote-control 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/cli.js +12 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -97,6 +97,10 @@ async function promptToken() {
|
|
|
97
97
|
resolve(chunk.toString().trim());
|
|
98
98
|
});
|
|
99
99
|
});
|
|
100
|
+
if (!token) {
|
|
101
|
+
console.log('\nCancelled');
|
|
102
|
+
process.exit(0);
|
|
103
|
+
}
|
|
100
104
|
return token;
|
|
101
105
|
}
|
|
102
106
|
async function promptFeishuConfig() {
|
|
@@ -129,7 +133,15 @@ async function promptFeishuConfig() {
|
|
|
129
133
|
});
|
|
130
134
|
};
|
|
131
135
|
const appId = await promptInput('Enter your App ID: ');
|
|
136
|
+
if (!appId) {
|
|
137
|
+
console.log('\nCancelled');
|
|
138
|
+
process.exit(0);
|
|
139
|
+
}
|
|
132
140
|
const appSecret = await promptInput('Enter your App Secret: ');
|
|
141
|
+
if (!appSecret) {
|
|
142
|
+
console.log('\nCancelled');
|
|
143
|
+
process.exit(0);
|
|
144
|
+
}
|
|
133
145
|
return { appId, appSecret };
|
|
134
146
|
}
|
|
135
147
|
function showFeishuSetupGuide() {
|