@osdk/cli 0.113.0 → 0.113.1-main-65dcc111f0439ce4ce5dfd623bc3c12058fc547b

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 (29) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/esm/{chunk-SY5WMC7T.js → chunk-4U4EG3HV.js} +3 -3
  3. package/build/esm/chunk-4U4EG3HV.js.map +1 -0
  4. package/build/esm/{handleGenerate-E54QOJ33.js → handleGenerate-7K4VUQLO.js} +7 -7
  5. package/build/esm/{handleGenerate-E54QOJ33.js.map → handleGenerate-7K4VUQLO.js.map} +1 -1
  6. package/build/esm/index.js +12 -12
  7. package/build/esm/index.js.map +1 -1
  8. package/build/esm/{siteDeployCommand-5XHBC6LW.js → siteDeployCommand-S6NMYNKM.js} +3 -3
  9. package/build/esm/{siteDeployCommand-5XHBC6LW.js.map → siteDeployCommand-S6NMYNKM.js.map} +1 -1
  10. package/build/esm/{versionDeleteCommand-MQF4OW5K.js → versionDeleteCommand-P7CC3BHP.js} +3 -3
  11. package/build/esm/{versionDeleteCommand-MQF4OW5K.js.map → versionDeleteCommand-P7CC3BHP.js.map} +1 -1
  12. package/build/esm/{versionDeleteCommand-LVG6CRQK.js → versionDeleteCommand-PR26BTAP.js} +3 -3
  13. package/build/esm/{versionDeleteCommand-LVG6CRQK.js.map → versionDeleteCommand-PR26BTAP.js.map} +1 -1
  14. package/build/esm/{versionGetCommand-S2IDO7HG.js → versionGetCommand-4FIPMSGW.js} +3 -3
  15. package/build/esm/{versionGetCommand-S2IDO7HG.js.map → versionGetCommand-4FIPMSGW.js.map} +1 -1
  16. package/build/esm/{versionInfoCommand-REA4WVWM.js → versionInfoCommand-2URMXDT6.js} +3 -3
  17. package/build/esm/{versionInfoCommand-REA4WVWM.js.map → versionInfoCommand-2URMXDT6.js.map} +1 -1
  18. package/build/esm/{versionListCommand-USL6DWPX.js → versionListCommand-FDTJ5WMZ.js} +3 -3
  19. package/build/esm/{versionListCommand-USL6DWPX.js.map → versionListCommand-FDTJ5WMZ.js.map} +1 -1
  20. package/build/esm/{versionListCommand-XFI2GAUL.js → versionListCommand-VTS4FCLL.js} +3 -3
  21. package/build/esm/{versionListCommand-XFI2GAUL.js.map → versionListCommand-VTS4FCLL.js.map} +1 -1
  22. package/build/esm/{versionSetCommand-BWDRELSE.js → versionSetCommand-3P3XSYRK.js} +3 -3
  23. package/build/esm/{versionSetCommand-BWDRELSE.js.map → versionSetCommand-3P3XSYRK.js.map} +1 -1
  24. package/build/esm/{versionUnsetCommand-Y4CZPQIR.js → versionUnsetCommand-RA6UK6LN.js} +3 -3
  25. package/build/esm/{versionUnsetCommand-Y4CZPQIR.js.map → versionUnsetCommand-RA6UK6LN.js.map} +1 -1
  26. package/build/esm/{widgetSetDeployCommand-S6KTKO34.js → widgetSetDeployCommand-7GCAZHTU.js} +3 -3
  27. package/build/esm/{widgetSetDeployCommand-S6KTKO34.js.map → widgetSetDeployCommand-7GCAZHTU.js.map} +1 -1
  28. package/package.json +5 -5
  29. package/build/esm/chunk-SY5WMC7T.js.map +0 -1
@@ -151,7 +151,7 @@ var generateCommand = {
151
151
  });
152
152
  },
153
153
  handler: async (args) => {
154
- const command18 = await import('./handleGenerate-E54QOJ33.js');
154
+ const command18 = await import('./handleGenerate-7K4VUQLO.js');
155
155
  await command18.handleGenerate(args);
156
156
  }
157
157
  };
@@ -408,7 +408,7 @@ var command4 = {
408
408
  }).middleware((args) => logSiteDeployCommandConfigFileOverride(args, siteConfig));
409
409
  },
410
410
  handler: async (args) => {
411
- const command18 = await import('./siteDeployCommand-5XHBC6LW.js');
411
+ const command18 = await import('./siteDeployCommand-S6NMYNKM.js');
412
412
  const {
413
413
  version,
414
414
  autoVersion,
@@ -458,7 +458,7 @@ var command5 = {
458
458
  }).group(["yes"], "Delete Options");
459
459
  },
460
460
  handler: async (args) => {
461
- const command18 = await import('./versionDeleteCommand-LVG6CRQK.js');
461
+ const command18 = await import('./versionDeleteCommand-PR26BTAP.js');
462
462
  await command18.default(args);
463
463
  }
464
464
  };
@@ -473,7 +473,7 @@ var command6 = {
473
473
  return argv;
474
474
  },
475
475
  handler: async (args) => {
476
- const command18 = await import('./versionGetCommand-S2IDO7HG.js');
476
+ const command18 = await import('./versionGetCommand-4FIPMSGW.js');
477
477
  await command18.default(args);
478
478
  }
479
479
  };
@@ -488,7 +488,7 @@ var command7 = {
488
488
  return argv;
489
489
  },
490
490
  handler: async (args) => {
491
- const command18 = await import('./versionListCommand-XFI2GAUL.js');
491
+ const command18 = await import('./versionListCommand-VTS4FCLL.js');
492
492
  await command18.default(args);
493
493
  }
494
494
  };
@@ -507,7 +507,7 @@ var command8 = {
507
507
  });
508
508
  },
509
509
  handler: async (args) => {
510
- const command18 = await import('./versionSetCommand-BWDRELSE.js');
510
+ const command18 = await import('./versionSetCommand-3P3XSYRK.js');
511
511
  await command18.default(args);
512
512
  }
513
513
  };
@@ -526,7 +526,7 @@ var command9 = {
526
526
  }).group(["yes"], "Unset Options");
