@heroku/plugin-compute 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/{lib → dist}/commands/compute/create/telemetry-drain.d.ts +1 -0
  2. package/{lib → dist}/commands/compute/create/telemetry-drain.js +2 -1
  3. package/{lib → dist}/commands/compute/create/telemetry-drain.js.map +1 -1
  4. package/dist/commands/compute/delete/telemetry-drain.d.ts +20 -0
  5. package/dist/commands/compute/delete/telemetry-drain.js +60 -0
  6. package/dist/commands/compute/delete/telemetry-drain.js.map +1 -0
  7. package/dist/commands/compute/deploy.d.ts +12 -0
  8. package/dist/commands/compute/deploy.js +37 -0
  9. package/dist/commands/compute/deploy.js.map +1 -0
  10. package/{lib → dist}/commands/compute/display/telemetry-drain.d.ts +1 -0
  11. package/{lib → dist}/commands/compute/display/telemetry-drain.js +4 -3
  12. package/dist/commands/compute/display/telemetry-drain.js.map +1 -0
  13. package/{lib → dist}/commands/compute/display.d.ts +1 -0
  14. package/{lib → dist}/commands/compute/display.js +2 -1
  15. package/dist/commands/compute/display.js.map +1 -0
  16. package/{lib → dist}/commands/compute/generate.js +4 -4
  17. package/{lib → dist}/commands/compute/generate.js.map +1 -1
  18. package/{lib → dist}/commands/compute/get/build-log.d.ts +1 -0
  19. package/{lib → dist}/commands/compute/get/build-log.js +2 -1
  20. package/dist/commands/compute/get/build-log.js.map +1 -0
  21. package/{lib → dist}/commands/compute/get/config.d.ts +1 -0
  22. package/{lib → dist}/commands/compute/get/config.js +2 -1
  23. package/dist/commands/compute/get/config.js.map +1 -0
  24. package/{lib → dist}/commands/compute/get/runtime-log.d.ts +1 -0
  25. package/{lib → dist}/commands/compute/get/runtime-log.js +14 -3
  26. package/dist/commands/compute/get/runtime-log.js.map +1 -0
  27. package/{lib → dist}/commands/compute/list/config.d.ts +1 -0
  28. package/{lib → dist}/commands/compute/list/config.js +2 -1
  29. package/dist/commands/compute/list/config.js.map +1 -0
  30. package/{lib → dist}/commands/compute/list/telemetry-drain.d.ts +1 -0
  31. package/{lib → dist}/commands/compute/list/telemetry-drain.js +2 -1
  32. package/{lib → dist}/commands/compute/list/telemetry-drain.js.map +1 -1
  33. package/{lib → dist}/commands/compute/list.d.ts +1 -0
  34. package/{lib → dist}/commands/compute/list.js +2 -1
  35. package/dist/commands/compute/list.js.map +1 -0
  36. package/{lib → dist}/commands/compute/scale.d.ts +1 -0
  37. package/{lib → dist}/commands/compute/scale.js +2 -1
  38. package/dist/commands/compute/scale.js.map +1 -0
  39. package/{lib → dist}/commands/compute/set/config.d.ts +1 -0
  40. package/{lib → dist}/commands/compute/set/config.js +2 -1
  41. package/dist/commands/compute/set/config.js.map +1 -0
  42. package/{lib → dist}/commands/compute/source/retrieve.d.ts +1 -0
  43. package/{lib → dist}/commands/compute/source/retrieve.js +5 -6
  44. package/dist/commands/compute/source/retrieve.js.map +1 -0
  45. package/{lib → dist}/commands/compute/tail/runtime-log.d.ts +1 -0
  46. package/{lib → dist}/commands/compute/tail/runtime-log.js +22 -6
  47. package/dist/commands/compute/tail/runtime-log.js.map +1 -0
  48. package/{lib → dist}/commands/compute/unset/config.d.ts +1 -0
  49. package/{lib → dist}/commands/compute/unset/config.js +2 -1
  50. package/dist/commands/compute/unset/config.js.map +1 -0
  51. package/{lib → dist}/commands/compute/update/telemetry-drain.d.ts +1 -0
  52. package/{lib → dist}/commands/compute/update/telemetry-drain.js +2 -1
  53. package/dist/commands/compute/update/telemetry-drain.js.map +1 -0
  54. package/{lib → dist}/shared/computeApp.js +1 -1
  55. package/{lib → dist}/shared/computeApp.js.map +1 -1
  56. package/{lib → dist}/shared/computeBundle.js +1 -1
  57. package/{lib → dist}/shared/computeBundle.js.map +1 -1
  58. package/{lib → dist}/shared/computeGenerateSkeletons.js +4 -2
  59. package/{lib → dist}/shared/computeGenerateSkeletons.js.map +1 -1
  60. package/{lib → dist}/shared/computeLogStream.d.ts +6 -1
  61. package/{lib → dist}/shared/computeLogStream.js +30 -3
  62. package/dist/shared/computeLogStream.js.map +1 -0
  63. package/{lib → dist}/shared/computeTelemetryDrain.d.ts +1 -0
  64. package/{lib → dist}/shared/computeTelemetryDrain.js +5 -8
  65. package/dist/shared/computeTelemetryDrain.js.map +1 -0
  66. package/{lib → dist}/shared/metadataApiVersion.js +1 -1
  67. package/{lib → dist}/shared/metadataApiVersion.js.map +1 -1
  68. package/{lib → dist}/shared/metadataDeploy.js +8 -8
  69. package/dist/shared/metadataDeploy.js.map +1 -0
  70. package/{lib → dist}/shared/metadataRetrieve.js +12 -8
  71. package/dist/shared/metadataRetrieve.js.map +1 -0
  72. package/messages/compute.create.telemetry-drain.md +1 -1
  73. package/messages/compute.delete.telemetry-drain.md +41 -0
  74. package/messages/compute.deploy.md +12 -70
  75. package/messages/compute.display.telemetry-drain.md +1 -0
  76. package/messages/compute.errors.md +16 -6
  77. package/messages/compute.generate.md +3 -3
  78. package/messages/compute.get.runtime-log.md +19 -0
  79. package/messages/compute.source.retrieve.md +4 -4
  80. package/messages/compute.update.telemetry-drain.md +1 -1
  81. package/npm-shrinkwrap.json +441 -854
  82. package/oclif.manifest.json +225 -42
  83. package/package.json +19 -18
  84. package/schemas/compute-delete-telemetry__drain.json +22 -0
  85. package/lib/commands/compute/deploy.d.ts +0 -18
  86. package/lib/commands/compute/deploy.js +0 -95
  87. package/lib/commands/compute/deploy.js.map +0 -1
  88. package/lib/commands/compute/display/telemetry-drain.js.map +0 -1
  89. package/lib/commands/compute/display.js.map +0 -1
  90. package/lib/commands/compute/get/build-log.js.map +0 -1
  91. package/lib/commands/compute/get/config.js.map +0 -1
  92. package/lib/commands/compute/get/runtime-log.js.map +0 -1
  93. package/lib/commands/compute/list/config.js.map +0 -1
  94. package/lib/commands/compute/list.js.map +0 -1
  95. package/lib/commands/compute/scale.js.map +0 -1
  96. package/lib/commands/compute/set/config.js.map +0 -1
  97. package/lib/commands/compute/source/retrieve.js.map +0 -1
  98. package/lib/commands/compute/tail/runtime-log.js.map +0 -1
  99. package/lib/commands/compute/unset/config.js.map +0 -1
  100. package/lib/commands/compute/update/telemetry-drain.js.map +0 -1
  101. package/lib/shared/computeLogStream.js.map +0 -1
  102. package/lib/shared/computeTelemetryDrain.js.map +0 -1
  103. package/lib/shared/metadataDeploy.js.map +0 -1
  104. package/lib/shared/metadataRetrieve.js.map +0 -1
  105. package/schemas/compute-deploy.json +0 -30
  106. /package/{lib → dist}/commands/compute/generate.d.ts +0 -0
  107. /package/{lib → dist}/index.d.ts +0 -0
  108. /package/{lib → dist}/index.js +0 -0
  109. /package/{lib → dist}/index.js.map +0 -0
  110. /package/{lib → dist}/shared/computeApp.d.ts +0 -0
  111. /package/{lib → dist}/shared/computeBundle.d.ts +0 -0
  112. /package/{lib → dist}/shared/computeConfig.d.ts +0 -0
  113. /package/{lib → dist}/shared/computeConfig.js +0 -0
  114. /package/{lib → dist}/shared/computeConfig.js.map +0 -0
  115. /package/{lib → dist}/shared/computeConnectApi.d.ts +0 -0
  116. /package/{lib → dist}/shared/computeConnectApi.js +0 -0
  117. /package/{lib → dist}/shared/computeConnectApi.js.map +0 -0
  118. /package/{lib → dist}/shared/computeGenerateSkeletons.d.ts +0 -0
  119. /package/{lib → dist}/shared/computeGenerateSource.d.ts +0 -0
  120. /package/{lib → dist}/shared/computeGenerateSource.js +0 -0
  121. /package/{lib → dist}/shared/computeGenerateSource.js.map +0 -0
  122. /package/{lib → dist}/shared/computeQuery.d.ts +0 -0
  123. /package/{lib → dist}/shared/computeQuery.js +0 -0
  124. /package/{lib → dist}/shared/computeQuery.js.map +0 -0
  125. /package/{lib → dist}/shared/herokuProxyApi.d.ts +0 -0
  126. /package/{lib → dist}/shared/herokuProxyApi.js +0 -0
  127. /package/{lib → dist}/shared/herokuProxyApi.js.map +0 -0
  128. /package/{lib → dist}/shared/metadataApiVersion.d.ts +0 -0
  129. /package/{lib → dist}/shared/metadataDeploy.d.ts +0 -0
  130. /package/{lib → dist}/shared/metadataRetrieve.d.ts +0 -0
  131. /package/{lib → dist}/shared/plugin-name.d.ts +0 -0
  132. /package/{lib → dist}/shared/plugin-name.js +0 -0
  133. /package/{lib → dist}/shared/plugin-name.js.map +0 -0
