@heroku/plugin-compute 0.1.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 (116) hide show
  1. package/LICENSE.txt +207 -0
  2. package/README.md +93 -0
  3. package/lib/commands/compute/config/get.d.ts +19 -0
  4. package/lib/commands/compute/config/get.js +76 -0
  5. package/lib/commands/compute/config/get.js.map +1 -0
  6. package/lib/commands/compute/config/list.d.ts +16 -0
  7. package/lib/commands/compute/config/list.js +57 -0
  8. package/lib/commands/compute/config/list.js.map +1 -0
  9. package/lib/commands/compute/config/set.d.ts +20 -0
  10. package/lib/commands/compute/config/set.js +99 -0
  11. package/lib/commands/compute/config/set.js.map +1 -0
  12. package/lib/commands/compute/config/unset.d.ts +20 -0
  13. package/lib/commands/compute/config/unset.js +93 -0
  14. package/lib/commands/compute/config/unset.js.map +1 -0
  15. package/lib/commands/compute/deploy.d.ts +18 -0
  16. package/lib/commands/compute/deploy.js +95 -0
  17. package/lib/commands/compute/deploy.js.map +1 -0
  18. package/lib/commands/compute/display.d.ts +26 -0
  19. package/lib/commands/compute/display.js +188 -0
  20. package/lib/commands/compute/display.js.map +1 -0
  21. package/lib/commands/compute/generate.d.ts +21 -0
  22. package/lib/commands/compute/generate.js +174 -0
  23. package/lib/commands/compute/generate.js.map +1 -0
  24. package/lib/commands/compute/get/build-log.d.ts +17 -0
  25. package/lib/commands/compute/get/build-log.js +62 -0
  26. package/lib/commands/compute/get/build-log.js.map +1 -0
  27. package/lib/commands/compute/get/runtime-log.d.ts +17 -0
  28. package/lib/commands/compute/get/runtime-log.js +79 -0
  29. package/lib/commands/compute/get/runtime-log.js.map +1 -0
  30. package/lib/commands/compute/list.d.ts +13 -0
  31. package/lib/commands/compute/list.js +55 -0
  32. package/lib/commands/compute/list.js.map +1 -0
  33. package/lib/commands/compute/scale.d.ts +23 -0
  34. package/lib/commands/compute/scale.js +112 -0
  35. package/lib/commands/compute/scale.js.map +1 -0
  36. package/lib/commands/compute/source/retrieve.d.ts +18 -0
  37. package/lib/commands/compute/source/retrieve.js +71 -0
  38. package/lib/commands/compute/source/retrieve.js.map +1 -0
  39. package/lib/commands/compute/tail/runtime-log.d.ts +17 -0
  40. package/lib/commands/compute/tail/runtime-log.js +82 -0
  41. package/lib/commands/compute/tail/runtime-log.js.map +1 -0
  42. package/lib/index.d.ts +2 -0
  43. package/lib/index.js +20 -0
  44. package/lib/index.js.map +1 -0
  45. package/lib/shared/computeApp.d.ts +10 -0
  46. package/lib/shared/computeApp.js +82 -0
  47. package/lib/shared/computeApp.js.map +1 -0
  48. package/lib/shared/computeBundle.d.ts +9 -0
  49. package/lib/shared/computeBundle.js +202 -0
  50. package/lib/shared/computeBundle.js.map +1 -0
  51. package/lib/shared/computeConfig.d.ts +2 -0
  52. package/lib/shared/computeConfig.js +37 -0
  53. package/lib/shared/computeConfig.js.map +1 -0
  54. package/lib/shared/computeConnectApi.d.ts +16 -0
  55. package/lib/shared/computeConnectApi.js +59 -0
  56. package/lib/shared/computeConnectApi.js.map +1 -0
  57. package/lib/shared/computeGenerateSkeletons.d.ts +2 -0
  58. package/lib/shared/computeGenerateSkeletons.js +262 -0
  59. package/lib/shared/computeGenerateSkeletons.js.map +1 -0
  60. package/lib/shared/computeGenerateSource.d.ts +8 -0
  61. package/lib/shared/computeGenerateSource.js +120 -0
  62. package/lib/shared/computeGenerateSource.js.map +1 -0
  63. package/lib/shared/computeLogStream.d.ts +4 -0
  64. package/lib/shared/computeLogStream.js +108 -0
  65. package/lib/shared/computeLogStream.js.map +1 -0
  66. package/lib/shared/computeQuery.d.ts +52 -0
  67. package/lib/shared/computeQuery.js +168 -0
  68. package/lib/shared/computeQuery.js.map +1 -0
  69. package/lib/shared/computeTelemetryDrain.d.ts +11 -0
  70. package/lib/shared/computeTelemetryDrain.js +78 -0
  71. package/lib/shared/computeTelemetryDrain.js.map +1 -0
  72. package/lib/shared/herokuProxyApi.d.ts +62 -0
  73. package/lib/shared/herokuProxyApi.js +243 -0
  74. package/lib/shared/herokuProxyApi.js.map +1 -0
  75. package/lib/shared/metadataApiVersion.d.ts +2 -0
  76. package/lib/shared/metadataApiVersion.js +25 -0
  77. package/lib/shared/metadataApiVersion.js.map +1 -0
  78. package/lib/shared/metadataDeploy.d.ts +5 -0
  79. package/lib/shared/metadataDeploy.js +90 -0
  80. package/lib/shared/metadataDeploy.js.map +1 -0
  81. package/lib/shared/metadataRetrieve.d.ts +2 -0
  82. package/lib/shared/metadataRetrieve.js +68 -0
  83. package/lib/shared/metadataRetrieve.js.map +1 -0
  84. package/lib/shared/plugin-name.d.ts +13 -0
  85. package/lib/shared/plugin-name.js +29 -0
  86. package/lib/shared/plugin-name.js.map +1 -0
  87. package/messages/compute.config.get.md +39 -0
  88. package/messages/compute.config.list.md +24 -0
  89. package/messages/compute.config.set.md +49 -0
  90. package/messages/compute.config.unset.md +39 -0
  91. package/messages/compute.deploy.md +84 -0
  92. package/messages/compute.display.md +46 -0
  93. package/messages/compute.errors.md +182 -0
  94. package/messages/compute.generate.md +74 -0
  95. package/messages/compute.get.build-log.md +36 -0
  96. package/messages/compute.get.runtime-log.md +46 -0
  97. package/messages/compute.list.md +23 -0
  98. package/messages/compute.scale.md +67 -0
  99. package/messages/compute.source.retrieve.md +59 -0
  100. package/messages/compute.tail.runtime-log.md +55 -0
  101. package/npm-shrinkwrap.json +16162 -0
  102. package/oclif.manifest.json +982 -0
  103. package/package.json +117 -0
  104. package/schemas/compute-config-get.json +25 -0
  105. package/schemas/compute-config-list.json +25 -0
  106. package/schemas/compute-config-set.json +28 -0
  107. package/schemas/compute-config-unset.json +28 -0
  108. package/schemas/compute-deploy.json +30 -0
  109. package/schemas/compute-display.json +138 -0
  110. package/schemas/compute-generate.json +40 -0
  111. package/schemas/compute-get-build__log.json +30 -0
  112. package/schemas/compute-get-runtime__log.json +24 -0
  113. package/schemas/compute-list.json +94 -0
  114. package/schemas/compute-scale.json +41 -0
  115. package/schemas/compute-source-retrieve.json +26 -0
  116. package/schemas/compute-tail-runtime__log.json +18 -0
