@memberjunction/cli 2.88.0 → 2.90.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/commands/sync/push.d.ts +1 -0
- package/dist/commands/sync/push.js +27 -1
- package/oclif.manifest.json +49 -41
- package/package.json +5 -5
|
@@ -8,6 +8,7 @@ export default class Push extends Command {
|
|
|
8
8
|
ci: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
9
|
verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
10
|
'no-validate': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
'parallel-batch-size': import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
11
12
|
};
|
|
12
13
|
run(): Promise<void>;
|
|
13
14
|
}
|
|
@@ -23,6 +23,12 @@ class Push extends core_1.Command {
|
|
|
23
23
|
ci: core_1.Flags.boolean({ description: 'CI mode - no prompts, fail on issues' }),
|
|
24
24
|
verbose: core_1.Flags.boolean({ char: 'v', description: 'Show detailed field-level output' }),
|
|
25
25
|
'no-validate': core_1.Flags.boolean({ description: 'Skip validation before push' }),
|
|
26
|
+
'parallel-batch-size': core_1.Flags.integer({
|
|
27
|
+
description: 'Number of records to process in parallel (default: 10)',
|
|
28
|
+
default: 10,
|
|
29
|
+
min: 1,
|
|
30
|
+
max: 50
|
|
31
|
+
}),
|
|
26
32
|
};
|
|
27
33
|
async run() {
|
|
28
34
|
const { flags } = await this.parse(Push);
|
|
@@ -90,6 +96,7 @@ class Push extends core_1.Command {
|
|
|
90
96
|
dryRun: flags['dry-run'],
|
|
91
97
|
verbose: flags.verbose,
|
|
92
98
|
noValidate: flags['no-validate'],
|
|
99
|
+
parallelBatchSize: flags['parallel-batch-size'],
|
|
93
100
|
}, {
|
|
94
101
|
onProgress: (message) => {
|
|
95
102
|
spinner.start(message);
|
|
@@ -101,7 +108,26 @@ class Push extends core_1.Command {
|
|
|
101
108
|
this.error(message);
|
|
102
109
|
},
|
|
103
110
|
onWarn: (message) => {
|
|
104
|
-
this
|
|
111
|
+
// Check if this is a user-friendly warning that doesn't need a stack trace
|
|
112
|
+
const userFriendlyPatterns = [
|
|
113
|
+
'Record not found:',
|
|
114
|
+
'To auto-create missing records',
|
|
115
|
+
'Circular dependencies detected',
|
|
116
|
+
'Skipping',
|
|
117
|
+
'File backups rolled back',
|
|
118
|
+
'Failed to rollback file backups',
|
|
119
|
+
'SQL logging requested but provider does not support it',
|
|
120
|
+
'Failed to close SQL logging session'
|
|
121
|
+
];
|
|
122
|
+
const isUserFriendly = userFriendlyPatterns.some(pattern => message.includes(pattern));
|
|
123
|
+
if (isUserFriendly) {
|
|
124
|
+
// Log as a styled warning without stack trace
|
|
125
|
+
this.log(chalk_1.default.yellow(`⚠️ ${message}`));
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
// Use standard warn for unexpected warnings that need debugging info
|
|
129
|
+
this.warn(message);
|
|
130
|
+
}
|
|
105
131
|
},
|
|
106
132
|
onLog: (message) => {
|
|
107
133
|
this.log(message);
|
package/oclif.manifest.json
CHANGED
|
@@ -189,46 +189,6 @@
|
|
|
189
189
|
"index.js"
|
|
190
190
|
]
|
|
191
191
|
},
|
|
192
|
-
"migrate": {
|
|
193
|
-
"aliases": [],
|
|
194
|
-
"args": {},
|
|
195
|
-
"description": "Migrate MemberJunction database to latest version",
|
|
196
|
-
"examples": [
|
|
197
|
-
"<%= config.bin %> <%= command.id %>\n"
|
|
198
|
-
],
|
|
199
|
-
"flags": {
|
|
200
|
-
"verbose": {
|
|
201
|
-
"char": "v",
|
|
202
|
-
"description": "Enable additional logging",
|
|
203
|
-
"name": "verbose",
|
|
204
|
-
"allowNo": false,
|
|
205
|
-
"type": "boolean"
|
|
206
|
-
},
|
|
207
|
-
"tag": {
|
|
208
|
-
"char": "t",
|
|
209
|
-
"description": "Version tag to use for running remote migrations",
|
|
210
|
-
"name": "tag",
|
|
211
|
-
"hasDynamicHelp": false,
|
|
212
|
-
"multiple": false,
|
|
213
|
-
"type": "option"
|
|
214
|
-
}
|
|
215
|
-
},
|
|
216
|
-
"hasDynamicHelp": false,
|
|
217
|
-
"hiddenAliases": [],
|
|
218
|
-
"id": "migrate",
|
|
219
|
-
"pluginAlias": "@memberjunction/cli",
|
|
220
|
-
"pluginName": "@memberjunction/cli",
|
|
221
|
-
"pluginType": "core",
|
|
222
|
-
"strict": true,
|
|
223
|
-
"enableJsonFlag": false,
|
|
224
|
-
"isESM": false,
|
|
225
|
-
"relativePath": [
|
|
226
|
-
"dist",
|
|
227
|
-
"commands",
|
|
228
|
-
"migrate",
|
|
229
|
-
"index.js"
|
|
230
|
-
]
|
|
231
|
-
},
|
|
232
192
|
"sync:file-reset": {
|
|
233
193
|
"aliases": [],
|
|
234
194
|
"args": {},
|
|
@@ -492,6 +452,14 @@
|
|
|
492
452
|
"name": "no-validate",
|
|
493
453
|
"allowNo": false,
|
|
494
454
|
"type": "boolean"
|
|
455
|
+
},
|
|
456
|
+
"parallel-batch-size": {
|
|
457
|
+
"description": "Number of records to process in parallel (default: 10)",
|
|
458
|
+
"name": "parallel-batch-size",
|
|
459
|
+
"default": 10,
|
|
460
|
+
"hasDynamicHelp": false,
|
|
461
|
+
"multiple": false,
|
|
462
|
+
"type": "option"
|
|
495
463
|
}
|
|
496
464
|
},
|
|
497
465
|
"hasDynamicHelp": false,
|
|
@@ -784,6 +752,46 @@
|
|
|
784
752
|
"run.js"
|
|
785
753
|
]
|
|
786
754
|
},
|
|
755
|
+
"migrate": {
|
|
756
|
+
"aliases": [],
|
|
757
|
+
"args": {},
|
|
758
|
+
"description": "Migrate MemberJunction database to latest version",
|
|
759
|
+
"examples": [
|
|
760
|
+
"<%= config.bin %> <%= command.id %>\n"
|
|
761
|
+
],
|
|
762
|
+
"flags": {
|
|
763
|
+
"verbose": {
|
|
764
|
+
"char": "v",
|
|
765
|
+
"description": "Enable additional logging",
|
|
766
|
+
"name": "verbose",
|
|
767
|
+
"allowNo": false,
|
|
768
|
+
"type": "boolean"
|
|
769
|
+
},
|
|
770
|
+
"tag": {
|
|
771
|
+
"char": "t",
|
|
772
|
+
"description": "Version tag to use for running remote migrations",
|
|
773
|
+
"name": "tag",
|
|
774
|
+
"hasDynamicHelp": false,
|
|
775
|
+
"multiple": false,
|
|
776
|
+
"type": "option"
|
|
777
|
+
}
|
|
778
|
+
},
|
|
779
|
+
"hasDynamicHelp": false,
|
|
780
|
+
"hiddenAliases": [],
|
|
781
|
+
"id": "migrate",
|
|
782
|
+
"pluginAlias": "@memberjunction/cli",
|
|
783
|
+
"pluginName": "@memberjunction/cli",
|
|
784
|
+
"pluginType": "core",
|
|
785
|
+
"strict": true,
|
|
786
|
+
"enableJsonFlag": false,
|
|
787
|
+
"isESM": false,
|
|
788
|
+
"relativePath": [
|
|
789
|
+
"dist",
|
|
790
|
+
"commands",
|
|
791
|
+
"migrate",
|
|
792
|
+
"index.js"
|
|
793
|
+
]
|
|
794
|
+
},
|
|
787
795
|
"ai:agents:list": {
|
|
788
796
|
"aliases": [],
|
|
789
797
|
"args": {},
|
|
@@ -1053,5 +1061,5 @@
|
|
|
1053
1061
|
]
|
|
1054
1062
|
}
|
|
1055
1063
|
},
|
|
1056
|
-
"version": "2.
|
|
1064
|
+
"version": "2.90.0"
|
|
1057
1065
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.90.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.
|
|
55
|
-
"@memberjunction/codegen-lib": "2.
|
|
56
|
-
"@memberjunction/metadata-sync": "2.
|
|
57
|
-
"@memberjunction/sqlserver-dataprovider": "2.
|
|
54
|
+
"@memberjunction/ai-cli": "2.90.0",
|
|
55
|
+
"@memberjunction/codegen-lib": "2.90.0",
|
|
56
|
+
"@memberjunction/metadata-sync": "2.90.0",
|
|
57
|
+
"@memberjunction/sqlserver-dataprovider": "2.90.0",
|
|
58
58
|
"@oclif/core": "^3",
|
|
59
59
|
"@oclif/plugin-help": "^6",
|
|
60
60
|
"@oclif/plugin-version": "^2.0.17",
|