@memberjunction/cli 2.103.0 → 2.105.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.
@@ -78,7 +78,11 @@ class ActionsRun extends core_1.Command {
78
78
  // Execute action
79
79
  const spinner = (0, ora_classic_1.default)();
80
80
  spinner.start(`Executing action: ${flags.name}`);
81
- const result = await service.executeAction(flags.name, params);
81
+ const result = await service.executeAction(flags.name, {
82
+ parameters: params,
83
+ verbose: flags.verbose,
84
+ timeout: flags.timeout
85
+ });
82
86
  spinner.stop();
83
87
  this.log(formatter.formatActionResult(result));
84
88
  if (!result.success) {
@@ -189,8 +189,6 @@ class FileReset extends core_1.Command {
189
189
  finally {
190
190
  // Reset singletons
191
191
  (0, metadata_sync_1.resetSyncEngine)();
192
- // Exit process
193
- process.exit(0);
194
192
  }
195
193
  }
196
194
  }
@@ -216,8 +216,6 @@ class Pull extends core_1.Command {
216
216
  finally {
217
217
  // Reset singletons
218
218
  (0, metadata_sync_1.resetSyncEngine)();
219
- // Exit process to prevent background MJ tasks from throwing errors
220
- process.exit(0);
221
219
  }
222
220
  }
223
221
  async findEntityDirectories(entityName) {
@@ -117,12 +117,14 @@ class Push extends core_1.Command {
117
117
  'File backups rolled back',
118
118
  'Failed to rollback file backups',
119
119
  'SQL logging requested but provider does not support it',
120
- 'Failed to close SQL logging session'
120
+ 'Failed to close SQL logging session',
121
+ 'WARNING: alwaysPush is enabled',
122
+ 'WARNING: autoCreateMissingRecords is enabled'
121
123
  ];
122
124
  const isUserFriendly = userFriendlyPatterns.some(pattern => message.includes(pattern));
123
125
  if (isUserFriendly) {
124
126
  // Log as a styled warning without stack trace
125
- this.log(chalk_1.default.yellow(`⚠️ ${message}`));
127
+ this.log(chalk_1.default.yellow(message));
126
128
  }
127
129
  else {
128
130
  // Use standard warn for unexpected warnings that need debugging info
@@ -201,8 +203,6 @@ class Push extends core_1.Command {
201
203
  finally {
202
204
  // Reset singletons
203
205
  (0, metadata_sync_1.resetSyncEngine)();
204
- // Exit process
205
- process.exit(0);
206
206
  }
207
207
  }
208
208
  }
@@ -104,8 +104,6 @@ class Status extends core_1.Command {
104
104
  finally {
105
105
  // Reset singletons
106
106
  (0, metadata_sync_1.resetSyncEngine)();
107
- // Exit process
108
- process.exit(0);
109
107
  }
110
108
  }
111
109
  }
@@ -105,7 +105,7 @@ class Validate extends core_1.Command {
105
105
  }
106
106
  // Exit with error code if validation failed
107
107
  if (!validationResult.isValid) {
108
- process.exit(1);
108
+ this.error('Validation failed');
109
109
  }
110
110
  }
111
111
  catch (error) {
@@ -123,8 +123,6 @@ class Validate extends core_1.Command {
123
123
  finally {
124
124
  // Reset singletons
125
125
  (0, metadata_sync_1.resetSyncEngine)();
126
- // Exit process
127
- process.exit(0);
128
126
  }
129
127
  }
130
128
  }
@@ -1061,5 +1061,5 @@
1061
1061
  ]
1062
1062
  }
1063
1063
  },
1064
- "version": "2.103.0"
1064
+ "version": "2.105.0"
1065
1065
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/cli",
3
- "version": "2.103.0",
3
+ "version": "2.105.0",
4
4
  "description": "MemberJunction command line tools",
5
5
  "keywords": [
6
6
  "oclif"
@@ -51,10 +51,10 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "@inquirer/prompts": "^5.0.1",
54
- "@memberjunction/ai-cli": "2.103.0",
55
- "@memberjunction/codegen-lib": "2.103.0",
56
- "@memberjunction/metadata-sync": "2.103.0",
57
- "@memberjunction/sqlserver-dataprovider": "2.103.0",
54
+ "@memberjunction/ai-cli": "2.105.0",
55
+ "@memberjunction/codegen-lib": "2.105.0",
56
+ "@memberjunction/metadata-sync": "2.105.0",
57
+ "@memberjunction/sqlserver-dataprovider": "2.105.0",
58
58
  "@oclif/core": "^3",
59
59
  "@oclif/plugin-help": "^6",
60
60
  "@oclif/plugin-version": "^2.0.17",