cwm-assistant 0.3.1 → 0.3.3

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.
@@ -2619,7 +2619,7 @@ var Type = type_exports2;
2619
2619
 
2620
2620
  // ../../packages/contracts/src/assistant.ts
2621
2621
  var ASSISTANT_PROTOCOL = 1;
2622
- var ASSISTANT_VERSION = "0.3.1";
2622
+ var ASSISTANT_VERSION = "0.3.3";
2623
2623
  var ASSISTANT_PORT = 46322;
2624
2624
 
2625
2625
  // ../../packages/contracts/src/index.ts
@@ -6021,10 +6021,10 @@ function isNewer(candidate, current) {
6021
6021
  }
6022
6022
  async function latestPublished() {
6023
6023
  const response = await fetch("https://registry.npmjs.org/cwm-assistant/latest", {
6024
- signal: AbortSignal.timeout(5e3),
6025
- headers: { Accept: "application/vnd.npm.install-v1+json" }
6024
+ signal: AbortSignal.timeout(8e3),
6025
+ headers: { Accept: "application/json" }
6026
6026
  });
6027
- if (!response.ok) throw new Error("\u65E0\u6CD5\u67E5\u8BE2 npm \u4E0A\u7684\u6700\u65B0\u7248\u672C");
6027
+ if (!response.ok) throw new Error(`\u65E0\u6CD5\u67E5\u8BE2 npm \u4E0A\u7684\u6700\u65B0\u7248\u672C\uFF08HTTP ${response.status}\uFF09`);
6028
6028
  const data = await response.json();
6029
6029
  if (!data.version) throw new Error("npm \u8FD4\u56DE\u7684\u7248\u672C\u4FE1\u606F\u65E0\u6548");
6030
6030
  return data.version;
@@ -6591,4 +6591,4 @@ async function cli(args, entry) {
6591
6591
  export {
6592
6592
  cli
6593
6593
  };
6594
- //# sourceMappingURL=cli-GOWF7QRM.js.map
6594
+ //# sourceMappingURL=cli-ZVCMSNB3.js.map