cicy-desktop 2.1.70 → 2.1.72
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/.cicy-code-ref +1 -1
- package/.github/workflows/linux-app-release.yml +3 -0
- package/.github/workflows/mac-app-release.yml +3 -0
- package/.github/workflows/npm-publish.yml +32 -0
- package/.github/workflows/windows-exe-release.yml +3 -0
- package/package.json +8 -9
- package/scripts/sync-runtime-deps.cjs +54 -0
- package/src/backends/homepage-react/assets/index-BpljolQs.js +365 -0
- package/src/backends/homepage-react/assets/{index-BniEbx_j.css → index-C9AZlTew.css} +1 -1
- package/src/backends/homepage-react/index.html +2 -2
- package/src/backends/local-teams.js +42 -4
- package/src/backends/sidecar-ipc.js +23 -1
- package/src/i18n/locales/en.json +9 -7
- package/src/i18n/locales/zh-CN.json +9 -7
- package/src/sidecar/cicy-code.js +49 -111
- package/src/sidecar/localbin.js +133 -0
- package/src/sidecar/native.js +3 -1
- package/workers/render/src/App.css +156 -10
- package/workers/render/src/App.jsx +254 -39
- package/.env.dev +0 -7
- package/src/backends/homepage-react/assets/index-B8gGhz8B.js +0 -365
- package/workers/render.bak.20260528-2338/DESIGN_v2.md +0 -254
- package/workers/render.bak.20260528-2338/index.html +0 -12
- package/workers/render.bak.20260528-2338/package-lock.json +0 -827
- package/workers/render.bak.20260528-2338/package.json +0 -19
- package/workers/render.bak.20260528-2338/public/_headers +0 -5
- package/workers/render.bak.20260528-2338/public/manifest.json +0 -6
- package/workers/render.bak.20260528-2338/src/App.css +0 -224
- package/workers/render.bak.20260528-2338/src/App.jsx +0 -1028
- package/workers/render.bak.20260528-2338/src/api.js +0 -285
- package/workers/render.bak.20260528-2338/src/cicycode-ops.js +0 -222
- package/workers/render.bak.20260528-2338/src/components/BackendCard.css +0 -299
- package/workers/render.bak.20260528-2338/src/components/BackendCard.jsx +0 -133
- package/workers/render.bak.20260528-2338/src/components/BackendModal.css +0 -161
- package/workers/render.bak.20260528-2338/src/components/BackendModal.jsx +0 -199
- package/workers/render.bak.20260528-2338/src/components/Button.css +0 -72
- package/workers/render.bak.20260528-2338/src/components/Button.jsx +0 -37
- package/workers/render.bak.20260528-2338/src/components/Card.css +0 -42
- package/workers/render.bak.20260528-2338/src/components/Card.jsx +0 -21
- package/workers/render.bak.20260528-2338/src/components/Icon.jsx +0 -30
- package/workers/render.bak.20260528-2338/src/components/Menu.css +0 -55
- package/workers/render.bak.20260528-2338/src/components/Menu.jsx +0 -91
- package/workers/render.bak.20260528-2338/src/components/SidecarBanner.css +0 -79
- package/workers/render.bak.20260528-2338/src/components/SidecarBanner.jsx +0 -84
- package/workers/render.bak.20260528-2338/src/components/StatusChip.css +0 -19
- package/workers/render.bak.20260528-2338/src/components/StatusChip.jsx +0 -31
- package/workers/render.bak.20260528-2338/src/components/Toast.css +0 -31
- package/workers/render.bak.20260528-2338/src/components/Toast.jsx +0 -23
- package/workers/render.bak.20260528-2338/src/components/WslSetupBanner.css +0 -464
- package/workers/render.bak.20260528-2338/src/components/WslSetupBanner.jsx +0 -716
- package/workers/render.bak.20260528-2338/src/dockerInstaller.js +0 -0
- package/workers/render.bak.20260528-2338/src/i18n/en.json +0 -116
- package/workers/render.bak.20260528-2338/src/i18n/fr.json +0 -116
- package/workers/render.bak.20260528-2338/src/i18n/index.js +0 -69
- package/workers/render.bak.20260528-2338/src/i18n/ja.json +0 -116
- package/workers/render.bak.20260528-2338/src/i18n/zh-CN.json +0 -121
- package/workers/render.bak.20260528-2338/src/main.js +0 -475
- package/workers/render.bak.20260528-2338/src/main.jsx +0 -18
- package/workers/render.bak.20260528-2338/src/style.css +0 -275
- package/workers/render.bak.20260528-2338/src/styles/base.css +0 -98
- package/workers/render.bak.20260528-2338/src/styles/tokens.css +0 -90
- package/workers/render.bak.20260528-2338/src/tos.js +0 -72
- package/workers/render.bak.20260528-2338/src/worker.js +0 -40
- package/workers/render.bak.20260528-2338/src/wslInstaller.js +0 -1563
- package/workers/render.bak.20260528-2338/vite.config.js +0 -36
- package/workers/render.bak.20260528-2338/wrangler.toml +0 -17
package/.cicy-code-ref
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
v2.
|
|
1
|
+
v2.2.5
|
|
@@ -53,6 +53,9 @@ jobs:
|
|
|
53
53
|
SKIP_TTYD_ASSET=1 SKIP_SKILLS_EMBED=1 bash build.sh all
|
|
54
54
|
ls -lh dist/
|
|
55
55
|
|
|
56
|
+
- name: Sync runtime deps to latest (cicy-code + cicy-mihomo; drop msys2)
|
|
57
|
+
run: node scripts/sync-runtime-deps.cjs
|
|
58
|
+
|
|
56
59
|
- name: Install project dependencies
|
|
57
60
|
run: npm install --no-audit
|
|
58
61
|
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
name: Publish to npm
|
|
2
|
+
|
|
3
|
+
# Tag push (vX.Y.Z) → sync optionalDependencies to the LATEST per-platform
|
|
4
|
+
# cicy-code + cicy-mihomo, then publish cicy-desktop to npm. This is what
|
|
5
|
+
# `npx cicy-desktop` / `npm i -g cicy-desktop` users get — the app-installer
|
|
6
|
+
# workflows only build dmg/exe/AppImage, they do NOT publish npm.
|
|
7
|
+
on:
|
|
8
|
+
push:
|
|
9
|
+
tags:
|
|
10
|
+
- 'v*'
|
|
11
|
+
workflow_dispatch: {}
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
publish:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
steps:
|
|
17
|
+
- name: Checkout
|
|
18
|
+
uses: actions/checkout@v4
|
|
19
|
+
|
|
20
|
+
- name: Setup Node.js
|
|
21
|
+
uses: actions/setup-node@v4
|
|
22
|
+
with:
|
|
23
|
+
node-version: '20'
|
|
24
|
+
registry-url: 'https://registry.npmjs.org'
|
|
25
|
+
|
|
26
|
+
- name: Sync runtime deps to latest (cicy-code + cicy-mihomo; drop msys2)
|
|
27
|
+
run: node scripts/sync-runtime-deps.cjs
|
|
28
|
+
|
|
29
|
+
- name: Publish cicy-desktop to npm
|
|
30
|
+
run: npm publish --access public
|
|
31
|
+
env:
|
|
32
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cicy-desktop",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.72",
|
|
4
4
|
"description": "CiCy - AI-powered operating system browser",
|
|
5
5
|
"main": "src/main.js",
|
|
6
6
|
"bin": {
|
|
@@ -133,18 +133,17 @@
|
|
|
133
133
|
},
|
|
134
134
|
"//optionalDependencies": "Runtime Bundle v1 (主人指令): platform binaries delivered by `npm i -g cicy-desktop` itself — npm installs only the current-platform subpackage (os/cpu pinned in each), so first start seeds the runtime store with ZERO network, ZERO npx. Windows packages are named *-windows-* (npm spam filter 403s new names containing win32). cicy-msys2 added once published.",
|
|
135
135
|
"optionalDependencies": {
|
|
136
|
-
"cicy-code-darwin-x64": "2.
|
|
137
|
-
"cicy-code-darwin-arm64": "2.
|
|
138
|
-
"cicy-code-linux-x64": "2.
|
|
139
|
-
"cicy-code-linux-arm64": "2.
|
|
140
|
-
"cicy-code-windows-x64": "2.
|
|
136
|
+
"cicy-code-darwin-x64": "2.2.5",
|
|
137
|
+
"cicy-code-darwin-arm64": "2.2.5",
|
|
138
|
+
"cicy-code-linux-x64": "2.2.5",
|
|
139
|
+
"cicy-code-linux-arm64": "2.2.5",
|
|
140
|
+
"cicy-code-windows-x64": "2.2.5",
|
|
141
141
|
"cicy-mihomo-darwin-x64": "1.10.4",
|
|
142
142
|
"cicy-mihomo-darwin-arm64": "1.10.4",
|
|
143
143
|
"cicy-mihomo-linux-x64": "1.10.4",
|
|
144
144
|
"cicy-mihomo-linux-arm64": "1.10.4",
|
|
145
145
|
"cicy-mihomo-windows-x64": "1.10.4",
|
|
146
|
-
"cicy-mihomo-windows-arm64": "1.10.4"
|
|
147
|
-
"cicy-msys2-windows-x64": "1.0.0"
|
|
146
|
+
"cicy-mihomo-windows-arm64": "1.10.4"
|
|
148
147
|
},
|
|
149
148
|
"devDependencies": {
|
|
150
149
|
"@babel/core": "^7.29.0",
|
|
@@ -155,4 +154,4 @@
|
|
|
155
154
|
"prettier": "^3.8.1",
|
|
156
155
|
"supertest": "^6.3.3"
|
|
157
156
|
}
|
|
158
|
-
}
|
|
157
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Sync optionalDependencies to the LATEST published per-platform cicy-code and
|
|
3
|
+
// cicy-mihomo subpackages, so every cicy-desktop build/publish bundles the
|
|
4
|
+
// newest binaries. Run in CI before install/build (and before `npm publish`).
|
|
5
|
+
//
|
|
6
|
+
// 主人指令 (2026-06-08): Windows no longer ships msys2/tmux — the win sidecar
|
|
7
|
+
// runs the single headless 团队助手 (--helper), so cicy-msys2-* is DROPPED here.
|
|
8
|
+
//
|
|
9
|
+
// Usage: node scripts/sync-runtime-deps.cjs (writes package.json in place)
|
|
10
|
+
|
|
11
|
+
const { execFileSync } = require("child_process");
|
|
12
|
+
const fs = require("fs");
|
|
13
|
+
const path = require("path");
|
|
14
|
+
|
|
15
|
+
const REGISTRY = process.env.NPM_REGISTRY || "https://registry.npmjs.org";
|
|
16
|
+
const PLATFORMS = ["darwin-x64", "darwin-arm64", "linux-x64", "linux-arm64", "windows-x64", "windows-arm64"];
|
|
17
|
+
const COMPONENTS = ["cicy-code", "cicy-mihomo"]; // NOT cicy-msys2 — win drops it
|
|
18
|
+
|
|
19
|
+
function latest(pkg) {
|
|
20
|
+
try {
|
|
21
|
+
return execFileSync("npm", ["view", pkg, "version", `--registry=${REGISTRY}`], { encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] }).trim() || null;
|
|
22
|
+
} catch {
|
|
23
|
+
return null; // not published for this platform (e.g. cicy-code has no windows-arm64)
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const pkgPath = path.join(__dirname, "..", "package.json");
|
|
28
|
+
const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf8"));
|
|
29
|
+
|
|
30
|
+
const resolved = {};
|
|
31
|
+
for (const comp of COMPONENTS) {
|
|
32
|
+
for (const plat of PLATFORMS) {
|
|
33
|
+
const name = `${comp}-${plat}`;
|
|
34
|
+
const v = latest(name);
|
|
35
|
+
if (v) resolved[name] = v;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
if (Object.keys(resolved).length === 0) {
|
|
39
|
+
console.error("[sync-runtime-deps] resolved nothing — registry unreachable? aborting (package.json untouched)");
|
|
40
|
+
process.exit(1);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Keep any non-runtime optionalDeps; replace cicy-code-*/cicy-mihomo-*; drop cicy-msys2-*.
|
|
44
|
+
const kept = Object.fromEntries(
|
|
45
|
+
Object.entries(pkg.optionalDependencies || {}).filter(
|
|
46
|
+
([k]) => !k.startsWith("cicy-code-") && !k.startsWith("cicy-mihomo-") && !k.startsWith("cicy-msys2")
|
|
47
|
+
)
|
|
48
|
+
);
|
|
49
|
+
pkg.optionalDependencies = { ...kept, ...resolved };
|
|
50
|
+
|
|
51
|
+
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + "\n");
|
|
52
|
+
console.log("[sync-runtime-deps] optionalDependencies ->");
|
|
53
|
+
for (const [k, v] of Object.entries(resolved)) console.log(` ${k}@${v}`);
|
|
54
|
+
console.log("[sync-runtime-deps] dropped cicy-msys2-* (Windows no longer bundles msys2/tmux)");
|