mirror of
https://github.com/makecindy/cindy.git
synced 2026-12-02 01:19:46 +08:00
Cindy 是心动网络 (X.D. Network Inc.) 的跨端 AI Agent 客户端。 本次提交包含 Desktop(Electron)、Mobile(Expo)及全部共享 packages 的完整源码,以 Apache-2.0 协议开源。 This is the first public release of Cindy, X.D. Network's cross-platform AI agent client: the Electron desktop app, the Expo mobile app, and all shared workspace packages, licensed under Apache-2.0. - 许可与合规:根 LICENSE(Apache-2.0)+ NOTICE;第三方组件归属声明与 SPDX SBOM 收口在 docs/legal/notices/,由 pnpm licenses:generate 生成。 - 社区文件:README / CONTRIBUTING / CODE_OF_CONDUCT / SECURITY / SUPPORT 中英双语;issue / PR 模板与 CI workflow 在 .github/。 - 协议层以公开 submodule 引入:github.com/makecindy/cindy-protocol。 - 提交前已通过仓库门禁:全量 pnpm test:unit 与涉及 package 的 typecheck。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
16 lines
625 B
JavaScript
16 lines
625 B
JavaScript
/**
|
|
* 发布/下载工具的显式环境变量入口;不再回退到仓内私有 JSON。
|
|
* 区域化(国内 cn / 海外 global):cn 读 XDT_CDN_BASE_URL,global 读
|
|
* XDT_GLOBAL_CDN_BASE_URL,与 scripts/shared/oss.mjs 的发布目标同一套命名。
|
|
*/
|
|
export function resolveReleaseCdnBaseUrl(releaseRegion = 'cn') {
|
|
const envName =
|
|
{ global: 'XDT_GLOBAL_CDN_BASE_URL', dev: 'XDT_DEVCH_CDN_BASE_URL' }[releaseRegion] ??
|
|
'XDT_CDN_BASE_URL';
|
|
const raw = process.env[envName]?.trim();
|
|
if (!raw) {
|
|
throw new Error(`缺少发布 CDN 配置: 请设置 ${envName}`);
|
|
}
|
|
return raw.replace(/\/+$/, '');
|
|
}
|