@memberjunction/cli 2.89.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 +64 -56
- 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
|
@@ -94,41 +94,10 @@
|
|
|
94
94
|
"index.js"
|
|
95
95
|
]
|
|
96
96
|
},
|
|
97
|
-
"
|
|
98
|
-
"aliases": [],
|
|
99
|
-
"args": {},
|
|
100
|
-
"description": "Run CodeGen to generate code and update metadata for MemberJunction",
|
|
101
|
-
"examples": [
|
|
102
|
-
"<%= config.bin %> <%= command.id %>\n"
|
|
103
|
-
],
|
|
104
|
-
"flags": {
|
|
105
|
-
"skipdb": {
|
|
106
|
-
"description": "Skip database migration",
|
|
107
|
-
"name": "skipdb",
|
|
108
|
-
"allowNo": false,
|
|
109
|
-
"type": "boolean"
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
"hasDynamicHelp": false,
|
|
113
|
-
"hiddenAliases": [],
|
|
114
|
-
"id": "codegen",
|
|
115
|
-
"pluginAlias": "@memberjunction/cli",
|
|
116
|
-
"pluginName": "@memberjunction/cli",
|
|
117
|
-
"pluginType": "core",
|
|
118
|
-
"strict": true,
|
|
119
|
-
"enableJsonFlag": false,
|
|
120
|
-
"isESM": false,
|
|
121
|
-
"relativePath": [
|
|
122
|
-
"dist",
|
|
123
|
-
"commands",
|
|
124
|
-
"codegen",
|
|
125
|
-
"index.js"
|
|
126
|
-
]
|
|
127
|
-
},
|
|
128
|
-
"install": {
|
|
97
|
+
"clean": {
|
|
129
98
|
"aliases": [],
|
|
130
99
|
"args": {},
|
|
131
|
-
"description": "
|
|
100
|
+
"description": "Resets the MemberJunction database to a pre-installation state",
|
|
132
101
|
"examples": [
|
|
133
102
|
"<%= config.bin %> <%= command.id %>\n"
|
|
134
103
|
],
|
|
@@ -143,7 +112,7 @@
|
|
|
143
112
|
},
|
|
144
113
|
"hasDynamicHelp": false,
|
|
145
114
|
"hiddenAliases": [],
|
|
146
|
-
"id": "
|
|
115
|
+
"id": "clean",
|
|
147
116
|
"pluginAlias": "@memberjunction/cli",
|
|
148
117
|
"pluginName": "@memberjunction/cli",
|
|
149
118
|
"pluginType": "core",
|
|
@@ -153,29 +122,28 @@
|
|
|
153
122
|
"relativePath": [
|
|
154
123
|
"dist",
|
|
155
124
|
"commands",
|
|
156
|
-
"
|
|
125
|
+
"clean",
|
|
157
126
|
"index.js"
|
|
158
127
|
]
|
|
159
128
|
},
|
|
160
|
-
"
|
|
129
|
+
"codegen": {
|
|
161
130
|
"aliases": [],
|
|
162
131
|
"args": {},
|
|
163
|
-
"description": "
|
|
132
|
+
"description": "Run CodeGen to generate code and update metadata for MemberJunction",
|
|
164
133
|
"examples": [
|
|
165
134
|
"<%= config.bin %> <%= command.id %>\n"
|
|
166
135
|
],
|
|
167
136
|
"flags": {
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
"name": "verbose",
|
|
137
|
+
"skipdb": {
|
|
138
|
+
"description": "Skip database migration",
|
|
139
|
+
"name": "skipdb",
|
|
172
140
|
"allowNo": false,
|
|
173
141
|
"type": "boolean"
|
|
174
142
|
}
|
|
175
143
|
},
|
|
176
144
|
"hasDynamicHelp": false,
|
|
177
145
|
"hiddenAliases": [],
|
|
178
|
-
"id": "
|
|
146
|
+
"id": "codegen",
|
|
179
147
|
"pluginAlias": "@memberjunction/cli",
|
|
180
148
|
"pluginName": "@memberjunction/cli",
|
|
181
149
|
"pluginType": "core",
|
|
@@ -185,14 +153,14 @@
|
|
|
185
153
|
"relativePath": [
|
|
186
154
|
"dist",
|
|
187
155
|
"commands",
|
|
188
|
-
"
|
|
156
|
+
"codegen",
|
|
189
157
|
"index.js"
|
|
190
158
|
]
|
|
191
159
|
},
|
|
192
|
-
"
|
|
160
|
+
"install": {
|
|
193
161
|
"aliases": [],
|
|
194
162
|
"args": {},
|
|
195
|
-
"description": "
|
|
163
|
+
"description": "Install MemberJunction",
|
|
196
164
|
"examples": [
|
|
197
165
|
"<%= config.bin %> <%= command.id %>\n"
|
|
198
166
|
],
|
|
@@ -203,19 +171,11 @@
|
|
|
203
171
|
"name": "verbose",
|
|
204
172
|
"allowNo": false,
|
|
205
173
|
"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
174
|
}
|
|
215
175
|
},
|
|
216
176
|
"hasDynamicHelp": false,
|
|
217
177
|
"hiddenAliases": [],
|
|
218
|
-
"id": "
|
|
178
|
+
"id": "install",
|
|
219
179
|
"pluginAlias": "@memberjunction/cli",
|
|
220
180
|
"pluginName": "@memberjunction/cli",
|
|
221
181
|
"pluginType": "core",
|
|
@@ -225,7 +185,7 @@
|
|
|
225
185
|
"relativePath": [
|
|
226
186
|
"dist",
|
|
227
187
|
"commands",
|
|
228
|
-
"
|
|
188
|
+
"install",
|
|
229
189
|
"index.js"
|
|
230
190
|
]
|
|
231
191
|
},
|
|
@@ -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",
|