@@ -3,10 +3,9 @@
3
3
  "compute:deploy": {
4
4
  "aliases": [],
5
5
  "args": {},
6
- "description": "Packages the compute app's source (everything under its directory except the\ncompute metadata file and .forceignore) together with its api-spec.yaml into\na deployment bundle, uploads it to the org through the Connect API, then\ndeploys the app's <name>.compute-meta.xml through the\nMetadata API to trigger the build. The metadata deploy itself returns a job\nID that can be checked independently with \"sf project deploy report\n--job-id <id>\". Deploy is asynchronous: this command returns once the build\nhas been enqueued, it doesn't wait for the build to finish.\n\nFiles matching patterns in a .forceignore are excluded from the source\nbundle. Both the compute app's own .forceignore and the one at the project\nroot (next to sfdx-project.json) are applied, if present. api-spec.yaml and\nproject.toml are always included, since the build can't succeed without them.",
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
- "Deploy a compute app to an org, from inside the app's own directory:\ncd force-app/main/default/platformComputeApps/CreditRatingScorer\n<%= config.bin %> <%= command.id %> --target-org my-org",
9
- "Deploy a compute app to an org, from anywhere, by pointing --source-dir at it:\n<%= config.bin %> <%= command.id %> --source-dir force-app/main/default/platformComputeApps/CreditRatingScorer --target-org my-org"
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"
10
9
  ],