527
527
  },
528
528
  handler: async (args) => {
529
- const command18 = await import('./versionUnsetCommand-Y4CZPQIR.js');
529
+ const command18 = await import('./versionUnsetCommand-RA6UK6LN.js');
530
530
  await command18.default(args);
531
531
  }
532
532
  };
@@ -655,7 +655,7 @@ The widget set files must contain a valid manifest at ${MANIFEST_FILE_LOCATION}
655
655
  }).group(["directory", "repository", "branchName"], "Deploy Options").middleware((args) => logWidgetSetDeployCommandConfigFileOverride(args, widgetSetConfig));
656
656
  },
657
657
  handler: async (args) => {
658
- const command18 = await import('./widgetSetDeployCommand-S6KTKO34.js');
658
+ const command18 = await import('./widgetSetDeployCommand-7GCAZHTU.js');
659
659
  await command18.default(args);
660
660
  }
661
661
  };
@@ -692,7 +692,7 @@ var command13 = {
692
692
  }).group(["yes"], "Delete Options");
693
693
  },
694
694
  handler: async (args) => {
695
- const command18 = await import('./versionDeleteCommand-MQF4OW5K.js');
695
+ const command18 = await import('./versionDeleteCommand-P7CC3BHP.js');
696
696
  await command18.default(args);
697
697
  }
698
698
  };
@@ -711,7 +711,7 @@ var command14 = {
711
711
  });
712
712
  },
713
713
  handler: async (args) => {
714
- const command18 = await import('./versionInfoCommand-REA4WVWM.js');
714
+ const command18 = await import('./versionInfoCommand-2URMXDT6.js');
715
715
  await command18.default(args);
716
716
  }
717
717
  };
@@ -733,7 +733,7 @@ var command15 = {
733
733
  }).group(["branchName"], "List Options");
734
734
  },
735
735
  handler: async (args) => {
736
- const command18 = await import('./versionListCommand-USL6DWPX.js');
736
+ const command18 = await import('./versionListCommand-FDTJ5WMZ.js');
737
737
  await command18.default(args);
738
738
  }
739
739
  };
@@ -807,7 +807,7 @@ var widgetset_default = command17;
807
807
 
808
808
  // src/cli.ts
