@forge/cli-shared 8.0.0-next.15 → 8.0.0-next.9

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/out/ui/text.js CHANGED
@@ -143,6 +143,10 @@ exports.Text = {
143
143
  `\nRun ${command('npm', 'uninstall', '-g', cli_details_1.FORGE_CLI_PACKAGE)} followed by ${command('npm', 'install', '-g', cli_details_1.FORGE_CLI_PACKAGE)} to update to the latest version.` +
144
144
  `\n`
145
145
  },
146
+ snapshot: {
147
+ error: (errorCode, errorMessage) => `Error thrown in the snapshot context.\n${errorCode}: ${errorMessage}\nLearn more about the snapshot context at https://go.atlassian.com/forge-snapshot-context.`,
148
+ timeout: `A timeout error occurred in the snapshot context.\nLearn more about the snapshot context at https://go.atlassian.com/forge-snapshot-context.`
149
+ },
146
150
  hostedResources: {
147
151
  error: (errorMessage) => `Failed to deploy hosted resources. ${errorMessage}`,
148
152
  missingEntrypoint: `Missing index.html for custom UI resource. Make sure the file paths for resources in the manifest.yml file are correct and contain an index.html file.`,
@@ -796,7 +800,8 @@ What do you like or don't like about Forge? Share your feedback below or press C
796
800
  title: 'Packaging app files',
797
801
  packageBundledFiles: 'Packaging bundled files',
798
802
  packageFile: (fileName, filePath) => `File added to archive: ${filePath}` + fileName ? `, from ${fileName}` : '',
799
- archiveCreated: (archivePath) => `Archive created: ${archivePath}`
803
+ archiveCreated: (archivePath) => `Archive created: ${archivePath}`,
804
+ packageOptionsNotSupported: 'Custom packaging options are only supported on the Node runtime.'
800
805
  },
801
806
  taskUpload: {
802
807
  title: 'Uploading app',
@@ -967,10 +972,19 @@ ${buildTerminalLink(link)}\n`,
967
972
  preamble: 'Tunnel redirects requests you make to your local machine. This occurs for any Atlassian site where your app is installed in the specific development environment. You will not see requests from other users.',
968
973
  startingTunnel: (environmentKey, envType) => `Tunnelling to: ${exports.Text.env.displayEnvironment(environmentKey, envType)}`,
969
974
  startedServer: (port, isDebug) => `Listening for requests${isDebug ? ' on local port ' + port : ''}...`,
975
+ tunnelType: 'Tunnel provider: Cloudflare',
970
976
  startedTunnel: (tunnelUrl) => `Started tunnel at address: ${tunnelUrl}`,
971
977
  stoppingTunnel: 'Stopping tunnel...',
972
978
  stoppedTunnel: 'Tunnel stopped.',
973
979
  tunnelStatusChange: (status) => `Tunnel connection status changed: ${status}`,
980
+ snapshotting: 'Snapshotting functions...',
981
+ snapshottingNoLogs: 'No log output.',
982
+ startedInspector: (serverAddress) => `Add "debugger;" statement to your app to pause.
983
+ Debugging in Google Chrome:
984
+ - Open Inspect page: chrome://inspect/
985
+ - Select "Open dedicated DevTools for Node"
986
+ - Open inspector URL: devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=${serverAddress}
987
+ `,
974
988
  functionHandlersMustBeDefined: `${chalk_1.default.bold('--debugFunctionHandlers')} flag must be defined in debug mode.`,
975
989
  debugArgumentNameMismatch: (arg) => `Arguments of ${chalk_1.default.bold('--debugFunctionHandlers')}, namely '${arg}', must be function handlers defined in the manifest.`,
976
990
  invalidDebugStartingPortNumber: (port) => `${chalk_1.default.bold('--debugStartingPort')} ${port} must be a valid port number.`,
@@ -987,6 +1001,8 @@ ${buildTerminalLink(link)}\n`,
987
1001
  invoke: (req, port) => `Proxying request to service ${req.method} http://${req.host}:${port}${req.path}`,
988
1002
  error: (cause) => `Failed to proxy request: ${cause}`
989
1003
  },
1004
+ pullDockerProgress: (percentCompleted) => `Checking Docker image... ${percentCompleted}%`,
1005
+ pullDockerSuccess: `Your Docker image is up to date.`,
990
1006
  preBundleTask: (title) => `${log_color_1.LogColor.trace('===')} ${title}`,
991
1007
  lintFailed: chalk_1.default.red(`${chalk_1.default.bold('Error:')} Linting failed due to errors in the app code.`),
992
1008
  bundlingHeader: 'Bundling code...',
@@ -1002,10 +1018,13 @@ ${buildTerminalLink(link)}\n`,
1002
1018
  notFound: (handler) => `Function with handler "${handler}" was not found`
1003
1019
  },
1004
1020
  manifestChangeDetected: `Changes to ${manifest_1.MANIFEST_FILE} have been detected. You will need to deploy your forge app to apply these changes.`,
1021
+ pullDocker: `Checking Docker image... failed`,
1022
+ tunnelPackageMissing: 'To run tunnel without Docker please: npm install -g @forge/sandbox-tunnel',
1005
1023
  dockerNotInstalled: (dockerDownloadLink) => 'Cannot find Docker. The tunnel command requires Docker to run your app locally. ' +
1006
1024
  `Get Docker at the following URL before rerunning the tunnel command:\n\n${dockerDownloadLink}`,
1007
1025
  dockerDaemonNotRunning: (err, isVerbose) => `Docker is not running. The tunnel command requires Docker to run your app locally. Open Docker before rerunning the tunnel command.` +
1008
1026
  `${isVerbose ? '\n\nError details: ' + err : ''}`,
1027
+ dockerPullFailed: 'Cannot pull the tunnel image.',
1009
1028
  serverNotStartedOnPort: (tunnelPort) => `Failed to connect to localhost:${tunnelPort}. Check that your service is running.`,
1010
1029
  cloudflaredError: 'Failed to start cloudflared. Rerunning the command with --verbose may give more details.',
1011
1030
  cloudflaredExit: (code) => code
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/cli-shared",
3
- "version": "8.0.0-next.15",
3
+ "version": "8.0.0-next.9",
4
4
  "description": "Common functionality for Forge CLI",
5
5
  "author": "Atlassian",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",
@@ -12,7 +12,7 @@
12
12
  "generate-graphql-types": "graphql-codegen --config src/graphql/codegen.yml"
13
13
  },
14
14
  "dependencies": {
15
- "@forge/manifest": "10.0.0-next.13",
15
+ "@forge/manifest": "10.0.0-next.8",
16
16
  "@forge/util": "1.4.9",
17
17
  "@forge/i18n": "0.0.6",
18
18
  "@sentry/node": "7.106.0",