11
10
  "flags": {
12
11
  "json": {
@@ -26,37 +25,34 @@
26
25
  },
27
26
  "source-dir": {
28
27
  "char": "d",
28
+ "hidden": true,
29
29
  "name": "source-dir",
30
- "summary": "Directory containing the compute app to deploy. Defaults to the current directory.",
31
- "default": "current directory",
32
- "hasDynamicHelp": true,
30
+ "hasDynamicHelp": false,
33
31
  "multiple": false,
34
32
  "type": "option"
35
33
  },
36
34
  "target-org": {
37
35
  "char": "o",
36
+ "hidden": true,
38
37
  "name": "target-org",
39
- "noCacheDefault": true,
40
- "required": true,
41
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
42
- "hasDynamicHelp": true,
38
+ "hasDynamicHelp": false,
43
39
  "multiple": false,
44
40
  "type": "option"
45
41
  }
46
42
  },
47
- "hasDynamicHelp": true,
43
+ "hasDynamicHelp": false,
48
44
  "hiddenAliases": [],
49
45
  "id": "compute:deploy",
50
46
  "pluginAlias": "@heroku/plugin-compute",
51
47
  "pluginName": "@heroku/plugin-compute",
52
48
  "pluginType": "core",
53
49
  "strict": true,
54
- "summary": "Deploy a compute app's source and metadata to an org.",
50
+ "summary": "Show how to deploy a compute app.",
55
51
  "enableJsonFlag": true,
56
- "requiresProject": true,
52
+ "requiresProject": false,
57
53
  "isESM": true,
58
54
  "relativePath": [
59
- "lib",
55
+ "dist",
60
56
  "commands",
61
57
  "compute",
62
58
  "deploy.js"
@@ -110,6 +106,13 @@
110
106
  "multiple": false,
111
107
  "type": "option"
112
108
  },
