@osdk/cli 0.32.0-beta.2 → 0.32.0-beta.4
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 +8 -0
- package/build/esm/{chunk-YOTB5E2E.js → chunk-5EG4W4EY.js} +7 -34
- package/build/esm/chunk-5EG4W4EY.js.map +1 -0
- package/build/esm/{chunk-4L3JS54F.js → chunk-FQRKVHAE.js} +2 -4
- package/build/esm/chunk-FQRKVHAE.js.map +1 -0
- package/build/esm/chunk-PZ5AY32C.js +9 -0
- package/build/esm/chunk-PZ5AY32C.js.map +1 -0
- package/build/esm/index.js +20 -226
- package/build/esm/index.js.map +1 -1
- package/build/esm/{siteDeployCommand-M5L2QJB3.js → siteDeployCommand-FGAA5AF6.js} +6 -13
- package/build/esm/siteDeployCommand-FGAA5AF6.js.map +1 -0
- package/build/esm/{versionDeleteCommand-5UDQWHW7.js → versionDeleteCommand-HQBNJZQO.js} +5 -9
- package/build/esm/versionDeleteCommand-HQBNJZQO.js.map +1 -0
- package/build/esm/{versionDeleteCommand-W4LWFTB7.js → versionDeleteCommand-POCHBGDL.js} +5 -9
- package/build/esm/versionDeleteCommand-POCHBGDL.js.map +1 -0
- package/build/esm/{versionGetCommand-LHHNHKGF.js → versionGetCommand-FVKH4K6S.js} +4 -8
- package/build/esm/versionGetCommand-FVKH4K6S.js.map +1 -0
- package/build/esm/{versionInfoCommand-U3QJ7CJR.js → versionInfoCommand-F44PTFBW.js} +4 -8
- package/build/esm/versionInfoCommand-F44PTFBW.js.map +1 -0
- package/build/esm/{versionListCommand-7EJ2J4JO.js → versionListCommand-SMJ6RCRM.js} +4 -8
- package/build/esm/versionListCommand-SMJ6RCRM.js.map +1 -0
- package/build/esm/{versionListCommand-VQ5TRLAK.js → versionListCommand-X5PFEG2U.js} +4 -8
- package/build/esm/versionListCommand-X5PFEG2U.js.map +1 -0
- package/build/esm/{versionSetCommand-LRLP7PHB.js → versionSetCommand-YGYI2W74.js} +4 -8
- package/build/esm/versionSetCommand-YGYI2W74.js.map +1 -0
- package/build/esm/{versionUnsetCommand-GYOKECVD.js → versionUnsetCommand-SUZPZFLN.js} +5 -9
- package/build/esm/versionUnsetCommand-SUZPZFLN.js.map +1 -0
- package/build/esm/{widgetSetDeployCommand-PWUXCOA7.js → widgetSetDeployCommand-42GOCEWP.js} +6 -9
- package/build/esm/widgetSetDeployCommand-42GOCEWP.js.map +1 -0
- package/package.json +8 -8
- package/build/esm/acorn-2YJLPGID.js +0 -4014
- package/build/esm/acorn-2YJLPGID.js.map +0 -1
- package/build/esm/angular-2UQQBORC.js +0 -3921
- package/build/esm/angular-2UQQBORC.js.map +0 -1
- package/build/esm/babel-BV4W3BOJ.js +0 -9588
- package/build/esm/babel-BV4W3BOJ.js.map +0 -1
- package/build/esm/chunk-4L3JS54F.js.map +0 -1
- package/build/esm/chunk-ALV6NI27.js +0 -127
- package/build/esm/chunk-ALV6NI27.js.map +0 -1
- package/build/esm/chunk-BL3NTXLM.js +0 -84
- package/build/esm/chunk-BL3NTXLM.js.map +0 -1
- package/build/esm/chunk-CINFOKVJ.js +0 -43
- package/build/esm/chunk-CINFOKVJ.js.map +0 -1
- package/build/esm/chunk-CKZAZPXC.js +0 -28
- package/build/esm/chunk-CKZAZPXC.js.map +0 -1
- package/build/esm/chunk-CMWYDM5Q.js +0 -332
- package/build/esm/chunk-CMWYDM5Q.js.map +0 -1
- package/build/esm/chunk-W7U4ETYH.js +0 -239
- package/build/esm/chunk-W7U4ETYH.js.map +0 -1
- package/build/esm/chunk-XF44FMSL.js +0 -221
- package/build/esm/chunk-XF44FMSL.js.map +0 -1
- package/build/esm/chunk-YOTB5E2E.js.map +0 -1
- package/build/esm/estree-PTS7QPRO.js +0 -6145
- package/build/esm/estree-PTS7QPRO.js.map +0 -1
- package/build/esm/find-up-GVGEKQPQ.js +0 -4
- package/build/esm/find-up-GVGEKQPQ.js.map +0 -1
- package/build/esm/flow-Y46VD55R.js +0 -27169
- package/build/esm/flow-Y46VD55R.js.map +0 -1
- package/build/esm/glimmer-SE4IEQF6.js +0 -6974
- package/build/esm/glimmer-SE4IEQF6.js.map +0 -1
- package/build/esm/graphql-QF7PMC3R.js +0 -1720
- package/build/esm/graphql-QF7PMC3R.js.map +0 -1
- package/build/esm/handleGenerate-JM5HIHXW.js +0 -19283
- package/build/esm/handleGenerate-JM5HIHXW.js.map +0 -1
- package/build/esm/html-EQKLXLBJ.js +0 -5810
- package/build/esm/html-EQKLXLBJ.js.map +0 -1
- package/build/esm/loginFlow-GP5ZJP3D.js +0 -4
- package/build/esm/loginFlow-GP5ZJP3D.js.map +0 -1
- package/build/esm/markdown-FZBHQ3B4.js +0 -6697
- package/build/esm/markdown-FZBHQ3B4.js.map +0 -1
- package/build/esm/meriyah-Q2DK6BAD.js +0 -4343
- package/build/esm/meriyah-Q2DK6BAD.js.map +0 -1
- package/build/esm/postcss-SR3FYBVU.js +0 -6281
- package/build/esm/postcss-SR3FYBVU.js.map +0 -1
- package/build/esm/siteDeployCommand-M5L2QJB3.js.map +0 -1
- package/build/esm/typescript-DEUJRDXE.js +0 -13078
- package/build/esm/typescript-DEUJRDXE.js.map +0 -1
- package/build/esm/versionDeleteCommand-5UDQWHW7.js.map +0 -1
- package/build/esm/versionDeleteCommand-W4LWFTB7.js.map +0 -1
- package/build/esm/versionGetCommand-LHHNHKGF.js.map +0 -1
- package/build/esm/versionInfoCommand-U3QJ7CJR.js.map +0 -1
- package/build/esm/versionListCommand-7EJ2J4JO.js.map +0 -1
- package/build/esm/versionListCommand-VQ5TRLAK.js.map +0 -1
- package/build/esm/versionSetCommand-LRLP7PHB.js.map +0 -1
- package/build/esm/versionUnsetCommand-GYOKECVD.js.map +0 -1
- package/build/esm/widgetSetDeployCommand-PWUXCOA7.js.map +0 -1
- package/build/esm/yaml-KQJSRZTS.js +0 -5822
- package/build/esm/yaml-KQJSRZTS.js.map +0 -1
- package/build/types/util/maybeUpdateJemmaCustomMetadata.test.d.ts +0 -1
- package/build/types/util/maybeUpdateJemmaCustomMetadata.test.d.ts.map +0 -1
- package/build/types/util/token.test.d.ts +0 -1
- package/build/types/util/token.test.d.ts.map +0 -1
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;AA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AK,CAAA,CAAA,kBAAA,EAAqB,eAA2B;AAAA,CAAI,CAAA;AACjE,EAAM,MAAA,IAAA,GAAO,aAAa,IAAI,CAAA;AAG9B,EAAI,IAAA;AACF,IAAO,OAAA,MAAM,KAAK,OAAQ,CAAA,YAAI,EAAE,OAAQ,CAAA,iBAAS,EAAE,OAAQ,CAAA;AAAA,MACzD,OAAS,EAAA,UAAA;AAAA,MACT,OAAA,EAAS,CAAC,cAAc,CAAA;AAAA,MACxB,QAAU,EAAA,mBAAA;AAAA,MACV,SAAS,CAAQ,IAAA,KAAA;AACf,QAAA,OAAO,KAAK,OAAQ,CAAA,iBAAU,EAAE,OAAQ,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.32.0-beta.2\"}\\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 branch: {\n type: \"string\",\n description: \"The branch rid of the ontology to generate from\"\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/commands/auth/login/index.ts","../../src/commands/auth/index.ts","../../src/util/configLoader.ts","../../src/yargs/logConfigFileMiddleware.ts","../../src/commands/site/deploy/logSiteDeployCommandConfigFileOverride.ts","../../src/commands/site/deploy/index.ts","../../src/commands/site/logSiteCommandConfigFileOverride.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/site/version/index.ts","../../src/commands/site/index.ts","../../src/commands/widgetset/deploy/logWidgetSetDeployCommandConfigFileOverride.ts","../../src/commands/widgetset/deploy/index.ts","../../src/commands/widgetset/logWidgetSetCommandConfigFileOverride.ts","../../src/commands/widgetset/version/delete/index.ts","../../src/commands/widgetset/version/info/index.ts","../../src/commands/widgetset/version/list/index.ts","../../src/commands/widgetset/version/index.ts","../../src/commands/widgetset/index.ts","../../src/cli.ts"],"names":["command","consola","autoVersion","application","foundryUrl","YargsCheckError","deploy_default","delete_default","list_default","version_default","widgetSet","ExitProcessError"],"mappings":";;;;;;;;AAgBO,IAAM,OAAU,GAAA;AAAA,EACrB,OAAS,EAAA,OAAA;AAAA,EACT,QAAU,EAAA,qCAAA;AAAA,EACV,SAAS,CAAQ,IAAA,KAAA;AACf,IAAO,OAAA,IAAA,CAAK,OAAO,UAAY,EAAA;AAAA,MAC7B,KAAO,EAAA,eAAA;AAAA;AAAA,MAEP,IAAM,EAAA,QAAA;AAAA,MACN,YAAc,EAAA,IAAA;AAAA,MACd,QAAU,EAAA;AAAA,KACX,CAAA;AAAA,GACH;AAAA,EACA,OAAA,EAAS,OAAM,IAAQ,KAAA;AACrB,IAAMA,MAAAA,SAAAA,GAAU,MAAM,OAAO,4BAA4B,CAAA;AACzD,IAAMA,MAAAA,SAAAA,CAAQ,QAAQ,IAAI,CAAA;AAAA;AAE9B,CAAA;AACA,IAAO,aAAQ,GAAA,OAAA;;;AChBf,IAAM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AE,OAAQ,CAAA,iBAAS,EAAE,OAAQ,CAAA;AAAA,MACzD,OAAS,EAAA,UAAA;AAAA,MACT,OAAA,EAAS,CAAC,cAAc,CAAA;AAAA,MACxB,QAAU,EAAA,mBAAA;AAAA,MACV,SAAS,CAAQ,IAAA,KAAA;AACf,QAAA,OAAO,KAAK,OAAQ,CAAA,UAAU,EAAE,OAAQ,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,eAAeU,gBAAkB,EAAA;AACnC,MAAAV,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 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 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\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 { 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 { 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 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\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 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\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 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 { 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 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\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;","/*\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\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 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}"]}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import { autoVersion, AutoVersionError } from './chunk-XF44FMSL.js';
|
|
4
|
-
import { ExitProcessError } from './chunk-BL3NTXLM.js';
|
|
5
|
-
import './chunk-CMWYDM5Q.js';
|
|
6
|
-
import { init_esm_shims } from './chunk-CINFOKVJ.js';
|
|
1
|
+
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-5EG4W4EY.js';
|
|
2
|
+
import './chunk-PZ5AY32C.js';
|
|
7
3
|
import { consola } from 'consola';
|
|
4
|
+
import { ExitProcessError } from '@osdk/cli.common';
|
|
5
|
+
import { autoVersion, AutoVersionError } from '@osdk/foundry-config-json';
|
|
8
6
|
import archiver from 'archiver';
|
|
9
7
|
import { colorize } from 'consola/utils';
|
|
10
8
|
import * as fs from 'fs';
|
|
@@ -12,11 +10,6 @@ import path from 'path';
|
|
|
12
10
|
import { Readable } from 'stream';
|
|
13
11
|
import prettyBytes from 'pretty-bytes';
|
|
14
12
|
|
|
15
|
-
// src/commands/site/deploy/siteDeployCommand.mts
|
|
16
|
-
init_esm_shims();
|
|
17
|
-
|
|
18
|
-
// src/util/maybeUpdateJemmaCustomMetadata.ts
|
|
19
|
-
init_esm_shims();
|
|
20
13
|
var JEMMA_JOB_CUSTOM_METADATA_PATH = "JEMMA_JOB_CUSTOM_METADATA_PATH";
|
|
21
14
|
function maybeUpdateJemmaCustomMetadata({
|
|
22
15
|
siteLink,
|
|
@@ -174,5 +167,5 @@ ${colorize("green", link)}`,
|
|
|
174
167
|
}
|
|
175
168
|
|
|
176
169
|
export { siteDeployCommand as default };
|
|
177
|
-
//# sourceMappingURL=siteDeployCommand-
|
|
178
|
-
//# sourceMappingURL=siteDeployCommand-
|
|
170
|
+
//# sourceMappingURL=siteDeployCommand-FGAA5AF6.js.map
|
|
171
|
+
//# sourceMappingURL=siteDeployCommand-FGAA5AF6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/util/maybeUpdateJemmaCustomMetadata.ts","../../src/commands/site/deploy/siteDeployCommand.mts"],"names":["consola","fs2"],"mappings":";;;;;;;;;;;;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;AACvC,I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A;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-FGAA5AF6.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 { 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}","/*\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}"]}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import { handlePromptCancel } from './chunk-
|
|
2
|
-
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-BL3NTXLM.js';
|
|
5
|
-
import { init_esm_shims } from './chunk-CINFOKVJ.js';
|
|
1
|
+
import { handlePromptCancel } from './chunk-FQRKVHAE.js';
|
|
2
|
+
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-5EG4W4EY.js';
|
|
3
|
+
import './chunk-PZ5AY32C.js';
|
|
6
4
|
import { consola } from 'consola';
|
|
7
5
|
import { colorize } from 'consola/utils';
|
|
8
6
|
|
|
9
|
-
// src/commands/site/version/delete/versionDeleteCommand.mts
|
|
10
|
-
init_esm_shims();
|
|
11
7
|
async function versionDeleteCommand({
|
|
12
8
|
version,
|
|
13
9
|
yes,
|
|
@@ -33,5 +29,5 @@ ${colorize("bold", "This action cannot be undone.")}`, {
|
|
|
33
29
|
}
|
|
34
30
|
|
|
35
31
|
export { versionDeleteCommand as default };
|
|
36
|
-
//# sourceMappingURL=versionDeleteCommand-
|
|
37
|
-
//# sourceMappingURL=versionDeleteCommand-
|
|
32
|
+
//# sourceMappingURL=versionDeleteCommand-HQBNJZQO.js.map
|
|
33
|
+
//# sourceMappingURL=versionDeleteCommand-HQBNJZQO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/commands/site/version/delete/versionDeleteCommand.mts"],"names":[],"mappings":";;;;;;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-HQBNJZQO.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,13 +1,9 @@
|
|
|
1
|
-
import { handlePromptCancel } from './chunk-
|
|
2
|
-
import { loadToken, createInternalClientContext, widget_registry_exports } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-BL3NTXLM.js';
|
|
5
|
-
import { init_esm_shims } from './chunk-CINFOKVJ.js';
|
|
1
|
+
import { handlePromptCancel } from './chunk-FQRKVHAE.js';
|
|
2
|
+
import { loadToken, createInternalClientContext, widget_registry_exports } from './chunk-5EG4W4EY.js';
|
|
3
|
+
import './chunk-PZ5AY32C.js';
|
|
6
4
|
import { consola } from 'consola';
|
|
7
5
|
import { colorize } from 'consola/utils';
|
|
8
6
|
|
|
9
|
-
// src/commands/widgetset/version/delete/versionDeleteCommand.mts
|
|
10
|
-
init_esm_shims();
|
|
11
7
|
async function versionDeleteCommand({
|
|
12
8
|
version,
|
|
13
9
|
yes,
|
|
@@ -33,5 +29,5 @@ ${colorize("bold", "This action cannot be undone.")}`, {
|
|
|
33
29
|
}
|
|
34
30
|
|
|
35
31
|
export { versionDeleteCommand as default };
|
|
36
|
-
//# sourceMappingURL=versionDeleteCommand-
|
|
37
|
-
//# sourceMappingURL=versionDeleteCommand-
|
|
32
|
+
//# sourceMappingURL=versionDeleteCommand-POCHBGDL.js.map
|
|
33
|
+
//# sourceMappingURL=versionDeleteCommand-POCHBGDL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/commands/widgetset/version/delete/versionDeleteCommand.mts"],"names":[],"mappings":";;;;;;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-POCHBGDL.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,11 +1,7 @@
|
|
|
1
|
-
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-BL3NTXLM.js';
|
|
4
|
-
import { init_esm_shims } from './chunk-CINFOKVJ.js';
|
|
1
|
+
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-5EG4W4EY.js';
|
|
2
|
+
import './chunk-PZ5AY32C.js';
|
|
5
3
|
import { consola } from 'consola';
|
|
6
4
|
|
|
7
|
-
// src/commands/site/version/get/versionGetCommand.mts
|
|
8
|
-
init_esm_shims();
|
|
9
5
|
async function versionGetCommand({
|
|
10
6
|
foundryUrl,
|
|
11
7
|
application,
|
|
@@ -26,5 +22,5 @@ async function versionGetCommand({
|
|
|
26
22
|
}
|
|
27
23
|
|
|
28
24
|
export { versionGetCommand as default };
|
|
29
|
-
//# sourceMappingURL=versionGetCommand-
|
|
30
|
-
//# sourceMappingURL=versionGetCommand-
|
|
25
|
+
//# sourceMappingURL=versionGetCommand-FVKH4K6S.js.map
|
|
26
|
+
//# sourceMappingURL=versionGetCommand-FVKH4K6S.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/commands/site/version/get/versionGetCommand.mts"],"names":[],"mappings":";;;;AAmBA,eAAO,iBAAyC,CAAA;AAAA,EAC9C,UAAA;AAAA,EACA,WAAA;AAAA,EACA,KAAA;AAAA,EACA;AACF,CAAG,EAAA;AACD,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,OAAA,CAAQ,MAAM,sBAAsB,CAAA;AACpC,EAAA,MAAM,OAAU,GAAA,MAAM,gCAAuB,CAAA,UAAA,CAAW,WAAW,WAAW,CAAA;AAC9E,EAAA,MAAM,kBAAkB,OAAS,EAAA,eAAA;AACjC,EAAA,IAAI,CAAC,eAAiB,EAAA;AACpB,IAAA,OAAA,CAAQ,KAAK,0BAA0B,CAAA;AAAA,GAClC,MAAA;AACL,IAAQ,OAAA,CAAA,OAAA,CAAQ,CAAwB,qBAAA,EAAA,eAAe,CAAE,CAAA,CAAA;AAAA;AAE7D","file":"versionGetCommand-FVKH4K6S.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 { loadToken } from \"../../../../util/token.js\";\nexport default async function versionGetCommand({\n foundryUrl,\n application,\n token,\n tokenFile\n}) {\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n consola.start(\"Getting live version\");\n const website = await thirdPartyApplications.getWebsite(clientCtx, application);\n const deployedVersion = website?.deployedVersion;\n if (!deployedVersion) {\n consola.info(\"No live site version set\");\n } else {\n consola.success(`Live site version is ${deployedVersion}`);\n }\n}"]}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import { loadToken, createInternalClientContext, widget_registry_exports } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-BL3NTXLM.js';
|
|
4
|
-
import { init_esm_shims } from './chunk-CINFOKVJ.js';
|
|
1
|
+
import { loadToken, createInternalClientContext, widget_registry_exports } from './chunk-5EG4W4EY.js';
|
|
2
|
+
import './chunk-PZ5AY32C.js';
|
|
5
3
|
import { consola } from 'consola';
|
|
6
4
|
|
|
7
|
-
// src/commands/widgetset/version/info/versionInfoCommand.mts
|
|
8
|
-
init_esm_shims();
|
|
9
5
|
async function versionInfoCommand({
|
|
10
6
|
version,
|
|
11
7
|
foundryUrl,
|
|
@@ -23,5 +19,5 @@ async function versionInfoCommand({
|
|
|
23
19
|
}
|
|
24
20
|
|
|
25
21
|
export { versionInfoCommand as default };
|
|
26
|
-
//# sourceMappingURL=versionInfoCommand-
|
|
27
|
-
//# sourceMappingURL=versionInfoCommand-
|
|
22
|
+
//# sourceMappingURL=versionInfoCommand-F44PTFBW.js.map
|
|
23
|
+
//# sourceMappingURL=versionInfoCommand-F44PTFBW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/commands/widgetset/version/info/versionInfoCommand.mts"],"names":[],"mappings":";;;;AAmBA,eAAO,kBAA0C,CAAA;AAAA,EAC/C,OAAA;AAAA,EACA,UAAA;AAAA,EACA,SAAA;AAAA,EACA,KAAA;AAAA,EACA;AACF,CAAG,EAAA;AACD,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,OAAA,CAAQ,MAAM,sBAAsB,CAAA;AACpC,EAAA,MAAM,WAAW,MAAM,uBAAA,CAAe,UAAW,CAAA,SAAA,EAAW,WAAW,OAAO,CAAA;AAC9E,EAAQ,OAAA,CAAA,OAAA,CAAQ,CAA2B,wBAAA,EAAA,OAAO,CAAE,CAAA,CAAA;AACpD,EAAA,OAAA,CAAQ,IAAI,IAAK,CAAA,SAAA,CAAU,QAAU,EAAA,IAAA,EAAM,CAAC,CAAC,CAAA;AAC/C","file":"versionInfoCommand-F44PTFBW.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 { loadToken } from \"../../../../util/token.js\";\nexport default async function versionInfoCommand({\n version,\n foundryUrl,\n widgetSet,\n token,\n tokenFile\n}) {\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n consola.start(\"Loading version info\");\n const response = await widgetRegistry.getRelease(clientCtx, widgetSet, version);\n consola.success(`Loaded version info for ${version}`);\n consola.log(JSON.stringify(response, null, 2));\n}"]}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-BL3NTXLM.js';
|
|
4
|
-
import { init_esm_shims } from './chunk-CINFOKVJ.js';
|
|
1
|
+
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-5EG4W4EY.js';
|
|
2
|
+
import './chunk-PZ5AY32C.js';
|
|
5
3
|
import { consola } from 'consola';
|
|
6
4
|
import { colorize } from 'consola/utils';
|
|
7
5
|
|
|
8
|
-
// src/commands/site/version/list/versionListCommand.mts
|
|
9
|
-
init_esm_shims();
|
|
10
6
|
async function versionListCommand({
|
|
11
7
|
foundryUrl,
|
|
12
8
|
application,
|
|
@@ -31,5 +27,5 @@ async function versionListCommand({
|
|
|
31
27
|
}
|
|
32
28
|
|
|
33
29
|
export { versionListCommand as default };
|
|
34
|
-
//# sourceMappingURL=versionListCommand-
|
|
35
|
-
//# sourceMappingURL=versionListCommand-
|
|
30
|
+
//# sourceMappingURL=versionListCommand-SMJ6RCRM.js.map
|
|
31
|
+
//# sourceMappingURL=versionListCommand-SMJ6RCRM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/commands/site/version/list/versionListCommand.mts"],"names":[],"mappings":";;;;;AAoBA,eAAO,kBAA0C,CAAA;AAAA,EAC/C,UAAA;AAAA,EACA,WAAA;AAAA,EACA,KAAA;AAAA,EACA;AACF,CAAG,EAAA;AACD,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,OAAA,CAAQ,MAAM,sCAAsC,CAAA;AACpD,EAAA,MAAM,CAAC,QAAU,EAAA,OAAO,IAAI,MAAM,OAAA,CAAQ,IAAI,CAAC,gCAAA,CAAuB,YAAa,CAAA,SAAA,EAAW,WAAW,CAAG,EAAA,gCAAA,CAAuB,WAAW,SAAW,EAAA,WAAW,CAAC,CAAC,CAAA;AACtK,EAAI,IAAA,QAAA,CAAS,IAAK,CAAA,MAAA,KAAW,CAAG,EAAA;AAC9B,IAAA,OAAA,CAAQ,KAAK,wBAAwB,CAAA;AACrC,IAAA;AAAA;AAEF,EAAA,OAAA,CAAQ,QAAQ,iBAAiB,CAAA;AACjC,EAAM,MAAA,MAAA,GAAS,MAAM,OAAO,QAAQ,CAAA;AACpC,EAAA,MAAM,iBAAiB,MAAO,CAAA,KAAA,CAAM,QAAS,CAAA,IAAA,CAAK,IAAI,CAAK,CAAA,KAAA,CAAA,CAAE,OAAO,CAAA,CAAE,OAAO,CAAK,CAAA,KAAA,MAAA,CAAO,KAAM,CAAA,CAAC,CAAC,CAAC,CAAA;AAClG,EAAA,KAAA,MAAW,WAAW,cAAgB,EAAA;AACpC,IAAA,OAAA,CAAQ,GAAI,CAAA,CAAA,MAAA,EAAS,OAAO,CAAA,EAAG,SAAS,eAAmB,IAAA,OAAA,KAAY,OAAS,EAAA,eAAA,GAAkB,QAAS,CAAA,OAAA,EAAS,CAAa,WAAA,CAAA,CAAA,GAAI,EAAE,CAAE,CAAA,CAAA;AAAA;AAE7I","file":"versionListCommand-SMJ6RCRM.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 { loadToken } from \"../../../../util/token.js\";\nexport default async function versionListCommand({\n foundryUrl,\n application,\n token,\n tokenFile\n}) {\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n consola.start(\"Fetching versions & deployed version\");\n const [versions, website] = await Promise.all([thirdPartyApplications.listVersions(clientCtx, application), thirdPartyApplications.getWebsite(clientCtx, application)]);\n if (versions.data.length === 0) {\n consola.info(\"No site versions found\");\n return;\n }\n consola.success(\"Found versions:\");\n const semver = await import(\"semver\");\n const sortedVersions = semver.rsort(versions.data.map(v => v.version).filter(v => semver.valid(v)));\n for (const version of sortedVersions) {\n consola.log(` - ${version}${website?.deployedVersion && version === website?.deployedVersion ? colorize(\"green\", ` (deployed)`) : \"\"}`);\n }\n}"]}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import { loadToken, createInternalClientContext, widget_registry_exports } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-BL3NTXLM.js';
|
|
4
|
-
import { init_esm_shims } from './chunk-CINFOKVJ.js';
|
|
1
|
+
import { loadToken, createInternalClientContext, widget_registry_exports } from './chunk-5EG4W4EY.js';
|
|
2
|
+
import './chunk-PZ5AY32C.js';
|
|
5
3
|
import { consola } from 'consola';
|
|
6
4
|
|
|
7
|
-
// src/commands/widgetset/version/list/versionListCommand.mts
|
|
8
|
-
init_esm_shims();
|
|
9
5
|
async function versionListCommand({
|
|
10
6
|
foundryUrl,
|
|
11
7
|
widgetSet,
|
|
@@ -30,5 +26,5 @@ async function versionListCommand({
|
|
|
30
26
|
}
|
|
31
27
|
|
|
32
28
|
export { versionListCommand as default };
|
|
33
|
-
//# sourceMappingURL=versionListCommand-
|
|
34
|
-
//# sourceMappingURL=versionListCommand-
|
|
29
|
+
//# sourceMappingURL=versionListCommand-X5PFEG2U.js.map
|
|
30
|
+
//# sourceMappingURL=versionListCommand-X5PFEG2U.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/commands/widgetset/version/list/versionListCommand.mts"],"names":[],"mappings":";;;;AAmBA,eAAO,kBAA0C,CAAA;AAAA,EAC/C,UAAA;AAAA,EACA,SAAA;AAAA,EACA,KAAA;AAAA,EACA;AACF,CAAG,EAAA;AACD,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,OAAA,CAAQ,MAAM,mBAAmB,CAAA;AACjC,EAAA,MAAM,QAAW,GAAA,MAAM,uBAAe,CAAA,YAAA,CAAa,WAAW,SAAS,CAAA;AACvE,EAAI,IAAA,QAAA,CAAS,IAAK,CAAA,MAAA,KAAW,CAAG,EAAA;AAC9B,IAAA,OAAA,CAAQ,KAAK,8BAA8B,CAAA;AAC3C,IAAA;AAAA;AAEF,EAAA,OAAA,CAAQ,QAAQ,iBAAiB,CAAA;AACjC,EAAM,MAAA,MAAA,GAAS,MAAM,OAAO,QAAQ,CAAA;AACpC,EAAA,MAAM,iBAAiB,MAAO,CAAA,KAAA,CAAM,QAAS,CAAA,IAAA,CAAK,IAAI,CAAK,CAAA,KAAA,CAAA,CAAE,OAAO,CAAA,CAAE,OAAO,CAAK,CAAA,KAAA,MAAA,CAAO,KAAM,CAAA,CAAC,CAAC,CAAC,CAAA;AAClG,EAAA,KAAA,MAAW,WAAW,cAAgB,EAAA;AACpC,IAAQ,OAAA,CAAA,GAAA,CAAI,CAAS,MAAA,EAAA,OAAO,CAAE,CAAA,CAAA;AAAA;AAElC","file":"versionListCommand-X5PFEG2U.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 { loadToken } from \"../../../../util/token.js\";\nexport default async function versionListCommand({\n foundryUrl,\n widgetSet,\n token,\n tokenFile\n}) {\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n consola.start(\"Fetching versions\");\n const response = await widgetRegistry.listReleases(clientCtx, widgetSet);\n if (response.data.length === 0) {\n consola.info(\"No widget set versions found\");\n return;\n }\n consola.success(\"Found versions:\");\n const semver = await import(\"semver\");\n const sortedVersions = semver.rsort(response.data.map(v => v.version).filter(v => semver.valid(v)));\n for (const version of sortedVersions) {\n consola.log(` - ${version}`);\n }\n}"]}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-BL3NTXLM.js';
|
|
4
|
-
import { init_esm_shims } from './chunk-CINFOKVJ.js';
|
|
1
|
+
import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-5EG4W4EY.js';
|
|
2
|
+
import './chunk-PZ5AY32C.js';
|
|
5
3
|
import { consola } from 'consola';
|
|
6
4
|
|
|
7
|
-
// src/commands/site/version/set/versionSetCommand.mts
|
|
8
|
-
init_esm_shims();
|
|
9
5
|
async function versionSetCommand({
|
|
10
6
|
version,
|
|
11
7
|
application,
|
|
@@ -26,5 +22,5 @@ async function versionSetCommand({
|
|
|
26
22
|
}
|
|
27
23
|
|
|
28
24
|
export { versionSetCommand as default };
|
|
29
|
-
//# sourceMappingURL=versionSetCommand-
|
|
30
|
-
//# sourceMappingURL=versionSetCommand-
|
|
25
|
+
//# sourceMappingURL=versionSetCommand-YGYI2W74.js.map
|
|
26
|
+
//# sourceMappingURL=versionSetCommand-YGYI2W74.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/commands/site/version/set/versionSetCommand.mts"],"names":[],"mappings":";;;;AAmBA,eAAO,iBAAyC,CAAA;AAAA,EAC9C,OAAA;AAAA,EACA,WAAA;AAAA,EACA,UAAA;AAAA,EACA,KAAA;AAAA,EACA;AACF,CAAG,EAAA;AACD,EAAA,OAAA,CAAQ,MAAM,CAAsB,oBAAA,CAAA,CAAA;AACpC,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,IAAI,OAAS,EAAA;AACX,IAAM,MAAA,gCAAA,CAAuB,aAAc,CAAA,SAAA,EAAW,WAAa,EAAA;AAAA,MACjE;AAAA,KACD,CAAA;AAAA;AAEH,EAAQ,OAAA,CAAA,OAAA,CAAQ,CAAuB,oBAAA,EAAA,OAAO,CAAE,CAAA,CAAA;AAClD","file":"versionSetCommand-YGYI2W74.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 { loadToken } from \"../../../../util/token.js\";\nexport default async function versionSetCommand({\n version,\n application,\n foundryUrl,\n token,\n tokenFile\n}) {\n consola.start(`Setting live version`);\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n if (version) {\n await thirdPartyApplications.deployWebsite(clientCtx, application, {\n version\n });\n }\n consola.success(`Set live version to ${version}`);\n}"]}
|