@gopherhole/cli 0.1.11 → 0.1.12
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/index.js +5 -1
- package/package.json +1 -1
- package/src/index.ts +4 -1
package/dist/index.js
CHANGED
|
@@ -1184,7 +1184,11 @@ discover
|
|
|
1184
1184
|
.action(async () => {
|
|
1185
1185
|
const spinner = (0, ora_1.default)('Fetching featured agents...').start();
|
|
1186
1186
|
try {
|
|
1187
|
-
const
|
|
1187
|
+
const sessionId = config.get('sessionId');
|
|
1188
|
+
const headers = {};
|
|
1189
|
+
if (sessionId)
|
|
1190
|
+
headers['X-Session-ID'] = sessionId;
|
|
1191
|
+
const res = await fetch(`${API_URL}/discover/featured`, { headers });
|
|
1188
1192
|
const data = await res.json();
|
|
1189
1193
|
spinner.stop();
|
|
1190
1194
|
if (data.featured.length === 0) {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1307,7 +1307,10 @@ discover
|
|
|
1307
1307
|
const spinner = ora('Fetching featured agents...').start();
|
|
1308
1308
|
|
|
1309
1309
|
try {
|
|
1310
|
-
const
|
|
1310
|
+
const sessionId = config.get('sessionId') as string | undefined;
|
|
1311
|
+
const headers: Record<string, string> = {};
|
|
1312
|
+
if (sessionId) headers['X-Session-ID'] = sessionId;
|
|
1313
|
+
const res = await fetch(`${API_URL}/discover/featured`, { headers });
|
|
1311
1314
|
const data = await res.json();
|
|
1312
1315
|
spinner.stop();
|
|
1313
1316
|
|