bdy 1.25.39-dev-pr → 1.25.39-stage
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 +1 -2
- package/distTs/src/api/client.js +1 -191
- package/distTs/src/cliError.js +0 -5
- package/distTs/src/cliIndex.js +0 -3
- package/distTs/src/command/login.js +1 -1
- package/distTs/src/output/pipeline.js +56 -54
- package/distTs/src/output.js +22 -85
- package/distTs/src/texts.js +1 -509
- package/distTs/src/tunnel/output/interactive/tunnel.js +10 -14
- package/distTs/src/tunnel/output/noninteractive/tunnel.js +1 -3
- package/distTs/src/utils.js +6 -142
- package/package.json +1 -2
- package/distTs/src/autocomplete.js +0 -90
- package/distTs/src/command/artifact/downloadDir.js +0 -110
- package/distTs/src/command/autocomplete/install.js +0 -16
- package/distTs/src/command/autocomplete/uninstall.js +0 -16
- package/distTs/src/command/autocomplete.js +0 -14
- package/distTs/src/command/environment/resolve.js +0 -39
- package/distTs/src/command/package/create.js +0 -64
- package/distTs/src/command/package/delete.js +0 -38
- package/distTs/src/command/package/docker/login.js +0 -26
- package/distTs/src/command/package/docker.js +0 -11
- package/distTs/src/command/package/download.js +0 -138
- package/distTs/src/command/package/get.js +0 -36
- package/distTs/src/command/package/list.js +0 -31
- package/distTs/src/command/package/publish.js +0 -241
- package/distTs/src/command/package/version/delete.js +0 -39
- package/distTs/src/command/package/version/get.js +0 -45
- package/distTs/src/command/package/version/list.js +0 -47
- package/distTs/src/command/package/version.js +0 -16
- package/distTs/src/command/package.js +0 -26
- package/distTs/src/command/pipeline/run/apply.js +0 -62
- package/distTs/src/command/pr/comment/add.js +0 -66
- package/distTs/src/command/pr/comment/list.js +0 -167
- package/distTs/src/command/pr/comment/status.js +0 -50
- package/distTs/src/command/pr/comment.js +0 -19
- package/distTs/src/command/pr/create.js +0 -44
- package/distTs/src/command/pr/diff.js +0 -337
- package/distTs/src/command/pr/file/list.js +0 -139
- package/distTs/src/command/pr/file/mark.js +0 -45
- package/distTs/src/command/pr/file.js +0 -16
- package/distTs/src/command/pr/get.js +0 -29
- package/distTs/src/command/pr/list.js +0 -79
- package/distTs/src/command/pr/merge.js +0 -67
- package/distTs/src/command/pr/review/request.js +0 -30
- package/distTs/src/command/pr/review/start.js +0 -29
- package/distTs/src/command/pr/review/verdict.js +0 -81
- package/distTs/src/command/pr/review.js +0 -18
- package/distTs/src/command/pr/shared.js +0 -704
- package/distTs/src/command/pr/state.js +0 -38
- package/distTs/src/command/pr/summary.js +0 -341
- package/distTs/src/command/pr/update.js +0 -56
- package/distTs/src/command/pr/updateBranch.js +0 -22
- package/distTs/src/command/pr/versions.js +0 -42
- package/distTs/src/command/pr.js +0 -39
- package/distTs/src/command/scrape/validation.js +0 -154
- package/distTs/src/command/scrape.js +0 -144
- package/distTs/src/command/suiteLink.js +0 -14
- package/distTs/src/command/tests/visual/result/download.js +0 -31
- package/distTs/src/command/tests/visual/result/get.js +0 -68
- package/distTs/src/command/tests/visual/result/list.js +0 -49
- package/distTs/src/command/tests/visual/result.js +0 -23
- package/distTs/src/command/tests/visual/session/get.js +0 -70
- package/distTs/src/command/tests/visual/session/list.js +0 -69
- package/distTs/src/command/tests/visual/session/open.js +0 -22
- package/distTs/src/command/tests/visual/session/reviewUrl.js +0 -37
- package/distTs/src/command/tests/visual/session/update.js +0 -26
- package/distTs/src/command/tests/visual/shared/context.js +0 -144
- package/distTs/src/command/tests/visual/shared/diffRegions.js +0 -172
- package/distTs/src/command/tests/visual/shared/format.js +0 -21
- package/distTs/src/command/tests/visual/shared/lookup.js +0 -107
- package/distTs/src/command/tests/visual/shared/options.js +0 -90
- package/distTs/src/command/tests/visual/shared/review.js +0 -146
- package/distTs/src/command/tests/visual/shared/reviewUrl.js +0 -62
- package/distTs/src/command/tests/visual/shared/session.js +0 -217
- package/distTs/src/command/tests/visual/snapshot/get.js +0 -46
- package/distTs/src/command/tests/visual/snapshot/list.js +0 -68
- package/distTs/src/command/tests/visual/snapshot/open.js +0 -26
- package/distTs/src/command/tests/visual/snapshot/reviewUrl.js +0 -48
- package/distTs/src/command/tests/visual/snapshot.js +0 -28
- package/distTs/src/command/tests/visual/suite/create.js +0 -38
- package/distTs/src/command/tests/visual/suite/delete.js +0 -29
- package/distTs/src/command/tests/visual/suite/get.js +0 -43
- package/distTs/src/command/tests/visual/suite/list.js +0 -35
- package/distTs/src/command/tests/visual/suite/open.js +0 -20
- package/distTs/src/command/tests/visual/suite/update.js +0 -47
- package/distTs/src/command/tests/visual/suite.js +0 -30
- package/distTs/src/command/ut/upload.js +0 -86
- package/distTs/src/command/ut.js +0 -12
- package/distTs/src/command/vt/close.js +0 -27
- package/distTs/src/command/vt/compare/validation.js +0 -46
- package/distTs/src/command/vt/compare.js +0 -100
- package/distTs/src/command/vt/exec.js +0 -82
- package/distTs/src/command/vt/installBrowser.js +0 -20
- package/distTs/src/command/vt/shared/validation.js +0 -145
- package/distTs/src/command/vt/storybook.js +0 -138
- package/distTs/src/command/vt.js +0 -20
- package/distTs/src/command/yaml/agents.js +0 -88
- package/distTs/src/command/yaml/init.js +0 -110
- package/distTs/src/main.js +0 -190
- package/distTs/src/types/options.js +0 -2
- package/distTs/src/types/scrape.js +0 -2
- package/distTs/src/types/visualTests.js +0 -2
package/distTs/src/texts.js
CHANGED
|
@@ -29,12 +29,7 @@ exports.TXT_PIPELINE_FAILED_LOGS_HEADER = exports.OPTION_PIPELINE_RUN_FAILED_LOG
|
|
|
29
29
|
exports.EXAMPLE_ARTIFACT_VERSION_UPDATE = 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 = exports.EXAMPLE_ARTIFACT_VERSION_CREATE = exports.EXAMPLE_PIPELINE_RUN_RETRY = exports.HELP_PIPELINE_RUN_RETRY = exports.EXAMPLE_PIPELINE_RUN_LIST = exports.EXAMPLE_PIPELINE_RUN_FIND = exports.HELP_PIPELINE_RUN_FIND = exports.TXT_PIPELINE_RUN_FIND_MORE = exports.TXT_PIPELINE_RUN_FIND_SUMMARY = exports.TXT_PIPELINE_RUN_FIND_COLUMNS = exports.ERR_PIPELINE_RUN_FIND_ARTIFACT = exports.ERR_PIPELINE_RUN_FIND_PR = exports.ERR_PIPELINE_RUN_FIND_STATUS = exports.ERR_PIPELINE_RUN_FIND_FILTER = exports.ERR_PIPELINE_RUN_FIND_LAST = exports.OPTION_PIPELINE_RUN_FIND_STATUS = exports.OPTION_PIPELINE_RUN_FIND_ARTIFACT = exports.OPTION_PIPELINE_RUN_FIND_ENVIRONMENT = exports.OPTION_PIPELINE_RUN_FIND_FROM_REVISION = exports.OPTION_PIPELINE_RUN_FIND_REVISION = exports.OPTION_PIPELINE_RUN_FIND_PR = exports.OPTION_PIPELINE_RUN_FIND_TAG = exports.OPTION_PIPELINE_RUN_FIND_BRANCH = exports.OPTION_PIPELINE_RUN_FIND_LAST = exports.DESC_COMMAND_PIPELINE_RUN_FIND = 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_LOGS = exports.HELP_PIPELINE_RUN_STATUS = exports.TXT_PIPELINE_RUN_NEXT = exports.HELP_PIPELINE_RUN_JSONL = exports.EXAMPLE_PIPELINE_RUN_STATUS = exports.HELP_PIPELINE_RUN_FAILED_LOGS = exports.TXT_PIPELINE_FAILED_LOGS_ERROR = exports.TXT_PIPELINE_FAILED_LOGS_EMPTY = exports.ERR_PIPELINE_FAILED_LOGS_COUNT = void 0;
|
|
30
30
|
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 = 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_UPDATE = void 0;
|
|
31
31
|
exports.ERR_CONTEXT_API = exports.ERR_CONTEXT_PROJECT = exports.ERR_CONTEXT_SOURCE = exports.ERR_CONTEXT_NAME = exports.ERR_CONTEXT_EXISTS = exports.ERR_CONTEXT_RESERVED = exports.ERR_CONTEXT_UNKNOWN = exports.TXT_CONTEXT_LINK_HINT = exports.TXT_CONTEXT_GIT_HINT = exports.TXT_CONTEXT_HINT = exports.OPTION_CONTEXT_API = exports.OPTION_CONTEXT_TOKEN = exports.OPTION_CONTEXT_REMOTE = exports.OPTION_CONTEXT_GIT = exports.OPTION_CONTEXT_LINK = exports.OPTION_CONTEXT_NAME = exports.DESC_CONTEXT_REMOVE = exports.DESC_CONTEXT_USE = exports.DESC_CONTEXT_SHOW = exports.DESC_CONTEXT_LIST = exports.DESC_CONTEXT_ADD = exports.DESC_CONTEXT = exports.OPTION_CONTEXT = 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_INTEGRATION_EXEC = exports.HELP_TARGET_EXEC_COMMAND = exports.HELP_TARGET_EXEC_STATUS = exports.HELP_SANDBOX_EXEC_STATUS = exports.HELP_API_INFO_JSON = exports.HELP_DOMAIN_SEARCH_JSON = exports.HELP_DOMAIN_IMPORT = 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_IMPORT = exports.EXAMPLE_DOMAIN_UPDATE = exports.EXAMPLE_DOMAIN_YAML = exports.EXAMPLE_DOMAIN_DELETE = exports.EXAMPLE_DOMAIN_CREATE = exports.EXAMPLE_DOMAIN_LIST = exports.EXAMPLE_DOMAIN_BUY = void 0;
|
|
32
|
-
exports.
|
|
33
|
-
exports.OPTION_PR_DESCRIPTION = exports.OPTION_PR_TITLE = exports.OPTION_PR_CREATE_HEAD = exports.OPTION_PR_CREATE_BASE = exports.OPTION_PR_REVIEW_LOGINS = exports.OPTION_PR_APPROVE_FORCE = exports.OPTION_PR_REASON = exports.OPTION_PR_OLD_LINE = exports.OPTION_PR_NEW_LINE = exports.OPTION_PR_COMMENT_PATH = exports.OPTION_PR_THREAD_PATH = exports.OPTION_PR_THREAD_STATUS = exports.OPTION_PR_COMMENT_THREAD = exports.OPTION_PR_COMMENT_THREADS = exports.OPTION_PR_COMMENT_SINCE_REVIEW = exports.OPTION_PR_FILE_PATHS = exports.OPTION_PR_FILES_FROM = exports.OPTION_PR_FILES_BATCH = exports.OPTION_PR_FILES_UNCLEAR = exports.OPTION_PR_FILES_MUST_REVIEW = exports.OPTION_PR_FILES_SINCE_REVIEW = exports.OPTION_PR_DIFF_FROM = exports.OPTION_PR_DIFF_FULL = exports.OPTION_PR_DIFF_NO_MARK_VIEWED = exports.OPTION_PR_DIFF_BATCH = exports.OPTION_PR_DIFF_PATH = exports.OPTION_PR_SINCE_REVIEW_GET = exports.OPTION_PR_PER_PAGE = exports.OPTION_PR_BASE_FILTER = exports.OPTION_PR_HEAD_FILTER = exports.OPTION_PR_REVIEWER = exports.OPTION_PR_AUTHOR = exports.OPTION_PR_STATE = exports.OPTION_PR_MESSAGE_FILE = exports.OPTION_PR_MESSAGE = exports.OPTION_PR_REV_IGNORED = exports.OPTION_PR_REV = exports.OPTION_PR_NUMBER = exports.DESC_COMMAND_PR_UPDATE_BRANCH = exports.DESC_COMMAND_PR_MERGE = exports.DESC_COMMAND_PR_DRAFT = exports.DESC_COMMAND_PR_READY = exports.DESC_COMMAND_PR_REOPEN = exports.DESC_COMMAND_PR_CLOSE = exports.DESC_COMMAND_PR_UPDATE = exports.DESC_COMMAND_PR_CREATE = exports.DESC_COMMAND_PR_REVIEW_REQUEST = exports.DESC_COMMAND_PR_REVIEW_REQUEST_CHANGES = exports.DESC_COMMAND_PR_REVIEW_APPROVE = exports.DESC_COMMAND_PR_REVIEW_START = void 0;
|
|
34
|
-
exports.ERR_PR_UPDATE_NOTHING = exports.ERR_PR_NO_HEAD = exports.ERR_PR_NOT_APPROVED = exports.ERR_PR_LIST_SINCE_REVIEW_THREADS = exports.ERR_PR_LIST_THREAD_OPTIONS = exports.ERR_PR_LIST_MODES = exports.ERR_PR_THREAD_REQUIRED = exports.ERR_PR_LINE_RANGE = exports.ERR_PR_LINE = exports.ERR_PR_COMMENT_LINE_WITHOUT_PATH = exports.ERR_PR_COMMENT_LINE = exports.ERR_PR_COMMENT_MODES = exports.ERR_PR_ARGS = exports.ERR_PR_DIFF_FAILED = exports.ERR_PR_DIFF_LONE_NUMBER = exports.ERR_PR_DIFF_ARGS = exports.ERR_PR_AUTHOR_NO_REVIEW = exports.ERR_PR_NO_REVIEW = exports.ERR_PR_BATCH_RANGE = exports.ERR_PR_NO_BATCHES = exports.ERR_PR_BATCH = exports.ERR_PR_FILE_FROM_BATCH = exports.ERR_PR_FILE_FILTERS = exports.ERR_PR_MERGE_METHOD = exports.ERR_PR_REASON = exports.ERR_PR_THREAD_STATUS = exports.ERR_PR_STATE = exports.ERR_PR_MESSAGE_NOT_FILE = exports.ERR_PR_MESSAGE_FILE = exports.ERR_PR_MESSAGE_AT_FILE = exports.ERR_PR_MESSAGE_BOTH = exports.ERR_PR_MESSAGE_REQUIRED = exports.ERR_PR_MANY_FOR_BRANCH = exports.ERR_PR_NOT_FOUND_FOR_BRANCH = exports.ERR_PR_NO_BRANCH = exports.ERR_PR_REV = exports.ERR_PR_NUMBER = exports.OPTION_PR_NO_REVIEW = exports.OPTION_PR_MERGE_MESSAGE_FILE = exports.OPTION_PR_MERGE_MESSAGE = exports.OPTION_PR_DELETE_BRANCH = exports.OPTION_PR_MERGE_METHOD = exports.OPTION_PR_UPDATE_BASE = exports.OPTION_PR_ASSIGNEE = exports.OPTION_PR_CREATE_REVIEWER = exports.OPTION_PR_REMOVE_LABEL = exports.OPTION_PR_ADD_LABEL = exports.OPTION_PR_LABEL = exports.OPTION_PR_DRAFT = exports.OPTION_PR_DESCRIPTION_FILE = void 0;
|
|
35
|
-
exports.TXT_PR_FILE_UNCLEAR = exports.TXT_PR_FILE_SKIP = exports.TXT_PR_FILE_BINARY = exports.TXT_PR_REVIEW_REQUESTED_PENDING = exports.TXT_PR_DRAFT = exports.TXT_PR_FILE_MUST_REVIEW = exports.TXT_PR_PROCESSING_NOTE = exports.TXT_PR_PROCESSING = exports.TXT_PR_BATCH_LINE = exports.TXT_PR_BATCHES_INSTRUCTION = exports.TXT_PR_MUST_REVIEW_SUMMARY = exports.TXT_PR_MY_REVIEW = exports.TXT_PR_AUTHOR_NOTE = exports.TXT_PR_SECTION_AUTHOR_STEPS = exports.TXT_PR_SECTION_STEPS = exports.TXT_PR_SECTION_SETTLED = exports.TXT_PR_SECTION_SINCE_REVIEW = exports.TXT_PR_SECTION_VERSIONS = exports.TXT_PR_SECTION_BATCHES = exports.TXT_PR_SECTION_MUST_REVIEW = exports.TXT_PR_SECTION_ACTIVITY = exports.TXT_PR_SECTION_FILES = exports.TXT_PR_SECTION_THREADS = exports.TXT_PR_SECTION_REVIEWS = exports.TXT_PR_SECTION_DESCRIPTION = exports.TXT_PR_MORE_LINES = exports.TXT_PR_ALL = exports.TXT_PR_MORE = exports.TXT_PR_APPROVAL_FORCE_HINT = exports.TXT_PR_APPROVAL_BATCHES = exports.TXT_PR_APPROVAL_TRIAGE_PENDING = exports.TXT_PR_APPROVAL_NOT_VIEWED = exports.TXT_PR_APPROVAL_OPEN_THREADS = exports.TXT_PR_MERGE_VERSION_CONFLICT = exports.TXT_PR_VERSION_CONFLICT = exports.TXT_PR_VERSION_BEHIND = exports.TXT_PR_ACTIVITY_MERGED = exports.TXT_PR_ACTIVITY_REOPENED = exports.TXT_PR_ACTIVITY_CLOSED = exports.TXT_PR_ACTIVITY_OPENED = exports.TXT_PR_ACTIVITY_REVIEW_REQUESTED = exports.TXT_PR_ACTIVITY_APPROVAL_RESET = exports.TXT_PR_ACTIVITY_FORCED = exports.TXT_PR_ACTIVITY_VERDICT = exports.TXT_PR_ACTIVITY_COMMENTED = exports.TXT_PR_ACTIVITY_NOT_FOUND = exports.TXT_PR_THREADS_NOT_FOUND = exports.TXT_PR_FILES_NOT_FOUND = exports.TXT_PR_NOT_FOUND = exports.ERR_PR_APPROVAL_BLOCKED = void 0;
|
|
36
|
-
exports.TXT_PR_REASON_THREAD = exports.TXT_PR_REASON_CHANGED = exports.TXT_PR_FILES_UNVIEWED = exports.TXT_PR_FILES_VIEWED = exports.TXT_PR_DIFF_VIEW_FAILED = exports.TXT_PR_DIFF_VIEW_HINT = exports.TXT_PR_DIFF_VIEWED_MANY = exports.TXT_PR_DIFF_VIEWED = exports.TXT_PR_DIFF_GONE = exports.TXT_PR_DIFF_REMOVED = exports.TXT_PR_DIFF_DUPLICATE = exports.TXT_PR_DIFF_COSMETIC = exports.TXT_PR_DIFF_EMPTY = exports.TXT_PR_DIFF_BINARY = exports.TXT_PR_DIFF_TRUNCATED = exports.TXT_PR_DIFF_FIELD_SYMBOLS = exports.TXT_PR_DIFF_FIELD_TYPE = exports.TXT_PR_DIFF_FIELD_VERSION = exports.TXT_PR_DIFF_COLUMN_NEW = exports.TXT_PR_DIFF_COLUMN_OLD = exports.TXT_PR_DIFF_CURRENT = exports.TXT_PR_DIFF_MODE_INTERDIFF = exports.TXT_PR_DIFF_MODE_DEFAULT = exports.TXT_PR_DIFF_MODE_FULL = exports.TXT_PR_STEP_AUTHOR_REQUEST = exports.TXT_PR_STEP_AUTHOR_RESOLVE = exports.TXT_PR_STEP_AUTHOR_THREADS = exports.TXT_PR_STEP_VERDICT = exports.TXT_PR_STEP_SETTLE = exports.TXT_PR_STEP_THREADS = exports.TXT_PR_STEP_FILES = exports.TXT_PR_MINE = exports.TXT_PR_LAST_REPLY = exports.TXT_PR_POSITION_BASE = exports.TXT_PR_NO_REPLY = exports.TXT_PR_ANCHOR_GONE = exports.TXT_PR_ANCHOR_MOVED = exports.TXT_PR_ANCHOR_TOUCHED = exports.TXT_PR_ANCHOR_INTACT = exports.TXT_PR_OPENED_AT = exports.TXT_PR_MOVED_FROM = exports.TXT_PR_SAME_CHANGE = exports.TXT_PR_VERSION_KIND_REWRITE = exports.TXT_PR_VERSION_KIND_REBASE = exports.TXT_PR_VERSION_MARK_MY_REVIEW = exports.TXT_PR_VERSION_MARK_SHOWN = exports.TXT_PR_VERSION_MARK_CURRENT = exports.TXT_PR_SINCE_REVIEW_SUMMARY = exports.TXT_PR_FILE_VIEWED = exports.TXT_PR_FILE_NOT_TRIAGED = void 0;
|
|
37
|
-
exports.EXAMPLE_PR = exports.EXAMPLE_PR_UPDATE_BRANCH = exports.EXAMPLE_PR_MERGE = exports.EXAMPLE_PR_DRAFT = exports.EXAMPLE_PR_READY = exports.EXAMPLE_PR_REOPEN = exports.EXAMPLE_PR_CLOSE = exports.EXAMPLE_PR_UPDATE = exports.EXAMPLE_PR_CREATE = exports.EXAMPLE_PR_REVIEW = exports.EXAMPLE_PR_REVIEW_REQUEST = exports.EXAMPLE_PR_REVIEW_REQUEST_CHANGES = exports.EXAMPLE_PR_REVIEW_APPROVE = exports.EXAMPLE_PR_REVIEW_START = exports.EXAMPLE_PR_COMMENT = exports.EXAMPLE_PR_COMMENT_REOPEN = exports.EXAMPLE_PR_COMMENT_CLOSE = exports.EXAMPLE_PR_COMMENT_RESOLVE = exports.EXAMPLE_PR_COMMENT_ADD = exports.EXAMPLE_PR_COMMENT_LIST = exports.EXAMPLE_PR_FILE = exports.EXAMPLE_PR_FILE_UNVIEWED = exports.EXAMPLE_PR_FILE_VIEWED = exports.EXAMPLE_PR_FILE_LIST = exports.EXAMPLE_PR_DIFF = exports.HELP_PR_FILE_LIST = exports.EXAMPLE_PR_GET = exports.EXAMPLE_PR_VERSIONS = exports.EXAMPLE_PR_LIST = exports.HELP_PR = exports.TXT_PR_BRANCH_UPDATED = exports.TXT_PR_MERGED = exports.TXT_PR_MERGE_CONFIRM = exports.TXT_PR_DRAFTED = exports.TXT_PR_READY = exports.TXT_PR_REOPENED = exports.TXT_PR_CLOSED = exports.TXT_PR_NEW_VERSION = exports.TXT_PR_UPDATED = exports.TXT_PR_CREATED = exports.TXT_PR_REVIEW_REQUESTED = exports.TXT_PR_REVIEW_VERDICT = exports.TXT_PR_THREAD_STATUS = exports.TXT_PR_THREAD_REPLIED = exports.TXT_PR_THREAD_ADDED = exports.TXT_PR_COMMENT_ADDED = void 0;
|
|
32
|
+
exports.HELP_CONTEXT_REMOVE = exports.HELP_CONTEXT_USE = exports.HELP_CONTEXT_SHOW = exports.HELP_CONTEXT_LIST = exports.HELP_CONTEXT_ADD = exports.EXAMPLE_CONTEXT_REMOVE = exports.EXAMPLE_CONTEXT_USE = exports.EXAMPLE_CONTEXT_SHOW = exports.EXAMPLE_CONTEXT_LIST = exports.EXAMPLE_CONTEXT_ADD = exports.TXT_CONTEXT_TOKEN_MISSING = exports.TXT_CONTEXT_TOKEN_AVAILABLE = exports.TXT_CONTEXT_TOKEN_LABEL = exports.TXT_CONTEXT_REMOTE_LABEL = exports.TXT_CONTEXT_API_LABEL = exports.TXT_CONTEXT_PROJECT_LABEL = exports.TXT_CONTEXT_WORKSPACE_LABEL = exports.TXT_CONTEXT_SOURCE_LABEL = exports.TXT_CONTEXT_LABEL = exports.TXT_CONTEXT_REMOVE_CONFIRM = exports.ERR_CONTEXT_GIT_FAILED = exports.ERR_CONTEXT_GIT_TIMEOUT = exports.TXT_CONTEXT_PROJECT_HINT = exports.TXT_CONTEXT_WORKSPACE_HINT = exports.HELP_CONTEXT = exports.TXT_CONTEXT_REMOVED = exports.TXT_CONTEXT_ACTIVE = exports.TXT_CONTEXT_SAVED = exports.ERR_CONTEXT_LINK_INVALID = exports.ERR_CONTEXT_LINK_MISSING = exports.ERR_CONTEXT_GIT_URL = exports.ERR_CONTEXT_GIT_REMOTE = exports.ERR_CONTEXT_GIT_REPO = exports.ERR_CONTEXT_GIT_MISSING = void 0;
|
|
38
33
|
const utils_1 = require("./utils");
|
|
39
34
|
exports.ERR_CONFIRM_REQUIRED = 'Confirmation is required in non-interactive mode';
|
|
40
35
|
exports.ERR_FOLLOW_WITH_JSON = '--follow cannot be used with --format json';
|
|
@@ -3982,506 +3977,3 @@ A declined confirmation leaves both the context and selection unchanged. In JSON
|
|
|
3982
3977
|
removed is the deleted name, or null when declined; active is the current selection.
|
|
3983
3978
|
Without interactive stdin, missing --force is a usage error (exit 1); nothing is removed.
|
|
3984
3979
|
`;
|
|
3985
|
-
exports.DESC_COMMAND_PR = 'Manage and review pull requests of a Buddy repository';
|
|
3986
|
-
exports.DESC_COMMAND_PR_LIST = 'List pull requests';
|
|
3987
|
-
exports.DESC_COMMAND_PR_VERSIONS = 'List the versions of a pull request';
|
|
3988
|
-
exports.DESC_COMMAND_PR_GET = 'Show a pull request summary: header, reviews, threads, files, activity and the next review steps';
|
|
3989
|
-
exports.DESC_COMMAND_PR_DIFF = 'Show the diff of files with line numbers and their threads; by default only the changes since my review. ' +
|
|
3990
|
-
'In a pipe (not a terminal) it also marks every file shown as viewed by me, which needs REPOSITORY_WRITE; --no-mark-viewed turns that off';
|
|
3991
|
-
exports.DESC_COMMAND_PR_FILE = 'List files of a pull request version and mark them as viewed';
|
|
3992
|
-
exports.DESC_COMMAND_PR_FILE_LIST = 'List the files of a pull request version';
|
|
3993
|
-
exports.DESC_COMMAND_PR_FILE_VIEWED = 'Mark files as viewed by me in a version';
|
|
3994
|
-
exports.DESC_COMMAND_PR_FILE_UNVIEWED = 'Unmark files as viewed by me in a version';
|
|
3995
|
-
exports.DESC_COMMAND_PR_COMMENT = 'Read and write the pull request conversation and line threads';
|
|
3996
|
-
exports.DESC_COMMAND_PR_COMMENT_LIST = 'List the conversation (activity), the line threads (--threads) or one thread (--thread)';
|
|
3997
|
-
exports.DESC_COMMAND_PR_COMMENT_ADD = 'Comment on the pull request, open a thread on a diff line (--path) or reply in a thread (--thread)';
|
|
3998
|
-
exports.DESC_COMMAND_PR_COMMENT_RESOLVE = 'Mark a thread RESOLVED (done, to be verified), optionally with a reply';
|
|
3999
|
-
exports.DESC_COMMAND_PR_COMMENT_CLOSE = 'Close a thread (its author or a reviewer), optionally with a reply';
|
|
4000
|
-
exports.DESC_COMMAND_PR_COMMENT_REOPEN = 'Reopen a RESOLVED or CLOSED thread, optionally with a reply';
|
|
4001
|
-
exports.DESC_COMMAND_PR_REVIEW = 'Start a review, give a verdict or request a review';
|
|
4002
|
-
exports.DESC_COMMAND_PR_REVIEW_START = 'Start my review (idempotent) and show the pull request summary';
|
|
4003
|
-
exports.DESC_COMMAND_PR_REVIEW_APPROVE = 'Approve a version of the pull request';
|
|
4004
|
-
exports.DESC_COMMAND_PR_REVIEW_REQUEST_CHANGES = 'Request changes on a version of the pull request';
|
|
4005
|
-
exports.DESC_COMMAND_PR_REVIEW_REQUEST = 'Ask members to review the pull request';
|
|
4006
|
-
exports.DESC_COMMAND_PR_CREATE = 'Create a pull request';
|
|
4007
|
-
exports.DESC_COMMAND_PR_UPDATE = 'Change the title, description, labels or base branch of a pull request';
|
|
4008
|
-
exports.DESC_COMMAND_PR_CLOSE = 'Close a pull request';
|
|
4009
|
-
exports.DESC_COMMAND_PR_REOPEN = 'Reopen a closed pull request';
|
|
4010
|
-
exports.DESC_COMMAND_PR_READY = 'Mark a draft pull request as ready for review';
|
|
4011
|
-
exports.DESC_COMMAND_PR_DRAFT = 'Turn a pull request back into a draft';
|
|
4012
|
-
exports.DESC_COMMAND_PR_MERGE = 'Merge a version of the pull request';
|
|
4013
|
-
exports.DESC_COMMAND_PR_UPDATE_BRANCH = 'Merge the base branch into the head branch (creates a new version)';
|
|
4014
|
-
exports.OPTION_PR_NUMBER = 'Pull request number. Default: the open pull request of the current git branch';
|
|
4015
|
-
exports.OPTION_PR_REV = 'Version of the pull request to work on, e.g. v3. Default: the current version';
|
|
4016
|
-
exports.OPTION_PR_REV_IGNORED = 'Accepted for commands printed with --rev and ignored: what this command writes does not depend on a version';
|
|
4017
|
-
exports.OPTION_PR_MESSAGE = 'Text, or - to read stdin. @First Last of a project member in the text mentions them. A file: -F <path>';
|
|
4018
|
-
exports.OPTION_PR_MESSAGE_FILE = 'Read the text from this file (- reads stdin) instead of -m';
|
|
4019
|
-
exports.OPTION_PR_STATE = 'State: OPEN, CLOSED, MERGED or ALL. Default: OPEN';
|
|
4020
|
-
exports.OPTION_PR_AUTHOR = 'Author login (username or e-mail), or me';
|
|
4021
|
-
exports.OPTION_PR_REVIEWER = 'Reviewer login (username or e-mail), or me';
|
|
4022
|
-
exports.OPTION_PR_HEAD_FILTER = 'Head branch';
|
|
4023
|
-
exports.OPTION_PR_BASE_FILTER = 'Base branch';
|
|
4024
|
-
exports.OPTION_PR_PER_PAGE = 'Items per page (positive integer, max 100). Default: 20';
|
|
4025
|
-
exports.OPTION_PR_SINCE_REVIEW_GET = 'Only what changed since my review: files, threads not CLOSED and activity after it';
|
|
4026
|
-
exports.OPTION_PR_DIFF_PATH = 'File paths in the version, optionally preceded by the pull request number N';
|
|
4027
|
-
exports.OPTION_PR_DIFF_BATCH = 'Every file of batch k of the MUST_REVIEW list (for a subagent) instead of paths';
|
|
4028
|
-
exports.OPTION_PR_DIFF_NO_MARK_VIEWED = 'Do not mark the files shown as viewed (in a pipe they are marked by default)';
|
|
4029
|
-
exports.OPTION_PR_DIFF_FULL = 'Full diff of the file in the version instead of the changes since my review, with every hunk shown in full. ' +
|
|
4030
|
-
'Without it, hunks with a thread are always shown; other hunks that are only cosmetic (formatting, comments, imports; the code is the same) ' +
|
|
4031
|
-
'or repeat a change shown in another file are collapsed to one line';
|
|
4032
|
-
exports.OPTION_PR_DIFF_FROM = 'Changes since this pull request version, e.g. v2. Default: since the version of my review';
|
|
4033
|
-
exports.OPTION_PR_FILES_SINCE_REVIEW = 'Only files changed since my review or with a thread that is not CLOSED';
|
|
4034
|
-
exports.OPTION_PR_FILES_MUST_REVIEW = 'Only MUST_REVIEW files, in review order';
|
|
4035
|
-
exports.OPTION_PR_FILES_UNCLEAR = 'Only UNCLEAR files, in review order';
|
|
4036
|
-
exports.OPTION_PR_FILES_BATCH = 'Only the files of batch k of the MUST_REVIEW list (for a subagent)';
|
|
4037
|
-
exports.OPTION_PR_FILES_FROM = 'Only files whose change differs from this older version, e.g. v4 (with the previous version: the files of one push)';
|
|
4038
|
-
exports.OPTION_PR_FILE_PATHS = 'File paths, optionally preceded by the pull request number N';
|
|
4039
|
-
exports.OPTION_PR_COMMENT_SINCE_REVIEW = 'Only entries added after my review was last updated';
|
|
4040
|
-
exports.OPTION_PR_COMMENT_THREADS = 'List line threads with their position in the version';
|
|
4041
|
-
exports.OPTION_PR_COMMENT_THREAD = 'Thread id';
|
|
4042
|
-
exports.OPTION_PR_THREAD_STATUS = 'Thread status: OPEN, RESOLVED, CLOSED or ALL. Default: OPEN and RESOLVED';
|
|
4043
|
-
exports.OPTION_PR_THREAD_PATH = 'Only threads on this file (path in the version)';
|
|
4044
|
-
exports.OPTION_PR_COMMENT_PATH = 'File to open a thread on (path in the version)';
|
|
4045
|
-
exports.OPTION_PR_NEW_LINE = 'Line on the head side of the diff, or a range from-to (e.g. 270-276) in one hunk';
|
|
4046
|
-
exports.OPTION_PR_OLD_LINE = 'Line on the base side of the diff, or a range from-to (e.g. 270-276) in one hunk';
|
|
4047
|
-
exports.OPTION_PR_REASON = 'Resolution: fixed, by_design or wontfix. Default: fixed';
|
|
4048
|
-
exports.OPTION_PR_APPROVE_FORCE = 'Approve despite open threads, unviewed MUST_REVIEW files or a pending triage (recorded in the activity)';
|
|
4049
|
-
exports.OPTION_PR_REVIEW_LOGINS = 'Logins (username or e-mail) of the members to ask, optionally preceded by the pull request number N';
|
|
4050
|
-
exports.OPTION_PR_CREATE_BASE = 'Base branch';
|
|
4051
|
-
exports.OPTION_PR_CREATE_HEAD = 'Head branch. Default: the current git branch';
|
|
4052
|
-
exports.OPTION_PR_TITLE = 'Title';
|
|
4053
|
-
exports.OPTION_PR_DESCRIPTION = 'Description: text, or - to read stdin. A file: -F <path>';
|
|
4054
|
-
exports.OPTION_PR_DESCRIPTION_FILE = 'Read the description from this file (- reads stdin) instead of -m';
|
|
4055
|
-
exports.OPTION_PR_DRAFT = 'Create as a draft';
|
|
4056
|
-
exports.OPTION_PR_LABEL = 'Labels (one or more)';
|
|
4057
|
-
exports.OPTION_PR_ADD_LABEL = 'Labels to add (one or more)';
|
|
4058
|
-
exports.OPTION_PR_REMOVE_LABEL = 'Labels to remove (one or more)';
|
|
4059
|
-
exports.OPTION_PR_CREATE_REVIEWER = 'Reviewer logins (one or more)';
|
|
4060
|
-
exports.OPTION_PR_ASSIGNEE = 'Assignee logins (one or more)';
|
|
4061
|
-
exports.OPTION_PR_UPDATE_BASE = 'New base branch (creates a new version)';
|
|
4062
|
-
exports.OPTION_PR_MERGE_METHOD = 'Merge method: MERGE, SQUASH or REBASE. Default: MERGE';
|
|
4063
|
-
exports.OPTION_PR_DELETE_BRANCH = 'Delete the head branch after the merge';
|
|
4064
|
-
exports.OPTION_PR_MERGE_MESSAGE = 'Commit message of the merge (- reads stdin)';
|
|
4065
|
-
exports.OPTION_PR_MERGE_MESSAGE_FILE = 'Read the commit message of the merge from this file (- reads stdin)';
|
|
4066
|
-
exports.OPTION_PR_NO_REVIEW = 'Merge even if no review is APPROVED';
|
|
4067
|
-
exports.ERR_PR_NUMBER = 'The pull request number must be a positive integer';
|
|
4068
|
-
const ERR_PR_REV = (rev) => `Invalid version '${rev}'. Use vK, e.g. v3`;
|
|
4069
|
-
exports.ERR_PR_REV = ERR_PR_REV;
|
|
4070
|
-
exports.ERR_PR_NO_BRANCH = 'Cannot tell the current git branch. Pass the pull request number';
|
|
4071
|
-
const ERR_PR_NOT_FOUND_FOR_BRANCH = (branch) => `No open pull request for branch ${branch}. Pass the pull request number`;
|
|
4072
|
-
exports.ERR_PR_NOT_FOUND_FOR_BRANCH = ERR_PR_NOT_FOUND_FOR_BRANCH;
|
|
4073
|
-
const ERR_PR_MANY_FOR_BRANCH = (branch, numbers) => `More than one open pull request for branch ${branch} (${numbers}). Pass the pull request number`;
|
|
4074
|
-
exports.ERR_PR_MANY_FOR_BRANCH = ERR_PR_MANY_FOR_BRANCH;
|
|
4075
|
-
exports.ERR_PR_MESSAGE_REQUIRED = 'Pass the text with -m <text|-> or -F <path>';
|
|
4076
|
-
exports.ERR_PR_MESSAGE_BOTH = 'Use either -m or -F, not both';
|
|
4077
|
-
const ERR_PR_MESSAGE_AT_FILE = (word) => `-m takes the text itself. To read the file ${word} pass -F ${word}; a mention is @First Last`;
|
|
4078
|
-
exports.ERR_PR_MESSAGE_AT_FILE = ERR_PR_MESSAGE_AT_FILE;
|
|
4079
|
-
const ERR_PR_MESSAGE_FILE = (path) => `File ${path} does not exist`;
|
|
4080
|
-
exports.ERR_PR_MESSAGE_FILE = ERR_PR_MESSAGE_FILE;
|
|
4081
|
-
const ERR_PR_MESSAGE_NOT_FILE = (path) => `${path} is not a file`;
|
|
4082
|
-
exports.ERR_PR_MESSAGE_NOT_FILE = ERR_PR_MESSAGE_NOT_FILE;
|
|
4083
|
-
exports.ERR_PR_STATE = 'State must be OPEN, CLOSED, MERGED or ALL';
|
|
4084
|
-
exports.ERR_PR_THREAD_STATUS = 'Status must be OPEN, RESOLVED, CLOSED or ALL';
|
|
4085
|
-
exports.ERR_PR_REASON = 'Reason must be fixed, by_design or wontfix';
|
|
4086
|
-
exports.ERR_PR_MERGE_METHOD = 'Method must be MERGE, SQUASH or REBASE';
|
|
4087
|
-
exports.ERR_PR_FILE_FILTERS = 'Use only one of --since-review, --must-review, --unclear and --batch';
|
|
4088
|
-
exports.ERR_PR_FILE_FROM_BATCH = '--from cannot be used with --batch: a batch is always cut from the whole MUST_REVIEW list';
|
|
4089
|
-
exports.ERR_PR_BATCH = '--batch must be a positive integer';
|
|
4090
|
-
const ERR_PR_NO_BATCHES = (files, tokens) => `The MUST_REVIEW list is not split into batches (${files} files, ~${tokens} tokens; batches start at ${utils_1.PR_BATCH_MIN_FILES} files or ~${utils_1.PR_BATCH_MIN_TOKENS} tokens)`;
|
|
4091
|
-
exports.ERR_PR_NO_BATCHES = ERR_PR_NO_BATCHES;
|
|
4092
|
-
const ERR_PR_BATCH_RANGE = (batch, count) => `Batch ${batch} does not exist; there are ${count} batches`;
|
|
4093
|
-
exports.ERR_PR_BATCH_RANGE = ERR_PR_BATCH_RANGE;
|
|
4094
|
-
const ERR_PR_NO_REVIEW = (cmd, number) => `You have no review of this pull request. Start one: ${cmd(`review start ${number}`)}`;
|
|
4095
|
-
exports.ERR_PR_NO_REVIEW = ERR_PR_NO_REVIEW;
|
|
4096
|
-
exports.ERR_PR_AUTHOR_NO_REVIEW = 'You are the author of this pull request: the author has no review, so there is nothing since it';
|
|
4097
|
-
const ERR_PR_DIFF_ARGS = (args) => `Expected [N] <path...> or [N] --batch <k>, got: ${args}`;
|
|
4098
|
-
exports.ERR_PR_DIFF_ARGS = ERR_PR_DIFF_ARGS;
|
|
4099
|
-
const ERR_PR_DIFF_LONE_NUMBER = (value) => `${value} alone is the pull request number N without a path. For a file named ${value} pass N first: bdy pr diff <N> ${value}`;
|
|
4100
|
-
exports.ERR_PR_DIFF_LONE_NUMBER = ERR_PR_DIFF_LONE_NUMBER;
|
|
4101
|
-
const ERR_PR_DIFF_FAILED = (paths, marked) => `Could not show: ${paths}. The other files were shown above${marked ? ' and marked as viewed' : ''}`;
|
|
4102
|
-
exports.ERR_PR_DIFF_FAILED = ERR_PR_DIFF_FAILED;
|
|
4103
|
-
const ERR_PR_ARGS = (expected, args) => `Expected ${expected}, got: ${args}`;
|
|
4104
|
-
exports.ERR_PR_ARGS = ERR_PR_ARGS;
|
|
4105
|
-
exports.ERR_PR_COMMENT_MODES = '--path and --thread cannot be used together';
|
|
4106
|
-
exports.ERR_PR_COMMENT_LINE = 'A thread needs exactly one of --new-line and --old-line together with --path';
|
|
4107
|
-
exports.ERR_PR_COMMENT_LINE_WITHOUT_PATH = '--new-line and --old-line need --path';
|
|
4108
|
-
const ERR_PR_LINE = (option) => `${option} must be a positive line number or a range from-to, e.g. 270-276`;
|
|
4109
|
-
exports.ERR_PR_LINE = ERR_PR_LINE;
|
|
4110
|
-
const ERR_PR_LINE_RANGE = (option, value) => `${option} ${value}: a range goes from its first line to its last one`;
|
|
4111
|
-
exports.ERR_PR_LINE_RANGE = ERR_PR_LINE_RANGE;
|
|
4112
|
-
exports.ERR_PR_THREAD_REQUIRED = 'Pass the thread id with --thread <id>';
|
|
4113
|
-
exports.ERR_PR_LIST_MODES = '--threads and --thread cannot be used together';
|
|
4114
|
-
exports.ERR_PR_LIST_THREAD_OPTIONS = '--status and --path need --threads';
|
|
4115
|
-
exports.ERR_PR_LIST_SINCE_REVIEW_THREADS = '--since-review cannot be used with --threads or --thread';
|
|
4116
|
-
exports.ERR_PR_NOT_APPROVED = 'No review of this pull request is APPROVED. Pass --no-review to merge anyway';
|
|
4117
|
-
exports.ERR_PR_NO_HEAD = 'Cannot tell the head branch. Pass --head <branch>';
|
|
4118
|
-
exports.ERR_PR_UPDATE_NOTHING = 'Nothing to update';
|
|
4119
|
-
exports.ERR_PR_APPROVAL_BLOCKED = 'The approval is blocked';
|
|
4120
|
-
exports.TXT_PR_NOT_FOUND = 'No pull requests found';
|
|
4121
|
-
exports.TXT_PR_FILES_NOT_FOUND = 'No files found';
|
|
4122
|
-
exports.TXT_PR_THREADS_NOT_FOUND = 'No threads found';
|
|
4123
|
-
exports.TXT_PR_ACTIVITY_NOT_FOUND = 'No activity found';
|
|
4124
|
-
const TXT_PR_ACTIVITY_COMMENTED = (who) => `${who} commented`;
|
|
4125
|
-
exports.TXT_PR_ACTIVITY_COMMENTED = TXT_PR_ACTIVITY_COMMENTED;
|
|
4126
|
-
const TXT_PR_ACTIVITY_VERDICT = (who, verdict, version) => `${who} gave the verdict ${verdict}${version ? ` on v${version}` : ''}`;
|
|
4127
|
-
exports.TXT_PR_ACTIVITY_VERDICT = TXT_PR_ACTIVITY_VERDICT;
|
|
4128
|
-
exports.TXT_PR_ACTIVITY_FORCED = '(forced past the approval blocks)';
|
|
4129
|
-
const TXT_PR_ACTIVITY_APPROVAL_RESET = (who, version) => `${who}'s approval was reset by the new version${version ? ` v${version}` : ''}`;
|
|
4130
|
-
exports.TXT_PR_ACTIVITY_APPROVAL_RESET = TXT_PR_ACTIVITY_APPROVAL_RESET;
|
|
4131
|
-
const TXT_PR_ACTIVITY_REVIEW_REQUESTED = (who, reviewers) => `${who} requested a review from ${reviewers}`;
|
|
4132
|
-
exports.TXT_PR_ACTIVITY_REVIEW_REQUESTED = TXT_PR_ACTIVITY_REVIEW_REQUESTED;
|
|
4133
|
-
const TXT_PR_ACTIVITY_OPENED = (who) => `${who} opened the pull request`;
|
|
4134
|
-
exports.TXT_PR_ACTIVITY_OPENED = TXT_PR_ACTIVITY_OPENED;
|
|
4135
|
-
const TXT_PR_ACTIVITY_CLOSED = (who) => `${who} closed the pull request`;
|
|
4136
|
-
exports.TXT_PR_ACTIVITY_CLOSED = TXT_PR_ACTIVITY_CLOSED;
|
|
4137
|
-
const TXT_PR_ACTIVITY_REOPENED = (who) => `${who} reopened the pull request`;
|
|
4138
|
-
exports.TXT_PR_ACTIVITY_REOPENED = TXT_PR_ACTIVITY_REOPENED;
|
|
4139
|
-
const TXT_PR_ACTIVITY_MERGED = (who) => `${who} merged the pull request`;
|
|
4140
|
-
exports.TXT_PR_ACTIVITY_MERGED = TXT_PR_ACTIVITY_MERGED;
|
|
4141
|
-
const TXT_PR_VERSION_BEHIND = (current, rev) => `The pull request is at v${current}, you are working on v${rev}`;
|
|
4142
|
-
exports.TXT_PR_VERSION_BEHIND = TXT_PR_VERSION_BEHIND;
|
|
4143
|
-
const TXT_PR_VERSION_CONFLICT = (cmd, number, current) => `The pull request is at ${current ? `v${current}` : 'a newer version'} (a new version appeared after the review started). ` +
|
|
4144
|
-
`Check the changes: ${cmd(`get ${number} --since-review`)}, then rerun the verdict with --rev ${current ? `v${current}` : 'vM'}`;
|
|
4145
|
-
exports.TXT_PR_VERSION_CONFLICT = TXT_PR_VERSION_CONFLICT;
|
|
4146
|
-
const TXT_PR_MERGE_VERSION_CONFLICT = (cmd, number, current) => `The pull request is at ${current ? `v${current}` : 'a newer version'}: a new version appeared before the merge. ` +
|
|
4147
|
-
`Check it: ${cmd(`get ${number} --since-review${current ? ` --rev v${current}` : ''}`)}`;
|
|
4148
|
-
exports.TXT_PR_MERGE_VERSION_CONFLICT = TXT_PR_MERGE_VERSION_CONFLICT;
|
|
4149
|
-
const TXT_PR_APPROVAL_OPEN_THREADS = (count) => `Threads not CLOSED: ${count}`;
|
|
4150
|
-
exports.TXT_PR_APPROVAL_OPEN_THREADS = TXT_PR_APPROVAL_OPEN_THREADS;
|
|
4151
|
-
const TXT_PR_APPROVAL_NOT_VIEWED = (count) => `MUST_REVIEW files not viewed: ${count}`;
|
|
4152
|
-
exports.TXT_PR_APPROVAL_NOT_VIEWED = TXT_PR_APPROVAL_NOT_VIEWED;
|
|
4153
|
-
exports.TXT_PR_APPROVAL_TRIAGE_PENDING = 'The triage of the version is still pending; try again when it is ready';
|
|
4154
|
-
exports.TXT_PR_APPROVAL_BATCHES = 'Batches with unviewed files:';
|
|
4155
|
-
exports.TXT_PR_APPROVAL_FORCE_HINT = 'Close the threads and view the files, or pass --force';
|
|
4156
|
-
const TXT_PR_MORE = (count, command) => `… ${count} more: ${command}`;
|
|
4157
|
-
exports.TXT_PR_MORE = TXT_PR_MORE;
|
|
4158
|
-
const TXT_PR_ALL = (command) => `All: ${command}`;
|
|
4159
|
-
exports.TXT_PR_ALL = TXT_PR_ALL;
|
|
4160
|
-
const TXT_PR_MORE_LINES = (count) => `… ${count} more lines`;
|
|
4161
|
-
exports.TXT_PR_MORE_LINES = TXT_PR_MORE_LINES;
|
|
4162
|
-
exports.TXT_PR_SECTION_DESCRIPTION = 'Description';
|
|
4163
|
-
exports.TXT_PR_SECTION_REVIEWS = 'Reviews';
|
|
4164
|
-
exports.TXT_PR_SECTION_THREADS = 'Threads';
|
|
4165
|
-
exports.TXT_PR_SECTION_FILES = 'Files';
|
|
4166
|
-
exports.TXT_PR_SECTION_ACTIVITY = 'Activity';
|
|
4167
|
-
exports.TXT_PR_SECTION_MUST_REVIEW = 'Must review';
|
|
4168
|
-
exports.TXT_PR_SECTION_BATCHES = 'Batches for subagents';
|
|
4169
|
-
exports.TXT_PR_SECTION_VERSIONS = 'Versions';
|
|
4170
|
-
exports.TXT_PR_SECTION_SINCE_REVIEW = 'Changed since my review';
|
|
4171
|
-
exports.TXT_PR_SECTION_SETTLED = 'Settled (do not report again)';
|
|
4172
|
-
exports.TXT_PR_SECTION_STEPS = 'Steps of this round';
|
|
4173
|
-
exports.TXT_PR_SECTION_AUTHOR_STEPS = 'Steps for the author';
|
|
4174
|
-
exports.TXT_PR_AUTHOR_NOTE = 'You are the author: you cannot review or approve this pull request; the review steps are left out';
|
|
4175
|
-
const TXT_PR_MY_REVIEW = (verdict, version) => `${verdict} on v${version}`;
|
|
4176
|
-
exports.TXT_PR_MY_REVIEW = TXT_PR_MY_REVIEW;
|
|
4177
|
-
const TXT_PR_MUST_REVIEW_SUMMARY = (files, tokens, viewed) => `${files} files, ~${tokens} tokens, viewed ${viewed}/${files}`;
|
|
4178
|
-
exports.TXT_PR_MUST_REVIEW_SUMMARY = TXT_PR_MUST_REVIEW_SUMMARY;
|
|
4179
|
-
exports.TXT_PR_BATCHES_INSTRUCTION = 'Hand each batch to a separate subagent; give the verdict only after all batches are done.';
|
|
4180
|
-
const TXT_PR_BATCH_LINE = (batch, files, tokens, command) => `batch ${batch}: ${files} files, ~${tokens} tokens: ${command}`;
|
|
4181
|
-
exports.TXT_PR_BATCH_LINE = TXT_PR_BATCH_LINE;
|
|
4182
|
-
const TXT_PR_PROCESSING = (analysis, triage) => `Analysis: ${analysis}, triage: ${triage}`;
|
|
4183
|
-
exports.TXT_PR_PROCESSING = TXT_PR_PROCESSING;
|
|
4184
|
-
exports.TXT_PR_PROCESSING_NOTE = 'Until the triage is READY the MUST_REVIEW list is incomplete and an approval waits for it.';
|
|
4185
|
-
exports.TXT_PR_FILE_MUST_REVIEW = 'must review';
|
|
4186
|
-
exports.TXT_PR_DRAFT = 'draft';
|
|
4187
|
-
exports.TXT_PR_REVIEW_REQUESTED_PENDING = 'review requested, not started';
|
|
4188
|
-
exports.TXT_PR_FILE_BINARY = 'binary';
|
|
4189
|
-
exports.TXT_PR_FILE_SKIP = 'safe to skip';
|
|
4190
|
-
exports.TXT_PR_FILE_UNCLEAR = 'unclear';
|
|
4191
|
-
exports.TXT_PR_FILE_NOT_TRIAGED = 'not triaged';
|
|
4192
|
-
exports.TXT_PR_FILE_VIEWED = 'viewed';
|
|
4193
|
-
const TXT_PR_SINCE_REVIEW_SUMMARY = (changed, sinceReview) => `${changed} files with code changed, ${sinceReview} to look at (changed or with a thread not CLOSED)`;
|
|
4194
|
-
exports.TXT_PR_SINCE_REVIEW_SUMMARY = TXT_PR_SINCE_REVIEW_SUMMARY;
|
|
4195
|
-
exports.TXT_PR_VERSION_MARK_CURRENT = 'current';
|
|
4196
|
-
exports.TXT_PR_VERSION_MARK_SHOWN = 'shown';
|
|
4197
|
-
exports.TXT_PR_VERSION_MARK_MY_REVIEW = 'my review';
|
|
4198
|
-
exports.TXT_PR_VERSION_KIND_REBASE = 'rebase';
|
|
4199
|
-
exports.TXT_PR_VERSION_KIND_REWRITE = 'force';
|
|
4200
|
-
const TXT_PR_SAME_CHANGE = (places) => `the same change is also in: ${places}`;
|
|
4201
|
-
exports.TXT_PR_SAME_CHANGE = TXT_PR_SAME_CHANGE;
|
|
4202
|
-
const TXT_PR_MOVED_FROM = (location) => `moved from ${location}`;
|
|
4203
|
-
exports.TXT_PR_MOVED_FROM = TXT_PR_MOVED_FROM;
|
|
4204
|
-
const TXT_PR_OPENED_AT = (location, version) => `opened at ${location} in v${version}`;
|
|
4205
|
-
exports.TXT_PR_OPENED_AT = TXT_PR_OPENED_AT;
|
|
4206
|
-
exports.TXT_PR_ANCHOR_INTACT = 'code unchanged since the comment';
|
|
4207
|
-
exports.TXT_PR_ANCHOR_TOUCHED = 'code changed since the comment';
|
|
4208
|
-
exports.TXT_PR_ANCHOR_MOVED = 'code moved';
|
|
4209
|
-
exports.TXT_PR_ANCHOR_GONE = 'code removed';
|
|
4210
|
-
exports.TXT_PR_NO_REPLY = 'no reply';
|
|
4211
|
-
exports.TXT_PR_POSITION_BASE = '(base)';
|
|
4212
|
-
const TXT_PR_LAST_REPLY = (who, date) => `last reply ${who} ${date}`;
|
|
4213
|
-
exports.TXT_PR_LAST_REPLY = TXT_PR_LAST_REPLY;
|
|
4214
|
-
exports.TXT_PR_MINE = 'mine';
|
|
4215
|
-
const TXT_PR_STEP_FILES = (cmd, number, rev) => `1. ${cmd(`file ls ${number} --since-review --rev ${rev}`)} - files changed since my review; look at each with ${cmd(`diff ${number} <path> --rev ${rev}`)} (by default it shows only the changes since my review) and report new problems (${cmd(`comment add ${number} --path <p> --new-line <n|from-to> -m <text> --rev ${rev}`)}); the other files have no code changes since my review`;
|
|
4216
|
-
exports.TXT_PR_STEP_FILES = TXT_PR_STEP_FILES;
|
|
4217
|
-
const TXT_PR_STEP_THREADS = (cmd, number, rev) => `2. ${cmd(`comment ls ${number} --threads --rev ${rev}`)} - every OPEN and RESOLVED thread with the current code around its line`;
|
|
4218
|
-
exports.TXT_PR_STEP_THREADS = TXT_PR_STEP_THREADS;
|
|
4219
|
-
const TXT_PR_STEP_SETTLE = (cmd, number) => `3. settle each thread after checking the whole change it is about, not only its line: ${cmd(`comment close ${number} --thread <id>`)} (fixed, or the answer convinces) or ${cmd(`comment reopen ${number} --thread <id> -m <why>`)} (not fixed, or the answer does not hold)`;
|
|
4220
|
-
exports.TXT_PR_STEP_SETTLE = TXT_PR_STEP_SETTLE;
|
|
4221
|
-
const TXT_PR_STEP_VERDICT = (cmd, number, rev) => `4. verdict: ${cmd(`review approve ${number} --rev ${rev}`)} | ${cmd(`review request-changes ${number} --rev ${rev}`)}; approve needs every thread CLOSED and the MUST_REVIEW files viewed`;
|
|
4222
|
-
exports.TXT_PR_STEP_VERDICT = TXT_PR_STEP_VERDICT;
|
|
4223
|
-
const TXT_PR_STEP_AUTHOR_THREADS = (cmd, number, rev) => `1. ${cmd(`comment ls ${number} --threads --rev ${rev}`)} - the OPEN threads wait for you: fix the code or answer`;
|
|
4224
|
-
exports.TXT_PR_STEP_AUTHOR_THREADS = TXT_PR_STEP_AUTHOR_THREADS;
|
|
4225
|
-
const TXT_PR_STEP_AUTHOR_RESOLVE = (cmd, number) => `2. after pushing the fix: ${cmd(`comment resolve ${number} --thread <id> -m <what changed>`)} (--reason by_design|wontfix when it stays as it is); the reviewer verifies and closes it`;
|
|
4226
|
-
exports.TXT_PR_STEP_AUTHOR_RESOLVE = TXT_PR_STEP_AUTHOR_RESOLVE;
|
|
4227
|
-
const TXT_PR_STEP_AUTHOR_REQUEST = (cmd, number) => `3. ask for the next round: ${cmd(`review request ${number} <login...>`)}`;
|
|
4228
|
-
exports.TXT_PR_STEP_AUTHOR_REQUEST = TXT_PR_STEP_AUTHOR_REQUEST;
|
|
4229
|
-
const TXT_PR_DIFF_MODE_FULL = (base) => `full diff against ${base || 'the base branch'}`;
|
|
4230
|
-
exports.TXT_PR_DIFF_MODE_FULL = TXT_PR_DIFF_MODE_FULL;
|
|
4231
|
-
const TXT_PR_DIFF_MODE_DEFAULT = (base, collapsed) => `diff against ${base || 'the base branch'}` +
|
|
4232
|
-
(collapsed > 0 ? `, ${collapsed} cosmetic or repeated ${collapsed === 1 ? 'hunk' : 'hunks'} collapsed (--full shows all)` : '');
|
|
4233
|
-
exports.TXT_PR_DIFF_MODE_DEFAULT = TXT_PR_DIFF_MODE_DEFAULT;
|
|
4234
|
-
const TXT_PR_DIFF_MODE_INTERDIFF = (from, sinceReview) => `only the changes since v${from}${sinceReview ? ' (my review)' : ''}, not the whole diff`;
|
|
4235
|
-
exports.TXT_PR_DIFF_MODE_INTERDIFF = TXT_PR_DIFF_MODE_INTERDIFF;
|
|
4236
|
-
exports.TXT_PR_DIFF_CURRENT = '(current)';
|
|
4237
|
-
exports.TXT_PR_DIFF_COLUMN_OLD = 'old';
|
|
4238
|
-
exports.TXT_PR_DIFF_COLUMN_NEW = 'new';
|
|
4239
|
-
exports.TXT_PR_DIFF_FIELD_VERSION = 'version';
|
|
4240
|
-
exports.TXT_PR_DIFF_FIELD_TYPE = 'type';
|
|
4241
|
-
exports.TXT_PR_DIFF_FIELD_SYMBOLS = 'symbols';
|
|
4242
|
-
exports.TXT_PR_DIFF_TRUNCATED = 'The patch is too big and was not returned';
|
|
4243
|
-
exports.TXT_PR_DIFF_BINARY = 'Binary file';
|
|
4244
|
-
exports.TXT_PR_DIFF_EMPTY = 'No changes in this file since the reference version';
|
|
4245
|
-
const TXT_PR_DIFF_COSMETIC = (lines) => `cosmetic change, ${lines} lines collapsed (--full shows it)`;
|
|
4246
|
-
exports.TXT_PR_DIFF_COSMETIC = TXT_PR_DIFF_COSMETIC;
|
|
4247
|
-
const TXT_PR_DIFF_DUPLICATE = (location, count) => `the same change as ${location} (${count} places), collapsed (--full shows it)`;
|
|
4248
|
-
exports.TXT_PR_DIFF_DUPLICATE = TXT_PR_DIFF_DUPLICATE;
|
|
4249
|
-
const TXT_PR_DIFF_REMOVED = (from, to) => `In v${from} but no longer in v${to} (removed or rewritten)`;
|
|
4250
|
-
exports.TXT_PR_DIFF_REMOVED = TXT_PR_DIFF_REMOVED;
|
|
4251
|
-
exports.TXT_PR_DIFF_GONE = 'Threads whose code is gone';
|
|
4252
|
-
const TXT_PR_DIFF_VIEWED = (rev) => `Marked as viewed in v${rev}`;
|
|
4253
|
-
exports.TXT_PR_DIFF_VIEWED = TXT_PR_DIFF_VIEWED;
|
|
4254
|
-
const TXT_PR_DIFF_VIEWED_MANY = (count, rev) => `Marked ${count} files as viewed in v${rev}`;
|
|
4255
|
-
exports.TXT_PR_DIFF_VIEWED_MANY = TXT_PR_DIFF_VIEWED_MANY;
|
|
4256
|
-
const TXT_PR_DIFF_VIEW_HINT = (command) => `Mark as viewed: ${command}`;
|
|
4257
|
-
exports.TXT_PR_DIFF_VIEW_HINT = TXT_PR_DIFF_VIEW_HINT;
|
|
4258
|
-
exports.TXT_PR_DIFF_VIEW_FAILED = 'Could not mark the file as viewed';
|
|
4259
|
-
const TXT_PR_FILES_VIEWED = (count, rev) => `Marked ${count} files as viewed in v${rev}`;
|
|
4260
|
-
exports.TXT_PR_FILES_VIEWED = TXT_PR_FILES_VIEWED;
|
|
4261
|
-
const TXT_PR_FILES_UNVIEWED = (count, rev) => `Unmarked ${count} files in v${rev}`;
|
|
4262
|
-
exports.TXT_PR_FILES_UNVIEWED = TXT_PR_FILES_UNVIEWED;
|
|
4263
|
-
exports.TXT_PR_REASON_CHANGED = 'changed';
|
|
4264
|
-
const TXT_PR_REASON_THREAD = (ids) => `thread ${ids}`;
|
|
4265
|
-
exports.TXT_PR_REASON_THREAD = TXT_PR_REASON_THREAD;
|
|
4266
|
-
exports.TXT_PR_COMMENT_ADDED = 'Comment added';
|
|
4267
|
-
const TXT_PR_THREAD_ADDED = (id, location, rev) => `Thread ${id} opened at ${location} in v${rev}`;
|
|
4268
|
-
exports.TXT_PR_THREAD_ADDED = TXT_PR_THREAD_ADDED;
|
|
4269
|
-
const TXT_PR_THREAD_REPLIED = (id) => `Reply added to thread ${id}`;
|
|
4270
|
-
exports.TXT_PR_THREAD_REPLIED = TXT_PR_THREAD_REPLIED;
|
|
4271
|
-
const TXT_PR_THREAD_STATUS = (id, status) => `Thread ${id} is ${status}`;
|
|
4272
|
-
exports.TXT_PR_THREAD_STATUS = TXT_PR_THREAD_STATUS;
|
|
4273
|
-
const TXT_PR_REVIEW_VERDICT = (verdict, version) => `Verdict ${verdict} given on v${version}`;
|
|
4274
|
-
exports.TXT_PR_REVIEW_VERDICT = TXT_PR_REVIEW_VERDICT;
|
|
4275
|
-
const TXT_PR_REVIEW_REQUESTED = (logins) => `Review requested from ${logins}`;
|
|
4276
|
-
exports.TXT_PR_REVIEW_REQUESTED = TXT_PR_REVIEW_REQUESTED;
|
|
4277
|
-
const TXT_PR_CREATED = (number, version) => `Pull request #${number} created (v${version})`;
|
|
4278
|
-
exports.TXT_PR_CREATED = TXT_PR_CREATED;
|
|
4279
|
-
const TXT_PR_UPDATED = (number) => `Pull request #${number} updated`;
|
|
4280
|
-
exports.TXT_PR_UPDATED = TXT_PR_UPDATED;
|
|
4281
|
-
const TXT_PR_NEW_VERSION = (version) => `New version v${version} (approvals were reset)`;
|
|
4282
|
-
exports.TXT_PR_NEW_VERSION = TXT_PR_NEW_VERSION;
|
|
4283
|
-
const TXT_PR_CLOSED = (number) => `Pull request #${number} closed`;
|
|
4284
|
-
exports.TXT_PR_CLOSED = TXT_PR_CLOSED;
|
|
4285
|
-
const TXT_PR_REOPENED = (number) => `Pull request #${number} reopened`;
|
|
4286
|
-
exports.TXT_PR_REOPENED = TXT_PR_REOPENED;
|
|
4287
|
-
const TXT_PR_READY = (number) => `Pull request #${number} is ready for review`;
|
|
4288
|
-
exports.TXT_PR_READY = TXT_PR_READY;
|
|
4289
|
-
const TXT_PR_DRAFTED = (number) => `Pull request #${number} is a draft`;
|
|
4290
|
-
exports.TXT_PR_DRAFTED = TXT_PR_DRAFTED;
|
|
4291
|
-
const TXT_PR_MERGE_CONFIRM = (number, version, method) => `Merge pull request #${number} at v${version} (${method})?`;
|
|
4292
|
-
exports.TXT_PR_MERGE_CONFIRM = TXT_PR_MERGE_CONFIRM;
|
|
4293
|
-
const TXT_PR_MERGED = (number, version) => `Pull request #${number} merged at v${version}`;
|
|
4294
|
-
exports.TXT_PR_MERGED = TXT_PR_MERGED;
|
|
4295
|
-
const TXT_PR_BRANCH_UPDATED = (number, version) => `Head branch of pull request #${number} updated, new version v${version}`;
|
|
4296
|
-
exports.TXT_PR_BRANCH_UPDATED = TXT_PR_BRANCH_UPDATED;
|
|
4297
|
-
exports.HELP_PR = `
|
|
4298
|
-
Common options: -w/--workspace, -p/--project (default: the linked project), --format text|json.
|
|
4299
|
-
Without the number N a command works on the open pull request of the current git branch.
|
|
4300
|
-
--rev vK picks the version a command reads and writes; without it the current version is used.
|
|
4301
|
-
Commands printed as next steps always carry --rev, so an agent keeps working on the version it saw;
|
|
4302
|
-
a command that does not depend on a version accepts --rev and ignores it.
|
|
4303
|
-
A thread is a comment pinned to a file line; its replies are the thread's comments.
|
|
4304
|
-
`;
|
|
4305
|
-
exports.EXAMPLE_PR_LIST = [
|
|
4306
|
-
{ description: 'list open pull requests:', command: 'bdy pr ls' },
|
|
4307
|
-
{
|
|
4308
|
-
description: 'list pull requests waiting for my review:',
|
|
4309
|
-
command: 'bdy pr ls --reviewer me',
|
|
4310
|
-
},
|
|
4311
|
-
{
|
|
4312
|
-
description: 'list merged pull requests into main as json:',
|
|
4313
|
-
command: 'bdy pr ls --state MERGED --base main --format json',
|
|
4314
|
-
},
|
|
4315
|
-
];
|
|
4316
|
-
exports.EXAMPLE_PR_VERSIONS = [
|
|
4317
|
-
{ description: 'list versions of pull request 12:', command: 'bdy pr versions 12' },
|
|
4318
|
-
];
|
|
4319
|
-
exports.EXAMPLE_PR_GET = [
|
|
4320
|
-
{ description: 'summary of the pull request of the current branch:', command: 'bdy pr get' },
|
|
4321
|
-
{ description: 'summary of version 3 of pull request 12:', command: 'bdy pr get 12 --rev v3' },
|
|
4322
|
-
{
|
|
4323
|
-
description: 'only what changed since my review:',
|
|
4324
|
-
command: 'bdy pr get 12 --since-review',
|
|
4325
|
-
},
|
|
4326
|
-
];
|
|
4327
|
-
exports.HELP_PR_FILE_LIST = `
|
|
4328
|
-
PRIORITY: must review - read it before approving (approve is blocked until it is viewed);
|
|
4329
|
-
unclear - the triage could not tell from the patch whether the change is harmless, take a look;
|
|
4330
|
-
safe to skip - the change cannot plausibly introduce a bug (formatting, comments, renames);
|
|
4331
|
-
not triaged - no triage for the file: not a source or test file, only formatting or a rename,
|
|
4332
|
-
or the triage gave no answer for it (pending while the triage of the version runs).
|
|
4333
|
-
`;
|
|
4334
|
-
exports.EXAMPLE_PR_DIFF = [
|
|
4335
|
-
{
|
|
4336
|
-
description: 'diff of a file (only changes since my review when I have one):',
|
|
4337
|
-
command: 'bdy pr diff 12 src/app.ts --rev v5',
|
|
4338
|
-
},
|
|
4339
|
-
{ description: 'diff of several files:', command: 'bdy pr diff 12 src/app.ts src/util.ts --rev v5' },
|
|
4340
|
-
{ description: 'every file of batch 2 for a subagent:', command: 'bdy pr diff 12 --batch 2 --rev v5' },
|
|
4341
|
-
{
|
|
4342
|
-
description: 'read without marking the files as viewed:',
|
|
4343
|
-
command: 'bdy pr diff 12 src/app.ts --no-mark-viewed',
|
|
4344
|
-
},
|
|
4345
|
-
{ description: 'full diff of a file:', command: 'bdy pr diff 12 src/app.ts --full' },
|
|
4346
|
-
{ description: 'changes since version 2:', command: 'bdy pr diff 12 src/app.ts --from v2' },
|
|
4347
|
-
];
|
|
4348
|
-
exports.EXAMPLE_PR_FILE_LIST = [
|
|
4349
|
-
{ description: 'all files of the current version:', command: 'bdy pr file ls 12' },
|
|
4350
|
-
{
|
|
4351
|
-
description: 'MUST_REVIEW files in review order:',
|
|
4352
|
-
command: 'bdy pr file ls 12 --must-review --rev v5',
|
|
4353
|
-
},
|
|
4354
|
-
{ description: 'files of batch 2 for a subagent:', command: 'bdy pr file ls 12 --batch 2 --rev v5' },
|
|
4355
|
-
{ description: 'files of the push that made v5:', command: 'bdy pr file ls 12 --from v4 --rev v5' },
|
|
4356
|
-
{
|
|
4357
|
-
description: 'files changed since my review:',
|
|
4358
|
-
command: 'bdy pr file ls 12 --since-review --rev v5',
|
|
4359
|
-
},
|
|
4360
|
-
];
|
|
4361
|
-
exports.EXAMPLE_PR_FILE_VIEWED = [
|
|
4362
|
-
{
|
|
4363
|
-
description: 'mark files as viewed in version 5:',
|
|
4364
|
-
command: 'bdy pr file viewed 12 src/app.ts src/util.ts --rev v5',
|
|
4365
|
-
},
|
|
4366
|
-
];
|
|
4367
|
-
exports.EXAMPLE_PR_FILE_UNVIEWED = [
|
|
4368
|
-
{ description: 'unmark a file:', command: 'bdy pr file unviewed 12 src/app.ts' },
|
|
4369
|
-
];
|
|
4370
|
-
exports.EXAMPLE_PR_FILE = [
|
|
4371
|
-
...exports.EXAMPLE_PR_FILE_LIST,
|
|
4372
|
-
...exports.EXAMPLE_PR_FILE_VIEWED,
|
|
4373
|
-
...exports.EXAMPLE_PR_FILE_UNVIEWED,
|
|
4374
|
-
];
|
|
4375
|
-
exports.EXAMPLE_PR_COMMENT_LIST = [
|
|
4376
|
-
{ description: 'the conversation of the pull request:', command: 'bdy pr comment ls 12' },
|
|
4377
|
-
{
|
|
4378
|
-
description: 'OPEN and RESOLVED threads with code around them:',
|
|
4379
|
-
command: 'bdy pr comment ls 12 --threads --rev v5',
|
|
4380
|
-
},
|
|
4381
|
-
{
|
|
4382
|
-
description: 'one thread with replies and status history:',
|
|
4383
|
-
command: 'bdy pr comment ls 12 --thread prt-abc123',
|
|
4384
|
-
},
|
|
4385
|
-
];
|
|
4386
|
-
exports.EXAMPLE_PR_COMMENT_ADD = [
|
|
4387
|
-
{ description: 'comment on the pull request:', command: 'bdy pr comment add 12 -m "Looks good"' },
|
|
4388
|
-
{
|
|
4389
|
-
description: 'open a thread on a line of version 5:',
|
|
4390
|
-
command: 'bdy pr comment add 12 -F note.md --path src/app.ts --new-line 42 --rev v5',
|
|
4391
|
-
},
|
|
4392
|
-
{
|
|
4393
|
-
description: 'open a thread on lines 270-276:',
|
|
4394
|
-
command: 'bdy pr comment add 12 -m "Leaks on error" --path src/app.ts --new-line 270-276 --rev v5',
|
|
4395
|
-
},
|
|
4396
|
-
{
|
|
4397
|
-
description: 'reply in a thread:',
|
|
4398
|
-
command: 'bdy pr comment add 12 -m "Fixed" --thread prt-abc123',
|
|
4399
|
-
},
|
|
4400
|
-
];
|
|
4401
|
-
exports.EXAMPLE_PR_COMMENT_RESOLVE = [
|
|
4402
|
-
{
|
|
4403
|
-
description: 'resolve a thread with a reply:',
|
|
4404
|
-
command: 'bdy pr comment resolve 12 --thread prt-abc123 -m "Done in v6"',
|
|
4405
|
-
},
|
|
4406
|
-
{
|
|
4407
|
-
description: 'resolve as by design:',
|
|
4408
|
-
command: 'bdy pr comment resolve 12 --thread prt-abc123 --reason by_design',
|
|
4409
|
-
},
|
|
4410
|
-
];
|
|
4411
|
-
exports.EXAMPLE_PR_COMMENT_CLOSE = [
|
|
4412
|
-
{ description: 'close a thread:', command: 'bdy pr comment close 12 --thread prt-abc123' },
|
|
4413
|
-
];
|
|
4414
|
-
exports.EXAMPLE_PR_COMMENT_REOPEN = [
|
|
4415
|
-
{
|
|
4416
|
-
description: 'reopen a thread with the reason:',
|
|
4417
|
-
command: 'bdy pr comment reopen 12 --thread prt-abc123 -m "Still fails for empty input"',
|
|
4418
|
-
},
|
|
4419
|
-
];
|
|
4420
|
-
exports.EXAMPLE_PR_COMMENT = [
|
|
4421
|
-
...exports.EXAMPLE_PR_COMMENT_LIST,
|
|
4422
|
-
...exports.EXAMPLE_PR_COMMENT_ADD,
|
|
4423
|
-
...exports.EXAMPLE_PR_COMMENT_RESOLVE,
|
|
4424
|
-
...exports.EXAMPLE_PR_COMMENT_CLOSE,
|
|
4425
|
-
...exports.EXAMPLE_PR_COMMENT_REOPEN,
|
|
4426
|
-
];
|
|
4427
|
-
exports.EXAMPLE_PR_REVIEW_START = [
|
|
4428
|
-
{ description: 'start reviewing pull request 12:', command: 'bdy pr review start 12' },
|
|
4429
|
-
];
|
|
4430
|
-
exports.EXAMPLE_PR_REVIEW_APPROVE = [
|
|
4431
|
-
{ description: 'approve version 5:', command: 'bdy pr review approve 12 --rev v5' },
|
|
4432
|
-
];
|
|
4433
|
-
exports.EXAMPLE_PR_REVIEW_REQUEST_CHANGES = [
|
|
4434
|
-
{ description: 'request changes on version 5:', command: 'bdy pr review request-changes 12 --rev v5' },
|
|
4435
|
-
];
|
|
4436
|
-
exports.EXAMPLE_PR_REVIEW_REQUEST = [
|
|
4437
|
-
{ description: 'ask two members for a review:', command: 'bdy pr review request 12 alice bob@example.com' },
|
|
4438
|
-
];
|
|
4439
|
-
exports.EXAMPLE_PR_REVIEW = [
|
|
4440
|
-
...exports.EXAMPLE_PR_REVIEW_START,
|
|
4441
|
-
...exports.EXAMPLE_PR_REVIEW_APPROVE,
|
|
4442
|
-
...exports.EXAMPLE_PR_REVIEW_REQUEST_CHANGES,
|
|
4443
|
-
...exports.EXAMPLE_PR_REVIEW_REQUEST,
|
|
4444
|
-
];
|
|
4445
|
-
exports.EXAMPLE_PR_CREATE = [
|
|
4446
|
-
{
|
|
4447
|
-
description: 'create a pull request of the current branch into main:',
|
|
4448
|
-
command: 'bdy pr create --base main -t "Add login" -F description.md',
|
|
4449
|
-
},
|
|
4450
|
-
{
|
|
4451
|
-
description: 'create a draft with a reviewer and labels:',
|
|
4452
|
-
command: 'bdy pr create --base main --head feature -t "WIP" --draft --reviewer alice --label backend',
|
|
4453
|
-
},
|
|
4454
|
-
];
|
|
4455
|
-
exports.EXAMPLE_PR_UPDATE = [
|
|
4456
|
-
{ description: 'change the title:', command: 'bdy pr update 12 -t "Add login form"' },
|
|
4457
|
-
{ description: 'change labels:', command: 'bdy pr update 12 --add-label ready --remove-label wip' },
|
|
4458
|
-
{ description: 'change the base branch:', command: 'bdy pr update 12 --base release' },
|
|
4459
|
-
];
|
|
4460
|
-
exports.EXAMPLE_PR_CLOSE = [
|
|
4461
|
-
{ description: 'close pull request 12:', command: 'bdy pr close 12' },
|
|
4462
|
-
];
|
|
4463
|
-
exports.EXAMPLE_PR_REOPEN = [
|
|
4464
|
-
{ description: 'reopen pull request 12:', command: 'bdy pr reopen 12' },
|
|
4465
|
-
];
|
|
4466
|
-
exports.EXAMPLE_PR_READY = [
|
|
4467
|
-
{ description: 'mark the pull request of the current branch as ready:', command: 'bdy pr ready' },
|
|
4468
|
-
];
|
|
4469
|
-
exports.EXAMPLE_PR_DRAFT = [
|
|
4470
|
-
{ description: 'turn pull request 12 into a draft:', command: 'bdy pr draft 12' },
|
|
4471
|
-
];
|
|
4472
|
-
exports.EXAMPLE_PR_MERGE = [
|
|
4473
|
-
{ description: 'merge pull request 12:', command: 'bdy pr merge 12' },
|
|
4474
|
-
{
|
|
4475
|
-
description: 'squash version 5 without a prompt and delete the branch:',
|
|
4476
|
-
command: 'bdy pr merge 12 --method SQUASH --rev v5 --delete-branch -f',
|
|
4477
|
-
},
|
|
4478
|
-
];
|
|
4479
|
-
exports.EXAMPLE_PR_UPDATE_BRANCH = [
|
|
4480
|
-
{ description: 'merge the base into the head of pull request 12:', command: 'bdy pr update-branch 12' },
|
|
4481
|
-
];
|
|
4482
|
-
exports.EXAMPLE_PR = [
|
|
4483
|
-
...exports.EXAMPLE_PR_LIST,
|
|
4484
|
-
...exports.EXAMPLE_PR_GET,
|
|
4485
|
-
...exports.EXAMPLE_PR_DIFF,
|
|
4486
|
-
...exports.EXAMPLE_PR_REVIEW_APPROVE,
|
|
4487
|
-
];
|
|
@@ -10,9 +10,6 @@ const isbinaryfile_1 = require("isbinaryfile");
|
|
|
10
10
|
const format_1 = __importDefault(require("../../../format"));
|
|
11
11
|
const tunnel_1 = require("../../../types/tunnel");
|
|
12
12
|
const output_1 = __importDefault(require("../../../output"));
|
|
13
|
-
// Request data shown inside markup: method, URL, headers and bodies render
|
|
14
|
-
// verbatim, a ^ in them is not taken for a color code
|
|
15
|
-
const esc = (value) => output_1.default.escapeTermKit(String(value));
|
|
16
13
|
const COLOR_CYAN = 6;
|
|
17
14
|
const COLOR_LIGHT_GRAY = 7;
|
|
18
15
|
const COLOR_RED = 9;
|
|
@@ -171,7 +168,6 @@ class OutputInteractiveTunnel {
|
|
|
171
168
|
msg = msg.substring(0, REQUESTS_MAX_LENGTH);
|
|
172
169
|
else
|
|
173
170
|
msg = fillString(msg, REQUESTS_MAX_LENGTH);
|
|
174
|
-
msg = esc(msg);
|
|
175
171
|
if (r.status === 'NEW') {
|
|
176
172
|
msg += ' ^KNEW^';
|
|
177
173
|
}
|
|
@@ -185,10 +181,10 @@ class OutputInteractiveTunnel {
|
|
|
185
181
|
msg += ` ^B${r.status}^`;
|
|
186
182
|
}
|
|
187
183
|
else {
|
|
188
|
-
msg += ` ${
|
|
184
|
+
msg += ` ${r.status}`;
|
|
189
185
|
}
|
|
190
186
|
if (r.finished)
|
|
191
|
-
msg += ` in ^K${r.time}ms
|
|
187
|
+
msg += ` in ^K${r.time}ms`;
|
|
192
188
|
return msg;
|
|
193
189
|
}
|
|
194
190
|
getPathAndQuery(url) {
|
|
@@ -221,16 +217,16 @@ class OutputInteractiveTunnel {
|
|
|
221
217
|
});
|
|
222
218
|
const { query, path } = this.getPathAndQuery(this.selectedRequest.url);
|
|
223
219
|
let msg = '^KStatus:^ ';
|
|
224
|
-
msg += `^W${
|
|
220
|
+
msg += `^W${this.selectedRequest.status}^\n`;
|
|
225
221
|
msg += '\n^KMethod:^ ';
|
|
226
|
-
msg += `^WHTTP ${
|
|
222
|
+
msg += `^WHTTP ${this.selectedRequest.httpVersion} ${this.selectedRequest.method}^\n`;
|
|
227
223
|
msg += '\n^KPath:^ ';
|
|
228
|
-
msg += `^W${
|
|
224
|
+
msg += `^W${path}^\n`;
|
|
229
225
|
const queryKeys = Object.keys(query);
|
|
230
226
|
if (queryKeys.length > 0) {
|
|
231
227
|
msg += '\n^WQuery:^\n';
|
|
232
228
|
queryKeys.forEach((name) => {
|
|
233
|
-
msg += `^K${
|
|
229
|
+
msg += `^K${name}:^ ^W${query[name]}^\n`;
|
|
234
230
|
});
|
|
235
231
|
}
|
|
236
232
|
if (this.selectedRequest.requestBody.realLength > 0) {
|
|
@@ -246,14 +242,14 @@ class OutputInteractiveTunnel {
|
|
|
246
242
|
msg += '^K<Binary>^\n';
|
|
247
243
|
}
|
|
248
244
|
else {
|
|
249
|
-
msg += `^K${
|
|
245
|
+
msg += `^K${this.selectedRequest.requestBody.data.toString('utf8')}^\n`;
|
|
250
246
|
}
|
|
251
247
|
}
|
|
252
248
|
}
|
|
253
249
|
msg += '\n^WHeaders:^\n';
|
|
254
250
|
const headers = this.selectedRequest.headers || {};
|
|
255
251
|
Object.keys(headers).forEach((name) => {
|
|
256
|
-
msg += `^K${
|
|
252
|
+
msg += `^K${name}:^ ^W${headers[name]}^\n`;
|
|
257
253
|
});
|
|
258
254
|
if (this.selectedRequest.finished) {
|
|
259
255
|
if (this.selectedRequest.responseBody.realLength > 0) {
|
|
@@ -269,14 +265,14 @@ class OutputInteractiveTunnel {
|
|
|
269
265
|
msg += '^K<Binary>^\n';
|
|
270
266
|
}
|
|
271
267
|
else {
|
|
272
|
-
msg += `^K${
|
|
268
|
+
msg += `^K${this.selectedRequest.responseBody.data.toString('utf8')}^\n`;
|
|
273
269
|
}
|
|
274
270
|
}
|
|
275
271
|
}
|
|
276
272
|
msg += '\n^WResponse headers:^\n';
|
|
277
273
|
const headers = this.selectedRequest.responseHeaders || {};
|
|
278
274
|
Object.keys(headers).forEach((name) => {
|
|
279
|
-
msg += `^K${
|
|
275
|
+
msg += `^K${name}:^ ^W${headers[name]}^\n`;
|
|
280
276
|
});
|
|
281
277
|
}
|
|
282
278
|
this.sprites.requestInfoScroll.put({
|