@cloudbase/cloudbase-mcp 2.33.1 → 2.34.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/267.index.js CHANGED
@@ -24,6 +24,7 @@ const open_1 = __importDefault(__webpack_require__(1622));
24
24
  const ws_1 = __webpack_require__(6220);
25
25
  const index_js_1 = __webpack_require__(9903);
26
26
  const logger_js_1 = __webpack_require__(781);
27
+ const site_map_js_1 = __webpack_require__(4533);
27
28
  function isVSCodeEnvironment() {
28
29
  return Boolean(process.env.VSCODE_IPC_HOOK_CLI ||
29
30
  process.env.VSCODE_PID ||
@@ -1713,7 +1714,7 @@ class InteractiveServer {
1713
1714
 
1714
1715
  function createNewEnv() {
1715
1716
  const integrationIde = '${process.env.INTEGRATION_IDE || "AI Toolkit"}';
1716
- const url = \`http://tcb.cloud.tencent.com/dev?from=\${encodeURIComponent(integrationIde)}\`;
1717
+ const url = \`${(0, site_map_js_1.getConsoleDevUrl)(undefined)}?from=\${encodeURIComponent(integrationIde)}\`;
1717
1718
  location.href = url;
1718
1719
  }
1719
1720
 
@@ -3582,6 +3583,8 @@ function getJavaScripts(wsPort) {
3582
3583
  // Create new environment
3583
3584
  function createNewEnv() {
3584
3585
  console.log('[env-setup] Creating new environment');
3586
+ // TODO(intl): 国际站购买链接域名待确认(buy.cloud.tencent.com 是否服务国际站),
3587
+ // 确认后按站点切换,参考 utils/site-map.ts 的站点解析链(specs/intl-site-enhancement 需求 4.3)
3585
3588
  openUrl(null, 'https://buy.cloud.tencent.com/lowcode?buyType=tcb&channel=mcp');
3586
3589
  }
3587
3590
 
@@ -37,6 +37,7 @@ const open_1 = __importDefault(__webpack_require__(61578));
37
37
  const ws_1 = __webpack_require__(31030);
38
38
  const index_js_1 = __webpack_require__(59903);
39
39
  const logger_js_1 = __webpack_require__(40781);
40
+ const site_map_js_1 = __webpack_require__(34533);
40
41
  function isVSCodeEnvironment() {
41
42
  return Boolean(process.env.VSCODE_IPC_HOOK_CLI ||
42
43
  process.env.VSCODE_PID ||
@@ -1726,7 +1727,7 @@ class InteractiveServer {
1726
1727
 
1727
1728
  function createNewEnv() {
1728
1729
  const integrationIde = '${process.env.INTEGRATION_IDE || "AI Toolkit"}';
1729
- const url = \`http://tcb.cloud.tencent.com/dev?from=\${encodeURIComponent(integrationIde)}\`;
1730
+ const url = \`${(0, site_map_js_1.getConsoleDevUrl)(undefined)}?from=\${encodeURIComponent(integrationIde)}\`;
1730
1731
  location.href = url;
1731
1732
  }
1732
1733
 
@@ -3595,6 +3596,8 @@ function getJavaScripts(wsPort) {
3595
3596
  // Create new environment
3596
3597
  function createNewEnv() {
3597
3598
  console.log('[env-setup] Creating new environment');
3599
+ // TODO(intl): 国际站购买链接域名待确认(buy.cloud.tencent.com 是否服务国际站),
3600
+ // 确认后按站点切换,参考 utils/site-map.ts 的站点解析链(specs/intl-site-enhancement 需求 4.3)
3598
3601
  openUrl(null, 'https://buy.cloud.tencent.com/lowcode?buyType=tcb&channel=mcp');
3599
3602
  }
3600
3603
 
@@ -6180,7 +6180,7 @@ function tryStat(path) {
6180
6180
  * @private
6181
6181
  */
6182
6182
 
6183
- var debug = __webpack_require__(79664)('finalhandler')
6183
+ var debug = __webpack_require__(46809)('finalhandler')
6184
6184
  var encodeUrl = __webpack_require__(39017)
6185
6185
  var escapeHtml = __webpack_require__(75241)
6186
6186
  var onFinished = __webpack_require__(68010)
@@ -14505,7 +14505,7 @@ module.exports = function (str, opts) {
14505
14505
  "use strict";
14506
14506
 
14507
14507
 
14508
- var getSideChannel = __webpack_require__(88409);
14508
+ var getSideChannel = __webpack_require__(38910);
14509
14509
  var utils = __webpack_require__(89841);
14510
14510
  var formats = __webpack_require__(4312);
14511
14511
  var has = Object.prototype.hasOwnProperty;
@@ -16908,7 +16908,7 @@ const Layer = __webpack_require__(80660)
16908
16908
  const { METHODS } = __webpack_require__(50588)
16909
16909
  const parseUrl = __webpack_require__(55914)
16910
16910
  const Route = __webpack_require__(60192)
16911
- const debug = __webpack_require__(79664)('router')
16911
+ const debug = __webpack_require__(46809)('router')
16912
16912
  const deprecate = __webpack_require__(17731)('router')
16913
16913
 
16914
16914
  /**
@@ -17661,7 +17661,7 @@ function wrap (old, fn) {
17661
17661
 
17662
17662
  const isPromise = __webpack_require__(94445)
17663
17663
  const pathRegexp = __webpack_require__(85614)
17664
- const debug = __webpack_require__(79664)('router:layer')
17664
+ const debug = __webpack_require__(46809)('router:layer')
17665
17665
  const deprecate = __webpack_require__(17731)('router')
17666
17666
 
17667
17667
  /**
@@ -17914,7 +17914,7 @@ function loosen (path) {
17914
17914
  * @private
17915
17915
  */
17916
17916
 
17917
- const debug = __webpack_require__(79664)('router:route')
17917
+ const debug = __webpack_require__(46809)('router:route')
17918
17918
  const Layer = __webpack_require__(80660)
17919
17919
  const { METHODS } = __webpack_require__(50588)
17920
17920
 
@@ -18165,7 +18165,7 @@ methods.forEach(function (method) {
18165
18165
  */
18166
18166
 
18167
18167
  var createError = __webpack_require__(46415)
18168
- var debug = __webpack_require__(79664)('send')
18168
+ var debug = __webpack_require__(46809)('send')
18169
18169
  var encodeUrl = __webpack_require__(39017)
18170
18170
  var escapeHtml = __webpack_require__(75241)
18171
18171
  var etag = __webpack_require__(26637)
@@ -19390,127 +19390,6 @@ function mixinProperties (obj, proto) {
19390
19390
  }
19391
19391
 
19392
19392
 
19393
- /***/ },
19394
-
19395
- /***/ 63364
19396
- (module, __unused_webpack_exports, __webpack_require__) {
19397
-
19398
- "use strict";
19399
-
19400
-
19401
- var inspect = __webpack_require__(15646);
19402
-
19403
- var $TypeError = __webpack_require__(41623);
19404
-
19405
- /*
19406
- * This function traverses the list returning the node corresponding to the given key.
19407
- *
19408
- * That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list.
19409
- * By doing so, all the recently used nodes can be accessed relatively quickly.
19410
- */
19411
- /** @type {import('./list.d.ts').listGetNode} */
19412
- // eslint-disable-next-line consistent-return
19413
- var listGetNode = function (list, key, isDelete) {
19414
- /** @type {typeof list | NonNullable<(typeof list)['next']>} */
19415
- var prev = list;
19416
- /** @type {(typeof list)['next']} */
19417
- var curr;
19418
- // eslint-disable-next-line eqeqeq
19419
- for (; (curr = prev.next) != null; prev = curr) {
19420
- if (curr.key === key) {
19421
- prev.next = curr.next;
19422
- if (!isDelete) {
19423
- // eslint-disable-next-line no-extra-parens
19424
- curr.next = /** @type {NonNullable<typeof list.next>} */ (list.next);
19425
- list.next = curr; // eslint-disable-line no-param-reassign
19426
- }
19427
- return curr;
19428
- }
19429
- }
19430
- };
19431
-
19432
- /** @type {import('./list.d.ts').listGet} */
19433
- var listGet = function (objects, key) {
19434
- if (!objects) {
19435
- return void undefined;
19436
- }
19437
- var node = listGetNode(objects, key);
19438
- return node && node.value;
19439
- };
19440
- /** @type {import('./list.d.ts').listSet} */
19441
- var listSet = function (objects, key, value) {
19442
- var node = listGetNode(objects, key);
19443
- if (node) {
19444
- node.value = value;
19445
- } else {
19446
- // Prepend the new node to the beginning of the list
19447
- objects.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens
19448
- key: key,
19449
- next: objects.next,
19450
- value: value
19451
- });
19452
- }
19453
- };
19454
- /** @type {import('./list.d.ts').listHas} */
19455
- var listHas = function (objects, key) {
19456
- if (!objects) {
19457
- return false;
19458
- }
19459
- return !!listGetNode(objects, key);
19460
- };
19461
- /** @type {import('./list.d.ts').listDelete} */
19462
- // eslint-disable-next-line consistent-return
19463
- var listDelete = function (objects, key) {
19464
- if (objects) {
19465
- return listGetNode(objects, key, true);
19466
- }
19467
- };
19468
-
19469
- /** @type {import('.')} */
19470
- module.exports = function getSideChannelList() {
19471
- /** @typedef {ReturnType<typeof getSideChannelList>} Channel */
19472
- /** @typedef {Parameters<Channel['get']>[0]} K */
19473
- /** @typedef {Parameters<Channel['set']>[1]} V */
19474
-
19475
- /** @type {import('./list.d.ts').RootNode<V, K> | undefined} */ var $o;
19476
-
19477
- /** @type {Channel} */
19478
- var channel = {
19479
- assert: function (key) {
19480
- if (!channel.has(key)) {
19481
- throw new $TypeError('Side channel does not contain ' + inspect(key));
19482
- }
19483
- },
19484
- 'delete': function (key) {
19485
- var root = $o && $o.next;
19486
- var deletedNode = listDelete($o, key);
19487
- if (deletedNode && root && root === deletedNode) {
19488
- $o = void undefined;
19489
- }
19490
- return !!deletedNode;
19491
- },
19492
- get: function (key) {
19493
- return listGet($o, key);
19494
- },
19495
- has: function (key) {
19496
- return listHas($o, key);
19497
- },
19498
- set: function (key, value) {
19499
- if (!$o) {
19500
- // Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head
19501
- $o = {
19502
- next: void undefined
19503
- };
19504
- }
19505
- // eslint-disable-next-line no-extra-parens
19506
- listSet(/** @type {NonNullable<typeof $o>} */ ($o), key, value);
19507
- }
19508
- };
19509
- // @ts-expect-error TODO: figure out why this is erroring
19510
- return channel;
19511
- };
19512
-
19513
-
19514
19393
  /***/ },
19515
19394
 
19516
19395
  /***/ 12633
@@ -19798,57 +19677,6 @@ module.exports = $WeakMap
19798
19677
  : getSideChannelMap;
19799
19678
 
19800
19679
 
19801
- /***/ },
19802
-
19803
- /***/ 88409
19804
- (module, __unused_webpack_exports, __webpack_require__) {
19805
-
19806
- "use strict";
19807
-
19808
-
19809
- var $TypeError = __webpack_require__(41623);
19810
- var inspect = __webpack_require__(15646);
19811
- var getSideChannelList = __webpack_require__(63364);
19812
- var getSideChannelMap = __webpack_require__(12161);
19813
- var getSideChannelWeakMap = __webpack_require__(58056);
19814
-
19815
- var makeChannel = getSideChannelWeakMap || getSideChannelMap || getSideChannelList;
19816
-
19817
- /** @type {import('.')} */
19818
- module.exports = function getSideChannel() {
19819
- /** @typedef {ReturnType<typeof getSideChannel>} Channel */
19820
-
19821
- /** @type {Channel | undefined} */ var $channelData;
19822
-
19823
- /** @type {Channel} */
19824
- var channel = {
19825
- assert: function (key) {
19826
- if (!channel.has(key)) {
19827
- throw new $TypeError('Side channel does not contain ' + inspect(key));
19828
- }
19829
- },
19830
- 'delete': function (key) {
19831
- return !!$channelData && $channelData['delete'](key);
19832
- },
19833
- get: function (key) {
19834
- return $channelData && $channelData.get(key);
19835
- },
19836
- has: function (key) {
19837
- return !!$channelData && $channelData.has(key);
19838
- },
19839
- set: function (key, value) {
19840
- if (!$channelData) {
19841
- $channelData = makeChannel();
19842
- }
19843
-
19844
- $channelData.set(key, value);
19845
- }
19846
- };
19847
- // @ts-expect-error TODO: figure out why this is erroring
19848
- return channel;
19849
- };
19850
-
19851
-
19852
19680
  /***/ },
19853
19681
 
19854
19682
  /***/ 38910