@@ -0,0 +1,174 @@
1
+ /*
2
+ * Copyright 2026, Salesforce, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Messages } from '@salesforce/core';
17
+ import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
18
+ import { mkdir, writeFile } from 'node:fs/promises';
19
+ import { dirname, join } from 'node:path';
20
+ import { pathExists, resolveAppDir, validateName } from '../../shared/computeApp.js';
21
+ import { GENERATED_SKELETONS } from '../../shared/computeGenerateSkeletons.js';
22
+ import { fetchTemplateSource } from '../../shared/computeGenerateSource.js';
23
+ import { PLUGIN_NAME } from '../../shared/plugin-name.js';
24
+ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
25
+ const messages = Messages.loadMessages(PLUGIN_NAME, 'compute.generate');
26
+ export default class Generate extends SfCommand {
27
+ static description = messages.getMessage('description');
28
+ static examples = messages.getMessages('examples');
29
+ // Overridable by tests so generate.test.ts stays offline -- production always uses the real
30
+ // fetchTemplateSource (live HTTPS fetch of the pinned reference-app commit).
31
+ static fetchTemplateSource = fetchTemplateSource;
32
+ static flags = {
33
+ name: Flags.string({
34
+ char: 'n',
35
+ required: true,
36
+ summary: messages.getMessage('flags.name.summary'),
37
+ }),
38
+ 'output-dir': Flags.directory({
39
+ char: 'd',
40
+ summary: messages.getMessage('flags.output-dir.summary'),
41
+ description: messages.getMessage('flags.output-dir.description'),
42
+ default: 'force-app/main/default/platformComputeApps',
43
+ }),
44
+ language: Flags.string({
45
+ char: 'l',
46
+ summary: messages.getMessage('flags.language.summary'),
47
+ description: messages.getMessage('flags.language.description'),
48
+ options: ['node', 'python'],
49
+ default: 'node',
50
+ }),
51
+ };
52
+ static requiresProject = true;
53
+ static summary = messages.getMessage('summary');
54
+ async run() {
55
+ const { flags } = await this.parse(Generate);
56
+ const { name } = flags;
57
+ const language = flags.language;
58
+ validateName(name);
59
+ const appDir = resolveAppDir(flags['output-dir'], name);
60
+ if (await pathExists(appDir)) {
61
+ throw messages.createError('error.appAlreadyExists', [name, appDir]);
62
+ }
63
+ this.log(messages.getMessage('info.generating', [name]));
64
+ const starterFiles = await buildStarterFiles(name, language, Generate.fetchTemplateSource);
65
+ const writtenFiles = await Promise.all(Object.entries(starterFiles).map(async ([relativePath, contents]) => {
66
+ const filePath = join(appDir, relativePath);
67
+ await mkdir(dirname(filePath), { recursive: true });
68
+ await writeFile(filePath, contents);
69
+ return filePath;
70
+ }));
71
+ for (const filePath of writtenFiles) {
72
+ this.log(messages.getMessage('info.created', [filePath]));
73
+ }
74
+ this.log('');
75
+ this.logSuccess(messages.getMessage('info.done', [name]));
76
+ return {
77
+ name, path: appDir, language, files: writtenFiles,
78
+ };
79
+ }
80
+ }
81
+ // Files that belong to the reference-app repo itself rather than to a customer's app. Governance
82
+ // files (CODEOWNERS names teams that don't exist in the customer's org; the license/security/
83
+ // conduct/contributing docs describe Heroku's repo), the Heroku deploy-button manifest
84
+ // (meaningless for a PlatformComputeApp), and the example routers/tests for the endpoints the
85
+ // skeletons replace (left in, they're dead code and their tests fail against the skeleton).
86
+ // Entries ending in "/" match a whole directory. Lint/format config stays: package.json's lint
87
+ // and format scripts still reference it.
88
+ const DENIED_COMMON = ['CODEOWNERS', 'LICENSE.txt', 'SECURITY.md', 'CODE_OF_CONDUCT.md', 'CONTRIBUTING.md'];
89
+ const DENIED_PATHS = {
90
+ node: [...DENIED_COMMON, 'app.json', 'test/routes/'],
91
+ python: [...DENIED_COMMON, 'app/routers/', 'tests/routers/'],
92
+ };
93
+ function isDeniedPath(language, relativePath) {
94
+ return DENIED_PATHS[language].some(entry => entry.endsWith('/') ? relativePath.startsWith(entry) : relativePath === entry);
95
+ }
96
+ // Fetch-only files the generated app can't run without (nothing in GENERATED_SKELETONS covers them).
97
+ const REQUIRED_FETCHED_FILES = {
98
+ node: ['Procfile', 'package.json', 'package-lock.json', 'src/app.js', 'src/plugins/heroku-applink.js'],
99
+ python: ['Procfile', 'requirements.txt'],
100
+ };
101
+ // bin/invoke.* is kept for local testing, but upstream defaults and examples point at the
102
+ // reference apps' example endpoints (/accounts, /unitofwork, ...) which don't exist in a
103
+ // generated app. Repoint them at routes that do: the built-in health route by default, and the
104
+ // skeleton's commented /hello example elsewhere.
105
+ const INVOKE_SCRIPTS = new Set(['bin/invoke.py', 'bin/invoke.sh']);
106
+ const INVOKE_PATH_REPLACEMENTS = [
107
+ ['/api/accounts/', '/health'],
108
+ ['/accounts', '/healthcheck'],
109
+ ['/unitofwork', '/hello'],
110
+ ];
111
+ function retargetInvokeScript(text) {
112
+ let retargeted = text;
113
+ for (const [from, to] of INVOKE_PATH_REPLACEMENTS) {
114
+ retargeted = retargeted.replaceAll(from, () => to);
115
+ }
116
+ return retargeted;
117
+ }
118
+ // Starter source is fetched live from the Heroku AppLink getting-started reference apps
119
+ // (applink-getting-started-nodejs / applink-getting-started-python) at generate time -- see
120
+ // computeGenerateSource.ts for the pinned commit/checksum and the fetch-and-extract mechanics.
121
+ // Everything the fetch returns is written out verbatim (lockfile, package.json/requirements.txt,
122
+ // lint config, local invoke scripts, etc.) except the DENIED_* paths below -- this repo carries
123
+ // zero vendored copies of upstream's code, and generated apps get the exact same lockfile-backed
124
+ // dependency set as the reference app, not a hand-trimmed subset of it. A denylist (rather than
125
+ // an allowlist) means new upstream runtime files flow through without a code change here.
126
+ //
127
+ // Files carrying the reference apps' example business-logic endpoints (Accounts query,
128
+ // UnitOfWork, Data Cloud webhook) aren't separable from that logic by trimming -- it's woven
129
+ // into route/router registration, OpenAPI paths, and README prose, not appended after some
130
+ // boilerplate. Those paths are always overwritten with a hand-authored skeleton (see
131
+ // computeGenerateSkeletons.ts) that keeps the same bootstrap/routing/middleware pattern with a
132
+ // commented worked example, so customers write their own routes/routers into it. project.toml
133
+ // has no upstream equivalent at all (those repos don't ship one) and is generated the same way.
134
+ async function buildStarterFiles(name, language, fetchSource) {
135
+ const metaXml = [
136
+ '<?xml version="1.0" encoding="UTF-8"?>',
137
+ '<PlatformComputeApp xmlns="http://soap.sforce.com/2006/04/metadata">',
138
+ ` <masterLabel>${name}</masterLabel>`,
139
+ ' <description>Compute app generated by sf compute generate.</description>',
140
+ '</PlatformComputeApp>',
141
+ '',
142
+ ].join('\n');
143
+ const files = {
144
+ [`${name}.compute-meta.xml`]: metaXml,
145
+ };
146
+ const fetched = await fetchSource(language);
147
+ // Fails at generate time (rather than later at `npm ci` / deploy) if a pin bump moved or removed
148
+ // a file the app can't run without; the tarball checksum only proves the bytes are the ones
149
+ // pinned, not that the file set still has what we expect.
150
+ for (const requiredPath of REQUIRED_FETCHED_FILES[language]) {
151
+ const present = fetched[requiredPath];
152
+ if (!present) {
153
+ throw messages.createError('error.templateSourceMissingFile', [language, requiredPath]);
154
+ }
155
+ }
156
+ for (const [relativePath, raw] of Object.entries(fetched)) {
157
+ if (isDeniedPath(language, relativePath))
158
+ continue;
159
+ const text = raw.toString('utf8');
160
+ files[relativePath] = INVOKE_SCRIPTS.has(relativePath) ? retargetInvokeScript(text) : text;
161
+ }
162
+ for (const [relativePath, contents] of Object.entries(GENERATED_SKELETONS[language])) {
163
+ files[relativePath] = contents;
164
+ }
165
+ for (const [relativePath, contents] of Object.entries(files)) {
166
+ // Replacer functions (not string literals) so a `$` in the app name is inserted verbatim
167
+ // rather than interpreted as a replacement pattern ($&, $1, $$, ...).
168
+ files[relativePath] = contents
169
+ .replaceAll('__APP_NAME_LOWER__', () => name.toLowerCase())
170
+ .replaceAll('__APP_NAME__', () => name);
171
+ }
172
+ return files;
173
+ }
174
+ //# sourceMappingURL=generate.js.map
@@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AAC;IAED,KAAK,MAAM,CAAC,YAAY,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC;QACrF,KAAK,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC;IACjC,CAAC;IAED,KAAK,MAAM,CAAC,YAAY,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC7D,yFAAyF;QACzF,sEAAsE;QACtE,KAAK,CAAC,YAAY,CAAC,GAAG,QAAQ;aAC3B,UAAU,CAAC,oBAAoB,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;aAC1D,UAAU,CAAC,cAAc,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;IAC5C,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { SfCommand } from '@salesforce/sf-plugins-core';
2
+ export type ComputeGetBuildLogResult = {
3
+ buildStatus?: 'BUILDING' | 'FAILED' | 'PENDING' | 'SUCCEEDED';
4
+ log?: string;
5
+ name: string;
6
+ };
7
+ export default class BuildLog extends SfCommand<ComputeGetBuildLogResult> {
8
+ static readonly description: string;
9
+ static readonly examples: string[];
10
+ static readonly flags: {
11
+ name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
+ 'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
13
+ };
14
+ static readonly requiresProject = false;
15
+ static readonly summary: string;
16
+ run(): Promise<ComputeGetBuildLogResult>;
17
+ }
@@ -0,0 +1,62 @@
1
+ /*
2
+ * Copyright 2026, Salesforce, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Messages } from '@salesforce/core';
17
+ import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
18
+ import { requireAppName, resolveComputeAppNameFromDir, validateName } from '../../../shared/computeApp.js';
19
+ import { fetchBuildOutputStream } from '../../../shared/computeLogStream.js';
20
+ import { queryComputeApp, requireHerokuAppId, toComputeAppSummary } from '../../../shared/computeQuery.js';
21
+ import { fetchLatestBuildOutputStreamUrlViaProxy } from '../../../shared/herokuProxyApi.js';
22
+ import { PLUGIN_NAME } from '../../../shared/plugin-name.js';
23
+ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
24
+ const messages = Messages.loadMessages(PLUGIN_NAME, 'compute.get.build-log');
25
+ export default class BuildLog extends SfCommand {
26
+ static description = messages.getMessage('description');
27
+ static examples = messages.getMessages('examples');
28
+ static flags = {
29
+ name: Flags.string({
30
+ char: 'n',
31
+ env: 'COMPUTE_APP_NAME',
32
+ summary: messages.getMessage('flags.name.summary'),
33
+ }),
34
+ 'target-org': Flags.requiredOrg({ char: 'o' }),
35
+ };
36
+ // Org-mediated lookup by --name -- no local project files are read.
37
+ static requiresProject = false;
38
+ static summary = messages.getMessage('summary');
39
+ async run() {
40
+ const { flags } = await this.parse(BuildLog);
41
+ const name = requireAppName(flags.name ?? (await resolveComputeAppNameFromDir(process.cwd())));
42
+ validateName(name);
43
+ const connection = flags['target-org'].getConnection();
44
+ const record = await queryComputeApp(connection, name);
45
+ const { currentBuild } = toComputeAppSummary(record);
46
+ if (!currentBuild) {
47
+ this.info(messages.getMessage('info.noBuildsFound', [name]));
48
+ return { name };
49
+ }
50
+ const { buildStatus } = currentBuild;
51
+ const appId = requireHerokuAppId(record, name);
52
+ const outputStreamUrl = await fetchLatestBuildOutputStreamUrlViaProxy(connection, { name, appId });
53
+ if (outputStreamUrl === undefined) {
54
+ this.info(messages.getMessage('info.buildOutputNotYetAvailable', [name, buildStatus]));
55
+ return { name, buildStatus };
56
+ }
57
+ const log = await fetchBuildOutputStream(outputStreamUrl);
58
+ this.log(log);
59
+ return { name, buildStatus, log };
60
+ }
61
+ }
62
+ //# sourceMappingURL=build-log.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-log.js","sourceRoot":"","sources":["../../../../src/commands/compute/get/build-log.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAC,KAAK,EAAE,SAAS,EAAC,MAAM,6BAA6B,CAAC;AAE7D,OAAO,EAAC,cAAc,EAAE,4BAA4B,EAAE,YAAY,EAAC,MAAM,+BAA+B,CAAC;AACzG,OAAO,EAAC,sBAAsB,EAAC,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAC,eAAe,EAAE,kBAAkB,EAAE,mBAAmB,EAAC,MAAM,iCAAiC,CAAC;AACzG,OAAO,EAAC,uCAAuC,EAAC,MAAM,mCAAmC,CAAC;AAC1F,OAAO,EAAC,WAAW,EAAC,MAAM,gCAAgC,CAAC;AAE3D,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,WAAW,EAAE,uBAAuB,CAAC,CAAC;AAQ7E,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,SAAmC;IAChE,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,CAAU,KAAK,GAAG;QAC7B,IAAI,EAAE,KAAK,C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EAAE,KAAK,EAAC,CAAC,CAAC;QAEjG,IAAI,eAAe,KAAK,SAAS,EAAE,CAAC;YAClC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,iCAAiC,EAAE,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;YACvF,OAAO,EAAC,IAAI,EAAE,WAAW,EAAC,CAAC;QAC7B,CAAC;QAED,MAAM,GAAG,GAAG,MAAM,sBAAsB,CAAC,eAAe,CAAC,CAAC;QAC1D,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACd,OAAO,EAAC,IAAI,EAAE,WAAW,EAAE,GAAG,EAAC,CAAC;IAClC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { SfCommand } from '@salesforce/sf-plugins-core';
2
+ export type ComputeGetRuntimeLogResult = {
3
+ lines?: string[];
4
+ name: string;
5
+ };
6
+ export default class RuntimeLog extends SfCommand<ComputeGetRuntimeLogResult> {
7
+ static readonly description: string;
8
+ static readonly examples: string[];
9
+ static readonly flags: {
10
+ name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
+ 'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
12
+ num: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
13
+ };
14
+ static readonly requiresProject = false;
15
+ static readonly summary: string;
16
+ run(): Promise<ComputeGetRuntimeLogResult>;
17
+ }
@@ -0,0 +1,79 @@
1
+ /*
2
+ * Copyright 2026, Salesforce, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Messages } from '@salesforce/core';
17
+ import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
18
+ import { requireAppName, resolveComputeAppNameFromDir, validateName } from '../../../shared/computeApp.js';
19
+ import { fetchLogplexOutput } from '../../../shared/computeLogStream.js';
20
+ import { queryComputeApp, requireHerokuAppId, toComputeAppSummary } from '../../../shared/computeQuery.js';
21
+ import { createComputeLogSessionViaProxy } from '../../../shared/herokuProxyApi.js';
22
+ import { PLUGIN_NAME } from '../../../shared/plugin-name.js';
23
+ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
24
+ const messages = Messages.loadMessages(PLUGIN_NAME, 'compute.get.runtime-log');
25
+ // Drops the single trailing empty element split('\n') produces when the text ends in a newline,
26
+ // without dropping genuine blank lines in the middle of the output.
27
+ function splitLines(text) {
28
+ const lines = text.split('\n');
29
+ if (lines.length > 0 && lines.at(-1) === '') {
30
+ lines.pop();
31
+ }
32
+ return lines;
33
+ }
34
+ export default class RuntimeLog extends SfCommand {
35
+ static description = messages.getMessage('description');
36
+ static examples = messages.getMessages('examples');
37
+ static flags = {
38
+ name: Flags.string({
39
+ char: 'n',
40
+ env: 'COMPUTE_APP_NAME',
41
+ summary: messages.getMessage('flags.name.summary'),
42
+ }),
43
+ 'target-org': Flags.requiredOrg({ char: 'o' }),
44
+ num: Flags.integer({
45
+ default: 100,
46
+ summary: messages.getMessage('flags.num.summary'),
47
+ }),
48
+ };
49
+ // Org-mediated lookup by --name -- no local project files are read.
50
+ static requiresProject = false;
51
+ static summary = messages.getMessage('summary');
52
+ async run() {
53
+ const { flags } = await this.parse(RuntimeLog);
54
+ const { num } = flags;
55
+ const name = requireAppName(flags.name ?? (await resolveComputeAppNameFromDir(process.cwd())));
56
+ validateName(name);
57
+ const connection = flags['target-org'].getConnection();
58
+ const record = await queryComputeApp(connection, name);
59
+ const { currentBuild } = toComputeAppSummary(record);
60
+ if (!currentBuild) {
61
+ this.info(messages.getMessage('info.noBuildsFound', [name]));
62
+ return { name };
63
+ }
64
+ const appId = requireHerokuAppId(record, name);
65
+ const session = await createComputeLogSessionViaProxy(connection, {
66
+ name, appId, lines: num, tail: false,
67
+ });
68
+ const output = await fetchLogplexOutput(session.logplexUrl);
69
+ const lines = splitLines(output);
70
+ if (lines.length === 0) {
71
+ this.info(messages.getMessage('info.noLogLines', [name]));
72
+ return { name };
73
+ }
74
+ for (const line of lines)
75
+ this.log(line);
76
+ return { name, lines };
77
+ }
78
+ }
79
+ //# sourceMappingURL=runtime-log.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-log.js","sourceRoot":"","sources":["../../../../src/commands/compute/get/runtime-log.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAC,KAAK,EAAE,SAAS,EAAC,MAAM,6BAA6B,CAAC;AAE7D,OAAO,EAAC,cAAc,EAAE,4BAA4B,EAAE,YAAY,EAAC,MAAM,+BAA+B,CAAC;AACzG,OAAO,EAAC,kBAAkB,EAAC,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAC,eAAe,EAAE,kBAAkB,EAAE,mBAAmB,EAAC,MAAM,iCAAiC,CAAC;AACzG,OAAO,EAAC,+BAA+B,EAAC,MAAM,mCAAmC,CAAC;AAClF,OAAO,EAAC,WAAW,EAAC,MAAM,gCAAgC,CAAC;AAE3D,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,WAAW,EAAE,yBAAyB,CAAC,CAAC;AAO/E,gGAAgG;AAChG,oEAAoE;AACpE,SAAS,UAAU,CAAC,IAAY;IAC9B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;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/computeQuery.js';
3
+ export type ComputeListResult = ComputeAppSummary[];
4
+ export default class List extends SfCommand<ComputeListResult> {
5
+ static readonly description: string;
6
+ static readonly examples: string[];
7
+ static readonly flags: {
8
+ 'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
9
+ };
10
+ static readonly requiresProject = false;
11
+ static readonly summary: string;
12
+ run(): Promise<ComputeListResult>;
13
+ }
@@ -0,0 +1,55 @@
1
+ /*
2
+ * Copyright 2026, Salesforce, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Messages } from '@salesforce/core';
17
+ import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
18
+ import { listComputeApps, toComputeAppSummary } from '../../shared/computeQuery.js';
19
+ import { PLUGIN_NAME } from '../../shared/plugin-name.js';
20
+ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
21
+ const messages = Messages.loadMessages(PLUGIN_NAME, 'compute.list');
22
+ function toRow(app) {
23
+ return {
24
+ name: app.name,
25
+ masterLabel: app.masterLabel,
26
+ status: app.status,
27
+ statusReason: app.statusReason ?? '-',
28
+ };
29
+ }
30
+ export default class List extends SfCommand {
31
+ static description = messages.getMessage('description');
32
+ static examples = messages.getMessages('examples');
33
+ static flags = {
34
+ 'target-org': Flags.requiredOrg({ char: 'o' }),
35
+ };
36
+ // Pure org-side lookup -- no local project files are read.
37
+ static requiresProject = false;
38
+ static summary = messages.getMessage('summary');
39
+ async run() {
40
+ const { flags } = await this.parse(List);
41
+ const connection = flags['target-org'].getConnection();
42
+ const records = await listComputeApps(connection);
43
+ const results = records.map(record => toComputeAppSummary(record));
44
+ if (results.length === 0) {
45
+ this.info(messages.getMessage('info.noAppsFound'));
46
+ return results;
47
+ }
48
+ this.styledHeader('Compute Apps');
49
+ const data = results.map(result => toRow(result));
50
+ const columns = ['name', 'masterLabel', 'status', 'statusReason'];
51
+ this.table({ data, columns });
52
+ return results;
53
+ }
54
+ }
55
+ //# sourceMappingURL=list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/commands/compute/list.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAC,KAAK,EAAE,SAAS,EAAC,MAAM,6BAA6B,CAAC;AAE7D,OAAO,EAAyB,eAAe,EAAE,mBAAmB,EAAC,MAAM,8BAA8B,CAAC;AAC1G,OAAO,EAAC,WAAW,EAAC,MAAM,6BAA6B,CAAC;AAExD,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;AAWpE,SAAS,KAAK,CAAC,GAAsB;IACnC,OAAO;QACL,IAAI,EAAE,GAAG,CAAC,IAAI;QACd,WAAW,EAAE,GAAG,CAAC,WAAW;QAC5B,MAAM,EAAE,GAAG,CAAC,MAAM;QAClB,YAAY,EAAE,GAAG,CAAC,YAAY,IAAI,GAAG;KACtC,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,SAA4B;IACrD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,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 quantity: number;
6
+ type: string;
7
+ }>;
8
+ name: string;
9
+ };
10
+ export default class Scale extends SfCommand<ComputeScaleResult> {
11
+ static readonly description: string;
12
+ static readonly examples: string[];
13
+ static readonly flags: {
14
+ name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
+ 'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
16
+ 'process-type': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
17
+ quantity: import("@oclif/core/interfaces").OptionFlag<number | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
+ size: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
19
+ };
20
+ static readonly requiresProject = false;
21
+ static readonly summary: string;
22
+ run(): Promise<ComputeScaleResult>;
23
+ }
@@ -0,0 +1,112 @@
1
+ /*
2
+ * Copyright 2026, Salesforce, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Messages } from '@salesforce/core';
17
+ import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
18
+ import { requireAppName, resolveComputeAppNameFromDir, validateName } from '../../shared/computeApp.js';
19
+ import { resolveHerokuAppId } from '../../shared/computeQuery.js';
20
+ import { scaleComputeFormationViaProxy } from '../../shared/herokuProxyApi.js';
21
+ import { PLUGIN_NAME } from '../../shared/plugin-name.js';
22
+ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
23
+ const messages = Messages.loadMessages(PLUGIN_NAME, 'compute.scale');
24
+ // Heroku's process-type pattern (salesforce-connect-compute.yaml's Formation.type: ^[-\w]{1,128}$).
25
+ const PROCESS_TYPE_PATTERN = /^[\-\w]{1,128}$/v;
26
+ // Fir dyno-size identifiers (dyno-<vCPUs>c-<RAM>gb). Full union of all 4 Fir dyno families --
27
+ // product hasn't yet decided which families Compute apps may provision on for GA, so this is a
28
+ // deliberately permissive default, not a final allow-list. Narrow once that's decided.
29
+ const VALID_SIZES = [
30
+ // Classic
31
+ 'dyno-1c-0.5gb',
32
+ 'dyno-2c-1gb',
33
+ // General Purpose
34
+ 'dyno-1c-4gb',
35
+ 'dyno-2c-8gb',
36
+ 'dyno-4c-16gb',
37
+ 'dyno-8c-32gb',
38
+ 'dyno-16c-64gb',
39
+ // Compute
40
+ 'dyno-2c-4gb',
41
+ 'dyno-4c-8gb',
42
+ 'dyno-8c-16gb',
43
+ 'dyno-16c-32gb',
44
+ 'dyno-32c-64gb',
45
+ // Memory
46
+ 'dyno-1c-8gb',
47
+ 'dyno-2c-16gb',
48
+ 'dyno-4c-32gb',
49
+ 'dyno-8c-64gb',
50
+ 'dyno-16c-128gb',
51
+ ];
52
+ export default class Scale extends SfCommand {
53
+ static description = messages.getMessage('description');
54
+ static examples = messages.getMessages('examples');
55
+ static flags = {
56
+ name: Flags.string({
57
+ char: 'n',
58
+ env: 'COMPUTE_APP_NAME',
59
+ summary: messages.getMessage('flags.name.summary'),
60
+ }),
61
+ 'target-org': Flags.requiredOrg({ char: 'o' }),
62
+ 'process-type': Flags.string({
63
+ required: true,
64
+ summary: messages.getMessage('flags.process-type.summary'),
65
+ }),
66
+ quantity: Flags.integer({
67
+ min: 0,
68
+ summary: messages.getMessage('flags.quantity.summary'),
69
+ }),
70
+ size: Flags.string({
71
+ summary: messages.getMessage('flags.size.summary'),
72
+ }),
73
+ };
74
+ // Org- or Heroku-mediated lookup by --name -- no local project files are read.
75
+ static requiresProject = false;
76
+ static summary = messages.getMessage('summary');
77
+ async run() {
78
+ const { flags } = await this.parse(Scale);
79
+ const name = requireAppName(flags.name ?? (await resolveComputeAppNameFromDir(process.cwd())));
80
+ validateName(name);
81
+ const processType = flags['process-type'];
82
+ if (!PROCESS_TYPE_PATTERN.test(processType)) {
83
+ throw messages.createError('error.scaleInvalidProcessType', [processType]);
84
+ }
85
+ const { quantity } = flags;
86
+ if (quantity === undefined && flags.size === undefined) {
87
+ throw messages.createError('error.scaleNoChange', [processType]);
88
+ }
89
+ let dynoSize;
90
+ if (flags.size !== undefined) {
91
+ dynoSize = flags.size.toLowerCase();
92
+ if (!VALID_SIZES.includes(dynoSize)) {
93
+ throw messages.createError('error.scaleInvalidSize', [flags.size, VALID_SIZES.join(', ')]);
94
+ }
95
+ }
96
+ const connection = flags['target-org'].getConnection();
97
+ const appId = await resolveHerokuAppId(connection, name);
98
+ this.spinner.start('Scaling dynos');
99
+ try {
100
+ const updated = await scaleComputeFormationViaProxy(connection, {
101
+ name, appId, processType, quantity, dynoSize,
102
+ });
103
+ this.spinner.stop(`done, now running ${updated.type} at ${updated.quantity}:${updated.dynoSize ?? '-'}.`);
104
+ return { name, formation: [updated] };
105
+ }
106
+ catch (error) {
107
+ this.spinner.stop('failed');
108
+ throw error;
109
+ }
110
+ }
111
+ }
112
+ //# sourceMappingURL=scale.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scale.js","sourceRoot":"","sources":["../../../src/commands/compute/scale.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAC,KAAK,EAAE,SAAS,EAAC,MAAM,6BAA6B,CAAC;AAE7D,OAAO,EAAC,cAAc,EAAE,4BAA4B,EAAE,YAAY,EAAC,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAC,kBAAkB,EAAC,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAC,6BAA6B,EAAC,MAAM,gCAAgC,CAAC;A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CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;gBACpC,MAAM,QAAQ,CAAC,WAAW,CAAC,wBAAwB,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAC7F,CAAC;QACH,CAAC;QAED,MAAM,UAAU,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC,aAAa,EAAE,CAAC;QACvD,MAAM,KAAK,GAAG,MAAM,kBAAkB,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;QAEzD,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QACpC,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,MAAM,6BAA6B,CAAC,UAAU,EAAE;gBAC9D,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ;aAC7C,CAAC,CAAC;YACH,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,OAAO,CAAC,IAAI,OAAO,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,QAAQ,IAAI,GAAG,GAAG,CAAC,CAAC;YAC1G,OAAO,EAAC,IAAI,EAAE,SAAS,EAAE,CAAC,OAAO,CAAC,EAAC,CAAC;QACtC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAC5B,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { SfCommand } from '@salesforce/sf-plugins-core';
2
+ export type ComputeSourceRetrieveResult = {
3
+ files: number;
4
+ name: string;
5
+ path: string;
6
+ };
7
+ export default class Retrieve extends SfCommand<ComputeSourceRetrieveResult> {
8
+ static readonly description: string;
9
+ static readonly examples: string[];
10
+ static readonly flags: {
11
+ name: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
12
+ 'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
13
+ 'output-dir': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
14
+ };
15
+ static readonly requiresProject = true;
16
+ static readonly summary: string;
17
+ run(): Promise<ComputeSourceRetrieveResult>;
18
+ }