109
+ "api-version": {
110
+ "description": "Override the api version used for api requests made by this command",
111
+ "name": "api-version",
112
+ "hasDynamicHelp": false,
113
+ "multiple": false,
114
+ "type": "option"
115
+ },
113
116
  "verbose": {
114
117
  "char": "v",
115
118
  "name": "verbose",
@@ -130,7 +133,7 @@
130
133
  "requiresProject": false,
131
134
  "isESM": true,
132
135
  "relativePath": [
133
- "lib",
136
+ "dist",
134
137
  "commands",
135
138
  "compute",
136
139
  "display.js"
@@ -148,10 +151,10 @@
148
151
  "to": "template generate project",
149
152
  "message": "This command will be available as sf template generate project --template compute in version 1.0.0 of plugin-compute."
150
153
  },
151
- "description": "Creates the app directory under force-app/main/default/platformComputeApps/<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.",
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.",
152
155
  "examples": [
153
156
  "Scaffold a Node.js compute app named CreditRatingScorer:\n<%= config.bin %> <%= command.id %> --name CreditRatingScorer",
154
- "Scaffold a Python compute app into a custom directory:\n<%= config.bin %> <%= command.id %> --name ReceiptOcr --language python --output-dir force-app/main/default/platformComputeApps/scorers"
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"
155
158
  ],
156
159
  "flags": {
157
160
  "json": {
@@ -180,10 +183,10 @@
180
183
  },
181
184
  "output-dir": {
182
185
  "char": "d",
183
- "description": "Defaults to force-app/main/default/platformComputeApps. The app itself is created in a\nsubdirectory named after --name.",
186
+ "description": "Defaults to force-app/main/default/computeApps. The app itself is created in a\nsubdirectory named after --name.",
184
187
  "name": "output-dir",
185
188
  "summary": "Directory to create the app in.",
186
- "default": "force-app/main/default/platformComputeApps",
189
+ "default": "force-app/main/default/computeApps",
187
190
  "hasDynamicHelp": false,
188
191
  "multiple": false,
189
192
  "type": "option"
@@ -216,7 +219,7 @@
216
219
  "requiresProject": true,
217
220
  "isESM": true,
218
221
  "relativePath": [
219
- "lib",
222
+ "dist",
220
223
  "commands",
221
224
  "compute",
222
225
  "generate.js"
@@ -259,6 +262,13 @@
259
262
  "hasDynamicHelp": true,
260
263
  "multiple": false,
261
264
  "type": "option"
265
+ },
266
+ "api-version": {
267
+ "description": "Override the api version used for api requests made by this command",
268
+ "name": "api-version",
269
+ "hasDynamicHelp": false,
270
+ "multiple": false,
271
+ "type": "option"
262
272
  }
263
273
  },
264
274
  "hasDynamicHelp": true,
@@ -273,7 +283,7 @@
273
283
  "requiresProject": false,
274
284
  "isESM": true,
275
285
  "relativePath": [
276
- "lib",
286
+ "dist",
277
287
  "commands",
278
288
  "compute",
279
289
  "list.js"
@@ -329,6 +339,13 @@
329
339
  "multiple": false,
330
340
  "type": "option"
331
341
  },
342
+ "api-version": {
343
+ "description": "Override the api version used for api requests made by this command",
344
+ "name": "api-version",
345
+ "hasDynamicHelp": false,
346
+ "multiple": false,
347
+ "type": "option"
348
+ },
332
349
  "process-type": {
333
350
  "name": "process-type",
334
351
  "required": true,
@@ -364,7 +381,7 @@
364
381
  "requiresProject": false,
365
382
  "isESM": true,
366
383
  "relativePath": [
367
- "lib",
384
+ "dist",
368
385
  "commands",
369
386
  "compute",
370
387
  "scale.js"
@@ -433,7 +450,7 @@
433
450
  "type": "option"
434
451
  },
435
452
  "header": {
436
- "description": "Repeat the flag to send more than one header. Header values often carry\ncredentials; they are sent to the endpoint and are never printed to the\nterminal, but are included in --json output.",
453
+ "description": "Repeat the flag to send more than one header. Header values often carry\ncredentials; they are sent to the endpoint and are never printed to the\nterminal or --json output; header keys are preserved with redacted values.",
437
454
  "name": "header",
438
455
  "summary": "Header to send with each export, as key=value.",
439
456
  "hasDynamicHelp": false,
@@ -449,6 +466,13 @@
449
466
  "hasDynamicHelp": true,
450
467
  "multiple": false,
451
468
  "type": "option"
469
+ },
470
+ "api-version": {
471
+ "description": "Override the api version used for api requests made by this command",
472
+ "name": "api-version",
473
+ "hasDynamicHelp": false,
474
+ "multiple": false,
475
+ "type": "option"
452
476
  }
453
477
  },
454
478
  "hasDynamicHelp": true,
@@ -463,7 +487,7 @@
463
487
  "requiresProject": false,
464
488
  "isESM": true,
465
489
  "relativePath": [
466
- "lib",
490
+ "dist",
467
491
  "commands",
468
492
  "compute",
469
493
  "create",
@@ -479,6 +503,88 @@
479
503
  "telemetry-drain:create:compute"
480
504
  ]
481
505
  },
506
+ "compute:delete:telemetry-drain": {
507
+ "aliases": [],
508
+ "args": {
509
+ "id": {
510
+ "name": "id",
511
+ "required": true
512
+ }
513
+ },
514
+ "description": "Removes a single OpenTelemetry drain by its ID, so its compute app stops\nforwarding logs, metrics, and traces to the drain's endpoint. This can't be\nundone; to forward telemetry again, create a new drain. You're asked to\nconfirm first unless you pass --no-prompt. Use sf compute list telemetry-drain\nto find a drain's ID.",
515
+ "examples": [
516
+ "Delete a telemetry drain, confirming first:\n<%= config.bin %> <%= command.id %> 01234567-89ab-cdef-0123-456789abcdef --target-org my-org",
517
+ "Delete a telemetry drain without the confirmation prompt, for scripts:\n<%= config.bin %> <%= command.id %> 01234567-89ab-cdef-0123-456789abcdef --target-org my-org --no-prompt"
518
+ ],
519
+ "flags": {
520
+ "json": {
521
+ "description": "Format output as json.",
522
+ "helpGroup": "GLOBAL",
523
+ "name": "json",
524
+ "allowNo": false,
525
+ "type": "boolean"
526
+ },
527
+ "flags-dir": {
528
+ "helpGroup": "GLOBAL",
529
+ "name": "flags-dir",
530
+ "summary": "Import flag values from a directory.",
531
+ "hasDynamicHelp": false,
532
+ "multiple": false,
533
+ "type": "option"
534
+ },
535
+ "no-prompt": {
536
+ "char": "p",
537
+ "name": "no-prompt",
538
+ "summary": "Don't ask for confirmation before deleting.",
539
+ "allowNo": false,
540
+ "type": "boolean"
541
+ },
542
+ "target-org": {
543
+ "char": "o",
544
+ "name": "target-org",
545
+ "noCacheDefault": true,
546
+ "required": true,
547
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
548
+ "hasDynamicHelp": true,
549
+ "multiple": false,
550
+ "type": "option"
551
+ },
552
+ "api-version": {
553
+ "description": "Override the api version used for api requests made by this command",
554
+ "name": "api-version",
555
+ "hasDynamicHelp": false,
556
+ "multiple": false,
557
+ "type": "option"
558
+ }
559
+ },
560
+ "hasDynamicHelp": true,
561
+ "hiddenAliases": [],
562
+ "id": "compute:delete:telemetry-drain",
563
+ "pluginAlias": "@heroku/plugin-compute",
564
+ "pluginName": "@heroku/plugin-compute",
565
+ "pluginType": "core",
566
+ "strict": true,
567
+ "summary": "Delete a compute telemetry drain.",
568
+ "enableJsonFlag": true,
569
+ "requiresProject": false,
570
+ "isESM": true,
571
+ "relativePath": [
572
+ "dist",
573
+ "commands",
574
+ "compute",
575
+ "delete",
576
+ "telemetry-drain.js"
577
+ ],
578
+ "aliasPermutations": [],
579
+ "permutations": [
580
+ "compute:delete:telemetry-drain",
581
+ "delete:compute:telemetry-drain",
582
+ "delete:telemetry-drain:compute",
583
+ "compute:telemetry-drain:delete",
584
+ "telemetry-drain:compute:delete",
585
+ "telemetry-drain:delete:compute"
586
+ ]
587
+ },
482
588
  "compute:display:telemetry-drain": {
483
589
  "aliases": [],
484
590
  "args": {
@@ -487,7 +593,7 @@
487
593
  "required": true
488
594
  }
489
595
  },
490
- "description": "Shows a single OpenTelemetry drain in full: the compute app it belongs to,\nthe signals it forwards, and its exporter endpoint, transport, and headers.\nUse sf compute list telemetry-drain to find a drain's ID.",
596
+ "description": "Shows a single OpenTelemetry drain in full: the compute app it belongs to,\nthe signals it forwards, and its exporter endpoint, transport, and headers.\nUse sf compute list telemetry-drain to find a drain's ID.\nHeader values are redacted in both human-readable and --json output; header keys are preserved.",
491
597
  "examples": [
492
598
  "Show the detail of a telemetry drain by its ID:\n<%= config.bin %> <%= command.id %> 01234567-89ab-cdef-0123-456789abcdef --target-org my-org"
493
599
  ],
@@ -516,6 +622,13 @@
516
622
  "hasDynamicHelp": true,
517
623
  "multiple": false,
518
624
  "type": "option"
625
+ },
626
+ "api-version": {
627
+ "description": "Override the api version used for api requests made by this command",
628
+ "name": "api-version",
629
+ "hasDynamicHelp": false,
630
+ "multiple": false,
631
+ "type": "option"
519
632
  }
