linkitty-desktop 0.0.0-stage → 0.17.0
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/README.en.md +18 -0
- package/README.md +17 -2
- package/THIRD_PARTY_NOTICES.md +5 -0
- package/artifacts.json +7 -0
- package/bin/linkitty-desktop.cjs +22 -0
- package/lib/install.cjs +6 -0
- package/package.json +25 -4
- package/payload/darwin-arm64.tgz +4 -0
package/README.en.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Linkitty Desktop
|
|
2
|
+
|
|
3
|
+
English · [简体中文](README.md)
|
|
4
|
+
|
|
5
|
+
The Linkitty desktop manager shares one background connection service with the `linkitty` CLI. Install the matching CLI and desktop tarballs from the [official download page](https://linkitty.spark-data.cn/?lang=en#downloads), then open the application:
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
linkitty-desktop
|
|
9
|
+
linkitty-desktop --lang en
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
The interface supports Chinese, English, Japanese and Russian. `--lang zh|en|ja|ru` saves a preference shared with the CLI; an already running application reads it on its next launch. Account region is configured separately.
|
|
13
|
+
|
|
14
|
+
On macOS, installation places a managed link under `~/Applications/Linkitty.app`. Existing applications that are not managed by Linkitty are not overwritten. Closing the desktop window leaves the background connection running; sleep, loss of network or stopping the background service makes the computer unavailable.
|
|
15
|
+
|
|
16
|
+
Codex session sharing currently supports macOS. Before first connection, finish your task and exit independently running Codex; open it normally after connection succeeds. Your own model sign-in and existing agent permissions remain in effect.
|
|
17
|
+
|
|
18
|
+
Published native artifacts are verified on macOS Apple Silicon. Linux and Windows desktop distribution requires builds and verification on those systems. A missing target artifact causes installation to fail explicitly.
|
package/README.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Linkitty Desktop
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[English](README.en.md) · 简体中文
|
|
4
|
+
|
|
5
|
+
从[官网下载页](https://linkitty.spark-data.cn/#downloads)取得同版 CLI 和桌面 tarball,使用页面给出的配套安装命令;npm 公共仓库目前暂缓发布。
|
|
6
|
+
|
|
7
|
+
linkitty-desktop
|
|
8
|
+
linkitty-desktop --lang zh
|
|
9
|
+
|
|
10
|
+
桌面具有服务、插件市场、分享审批、账号与设备管理,并提供本机应用/网站接入。与 Linkitty CLI 共用账号和单个后台连接进程。退出窗口后连接继续;管理后台使用 linkitty service。
|
|
11
|
+
|
|
12
|
+
macOS 首次接入 Codex 时,请先完成任务并退出正在独立运行的 Codex,再点击“接入”;成功后正常打开 Codex。桌面自带与 CLI 同版的共享服务组件,无需先安装 CLI,不会为现有会话另起执行器。
|
|
13
|
+
|
|
14
|
+
安装包仅提供已构建的平台制品;公开发布、系统签名和各平台实机结果以发布记录为准。
|
|
15
|
+
|
|
16
|
+
界面支持中文、英文、日文、俄文。`--lang zh|en|ja|ru` 保存与 CLI 共用的语言偏好,已运行的桌面程序在下次启动时读取。语言与账号地域独立。
|
|
17
|
+
|
|
18
|
+
macOS 安装器在 `~/Applications/Linkitty.app` 创建受管链接,不覆盖其他来源的既有程序。当前原生制品已验证 macOS Apple Silicon;Linux、Windows 桌面分发需在对应系统构建与验收。缺少目标制品时安装明确失败。
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# 第三方软件 / Third-party software
|
|
2
|
+
|
|
3
|
+
原生组件使用 Rust/iroh、Flutter 及各自依赖,许可证不因 Linkitty 包名改变。制品内 licenses 目录保留对应通知。Linkitty 自有代码未另行授予开源许可。
|
|
4
|
+
|
|
5
|
+
Native components use Rust/iroh, Flutter and their dependencies. Their licenses are unchanged by the Linkitty package name; corresponding notices are included in the payload licenses directory. No open-source license is granted for Linkitty first-party code at this stage.
|
package/artifacts.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
const {t,setLanguage}=require("linkitty/lib/i18n.cjs");
|
|
4
|
+
const fs=require('node:fs');
|
|
5
|
+
const path=require('node:path');
|
|
6
|
+
const {spawn}=require('node:child_process');
|
|
7
|
+
const {home,install}=require('linkitty');
|
|
8
|
+
try{
|
|
9
|
+
const languageIndex=process.argv.indexOf('--lang');
|
|
10
|
+
if(languageIndex>=0)setLanguage(process.argv[languageIndex+1]);
|
|
11
|
+
if(process.argv.includes('--version')){console.log(require('../package.json').version);process.exit(0);}
|
|
12
|
+
if(process.argv.includes('--help')){console.log(t('linkitty-desktop:打开桌面客户端;连接管理与 linkitty CLI 共用。'));process.exit(0);}
|
|
13
|
+
const file=path.join(home(),'config','desktop.json');
|
|
14
|
+
if(!fs.existsSync(file))install(path.resolve(__dirname,'..'),'linkitty-desktop');
|
|
15
|
+
const {executable}=JSON.parse(fs.readFileSync(file,'utf8'));
|
|
16
|
+
if(!path.isAbsolute(executable)||!fs.existsSync(executable))throw new Error(t('桌面程序缺失,请重新安装。'));
|
|
17
|
+
const child=process.platform==='darwin'
|
|
18
|
+
?spawn('/usr/bin/open',['-a',executable],{stdio:'ignore',detached:true})
|
|
19
|
+
:spawn(executable,[],{stdio:'ignore',detached:true});
|
|
20
|
+
child.on('error',()=>{console.error(t('桌面启动失败。'));process.exitCode=1;});
|
|
21
|
+
child.unref();
|
|
22
|
+
}catch(error){console.error(error.message);process.exitCode=1;}
|
package/lib/install.cjs
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const {t}=require("linkitty/lib/i18n.cjs");
|
|
3
|
+
try{
|
|
4
|
+
require('linkitty').install(require('node:path').resolve(__dirname,'..'),'linkitty-desktop');
|
|
5
|
+
console.log(t('Linkitty Desktop 已安装。运行 linkitty-desktop 打开。'));
|
|
6
|
+
}catch(error){console.error(error.message);process.exitCode=1;}
|
package/package.json
CHANGED
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "linkitty-desktop",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.17.0",
|
|
4
|
+
"description": "Linkitty 桌面管理客户端与本机服务接入",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=22"
|
|
8
|
+
},
|
|
9
|
+
"bin": {
|
|
10
|
+
"linkitty-desktop": "bin/linkitty-desktop.cjs"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"bin",
|
|
14
|
+
"lib",
|
|
15
|
+
"artifacts.json",
|
|
16
|
+
"payload",
|
|
17
|
+
"README.md",
|
|
18
|
+
"THIRD_PARTY_NOTICES.md",
|
|
19
|
+
"README.en.md"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"postinstall": "node lib/install.cjs"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"linkitty": "0.17.0"
|
|
26
|
+
}
|
|
27
|
+
}
|