@osdk/cli 0.29.0-beta.4 → 0.29.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/build/esm/{acorn-LDCVC6JB.js → acorn-OOLA2SYL.js} +1429 -1263
- package/build/esm/acorn-OOLA2SYL.js.map +1 -0
- package/build/esm/angular-B3DVBAJV.js +3921 -0
- package/build/esm/angular-B3DVBAJV.js.map +1 -0
- package/build/esm/{babel-N25BYA2X.js → babel-QGU36NF2.js} +4749 -4416
- package/build/esm/babel-QGU36NF2.js.map +1 -0
- package/build/esm/{chunk-QXPYZB75.js → chunk-2R54QG3I.js} +7 -6
- package/build/esm/chunk-2R54QG3I.js.map +1 -0
- package/build/esm/{chunk-LSNWUUU4.js → chunk-5WP6J4UN.js} +3 -3
- package/build/esm/{chunk-LSNWUUU4.js.map → chunk-5WP6J4UN.js.map} +1 -1
- package/build/esm/{chunk-DDJKLTGZ.js → chunk-CZNX7NAA.js} +8 -8
- package/build/esm/{chunk-DDJKLTGZ.js.map → chunk-CZNX7NAA.js.map} +1 -1
- package/build/esm/{chunk-OQOD7Q5O.js → chunk-HDRBKETK.js} +3 -3
- package/build/esm/{chunk-OQOD7Q5O.js.map → chunk-HDRBKETK.js.map} +1 -1
- package/build/esm/{chunk-QM5477MW.js → chunk-QCQEOFJ7.js} +15 -10
- package/build/esm/chunk-QCQEOFJ7.js.map +1 -0
- package/build/esm/{chunk-F2MY3E4F.js → chunk-SEG3TN7G.js} +7 -7
- package/build/esm/{chunk-F2MY3E4F.js.map → chunk-SEG3TN7G.js.map} +1 -1
- package/build/esm/{chunk-LKKWDXGN.js → chunk-TGQMPTOO.js} +6 -5
- package/build/esm/chunk-TGQMPTOO.js.map +1 -0
- package/build/esm/{chunk-WLVSRC6U.js → chunk-WLPJIKJV.js} +3 -3
- package/build/esm/{chunk-WLVSRC6U.js.map → chunk-WLPJIKJV.js.map} +1 -1
- package/build/esm/{chunk-KAX6KWRO.js → chunk-ZAWCQ47H.js} +9 -9
- package/build/esm/chunk-ZAWCQ47H.js.map +1 -0
- package/build/esm/estree-ATGZ6OGQ.js +6145 -0
- package/build/esm/estree-ATGZ6OGQ.js.map +1 -0
- package/build/esm/find-up-JM7QWHT3.js +4 -0
- package/build/esm/{find-up-3ECFX3RW.js.map → find-up-JM7QWHT3.js.map} +1 -1
- package/build/esm/flow-GUZBCHQS.js +27169 -0
- package/build/esm/flow-GUZBCHQS.js.map +1 -0
- package/build/esm/{glimmer-LMYVLKQJ.js → glimmer-K2WK52BN.js} +2642 -2669
- package/build/esm/glimmer-K2WK52BN.js.map +1 -0
- package/build/esm/{graphql-TIIPUP6F.js → graphql-MBGHR3ZR.js} +543 -529
- package/build/esm/graphql-MBGHR3ZR.js.map +1 -0
- package/build/esm/{handleGenerate-445OLTOF.js → handleGenerate-KGS77ERN.js} +4625 -8526
- package/build/esm/handleGenerate-KGS77ERN.js.map +1 -0
- package/build/esm/{html-GXELFXJW.js → html-IRNVR4MI.js} +1485 -1328
- package/build/esm/html-IRNVR4MI.js.map +1 -0
- package/build/esm/index.js +22 -18
- package/build/esm/index.js.map +1 -1
- package/build/esm/loginFlow-AGXNBVJB.js +4 -0
- package/build/esm/{loginFlow-Q22IZHBH.js.map → loginFlow-AGXNBVJB.js.map} +1 -1
- package/build/esm/markdown-N3ITOTMK.js +6697 -0
- package/build/esm/markdown-N3ITOTMK.js.map +1 -0
- package/build/esm/meriyah-LUFL36FF.js +4343 -0
- package/build/esm/meriyah-LUFL36FF.js.map +1 -0
- package/build/esm/{postcss-H2GULB5O.js → postcss-TV6UK7MR.js} +2266 -2173
- package/build/esm/postcss-TV6UK7MR.js.map +1 -0
- package/build/esm/{siteDeployCommand-ELG3HGUO.js → siteDeployCommand-CWR5F4EH.js} +11 -11
- package/build/esm/{siteDeployCommand-ELG3HGUO.js.map → siteDeployCommand-CWR5F4EH.js.map} +1 -1
- package/build/esm/typescript-KPTOIHC3.js +13078 -0
- package/build/esm/typescript-KPTOIHC3.js.map +1 -0
- package/build/esm/{versionDeleteCommand-TZ7OZMJZ.js → versionDeleteCommand-5KF34BQE.js} +7 -7
- package/build/esm/{versionDeleteCommand-TZ7OZMJZ.js.map → versionDeleteCommand-5KF34BQE.js.map} +1 -1
- package/build/esm/{versionDeleteCommand-WCPNWWCT.js → versionDeleteCommand-5ZF5YLI4.js} +7 -7
- package/build/esm/{versionDeleteCommand-WCPNWWCT.js.map → versionDeleteCommand-5ZF5YLI4.js.map} +1 -1
- package/build/esm/{versionGetCommand-Y5IZVCDV.js → versionGetCommand-JCTQEP3R.js} +6 -6
- package/build/esm/{versionGetCommand-Y5IZVCDV.js.map → versionGetCommand-JCTQEP3R.js.map} +1 -1
- package/build/esm/{versionInfoCommand-A6QWBVHM.js → versionInfoCommand-FCPKK743.js} +6 -6
- package/build/esm/{versionInfoCommand-A6QWBVHM.js.map → versionInfoCommand-FCPKK743.js.map} +1 -1
- package/build/esm/{versionListCommand-OUVNRPF4.js → versionListCommand-6KQHQNSI.js} +6 -6
- package/build/esm/{versionListCommand-OUVNRPF4.js.map → versionListCommand-6KQHQNSI.js.map} +1 -1
- package/build/esm/{versionListCommand-BIQXS35T.js → versionListCommand-HSSUX52Q.js} +6 -6
- package/build/esm/{versionListCommand-BIQXS35T.js.map → versionListCommand-HSSUX52Q.js.map} +1 -1
- package/build/esm/{versionSetCommand-IXGZF74D.js → versionSetCommand-X4B2SNU4.js} +6 -6
- package/build/esm/{versionSetCommand-IXGZF74D.js.map → versionSetCommand-X4B2SNU4.js.map} +1 -1
- package/build/esm/{versionUnsetCommand-T25RYSWI.js → versionUnsetCommand-FPJ4K56H.js} +7 -7
- package/build/esm/{versionUnsetCommand-T25RYSWI.js.map → versionUnsetCommand-FPJ4K56H.js.map} +1 -1
- package/build/esm/{widgetSetDeployCommand-GTUZPXWV.js → widgetSetDeployCommand-N34DLLLN.js} +10 -10
- package/build/esm/{widgetSetDeployCommand-GTUZPXWV.js.map → widgetSetDeployCommand-N34DLLLN.js.map} +1 -1
- package/build/esm/{yaml-KOGLWA2D.js → yaml-LD5K7H4C.js} +1294 -1270
- package/build/esm/yaml-LD5K7H4C.js.map +1 -0
- package/package.json +9 -9
- package/build/esm/acorn-LDCVC6JB.js.map +0 -1
- package/build/esm/angular-QCCX4AYW.js +0 -1981
- package/build/esm/angular-QCCX4AYW.js.map +0 -1
- package/build/esm/babel-N25BYA2X.js.map +0 -1
- package/build/esm/chunk-KAX6KWRO.js.map +0 -1
- package/build/esm/chunk-LKKWDXGN.js.map +0 -1
- package/build/esm/chunk-QM5477MW.js.map +0 -1
- package/build/esm/chunk-QXPYZB75.js.map +0 -1
- package/build/esm/estree-UST4NHPG.js +0 -6035
- package/build/esm/estree-UST4NHPG.js.map +0 -1
- package/build/esm/find-up-3ECFX3RW.js +0 -4
- package/build/esm/flow-AR2Y6E56.js +0 -26049
- package/build/esm/flow-AR2Y6E56.js.map +0 -1
- package/build/esm/glimmer-LMYVLKQJ.js.map +0 -1
- package/build/esm/graphql-TIIPUP6F.js.map +0 -1
- package/build/esm/handleGenerate-445OLTOF.js.map +0 -1
- package/build/esm/html-GXELFXJW.js.map +0 -1
- package/build/esm/loginFlow-Q22IZHBH.js +0 -4
- package/build/esm/markdown-F6PPZMW4.js +0 -6529
- package/build/esm/markdown-F6PPZMW4.js.map +0 -1
- package/build/esm/meriyah-BSWDAYFB.js +0 -4105
- package/build/esm/meriyah-BSWDAYFB.js.map +0 -1
- package/build/esm/postcss-H2GULB5O.js.map +0 -1
- package/build/esm/typescript-JCJLC54Y.js +0 -19653
- package/build/esm/typescript-JCJLC54Y.js.map +0 -1
- package/build/esm/yaml-KOGLWA2D.js.map +0 -1
package/build/esm/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { loadFoundryConfig } from './chunk-
|
|
2
|
-
import { MANIFEST_FILE_LOCATION } from './chunk-
|
|
3
|
-
import { getYargsBase, ExitProcessError, YargsCheckError, isValidSemver } from './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import { init_esm_shims } from './chunk-
|
|
1
|
+
import { loadFoundryConfig } from './chunk-QCQEOFJ7.js';
|
|
2
|
+
import { MANIFEST_FILE_LOCATION } from './chunk-HDRBKETK.js';
|
|
3
|
+
import { getYargsBase, ExitProcessError, YargsCheckError, isValidSemver } from './chunk-5WP6J4UN.js';
|
|
4
|
+
import './chunk-SEG3TN7G.js';
|
|
5
|
+
import { init_esm_shims } from './chunk-TGQMPTOO.js';
|
|
6
6
|
import { consola } from 'consola';
|
|
7
7
|
|
|
8
8
|
// src/index.ts
|
|
@@ -120,6 +120,10 @@ var generateCommand = {
|
|
|
120
120
|
},
|
|
121
121
|
default: ""
|
|
122
122
|
},
|
|
123
|
+
branch: {
|
|
124
|
+
type: "string",
|
|
125
|
+
description: "The branch rid of the ontology to generate from"
|
|
126
|
+
},
|
|
123
127
|
skipPackageJsonUpdate: {
|
|
124
128
|
type: "boolean",
|
|
125
129
|
description: "Skip updating package.json with OSDK dependencies",
|
|
@@ -142,7 +146,7 @@ var generateCommand = {
|
|
|
142
146
|
});
|
|
143
147
|
},
|
|
144
148
|
handler: async (args) => {
|
|
145
|
-
const command16 = await import('./handleGenerate-
|
|
149
|
+
const command16 = await import('./handleGenerate-KGS77ERN.js');
|
|
146
150
|
await command16.handleGenerate(args);
|
|
147
151
|
}
|
|
148
152
|
};
|
|
@@ -177,7 +181,7 @@ var command = {
|
|
|
177
181
|
});
|
|
178
182
|
},
|
|
179
183
|
handler: async (args) => {
|
|
180
|
-
const command16 = await import('./loginFlow-
|
|
184
|
+
const command16 = await import('./loginFlow-AGXNBVJB.js');
|
|
181
185
|
await command16.default(args);
|
|
182
186
|
}
|
|
183
187
|
};
|
|
@@ -354,7 +358,7 @@ var command2 = {
|
|
|
354
358
|
}).middleware((args) => logSiteDeployCommandConfigFileOverride(args, siteConfig));
|
|
355
359
|
},
|
|
356
360
|
handler: async (args) => {
|
|
357
|
-
const command16 = await import('./siteDeployCommand-
|
|
361
|
+
const command16 = await import('./siteDeployCommand-CWR5F4EH.js');
|
|
358
362
|
const {
|
|
359
363
|
version,
|
|
360
364
|
autoVersion,
|
|
@@ -404,7 +408,7 @@ var command3 = {
|
|
|
404
408
|
}).group(["yes"], "Delete Options");
|
|
405
409
|
},
|
|
406
410
|
handler: async (args) => {
|
|
407
|
-
const command16 = await import('./versionDeleteCommand-
|
|
411
|
+
const command16 = await import('./versionDeleteCommand-5KF34BQE.js');
|
|
408
412
|
await command16.default(args);
|
|
409
413
|
}
|
|
410
414
|
};
|
|
@@ -419,7 +423,7 @@ var command4 = {
|
|
|
419
423
|
return argv;
|
|
420
424
|
},
|
|
421
425
|
handler: async (args) => {
|
|
422
|
-
const command16 = await import('./versionGetCommand-
|
|
426
|
+
const command16 = await import('./versionGetCommand-JCTQEP3R.js');
|
|
423
427
|
await command16.default(args);
|
|
424
428
|
}
|
|
425
429
|
};
|
|
@@ -434,7 +438,7 @@ var command5 = {
|
|
|
434
438
|
return argv;
|
|
435
439
|
},
|
|
436
440
|
handler: async (args) => {
|
|
437
|
-
const command16 = await import('./versionListCommand-
|
|
441
|
+
const command16 = await import('./versionListCommand-6KQHQNSI.js');
|
|
438
442
|
await command16.default(args);
|
|
439
443
|
}
|
|
440
444
|
};
|
|
@@ -453,7 +457,7 @@ var command6 = {
|
|
|
453
457
|
});
|
|
454
458
|
},
|
|
455
459
|
handler: async (args) => {
|
|
456
|
-
const command16 = await import('./versionSetCommand-
|
|
460
|
+
const command16 = await import('./versionSetCommand-X4B2SNU4.js');
|
|
457
461
|
await command16.default(args);
|
|
458
462
|
}
|
|
459
463
|
};
|
|
@@ -472,7 +476,7 @@ var command7 = {
|
|
|
472
476
|
}).group(["yes"], "Unset Options");
|
|
473
477
|
},
|
|
474
478
|
handler: async (args) => {
|
|
475
|
-
const command16 = await import('./versionUnsetCommand-
|
|
479
|
+
const command16 = await import('./versionUnsetCommand-FPJ4K56H.js');
|
|
476
480
|
await command16.default(args);
|
|
477
481
|
}
|
|
478
482
|
};
|
|
@@ -593,7 +597,7 @@ The widget set files must contain a valid manifest at ${MANIFEST_FILE_LOCATION}
|
|
|
593
597
|
}).group(["directory", "repository"], "Deploy Options").middleware((args) => logWidgetSetDeployCommandConfigFileOverride(args, widgetSetConfig));
|
|
594
598
|
},
|
|
595
599
|
handler: async (args) => {
|
|
596
|
-
const command16 = await import('./widgetSetDeployCommand-
|
|
600
|
+
const command16 = await import('./widgetSetDeployCommand-N34DLLLN.js');
|
|
597
601
|
await command16.default(args);
|
|
598
602
|
}
|
|
599
603
|
};
|
|
@@ -630,7 +634,7 @@ var command11 = {
|
|
|
630
634
|
}).group(["yes"], "Delete Options");
|
|
631
635
|
},
|
|
632
636
|
handler: async (args) => {
|
|
633
|
-
const command16 = await import('./versionDeleteCommand-
|
|
637
|
+
const command16 = await import('./versionDeleteCommand-5ZF5YLI4.js');
|
|
634
638
|
await command16.default(args);
|
|
635
639
|
}
|
|
636
640
|
};
|
|
@@ -649,7 +653,7 @@ var command12 = {
|
|
|
649
653
|
});
|
|
650
654
|
},
|
|
651
655
|
handler: async (args) => {
|
|
652
|
-
const command16 = await import('./versionInfoCommand-
|
|
656
|
+
const command16 = await import('./versionInfoCommand-FCPKK743.js');
|
|
653
657
|
await command16.default(args);
|
|
654
658
|
}
|
|
655
659
|
};
|
|
@@ -664,7 +668,7 @@ var command13 = {
|
|
|
664
668
|
return argv;
|
|
665
669
|
},
|
|
666
670
|
handler: async (args) => {
|
|
667
|
-
const command16 = await import('./versionListCommand-
|
|
671
|
+
const command16 = await import('./versionListCommand-HSSUX52Q.js');
|
|
668
672
|
await command16.default(args);
|
|
669
673
|
}
|
|
670
674
|
};
|
|
@@ -738,7 +742,7 @@ var widgetset_default = command15;
|
|
|
738
742
|
|
|
739
743
|
// src/cli.ts
|
|
740
744
|
async function cli2(args = process.argv) {
|
|
741
|
-
consola.info(`Palantir OSDK CLI ${"0.29.0-beta.
|
|
745
|
+
consola.info(`Palantir OSDK CLI ${"0.29.0-beta.5"}
|
|
742
746
|
`);
|
|
743
747
|
const base = getYargsBase(args);
|
|
744
748
|
try {
|
package/build/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/cli.ts","../../../cli.cmd.typescript/build/esm/index.js","../../../cli.cmd.typescript/build/esm/cli.js","../../../cli.cmd.typescript/build/esm/generate/generate.js","../../../cli.cmd.typescript/build/esm/typescriptCommand.js","../../src/commands/auth/index.ts","../../src/commands/auth/login/index.ts","../../src/commands/site/index.ts","../../src/util/configLoader.ts","../../src/yargs/logConfigFileMiddleware.ts","../../src/commands/site/deploy/index.ts","../../src/commands/site/deploy/logSiteDeployCommandConfigFileOverride.ts","../../src/commands/site/logSiteCommandConfigFileOverride.ts","../../src/commands/site/version/index.ts","../../src/commands/site/version/delete/index.ts","../../src/commands/site/version/get/index.ts","../../src/commands/site/version/list/index.ts","../../src/commands/site/version/set/index.ts","../../src/commands/site/version/unset/index.ts","../../src/commands/widgetset/index.ts","../../src/commands/widgetset/deploy/index.ts","../../src/commands/widgetset/deploy/logWidgetSetDeployCommandConfigFileOverride.ts","../../src/commands/widgetset/logWidgetSetCommandConfigFileOverride.ts","../../src/commands/widgetset/version/index.ts","../../src/commands/widgetset/version/delete/index.ts","../../src/commands/widgetset/version/info/index.ts","../../src/commands/widgetset/version/list/index.ts"],"names":["command","consola","autoVersion","application","foundryUrl","deploy_default","delete_default","list_default","version_default","widgetSet","cli"],"mappings":";;;;;;;;AAAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;AAiBO,IAAM,eAAkB,GAAA;AAAA,EAC7B,OAAS,EAAA,UAAA;AAAA,EACT,QAAU,EAAA,uCAAA;AAAA,EACV,SAAS,CAAQ,IAAA,KAAA;AACf,IAAA,OAAO,KAAK,OAAQ,CAAA;AAAA,MAClB,MAAQ,EAAA;AAAA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AI,IAAA;AACF,IAAO,OAAA,MAAM,KAAK,OAAQ,CAAA,YAAI,EAAE,OAAQ,CAAA,iBAAS,EAAE,OAAQ,CAAA;AAAA,MACzD,OAAS,EAAA,UAAA;AAAA,MACT,OAAA,EAAS,CAAC,cAAc,CAAA;AAAA,MACxB,QAAU,EAAA,mBAAA;AAAA,MACV,SAAS,CAAQ,IAAA,KAAA;AACf,QAAA,OAAO,KAAK,OAAQ,CAAA,iBAAU,EAAE,OAAQ,CAAA,YAAI,EAAE,aAAc,EAAA;AAAA,OAC9D;AAAA,MACA,SAAS,CAAS,KAAA,KAAA;AAAA;AAAC,KACpB,EAAE,UAAW,EAAA;AAAA,WACP,GAAK,EAAA;AACZ,IAAA,IAAI,eAAe,gBAAkB,EAAA;AACnC,MAAAA,OAAAA,CAAQ,MAAM,GAAG,CAAA;AAAA;AACnB;AAEJ","file":"index.js","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport { cli } from \"./cli.js\";","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport typescript from \"@osdk/cli.cmd.typescript\";\nimport { ExitProcessError, getYargsBase } from \"@osdk/cli.common\";\nimport { consola } from \"consola\";\nimport auth from \"./commands/auth/index.js\";\nimport site from \"./commands/site/index.js\";\nimport widgetSet from \"./commands/widgetset/index.js\";\nexport async function cli(args = process.argv) {\n consola.info(`Palantir OSDK CLI ${process.env.PACKAGE_VERSION}\\n`);\n const base = getYargsBase(args);\n\n // Special handling where failures happen before yargs does its error handling within .fail\n try {\n return await base.command(site).command(widgetSet).command({\n command: \"unstable\",\n aliases: [\"experimental\"],\n describe: \"Unstable commands\",\n builder: argv => {\n return argv.command(typescript).command(auth).demandCommand();\n },\n handler: _args => {}\n }).parseAsync();\n } catch (err) {\n if (err instanceof ExitProcessError) {\n consola.error(err);\n }\n }\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport { cli } from \"./cli.js\";\nexport { typescriptCommand as default } from \"./typescriptCommand.js\";","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ExitProcessError, getYargsBase } from \"@osdk/cli.common\";\nimport { consola } from \"consola\";\nimport { generateCommand } from \"./generate/generate.js\";\nexport async function cli(args = process.argv) {\n consola.info(`Palantir OSDK CLI ${\"0.29.0-beta.4\"}\\n`);\n const base = getYargsBase(args);\n\n // Special handling where failures happen before yargs does its error handling within .fail\n try {\n return await base.command(generateCommand).parseAsync();\n } catch (err) {\n if (err instanceof ExitProcessError) {\n consola.error(err);\n }\n }\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { isValidSemver, YargsCheckError } from \"@osdk/cli.common\";\nexport const generateCommand = {\n command: \"generate\",\n describe: \"Generate TypeScript SDK from ontology\",\n builder: argv => {\n return argv.options({\n outDir: {\n type: \"string\",\n description: \"Where to place the generated files\",\n demandOption: true\n },\n ontologyPath: {\n description: \"Path to the ontology wire json\",\n type: \"string\",\n demandOption: false,\n conflicts: [\"foundryUrl\", \"clientId\"]\n },\n foundryUrl: {\n description: \"URL for the foundry stack that contains the ontology\",\n type: \"string\",\n demandOption: false,\n conflicts: \"ontologyPath\",\n implies: \"clientId\",\n alias: \"stack\" // for backwards compatibility\n },\n clientId: {\n description: \"OAuth client ID for application\",\n type: \"string\",\n demandOption: false,\n conflicts: \"ontologyPath\",\n implies: \"foundryUrl\"\n },\n ontologyRid: {\n description: \"Limit requests to this ontology rid only\",\n type: \"string\",\n demandOption: false\n },\n ontologyWritePath: {\n description: \"Path to write the ontology wire json\",\n type: \"string\",\n demandOption: false,\n conflicts: [\"ontologyPath\"]\n },\n beta: {\n type: \"boolean\",\n description: \"Should generate beta sdk\",\n demandOption: false\n },\n packageType: {\n default: \"commonjs\",\n choices: [\"commonjs\", \"module\"]\n },\n version: {\n type: \"string\",\n description: \"Version of the generated code, or 'dev'\",\n demandOption: true\n },\n packageName: {\n type: \"string\",\n description: \"Name of the package to generate\"\n },\n asPackage: {\n type: \"boolean\",\n description: \"Generate as a package (makes a package.json and co)\"\n },\n clean: {\n type: \"boolean\",\n description: \"Clean the output directory before generating\"\n },\n internal: {\n type: \"boolean\",\n default: false\n },\n externalObjects: {\n type: \"string\",\n coerce: value => {\n const map = new Map();\n if (value) {\n for (const entry of value.split(\",\")) {\n const [api, ns] = entry.split(\":\");\n map.set(api, ns);\n }\n }\n return map;\n },\n default: \"\"\n },\n externalInterfaces: {\n type: \"string\",\n coerce: value => {\n const map = new Map();\n if (value) {\n for (const entry of value.split(\",\")) {\n const [api, ns] = entry.split(\":\");\n map.set(api, ns);\n }\n }\n return map;\n },\n default: \"\"\n },\n skipPackageJsonUpdate: {\n type: \"boolean\",\n description: \"Skip updating package.json with OSDK dependencies\",\n default: false\n }\n }).group([\"ontologyPath\", \"outDir\", \"version\"], \"Generate from a local file\").group([\"foundryUrl\", \"clientId\", \"outDir\", \"ontologyWritePath\", \"version\"], \"OR Generate from Foundry\").group([\"packageName\", \"as\"], \"Package generation options\").check(args => {\n if (!args.ontologyPath && !args.foundryUrl) {\n throw new YargsCheckError(\"Must specify either ontologyPath or foundryUrl and clientId\");\n }\n if (args.version !== \"dev\" && !isValidSemver(args.version)) {\n throw new YargsCheckError(\"Version must be 'dev' or a valid semver version\");\n }\n if (args.asPackage && !args.packageName) {\n throw new YargsCheckError(\"Must specify packageName when generating as a package\");\n }\n if (args.asPackage && !args.version) {\n throw new YargsCheckError(\"Must specify version when generating as a package\");\n }\n return true;\n });\n },\n handler: async args => {\n const command = await import(\"./handleGenerate.mjs\");\n await command.handleGenerate(args);\n }\n};","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { generateCommand } from \"./generate/generate.js\";\nexport const typescriptCommand = {\n command: \"typescript\",\n describe: \"Manage code\",\n builder: argv => {\n return argv.command(generateCommand).demandCommand();\n },\n handler: async () => {}\n};","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport login from \"./login/index.js\";\nconst auth = {\n command: \"auth\",\n describe: \"Manage your session\",\n builder: argv => {\n return argv.options({\n foundryUrl: {\n type: \"string\",\n demandOption: true,\n alias: \"baseUrl\",\n // for backwards compatibility\n describe: \"URL for the Foundry stack\"\n }\n }).command(login).demandCommand();\n },\n handler: async args => {}\n};\nexport default auth;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const command = {\n command: \"login\",\n describe: \"Authenticate with an application ID\",\n builder: argv => {\n return argv.option(\"clientId\", {\n alias: \"applicationId\",\n // for backwards compatibility\n type: \"string\",\n demandOption: true,\n describe: \"OAuth client ID for application\"\n });\n },\n handler: async args => {\n const command = await import(\"@osdk/cli.common/loginFlow\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { YargsCheckError } from \"@osdk/cli.common\";\nimport configLoader from \"../../util/configLoader.js\";\nimport { logConfigFileMiddleware } from \"../../yargs/logConfigFileMiddleware.js\";\nimport deploy from \"./deploy/index.js\";\nimport { logSiteCommandConfigFileOverride } from \"./logSiteCommandConfigFileOverride.js\";\nimport version from \"./version/index.js\";\nconst command = {\n command: \"site\",\n describe: \"Manage your site\",\n builder: async argv => {\n const config = await configLoader(\"site\");\n const application = config?.foundryConfig.site.application;\n const foundryUrl = config?.foundryConfig.foundryUrl;\n return argv.options({\n application: {\n type: \"string\",\n coerce: application => application,\n ...(application ? {\n default: application\n } : {\n demandOption: true\n }),\n description: \"Application resource identifier (rid)\"\n },\n foundryUrl: {\n coerce: foundryUrl => foundryUrl.replace(/\\/$/, \"\"),\n type: \"string\",\n ...(foundryUrl ? {\n default: foundryUrl\n } : {\n demandOption: true\n }),\n description: \"URL for the Foundry stack\"\n },\n token: {\n type: \"string\",\n conflicts: \"tokenFile\",\n description: \"Foundry API token\"\n },\n tokenFile: {\n type: \"string\",\n conflicts: \"token\",\n description: \"Path to file containing Foundry API token\"\n }\n }).group([\"application\", \"foundryUrl\", \"token\", \"tokenFile\"], \"Common Options\").command(version).command(deploy).check(args => {\n if (!args.foundryUrl.startsWith(\"https://\")) {\n throw new YargsCheckError(\"foundryUrl must start with https://\");\n }\n return true;\n }).middleware(args => {\n void logConfigFileMiddleware(\"site\");\n void logSiteCommandConfigFileOverride(args, config?.foundryConfig);\n }).demandCommand();\n },\n handler: async args => {}\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ExitProcessError } from \"@osdk/cli.common\";\nimport { loadFoundryConfig } from \"@osdk/foundry-config-json\";\nlet siteConfigPromise = undefined;\nlet widgetSetConfigPromise = undefined;\nfunction getConfig(type) {\n if (type === \"site\") {\n return getSiteConfig();\n } else {\n return getWidgetSetConfig();\n }\n}\nfunction getSiteConfig() {\n if (siteConfigPromise == null) {\n siteConfigPromise = loadFoundryConfig(\"site\").catch(e => {\n throw new ExitProcessError(2, e instanceof Error ? e.message : undefined);\n });\n }\n return siteConfigPromise;\n}\nfunction getWidgetSetConfig() {\n if (widgetSetConfigPromise == null) {\n widgetSetConfigPromise = loadFoundryConfig(\"widgetSet\").catch(e => {\n throw new ExitProcessError(2, e instanceof Error ? e.message : undefined);\n });\n }\n return widgetSetConfigPromise;\n}\nexport default getConfig;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nimport getConfig from \"../util/configLoader.js\";\nlet firstTime = true;\nexport async function logConfigFileMiddleware(type) {\n if (firstTime) {\n firstTime = false;\n const config = getConfig(type);\n const configFilePath = (await config)?.configFilePath;\n if (configFilePath) {\n consola.debug(`Using configuration from file: \"${configFilePath}\"`);\n }\n }\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { isValidSemver, YargsCheckError } from \"@osdk/cli.common\";\nimport configLoader from \"../../../util/configLoader.js\";\nimport { logSiteDeployCommandConfigFileOverride } from \"./logSiteDeployCommandConfigFileOverride.js\";\nconst command = {\n command: \"deploy\",\n describe: \"Deploy a new site version\",\n builder: async argv => {\n const config = await configLoader(\"site\");\n const siteConfig = config?.foundryConfig.site;\n const directory = siteConfig?.directory;\n const autoVersion = siteConfig?.autoVersion;\n const gitTagPrefix = autoVersion?.type === \"git-describe\" ? autoVersion.tagPrefix : undefined;\n const uploadOnly = siteConfig?.uploadOnly;\n return argv.options({\n directory: {\n type: \"string\",\n description: \"Directory containing site files\",\n ...(directory ? {\n default: directory\n } : {\n demandOption: true\n })\n },\n uploadOnly: {\n type: \"boolean\",\n description: \"Upload new site version only without setting as live\",\n default: uploadOnly ?? false\n },\n version: {\n type: \"string\",\n description: \"New version of site to deploy\",\n ...(autoVersion == null ? {\n conflicts: \"autoVersion\"\n } : {})\n },\n autoVersion: {\n coerce: autoVersion => autoVersion,\n type: \"string\",\n choices: [\"git-describe\", \"package-json\"],\n description: \"Enable auto versioning\",\n ...(autoVersion != null ? {\n default: autoVersion.type\n } : {\n conflicts: \"version\"\n })\n },\n gitTagPrefix: {\n type: \"string\",\n description: \"Prefix to match git tags on when 'git-describe' auto versioning is used. If not provided, all tags are matched and the prefix 'v' is stripped if present.\",\n ...(gitTagPrefix ? {\n default: gitTagPrefix\n } : {})\n },\n snapshot: {\n type: \"boolean\",\n description: \"Upload a snapshot version only with automatic retention\",\n default: false\n },\n snapshotId: {\n type: \"string\",\n description: \"Optional id to associate with snapshot version as an alias\"\n }\n }).group([\"directory\", \"version\", \"uploadOnly\"], \"Deploy Options\").group([\"autoVersion\", \"gitTagPrefix\"], \"Auto Version Options\").group([\"snapshot\", \"snapshotId\"], \"Snapshot Options\").check(args => {\n // This is required because we can't use demandOption with conflicts. conflicts protects us against the case where both are provided.\n // So this case is for when nothing is provided.\n if (autoVersion == null && args.autoVersion == null && args.version == null) {\n throw new YargsCheckError(\"One of --version or --autoVersion must be specified\");\n }\n if (args.version != null && !isValidSemver(args.version)) {\n throw new YargsCheckError(`--version \"${args.version}\" must be a valid SemVer string`);\n }\n const autoVersionType = args.autoVersion ?? autoVersion;\n if (autoVersionType != null && autoVersionType !== \"git-describe\" && autoVersionType !== \"package-json\") {\n throw new YargsCheckError(`Only 'git-describe' and 'package-json' are supported for autoVersion`);\n }\n const gitTagPrefixValue = args.gitTagPrefix ?? gitTagPrefix;\n if (gitTagPrefixValue != null && autoVersionType !== \"git-describe\") {\n throw new YargsCheckError(`--gitTagPrefix is only supported when --autoVersion=git-describe`);\n }\n if (args.uploadOnly && args.snapshot) {\n throw new YargsCheckError(`--uploadOnly and --snapshot cannot be enabled together`);\n }\n if (args.snapshotId != null && !args.snapshot) {\n throw new YargsCheckError(\"--snapshotId is only supported when --snapshot is enabled\");\n }\n return true;\n }).middleware(args => logSiteDeployCommandConfigFileOverride(args, siteConfig));\n },\n handler: async args => {\n const command = await import(\"./siteDeployCommand.mjs\");\n const {\n version,\n autoVersion,\n gitTagPrefix,\n ...restArgs\n } = args;\n const selectedVersion = args.version != null ? args.version : {\n type: args.autoVersion,\n tagPrefix: args.gitTagPrefix\n };\n await command.default({\n ...restArgs,\n selectedVersion\n });\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nexport async function logSiteDeployCommandConfigFileOverride(args, config) {\n if (config?.autoVersion != null && args.autoVersion !== config.autoVersion.type) {\n consola.debug(`Overriding \"autoVersion\" from config file with ${args.autoVersion}`);\n }\n if (config?.directory != null && args.directory !== config.directory) {\n consola.debug(`Overriding \"directory\" from config file with ${args.directory}`);\n }\n if (config?.autoVersion?.type === \"git-describe\" && config.autoVersion.tagPrefix != null && args.gitTagPrefix != null && args.gitTagPrefix !== config.autoVersion.tagPrefix) {\n consola.debug(`Overriding \"gitTagPrefix\" from config file with ${args.gitTagPrefix}`);\n }\n if (config?.uploadOnly != null && args.uploadOnly !== config.uploadOnly) {\n consola.debug(`Overriding \"uploadOnly\" from config file with ${args.uploadOnly}`);\n }\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nexport async function logSiteCommandConfigFileOverride(args, config) {\n if (config?.site.application != null && args.application !== config.site.application) {\n consola.debug(`Overriding \"application\" from config file with ${args.application}`);\n }\n if (config?.foundryUrl != null && args.foundryUrl !== config.foundryUrl) {\n consola.debug(`Overriding \"foundryUrl\" from config file with ${args.foundryUrl}`);\n }\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport deleteCmd from \"./delete/index.js\";\nimport get from \"./get/index.js\";\nimport list from \"./list/index.js\";\nimport set from \"./set/index.js\";\nimport unset from \"./unset/index.js\";\nconst command = {\n command: \"version\",\n describe: \"Manage site versions\",\n builder: argv => {\n return argv.command(list).command(get).command(set).command(unset).command(deleteCmd).demandCommand();\n },\n handler: async args => {}\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"delete <version>\",\n describe: \"Delete site version\",\n builder: argv => {\n return argv.positional(\"version\", {\n type: \"string\",\n demandOption: true,\n description: \"Version to delete\"\n }).option(\"yes\", {\n alias: \"y\",\n type: \"boolean\",\n description: \"Automatically confirm destructive changes\"\n }).group([\"yes\"], \"Delete Options\");\n },\n handler: async args => {\n const command = await import(\"./versionDeleteCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"get\",\n describe: \"Get live site version\",\n builder: argv => {\n return argv;\n },\n handler: async args => {\n const command = await import(\"./versionGetCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"list\",\n describe: \"List site versions\",\n builder: argv => {\n return argv;\n },\n handler: async args => {\n const command = await import(\"./versionListCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"set <version>\",\n describe: \"Set live site version\",\n builder: argv => {\n return argv.positional(\"version\", {\n type: \"string\",\n demandOption: true,\n description: \"Version to set as live\"\n });\n },\n handler: async args => {\n const command = await import(\"./versionSetCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"unset\",\n describe: \"Clear live site version\",\n builder: argv => {\n return argv.option(\"yes\", {\n alias: \"y\",\n type: \"boolean\",\n description: \"Automatically confirm destructive changes\"\n }).group([\"yes\"], \"Unset Options\");\n },\n handler: async args => {\n const command = await import(\"./versionUnsetCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { YargsCheckError } from \"@osdk/cli.common\";\nimport configLoader from \"../../util/configLoader.js\";\nimport { logConfigFileMiddleware } from \"../../yargs/logConfigFileMiddleware.js\";\nimport deploy from \"./deploy/index.js\";\nimport { logWidgetSetCommandConfigFileOverride } from \"./logWidgetSetCommandConfigFileOverride.js\";\nimport version from \"./version/index.js\";\nconst command = {\n command: \"widgetset\",\n describe: \"Manage your widget set\",\n builder: async argv => {\n const config = await configLoader(\"widgetSet\");\n const widgetSet = config?.foundryConfig.widgetSet.rid;\n const foundryUrl = config?.foundryConfig.foundryUrl;\n return argv.options({\n widgetSet: {\n type: \"string\",\n coerce: widgetSet => widgetSet,\n ...(widgetSet ? {\n default: widgetSet\n } : {\n demandOption: true\n }),\n description: \"Widget set resource identifier (rid)\"\n },\n foundryUrl: {\n coerce: foundryUrl => foundryUrl.replace(/\\/$/, \"\"),\n type: \"string\",\n ...(foundryUrl ? {\n default: foundryUrl\n } : {\n demandOption: true\n }),\n description: \"URL for the Foundry stack\"\n },\n token: {\n type: \"string\",\n conflicts: \"tokenFile\",\n description: \"Foundry API token\"\n },\n tokenFile: {\n type: \"string\",\n conflicts: \"token\",\n description: \"Path to file containing Foundry API token\"\n }\n }).group([\"widgetSet\", \"foundryUrl\", \"token\", \"tokenFile\"], \"Common Options\").command(version).command(deploy).check(args => {\n if (!args.foundryUrl.startsWith(\"https://\")) {\n throw new YargsCheckError(\"foundryUrl must start with https://\");\n }\n return true;\n }).middleware(args => {\n void logConfigFileMiddleware(\"widgetSet\");\n logWidgetSetCommandConfigFileOverride(args, config?.foundryConfig);\n }).demandCommand();\n },\n handler: async args => {}\n};\nexport default command;","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { MANIFEST_FILE_LOCATION } from \"@osdk/widget.api\";\nimport configLoader from \"../../../util/configLoader.js\";\nimport { logWidgetSetDeployCommandConfigFileOverride } from \"./logWidgetSetDeployCommandConfigFileOverride.js\";\nconst command = {\n command: \"deploy\",\n describe: `Deploy a new widget set version\\n\\nThe widget set files must contain a ` + `valid manifest at ${MANIFEST_FILE_LOCATION} which determines the version` + ` to publish. The widget set files may be uploaded to the widget set` + ` itself, or to a separate code repository if it has been authorized to` + ` publish the widget set.`,\n builder: async argv => {\n const config = await configLoader(\"widgetSet\");\n const widgetSetConfig = config?.foundryConfig.widgetSet;\n const directory = widgetSetConfig?.directory;\n const repository = widgetSetConfig?.repository;\n return argv.options({\n directory: {\n type: \"string\",\n description: \"Directory containing widget set files\",\n ...(directory ? {\n default: directory\n } : {\n demandOption: true\n })\n },\n repository: {\n type: \"string\",\n coerce: application => application,\n ...(repository ? {\n default: repository\n } : {}),\n description: \"Code repository resource identifier (rid) publishing the widget set\"\n }\n }).group([\"directory\", \"repository\"], \"Deploy Options\").middleware(args => logWidgetSetDeployCommandConfigFileOverride(args, widgetSetConfig));\n },\n handler: async args => {\n const command = await import(\"./widgetSetDeployCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nexport function logWidgetSetDeployCommandConfigFileOverride(args, config) {\n if (config?.directory != null && args.directory !== config.directory) {\n consola.debug(`Overriding \"directory\" from config file with ${args.directory}`);\n }\n if (config?.repository != null && args.repository !== config.repository) {\n consola.debug(`Overriding \"repository\" from config file with ${args.repository}`);\n }\n}","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nexport function logWidgetSetCommandConfigFileOverride(args, config) {\n if (config?.widgetSet.rid != null && args.widgetSet !== config.widgetSet.rid) {\n consola.debug(`Overriding \"rid\" from config file with ${args.widgetSet}`);\n }\n if (config?.foundryUrl != null && args.foundryUrl !== config.foundryUrl) {\n consola.debug(`Overriding \"foundryUrl\" from config file with ${args.foundryUrl}`);\n }\n}","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport deleteCmd from \"./delete/index.js\";\nimport info from \"./info/index.js\";\nimport list from \"./list/index.js\";\nconst command = {\n command: \"version\",\n describe: \"Manage widget set versions\",\n builder: argv => {\n return argv.command(list).command(info).command(deleteCmd).demandCommand();\n },\n handler: async args => {}\n};\nexport default command;","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"delete <version>\",\n describe: \"Delete widget set version\",\n builder: argv => {\n return argv.positional(\"version\", {\n type: \"string\",\n demandOption: true,\n description: \"Version to delete\"\n }).option(\"yes\", {\n alias: \"y\",\n type: \"boolean\",\n description: \"Automatically confirm destructive changes\"\n }).group([\"yes\"], \"Delete Options\");\n },\n handler: async args => {\n const command = await import(\"./versionDeleteCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"info <version>\",\n describe: \"Load info about widget set version\",\n builder: argv => {\n return argv.positional(\"version\", {\n type: \"string\",\n demandOption: true,\n description: \"Version to load\"\n });\n },\n handler: async args => {\n const command = await import(\"./versionInfoCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"list\",\n describe: \"List widget set versions\",\n builder: argv => {\n return argv;\n },\n handler: async args => {\n const command = await import(\"./versionListCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;"]}
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/cli.ts","../../../cli.cmd.typescript/build/esm/index.js","../../../cli.cmd.typescript/build/esm/cli.js","../../../cli.cmd.typescript/build/esm/generate/generate.js","../../../cli.cmd.typescript/build/esm/typescriptCommand.js","../../src/commands/auth/index.ts","../../src/commands/auth/login/index.ts","../../src/commands/site/index.ts","../../src/util/configLoader.ts","../../src/yargs/logConfigFileMiddleware.ts","../../src/commands/site/deploy/index.ts","../../src/commands/site/deploy/logSiteDeployCommandConfigFileOverride.ts","../../src/commands/site/logSiteCommandConfigFileOverride.ts","../../src/commands/site/version/index.ts","../../src/commands/site/version/delete/index.ts","../../src/commands/site/version/get/index.ts","../../src/commands/site/version/list/index.ts","../../src/commands/site/version/set/index.ts","../../src/commands/site/version/unset/index.ts","../../src/commands/widgetset/index.ts","../../src/commands/widgetset/deploy/index.ts","../../src/commands/widgetset/deploy/logWidgetSetDeployCommandConfigFileOverride.ts","../../src/commands/widgetset/logWidgetSetCommandConfigFileOverride.ts","../../src/commands/widgetset/version/index.ts","../../src/commands/widgetset/version/delete/index.ts","../../src/commands/widgetset/version/info/index.ts","../../src/commands/widgetset/version/list/index.ts"],"names":["command","consola","autoVersion","application","foundryUrl","deploy_default","delete_default","list_default","version_default","widgetSet","cli"],"mappings":";;;;;;;;AAAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;;;ACAA,cAAA,EAAA;AAiBO,IAAM,eAAkB,GAAA;AAAA,EAC7B,OAAS,EAAA,UAAA;AAAA,EACT,QAAU,EAAA,uCAAA;AAAA,EACV,SAAS,CAAQ,IAAA,KAAA;AACf,IAAA,OAAO,KAAK,OAAQ,CAAA;AAAA,MAClB,MAAQ,EAAA;AAAA,QACN,IAAM,EAAA,QAAA;AAAA,QACN,WAAa,EAAA,oCAAA;AAAA,QACb,YAAc,EAAA;AAAA,OAChB;AAAA,MACA,YAAc,EAAA;AAAA,QACZ,WAAa,EAAA,gCAAA;AAAA,QACb,IAAM,EAAA,QAAA;AAAA,QACN,YAAc,EAAA,KAAA;AAAA,QACd,SAAA,EAAW,CAAC,YAAA,EAAc,UAAU;AAAA,OACtC;AAAA,MACA,UAAY,EAAA;AAA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AAA;AAAA,MACV,SAAS,CAAQ,IAAA,KAAA;AACf,QAAA,OAAO,KAAK,OAAQ,CAAA,iBAAU,EAAE,OAAQ,CAAA,YAAI,EAAE,aAAc,EAAA;AAAA,OAC9D;AAAA,MACA,SAAS,CAAS,KAAA,KAAA;AAAA;AAAC,KACpB,EAAE,UAAW,EAAA;AAAA,WACP,GAAK,EAAA;AACZ,IAAA,IAAI,eAAe,gBAAkB,EAAA;AACnC,MAAAA,OAAAA,CAAQ,MAAM,GAAG,CAAA;AAAA;AACnB;AAEJ","file":"index.js","sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport { cli } from \"./cli.js\";","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport typescript from \"@osdk/cli.cmd.typescript\";\nimport { ExitProcessError, getYargsBase } from \"@osdk/cli.common\";\nimport { consola } from \"consola\";\nimport auth from \"./commands/auth/index.js\";\nimport site from \"./commands/site/index.js\";\nimport widgetSet from \"./commands/widgetset/index.js\";\nexport async function cli(args = process.argv) {\n consola.info(`Palantir OSDK CLI ${process.env.PACKAGE_VERSION}\\n`);\n const base = getYargsBase(args);\n\n // Special handling where failures happen before yargs does its error handling within .fail\n try {\n return await base.command(site).command(widgetSet).command({\n command: \"unstable\",\n aliases: [\"experimental\"],\n describe: \"Unstable commands\",\n builder: argv => {\n return argv.command(typescript).command(auth).demandCommand();\n },\n handler: _args => {}\n }).parseAsync();\n } catch (err) {\n if (err instanceof ExitProcessError) {\n consola.error(err);\n }\n }\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport { cli } from \"./cli.js\";\nexport { typescriptCommand as default } from \"./typescriptCommand.js\";","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ExitProcessError, getYargsBase } from \"@osdk/cli.common\";\nimport { consola } from \"consola\";\nimport { generateCommand } from \"./generate/generate.js\";\nexport async function cli(args = process.argv) {\n consola.info(`Palantir OSDK CLI ${\"0.29.0-beta.5\"}\\n`);\n const base = getYargsBase(args);\n\n // Special handling where failures happen before yargs does its error handling within .fail\n try {\n return await base.command(generateCommand).parseAsync();\n } catch (err) {\n if (err instanceof ExitProcessError) {\n consola.error(err);\n }\n }\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { isValidSemver, YargsCheckError } from \"@osdk/cli.common\";\nexport const generateCommand = {\n command: \"generate\",\n describe: \"Generate TypeScript SDK from ontology\",\n builder: argv => {\n return argv.options({\n outDir: {\n type: \"string\",\n description: \"Where to place the generated files\",\n demandOption: true\n },\n ontologyPath: {\n description: \"Path to the ontology wire json\",\n type: \"string\",\n demandOption: false,\n conflicts: [\"foundryUrl\", \"clientId\"]\n },\n foundryUrl: {\n description: \"URL for the foundry stack that contains the ontology\",\n type: \"string\",\n demandOption: false,\n conflicts: \"ontologyPath\",\n implies: \"clientId\",\n alias: \"stack\" // for backwards compatibility\n },\n clientId: {\n description: \"OAuth client ID for application\",\n type: \"string\",\n demandOption: false,\n conflicts: \"ontologyPath\",\n implies: \"foundryUrl\"\n },\n ontologyRid: {\n description: \"Limit requests to this ontology rid only\",\n type: \"string\",\n demandOption: false\n },\n ontologyWritePath: {\n description: \"Path to write the ontology wire json\",\n type: \"string\",\n demandOption: false,\n conflicts: [\"ontologyPath\"]\n },\n beta: {\n type: \"boolean\",\n description: \"Should generate beta sdk\",\n demandOption: false\n },\n packageType: {\n default: \"commonjs\",\n choices: [\"commonjs\", \"module\"]\n },\n version: {\n type: \"string\",\n description: \"Version of the generated code, or 'dev'\",\n demandOption: true\n },\n packageName: {\n type: \"string\",\n description: \"Name of the package to generate\"\n },\n asPackage: {\n type: \"boolean\",\n description: \"Generate as a package (makes a package.json and co)\"\n },\n clean: {\n type: \"boolean\",\n description: \"Clean the output directory before generating\"\n },\n internal: {\n type: \"boolean\",\n default: false\n },\n externalObjects: {\n type: \"string\",\n coerce: value => {\n const map = new Map();\n if (value) {\n for (const entry of value.split(\",\")) {\n const [api, ns] = entry.split(\":\");\n map.set(api, ns);\n }\n }\n return map;\n },\n default: \"\"\n },\n externalInterfaces: {\n type: \"string\",\n coerce: value => {\n const map = new Map();\n if (value) {\n for (const entry of value.split(\",\")) {\n const [api, ns] = entry.split(\":\");\n map.set(api, ns);\n }\n }\n return map;\n },\n default: \"\"\n },\n branch: {\n type: \"string\",\n description: \"The branch rid of the ontology to generate from\"\n },\n skipPackageJsonUpdate: {\n type: \"boolean\",\n description: \"Skip updating package.json with OSDK dependencies\",\n default: false\n }\n }).group([\"ontologyPath\", \"outDir\", \"version\"], \"Generate from a local file\").group([\"foundryUrl\", \"clientId\", \"outDir\", \"ontologyWritePath\", \"version\"], \"OR Generate from Foundry\").group([\"packageName\", \"as\"], \"Package generation options\").check(args => {\n if (!args.ontologyPath && !args.foundryUrl) {\n throw new YargsCheckError(\"Must specify either ontologyPath or foundryUrl and clientId\");\n }\n if (args.version !== \"dev\" && !isValidSemver(args.version)) {\n throw new YargsCheckError(\"Version must be 'dev' or a valid semver version\");\n }\n if (args.asPackage && !args.packageName) {\n throw new YargsCheckError(\"Must specify packageName when generating as a package\");\n }\n if (args.asPackage && !args.version) {\n throw new YargsCheckError(\"Must specify version when generating as a package\");\n }\n return true;\n });\n },\n handler: async args => {\n const command = await import(\"./handleGenerate.mjs\");\n await command.handleGenerate(args);\n }\n};","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { generateCommand } from \"./generate/generate.js\";\nexport const typescriptCommand = {\n command: \"typescript\",\n describe: \"Manage code\",\n builder: argv => {\n return argv.command(generateCommand).demandCommand();\n },\n handler: async () => {}\n};","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport login from \"./login/index.js\";\nconst auth = {\n command: \"auth\",\n describe: \"Manage your session\",\n builder: argv => {\n return argv.options({\n foundryUrl: {\n type: \"string\",\n demandOption: true,\n alias: \"baseUrl\",\n // for backwards compatibility\n describe: \"URL for the Foundry stack\"\n }\n }).command(login).demandCommand();\n },\n handler: async args => {}\n};\nexport default auth;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const command = {\n command: \"login\",\n describe: \"Authenticate with an application ID\",\n builder: argv => {\n return argv.option(\"clientId\", {\n alias: \"applicationId\",\n // for backwards compatibility\n type: \"string\",\n demandOption: true,\n describe: \"OAuth client ID for application\"\n });\n },\n handler: async args => {\n const command = await import(\"@osdk/cli.common/loginFlow\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { YargsCheckError } from \"@osdk/cli.common\";\nimport configLoader from \"../../util/configLoader.js\";\nimport { logConfigFileMiddleware } from \"../../yargs/logConfigFileMiddleware.js\";\nimport deploy from \"./deploy/index.js\";\nimport { logSiteCommandConfigFileOverride } from \"./logSiteCommandConfigFileOverride.js\";\nimport version from \"./version/index.js\";\nconst command = {\n command: \"site\",\n describe: \"Manage your site\",\n builder: async argv => {\n const config = await configLoader(\"site\");\n const application = config?.foundryConfig.site.application;\n const foundryUrl = config?.foundryConfig.foundryUrl;\n return argv.options({\n application: {\n type: \"string\",\n coerce: application => application,\n ...(application ? {\n default: application\n } : {\n demandOption: true\n }),\n description: \"Application resource identifier (rid)\"\n },\n foundryUrl: {\n coerce: foundryUrl => foundryUrl.replace(/\\/$/, \"\"),\n type: \"string\",\n ...(foundryUrl ? {\n default: foundryUrl\n } : {\n demandOption: true\n }),\n description: \"URL for the Foundry stack\"\n },\n token: {\n type: \"string\",\n conflicts: \"tokenFile\",\n description: \"Foundry API token\"\n },\n tokenFile: {\n type: \"string\",\n conflicts: \"token\",\n description: \"Path to file containing Foundry API token\"\n }\n }).group([\"application\", \"foundryUrl\", \"token\", \"tokenFile\"], \"Common Options\").command(version).command(deploy).check(args => {\n if (!args.foundryUrl.startsWith(\"https://\")) {\n throw new YargsCheckError(\"foundryUrl must start with https://\");\n }\n return true;\n }).middleware(args => {\n void logConfigFileMiddleware(\"site\");\n void logSiteCommandConfigFileOverride(args, config?.foundryConfig);\n }).demandCommand();\n },\n handler: async args => {}\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ExitProcessError } from \"@osdk/cli.common\";\nimport { loadFoundryConfig } from \"@osdk/foundry-config-json\";\nlet siteConfigPromise = undefined;\nlet widgetSetConfigPromise = undefined;\nfunction getConfig(type) {\n if (type === \"site\") {\n return getSiteConfig();\n } else {\n return getWidgetSetConfig();\n }\n}\nfunction getSiteConfig() {\n if (siteConfigPromise == null) {\n siteConfigPromise = loadFoundryConfig(\"site\").catch(e => {\n throw new ExitProcessError(2, e instanceof Error ? e.message : undefined);\n });\n }\n return siteConfigPromise;\n}\nfunction getWidgetSetConfig() {\n if (widgetSetConfigPromise == null) {\n widgetSetConfigPromise = loadFoundryConfig(\"widgetSet\").catch(e => {\n throw new ExitProcessError(2, e instanceof Error ? e.message : undefined);\n });\n }\n return widgetSetConfigPromise;\n}\nexport default getConfig;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nimport getConfig from \"../util/configLoader.js\";\nlet firstTime = true;\nexport async function logConfigFileMiddleware(type) {\n if (firstTime) {\n firstTime = false;\n const config = getConfig(type);\n const configFilePath = (await config)?.configFilePath;\n if (configFilePath) {\n consola.debug(`Using configuration from file: \"${configFilePath}\"`);\n }\n }\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { isValidSemver, YargsCheckError } from \"@osdk/cli.common\";\nimport configLoader from \"../../../util/configLoader.js\";\nimport { logSiteDeployCommandConfigFileOverride } from \"./logSiteDeployCommandConfigFileOverride.js\";\nconst command = {\n command: \"deploy\",\n describe: \"Deploy a new site version\",\n builder: async argv => {\n const config = await configLoader(\"site\");\n const siteConfig = config?.foundryConfig.site;\n const directory = siteConfig?.directory;\n const autoVersion = siteConfig?.autoVersion;\n const gitTagPrefix = autoVersion?.type === \"git-describe\" ? autoVersion.tagPrefix : undefined;\n const uploadOnly = siteConfig?.uploadOnly;\n return argv.options({\n directory: {\n type: \"string\",\n description: \"Directory containing site files\",\n ...(directory ? {\n default: directory\n } : {\n demandOption: true\n })\n },\n uploadOnly: {\n type: \"boolean\",\n description: \"Upload new site version only without setting as live\",\n default: uploadOnly ?? false\n },\n version: {\n type: \"string\",\n description: \"New version of site to deploy\",\n ...(autoVersion == null ? {\n conflicts: \"autoVersion\"\n } : {})\n },\n autoVersion: {\n coerce: autoVersion => autoVersion,\n type: \"string\",\n choices: [\"git-describe\", \"package-json\"],\n description: \"Enable auto versioning\",\n ...(autoVersion != null ? {\n default: autoVersion.type\n } : {\n conflicts: \"version\"\n })\n },\n gitTagPrefix: {\n type: \"string\",\n description: \"Prefix to match git tags on when 'git-describe' auto versioning is used. If not provided, all tags are matched and the prefix 'v' is stripped if present.\",\n ...(gitTagPrefix ? {\n default: gitTagPrefix\n } : {})\n },\n snapshot: {\n type: \"boolean\",\n description: \"Upload a snapshot version only with automatic retention\",\n default: false\n },\n snapshotId: {\n type: \"string\",\n description: \"Optional id to associate with snapshot version as an alias\"\n }\n }).group([\"directory\", \"version\", \"uploadOnly\"], \"Deploy Options\").group([\"autoVersion\", \"gitTagPrefix\"], \"Auto Version Options\").group([\"snapshot\", \"snapshotId\"], \"Snapshot Options\").check(args => {\n // This is required because we can't use demandOption with conflicts. conflicts protects us against the case where both are provided.\n // So this case is for when nothing is provided.\n if (autoVersion == null && args.autoVersion == null && args.version == null) {\n throw new YargsCheckError(\"One of --version or --autoVersion must be specified\");\n }\n if (args.version != null && !isValidSemver(args.version)) {\n throw new YargsCheckError(`--version \"${args.version}\" must be a valid SemVer string`);\n }\n const autoVersionType = args.autoVersion ?? autoVersion;\n if (autoVersionType != null && autoVersionType !== \"git-describe\" && autoVersionType !== \"package-json\") {\n throw new YargsCheckError(`Only 'git-describe' and 'package-json' are supported for autoVersion`);\n }\n const gitTagPrefixValue = args.gitTagPrefix ?? gitTagPrefix;\n if (gitTagPrefixValue != null && autoVersionType !== \"git-describe\") {\n throw new YargsCheckError(`--gitTagPrefix is only supported when --autoVersion=git-describe`);\n }\n if (args.uploadOnly && args.snapshot) {\n throw new YargsCheckError(`--uploadOnly and --snapshot cannot be enabled together`);\n }\n if (args.snapshotId != null && !args.snapshot) {\n throw new YargsCheckError(\"--snapshotId is only supported when --snapshot is enabled\");\n }\n return true;\n }).middleware(args => logSiteDeployCommandConfigFileOverride(args, siteConfig));\n },\n handler: async args => {\n const command = await import(\"./siteDeployCommand.mjs\");\n const {\n version,\n autoVersion,\n gitTagPrefix,\n ...restArgs\n } = args;\n const selectedVersion = args.version != null ? args.version : {\n type: args.autoVersion,\n tagPrefix: args.gitTagPrefix\n };\n await command.default({\n ...restArgs,\n selectedVersion\n });\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nexport async function logSiteDeployCommandConfigFileOverride(args, config) {\n if (config?.autoVersion != null && args.autoVersion !== config.autoVersion.type) {\n consola.debug(`Overriding \"autoVersion\" from config file with ${args.autoVersion}`);\n }\n if (config?.directory != null && args.directory !== config.directory) {\n consola.debug(`Overriding \"directory\" from config file with ${args.directory}`);\n }\n if (config?.autoVersion?.type === \"git-describe\" && config.autoVersion.tagPrefix != null && args.gitTagPrefix != null && args.gitTagPrefix !== config.autoVersion.tagPrefix) {\n consola.debug(`Overriding \"gitTagPrefix\" from config file with ${args.gitTagPrefix}`);\n }\n if (config?.uploadOnly != null && args.uploadOnly !== config.uploadOnly) {\n consola.debug(`Overriding \"uploadOnly\" from config file with ${args.uploadOnly}`);\n }\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nexport async function logSiteCommandConfigFileOverride(args, config) {\n if (config?.site.application != null && args.application !== config.site.application) {\n consola.debug(`Overriding \"application\" from config file with ${args.application}`);\n }\n if (config?.foundryUrl != null && args.foundryUrl !== config.foundryUrl) {\n consola.debug(`Overriding \"foundryUrl\" from config file with ${args.foundryUrl}`);\n }\n}","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport deleteCmd from \"./delete/index.js\";\nimport get from \"./get/index.js\";\nimport list from \"./list/index.js\";\nimport set from \"./set/index.js\";\nimport unset from \"./unset/index.js\";\nconst command = {\n command: \"version\",\n describe: \"Manage site versions\",\n builder: argv => {\n return argv.command(list).command(get).command(set).command(unset).command(deleteCmd).demandCommand();\n },\n handler: async args => {}\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"delete <version>\",\n describe: \"Delete site version\",\n builder: argv => {\n return argv.positional(\"version\", {\n type: \"string\",\n demandOption: true,\n description: \"Version to delete\"\n }).option(\"yes\", {\n alias: \"y\",\n type: \"boolean\",\n description: \"Automatically confirm destructive changes\"\n }).group([\"yes\"], \"Delete Options\");\n },\n handler: async args => {\n const command = await import(\"./versionDeleteCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"get\",\n describe: \"Get live site version\",\n builder: argv => {\n return argv;\n },\n handler: async args => {\n const command = await import(\"./versionGetCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"list\",\n describe: \"List site versions\",\n builder: argv => {\n return argv;\n },\n handler: async args => {\n const command = await import(\"./versionListCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"set <version>\",\n describe: \"Set live site version\",\n builder: argv => {\n return argv.positional(\"version\", {\n type: \"string\",\n demandOption: true,\n description: \"Version to set as live\"\n });\n },\n handler: async args => {\n const command = await import(\"./versionSetCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"unset\",\n describe: \"Clear live site version\",\n builder: argv => {\n return argv.option(\"yes\", {\n alias: \"y\",\n type: \"boolean\",\n description: \"Automatically confirm destructive changes\"\n }).group([\"yes\"], \"Unset Options\");\n },\n handler: async args => {\n const command = await import(\"./versionUnsetCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { YargsCheckError } from \"@osdk/cli.common\";\nimport configLoader from \"../../util/configLoader.js\";\nimport { logConfigFileMiddleware } from \"../../yargs/logConfigFileMiddleware.js\";\nimport deploy from \"./deploy/index.js\";\nimport { logWidgetSetCommandConfigFileOverride } from \"./logWidgetSetCommandConfigFileOverride.js\";\nimport version from \"./version/index.js\";\nconst command = {\n command: \"widgetset\",\n describe: \"Manage your widget set\",\n builder: async argv => {\n const config = await configLoader(\"widgetSet\");\n const widgetSet = config?.foundryConfig.widgetSet.rid;\n const foundryUrl = config?.foundryConfig.foundryUrl;\n return argv.options({\n widgetSet: {\n type: \"string\",\n coerce: widgetSet => widgetSet,\n ...(widgetSet ? {\n default: widgetSet\n } : {\n demandOption: true\n }),\n description: \"Widget set resource identifier (rid)\"\n },\n foundryUrl: {\n coerce: foundryUrl => foundryUrl.replace(/\\/$/, \"\"),\n type: \"string\",\n ...(foundryUrl ? {\n default: foundryUrl\n } : {\n demandOption: true\n }),\n description: \"URL for the Foundry stack\"\n },\n token: {\n type: \"string\",\n conflicts: \"tokenFile\",\n description: \"Foundry API token\"\n },\n tokenFile: {\n type: \"string\",\n conflicts: \"token\",\n description: \"Path to file containing Foundry API token\"\n }\n }).group([\"widgetSet\", \"foundryUrl\", \"token\", \"tokenFile\"], \"Common Options\").command(version).command(deploy).check(args => {\n if (!args.foundryUrl.startsWith(\"https://\")) {\n throw new YargsCheckError(\"foundryUrl must start with https://\");\n }\n return true;\n }).middleware(args => {\n void logConfigFileMiddleware(\"widgetSet\");\n logWidgetSetCommandConfigFileOverride(args, config?.foundryConfig);\n }).demandCommand();\n },\n handler: async args => {}\n};\nexport default command;","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { MANIFEST_FILE_LOCATION } from \"@osdk/widget.api\";\nimport configLoader from \"../../../util/configLoader.js\";\nimport { logWidgetSetDeployCommandConfigFileOverride } from \"./logWidgetSetDeployCommandConfigFileOverride.js\";\nconst command = {\n command: \"deploy\",\n describe: `Deploy a new widget set version\\n\\nThe widget set files must contain a ` + `valid manifest at ${MANIFEST_FILE_LOCATION} which determines the version` + ` to publish. The widget set files may be uploaded to the widget set` + ` itself, or to a separate code repository if it has been authorized to` + ` publish the widget set.`,\n builder: async argv => {\n const config = await configLoader(\"widgetSet\");\n const widgetSetConfig = config?.foundryConfig.widgetSet;\n const directory = widgetSetConfig?.directory;\n const repository = widgetSetConfig?.repository;\n return argv.options({\n directory: {\n type: \"string\",\n description: \"Directory containing widget set files\",\n ...(directory ? {\n default: directory\n } : {\n demandOption: true\n })\n },\n repository: {\n type: \"string\",\n coerce: application => application,\n ...(repository ? {\n default: repository\n } : {}),\n description: \"Code repository resource identifier (rid) publishing the widget set\"\n }\n }).group([\"directory\", \"repository\"], \"Deploy Options\").middleware(args => logWidgetSetDeployCommandConfigFileOverride(args, widgetSetConfig));\n },\n handler: async args => {\n const command = await import(\"./widgetSetDeployCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nexport function logWidgetSetDeployCommandConfigFileOverride(args, config) {\n if (config?.directory != null && args.directory !== config.directory) {\n consola.debug(`Overriding \"directory\" from config file with ${args.directory}`);\n }\n if (config?.repository != null && args.repository !== config.repository) {\n consola.debug(`Overriding \"repository\" from config file with ${args.repository}`);\n }\n}","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { consola } from \"consola\";\nexport function logWidgetSetCommandConfigFileOverride(args, config) {\n if (config?.widgetSet.rid != null && args.widgetSet !== config.widgetSet.rid) {\n consola.debug(`Overriding \"rid\" from config file with ${args.widgetSet}`);\n }\n if (config?.foundryUrl != null && args.foundryUrl !== config.foundryUrl) {\n consola.debug(`Overriding \"foundryUrl\" from config file with ${args.foundryUrl}`);\n }\n}","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport deleteCmd from \"./delete/index.js\";\nimport info from \"./info/index.js\";\nimport list from \"./list/index.js\";\nconst command = {\n command: \"version\",\n describe: \"Manage widget set versions\",\n builder: argv => {\n return argv.command(list).command(info).command(deleteCmd).demandCommand();\n },\n handler: async args => {}\n};\nexport default command;","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"delete <version>\",\n describe: \"Delete widget set version\",\n builder: argv => {\n return argv.positional(\"version\", {\n type: \"string\",\n demandOption: true,\n description: \"Version to delete\"\n }).option(\"yes\", {\n alias: \"y\",\n type: \"boolean\",\n description: \"Automatically confirm destructive changes\"\n }).group([\"yes\"], \"Delete Options\");\n },\n handler: async args => {\n const command = await import(\"./versionDeleteCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"info <version>\",\n describe: \"Load info about widget set version\",\n builder: argv => {\n return argv.positional(\"version\", {\n type: \"string\",\n demandOption: true,\n description: \"Version to load\"\n });\n },\n handler: async args => {\n const command = await import(\"./versionInfoCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;","/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst command = {\n command: \"list\",\n describe: \"List widget set versions\",\n builder: argv => {\n return argv;\n },\n handler: async args => {\n const command = await import(\"./versionListCommand.mjs\");\n await command.default(args);\n }\n};\nexport default command;"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"loginFlow-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"loginFlow-AGXNBVJB.js"}
|