farseer-cli 1.0.9 → 1.0.10

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.
Files changed (81) hide show
  1. package/dist/commands/app.js +344 -316
  2. package/dist/commands/apps.js +83 -103
  3. package/dist/commands/checkout.js +156 -134
  4. package/dist/commands/config.js +126 -124
  5. package/dist/commands/diff.js +194 -169
  6. package/dist/commands/dimensions.js +122 -137
  7. package/dist/commands/files.js +77 -88
  8. package/dist/commands/install.js +77 -74
  9. package/dist/commands/list.js +74 -89
  10. package/dist/commands/login.js +101 -126
  11. package/dist/commands/logout.js +42 -57
  12. package/dist/commands/mcp-server.js +24 -39
  13. package/dist/commands/model.js +176 -184
  14. package/dist/commands/pull.js +276 -248
  15. package/dist/commands/push.js +222 -200
  16. package/dist/commands/run.js +322 -274
  17. package/dist/commands/status.js +170 -147
  18. package/dist/commands/variables.js +192 -168
  19. package/dist/commands/whoami.js +45 -61
  20. package/dist/index.js +115 -117
  21. package/dist/mcp/index.js +17 -33
  22. package/dist/mcp/prompts/workflows.js +146 -191
  23. package/dist/mcp/resources/documentation.js +149 -158
  24. package/dist/mcp/server.js +34 -50
  25. package/dist/mcp/tools/appTools.js +278 -307
  26. package/dist/mcp/tools/authTools.js +123 -130
  27. package/dist/mcp/tools/dataTools.js +271 -275
  28. package/dist/mcp/tools/modelTools.js +233 -265
  29. package/dist/mcp/tools/runTools.js +205 -199
  30. package/dist/mcp/tools/syncTools.js +315 -341
  31. package/dist/mcp/utils/helpers.js +124 -117
  32. package/dist/services/appSyncService.js +438 -379
  33. package/dist/services/configService.js +144 -154
  34. package/dist/services/farseerApi.js +401 -401
  35. package/dist/services/farseerFactory.js +274 -208
  36. package/dist/services/farseerService.js +488 -455
  37. package/dist/services/syncService.js +732 -657
  38. package/dist/utils/constants.js +20 -45
  39. package/dist/utils/helpers.js +366 -333
  40. package/dist/utils/logger.js +43 -74
  41. package/package.json +8 -1
  42. package/dist/commands/app.js.map +0 -7
  43. package/dist/commands/apps.js.map +0 -7
  44. package/dist/commands/checkout.js.map +0 -7
  45. package/dist/commands/config.js.map +0 -7
  46. package/dist/commands/diff.js.map +0 -7
  47. package/dist/commands/dimensions.js.map +0 -7
  48. package/dist/commands/files.js.map +0 -7
  49. package/dist/commands/install.js.map +0 -7
  50. package/dist/commands/list.js.map +0 -7
  51. package/dist/commands/login.js.map +0 -7
  52. package/dist/commands/logout.js.map +0 -7
  53. package/dist/commands/mcp-server.js.map +0 -7
  54. package/dist/commands/model.js.map +0 -7
  55. package/dist/commands/pull.js.map +0 -7
  56. package/dist/commands/push.js.map +0 -7
  57. package/dist/commands/run.js.map +0 -7
  58. package/dist/commands/status.js.map +0 -7
  59. package/dist/commands/variables.js.map +0 -7
  60. package/dist/commands/whoami.js.map +0 -7
  61. package/dist/index.js.map +0 -7
  62. package/dist/mcp/index.js.map +0 -7
  63. package/dist/mcp/prompts/workflows.js.map +0 -7
  64. package/dist/mcp/resources/documentation.js.map +0 -7
  65. package/dist/mcp/server.js.map +0 -7
  66. package/dist/mcp/tools/appTools.js.map +0 -7
  67. package/dist/mcp/tools/authTools.js.map +0 -7
  68. package/dist/mcp/tools/dataTools.js.map +0 -7
  69. package/dist/mcp/tools/modelTools.js.map +0 -7
  70. package/dist/mcp/tools/runTools.js.map +0 -7
  71. package/dist/mcp/tools/syncTools.js.map +0 -7
  72. package/dist/mcp/utils/helpers.js.map +0 -7
  73. package/dist/services/appSyncService.js.map +0 -7
  74. package/dist/services/configService.js.map +0 -7
  75. package/dist/services/farseerApi.js.map +0 -7
  76. package/dist/services/farseerFactory.js.map +0 -7
  77. package/dist/services/farseerService.js.map +0 -7
  78. package/dist/services/syncService.js.map +0 -7
  79. package/dist/utils/constants.js.map +0 -7
  80. package/dist/utils/helpers.js.map +0 -7
  81. package/dist/utils/logger.js.map +0 -7
