@heroku/plugin-compute 0.3.2 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{lib → dist}/commands/compute/generate.js +4 -4
- package/{lib → dist}/commands/compute/generate.js.map +1 -1
- package/{lib → dist}/commands/compute/source/retrieve.js +3 -5
- package/dist/commands/compute/source/retrieve.js.map +1 -0
- package/{lib → dist}/shared/computeApp.js +1 -1
- package/{lib → dist}/shared/computeApp.js.map +1 -1
- package/{lib → dist}/shared/computeBundle.js +1 -1
- package/{lib → dist}/shared/computeBundle.js.map +1 -1
- package/{lib → dist}/shared/computeGenerateSkeletons.js +3 -3
- package/{lib → dist}/shared/metadataApiVersion.js +1 -1
- package/{lib → dist}/shared/metadataApiVersion.js.map +1 -1
- package/{lib → dist}/shared/metadataDeploy.js +8 -8
- package/dist/shared/metadataDeploy.js.map +1 -0
- package/{lib → dist}/shared/metadataRetrieve.js +12 -8
- package/dist/shared/metadataRetrieve.js.map +1 -0
- package/messages/compute.deploy.md +2 -2
- package/messages/compute.errors.md +2 -2
- package/messages/compute.generate.md +3 -3
- package/messages/compute.source.retrieve.md +3 -3
- package/npm-shrinkwrap.json +301 -357
- package/oclif.manifest.json +118 -118
- package/package.json +18 -17
- package/lib/commands/compute/source/retrieve.js.map +0 -1
- package/lib/shared/metadataDeploy.js.map +0 -1
- package/lib/shared/metadataRetrieve.js.map +0 -1
- /package/{lib → dist}/commands/compute/create/telemetry-drain.d.ts +0 -0
- /package/{lib → dist}/commands/compute/create/telemetry-drain.js +0 -0
- /package/{lib → dist}/commands/compute/create/telemetry-drain.js.map +0 -0
- /package/{lib → dist}/commands/compute/delete/telemetry-drain.d.ts +0 -0
- /package/{lib → dist}/commands/compute/delete/telemetry-drain.js +0 -0
- /package/{lib → dist}/commands/compute/delete/telemetry-drain.js.map +0 -0
- /package/{lib → dist}/commands/compute/deploy.d.ts +0 -0
- /package/{lib → dist}/commands/compute/deploy.js +0 -0
- /package/{lib → dist}/commands/compute/deploy.js.map +0 -0
- /package/{lib → dist}/commands/compute/display/telemetry-drain.d.ts +0 -0
- /package/{lib → dist}/commands/compute/display/telemetry-drain.js +0 -0
- /package/{lib → dist}/commands/compute/display/telemetry-drain.js.map +0 -0
- /package/{lib → dist}/commands/compute/display.d.ts +0 -0
- /package/{lib → dist}/commands/compute/display.js +0 -0
- /package/{lib → dist}/commands/compute/display.js.map +0 -0
- /package/{lib → dist}/commands/compute/generate.d.ts +0 -0
- /package/{lib → dist}/commands/compute/get/build-log.d.ts +0 -0
- /package/{lib → dist}/commands/compute/get/build-log.js +0 -0
- /package/{lib → dist}/commands/compute/get/build-log.js.map +0 -0
- /package/{lib → dist}/commands/compute/get/config.d.ts +0 -0
- /package/{lib → dist}/commands/compute/get/config.js +0 -0
- /package/{lib → dist}/commands/compute/get/config.js.map +0 -0
- /package/{lib → dist}/commands/compute/get/runtime-log.d.ts +0 -0
- /package/{lib → dist}/commands/compute/get/runtime-log.js +0 -0
- /package/{lib → dist}/commands/compute/get/runtime-log.js.map +0 -0
- /package/{lib → dist}/commands/compute/list/config.d.ts +0 -0
- /package/{lib → dist}/commands/compute/list/config.js +0 -0
- /package/{lib → dist}/commands/compute/list/config.js.map +0 -0
- /package/{lib → dist}/commands/compute/list/telemetry-drain.d.ts +0 -0
- /package/{lib → dist}/commands/compute/list/telemetry-drain.js +0 -0
- /package/{lib → dist}/commands/compute/list/telemetry-drain.js.map +0 -0
- /package/{lib → dist}/commands/compute/list.d.ts +0 -0
- /package/{lib → dist}/commands/compute/list.js +0 -0
- /package/{lib → dist}/commands/compute/list.js.map +0 -0
- /package/{lib → dist}/commands/compute/scale.d.ts +0 -0
- /package/{lib → dist}/commands/compute/scale.js +0 -0
- /package/{lib → dist}/commands/compute/scale.js.map +0 -0
- /package/{lib → dist}/commands/compute/set/config.d.ts +0 -0
- /package/{lib → dist}/commands/compute/set/config.js +0 -0
- /package/{lib → dist}/commands/compute/set/config.js.map +0 -0
- /package/{lib → dist}/commands/compute/source/retrieve.d.ts +0 -0
- /package/{lib → dist}/commands/compute/tail/runtime-log.d.ts +0 -0
- /package/{lib → dist}/commands/compute/tail/runtime-log.js +0 -0
- /package/{lib → dist}/commands/compute/tail/runtime-log.js.map +0 -0
- /package/{lib → dist}/commands/compute/unset/config.d.ts +0 -0
- /package/{lib → dist}/commands/compute/unset/config.js +0 -0
- /package/{lib → dist}/commands/compute/unset/config.js.map +0 -0
- /package/{lib → dist}/commands/compute/update/telemetry-drain.d.ts +0 -0
- /package/{lib → dist}/commands/compute/update/telemetry-drain.js +0 -0
- /package/{lib → dist}/commands/compute/update/telemetry-drain.js.map +0 -0
- /package/{lib → dist}/index.d.ts +0 -0
- /package/{lib → dist}/index.js +0 -0
- /package/{lib → dist}/index.js.map +0 -0
- /package/{lib → dist}/shared/computeApp.d.ts +0 -0
- /package/{lib → dist}/shared/computeBundle.d.ts +0 -0
- /package/{lib → dist}/shared/computeConfig.d.ts +0 -0
- /package/{lib → dist}/shared/computeConfig.js +0 -0
- /package/{lib → dist}/shared/computeConfig.js.map +0 -0
- /package/{lib → dist}/shared/computeConnectApi.d.ts +0 -0
- /package/{lib → dist}/shared/computeConnectApi.js +0 -0
- /package/{lib → dist}/shared/computeConnectApi.js.map +0 -0
- /package/{lib → dist}/shared/computeGenerateSkeletons.d.ts +0 -0
- /package/{lib → dist}/shared/computeGenerateSkeletons.js.map +0 -0
- /package/{lib → dist}/shared/computeGenerateSource.d.ts +0 -0
- /package/{lib → dist}/shared/computeGenerateSource.js +0 -0
- /package/{lib → dist}/shared/computeGenerateSource.js.map +0 -0
- /package/{lib → dist}/shared/computeLogStream.d.ts +0 -0
- /package/{lib → dist}/shared/computeLogStream.js +0 -0
- /package/{lib → dist}/shared/computeLogStream.js.map +0 -0
- /package/{lib → dist}/shared/computeQuery.d.ts +0 -0
- /package/{lib → dist}/shared/computeQuery.js +0 -0
- /package/{lib → dist}/shared/computeQuery.js.map +0 -0
- /package/{lib → dist}/shared/computeTelemetryDrain.d.ts +0 -0
- /package/{lib → dist}/shared/computeTelemetryDrain.js +0 -0
- /package/{lib → dist}/shared/computeTelemetryDrain.js.map +0 -0
- /package/{lib → dist}/shared/herokuProxyApi.d.ts +0 -0
- /package/{lib → dist}/shared/herokuProxyApi.js +0 -0
- /package/{lib → dist}/shared/herokuProxyApi.js.map +0 -0
- /package/{lib → dist}/shared/metadataApiVersion.d.ts +0 -0
- /package/{lib → dist}/shared/metadataDeploy.d.ts +0 -0
- /package/{lib → dist}/shared/metadataRetrieve.d.ts +0 -0
- /package/{lib → dist}/shared/plugin-name.d.ts +0 -0
- /package/{lib → dist}/shared/plugin-name.js +0 -0
- /package/{lib → dist}/shared/plugin-name.js.map +0 -0
package/oclif.manifest.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"args": {},
|
|
6
6
|
"description": "This command no longer deploys compute apps. Install the Compute variant of\nthe deploy-retrieve plugin and use project deploy start from your Salesforce\nDX project instead.",
|
|
7
7
|
"examples": [
|
|
8
|
-
"Install the plugin and deploy a compute app:\n<%= config.bin %> plugins install @salesforce/plugin-deploy-retrieve@compute\n<%= config.bin %> project deploy start --metadata
|
|
8
|
+
"Install the plugin and deploy a compute app:\n<%= config.bin %> plugins install @salesforce/plugin-deploy-retrieve@compute\n<%= config.bin %> project deploy start --metadata ComputeApp:my_app --target-org my-org"
|
|
9
9
|
],
|
|
10
10
|
"flags": {
|
|
11
11
|
"json": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"requiresProject": false,
|
|
53
53
|
"isESM": true,
|
|
54
54
|
"relativePath": [
|
|
55
|
-
"
|
|
55
|
+
"dist",
|
|
56
56
|
"commands",
|
|
57
57
|
"compute",
|
|
58
58
|
"deploy.js"
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"requiresProject": false,
|
|
134
134
|
"isESM": true,
|
|
135
135
|
"relativePath": [
|
|
136
|
-
"
|
|
136
|
+
"dist",
|
|
137
137
|
"commands",
|
|
138
138
|
"compute",
|
|
139
139
|
"display.js"
|
|
@@ -151,10 +151,10 @@
|
|
|
151
151
|
"to": "template generate project",
|
|
152
152
|
"message": "This command will be available as sf template generate project --template compute in version 1.0.0 of plugin-compute."
|
|
153
153
|
},
|
|
154
|
-
"description": "Creates the app directory under force-app/main/default/
|
|
154
|
+
"description": "Creates the app directory under force-app/main/default/computeApps/<name>/ (or\n--output-dir) with a compute metadata file, a Procfile, a project.toml, and\nstarter source in the language you choose with --language. No org is\ncontacted, but this command does fetch the starter source for the chosen\nlanguage from its Heroku AppLink reference app on GitHub, so it requires\noutbound network access.\n\nThis command is deprecated but still works. When you move to sf template generate\nproject --template compute, note that --language no longer defaults to node: the\nreplacement's --compute-language flag makes the language an explicit choice.",
|
|
155
155
|
"examples": [
|
|
156
156
|
"Scaffold a Node.js compute app named CreditRatingScorer:\n<%= config.bin %> <%= command.id %> --name CreditRatingScorer",
|
|
157
|
-
"Scaffold a Python compute app into a custom directory:\n<%= config.bin %> <%= command.id %> --name ReceiptOcr --language python --output-dir force-app/main/default/
|
|
157
|
+
"Scaffold a Python compute app into a custom directory:\n<%= config.bin %> <%= command.id %> --name ReceiptOcr --language python --output-dir force-app/main/default/computeApps/scorers"
|
|
158
158
|
],
|
|
159
159
|
"flags": {
|
|
160
160
|
"json": {
|
|
@@ -183,10 +183,10 @@
|
|
|
183
183
|
},
|
|
184
184
|
"output-dir": {
|
|
185
185
|
"char": "d",
|
|
186
|
-
"description": "Defaults to force-app/main/default/
|
|
186
|
+
"description": "Defaults to force-app/main/default/computeApps. The app itself is created in a\nsubdirectory named after --name.",
|
|
187
187
|
"name": "output-dir",
|
|
188
188
|
"summary": "Directory to create the app in.",
|
|
189
|
-
"default": "force-app/main/default/
|
|
189
|
+
"default": "force-app/main/default/computeApps",
|
|
190
190
|
"hasDynamicHelp": false,
|
|
191
191
|
"multiple": false,
|
|
192
192
|
"type": "option"
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
"requiresProject": true,
|
|
220
220
|
"isESM": true,
|
|
221
221
|
"relativePath": [
|
|
222
|
-
"
|
|
222
|
+
"dist",
|
|
223
223
|
"commands",
|
|
224
224
|
"compute",
|
|
225
225
|
"generate.js"
|
|
@@ -283,7 +283,7 @@
|
|
|
283
283
|
"requiresProject": false,
|
|
284
284
|
"isESM": true,
|
|
285
285
|
"relativePath": [
|
|
286
|
-
"
|
|
286
|
+
"dist",
|
|
287
287
|
"commands",
|
|
288
288
|
"compute",
|
|
289
289
|
"list.js"
|
|
@@ -381,7 +381,7 @@
|
|
|
381
381
|
"requiresProject": false,
|
|
382
382
|
"isESM": true,
|
|
383
383
|
"relativePath": [
|
|
384
|
-
"
|
|
384
|
+
"dist",
|
|
385
385
|
"commands",
|
|
386
386
|
"compute",
|
|
387
387
|
"scale.js"
|
|
@@ -487,7 +487,7 @@
|
|
|
487
487
|
"requiresProject": false,
|
|
488
488
|
"isESM": true,
|
|
489
489
|
"relativePath": [
|
|
490
|
-
"
|
|
490
|
+
"dist",
|
|
491
491
|
"commands",
|
|
492
492
|
"compute",
|
|
493
493
|
"create",
|
|
@@ -569,7 +569,7 @@
|
|
|
569
569
|
"requiresProject": false,
|
|
570
570
|
"isESM": true,
|
|
571
571
|
"relativePath": [
|
|
572
|
-
"
|
|
572
|
+
"dist",
|
|
573
573
|
"commands",
|
|
574
574
|
"compute",
|
|
575
575
|
"delete",
|
|
@@ -643,7 +643,7 @@
|
|
|
643
643
|
"requiresProject": false,
|
|
644
644
|
"isESM": true,
|
|
645
645
|
"relativePath": [
|
|
646
|
-
"
|
|
646
|
+
"dist",
|
|
647
647
|
"commands",
|
|
648
648
|
"compute",
|
|
649
649
|
"display",
|
|
@@ -659,12 +659,13 @@
|
|
|
659
659
|
"telemetry-drain:display:compute"
|
|
660
660
|
]
|
|
661
661
|
},
|
|
662
|
-
"compute:
|
|
662
|
+
"compute:list:config": {
|
|
663
663
|
"aliases": [],
|
|
664
664
|
"args": {},
|
|
665
|
-
"
|
|
665
|
+
"deprecateAliases": true,
|
|
666
|
+
"description": "Shows every config var (environment variable) currently set for a deployed\ncompute app, sorted alphabetically. Goes through the target org's Salesforce\nConnect API, which calls Heroku on your behalf. Use sf compute get config to\nread a single var's value, sf compute set config to add or change vars, or\nsf compute unset config to remove them.",
|
|
666
667
|
"examples": [
|
|
667
|
-
"
|
|
668
|
+
"List all config vars for a compute app:\n<%= config.bin %> <%= command.id %> --name CreditRatingScorer --target-org my-org"
|
|
668
669
|
],
|
|
669
670
|
"flags": {
|
|
670
671
|
"json": {
|
|
@@ -686,7 +687,7 @@
|
|
|
686
687
|
"char": "n",
|
|
687
688
|
"env": "COMPUTE_APP_NAME",
|
|
688
689
|
"name": "name",
|
|
689
|
-
"summary": "DeveloperName of the compute app to
|
|
690
|
+
"summary": "DeveloperName of the compute app to list config vars for (or\n<namespace>\\_\\_<developerName> if it was deployed under a namespace).\nDefaults to the COMPUTE_APP_NAME environment variable, or the current\ndirectory's app name if that isn't set either.",
|
|
690
691
|
"hasDynamicHelp": false,
|
|
691
692
|
"multiple": false,
|
|
692
693
|
"type": "option"
|
|
@@ -710,46 +711,41 @@
|
|
|
710
711
|
}
|
|
711
712
|
},
|
|
712
713
|
"hasDynamicHelp": true,
|
|
713
|
-
"hiddenAliases": [
|
|
714
|
-
|
|
714
|
+
"hiddenAliases": [
|
|
715
|
+
"compute:config:list"
|
|
716
|
+
],
|
|
717
|
+
"id": "compute:list:config",
|
|
715
718
|
"pluginAlias": "@heroku/plugin-compute",
|
|
716
719
|
"pluginName": "@heroku/plugin-compute",
|
|
717
720
|
"pluginType": "core",
|
|
718
721
|
"strict": true,
|
|
719
|
-
"summary": "
|
|
722
|
+
"summary": "List a compute app's config vars.",
|
|
720
723
|
"enableJsonFlag": true,
|
|
721
724
|
"requiresProject": false,
|
|
722
725
|
"isESM": true,
|
|
723
726
|
"relativePath": [
|
|
724
|
-
"
|
|
727
|
+
"dist",
|
|
725
728
|
"commands",
|
|
726
729
|
"compute",
|
|
727
|
-
"
|
|
728
|
-
"
|
|
730
|
+
"list",
|
|
731
|
+
"config.js"
|
|
729
732
|
],
|
|
730
733
|
"aliasPermutations": [],
|
|
731
734
|
"permutations": [
|
|
732
|
-
"compute:
|
|
733
|
-
"
|
|
734
|
-
"
|
|
735
|
-
"compute:
|
|
736
|
-
"
|
|
737
|
-
"
|
|
735
|
+
"compute:list:config",
|
|
736
|
+
"list:compute:config",
|
|
737
|
+
"list:config:compute",
|
|
738
|
+
"compute:config:list",
|
|
739
|
+
"config:compute:list",
|
|
740
|
+
"config:list:compute"
|
|
738
741
|
]
|
|
739
742
|
},
|
|
740
|
-
"compute:
|
|
743
|
+
"compute:list:telemetry-drain": {
|
|
741
744
|
"aliases": [],
|
|
742
|
-
"args": {
|
|
743
|
-
|
|
744
|
-
"multiple": true,
|
|
745
|
-
"name": "key"
|
|
746
|
-
}
|
|
747
|
-
},
|
|
748
|
-
"deprecateAliases": true,
|
|
749
|
-
"description": "Goes through the target org's Salesforce Connect API, which calls Heroku on\nyour behalf. Pass a single key to print its bare value, or more than one to\nprint each as key: value. Fails if any requested key isn't currently set.",
|
|
745
|
+
"args": {},
|
|
746
|
+
"description": "Shows every OpenTelemetry drain forwarding the compute app's logs, metrics,\nand traces, with each drain's ID, signals, and endpoint. Use\nsf compute display telemetry-drain to see the full detail of a single drain.",
|
|
750
747
|
"examples": [
|
|
751
|
-
"
|
|
752
|
-
"Print more than one config var:\n<%= config.bin %> <%= command.id %> STRIPE_KEY LOG_LEVEL --name CreditRatingScorer --target-org my-org"
|
|
748
|
+
"List the telemetry drains for a compute app:\n<%= config.bin %> <%= command.id %> --name CreditRatingScorer --target-org my-org"
|
|
753
749
|
],
|
|
754
750
|
"flags": {
|
|
755
751
|
"json": {
|
|
@@ -771,7 +767,7 @@
|
|
|
771
767
|
"char": "n",
|
|
772
768
|
"env": "COMPUTE_APP_NAME",
|
|
773
769
|
"name": "name",
|
|
774
|
-
"summary": "DeveloperName of the compute app to
|
|
770
|
+
"summary": "DeveloperName of the compute app to list telemetry drains for (or\n<namespace>\\_\\_<developerName> if it was deployed under a namespace).\nDefaults to the COMPUTE_APP_NAME environment variable, or the current\ndirectory's app name if that isn't set either.",
|
|
775
771
|
"hasDynamicHelp": false,
|
|
776
772
|
"multiple": false,
|
|
777
773
|
"type": "option"
|
|
@@ -795,42 +791,39 @@
|
|
|
795
791
|
}
|
|
796
792
|
},
|
|
797
793
|
"hasDynamicHelp": true,
|
|
798
|
-
"hiddenAliases": [
|
|
799
|
-
|
|
800
|
-
],
|
|
801
|
-
"id": "compute:get:config",
|
|
794
|
+
"hiddenAliases": [],
|
|
795
|
+
"id": "compute:list:telemetry-drain",
|
|
802
796
|
"pluginAlias": "@heroku/plugin-compute",
|
|
803
797
|
"pluginName": "@heroku/plugin-compute",
|
|
804
798
|
"pluginType": "core",
|
|
805
799
|
"strict": true,
|
|
806
|
-
"summary": "
|
|
800
|
+
"summary": "List the telemetry drains configured for a compute app.",
|
|
807
801
|
"enableJsonFlag": true,
|
|
808
802
|
"requiresProject": false,
|
|
809
803
|
"isESM": true,
|
|
810
804
|
"relativePath": [
|
|
811
|
-
"
|
|
805
|
+
"dist",
|
|
812
806
|
"commands",
|
|
813
807
|
"compute",
|
|
814
|
-
"
|
|
815
|
-
"
|
|
808
|
+
"list",
|
|
809
|
+
"telemetry-drain.js"
|
|
816
810
|
],
|
|
817
811
|
"aliasPermutations": [],
|
|
818
812
|
"permutations": [
|
|
819
|
-
"compute:
|
|
820
|
-
"
|
|
821
|
-
"
|
|
822
|
-
"compute:
|
|
823
|
-
"
|
|
824
|
-
"
|
|
813
|
+
"compute:list:telemetry-drain",
|
|
814
|
+
"list:compute:telemetry-drain",
|
|
815
|
+
"list:telemetry-drain:compute",
|
|
816
|
+
"compute:telemetry-drain:list",
|
|
817
|
+
"telemetry-drain:compute:list",
|
|
818
|
+
"telemetry-drain:list:compute"
|
|
825
819
|
]
|
|
826
820
|
},
|
|
827
|
-
"compute:get:
|
|
821
|
+
"compute:get:build-log": {
|
|
828
822
|
"aliases": [],
|
|
829
823
|
"args": {},
|
|
830
|
-
"description": "Fetches
|
|
824
|
+
"description": "Fetches the bounded build/compile log (dependency install, slug compile,\nrelease) for the most recent build of a compute app -- useful right after\ndeploy to confirm the build compiled. This is a one-shot fetch of a\nfinished-or-in-progress log, not a live stream; use compute tail runtime-log\nfor the ongoing runtime log.\n\nThis is a read-only, org-mediated lookup by --name (the app's DeveloperName)\n-- the org calls Heroku's Build Info API on your behalf. It doesn't read from\nor require a local Salesforce DX project.",
|
|
831
825
|
"examples": [
|
|
832
|
-
"Print the
|
|
833
|
-
"Print the most recent 500 log lines:\n<%= config.bin %> <%= command.id %> --name CreditRatingScorer --num 500 --target-org my-org"
|
|
826
|
+
"Print the latest build's log:\n<%= config.bin %> <%= command.id %> --name CreditRatingScorer --target-org my-org"
|
|
834
827
|
],
|
|
835
828
|
"flags": {
|
|
836
829
|
"json": {
|
|
@@ -852,7 +845,7 @@
|
|
|
852
845
|
"char": "n",
|
|
853
846
|
"env": "COMPUTE_APP_NAME",
|
|
854
847
|
"name": "name",
|
|
855
|
-
"summary": "DeveloperName of the compute app to fetch
|
|
848
|
+
"summary": "DeveloperName of the compute app to fetch build output for (or\n<namespace>\\_\\_<developerName> if it was deployed under a namespace).\nDefaults to the COMPUTE_APP_NAME environment variable, or the current\ndirectory's app name if that isn't set either.",
|
|
856
849
|
"hasDynamicHelp": false,
|
|
857
850
|
"multiple": false,
|
|
858
851
|
"type": "option"
|
|
@@ -873,51 +866,49 @@
|
|
|
873
866
|
"hasDynamicHelp": false,
|
|
874
867
|
"multiple": false,
|
|
875
868
|
"type": "option"
|
|
876
|
-
},
|
|
877
|
-
"num": {
|
|
878
|
-
"name": "num",
|
|
879
|
-
"summary": "Number of recent log lines to print.",
|
|
880
|
-
"default": 100,
|
|
881
|
-
"hasDynamicHelp": false,
|
|
882
|
-
"multiple": false,
|
|
883
|
-
"type": "option"
|
|
884
869
|
}
|
|
885
870
|
},
|
|
886
871
|
"hasDynamicHelp": true,
|
|
887
872
|
"hiddenAliases": [],
|
|
888
|
-
"id": "compute:get:
|
|
873
|
+
"id": "compute:get:build-log",
|
|
889
874
|
"pluginAlias": "@heroku/plugin-compute",
|
|
890
875
|
"pluginName": "@heroku/plugin-compute",
|
|
891
876
|
"pluginType": "core",
|
|
892
877
|
"strict": true,
|
|
893
|
-
"summary": "Print the
|
|
878
|
+
"summary": "Print the build/compile log for a compute app's latest build.",
|
|
894
879
|
"enableJsonFlag": true,
|
|
895
880
|
"requiresProject": false,
|
|
896
881
|
"isESM": true,
|
|
897
882
|
"relativePath": [
|
|
898
|
-
"
|
|
883
|
+
"dist",
|
|
899
884
|
"commands",
|
|
900
885
|
"compute",
|
|
901
886
|
"get",
|
|
902
|
-
"
|
|
887
|
+
"build-log.js"
|
|
903
888
|
],
|
|
904
889
|
"aliasPermutations": [],
|
|
905
890
|
"permutations": [
|
|
906
|
-
"compute:get:
|
|
907
|
-
"get:compute:
|
|
908
|
-
"get:
|
|
909
|
-
"compute:
|
|
910
|
-
"
|
|
911
|
-
"
|
|
891
|
+
"compute:get:build-log",
|
|
892
|
+
"get:compute:build-log",
|
|
893
|
+
"get:build-log:compute",
|
|
894
|
+
"compute:build-log:get",
|
|
895
|
+
"build-log:compute:get",
|
|
896
|
+
"build-log:get:compute"
|
|
912
897
|
]
|
|
913
898
|
},
|
|
914
|
-
"compute:
|
|
899
|
+
"compute:get:config": {
|
|
915
900
|
"aliases": [],
|
|
916
|
-
"args": {
|
|
901
|
+
"args": {
|
|
902
|
+
"key": {
|
|
903
|
+
"multiple": true,
|
|
904
|
+
"name": "key"
|
|
905
|
+
}
|
|
906
|
+
},
|
|
917
907
|
"deprecateAliases": true,
|
|
918
|
-
"description": "
|
|
908
|
+
"description": "Goes through the target org's Salesforce Connect API, which calls Heroku on\nyour behalf. Pass a single key to print its bare value, or more than one to\nprint each as key: value. Fails if any requested key isn't currently set.",
|
|
919
909
|
"examples": [
|
|
920
|
-
"
|
|
910
|
+
"Print a single config var's value:\n<%= config.bin %> <%= command.id %> STRIPE_KEY --name CreditRatingScorer --target-org my-org",
|
|
911
|
+
"Print more than one config var:\n<%= config.bin %> <%= command.id %> STRIPE_KEY LOG_LEVEL --name CreditRatingScorer --target-org my-org"
|
|
921
912
|
],
|
|
922
913
|
"flags": {
|
|
923
914
|
"json": {
|
|
@@ -939,7 +930,7 @@
|
|
|
939
930
|
"char": "n",
|
|
940
931
|
"env": "COMPUTE_APP_NAME",
|
|
941
932
|
"name": "name",
|
|
942
|
-
"summary": "DeveloperName of the compute app to
|
|
933
|
+
"summary": "DeveloperName of the compute app to read config from (or\n<namespace>\\_\\_<developerName> if it was deployed under a namespace).\nDefaults to the COMPUTE_APP_NAME environment variable, or the current\ndirectory's app name if that isn't set either.",
|
|
943
934
|
"hasDynamicHelp": false,
|
|
944
935
|
"multiple": false,
|
|
945
936
|
"type": "option"
|
|
@@ -964,40 +955,41 @@
|
|
|
964
955
|
},
|
|
965
956
|
"hasDynamicHelp": true,
|
|
966
957
|
"hiddenAliases": [
|
|
967
|
-
"compute:config:
|
|
958
|
+
"compute:config:get"
|
|
968
959
|
],
|
|
969
|
-
"id": "compute:
|
|
960
|
+
"id": "compute:get:config",
|
|
970
961
|
"pluginAlias": "@heroku/plugin-compute",
|
|
971
962
|
"pluginName": "@heroku/plugin-compute",
|
|
972
963
|
"pluginType": "core",
|
|
973
964
|
"strict": true,
|
|
974
|
-
"summary": "
|
|
965
|
+
"summary": "Print one or more of a compute app's config var values.",
|
|
975
966
|
"enableJsonFlag": true,
|
|
976
967
|
"requiresProject": false,
|
|
977
968
|
"isESM": true,
|
|
978
969
|
"relativePath": [
|
|
979
|
-
"
|
|
970
|
+
"dist",
|
|
980
971
|
"commands",
|
|
981
972
|
"compute",
|
|
982
|
-
"
|
|
973
|
+
"get",
|
|
983
974
|
"config.js"
|
|
984
975
|
],
|
|
985
976
|
"aliasPermutations": [],
|
|
986
977
|
"permutations": [
|
|
987
|
-
"compute:
|
|
988
|
-
"
|
|
989
|
-
"
|
|
990
|
-
"compute:config:
|
|
991
|
-
"config:compute:
|
|
992
|
-
"config:
|
|
978
|
+
"compute:get:config",
|
|
979
|
+
"get:compute:config",
|
|
980
|
+
"get:config:compute",
|
|
981
|
+
"compute:config:get",
|
|
982
|
+
"config:compute:get",
|
|
983
|
+
"config:get:compute"
|
|
993
984
|
]
|
|
994
985
|
},
|
|
995
|
-
"compute:
|
|
986
|
+
"compute:get:runtime-log": {
|
|
996
987
|
"aliases": [],
|
|
997
988
|
"args": {},
|
|
998
|
-
"description": "
|
|
989
|
+
"description": "Fetches a compute app's runtime log -- the app's ongoing output (request\nhandling, application logs), not the build/compile log; use compute get\nbuild-log for that.\n\nThis prints the most recent log lines and exits. To keep the session open and\nstream new lines as they arrive, use compute tail runtime-log.\n\nThe recent lines come from the Cedar log buffer (about 1500 lines at most), so\n--num can't return more than that. Fir apps keep no log history, so this\ncommand isn't supported for them; use compute tail runtime-log instead. The\ncommand stops waiting after 30 seconds and prints whatever log lines it has\nreceived by then; if none arrived, it fails with a timeout error.\n\nThis is an org-mediated operation by --name (the app's DeveloperName) -- the\norg creates a log session with Heroku on your behalf and hands back a\nshort-lived, pre-authorized URL that the CLI reads from directly. It doesn't\nread from or require a local Salesforce DX project.",
|
|
999
990
|
"examples": [
|
|
1000
|
-
"
|
|
991
|
+
"Print the most recent log lines:\n<%= config.bin %> <%= command.id %> --name CreditRatingScorer --target-org my-org",
|
|
992
|
+
"Print the most recent 500 log lines:\n<%= config.bin %> <%= command.id %> --name CreditRatingScorer --num 500 --target-org my-org"
|
|
1001
993
|
],
|
|
1002
994
|
"flags": {
|
|
1003
995
|
"json": {
|
|
@@ -1019,7 +1011,7 @@
|
|
|
1019
1011
|
"char": "n",
|
|
1020
1012
|
"env": "COMPUTE_APP_NAME",
|
|
1021
1013
|
"name": "name",
|
|
1022
|
-
"summary": "DeveloperName of the compute app to
|
|
1014
|
+
"summary": "DeveloperName of the compute app to fetch logs for (or\n<namespace>\\_\\_<developerName> if it was deployed under a namespace).\nDefaults to the COMPUTE_APP_NAME environment variable, or the current\ndirectory's app name if that isn't set either.",
|
|
1023
1015
|
"hasDynamicHelp": false,
|
|
1024
1016
|
"multiple": false,
|
|
1025
1017
|
"type": "option"
|
|
@@ -1040,34 +1032,42 @@
|
|
|
1040
1032
|
"hasDynamicHelp": false,
|
|
1041
1033
|
"multiple": false,
|
|
1042
1034
|
"type": "option"
|
|
1035
|
+
},
|
|
1036
|
+
"num": {
|
|
1037
|
+
"name": "num",
|
|
1038
|
+
"summary": "Number of recent log lines to print.",
|
|
1039
|
+
"default": 100,
|
|
1040
|
+
"hasDynamicHelp": false,
|
|
1041
|
+
"multiple": false,
|
|
1042
|
+
"type": "option"
|
|
1043
1043
|
}
|
|
1044
1044
|
},
|
|
1045
1045
|
"hasDynamicHelp": true,
|
|
1046
1046
|
"hiddenAliases": [],
|
|
1047
|
-
"id": "compute:
|
|
1047
|
+
"id": "compute:get:runtime-log",
|
|
1048
1048
|
"pluginAlias": "@heroku/plugin-compute",
|
|
1049
1049
|
"pluginName": "@heroku/plugin-compute",
|
|
1050
1050
|
"pluginType": "core",
|
|
1051
1051
|
"strict": true,
|
|
1052
|
-
"summary": "
|
|
1052
|
+
"summary": "Print the recent runtime log for a compute app.",
|
|
1053
1053
|
"enableJsonFlag": true,
|
|
1054
1054
|
"requiresProject": false,
|
|
1055
1055
|
"isESM": true,
|
|
1056
1056
|
"relativePath": [
|
|
1057
|
-
"
|
|
1057
|
+
"dist",
|
|
1058
1058
|
"commands",
|
|
1059
1059
|
"compute",
|
|
1060
|
-
"
|
|
1061
|
-
"
|
|
1060
|
+
"get",
|
|
1061
|
+
"runtime-log.js"
|
|
1062
1062
|
],
|
|
1063
1063
|
"aliasPermutations": [],
|
|
1064
1064
|
"permutations": [
|
|
1065
|
-
"compute:
|
|
1066
|
-
"
|
|
1067
|
-
"
|
|
1068
|
-
"compute:
|
|
1069
|
-
"
|
|
1070
|
-
"
|
|
1065
|
+
"compute:get:runtime-log",
|
|
1066
|
+
"get:compute:runtime-log",
|
|
1067
|
+
"get:runtime-log:compute",
|
|
1068
|
+
"compute:runtime-log:get",
|
|
1069
|
+
"runtime-log:compute:get",
|
|
1070
|
+
"runtime-log:get:compute"
|
|
1071
1071
|
]
|
|
1072
1072
|
},
|
|
1073
1073
|
"compute:set:config": {
|
|
@@ -1141,7 +1141,7 @@
|
|
|
1141
1141
|
"requiresProject": false,
|
|
1142
1142
|
"isESM": true,
|
|
1143
1143
|
"relativePath": [
|
|
1144
|
-
"
|
|
1144
|
+
"dist",
|
|
1145
1145
|
"commands",
|
|
1146
1146
|
"compute",
|
|
1147
1147
|
"set",
|
|
@@ -1160,7 +1160,7 @@
|
|
|
1160
1160
|
"compute:source:retrieve": {
|
|
1161
1161
|
"aliases": [],
|
|
1162
1162
|
"args": {},
|
|
1163
|
-
"description": "Creates the compute app's directory under force-app/main/default/
|
|
1163
|
+
"description": "Creates the compute app's directory under force-app/main/default/computeApps/<name>/\n(or --output-dir), retrieves its <name>.computeApp-meta.xml through the Metadata\nAPI, then downloads its source code through the Connect API and extracts it\ninto that same directory. Deploy it with project deploy start.",
|
|
1164
1164
|
"examples": [
|
|
1165
1165
|
"Retrieve a compute app's source and metadata from an org:\n<%= config.bin %> <%= command.id %> --name CreditRatingScorer --target-org my-org"
|
|
1166
1166
|
],
|
|
@@ -1208,10 +1208,10 @@
|
|
|
1208
1208
|
},
|
|
1209
1209
|
"output-dir": {
|
|
1210
1210
|
"char": "d",
|
|
1211
|
-
"description": "Defaults to force-app/main/default/
|
|
1211
|
+
"description": "Defaults to force-app/main/default/computeApps. The app itself is created in a\nsubdirectory named after --name.",
|
|
1212
1212
|
"name": "output-dir",
|
|
1213
1213
|
"summary": "Directory to create the app in.",
|
|
1214
|
-
"default": "force-app/main/default/
|
|
1214
|
+
"default": "force-app/main/default/computeApps",
|
|
1215
1215
|
"hasDynamicHelp": false,
|
|
1216
1216
|
"multiple": false,
|
|
1217
1217
|
"type": "option"
|
|
@@ -1229,7 +1229,7 @@
|
|
|
1229
1229
|
"requiresProject": true,
|
|
1230
1230
|
"isESM": true,
|
|
1231
1231
|
"relativePath": [
|
|
1232
|
-
"
|
|
1232
|
+
"dist",
|
|
1233
1233
|
"commands",
|
|
1234
1234
|
"compute",
|
|
1235
1235
|
"source",
|
|
@@ -1309,7 +1309,7 @@
|
|
|
1309
1309
|
"requiresProject": false,
|
|
1310
1310
|
"isESM": true,
|
|
1311
1311
|
"relativePath": [
|
|
1312
|
-
"
|
|
1312
|
+
"dist",
|
|
1313
1313
|
"commands",
|
|
1314
1314
|
"compute",
|
|
1315
1315
|
"tail",
|
|
@@ -1396,7 +1396,7 @@
|
|
|
1396
1396
|
"requiresProject": false,
|
|
1397
1397
|
"isESM": true,
|
|
1398
1398
|
"relativePath": [
|
|
1399
|
-
"
|
|
1399
|
+
"dist",
|
|
1400
1400
|
"commands",
|
|
1401
1401
|
"compute",
|
|
1402
1402
|
"unset",
|
|
@@ -1500,7 +1500,7 @@
|
|
|
1500
1500
|
"requiresProject": false,
|
|
1501
1501
|
"isESM": true,
|
|
1502
1502
|
"relativePath": [
|
|
1503
|
-
"
|
|
1503
|
+
"dist",
|
|
1504
1504
|
"commands",
|
|
1505
1505
|
"compute",
|
|
1506
1506
|
"update",
|
|
@@ -1517,5 +1517,5 @@
|
|
|
1517
1517
|
]
|
|
1518
1518
|
}
|
|
1519
1519
|
},
|
|
1520
|
-
"version": "0.
|
|
1520
|
+
"version": "0.4.1"
|
|
1521
1521
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heroku/plugin-compute",
|
|
3
3
|
"description": "CLI for Compute",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.1",
|
|
5
5
|
"author": "Heroku",
|
|
6
6
|
"bugs": "https://github.com/heroku/plugin-compute/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -11,36 +11,36 @@
|
|
|
11
11
|
"@salesforce/sf-plugins-core": "^12",
|
|
12
12
|
"@salesforce/source-deploy-retrieve": "^12.37.2",
|
|
13
13
|
"form-data": "^4.0.6",
|
|
14
|
-
"ignore": "^7.0.
|
|
14
|
+
"ignore": "^7.0.13",
|
|
15
15
|
"jszip": "^3.10.1",
|
|
16
16
|
"openapi-fetch": "^0.17.0",
|
|
17
17
|
"tar-stream": "^3.2.1"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@heroku-cli/test-utils": "2.0.0-beta.0",
|
|
21
|
-
"@oclif/plugin-command-snapshot": "^6.0.
|
|
22
|
-
"@salesforce/cli-plugins-testkit": "^5.3.
|
|
23
|
-
"@typescript-eslint/parser": "^8.
|
|
21
|
+
"@oclif/plugin-command-snapshot": "^6.0.6",
|
|
22
|
+
"@salesforce/cli-plugins-testkit": "^5.3.78",
|
|
23
|
+
"@typescript-eslint/parser": "^8.72.0",
|
|
24
24
|
"@types/node": "^22",
|
|
25
|
-
"@types/sinon": "
|
|
26
|
-
"@vitest/coverage-v8": "^5",
|
|
25
|
+
"@types/sinon": "22.0.0",
|
|
26
|
+
"@vitest/coverage-v8": "^5.0.5",
|
|
27
27
|
"@vitest/eslint-plugin": "^1.6.27",
|
|
28
|
-
"eslint": "^10.
|
|
28
|
+
"eslint": "^10.13.0",
|
|
29
29
|
"eslint-config-oclif": "^7",
|
|
30
30
|
"linkinator": "^8.1.0",
|
|
31
|
-
"oclif": "^6",
|
|
31
|
+
"oclif": "^6.0.10",
|
|
32
32
|
"openapi-typescript": "^7.13.0",
|
|
33
33
|
"rimraf": "^6.0.1",
|
|
34
34
|
"ts-node": "^10.9.2",
|
|
35
35
|
"typescript": "^6.0.3",
|
|
36
36
|
"vite": "^7",
|
|
37
|
-
"vitest": "^5"
|
|
37
|
+
"vitest": "^5.0.5"
|
|
38
38
|
},
|
|
39
39
|
"engines": {
|
|
40
40
|
"node": ">=22.19.0"
|
|
41
41
|
},
|
|
42
42
|
"files": [
|
|
43
|
-
"/
|
|
43
|
+
"/dist",
|
|
44
44
|
"/messages",
|
|
45
45
|
"/npm-shrinkwrap.json",
|
|
46
46
|
"/oclif.manifest.json",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
],
|
|
59
59
|
"license": "Apache-2.0",
|
|
60
60
|
"oclif": {
|
|
61
|
-
"commands": "./
|
|
61
|
+
"commands": "./dist/commands",
|
|
62
62
|
"bin": "sf",
|
|
63
63
|
"topicSeparator": " ",
|
|
64
64
|
"devPlugins": [
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
"url": "https://github.com/heroku/plugin-compute"
|
|
90
90
|
},
|
|
91
91
|
"scripts": {
|
|
92
|
-
"clean": "rimraf
|
|
93
|
-
"clean-all": "rimraf
|
|
92
|
+
"clean": "rimraf dist tmp oclif.manifest.json *.tsbuildinfo .eslintcache",
|
|
93
|
+
"clean-all": "rimraf dist tmp oclif.manifest.json *.tsbuildinfo .eslintcache node_modules",
|
|
94
94
|
"compile": "tsc -p . --pretty --incremental",
|
|
95
95
|
"build": "tsc -p . --pretty --incremental",
|
|
96
96
|
"manifest": "oclif manifest",
|
|
@@ -106,18 +106,19 @@
|
|
|
106
106
|
"//test": "The test:command-reference gate was removed from this chain until @salesforce/plugin-command-reference can be reinstalled without its vulnerable transitive deps; see AGENTS.md for restore steps.",
|
|
107
107
|
"test": "npm run test:compile && npm run test:only && npm run test:deprecation-policy && npm run test:json-schema && npm run link-check",
|
|
108
108
|
"test:nuts": "vitest run --config vitest.nut.config.ts",
|
|
109
|
-
"
|
|
109
|
+
"prepare": "npm run build && oclif manifest",
|
|
110
|
+
"prepack": "npm shrinkwrap",
|
|
110
111
|
"postpack": "rimraf oclif.manifest.json npm-shrinkwrap.json"
|
|
111
112
|
},
|
|
112
113
|
"publishConfig": {
|
|
113
114
|
"access": "restricted"
|
|
114
115
|
},
|
|
115
116
|
"overrides": {
|
|
116
|
-
"fast-uri": "^3.1.
|
|
117
|
+
"fast-uri": "^3.1.9",
|
|
117
118
|
"@jsforce/jsforce-node": "^3.10.27",
|
|
118
119
|
"typescript": "$typescript",
|
|
119
120
|
"http-cache-semantics": "^4.3.0"
|
|
120
121
|
},
|
|
121
|
-
"exports": "./
|
|
122
|
+
"exports": "./dist/index.js",
|
|
122
123
|
"type": "module"
|
|
123
124
|
}
|