809
809
  async function cli2(args = process.argv) {
810
- consola.info(`Palantir OSDK CLI ${"0.113.0"}
810
+ consola.info(`Palantir OSDK CLI ${"0.113.1-main-65dcc111f0439ce4ce5dfd623bc3c12058fc547b"}
811
811
  `);
812
812
  const base = getYargsBase(args);
813
813
  try {
@@ -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/branch/index.ts","../../src/commands/branch/sync/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","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,eAAA,GAAkB;AAAA,EAC7B,OAAA,EAAS,UAAA;AAAA,EACT,QAAA,EAAU,uCAAA;AAAA,EACV,SAAS,CAAA,IAAA,KAAQ;AACf,IAAA,OAAO,KAAK,OAAA,CAAQ;AAAA,MAClB,MAAA,EAAQ;AAAA,QACN,IAAA,EAAM,QAAA;AAAA,QACN,WAAA,EAAa,oCAAA;AAAA,QACb,YAAA,EAAc;AAAA,OAChB;AAAA,MACA,YAAA,EAAc;AAAA,QACZ,WAAA,EAAa,gCAAA;AAAA,QACb,IAAA,EAAM,QAAA;AAAA,QACN,YAAA,EAAc,KAAA;AAAA,QACd,SAAA,EAAW,CAAC,YAAA,EAAc,UAAU;AAAA,OACtC;AAAA,MACA,UAAA,EAAY;AAAA,QACV,WAAA,EAAa,sDAAA;AAAA,QACb,IAAA,EAAM,QAAA;AAAA,QACN,YAAA,EAAc,KAAA;AAAA,QACd,SAAA,EAAW,cAAA;AAAA,QACX,OAAA,EAAS,UAAA;AAAA,QACT,KAAA,EAAO;AAAA;AAAA,OACT;AAAA,MACA,QAAA,EAAU;AAAA,QACR,WAAA,EAAa,iCAAA;AAAA,QACb,IAAA,EAAM,QAAA;AAAA,QACN,YAAA,EAAc,KAAA;AAAA,QACd,SAAA,EAAW,cAAA;AAAA,QACX,OAAA,EAAS;AAAA,OACX;AAAA,MACA,WAAA,EAAa;AAAA,QACX,WAAA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AQJ,SAAAA;;;ArBjDf,eAAsBS,IAAAA,CAAI,IAAA,GAAO,OAAA,CAAQ,IAAA,EAAM;AAC7C,EAAAR,OAAAA,CAAQ,IAAA,CAAK,CAAA,kBAAA,EAAqB,SAA2B;AAAA,CAAI,CAAA;AACjE,EAAA,MAAM,IAAA,GAAO,aAAa,IAAI,CAAA;AAG9B,EAAA,IAAI;AACF,IAAA,OAAO,MAAM,IAAA,CAAK,OAAA,CAAQ,YAAI,CAAA,CAAE,OAAA,CAAQ,iBAAS,CAAA,CAAE,OAAA,CAAQ,cAAM,CAAA,CAAE,OAAA,CAAQ;AAAA,MACzE,OAAA,EAAS,UAAA;AAAA,MACT,OAAA,EAAS,CAAC,cAAc,CAAA;AAAA,MACxB,QAAA,EAAU,mBAAA;AAAA,MACV,SAAS,CAAA,IAAA,KAAQ;AACf,QAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,iBAAU,CAAA,CAAE,OAAA,CAAQ,YAAI,CAAA,CAAE,OAAA,CAAQ,cAAM,CAAA,CAAE,aAAA,EAAc;AAAA,MAC9E,CAAA;AAAA,MACA,SAAS,CAAA,KAAA,KAAS;AAAA,MAAC;AAAA,KACpB,EAAE,UAAA,EAAW;AAAA,EAChB,SAAS,GAAA,EAAK;AACZ,IAAA,IAAI,eAAe,gBAAA,EAAkB;AACnC,MAAAA,OAAAA,CAAQ,MAAM,GAAG,CAAA;AAAA,IACnB;AAAA,EACF;AACF","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 branch from \"./commands/branch/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(branch).command({\n command: \"unstable\",\n aliases: [\"experimental\"],\n describe: \"Unstable commands\",\n builder: argv => {\n return argv.command(typescript).command(auth).command(branch).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.113.0\"}\\n`);\n const base = getYargsBase(args);\n\n // Special handling where failures happen before yargs does its error handling within .fail\n try {\n return await base.command(generateCommand).parseAsync();\n } catch (err) {\n if (err instanceof ExitProcessError) {\n consola.error(err);\n }\n }\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { isValidSemver, YargsCheckError } from \"@osdk/cli.common\";\nexport const generateCommand = {\n command: \"generate\",\n describe: \"Generate TypeScript SDK from ontology\",\n builder: argv => {\n return argv.options({\n outDir: {\n type: \"string\",\n description: \"Where to place the generated files\",\n demandOption: true\n },\n ontologyPath: {\n description: \"Path to the ontology wire json\",\n type: \"string\",\n demandOption: false,\n conflicts: [\"foundryUrl\", \"clientId\"]\n },\n foundryUrl: {\n description: \"URL for the foundry stack that contains the ontology\",\n type: \"string\",\n demandOption: false,\n conflicts: \"ontologyPath\",\n implies: \"clientId\",\n alias: \"stack\" // for backwards compatibility\n },\n clientId: {\n description: \"OAuth client ID for application\",\n type: \"string\",\n demandOption: false,\n conflicts: \"ontologyPath\",\n implies: \"foundryUrl\"\n },\n ontologyRid: {\n description: \"Limit requests to this ontology rid only\",\n type: \"string\",\n demandOption: false\n },\n ontologyWritePath: {\n description: \"Path to write the ontology wire json\",\n type: \"string\",\n demandOption: false,\n conflicts: [\"ontologyPath\"]\n },\n beta: {\n type: \"boolean\",\n description: \"Should generate beta sdk\",\n demandOption: false\n },\n packageType: {\n default: \"commonjs\",\n choices: [\"commonjs\", \"module\"]\n },\n version: {\n type: \"string\",\n description: \"Version of the generated code, or 'dev'\",\n demandOption: true\n },\n packageName: {\n type: \"string\",\n description: \"Name of the package to generate\"\n },\n asPackage: {\n type: \"boolean\",\n description: \"Generate as a package (makes a package.json and co)\"\n },\n clean: {\n type: \"boolean\",\n description: \"Clean the output directory before generating\"\n },\n internal: {\n type: \"boolean\",\n default: false\n },\n externalObjects: {\n type: \"string\",\n coerce: value => {\n const map = new Map();\n if (value) {\n for (const entry of value.split(\",\")) {\n const [api, ns] = entry.split(\":\");\n map.set(api, ns);\n }\n }\n return map;\n },\n default: \"\"\n },\n externalInterfaces: {\n type: \"string\",\n coerce: value => {\n const map = new Map();\n if (value) {\n for (const entry of value.split(\",\")) {\n const [api, ns] = entry.split(\":\");\n map.set(api, ns);\n }\n }\n return map;\n },\n default: \"\"\n },\n 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 experimentalOntologyMetadata: {\n type: \"boolean\",\n description: \"EXPERIMENTAL: emit the raw ontology metadata as a \" + \"./experimental/ontology-metadata subpath export. \" + \"May change or be removed at any time.\",\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 2026 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 sync from \"./sync/index.js\";\nconst command = {\n command: \"branch\",\n describe: \"Interact with branched SDKs published on a global branch\",\n builder: argv => {\n return argv.options({\n branchName: {\n type: \"string\",\n description: \"Git branch name used to select the branched SDKs (defaults to the current git branch).\"\n }\n }).command(sync).demandCommand();\n },\n handler: async () => {}\n};\nexport default command;","/*\n * Copyright 2026 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: \"sync\",\n describe: \"Sync SDKs to the latest published pre-release versions on a global branch (or stable on main)\",\n builder: argv => {\n return argv.options({\n packageName: {\n type: \"string\",\n description: \"Sync only this single SDK package instead of all discovered SDKs.\"\n },\n dryRun: {\n type: \"boolean\",\n default: false,\n description: \"Print the intended change without modifying files.\"\n }\n }).group([\"packageName\", \"dryRun\"], \"Sync Options\");\n },\n handler: async args => {\n const cmd = await import(\"./syncCommand.mjs\");\n await cmd.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 { ensureTrailingSlash, 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: ensureTrailingSlash,\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\";\n// oxlint-disable-next-line require-await -- intentionally async: returns a Promise to satisfy its declared/contract type; no await needed\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\";\n// oxlint-disable-next-line require-await -- intentionally async: returns a Promise to satisfy its declared/contract type; no await needed\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 { ensureTrailingSlash, 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: ensureTrailingSlash,\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 branchName: {\n type: \"string\",\n description: \"Git branch name used to publish the widget set (defaults to the current git branch).\",\n coerce: branchName => {\n const trimmed = branchName.trim();\n return trimmed === \"\" ? undefined : trimmed;\n }\n }\n }).group([\"directory\", \"repository\", \"branchName\"], \"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.option(\"branchName\", {\n type: \"string\",\n description: \"Git branch name used to list widget set versions (defaults to the current git branch).\",\n coerce: branchName => {\n const trimmed = branchName.trim();\n return trimmed === \"\" ? undefined : trimmed;\n }\n }).group([\"branchName\"], \"List Options\");\n },\n handler: async args => {\n const command = await import(\"./versionListCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;"]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/cli.ts","../../../cli.cmd.typescript/build/esm/index.js","../../../cli.cmd.typescript/build/esm/cli.js","../../../cli.cmd.typescript/build/esm/generate/generate.js","../../../cli.cmd.typescript/build/esm/typescriptCommand.js","../../src/commands/auth/index.ts","../../src/commands/auth/login/index.ts","../../src/commands/branch/index.ts","../../src/commands/branch/sync/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","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,eAAA,GAAkB;AAAA,EAC7B,OAAA,EAAS,UAAA;AAAA,EACT,QAAA,EAAU,uCAAA;AAAA,EACV,SAAS,CAAA,IAAA,KAAQ;AACf,IAAA,OAAO,KAAK,OAAA,CAAQ;AAAA,MAClB,MAAA,EAAQ;AAAA,QACN,IAAA,EAAM,QAAA;AAAA,QACN,WAAA,EAAa,oCAAA;AAAA,QACb,YAAA,EAAc;AAAA,OAChB;AAAA,MACA,YAAA,EAAc;AAAA,QACZ,WAAA,EAAa,gCAAA;AAAA,QACb,IAAA,EAAM,QAAA;AAAA,QACN,YAAA,EAAc,KAAA;AAAA,QACd,SAAA,EAAW,CAAC,YAAA,EAAc,UAAU;AAAA,OACtC;AAAA,MACA,UAAA,EAAY;AAAA,QACV,WAAA,EAAa,sDAAA;AAAA,QACb,IAAA,EAAM,QAAA;AAAA,QACN,YAAA,EAAc,KAAA;AAAA,QACd,SAAA,EAAW,cAAA;AAAA,QACX,OAAA,EAAS,UAAA;AAAA,QACT,KAAA,EAAO;AAAA;AAAA,OACT;AAAA,MACA,QAAA,EAAU;AAAA,QACR,WAAA,EAAa,iCAAA;AAAA,QACb,IAAA,EAAM,QAAA;AAAA,QACN,YAAA,EAAc,KAAA;AAAA,QACd,SAAA,EAAW,cAAA;AAAA,QACX,OAAA,EAAS;AAAA,OACX;AAAA,MACA,WAAA,EAAa;AAA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O,iBAAA,GAAQJ,SAAAA;;;ArBjDf,eAAsBS,IAAAA,CAAI,IAAA,GAAO,OAAA,CAAQ,IAAA,EAAM;AAC7C,EAAAR,OAAAA,CAAQ,IAAA,CAAK,CAAA,kBAAA,EAAqB,uDAA2B;AAAA,CAAI,CAAA;AACjE,EAAA,MAAM,IAAA,GAAO,aAAa,IAAI,CAAA;AAG9B,EAAA,IAAI;AACF,IAAA,OAAO,MAAM,IAAA,CAAK,OAAA,CAAQ,YAAI,CAAA,CAAE,OAAA,CAAQ,iBAAS,CAAA,CAAE,OAAA,CAAQ,cAAM,CAAA,CAAE,OAAA,CAAQ;AAAA,MACzE,OAAA,EAAS,UAAA;AAAA,MACT,OAAA,EAAS,CAAC,cAAc,CAAA;AAAA,MACxB,QAAA,EAAU,mBAAA;AAAA,MACV,SAAS,CAAA,IAAA,KAAQ;AACf,QAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,iBAAU,CAAA,CAAE,OAAA,CAAQ,YAAI,CAAA,CAAE,OAAA,CAAQ,cAAM,CAAA,CAAE,aAAA,EAAc;AAAA,MAC9E,CAAA;AAAA,MACA,SAAS,CAAA,KAAA,KAAS;AAAA,MAAC;AAAA,KACpB,EAAE,UAAA,EAAW;AAAA,EAChB,SAAS,GAAA,EAAK;AACZ,IAAA,IAAI,eAAe,gBAAA,EAAkB;AACnC,MAAAA,OAAAA,CAAQ,MAAM,GAAG,CAAA;AAAA,IACnB;AAAA,EACF;AACF","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 branch from \"./commands/branch/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(branch).command({\n command: \"unstable\",\n aliases: [\"experimental\"],\n describe: \"Unstable commands\",\n builder: argv => {\n return argv.command(typescript).command(auth).command(branch).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.113.1-main-65dcc111f0439ce4ce5dfd623bc3c12058fc547b\"}\\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 experimentalOntologyMetadata: {\n type: \"boolean\",\n description: \"EXPERIMENTAL: emit the raw ontology metadata as a \" + \"./experimental/ontology-metadata subpath export. \" + \"May change or be removed at any time.\",\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 2026 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 sync from \"./sync/index.js\";\nconst command = {\n command: \"branch\",\n describe: \"Interact with branched SDKs published on a global branch\",\n builder: argv => {\n return argv.options({\n branchName: {\n type: \"string\",\n description: \"Git branch name used to select the branched SDKs (defaults to the current git branch).\"\n }\n }).command(sync).demandCommand();\n },\n handler: async () => {}\n};\nexport default command;","/*\n * Copyright 2026 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: \"sync\",\n describe: \"Sync SDKs to the latest published pre-release versions on a global branch (or stable on main)\",\n builder: argv => {\n return argv.options({\n packageName: {\n type: \"string\",\n description: \"Sync only this single SDK package instead of all discovered SDKs.\"\n },\n dryRun: {\n type: \"boolean\",\n default: false,\n description: \"Print the intended change without modifying files.\"\n }\n }).group([\"packageName\", \"dryRun\"], \"Sync Options\");\n },\n handler: async args => {\n const cmd = await import(\"./syncCommand.mjs\");\n await cmd.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 { ensureTrailingSlash, 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: ensureTrailingSlash,\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\";\n// oxlint-disable-next-line require-await -- intentionally async: returns a Promise to satisfy its declared/contract type; no await needed\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\";\n// oxlint-disable-next-line require-await -- intentionally async: returns a Promise to satisfy its declared/contract type; no await needed\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 { ensureTrailingSlash, 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: ensureTrailingSlash,\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 branchName: {\n type: \"string\",\n description: \"Git branch name used to publish the widget set (defaults to the current git branch).\",\n coerce: branchName => {\n const trimmed = branchName.trim();\n return trimmed === \"\" ? undefined : trimmed;\n }\n }\n }).group([\"directory\", \"repository\", \"branchName\"], \"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.option(\"branchName\", {\n type: \"string\",\n description: \"Git branch name used to list widget set versions (defaults to the current git branch).\",\n coerce: branchName => {\n const trimmed = branchName.trim();\n return trimmed === \"\" ? undefined : trimmed;\n }\n }).group([\"branchName\"], \"List Options\");\n },\n handler: async args => {\n const command = await import(\"./versionListCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;"]}
@@ -1,4 +1,4 @@
1
- import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-SY5WMC7T.js';
1
+ import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-4U4EG3HV.js';
2
2
  import { ExitProcessError } from './chunk-SMOOGNGG.js';
3
3
  import './chunk-Y45LX2LV.js';
4
4
  import { init_esm_shims } from './chunk-LC652GLE.js';
@@ -173,5 +173,5 @@ ${colorize("green", link)}`,
173
173
  }
174
174
 
175
175
  export { siteDeployCommand as default };
176
- //# sourceMappingURL=siteDeployCommand-5XHBC6LW.js.map
177
- //# sourceMappingURL=siteDeployCommand-5XHBC6LW.js.map
176
+ //# sourceMappingURL=siteDeployCommand-S6NMYNKM.js.map
177
+ //# sourceMappingURL=siteDeployCommand-S6NMYNKM.js.map
@@ -1 +1 @@
1
- {"version":3,"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Q,EAAA,CAAG,YAAY,CAAA,QAAA,KAAY;AACjC,IAAA,YAAA,GAAe;AAAA,MACb,SAAA,EAAW,SAAS,OAAA,CAAQ,KAAA;AAAA,MAC5B,KAAA,EAAO,SAAS,EAAA,CAAG;AAAA,KACrB;AAAA,EACF,CAAC,CAAA;AACD,EAAA,OAAA,CAAQ,EAAA,CAAG,UAAU,MAAM;AACzB,IAAAA,OAAAA,CAAQ,IAAA,CAAK,CAAA,OAAA,EAAU,WAAA,CAAY,aAAa,KAAA,EAAO;AAAA,MACrD,MAAA,EAAQ;AAAA,KACT,CAAC,CAAA,YAAA,EAAe,YAAA,CAAa,SAAS,CAAA,MAAA,CAAQ,CAAA;AAAA,EACjD,CAAC,CAAA;AACH;AACA,SAAS,WAAA,CAAY,OAAO,IAAA,EAAM;AAChC,EAAAA,QAAQ,GAAA,CAAI;AAAA,IACV,OAAA,EAAS,GAAG,KAAK;;AAAA,EAAO,QAAA,CAAS,OAAA,EAAS,IAAI,CAAC,CAAA,CAAA;AAAA,IAC/C,KAAA,EAAO;AAAA,MACL,OAAA,EAAS,CAAA;AAAA,MACT,WAAA,EAAa,OAAA;AAAA,MACb,WAAA,EAAa;AAAA;AACf,GACD,CAAA;AACH","file":"siteDeployCommand-5XHBC6LW.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 * as fs from \"node:fs\";\nimport path from \"node:path\";\nimport { Readable } from \"node:stream\";\nimport { ExitProcessError } from \"@osdk/cli.common\";\nimport { autoVersion, AutoVersionError } from \"@osdk/foundry-config-json\";\nimport archiver from \"archiver\";\nimport { consola } from \"consola\";\nimport { colorize } from \"consola/utils\";\nimport prettyBytes from \"pretty-bytes\";\nimport { createInternalClientContext, thirdPartyApplications } from \"#net\";\nimport { maybeUpdateJemmaCustomMetadata } from \"../../../util/maybeUpdateJemmaCustomMetadata.js\";\nimport { loadToken } from \"../../../util/token.js\";\nexport default async function siteDeployCommand({\n selectedVersion,\n application,\n foundryUrl,\n uploadOnly,\n snapshot,\n snapshotId,\n directory,\n token,\n tokenFile\n}) {\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n let siteVersion;\n if (typeof selectedVersion === \"string\") {\n siteVersion = selectedVersion;\n } else {\n siteVersion = await findAutoVersion(selectedVersion);\n consola.info(`Auto version inferred next version to be: ${siteVersion}`);\n }\n consola.debug(`Using directory for site files: \"${path.resolve(directory)}`);\n const stat = await fs.promises.stat(directory);\n if (!stat.isDirectory()) {\n throw new ExitProcessError(2, \"Specified path exists but is not a directory\");\n }\n consola.start(\"Zipping site files\");\n const archive = archiver(\"zip\").directory(directory, false);\n logArchiveStats(archive);\n if (snapshot) {\n await uploadSnapshot(clientCtx, application, siteVersion, snapshotId ?? \"\", archive);\n consola.info(\"Snapshot mode enabled, skipping deployment\");\n return;\n }\n await upload(clientCtx, application, siteVersion, archive);\n let siteLink;\n if (!uploadOnly) {\n const website = await thirdPartyApplications.deployWebsite(clientCtx, application, {\n version: siteVersion\n });\n consola.success(`Deployed ${siteVersion} successfully`);\n const domain = website.subdomains[0];\n if (domain != null) {\n siteLink = `https://${domain}`;\n logSiteLink(\"View live site:\", siteLink);\n }\n } else {\n const website = await thirdPartyApplications.getWebsite(clientCtx, application);\n const domain = website?.subdomains[0];\n consola.info(\"Upload only mode enabled, skipping deployment\");\n if (domain != null) {\n siteLink = `https://${domain}/.system/preview?previewVersion=${siteVersion}`;\n logSiteLink(\"Preview link:\", siteLink);\n }\n }\n\n // Write the site link and version to the custom metadata file when the site link is present\n if (siteLink != null) {\n maybeUpdateJemmaCustomMetadata({\n siteLink,\n siteVersion\n });\n }\n}\nasync function findAutoVersion(config) {\n try {\n return await autoVersion(config);\n } catch (e) {\n throw new ExitProcessError(2, e instanceof Error ? e.message : undefined, e instanceof AutoVersionError ? e.tip : undefined);\n }\n}\nasync function uploadSnapshot(clientCtx, application, siteVersion, snapshotId, archive) {\n consola.start(\"Uploading snapshot site files\");\n await Promise.all([thirdPartyApplications.uploadSnapshotVersion(clientCtx, application, siteVersion, snapshotId, Readable.toWeb(archive) // This cast is because the dom fetch doesn't align type wise with streams\n ), archive.finalize()]);\n consola.success(\"Snapshot upload complete\");\n}\nasync function upload(clientCtx, application, siteVersion, archive) {\n consola.start(\"Uploading site files\");\n await Promise.all([thirdPartyApplications.uploadVersion(clientCtx, application, siteVersion, Readable.toWeb(archive) // This cast is because the dom fetch doesn't align type wise with streams\n ), archive.finalize()]);\n consola.success(\"Upload complete\");\n}\nfunction logArchiveStats(archive) {\n let archiveStats = {\n fileCount: 0,\n bytes: 0\n };\n archive.on(\"progress\", progress => {\n archiveStats = {\n fileCount: progress.entries.total,\n bytes: progress.fs.totalBytes\n };\n });\n archive.on(\"finish\", () => {\n consola.info(`Zipped ${prettyBytes(archiveStats.bytes, {\n binary: true\n })} total over ${archiveStats.fileCount} files`);\n });\n}\nfunction logSiteLink(title, link) {\n consola.box({\n message: `${title}\\n\\n${colorize(\"green\", link)}`,\n style: {\n padding: 2,\n borderColor: \"green\",\n borderStyle: \"rounded\"\n }\n });\n}","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as fs from \"node:fs\";\nimport { consola } from \"consola\";\n\n// Environment variable names\nconst JEMMA_JOB_CUSTOM_METADATA_PATH = \"JEMMA_JOB_CUSTOM_METADATA_PATH\";\n\n/**\n * Writes the site link to the custom metadata file (if the path is provided by the JEMMA_JOB_CUSTOM_METADATA_PATH environment variable).\n *\n * The custom metadata file will be updated with the following format:\n *\n * {\n * \"siteLink\": \"https://example.com\",\n * \"siteVersion\": \"1.0.0\"\n * }\n *\n * @param siteLink The site link to write to the custom metadata file.\n * @param siteVersion The site version to write to the custom metadata file.\n */\nexport function maybeUpdateJemmaCustomMetadata({\n siteLink,\n siteVersion\n}) {\n const jemmaCustomMetadataFilePath = getJemmaCustomMetadataFilePath();\n if (jemmaCustomMetadataFilePath == null) {\n return;\n }\n try {\n // Read or create the custom metadata file\n const customMetadata = getOrCreateCustomMetadata(jemmaCustomMetadataFilePath);\n\n // Set the site link in the custom metadata\n customMetadata.siteLink = siteLink;\n customMetadata.siteVersion = siteVersion;\n\n // Write the custom metadata to the file\n writeCustomMetadata(jemmaCustomMetadataFilePath, customMetadata);\n } catch (err) {\n consola.error(`Failed to update custom metadata file at ${jemmaCustomMetadataFilePath}`);\n }\n}\nfunction getJemmaCustomMetadataFilePath() {\n return process.env[JEMMA_JOB_CUSTOM_METADATA_PATH];\n}\nfunction getOrCreateCustomMetadata(jemmaCustomMetadataFilePath) {\n try {\n const parsedValue = JSON.parse(fs.readFileSync(jemmaCustomMetadataFilePath, \"utf-8\"));\n return typeof parsedValue === \"object\" && parsedValue != null ? parsedValue : {};\n } catch (e) {\n return {};\n }\n}\nfunction writeCustomMetadata(jemmaCustomMetadataFilePath, customMetadata) {\n fs.writeFileSync(jemmaCustomMetadataFilePath, JSON.stringify(customMetadata, null, 2));\n}"]}
1
+ {"version":3,"sources":["../../src/commands/site/deploy/siteDeployCommand.mts","../../src/util/maybeUpdateJemmaCustomMetadata.ts"],"names":["consola","fs2"],"m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SAAS,OAAA,CAAQ,KAAA;AAAA,MAC5B,KAAA,EAAO,SAAS,EAAA,CAAG;AAAA,KACrB;AAAA,EACF,CAAC,CAAA;AACD,EAAA,OAAA,CAAQ,EAAA,CAAG,UAAU,MAAM;AACzB,IAAAA,OAAAA,CAAQ,IAAA,CAAK,CAAA,OAAA,EAAU,WAAA,CAAY,aAAa,KAAA,EAAO;AAAA,MACrD,MAAA,EAAQ;AAAA,KACT,CAAC,CAAA,YAAA,EAAe,YAAA,CAAa,SAAS,CAAA,MAAA,CAAQ,CAAA;AAAA,EACjD,CAAC,CAAA;AACH;AACA,SAAS,WAAA,CAAY,OAAO,IAAA,EAAM;AAChC,EAAAA,QAAQ,GAAA,CAAI;AAAA,IACV,OAAA,EAAS,GAAG,KAAK;;AAAA,EAAO,QAAA,CAAS,OAAA,EAAS,IAAI,CAAC,CAAA,CAAA;AAAA,IAC/C,KAAA,EAAO;AAAA,MACL,OAAA,EAAS,CAAA;AAAA,MACT,WAAA,EAAa,OAAA;AAAA,MACb,WAAA,EAAa;AAAA;AACf,GACD,CAAA;AACH","file":"siteDeployCommand-S6NMYNKM.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 * as fs from \"node:fs\";\nimport path from \"node:path\";\nimport { Readable } from \"node:stream\";\nimport { ExitProcessError } from \"@osdk/cli.common\";\nimport { autoVersion, AutoVersionError } from \"@osdk/foundry-config-json\";\nimport archiver from \"archiver\";\nimport { consola } from \"consola\";\nimport { colorize } from \"consola/utils\";\nimport prettyBytes from \"pretty-bytes\";\nimport { createInternalClientContext, thirdPartyApplications } from \"#net\";\nimport { maybeUpdateJemmaCustomMetadata } from \"../../../util/maybeUpdateJemmaCustomMetadata.js\";\nimport { loadToken } from \"../../../util/token.js\";\nexport default async function siteDeployCommand({\n selectedVersion,\n application,\n foundryUrl,\n uploadOnly,\n snapshot,\n snapshotId,\n directory,\n token,\n tokenFile\n}) {\n const loadedToken = await loadToken(token, tokenFile);\n const tokenProvider = () => loadedToken;\n const clientCtx = createInternalClientContext(foundryUrl, tokenProvider);\n let siteVersion;\n if (typeof selectedVersion === \"string\") {\n siteVersion = selectedVersion;\n } else {\n siteVersion = await findAutoVersion(selectedVersion);\n consola.info(`Auto version inferred next version to be: ${siteVersion}`);\n }\n consola.debug(`Using directory for site files: \"${path.resolve(directory)}`);\n const stat = await fs.promises.stat(directory);\n if (!stat.isDirectory()) {\n throw new ExitProcessError(2, \"Specified path exists but is not a directory\");\n }\n consola.start(\"Zipping site files\");\n const archive = archiver(\"zip\").directory(directory, false);\n logArchiveStats(archive);\n if (snapshot) {\n await uploadSnapshot(clientCtx, application, siteVersion, snapshotId ?? \"\", archive);\n consola.info(\"Snapshot mode enabled, skipping deployment\");\n return;\n }\n await upload(clientCtx, application, siteVersion, archive);\n let siteLink;\n if (!uploadOnly) {\n const website = await thirdPartyApplications.deployWebsite(clientCtx, application, {\n version: siteVersion\n });\n consola.success(`Deployed ${siteVersion} successfully`);\n const domain = website.subdomains[0];\n if (domain != null) {\n siteLink = `https://${domain}`;\n logSiteLink(\"View live site:\", siteLink);\n }\n } else {\n const website = await thirdPartyApplications.getWebsite(clientCtx, application);\n const domain = website?.subdomains[0];\n consola.info(\"Upload only mode enabled, skipping deployment\");\n if (domain != null) {\n siteLink = `https://${domain}/.system/preview?previewVersion=${siteVersion}`;\n logSiteLink(\"Preview link:\", siteLink);\n }\n }\n\n // Write the site link and version to the custom metadata file when the site link is present\n if (siteLink != null) {\n maybeUpdateJemmaCustomMetadata({\n siteLink,\n siteVersion\n });\n }\n}\nasync function findAutoVersion(config) {\n try {\n return await autoVersion(config);\n } catch (e) {\n throw new ExitProcessError(2, e instanceof Error ? e.message : undefined, e instanceof AutoVersionError ? e.tip : undefined);\n }\n}\nasync function uploadSnapshot(clientCtx, application, siteVersion, snapshotId, archive) {\n consola.start(\"Uploading snapshot site files\");\n await Promise.all([thirdPartyApplications.uploadSnapshotVersion(clientCtx, application, siteVersion, snapshotId, Readable.toWeb(archive) // This cast is because the dom fetch doesn't align type wise with streams\n ), archive.finalize()]);\n consola.success(\"Snapshot upload complete\");\n}\nasync function upload(clientCtx, application, siteVersion, archive) {\n consola.start(\"Uploading site files\");\n await Promise.all([thirdPartyApplications.uploadVersion(clientCtx, application, siteVersion, Readable.toWeb(archive) // This cast is because the dom fetch doesn't align type wise with streams\n ), archive.finalize()]);\n consola.success(\"Upload complete\");\n}\nfunction logArchiveStats(archive) {\n let archiveStats = {\n fileCount: 0,\n bytes: 0\n };\n archive.on(\"progress\", progress => {\n archiveStats = {\n fileCount: progress.entries.total,\n bytes: progress.fs.totalBytes\n };\n });\n archive.on(\"finish\", () => {\n consola.info(`Zipped ${prettyBytes(archiveStats.bytes, {\n binary: true\n })} total over ${archiveStats.fileCount} files`);\n });\n}\nfunction logSiteLink(title, link) {\n consola.box({\n message: `${title}\\n\\n${colorize(\"green\", link)}`,\n style: {\n padding: 2,\n borderColor: \"green\",\n borderStyle: \"rounded\"\n }\n });\n}","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as fs from \"node:fs\";\nimport { consola } from \"consola\";\n\n// Environment variable names\nconst JEMMA_JOB_CUSTOM_METADATA_PATH = \"JEMMA_JOB_CUSTOM_METADATA_PATH\";\n\n/**\n * Writes the site link to the custom metadata file (if the path is provided by the JEMMA_JOB_CUSTOM_METADATA_PATH environment variable).\n *\n * The custom metadata file will be updated with the following format:\n *\n * {\n * \"siteLink\": \"https://example.com\",\n * \"siteVersion\": \"1.0.0\"\n * }\n *\n * @param siteLink The site link to write to the custom metadata file.\n * @param siteVersion The site version to write to the custom metadata file.\n */\nexport function maybeUpdateJemmaCustomMetadata({\n siteLink,\n siteVersion\n}) {\n const jemmaCustomMetadataFilePath = getJemmaCustomMetadataFilePath();\n if (jemmaCustomMetadataFilePath == null) {\n return;\n }\n try {\n // Read or create the custom metadata file\n const customMetadata = getOrCreateCustomMetadata(jemmaCustomMetadataFilePath);\n\n // Set the site link in the custom metadata\n customMetadata.siteLink = siteLink;\n customMetadata.siteVersion = siteVersion;\n\n // Write the custom metadata to the file\n writeCustomMetadata(jemmaCustomMetadataFilePath, customMetadata);\n } catch (err) {\n consola.error(`Failed to update custom metadata file at ${jemmaCustomMetadataFilePath}`);\n }\n}\nfunction getJemmaCustomMetadataFilePath() {\n return process.env[JEMMA_JOB_CUSTOM_METADATA_PATH];\n}\nfunction getOrCreateCustomMetadata(jemmaCustomMetadataFilePath) {\n try {\n const parsedValue = JSON.parse(fs.readFileSync(jemmaCustomMetadataFilePath, \"utf-8\"));\n return typeof parsedValue === \"object\" && parsedValue != null ? parsedValue : {};\n } catch (e) {\n return {};\n }\n}\nfunction writeCustomMetadata(jemmaCustomMetadataFilePath, customMetadata) {\n fs.writeFileSync(jemmaCustomMetadataFilePath, JSON.stringify(customMetadata, null, 2));\n}"]}
@@ -1,5 +1,5 @@
1
1
  import { handlePromptCancel } from './chunk-PGWHLJ3X.js';