@@ -1,213 +1,235 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
- var push_exports = {};
29
- __export(push_exports, {
30
- registerPushCommand: () => registerPushCommand
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
31
17
  });
32
- module.exports = __toCommonJS(push_exports);
33
- var import_chalk = __toESM(require("chalk"));
34
- var import_inquirer = __toESM(require("inquirer"));
35
- var import_logger = require("../utils/logger");
36
- var import_farseerFactory = require("../services/farseerFactory");
37
- var import_syncService = require("../services/syncService");
38
- var import_appSyncService = require("../services/appSyncService");
39
- var import_helpers = require("../utils/helpers");
40
- var fs = __toESM(require("fs"));
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __importDefault = (this && this.__importDefault) || function (mod) {
36
+ return (mod && mod.__esModule) ? mod : { "default": mod };
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.registerPushCommand = registerPushCommand;
40
+ const chalk_1 = __importDefault(require("chalk"));
41
+ const inquirer_1 = __importDefault(require("inquirer"));
42
+ const logger_1 = require("../utils/logger");
43
+ const farseerFactory_1 = require("../services/farseerFactory");
44
+ const syncService_1 = require("../services/syncService");
45
+ const appSyncService_1 = require("../services/appSyncService");
46
+ const helpers_1 = require("../utils/helpers");
47
+ const fs = __importStar(require("fs"));
41
48
  function registerPushCommand(program) {
42
- program.command("push [org] [tenant]").description("Push local files to Farseer instance\n\nUsage: push <org> <tenant> OR push <tenant> (if org is known)").option("--force", "Force push even if remote has changes").option("-y, --yes", "Skip confirmation prompt (auto-confirm)").action(async (arg1, arg2, options) => {
43
- const { organisation, tenant } = (0, import_helpers.resolveTenantWithOrgMapping)(arg1, arg2);
44
- const clientResult = await (0, import_farseerFactory.getFarseerClientWithFallback)(organisation, tenant);
45
- if (!clientResult) {
46
- (0, import_farseerFactory.showLoginPrompt)(tenant);
47
- process.exit(1);
48
- }
49
- const filesDir = (0, import_helpers.getTenantFilesDir)(tenant);
50
- if (!fs.existsSync(filesDir)) {
51
- import_logger.logger.error(`Local folder not found: farseer-apps/${tenant}/files/`);
52
- import_logger.logger.dim('Run "farseer pull <tenant>" first to initialize the folder.');
53
- process.exit(1);
54
- }
55
- const syncService = new import_syncService.SyncService(tenant, clientResult.client);
56
- if (!options.force) {
57
- import_logger.logger.info("Checking for remote changes...");
58
- const hasRemoteChanges = await syncService.checkRemoteChanges();
59
- if (hasRemoteChanges) {
60
- import_logger.logger.error("Remote has changes that are not synced locally.");
61
- import_logger.logger.dim(`Run 'farseer pull ${tenant}' first, then try pushing again.`);
62
- import_logger.logger.dim("Or use --force to push anyway (will overwrite remote changes).");
63
- process.exit(1);
64
- }
65
- import_logger.logger.dim("Remote is in sync.");
66
- }
67
- const status = await syncService.getStatusFast();
68
- const filesToPush = [
69
- ...status.modifiedLocally,
70
- ...status.onlyLocal
71
- ];
72
- const filesToDelete = status.modifiedRemotely.filter(
73
- (f) => !fs.existsSync(`${filesDir}/${f}`)
74
- );
75
- let appStatus = { newLocal: [], modified: [], newRemote: [], synced: [] };
76
- const appSyncService = new import_appSyncService.AppSyncService(tenant, clientResult.client);
77
- appStatus = await appSyncService.getStatus();
78
- const hasFileChanges = filesToPush.length > 0 || filesToDelete.length > 0;
79
- const hasAppChanges = appStatus.newLocal.length > 0 || appStatus.modified.length > 0;
80
- if (!hasFileChanges && !hasAppChanges) {
81
- import_logger.logger.success("Nothing to push. Everything is in sync.");
82
- return;
83
- }
84
- console.log();
85
- import_logger.logger.header("Changes to push:");
86
- if (filesToPush.length > 0) {
87
- for (const file of filesToPush) {
88
- const isNew = status.onlyLocal.includes(file);
89
- if (isNew) {
90
- console.log(import_chalk.default.green(` + ${file}`));
91
- } else {
92
- console.log(import_chalk.default.yellow(` M ${file}`));
49
+ program
50
+ .command('push [org] [tenant]')
51
+ .description('Push local files to Farseer instance\n\nUsage: push <org> <tenant> OR push <tenant> (if org is known)')
52
+ .option('--force', 'Force push even if remote has changes')
53
+ .option('-y, --yes', 'Skip confirmation prompt (auto-confirm)')
54
+ .action(async (arg1, arg2, options) => {
55
+ const { organisation, tenant } = (0, helpers_1.resolveTenantWithOrgMapping)(arg1, arg2);
56
+ const clientResult = await (0, farseerFactory_1.getFarseerClientWithFallback)(organisation, tenant);
57
+ if (!clientResult) {
58
+ (0, farseerFactory_1.showLoginPrompt)(tenant);
59
+ process.exit(1);
93
60
  }
94
- }
95
- }
96
- if (filesToDelete.length > 0) {
97
- for (const file of filesToDelete) {
98
- console.log(import_chalk.default.red(` - ${file}`));
99
- }
100
- }
101
- if (appStatus.newLocal.length > 0) {
102
- console.log(import_chalk.default.green("New apps:"));
103
- for (const app of appStatus.newLocal) {
104
- console.log(import_chalk.default.green(` + ${app}`));
105
- }
106
- }
107
- if (appStatus.modified.length > 0) {
108
- console.log(import_chalk.default.yellow("Modified apps:"));
109
- for (const app of appStatus.modified) {
110
- console.log(import_chalk.default.yellow(` ~ ${app}`));
111
- }
112
- }
113
- console.log();
114
- const totalChanges = filesToPush.length + filesToDelete.length + appStatus.newLocal.length + appStatus.modified.length;
115
- if (!options.yes) {
116
- const confirm = await import_inquirer.default.prompt([
117
- {
118
- type: "confirm",
119
- name: "proceed",
120
- message: `Push ${totalChanges} change(s) to ${tenant}?`,
121
- default: true
61
+ const filesDir = (0, helpers_1.getTenantFilesDir)(tenant);
62
+ if (!fs.existsSync(filesDir)) {
63
+ logger_1.logger.error(`Local folder not found: farseer-apps/${tenant}/files/`);
64
+ logger_1.logger.dim('Run "farseer pull <tenant>" first to initialize the folder.');
65
+ process.exit(1);
66
+ }
67
+ const syncService = new syncService_1.SyncService(tenant, clientResult.client);
68
+ // Step 1: Check if remote has unpulled changes
69
+ if (!options.force) {
70
+ logger_1.logger.info('Checking for remote changes...');
71
+ const hasRemoteChanges = await syncService.checkRemoteChanges();
72
+ if (hasRemoteChanges) {
73
+ logger_1.logger.error('Remote has changes that are not synced locally.');
74
+ logger_1.logger.dim(`Run 'farseer pull ${tenant}' first, then try pushing again.`);
75
+ logger_1.logger.dim('Or use --force to push anyway (will overwrite remote changes).');
76
+ process.exit(1);
77
+ }
78
+ logger_1.logger.dim('Remote is in sync.');
79
+ }
80
+ // Step 2: Show what will be pushed (using fast status check that doesn't download remote content)
81
+ const status = await syncService.getStatusFast();
82
+ const filesToPush = [...status.modifiedLocally, ...status.onlyLocal];
83
+ const filesToDelete = status.modifiedRemotely.filter((f) => !fs.existsSync(`${filesDir}/${f}`));
84
+ // Check app changes too
85
+ let appStatus = {
86
+ newLocal: [],
87
+ modified: [],
88
+ newRemote: [],
89
+ synced: [],
90
+ };
91
+ const appSyncService = new appSyncService_1.AppSyncService(tenant, clientResult.client);
92
+ appStatus = await appSyncService.getStatus();
93
+ const hasFileChanges = filesToPush.length > 0 || filesToDelete.length > 0;
94
+ const hasAppChanges = appStatus.newLocal.length > 0 || appStatus.modified.length > 0;
95
+ if (!hasFileChanges && !hasAppChanges) {
96
+ logger_1.logger.success('Nothing to push. Everything is in sync.');
97
+ return;
122
98
  }
123
- ]);
124
- if (!confirm.proceed) {
125
- import_logger.logger.info("Push cancelled.");
126
- return;
127
- }
128
- }
129
- await (0, import_farseerFactory.ensureFreshToken)(clientResult.client);
130
- try {
131
- let result = { uploaded: [], updated: [], deleted: [], unchanged: [] };
132
- if (hasFileChanges) {
133
- import_logger.logger.info(`Pushing files to ${tenant}...`);
134
- result = await syncService.push({ force: options.force });
135
99
  console.log();
136
- if (result.conflicts && result.conflicts.length > 0) {
137
- console.log(import_chalk.default.red.bold(`${result.conflicts.length} conflict(s) detected:`));
138
- console.log();
139
- for (const conflict of result.conflicts) {
140
- console.log(import_chalk.default.red(` ! ${conflict.filePath}`));
141
- console.log(import_chalk.default.dim(` ${conflict.description}`));
142
- }
143
- console.log();
144
- import_logger.logger.dim(`Resolve conflicts by pulling first: farseer pull ${tenant}`);
145
- import_logger.logger.dim("Or use --force to push anyway (may overwrite remote changes).");
146
- console.log();
100
+ logger_1.logger.header('Changes to push:');
101
+ if (filesToPush.length > 0) {
102
+ for (const file of filesToPush) {
103
+ const isNew = status.onlyLocal.includes(file);
104
+ if (isNew) {
105
+ console.log(chalk_1.default.green(` + ${file}`));
106
+ }
107
+ else {
108
+ console.log(chalk_1.default.yellow(` M ${file}`));
109
+ }
110
+ }
147
111
  }
148
- if (result.uploaded.length > 0) {
149
- console.log(import_chalk.default.green("Uploaded files (new):"));
150
- for (const file of result.uploaded) {
151
- console.log(import_chalk.default.green(` + ${file}`));
152
- }
153
- console.log();
112
+ if (filesToDelete.length > 0) {
113
+ for (const file of filesToDelete) {
114
+ console.log(chalk_1.default.red(` - ${file}`));
115
+ }
154
116
  }
155
- if (result.updated.length > 0) {
156
- console.log(import_chalk.default.yellow("Updated files:"));
157
- for (const file of result.updated) {
158
- console.log(import_chalk.default.yellow(` M ${file}`));
159
- }
160
- console.log();
117
+ // Show app changes
118
+ if (appStatus.newLocal.length > 0) {
119
+ console.log(chalk_1.default.green('New apps:'));
120
+ for (const app of appStatus.newLocal) {
121
+ console.log(chalk_1.default.green(` + ${app}`));
122
+ }
161
123
  }
162
- if (result.deleted.length > 0) {
163
- console.log(import_chalk.default.red("Deleted files:"));
164
- for (const file of result.deleted) {
165
- console.log(import_chalk.default.red(` - ${file}`));
166
- }
167
- console.log();
124
+ if (appStatus.modified.length > 0) {
125
+ console.log(chalk_1.default.yellow('Modified apps:'));
126
+ for (const app of appStatus.modified) {
127
+ console.log(chalk_1.default.yellow(` ~ ${app}`));
128
+ }
168
129
  }
169
- }
170
- let appResult = { created: [], updated: [], deleted: [], unchanged: [] };
171
- if (hasAppChanges) {
172
- import_logger.logger.info(`Pushing apps to ${tenant}...`);
173
- appResult = await appSyncService.push();
174
- if (appResult.created.length > 0) {
175
- console.log(import_chalk.default.green("Created apps:"));
176
- for (const app of appResult.created) {
177
- console.log(import_chalk.default.green(` + ${app}`));
178
- }
179
- console.log();
130
+ console.log();
131
+ const totalChanges = filesToPush.length + filesToDelete.length + appStatus.newLocal.length + appStatus.modified.length;
132
+ // Step 3: Confirm push (skip if --yes flag is set)
133
+ if (!options.yes) {
134
+ const confirm = await inquirer_1.default.prompt([
135
+ {
136
+ type: 'confirm',
137
+ name: 'proceed',
138
+ message: `Push ${totalChanges} change(s) to ${tenant}?`,
139
+ default: true,
140
+ },
141
+ ]);
142
+ if (!confirm.proceed) {
143
+ logger_1.logger.info('Push cancelled.');
144
+ return;
145
+ }
180
146
  }
181
- if (appResult.updated.length > 0) {
182
- console.log(import_chalk.default.yellow("Updated apps:"));
183
- for (const app of appResult.updated) {
184
- console.log(import_chalk.default.yellow(` ~ ${app}`));
185
- }
186
- console.log();
147
+ // Ensure token is fresh before push operations (may have expired during user input)
148
+ await (0, farseerFactory_1.ensureFreshToken)(clientResult.client);
149
+ try {
150
+ // Step 4: Push files only if there are file changes
151
+ let result = { uploaded: [], updated: [], deleted: [], unchanged: [] };
152
+ if (hasFileChanges) {
153
+ logger_1.logger.info(`Pushing files to ${tenant}...`);
154
+ result = await syncService.push({ force: options.force });
155
+ console.log();
156
+ if (result.conflicts && result.conflicts.length > 0) {
157
+ console.log(chalk_1.default.red.bold(`${result.conflicts.length} conflict(s) detected:`));
158
+ console.log();
159
+ for (const conflict of result.conflicts) {
160
+ console.log(chalk_1.default.red(` ! ${conflict.filePath}`));
161
+ console.log(chalk_1.default.dim(` ${conflict.description}`));
162
+ }
163
+ console.log();
164
+ logger_1.logger.dim(`Resolve conflicts by pulling first: farseer pull ${tenant}`);
165
+ logger_1.logger.dim('Or use --force to push anyway (may overwrite remote changes).');
166
+ console.log();
167
+ }
168
+ if (result.uploaded.length > 0) {
169
+ console.log(chalk_1.default.green('Uploaded files (new):'));
170
+ for (const file of result.uploaded) {
171
+ console.log(chalk_1.default.green(` + ${file}`));
172
+ }
173
+ console.log();
174
+ }
175
+ if (result.updated.length > 0) {
176
+ console.log(chalk_1.default.yellow('Updated files:'));
177
+ for (const file of result.updated) {
178
+ console.log(chalk_1.default.yellow(` M ${file}`));
179
+ }
180
+ console.log();
181
+ }
182
+ if (result.deleted.length > 0) {
183
+ console.log(chalk_1.default.red('Deleted files:'));
184
+ for (const file of result.deleted) {
185
+ console.log(chalk_1.default.red(` - ${file}`));
186
+ }
187
+ console.log();
188
+ }
189
+ }
190
+ // Step 5: Push apps only if there are app changes
191
+ let appResult = {
192
+ created: [],
193
+ updated: [],
194
+ deleted: [],
195
+ unchanged: [],
196
+ };
197
+ if (hasAppChanges) {
198
+ logger_1.logger.info(`Pushing apps to ${tenant}...`);
199
+ appResult = await appSyncService.push();
200
+ if (appResult.created.length > 0) {
201
+ console.log(chalk_1.default.green('Created apps:'));
202
+ for (const app of appResult.created) {
203
+ console.log(chalk_1.default.green(` + ${app}`));
204
+ }
205
+ console.log();
206
+ }
207
+ if (appResult.updated.length > 0) {
208
+ console.log(chalk_1.default.yellow('Updated apps:'));
209
+ for (const app of appResult.updated) {
210
+ console.log(chalk_1.default.yellow(` ~ ${app}`));
211
+ }
212
+ console.log();
213
+ }
214
+ if (appResult.deleted.length > 0) {
215
+ console.log(chalk_1.default.red('Deleted apps:'));
216
+ for (const app of appResult.deleted) {
217
+ console.log(chalk_1.default.red(` - ${app}`));
218
+ }
219
+ console.log();
220
+ }
221
+ }
222
+ console.log();
223
+ logger_1.logger.success('Push complete!');
224
+ logger_1.logger.dim(`Files: +${result.uploaded.length} ~${result.updated.length} -${result.deleted.length}`);
225
+ logger_1.logger.dim(`Apps: +${appResult.created.length} ~${appResult.updated.length} -${appResult.deleted.length}`);
187
226
  }
188
- if (appResult.deleted.length > 0) {
189
- console.log(import_chalk.default.red("Deleted apps:"));
190
- for (const app of appResult.deleted) {
191
- console.log(import_chalk.default.red(` - ${app}`));
192
- }
193
- console.log();
227
+ catch (error) {
228
+ logger_1.logger.error('Push failed.');
229
+ if (error instanceof Error) {
230
+ logger_1.logger.dim(error.message);
231
+ }
232
+ process.exit(1);
194
233
  }
195
- }
196
- console.log();
197
- import_logger.logger.success("Push complete!");
198
- import_logger.logger.dim(`Files: +${result.uploaded.length} ~${result.updated.length} -${result.deleted.length}`);
199
- import_logger.logger.dim(`Apps: +${appResult.created.length} ~${appResult.updated.length} -${appResult.deleted.length}`);
200
- } catch (error) {
201
- import_logger.logger.error("Push failed.");
202
- if (error instanceof Error) {
203
- import_logger.logger.dim(error.message);
204
- }
205
- process.exit(1);
206
- }
207
- });
234
+ });
208
235
  }
209
- // Annotate the CommonJS export names for ESM import in node:
210
- 0 && (module.exports = {
211
- registerPushCommand
212
- });
213
- //# sourceMappingURL=push.js.map