cicy-desktop 2.1.279 → 2.1.281

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cicy-desktop",
3
- "version": "2.1.279",
3
+ "version": "2.1.281",
4
4
  "description": "CiCy - AI-powered operating system browser",
5
5
  "main": "src/main.js",
6
6
  "bin": {
@@ -144,10 +144,10 @@
144
144
  "//optionalDependencies": "(2026-06 回调): mac/linux 改回 native cicy-code(:8008,colima 在 16G mac 上压垮内存)→ 重新内置 cicy-code-<plat> / cicy-mihomo-<plat>,localbin.fromBundle 零网络 seed(npm 仅作更新通道,带 npmmirror→npmjs 回退)。这些由 scripts/sync-runtime-deps.cjs 在 tag-push 时同步到最新版。npm 的 os/cpu 字段保证每个平台只装自己那份。Windows 仍走 docker(WSL :8009),它那份 cicy-code-windows 用不到但 bundle 着无害。",
145
145
  "optionalDependencies": {
146
146
  "electron": "41.0.3",
147
- "cicy-code-darwin-x64": "2.3.567",
148
- "cicy-code-darwin-arm64": "2.3.567",
149
- "cicy-code-linux-x64": "2.3.567",
150
- "cicy-code-linux-arm64": "2.3.567",
147
+ "cicy-code-darwin-x64": "2.3.568",
148
+ "cicy-code-darwin-arm64": "2.3.568",
149
+ "cicy-code-linux-x64": "2.3.568",
150
+ "cicy-code-linux-arm64": "2.3.568",
151
151
  "cicy-code-windows-x64": "2.3.193",
152
152
  "cicy-mihomo-darwin-x64": "1.10.4",
153
153
  "cicy-mihomo-darwin-arm64": "1.10.4",
@@ -0,0 +1,43 @@
1
+ @echo off
2
+ setlocal
3
+ rem ============================================================
4
+ rem CiCy Desktop - add a team by deeplink
5
+ rem
6
+ rem Usage:
7
+ rem add-team.bat -> uses the values below
8
+ rem add-team.bat <url> [title] [token]
9
+ rem
10
+ rem Works with the installed CiCy Desktop (registers cicy-desktop://).
11
+ rem If the app is not running it is launched; if it is running the
12
+ rem team is added to the running instance. No login is required:
13
+ rem the team is stored locally (teams.json) and appears in "我的团队".
14
+ rem ============================================================
15
+
16
+ rem ---- defaults (edit these before distributing) ----
17
+ set "TEAM_URL=http://127.0.0.1:8008"
18
+ set "TEAM_TITLE=My Team"
19
+ set "TEAM_TOKEN="
20
+
21
+ if not "%~1"=="" set "TEAM_URL=%~1"
22
+ if not "%~2"=="" set "TEAM_TITLE=%~2"
23
+ if not "%~3"=="" set "TEAM_TOKEN=%~3"
24
+
25
+ rem URL-encode the pieces with PowerShell (handles spaces, Chinese, & etc.)
26
+ for /f "usebackq delims=" %%E in (`powershell -NoProfile -Command "[uri]::EscapeDataString('%TEAM_URL%')"`) do set "ENC_URL=%%E"
27
+ for /f "usebackq delims=" %%E in (`powershell -NoProfile -Command "[uri]::EscapeDataString('%TEAM_TITLE%')"`) do set "ENC_TITLE=%%E"
28
+ set "ENC_TOKEN="
29
+ if not "%TEAM_TOKEN%"=="" for /f "usebackq delims=" %%E in (`powershell -NoProfile -Command "[uri]::EscapeDataString('%TEAM_TOKEN%')"`) do set "ENC_TOKEN=%%E"
30
+
31
+ set "LINK=cicy-desktop://addTeam?title=%ENC_TITLE%&url=%ENC_URL%"
32
+ if not "%ENC_TOKEN%"=="" set "LINK=%LINK%&token=%ENC_TOKEN%"
33
+
34
+ echo Adding team "%TEAM_TITLE%" (%TEAM_URL%) ...
35
+ start "" "%LINK%"
36
+ if errorlevel 1 (
37
+ echo Failed to open %LINK%
38
+ echo Is CiCy Desktop installed? ^(it registers the cicy-desktop:// protocol on first launch^)
39
+ pause
40
+ exit /b 1
41
+ )
42
+ echo Done. The team will show up in CiCy Desktop ^> 我的团队.
43
+ endlocal