bdy 1.25.2-stage → 1.25.4-dev
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/distTs/package.json +20 -19
- package/distTs/src/agent/socket/tunnel.js +2 -0
- package/distTs/src/cliCommand.js +28 -0
- package/distTs/src/cliIndex.js +3 -1
- package/distTs/src/command/agent/proxy/status.js +9 -2
- package/distTs/src/command/agent/status.js +22 -6
- package/distTs/src/command/agent/tags/get.js +9 -2
- package/distTs/src/command/agent/target/status.js +9 -2
- package/distTs/src/command/agent/tunnel/http.js +4 -3
- package/distTs/src/command/agent/tunnel/list.js +7 -3
- package/distTs/src/command/agent/tunnel/remove.js +1 -2
- package/distTs/src/command/agent/tunnel/start.js +1 -2
- package/distTs/src/command/agent/tunnel/status.js +14 -3
- package/distTs/src/command/agent/tunnel/tcp.js +4 -3
- package/distTs/src/command/agent/tunnel/tls.js +4 -3
- package/distTs/src/command/agent/tunnel.js +11 -8
- package/distTs/src/command/agent/version.js +7 -2
- package/distTs/src/command/api/info.js +50 -2
- package/distTs/src/command/api/list.js +18 -2
- package/distTs/src/command/artifact/composer/publish.js +4 -2
- package/distTs/src/command/artifact/create.js +9 -2
- package/distTs/src/command/artifact/delete.js +4 -2
- package/distTs/src/command/artifact/docker.js +1 -1
- package/distTs/src/command/artifact/download.js +4 -2
- package/distTs/src/command/artifact/get.js +3 -1
- package/distTs/src/command/artifact/list.js +3 -1
- package/distTs/src/command/artifact/publish.js +24 -24
- package/distTs/src/command/artifact/version/create.js +9 -2
- package/distTs/src/command/artifact/version/delete.js +4 -2
- package/distTs/src/command/artifact/version/get.js +4 -2
- package/distTs/src/command/artifact/version/list.js +4 -2
- package/distTs/src/command/config/get/tunnel.js +8 -3
- package/distTs/src/command/config/get/tunnels.js +8 -3
- package/distTs/src/command/crawl/link.js +3 -2
- package/distTs/src/command/crawl/run.js +3 -2
- package/distTs/src/command/crawl.js +3 -4
- package/distTs/src/command/discover.js +34 -0
- package/distTs/src/command/distro/create.js +9 -2
- package/distTs/src/command/distro/delete.js +4 -2
- package/distTs/src/command/distro/get.js +4 -2
- package/distTs/src/command/distro/list.js +4 -2
- package/distTs/src/command/distro/route/create.js +9 -2
- package/distTs/src/command/distro/route/delete.js +4 -2
- package/distTs/src/command/distro/route/get.js +4 -2
- package/distTs/src/command/distro/route/list.js +4 -2
- package/distTs/src/command/distro/route/update.js +9 -2
- package/distTs/src/command/distro/route.js +9 -6
- package/distTs/src/command/distro/update.js +9 -2
- package/distTs/src/command/distro.js +14 -11
- package/distTs/src/command/domain/search.js +31 -10
- package/distTs/src/command/environment/create.js +6 -2
- package/distTs/src/command/environment/delete.js +1 -2
- package/distTs/src/command/environment/get.js +3 -2
- package/distTs/src/command/environment/list.js +1 -2
- package/distTs/src/command/environment/update.js +6 -2
- package/distTs/src/command/mcp.js +3 -2
- package/distTs/src/command/pipeline/create.js +4 -2
- package/distTs/src/command/pipeline/delete.js +4 -2
- package/distTs/src/command/pipeline/get.js +4 -2
- package/distTs/src/command/pipeline/list.js +4 -2
- package/distTs/src/command/pipeline/run/approve.js +5 -3
- package/distTs/src/command/pipeline/run/cancel.js +5 -3
- package/distTs/src/command/pipeline/run/list.js +4 -2
- package/distTs/src/command/pipeline/run/logs.js +5 -3
- package/distTs/src/command/pipeline/run/retry.js +5 -3
- package/distTs/src/command/pipeline/run/start.js +5 -3
- package/distTs/src/command/pipeline/run/status.js +5 -3
- package/distTs/src/command/pipeline/run.js +11 -9
- package/distTs/src/command/pipeline/update.js +4 -2
- package/distTs/src/command/pipeline/yaml.js +4 -2
- package/distTs/src/command/pipeline.js +17 -15
- package/distTs/src/command/pre.js +2 -1
- package/distTs/src/command/sandbox/app/add.js +10 -3
- package/distTs/src/command/sandbox/app/list.js +1 -2
- package/distTs/src/command/sandbox/app/logs.js +10 -6
- package/distTs/src/command/sandbox/app/remove.js +1 -2
- package/distTs/src/command/sandbox/app/start.js +1 -2
- package/distTs/src/command/sandbox/app/status.js +1 -2
- package/distTs/src/command/sandbox/app/stop.js +1 -2
- package/distTs/src/command/sandbox/app.js +11 -9
- package/distTs/src/command/sandbox/cp.js +3 -2
- package/distTs/src/command/sandbox/create.js +16 -7
- package/distTs/src/command/sandbox/endpoint/add.js +6 -2
- package/distTs/src/command/sandbox/endpoint/delete.js +1 -2
- package/distTs/src/command/sandbox/endpoint/get.js +1 -2
- package/distTs/src/command/sandbox/endpoint/list.js +1 -2
- package/distTs/src/command/sandbox/endpoint.js +8 -5
- package/distTs/src/command/sandbox/exec/command.js +15 -31
- package/distTs/src/command/sandbox/exec/kill.js +1 -2
- package/distTs/src/command/sandbox/exec/list.js +1 -2
- package/distTs/src/command/sandbox/exec/logs.js +4 -30
- package/distTs/src/command/sandbox/exec/status.js +1 -2
- package/distTs/src/command/sandbox/exec.js +9 -6
- package/distTs/src/command/sandbox/finishExec.js +33 -0
- package/distTs/src/command/sandbox/logs.js +14 -1
- package/distTs/src/command/sandbox/snapshot/create.js +10 -3
- package/distTs/src/command/sandbox/snapshot/delete.js +1 -2
- package/distTs/src/command/sandbox/snapshot/get.js +1 -2
- package/distTs/src/command/sandbox/snapshot/list.js +1 -2
- package/distTs/src/command/sandbox/snapshot.js +8 -5
- package/distTs/src/command/sandbox/ssh.js +3 -2
- package/distTs/src/command/target/create.js +8 -2
- package/distTs/src/command/target/delete.js +3 -2
- package/distTs/src/command/target/exec/command.js +1 -2
- package/distTs/src/command/target/exec/kill.js +1 -2
- package/distTs/src/command/target/exec/list.js +1 -2
- package/distTs/src/command/target/exec/logs.js +15 -3
- package/distTs/src/command/target/exec/status.js +1 -2
- package/distTs/src/command/target/exec.js +9 -6
- package/distTs/src/command/target/get.js +3 -2
- package/distTs/src/command/target/list.js +3 -2
- package/distTs/src/command/target/update.js +8 -2
- package/distTs/src/command/tests/capture.js +3 -2
- package/distTs/src/command/tests/unit/link.js +3 -2
- package/distTs/src/command/tests/unit/upload.js +3 -2
- package/distTs/src/command/tests/unit.js +3 -4
- package/distTs/src/command/tests/visual/link.js +3 -2
- package/distTs/src/command/tests/visual/session/close.js +3 -2
- package/distTs/src/command/tests/visual/session/create.js +3 -2
- package/distTs/src/command/tests/visual/session.js +6 -4
- package/distTs/src/command/tests/visual/setup.js +3 -2
- package/distTs/src/command/tests/visual/upload.js +3 -2
- package/distTs/src/command/tests/visual.js +9 -7
- package/distTs/src/command/tests.js +12 -10
- package/distTs/src/command/tunnel/http.js +3 -2
- package/distTs/src/command/tunnel/start.js +3 -2
- package/distTs/src/command/tunnel/tcp.js +1 -2
- package/distTs/src/command/tunnel/tls.js +1 -2
- package/distTs/src/command/tunnel.js +8 -5
- package/distTs/src/command/version.js +2 -1
- package/distTs/src/command/yaml/actions/info.js +1 -2
- package/distTs/src/command/yaml/actions/list.js +1 -2
- package/distTs/src/command/yaml/actions.js +3 -4
- package/distTs/src/command/yaml/pipeline.js +3 -2
- package/distTs/src/command/yaml/validate.js +114 -54
- package/distTs/src/command/yaml.js +8 -6
- package/distTs/src/discovery.js +119 -0
- package/distTs/src/openapi.js +8 -1
- package/distTs/src/output.js +39 -0
- package/distTs/src/texts.js +1570 -736
- package/distTs/src/utils.js +46 -17
- package/package.json +20 -19
package/distTs/src/texts.js
CHANGED
|
@@ -4,24 +4,25 @@ exports.ERR_REGION_IS_NOT_VALID = exports.ERR_SERVE_PATH_NOT_PROVIDED = exports.
|
|
|
4
4
|
exports.ERR_WRONG_STREAM = exports.ERR_WRONG_HANDSHAKE = exports.ERR_FETCH_VERSION = exports.ERR_ARTIFACT_DOWNLOAD_REPLACE = exports.ERR_ARTIFACT_DOWNLOAD_NOT_EMPTY_DIR = exports.ERR_ARTIFACT_DOWNLOAD_IS_FILE = exports.ERR_ARTIFACT_DOWNLOAD_READDIR = exports.ERR_ARTIFACT_DOWNLOAD_MKDIR = exports.ERR_SWW = exports.ERR_NOT_FOUND = exports.ERR_FAILED_TO_CONNECT_TO_AGENT = exports.ERR_TUNNEL_REMOVED = exports.ERR_TUNNELS_DISABLED = exports.ERR_AGENT_LIMIT_REACHED = exports.ERR_TUNNEL_TARGET_INVALID = exports.ERR_WORKSPACE_FLAGGED = exports.ERR_TUNNEL_LIMIT_REACHED = exports.ERR_DOMAIN_RESTRICTED = exports.ERR_AGENT_REMOVED = exports.ERR_FAILED_TO_CONNECT = exports.ERR_TUNNEL_ALREADY_EXISTS = exports.ERR_AGENT_NOT_SUPPORTED = exports.TXT_AGENT_APP_INSTALL_ORPHANED = exports.ERR_AGENT_APP_INSTALL_PRESENT = exports.ERR_AGENT_CONFIG_UNREADABLE = exports.ERR_AGENT_PORT_TAKEN = exports.ERR_AGENT_USER_UNKNOWN = exports.ERR_AGENT_DIR_REPLACED = exports.ERR_AGENT_ADMIN_RIGHTS = exports.ERR_SWW_AGENT_UPDATING = exports.ERR_SWW_AGENT_ENABLING = exports.ERR_AGENT_TAG_INVALID = exports.ERR_AGENT_NOT_FOUND = exports.ERR_AGENT_NOT_RUNNING = exports.ERR_AGENT_IS_NOT_SERVICE = exports.ERR_AGENT_NOT_INSTALLED = exports.ERR_TUNNEL_NOT_FOUND = exports.ERR_WHITELIST_IS_NOT_VALID = exports.ERR_USER_AGENT_IS_NOT_VALID = exports.ERR_BA_IS_NOT_VALID = exports.ERR_BA_LOGIN_NOT_PROVIDED = exports.ERR_BA_PASSWORD_NOT_PROVIDED = exports.ERR_CB_THRESHOLD_IS_NOT_VALID = exports.ERR_CERT_PATH_IS_NOT_VALID = exports.ERR_KEY_PATH_IS_NOT_VALID = exports.ERR_CA_PATH_IS_NOT_VALID = exports.ERR_WRONG_CA = exports.ERR_WRONG_KEY_CERT = exports.ERR_NAME_WITHOUT_ASTERISK = exports.ERR_PORT_IS_NOT_VALID = void 0;
|
|
5
5
|
exports.TXY_AGENT_CONFIRM_DELETE = exports.TXT_AGENT_DISABLED = exports.TXT_AGENT_ALREADY_INSTALLED = exports.TXT_AGENT_UPDATED = exports.TXT_AGENT_INSTALLED = exports.TXT_AGENT_NO_TAGS = exports.TXT_AGENT_TAGS_SET = exports.TXT_AGENT_TUNNELING_DISABLED = exports.TXT_AGENT_TUNNELING_ENABLED = exports.TXT_AGENT_PROXY_DISABLED = exports.TXT_AGENT_PROXY_ENABLED = exports.TXT_AGENT_TARGET_DISABLED = exports.TXT_AGENT_TARGET_ENABLED = exports.TXT_AGENT_RESTARTED = exports.TXT_AGENT_DEBUG_OFF = exports.TXT_AGENT_DEBUG_ON = exports.TXT_AGENT_USER_CHANGED = exports.TXT_AGENT_STARTED = exports.TXT_AGENT_STOPPED = exports.WARN_BROWSER_VERSION = exports.ERR_RESOURCE_DISCOVERY = exports.ERR_NO_SNAPSHOTS_TO_SEND = exports.ERR_INVALID_SNAPSHOT = exports.ERR_TEST_EXECUTION = exports.ERR_INVALID_JSON = exports.ERR_INVALID_DOWNLOAD_RESPONSE = exports.ERR_INVALID_CRAWL_RESPONSE = exports.ERR_INVALID_COMPARE_LINKS_RESPONSE = exports.ERR_INVALID_STORYBOOK_RESPONSE = exports.ERR_INVALID_DEFAULT_SETTINGS_RESPONSE = exports.ERR_INVALID_CLOSE_SESSION_RESPONSE = exports.ERR_INVALID_SNAPSHOTS_RESPONSE = exports.ERR_INVALID_SNAPSHOT_RESPONSE = exports.ERR_MISSING_URLS = exports.ERR_RESOURCE_NOT_FOUND = exports.ERR_MISSING_EXEC_COMMAND = exports.ERR_PARSING_STORIES = exports.ERR_UNSUPPORTED_STORYBOOK = exports.ERR_MISSING_STORYBOOK_INDEX_FILE = exports.ERR_WRONG_STORYBOOK_DIRECTORY = exports.ERR_MISSING_BUILD_ID = exports.ERR_MISSING_UT_TOKEN = exports.ERR_MISSING_CRAWL_TOKEN = exports.ERR_MISSING_VT_TOKEN = exports.ERR_CONFIG_CORRUPTED = exports.ERR_WRONG_TOKEN = exports.ERR_TOKEN_NOT_PROVIDED = exports.ERR_CANT_CREATE_DIR_IN_HOME = exports.ERR_CONNECTION_ERROR = exports.ERR_CONNECTION_TIMEOUT = void 0;
|
|
6
6
|
exports.DESC_COMMAND_AGENT_TARGET_STATUS = exports.DESC_COMMAND_AGENT_STATUS = exports.DESC_COMMAND_AGENT_RESTART = exports.DESC_COMMAND_AGENT_ENABLE = exports.DESC_COMMAND_AGENT_DEBUG = exports.DESC_COMMAND_AGENT_DISABLE = exports.DESC_COMMAND_AGENT_START = exports.DESC_COMMAND_AGENT_INSTALL = exports.DESC_COMMAND_AGENT_UNINSTALL = exports.DESC_COMMAND_AGENT_TUNNEL_REMOVE = exports.DESC_COMMAND_AGENT_TUNNEL_STATUS = exports.DESC_COMMAND_AGENT_TUNNEL_LIST = exports.DESC_COMMAND_CONFIG_SET = exports.DESC_COMMAND_CONFIG_REMOVE = exports.DESC_COMMAND_CONFIG_GET = exports.DESC_COMMAND_CONFIG_ADD = exports.DESC_COMMAND_CONFIG_SET_WHITELIST = exports.DESC_COMMAND_CONFIG_SET_TOKEN = exports.DESC_COMMAND_CONFIG_SET_TIMEOUT = exports.DESC_COMMAND_CONFIG_SET_REGION = exports.DESC_COMMAND_CONFIG_REMOVE_TOKEN = exports.DESC_COMMAND_CONFIG_REMOVE_TUNNEL = exports.DESC_COMMAND_CONFIG_GET_WHITELIST = exports.DESC_COMMAND_CONFIG_GET_TUNNELS = exports.DESC_COMMAND_CONFIG_GET_TUNNEL = exports.DESC_COMMAND_CONFIG_GET_TOKEN = exports.DESC_COMMAND_CONFIG_GET_TIMEOUT = exports.DESC_COMMAND_CONFIG_GET_REGION = exports.DESC_COMMAND_CONFIG_ADD_TLS = exports.DESC_COMMAND_CONFIG_ADD_TCP = exports.DESC_COMMAND_CONFIG_ADD_HTTP = exports.AGENT_FETCH_RETRY = exports.NO_TUNNELS_STARTED = exports.TXT_AGENT_STANDALONE_EXITING = exports.TXT_AGENT_STANDALONE_STARTED = exports.TXT_AGENT_STANDALONE_AGENT_REGISTER_ERROR = exports.TXT_AGENT_STANDALONE_AGENT_REGISTERED = exports.TXT_AGENT_STANDALONE_AGENT_REGISTERING = exports.TXT_AGENT_STANDALONE_AGENT_FETCH_ERROR = exports.TXT_AGENT_STANDALONE_AGENT_FETCHED = exports.TXT_AGENT_STANDALONE_AGENT_FETCHING = exports.TXT_TUNNEL_ADDED = exports.TXT_TUNNEL_REMOVED = exports.TXT_REGION_SAVED = exports.TXT_TIMEOUT_SAVED = exports.TXT_TOKEN_REMOVED = exports.TXT_TOKEN_SAVED = exports.TXT_WHITELIST_SAVED = exports.TXT_TUNNEL_STOPPED = exports.TXT_TUNNEL_STARTED = void 0;
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
7
|
+
exports.DESC_COMMAND_PIPELINE_RUN_RETRY = exports.DESC_COMMAND_PIPELINE_GET = exports.DESC_COMMAND_PIPELINE_UPDATE = exports.DESC_COMMAND_PIPELINE_DELETE = exports.DESC_COMMAND_PIPELINE_CREATE = exports.DESC_COMMAND_PIPELINE_YAML = exports.DESC_COMMAND_PIPELINE_LIST = exports.DESC_COMMAND_PIPELINE_RUN_LIST = exports.DESC_COMMAND_PIPELINE_RUN_APPLY = exports.DESC_COMMAND_PIPELINE_RUN_CANCEL = exports.DESC_COMMAND_PIPELINE_RUN_LOGS = exports.DESC_COMMAND_PIPELINE_RUN_STATUS = exports.DESC_COMMAND_PIPELINE_RUN_START = exports.DESC_COMMAND_PIPELINE_RUN = exports.DESC_COMMAND_ARTIFACT_DOWNLOAD = exports.DESC_COMMAND_ARTIFACT_PUBLISH = exports.DESC_COMMAND_ARTIFACT_VERSION_CREATE = exports.DESC_COMMAND_ARTIFACT = exports.DESC_COMMAND_PIPELINE = exports.ERR_COMMAND_NOT_FOUND = exports.DESC_PROGRAM = exports.DESC_COMMAND_TLS = exports.DESC_COMMAND_TCP = exports.DESC_COMMAND_START = exports.DESC_COMMAND_TUNNEL = exports.DESC_COMMAND_AGENT = exports.DESC_COMMAND_HTTP = exports.DESC_COMMAND_CONFIG = exports.DESC_COMMAND_AGENT_VERSION = exports.DESC_COMMAND_AGENT_USER = exports.DESC_COMMAND_AGENT_UPDATE = exports.OPT_COMMAND_AGENT_TAGS_SET = exports.DESC_COMMAND_AGENT_TAGS_SET = exports.DESC_COMMAND_AGENT_TAGS_GET = exports.DESC_COMMAND_AGENT_TAGS = exports.DESC_COMMAND_AGENT_PROXY = exports.DESC_COMMAND_AGENT_TARGET = exports.DESC_COMMAND_AGENT_TUNNEL_START = exports.DESC_COMMAND_AGENT_TUNNEL_TLS = exports.DESC_COMMAND_AGENT_TUNNEL_TCP = exports.DESC_COMMAND_AGENT_TUNNEL_HTTP = exports.DESC_COMMAND_AGENT_TUNNEL = exports.DESC_COMMAND_AGENT_STOP = exports.DESC_COMMAND_AGENT_PROXY_DISABLE = exports.DESC_COMMAND_AGENT_TARGET_DISABLE = exports.DESC_COMMAND_AGENT_TUNNELING_DISABLE = exports.DESC_COMMAND_AGENT_TUNNELING_ENABLE = exports.DESC_COMMAND_AGENT_PROXY_ENABLE = exports.DESC_COMMAND_AGENT_TARGET_ENABLE = exports.DESC_COMMAND_AGENT_PROXY_STATUS = void 0;
|
|
8
|
+
exports.TXT_ARTIFACT_README_FOUND = exports.ERR_ARTIFACT_COMPOSER_NAME_MISMATCH = exports.ERR_ARTIFACT_COMPOSER_VERSION_MISSING = exports.ERR_ARTIFACT_README_OUTSIDE = exports.ERR_ARTIFACT_COMPOSER_INVALID = exports.ERR_ARTIFACT_COMPOSER_NOT_FOUND = exports.TXT_STORIES_AMOUNT = exports.TXT_OPENING_TUNNEL = exports.TXT_UPDATING_AGENT = exports.TXT_ENABLING_AGENT = exports.TXT_NEW_AGENT_VERSION = exports.TXT_NEW_CLI_DOCKER_VERSION = exports.OPTION_UPLOAD_DRY_RUN = exports.OPTION_UPLOAD_REPORT_FORMAT = exports.OPTION_UPLOAD_REPORT_GLOB = exports.TXT_COMMAND_SUITE_CREATED = exports.TXT_COMMAND_SUITE_NAME = exports.TXT_COMMAND_SUITE_LINK_EXISTING_DESC = exports.TXT_COMMAND_SUITE_LINK_EXISTING = exports.TXT_COMMAND_SUITE_CREATE_NEW_UT_DESC = exports.TXT_COMMAND_SUITE_CREATE_NEW_CRAWL_DESC = exports.TXT_COMMAND_SUITE_CREATE_NEW_VT_DESC = exports.TXT_COMMAND_SUITE_CREATE_NEW = exports.TXT_COMMAND_SUITE_SELECT = exports.ERR_NO_UT_SUITES = exports.ERR_NO_CRAWL_SUITES = exports.ERR_NO_VT_SUITES = exports.TXT_COMMAND_UT_LINK_SUCCESS = exports.TXT_COMMAND_CRAWL_LINK_SUCCESS = exports.TXT_COMMAND_VT_LINK_SUCCESS = exports.TXT_COMMAND_UT_LINK_SELECT = exports.TXT_COMMAND_CRAWL_LINK_SELECT = exports.TXT_COMMAND_VT_LINK_SELECT = exports.OPTION_STORYBOOK_DIRECTORY = exports.OPTION_SUITE_IDENTIFIER = exports.DESC_COMMAND_UT_LINK = exports.DESC_COMMAND_CRAWL_LINK = exports.DESC_COMMAND_VT_LINK = exports.DESC_COMMAND_UT_UPLOAD = exports.DESC_COMMAND_CRAWL_RUN = exports.DESC_COMMAND_CRAWL = exports.DESC_COMMAND_CAPTURE = exports.DESC_COMMAND_VISUAL_UPLOAD = exports.DESC_COMMAND_VISUAL_SETUP = exports.DESC_COMMAND_SESSION_CLOSE = exports.DESC_COMMAND_SESSION_CREATE = exports.DESC_COMMAND_SESSION = exports.DESC_COMMAND_VISUAL = exports.DESC_COMMAND_UNIT = exports.DESC_COMMAND_TESTS = void 0;
|
|
9
|
+
exports.OPTION_PIPELINE_RUN_ID = exports.OPTION_PIPELINE_YAML = exports.TXT_PIPELINE_DELETED = exports.TXT_PIPELINE_DELETE_CONFIRM = exports.TXT_PIPELINE_UPDATED = exports.TXT_PIPELINE_CREATED = exports.OPTION_PIPELINE_NAME = exports.OPTION_PIPELINE_IDENTIFIER = exports.OPTION_PIPELINE_RUN_ARTIFACT = exports.OPTION_PIPELINE_RUN_ENVIRONMENT = exports.OPTION_PIPELINE_RUN_DELAY = exports.OPTION_PIPELINE_RUN_PAYLOAD = exports.ERR_RUN_PAYLOAD_TOO_MANY_FILES = exports.ERR_RUN_PAYLOAD_NOT_UPLOADED = exports.ERR_RUN_PAYLOAD_TOO_LARGE = exports.ERR_RUN_PAYLOAD_NO_ENTRIES = exports.ERR_RUN_VAR_FILE_INVALID = exports.ERR_RUN_VAR_FILE_NOT_FOUND = exports.OPTION_RUN_SINGLE_VAR_FILE = exports.OPTION_RUN_VAR_FILE = exports.OPTION_RUN_VAR = exports.OPTION_PIPELINE_RUN_PRIORITY = exports.OPTION_PIPELINE_RUN_CLEAR_CACHE = exports.OPTION_PIPELINE_RUN_REFRESH = exports.OPTION_PIPELINE_RUN_COMMENT = exports.OPTION_PIPELINE_RUN_PULL_REQUEST = exports.OPTION_PIPELINE_RUN_REVISION = exports.OPTION_PIPELINE_RUN_TAG = exports.OPTION_PIPELINE_RUN_BRANCH = exports.OPTION_REST_API_REGION = exports.OPTION_REST_API_ENDPOINT = exports.OPTION_DEFAULT_REGION = exports.OPTION_REGION = exports.TXT_ARTIFACT_UNZIPPING_COUNT = exports.TXT_ARTIFACT_UNZIPPED = exports.TXT_ARTIFACT_UNZIPPING = exports.TXT_ARTIFACT_DOWNLOADED_ZIP = exports.TXT_ARTIFACT_DOWNLOADING_ZIP = exports.TXT_ARTIFACT_DOWNLOADED = exports.TXT_ARTIFACT_IGNORED_ENTRIES = exports.TXT_ARTIFACT_ENTRIES_FOUND = exports.TXT_ARTIFACT_UPLOADED = exports.TXT_ARTIFACT_UPLOADING = exports.TXT_ARTIFACT_ZIPPED = exports.TXT_ARTIFACT_ZIP_ENTRIES = exports.TXT_ARTIFACT_ONE_ENTRY_FOUND = exports.TXT_ARTIFACT_NO_ENTRIES_FOUND = exports.TXT_ARTIFACT_SCANNING_DIR = exports.TXT_ARTIFACT_README_NOT_FOUND = exports.TXT_ARTIFACT_README_TOO_LARGE = void 0;
|
|
10
|
+
exports.OPTION_HTTP_AUTH_BUDDY = exports.OPTION_HTTP_AUTH = exports.OPTION_HTTP_HOST = exports.OPTION_CONFIRM_DOMAIN_BUY = exports.OPTION_CONFIRM_FORCE = exports.OPTION_FORCE = exports.OPTION_TOKEN = exports.OPTION_TIMEOUT = exports.OPTION_FOLLOW = exports.OPTION_SERVE_SANDBOX = exports.OPTION_SERVE = exports.OPTION_HEADER_USER_AGENT = exports.OPTION_RESPONSE_HEADER = exports.OPTION_HEADER = exports.OPTION_WHITELIST = exports.OPTION_REST_API_PER_PAGE = exports.OPTION_REST_API_PAGE = exports.OPTION_REST_API_PROJECT = exports.OPTION_REST_API_WORKSPACE = exports.OPTION_FORMAT_JSONL = exports.OPTION_FORMAT = exports.HELP_COMMAND_DISCOVER = exports.DISCOVERY_TIPS = exports.EXAMPLE_DISCOVER = exports.TXT_DISCOVER_COMMAND_HINT = exports.ERR_DISCOVER_UNKNOWN_COMMAND = exports.TXT_DISCOVER_USAGE_HINT = exports.OPTION_DISCOVER_FULL = exports.OPTION_DISCOVER_COMMAND = exports.DESC_COMMAND_DISCOVER = exports.TXT_COMMAND_EXAMPLES = exports.DESC_COMMAND_UPDATE = exports.OPTION_VERSION = exports.OPTION_PIPELINE_RUN_NO_FOLLOW = exports.OPTION_PIPELINE_RUN_NO_WAIT = exports.OPTION_PIPELINE_RUN_ACTION = exports.OPTION_REST_API_TOKEN = exports.OPTION_ARTIFACT_DOWNLOAD_REPLACE = exports.OPTION_ARTIFACT_DOWNLOAD_MERGE = exports.OPTION_ARTIFACT_IGNORE = exports.OPTION_ARTIFACT_PUBLISH_OVERWRITE_VERSION = exports.OPTION_ARTIFACT_VERSION_AGENT_NOTE = exports.OPTION_ARTIFACT_VERSION_NOTE = exports.OPTION_ARTIFACT_VERSION_FROM = exports.OPTION_ARTIFACT_PUBLISH_CREATE = exports.OPTION_ARTIFACT_ID = exports.OPTION_ARTIFACT_DOWNLOAD_PATH = exports.OPTION_ARTIFACT_PUBLISH_PATH = exports.OPTION_ARTIFACT_COMPOSE_PUBLISH_PATH = exports.OPTION_PIPELINE_RUN_ACTION_ID = void 0;
|
|
11
|
+
exports.OPTION_CRAWL_DEVICES = exports.OPTION_CRAWL_BROWSERS = exports.OPTION_CRAWL_COLOR_SCHEME = exports.OPTION_CRAWL_XPATH_SELECTOR = exports.OPTION_CRAWL_CSS_SELECTOR = exports.OPTION_CRAWL_FULL_PAGE = exports.OPTION_CRAWL_QUALITY = exports.OPTION_CRAWL_OUTPUT_TYPE = exports.OPTION_CRAWL_FOLLOW = exports.OPTION_CRAWL_URL = exports.OPTION_COMPARE_WAIT_FOR = exports.OPTION_COMPARE_DELAY = exports.OPTION_COMPARE_HEADER = exports.OPTION_COMPARE_COOKIE = exports.OPTION_COMPARE_IGNORE = exports.OPTION_COMPARE_IGNORE_URLS = exports.OPTION_COMPARE_DRY_RUN = exports.OPTION_COMPARE_URLS_FILE = exports.OPTION_COMPARE_SITEMAP = exports.OPTION_COMPARE_URLS = exports.OPTION_COMPARE_RESPECT_ROBOTS = exports.OPTION_COMPARE_FOLLOW = exports.OPTION_EXEC_PARALLEL = exports.OPTION_EXEC_ONE_BY_ONE = exports.OPTION_EXEC_SKIP_DISCOVERY = exports.OPTION_EXEC_COMMAND = exports.OPTION_AGENT_DEBUG = exports.OPTION_AGENT_PORT = exports.OPTION_AGENT_TAG = exports.OPTION_AGENT_TUNNELING = exports.OPTION_AGENT_PROXY = exports.OPTION_AGENT_TARGET = exports.OPTION_PASS = exports.OPTION_APP = exports.OPTION_USER = exports.OPTION_AGENT_TOKEN = exports.OPTION_AGENT_START = exports.OPTION_AGENT_ID = exports.OPTION_ID = exports.OPTION_NAME = exports.OPTION_TARGET = exports.OPTION_TLS_TERMINATE = exports.OPTION_TLS_CA = exports.OPTION_TLS_CERT = exports.OPTION_TLS_KEY = exports.OPTION_HTTP_CIRCUIT_BREAKER = exports.OPTION_HTTP_COMPRESSION = exports.OPTION_HTTP_2 = exports.OPTION_HTTP_VERIFY = exports.OPTION_HTTP_LOG = void 0;
|
|
12
|
+
exports.LOG_HTTP2_REQUEST = exports.LOG_HTTP2_CONNECTION = exports.LOG_HTTP1_REQUEST = exports.LOG_HTTP1_CONNECTION = exports.LOG_ERROR = exports.LOG_STOPPING_TUNNEL = exports.LOG_STARTING_TUNNEL = exports.LOG_ENABLING_AGENT_TUNNELING = exports.LOG_ENABLING_AGENT_PROXY = exports.LOG_ENABLING_AGENT_TARGET = exports.LOG_DISABLING_AGENT_TUNNELING = exports.LOG_DISABLING_AGENT_PROXY = exports.LOG_DISABLING_AGENT_TARGET = exports.LOG_REMOVING_TUNNEL = exports.LOG_TUNNEL_REGISTERED = exports.LOG_ERROR_WHILE_REFRESHING_AGENT = exports.LOG_REGISTERING_TUNNEL = exports.LOG_GETTING_AGENT = exports.LOG_UNREGISTERING_AGENT = exports.LOG_REGION_DETECTED = exports.LOG_AGENT_REGISTERED = exports.LOG_SOCKET_DISCONNECTED = exports.LOG_SOCKET_CONNECTED = exports.ERR_AGENT_WRAPPER_SIGNATURE = exports.ERR_AGENT_WRAPPER_MISSING = exports.LOG_AGENT_SERVICE_LEGACY_WRAPPER = exports.LOG_AGENT_WRAPPER_SIGNATURE_UNKNOWN = exports.LOG_AGENT_WRAPPER_SIGNED_BY = exports.LOG_AGENT_WRAPPER_VERIFYING = exports.LOG_AGENT_ENABLED = exports.LOG_AGENT_STARTING_SYSTEM = exports.LOG_AGENT_STOPPING_SYSTEM = exports.LOG_AGENT_ENABLING_SYSTEM = exports.LOG_AGENT_SYSTEM_SERVICE_CONFIG = exports.LOG_AGENT_EXTRACTING_ARCHIVE = exports.LOG_AGENT_DOWNLOADING_ARCHIVE = exports.LOG_AGENT_SYSTEM_DIR = exports.LOG_ERROR_SAVING_AGENT_LOCAL_CONFIG = exports.LOG_ERROR_REMOVING_AGENT_STANDALONE_LOCK_FILE = exports.LOG_ERROR_SAVING_AGENT_STANDALONE_CONFIG = exports.LOG_ERROR_SAVING_AGENT_SYSTEM_CONFIG = exports.LOG_SAVING_AGENT_LOCAL_CONFIG = exports.LOG_REMOVING_AGENT_PROC_ID = exports.LOG_SAVING_AGENT_PROC_ID = exports.LOG_SAVING_AGENT_SYSTEM_CONFIG = exports.LOG_REGISTERING_AGENT = exports.OPTION_CRAWL_OUTPUT_TYPES = exports.OPTION_CRAWL_OUTPUT_DIR = exports.OPTION_CRAWL_DELAY = exports.OPTION_CRAWL_LOCAL_STORAGE = void 0;
|
|
13
|
+
exports.LOG_PROCESSING_SNAPSHOTS = exports.LOG_RUNNING_EXEC_COMMAND = exports.LOG_TUNNEL_SSH_STREAM = exports.LOG_TUNNEL_TLS_AGENT_STREAM = exports.LOG_TUNNEL_TLS_REGION_STREAM = exports.LOG_TUNNEL_TLS_TARGET_STREAM = exports.LOG_TUNNEL_HTTP2_STREAM = exports.LOG_TUNNEL_HTTP1_STREAM = exports.LOG_TUNNEL_TCP_STREAM = exports.LOG_TUNNEL_HTTP_WRONG_USER_AGENTS = exports.LOG_TUNNEL_HTTP_CIRCUIT_BREAKER_OPEN = exports.LOG_TUNNEL_HTTP_MAX_INFLIGHT = exports.LOG_TUNNEL_HTTP_RATE_LIMIT = exports.LOG_TUNNEL_HTTP_WRON_AUTH = exports.LOG_TUNNEL_IDENTIFIED = exports.LOG_TUNNEL_DISCONNECTED = exports.LOG_TUNNEL_FAILED = exports.LOG_TUNNEL_CONNECTED = exports.LOG_AGENT_STARTED = exports.LOG_AGENT_DEBUG_NOT_PERSISTED = exports.LOG_AGENT_DEBUG_REMOTE = exports.LOG_AGENT_UPDATE_ROLLBACK_MISSING = exports.LOG_AGENT_UPDATE_NOT_AN_AGENT = exports.LOG_AGENT_UPDATE_ROLLBACK_ACKED = exports.LOG_AGENT_UPDATE_ROLLED_BACK = exports.LOG_AGENT_UPDATE_ATTEMPT = exports.LOG_AGENT_UPDATE_COMMITTED = exports.LOG_AGENT_UPDATE_BINARY_INVALID = exports.ERR_AGENT_UPDATE_IN_PROGRESS = exports.LOG_AGENT_UPDATE_UNINSTALLED = exports.LOG_AGENT_UPDATE_VERSION_MISMATCH = exports.LOG_AGENT_UPDATE_FAILED = exports.LOG_AGENT_UPDATE_SWAPPED = exports.LOG_AGENT_UPDATE_NOT_NEEDED = exports.LOG_AGENT_UPDATE_NO_ADMIN = exports.LOG_AGENT_UPDATE_STANDALONE = exports.LOG_AGENT_UPDATE_REQUESTED = exports.LOG_AGENT_RIGHTS_SKIPPED = exports.LOG_AGENT_RIGHTS_DIR_SKIPPED = exports.LOG_AGENT_SERVER_STARTED = exports.LOG_ERROR_STARTING_AGENT_SERVER = exports.LOG_SSH_CONNECTION = exports.LOG_LATE_TARGET_ERROR = exports.LOG_LATE_CHANNEL_ERROR = exports.LOG_HANDSHAKE_TIMEOUT = exports.LOG_WRONG_STREAM = exports.LOG_DETECTED_STREAM = exports.LOG_HTTP2_SESSION_TIMEOUT = exports.LOG_HTTP2_SESSION_SHED_TAIL = exports.LOG_HTTP2_SESSION_SHED = void 0;
|
|
14
|
+
exports.ERR_SANDBOX_APP_NOT_FOUND = exports.ERR_SANDBOX_NOT_FOUND = exports.OPTION_SANDBOX_SSH_PRINT = exports.OPTION_SANDBOX_SSH_IDENTITY = exports.OPTION_SANDBOX_SSH_ARGS = exports.OPTION_SANDBOX_RUNTIME = exports.OPTION_SANDBOX_TIMEOUT = exports.OPTION_SANDBOX_FETCH = exports.OPTION_SANDBOX_APP_DIR = exports.OPTION_SANDBOX_APP_COMMAND = exports.OPTION_SANDBOX_YAML = exports.OPTION_SANDBOX_TAGS = exports.OPTION_SANDBOX_INSTALL_SCRIPT = exports.OPTION_SANDBOX_INSTALL_COMMANDS = exports.OPTION_SANDBOX_RESOURCES = exports.OPTION_SANDBOX_OS = exports.OPTION_SANDBOX_AGENT_NOTE = exports.OPTION_SANDBOX_NOTE = exports.OPTION_SANDBOX_NAME = exports.OPTION_SANDBOX_IDENTIFIER = exports.DESC_COMMAND_SANDBOX_SSH = exports.DESC_COMMAND_SANDBOX_APP = exports.DESC_COMMAND_SANDBOX_EXEC_COMMAND = exports.DESC_COMMAND_SANDBOX_EXEC = exports.DESC_COMMAND_SANDBOX_STATUS = exports.DESC_COMMAND_SANDBOX_LOGS = exports.DESC_COMMAND_SANDBOX_RESTART = exports.DESC_COMMAND_SANDBOX_STOP = exports.DESC_COMMAND_SANDBOX_START = exports.DESC_COMMAND_SANDBOX_DESTROY = exports.DESC_COMMAND_SANDBOX_GET = exports.DESC_COMMAND_SANDBOX_LIST = exports.DESC_COMMAND_SANDBOX_UPDATE = exports.DESC_COMMAND_SANDBOX_GET_YAML = exports.DESC_COMMAND_SANDBOX_CREATE = exports.DESC_COMMAND_SANDBOX = exports.DEBUG_WAIT_FOR_IDLE_TIMEOUT = exports.DEBUG_WAIT_FOR_IDLE = exports.DEBUG_RESOURCE_DISCOVERY_TIMEOUT = exports.DEBUG_AUTO_WIDTH = exports.DEBUG_AUTO_SCROLL = exports.DEBUG_RESOURCE_CRAWLING_URL = exports.DEBUG_SNAPSHOT_PROCESSING = exports.DEBUG_SNAPSHOTS_PROCESSING = exports.DEBUG_EXEC_COMMAND = exports.DEBUG_EXEC_TEST_COMMAND = exports.LOG_INSTALLED_BROWSER = exports.LOG_SESSION_LINK = exports.LOG_SENDING_DATA = exports.LOG_SENDING_REQUEST = void 0;
|
|
15
|
+
exports.DESC_COMMAND_SANDBOX_SNAPSHOT_LIST = exports.DESC_COMMAND_SANDBOX_SNAPSHOT = exports.TXT_SANDBOX_COMMAND_KILLED = exports.OPTION_SANDBOX_COMMAND_KILL_CONFIRM = exports.OPTION_SANDBOX_LOGS_LIMIT = exports.OPTION_SANDBOX_APP_ID = exports.OPTION_SANDBOX_COMMAND_ID = exports.DESC_COMMAND_SANDBOX_EXEC_KILL = exports.DESC_COMMAND_SANDBOX_EXEC_LOGS = exports.DESC_COMMAND_SANDBOX_APP_START = exports.DESC_COMMAND_SANDBOX_APP_STOP = exports.DESC_COMMAND_SANDBOX_APP_STATUS = exports.DESC_COMMAND_SANDBOX_APP_LOGS = exports.DESC_COMMAND_SANDBOX_EXEC_STATUS = exports.DESC_COMMAND_SANDBOX_EXEC_LIST = exports.DESC_COMMAND_SANDBOX_APP_REMOVE = exports.DESC_COMMAND_SANDBOX_APP_ADD = exports.DESC_COMMAND_SANDBOX_APP_LIST = exports.TXT_SANDBOX_WAITING_START = exports.TXT_SANDBOX_WAITING_STOP = exports.TXT_SANDBOX_WAITING_APPS = exports.TXT_SANDBOX_WAITING_SETUP = exports.TXT_SANDBOX_WAITING_RUNNING = exports.TXT_SANDBOX_STOPPED = exports.TXT_SANDBOX_STARTED = exports.TXT_SANDBOX_DESTROYED = exports.TXT_SANDBOX_DESTROY_CONFIRM = exports.TXT_SANDBOX_UPDATED = exports.TXT_SANDBOX_CREATED = exports.TXT_SANDBOX_CREATING = exports.TXT_SANDBOX_APP_STARTED = exports.TXT_SANDBOX_APP_STOPPED = exports.OPTION_SANDBOX_WAIT = exports.OPTION_SANDBOX_WAIT_APPS = exports.OPTION_SANDBOX_WAIT_CONFIGURED = exports.OPTION_SANDBOX_WAIT_RUNNING = exports.ERR_SANDBOX_STOP_FAILED = exports.ERR_SANDBOX_SSH_MISSING = exports.ERR_SANDBOX_SSH_NO_ACCESS = exports.ERR_SANDBOX_NOT_RUNNING = exports.ERR_SANDBOX_NO_COMMANDS = exports.ERR_SANDBOX_RUNNING_FAILED = exports.ERR_SANDBOX_STOP_TIMEOUT = exports.ERR_SANDBOX_SNAPSHOT_TIMEOUT = exports.ERR_SANDBOX_RUNNING_TIMEOUT = exports.ERR_SANDBOX_APPS_TIMEOUT = exports.ERR_SANDBOX_SETUP_TIMEOUT = exports.ERR_SANDBOX_APP_FAILED = exports.ERR_SANDBOX_SETUP_FAILED = exports.ERR_SANDBOX_INVALID_RESOURCES = void 0;
|
|
16
|
+
exports.ERR_SANDBOX_CP_NOT_EMPTY_DIR = exports.ERR_SANDBOX_CP_READDIR = exports.ERR_SANDBOX_CP_DEST_NOT_FOLDER = exports.ERR_SANDBOX_CP_SOURCE_NOT_FOUND = exports.TXT_SANDBOX_CP_DONE = exports.TXT_SANDBOX_CP_PROGRESS = exports.TXT_SANDBOX_UNZIPPING_COUNT = exports.TXT_SANDBOX_UNZIP_DONE = exports.TXT_SANDBOX_UNZIP = exports.TXT_SANDBOX_CP_DOWNLOAD_DONE = exports.TXT_SANDBOX_CP_DOWNLOAD = exports.OPTION_SANDBOX_CP_IGNORE = exports.OPTION_SANDBOX_CP_USER = exports.OPTION_SANDBOX_CP_DOWNLOAD_REPLACE = exports.OPTION_SANDBOX_CP_DOWNLOAD_MERGE = exports.OPTION_SANDBOX_CP_DEST = exports.OPTION_SANDBOX_CP_SOURCE = exports.DESC_COMMAND_SANDBOX_CP = exports.ERR_SANDBOX_APPS_NOT_FOUND = exports.ERR_SANDBOX_ENDPOINTS_NOT_FOUND = exports.ERR_SANDBOX_ENDPOINT_NOT_FOUND = exports.ERR_SANDBOX_ENDPOINT_EXISTS = exports.TXT_SANDBOX_ENDPOINT_DELETED = exports.TXT_SANDBOX_ENDPOINT_DELETE_CONFIRM = exports.TXT_SANDBOX_ENDPOINT_ADDED = exports.TXT_SANDBOX_APP_REMOVED = exports.TXT_SANDBOX_APP_ADDED = exports.OPTION_SANDBOX_ENDPOINT_TYPE = exports.OPTION_SANDBOX_ENDPOINT_PORT = exports.OPTION_SANDBOX_ENDPOINT_NAME_ARG = exports.OPTION_SANDBOX_ENDPOINT_NAME = exports.DESC_COMMAND_SANDBOX_ENDPOINT_DELETE = exports.DESC_COMMAND_SANDBOX_ENDPOINT_ADD = exports.DESC_COMMAND_SANDBOX_ENDPOINT_GET = exports.DESC_COMMAND_SANDBOX_ENDPOINT_LIST = exports.DESC_COMMAND_SANDBOX_ENDPOINT = exports.ERR_SANDBOX_SNAPSHOT_OS_CONFLICT = exports.ERR_SANDBOX_SNAPSHOTS_NOT_FOUND = exports.ERR_SANDBOX_SNAPSHOT_NOT_FOUND = exports.ERR_SANDBOX_SNAPSHOT_FAILED = exports.TXT_SANDBOX_SNAPSHOT_WAITING = exports.TXT_SANDBOX_SNAPSHOT_DELETE_CONFIRM = exports.TXT_SANDBOX_SNAPSHOT_DELETED = exports.TXT_SANDBOX_SNAPSHOT_CREATED = exports.OPTION_SANDBOX_FROM_SNAPSHOT = exports.OPTION_SANDBOX_SNAPSHOT_NAME_ARG = exports.OPTION_SANDBOX_SNAPSHOT_NAME = exports.DESC_COMMAND_SANDBOX_SNAPSHOT_DELETE = exports.DESC_COMMAND_SANDBOX_SNAPSHOT_GET = exports.DESC_COMMAND_SANDBOX_SNAPSHOT_CREATE = void 0;
|
|
17
|
+
exports.TXT_TARGET_DELETED = exports.TXT_TARGET_DELETE_CONFIRM = exports.TXT_TARGET_UPDATED = exports.TXT_TARGET_CREATED = exports.TXT_TARGET_NOT_FOUND = exports.ERR_TARGET_SCOPE_NO_ENVIRONMENT = exports.ERR_TARGET_SCOPE_NO_PIPELINE = exports.ERR_TARGET_PIPELINE_ENV_CONFLICT = exports.ERR_TARGET_PIPELINE_REQUIRES_PROJECT = exports.ERR_TARGET_SCOPE = exports.ERR_TARGET_ENVIRONMENT_NOT_FOUND = exports.ERR_TARGET_EXEC_FILE_NOT_FOUND = exports.ERR_TARGET_EXEC_COMMAND_CONFLICT = exports.ERR_TARGET_EXEC_NO_COMMAND = exports.ERR_TARGET_NO_EXECS = exports.ERR_TARGET_NOT_FOUND = exports.OPTION_TARGET_EXEC_FILE = exports.OPTION_TARGET_EXEC_ASYNC = exports.OPTION_TARGET_EXEC_COMMAND = exports.OPTION_TARGET_EXEC_LOG_LIMIT = exports.OPTION_TARGET_EXEC_LOG_OFFSET = exports.OPTION_TARGET_EXEC_LIMIT = exports.OPTION_TARGET_EXEC_ID = exports.OPTION_TARGET_YAML = exports.OPT_COMMAND_TARGET_SCOPE = exports.OPTION_TARGET_ENVIRONMENT = exports.OPTION_TARGET_PIPELINE = exports.OPTION_TARGET_IDENTIFIER = exports.DESC_COMMAND_TARGET_EXEC_LOGS = exports.DESC_COMMAND_TARGET_EXEC_LIST = exports.DESC_COMMAND_TARGET_EXEC_KILL = exports.DESC_COMMAND_TARGET_EXEC_STATUS = exports.DESC_COMMAND_TARGET_EXEC_COMMAND = exports.DESC_COMMAND_TARGET_EXEC = exports.DESC_COMMAND_TARGET_DELETE = exports.DESC_COMMAND_TARGET_UPDATE = exports.DESC_COMMAND_TARGET_CREATE = exports.DESC_COMMAND_TARGET_GET = exports.DESC_COMMAND_TARGET_LIST = exports.DESC_COMMAND_TARGET = exports.TXT_SANDBOX_EXEC_FAILED = exports.TXT_SANDBOX_EXEC_INPROGRESS = exports.TXT_SANDBOX_EXEC_SUCCESS = exports.TXT_SANDBOX_EXEC_BACKGROUND = exports.TXT_SANDBOX_EXEC_ID = exports.ERR_SANDBOX_CP_INVALID_SOURCE = exports.ERR_SANDBOX_CP_INVALID_DEST = exports.ERR_SANDBOX_CP_REPLACE = exports.ERR_SANDBOX_CP_MKDIR = exports.ERR_SANDBOX_CP_PATH_EXISTS = void 0;
|
|
18
|
+
exports.ERR_API_REQUEST_BODY_VALUE = exports.ERR_API_REQUEST_QUERY_VALUE = exports.ERR_API_REQUEST_INVALID_JSON = exports.ERR_API_REQUEST_FILE_ERROR = exports.ERR_API_REQUEST_OUTPUT_EXISTS = exports.DESC_COMMAND_API_INFO = exports.DESC_COMMAND_API_FORM = exports.DESC_COMMAND_API_JSON = exports.DESC_COMMAND_API_DATA = exports.DESC_COMMAND_API_OUTPUT = exports.DESC_COMMAND_API_REQUEST_QUERY = exports.DESC_COMMAND_API_PROJECT = exports.DESC_COMMAND_API_WORKSPACE = exports.DESC_COMMAND_API_REQUEST_URL = exports.DESC_COMMAND_API_GET = exports.DESC_COMMAND_API_PATCH = exports.DESC_COMMAND_API_DELETE = exports.DESC_COMMAND_API_PUT = exports.DESC_COMMAND_API_POST = exports.DESC_COMMAND_API_LIST = exports.DESC_COMMAND_API = exports.ERR_WHOAMI_LOGOUT = exports.TXT_WHOAMI_NO_WORKSPACE = exports.DESC_COMMAND_WHOAMI = exports.TXT_ENVIRONMENT_DELETED = exports.TXT_ENVIRONMENT_DELETE_CONFIRM = exports.TXT_ENVIRONMENT_UPDATED = exports.TXT_ENVIRONMENT_CREATED = exports.TXT_ENVIRONMENT_NOT_FOUND = exports.ERR_ENVIRONMENT_NOT_FOUND = exports.OPTION_ENVIRONMENT_ICON = exports.OPTION_ENVIRONMENT_PUBLIC_URL = exports.OPTION_ENVIRONMENT_TAGS = exports.OPTION_ENVIRONMENT_CREATE_IDENTIFIER = exports.OPTION_ENVIRONMENT_NAME = exports.OPTION_ENVIRONMENT_IDENTIFIER = exports.DESC_COMMAND_ENVIRONMENT_DELETE = exports.DESC_COMMAND_ENVIRONMENT_UPDATE = exports.DESC_COMMAND_ENVIRONMENT_CREATE = exports.DESC_COMMAND_ENVIRONMENT_GET = exports.DESC_COMMAND_ENVIRONMENT_LIST = exports.DESC_COMMAND_ENVIRONMENT = exports.TXT_TARGET_EXEC_KILLED = exports.TXT_TARGET_EXEC_KILL_CONFIRM = exports.WARN_TARGET_EXEC_TRUNCATED = exports.TXT_TARGET_EXEC_CANCELLED = exports.TXT_TARGET_EXEC_FAILED = exports.TXT_TARGET_EXEC_SUCCESS = exports.TXT_TARGET_EXEC_BACKGROUND = exports.TXT_TARGET_EXEC_ID = void 0;
|
|
19
|
+
exports.ERR_LOGIN_HTTP_CANCEL = exports.ERR_LOGIN_HTTP_FAILED = exports.ERR_LOGIN_HTTP_SERVER_PORT_TAKEN = exports.TXT_REGISTER_SUCCESS = exports.TXT_LOGIN_SUCCESS = exports.TXT_LOGIN_SELECT_WORKSPACE = exports.TXT_LOGIN_ENTER_BASE_URL = exports.TXT_LOGIN_PROVIDE_CODE = exports.TXT_REGISTER_OPEN_URL = exports.TXT_LOGIN_OPEN_URL = exports.TXT_REGISTER_OPENING_STAR = exports.TXT_LOGIN_OPENING_STAR = exports.TXT_REGISTER_OPENING = exports.TXT_LOGIN_OPENING = exports.TXT_LOGIN_SELECT_REGION = exports.TXT_WORKSPACE_NONE = exports.TXT_WORKSPACE_SET_SUCCESS = exports.ARG_COMMAND_WORKSPACE = exports.DESC_COMMAND_WORKSPACE_GET = exports.DESC_COMMAND_WORKSPACE_SET = exports.DESC_COMMAND_WORKSPACE_LIST = exports.DESC_COMMAND_WORKSPACE = exports.TXT_COMMAND_REGISTER_PROVIDE_NAME = exports.TXT_COMMAND_REGISTER_PROVIDE_EMAIL = exports.ERR_COMMAND_REGISTER_INVALID_NAME = exports.ERR_COMMAND_REGISTER_INVALID_EMAIL = exports.OPT_COMMAND_REGISTER_NAME = exports.OPT_COMMAND_REGISTER_EMAIL = exports.DESC_COMMAND_REGISTER = exports.TXT_LOGOUT_SUCCESS = exports.DESC_COMMAND_LOGOUT = exports.DESC_COMMAND_LOGIN = exports.HELP_COMMAND_MCP = exports.ERR_MCP_TOOL_FILTERED = exports.ERR_MCP_TOOLS_CATEGORY = exports.OPT_COMMAND_MCP_TOOLS = exports.ERR_MCP_REFRESH_FAILED = exports.ERR_MCP_URL_INVALID = exports.ERR_MCP_ENDPOINT = exports.DESC_COMMAND_MCP = exports.ERR_API_PARAMETER_NOT_REPLACED = exports.TXT_API_ENDPOINT_REQUIRED_SCOPES = exports.ERR_API_ENDPOINT_NOT_FOUND = exports.ERR_API_WRONG_METHOD = exports.ERR_SCHEMA_FETCH_FAILED = exports.OPT_COMMAND_API_INFO_URL = exports.OPT_COMMAND_API_INFO_SCHEMA = exports.OPT_COMMAND_API_INFO_METHOD = exports.OPT_COMMAND_API_LIST_SEARCH = exports.OPT_COMMAND_API_LIST_METHOD = void 0;
|
|
20
|
+
exports.TXT_COMMAND_ROUTE_DELETED = exports.TXT_COMMAND_DISTRO_DELETED = exports.TXT_COMMAND_ROUTE_DELETE_CONFIRM = exports.TXT_COMMAND_DISTRO_DELETE_CONFIRM = exports.ERR_COMMAND_DISTRO_ENABLE_DISABLE = exports.ERR_COMMAND_NO_UPDATE = exports.ERR_COMMAND_DISTRO_NOT_FOUND = exports.ERR_COMMAND_SCOPE = exports.TXT_COMMAND_DISTRO_UPDATED = exports.TXT_COMMAND_ROUTE_UPDATED = exports.TXT_ROUTE_SERVE = exports.TXT_COMMAND_ROUTE_CREATED = exports.TXT_COMMAND_DISTRO_CREATED = exports.ERR_COMMAND_SCOPE_NO_ENVIRONMENT = exports.ERR_COMMAND_SCOPE_NO_PROJECT = exports.OPT_COMMAND_DISTRO_DISABLE = exports.OPT_COMMAND_DISTRO_ENABLE = exports.OPT_COMMAND_DISTRO_AGENT_NOTE = exports.OPT_COMMAND_DISTRO_NOTE = exports.OPT_COMMAND_DISTRO_NAME = exports.OPT_COMMAND_ROUTE_TARGET = exports.OPT_COMMAND_ROUTE_AGENT_NOTE = exports.OPT_COMMAND_ROUTE_NOTE = exports.OPT_COMMAND_ROUTE_PATH = exports.OPT_COMMAND_ROUTE_DOMAIN = exports.OPT_COMMAND_ROUTE_SUBDOMAIN = exports.OPT_COMMAND_ROUTE_TYPE = exports.OPT_COMMAND_ROUTE_ID = exports.OPT_COMMAND_DISTRO_IDENTIFIER = exports.OPT_COMMAND_SCOPE_ENVIRONMENT = exports.OPT_COMMAND_SCOPE = exports.OPT_COMMAND_AGENT_NOTE = exports.OPT_COMMAND_NOTE = exports.DESC_COMMAND_ROUTE = exports.DESC_COMMAND_ROUTE_UPDATE = exports.DESC_COMMAND_ROUTE_DELETE = exports.DESC_COMMAND_ROUTE_GET = exports.DESC_COMMAND_DISTRO_UPDATE = exports.DESC_COMMAND_DISTRO_GET = exports.DESC_COMMAND_ROUTE_LIST = exports.DESC_COMMAND_DISTRO_LIST = exports.DESC_COMMAND_DISTRO_DELETE = exports.DESC_COMMAND_ROUTE_CREATE = exports.DESC_COMMAND_DISTRO_CREATE = exports.DESC_COMMAND_DISTRO = exports.ERR_API_MESSAGE_REPLACER = exports.ERR_LOGIN_INVALID_BASE_URL = exports.ERR_LOGIN_NO_WORKSPACE_FOUND = exports.ERR_LOGIN_NO_WORKSPACES = exports.ERR_REGISTER_HTTP_CANCEL = void 0;
|
|
21
|
+
exports.TXT_ARTIFACT_PUBLISH = exports.TXT_ARTIFACT_CREATED = exports.TXT_ARTIFACT_VERSION_DELETED = exports.TXT_ARTIFACT_DELETED = exports.ERR_COMMAND_ARTIFACT_TYPE = exports.OPT_COMMAND_ARTIFACT_VERSION = exports.OPT_COMMAND_ARTIFACT_IDENTIFIER = exports.OPT_COMMAND_ARTIFACT_CREATE_IDENTIFIER = exports.OPT_COMMAND_ARTIFACT_NAME = exports.OPT_COMMAND_ARTIFACT_TYPE = exports.DESC_COMMAND_ARTIFACT_CREATE = exports.DESC_COMMAND_ARTIFACT_COMPOSER_PUBLISH = exports.DESC_COMMAND_ARTIFACT_GET = exports.TXT_ARTIFACT_DOCKER_LOGIN_FAILED = exports.TXT_ARTIFACT_DOCKER_LOGIN_SUCCESS = exports.TXT_ARTIFACT_VERSION_DELETE_CONFIRM = exports.TXT_ARTIFACT_DELETE_CONFIRM = exports.DESC_COMMAND_ARTIFACT_DELETE = exports.ERR_COMMAND_ARTIFACT_NO_PROJECTS = exports.DESC_COMMAND_ARTIFACT_VERSION_GET = exports.DESC_COMMAND_ARTIFACT_VERSION_LIST = exports.DESC_COMMAND_ARTIFACT_VERSION_DELETE = exports.DESC_COMMAND_ARTIFACT_DOCKER = exports.DESC_COMMAND_ARTIFACT_DOCKER_LOGIN = exports.DESC_COMMAND_ARTIFACT_LIST = exports.DESC_COMMAND_ARTIFACT_COMPOSER = exports.DESC_COMMAND_ARTIFACT_VERSION = exports.ERR_COMMAND_DOMAIN_UNAVAILABLE = exports.OPTION_COMMAND_DOMAIN_IDENTIFIER = exports.ERR_COMMAND_DOMAIN_NO_DOMAINS = exports.TXT_COMMAND_DOMAIN_PROMPT_REQUIRED = exports.TXT_COMMAND_DOMAIN_BUY_SELECT_DOMAIN = exports.TXT_COMMAND_DOMAIN_PROVIDE_PROMPT = exports.ERR_COMMAND_DOMAIN_NOT_FOUND = exports.OPT_COMMAND_DOMAIN_ONLY_AVAILABLE = exports.OPT_COMMAND_DOMAIN_SORT = exports.OPT_COMMAND_DOMAIN_PHRASE = exports.OPT_COMMAND_DOMAIN_BUY_OWNER = exports.OPT_COMMAND_DOMAIN_BUY_TLD = exports.DESC_COMMAND_DOMAIN_GET = exports.DESC_COMMAND_DOMAIN_LIST = exports.DESC_COMMAND_DOMAIN_SEARCH = exports.DESC_COMMAND_DOMAIN_BUY = exports.DESC_COMMAND_DOMAIN = exports.ERR_ROUTE_NO_DEFAULT = exports.ERR_WRONG_ROUTE_TARGET = exports.ERR_COMMAND_ROUTE_NO_TARGET = exports.ERR_COMMAND_ROUTE_TYPE = exports.TXT_COMMAND_ROUTES_NOT_FOUND = exports.TXT_COMMAND_DISTROS_NOT_FOUND = void 0;
|
|
22
|
+
exports.EXAMPLE_SANDBOX_EXEC_COMMAND = exports.EXAMPLE_TUNNEL_START = exports.EXAMPLE_TUNNEL_TCP = exports.EXAMPLE_TUNNEL_TLS = exports.EXAMPLE_AGENT_TUNNEL_START = exports.EXAMPLE_AGENT_TUNNEL_STATUS = exports.EXAMPLE_AGENT_TUNNEL_REMOVE = exports.EXAMPLE_AGENT_TUNNEL_LIST = exports.EXAMPLE_TUNNEL_HTTP = exports.EXAMPLE_SANDBOX_CREATE = exports.EXAMPLE_DISTRO_CREATE = exports.EXAMPLE_ROUTE_CREATE = exports.EXAMPLE_ROUTE_LIST = exports.EXAMPLE_ROUTE_UPDATE = exports.EXAMPLE_ROUTE_DELETE = exports.EXAMPLE_DISTRO_DELETE = exports.EXAMPLE_ROUTE_GET = exports.EXAMPLE_DISTRO_UPDATE = exports.EXAMPLE_DISTRO_GET = exports.EXAMPLE_DISTRO_LIST = exports.EXAMPLE_SANDBOX_CP = exports.ERR_PROJECT_NO_PROJECTS = exports.TXT_LOGIN_SELECT_PROJECT = exports.TXT_COMMAND_PROJECT_CREATED = exports.TXT_COMMAND_PROJECT_LINK_NOT_FOUND = exports.TXT_COMMAND_PROJECT_LINK_NAME = exports.TXT_COMMAND_PROJECT_LINK_SELECT_PROJECT = exports.TXT_COMMAND_PROJECT_LINK_TO = exports.TXT_COMMAND_PROJECT_LINK_EXISTING_DESC = exports.TXT_COMMAND_PROJECT_LINK_EXISTING = exports.TXT_COMMAND_PROJECT_LINK_CREATE_NEW_DESC = exports.TXT_COMMAND_PROJECT_LINK_CREATE_NEW = exports.ERR_COMMAND_PROJECT_LINK_DIR_NOT_DIR = exports.TXT_COMMAND_PROJECT_LINK_GIT_REPO_INITIALIZED = exports.TXT_COMMAND_PROJECT_LINK_GIT_REPO = exports.TXT_COMMAND_PROJECT_LINK_DIR_CONFIRM = exports.TXT_COMMAND_PROJECT_LINK_DIR_LINKED = exports.ERR_COMMAND_PROJECT_LINK_DIR_CREATE = exports.OPT_COMMAND_PROJECT_LINK_TRY_NOW = exports.OPT_COMMAND_PROJECT_LINK_SET_GIT_REMOTE = exports.OPT_COMMAND_PROJECT_LINK_HAS_REMOTE = exports.OPT_COMMAND_PROJECT_LINK_DIRECTORY = exports.OPT_COMMAND_PROJECT_LINK_GIT = exports.OPT_COMMAND_PROJECT_LINK_RELINK = exports.DESC_COMMAND_PROJECT_LINK = exports.DESC_COMMAND_PROJECT_LIST = exports.DESC_COMMAND_PROJECT_GIT = exports.DESC_COMMAND_PROJECT_GIT_CREDENTIAL = exports.DESC_COMMAND_PROJECT = exports.TXT_ARTIFACT_VERSION_DOWNLOAD = void 0;
|
|
23
|
+
exports.EXAMPLE_ARTIFACT_VERSION_CREATE = exports.EXAMPLE_PIPELINE_RUN_RETRY = exports.EXAMPLE_PIPELINE_RUN_LIST = exports.EXAMPLE_PIPELINE_LIST = exports.EXAMPLE_PIPELINE_YML = exports.EXAMPLE_PIPELINE_GET = exports.EXAMPLE_PIPELINE_UPDATE = exports.EXAMPLE_PIPELINE_DELETE = exports.EXAMPLE_PIPELINE_CREATE = exports.EXAMPLE_PIPELINE_RUN_CANCEL = exports.EXAMPLE_PIPELINE_RUN_APPLY = exports.EXAMPLE_PIPELINE_RUN_LOGS = exports.HELP_PIPELINE_RUN_JSONL = exports.EXAMPLE_PIPELINE_RUN_STATUS = exports.EXAMPLE_PIPELINE_RUN_START = exports.EXAMPLE_SANDBOX_ENDPOINT_LIST = exports.EXAMPLE_SANDBOX_ENDPOINT_GET = exports.EXAMPLE_SANDBOX_ENDPOINT_DELETE = exports.EXAMPLE_SANDBOX_ENDPOINT_CREATE = exports.EXAMPLE_ENVIRONMENT_DELETE = exports.EXAMPLE_ENVIRONMENT_UPDATE = exports.EXAMPLE_ENVIRONMENT_CREATE = exports.EXAMPLE_ENVIRONMENT_GET = exports.EXAMPLE_ENVIRONMENT_LIST = exports.EXAMPLE_TARGET_EXEC_LOGS = exports.EXAMPLE_TARGET_EXEC_LIST = exports.EXAMPLE_TARGET_EXEC_KILL = exports.EXAMPLE_TARGET_EXEC_STATUS = exports.EXAMPLE_TARGET_EXEC_COMMAND = exports.EXAMPLE_TARGET_DELETE = exports.EXAMPLE_TARGET_UPDATE = exports.EXAMPLE_TARGET_CREATE = exports.EXAMPLE_TARGET_GET = exports.EXAMPLE_TARGET_LIST = exports.EXAMPLE_SANDBOX_SNAPSHOT_LIST = exports.EXAMPLE_SANDBOX_SNAPSHOT_GET = exports.EXAMPLE_SANDBOX_SNAPSHOT_DELETE = exports.EXAMPLE_SANDBOX_SNAPSHOT_CREATE = exports.EXAMPLE_SANDBOX_EXEC_STATUS = exports.EXAMPLE_SANDBOX_EXEC_LOGS = exports.EXAMPLE_SANDBOX_APP_STATUS = exports.EXAMPLE_SANDBOX_APP_STOP = exports.EXAMPLE_SANDBOX_APP_REMOVE = exports.EXAMPLE_SANDBOX_APP_ADD = exports.EXAMPLE_SANDBOX_APP_START = exports.EXAMPLE_SANDBOX_APP_LOGS = exports.EXAMPLE_SANDBOX_EXEC_LIST = exports.EXAMPLE_SANDBOX_APP_LIST = exports.EXAMPLE_SANDBOX_EXEC_KILL = exports.EXAMPLE_SANDBOX_SSH = void 0;
|
|
24
|
+
exports.ERR_YAML_SCHEMA_FETCH_FAILED = exports.TXT_YAML_UNKNOWN_TOP_LEVEL_KEYS = exports.ERR_YAML_ITEM_UNKNOWN = exports.ERR_YAML_ITEM_MISSING = exports.ERR_YAML_MUST_BE = exports.ERR_YAML_PIPELINE_NOT_OBJECT = exports.ERR_YAML_EMPTY_ARRAY = exports.ERR_YAML_PLAIN_OBJECT = exports.ERR_YAML_NOT_ARRAY = exports.ERR_YAML_PARSE = exports.ERR_YAML_VALIDATE_FAILED_COUNT = exports.TXT_YAML_VALIDATE_ALL_PASS = exports.ERR_YAML_VALIDATE_FAILED = exports.ERR_YAML_VALIDATE_FILE_NOT_FOUND = exports.OPTION_YAML_VALIDATE_FILE = exports.DESC_COMMAND_YAML_VALIDATE = exports.DESC_COMMAND_YAML_ACTIONS_INFO = exports.DESC_COMMAND_YAML_ACTIONS_LIST = exports.DESC_COMMAND_YAML_ACTIONS = exports.DESC_COMMAND_YAML_PIPELINE = exports.DESC_COMMAND_YAML = exports.TXT_ACTION_SUGGESTED_FROM_REPO = exports.TXT_ACTION_USE_LIST = exports.TXT_ACTION_DID_YOU_MEAN = exports.ERR_ACTION_SEARCH_NO_RESULTS = exports.ERR_ACTION_NOT_FOUND = exports.OPTION_ACTION_TYPE = exports.OPTION_ACTION_SEARCH = exports.EXAMPLE_YAML_VALIDATE = exports.EXAMPLE_YAML_ACTIONS_INFO = exports.EXAMPLE_YAML_ACTIONS_LIST = exports.EXAMPLE_YAML_PIPELINE = exports.EXAMPLE_CRAWL_LINK = exports.EXAMPLE_CRAWL_RUN = exports.EXAMPLE_TESTS_CAPTURE = exports.EXAMPLE_TESTS_VISUAL_SESSION_CLOSE = exports.EXAMPLE_TESTS_VISUAL_SESSION_CREATE = exports.EXAMPLE_TESTS_VISUAL_LINK = exports.EXAMPLE_TESTS_VISUAL_UPLOAD = exports.EXAMPLE_TESTS_VISUAL_SETUP = exports.EXAMPLE_TESTS_UNIT_LINK = exports.EXAMPLE_TESTS_UNIT_UPLOAD = exports.EXAMPLE_ARTIFACT_VERSION_DELETE = exports.EXAMPLE_ARTIFACT_VERSION_GET = exports.EXAMPLE_ARTIFACT_VERSION_LIST = exports.EXAMPLE_ARTIFACT_CREATE = exports.EXAMPLE_ARTIFACT_DELETE = exports.EXAMPLE_ARTIFACT_DOWNLOAD = exports.EXAMPLE_ARTIFACT_PUBLISH = exports.EXAMPLE_ARTIFACT_COMPOSER_PUBLISH = void 0;
|
|
25
|
+
exports.HELP_AGENT_STATUS_JSON = exports.HELP_SANDBOX_APP_ADD_JSON = exports.EXAMPLE_CONFIG_GET_TUNNELS = exports.EXAMPLE_CONFIG_GET_TUNNEL = exports.HELP_TARGET_EXEC_LOGS_JSONL = exports.HELP_SANDBOX_EXEC_COMMAND_JSONL = exports.HELP_SANDBOX_EXEC_JSONL = exports.HELP_API_INFO_JSON = exports.HELP_DOMAIN_SEARCH_JSON = exports.HELP_YAML_VALIDATE_JSON = exports.EXAMPLE_AGENT_TAGS_GET = exports.EXAMPLE_AGENT_PROXY_STATUS = exports.EXAMPLE_AGENT_TARGET_STATUS = exports.EXAMPLE_AGENT_VERSION = exports.EXAMPLE_AGENT_STATUS = exports.EXAMPLE_DOMAIN_SEARCH = exports.EXAMPLE_API_LIST = exports.EXAMPLE_API_INFO = exports.ERR_API_SCHEMA_NOT_FOUND = exports.EXAMPLE_SANDBOX_LOGS = exports.ERR_YAML_SCHEMA_READ_FAILED = void 0;
|
|
25
26
|
const utils_1 = require("./utils");
|
|
26
27
|
exports.ERR_CANCELLED = 'Cancelled';
|
|
27
28
|
exports.ERR_REST_API_GENERAL_ERROR = 'Something went wrong';
|
|
@@ -260,84 +261,88 @@ exports.TXT_AGENT_STANDALONE_EXITING = 'Process exiting. Agent configuration rem
|
|
|
260
261
|
exports.NO_TUNNELS_STARTED = 'No tunnels started';
|
|
261
262
|
const AGENT_FETCH_RETRY = (seconds) => `Agent fetch failed. Retrying in ${seconds}s...`;
|
|
262
263
|
exports.AGENT_FETCH_RETRY = AGENT_FETCH_RETRY;
|
|
263
|
-
exports.DESC_COMMAND_CONFIG_ADD_HTTP = 'Add
|
|
264
|
-
exports.DESC_COMMAND_CONFIG_ADD_TCP = 'Add a
|
|
265
|
-
exports.DESC_COMMAND_CONFIG_ADD_TLS = 'Add a
|
|
266
|
-
exports.DESC_COMMAND_CONFIG_GET_REGION = '
|
|
267
|
-
exports.DESC_COMMAND_CONFIG_GET_TIMEOUT = '
|
|
268
|
-
exports.DESC_COMMAND_CONFIG_GET_TOKEN = '
|
|
269
|
-
exports.DESC_COMMAND_CONFIG_GET_TUNNEL = '
|
|
270
|
-
exports.DESC_COMMAND_CONFIG_GET_TUNNELS = '
|
|
271
|
-
exports.DESC_COMMAND_CONFIG_GET_WHITELIST = '
|
|
272
|
-
exports.DESC_COMMAND_CONFIG_REMOVE_TUNNEL = 'Remove tunnel configuration';
|
|
273
|
-
exports.DESC_COMMAND_CONFIG_REMOVE_TOKEN = 'Remove tunnel token configuration';
|
|
274
|
-
exports.DESC_COMMAND_CONFIG_SET_REGION = 'Set region';
|
|
275
|
-
exports.DESC_COMMAND_CONFIG_SET_TIMEOUT = 'Set timeout';
|
|
276
|
-
exports.DESC_COMMAND_CONFIG_SET_TOKEN = 'Set token';
|
|
277
|
-
exports.DESC_COMMAND_CONFIG_SET_WHITELIST = 'Set IP
|
|
278
|
-
exports.DESC_COMMAND_CONFIG_ADD = 'Add
|
|
279
|
-
exports.DESC_COMMAND_CONFIG_GET = '
|
|
280
|
-
exports.DESC_COMMAND_CONFIG_REMOVE = 'Remove
|
|
281
|
-
exports.DESC_COMMAND_CONFIG_SET = 'Set
|
|
282
|
-
exports.DESC_COMMAND_AGENT_TUNNEL_LIST =
|
|
283
|
-
exports.DESC_COMMAND_AGENT_TUNNEL_STATUS = "
|
|
284
|
-
exports.DESC_COMMAND_AGENT_TUNNEL_REMOVE =
|
|
285
|
-
exports.DESC_COMMAND_AGENT_UNINSTALL = 'Uninstall
|
|
286
|
-
exports.DESC_COMMAND_AGENT_INSTALL = 'Install
|
|
287
|
-
exports.DESC_COMMAND_AGENT_START = '
|
|
288
|
-
exports.DESC_COMMAND_AGENT_DISABLE = 'Disable agent and all tunnels';
|
|
289
|
-
exports.DESC_COMMAND_AGENT_DEBUG = 'Turn
|
|
290
|
-
exports.DESC_COMMAND_AGENT_ENABLE = 'Enable agent and all tunnels';
|
|
291
|
-
exports.DESC_COMMAND_AGENT_RESTART = '
|
|
292
|
-
exports.DESC_COMMAND_AGENT_STATUS = 'Show the
|
|
293
|
-
exports.DESC_COMMAND_AGENT_TARGET_STATUS = 'Show the
|
|
294
|
-
exports.DESC_COMMAND_AGENT_PROXY_STATUS = 'Show
|
|
295
|
-
exports.DESC_COMMAND_AGENT_TARGET_ENABLE = 'Enable
|
|
296
|
-
exports.DESC_COMMAND_AGENT_PROXY_ENABLE = '
|
|
297
|
-
exports.DESC_COMMAND_AGENT_TUNNELING_ENABLE = 'Enable
|
|
298
|
-
exports.DESC_COMMAND_AGENT_TUNNELING_DISABLE = 'Disable
|
|
299
|
-
exports.DESC_COMMAND_AGENT_TARGET_DISABLE = 'Disable
|
|
300
|
-
exports.DESC_COMMAND_AGENT_PROXY_DISABLE = '
|
|
301
|
-
exports.DESC_COMMAND_AGENT_STOP = '
|
|
302
|
-
exports.DESC_COMMAND_AGENT_TUNNEL =
|
|
303
|
-
exports.
|
|
304
|
-
exports.
|
|
305
|
-
exports.
|
|
306
|
-
exports.
|
|
307
|
-
exports.
|
|
264
|
+
exports.DESC_COMMAND_CONFIG_ADD_HTTP = 'Add an HTTP tunnel to the configuration file';
|
|
265
|
+
exports.DESC_COMMAND_CONFIG_ADD_TCP = 'Add a TCP tunnel to the configuration file';
|
|
266
|
+
exports.DESC_COMMAND_CONFIG_ADD_TLS = 'Add a TLS tunnel to the configuration file';
|
|
267
|
+
exports.DESC_COMMAND_CONFIG_GET_REGION = 'Show the configured default region';
|
|
268
|
+
exports.DESC_COMMAND_CONFIG_GET_TIMEOUT = 'Show the configured connection timeout';
|
|
269
|
+
exports.DESC_COMMAND_CONFIG_GET_TOKEN = 'Show the configured tunnel token';
|
|
270
|
+
exports.DESC_COMMAND_CONFIG_GET_TUNNEL = 'Show one tunnel from the configuration file';
|
|
271
|
+
exports.DESC_COMMAND_CONFIG_GET_TUNNELS = 'List all tunnels defined in the configuration file';
|
|
272
|
+
exports.DESC_COMMAND_CONFIG_GET_WHITELIST = 'Show the configured IP whitelist';
|
|
273
|
+
exports.DESC_COMMAND_CONFIG_REMOVE_TUNNEL = 'Remove a tunnel from the configuration file';
|
|
274
|
+
exports.DESC_COMMAND_CONFIG_REMOVE_TOKEN = 'Remove the tunnel token from the configuration file';
|
|
275
|
+
exports.DESC_COMMAND_CONFIG_SET_REGION = 'Set the default region for new tunnels';
|
|
276
|
+
exports.DESC_COMMAND_CONFIG_SET_TIMEOUT = 'Set the default connection timeout in seconds';
|
|
277
|
+
exports.DESC_COMMAND_CONFIG_SET_TOKEN = 'Set the token used to authorize tunnels';
|
|
278
|
+
exports.DESC_COMMAND_CONFIG_SET_WHITELIST = 'Set the default IP whitelist (CIDRs) for tunnels';
|
|
279
|
+
exports.DESC_COMMAND_CONFIG_ADD = 'Add an HTTP, TCP or TLS tunnel to the configuration file';
|
|
280
|
+
exports.DESC_COMMAND_CONFIG_GET = 'Show tunnel settings: tunnels, token, region, whitelist or timeout';
|
|
281
|
+
exports.DESC_COMMAND_CONFIG_REMOVE = 'Remove a tunnel or the token from the configuration file';
|
|
282
|
+
exports.DESC_COMMAND_CONFIG_SET = 'Set global tunnel settings: token, region, whitelist or timeout';
|
|
283
|
+
exports.DESC_COMMAND_AGENT_TUNNEL_LIST = 'List tunnels run by the agent';
|
|
284
|
+
exports.DESC_COMMAND_AGENT_TUNNEL_STATUS = "Show the status of the agent's tunnels, or of one tunnel by ID";
|
|
285
|
+
exports.DESC_COMMAND_AGENT_TUNNEL_REMOVE = 'Remove a tunnel from the agent by ID';
|
|
286
|
+
exports.DESC_COMMAND_AGENT_UNINSTALL = 'Uninstall the agent service';
|
|
287
|
+
exports.DESC_COMMAND_AGENT_INSTALL = 'Install the agent as a system service or as a user application';
|
|
288
|
+
exports.DESC_COMMAND_AGENT_START = 'Start the agent service';
|
|
289
|
+
exports.DESC_COMMAND_AGENT_DISABLE = 'Disable the agent service and all its tunnels';
|
|
290
|
+
exports.DESC_COMMAND_AGENT_DEBUG = 'Turn agent debug logging on or off';
|
|
291
|
+
exports.DESC_COMMAND_AGENT_ENABLE = 'Enable the agent service and all its tunnels';
|
|
292
|
+
exports.DESC_COMMAND_AGENT_RESTART = 'Restart the agent service and all its tunnels';
|
|
293
|
+
exports.DESC_COMMAND_AGENT_STATUS = 'Show the agent service status';
|
|
294
|
+
exports.DESC_COMMAND_AGENT_TARGET_STATUS = 'Show whether the agent is enabled as a deployment target';
|
|
295
|
+
exports.DESC_COMMAND_AGENT_PROXY_STATUS = 'Show whether Buddy may use the agent as a proxy';
|
|
296
|
+
exports.DESC_COMMAND_AGENT_TARGET_ENABLE = 'Enable the agent as a deployment target';
|
|
297
|
+
exports.DESC_COMMAND_AGENT_PROXY_ENABLE = 'Allow Buddy to use the agent as a proxy, for example for SSH targets behind it';
|
|
298
|
+
exports.DESC_COMMAND_AGENT_TUNNELING_ENABLE = 'Enable tunneling in the agent';
|
|
299
|
+
exports.DESC_COMMAND_AGENT_TUNNELING_DISABLE = 'Disable tunneling in the agent';
|
|
300
|
+
exports.DESC_COMMAND_AGENT_TARGET_DISABLE = 'Disable the agent as a deployment target';
|
|
301
|
+
exports.DESC_COMMAND_AGENT_PROXY_DISABLE = 'Stop Buddy from using the agent as a proxy';
|
|
302
|
+
exports.DESC_COMMAND_AGENT_STOP = 'Stop the agent service';
|
|
303
|
+
exports.DESC_COMMAND_AGENT_TUNNEL = 'Manage tunnels run by the agent';
|
|
304
|
+
exports.DESC_COMMAND_AGENT_TUNNEL_HTTP = 'Add an HTTP tunnel run by the agent';
|
|
305
|
+
exports.DESC_COMMAND_AGENT_TUNNEL_TCP = 'Add a TCP tunnel run by the agent';
|
|
306
|
+
exports.DESC_COMMAND_AGENT_TUNNEL_TLS = 'Add a TLS tunnel run by the agent';
|
|
307
|
+
exports.DESC_COMMAND_AGENT_TUNNEL_START = 'Add the tunnels from the configuration file to the agent';
|
|
308
|
+
exports.DESC_COMMAND_AGENT_TARGET = "Manage the agent's role as a deployment target";
|
|
309
|
+
exports.DESC_COMMAND_AGENT_PROXY = 'Manage whether Buddy may use the agent as a proxy, for example to reach an SSH target through it';
|
|
310
|
+
exports.DESC_COMMAND_AGENT_TAGS = 'Manage the tags that identify this agent';
|
|
311
|
+
exports.DESC_COMMAND_AGENT_TAGS_GET = "Show the agent's tags";
|
|
312
|
+
exports.DESC_COMMAND_AGENT_TAGS_SET = "Replace the agent's tags";
|
|
308
313
|
exports.OPT_COMMAND_AGENT_TAGS_SET = 'Tags separated by spaces';
|
|
309
|
-
exports.DESC_COMMAND_AGENT_UPDATE = '
|
|
310
|
-
exports.DESC_COMMAND_AGENT_USER = '
|
|
311
|
-
exports.DESC_COMMAND_AGENT_VERSION = 'Show the
|
|
312
|
-
exports.DESC_COMMAND_CONFIG = '
|
|
313
|
-
exports.DESC_COMMAND_HTTP = '
|
|
314
|
-
exports.DESC_COMMAND_AGENT = '
|
|
315
|
-
exports.DESC_COMMAND_TUNNEL = '
|
|
316
|
-
exports.DESC_COMMAND_START = '
|
|
317
|
-
exports.DESC_COMMAND_TCP = '
|
|
318
|
-
exports.DESC_COMMAND_TLS = '
|
|
314
|
+
exports.DESC_COMMAND_AGENT_UPDATE = 'Update the agent to the latest version';
|
|
315
|
+
exports.DESC_COMMAND_AGENT_USER = 'Set the operating system user the agent service runs as';
|
|
316
|
+
exports.DESC_COMMAND_AGENT_VERSION = 'Show the installed agent version';
|
|
317
|
+
exports.DESC_COMMAND_CONFIG = 'Create or edit the tunnel configuration file';
|
|
318
|
+
exports.DESC_COMMAND_HTTP = 'Start a tunnel that exposes a local HTTP/HTTPS service under a public hostname';
|
|
319
|
+
exports.DESC_COMMAND_AGENT = 'Install and run bdy as a background service on Windows, macOS and Linux that keeps tunnels up';
|
|
320
|
+
exports.DESC_COMMAND_TUNNEL = 'Start tunnels to local services and manage the tunnel configuration file';
|
|
321
|
+
exports.DESC_COMMAND_START = 'Start the tunnels defined in the configuration file';
|
|
322
|
+
exports.DESC_COMMAND_TCP = 'Start a tunnel that forwards TCP traffic from a public port to a local address, for non-HTTP services such as SSH, RDP, SIP or game servers';
|
|
323
|
+
exports.DESC_COMMAND_TLS = 'Start a tunnel that forwards TLS traffic on port 443 for a hostname to a local address';
|
|
319
324
|
exports.DESC_PROGRAM = 'Work seamlessly with Buddy from the command line.';
|
|
320
325
|
const ERR_COMMAND_NOT_FOUND = (arg) => `Command not found: ${arg}`;
|
|
321
326
|
exports.ERR_COMMAND_NOT_FOUND = ERR_COMMAND_NOT_FOUND;
|
|
322
|
-
exports.DESC_COMMAND_PIPELINE = '
|
|
323
|
-
exports.DESC_COMMAND_ARTIFACT = '
|
|
324
|
-
exports.DESC_COMMAND_ARTIFACT_VERSION_CREATE = 'Create
|
|
325
|
-
exports.DESC_COMMAND_ARTIFACT_PUBLISH = '
|
|
326
|
-
exports.DESC_COMMAND_ARTIFACT_DOWNLOAD = 'Download
|
|
327
|
-
exports.DESC_COMMAND_PIPELINE_RUN = '
|
|
328
|
-
exports.DESC_COMMAND_PIPELINE_RUN_START = '
|
|
329
|
-
exports.DESC_COMMAND_PIPELINE_RUN_STATUS = '
|
|
330
|
-
exports.DESC_COMMAND_PIPELINE_RUN_LOGS = '
|
|
331
|
-
exports.DESC_COMMAND_PIPELINE_RUN_CANCEL = '
|
|
332
|
-
exports.DESC_COMMAND_PIPELINE_RUN_APPLY = '
|
|
333
|
-
exports.DESC_COMMAND_PIPELINE_RUN_LIST = '
|
|
334
|
-
exports.DESC_COMMAND_PIPELINE_LIST = '
|
|
335
|
-
exports.DESC_COMMAND_PIPELINE_YAML = '
|
|
336
|
-
exports.DESC_COMMAND_PIPELINE_CREATE = '
|
|
337
|
-
exports.DESC_COMMAND_PIPELINE_DELETE = '
|
|
338
|
-
exports.DESC_COMMAND_PIPELINE_UPDATE = '
|
|
339
|
-
exports.DESC_COMMAND_PIPELINE_GET = '
|
|
340
|
-
exports.DESC_COMMAND_PIPELINE_RUN_RETRY = '
|
|
327
|
+
exports.DESC_COMMAND_PIPELINE = 'Manage pipelines and their runs';
|
|
328
|
+
exports.DESC_COMMAND_ARTIFACT = 'Manage artifacts: file, Docker and Composer packages with versions';
|
|
329
|
+
exports.DESC_COMMAND_ARTIFACT_VERSION_CREATE = 'Create an artifact version';
|
|
330
|
+
exports.DESC_COMMAND_ARTIFACT_PUBLISH = 'Upload a directory as a new version of a file artifact';
|
|
331
|
+
exports.DESC_COMMAND_ARTIFACT_DOWNLOAD = 'Download a version of a file artifact';
|
|
332
|
+
exports.DESC_COMMAND_PIPELINE_RUN = 'Start, follow and manage pipeline runs';
|
|
333
|
+
exports.DESC_COMMAND_PIPELINE_RUN_START = 'Start a pipeline run and follow its progress';
|
|
334
|
+
exports.DESC_COMMAND_PIPELINE_RUN_STATUS = 'Show the status of a pipeline run';
|
|
335
|
+
exports.DESC_COMMAND_PIPELINE_RUN_LOGS = 'Show the logs of a pipeline run';
|
|
336
|
+
exports.DESC_COMMAND_PIPELINE_RUN_CANCEL = 'Cancel a pipeline run in progress';
|
|
337
|
+
exports.DESC_COMMAND_PIPELINE_RUN_APPLY = 'Approve a pipeline run waiting for approval';
|
|
338
|
+
exports.DESC_COMMAND_PIPELINE_RUN_LIST = 'List runs of a pipeline';
|
|
339
|
+
exports.DESC_COMMAND_PIPELINE_LIST = 'List pipelines in a project';
|
|
340
|
+
exports.DESC_COMMAND_PIPELINE_YAML = 'Print a pipeline definition as YAML';
|
|
341
|
+
exports.DESC_COMMAND_PIPELINE_CREATE = 'Create a pipeline from a YAML definition';
|
|
342
|
+
exports.DESC_COMMAND_PIPELINE_DELETE = 'Delete a pipeline';
|
|
343
|
+
exports.DESC_COMMAND_PIPELINE_UPDATE = 'Update a pipeline from a YAML definition';
|
|
344
|
+
exports.DESC_COMMAND_PIPELINE_GET = 'Show pipeline details';
|
|
345
|
+
exports.DESC_COMMAND_PIPELINE_RUN_RETRY = 'Retry a failed or terminated pipeline run';
|
|
341
346
|
exports.DESC_COMMAND_TESTS = 'Manage unit tests and visual regression (Storybook, URL captures, test runners)';
|
|
342
347
|
exports.DESC_COMMAND_UNIT = 'Manage unit testing (JUnit XML report uploads, suite linking)';
|
|
343
348
|
exports.DESC_COMMAND_VISUAL = 'Manage visual regression testing across Storybook, URL captures, and test runners';
|
|
@@ -347,8 +352,8 @@ exports.DESC_COMMAND_SESSION_CLOSE = 'Close a parallel visual test session early
|
|
|
347
352
|
exports.DESC_COMMAND_VISUAL_SETUP = 'Install the resource-discovery browser used by `bdy tests visual session create`';
|
|
348
353
|
exports.DESC_COMMAND_VISUAL_UPLOAD = 'Upload a built Storybook to create a visual test session';
|
|
349
354
|
exports.DESC_COMMAND_CAPTURE = 'Create a visual test session from an explicit URL list, a URLs file, or a sitemap';
|
|
350
|
-
exports.DESC_COMMAND_CRAWL = '
|
|
351
|
-
exports.DESC_COMMAND_CRAWL_RUN = 'Crawl a URL and download the
|
|
355
|
+
exports.DESC_COMMAND_CRAWL = 'Crawl websites into Markdown, HTML and screenshots';
|
|
356
|
+
exports.DESC_COMMAND_CRAWL_RUN = 'Crawl a URL and download the results (screenshots, Markdown, HTML) to a directory';
|
|
352
357
|
exports.DESC_COMMAND_UT_UPLOAD = 'Upload unit test reports';
|
|
353
358
|
exports.DESC_COMMAND_VT_LINK = 'Link current directory to a visual test suite';
|
|
354
359
|
exports.DESC_COMMAND_CRAWL_LINK = 'Link current directory to a crawl suite';
|
|
@@ -470,6 +475,83 @@ exports.OPTION_PIPELINE_RUN_ACTION = "Action ID to be run in this execution. If
|
|
|
470
475
|
exports.OPTION_PIPELINE_RUN_NO_WAIT = 'Do not wait for run to finish';
|
|
471
476
|
exports.OPTION_PIPELINE_RUN_NO_FOLLOW = 'Do not follow changes, only print final state';
|
|
472
477
|
exports.OPTION_VERSION = 'Output the bdy version';
|
|
478
|
+
exports.DESC_COMMAND_UPDATE = 'Show the installed bdy version and how to update when a newer one is available';
|
|
479
|
+
exports.TXT_COMMAND_EXAMPLES = 'EXAMPLES:';
|
|
480
|
+
exports.DESC_COMMAND_DISCOVER = 'Discover CLI commands as JSON, without login or network access';
|
|
481
|
+
exports.OPTION_DISCOVER_COMMAND = 'Command path or aliases to inspect';
|
|
482
|
+
exports.OPTION_DISCOVER_FULL = 'Return the full command tree with arguments, options, scopes and examples';
|
|
483
|
+
exports.TXT_DISCOVER_USAGE_HINT = "Run 'bdy discover --help' for usage.";
|
|
484
|
+
const ERR_DISCOVER_UNKNOWN_COMMAND = (part, parent) => `Unknown command '${part}' under '${parent}'.`;
|
|
485
|
+
exports.ERR_DISCOVER_UNKNOWN_COMMAND = ERR_DISCOVER_UNKNOWN_COMMAND;
|
|
486
|
+
const TXT_DISCOVER_COMMAND_HINT = (path) => `Run '${['bdy', 'discover', ...path].join(' ')}' to list available commands.`;
|
|
487
|
+
exports.TXT_DISCOVER_COMMAND_HINT = TXT_DISCOVER_COMMAND_HINT;
|
|
488
|
+
exports.EXAMPLE_DISCOVER = [
|
|
489
|
+
{
|
|
490
|
+
description: 'List command paths and descriptions',
|
|
491
|
+
command: 'bdy discover',
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
description: 'Discover every command with full details',
|
|
495
|
+
command: 'bdy discover --full',
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
description: 'Inspect pipeline runs using an alias',
|
|
499
|
+
command: 'bdy discover pip run --full',
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
description: 'Inspect one command',
|
|
503
|
+
command: 'bdy discover pipeline get',
|
|
504
|
+
},
|
|
505
|
+
];
|
|
506
|
+
exports.DISCOVERY_TIPS = [
|
|
507
|
+
"Authenticate with 'bdy login'. Discovery itself needs no login or network access.",
|
|
508
|
+
"Set project context with 'bdy project link', or use --workspace / --project and BUDDY_WORKSPACE / BUDDY_PROJECT where supported.",
|
|
509
|
+
'Human-readable identifiers and numeric IDs are not interchangeable. Check the argument description.',
|
|
510
|
+
"Inspect YAML schemas with 'bdy yaml pipeline' and 'bdy yaml actions info <type>'.",
|
|
511
|
+
"Find REST operations with 'bdy api list' and inspect them with 'bdy api info <method> <url>'.",
|
|
512
|
+
'Check each command for supported output formats: json and jsonl are different; not every command supports them.',
|
|
513
|
+
'required_scopes: null means undocumented or dynamic; [] means explicitly no token scopes required. Token scopes are separate from the --scope resource option.',
|
|
514
|
+
"Use 'bdy discover' for an index. Selecting a command without subcommands returns full details automatically; use --full for a whole subtree. Aliases are accepted.",
|
|
515
|
+
"Run 'bdy discover --help' for the JSON contract and field meanings.",
|
|
516
|
+
];
|
|
517
|
+
exports.HELP_COMMAND_DISCOVER = `
|
|
518
|
+
JSON CONTRACT:
|
|
519
|
+
schema_version: version of this JSON contract (currently 1).
|
|
520
|
+
cli_version: installed CLI version described by the catalog.
|
|
521
|
+
commands: a flat list of paths and descriptions by default; --full returns the command tree with full details.
|
|
522
|
+
Selecting a command without visible subcommands always returns full details.
|
|
523
|
+
tips: guidance for using the CLI.
|
|
524
|
+
global_options: root options, which must precede the subcommand; included with full details.
|
|
525
|
+
|
|
526
|
+
Full command entries contain command, aliases, description, usage, arguments,
|
|
527
|
+
options, required_scopes, examples and subcommands. Examples contain description
|
|
528
|
+
and command. Arguments retain their positional order.
|
|
529
|
+
|
|
530
|
+
Paths use canonical names; aliases are accepted when selecting a subtree.
|
|
531
|
+
Commands are sorted by name within each level. Hidden commands and commands
|
|
532
|
+
unavailable in the current environment are omitted.
|
|
533
|
+
|
|
534
|
+
FIELD MEANINGS:
|
|
535
|
+
options[].required: the option itself must be supplied.
|
|
536
|
+
options[].value.required: a value is required when the option is supplied.
|
|
537
|
+
options[].value: null for boolean flags; negated identifies flags like --no-wait.
|
|
538
|
+
variadic: accepts multiple values.
|
|
539
|
+
choices: declared choices or bare identifier alternatives in the value placeholder.
|
|
540
|
+
Placeholders such as content|@path are free-form input, not choices.
|
|
541
|
+
--help is documented once in global_options and is available on every command.
|
|
542
|
+
default: default explicitly registered in the CLI definition.
|
|
543
|
+
documented_default: default described in help, possibly conditional.
|
|
544
|
+
null defaults mean missing metadata, not necessarily no runtime default.
|
|
545
|
+
env: environment variable name, never its value. Configuration and environment
|
|
546
|
+
values are not resolved by discovery.
|
|
547
|
+
required_scopes: null means undocumented or dynamic; [] means explicitly no
|
|
548
|
+
token scopes required. Token scopes are separate from the --scope resource option.
|
|
549
|
+
|
|
550
|
+
ERRORS:
|
|
551
|
+
Invalid paths or options return an error object with code, message and hint,
|
|
552
|
+
and exit 1.
|
|
553
|
+
Error codes: unknown_command (path not found), usage_error (invalid options).
|
|
554
|
+
`;
|
|
473
555
|
exports.OPTION_FORMAT = 'Output format: json, text. Default: text';
|
|
474
556
|
exports.OPTION_FORMAT_JSONL = 'Output format: jsonl, text. Default: text';
|
|
475
557
|
exports.OPTION_REST_API_WORKSPACE = 'Workspace URL handle. Can be set via variable: BUDDY_WORKSPACE';
|
|
@@ -710,12 +792,12 @@ exports.DEBUG_WAIT_FOR_IDLE = 'Wait for network idle';
|
|
|
710
792
|
const DEBUG_WAIT_FOR_IDLE_TIMEOUT = (timeout) => `Wait for network idle timeout after ${timeout}ms`;
|
|
711
793
|
exports.DEBUG_WAIT_FOR_IDLE_TIMEOUT = DEBUG_WAIT_FOR_IDLE_TIMEOUT;
|
|
712
794
|
// Sandbox commands
|
|
713
|
-
exports.DESC_COMMAND_SANDBOX = '
|
|
795
|
+
exports.DESC_COMMAND_SANDBOX = 'Create and manage cloud sandboxes: run commands and apps, take snapshots, expose endpoints';
|
|
714
796
|
exports.DESC_COMMAND_SANDBOX_CREATE = 'Create a new sandbox. Pre-installed tools: node 24, docker 29, go 1.25, python 3, git, curl, wget, jq, rsync, ripgrep, unzip, nano, bdy';
|
|
715
|
-
exports.DESC_COMMAND_SANDBOX_GET_YAML = '
|
|
716
|
-
exports.DESC_COMMAND_SANDBOX_UPDATE = 'Update sandbox';
|
|
717
|
-
exports.DESC_COMMAND_SANDBOX_LIST = 'List
|
|
718
|
-
exports.DESC_COMMAND_SANDBOX_GET = '
|
|
797
|
+
exports.DESC_COMMAND_SANDBOX_GET_YAML = 'Print a sandbox definition as YAML';
|
|
798
|
+
exports.DESC_COMMAND_SANDBOX_UPDATE = 'Update a sandbox from a YAML definition';
|
|
799
|
+
exports.DESC_COMMAND_SANDBOX_LIST = 'List sandboxes';
|
|
800
|
+
exports.DESC_COMMAND_SANDBOX_GET = 'Show sandbox details';
|
|
719
801
|
exports.DESC_COMMAND_SANDBOX_DESTROY = 'Delete a sandbox';
|
|
720
802
|
exports.DESC_COMMAND_SANDBOX_START = 'Start a stopped sandbox';
|
|
721
803
|
exports.DESC_COMMAND_SANDBOX_STOP = 'Stop a running sandbox';
|
|
@@ -724,9 +806,10 @@ exports.DESC_COMMAND_SANDBOX_LOGS = `Show the sandbox setup log: stdout/stderr a
|
|
|
724
806
|
Does NOT include:
|
|
725
807
|
- application output → use "bdy sb app logs <sandbox-identifier> <app-id>"
|
|
726
808
|
- exec output → use "bdy sb exec logs <sandbox-identifier> <command-id>"`;
|
|
727
|
-
exports.DESC_COMMAND_SANDBOX_STATUS = '
|
|
728
|
-
exports.DESC_COMMAND_SANDBOX_EXEC = '
|
|
729
|
-
exports.
|
|
809
|
+
exports.DESC_COMMAND_SANDBOX_STATUS = 'Show sandbox status';
|
|
810
|
+
exports.DESC_COMMAND_SANDBOX_EXEC = 'Run commands in a sandbox and manage them';
|
|
811
|
+
exports.DESC_COMMAND_SANDBOX_EXEC_COMMAND = 'Execute a command in sandbox. Commands run as buddy with passwordless sudo. Use sudo for package installs';
|
|
812
|
+
exports.DESC_COMMAND_SANDBOX_APP = 'Manage long-running apps in a sandbox';
|
|
730
813
|
exports.DESC_COMMAND_SANDBOX_SSH = `Open an interactive SSH session to a sandbox
|
|
731
814
|
Authenticates with the SSH key you added to your Buddy account - the session always runs as the buddy user, whatever login is sent
|
|
732
815
|
Arguments for ssh itself, or a command to run instead of a shell, go after --`;
|
|
@@ -806,16 +889,16 @@ exports.TXT_SANDBOX_WAITING_APPS = 'Waiting for sandbox apps...';
|
|
|
806
889
|
exports.TXT_SANDBOX_WAITING_STOP = 'Waiting for sandbox stop...';
|
|
807
890
|
exports.TXT_SANDBOX_WAITING_START = 'Waiting for sandbox start...';
|
|
808
891
|
// Sandbox command subcommands
|
|
809
|
-
exports.DESC_COMMAND_SANDBOX_APP_LIST = 'List
|
|
810
|
-
exports.DESC_COMMAND_SANDBOX_APP_ADD = 'Add
|
|
811
|
-
exports.DESC_COMMAND_SANDBOX_APP_REMOVE = 'Remove
|
|
812
|
-
exports.DESC_COMMAND_SANDBOX_EXEC_LIST = 'List
|
|
813
|
-
exports.DESC_COMMAND_SANDBOX_EXEC_STATUS = '
|
|
814
|
-
exports.DESC_COMMAND_SANDBOX_APP_LOGS = '
|
|
815
|
-
exports.DESC_COMMAND_SANDBOX_APP_STATUS = '
|
|
816
|
-
exports.DESC_COMMAND_SANDBOX_APP_STOP = 'Stop
|
|
817
|
-
exports.DESC_COMMAND_SANDBOX_APP_START = 'Start
|
|
818
|
-
exports.DESC_COMMAND_SANDBOX_EXEC_LOGS = '
|
|
892
|
+
exports.DESC_COMMAND_SANDBOX_APP_LIST = 'List apps in a sandbox';
|
|
893
|
+
exports.DESC_COMMAND_SANDBOX_APP_ADD = 'Add an app to a sandbox';
|
|
894
|
+
exports.DESC_COMMAND_SANDBOX_APP_REMOVE = 'Remove an app from a sandbox';
|
|
895
|
+
exports.DESC_COMMAND_SANDBOX_EXEC_LIST = 'List commands started in a sandbox';
|
|
896
|
+
exports.DESC_COMMAND_SANDBOX_EXEC_STATUS = 'Show the status of a command started with exec';
|
|
897
|
+
exports.DESC_COMMAND_SANDBOX_APP_LOGS = 'Show app logs';
|
|
898
|
+
exports.DESC_COMMAND_SANDBOX_APP_STATUS = 'Show app status';
|
|
899
|
+
exports.DESC_COMMAND_SANDBOX_APP_STOP = 'Stop an app';
|
|
900
|
+
exports.DESC_COMMAND_SANDBOX_APP_START = 'Start an app';
|
|
901
|
+
exports.DESC_COMMAND_SANDBOX_EXEC_LOGS = 'Show the output of a command started with exec';
|
|
819
902
|
exports.DESC_COMMAND_SANDBOX_EXEC_KILL = 'Kill a running command';
|
|
820
903
|
exports.OPTION_SANDBOX_COMMAND_ID = 'Command ID';
|
|
821
904
|
exports.OPTION_SANDBOX_APP_ID = 'App ID';
|
|
@@ -826,9 +909,9 @@ const TXT_SANDBOX_COMMAND_KILLED = (commandId) => `Command killed: ${commandId}`
|
|
|
826
909
|
exports.TXT_SANDBOX_COMMAND_KILLED = TXT_SANDBOX_COMMAND_KILLED;
|
|
827
910
|
// Sandbox snapshot subcommands
|
|
828
911
|
exports.DESC_COMMAND_SANDBOX_SNAPSHOT = 'Manage sandbox snapshots';
|
|
829
|
-
exports.DESC_COMMAND_SANDBOX_SNAPSHOT_LIST = 'List snapshots';
|
|
830
|
-
exports.DESC_COMMAND_SANDBOX_SNAPSHOT_CREATE = 'Create a snapshot';
|
|
831
|
-
exports.DESC_COMMAND_SANDBOX_SNAPSHOT_GET = '
|
|
912
|
+
exports.DESC_COMMAND_SANDBOX_SNAPSHOT_LIST = 'List snapshots of a sandbox';
|
|
913
|
+
exports.DESC_COMMAND_SANDBOX_SNAPSHOT_CREATE = 'Create a snapshot of a sandbox';
|
|
914
|
+
exports.DESC_COMMAND_SANDBOX_SNAPSHOT_GET = 'Show snapshot details';
|
|
832
915
|
exports.DESC_COMMAND_SANDBOX_SNAPSHOT_DELETE = 'Delete a snapshot';
|
|
833
916
|
exports.OPTION_SANDBOX_SNAPSHOT_NAME = 'Snapshot name (optional, auto-generated if not provided)';
|
|
834
917
|
exports.OPTION_SANDBOX_SNAPSHOT_NAME_ARG = 'Snapshot name';
|
|
@@ -845,10 +928,10 @@ exports.ERR_SANDBOX_SNAPSHOT_NOT_FOUND = 'Snapshot not found';
|
|
|
845
928
|
exports.ERR_SANDBOX_SNAPSHOTS_NOT_FOUND = 'No snapshots found';
|
|
846
929
|
exports.ERR_SANDBOX_SNAPSHOT_OS_CONFLICT = '--snapshot and --os cannot be used together: a snapshot carries its own OS';
|
|
847
930
|
// Sandbox endpoint subcommands
|
|
848
|
-
exports.DESC_COMMAND_SANDBOX_ENDPOINT = 'Manage sandbox
|
|
849
|
-
exports.DESC_COMMAND_SANDBOX_ENDPOINT_LIST = 'List endpoints';
|
|
850
|
-
exports.DESC_COMMAND_SANDBOX_ENDPOINT_GET = '
|
|
851
|
-
exports.DESC_COMMAND_SANDBOX_ENDPOINT_ADD = 'Add an endpoint.
|
|
931
|
+
exports.DESC_COMMAND_SANDBOX_ENDPOINT = 'Manage public endpoints that expose sandbox ports';
|
|
932
|
+
exports.DESC_COMMAND_SANDBOX_ENDPOINT_LIST = 'List endpoints of a sandbox';
|
|
933
|
+
exports.DESC_COMMAND_SANDBOX_ENDPOINT_GET = 'Show endpoint details';
|
|
934
|
+
exports.DESC_COMMAND_SANDBOX_ENDPOINT_ADD = 'Add an endpoint exposing a sandbox port. The server must listen on 0.0.0.0, otherwise it is unreachable';
|
|
852
935
|
exports.DESC_COMMAND_SANDBOX_ENDPOINT_DELETE = 'Delete an endpoint';
|
|
853
936
|
exports.OPTION_SANDBOX_ENDPOINT_NAME = 'Endpoint name';
|
|
854
937
|
exports.OPTION_SANDBOX_ENDPOINT_NAME_ARG = 'Endpoint name';
|
|
@@ -867,7 +950,7 @@ exports.ERR_SANDBOX_ENDPOINT_NOT_FOUND = 'Endpoint not found';
|
|
|
867
950
|
exports.ERR_SANDBOX_ENDPOINTS_NOT_FOUND = 'No endpoints found';
|
|
868
951
|
exports.ERR_SANDBOX_APPS_NOT_FOUND = 'No apps found';
|
|
869
952
|
// Sandbox cp command
|
|
870
|
-
exports.DESC_COMMAND_SANDBOX_CP = 'Copy files
|
|
953
|
+
exports.DESC_COMMAND_SANDBOX_CP = 'Copy files and directories between the local machine and a sandbox';
|
|
871
954
|
exports.OPTION_SANDBOX_CP_SOURCE = 'Local path or sandbox path (sandbox-id:/path)';
|
|
872
955
|
exports.OPTION_SANDBOX_CP_DEST = 'Local path or sandbox path (sandbox-id:/path)';
|
|
873
956
|
exports.OPTION_SANDBOX_CP_DOWNLOAD_MERGE = 'Merge contents of the destination directory with sandbox content';
|
|
@@ -920,15 +1003,16 @@ exports.TXT_SANDBOX_EXEC_FAILED = TXT_SANDBOX_EXEC_FAILED;
|
|
|
920
1003
|
// Target commands
|
|
921
1004
|
exports.DESC_COMMAND_TARGET = 'Manage deployment targets';
|
|
922
1005
|
exports.DESC_COMMAND_TARGET_LIST = 'List targets';
|
|
923
|
-
exports.DESC_COMMAND_TARGET_GET = '
|
|
1006
|
+
exports.DESC_COMMAND_TARGET_GET = 'Show target details';
|
|
924
1007
|
exports.DESC_COMMAND_TARGET_CREATE = 'Create a target from YAML';
|
|
925
1008
|
exports.DESC_COMMAND_TARGET_UPDATE = 'Update a target from YAML';
|
|
926
1009
|
exports.DESC_COMMAND_TARGET_DELETE = 'Delete a target';
|
|
927
|
-
exports.DESC_COMMAND_TARGET_EXEC = '
|
|
928
|
-
exports.
|
|
1010
|
+
exports.DESC_COMMAND_TARGET_EXEC = 'Run commands on a target and manage executions';
|
|
1011
|
+
exports.DESC_COMMAND_TARGET_EXEC_COMMAND = 'Execute a command on a target';
|
|
1012
|
+
exports.DESC_COMMAND_TARGET_EXEC_STATUS = 'Show the status of an execution';
|
|
929
1013
|
exports.DESC_COMMAND_TARGET_EXEC_KILL = 'Cancel a running execution';
|
|
930
1014
|
exports.DESC_COMMAND_TARGET_EXEC_LIST = 'List target executions';
|
|
931
|
-
exports.DESC_COMMAND_TARGET_EXEC_LOGS = '
|
|
1015
|
+
exports.DESC_COMMAND_TARGET_EXEC_LOGS = 'Show execution logs';
|
|
932
1016
|
// Target options
|
|
933
1017
|
exports.OPTION_TARGET_IDENTIFIER = 'Target identifier';
|
|
934
1018
|
exports.OPTION_TARGET_PIPELINE = 'Pipeline identifier to scope the target to. Requires --project';
|
|
@@ -993,7 +1077,7 @@ exports.TXT_TARGET_EXEC_KILLED = TXT_TARGET_EXEC_KILLED;
|
|
|
993
1077
|
// Environment commands
|
|
994
1078
|
exports.DESC_COMMAND_ENVIRONMENT = 'Manage environments';
|
|
995
1079
|
exports.DESC_COMMAND_ENVIRONMENT_LIST = 'List environments';
|
|
996
|
-
exports.DESC_COMMAND_ENVIRONMENT_GET = '
|
|
1080
|
+
exports.DESC_COMMAND_ENVIRONMENT_GET = 'Show environment details';
|
|
997
1081
|
exports.DESC_COMMAND_ENVIRONMENT_CREATE = 'Create an environment';
|
|
998
1082
|
exports.DESC_COMMAND_ENVIRONMENT_UPDATE = 'Update an environment';
|
|
999
1083
|
exports.DESC_COMMAND_ENVIRONMENT_DELETE = 'Delete an environment';
|
|
@@ -1020,17 +1104,17 @@ exports.TXT_ENVIRONMENT_DELETE_CONFIRM = TXT_ENVIRONMENT_DELETE_CONFIRM;
|
|
|
1020
1104
|
const TXT_ENVIRONMENT_DELETED = (identifier) => `Environment deleted: ${identifier}`;
|
|
1021
1105
|
exports.TXT_ENVIRONMENT_DELETED = TXT_ENVIRONMENT_DELETED;
|
|
1022
1106
|
// Whoami command
|
|
1023
|
-
exports.DESC_COMMAND_WHOAMI = '
|
|
1107
|
+
exports.DESC_COMMAND_WHOAMI = 'Show who you are logged in as';
|
|
1024
1108
|
exports.TXT_WHOAMI_NO_WORKSPACE = 'Not set. Run `bdy ws set` to set a workspace';
|
|
1025
1109
|
exports.ERR_WHOAMI_LOGOUT = 'Not logged in. Run `bdy login` to authenticate.';
|
|
1026
1110
|
// api command
|
|
1027
|
-
exports.DESC_COMMAND_API = '
|
|
1111
|
+
exports.DESC_COMMAND_API = 'Call the Buddy REST API directly';
|
|
1028
1112
|
exports.DESC_COMMAND_API_LIST = 'List Buddy API endpoints';
|
|
1029
|
-
exports.DESC_COMMAND_API_POST = '
|
|
1030
|
-
exports.DESC_COMMAND_API_PUT = '
|
|
1031
|
-
exports.DESC_COMMAND_API_DELETE = '
|
|
1032
|
-
exports.DESC_COMMAND_API_PATCH = '
|
|
1033
|
-
exports.DESC_COMMAND_API_GET = '
|
|
1113
|
+
exports.DESC_COMMAND_API_POST = 'Send a POST request to an API endpoint';
|
|
1114
|
+
exports.DESC_COMMAND_API_PUT = 'Send a PUT request to an API endpoint';
|
|
1115
|
+
exports.DESC_COMMAND_API_DELETE = 'Send a DELETE request to an API endpoint';
|
|
1116
|
+
exports.DESC_COMMAND_API_PATCH = 'Send a PATCH request to an API endpoint';
|
|
1117
|
+
exports.DESC_COMMAND_API_GET = 'Send a GET request to an API endpoint';
|
|
1034
1118
|
exports.DESC_COMMAND_API_REQUEST_URL = 'Request url';
|
|
1035
1119
|
exports.DESC_COMMAND_API_WORKSPACE = 'Workspace domain. If url contains {workspace_domain} it will be automatically replaced with provided value.';
|
|
1036
1120
|
exports.DESC_COMMAND_API_PROJECT = 'Project name. If url contains {project_name} it will be automatically replaced with provided value.';
|
|
@@ -1039,7 +1123,7 @@ exports.DESC_COMMAND_API_OUTPUT = 'Write to file instead of stdout';
|
|
|
1039
1123
|
exports.DESC_COMMAND_API_DATA = 'HTTP request urlencoded data. To specify file use @path/to/file format in value';
|
|
1040
1124
|
exports.DESC_COMMAND_API_JSON = 'HTTP request json data. To specify file containing json use @path/to/file format in value';
|
|
1041
1125
|
exports.DESC_COMMAND_API_FORM = 'HTTP request multipart data. Can be used multiple times. To specify file use @path/to/file format in value';
|
|
1042
|
-
exports.DESC_COMMAND_API_INFO = 'Show
|
|
1126
|
+
exports.DESC_COMMAND_API_INFO = 'Show the documentation of an API endpoint';
|
|
1043
1127
|
exports.ERR_API_REQUEST_OUTPUT_EXISTS = 'Output path already exists';
|
|
1044
1128
|
exports.ERR_API_REQUEST_FILE_ERROR = 'Cannot read provided file';
|
|
1045
1129
|
exports.ERR_API_REQUEST_INVALID_JSON = 'JSON data is invalid';
|
|
@@ -1091,7 +1175,7 @@ exports.DESC_COMMAND_LOGIN = 'Log in to Buddy';
|
|
|
1091
1175
|
exports.DESC_COMMAND_LOGOUT = 'Log out from Buddy';
|
|
1092
1176
|
exports.TXT_LOGOUT_SUCCESS = 'Logged out successfully.';
|
|
1093
1177
|
// Register command
|
|
1094
|
-
exports.DESC_COMMAND_REGISTER = '
|
|
1178
|
+
exports.DESC_COMMAND_REGISTER = 'Create a Buddy account';
|
|
1095
1179
|
exports.OPT_COMMAND_REGISTER_EMAIL = 'Register with email';
|
|
1096
1180
|
exports.OPT_COMMAND_REGISTER_NAME = 'Register with name';
|
|
1097
1181
|
exports.ERR_COMMAND_REGISTER_INVALID_EMAIL = 'Email is invalid';
|
|
@@ -1101,8 +1185,8 @@ exports.TXT_COMMAND_REGISTER_PROVIDE_NAME = 'Provide name:';
|
|
|
1101
1185
|
// Workspace commands
|
|
1102
1186
|
exports.DESC_COMMAND_WORKSPACE = 'Manage workspaces';
|
|
1103
1187
|
exports.DESC_COMMAND_WORKSPACE_LIST = 'List available workspaces';
|
|
1104
|
-
exports.DESC_COMMAND_WORKSPACE_SET = 'Set
|
|
1105
|
-
exports.DESC_COMMAND_WORKSPACE_GET = '
|
|
1188
|
+
exports.DESC_COMMAND_WORKSPACE_SET = 'Set the default workspace used by other commands';
|
|
1189
|
+
exports.DESC_COMMAND_WORKSPACE_GET = 'Show the default workspace';
|
|
1106
1190
|
exports.ARG_COMMAND_WORKSPACE = 'Workspace domain to set';
|
|
1107
1191
|
const TXT_WORKSPACE_SET_SUCCESS = (workspace) => `Workspace set to: ${workspace}`;
|
|
1108
1192
|
exports.TXT_WORKSPACE_SET_SUCCESS = TXT_WORKSPACE_SET_SUCCESS;
|
|
@@ -1151,18 +1235,18 @@ const ERR_API_MESSAGE_REPLACER = (message, path, baseUrl, rateLimitTs) => {
|
|
|
1151
1235
|
};
|
|
1152
1236
|
exports.ERR_API_MESSAGE_REPLACER = ERR_API_MESSAGE_REPLACER;
|
|
1153
1237
|
// distro & route commands
|
|
1154
|
-
exports.DESC_COMMAND_DISTRO = 'Manage distributions';
|
|
1155
|
-
exports.DESC_COMMAND_DISTRO_CREATE = 'Create distribution
|
|
1156
|
-
exports.DESC_COMMAND_ROUTE_CREATE = '
|
|
1157
|
-
exports.DESC_COMMAND_DISTRO_DELETE = 'Delete distribution
|
|
1158
|
-
exports.DESC_COMMAND_DISTRO_LIST = 'List distributions
|
|
1159
|
-
exports.DESC_COMMAND_ROUTE_LIST = 'List routes
|
|
1160
|
-
exports.DESC_COMMAND_DISTRO_GET = '
|
|
1161
|
-
exports.DESC_COMMAND_DISTRO_UPDATE = 'Update distribution
|
|
1162
|
-
exports.DESC_COMMAND_ROUTE_GET = '
|
|
1163
|
-
exports.DESC_COMMAND_ROUTE_DELETE = 'Delete route
|
|
1164
|
-
exports.DESC_COMMAND_ROUTE_UPDATE = 'Update route
|
|
1165
|
-
exports.DESC_COMMAND_ROUTE = 'Manage distribution
|
|
1238
|
+
exports.DESC_COMMAND_DISTRO = 'Manage distributions that route traffic from domains to artifacts, sandboxes and other targets';
|
|
1239
|
+
exports.DESC_COMMAND_DISTRO_CREATE = 'Create a distribution';
|
|
1240
|
+
exports.DESC_COMMAND_ROUTE_CREATE = 'Add a route to a distribution';
|
|
1241
|
+
exports.DESC_COMMAND_DISTRO_DELETE = 'Delete a distribution';
|
|
1242
|
+
exports.DESC_COMMAND_DISTRO_LIST = 'List distributions';
|
|
1243
|
+
exports.DESC_COMMAND_ROUTE_LIST = 'List routes of a distribution';
|
|
1244
|
+
exports.DESC_COMMAND_DISTRO_GET = 'Show distribution details';
|
|
1245
|
+
exports.DESC_COMMAND_DISTRO_UPDATE = 'Update a distribution';
|
|
1246
|
+
exports.DESC_COMMAND_ROUTE_GET = 'Show route details';
|
|
1247
|
+
exports.DESC_COMMAND_ROUTE_DELETE = 'Delete a route';
|
|
1248
|
+
exports.DESC_COMMAND_ROUTE_UPDATE = 'Update a route';
|
|
1249
|
+
exports.DESC_COMMAND_ROUTE = 'Manage routes of a distribution';
|
|
1166
1250
|
exports.OPT_COMMAND_NOTE = 'Resource note';
|
|
1167
1251
|
exports.OPT_COMMAND_AGENT_NOTE = 'Note for AI agents operating on this resource';
|
|
1168
1252
|
exports.OPT_COMMAND_SCOPE = 'Force scope (WORKSPACE, PROJECT). By default calculated by provided options and environmental variables (--project, BUDDY_PROJECT, linked project)';
|
|
@@ -1217,10 +1301,10 @@ exports.ERR_WRONG_ROUTE_TARGET = ERR_WRONG_ROUTE_TARGET;
|
|
|
1217
1301
|
exports.ERR_ROUTE_NO_DEFAULT = 'Target in Default region is mandatory';
|
|
1218
1302
|
// domain commands
|
|
1219
1303
|
exports.DESC_COMMAND_DOMAIN = 'Manage zones (called "domains" in Buddy). A zone can be used in distribution routes. Zones can be apex (example.com) or multi-level (my-app.example.dev) — the whole string is one zone';
|
|
1220
|
-
exports.DESC_COMMAND_DOMAIN_BUY = '
|
|
1221
|
-
exports.DESC_COMMAND_DOMAIN_SEARCH = 'Search
|
|
1222
|
-
exports.DESC_COMMAND_DOMAIN_LIST = 'List domains';
|
|
1223
|
-
exports.DESC_COMMAND_DOMAIN_GET = '
|
|
1304
|
+
exports.DESC_COMMAND_DOMAIN_BUY = 'Search for and buy a domain';
|
|
1305
|
+
exports.DESC_COMMAND_DOMAIN_SEARCH = 'Search for available domains by name or description';
|
|
1306
|
+
exports.DESC_COMMAND_DOMAIN_LIST = 'List domains in a workspace';
|
|
1307
|
+
exports.DESC_COMMAND_DOMAIN_GET = 'Show domain details';
|
|
1224
1308
|
exports.OPT_COMMAND_DOMAIN_BUY_TLD = 'Filter tld. Can be passed multiple times or separated by comma. Example: --tld=de --tld=com,io';
|
|
1225
1309
|
exports.OPT_COMMAND_DOMAIN_BUY_OWNER = 'Buy domain on workspace owner behalf';
|
|
1226
1310
|
exports.OPT_COMMAND_DOMAIN_PHRASE = 'Phrase, full domain or part of it';
|
|
@@ -1235,23 +1319,24 @@ exports.OPTION_COMMAND_DOMAIN_IDENTIFIER = 'Domain ID or name';
|
|
|
1235
1319
|
exports.ERR_COMMAND_DOMAIN_UNAVAILABLE = 'Domain unavailable';
|
|
1236
1320
|
// artifact commands
|
|
1237
1321
|
exports.DESC_COMMAND_ARTIFACT_VERSION = 'Manage artifact versions';
|
|
1238
|
-
exports.DESC_COMMAND_ARTIFACT_COMPOSER = 'Publish to
|
|
1239
|
-
exports.DESC_COMMAND_ARTIFACT_LIST = 'List artifacts
|
|
1240
|
-
exports.DESC_COMMAND_ARTIFACT_DOCKER_LOGIN = '
|
|
1241
|
-
exports.
|
|
1242
|
-
exports.
|
|
1243
|
-
exports.
|
|
1322
|
+
exports.DESC_COMMAND_ARTIFACT_COMPOSER = 'Publish Composer packages to a Composer artifact';
|
|
1323
|
+
exports.DESC_COMMAND_ARTIFACT_LIST = 'List artifacts';
|
|
1324
|
+
exports.DESC_COMMAND_ARTIFACT_DOCKER_LOGIN = 'Log in to the Buddy Docker registry';
|
|
1325
|
+
exports.DESC_COMMAND_ARTIFACT_DOCKER = 'Work with the Buddy Docker registry';
|
|
1326
|
+
exports.DESC_COMMAND_ARTIFACT_VERSION_DELETE = 'Delete an artifact version';
|
|
1327
|
+
exports.DESC_COMMAND_ARTIFACT_VERSION_LIST = 'List versions of an artifact';
|
|
1328
|
+
exports.DESC_COMMAND_ARTIFACT_VERSION_GET = 'Show artifact version details';
|
|
1244
1329
|
exports.ERR_COMMAND_ARTIFACT_NO_PROJECTS = 'No artifacts found';
|
|
1245
|
-
exports.DESC_COMMAND_ARTIFACT_DELETE = 'Delete an artifact and all its versions
|
|
1330
|
+
exports.DESC_COMMAND_ARTIFACT_DELETE = 'Delete an artifact and all its versions';
|
|
1246
1331
|
const TXT_ARTIFACT_DELETE_CONFIRM = (name) => `Are you sure you want to delete artifact '${name}' and all its versions?`;
|
|
1247
1332
|
exports.TXT_ARTIFACT_DELETE_CONFIRM = TXT_ARTIFACT_DELETE_CONFIRM;
|
|
1248
1333
|
const TXT_ARTIFACT_VERSION_DELETE_CONFIRM = (name, version) => `Are you sure you want to delete artifact '${name}' version '${version}'?`;
|
|
1249
1334
|
exports.TXT_ARTIFACT_VERSION_DELETE_CONFIRM = TXT_ARTIFACT_VERSION_DELETE_CONFIRM;
|
|
1250
1335
|
exports.TXT_ARTIFACT_DOCKER_LOGIN_SUCCESS = 'Login succeeded';
|
|
1251
1336
|
exports.TXT_ARTIFACT_DOCKER_LOGIN_FAILED = 'Login failed. Check your token and try again later...';
|
|
1252
|
-
exports.DESC_COMMAND_ARTIFACT_GET = '
|
|
1253
|
-
exports.DESC_COMMAND_ARTIFACT_COMPOSER_PUBLISH = 'Publish
|
|
1254
|
-
exports.DESC_COMMAND_ARTIFACT_CREATE = 'Create
|
|
1337
|
+
exports.DESC_COMMAND_ARTIFACT_GET = 'Show artifact details';
|
|
1338
|
+
exports.DESC_COMMAND_ARTIFACT_COMPOSER_PUBLISH = 'Publish the Composer package in a directory as a new artifact version';
|
|
1339
|
+
exports.DESC_COMMAND_ARTIFACT_CREATE = 'Create an artifact';
|
|
1255
1340
|
exports.OPT_COMMAND_ARTIFACT_TYPE = 'Artifact type: "BUCKET" or "CONTAINER"';
|
|
1256
1341
|
exports.OPT_COMMAND_ARTIFACT_NAME = 'Artifact name';
|
|
1257
1342
|
exports.OPT_COMMAND_ARTIFACT_CREATE_IDENTIFIER = 'Artifact identifier (auto-generated from name if omitted)';
|
|
@@ -1300,7 +1385,7 @@ exports.DESC_COMMAND_PROJECT = 'Manage projects';
|
|
|
1300
1385
|
exports.DESC_COMMAND_PROJECT_GIT_CREDENTIAL = 'Git credential helper for Buddy';
|
|
1301
1386
|
exports.DESC_COMMAND_PROJECT_GIT = 'Git helper for Buddy';
|
|
1302
1387
|
exports.DESC_COMMAND_PROJECT_LIST = 'List projects in current workspace';
|
|
1303
|
-
exports.DESC_COMMAND_PROJECT_LINK = 'Link directory
|
|
1388
|
+
exports.DESC_COMMAND_PROJECT_LINK = 'Link the current directory to a project so commands use it by default';
|
|
1304
1389
|
exports.OPT_COMMAND_PROJECT_LINK_RELINK = 'Force relinking directory if already linked to project';
|
|
1305
1390
|
exports.OPT_COMMAND_PROJECT_LINK_GIT = 'Force initialization of GIT repository';
|
|
1306
1391
|
exports.OPT_COMMAND_PROJECT_LINK_DIRECTORY = 'Path to directory where link the project';
|
|
@@ -1328,385 +1413,822 @@ const TXT_LOGIN_SELECT_PROJECT = (optional) => `Select project (${optional ? 'op
|
|
|
1328
1413
|
exports.TXT_LOGIN_SELECT_PROJECT = TXT_LOGIN_SELECT_PROJECT;
|
|
1329
1414
|
exports.ERR_PROJECT_NO_PROJECTS = 'No projects found in this workspace';
|
|
1330
1415
|
// Examples
|
|
1331
|
-
exports.EXAMPLE_SANDBOX_CP =
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
exports.
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1416
|
+
exports.EXAMPLE_SANDBOX_CP = [
|
|
1417
|
+
{
|
|
1418
|
+
description: 'copy file from sandbox to local directory with a new name:',
|
|
1419
|
+
command: 'bdy sb cp sandbox-identifier:/path/to/file /path/to/dir/name',
|
|
1420
|
+
},
|
|
1421
|
+
{
|
|
1422
|
+
description: 'if local path file already exists you must replace it:',
|
|
1423
|
+
command: 'bdy sb cp sandbox-identifier:/path/to/file /path/to/dir/name --replace',
|
|
1424
|
+
},
|
|
1425
|
+
{
|
|
1426
|
+
description: 'copy file from sandbox INTO local directory:',
|
|
1427
|
+
command: 'bdy sb cp sandbox-identifier:/path/to/file /path/to/dir/',
|
|
1428
|
+
},
|
|
1429
|
+
{
|
|
1430
|
+
description: 'if local directory already exists you must merge it or replace it:',
|
|
1431
|
+
command: 'bdy sb cp sandbox-identifier:/path/to/file /path/to/dir/ --merge',
|
|
1432
|
+
},
|
|
1433
|
+
{
|
|
1434
|
+
description: 'if local directory already exists you must merge it or replace it:',
|
|
1435
|
+
command: 'bdy sb cp sandbox-identifier:/path/to/file /path/to/dir/ --replace',
|
|
1436
|
+
},
|
|
1437
|
+
{
|
|
1438
|
+
description: 'copy directory from sandbox to local directory with a new name',
|
|
1439
|
+
command: 'bdy sb cp sandbox-identifier:/path/to/dir /path/to/dir',
|
|
1440
|
+
},
|
|
1441
|
+
{
|
|
1442
|
+
description: 'if local directory already exists you must replace it:',
|
|
1443
|
+
command: 'bdy sb cp sandbox-identifier:/path/to/dir /path/to/dir --replace',
|
|
1444
|
+
},
|
|
1445
|
+
{
|
|
1446
|
+
description: 'copy directory from sandbox INTO local directory',
|
|
1447
|
+
command: 'bdy sb cp sandbox-identifier:/path/to/dir /path/to/dir/',
|
|
1448
|
+
},
|
|
1449
|
+
{
|
|
1450
|
+
description: 'if local directory already exists you must merge it or replace it:',
|
|
1451
|
+
command: 'bdy sb cp sandbox-identifier:/path/to/dir /path/to/dir/ --merge',
|
|
1452
|
+
},
|
|
1453
|
+
{
|
|
1454
|
+
description: 'if local directory already exists you must merge it or replace it:',
|
|
1455
|
+
command: 'bdy sb cp sandbox-identifier:/path/to/dir /path/to/dir/ --replace',
|
|
1456
|
+
},
|
|
1457
|
+
{
|
|
1458
|
+
description: 'copy local file to sandbox with a new name:',
|
|
1459
|
+
command: 'bdy sb cp /path/to/file sandbox-identifier:/path/to/dir/name',
|
|
1460
|
+
},
|
|
1461
|
+
{
|
|
1462
|
+
description: 'copy local file into sandbox directory',
|
|
1463
|
+
command: 'bdy sb cp /path/to/file sandbox-identifier:/path/to/dir/',
|
|
1464
|
+
},
|
|
1465
|
+
{
|
|
1466
|
+
description: 'copy contents of local directory to sandbox directory:',
|
|
1467
|
+
command: 'bdy sb cp /path/to/dir sandbox-identifier:/path/to/dir',
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
description: 'copy local directory into sandbox directory:',
|
|
1471
|
+
command: 'bdy sb cp /path/to/dir sandbox-identifier:/path/to/dir/',
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
description: 'upload a directory while ignoring globs (repeat --ignore for multiple patterns):',
|
|
1475
|
+
command: 'bdy sb cp /path/to/dir sandbox-identifier:/path/to/dir --ignore "node_modules/**" "**/*.log" ".git/**"',
|
|
1476
|
+
},
|
|
1477
|
+
];
|
|
1478
|
+
exports.EXAMPLE_DISTRO_LIST = [
|
|
1479
|
+
{
|
|
1480
|
+
description: 'list distributions',
|
|
1481
|
+
command: 'bdy distro ls',
|
|
1482
|
+
},
|
|
1483
|
+
];
|
|
1484
|
+
exports.EXAMPLE_DISTRO_GET = [
|
|
1485
|
+
{
|
|
1486
|
+
description: 'get distribution details',
|
|
1487
|
+
command: 'bdy distro get distro-identifier',
|
|
1488
|
+
},
|
|
1489
|
+
];
|
|
1490
|
+
exports.EXAMPLE_DISTRO_UPDATE = [
|
|
1491
|
+
{
|
|
1492
|
+
description: 'rename distribution',
|
|
1493
|
+
command: 'bdy distro update distro-identifier -n "new name"',
|
|
1494
|
+
},
|
|
1495
|
+
{
|
|
1496
|
+
description: 'set note (pass an empty value to clear it)',
|
|
1497
|
+
command: 'bdy distro update distro-identifier --note "owned by team web"',
|
|
1498
|
+
},
|
|
1499
|
+
{
|
|
1500
|
+
description: 'set the note read by AI agents',
|
|
1501
|
+
command: 'bdy distro update distro-identifier --agent-note "deploy: manual-approval-required"',
|
|
1502
|
+
},
|
|
1503
|
+
{
|
|
1504
|
+
description: 'disable distribution',
|
|
1505
|
+
command: 'bdy distro update distro-identifier --disable',
|
|
1506
|
+
},
|
|
1507
|
+
{
|
|
1508
|
+
description: 'Return the result as JSON',
|
|
1509
|
+
command: 'bdy distro update my-distro --name "New name" --format json',
|
|
1510
|
+
},
|
|
1511
|
+
];
|
|
1512
|
+
exports.EXAMPLE_ROUTE_GET = [
|
|
1513
|
+
{
|
|
1514
|
+
description: 'get route details (route id from `bdy distro route ls`)',
|
|
1515
|
+
command: 'bdy distro route get distro-identifier 12345',
|
|
1516
|
+
},
|
|
1517
|
+
];
|
|
1518
|
+
exports.EXAMPLE_DISTRO_DELETE = [
|
|
1519
|
+
{
|
|
1520
|
+
description: 'delete distribution',
|
|
1521
|
+
command: 'bdy distro rm distro-identifier',
|
|
1522
|
+
},
|
|
1523
|
+
{
|
|
1524
|
+
description: 'delete distribution and automatically confirm deletion:',
|
|
1525
|
+
command: 'bdy distro rm -f distro-identifier',
|
|
1526
|
+
},
|
|
1527
|
+
];
|
|
1528
|
+
exports.EXAMPLE_ROUTE_DELETE = [
|
|
1529
|
+
{
|
|
1530
|
+
description: 'delete route (find by "bdy distro route ls distro-identifier")',
|
|
1531
|
+
command: 'bdy distro route rm distro-identifier route-id',
|
|
1532
|
+
},
|
|
1533
|
+
];
|
|
1534
|
+
exports.EXAMPLE_ROUTE_UPDATE = [
|
|
1535
|
+
{
|
|
1536
|
+
description: "route update requires full param set (it's not partial)",
|
|
1537
|
+
command: 'bdy distro route update distro-identifier route-id --subdomain=new --domain=test.com --target url=https://example.com',
|
|
1538
|
+
},
|
|
1539
|
+
{
|
|
1540
|
+
description: 'Return the result as JSON',
|
|
1541
|
+
command: 'bdy distro route update my-distro route-id --path /new --format json',
|
|
1542
|
+
},
|
|
1543
|
+
];
|
|
1544
|
+
exports.EXAMPLE_ROUTE_LIST = [
|
|
1545
|
+
{
|
|
1546
|
+
description: 'list routes',
|
|
1547
|
+
command: 'bdy distro route ls distro-identifier',
|
|
1548
|
+
},
|
|
1549
|
+
];
|
|
1550
|
+
exports.EXAMPLE_ROUTE_CREATE = [
|
|
1551
|
+
{
|
|
1552
|
+
description: '--domain is the WHOLE zone string from `bdy domain ls` (apex like "example.com" or multi-level like "my-app.example.dev"). --subdomain is OPTIONAL and only prepends a NEW sub-name to that zone. Never split a multi-level zone — it goes whole into --domain. route an apex zone you bought ("example.com") to an artifact',
|
|
1553
|
+
command: 'bdy distro route create distro-identifier --domain="example.com" --target "artifact=artifact-identifier:version"',
|
|
1554
|
+
},
|
|
1555
|
+
{
|
|
1556
|
+
description: 'route a multi-level zone you claimed ("my-app.example.dev") to an artifact — pass it WHOLE, do NOT split',
|
|
1557
|
+
command: 'bdy distro route create distro-identifier --domain="my-app.example.dev" --target "artifact=artifact-identifier:version"',
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
description: 'route a NEW sub-name within a zone ("api.example.com") — subdomain is "api", zone is "example.com"',
|
|
1561
|
+
command: 'bdy distro route create distro-identifier --subdomain="api" --domain="example.com" --target "url=https://backend.internal"',
|
|
1562
|
+
},
|
|
1563
|
+
{
|
|
1564
|
+
description: "route to a sandbox endpoint (no zone, distro's default domain is used)",
|
|
1565
|
+
command: 'bdy distro route create distro-identifier --subdomain="sandbox" --target "sandbox=sandbox-identifier:endpoint-name"',
|
|
1566
|
+
},
|
|
1567
|
+
{
|
|
1568
|
+
description: 'route to an artifact in two locations (default + Europe override)',
|
|
1569
|
+
command: 'bdy distro route create distro-identifier --subdomain="artifact" --target "artifact=artifact-identifier:version" --target "region=Europe,artifact=artifact-identifier:version2"',
|
|
1570
|
+
},
|
|
1571
|
+
{
|
|
1572
|
+
description: 'route only for js files under a sub-name',
|
|
1573
|
+
command: 'bdy distro route create distro-identifier --path="*.js" --subdomain="cdn" --target "artifact=artifact-identifier:version"',
|
|
1574
|
+
},
|
|
1575
|
+
{
|
|
1576
|
+
description: 'create redirect route',
|
|
1577
|
+
command: 'bdy distro route create distro-identifier --type="REDIRECT" --path="/my-url" --target "url=https://example.com/page"',
|
|
1578
|
+
},
|
|
1579
|
+
{
|
|
1580
|
+
description: 'Return the result as JSON',
|
|
1581
|
+
command: 'bdy distro route create my-distro --type REDIRECT --target url=https://example.com --format json',
|
|
1582
|
+
},
|
|
1583
|
+
];
|
|
1584
|
+
exports.EXAMPLE_DISTRO_CREATE = [
|
|
1585
|
+
{
|
|
1586
|
+
description: 'create distribution with name',
|
|
1587
|
+
command: 'bdy distro create -n name',
|
|
1588
|
+
},
|
|
1589
|
+
{
|
|
1590
|
+
description: 'create distribution in project with identifier',
|
|
1591
|
+
command: 'bdy distro create -i id --project project',
|
|
1592
|
+
},
|
|
1593
|
+
{
|
|
1594
|
+
description: 'Return the result as JSON',
|
|
1595
|
+
command: 'bdy distro create --format json',
|
|
1596
|
+
},
|
|
1597
|
+
];
|
|
1598
|
+
exports.EXAMPLE_SANDBOX_CREATE = [
|
|
1599
|
+
{
|
|
1600
|
+
description: 'create ubuntu 22.04 sandbox with name and wait for start:',
|
|
1601
|
+
command: 'bdy sb create -n "name" --os ubuntu:22.04 --wait-for-running',
|
|
1602
|
+
},
|
|
1603
|
+
{
|
|
1604
|
+
description: 'create sandbox with identifier, run install commands and wait for start & commands to complete:',
|
|
1605
|
+
command: 'bdy sb create -i "test" --boot-command "apt-get update && apt-get install nginx -y" --wait-for-configured',
|
|
1606
|
+
},
|
|
1607
|
+
{
|
|
1608
|
+
description: 'run commands from the file',
|
|
1609
|
+
command: 'bdy sb create --boot-script /path/to/file',
|
|
1610
|
+
},
|
|
1611
|
+
{
|
|
1612
|
+
description: 'create sandbox with custom resources and tag it:',
|
|
1613
|
+
command: 'bdy sb create --resources 4x8 --tag "tag1" --tag "tag2"',
|
|
1614
|
+
},
|
|
1615
|
+
{
|
|
1616
|
+
description: 'create sandbox and fetch project repository from default branch to working directory',
|
|
1617
|
+
command: 'bdy sb create --fetch',
|
|
1618
|
+
},
|
|
1619
|
+
{
|
|
1620
|
+
description: 'create sandbox and fetch project repository branch',
|
|
1621
|
+
command: 'bdy sb create --fetch feature-branch',
|
|
1622
|
+
},
|
|
1623
|
+
{
|
|
1624
|
+
description: 'create sandbox and fetch public repository',
|
|
1625
|
+
command: 'bdy sb create --fetch "path=/home/buddy/repo,url=https://public-repo.com,ref=feature-branch"',
|
|
1626
|
+
},
|
|
1627
|
+
{
|
|
1628
|
+
description: 'create sandbox and fetch artifact',
|
|
1629
|
+
command: 'bdy sb create --fetch "path=/home/buddy/repo,artifact=name@version"',
|
|
1630
|
+
},
|
|
1631
|
+
{
|
|
1632
|
+
description: 'create sandbox, fetch project repo branch and build',
|
|
1633
|
+
command: 'bdy sb create --fetch "path=/home/buddy/repo,ref=branch,build=npm install && npm run build"',
|
|
1634
|
+
},
|
|
1635
|
+
{
|
|
1636
|
+
description: 'create sandbox and pass custom variables',
|
|
1637
|
+
command: 'bdy sb create -v key:val -v a:b',
|
|
1638
|
+
},
|
|
1639
|
+
{
|
|
1640
|
+
description: 'create sandbox and pass custom variables from file',
|
|
1641
|
+
command: 'bdy sb create --vf path/to/env/file',
|
|
1642
|
+
},
|
|
1643
|
+
{
|
|
1644
|
+
description: 'create sandbox from yaml file:',
|
|
1645
|
+
command: 'bdy sb create --yaml @./test.yml"',
|
|
1646
|
+
},
|
|
1647
|
+
{
|
|
1648
|
+
description: 'Return the result as JSON',
|
|
1649
|
+
command: 'bdy sandbox create --format json',
|
|
1650
|
+
},
|
|
1651
|
+
];
|
|
1652
|
+
const EXAMPLE_TUNNEL_HTTP = (agent) => [
|
|
1653
|
+
{
|
|
1654
|
+
description: 'start http tunnel on port 80:',
|
|
1655
|
+
command: `bdy ${agent ? 'agent ' : ''}tunnel http 80`,
|
|
1656
|
+
},
|
|
1657
|
+
{
|
|
1658
|
+
description: 'start http tunnel, whitelist ip and turn on on basic auth:',
|
|
1659
|
+
command: `bdy ${agent ? 'agent ' : ''}tunnel http https://myhost.com -w 1.1.1.1 -a user:pass`,
|
|
1660
|
+
},
|
|
1661
|
+
...(!agent
|
|
1662
|
+
? [
|
|
1663
|
+
{
|
|
1664
|
+
description: 'start named http tunnel and serve local directory:',
|
|
1665
|
+
command: 'bdy tunnel http -n name -s /path/to/dir',
|
|
1666
|
+
},
|
|
1667
|
+
]
|
|
1668
|
+
: []),
|
|
1669
|
+
];
|
|
1453
1670
|
exports.EXAMPLE_TUNNEL_HTTP = EXAMPLE_TUNNEL_HTTP;
|
|
1454
|
-
exports.EXAMPLE_AGENT_TUNNEL_LIST =
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1671
|
+
exports.EXAMPLE_AGENT_TUNNEL_LIST = [
|
|
1672
|
+
{
|
|
1673
|
+
description: 'list agent tunnels:',
|
|
1674
|
+
command: 'bdy agent tunnel list',
|
|
1675
|
+
},
|
|
1676
|
+
{
|
|
1677
|
+
description: 'Return the result as JSON',
|
|
1678
|
+
command: 'bdy agent tunnel list --format json',
|
|
1679
|
+
},
|
|
1680
|
+
];
|
|
1681
|
+
exports.EXAMPLE_AGENT_TUNNEL_REMOVE = [
|
|
1682
|
+
{
|
|
1683
|
+
description: 'remove agent tunnel:',
|
|
1684
|
+
command: 'bdy agent tunnel rm tunnel-id',
|
|
1685
|
+
},
|
|
1686
|
+
];
|
|
1687
|
+
exports.EXAMPLE_AGENT_TUNNEL_STATUS = [
|
|
1688
|
+
{
|
|
1689
|
+
description: 'get agent tunnel status:',
|
|
1690
|
+
command: 'bdy agent tunnel status tunnel-id',
|
|
1691
|
+
},
|
|
1692
|
+
{
|
|
1693
|
+
description: 'Return the result as JSON',
|
|
1694
|
+
command: 'bdy agent tunnel status --format json',
|
|
1695
|
+
},
|
|
1696
|
+
];
|
|
1697
|
+
exports.EXAMPLE_AGENT_TUNNEL_START = [
|
|
1698
|
+
{
|
|
1699
|
+
description: 'add tunnel to config:',
|
|
1700
|
+
command: 'bdy tunnel config add http name 80',
|
|
1701
|
+
},
|
|
1702
|
+
{
|
|
1703
|
+
description: 'start agent tunnel from config:',
|
|
1704
|
+
command: 'bdy agent tunnel start name',
|
|
1705
|
+
},
|
|
1706
|
+
];
|
|
1707
|
+
const EXAMPLE_TUNNEL_TLS = (agent) => [
|
|
1708
|
+
{
|
|
1709
|
+
description: 'start tls tunnel on port 80:',
|
|
1710
|
+
command: `bdy ${agent ? 'agent ' : ''}tunnel tls 80`,
|
|
1711
|
+
},
|
|
1712
|
+
{
|
|
1713
|
+
description: 'start tls tunnel and terminate tls at target:',
|
|
1714
|
+
command: `bdy ${agent ? 'agent ' : ''}tunnel tls 443 -i target`,
|
|
1715
|
+
},
|
|
1716
|
+
];
|
|
1473
1717
|
exports.EXAMPLE_TUNNEL_TLS = EXAMPLE_TUNNEL_TLS;
|
|
1474
|
-
const EXAMPLE_TUNNEL_TCP = (agent) =>
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1718
|
+
const EXAMPLE_TUNNEL_TCP = (agent) => [
|
|
1719
|
+
{
|
|
1720
|
+
description: 'start tcp tunnel on port 22:',
|
|
1721
|
+
command: `bdy ${agent ? 'agent ' : ''}tunnel tcp 22`,
|
|
1722
|
+
},
|
|
1723
|
+
{
|
|
1724
|
+
description: 'start named tcp tunnel with whitelist:',
|
|
1725
|
+
command: `bdy ${agent ? 'agent ' : ''}tunnel tcp 80 -n name -w 1.1.1.1/27`,
|
|
1726
|
+
},
|
|
1727
|
+
];
|
|
1479
1728
|
exports.EXAMPLE_TUNNEL_TCP = EXAMPLE_TUNNEL_TCP;
|
|
1480
|
-
exports.EXAMPLE_TUNNEL_START =
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
exports.
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
exports.
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
exports.
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1729
|
+
exports.EXAMPLE_TUNNEL_START = [
|
|
1730
|
+
{
|
|
1731
|
+
description: 'add tunnel to config:',
|
|
1732
|
+
command: 'bdy tunnel config add http name 80',
|
|
1733
|
+
},
|
|
1734
|
+
{
|
|
1735
|
+
description: 'start tunnel from config:',
|
|
1736
|
+
command: 'bdy tunnel start name',
|
|
1737
|
+
},
|
|
1738
|
+
];
|
|
1739
|
+
exports.EXAMPLE_SANDBOX_EXEC_COMMAND = [
|
|
1740
|
+
{
|
|
1741
|
+
description: 'ran command in sandbox:',
|
|
1742
|
+
command: 'bdy sb exec command sandbox-identifier "ls -la"',
|
|
1743
|
+
},
|
|
1744
|
+
{
|
|
1745
|
+
description: 'ran command in sandbox and wait for it to complete:',
|
|
1746
|
+
command: 'bdy sb exec command sandbox-identifier "sleep 10" --wait',
|
|
1747
|
+
},
|
|
1748
|
+
{
|
|
1749
|
+
description: 'install package from apt:',
|
|
1750
|
+
command: 'bdy sb exec command sandbox-identifier "sudo apt-get update && sudo apt-get install -y nginx" --wait',
|
|
1751
|
+
},
|
|
1752
|
+
{
|
|
1753
|
+
description: 'Return log records as JSONL',
|
|
1754
|
+
command: 'bdy sandbox exec cmd my-sandbox "echo hello" --wait --format jsonl',
|
|
1755
|
+
},
|
|
1756
|
+
];
|
|
1757
|
+
exports.EXAMPLE_SANDBOX_SSH = [
|
|
1758
|
+
{
|
|
1759
|
+
description: 'open a shell in the sandbox:',
|
|
1760
|
+
command: 'bdy sb ssh sandbox-identifier',
|
|
1761
|
+
},
|
|
1762
|
+
{
|
|
1763
|
+
description: 'run a single command and exit:',
|
|
1764
|
+
command: 'bdy sb ssh sandbox-identifier -- ls -la',
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
description: 'forward a sandbox port to localhost:',
|
|
1768
|
+
command: 'bdy sb ssh sandbox-identifier -- -L 8080:localhost:8080',
|
|
1769
|
+
},
|
|
1770
|
+
{
|
|
1771
|
+
description: 'authenticate with a specific private key:',
|
|
1772
|
+
command: 'bdy sb ssh sandbox-identifier -i ~/.ssh/id_ed25519',
|
|
1773
|
+
},
|
|
1774
|
+
{
|
|
1775
|
+
description: 'print the ssh command instead of running it:',
|
|
1776
|
+
command: 'bdy sb ssh sandbox-identifier --print',
|
|
1777
|
+
},
|
|
1778
|
+
];
|
|
1779
|
+
exports.EXAMPLE_SANDBOX_EXEC_KILL = [
|
|
1780
|
+
{
|
|
1781
|
+
description: 'kill command running in sandbox:',
|
|
1782
|
+
command: 'bdy sb exec kill sandbox-identifier command-id',
|
|
1783
|
+
},
|
|
1784
|
+
{
|
|
1785
|
+
description: 'kill command running in sandbox and automatically confirm killing:',
|
|
1786
|
+
command: 'bdy sb exec kill sandbox-identifier command-id -f',
|
|
1787
|
+
},
|
|
1788
|
+
];
|
|
1789
|
+
exports.EXAMPLE_SANDBOX_APP_LIST = [
|
|
1790
|
+
{
|
|
1791
|
+
description: 'list apps running in sandbox:',
|
|
1792
|
+
command: 'bdy sb app ls sandbox-identifier',
|
|
1793
|
+
},
|
|
1794
|
+
{
|
|
1795
|
+
description: 'list apps running in sandbox in different project:',
|
|
1796
|
+
command: 'bdy sb app ls sandbox-identifier -p project',
|
|
1797
|
+
},
|
|
1798
|
+
];
|
|
1799
|
+
exports.EXAMPLE_SANDBOX_EXEC_LIST = [
|
|
1800
|
+
{
|
|
1801
|
+
description: 'list commands running in sandbox:',
|
|
1802
|
+
command: 'bdy sb exec ls sandbox-identifier',
|
|
1803
|
+
},
|
|
1804
|
+
{
|
|
1805
|
+
description: 'list commands running in sandbox in different project:',
|
|
1806
|
+
command: 'bdy sb exec ls sandbox-identifier -p project',
|
|
1807
|
+
},
|
|
1808
|
+
];
|
|
1809
|
+
exports.EXAMPLE_SANDBOX_APP_LOGS = [
|
|
1810
|
+
{
|
|
1811
|
+
description: 'show logs from app:',
|
|
1812
|
+
command: 'bdy sb app logs sandbox-identifier app-id',
|
|
1813
|
+
},
|
|
1814
|
+
{
|
|
1815
|
+
description: 'Return log records as JSONL',
|
|
1816
|
+
command: 'bdy sandbox app logs my-sandbox app-id --format jsonl',
|
|
1817
|
+
},
|
|
1818
|
+
];
|
|
1819
|
+
exports.EXAMPLE_SANDBOX_APP_START = [
|
|
1820
|
+
{
|
|
1821
|
+
description: 'start sandbox app:',
|
|
1822
|
+
command: 'bdy sb app start sandbox-identifier app-id',
|
|
1823
|
+
},
|
|
1824
|
+
];
|
|
1825
|
+
exports.EXAMPLE_SANDBOX_APP_ADD = [
|
|
1826
|
+
{
|
|
1827
|
+
description: 'add sandbox app:',
|
|
1828
|
+
command: 'bdy sb app add sandbox-identifier "npm start"',
|
|
1829
|
+
},
|
|
1830
|
+
{
|
|
1831
|
+
description: 'Return the result as JSON',
|
|
1832
|
+
command: 'bdy sandbox app add my-sandbox "sleep 3600" --format json',
|
|
1833
|
+
},
|
|
1834
|
+
];
|
|
1835
|
+
exports.EXAMPLE_SANDBOX_APP_REMOVE = [
|
|
1836
|
+
{
|
|
1837
|
+
description: 'remove sandbox app:',
|
|
1838
|
+
command: 'bdy sb app rm sandbox-identifier app-id',
|
|
1839
|
+
},
|
|
1840
|
+
];
|
|
1841
|
+
exports.EXAMPLE_SANDBOX_APP_STOP = [
|
|
1842
|
+
{
|
|
1843
|
+
description: 'stop sandbox app:',
|
|
1844
|
+
command: 'bdy sb app stop sandbox-identifier app-id',
|
|
1845
|
+
},
|
|
1846
|
+
];
|
|
1847
|
+
exports.EXAMPLE_SANDBOX_APP_STATUS = [
|
|
1848
|
+
{
|
|
1849
|
+
description: 'show status from app:',
|
|
1850
|
+
command: 'bdy sb app status sandbox-identifier app-id',
|
|
1851
|
+
},
|
|
1852
|
+
];
|
|
1853
|
+
exports.EXAMPLE_SANDBOX_EXEC_LOGS = [
|
|
1854
|
+
{
|
|
1855
|
+
description: 'show logs from command:',
|
|
1856
|
+
command: 'bdy sb exec logs sandbox-identifier command-id',
|
|
1857
|
+
},
|
|
1858
|
+
{
|
|
1859
|
+
description: 'show logs from command and wait for it to complete:',
|
|
1860
|
+
command: 'bdy sb exec logs sandbox-identifier command-id --wait',
|
|
1861
|
+
},
|
|
1862
|
+
{
|
|
1863
|
+
description: 'Return log records as JSONL',
|
|
1864
|
+
command: 'bdy sandbox exec logs my-sandbox command-id --wait --format jsonl',
|
|
1865
|
+
},
|
|
1866
|
+
];
|
|
1867
|
+
exports.EXAMPLE_SANDBOX_EXEC_STATUS = [
|
|
1868
|
+
{
|
|
1869
|
+
description: 'show status of command:',
|
|
1870
|
+
command: 'bdy sb exec status sandbox-identifier command-id',
|
|
1871
|
+
},
|
|
1872
|
+
{
|
|
1873
|
+
description: 'show status of command in sandbox from another workspace:',
|
|
1874
|
+
command: 'bdy sb exec status sandbox-identifier command-id -w workspace -p project',
|
|
1875
|
+
},
|
|
1876
|
+
];
|
|
1877
|
+
exports.EXAMPLE_SANDBOX_SNAPSHOT_CREATE = [
|
|
1878
|
+
{
|
|
1879
|
+
description: 'create snapshot of sandbox with name:',
|
|
1880
|
+
command: 'bdy sb snap create sandbox-identifier -n "my-snapshot"',
|
|
1881
|
+
},
|
|
1882
|
+
{
|
|
1883
|
+
description: 'create snapshot of sandbox and wait for it to complete:',
|
|
1884
|
+
command: 'bdy sb snap create sandbox-identifier --wait',
|
|
1885
|
+
},
|
|
1886
|
+
{
|
|
1887
|
+
description: 'Return the result as JSON',
|
|
1888
|
+
command: 'bdy sandbox snapshot create my-sandbox --wait --format json',
|
|
1889
|
+
},
|
|
1890
|
+
];
|
|
1891
|
+
exports.EXAMPLE_SANDBOX_SNAPSHOT_DELETE = [
|
|
1892
|
+
{
|
|
1893
|
+
description: 'delete snapshot of sandbox:',
|
|
1894
|
+
command: 'bdy sb snap rm sandbox-identifier my-snapshot',
|
|
1895
|
+
},
|
|
1896
|
+
{
|
|
1897
|
+
description: 'delete snapshot of sandbox and automatically confirm deletion:',
|
|
1898
|
+
command: 'bdy sb snap rm sandbox-identifier my-snapshot -f',
|
|
1899
|
+
},
|
|
1900
|
+
];
|
|
1901
|
+
exports.EXAMPLE_SANDBOX_SNAPSHOT_GET = [
|
|
1902
|
+
{
|
|
1903
|
+
description: 'get snapshot info:',
|
|
1904
|
+
command: 'bdy sb snap get sandbox-identifier my-snapshot',
|
|
1905
|
+
},
|
|
1906
|
+
{
|
|
1907
|
+
description: 'get snapshot info from sandbox in another project:',
|
|
1908
|
+
command: 'bdy sb snap get sandbox-identifier my-snapshot -p project',
|
|
1909
|
+
},
|
|
1910
|
+
];
|
|
1911
|
+
exports.EXAMPLE_SANDBOX_SNAPSHOT_LIST = [
|
|
1912
|
+
{
|
|
1913
|
+
description: 'list snapshots of sandbox:',
|
|
1914
|
+
command: 'bdy sb snap ls sandbox-identifier',
|
|
1915
|
+
},
|
|
1916
|
+
{
|
|
1917
|
+
description: 'list snapshots in default project:',
|
|
1918
|
+
command: 'bdy sb snap ls',
|
|
1919
|
+
},
|
|
1920
|
+
];
|
|
1921
|
+
exports.EXAMPLE_TARGET_LIST = [
|
|
1922
|
+
{
|
|
1923
|
+
description: 'list targets (workspace, or the linked project when run inside one):',
|
|
1924
|
+
command: 'bdy tg ls',
|
|
1925
|
+
},
|
|
1926
|
+
{
|
|
1927
|
+
description: 'list all workspace targets:',
|
|
1928
|
+
command: 'bdy tg ls --scope WORKSPACE',
|
|
1929
|
+
},
|
|
1930
|
+
{
|
|
1931
|
+
description: 'list targets in a project:',
|
|
1932
|
+
command: 'bdy tg ls -p project',
|
|
1933
|
+
},
|
|
1934
|
+
{
|
|
1935
|
+
description: 'list targets of a pipeline:',
|
|
1936
|
+
command: 'bdy tg ls -p project --pipeline pipeline-identifier',
|
|
1937
|
+
},
|
|
1938
|
+
{
|
|
1939
|
+
description: 'list targets of a workspace environment:',
|
|
1940
|
+
command: 'bdy tg ls --environment environment-identifier',
|
|
1941
|
+
},
|
|
1942
|
+
{
|
|
1943
|
+
description: 'list targets of a project environment:',
|
|
1944
|
+
command: 'bdy tg ls -p project --environment environment-identifier',
|
|
1945
|
+
},
|
|
1946
|
+
];
|
|
1947
|
+
exports.EXAMPLE_TARGET_GET = [
|
|
1948
|
+
{
|
|
1949
|
+
description: 'get target details:',
|
|
1950
|
+
command: 'bdy tg get target-identifier',
|
|
1951
|
+
},
|
|
1952
|
+
{
|
|
1953
|
+
description: 'get target details as json:',
|
|
1954
|
+
command: 'bdy tg get target-identifier --format json',
|
|
1955
|
+
},
|
|
1956
|
+
];
|
|
1957
|
+
exports.EXAMPLE_TARGET_CREATE = [
|
|
1958
|
+
{
|
|
1959
|
+
description: 'create workspace target from yaml file:',
|
|
1960
|
+
command: 'bdy tg create --yaml @target.yml',
|
|
1961
|
+
},
|
|
1962
|
+
{
|
|
1963
|
+
description: 'create project target:',
|
|
1964
|
+
command: 'bdy tg create --yaml @target.yml -p project',
|
|
1965
|
+
},
|
|
1966
|
+
{
|
|
1967
|
+
description: 'create pipeline target:',
|
|
1968
|
+
command: 'bdy tg create --yaml @target.yml -p project --pipeline pipeline-identifier',
|
|
1969
|
+
},
|
|
1970
|
+
{
|
|
1971
|
+
description: 'create workspace environment target:',
|
|
1972
|
+
command: 'bdy tg create --yaml @target.yml --environment environment-identifier',
|
|
1973
|
+
},
|
|
1974
|
+
{
|
|
1975
|
+
description: 'create project environment target:',
|
|
1976
|
+
command: 'bdy tg create --yaml @target.yml -p project --environment environment-identifier',
|
|
1977
|
+
},
|
|
1978
|
+
{
|
|
1979
|
+
description: 'Return the result as JSON',
|
|
1980
|
+
command: 'bdy target create --yaml @target.yml --format json',
|
|
1981
|
+
},
|
|
1982
|
+
];
|
|
1983
|
+
exports.EXAMPLE_TARGET_UPDATE = [
|
|
1984
|
+
{
|
|
1985
|
+
description: 'update target from yaml file:',
|
|
1986
|
+
command: 'bdy tg update target-identifier --yaml @target.yml',
|
|
1987
|
+
},
|
|
1988
|
+
{
|
|
1989
|
+
description: 'Return the result as JSON',
|
|
1990
|
+
command: 'bdy target update my-target --yaml @target.yml --format json',
|
|
1991
|
+
},
|
|
1992
|
+
];
|
|
1993
|
+
exports.EXAMPLE_TARGET_DELETE = [
|
|
1994
|
+
{
|
|
1995
|
+
description: 'delete target:',
|
|
1996
|
+
command: 'bdy tg rm target-identifier',
|
|
1997
|
+
},
|
|
1998
|
+
{
|
|
1999
|
+
description: 'delete target and automatically confirm deletion:',
|
|
2000
|
+
command: 'bdy tg rm target-identifier -f',
|
|
2001
|
+
},
|
|
2002
|
+
];
|
|
2003
|
+
exports.EXAMPLE_TARGET_EXEC_COMMAND = [
|
|
2004
|
+
{
|
|
2005
|
+
description: 'run a command on a target and print its output:',
|
|
2006
|
+
command: 'bdy tg exec command target-identifier "ls -la"',
|
|
2007
|
+
},
|
|
2008
|
+
{
|
|
2009
|
+
description: 'run SQL on a MySQL target:',
|
|
2010
|
+
command: 'bdy tg exec command target-identifier "SELECT 1"',
|
|
2011
|
+
},
|
|
2012
|
+
{
|
|
2013
|
+
description: 'start a command in background and return the execution id:',
|
|
2014
|
+
command: 'bdy tg exec command target-identifier "ls -la" --async',
|
|
2015
|
+
},
|
|
2016
|
+
{
|
|
2017
|
+
description: 'run a command from a file:',
|
|
2018
|
+
command: 'bdy tg exec command target-identifier --file ./query.sql',
|
|
2019
|
+
},
|
|
2020
|
+
{
|
|
2021
|
+
description: 'print the result with execution metadata as JSON:',
|
|
2022
|
+
command: 'bdy tg exec command target-identifier "SELECT 1" --format json',
|
|
2023
|
+
},
|
|
2024
|
+
];
|
|
2025
|
+
exports.EXAMPLE_TARGET_EXEC_STATUS = [
|
|
2026
|
+
{
|
|
2027
|
+
description: 'show status of execution:',
|
|
2028
|
+
command: 'bdy tg exec status exec-id',
|
|
2029
|
+
},
|
|
2030
|
+
];
|
|
2031
|
+
exports.EXAMPLE_TARGET_EXEC_KILL = [
|
|
2032
|
+
{
|
|
2033
|
+
description: 'cancel running execution:',
|
|
2034
|
+
command: 'bdy tg exec kill exec-id',
|
|
2035
|
+
},
|
|
2036
|
+
{
|
|
2037
|
+
description: 'cancel running execution and automatically confirm:',
|
|
2038
|
+
command: 'bdy tg exec kill exec-id -f',
|
|
2039
|
+
},
|
|
2040
|
+
];
|
|
2041
|
+
exports.EXAMPLE_TARGET_EXEC_LIST = [
|
|
2042
|
+
{
|
|
2043
|
+
description: 'list executions of a target:',
|
|
2044
|
+
command: 'bdy tg exec ls target-identifier',
|
|
2045
|
+
},
|
|
2046
|
+
{
|
|
2047
|
+
description: 'list last 5 executions:',
|
|
2048
|
+
command: 'bdy tg exec ls target-identifier --limit 5',
|
|
2049
|
+
},
|
|
2050
|
+
];
|
|
2051
|
+
exports.EXAMPLE_TARGET_EXEC_LOGS = [
|
|
2052
|
+
{
|
|
2053
|
+
description: 'show logs of execution:',
|
|
2054
|
+
command: 'bdy tg exec logs exec-id',
|
|
2055
|
+
},
|
|
2056
|
+
{
|
|
2057
|
+
description: 'show logs of execution starting from line 100:',
|
|
2058
|
+
command: 'bdy tg exec logs exec-id --offset 100',
|
|
2059
|
+
},
|
|
2060
|
+
{
|
|
2061
|
+
description: 'Return log records as JSONL',
|
|
2062
|
+
command: 'bdy target exec logs execution-id --format jsonl',
|
|
2063
|
+
},
|
|
2064
|
+
];
|
|
2065
|
+
exports.EXAMPLE_ENVIRONMENT_LIST = [
|
|
2066
|
+
{
|
|
2067
|
+
description: 'list environments (workspace, or the linked project when run inside one):',
|
|
2068
|
+
command: 'bdy env ls',
|
|
2069
|
+
},
|
|
2070
|
+
{
|
|
2071
|
+
description: 'list workspace environments:',
|
|
2072
|
+
command: 'bdy env ls --scope WORKSPACE',
|
|
2073
|
+
},
|
|
2074
|
+
{
|
|
2075
|
+
description: 'list environments in a project:',
|
|
2076
|
+
command: 'bdy env ls -p project',
|
|
2077
|
+
},
|
|
2078
|
+
];
|
|
2079
|
+
exports.EXAMPLE_ENVIRONMENT_GET = [
|
|
2080
|
+
{
|
|
2081
|
+
description: 'get workspace environment details:',
|
|
2082
|
+
command: 'bdy env get environment-identifier',
|
|
2083
|
+
},
|
|
2084
|
+
{
|
|
2085
|
+
description: 'get project environment details:',
|
|
2086
|
+
command: 'bdy env get environment-identifier -p project',
|
|
2087
|
+
},
|
|
2088
|
+
{
|
|
2089
|
+
description: 'get environment details as json:',
|
|
2090
|
+
command: 'bdy env get environment-identifier --format json',
|
|
2091
|
+
},
|
|
2092
|
+
];
|
|
2093
|
+
exports.EXAMPLE_ENVIRONMENT_CREATE = [
|
|
2094
|
+
{
|
|
2095
|
+
description: 'create workspace environment:',
|
|
2096
|
+
command: 'bdy env create staging',
|
|
2097
|
+
},
|
|
2098
|
+
{
|
|
2099
|
+
description: 'create project environment:',
|
|
2100
|
+
command: 'bdy env create staging -p project',
|
|
2101
|
+
},
|
|
2102
|
+
{
|
|
2103
|
+
description: 'create environment with identifier and tags:',
|
|
2104
|
+
command: 'bdy env create "Staging" -i staging --tags staging,test',
|
|
2105
|
+
},
|
|
2106
|
+
{
|
|
2107
|
+
description: 'create environment with a public url:',
|
|
2108
|
+
command: 'bdy env create staging --public-url https://staging.example.com',
|
|
2109
|
+
},
|
|
2110
|
+
{
|
|
2111
|
+
description: 'Return the result as JSON',
|
|
2112
|
+
command: 'bdy environment create staging --format json',
|
|
2113
|
+
},
|
|
2114
|
+
];
|
|
2115
|
+
exports.EXAMPLE_ENVIRONMENT_UPDATE = [
|
|
2116
|
+
{
|
|
2117
|
+
description: 'rename environment:',
|
|
2118
|
+
command: 'bdy env edit environment-identifier -n "New name"',
|
|
2119
|
+
},
|
|
2120
|
+
{
|
|
2121
|
+
description: 'set tags:',
|
|
2122
|
+
command: 'bdy env edit environment-identifier --tags prod,stable',
|
|
2123
|
+
},
|
|
2124
|
+
{
|
|
2125
|
+
description: 'set icon:',
|
|
2126
|
+
command: 'bdy env edit environment-identifier --icon 🚀',
|
|
2127
|
+
},
|
|
2128
|
+
{
|
|
2129
|
+
description: 'clear note:',
|
|
2130
|
+
command: 'bdy env edit environment-identifier --note ""',
|
|
2131
|
+
},
|
|
2132
|
+
{
|
|
2133
|
+
description: 'Return the result as JSON',
|
|
2134
|
+
command: 'bdy environment update staging --name Staging --format json',
|
|
2135
|
+
},
|
|
2136
|
+
];
|
|
2137
|
+
exports.EXAMPLE_ENVIRONMENT_DELETE = [
|
|
2138
|
+
{
|
|
2139
|
+
description: 'delete environment:',
|
|
2140
|
+
command: 'bdy env rm environment-identifier',
|
|
2141
|
+
},
|
|
2142
|
+
{
|
|
2143
|
+
description: 'delete environment and automatically confirm deletion:',
|
|
2144
|
+
command: 'bdy env rm environment-identifier -f',
|
|
2145
|
+
},
|
|
2146
|
+
];
|
|
2147
|
+
exports.EXAMPLE_SANDBOX_ENDPOINT_CREATE = [
|
|
2148
|
+
{
|
|
2149
|
+
description: 'create http endpoint on port 80 (http server must listen on 0.0.0.0)',
|
|
2150
|
+
command: 'bdy sb ep create sandbox-identifier -e 80',
|
|
2151
|
+
},
|
|
2152
|
+
{
|
|
2153
|
+
description: 'create http server and serve files from sandbox directory:',
|
|
2154
|
+
command: 'bdy sb ep create sandbox-identifier -s /path/to/dir',
|
|
2155
|
+
},
|
|
2156
|
+
{
|
|
2157
|
+
description: 'create tcp endpoint on port 22 with name (tcp server must listen on 0.0.0.0):',
|
|
2158
|
+
command: 'bdy sb ep create sandbox-identifier -t TCP -e 22 -n test',
|
|
2159
|
+
},
|
|
2160
|
+
{
|
|
2161
|
+
description: 'Return the result as JSON',
|
|
2162
|
+
command: 'bdy sandbox endpoint add my-sandbox --name web --type HTTP --endpoint 8080 --format json',
|
|
2163
|
+
},
|
|
2164
|
+
];
|
|
2165
|
+
exports.EXAMPLE_SANDBOX_ENDPOINT_DELETE = [
|
|
2166
|
+
{
|
|
2167
|
+
description: 'delete sandbox endpoint:',
|
|
2168
|
+
command: 'bdy sb ep rm sandbox-identifier test',
|
|
2169
|
+
},
|
|
2170
|
+
{
|
|
2171
|
+
description: 'delete sandbox endpoint in another project and automatically confirm deletion:',
|
|
2172
|
+
command: 'bdy sb ep rm sandbox-identifier test -p project -f',
|
|
2173
|
+
},
|
|
2174
|
+
];
|
|
2175
|
+
exports.EXAMPLE_SANDBOX_ENDPOINT_GET = [
|
|
2176
|
+
{
|
|
2177
|
+
description: 'get sandbox endpoint:',
|
|
2178
|
+
command: 'bdy sb ep get sandbox-identifier test',
|
|
2179
|
+
},
|
|
2180
|
+
{
|
|
2181
|
+
description: 'get sandbox endpoint in another project:',
|
|
2182
|
+
command: 'bdy sb ep get sandbox-identifier test -p project',
|
|
2183
|
+
},
|
|
2184
|
+
];
|
|
2185
|
+
exports.EXAMPLE_SANDBOX_ENDPOINT_LIST = [
|
|
2186
|
+
{
|
|
2187
|
+
description: 'list sandbox endpoints:',
|
|
2188
|
+
command: 'bdy sb ep ls sandbox-identifier',
|
|
2189
|
+
},
|
|
2190
|
+
{
|
|
2191
|
+
description: 'list sandbox endpoints in another project:',
|
|
2192
|
+
command: 'bdy sb ep ls sandbox-identifier -p project',
|
|
2193
|
+
},
|
|
2194
|
+
];
|
|
2195
|
+
exports.EXAMPLE_PIPELINE_RUN_START = [
|
|
2196
|
+
{
|
|
2197
|
+
description: 'run pipeline with high priority and upload everything from scratch',
|
|
2198
|
+
command: 'bdy pip run start pipeline-identifier --priority HIGH -f',
|
|
2199
|
+
},
|
|
2200
|
+
{
|
|
2201
|
+
description: 'run pipeline without cache and wait for execution to complete',
|
|
2202
|
+
command: 'bdy pip run start pipeline-identifier --wait -c',
|
|
2203
|
+
},
|
|
2204
|
+
{
|
|
2205
|
+
description: 'run pipeline and pass custom variables to execution',
|
|
2206
|
+
command: 'bdy pip run start pipeline-identifier -v key:val -v a:b',
|
|
2207
|
+
},
|
|
2208
|
+
{
|
|
2209
|
+
description: 'run pipeline and pass custom variables from file',
|
|
2210
|
+
command: 'bdy pip run start pipeline-identifier --vf path/to/env/file',
|
|
2211
|
+
},
|
|
2212
|
+
{
|
|
2213
|
+
description: 'run pipeline in given environment with specific artifact version',
|
|
2214
|
+
command: 'bdy pip run start pipeline-identifier --environment staging --artifact my_app:1.2.3',
|
|
2215
|
+
},
|
|
2216
|
+
{
|
|
2217
|
+
description: 'run pipeline and output only final jsonl',
|
|
2218
|
+
command: 'bdy pip run start pipeline-identifier --no-follow --format jsonl',
|
|
2219
|
+
},
|
|
2220
|
+
];
|
|
2221
|
+
exports.EXAMPLE_PIPELINE_RUN_STATUS = [
|
|
2222
|
+
{
|
|
2223
|
+
description: 'pipeline run status',
|
|
2224
|
+
command: 'bdy pip run status pipeline-identifier run-id',
|
|
2225
|
+
},
|
|
2226
|
+
{
|
|
2227
|
+
description: 'pipeline run status, get only final jsonl',
|
|
2228
|
+
command: 'bdy pip run status pipeline-identifier run-id --no-follow --format jsonl',
|
|
2229
|
+
},
|
|
2230
|
+
];
|
|
2231
|
+
exports.HELP_PIPELINE_RUN_JSONL = `
|
|
1710
2232
|
EXAMPLE JSONL STRUCTURES:
|
|
1711
2233
|
{"type": "info", "message": "..."}
|
|
1712
2234
|
{"type": "run", "run": {...}}
|
|
@@ -1714,203 +2236,398 @@ EXAMPLE JSONL STRUCTURES:
|
|
|
1714
2236
|
{"type": "log", "log": "..."}
|
|
1715
2237
|
{"type": "exit", "code": 0|1}
|
|
1716
2238
|
`;
|
|
1717
|
-
exports.EXAMPLE_PIPELINE_RUN_LOGS =
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
exports.
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
exports.
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
exports.
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
exports.
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
2239
|
+
exports.EXAMPLE_PIPELINE_RUN_LOGS = [
|
|
2240
|
+
{
|
|
2241
|
+
description: 'pipeline run logs',
|
|
2242
|
+
command: 'bdy pip run logs pipeline-identifier run-id action-run-id',
|
|
2243
|
+
},
|
|
2244
|
+
{
|
|
2245
|
+
description: 'pipeline run logs with jsonl output',
|
|
2246
|
+
command: 'bdy pip run logs pipeline-identifier run-id action-run-id --format jsonl',
|
|
2247
|
+
},
|
|
2248
|
+
];
|
|
2249
|
+
exports.EXAMPLE_PIPELINE_RUN_APPLY = [
|
|
2250
|
+
{
|
|
2251
|
+
description: 'pipeline run approve',
|
|
2252
|
+
command: 'bdy pip run approve pipeline-identifier run-id action-run-id',
|
|
2253
|
+
},
|
|
2254
|
+
{
|
|
2255
|
+
description: 'pipeline run pass params',
|
|
2256
|
+
command: 'bdy pip run approve pipeline-identifier run-id action-run-id -v a:b',
|
|
2257
|
+
},
|
|
2258
|
+
{
|
|
2259
|
+
description: 'pipeline run approve with final output in jsonl',
|
|
2260
|
+
command: 'bdy pip run approve pipeline-identifier run-id action-run-id --no-follow --format jsonl',
|
|
2261
|
+
},
|
|
2262
|
+
];
|
|
2263
|
+
exports.EXAMPLE_PIPELINE_RUN_CANCEL = [
|
|
2264
|
+
{
|
|
2265
|
+
description: 'pipeline run cancel',
|
|
2266
|
+
command: 'bdy pip run cancel pipeline-identifier run-id',
|
|
2267
|
+
},
|
|
2268
|
+
{
|
|
2269
|
+
description: 'pipeline run cancel with final output in jsonl',
|
|
2270
|
+
command: 'bdy pip run cancel pipeline-identifier run-id --no-follow --format jsonl',
|
|
2271
|
+
},
|
|
2272
|
+
];
|
|
2273
|
+
exports.EXAMPLE_PIPELINE_CREATE = [
|
|
2274
|
+
{
|
|
2275
|
+
description: 'pipeline create with name',
|
|
2276
|
+
command: 'bdy pip create -n name',
|
|
2277
|
+
},
|
|
2278
|
+
{
|
|
2279
|
+
description: 'pipeline create with yaml',
|
|
2280
|
+
command: 'bdy pip create --yaml @path/to/yaml',
|
|
2281
|
+
},
|
|
2282
|
+
{
|
|
2283
|
+
description: 'pipeline create with name, output json',
|
|
2284
|
+
command: 'bdy pip create -n name --format json',
|
|
2285
|
+
},
|
|
2286
|
+
];
|
|
2287
|
+
exports.EXAMPLE_PIPELINE_DELETE = [
|
|
2288
|
+
{
|
|
2289
|
+
description: 'pipeline delete',
|
|
2290
|
+
command: 'bdy pip rm pipeline-identifier',
|
|
2291
|
+
},
|
|
2292
|
+
{
|
|
2293
|
+
description: 'pipeline force delete',
|
|
2294
|
+
command: 'bdy pip rm pipeline-identifier -f',
|
|
2295
|
+
},
|
|
2296
|
+
];
|
|
2297
|
+
exports.EXAMPLE_PIPELINE_UPDATE = [
|
|
2298
|
+
{
|
|
2299
|
+
description: 'pipeline update with yaml',
|
|
2300
|
+
command: 'bdy pip update pipeline-identifier @path/to/yaml',
|
|
2301
|
+
},
|
|
2302
|
+
{
|
|
2303
|
+
description: 'pipeline update with yaml and output json',
|
|
2304
|
+
command: 'bdy pip update pipeline-identifier @path/to/yaml --format json',
|
|
2305
|
+
},
|
|
2306
|
+
];
|
|
2307
|
+
exports.EXAMPLE_PIPELINE_GET = [
|
|
2308
|
+
{
|
|
2309
|
+
description: 'pipeline get',
|
|
2310
|
+
command: 'bdy pip get pipeline-identifier',
|
|
2311
|
+
},
|
|
2312
|
+
{
|
|
2313
|
+
description: 'pipeline get in json',
|
|
2314
|
+
command: 'bdy pip get pipeline-identifier --format json',
|
|
2315
|
+
},
|
|
2316
|
+
];
|
|
2317
|
+
exports.EXAMPLE_PIPELINE_YML = [
|
|
2318
|
+
{
|
|
2319
|
+
description: 'pipeline yml',
|
|
2320
|
+
command: 'bdy pip yml pipeline-identifier',
|
|
2321
|
+
},
|
|
2322
|
+
];
|
|
2323
|
+
exports.EXAMPLE_PIPELINE_LIST = [
|
|
2324
|
+
{
|
|
2325
|
+
description: 'pipeline list',
|
|
2326
|
+
command: 'bdy pip list',
|
|
2327
|
+
},
|
|
2328
|
+
{
|
|
2329
|
+
description: 'pipeline list in json',
|
|
2330
|
+
command: 'bdy pip list --format json',
|
|
2331
|
+
},
|
|
2332
|
+
];
|
|
2333
|
+
exports.EXAMPLE_PIPELINE_RUN_LIST = [
|
|
2334
|
+
{
|
|
2335
|
+
description: 'pipeline run list',
|
|
2336
|
+
command: 'bdy pip run list pipeline-identifier',
|
|
2337
|
+
},
|
|
2338
|
+
{
|
|
2339
|
+
description: 'pipeline run list in json',
|
|
2340
|
+
command: 'bdy pip run list pipeline-identifier --format json',
|
|
2341
|
+
},
|
|
2342
|
+
];
|
|
2343
|
+
exports.EXAMPLE_PIPELINE_RUN_RETRY = [
|
|
2344
|
+
{
|
|
2345
|
+
description: 'pipeline run retry',
|
|
2346
|
+
command: 'bdy pip run retry pipeline-identifier run-id',
|
|
2347
|
+
},
|
|
2348
|
+
{
|
|
2349
|
+
description: 'pipeline run retry with only final json output',
|
|
2350
|
+
command: 'bdy pip run retry pipeline-identifier run-id --no-follow --format json',
|
|
2351
|
+
},
|
|
2352
|
+
];
|
|
2353
|
+
exports.EXAMPLE_ARTIFACT_VERSION_CREATE = [
|
|
2354
|
+
{
|
|
2355
|
+
description: 'create new version of file artifact',
|
|
2356
|
+
command: 'bdy art ver create artifact-identifier:version',
|
|
2357
|
+
},
|
|
2358
|
+
{
|
|
2359
|
+
description: 'create new version of file artifact based on another version',
|
|
2360
|
+
command: 'bdy art ver create --from old-version artifact-identifier:version',
|
|
2361
|
+
},
|
|
2362
|
+
{
|
|
2363
|
+
description: 'Return the result as JSON',
|
|
2364
|
+
command: 'bdy artifact version create my-artifact:1.0 --format json',
|
|
2365
|
+
},
|
|
2366
|
+
];
|
|
2367
|
+
exports.EXAMPLE_ARTIFACT_COMPOSER_PUBLISH = [
|
|
2368
|
+
{
|
|
2369
|
+
description: 'publish new version of composer artifact:',
|
|
2370
|
+
command: 'bdy art composer pub artifact-identifier:version /path/to/dir',
|
|
2371
|
+
},
|
|
2372
|
+
{
|
|
2373
|
+
description: 'publish version from composer.json',
|
|
2374
|
+
command: 'bdy art cmp pub artifact-identifier /path/to/dir',
|
|
2375
|
+
},
|
|
2376
|
+
{
|
|
2377
|
+
description: 'create new composer artifact:',
|
|
2378
|
+
command: 'bdy art cmp pub artifact-identifier --create /path/to/dir',
|
|
2379
|
+
},
|
|
2380
|
+
{
|
|
2381
|
+
description: 'publish without test files:',
|
|
2382
|
+
command: 'bdy art cmp pub artifact-identifier /path/to/dir --ignore "tests,**/*.log"',
|
|
2383
|
+
},
|
|
2384
|
+
];
|
|
2385
|
+
exports.EXAMPLE_ARTIFACT_PUBLISH = [
|
|
2386
|
+
{
|
|
2387
|
+
description: 'publish new version of file artifact:',
|
|
2388
|
+
command: 'bdy art pub artifact-identifier:version /path/to/dir',
|
|
2389
|
+
},
|
|
2390
|
+
{
|
|
2391
|
+
description: 'publish latest version',
|
|
2392
|
+
command: 'bdy art pub artifact-identifier /path/to/dir',
|
|
2393
|
+
},
|
|
2394
|
+
{
|
|
2395
|
+
description: 'create new file artifact:',
|
|
2396
|
+
command: 'bdy art pub artifact-identifier --create',
|
|
2397
|
+
},
|
|
2398
|
+
{
|
|
2399
|
+
description: 'overwrite existing version:',
|
|
2400
|
+
command: 'bdy art pub artifact-identifier:version /path/to/dir -f',
|
|
2401
|
+
},
|
|
2402
|
+
{
|
|
2403
|
+
description: 'Return the result as JSON',
|
|
2404
|
+
command: 'bdy artifact publish my-artifact:1.0 ./dist --format json',
|
|
2405
|
+
},
|
|
2406
|
+
];
|
|
2407
|
+
exports.EXAMPLE_ARTIFACT_DOWNLOAD = [
|
|
2408
|
+
{
|
|
2409
|
+
description: 'download file artifact version to local directory:',
|
|
2410
|
+
command: 'bdy art dd artifact-identifier:version /path/to/dir',
|
|
2411
|
+
},
|
|
2412
|
+
{
|
|
2413
|
+
description: 'download latest file artifact version and replace contents of existing local directory:',
|
|
2414
|
+
command: 'bdy art dd artifact-identifier /path/to/dir --replace',
|
|
2415
|
+
},
|
|
2416
|
+
{
|
|
2417
|
+
description: 'download file artifact version and merge it with existing local directory:',
|
|
2418
|
+
command: 'bdy art dd artifact-identifier:version /path/to/dir --merge',
|
|
2419
|
+
},
|
|
2420
|
+
];
|
|
2421
|
+
exports.EXAMPLE_ARTIFACT_DELETE = [
|
|
2422
|
+
{
|
|
2423
|
+
description: 'delete artifact:',
|
|
2424
|
+
command: 'bdy art rm artifact-identifier',
|
|
2425
|
+
},
|
|
2426
|
+
{
|
|
2427
|
+
description: 'delete artifact and automatically confirm deletion:',
|
|
2428
|
+
command: 'bdy art rm artifact-identifier -f',
|
|
2429
|
+
},
|
|
2430
|
+
];
|
|
2431
|
+
exports.EXAMPLE_ARTIFACT_CREATE = [
|
|
2432
|
+
{
|
|
2433
|
+
description: 'create file artifact with name:',
|
|
2434
|
+
command: 'bdy art create test',
|
|
2435
|
+
},
|
|
2436
|
+
{
|
|
2437
|
+
description: 'create file artifact with buddy authorization and identifier',
|
|
2438
|
+
command: 'bdy art create test -b -i artifact-identifier',
|
|
2439
|
+
},
|
|
2440
|
+
{
|
|
2441
|
+
description: 'create file artifact with basic authorization',
|
|
2442
|
+
command: 'bdy art create -a user:pass',
|
|
2443
|
+
},
|
|
2444
|
+
{
|
|
2445
|
+
description: 'create docker containers artifact',
|
|
2446
|
+
command: 'bdy art create registry -t CONTAINER',
|
|
2447
|
+
},
|
|
2448
|
+
{
|
|
2449
|
+
description: 'Return the result as JSON',
|
|
2450
|
+
command: 'bdy artifact create my-artifact --format json',
|
|
2451
|
+
},
|
|
2452
|
+
];
|
|
2453
|
+
exports.EXAMPLE_ARTIFACT_VERSION_LIST = [
|
|
2454
|
+
{
|
|
2455
|
+
description: 'list artifact versions:',
|
|
2456
|
+
command: 'bdy art ver ls artifact-identifier',
|
|
2457
|
+
},
|
|
2458
|
+
{
|
|
2459
|
+
description: 'list 20 artifact versions from page 2:',
|
|
2460
|
+
command: 'bdy art ver ls artifact-identifier --page 2 --per-page 20',
|
|
2461
|
+
},
|
|
2462
|
+
];
|
|
2463
|
+
exports.EXAMPLE_ARTIFACT_VERSION_GET = [
|
|
2464
|
+
{
|
|
2465
|
+
description: 'get artifact version:',
|
|
2466
|
+
command: 'bdy art ver get artifact-identifier version',
|
|
2467
|
+
},
|
|
2468
|
+
{
|
|
2469
|
+
description: 'get artifact version in another project:',
|
|
2470
|
+
command: 'bdy art ver get artifact-identifier version -p project',
|
|
2471
|
+
},
|
|
2472
|
+
];
|
|
2473
|
+
exports.EXAMPLE_ARTIFACT_VERSION_DELETE = [
|
|
2474
|
+
{
|
|
2475
|
+
description: 'delete artifact version:',
|
|
2476
|
+
command: 'bdy art ver rm artifact-identifier version',
|
|
2477
|
+
},
|
|
2478
|
+
{
|
|
2479
|
+
description: 'delete artifact version and automatically confirm deletion:',
|
|
2480
|
+
command: 'bdy art ver rm artifact-identifier version -f',
|
|
2481
|
+
},
|
|
2482
|
+
];
|
|
2483
|
+
exports.EXAMPLE_TESTS_UNIT_UPLOAD = [
|
|
2484
|
+
{
|
|
2485
|
+
description: 'upload junit xml report:',
|
|
2486
|
+
command: 'bdy tests unit upload "reports/**/*.xml" --format junit-xml',
|
|
2487
|
+
},
|
|
2488
|
+
{
|
|
2489
|
+
description: 'preview which files would be uploaded without sending:',
|
|
2490
|
+
command: 'bdy tests unit upload "reports/**/*.xml" --format junit-xml --dryRun',
|
|
2491
|
+
},
|
|
2492
|
+
];
|
|
2493
|
+
exports.EXAMPLE_TESTS_UNIT_LINK = [
|
|
2494
|
+
{
|
|
2495
|
+
description: 'interactively link current directory to a unit test suite:',
|
|
2496
|
+
command: 'bdy tests unit link',
|
|
2497
|
+
},
|
|
2498
|
+
{
|
|
2499
|
+
description: 'link non-interactively to a specific suite:',
|
|
2500
|
+
command: 'bdy tests unit link -w workspace -p project -s suite-identifier',
|
|
2501
|
+
},
|
|
2502
|
+
];
|
|
2503
|
+
exports.EXAMPLE_TESTS_VISUAL_SETUP = [
|
|
2504
|
+
{
|
|
2505
|
+
description: 'install the resource-discovery browser (needed by `session create` unless --skipDiscovery):',
|
|
2506
|
+
command: 'bdy tests visual setup',
|
|
2507
|
+
},
|
|
2508
|
+
];
|
|
2509
|
+
exports.EXAMPLE_TESTS_VISUAL_UPLOAD = [
|
|
2510
|
+
{
|
|
2511
|
+
description: 'upload a built Storybook to the linked visual test suite:',
|
|
2512
|
+
command: 'bdy tests visual upload ./storybook-static',
|
|
2513
|
+
},
|
|
2514
|
+
];
|
|
2515
|
+
exports.EXAMPLE_TESTS_VISUAL_LINK = [
|
|
2516
|
+
{
|
|
2517
|
+
description: 'interactively link current directory to a visual test suite:',
|
|
2518
|
+
command: 'bdy tests visual link',
|
|
2519
|
+
},
|
|
2520
|
+
{
|
|
2521
|
+
description: 'link non-interactively to a specific suite:',
|
|
2522
|
+
command: 'bdy tests visual link -w workspace -p project -s suite-identifier',
|
|
2523
|
+
},
|
|
2524
|
+
];
|
|
2525
|
+
exports.EXAMPLE_TESTS_VISUAL_SESSION_CREATE = [
|
|
2526
|
+
{
|
|
2527
|
+
description: 'run your test command with the visual-test plugin server attached:',
|
|
2528
|
+
command: 'bdy tests visual session create "npm test"',
|
|
2529
|
+
},
|
|
2530
|
+
{
|
|
2531
|
+
description: 'skip resource discovery (debugging or asset-free pages):',
|
|
2532
|
+
command: 'bdy tests visual session create "npm test" --skipDiscovery',
|
|
2533
|
+
},
|
|
2534
|
+
{
|
|
2535
|
+
description: 'send snapshots progressively (quicker review during long runs):',
|
|
2536
|
+
command: 'bdy tests visual session create "npm test" --oneByOne',
|
|
2537
|
+
},
|
|
2538
|
+
{
|
|
2539
|
+
description: 'one runner in a parallel session (every runner must share the same $SNAPSHOTS_BUILD_ID):',
|
|
2540
|
+
command: 'bdy tests visual session create "npm test" --parallel',
|
|
2541
|
+
},
|
|
2542
|
+
];
|
|
2543
|
+
exports.EXAMPLE_TESTS_VISUAL_SESSION_CLOSE = [
|
|
2544
|
+
{
|
|
2545
|
+
description: 'close the session after all parallel runners finished (build id read from $SNAPSHOTS_BUILD_ID):',
|
|
2546
|
+
command: 'bdy tests visual session close',
|
|
2547
|
+
},
|
|
2548
|
+
];
|
|
2549
|
+
exports.EXAMPLE_TESTS_CAPTURE = [
|
|
2550
|
+
{
|
|
2551
|
+
description: 'capture an explicit list of urls:',
|
|
2552
|
+
command: 'bdy tests capture --urls "https://example.com,https://example.com/about"',
|
|
2553
|
+
},
|
|
2554
|
+
{
|
|
2555
|
+
description: 'capture from a sitemap and follow links:',
|
|
2556
|
+
command: 'bdy tests capture --sitemap https://example.com/sitemap.xml --follow',
|
|
2557
|
+
},
|
|
2558
|
+
{
|
|
2559
|
+
description: 'capture from a urls file and ignore a globbed selector:',
|
|
2560
|
+
command: 'bdy tests capture --urlsFile ./urls.txt --ignore "header>.banner"',
|
|
2561
|
+
},
|
|
2562
|
+
];
|
|
2563
|
+
exports.EXAMPLE_CRAWL_RUN = [
|
|
2564
|
+
{
|
|
2565
|
+
description: 'crawl a single page and save md/html into current dir:',
|
|
2566
|
+
command: 'bdy crawl run https://example.com --outputType md',
|
|
2567
|
+
},
|
|
2568
|
+
{
|
|
2569
|
+
description: 'follow links and capture full-page screenshots in dark mode:',
|
|
2570
|
+
command: 'bdy crawl run https://example.com --follow --fullPage --outputType png --colorScheme DARK --outputDir ./out',
|
|
2571
|
+
},
|
|
2572
|
+
{
|
|
2573
|
+
description: 'crawl with multiple output types and a specific css selector:',
|
|
2574
|
+
command: 'bdy crawl run https://example.com --outputTypes \'["jpeg","md"]\' --cssSelector "main"',
|
|
2575
|
+
},
|
|
2576
|
+
];
|
|
2577
|
+
exports.EXAMPLE_CRAWL_LINK = [
|
|
2578
|
+
{
|
|
2579
|
+
description: 'interactively link current directory to a crawl suite:',
|
|
2580
|
+
command: 'bdy crawl link',
|
|
2581
|
+
},
|
|
2582
|
+
{
|
|
2583
|
+
description: 'link non-interactively to a specific suite:',
|
|
2584
|
+
command: 'bdy crawl link -w workspace -p project -s suite-identifier',
|
|
2585
|
+
},
|
|
2586
|
+
];
|
|
2587
|
+
exports.EXAMPLE_YAML_PIPELINE = [
|
|
2588
|
+
{
|
|
2589
|
+
description: 'show pipeline schema and examples:',
|
|
2590
|
+
command: 'bdy yaml pipeline',
|
|
2591
|
+
},
|
|
2592
|
+
{
|
|
2593
|
+
description: 'the same schema as json:',
|
|
2594
|
+
command: 'bdy yaml pipeline --format json',
|
|
2595
|
+
},
|
|
2596
|
+
];
|
|
2597
|
+
exports.EXAMPLE_YAML_ACTIONS_LIST = [
|
|
2598
|
+
{
|
|
2599
|
+
description: 'list all action types:',
|
|
2600
|
+
command: 'bdy yaml actions list',
|
|
2601
|
+
},
|
|
2602
|
+
{
|
|
2603
|
+
description: 'search action types:',
|
|
2604
|
+
command: 'bdy yaml actions list --search kubernetes',
|
|
2605
|
+
},
|
|
2606
|
+
{
|
|
2607
|
+
description: 'list as json, for an editor plugin or an agent:',
|
|
2608
|
+
command: 'bdy yaml actions list --format json',
|
|
2609
|
+
},
|
|
2610
|
+
];
|
|
2611
|
+
exports.EXAMPLE_YAML_ACTIONS_INFO = [
|
|
2612
|
+
{
|
|
2613
|
+
description: 'show action schema and example:',
|
|
2614
|
+
command: 'bdy yaml actions info KUBERNETES_CLI',
|
|
2615
|
+
},
|
|
2616
|
+
{
|
|
2617
|
+
description: 'the same schema as json:',
|
|
2618
|
+
command: 'bdy yaml actions info KUBERNETES_CLI --format json',
|
|
2619
|
+
},
|
|
2620
|
+
];
|
|
2621
|
+
exports.EXAMPLE_YAML_VALIDATE = [
|
|
2622
|
+
{
|
|
2623
|
+
description: 'validate a pipeline file:',
|
|
2624
|
+
command: 'bdy yaml validate buddy.yml',
|
|
2625
|
+
},
|
|
2626
|
+
{
|
|
2627
|
+
description: 'Return the result as JSON',
|
|
2628
|
+
command: 'bdy yaml validate buddy.yml --format json',
|
|
2629
|
+
},
|
|
2630
|
+
];
|
|
1914
2631
|
// action texts (used by yaml/action commands)
|
|
1915
2632
|
exports.OPTION_ACTION_SEARCH = 'Search by name, type, or description';
|
|
1916
2633
|
exports.OPTION_ACTION_TYPE = 'Action type or slug (e.g. BUILD, KUBERNETES_CLI, transfer)';
|
|
@@ -1956,3 +2673,120 @@ const ERR_YAML_SCHEMA_FETCH_FAILED = (url) => `Failed to fetch yaml-schema from
|
|
|
1956
2673
|
exports.ERR_YAML_SCHEMA_FETCH_FAILED = ERR_YAML_SCHEMA_FETCH_FAILED;
|
|
1957
2674
|
const ERR_YAML_SCHEMA_READ_FAILED = (path) => `Failed to read yaml-schema from ${path}`;
|
|
1958
2675
|
exports.ERR_YAML_SCHEMA_READ_FAILED = ERR_YAML_SCHEMA_READ_FAILED;
|
|
2676
|
+
exports.EXAMPLE_SANDBOX_LOGS = [
|
|
2677
|
+
{
|
|
2678
|
+
description: 'Return boot logs as JSONL',
|
|
2679
|
+
command: 'bdy sandbox logs my-sandbox --format jsonl',
|
|
2680
|
+
},
|
|
2681
|
+
];
|
|
2682
|
+
const ERR_API_SCHEMA_NOT_FOUND = (name) => `API schema not found: ${name}`;
|
|
2683
|
+
exports.ERR_API_SCHEMA_NOT_FOUND = ERR_API_SCHEMA_NOT_FOUND;
|
|
2684
|
+
exports.EXAMPLE_API_INFO = [
|
|
2685
|
+
{
|
|
2686
|
+
description: 'Return the result as JSON',
|
|
2687
|
+
command: 'bdy api info GET /workspaces --format json',
|
|
2688
|
+
},
|
|
2689
|
+
];
|
|
2690
|
+
exports.EXAMPLE_API_LIST = [
|
|
2691
|
+
{
|
|
2692
|
+
description: 'Return the result as JSON',
|
|
2693
|
+
command: 'bdy api list --format json',
|
|
2694
|
+
},
|
|
2695
|
+
];
|
|
2696
|
+
exports.EXAMPLE_DOMAIN_SEARCH = [
|
|
2697
|
+
{
|
|
2698
|
+
description: 'Return the result as JSON',
|
|
2699
|
+
command: 'bdy domain search example.com --format json',
|
|
2700
|
+
},
|
|
2701
|
+
];
|
|
2702
|
+
exports.EXAMPLE_AGENT_STATUS = [
|
|
2703
|
+
{
|
|
2704
|
+
description: 'Return the result as JSON',
|
|
2705
|
+
command: 'bdy agent status --format json',
|
|
2706
|
+
},
|
|
2707
|
+
];
|
|
2708
|
+
exports.EXAMPLE_AGENT_VERSION = [
|
|
2709
|
+
{
|
|
2710
|
+
description: 'Return the result as JSON',
|
|
2711
|
+
command: 'bdy agent version --format json',
|
|
2712
|
+
},
|
|
2713
|
+
];
|
|
2714
|
+
exports.EXAMPLE_AGENT_TARGET_STATUS = [
|
|
2715
|
+
{
|
|
2716
|
+
description: 'Return the result as JSON',
|
|
2717
|
+
command: 'bdy agent target status --format json',
|
|
2718
|
+
},
|
|
2719
|
+
];
|
|
2720
|
+
exports.EXAMPLE_AGENT_PROXY_STATUS = [
|
|
2721
|
+
{
|
|
2722
|
+
description: 'Return the result as JSON',
|
|
2723
|
+
command: 'bdy agent proxy status --format json',
|
|
2724
|
+
},
|
|
2725
|
+
];
|
|
2726
|
+
exports.EXAMPLE_AGENT_TAGS_GET = [
|
|
2727
|
+
{
|
|
2728
|
+
description: 'Return the result as JSON',
|
|
2729
|
+
command: 'bdy agent tags get --format json',
|
|
2730
|
+
},
|
|
2731
|
+
];
|
|
2732
|
+
exports.HELP_YAML_VALIDATE_JSON = `
|
|
2733
|
+
JSON OUTPUT:
|
|
2734
|
+
{valid, pipelines, errors, warnings}: each issue has pipeline, path and message.
|
|
2735
|
+
Unknown top-level keys are warnings; they do not change valid or the exit code.
|
|
2736
|
+
Pipeline numbers start at 1; array indexes in paths start at 0 (actions[0].type).
|
|
2737
|
+
Invalid document structure uses pipeline 0 and an empty path.
|
|
2738
|
+
`;
|
|
2739
|
+
exports.HELP_DOMAIN_SEARCH_JSON = `
|
|
2740
|
+
JSON OUTPUT:
|
|
2741
|
+
{search, claims, suggestions}: complete API responses without sorting or filtering.
|
|
2742
|
+
search or claims is null when that API was not called for the supplied prompt.
|
|
2743
|
+
`;
|
|
2744
|
+
exports.HELP_API_INFO_JSON = `
|
|
2745
|
+
JSON OUTPUT:
|
|
2746
|
+
{method, path, operation}: resolved path and the complete raw OpenAPI operation.
|
|
2747
|
+
--request-schema or --response-schema returns the selected raw schema.
|
|
2748
|
+
With both flags the result is {request, response}. Schema references are preserved.
|
|
2749
|
+
`;
|
|
2750
|
+
exports.HELP_SANDBOX_EXEC_JSONL = `
|
|
2751
|
+
JSONL OUTPUT:
|
|
2752
|
+
One JSON record per line. Log records contain type="log" and data;
|
|
2753
|
+
stream is included only when the API identifies stdout or stderr.
|
|
2754
|
+
The final record contains type="exit", status and exit_code (null if unavailable).
|
|
2755
|
+
`;
|
|
2756
|
+
exports.HELP_SANDBOX_EXEC_COMMAND_JSONL = `
|
|
2757
|
+
JSONL OUTPUT:
|
|
2758
|
+
Starts with {type:"command", command:<API response>}.
|
|
2759
|
+
Without --wait it emits only that command record.
|
|
2760
|
+
With --wait, log records contain type="log" and data;
|
|
2761
|
+
stream is included only when the API identifies stdout or stderr.
|
|
2762
|
+
The final record contains type="exit", status and exit_code (null if unavailable).
|
|
2763
|
+
`;
|
|
2764
|
+
exports.HELP_TARGET_EXEC_LOGS_JSONL = `
|
|
2765
|
+
JSONL OUTPUT:
|
|
2766
|
+
One JSON record per line. Log records contain type="log" and data.
|
|
2767
|
+
The final record contains type="exit", status, exit_code (null if unavailable)
|
|
2768
|
+
and truncated. Truncated logs also produce a warning on stderr.
|
|
2769
|
+
`;
|
|
2770
|
+
exports.EXAMPLE_CONFIG_GET_TUNNEL = [
|
|
2771
|
+
{
|
|
2772
|
+
description: 'Return one configured tunnel as JSON',
|
|
2773
|
+
command: 'bdy tunnel config get tunnel my-http --format json',
|
|
2774
|
+
},
|
|
2775
|
+
];
|
|
2776
|
+
exports.EXAMPLE_CONFIG_GET_TUNNELS = [
|
|
2777
|
+
{
|
|
2778
|
+
description: 'Return configured tunnels as JSON',
|
|
2779
|
+
command: 'bdy tunnel config get tunnels --format json',
|
|
2780
|
+
},
|
|
2781
|
+
];
|
|
2782
|
+
exports.HELP_SANDBOX_APP_ADD_JSON = `
|
|
2783
|
+
JSON OUTPUT:
|
|
2784
|
+
Returns the complete sandbox response from the update API, including its apps array.
|
|
2785
|
+
`;
|
|
2786
|
+
exports.HELP_AGENT_STATUS_JSON = `
|
|
2787
|
+
JSON OUTPUT:
|
|
2788
|
+
Preserves the running agent API status and adds installed, standalone, id, version,
|
|
2789
|
+
running and orphaned_config (the ignored app config path, or null).
|
|
2790
|
+
An installed but stopped agent returns running=false and exits successfully.
|
|
2791
|
+
Version is null when unavailable. A missing or unreadable installation is an error.
|
|
2792
|
+
`;
|