520
633
  },
521
634
  "hasDynamicHelp": true,
@@ -530,7 +643,7 @@
530
643
  "requiresProject": false,
531
644
  "isESM": true,
532
645
  "relativePath": [
533
- "lib",
646
+ "dist",
534
647
  "commands",
535
648
  "compute",
536
649
  "display",
@@ -587,6 +700,13 @@
587
700
  "hasDynamicHelp": true,
588
701
  "multiple": false,
589
702
  "type": "option"
703
+ },
704
+ "api-version": {
705
+ "description": "Override the api version used for api requests made by this command",
706
+ "name": "api-version",
707
+ "hasDynamicHelp": false,
708
+ "multiple": false,
709
+ "type": "option"
590
710
  }
591
711
  },
592
712
  "hasDynamicHelp": true,
@@ -601,7 +721,7 @@
601
721
  "requiresProject": false,
602
722
  "isESM": true,
603
723
  "relativePath": [
604
- "lib",
724
+ "dist",
605
725
  "commands",
606
726
  "compute",
607
727
  "get",
@@ -665,6 +785,13 @@
665
785
  "hasDynamicHelp": true,
666
786
  "multiple": false,
667
787
  "type": "option"
788
+ },
789
+ "api-version": {
790
+ "description": "Override the api version used for api requests made by this command",
791
+ "name": "api-version",
792
+ "hasDynamicHelp": false,
793
+ "multiple": false,
794
+ "type": "option"
668
795
  }
