@keysync/cli 0.1.127

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Merico
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # KeySync CLI
2
+
3
+ KeySync CLI 0.1.127 synchronizes supported AI application configuration on macOS, Windows, and Linux.
4
+
5
+ ## Requirements
6
+
7
+ - Node.js 24 or newer
8
+ - npm
9
+
10
+ ## Install
11
+
12
+ ```bash
13
+ npm install --global @keysync/cli
14
+ keysync --help
15
+ ```
16
+
17
+ ## Start
18
+
19
+ ```bash
20
+ keysync login --email you@example.com --password 'your-password' --vault-password 'your-vault-password'
21
+ keysync status
22
+ ```
23
+
24
+ Login starts a detached daemon for the current operating-system session. Persistent service installation through `keysync service install` is currently supported only on Linux systems with systemd user services.
25
+
26
+ ## DeepSeek Harness
27
+
28
+ The npm package retains the managed DSH commands:
29
+
30
+ ```bash
31
+ keysync dsh install
32
+ keysync dsh start
33
+ keysync dsh status
34
+ keysync dsh remote enable
35
+ keysync dsh stop --offline
36
+ keysync dsh uninstall
37
+ ```
38
+
39
+ ## Protocol bridge
40
+
41
+ This npm distribution does not include the KeySync protocol bridge runtime. Directly compatible Provider and App protocols continue to work. A binding that requires protocol conversion fails safely without writing an unusable local App configuration.
42
+
43
+ ## Update
44
+
45
+ ```bash
46
+ npm install --global @keysync/cli@latest
47
+ ```
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env node
2
+ import { dirname, join } from "node:path";
3
+ import { fileURLToPath, pathToFileURL } from "node:url";
4
+
5
+ const nodeMajor = Number.parseInt(process.versions.node.split(".")[0] ?? "0", 10);
6
+ if (!Number.isFinite(nodeMajor) || nodeMajor < 24) {
7
+ console.error(`KeySync CLI requires Node.js 24 or newer. Current version: ${process.versions.node}`);
8
+ process.exit(1);
9
+ }
10
+
11
+ const packageRoot = dirname(dirname(fileURLToPath(import.meta.url)));
12
+ process.env.KEYSYNC_DEFAULT_API_URL ||= "https://keysync.sublang.ai/keysync-api";
13
+ process.env.KEYSYNC_DEFAULT_UPDATE_URL ||= "https://keysync.sublang.ai/keysync-updates";
14
+ process.env.KEYSYNC_DSH_ASSET_DIR ||= join(packageRoot, "dsh-assets");
15
+ process.env.KEYSYNC_DSH_WINDOWS_ZIP_EXTRACTOR ||= "tar";
16
+ process.env.KEYSYNC_CLI_WRAPPER_PATH ||= process.argv[1] || fileURLToPath(import.meta.url);
17
+ process.env.KEYSYNC_INSTALL_CHANNEL ||= "npm";
18
+ process.env.KEYSYNC_NPM_PACKAGE_NAME ||= "@keysync/cli";
19
+ process.env.KEYSYNC_PROTOCOL_BRIDGE_DISABLED = "1";
20
+
21
+ await import(pathToFileURL(join(packageRoot, "dist", "keysync-cli.mjs")).href);