multi-agents-cli 1.1.83 → 1.1.85
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/lib/data-config.js +3 -3
- package/lib/questions-flow.js +1 -0
- package/package.json +1 -1
package/lib/data-config.js
CHANGED
|
@@ -63,9 +63,9 @@ const fetchLatestVersions = async (frameworkValue) => {
|
|
|
63
63
|
|
|
64
64
|
try {
|
|
65
65
|
const https = require('https');
|
|
66
|
-
const fetch = (url) => Promise.race([
|
|
66
|
+
const fetch = (url, headers = {}) => Promise.race([
|
|
67
67
|
new Promise((resolve, reject) => {
|
|
68
|
-
const req = https.get(url, (res) => {
|
|
68
|
+
const req = https.get(url, { headers }, (res) => {
|
|
69
69
|
let data = '';
|
|
70
70
|
res.on('data', chunk => data += chunk);
|
|
71
71
|
res.on('end', () => resolve(data));
|
|
@@ -76,7 +76,7 @@ const fetchLatestVersions = async (frameworkValue) => {
|
|
|
76
76
|
]);
|
|
77
77
|
|
|
78
78
|
if (entry.registry === 'npm') {
|
|
79
|
-
const raw = await fetch(`https://registry.npmjs.org/${entry.package}
|
|
79
|
+
const raw = await fetch(`https://registry.npmjs.org/${entry.package}`, { 'Accept': 'application/vnd.npm.install-v1+json' });
|
|
80
80
|
const json = JSON.parse(raw);
|
|
81
81
|
const versions = Object.keys(json.versions || {})
|
|
82
82
|
.filter(v => /^\d+\.\d+\.\d+$/.test(v) && !v.includes('-'))
|
package/lib/questions-flow.js
CHANGED
|
@@ -107,6 +107,7 @@ const buildStepDefs = (IDE_CANDIDATES, blockOrder = ['client', 'backend']) => {
|
|
|
107
107
|
stepHeader(6, 12);
|
|
108
108
|
const fw = answers.clientFw;
|
|
109
109
|
if (!fw || !fw.integratedBackend) return false; // skip — not applicable
|
|
110
|
+
if (answers.backendFw) return false; // skip — separate backend already selected
|
|
110
111
|
|
|
111
112
|
separator();
|
|
112
113
|
console.log(`\n${bold('BACKEND CONFIGURATION')}`);
|
package/package.json
CHANGED