@neus/sdk 1.2.1 → 1.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/cjs/index.cjs +3 -0
- package/cjs/mcp-hosts.cjs +3 -0
- package/cli/neus.mjs +2635 -2475
- package/mcp-hosts.js +25 -0
- package/package.json +1 -1
package/cjs/index.cjs
CHANGED
|
@@ -3595,6 +3595,9 @@ var IDE_HOST_BRAND_LOGOS = {
|
|
|
3595
3595
|
};
|
|
3596
3596
|
function buildNeusMcpHttpConfig(accessKey) {
|
|
3597
3597
|
const key = String(accessKey || "").trim();
|
|
3598
|
+
if (key && !key.startsWith("npk_") && key.split(".").length === 3) {
|
|
3599
|
+
return { type: "http", url: NEUS_MCP_URL };
|
|
3600
|
+
}
|
|
3598
3601
|
return {
|
|
3599
3602
|
type: "http",
|
|
3600
3603
|
url: NEUS_MCP_URL,
|
package/cjs/mcp-hosts.cjs
CHANGED
|
@@ -112,6 +112,9 @@ var IDE_HOST_BRAND_LOGOS = {
|
|
|
112
112
|
};
|
|
113
113
|
function buildNeusMcpHttpConfig(accessKey) {
|
|
114
114
|
const key = String(accessKey || "").trim();
|
|
115
|
+
if (key && !key.startsWith("npk_") && key.split(".").length === 3) {
|
|
116
|
+
return { type: "http", url: NEUS_MCP_URL };
|
|
117
|
+
}
|
|
115
118
|
return {
|
|
116
119
|
type: "http",
|
|
117
120
|
url: NEUS_MCP_URL,
|