@keywaysh/cli 0.1.8 → 0.1.9
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/cli.js +12 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -101,7 +101,7 @@ var INTERNAL_POSTHOG_HOST = "https://eu.i.posthog.com";
|
|
|
101
101
|
// package.json
|
|
102
102
|
var package_default = {
|
|
103
103
|
name: "@keywaysh/cli",
|
|
104
|
-
version: "0.1.
|
|
104
|
+
version: "0.1.9",
|
|
105
105
|
description: "One link to all your secrets",
|
|
106
106
|
type: "module",
|
|
107
107
|
bin: {
|
|
@@ -452,6 +452,9 @@ async function getSyncDiff(accessToken, repoFullName, options) {
|
|
|
452
452
|
keywayEnvironment: options.keywayEnvironment || "production",
|
|
453
453
|
providerEnvironment: options.providerEnvironment || "production"
|
|
454
454
|
});
|
|
455
|
+
if (options.serviceId) {
|
|
456
|
+
params.set("serviceId", options.serviceId);
|
|
457
|
+
}
|
|
455
458
|
const response = await fetchWithTimeout(
|
|
456
459
|
`${API_BASE_URL}/v1/integrations/vaults/${owner}/${repo}/sync/diff?${params}`,
|
|
457
460
|
{
|
|
@@ -477,6 +480,9 @@ async function getSyncPreview(accessToken, repoFullName, options) {
|
|
|
477
480
|
direction: options.direction || "push",
|
|
478
481
|
allowDelete: String(options.allowDelete || false)
|
|
479
482
|
});
|
|
483
|
+
if (options.serviceId) {
|
|
484
|
+
params.set("serviceId", options.serviceId);
|
|
485
|
+
}
|
|
480
486
|
const response = await fetchWithTimeout(
|
|
481
487
|
`${API_BASE_URL}/v1/integrations/vaults/${owner}/${repo}/sync/preview?${params}`,
|
|
482
488
|
{
|
|
@@ -506,6 +512,7 @@ async function executeSync(accessToken, repoFullName, options) {
|
|
|
506
512
|
body: JSON.stringify({
|
|
507
513
|
connectionId: options.connectionId,
|
|
508
514
|
projectId: options.projectId,
|
|
515
|
+
serviceId: options.serviceId,
|
|
509
516
|
keywayEnvironment: options.keywayEnvironment || "production",
|
|
510
517
|
providerEnvironment: options.providerEnvironment || "production",
|
|
511
518
|
direction: options.direction || "push",
|
|
@@ -2448,6 +2455,8 @@ Connection to ${providerDisplayName} failed.`));
|
|
|
2448
2455
|
const diff = await getSyncDiff(accessToken, repoFullName, {
|
|
2449
2456
|
connectionId: connection.id,
|
|
2450
2457
|
projectId: selectedProject.id,
|
|
2458
|
+
serviceId: selectedProject.serviceId,
|
|
2459
|
+
// Railway: service ID for service-specific variables
|
|
2451
2460
|
keywayEnvironment: effectiveKeywayEnv,
|
|
2452
2461
|
providerEnvironment: effectiveProviderEnv
|
|
2453
2462
|
});
|
|
@@ -2592,6 +2601,8 @@ async function executeSyncOperation(accessToken, repoFullName, connectionId, pro
|
|
|
2592
2601
|
const result = await executeSync(accessToken, repoFullName, {
|
|
2593
2602
|
connectionId,
|
|
2594
2603
|
projectId: project.id,
|
|
2604
|
+
serviceId: project.serviceId,
|
|
2605
|
+
// Railway: service ID for service-specific variables
|
|
2595
2606
|
keywayEnvironment: keywayEnv,
|
|
2596
2607
|
providerEnvironment: providerEnv,
|
|
2597
2608
|
direction,
|