669
796
  },
670
797
  "hasDynamicHelp": true,
@@ -681,7 +808,7 @@
681
808
  "requiresProject": false,
682
809
  "isESM": true,
683
810
  "relativePath": [
684
- "lib",
811
+ "dist",
685
812
  "commands",
686
813
  "compute",
687
814
  "get",
@@ -700,7 +827,7 @@
700
827
  "compute:get:runtime-log": {
701
828
  "aliases": [],
702
829
  "args": {},
703
- "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\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.",
830
+ "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.",
704
831
  "examples": [
705
832
  "Print the most recent log lines:\n<%= config.bin %> <%= command.id %> --name CreditRatingScorer --target-org my-org",
706
833
  "Print the most recent 500 log lines:\n<%= config.bin %> <%= command.id %> --name CreditRatingScorer --num 500 --target-org my-org"
@@ -740,6 +867,13 @@
740
867
  "multiple": false,
741
868
  "type": "option"
742
869
  },
870
+ "api-version": {
871
+ "description": "Override the api version used for api requests made by this command",
872
+ "name": "api-version",
873
+ "hasDynamicHelp": false,
874
+ "multiple": false,
875
+ "type": "option"
876
+ },
743
877
  "num": {
744
878
  "name": "num",
745
879
  "summary": "Number of recent log lines to print.",
@@ -761,7 +895,7 @@
761
895
  "requiresProject": false,
762
896
  "isESM": true,
763
897
  "relativePath": [
764
- "lib",
898
+ "dist",
765
899
  "commands",
766
900
  "compute",
767
901
  "get",
@@ -819,6 +953,13 @@
819
953
  "hasDynamicHelp": true,
820
954
  "multiple": false,
821
955
  "type": "option"
956
+ },
957
+ "api-version": {
958
+ "description": "Override the api version used for api requests made by this command",
959
+ "name": "api-version",
960
+ "hasDynamicHelp": false,
961
+ "multiple": false,
962
+ "type": "option"
822
963
  }
823
964
  },
824
965
  "hasDynamicHelp": true,
@@ -835,7 +976,7 @@
835
976
  "requiresProject": false,
836
977
  "isESM": true,
837
978
  "relativePath": [
838
- "lib",
979
+ "dist",
839
980
  "commands",
840
981
  "compute",
841
982
  "list",
@@ -892,6 +1033,13 @@
892
1033
  "hasDynamicHelp": true,
893
1034
  "multiple": false,
894
1035
  "type": "option"
1036
+ },
1037
+ "api-version": {
1038
+ "description": "Override the api version used for api requests made by this command",
1039
+ "name": "api-version",
1040
+ "hasDynamicHelp": false,
1041
+ "multiple": false,
1042
+ "type": "option"
895
1043
  }
896
1044
  },
897
1045
  "hasDynamicHelp": true,
@@ -906,7 +1054,7 @@
906
1054
  "requiresProject": false,
907
1055
  "isESM": true,
908
1056
  "relativePath": [
909
- "lib",
1057
+ "dist",
910
1058
  "commands",
911
1059
  "compute",
912
1060
  "list",
@@ -970,6 +1118,13 @@
970
1118
  "hasDynamicHelp": true,
971
1119
  "multiple": false,
972
1120
  "type": "option"
1121
+ },
1122
+ "api-version": {
1123
+ "description": "Override the api version used for api requests made by this command",
1124
+ "name": "api-version",
1125
+ "hasDynamicHelp": false,
1126
+ "multiple": false,
1127
+ "type": "option"
973
1128
  }
974
1129
  },