2
- import { loadToken, createInternalClientContext, widget_registry_exports } from './chunk-SY5WMC7T.js';
2
+ import { loadToken, createInternalClientContext, widget_registry_exports } from './chunk-4U4EG3HV.js';
3
3
  import './chunk-SMOOGNGG.js';
4
4
  import './chunk-Y45LX2LV.js';
5
5
  import { init_esm_shims } from './chunk-LC652GLE.js';
@@ -33,5 +33,5 @@ ${colorize("bold", "This action cannot be undone.")}`, {
33
33
  }
34
34
 
35
35
  export { versionDeleteCommand as default };
36
- //# sourceMappingURL=versionDeleteCommand-MQF4OW5K.js.map
37
- //# sourceMappingURL=versionDeleteCommand-MQF4OW5K.js.map
36
+ //# sourceMappingURL=versionDeleteCommand-P7CC3BHP.js.map
37
+ //# sourceMappingURL=versionDeleteCommand-P7CC3BHP.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/commands/widgetset/version/delete/versionDeleteCommand.mts"],"names":[],"mappings":";;;;;;;;;AAAA,cAAA,EAAA;AAqBA,eAAO,oBAAA,CAA4C;AAAA,EACjD,OAAA;AAAA,EACA,GAAA;AAAA,EACA,SAAA;AAAA,EACA,UAAA;AAAA,EACA,KAAA;AAAA,EACA;AACF,CAAA,EAAG;AACD,EAAA,IAAI,CAAC,GAAA,EAAK;AACR,IAAA,MAAM,SAAA,GAAY,MAAM,OAAA,CAAQ,MAAA,CAAO,+CAA+C,OAAO,CAAA;AAAA,EAAM,QAAA,CAAS,MAAA,EAAQ,+BAA+B,CAAC,CAAA,CAAA,EAAI;AAAA,MACtJ,IAAA,EAAM,SAAA;AAAA,MACN,MAAA,EAAQ;AAAA,KACT,CAAA;AACD,IAAA,kBAAA,CAAmB,SAAS,CAAA;AAAA,EAC9B;AACA,EAAA,OAAA,CAAQ,KAAA,CAAM,CAAA,iBAAA,EAAoB,OAAO,CAAA,CAAE,CAAA;AAC3C,EAAA,MAAM,WAAA,GAAc,MAAM,SAAA,CAAU,KAAA,EAAO,SAAS,CAAA;AACpD,EAAA,MAAM,gBAAgB,MAAM,WAAA;AAC5B,EAAA,MAAM,SAAA,GAAY,2BAAA,CAA4B,UAAA,EAAY,aAAa,CAAA;AACvE,EAAA,MAAM,uBAAA,CAAe,aAAA,CAAc,SAAA,EAAW,SAAA,EAAW,OAAO,CAAA;AAChE,EAAA,OAAA,CAAQ,OAAA,CAAQ,CAAA,gBAAA,EAAmB,OAAO,CAAA,CAAE,CAAA;AAC9C","file":"versionDeleteCommand-MQF4OW5K.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 { colorize } from \"consola/utils\";\nimport { createInternalClientContext, widgetRegistry } from \"#net\";\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
+ {"version":3,"sources":["../../src/commands/widgetset/version/delete/versionDeleteCommand.mts"],"names":[],"mappings":";;;;;;;;;AAAA,cAAA,EAAA;AAqBA,eAAO,oBAAA,CAA4C;AAAA,EACjD,OAAA;AAAA,EACA,GAAA;AAAA,EACA,SAAA;AAAA,EACA,UAAA;AAAA,EACA,KAAA;AAAA,EACA;AACF,CAAA,EAAG;AACD,EAAA,IAAI,CAAC,GAAA,EAAK;AACR,IAAA,MAAM,SAAA,GAAY,MAAM,OAAA,CAAQ,MAAA,CAAO,+CAA+C,OAAO,CAAA;AAAA,EAAM,QAAA,CAAS,MAAA,EAAQ,+BAA+B,CAAC,CAAA,CAAA,EAAI;AAAA,MACtJ,IAAA,EAAM,SAAA;AAAA,MACN,MAAA,EAAQ;AAAA,KACT,CAAA;AACD,IAAA,kBAAA,CAAmB,SAAS,CAAA;AAAA,EAC9B;AACA,EAAA,OAAA,CAAQ,KAAA,CAAM,CAAA,iBAAA,EAAoB,OAAO,CAAA,CAAE,CAAA;AAC3C,EAAA,MAAM,WAAA,GAAc,MAAM,SAAA,CAAU,KAAA,EAAO,SAAS,CAAA;AACpD,EAAA,MAAM,gBAAgB,MAAM,WAAA;AAC5B,EAAA,MAAM,SAAA,GAAY,2BAAA,CAA4B,UAAA,EAAY,aAAa,CAAA;AACvE,EAAA,MAAM,uBAAA,CAAe,aAAA,CAAc,SAAA,EAAW,SAAA,EAAW,OAAO,CAAA;AAChE,EAAA,OAAA,CAAQ,OAAA,CAAQ,CAAA,gBAAA,EAAmB,OAAO,CAAA,CAAE,CAAA;AAC9C","file":"versionDeleteCommand-P7CC3BHP.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 { colorize } from \"consola/utils\";\nimport { createInternalClientContext, widgetRegistry } from \"#net\";\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,5 +1,5 @@
1
1
  import { handlePromptCancel } from './chunk-PGWHLJ3X.js';
2
- import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-SY5WMC7T.js';
2
+ import { loadToken, createInternalClientContext, third_party_applications_exports } from './chunk-4U4EG3HV.js';
3
3
  import './chunk-SMOOGNGG.js';
4
4
  import './chunk-Y45LX2LV.js';
5
5
  import { init_esm_shims } from './chunk-LC652GLE.js';
@@ -33,5 +33,5 @@ ${colorize("bold", "This action cannot be undone.")}`, {
33
33
  }
34
34
 
35
35
  export { versionDeleteCommand as default };
36
- //# sourceMappingURL=versionDeleteCommand-LVG6CRQK.js.map
37
- //# sourceMappingURL=versionDeleteCommand-LVG6CRQK.js.map
36
+ //# sourceMappingURL=versionDeleteCommand-PR26BTAP.js.map
37
+ //# sourceMappingURL=versionDeleteCommand-PR26BTAP.js.map