@synkro-sh/cli 1.0.13 → 1.1.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/dist/bootstrap.js +15 -14
- package/dist/bootstrap.js.map +1 -1
- package/package.json +2 -1
package/dist/bootstrap.js
CHANGED
|
@@ -2045,7 +2045,7 @@ function writeConfigEnv(opts) {
|
|
|
2045
2045
|
`SYNKRO_GATEWAY_URL=${shellQuoteSingle(safeGateway)}`,
|
|
2046
2046
|
`SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
|
|
2047
2047
|
`SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
|
|
2048
|
-
`SYNKRO_VERSION=${shellQuoteSingle("1.0
|
|
2048
|
+
`SYNKRO_VERSION=${shellQuoteSingle("1.1.0")}`
|
|
2049
2049
|
];
|
|
2050
2050
|
if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);
|
|
2051
2051
|
if (safeOrgId) lines.push(`SYNKRO_ORG_ID=${shellQuoteSingle(safeOrgId)}`);
|
|
@@ -2113,8 +2113,8 @@ async function installCommand(opts = {}) {
|
|
|
2113
2113
|
}
|
|
2114
2114
|
if (!opts.force && isAuthenticated() && isAlreadyInstalled()) {
|
|
2115
2115
|
console.log("\u2713 Synkro is already installed and configured.");
|
|
2116
|
-
console.log(" Run `synkro update` to refresh hook scripts and judge prompts.");
|
|
2117
|
-
console.log(" Run `synkro install --force` to reinstall from scratch.");
|
|
2116
|
+
console.log(" Run `synkro-cli update` to refresh hook scripts and judge prompts.");
|
|
2117
|
+
console.log(" Run `synkro-cli install --force` to reinstall from scratch.");
|
|
2118
2118
|
return;
|
|
2119
2119
|
}
|
|
2120
2120
|
console.log("Synkro install starting...\n");
|
|
@@ -2214,7 +2214,7 @@ async function installCommand(opts = {}) {
|
|
|
2214
2214
|
console.log();
|
|
2215
2215
|
} catch (err) {
|
|
2216
2216
|
console.warn(` \u26A0 MCP registration failed: ${err.message}`);
|
|
2217
|
-
console.warn(" Hooks are still installed. Re-run `synkro install` to retry MCP setup.");
|
|
2217
|
+
console.warn(" Hooks are still installed. Re-run `synkro-cli install` to retry MCP setup.");
|
|
2218
2218
|
console.log();
|
|
2219
2219
|
}
|
|
2220
2220
|
}
|
|
@@ -2234,8 +2234,8 @@ async function installCommand(opts = {}) {
|
|
|
2234
2234
|
console.log("\u2713 Synkro installed.");
|
|
2235
2235
|
console.log();
|
|
2236
2236
|
console.log("Next steps:");
|
|
2237
|
-
console.log(" \u2022 synkro setup-github (enable PR scanning)");
|
|
2238
|
-
console.log(" \u2022 synkro status (check what is configured)");
|
|
2237
|
+
console.log(" \u2022 synkro-cli setup-github (enable PR scanning)");
|
|
2238
|
+
console.log(" \u2022 synkro-cli status (check what is configured)");
|
|
2239
2239
|
}
|
|
2240
2240
|
var SYNKRO_DIR, HOOKS_DIR, BIN_DIR, CONFIG_PATH, GRADER_DAEMON_PATH, GRADER_PRIMER_EDIT_PATH, GRADER_PRIMER_BASH_PATH;
|
|
2241
2241
|
var init_install = __esm({
|
|
@@ -2356,7 +2356,7 @@ function statusCommand() {
|
|
|
2356
2356
|
if (info?.org_id) console.log(` org_id: ${info.org_id}`);
|
|
2357
2357
|
if (info?.id) console.log(` user_id: ${info.id}`);
|
|
2358
2358
|
} else {
|
|
2359
|
-
console.log("Authentication: \u2717 not logged in (run: synkro login)");
|
|
2359
|
+
console.log("Authentication: \u2717 not logged in (run: synkro-cli login)");
|
|
2360
2360
|
}
|
|
2361
2361
|
console.log();
|
|
2362
2362
|
const config = readConfigEnv();
|
|
@@ -2407,7 +2407,7 @@ function statusCommand() {
|
|
|
2407
2407
|
console.log(` \u2713 registered in ${mcp.configPath}`);
|
|
2408
2408
|
console.log(` url: ${mcp.url}`);
|
|
2409
2409
|
} else {
|
|
2410
|
-
console.log(` \u2717 not registered (run: synkro install)`);
|
|
2410
|
+
console.log(` \u2717 not registered (run: synkro-cli install)`);
|
|
2411
2411
|
console.log(` expected at ${mcp.configPath} \u2192 mcpServers.synkro-guardrails`);
|
|
2412
2412
|
}
|
|
2413
2413
|
}
|
|
@@ -2460,7 +2460,7 @@ jobs:
|
|
|
2460
2460
|
echo "~/.npm-global/bin" >> $GITHUB_PATH
|
|
2461
2461
|
|
|
2462
2462
|
- name: Run Synkro PR scan
|
|
2463
|
-
run: synkro scan-pr
|
|
2463
|
+
run: synkro-cli scan-pr
|
|
2464
2464
|
env:
|
|
2465
2465
|
CLAUDE_CODE_OAUTH_TOKEN: \${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
|
|
2466
2466
|
SYNKRO_API_KEY: \${{ secrets.SYNKRO_API_KEY }}
|
|
@@ -2634,14 +2634,14 @@ async function prompt(rl, q, opts = {}) {
|
|
|
2634
2634
|
}
|
|
2635
2635
|
async function setupGithubCommand() {
|
|
2636
2636
|
if (!isAuthenticated()) {
|
|
2637
|
-
console.error("Not authenticated. Run `synkro login` first.");
|
|
2637
|
+
console.error("Not authenticated. Run `synkro-cli login` first.");
|
|
2638
2638
|
process.exit(1);
|
|
2639
2639
|
}
|
|
2640
2640
|
const config = readConfig();
|
|
2641
2641
|
const gatewayUrl = (config.SYNKRO_GATEWAY_URL || process.env.SYNKRO_GATEWAY_URL || "https://api.synkro.sh").replace(/\/$/, "");
|
|
2642
2642
|
const jwt2 = getAccessToken();
|
|
2643
2643
|
if (!jwt2) {
|
|
2644
|
-
console.error("Could not load access token from ~/.synkro/credentials.json. Run `synkro login`.");
|
|
2644
|
+
console.error("Could not load access token from ~/.synkro/credentials.json. Run `synkro-cli login`.");
|
|
2645
2645
|
process.exit(1);
|
|
2646
2646
|
}
|
|
2647
2647
|
console.log("Requesting CI API key from Synkro...");
|
|
@@ -2751,7 +2751,7 @@ Will push secrets to ${selected.length} repo(s):`);
|
|
|
2751
2751
|
} else {
|
|
2752
2752
|
console.log("Not in a git repo. To enable scanning, add this file to your repo:");
|
|
2753
2753
|
console.log(` Path: ${WORKFLOW_RELATIVE_PATH}`);
|
|
2754
|
-
console.log(` Content:
|
|
2754
|
+
console.log(` Content: run \`synkro-cli setup-github\` from inside a repo to write it automatically`);
|
|
2755
2755
|
}
|
|
2756
2756
|
console.log();
|
|
2757
2757
|
console.log("\u2713 PR scan setup complete.");
|
|
@@ -3277,9 +3277,10 @@ Commands:
|
|
|
3277
3277
|
help Show this message
|
|
3278
3278
|
|
|
3279
3279
|
Quick start:
|
|
3280
|
-
$ synkro install
|
|
3281
|
-
$ synkro setup-github
|
|
3280
|
+
$ synkro-cli install # one-time setup
|
|
3281
|
+
$ synkro-cli setup-github # enable PR scanning (optional)
|
|
3282
3282
|
$ claude # use Claude Code normally; Synkro judges in real time
|
|
3283
|
+
(\`synkro\` also works as an alias unless something else on your $PATH shadows it)
|
|
3283
3284
|
`);
|
|
3284
3285
|
}
|
|
3285
3286
|
async function main() {
|