975
1130
  "hasDynamicHelp": true,
@@ -986,7 +1141,7 @@
986
1141
  "requiresProject": false,
987
1142
  "isESM": true,
988
1143
  "relativePath": [
989
- "lib",
1144
+ "dist",
990
1145
  "commands",
991
1146
  "compute",
992
1147
  "set",
@@ -1005,7 +1160,7 @@
1005
1160
  "compute:source:retrieve": {
1006
1161
  "aliases": [],
1007
1162
  "args": {},
1008
- "description": "Creates the compute app's directory under force-app/main/default/platformComputeApps/<name>/\n(or --output-dir), retrieves its <name>.compute-meta.xml through the Metadata\nAPI, then downloads its source code through the Connect API and extracts it\ninto that same directory. This is the inverse of sf compute deploy.",
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.",
1009
1164
  "examples": [
1010
1165
  "Retrieve a compute app's source and metadata from an org:\n<%= config.bin %> <%= command.id %> --name CreditRatingScorer --target-org my-org"
1011
1166
  ],
@@ -1044,12 +1199,19 @@
1044
1199
  "multiple": false,
1045
1200
  "type": "option"
1046
1201
  },
1202
+ "api-version": {
1203
+ "description": "Override the api version used for api requests made by this command",
1204
+ "name": "api-version",
1205
+ "hasDynamicHelp": false,
1206
+ "multiple": false,
1207
+ "type": "option"
1208
+ },
1047
1209
  "output-dir": {
1048
1210
  "char": "d",
1049
- "description": "Defaults to force-app/main/default/platformComputeApps. The app itself is created in a\nsubdirectory named after --name.",
1211
+ "description": "Defaults to force-app/main/default/computeApps. The app itself is created in a\nsubdirectory named after --name.",
1050
1212
  "name": "output-dir",
1051
1213
  "summary": "Directory to create the app in.",
1052
- "default": "force-app/main/default/platformComputeApps",
1214
+ "default": "force-app/main/default/computeApps",
1053
1215
  "hasDynamicHelp": false,
1054
1216
  "multiple": false,
1055
1217
  "type": "option"
@@ -1067,7 +1229,7 @@
1067
1229
  "requiresProject": true,
1068
1230
  "isESM": true,
1069
1231
  "relativePath": [
1070
- "lib",
1232
+ "dist",
1071
1233
  "commands",
1072
1234
  "compute",
1073
1235
  "source",
@@ -1119,6 +1281,13 @@
1119
1281
  "multiple": false,
1120
1282
  "type": "option"
1121
1283
  },
1284
+ "api-version": {
1285
+ "description": "Override the api version used for api requests made by this command",
1286
+ "name": "api-version",
1287
+ "hasDynamicHelp": false,
1288
+ "multiple": false,
1289
+ "type": "option"
1290
+ },
1122
1291
  "num": {
1123
1292
  "name": "num",
1124
1293
  "summary": "Number of recent log lines to print before streaming new output.",
@@ -1140,7 +1309,7 @@
1140
1309
  "requiresProject": false,
1141
1310
  "isESM": true,
1142
1311
  "relativePath": [
1143
- "lib",
1312
+ "dist",
1144
1313
  "commands",
1145
1314
  "compute",
1146
1315
  "tail",
@@ -1204,6 +1373,13 @@
1204
1373
  "hasDynamicHelp": true,
1205
1374
  "multiple": false,
1206
1375
  "type": "option"
1376
+ },
1377
+ "api-version": {
1378
+ "description": "Override the api version used for api requests made by this command",
1379
+ "name": "api-version",
1380
+ "hasDynamicHelp": false,
1381
+ "multiple": false,
1382
+ "type": "option"
1207
1383
  }
1208
1384
  },
1209
1385
  "hasDynamicHelp": true,
@@ -1220,7 +1396,7 @@
1220
1396
  "requiresProject": false,
1221
1397
  "isESM": true,
1222
1398
  "relativePath": [
1223
- "lib",
1399
+ "dist",
1224
1400
  "commands",
1225
1401
  "compute",
1226
1402
  "unset",
@@ -1287,7 +1463,7 @@
1287
1463
  "type": "option"
1288
1464
  },
1289
1465
  "header": {
1290
- "description": "Repeat the flag to send more than one header. A header you pass adds\nor overwrites the one with the same name; the drain's other headers are kept. Header values often carry credentials; they are\nnever printed to the terminal, but are included in --json output.",
1466
+ "description": "Repeat the flag to send more than one header. A header you pass adds\nor overwrites the one with the same name; the drain's other headers are kept. Header values often carry credentials; they are\nnever printed to the terminal or --json output; header keys are preserved with redacted values.",
1291
1467
  "name": "header",
1292
1468
  "summary": "Header to send with each export, as key=value.",
1293
1469
  "hasDynamicHelp": false,
@@ -1303,6 +1479,13 @@
1303
1479
  "hasDynamicHelp": true,
1304
1480
  "multiple": false,
1305
1481
  "type": "option"
1482
+ },
1483
+ "api-version": {
1484
+ "description": "Override the api version used for api requests made by this command",
1485
+ "name": "api-version",
1486
+ "hasDynamicHelp": false,
1487
+ "multiple": false,
1488
+ "type": "option"
1306
1489
  }
1307
1490
  },
1308
1491
  "hasDynamicHelp": true,
@@ -1317,7 +1500,7 @@
1317
1500
  "requiresProject": false,
1318
1501
  "isESM": true,
1319
1502
  "relativePath": [
1320
- "lib",
1503
+ "dist",
1321
1504
  "commands",
1322
1505
  "compute",
1323
1506
  "update",
@@ -1334,5 +1517,5 @@
1334
1517
  ]
1335
1518
  }
