@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.
Files changed (92) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/build/esm/{chunk-YOTB5E2E.js → chunk-5EG4W4EY.js} +7 -34
  3. package/build/esm/chunk-5EG4W4EY.js.map +1 -0
  4. package/build/esm/{chunk-4L3JS54F.js → chunk-FQRKVHAE.js} +2 -4
  5. package/build/esm/chunk-FQRKVHAE.js.map +1 -0
  6. package/build/esm/chunk-PZ5AY32C.js +9 -0
  7. package/build/esm/chunk-PZ5AY32C.js.map +1 -0
  8. package/build/esm/index.js +20 -226
  9. package/build/esm/index.js.map +1 -1
  10. package/build/esm/{siteDeployCommand-M5L2QJB3.js → siteDeployCommand-FGAA5AF6.js} +6 -13
  11. package/build/esm/siteDeployCommand-FGAA5AF6.js.map +1 -0
  12. package/build/esm/{versionDeleteCommand-5UDQWHW7.js → versionDeleteCommand-HQBNJZQO.js} +5 -9
  13. package/build/esm/versionDeleteCommand-HQBNJZQO.js.map +1 -0
  14. package/build/esm/{versionDeleteCommand-W4LWFTB7.js → versionDeleteCommand-POCHBGDL.js} +5 -9
  15. package/build/esm/versionDeleteCommand-POCHBGDL.js.map +1 -0
  16. package/build/esm/{versionGetCommand-LHHNHKGF.js → versionGetCommand-FVKH4K6S.js} +4 -8
  17. package/build/esm/versionGetCommand-FVKH4K6S.js.map +1 -0
  18. package/build/esm/{versionInfoCommand-U3QJ7CJR.js → versionInfoCommand-F44PTFBW.js} +4 -8
  19. package/build/esm/versionInfoCommand-F44PTFBW.js.map +1 -0
  20. package/build/esm/{versionListCommand-7EJ2J4JO.js → versionListCommand-SMJ6RCRM.js} +4 -8
  21. package/build/esm/versionListCommand-SMJ6RCRM.js.map +1 -0
  22. package/build/esm/{versionListCommand-VQ5TRLAK.js → versionListCommand-X5PFEG2U.js} +4 -8
  23. package/build/esm/versionListCommand-X5PFEG2U.js.map +1 -0
  24. package/build/esm/{versionSetCommand-LRLP7PHB.js → versionSetCommand-YGYI2W74.js} +4 -8
  25. package/build/esm/versionSetCommand-YGYI2W74.js.map +1 -0
  26. package/build/esm/{versionUnsetCommand-GYOKECVD.js → versionUnsetCommand-SUZPZFLN.js} +5 -9
  27. package/build/esm/versionUnsetCommand-SUZPZFLN.js.map +1 -0
  28. package/build/esm/{widgetSetDeployCommand-PWUXCOA7.js → widgetSetDeployCommand-42GOCEWP.js} +6 -9
  29. package/build/esm/widgetSetDeployCommand-42GOCEWP.js.map +1 -0
  30. package/package.json +8 -8
  31. package/build/esm/acorn-2YJLPGID.js +0 -4014
  32. package/build/esm/acorn-2YJLPGID.js.map +0 -1
  33. package/build/esm/angular-2UQQBORC.js +0 -3921
  34. package/build/esm/angular-2UQQBORC.js.map +0 -1
  35. package/build/esm/babel-BV4W3BOJ.js +0 -9588
  36. package/build/esm/babel-BV4W3BOJ.js.map +0 -1
  37. package/build/esm/chunk-4L3JS54F.js.map +0 -1
  38. package/build/esm/chunk-ALV6NI27.js +0 -127
  39. package/build/esm/chunk-ALV6NI27.js.map +0 -1
  40. package/build/esm/chunk-BL3NTXLM.js +0 -84
  41. package/build/esm/chunk-BL3NTXLM.js.map +0 -1
  42. package/build/esm/chunk-CINFOKVJ.js +0 -43
  43. package/build/esm/chunk-CINFOKVJ.js.map +0 -1
  44. package/build/esm/chunk-CKZAZPXC.js +0 -28
  45. package/build/esm/chunk-CKZAZPXC.js.map +0 -1
  46. package/build/esm/chunk-CMWYDM5Q.js +0 -332
  47. package/build/esm/chunk-CMWYDM5Q.js.map +0 -1
  48. package/build/esm/chunk-W7U4ETYH.js +0 -239
  49. package/build/esm/chunk-W7U4ETYH.js.map +0 -1
  50. package/build/esm/chunk-XF44FMSL.js +0 -221
  51. package/build/esm/chunk-XF44FMSL.js.map +0 -1
  52. package/build/esm/chunk-YOTB5E2E.js.map +0 -1
  53. package/build/esm/estree-PTS7QPRO.js +0 -6145
  54. package/build/esm/estree-PTS7QPRO.js.map +0 -1
  55. package/build/esm/find-up-GVGEKQPQ.js +0 -4
  56. package/build/esm/find-up-GVGEKQPQ.js.map +0 -1
  57. package/build/esm/flow-Y46VD55R.js +0 -27169
  58. package/build/esm/flow-Y46VD55R.js.map +0 -1
  59. package/build/esm/glimmer-SE4IEQF6.js +0 -6974
  60. package/build/esm/glimmer-SE4IEQF6.js.map +0 -1
  61. package/build/esm/graphql-QF7PMC3R.js +0 -1720
  62. package/build/esm/graphql-QF7PMC3R.js.map +0 -1
  63. package/build/esm/handleGenerate-JM5HIHXW.js +0 -19283
  64. package/build/esm/handleGenerate-JM5HIHXW.js.map +0 -1
  65. package/build/esm/html-EQKLXLBJ.js +0 -5810
  66. package/build/esm/html-EQKLXLBJ.js.map +0 -1
  67. package/build/esm/loginFlow-GP5ZJP3D.js +0 -4
  68. package/build/esm/loginFlow-GP5ZJP3D.js.map +0 -1
  69. package/build/esm/markdown-FZBHQ3B4.js +0 -6697
  70. package/build/esm/markdown-FZBHQ3B4.js.map +0 -1
  71. package/build/esm/meriyah-Q2DK6BAD.js +0 -4343
  72. package/build/esm/meriyah-Q2DK6BAD.js.map +0 -1
  73. package/build/esm/postcss-SR3FYBVU.js +0 -6281
  74. package/build/esm/postcss-SR3FYBVU.js.map +0 -1
  75. package/build/esm/siteDeployCommand-M5L2QJB3.js.map +0 -1
  76. package/build/esm/typescript-DEUJRDXE.js +0 -13078
  77. package/build/esm/typescript-DEUJRDXE.js.map +0 -1
  78. package/build/esm/versionDeleteCommand-5UDQWHW7.js.map +0 -1
  79. package/build/esm/versionDeleteCommand-W4LWFTB7.js.map +0 -1
  80. package/build/esm/versionGetCommand-LHHNHKGF.js.map +0 -1
  81. package/build/esm/versionInfoCommand-U3QJ7CJR.js.map +0 -1
  82. package/build/esm/versionListCommand-7EJ2J4JO.js.map +0 -1
  83. package/build/esm/versionListCommand-VQ5TRLAK.js.map +0 -1
  84. package/build/esm/versionSetCommand-LRLP7PHB.js.map +0 -1
  85. package/build/esm/versionUnsetCommand-GYOKECVD.js.map +0 -1
  86. package/build/esm/widgetSetDeployCommand-PWUXCOA7.js.map +0 -1
  87. package/build/esm/yaml-KQJSRZTS.js +0 -5822
  88. package/build/esm/yaml-KQJSRZTS.js.map +0 -1
  89. package/build/types/util/maybeUpdateJemmaCustomMetadata.test.d.ts +0 -1
  90. package/build/types/util/maybeUpdateJemmaCustomMetadata.test.d.ts.map +0 -1
  91. package/build/types/util/token.test.d.ts +0 -1
  92. package/build/types/util/token.test.d.ts.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/commands/site/version/delete/versionDeleteCommand.mts"],"names":[],"mappings":";;;;;;;;;AAAA,cAAA,EAAA;AAqBA,eAAO,oBAA4C,CAAA;AAAA,EACjD,OAAA;AAAA,EACA,GAAA;AAAA,EACA,WAAA;AAAA,EACA,UAAA;AAAA,EACA,KAAA;AAAA,EACA;AACF,CAAG,EAAA;AACD,EAAA,IAAI,CAAC,GAAK,EAAA;AACR,IAAA,MAAM,SAAY,GAAA,MAAM,OAAQ,CAAA,MAAA,CAAO,+CAA+C,OAAO,CAAA;AAAA,EAAM,QAAS,CAAA,MAAA,EAAQ,+BAA+B,CAAC,CAAI,CAAA,EAAA;AAAA,MACtJ,IAAM,EAAA,SAAA;AAAA,MACN,MAAQ,EAAA;AAAA,KACT,CAAA;AACD,IAAA,kBAAA,CAAmB,SAAS,CAAA;AAAA;AAE9B,EAAQ,OAAA,CAAA,KAAA,CAAM,CAAoB,iBAAA,EAAA,OAAO,CAAE,CAAA,CAAA;AAC3C,EAAA,MAAM,WAAc,GAAA,MAAM,SAAU,CAAA,KAAA,EAAO,SAAS,CAAA;AACpD,EAAA,MAAM,gBAAgB,MAAM,WAAA;AAC5B,EAAM,MAAA,SAAA,GAAY,2BAA4B,CAAA,UAAA,EAAY,aAAa,CAAA;AACvE,EAAA,MAAM,gCAAuB,CAAA,aAAA,CAAc,SAAW,EAAA,WAAA,EAAa,OAAO,CAAA;AAC1E,EAAQ,OAAA,CAAA,OAAA,CAAQ,CAAmB,gBAAA,EAAA,OAAO,CAAE,CAAA,CAAA;AAC9C","file":"versionDeleteCommand-5UDQWHW7.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 +0,0 @@
