@osdk/cli 0.31.0 → 0.31.1
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/CHANGELOG.md +6 -0
- package/build/esm/{chunk-TSX7O7HY.js → chunk-JU2R7TE3.js} +6 -3
- package/build/esm/chunk-JU2R7TE3.js.map +1 -0
- package/build/esm/{handleGenerate-HZSOXAY7.js → handleGenerate-HTRTGZMS.js} +7 -7
- package/build/esm/{handleGenerate-HZSOXAY7.js.map → handleGenerate-HTRTGZMS.js.map} +1 -1
- package/build/esm/index.js +12 -12
- package/build/esm/index.js.map +1 -1
- package/build/esm/{siteDeployCommand-ZF3US2OO.js → siteDeployCommand-FBG464PC.js} +3 -3
- package/build/esm/{siteDeployCommand-ZF3US2OO.js.map → siteDeployCommand-FBG464PC.js.map} +1 -1
- package/build/esm/{versionDeleteCommand-GTGX4WSA.js → versionDeleteCommand-BJ55S24I.js} +3 -3
- package/build/esm/{versionDeleteCommand-GTGX4WSA.js.map → versionDeleteCommand-BJ55S24I.js.map} +1 -1
- package/build/esm/{versionDeleteCommand-KPDNFCLU.js → versionDeleteCommand-QEMSA254.js} +3 -3
- package/build/esm/{versionDeleteCommand-KPDNFCLU.js.map → versionDeleteCommand-QEMSA254.js.map} +1 -1
- package/build/esm/{versionGetCommand-CYPONYBC.js → versionGetCommand-IX4CMFPV.js} +3 -3
- package/build/esm/{versionGetCommand-CYPONYBC.js.map → versionGetCommand-IX4CMFPV.js.map} +1 -1
- package/build/esm/{versionInfoCommand-ZZ6GO7PX.js → versionInfoCommand-AZ6IG77A.js} +3 -3
- package/build/esm/{versionInfoCommand-ZZ6GO7PX.js.map → versionInfoCommand-AZ6IG77A.js.map} +1 -1
- package/build/esm/{versionListCommand-GMO5SYUE.js → versionListCommand-HHQFR63B.js} +3 -3
- package/build/esm/{versionListCommand-GMO5SYUE.js.map → versionListCommand-HHQFR63B.js.map} +1 -1
- package/build/esm/{versionListCommand-DAID4G25.js → versionListCommand-NN35HZYA.js} +3 -3
- package/build/esm/{versionListCommand-DAID4G25.js.map → versionListCommand-NN35HZYA.js.map} +1 -1
- package/build/esm/{versionSetCommand-3OJ335BU.js → versionSetCommand-3R3OTVZG.js} +3 -3
- package/build/esm/{versionSetCommand-3OJ335BU.js.map → versionSetCommand-3R3OTVZG.js.map} +1 -1
- package/build/esm/{versionUnsetCommand-57HRMYXS.js → versionUnsetCommand-DFPFTCXI.js} +3 -3
- package/build/esm/{versionUnsetCommand-57HRMYXS.js.map → versionUnsetCommand-DFPFTCXI.js.map} +1 -1
- package/build/esm/{widgetSetDeployCommand-JDUWKQMU.js → widgetSetDeployCommand-REQ3GWXW.js} +3 -3
- package/build/esm/{widgetSetDeployCommand-JDUWKQMU.js.map → widgetSetDeployCommand-REQ3GWXW.js.map} +1 -1
- package/package.json +6 -6
- package/build/esm/chunk-TSX7O7HY.js.map +0 -1
package/build/esm/index.js
CHANGED
|
@@ -142,7 +142,7 @@ var generateCommand = {
|
|
|
142
142
|
});
|
|
143
143
|
},
|
|
144
144
|
handler: async (args) => {
|
|
145
|
-
const command16 = await import('./handleGenerate-
|
|
145
|
+
const command16 = await import('./handleGenerate-HTRTGZMS.js');
|
|
146
146
|
await command16.handleGenerate(args);
|
|
147
147
|
}
|
|
148
148
|
};
|
|
@@ -354,7 +354,7 @@ var command2 = {
|
|
|
354
354
|
}).middleware((args) => logSiteDeployCommandConfigFileOverride(args, siteConfig));
|
|
355
355
|
},
|
|
356
356
|
handler: async (args) => {
|
|
357
|
-
const command16 = await import('./siteDeployCommand-
|
|
357
|
+
const command16 = await import('./siteDeployCommand-FBG464PC.js');
|
|
358
358
|
const {
|
|
359
359
|
version,
|
|
360
360
|
autoVersion,
|
|
@@ -404,7 +404,7 @@ var command3 = {
|
|
|
404
404
|
}).group(["yes"], "Delete Options");
|
|
405
405
|
},
|
|
406
406
|
handler: async (args) => {
|
|
407
|
-
const command16 = await import('./versionDeleteCommand-
|
|
407
|
+
const command16 = await import('./versionDeleteCommand-BJ55S24I.js');
|
|
408
408
|
await command16.default(args);
|
|
409
409
|
}
|
|
410
410
|
};
|
|
@@ -419,7 +419,7 @@ var command4 = {
|
|
|
419
419
|
return argv;
|
|
420
420
|
},
|
|
421
421
|
handler: async (args) => {
|
|
422
|
-
const command16 = await import('./versionGetCommand-
|
|
422
|
+
const command16 = await import('./versionGetCommand-IX4CMFPV.js');
|
|
423
423
|
await command16.default(args);
|
|
424
424
|
}
|
|
425
425
|
};
|
|
@@ -434,7 +434,7 @@ var command5 = {
|
|
|
434
434
|
return argv;
|
|
435
435
|
},
|
|
436
436
|
handler: async (args) => {
|
|
437
|
-
const command16 = await import('./versionListCommand-
|
|
437
|
+
const command16 = await import('./versionListCommand-HHQFR63B.js');
|
|
438
438
|
await command16.default(args);
|
|
439
439
|
}
|
|
440
440
|
};
|
|
@@ -453,7 +453,7 @@ var command6 = {
|
|
|
453
453
|
});
|
|
454
454
|
},
|
|
455
455
|
handler: async (args) => {
|
|
456
|
-
const command16 = await import('./versionSetCommand-
|
|
456
|
+
const command16 = await import('./versionSetCommand-3R3OTVZG.js');
|
|
457
457
|
await command16.default(args);
|
|
458
458
|
}
|
|
459
459
|
};
|
|
@@ -472,7 +472,7 @@ var command7 = {
|
|
|
472
472
|
}).group(["yes"], "Unset Options");
|
|
473
473
|
},
|
|
474
474
|
handler: async (args) => {
|
|
475
|
-
const command16 = await import('./versionUnsetCommand-
|
|
475
|
+
const command16 = await import('./versionUnsetCommand-DFPFTCXI.js');
|
|
476
476
|
await command16.default(args);
|
|
477
477
|
}
|
|
478
478
|
};
|
|
@@ -593,7 +593,7 @@ The widget set files must contain a valid manifest at ${MANIFEST_FILE_LOCATION}
|
|
|
593
593
|
}).group(["directory", "repository"], "Deploy Options").middleware((args) => logWidgetSetDeployCommandConfigFileOverride(args, widgetSetConfig));
|
|
594
594
|
},
|
|
595
595
|
handler: async (args) => {
|
|
596
|
-
const command16 = await import('./widgetSetDeployCommand-
|
|
596
|
+
const command16 = await import('./widgetSetDeployCommand-REQ3GWXW.js');
|
|
597
597
|
await command16.default(args);
|
|
598
598
|
}
|
|
599
599
|
};
|
|
@@ -630,7 +630,7 @@ var command11 = {
|
|
|
630
630
|
}).group(["yes"], "Delete Options");
|
|
631
631
|
},
|
|
632
632
|
handler: async (args) => {
|
|
633
|
-
const command16 = await import('./versionDeleteCommand-
|
|
633
|
+
const command16 = await import('./versionDeleteCommand-QEMSA254.js');
|
|
634
634
|
await command16.default(args);
|
|
635
635
|
}
|
|
636
636
|
};
|
|
@@ -649,7 +649,7 @@ var command12 = {
|
|
|
649
649
|
});
|
|
650
650
|
},
|
|
651
651
|
handler: async (args) => {
|
|
652
|
-
const command16 = await import('./versionInfoCommand-
|
|
652
|
+
const command16 = await import('./versionInfoCommand-AZ6IG77A.js');
|
|
653
653
|
await command16.default(args);
|
|
654
654
|
}
|
|
655
655
|
};
|
|
@@ -664,7 +664,7 @@ var command13 = {
|
|
|
664
664
|
return argv;
|
|
665
665
|
},
|
|
666
666
|
handler: async (args) => {
|
|
667
|
-
const command16 = await import('./versionListCommand-
|
|
667
|
+
const command16 = await import('./versionListCommand-NN35HZYA.js');
|
|
668
668
|
await command16.default(args);
|
|
669
669
|
}
|
|
670
670
|
};
|
|
@@ -738,7 +738,7 @@ var widgetset_default = command15;
|
|
|
738
738
|
|
|
739
739
|
// src/cli.ts
|
|
740
740
|
async function cli2(args = process.argv) {
|
|
741
|
-
consola.info(`Palantir OSDK CLI ${"0.31.
|
|
741
|
+
consola.info(`Palantir OSDK CLI ${"0.31.1"}
|
|
742
742
|
`);
|
|
743
743
|
const base = getYargsBase(args);
|
|
744
744
|
try {
|
package/build/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/cli.ts","../../../cli.cmd.typescript/build/esm/index.js","../../../cli.cmd.typescript/build/esm/cli.js","../../../cli.cmd.typescript/build/esm/generate/generate.js","../../../cli.cmd.typescript/build/esm/typescriptCommand.js","../../src/commands/auth/index.ts","../../src/commands/auth/login/index.ts","../../src/commands/site/index.ts","../../src/util/configLoader.ts","../../src/yargs/logConfigFileMiddleware.ts","../../src/commands/site/deploy/index.ts","../../src/commands/site/deploy/logSiteDeployCommandConfigFileOverride.ts","../../src/commands/site/logSiteCommandConfigFileOverride.ts","../../src/commands/site/version/index.ts","../../src/commands/site/version/delete/index.ts","../../src/commands/site/version/get/index.ts","../../src/commands/site/version/list/index.ts","../../src/commands/site/version/set/index.ts","../../src/commands/site/version/unset/index.ts","../../src/commands/widgetset/index.ts","../../src/commands/widgetset/deploy/index.ts","../../src/commands/widgetset/deploy/logWidgetSetDeployCommandConfigFileOverride.ts","../../src/commands/widgetset/logWidgetSetCommandConfigFileOverride.ts","../../src/commands/widgetset/version/index.ts","../../src/commands/widgetset/version/delete/index.ts","../../src/commands/widgetset/version/info/index.ts","../../src/commands/widgetset/version/list/index.ts"],"names":["command","consola","autoVersion","application","foundryUrl","deploy_default","delete_default","list_default","version_default","widgetSet","cli"],"mappings":";;;;;;;;AAAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;AAiBO,IAAM,eAAkB,GAAA;AAAA,EAC7B,OAAS,EAAA,UAAA;AAAA,EACT,QAAU,EAAA,uCAAA;AAAA,EACV,SAAS,CAAQ,IAAA,KAAA;AACf,IAAA,OAAO,KAAK,OAAQ,CAAA;AAAA,MAClB,MAAQ,EAAA;AAAA,QACN,IAAM,EAAA,QAAA;AAAA,QACN,WAAa,EAAA,oCAAA;AAAA,QACb,YAAc,EAAA;AAAA,OAChB;AAAA,MACA,YAAc,EAAA;AAAA,QACZ,WAAa,EAAA,gCAAA;AAAA,QACb,IAAM,EAAA,QAAA;AAAA,QACN,YAAc,EAAA,KAAA;AAAA,QACd,SAAA,EAAW,CAAC,YAAA,EAAc,UAAU;AAAA,OACtC;AAAA,MACA,UAAY,EAAA;AAAA,QACV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AAQ,CAAA,YAAI,EAAE,aAAc,EAAA;AAAA,OAC9D;AAAA,MACA,SAAS,CAAS,KAAA,KAAA;AAAA;AAAC,KACpB,EAAE,UAAW,EAAA;AAAA,WACP,GAAK,EAAA;AACZ,IAAA,IAAI,eAAe,gBAAkB,EAAA;AACnC,MAAAA,OAAAA,CAAQ,MAAM,GAAG,CAAA;AAAA;AACnB;AAEJ","file":"index.js","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport { cli } from \"./cli.js\";","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport typescript from \"@osdk/cli.cmd.typescript\";\nimport { ExitProcessError, getYargsBase } from \"@osdk/cli.common\";\nimport { consola } from \"consola\";\nimport auth from \"./commands/auth/index.js\";\nimport site from \"./commands/site/index.js\";\nimport widgetSet from \"./commands/widgetset/index.js\";\nexport async function cli(args = process.argv) {\n consola.info(`Palantir OSDK CLI ${process.env.PACKAGE_VERSION}\\n`);\n const base = getYargsBase(args);\n\n // Special handling where failures happen before yargs does its error handling within .fail\n try {\n return await base.command(site).command(widgetSet).command({\n command: \"unstable\",\n aliases: [\"experimental\"],\n describe: \"Unstable commands\",\n builder: argv => {\n return argv.command(typescript).command(auth).demandCommand();\n },\n handler: _args => {}\n }).parseAsync();\n } catch (err) {\n if (err instanceof ExitProcessError) {\n consola.error(err);\n }\n }\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport { cli } from \"./cli.js\";\nexport { typescriptCommand as default } from \"./typescriptCommand.js\";","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ExitProcessError, getYargsBase } from \"@osdk/cli.common\";\nimport { consola } from \"consola\";\nimport { generateCommand } from \"./generate/generate.js\";\nexport async function cli(args = process.argv) {\n consola.info(`Palantir OSDK CLI ${\"0.31.0\"}\\n`);\n const base = getYargsBase(args);\n\n // Special handling where failures happen before yargs does its error handling within .fail\n try {\n return await base.command(generateCommand).parseAsync();\n } catch (err) {\n if (err instanceof ExitProcessError) {\n consola.error(err);\n }\n }\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { isValidSemver, YargsCheckError } from \"@osdk/cli.common\";\nexport const generateCommand = {\n command: \"generate\",\n describe: \"Generate TypeScript SDK from ontology\",\n builder: argv => {\n return argv.options({\n outDir: {\n type: \"string\",\n description: \"Where to place the generated files\",\n demandOption: true\n },\n ontologyPath: {\n description: \"Path to the ontology wire json\",\n type: \"string\",\n demandOption: false,\n conflicts: [\"foundryUrl\", \"clientId\"]\n },\n foundryUrl: {\n description: \"URL for the foundry stack that contains the ontology\",\n type: \"string\",\n demandOption: false,\n conflicts: \"ontologyPath\",\n implies: \"clientId\",\n alias: \"stack\" // for backwards compatibility\n },\n clientId: {\n description: \"OAuth client ID for application\",\n type: \"string\",\n demandOption: false,\n conflicts: \"ontologyPath\",\n implies: \"foundryUrl\"\n },\n ontologyRid: {\n description: \"Limit requests to this ontology rid only\",\n type: \"string\",\n demandOption: false\n },\n ontologyWritePath: {\n description: \"Path to write the ontology wire json\",\n type: \"string\",\n demandOption: false,\n conflicts: [\"ontologyPath\"]\n },\n beta: {\n type: \"boolean\",\n description: \"Should generate beta sdk\",\n demandOption: false\n },\n packageType: {\n default: \"commonjs\",\n choices: [\"commonjs\", \"module\"]\n },\n version: {\n type: \"string\",\n description: \"Version of the generated code, or 'dev'\",\n demandOption: true\n },\n packageName: {\n type: \"string\",\n description: \"Name of the package to generate\"\n },\n asPackage: {\n type: \"boolean\",\n description: \"Generate as a package (makes a package.json and co)\"\n },\n clean: {\n type: \"boolean\",\n description: \"Clean the output directory before generating\"\n },\n internal: {\n type: \"boolean\",\n default: false\n },\n externalObjects: {\n type: \"string\",\n coerce: value => {\n const map = new Map();\n if (value) {\n for (const entry of value.split(\",\")) {\n const [api, ns] = entry.split(\":\");\n map.set(api, ns);\n }\n }\n return map;\n },\n default: \"\"\n },\n externalInterfaces: {\n type: \"string\",\n coerce: value => {\n const map = new Map();\n if (value) {\n for (const entry of value.split(\",\")) {\n const [api, ns] = entry.split(\":\");\n map.set(api, ns);\n }\n }\n return map;\n },\n default: \"\"\n },\n skipPackageJsonUpdate: {\n type: \"boolean\",\n description: \"Skip updating package.json with OSDK dependencies\",\n default: false\n }\n }).group([\"ontologyPath\", \"outDir\", \"version\"], \"Generate from a local file\").group([\"foundryUrl\", \"clientId\", \"outDir\", \"ontologyWritePath\", \"version\"], \"OR Generate from Foundry\").group([\"packageName\", \"as\"], \"Package generation options\").check(args => {\n if (!args.ontologyPath && !args.foundryUrl) {\n throw new YargsCheckError(\"Must specify either ontologyPath or foundryUrl and clientId\");\n }\n if (args.version !== \"dev\" && !isValidSemver(args.version)) {\n throw new YargsCheckError(\"Version must be 'dev' or a valid semver version\");\n }\n if (args.asPackage && !args.packageName) {\n throw new YargsCheckError(\"Must specify packageName when generating as a package\");\n }\n if (args.asPackage && !args.version) {\n throw new YargsCheckError(\"Must specify version when generating as a package\");\n }\n return true;\n });\n },\n handler: async args => {\n const command = await import(\"./handleGenerate.mjs\");\n await command.handleGenerate(args);\n }\n};","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { generateCommand } from \"./generate/generate.js\";\nexport const typescriptCommand = {\n command: \"typescript\",\n describe: \"Manage code\",\n builder: argv => {\n return argv.command(generateCommand).demandCommand();\n },\n handler: async () => {}\n};","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport login from \"./login/index.js\";\nconst auth = {\n command: \"auth\",\n describe: \"Manage your session\",\n builder: argv => {\n return argv.options({\n foundryUrl: {\n type: \"string\",\n demandOption: true,\n alias: \"baseUrl\",\n // for backwards compatibility\n describe: \"URL for the Foundry stack\"\n }\n }).command(login).demandCommand();\n },\n handler: async args => {}\n};\nexport default auth;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const command = {\n command: \"login\",\n describe: \"Authenticate with an application ID\",\n builder: argv => {\n return argv.option(\"clientId\", {\n alias: \"applicationId\",\n // for backwards compatibility\n type: \"string\",\n demandOption: true,\n describe: \"OAuth client ID for application\"\n });\n },\n handler: async args => {\n const command = await import(\"@osdk/cli.common/loginFlow\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { YargsCheckError } from \"@osdk/cli.common\";\nimport configLoader from \"../../util/configLoader.js\";\nimport { logConfigFileMiddleware } from \"../../yargs/logConfigFileMiddleware.js\";\nimport deploy from \"./deploy/index.js\";\nimport { logSiteCommandConfigFileOverride } from \"./logSiteCommandConfigFileOverride.js\";\nimport version from \"./version/index.js\";\nconst command = {\n command: \"site\",\n describe: \"Manage your site\",\n builder: async argv => {\n const config = await configLoader(\"site\");\n const application = config?.foundryConfig.site.application;\n const foundryUrl = config?.foundryConfig.foundryUrl;\n return argv.options({\n application: {\n type: \"string\",\n coerce: application => application,\n ...(application ? {\n default: application\n } : {\n demandOption: true\n }),\n description: \"Application resource identifier (rid)\"\n },\n foundryUrl: {\n coerce: foundryUrl => foundryUrl.replace(/\\/$/, \"\"),\n type: \"string\",\n ...(foundryUrl ? {\n default: foundryUrl\n } : {\n demandOption: true\n }),\n description: \"URL for the Foundry stack\"\n },\n token: {\n type: \"string\",\n conflicts: \"tokenFile\",\n description: \"Foundry API token\"\n },\n tokenFile: {\n type: \"string\",\n conflicts: \"token\",\n description: \"Path to file containing Foundry API token\"\n }\n }).group([\"application\", \"foundryUrl\", \"token\", \"tokenFile\"], \"Common Options\").command(version).command(deploy).check(args => {\n if (!args.foundryUrl.startsWith(\"https://\")) {\n throw new YargsCheckError(\"foundryUrl must start with https://\");\n }\n return true;\n }).middleware(args => {\n void logConfigFileMiddleware(\"site\");\n void logSiteCommandConfigFileOverride(args, config?.foundryConfig);\n }).demandCommand();\n },\n handler: async args => {}\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ExitProcessError } from \"@osdk/cli.common\";\nimport { loadFoundryConfig } from \"@osdk/foundry-config-json\";\nlet siteConfigPromise = undefined;\nlet widgetSetConfigPromise = undefined;\nfunction getConfig(type) {\n if (type === \"site\") {\n return getSiteConfig();\n } else {\n return getWidgetSetConfig();\n }\n}\nfunction getSiteConfig() {\n if (siteConfigPromise == null) {\n siteConfigPromise = loadFoundryConfig(\"site\").catch(e => {\n throw new ExitProcessError(2, e instanceof Error ? e.message : undefined);\n });\n }\n return siteConfigPromise;\n}\nfunction getWidgetSetConfig() {\n if (widgetSetConfigPromise == null) {\n widgetSetConfigPromise = loadFoundryConfig(\"widgetSet\").catch(e => {\n throw new ExitProcessError(2, e instanceof Error ? e.message : undefined);\n });\n }\n return widgetSetConfigPromise;\n}\nexport default getConfig;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nimport getConfig from \"../util/configLoader.js\";\nlet firstTime = true;\nexport async function logConfigFileMiddleware(type) {\n if (firstTime) {\n firstTime = false;\n const config = getConfig(type);\n const configFilePath = (await config)?.configFilePath;\n if (configFilePath) {\n consola.debug(`Using configuration from file: \"${configFilePath}\"`);\n }\n }\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { isValidSemver, YargsCheckError } from \"@osdk/cli.common\";\nimport configLoader from \"../../../util/configLoader.js\";\nimport { logSiteDeployCommandConfigFileOverride } from \"./logSiteDeployCommandConfigFileOverride.js\";\nconst command = {\n command: \"deploy\",\n describe: \"Deploy a new site version\",\n builder: async argv => {\n const config = await configLoader(\"site\");\n const siteConfig = config?.foundryConfig.site;\n const directory = siteConfig?.directory;\n const autoVersion = siteConfig?.autoVersion;\n const gitTagPrefix = autoVersion?.type === \"git-describe\" ? autoVersion.tagPrefix : undefined;\n const uploadOnly = siteConfig?.uploadOnly;\n return argv.options({\n directory: {\n type: \"string\",\n description: \"Directory containing site files\",\n ...(directory ? {\n default: directory\n } : {\n demandOption: true\n })\n },\n uploadOnly: {\n type: \"boolean\",\n description: \"Upload new site version only without setting as live\",\n default: uploadOnly ?? false\n },\n version: {\n type: \"string\",\n description: \"New version of site to deploy\",\n ...(autoVersion == null ? {\n conflicts: \"autoVersion\"\n } : {})\n },\n autoVersion: {\n coerce: autoVersion => autoVersion,\n type: \"string\",\n choices: [\"git-describe\", \"package-json\"],\n description: \"Enable auto versioning\",\n ...(autoVersion != null ? {\n default: autoVersion.type\n } : {\n conflicts: \"version\"\n })\n },\n gitTagPrefix: {\n type: \"string\",\n description: \"Prefix to match git tags on when 'git-describe' auto versioning is used. If not provided, all tags are matched and the prefix 'v' is stripped if present.\",\n ...(gitTagPrefix ? {\n default: gitTagPrefix\n } : {})\n },\n snapshot: {\n type: \"boolean\",\n description: \"Upload a snapshot version only with automatic retention\",\n default: false\n },\n snapshotId: {\n type: \"string\",\n description: \"Optional id to associate with snapshot version as an alias\"\n }\n }).group([\"directory\", \"version\", \"uploadOnly\"], \"Deploy Options\").group([\"autoVersion\", \"gitTagPrefix\"], \"Auto Version Options\").group([\"snapshot\", \"snapshotId\"], \"Snapshot Options\").check(args => {\n // This is required because we can't use demandOption with conflicts. conflicts protects us against the case where both are provided.\n // So this case is for when nothing is provided.\n if (autoVersion == null && args.autoVersion == null && args.version == null) {\n throw new YargsCheckError(\"One of --version or --autoVersion must be specified\");\n }\n if (args.version != null && !isValidSemver(args.version)) {\n throw new YargsCheckError(`--version \"${args.version}\" must be a valid SemVer string`);\n }\n const autoVersionType = args.autoVersion ?? autoVersion;\n if (autoVersionType != null && autoVersionType !== \"git-describe\" && autoVersionType !== \"package-json\") {\n throw new YargsCheckError(`Only 'git-describe' and 'package-json' are supported for autoVersion`);\n }\n const gitTagPrefixValue = args.gitTagPrefix ?? gitTagPrefix;\n if (gitTagPrefixValue != null && autoVersionType !== \"git-describe\") {\n throw new YargsCheckError(`--gitTagPrefix is only supported when --autoVersion=git-describe`);\n }\n if (args.uploadOnly && args.snapshot) {\n throw new YargsCheckError(`--uploadOnly and --snapshot cannot be enabled together`);\n }\n if (args.snapshotId != null && !args.snapshot) {\n throw new YargsCheckError(\"--snapshotId is only supported when --snapshot is enabled\");\n }\n return true;\n }).middleware(args => logSiteDeployCommandConfigFileOverride(args, siteConfig));\n },\n handler: async args => {\n const command = await import(\"./siteDeployCommand.mjs\");\n const {\n version,\n autoVersion,\n gitTagPrefix,\n ...restArgs\n } = args;\n const selectedVersion = args.version != null ? args.version : {\n type: args.autoVersion,\n tagPrefix: args.gitTagPrefix\n };\n await command.default({\n ...restArgs,\n selectedVersion\n });\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nexport async function logSiteDeployCommandConfigFileOverride(args, config) {\n if (config?.autoVersion != null && args.autoVersion !== config.autoVersion.type) {\n consola.debug(`Overriding \"autoVersion\" from config file with ${args.autoVersion}`);\n }\n if (config?.directory != null && args.directory !== config.directory) {\n consola.debug(`Overriding \"directory\" from config file with ${args.directory}`);\n }\n if (config?.autoVersion?.type === \"git-describe\" && config.autoVersion.tagPrefix != null && args.gitTagPrefix != null && args.gitTagPrefix !== config.autoVersion.tagPrefix) {\n consola.debug(`Overriding \"gitTagPrefix\" from config file with ${args.gitTagPrefix}`);\n }\n if (config?.uploadOnly != null && args.uploadOnly !== config.uploadOnly) {\n consola.debug(`Overriding \"uploadOnly\" from config file with ${args.uploadOnly}`);\n }\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nexport async function logSiteCommandConfigFileOverride(args, config) {\n if (config?.site.application != null && args.application !== config.site.application) {\n consola.debug(`Overriding \"application\" from config file with ${args.application}`);\n }\n if (config?.foundryUrl != null && args.foundryUrl !== config.foundryUrl) {\n consola.debug(`Overriding \"foundryUrl\" from config file with ${args.foundryUrl}`);\n }\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport deleteCmd from \"./delete/index.js\";\nimport get from \"./get/index.js\";\nimport list from \"./list/index.js\";\nimport set from \"./set/index.js\";\nimport unset from \"./unset/index.js\";\nconst command = {\n command: \"version\",\n describe: \"Manage site versions\",\n builder: argv => {\n return argv.command(list).command(get).command(set).command(unset).command(deleteCmd).demandCommand();\n },\n handler: async args => {}\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"delete <version>\",\n describe: \"Delete site version\",\n builder: argv => {\n return argv.positional(\"version\", {\n type: \"string\",\n demandOption: true,\n description: \"Version to delete\"\n }).option(\"yes\", {\n alias: \"y\",\n type: \"boolean\",\n description: \"Automatically confirm destructive changes\"\n }).group([\"yes\"], \"Delete Options\");\n },\n handler: async args => {\n const command = await import(\"./versionDeleteCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"get\",\n describe: \"Get live site version\",\n builder: argv => {\n return argv;\n },\n handler: async args => {\n const command = await import(\"./versionGetCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"list\",\n describe: \"List site versions\",\n builder: argv => {\n return argv;\n },\n handler: async args => {\n const command = await import(\"./versionListCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"set <version>\",\n describe: \"Set live site version\",\n builder: argv => {\n return argv.positional(\"version\", {\n type: \"string\",\n demandOption: true,\n description: \"Version to set as live\"\n });\n },\n handler: async args => {\n const command = await import(\"./versionSetCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"unset\",\n describe: \"Clear live site version\",\n builder: argv => {\n return argv.option(\"yes\", {\n alias: \"y\",\n type: \"boolean\",\n description: \"Automatically confirm destructive changes\"\n }).group([\"yes\"], \"Unset Options\");\n },\n handler: async args => {\n const command = await import(\"./versionUnsetCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { YargsCheckError } from \"@osdk/cli.common\";\nimport configLoader from \"../../util/configLoader.js\";\nimport { logConfigFileMiddleware } from \"../../yargs/logConfigFileMiddleware.js\";\nimport deploy from \"./deploy/index.js\";\nimport { logWidgetSetCommandConfigFileOverride } from \"./logWidgetSetCommandConfigFileOverride.js\";\nimport version from \"./version/index.js\";\nconst command = {\n command: \"widgetset\",\n describe: \"Manage your widget set\",\n builder: async argv => {\n const config = await configLoader(\"widgetSet\");\n const widgetSet = config?.foundryConfig.widgetSet.rid;\n const foundryUrl = config?.foundryConfig.foundryUrl;\n return argv.options({\n widgetSet: {\n type: \"string\",\n coerce: widgetSet => widgetSet,\n ...(widgetSet ? {\n default: widgetSet\n } : {\n demandOption: true\n }),\n description: \"Widget set resource identifier (rid)\"\n },\n foundryUrl: {\n coerce: foundryUrl => foundryUrl.replace(/\\/$/, \"\"),\n type: \"string\",\n ...(foundryUrl ? {\n default: foundryUrl\n } : {\n demandOption: true\n }),\n description: \"URL for the Foundry stack\"\n },\n token: {\n type: \"string\",\n conflicts: \"tokenFile\",\n description: \"Foundry API token\"\n },\n tokenFile: {\n type: \"string\",\n conflicts: \"token\",\n description: \"Path to file containing Foundry API token\"\n }\n }).group([\"widgetSet\", \"foundryUrl\", \"token\", \"tokenFile\"], \"Common Options\").command(version).command(deploy).check(args => {\n if (!args.foundryUrl.startsWith(\"https://\")) {\n throw new YargsCheckError(\"foundryUrl must start with https://\");\n }\n return true;\n }).middleware(args => {\n void logConfigFileMiddleware(\"widgetSet\");\n logWidgetSetCommandConfigFileOverride(args, config?.foundryConfig);\n }).demandCommand();\n },\n handler: async args => {}\n};\nexport default command;","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { MANIFEST_FILE_LOCATION } from \"@osdk/widget.api\";\nimport configLoader from \"../../../util/configLoader.js\";\nimport { logWidgetSetDeployCommandConfigFileOverride } from \"./logWidgetSetDeployCommandConfigFileOverride.js\";\nconst command = {\n command: \"deploy\",\n describe: `Deploy a new widget set version\\n\\nThe widget set files must contain a ` + `valid manifest at ${MANIFEST_FILE_LOCATION} which determines the version` + ` to publish. The widget set files may be uploaded to the widget set` + ` itself, or to a separate code repository if it has been authorized to` + ` publish the widget set.`,\n builder: async argv => {\n const config = await configLoader(\"widgetSet\");\n const widgetSetConfig = config?.foundryConfig.widgetSet;\n const directory = widgetSetConfig?.directory;\n const repository = widgetSetConfig?.repository;\n return argv.options({\n directory: {\n type: \"string\",\n description: \"Directory containing widget set files\",\n ...(directory ? {\n default: directory\n } : {\n demandOption: true\n })\n },\n repository: {\n type: \"string\",\n coerce: application => application,\n ...(repository ? {\n default: repository\n } : {}),\n description: \"Code repository resource identifier (rid) publishing the widget set\"\n }\n }).group([\"directory\", \"repository\"], \"Deploy Options\").middleware(args => logWidgetSetDeployCommandConfigFileOverride(args, widgetSetConfig));\n },\n handler: async args => {\n const command = await import(\"./widgetSetDeployCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nexport function logWidgetSetDeployCommandConfigFileOverride(args, config) {\n if (config?.directory != null && args.directory !== config.directory) {\n consola.debug(`Overriding \"directory\" from config file with ${args.directory}`);\n }\n if (config?.repository != null && args.repository !== config.repository) {\n consola.debug(`Overriding \"repository\" from config file with ${args.repository}`);\n }\n}","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nexport function logWidgetSetCommandConfigFileOverride(args, config) {\n if (config?.widgetSet.rid != null && args.widgetSet !== config.widgetSet.rid) {\n consola.debug(`Overriding \"rid\" from config file with ${args.widgetSet}`);\n }\n if (config?.foundryUrl != null && args.foundryUrl !== config.foundryUrl) {\n consola.debug(`Overriding \"foundryUrl\" from config file with ${args.foundryUrl}`);\n }\n}","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport deleteCmd from \"./delete/index.js\";\nimport info from \"./info/index.js\";\nimport list from \"./list/index.js\";\nconst command = {\n command: \"version\",\n describe: \"Manage widget set versions\",\n builder: argv => {\n return argv.command(list).command(info).command(deleteCmd).demandCommand();\n },\n handler: async args => {}\n};\nexport default command;","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"delete <version>\",\n describe: \"Delete widget set version\",\n builder: argv => {\n return argv.positional(\"version\", {\n type: \"string\",\n demandOption: true,\n description: \"Version to delete\"\n }).option(\"yes\", {\n alias: \"y\",\n type: \"boolean\",\n description: \"Automatically confirm destructive changes\"\n }).group([\"yes\"], \"Delete Options\");\n },\n handler: async args => {\n const command = await import(\"./versionDeleteCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"info <version>\",\n describe: \"Load info about widget set version\",\n builder: argv => {\n return argv.positional(\"version\", {\n type: \"string\",\n demandOption: true,\n description: \"Version to load\"\n });\n },\n handler: async args => {\n const command = await import(\"./versionInfoCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"list\",\n describe: \"List widget set versions\",\n builder: argv => {\n return argv;\n },\n handler: async args => {\n const command = await import(\"./versionListCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;"]}
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/cli.ts","../../../cli.cmd.typescript/build/esm/index.js","../../../cli.cmd.typescript/build/esm/cli.js","../../../cli.cmd.typescript/build/esm/generate/generate.js","../../../cli.cmd.typescript/build/esm/typescriptCommand.js","../../src/commands/auth/index.ts","../../src/commands/auth/login/index.ts","../../src/commands/site/index.ts","../../src/util/configLoader.ts","../../src/yargs/logConfigFileMiddleware.ts","../../src/commands/site/deploy/index.ts","../../src/commands/site/deploy/logSiteDeployCommandConfigFileOverride.ts","../../src/commands/site/logSiteCommandConfigFileOverride.ts","../../src/commands/site/version/index.ts","../../src/commands/site/version/delete/index.ts","../../src/commands/site/version/get/index.ts","../../src/commands/site/version/list/index.ts","../../src/commands/site/version/set/index.ts","../../src/commands/site/version/unset/index.ts","../../src/commands/widgetset/index.ts","../../src/commands/widgetset/deploy/index.ts","../../src/commands/widgetset/deploy/logWidgetSetDeployCommandConfigFileOverride.ts","../../src/commands/widgetset/logWidgetSetCommandConfigFileOverride.ts","../../src/commands/widgetset/version/index.ts","../../src/commands/widgetset/version/delete/index.ts","../../src/commands/widgetset/version/info/index.ts","../../src/commands/widgetset/version/list/index.ts"],"names":["command","consola","autoVersion","application","foundryUrl","deploy_default","delete_default","list_default","version_default","widgetSet","cli"],"mappings":";;;;;;;;AAAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;AAiBO,IAAM,eAAkB,GAAA;AAAA,EAC7B,OAAS,EAAA,UAAA;AAAA,EACT,QAAU,EAAA,uCAAA;AAAA,EACV,SAAS,CAAQ,IAAA,KAAA;AACf,IAAA,OAAO,KAAK,OAAQ,CAAA;AAAA,MAClB,MAAQ,EAAA;AAAA,QACN,IAAM,EAAA,QAAA;AAAA,QACN,WAAa,EAAA,oCAAA;AAAA,QACb,YAAc,EAAA;AAAA,OAChB;AAAA,MACA,YAAc,EAAA;AAAA,QACZ,WAAa,EAAA,gCAAA;AAAA,QACb,IAAM,EAAA,QAAA;AAAA,QACN,YAAc,EAAA,KAAA;AAAA,QACd,SAAA,EAAW,CAAC,YAAA,EAAc,UAAU;AAAA,OACtC;AAAA,MACA,UAAY,EAAA;AAAA,QACV,WAAa,EAAA,sDAAA;AAAA,QACb,IAAM,EAAA,QAAA;AAAA,QACN,YAAc,EAAA,KAAA;AAAA,QACd,SAAW,EAAA,cAAA;AAAA,QACX,OAAS,EAAA,UAAA;AAAA,QACT,KAAO,EAAA;AAAA;AAAA,OACT;AAAA,MACA,QAAU,EAAA;AAAA,QACR,WAAa,EAAA,iCAAA;AAAA,QACb,IAAM,EAAA,QAAA;AAAA,QACN,YAAc,EAAA,KAAA;AAAA,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inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport { cli } from \"./cli.js\";","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport typescript from \"@osdk/cli.cmd.typescript\";\nimport { ExitProcessError, getYargsBase } from \"@osdk/cli.common\";\nimport { consola } from \"consola\";\nimport auth from \"./commands/auth/index.js\";\nimport site from \"./commands/site/index.js\";\nimport widgetSet from \"./commands/widgetset/index.js\";\nexport async function cli(args = process.argv) {\n consola.info(`Palantir OSDK CLI ${process.env.PACKAGE_VERSION}\\n`);\n const base = getYargsBase(args);\n\n // Special handling where failures happen before yargs does its error handling within .fail\n try {\n return await base.command(site).command(widgetSet).command({\n command: \"unstable\",\n aliases: [\"experimental\"],\n describe: \"Unstable commands\",\n builder: argv => {\n return argv.command(typescript).command(auth).demandCommand();\n },\n handler: _args => {}\n }).parseAsync();\n } catch (err) {\n if (err instanceof ExitProcessError) {\n consola.error(err);\n }\n }\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport { cli } from \"./cli.js\";\nexport { typescriptCommand as default } from \"./typescriptCommand.js\";","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ExitProcessError, getYargsBase } from \"@osdk/cli.common\";\nimport { consola } from \"consola\";\nimport { generateCommand } from \"./generate/generate.js\";\nexport async function cli(args = process.argv) {\n consola.info(`Palantir OSDK CLI ${\"0.31.1\"}\\n`);\n const base = getYargsBase(args);\n\n // Special handling where failures happen before yargs does its error handling within .fail\n try {\n return await base.command(generateCommand).parseAsync();\n } catch (err) {\n if (err instanceof ExitProcessError) {\n consola.error(err);\n }\n }\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { isValidSemver, YargsCheckError } from \"@osdk/cli.common\";\nexport const generateCommand = {\n command: \"generate\",\n describe: \"Generate TypeScript SDK from ontology\",\n builder: argv => {\n return argv.options({\n outDir: {\n type: \"string\",\n description: \"Where to place the generated files\",\n demandOption: true\n },\n ontologyPath: {\n description: \"Path to the ontology wire json\",\n type: \"string\",\n demandOption: false,\n conflicts: [\"foundryUrl\", \"clientId\"]\n },\n foundryUrl: {\n description: \"URL for the foundry stack that contains the ontology\",\n type: \"string\",\n demandOption: false,\n conflicts: \"ontologyPath\",\n implies: \"clientId\",\n alias: \"stack\" // for backwards compatibility\n },\n clientId: {\n description: \"OAuth client ID for application\",\n type: \"string\",\n demandOption: false,\n conflicts: \"ontologyPath\",\n implies: \"foundryUrl\"\n },\n ontologyRid: {\n description: \"Limit requests to this ontology rid only\",\n type: \"string\",\n demandOption: false\n },\n ontologyWritePath: {\n description: \"Path to write the ontology wire json\",\n type: \"string\",\n demandOption: false,\n conflicts: [\"ontologyPath\"]\n },\n beta: {\n type: \"boolean\",\n description: \"Should generate beta sdk\",\n demandOption: false\n },\n packageType: {\n default: \"commonjs\",\n choices: [\"commonjs\", \"module\"]\n },\n version: {\n type: \"string\",\n description: \"Version of the generated code, or 'dev'\",\n demandOption: true\n },\n packageName: {\n type: \"string\",\n description: \"Name of the package to generate\"\n },\n asPackage: {\n type: \"boolean\",\n description: \"Generate as a package (makes a package.json and co)\"\n },\n clean: {\n type: \"boolean\",\n description: \"Clean the output directory before generating\"\n },\n internal: {\n type: \"boolean\",\n default: false\n },\n externalObjects: {\n type: \"string\",\n coerce: value => {\n const map = new Map();\n if (value) {\n for (const entry of value.split(\",\")) {\n const [api, ns] = entry.split(\":\");\n map.set(api, ns);\n }\n }\n return map;\n },\n default: \"\"\n },\n externalInterfaces: {\n type: \"string\",\n coerce: value => {\n const map = new Map();\n if (value) {\n for (const entry of value.split(\",\")) {\n const [api, ns] = entry.split(\":\");\n map.set(api, ns);\n }\n }\n return map;\n },\n default: \"\"\n },\n skipPackageJsonUpdate: {\n type: \"boolean\",\n description: \"Skip updating package.json with OSDK dependencies\",\n default: false\n }\n }).group([\"ontologyPath\", \"outDir\", \"version\"], \"Generate from a local file\").group([\"foundryUrl\", \"clientId\", \"outDir\", \"ontologyWritePath\", \"version\"], \"OR Generate from Foundry\").group([\"packageName\", \"as\"], \"Package generation options\").check(args => {\n if (!args.ontologyPath && !args.foundryUrl) {\n throw new YargsCheckError(\"Must specify either ontologyPath or foundryUrl and clientId\");\n }\n if (args.version !== \"dev\" && !isValidSemver(args.version)) {\n throw new YargsCheckError(\"Version must be 'dev' or a valid semver version\");\n }\n if (args.asPackage && !args.packageName) {\n throw new YargsCheckError(\"Must specify packageName when generating as a package\");\n }\n if (args.asPackage && !args.version) {\n throw new YargsCheckError(\"Must specify version when generating as a package\");\n }\n return true;\n });\n },\n handler: async args => {\n const command = await import(\"./handleGenerate.mjs\");\n await command.handleGenerate(args);\n }\n};","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { generateCommand } from \"./generate/generate.js\";\nexport const typescriptCommand = {\n command: \"typescript\",\n describe: \"Manage code\",\n builder: argv => {\n return argv.command(generateCommand).demandCommand();\n },\n handler: async () => {}\n};","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport login from \"./login/index.js\";\nconst auth = {\n command: \"auth\",\n describe: \"Manage your session\",\n builder: argv => {\n return argv.options({\n foundryUrl: {\n type: \"string\",\n demandOption: true,\n alias: \"baseUrl\",\n // for backwards compatibility\n describe: \"URL for the Foundry stack\"\n }\n }).command(login).demandCommand();\n },\n handler: async args => {}\n};\nexport default auth;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const command = {\n command: \"login\",\n describe: \"Authenticate with an application ID\",\n builder: argv => {\n return argv.option(\"clientId\", {\n alias: \"applicationId\",\n // for backwards compatibility\n type: \"string\",\n demandOption: true,\n describe: \"OAuth client ID for application\"\n });\n },\n handler: async args => {\n const command = await import(\"@osdk/cli.common/loginFlow\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { YargsCheckError } from \"@osdk/cli.common\";\nimport configLoader from \"../../util/configLoader.js\";\nimport { logConfigFileMiddleware } from \"../../yargs/logConfigFileMiddleware.js\";\nimport deploy from \"./deploy/index.js\";\nimport { logSiteCommandConfigFileOverride } from \"./logSiteCommandConfigFileOverride.js\";\nimport version from \"./version/index.js\";\nconst command = {\n command: \"site\",\n describe: \"Manage your site\",\n builder: async argv => {\n const config = await configLoader(\"site\");\n const application = config?.foundryConfig.site.application;\n const foundryUrl = config?.foundryConfig.foundryUrl;\n return argv.options({\n application: {\n type: \"string\",\n coerce: application => application,\n ...(application ? {\n default: application\n } : {\n demandOption: true\n }),\n description: \"Application resource identifier (rid)\"\n },\n foundryUrl: {\n coerce: foundryUrl => foundryUrl.replace(/\\/$/, \"\"),\n type: \"string\",\n ...(foundryUrl ? {\n default: foundryUrl\n } : {\n demandOption: true\n }),\n description: \"URL for the Foundry stack\"\n },\n token: {\n type: \"string\",\n conflicts: \"tokenFile\",\n description: \"Foundry API token\"\n },\n tokenFile: {\n type: \"string\",\n conflicts: \"token\",\n description: \"Path to file containing Foundry API token\"\n }\n }).group([\"application\", \"foundryUrl\", \"token\", \"tokenFile\"], \"Common Options\").command(version).command(deploy).check(args => {\n if (!args.foundryUrl.startsWith(\"https://\")) {\n throw new YargsCheckError(\"foundryUrl must start with https://\");\n }\n return true;\n }).middleware(args => {\n void logConfigFileMiddleware(\"site\");\n void logSiteCommandConfigFileOverride(args, config?.foundryConfig);\n }).demandCommand();\n },\n handler: async args => {}\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ExitProcessError } from \"@osdk/cli.common\";\nimport { loadFoundryConfig } from \"@osdk/foundry-config-json\";\nlet siteConfigPromise = undefined;\nlet widgetSetConfigPromise = undefined;\nfunction getConfig(type) {\n if (type === \"site\") {\n return getSiteConfig();\n } else {\n return getWidgetSetConfig();\n }\n}\nfunction getSiteConfig() {\n if (siteConfigPromise == null) {\n siteConfigPromise = loadFoundryConfig(\"site\").catch(e => {\n throw new ExitProcessError(2, e instanceof Error ? e.message : undefined);\n });\n }\n return siteConfigPromise;\n}\nfunction getWidgetSetConfig() {\n if (widgetSetConfigPromise == null) {\n widgetSetConfigPromise = loadFoundryConfig(\"widgetSet\").catch(e => {\n throw new ExitProcessError(2, e instanceof Error ? e.message : undefined);\n });\n }\n return widgetSetConfigPromise;\n}\nexport default getConfig;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nimport getConfig from \"../util/configLoader.js\";\nlet firstTime = true;\nexport async function logConfigFileMiddleware(type) {\n if (firstTime) {\n firstTime = false;\n const config = getConfig(type);\n const configFilePath = (await config)?.configFilePath;\n if (configFilePath) {\n consola.debug(`Using configuration from file: \"${configFilePath}\"`);\n }\n }\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { isValidSemver, YargsCheckError } from \"@osdk/cli.common\";\nimport configLoader from \"../../../util/configLoader.js\";\nimport { logSiteDeployCommandConfigFileOverride } from \"./logSiteDeployCommandConfigFileOverride.js\";\nconst command = {\n command: \"deploy\",\n describe: \"Deploy a new site version\",\n builder: async argv => {\n const config = await configLoader(\"site\");\n const siteConfig = config?.foundryConfig.site;\n const directory = siteConfig?.directory;\n const autoVersion = siteConfig?.autoVersion;\n const gitTagPrefix = autoVersion?.type === \"git-describe\" ? autoVersion.tagPrefix : undefined;\n const uploadOnly = siteConfig?.uploadOnly;\n return argv.options({\n directory: {\n type: \"string\",\n description: \"Directory containing site files\",\n ...(directory ? {\n default: directory\n } : {\n demandOption: true\n })\n },\n uploadOnly: {\n type: \"boolean\",\n description: \"Upload new site version only without setting as live\",\n default: uploadOnly ?? false\n },\n version: {\n type: \"string\",\n description: \"New version of site to deploy\",\n ...(autoVersion == null ? {\n conflicts: \"autoVersion\"\n } : {})\n },\n autoVersion: {\n coerce: autoVersion => autoVersion,\n type: \"string\",\n choices: [\"git-describe\", \"package-json\"],\n description: \"Enable auto versioning\",\n ...(autoVersion != null ? {\n default: autoVersion.type\n } : {\n conflicts: \"version\"\n })\n },\n gitTagPrefix: {\n type: \"string\",\n description: \"Prefix to match git tags on when 'git-describe' auto versioning is used. If not provided, all tags are matched and the prefix 'v' is stripped if present.\",\n ...(gitTagPrefix ? {\n default: gitTagPrefix\n } : {})\n },\n snapshot: {\n type: \"boolean\",\n description: \"Upload a snapshot version only with automatic retention\",\n default: false\n },\n snapshotId: {\n type: \"string\",\n description: \"Optional id to associate with snapshot version as an alias\"\n }\n }).group([\"directory\", \"version\", \"uploadOnly\"], \"Deploy Options\").group([\"autoVersion\", \"gitTagPrefix\"], \"Auto Version Options\").group([\"snapshot\", \"snapshotId\"], \"Snapshot Options\").check(args => {\n // This is required because we can't use demandOption with conflicts. conflicts protects us against the case where both are provided.\n // So this case is for when nothing is provided.\n if (autoVersion == null && args.autoVersion == null && args.version == null) {\n throw new YargsCheckError(\"One of --version or --autoVersion must be specified\");\n }\n if (args.version != null && !isValidSemver(args.version)) {\n throw new YargsCheckError(`--version \"${args.version}\" must be a valid SemVer string`);\n }\n const autoVersionType = args.autoVersion ?? autoVersion;\n if (autoVersionType != null && autoVersionType !== \"git-describe\" && autoVersionType !== \"package-json\") {\n throw new YargsCheckError(`Only 'git-describe' and 'package-json' are supported for autoVersion`);\n }\n const gitTagPrefixValue = args.gitTagPrefix ?? gitTagPrefix;\n if (gitTagPrefixValue != null && autoVersionType !== \"git-describe\") {\n throw new YargsCheckError(`--gitTagPrefix is only supported when --autoVersion=git-describe`);\n }\n if (args.uploadOnly && args.snapshot) {\n throw new YargsCheckError(`--uploadOnly and --snapshot cannot be enabled together`);\n }\n if (args.snapshotId != null && !args.snapshot) {\n throw new YargsCheckError(\"--snapshotId is only supported when --snapshot is enabled\");\n }\n return true;\n }).middleware(args => logSiteDeployCommandConfigFileOverride(args, siteConfig));\n },\n handler: async args => {\n const command = await import(\"./siteDeployCommand.mjs\");\n const {\n version,\n autoVersion,\n gitTagPrefix,\n ...restArgs\n } = args;\n const selectedVersion = args.version != null ? args.version : {\n type: args.autoVersion,\n tagPrefix: args.gitTagPrefix\n };\n await command.default({\n ...restArgs,\n selectedVersion\n });\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nexport async function logSiteDeployCommandConfigFileOverride(args, config) {\n if (config?.autoVersion != null && args.autoVersion !== config.autoVersion.type) {\n consola.debug(`Overriding \"autoVersion\" from config file with ${args.autoVersion}`);\n }\n if (config?.directory != null && args.directory !== config.directory) {\n consola.debug(`Overriding \"directory\" from config file with ${args.directory}`);\n }\n if (config?.autoVersion?.type === \"git-describe\" && config.autoVersion.tagPrefix != null && args.gitTagPrefix != null && args.gitTagPrefix !== config.autoVersion.tagPrefix) {\n consola.debug(`Overriding \"gitTagPrefix\" from config file with ${args.gitTagPrefix}`);\n }\n if (config?.uploadOnly != null && args.uploadOnly !== config.uploadOnly) {\n consola.debug(`Overriding \"uploadOnly\" from config file with ${args.uploadOnly}`);\n }\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nexport async function logSiteCommandConfigFileOverride(args, config) {\n if (config?.site.application != null && args.application !== config.site.application) {\n consola.debug(`Overriding \"application\" from config file with ${args.application}`);\n }\n if (config?.foundryUrl != null && args.foundryUrl !== config.foundryUrl) {\n consola.debug(`Overriding \"foundryUrl\" from config file with ${args.foundryUrl}`);\n }\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport deleteCmd from \"./delete/index.js\";\nimport get from \"./get/index.js\";\nimport list from \"./list/index.js\";\nimport set from \"./set/index.js\";\nimport unset from \"./unset/index.js\";\nconst command = {\n command: \"version\",\n describe: \"Manage site versions\",\n builder: argv => {\n return argv.command(list).command(get).command(set).command(unset).command(deleteCmd).demandCommand();\n },\n handler: async args => {}\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"delete <version>\",\n describe: \"Delete site version\",\n builder: argv => {\n return argv.positional(\"version\", {\n type: \"string\",\n demandOption: true,\n description: \"Version to delete\"\n }).option(\"yes\", {\n alias: \"y\",\n type: \"boolean\",\n description: \"Automatically confirm destructive changes\"\n }).group([\"yes\"], \"Delete Options\");\n },\n handler: async args => {\n const command = await import(\"./versionDeleteCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"get\",\n describe: \"Get live site version\",\n builder: argv => {\n return argv;\n },\n handler: async args => {\n const command = await import(\"./versionGetCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"list\",\n describe: \"List site versions\",\n builder: argv => {\n return argv;\n },\n handler: async args => {\n const command = await import(\"./versionListCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"set <version>\",\n describe: \"Set live site version\",\n builder: argv => {\n return argv.positional(\"version\", {\n type: \"string\",\n demandOption: true,\n description: \"Version to set as live\"\n });\n },\n handler: async args => {\n const command = await import(\"./versionSetCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"unset\",\n describe: \"Clear live site version\",\n builder: argv => {\n return argv.option(\"yes\", {\n alias: \"y\",\n type: \"boolean\",\n description: \"Automatically confirm destructive changes\"\n }).group([\"yes\"], \"Unset Options\");\n },\n handler: async args => {\n const command = await import(\"./versionUnsetCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { YargsCheckError } from \"@osdk/cli.common\";\nimport configLoader from \"../../util/configLoader.js\";\nimport { logConfigFileMiddleware } from \"../../yargs/logConfigFileMiddleware.js\";\nimport deploy from \"./deploy/index.js\";\nimport { logWidgetSetCommandConfigFileOverride } from \"./logWidgetSetCommandConfigFileOverride.js\";\nimport version from \"./version/index.js\";\nconst command = {\n command: \"widgetset\",\n describe: \"Manage your widget set\",\n builder: async argv => {\n const config = await configLoader(\"widgetSet\");\n const widgetSet = config?.foundryConfig.widgetSet.rid;\n const foundryUrl = config?.foundryConfig.foundryUrl;\n return argv.options({\n widgetSet: {\n type: \"string\",\n coerce: widgetSet => widgetSet,\n ...(widgetSet ? {\n default: widgetSet\n } : {\n demandOption: true\n }),\n description: \"Widget set resource identifier (rid)\"\n },\n foundryUrl: {\n coerce: foundryUrl => foundryUrl.replace(/\\/$/, \"\"),\n type: \"string\",\n ...(foundryUrl ? {\n default: foundryUrl\n } : {\n demandOption: true\n }),\n description: \"URL for the Foundry stack\"\n },\n token: {\n type: \"string\",\n conflicts: \"tokenFile\",\n description: \"Foundry API token\"\n },\n tokenFile: {\n type: \"string\",\n conflicts: \"token\",\n description: \"Path to file containing Foundry API token\"\n }\n }).group([\"widgetSet\", \"foundryUrl\", \"token\", \"tokenFile\"], \"Common Options\").command(version).command(deploy).check(args => {\n if (!args.foundryUrl.startsWith(\"https://\")) {\n throw new YargsCheckError(\"foundryUrl must start with https://\");\n }\n return true;\n }).middleware(args => {\n void logConfigFileMiddleware(\"widgetSet\");\n logWidgetSetCommandConfigFileOverride(args, config?.foundryConfig);\n }).demandCommand();\n },\n handler: async args => {}\n};\nexport default command;","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { MANIFEST_FILE_LOCATION } from \"@osdk/widget.api\";\nimport configLoader from \"../../../util/configLoader.js\";\nimport { logWidgetSetDeployCommandConfigFileOverride } from \"./logWidgetSetDeployCommandConfigFileOverride.js\";\nconst command = {\n command: \"deploy\",\n describe: `Deploy a new widget set version\\n\\nThe widget set files must contain a ` + `valid manifest at ${MANIFEST_FILE_LOCATION} which determines the version` + ` to publish. The widget set files may be uploaded to the widget set` + ` itself, or to a separate code repository if it has been authorized to` + ` publish the widget set.`,\n builder: async argv => {\n const config = await configLoader(\"widgetSet\");\n const widgetSetConfig = config?.foundryConfig.widgetSet;\n const directory = widgetSetConfig?.directory;\n const repository = widgetSetConfig?.repository;\n return argv.options({\n directory: {\n type: \"string\",\n description: \"Directory containing widget set files\",\n ...(directory ? {\n default: directory\n } : {\n demandOption: true\n })\n },\n repository: {\n type: \"string\",\n coerce: application => application,\n ...(repository ? {\n default: repository\n } : {}),\n description: \"Code repository resource identifier (rid) publishing the widget set\"\n }\n }).group([\"directory\", \"repository\"], \"Deploy Options\").middleware(args => logWidgetSetDeployCommandConfigFileOverride(args, widgetSetConfig));\n },\n handler: async args => {\n const command = await import(\"./widgetSetDeployCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nexport function logWidgetSetDeployCommandConfigFileOverride(args, config) {\n if (config?.directory != null && args.directory !== config.directory) {\n consola.debug(`Overriding \"directory\" from config file with ${args.directory}`);\n }\n if (config?.repository != null && args.repository !== config.repository) {\n consola.debug(`Overriding \"repository\" from config file with ${args.repository}`);\n }\n}","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nexport function logWidgetSetCommandConfigFileOverride(args, config) {\n if (config?.widgetSet.rid != null && args.widgetSet !== config.widgetSet.rid) {\n consola.debug(`Overriding \"rid\" from config file with ${args.widgetSet}`);\n }\n if (config?.foundryUrl != null && args.foundryUrl !== config.foundryUrl) {\n consola.debug(`Overriding \"foundryUrl\" from config file with ${args.foundryUrl}`);\n }\n}","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport deleteCmd from \"./delete/index.js\";\nimport info from \"./info/index.js\";\nimport list from \"./list/index.js\";\nconst command = {\n command: \"version\",\n describe: \"Manage widget set versions\",\n builder: argv => {\n return argv.command(list).command(info).command(deleteCmd).demandCommand();\n },\n handler: async args => {}\n};\nexport default command;","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"delete <version>\",\n describe: \"Delete widget set version\",\n builder: argv => {\n return argv.positional(\"version\", {\n type: \"string\",\n demandOption: true,\n description: \"Version to delete\"\n }).option(\"yes\", {\n alias: \"y\",\n type: \"boolean\",\n description: \"Automatically confirm destructive changes\"\n }).group([\"yes\"], \"Delete Options\");\n },\n handler: async args => {\n const command = await import(\"./versionDeleteCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"info <version>\",\n describe: \"Load info about widget set version\",\n builder: argv => {\n return argv.positional(\"version\", {\n type: \"string\",\n demandOption: true,\n description: \"Version to load\"\n });\n },\n handler: async args => {\n const command = await import(\"./versionInfoCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"list\",\n describe: \"List widget set versions\",\n builder: argv => {\n return argv;\n },\n handler: async args => {\n const command = await import(\"./versionListCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-
|
|
1
|
+
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-JU2R7TE3.js';
|
|
2
2
|
import './chunk-W7U4ETYH.js';
|
|
3
3
|
import { autoVersion, AutoVersionError } from './chunk-XF44FMSL.js';
|
|
4
4
|
import { ExitProcessError } from './chunk-BL3NTXLM.js';
|
|
@@ -174,5 +174,5 @@ ${colorize("green", link)}`,
|
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
export { siteDeployCommand as default };
|
|
177
|
-
//# sourceMappingURL=siteDeployCommand-
|
|
178
|
-
//# sourceMappingURL=siteDeployCommand-
|
|
177
|
+
//# sourceMappingURL=siteDeployCommand-FBG464PC.js.map
|
|
178
|
+
//# sourceMappingURL=siteDeployCommand-FBG464PC.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/commands/site/deploy/siteDeployCommand.mts","../../src/util/maybeUpdateJemmaCustomMetadata.ts"],"names":["consola","fs2"],"mappings":";;;;;;;;;;;;;;;AAAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;AAoBA,IAAM,8B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AA,OAAQ,CAAA,IAAA,CAAK,CAAU,OAAA,EAAA,WAAA,CAAY,aAAa,KAAO,EAAA;AAAA,MACrD,MAAQ,EAAA;AAAA,KACT,CAAC,CAAe,YAAA,EAAA,YAAA,CAAa,SAAS,CAAQ,MAAA,CAAA,CAAA;AAAA,GAChD,CAAA;AACH;AACA,SAAS,WAAA,CAAY,OAAO,IAAM,EAAA;AAChC,EAAAA,QAAQ,GAAI,CAAA;AAAA,IACV,OAAA,EAAS,GAAG,KAAK;;AAAA,EAAO,QAAA,CAAS,OAAS,EAAA,IAAI,CAAC,CAAA,CAAA;AAAA,IAC/C,KAAO,EAAA;AAAA,MACL,OAAS,EAAA,CAAA;AAAA,MACT,WAAa,EAAA,OAAA;AAAA,MACb,WAAa,EAAA;AAAA;AACf,GACD,CAAA;AACH","file":"siteDeployCommand-ZF3US2OO.js","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nimport { createInternalClientContext, thirdPartyApplications } from \"#net\";\nimport { ExitProcessError } from \"@osdk/cli.common\";\nimport { autoVersion, AutoVersionError } from \"@osdk/foundry-config-json\";\nimport archiver from \"archiver\";\nimport { colorize } from \"consola/utils\";\nimport * as fs from \"node:fs\";\nimport path from \"node:path\";\nimport { Readable } from \"node:stream\";\nimport prettyBytes from \"pretty-bytes\";\nimport { maybeUpdateJemmaCustomMetadata } from \"../../../util/maybeUpdateJemmaCustomMetadata.js\";\nimport { loadToken } from \"../../../util/token.js\";\nexport default async function siteDeployCommand({\n selectedVersion,\n application,\n foundryUrl,\n uploadOnly,\n snapshot,\n snapshotId,\n directory,\n token,\n tokenFile\n}) {\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n let siteVersion;\n if (typeof selectedVersion === \"string\") {\n siteVersion = selectedVersion;\n } else {\n siteVersion = await findAutoVersion(selectedVersion);\n consola.info(`Auto version inferred next version to be: ${siteVersion}`);\n }\n consola.debug(`Using directory for site files: \"${path.resolve(directory)}`);\n const stat = await fs.promises.stat(directory);\n if (!stat.isDirectory()) {\n throw new ExitProcessError(2, \"Specified path exists but is not a directory\");\n }\n consola.start(\"Zipping site files\");\n const archive = archiver(\"zip\").directory(directory, false);\n logArchiveStats(archive);\n if (snapshot) {\n await uploadSnapshot(clientCtx, application, siteVersion, snapshotId ?? \"\", archive);\n consola.info(\"Snapshot mode enabled, skipping deployment\");\n return;\n }\n await upload(clientCtx, application, siteVersion, archive);\n let siteLink;\n if (!uploadOnly) {\n const website = await thirdPartyApplications.deployWebsite(clientCtx, application, {\n version: siteVersion\n });\n consola.success(`Deployed ${siteVersion} successfully`);\n const domain = website.subdomains[0];\n if (domain != null) {\n siteLink = `https://${domain}`;\n logSiteLink(\"View live site:\", siteLink);\n }\n } else {\n const website = await thirdPartyApplications.getWebsite(clientCtx, application);\n const domain = website?.subdomains[0];\n consola.info(\"Upload only mode enabled, skipping deployment\");\n if (domain != null) {\n siteLink = `https://${domain}/.system/preview?previewVersion=${siteVersion}`;\n logSiteLink(\"Preview link:\", siteLink);\n }\n }\n\n // Write the site link and version to the custom metadata file when the site link is present\n if (siteLink != null) {\n maybeUpdateJemmaCustomMetadata({\n siteLink,\n siteVersion\n });\n }\n}\nasync function findAutoVersion(config) {\n try {\n return await autoVersion(config);\n } catch (e) {\n throw new ExitProcessError(2, e instanceof Error ? e.message : undefined, e instanceof AutoVersionError ? e.tip : undefined);\n }\n}\nasync function uploadSnapshot(clientCtx, application, siteVersion, snapshotId, archive) {\n consola.start(\"Uploading snapshot site files\");\n await Promise.all([thirdPartyApplications.uploadSnapshotVersion(clientCtx, application, siteVersion, snapshotId, Readable.toWeb(archive) // This cast is because the dom fetch doesn't align type wise with streams\n ), archive.finalize()]);\n consola.success(\"Snapshot upload complete\");\n}\nasync function upload(clientCtx, application, siteVersion, archive) {\n consola.start(\"Uploading site files\");\n await Promise.all([thirdPartyApplications.uploadVersion(clientCtx, application, siteVersion, Readable.toWeb(archive) // This cast is because the dom fetch doesn't align type wise with streams\n ), archive.finalize()]);\n consola.success(\"Upload complete\");\n}\nfunction logArchiveStats(archive) {\n let archiveStats = {\n fileCount: 0,\n bytes: 0\n };\n archive.on(\"progress\", progress => {\n archiveStats = {\n fileCount: progress.entries.total,\n bytes: progress.fs.totalBytes\n };\n });\n archive.on(\"finish\", () => {\n consola.info(`Zipped ${prettyBytes(archiveStats.bytes, {\n binary: true\n })} total over ${archiveStats.fileCount} files`);\n });\n}\nfunction logSiteLink(title, link) {\n consola.box({\n message: `${title}\\n\\n${colorize(\"green\", link)}`,\n style: {\n padding: 2,\n borderColor: \"green\",\n borderStyle: \"rounded\"\n }\n });\n}","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nimport * as fs from \"node:fs\";\n\n// Environment variable names\nconst JEMMA_JOB_CUSTOM_METADATA_PATH = \"JEMMA_JOB_CUSTOM_METADATA_PATH\";\n\n/**\n * Writes the site link to the custom metadata file (if the path is provided by the JEMMA_JOB_CUSTOM_METADATA_PATH environment variable).\n *\n * The custom metadata file will be updated with the following format:\n *\n * {\n * \"siteLink\": \"https://example.com\",\n * \"siteVersion\": \"1.0.0\"\n * }\n *\n * @param siteLink The site link to write to the custom metadata file.\n * @param siteVersion The site version to write to the custom metadata file.\n */\nexport function maybeUpdateJemmaCustomMetadata({\n siteLink,\n siteVersion\n}) {\n const jemmaCustomMetadataFilePath = getJemmaCustomMetadataFilePath();\n if (jemmaCustomMetadataFilePath == null) {\n return;\n }\n try {\n // Read or create the custom metadata file\n const customMetadata = getOrCreateCustomMetadata(jemmaCustomMetadataFilePath);\n\n // Set the site link in the custom metadata\n customMetadata.siteLink = siteLink;\n customMetadata.siteVersion = siteVersion;\n\n // Write the custom metadata to the file\n writeCustomMetadata(jemmaCustomMetadataFilePath, customMetadata);\n } catch (err) {\n consola.error(`Failed to update custom metadata file at ${jemmaCustomMetadataFilePath}`);\n }\n}\nfunction getJemmaCustomMetadataFilePath() {\n return process.env[JEMMA_JOB_CUSTOM_METADATA_PATH];\n}\nfunction getOrCreateCustomMetadata(jemmaCustomMetadataFilePath) {\n try {\n const parsedValue = JSON.parse(fs.readFileSync(jemmaCustomMetadataFilePath, \"utf-8\"));\n return typeof parsedValue === \"object\" && parsedValue != null ? parsedValue : {};\n } catch (e) {\n return {};\n }\n}\nfunction writeCustomMetadata(jemmaCustomMetadataFilePath, customMetadata) {\n fs.writeFileSync(jemmaCustomMetadataFilePath, JSON.stringify(customMetadata, null, 2));\n}"]}
|
|
1
|
+
{"version":3,"sources":["../../src/commands/site/deploy/siteDeployCommand.mts","../../src/util/maybeUpdateJemmaCustomMetadata.ts"],"names":["consola","fs2"],"mappings":";;;;;;;;;;;;;;;AAAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;AAoBA,IAAM,8BAAiC,GAAA,gCAAA;AAehC,SAAS,8BAA+B,CAAA;AAAA,EAC7C,QAAA;AAAA,EACA;AACF,CAAG,EAAA;AACD,EAAA,MAAM,8BAA8B,8BAA+B,EAAA;AACnE,EAAA,IAAI,+BAA+B,IAAM,EAAA;A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A,CAAA;AAAA,GAChD,CAAA;AACH;AACA,SAAS,WAAA,CAAY,OAAO,IAAM,EAAA;AAChC,EAAAA,QAAQ,GAAI,CAAA;AAAA,IACV,OAAA,EAAS,GAAG,KAAK;;AAAA,EAAO,QAAA,CAAS,OAAS,EAAA,IAAI,CAAC,CAAA,CAAA;AAAA,IAC/C,KAAO,EAAA;AAAA,MACL,OAAS,EAAA,CAAA;AAAA,MACT,WAAa,EAAA,OAAA;AAAA,MACb,WAAa,EAAA;AAAA;AACf,GACD,CAAA;AACH","file":"siteDeployCommand-FBG464PC.js","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nimport { createInternalClientContext, thirdPartyApplications } from \"#net\";\nimport { ExitProcessError } from \"@osdk/cli.common\";\nimport { autoVersion, AutoVersionError } from \"@osdk/foundry-config-json\";\nimport archiver from \"archiver\";\nimport { colorize } from \"consola/utils\";\nimport * as fs from \"node:fs\";\nimport path from \"node:path\";\nimport { Readable } from \"node:stream\";\nimport prettyBytes from \"pretty-bytes\";\nimport { maybeUpdateJemmaCustomMetadata } from \"../../../util/maybeUpdateJemmaCustomMetadata.js\";\nimport { loadToken } from \"../../../util/token.js\";\nexport default async function siteDeployCommand({\n selectedVersion,\n application,\n foundryUrl,\n uploadOnly,\n snapshot,\n snapshotId,\n directory,\n token,\n tokenFile\n}) {\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n let siteVersion;\n if (typeof selectedVersion === \"string\") {\n siteVersion = selectedVersion;\n } else {\n siteVersion = await findAutoVersion(selectedVersion);\n consola.info(`Auto version inferred next version to be: ${siteVersion}`);\n }\n consola.debug(`Using directory for site files: \"${path.resolve(directory)}`);\n const stat = await fs.promises.stat(directory);\n if (!stat.isDirectory()) {\n throw new ExitProcessError(2, \"Specified path exists but is not a directory\");\n }\n consola.start(\"Zipping site files\");\n const archive = archiver(\"zip\").directory(directory, false);\n logArchiveStats(archive);\n if (snapshot) {\n await uploadSnapshot(clientCtx, application, siteVersion, snapshotId ?? \"\", archive);\n consola.info(\"Snapshot mode enabled, skipping deployment\");\n return;\n }\n await upload(clientCtx, application, siteVersion, archive);\n let siteLink;\n if (!uploadOnly) {\n const website = await thirdPartyApplications.deployWebsite(clientCtx, application, {\n version: siteVersion\n });\n consola.success(`Deployed ${siteVersion} successfully`);\n const domain = website.subdomains[0];\n if (domain != null) {\n siteLink = `https://${domain}`;\n logSiteLink(\"View live site:\", siteLink);\n }\n } else {\n const website = await thirdPartyApplications.getWebsite(clientCtx, application);\n const domain = website?.subdomains[0];\n consola.info(\"Upload only mode enabled, skipping deployment\");\n if (domain != null) {\n siteLink = `https://${domain}/.system/preview?previewVersion=${siteVersion}`;\n logSiteLink(\"Preview link:\", siteLink);\n }\n }\n\n // Write the site link and version to the custom metadata file when the site link is present\n if (siteLink != null) {\n maybeUpdateJemmaCustomMetadata({\n siteLink,\n siteVersion\n });\n }\n}\nasync function findAutoVersion(config) {\n try {\n return await autoVersion(config);\n } catch (e) {\n throw new ExitProcessError(2, e instanceof Error ? e.message : undefined, e instanceof AutoVersionError ? e.tip : undefined);\n }\n}\nasync function uploadSnapshot(clientCtx, application, siteVersion, snapshotId, archive) {\n consola.start(\"Uploading snapshot site files\");\n await Promise.all([thirdPartyApplications.uploadSnapshotVersion(clientCtx, application, siteVersion, snapshotId, Readable.toWeb(archive) // This cast is because the dom fetch doesn't align type wise with streams\n ), archive.finalize()]);\n consola.success(\"Snapshot upload complete\");\n}\nasync function upload(clientCtx, application, siteVersion, archive) {\n consola.start(\"Uploading site files\");\n await Promise.all([thirdPartyApplications.uploadVersion(clientCtx, application, siteVersion, Readable.toWeb(archive) // This cast is because the dom fetch doesn't align type wise with streams\n ), archive.finalize()]);\n consola.success(\"Upload complete\");\n}\nfunction logArchiveStats(archive) {\n let archiveStats = {\n fileCount: 0,\n bytes: 0\n };\n archive.on(\"progress\", progress => {\n archiveStats = {\n fileCount: progress.entries.total,\n bytes: progress.fs.totalBytes\n };\n });\n archive.on(\"finish\", () => {\n consola.info(`Zipped ${prettyBytes(archiveStats.bytes, {\n binary: true\n })} total over ${archiveStats.fileCount} files`);\n });\n}\nfunction logSiteLink(title, link) {\n consola.box({\n message: `${title}\\n\\n${colorize(\"green\", link)}`,\n style: {\n padding: 2,\n borderColor: \"green\",\n borderStyle: \"rounded\"\n }\n });\n}","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nimport * as fs from \"node:fs\";\n\n// Environment variable names\nconst JEMMA_JOB_CUSTOM_METADATA_PATH = \"JEMMA_JOB_CUSTOM_METADATA_PATH\";\n\n/**\n * Writes the site link to the custom metadata file (if the path is provided by the JEMMA_JOB_CUSTOM_METADATA_PATH environment variable).\n *\n * The custom metadata file will be updated with the following format:\n *\n * {\n * \"siteLink\": \"https://example.com\",\n * \"siteVersion\": \"1.0.0\"\n * }\n *\n * @param siteLink The site link to write to the custom metadata file.\n * @param siteVersion The site version to write to the custom metadata file.\n */\nexport function maybeUpdateJemmaCustomMetadata({\n siteLink,\n siteVersion\n}) {\n const jemmaCustomMetadataFilePath = getJemmaCustomMetadataFilePath();\n if (jemmaCustomMetadataFilePath == null) {\n return;\n }\n try {\n // Read or create the custom metadata file\n const customMetadata = getOrCreateCustomMetadata(jemmaCustomMetadataFilePath);\n\n // Set the site link in the custom metadata\n customMetadata.siteLink = siteLink;\n customMetadata.siteVersion = siteVersion;\n\n // Write the custom metadata to the file\n writeCustomMetadata(jemmaCustomMetadataFilePath, customMetadata);\n } catch (err) {\n consola.error(`Failed to update custom metadata file at ${jemmaCustomMetadataFilePath}`);\n }\n}\nfunction getJemmaCustomMetadataFilePath() {\n return process.env[JEMMA_JOB_CUSTOM_METADATA_PATH];\n}\nfunction getOrCreateCustomMetadata(jemmaCustomMetadataFilePath) {\n try {\n const parsedValue = JSON.parse(fs.readFileSync(jemmaCustomMetadataFilePath, \"utf-8\"));\n return typeof parsedValue === \"object\" && parsedValue != null ? parsedValue : {};\n } catch (e) {\n return {};\n }\n}\nfunction writeCustomMetadata(jemmaCustomMetadataFilePath, customMetadata) {\n fs.writeFileSync(jemmaCustomMetadataFilePath, JSON.stringify(customMetadata, null, 2));\n}"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { handlePromptCancel } from './chunk-4L3JS54F.js';
|
|
2
|
-
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-
|
|
2
|
+
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-JU2R7TE3.js';
|
|
3
3
|
import './chunk-W7U4ETYH.js';
|
|
4
4
|
import './chunk-BL3NTXLM.js';
|
|
5
5
|
import { init_esm_shims } from './chunk-CINFOKVJ.js';
|
|
@@ -33,5 +33,5 @@ ${colorize("bold", "This action cannot be undone.")}`, {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export { versionDeleteCommand as default };
|
|
36
|
-
//# sourceMappingURL=versionDeleteCommand-
|
|
37
|
-
//# sourceMappingURL=versionDeleteCommand-
|
|
36
|
+
//# sourceMappingURL=versionDeleteCommand-BJ55S24I.js.map
|
|
37
|
+
//# sourceMappingURL=versionDeleteCommand-BJ55S24I.js.map
|
package/build/esm/{versionDeleteCommand-GTGX4WSA.js.map → versionDeleteCommand-BJ55S24I.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/commands/site/version/delete/versionDeleteCommand.mts"],"names":[],"mappings":";;;;;;;;;AAAA,cAAA,EAAA;AAqBA,eAAO,oBAA4C,CAAA;AAAA,EACjD,OAAA;AAAA,EACA,GAAA;AAAA,EACA,WAAA;AAAA,EACA,UAAA;AAAA,EACA,KAAA;AAAA,EACA;AACF,CAAG,EAAA;AACD,EAAA,IAAI,CAAC,GAAK,EAAA;AACR,IAAA,MAAM,SAAY,GAAA,MAAM,OAAQ,CAAA,MAAA,CAAO,+CAA+C,OAAO,CAAA;AAAA,EAAM,QAAS,CAAA,MAAA,EAAQ,+BAA+B,CAAC,CAAI,CAAA,EAAA;AAAA,MACtJ,IAAM,EAAA,SAAA;AAAA,MACN,MAAQ,EAAA;AAAA,KACT,CAAA;AACD,IAAA,kBAAA,CAAmB,SAAS,CAAA;AAAA;AAE9B,EAAQ,OAAA,CAAA,KAAA,CAAM,CAAoB,iBAAA,EAAA,OAAO,CAAE,CAAA,CAAA;AAC3C,EAAA,MAAM,WAAc,GAAA,MAAM,SAAU,CAAA,KAAA,EAAO,SAAS,CAAA;AACpD,EAAA,MAAM,gBAAgB,MAAM,WAAA;AAC5B,EAAM,MAAA,SAAA,GAAY,2BAA4B,CAAA,UAAA,EAAY,aAAa,CAAA;AACvE,EAAA,MAAM,gCAAuB,CAAA,aAAA,CAAc,SAAW,EAAA,WAAA,EAAa,OAAO,CAAA;AAC1E,EAAQ,OAAA,CAAA,OAAA,CAAQ,CAAmB,gBAAA,EAAA,OAAO,CAAE,CAAA,CAAA;AAC9C","file":"versionDeleteCommand-
|
|
1
|
+
{"version":3,"sources":["../../src/commands/site/version/delete/versionDeleteCommand.mts"],"names":[],"mappings":";;;;;;;;;AAAA,cAAA,EAAA;AAqBA,eAAO,oBAA4C,CAAA;AAAA,EACjD,OAAA;AAAA,EACA,GAAA;AAAA,EACA,WAAA;AAAA,EACA,UAAA;AAAA,EACA,KAAA;AAAA,EACA;AACF,CAAG,EAAA;AACD,EAAA,IAAI,CAAC,GAAK,EAAA;AACR,IAAA,MAAM,SAAY,GAAA,MAAM,OAAQ,CAAA,MAAA,CAAO,+CAA+C,OAAO,CAAA;AAAA,EAAM,QAAS,CAAA,MAAA,EAAQ,+BAA+B,CAAC,CAAI,CAAA,EAAA;AAAA,MACtJ,IAAM,EAAA,SAAA;AAAA,MACN,MAAQ,EAAA;AAAA,KACT,CAAA;AACD,IAAA,kBAAA,CAAmB,SAAS,CAAA;AAAA;AAE9B,EAAQ,OAAA,CAAA,KAAA,CAAM,CAAoB,iBAAA,EAAA,OAAO,CAAE,CAAA,CAAA;AAC3C,EAAA,MAAM,WAAc,GAAA,MAAM,SAAU,CAAA,KAAA,EAAO,SAAS,CAAA;AACpD,EAAA,MAAM,gBAAgB,MAAM,WAAA;AAC5B,EAAM,MAAA,SAAA,GAAY,2BAA4B,CAAA,UAAA,EAAY,aAAa,CAAA;AACvE,EAAA,MAAM,gCAAuB,CAAA,aAAA,CAAc,SAAW,EAAA,WAAA,EAAa,OAAO,CAAA;AAC1E,EAAQ,OAAA,CAAA,OAAA,CAAQ,CAAmB,gBAAA,EAAA,OAAO,CAAE,CAAA,CAAA;AAC9C","file":"versionDeleteCommand-BJ55S24I.js","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createInternalClientContext, thirdPartyApplications } from \"#net\";\nimport { consola } from \"consola\";\nimport { colorize } from \"consola/utils\";\nimport { handlePromptCancel } from \"../../../../consola/handlePromptCancel.js\";\nimport { loadToken } from \"../../../../util/token.js\";\nexport default async function versionDeleteCommand({\n version,\n yes,\n application,\n foundryUrl,\n token,\n tokenFile\n}) {\n if (!yes) {\n const confirmed = await consola.prompt(`Are you sure you want to delete the version ${version}?\\n${colorize(\"bold\", \"This action cannot be undone.\")}`, {\n type: \"confirm\",\n cancel: \"symbol\"\n });\n handlePromptCancel(confirmed);\n }\n consola.start(`Deleting version ${version}`);\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n await thirdPartyApplications.deleteVersion(clientCtx, application, version);\n consola.success(`Deleted version ${version}`);\n}"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { handlePromptCancel } from './chunk-4L3JS54F.js';
|
|
2
|
-
import { loadToken, createInternalClientContext, widget_registry_exports } from './chunk-
|
|
2
|
+
import { loadToken, createInternalClientContext, widget_registry_exports } from './chunk-JU2R7TE3.js';
|
|
3
3
|
import './chunk-W7U4ETYH.js';
|
|
4
4
|
import './chunk-BL3NTXLM.js';
|
|
5
5
|
import { init_esm_shims } from './chunk-CINFOKVJ.js';
|
|
@@ -33,5 +33,5 @@ ${colorize("bold", "This action cannot be undone.")}`, {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export { versionDeleteCommand as default };
|
|
36
|
-
//# sourceMappingURL=versionDeleteCommand-
|
|
37
|
-
//# sourceMappingURL=versionDeleteCommand-
|
|
36
|
+
//# sourceMappingURL=versionDeleteCommand-QEMSA254.js.map
|
|
37
|
+
//# sourceMappingURL=versionDeleteCommand-QEMSA254.js.map
|
package/build/esm/{versionDeleteCommand-KPDNFCLU.js.map → versionDeleteCommand-QEMSA254.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/commands/widgetset/version/delete/versionDeleteCommand.mts"],"names":[],"mappings":";;;;;;;;;AAAA,cAAA,EAAA;AAqBA,eAAO,oBAA4C,CAAA;AAAA,EACjD,OAAA;AAAA,EACA,GAAA;AAAA,EACA,SAAA;AAAA,EACA,UAAA;AAAA,EACA,KAAA;AAAA,EACA;AACF,CAAG,EAAA;AACD,EAAA,IAAI,CAAC,GAAK,EAAA;AACR,IAAA,MAAM,SAAY,GAAA,MAAM,OAAQ,CAAA,MAAA,CAAO,+CAA+C,OAAO,CAAA;AAAA,EAAM,QAAS,CAAA,MAAA,EAAQ,+BAA+B,CAAC,CAAI,CAAA,EAAA;AAAA,MACtJ,IAAM,EAAA,SAAA;AAAA,MACN,MAAQ,EAAA;AAAA,KACT,CAAA;AACD,IAAA,kBAAA,CAAmB,SAAS,CAAA;AAAA;AAE9B,EAAQ,OAAA,CAAA,KAAA,CAAM,CAAoB,iBAAA,EAAA,OAAO,CAAE,CAAA,CAAA;AAC3C,EAAA,MAAM,WAAc,GAAA,MAAM,SAAU,CAAA,KAAA,EAAO,SAAS,CAAA;AACpD,EAAA,MAAM,gBAAgB,MAAM,WAAA;AAC5B,EAAM,MAAA,SAAA,GAAY,2BAA4B,CAAA,UAAA,EAAY,aAAa,CAAA;AACvE,EAAA,MAAM,uBAAe,CAAA,aAAA,CAAc,SAAW,EAAA,SAAA,EAAW,OAAO,CAAA;AAChE,EAAQ,OAAA,CAAA,OAAA,CAAQ,CAAmB,gBAAA,EAAA,OAAO,CAAE,CAAA,CAAA;AAC9C","file":"versionDeleteCommand-
|
|
1
|
+
{"version":3,"sources":["../../src/commands/widgetset/version/delete/versionDeleteCommand.mts"],"names":[],"mappings":";;;;;;;;;AAAA,cAAA,EAAA;AAqBA,eAAO,oBAA4C,CAAA;AAAA,EACjD,OAAA;AAAA,EACA,GAAA;AAAA,EACA,SAAA;AAAA,EACA,UAAA;AAAA,EACA,KAAA;AAAA,EACA;AACF,CAAG,EAAA;AACD,EAAA,IAAI,CAAC,GAAK,EAAA;AACR,IAAA,MAAM,SAAY,GAAA,MAAM,OAAQ,CAAA,MAAA,CAAO,+CAA+C,OAAO,CAAA;AAAA,EAAM,QAAS,CAAA,MAAA,EAAQ,+BAA+B,CAAC,CAAI,CAAA,EAAA;AAAA,MACtJ,IAAM,EAAA,SAAA;AAAA,MACN,MAAQ,EAAA;AAAA,KACT,CAAA;AACD,IAAA,kBAAA,CAAmB,SAAS,CAAA;AAAA;AAE9B,EAAQ,OAAA,CAAA,KAAA,CAAM,CAAoB,iBAAA,EAAA,OAAO,CAAE,CAAA,CAAA;AAC3C,EAAA,MAAM,WAAc,GAAA,MAAM,SAAU,CAAA,KAAA,EAAO,SAAS,CAAA;AACpD,EAAA,MAAM,gBAAgB,MAAM,WAAA;AAC5B,EAAM,MAAA,SAAA,GAAY,2BAA4B,CAAA,UAAA,EAAY,aAAa,CAAA;AACvE,EAAA,MAAM,uBAAe,CAAA,aAAA,CAAc,SAAW,EAAA,SAAA,EAAW,OAAO,CAAA;AAChE,EAAQ,OAAA,CAAA,OAAA,CAAQ,CAAmB,gBAAA,EAAA,OAAO,CAAE,CAAA,CAAA;AAC9C","file":"versionDeleteCommand-QEMSA254.js","sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createInternalClientContext, widgetRegistry } from \"#net\";\nimport { consola } from \"consola\";\nimport { colorize } from \"consola/utils\";\nimport { handlePromptCancel } from \"../../../../consola/handlePromptCancel.js\";\nimport { loadToken } from \"../../../../util/token.js\";\nexport default async function versionDeleteCommand({\n version,\n yes,\n widgetSet,\n foundryUrl,\n token,\n tokenFile\n}) {\n if (!yes) {\n const confirmed = await consola.prompt(`Are you sure you want to delete the version ${version}?\\n${colorize(\"bold\", \"This action cannot be undone.\")}`, {\n type: \"confirm\",\n cancel: \"symbol\"\n });\n handlePromptCancel(confirmed);\n }\n consola.start(`Deleting version ${version}`);\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n await widgetRegistry.deleteRelease(clientCtx, widgetSet, version);\n consola.success(`Deleted version ${version}`);\n}"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-
|
|
1
|
+
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-JU2R7TE3.js';
|
|
2
2
|
import './chunk-W7U4ETYH.js';
|
|
3
3
|
import './chunk-BL3NTXLM.js';
|
|
4
4
|
import { init_esm_shims } from './chunk-CINFOKVJ.js';
|
|
@@ -26,5 +26,5 @@ async function versionGetCommand({
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export { versionGetCommand as default };
|
|
29
|
-
//# sourceMappingURL=versionGetCommand-
|
|
30
|
-
//# sourceMappingURL=versionGetCommand-
|
|
29
|
+
//# sourceMappingURL=versionGetCommand-IX4CMFPV.js.map
|
|
30
|
+
//# sourceMappingURL=versionGetCommand-IX4CMFPV.js.map
|