bdy 1.25.3-dev → 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 +1 -1
- package/distTs/src/agent/socket/tunnel.js +2 -0
- 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/list.js +6 -1
- package/distTs/src/command/agent/tunnel/status.js +13 -1
- 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/create.js +5 -0
- package/distTs/src/command/artifact/publish.js +20 -22
- package/distTs/src/command/artifact/version/create.js +5 -0
- package/distTs/src/command/config/get/tunnel.js +8 -3
- package/distTs/src/command/config/get/tunnels.js +8 -3
- package/distTs/src/command/distro/create.js +5 -0
- package/distTs/src/command/distro/route/create.js +5 -0
- package/distTs/src/command/distro/route/update.js +5 -0
- package/distTs/src/command/distro/update.js +5 -0
- package/distTs/src/command/domain/search.js +31 -10
- package/distTs/src/command/environment/create.js +5 -0
- package/distTs/src/command/environment/update.js +5 -0
- package/distTs/src/command/sandbox/app/add.js +7 -1
- package/distTs/src/command/sandbox/app/logs.js +9 -4
- package/distTs/src/command/sandbox/create.js +13 -5
- package/distTs/src/command/sandbox/endpoint/add.js +5 -0
- package/distTs/src/command/sandbox/exec/command.js +15 -30
- package/distTs/src/command/sandbox/exec/logs.js +4 -29
- 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 +9 -1
- package/distTs/src/command/target/create.js +5 -0
- package/distTs/src/command/target/exec/logs.js +15 -2
- package/distTs/src/command/target/update.js +5 -0
- package/distTs/src/command/yaml/validate.js +111 -52
- package/distTs/src/openapi.js +8 -1
- package/distTs/src/output.js +39 -0
- package/distTs/src/texts.js +206 -1
- package/package.json +1 -1
package/distTs/src/texts.js
CHANGED
|
@@ -22,7 +22,7 @@ exports.TXT_ARTIFACT_PUBLISH = exports.TXT_ARTIFACT_CREATED = exports.TXT_ARTIFA
|
|
|
22
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
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
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.ERR_YAML_SCHEMA_READ_FAILED = 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;
|
|
26
26
|
const utils_1 = require("./utils");
|
|
27
27
|
exports.ERR_CANCELLED = 'Cancelled';
|
|
28
28
|
exports.ERR_REST_API_GENERAL_ERROR = 'Something went wrong';
|
|
@@ -1504,6 +1504,10 @@ exports.EXAMPLE_DISTRO_UPDATE = [
|
|
|
1504
1504
|
description: 'disable distribution',
|
|
1505
1505
|
command: 'bdy distro update distro-identifier --disable',
|
|
1506
1506
|
},
|
|
1507
|
+
{
|
|
1508
|
+
description: 'Return the result as JSON',
|
|
1509
|
+
command: 'bdy distro update my-distro --name "New name" --format json',
|
|
1510
|
+
},
|
|
1507
1511
|
];
|
|
1508
1512
|
exports.EXAMPLE_ROUTE_GET = [
|
|
1509
1513
|
{
|
|
@@ -1532,6 +1536,10 @@ exports.EXAMPLE_ROUTE_UPDATE = [
|
|
|
1532
1536
|
description: "route update requires full param set (it's not partial)",
|
|
1533
1537
|
command: 'bdy distro route update distro-identifier route-id --subdomain=new --domain=test.com --target url=https://example.com',
|
|
1534
1538
|
},
|
|
1539
|
+
{
|
|
1540
|
+
description: 'Return the result as JSON',
|
|
1541
|
+
command: 'bdy distro route update my-distro route-id --path /new --format json',
|
|
1542
|
+
},
|
|
1535
1543
|
];
|
|
1536
1544
|
exports.EXAMPLE_ROUTE_LIST = [
|
|
1537
1545
|
{
|
|
@@ -1568,6 +1576,10 @@ exports.EXAMPLE_ROUTE_CREATE = [
|
|
|
1568
1576
|
description: 'create redirect route',
|
|
1569
1577
|
command: 'bdy distro route create distro-identifier --type="REDIRECT" --path="/my-url" --target "url=https://example.com/page"',
|
|
1570
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
|
+
},
|
|
1571
1583
|
];
|
|
1572
1584
|
exports.EXAMPLE_DISTRO_CREATE = [
|
|
1573
1585
|
{
|
|
@@ -1578,6 +1590,10 @@ exports.EXAMPLE_DISTRO_CREATE = [
|
|
|
1578
1590
|
description: 'create distribution in project with identifier',
|
|
1579
1591
|
command: 'bdy distro create -i id --project project',
|
|
1580
1592
|
},
|
|
1593
|
+
{
|
|
1594
|
+
description: 'Return the result as JSON',
|
|
1595
|
+
command: 'bdy distro create --format json',
|
|
1596
|
+
},
|
|
1581
1597
|
];
|
|
1582
1598
|
exports.EXAMPLE_SANDBOX_CREATE = [
|
|
1583
1599
|
{
|
|
@@ -1628,6 +1644,10 @@ exports.EXAMPLE_SANDBOX_CREATE = [
|
|
|
1628
1644
|
description: 'create sandbox from yaml file:',
|
|
1629
1645
|
command: 'bdy sb create --yaml @./test.yml"',
|
|
1630
1646
|
},
|
|
1647
|
+
{
|
|
1648
|
+
description: 'Return the result as JSON',
|
|
1649
|
+
command: 'bdy sandbox create --format json',
|
|
1650
|
+
},
|
|
1631
1651
|
];
|
|
1632
1652
|
const EXAMPLE_TUNNEL_HTTP = (agent) => [
|
|
1633
1653
|
{
|
|
@@ -1653,6 +1673,10 @@ exports.EXAMPLE_AGENT_TUNNEL_LIST = [
|
|
|
1653
1673
|
description: 'list agent tunnels:',
|
|
1654
1674
|
command: 'bdy agent tunnel list',
|
|
1655
1675
|
},
|
|
1676
|
+
{
|
|
1677
|
+
description: 'Return the result as JSON',
|
|
1678
|
+
command: 'bdy agent tunnel list --format json',
|
|
1679
|
+
},
|
|
1656
1680
|
];
|
|
1657
1681
|
exports.EXAMPLE_AGENT_TUNNEL_REMOVE = [
|
|
1658
1682
|
{
|
|
@@ -1665,6 +1689,10 @@ exports.EXAMPLE_AGENT_TUNNEL_STATUS = [
|
|
|
1665
1689
|
description: 'get agent tunnel status:',
|
|
1666
1690
|
command: 'bdy agent tunnel status tunnel-id',
|
|
1667
1691
|
},
|
|
1692
|
+
{
|
|
1693
|
+
description: 'Return the result as JSON',
|
|
1694
|
+
command: 'bdy agent tunnel status --format json',
|
|
1695
|
+
},
|
|
1668
1696
|
];
|
|
1669
1697
|
exports.EXAMPLE_AGENT_TUNNEL_START = [
|
|
1670
1698
|
{
|
|
@@ -1721,6 +1749,10 @@ exports.EXAMPLE_SANDBOX_EXEC_COMMAND = [
|
|
|
1721
1749
|
description: 'install package from apt:',
|
|
1722
1750
|
command: 'bdy sb exec command sandbox-identifier "sudo apt-get update && sudo apt-get install -y nginx" --wait',
|
|
1723
1751
|
},
|
|
1752
|
+
{
|
|
1753
|
+
description: 'Return log records as JSONL',
|
|
1754
|
+
command: 'bdy sandbox exec cmd my-sandbox "echo hello" --wait --format jsonl',
|
|
1755
|
+
},
|
|
1724
1756
|
];
|
|
1725
1757
|
exports.EXAMPLE_SANDBOX_SSH = [
|
|
1726
1758
|
{
|
|
@@ -1779,6 +1811,10 @@ exports.EXAMPLE_SANDBOX_APP_LOGS = [
|
|
|
1779
1811
|
description: 'show logs from app:',
|
|
1780
1812
|
command: 'bdy sb app logs sandbox-identifier app-id',
|
|
1781
1813
|
},
|
|
1814
|
+
{
|
|
1815
|
+
description: 'Return log records as JSONL',
|
|
1816
|
+
command: 'bdy sandbox app logs my-sandbox app-id --format jsonl',
|
|
1817
|
+
},
|
|
1782
1818
|
];
|
|
1783
1819
|
exports.EXAMPLE_SANDBOX_APP_START = [
|
|
1784
1820
|
{
|
|
@@ -1791,6 +1827,10 @@ exports.EXAMPLE_SANDBOX_APP_ADD = [
|
|
|
1791
1827
|
description: 'add sandbox app:',
|
|
1792
1828
|
command: 'bdy sb app add sandbox-identifier "npm start"',
|
|
1793
1829
|
},
|
|
1830
|
+
{
|
|
1831
|
+
description: 'Return the result as JSON',
|
|
1832
|
+
command: 'bdy sandbox app add my-sandbox "sleep 3600" --format json',
|
|
1833
|
+
},
|
|
1794
1834
|
];
|
|
1795
1835
|
exports.EXAMPLE_SANDBOX_APP_REMOVE = [
|
|
1796
1836
|
{
|
|
@@ -1819,6 +1859,10 @@ exports.EXAMPLE_SANDBOX_EXEC_LOGS = [
|
|
|
1819
1859
|
description: 'show logs from command and wait for it to complete:',
|
|
1820
1860
|
command: 'bdy sb exec logs sandbox-identifier command-id --wait',
|
|
1821
1861
|
},
|
|
1862
|
+
{
|
|
1863
|
+
description: 'Return log records as JSONL',
|
|
1864
|
+
command: 'bdy sandbox exec logs my-sandbox command-id --wait --format jsonl',
|
|
1865
|
+
},
|
|
1822
1866
|
];
|
|
1823
1867
|
exports.EXAMPLE_SANDBOX_EXEC_STATUS = [
|
|
1824
1868
|
{
|
|
@@ -1839,6 +1883,10 @@ exports.EXAMPLE_SANDBOX_SNAPSHOT_CREATE = [
|
|
|
1839
1883
|
description: 'create snapshot of sandbox and wait for it to complete:',
|
|
1840
1884
|
command: 'bdy sb snap create sandbox-identifier --wait',
|
|
1841
1885
|
},
|
|
1886
|
+
{
|
|
1887
|
+
description: 'Return the result as JSON',
|
|
1888
|
+
command: 'bdy sandbox snapshot create my-sandbox --wait --format json',
|
|
1889
|
+
},
|
|
1842
1890
|
];
|
|
1843
1891
|
exports.EXAMPLE_SANDBOX_SNAPSHOT_DELETE = [
|
|
1844
1892
|
{
|
|
@@ -1927,12 +1975,20 @@ exports.EXAMPLE_TARGET_CREATE = [
|
|
|
1927
1975
|
description: 'create project environment target:',
|
|
1928
1976
|
command: 'bdy tg create --yaml @target.yml -p project --environment environment-identifier',
|
|
1929
1977
|
},
|
|
1978
|
+
{
|
|
1979
|
+
description: 'Return the result as JSON',
|
|
1980
|
+
command: 'bdy target create --yaml @target.yml --format json',
|
|
1981
|
+
},
|
|
1930
1982
|
];
|
|
1931
1983
|
exports.EXAMPLE_TARGET_UPDATE = [
|
|
1932
1984
|
{
|
|
1933
1985
|
description: 'update target from yaml file:',
|
|
1934
1986
|
command: 'bdy tg update target-identifier --yaml @target.yml',
|
|
1935
1987
|
},
|
|
1988
|
+
{
|
|
1989
|
+
description: 'Return the result as JSON',
|
|
1990
|
+
command: 'bdy target update my-target --yaml @target.yml --format json',
|
|
1991
|
+
},
|
|
1936
1992
|
];
|
|
1937
1993
|
exports.EXAMPLE_TARGET_DELETE = [
|
|
1938
1994
|
{
|
|
@@ -2001,6 +2057,10 @@ exports.EXAMPLE_TARGET_EXEC_LOGS = [
|
|
|
2001
2057
|
description: 'show logs of execution starting from line 100:',
|
|
2002
2058
|
command: 'bdy tg exec logs exec-id --offset 100',
|
|
2003
2059
|
},
|
|
2060
|
+
{
|
|
2061
|
+
description: 'Return log records as JSONL',
|
|
2062
|
+
command: 'bdy target exec logs execution-id --format jsonl',
|
|
2063
|
+
},
|
|
2004
2064
|
];
|
|
2005
2065
|
exports.EXAMPLE_ENVIRONMENT_LIST = [
|
|
2006
2066
|
{
|
|
@@ -2047,6 +2107,10 @@ exports.EXAMPLE_ENVIRONMENT_CREATE = [
|
|
|
2047
2107
|
description: 'create environment with a public url:',
|
|
2048
2108
|
command: 'bdy env create staging --public-url https://staging.example.com',
|
|
2049
2109
|
},
|
|
2110
|
+
{
|
|
2111
|
+
description: 'Return the result as JSON',
|
|
2112
|
+
command: 'bdy environment create staging --format json',
|
|
2113
|
+
},
|
|
2050
2114
|
];
|
|
2051
2115
|
exports.EXAMPLE_ENVIRONMENT_UPDATE = [
|
|
2052
2116
|
{
|
|
@@ -2065,6 +2129,10 @@ exports.EXAMPLE_ENVIRONMENT_UPDATE = [
|
|
|
2065
2129
|
description: 'clear note:',
|
|
2066
2130
|
command: 'bdy env edit environment-identifier --note ""',
|
|
2067
2131
|
},
|
|
2132
|
+
{
|
|
2133
|
+
description: 'Return the result as JSON',
|
|
2134
|
+
command: 'bdy environment update staging --name Staging --format json',
|
|
2135
|
+
},
|
|
2068
2136
|
];
|
|
2069
2137
|
exports.EXAMPLE_ENVIRONMENT_DELETE = [
|
|
2070
2138
|
{
|
|
@@ -2089,6 +2157,10 @@ exports.EXAMPLE_SANDBOX_ENDPOINT_CREATE = [
|
|
|
2089
2157
|
description: 'create tcp endpoint on port 22 with name (tcp server must listen on 0.0.0.0):',
|
|
2090
2158
|
command: 'bdy sb ep create sandbox-identifier -t TCP -e 22 -n test',
|
|
2091
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
|
+
},
|
|
2092
2164
|
];
|
|
2093
2165
|
exports.EXAMPLE_SANDBOX_ENDPOINT_DELETE = [
|
|
2094
2166
|
{
|
|
@@ -2287,6 +2359,10 @@ exports.EXAMPLE_ARTIFACT_VERSION_CREATE = [
|
|
|
2287
2359
|
description: 'create new version of file artifact based on another version',
|
|
2288
2360
|
command: 'bdy art ver create --from old-version artifact-identifier:version',
|
|
2289
2361
|
},
|
|
2362
|
+
{
|
|
2363
|
+
description: 'Return the result as JSON',
|
|
2364
|
+
command: 'bdy artifact version create my-artifact:1.0 --format json',
|
|
2365
|
+
},
|
|
2290
2366
|
];
|
|
2291
2367
|
exports.EXAMPLE_ARTIFACT_COMPOSER_PUBLISH = [
|
|
2292
2368
|
{
|
|
@@ -2323,6 +2399,10 @@ exports.EXAMPLE_ARTIFACT_PUBLISH = [
|
|
|
2323
2399
|
description: 'overwrite existing version:',
|
|
2324
2400
|
command: 'bdy art pub artifact-identifier:version /path/to/dir -f',
|
|
2325
2401
|
},
|
|
2402
|
+
{
|
|
2403
|
+
description: 'Return the result as JSON',
|
|
2404
|
+
command: 'bdy artifact publish my-artifact:1.0 ./dist --format json',
|
|
2405
|
+
},
|
|
2326
2406
|
];
|
|
2327
2407
|
exports.EXAMPLE_ARTIFACT_DOWNLOAD = [
|
|
2328
2408
|
{
|
|
@@ -2365,6 +2445,10 @@ exports.EXAMPLE_ARTIFACT_CREATE = [
|
|
|
2365
2445
|
description: 'create docker containers artifact',
|
|
2366
2446
|
command: 'bdy art create registry -t CONTAINER',
|
|
2367
2447
|
},
|
|
2448
|
+
{
|
|
2449
|
+
description: 'Return the result as JSON',
|
|
2450
|
+
command: 'bdy artifact create my-artifact --format json',
|
|
2451
|
+
},
|
|
2368
2452
|
];
|
|
2369
2453
|
exports.EXAMPLE_ARTIFACT_VERSION_LIST = [
|
|
2370
2454
|
{
|
|
@@ -2539,6 +2623,10 @@ exports.EXAMPLE_YAML_VALIDATE = [
|
|
|
2539
2623
|
description: 'validate a pipeline file:',
|
|
2540
2624
|
command: 'bdy yaml validate buddy.yml',
|
|
2541
2625
|
},
|
|
2626
|
+
{
|
|
2627
|
+
description: 'Return the result as JSON',
|
|
2628
|
+
command: 'bdy yaml validate buddy.yml --format json',
|
|
2629
|
+
},
|
|
2542
2630
|
];
|
|
2543
2631
|
// action texts (used by yaml/action commands)
|
|
2544
2632
|
exports.OPTION_ACTION_SEARCH = 'Search by name, type, or description';
|
|
@@ -2585,3 +2673,120 @@ const ERR_YAML_SCHEMA_FETCH_FAILED = (url) => `Failed to fetch yaml-schema from
|
|
|
2585
2673
|
exports.ERR_YAML_SCHEMA_FETCH_FAILED = ERR_YAML_SCHEMA_FETCH_FAILED;
|
|
2586
2674
|
const ERR_YAML_SCHEMA_READ_FAILED = (path) => `Failed to read yaml-schema from ${path}`;
|
|
2587
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
|
+
`;
|