@forge/cli-shared

9.4.0-next.4-experimental-c5755749.4.0-next.6
out/ui/text.js
~out/ui/text.jsModified
+11−4
Index: package/out/ui/text.js
===================================================================
--- package/out/ui/text.js
+++ package/out/ui/text.js
@@ -130,9 +130,10 @@
         promptOptionalProducts: 'Select other Atlassian apps:',
         overviewSite: '\nEnter your site. For example, your-domain.atlassian.net\n',
         overviewWorkspace: '\nEnter your workspace. For example, bitbucket.org/your-workspace\n',
         promptSite: 'Enter the site URL:',
-        promptWorkspace: 'Enter the workspace URL:'
+        promptWorkspace: 'Enter the workspace URL:',
+        noSiteHint: `${chalk_1.default.green(`You don't have an active demo site. Run`)} ${forge('site', 'provision')} ${chalk_1.default.green(`to create a free demo site for development and testing, then install to it with`)} ${forge('install', '--demo-site')}${chalk_1.default.green('.')}\n`
     },
     upgradeContext: {
         overview: (isCodeUpgrade, version, isLatest) => {
             const upgradeType = isCodeUpgrade ? 'code' : 'code and scopes';
@@ -257,9 +258,9 @@
             startPersonal: 'Creating personal app...',
             success: (appName) => `Created ${appName}`,
             successDetails: (directory, validEnvironmentOptions) => `\nYour app is ready to work on, deploy, and install. We created ${validEnvironmentOptions.length} environments you can deploy to: ${validEnvironmentOptions
                 .map(environment_1.environmentToOption)
-                .join(', ')}.\n\nChange to directory ${chalk_1.default.bold(directory)} to see your app files.\n\n${chalk_1.default.green('Tip: You can add more modules to your app later with')} ${forge('module', 'add')}${chalk_1.default.green('.')} ${chalk_1.default.dim('(module commands are in Preview)')}`
+                .join(', ')}.\n\nChange to directory ${chalk_1.default.bold(directory)} to see your app files.\n`
         },
         intro: (givenDirectory) => `Creating an app in directory ${chalk_1.default.bold(givenDirectory)}.\n`,
         introWithCurrentDirectory: (currentDirectory) => `Creating an app in your current directory:\n\n    ${chalk_1.default.bold(currentDirectory)}\n`,
         optionTemplate: 'specify the template to use',
@@ -370,8 +371,12 @@
     site: {
         cmd: {
             desc: 'manage demo sites'
         },
+        debug: {
+            demoSiteLookup: (siteUrl, status, expiresAt) => `Demo site lookup: siteUrl=${siteUrl ?? 'none'}, status=${status ?? 'none'}, expiresAt=${expiresAt ?? 'none'}`,
+            demoSiteLookupFailed: (message) => `Demo site lookup failed, assuming the user has one so no hint is shown. ${message}`
+        },
         provision: {
             cmd: {
                 desc: 'provision a demo site for development and testing'
             },
@@ -1541,10 +1546,9 @@
             description: 'Enable custom spinner effects',
             setupError: chalk_1.default.yellow('Failed to fetch custom spinner config. Custom spinner effects can be disabled via forge settings')
         },
         proxy: {
-            description: 'Configure proxy for all Forge CLI network requests',
-            invalidUrl: 'Invalid proxy URL specified. Valid proxy URLs must start with http:// or https://'
+            description: 'Configure proxy for all Forge CLI network requests'
         }
     },
     assistant: {
         description: '[⚠️ experimental feature] manage AI assistant settings (Rovo/Gemini)',
@@ -1632,8 +1636,11 @@
     },
     dynamicTable: {
         exiting: 'Exiting...'
     },
+    hints: {
+        loadError: 'Failed to load CLI hints.'
+    },
     manifest: {
         cmd: {
             description: 'manage app manifest'
         },