Skip to content

Commit 4720676

Browse files
kriszypclaude
andcommitted
feat(add-component): add install_allow_scripts flag (consistent with deploy_component)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 758eb8a commit 4720676

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

components/operations.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ async function addComponent(req) {
217217

218218
log.trace(`adding component`);
219219
const cfDir = configUtils.getConfigPath(hdbTerms.CONFIG_PARAMS.COMPONENTSROOT);
220-
const { project, install_command, install_timeout } = req;
220+
const { project, install_command, install_timeout, install_allow_scripts } = req;
221221

222222
const template = req.template || 'https://github.com/harperdb/application-template';
223223

@@ -230,6 +230,7 @@ async function addComponent(req) {
230230
install: {
231231
command: install_command,
232232
timeout: install_timeout,
233+
allowInstallScripts: install_allow_scripts,
233234
},
234235
});
235236
await prepareApplication(application);

components/operationsValidation.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ function addComponentValidator(req) {
184184
template: Joi.string().optional(),
185185
install_command: Joi.string().optional(),
186186
install_timeout: Joi.number().optional(),
187+
install_allow_scripts: Joi.boolean().optional(),
187188
});
188189

189190
return validator.validateBySchema(req, addFuncSchema);

0 commit comments

Comments
 (0)