loongclaw-devkit 0.2.1__tar.gz → 0.2.3__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: loongclaw-devkit
3
- Version: 0.2.1
3
+ Version: 0.2.3
4
4
  Summary: LoongClaw MCP 开发者工具包 — 一键创建、加密、打包、发布 MCP 插件
5
5
  Author: LoongClaw Team
6
6
  License-Expression: MIT
@@ -23,7 +23,7 @@ import zipfile
23
23
  from pathlib import Path
24
24
 
25
25
  # ── 常量 ──────────────────────────────────────────────────
26
- CLOUD_API_BASE = "https://yun.loongclaw.com"
26
+ CLOUD_API_BASE = "https://api.loongclaw.net.cn"
27
27
  UPLOAD_ENDPOINT = "/v1/store/upload"
28
28
  ENTRYPOINT = "server.py" # 入口文件,始终明文
29
29
  CONFIG_FILE = ".publish.json"
@@ -337,7 +337,7 @@ def upload_to_cloud(
337
337
 
338
338
  token = config.get("token", "")
339
339
  if not token:
340
- token = os.environ.get("LOONGCLAW_STORE_KEY", "") or os.environ.get("LOONGCLAW_TOKEN", "")
340
+ token = os.environ.get("LOONGCLAW_STORE_KEY", "")
341
341
  if not token:
342
342
  return {"status": "error", "step": "upload",
343
343
  "error": "缺少 Store Key。设置环境变量 LOONGCLAW_STORE_KEY 或在 .publish.json 中配置 token",
@@ -640,7 +640,7 @@ def main() -> None:
640
640
  else saved.get("skipEncrypt", [])
641
641
  ),
642
642
  "upload": args.upload or (not args.no_upload and saved.get("upload", False)),
643
- "token": args.token or os.environ.get("LOONGCLAW_STORE_KEY", "") or os.environ.get("LOONGCLAW_TOKEN", ""),
643
+ "token": args.token or os.environ.get("LOONGCLAW_STORE_KEY", ""),
644
644
  }
645
645
  elif args.reconfigure or not load_config(project_dir):
646
646
  # 交互模式
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "loongclaw-devkit"
7
- version = "0.2.1"
7
+ version = "0.2.3"
8
8
  description = "LoongClaw MCP 开发者工具包 — 一键创建、加密、打包、发布 MCP 插件"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -23,7 +23,7 @@ import zipfile
23
23
  from pathlib import Path
24
24
 
25
25
  # ── 常量 ──────────────────────────────────────────────────
26
- CLOUD_API_BASE = "https://yun.loongclaw.com"
26
+ CLOUD_API_BASE = "https://api.loongclaw.net.cn"
27
27
  UPLOAD_ENDPOINT = "/v1/store/upload"
28
28
  ENTRYPOINT = "server.py" # 入口文件,始终明文
29
29
  CONFIG_FILE = ".publish.json"
@@ -337,7 +337,7 @@ def upload_to_cloud(
337
337
 
338
338
  token = config.get("token", "")
339
339
  if not token:
340
- token = os.environ.get("LOONGCLAW_STORE_KEY", "") or os.environ.get("LOONGCLAW_TOKEN", "")
340
+ token = os.environ.get("LOONGCLAW_STORE_KEY", "")
341
341
  if not token:
342
342
  return {"status": "error", "step": "upload",
343
343
  "error": "缺少 Store Key。设置环境变量 LOONGCLAW_STORE_KEY 或在 .publish.json 中配置 token",
@@ -640,7 +640,7 @@ def main() -> None:
640
640
  else saved.get("skipEncrypt", [])
641
641
  ),
642
642
  "upload": args.upload or (not args.no_upload and saved.get("upload", False)),
643
- "token": args.token or os.environ.get("LOONGCLAW_STORE_KEY", "") or os.environ.get("LOONGCLAW_TOKEN", ""),
643
+ "token": args.token or os.environ.get("LOONGCLAW_STORE_KEY", ""),
644
644
  }
645
645
  elif args.reconfigure or not load_config(project_dir):
646
646
  # 交互模式
@@ -248,11 +248,11 @@ def check_mcp_status(plugin_id: str = "", project_dir: str = "") -> str:
248
248
 
249
249
  if plugin_id:
250
250
  # 尝试查询 Cloud API(需要 token)
251
- token = os.environ.get("LOONGCLAW_STORE_KEY", "") or os.environ.get("LOONGCLAW_TOKEN", "")
251
+ token = os.environ.get("LOONGCLAW_STORE_KEY", "")
252
252
  if token:
253
253
  import urllib.request
254
254
  import urllib.error
255
- url = "https://yun.loongclaw.com/v1/store/mcp/registry.json"
255
+ url = "https://api.loongclaw.net.cn/v1/store/mcp/registry.json"
256
256
  req = urllib.request.Request(
257
257
  url, headers={"Authorization": f"Bearer {token}"},
258
258
  )