1336
1519
  },
1337
- "version": "0.3.1"
1520
+ "version": "0.4.0"
1338
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.3.1",
4
+ "version": "0.4.0",
5
5
  "author": "Heroku",
6
6
  "bugs": "https://github.com/heroku/plugin-compute/issues",
7
7
  "dependencies": {
@@ -18,29 +18,29 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "@heroku-cli/test-utils": "2.0.0-beta.0",
21
- "@oclif/plugin-command-snapshot": "^6.0.5",
22
- "@salesforce/cli-plugins-testkit": "^5.3.75",
23
- "@typescript-eslint/parser": "^8.71.1",
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": "^10.0.20",
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.4.0",
28
+ "eslint": "^10.13.0",
29
29
  "eslint-config-oclif": "^7",
30
- "linkinator": "^6.1.2",
31
- "oclif": "^6",
30
+ "linkinator": "^8.1.0",
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
- "node": ">=22.0.0"
40
+ "node": ">=22.19.0"
41
41
  },
42
42
  "files": [
43
- "/lib",
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": "./lib/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 lib tmp oclif.manifest.json *.tsbuildinfo .eslintcache",
93
- "clean-all": "rimraf lib tmp oclif.manifest.json *.tsbuildinfo .eslintcache node_modules",
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
- "prepack": "npm run build && oclif manifest && npm shrinkwrap",
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.8",
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": "./lib/index.js",
122
+ "exports": "./dist/index.js",
122
123
  "type": "module"
123
124
  }