1
- {"version":3,"sources":["../../src/commands/widgetset/version/delete/versionDeleteCommand.mts"],"names":[],"mappings":";;;;;;;;;AAAA,cAAA,EAAA;AAqBA,eAAO,oBAA4C,CAAA;AAAA,EACjD,OAAA;AAAA,EACA,GAAA;AAAA,EACA,SAAA;AAAA,EACA,UAAA;AAAA,EACA,KAAA;AAAA,EACA;AACF,CAAG,EAAA;AACD,EAAA,IAAI,CAAC,GAAK,EAAA;AACR,IAAA,MAAM,SAAY,GAAA,MAAM,OAAQ,CAAA,MAAA,CAAO,+CAA+C,OAAO,CAAA;AAAA,EAAM,QAAS,CAAA,MAAA,EAAQ,+BAA+B,CAAC,CAAI,CAAA,EAAA;AAAA,MACtJ,IAAM,EAAA,SAAA;AAAA,MACN,MAAQ,EAAA;AAAA,KACT,CAAA;AACD,IAAA,kBAAA,CAAmB,SAAS,CAAA;AAAA;AAE9B,EAAQ,OAAA,CAAA,KAAA,CAAM,CAAoB,iBAAA,EAAA,OAAO,CAAE,CAAA,CAAA;AAC3C,EAAA,MAAM,WAAc,GAAA,MAAM,SAAU,CAAA,KAAA,EAAO,SAAS,CAAA;AACpD,EAAA,MAAM,gBAAgB,MAAM,WAAA;AAC5B,EAAM,MAAA,SAAA,GAAY,2BAA4B,CAAA,UAAA,EAAY,aAAa,CAAA;AACvE,EAAA,MAAM,uBAAe,CAAA,aAAA,CAAc,SAAW,EAAA,SAAA,EAAW,OAAO,CAAA;AAChE,EAAQ,OAAA,CAAA,OAAA,CAAQ,CAAmB,gBAAA,EAAA,OAAO,CAAE,CAAA,CAAA;AAC9C","file":"versionDeleteCommand-W4LWFTB7.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 +0,0 @@
1
- {"version":3,"sources":["../../src/commands/site/version/get/versionGetCommand.mts"],"names":[],"mappings":";;;;;;;AAAA,cAAA,EAAA;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-LHHNHKGF.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 +0,0 @@
1
- {"version":3,"sources":["../../src/commands/widgetset/version/info/versionInfoCommand.mts"],"names":[],"mappings":";;;;;;;AAAA,cAAA,EAAA;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-U3QJ7CJR.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 +0,0 @@
1
- {"version":3,"sources":["../../src/commands/site/version/list/versionListCommand.mts"],"names":[],"mappings":";;;;;;;;AAAA,cAAA,EAAA;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-7EJ2J4JO.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 +0,0 @@
1
- {"version":3,"sources":["../../src/commands/widgetset/version/list/versionListCommand.mts"],"names":[],"mappings":";;;;;;;AAAA,cAAA,EAAA;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-VQ5TRLAK.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 +0,0 @@
1
- {"version":3,"sources":["../../src/commands/site/version/set/versionSetCommand.mts"],"names":[],"mappings":";;;;;;;AAAA,cAAA,EAAA;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-LRLP7PHB.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}"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/commands/site/version/unset/versionUnsetCommand.mts"],"names":[],"mappings":";;;;;;;;;AAAA,cAAA,EAAA;AAqBA,eAAO,mBAA2C,CAAA;AAAA,EAChD,GAAA;AAAA,EACA,WAAA;AAAA,EACA,UAAA;AAAA,EACA,KAAA;AAAA,EACA;AACF,CAAG,EAAA;AACD,EAAA,IAAI,CAAC,GAAK,EAAA;AACR,IAAM,MAAA,SAAA,GAAY,MAAM,OAAA,CAAQ,MAAO,CAAA,CAAA;AAAA,EAA0D,QAAS,CAAA,MAAA,EAAQ,8EAA8E,CAAC,CAAI,CAAA,EAAA;AAAA,MACnM,IAAM,EAAA,SAAA;AAAA,MACN,MAAQ,EAAA;AAAA,KACT,CAAA;AACD,IAAA,kBAAA,CAAmB,SAAS,CAAA;AAAA;AAE9B,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,4BAA4B,CAAA;AAC1C,EAAM,MAAA,gCAAA,CAAuB,eAAgB,CAAA,SAAA,EAAW,WAAW,CAAA;AACnE,EAAA,OAAA,CAAQ,QAAQ,2BAA2B,CAAA;AAC7C","file":"versionUnsetCommand-GYOKECVD.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 { colorize } from \"consola/utils\";\nimport { handlePromptCancel } from \"../../../../consola/handlePromptCancel.js\";\nimport { loadToken } from \"../../../../util/token.js\";\nexport default async function versionUnsetCommand({\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 clear the live site version?\\n${colorize(\"bold\", \"Your site will no longer be accessible until a new live site version is set.\")}`, {\n type: \"confirm\",\n cancel: \"symbol\"\n });\n handlePromptCancel(confirmed);\n }\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n consola.start(\"Clearing live site version\");\n await thirdPartyApplications.undeployWebsite(clientCtx, application);\n consola.success(\"Cleared live site version\");\n}"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/commands/widgetset/deploy/widgetSetDeployCommand.mts"],"names":[],"mappings":"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","file":"widgetSetDeployCommand-PWUXCOA7.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 { ExitProcessError } from \"@osdk/cli.common\";\nimport { MANIFEST_FILE_LOCATION } from \"@osdk/widget.api\";\nimport archiver from \"archiver\";\nimport { consola } from \"consola\";\nimport * as fs from \"node:fs\";\nimport path from \"node:path\";\nimport { Readable } from \"node:stream\";\nimport prettyBytes from \"pretty-bytes\";\nimport { loadToken } from \"../../../util/token.js\";\nexport default async function widgetSetDeployCommand({\n widgetSet,\n foundryUrl,\n directory,\n repository,\n token,\n tokenFile\n}) {\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n consola.debug(`Using directory for widget set 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 const widgetSetVersion = await findWidgetSetVersion(directory);\n consola.info(`Found version from manifest: ${widgetSetVersion}`);\n consola.start(\"Zipping widget set files\");\n const archive = archiver(\"zip\").directory(directory, false);\n logArchiveStats(archive);\n let deployRid = widgetSet;\n if (repository != null) {\n deployRid = repository;\n consola.debug(`Deploying to repository ${repository} for ${widgetSet}`);\n }\n consola.start(\"Publishing widget set files\");\n await Promise.all([widgetRegistry.publishRelease(clientCtx, deployRid, widgetSetVersion, Readable.toWeb(archive) // This cast is because the dom fetch doesn't align type wise with streams\n ), archive.finalize()]);\n consola.success(\"Publish complete\");\n}\nasync function findWidgetSetVersion(directory) {\n try {\n const manifestContent = await fs.promises.readFile(path.resolve(directory, MANIFEST_FILE_LOCATION), \"utf8\");\n const manifest = JSON.parse(manifestContent);\n if (manifest.widgetSet == null || manifest.widgetSet.version == null) {\n throw new Error(`Unable to find widget set version in manifest`);\n }\n return manifest.widgetSet.version;\n } catch (e) {\n throw new ExitProcessError(2, `Unable to process manifest at ${MANIFEST_FILE_LOCATION}${e instanceof Error ? `: ${e.message}` : \"\"}`);\n }\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}"]}