bdy 1.25.36-master → 1.25.37-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/api/client.js +121 -0
- package/distTs/src/command/artifact/get.js +2 -1
- package/distTs/src/command/artifact/update.js +55 -0
- package/distTs/src/command/artifact/version/get.js +5 -1
- package/distTs/src/command/artifact/version/update.js +59 -0
- package/distTs/src/command/artifact/version.js +2 -0
- package/distTs/src/command/artifact.js +2 -0
- package/distTs/src/command/distro/get.js +2 -1
- package/distTs/src/command/distro/route/get.js +9 -1
- package/distTs/src/command/integration/update.js +50 -0
- package/distTs/src/command/integration.js +2 -0
- package/distTs/src/command/pipeline/list.js +15 -16
- package/distTs/src/command/pipeline/run/execution.js +12 -0
- package/distTs/src/command/pipeline/run/list.js +16 -16
- package/distTs/src/command/pipeline/run/status.js +7 -1
- package/distTs/src/command/sandbox/get.js +2 -1
- package/distTs/src/command/target/get.js +2 -1
- package/distTs/src/command/variable/get.js +8 -1
- package/distTs/src/output/pipeline.js +12 -3
- package/distTs/src/texts.js +62 -14
- package/distTs/src/types/notes.js +14 -0
- package/package.json +1 -1
package/distTs/package.json
CHANGED
package/distTs/src/api/client.js
CHANGED
|
@@ -10,6 +10,7 @@ const logger_1 = __importDefault(require("../logger"));
|
|
|
10
10
|
const utils_1 = require("../utils");
|
|
11
11
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
12
12
|
const cfg_1 = __importDefault(require("../tunnel/cfg"));
|
|
13
|
+
const notes_1 = require("../types/notes");
|
|
13
14
|
// Resolved on first use rather than imported. Loading undici costs ~0.25s of the CLI's ~0.33s
|
|
14
15
|
// startup, and this file is on the import path of nearly every command - including the ones that
|
|
15
16
|
// never make a request (`--help`, local config, anything that exits on a validation error). Every
|
|
@@ -1431,6 +1432,15 @@ class ApiClient {
|
|
|
1431
1432
|
parseResponseBody: true,
|
|
1432
1433
|
});
|
|
1433
1434
|
}
|
|
1435
|
+
// PATCH is partial: credentials and settings left out of the body stay
|
|
1436
|
+
async updateIntegration(workspace, hashId, body) {
|
|
1437
|
+
return await this.request({
|
|
1438
|
+
method: 'PATCH',
|
|
1439
|
+
path: `/workspaces/${encodeURIComponent(workspace)}/integrations/${encodeURIComponent(hashId)}`,
|
|
1440
|
+
body,
|
|
1441
|
+
parseResponseBody: true,
|
|
1442
|
+
});
|
|
1443
|
+
}
|
|
1434
1444
|
async deleteIntegration(workspace, hashId) {
|
|
1435
1445
|
return await this.request({
|
|
1436
1446
|
method: 'DELETE',
|
|
@@ -1655,6 +1665,117 @@ class ApiClient {
|
|
|
1655
1665
|
parseResponseBody: true,
|
|
1656
1666
|
});
|
|
1657
1667
|
}
|
|
1668
|
+
// PATCH is partial: fields left out of the body stay
|
|
1669
|
+
async updateArtifact(workspace, artifactId, body) {
|
|
1670
|
+
return await this.request({
|
|
1671
|
+
method: 'PATCH',
|
|
1672
|
+
path: `/workspaces/${encodeURIComponent(workspace)}/artifacts/${encodeURIComponent(artifactId)}`,
|
|
1673
|
+
body,
|
|
1674
|
+
parseResponseBody: true,
|
|
1675
|
+
});
|
|
1676
|
+
}
|
|
1677
|
+
// a PUT, but partial all the same: fields left out of the body stay
|
|
1678
|
+
// (pinned by e2e/modules/artifact/notes.e2e.ts)
|
|
1679
|
+
async updateArtifactVersion(workspace, artifactId, versionId, body) {
|
|
1680
|
+
return await this.request({
|
|
1681
|
+
method: 'PUT',
|
|
1682
|
+
path: `/workspaces/${encodeURIComponent(workspace)}/artifacts/${encodeURIComponent(artifactId)}/versions/${encodeURIComponent(versionId)}`,
|
|
1683
|
+
body,
|
|
1684
|
+
parseResponseBody: true,
|
|
1685
|
+
});
|
|
1686
|
+
}
|
|
1687
|
+
// The parents a resource names in its own JSON, closest first. The embedded
|
|
1688
|
+
// objects carry ids only - no notes, although the spec lists them on
|
|
1689
|
+
// ShortPipelineView - so each parent is read on its own.
|
|
1690
|
+
static parentRefs(resource) {
|
|
1691
|
+
const refs = [];
|
|
1692
|
+
if (!resource)
|
|
1693
|
+
return refs;
|
|
1694
|
+
const pipeline = resource.pipeline;
|
|
1695
|
+
if (pipeline?.id) {
|
|
1696
|
+
// a pipeline-scoped target has no `project`, only the pipeline's url
|
|
1697
|
+
const project = resource.project?.name ||
|
|
1698
|
+
pipeline.project?.name ||
|
|
1699
|
+
/\/projects\/([^/]+)\/pipelines\//.exec(pipeline.url || '')?.[1];
|
|
1700
|
+
if (project)
|
|
1701
|
+
refs.push({
|
|
1702
|
+
type: notes_1.PARENT_NOTE_TYPE.PIPELINE,
|
|
1703
|
+
id: pipeline.id,
|
|
1704
|
+
project: decodeURIComponent(project),
|
|
1705
|
+
});
|
|
1706
|
+
}
|
|
1707
|
+
if (resource.sandbox?.id)
|
|
1708
|
+
refs.push({ type: notes_1.PARENT_NOTE_TYPE.SANDBOX, id: resource.sandbox.id });
|
|
1709
|
+
if (resource.environment?.id)
|
|
1710
|
+
refs.push({
|
|
1711
|
+
type: notes_1.PARENT_NOTE_TYPE.ENVIRONMENT,
|
|
1712
|
+
id: resource.environment.id,
|
|
1713
|
+
});
|
|
1714
|
+
return refs;
|
|
1715
|
+
}
|
|
1716
|
+
async _getParent(workspace, ref) {
|
|
1717
|
+
const id = String(ref.id);
|
|
1718
|
+
switch (ref.type) {
|
|
1719
|
+
case notes_1.PARENT_NOTE_TYPE.PIPELINE:
|
|
1720
|
+
return await this.getPipeline(workspace, ref.project || '', Number(id));
|
|
1721
|
+
case notes_1.PARENT_NOTE_TYPE.ENVIRONMENT:
|
|
1722
|
+
return await this.getEnvironment(workspace, id);
|
|
1723
|
+
case notes_1.PARENT_NOTE_TYPE.SANDBOX:
|
|
1724
|
+
return await this.getSandbox(workspace, id);
|
|
1725
|
+
case notes_1.PARENT_NOTE_TYPE.ARTIFACT:
|
|
1726
|
+
return await this.getArtifact(workspace, id);
|
|
1727
|
+
case notes_1.PARENT_NOTE_TYPE.DISTRIBUTION:
|
|
1728
|
+
return await this.getDistribution(workspace, ref.project || null, id);
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1731
|
+
// Notes of the parents, closest first, each on its own and skipped when it
|
|
1732
|
+
// has none. A parent that cannot be read - most often a token scoped to the
|
|
1733
|
+
// resource alone - is skipped too: the notes are a hint and never fail the
|
|
1734
|
+
// command that asked for the resource.
|
|
1735
|
+
async getParentNotes(workspace, refs) {
|
|
1736
|
+
const notes = [];
|
|
1737
|
+
const queue = [...refs];
|
|
1738
|
+
const seen = new Set();
|
|
1739
|
+
while (queue.length) {
|
|
1740
|
+
const ref = queue.shift();
|
|
1741
|
+
const key = `${ref.type}:${ref.id}`;
|
|
1742
|
+
if (seen.has(key))
|
|
1743
|
+
continue;
|
|
1744
|
+
seen.add(key);
|
|
1745
|
+
let parent;
|
|
1746
|
+
try {
|
|
1747
|
+
parent = await this._getParent(workspace, ref);
|
|
1748
|
+
}
|
|
1749
|
+
catch {
|
|
1750
|
+
continue;
|
|
1751
|
+
}
|
|
1752
|
+
if (!parent)
|
|
1753
|
+
continue;
|
|
1754
|
+
if (parent.note || parent.agent_note) {
|
|
1755
|
+
const entry = {
|
|
1756
|
+
type: ref.type,
|
|
1757
|
+
identifier: parent.identifier || String(ref.id),
|
|
1758
|
+
};
|
|
1759
|
+
if (parent.note)
|
|
1760
|
+
entry.note = parent.note;
|
|
1761
|
+
if (parent.agent_note)
|
|
1762
|
+
entry.agent_note = parent.agent_note;
|
|
1763
|
+
notes.push(entry);
|
|
1764
|
+
}
|
|
1765
|
+
queue.push(...ApiClient.parentRefs(parent));
|
|
1766
|
+
}
|
|
1767
|
+
return notes;
|
|
1768
|
+
}
|
|
1769
|
+
// The JSON of a 'get': the API's object as it is, plus `parent_notes`
|
|
1770
|
+
// unless --no-parent-notes turned it off.
|
|
1771
|
+
async withParentNotes(workspace, resource, enabled, refs = ApiClient.parentRefs(resource)) {
|
|
1772
|
+
if (!enabled)
|
|
1773
|
+
return resource;
|
|
1774
|
+
return {
|
|
1775
|
+
...resource,
|
|
1776
|
+
parent_notes: await this.getParentNotes(workspace, refs),
|
|
1777
|
+
};
|
|
1778
|
+
}
|
|
1658
1779
|
async getArtifactLatest(workspace, artifactId) {
|
|
1659
1780
|
const res = await this.request({
|
|
1660
1781
|
method: 'GET',
|
|
@@ -16,6 +16,7 @@ commandArtifactGet.option('-w, --workspace <domain>', texts_1.OPTION_REST_API_WO
|
|
|
16
16
|
commandArtifactGet.option('--scope <scope>', texts_1.OPT_COMMAND_SCOPE);
|
|
17
17
|
commandArtifactGet.option('-p, --project <name>', texts_1.OPTION_REST_API_PROJECT);
|
|
18
18
|
commandArtifactGet.option('--format <text|json>', texts_1.OPTION_FORMAT);
|
|
19
|
+
commandArtifactGet.option('--no-parent-notes', texts_1.OPTION_NO_PARENT_NOTES);
|
|
19
20
|
commandArtifactGet.argument('<identifier>', texts_1.OPTION_SANDBOX_IDENTIFIER);
|
|
20
21
|
commandArtifactGet.action(async (identifier, options) => {
|
|
21
22
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
@@ -31,7 +32,7 @@ commandArtifactGet.action(async (identifier, options) => {
|
|
|
31
32
|
}
|
|
32
33
|
const art = await client.getArtifact(workspace, data.artifact_id);
|
|
33
34
|
if (options.format === 'json') {
|
|
34
|
-
output_1.default.json(art);
|
|
35
|
+
output_1.default.json(await client.withParentNotes(workspace, art, options.parentNotes));
|
|
35
36
|
output_1.default.exitNormal();
|
|
36
37
|
}
|
|
37
38
|
else {
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const cliError_1 = __importDefault(require("../../cliError"));
|
|
7
|
+
const utils_1 = require("../../utils");
|
|
8
|
+
const texts_1 = require("../../texts");
|
|
9
|
+
const input_1 = __importDefault(require("../../input"));
|
|
10
|
+
const output_1 = __importDefault(require("../../output"));
|
|
11
|
+
const distro_1 = require("../../types/distro");
|
|
12
|
+
const commandArtifactUpdate = (0, utils_1.newCommand)('update', texts_1.DESC_COMMAND_ARTIFACT_UPDATE, {
|
|
13
|
+
requiredScopes: [utils_1.REST_API_SCOPE.ARTIFACT_WRITE],
|
|
14
|
+
examples: texts_1.EXAMPLE_ARTIFACT_UPDATE,
|
|
15
|
+
});
|
|
16
|
+
commandArtifactUpdate.alias('edit');
|
|
17
|
+
commandArtifactUpdate.option('-w, --workspace <domain>', texts_1.OPTION_REST_API_WORKSPACE);
|
|
18
|
+
commandArtifactUpdate.option('--scope <scope>', texts_1.OPT_COMMAND_SCOPE);
|
|
19
|
+
commandArtifactUpdate.option('-p, --project <name>', texts_1.OPTION_REST_API_PROJECT);
|
|
20
|
+
commandArtifactUpdate.option('--note <note>', texts_1.OPT_COMMAND_NOTE);
|
|
21
|
+
commandArtifactUpdate.option('--agent-note <note>', texts_1.OPT_COMMAND_AGENT_NOTE);
|
|
22
|
+
commandArtifactUpdate.option('--format <text|json>', texts_1.OPTION_FORMAT);
|
|
23
|
+
commandArtifactUpdate.argument('<identifier>', texts_1.OPT_COMMAND_ARTIFACT_IDENTIFIER);
|
|
24
|
+
commandArtifactUpdate.action(async (identifier, options) => {
|
|
25
|
+
const body = {};
|
|
26
|
+
// an empty value clears the note
|
|
27
|
+
if (options.note !== undefined)
|
|
28
|
+
body.note = options.note;
|
|
29
|
+
if (options.agentNote !== undefined)
|
|
30
|
+
body.agent_note = options.agentNote;
|
|
31
|
+
if (!Object.keys(body).length)
|
|
32
|
+
output_1.default.exitError(texts_1.ERR_COMMAND_NO_UPDATE);
|
|
33
|
+
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
34
|
+
const project = input_1.default.restApiProject(options.project, true);
|
|
35
|
+
const scope = input_1.default.scope(project, options.scope);
|
|
36
|
+
const client = input_1.default.restApiTokenClient();
|
|
37
|
+
const data = await client.getArtifactVersionByIdentifier(workspace, scope === distro_1.SCOPE.PROJECT ? project : null, identifier);
|
|
38
|
+
if (!data || !data.domain) {
|
|
39
|
+
output_1.default.exitError(new cliError_1.default('not_found', texts_1.ERR_WORKSPACE_NOT_FOUND, texts_1.HINT_WORKSPACE_LIST));
|
|
40
|
+
}
|
|
41
|
+
if (!data || !data.artifact_id) {
|
|
42
|
+
output_1.default.exitError(new cliError_1.default('not_found', texts_1.ERR_ARTIFACT_NOT_FOUND, texts_1.HINT_ARTIFACT_LIST));
|
|
43
|
+
}
|
|
44
|
+
const result = await client.updateArtifact(workspace, data.artifact_id, body);
|
|
45
|
+
if (options.format === 'json') {
|
|
46
|
+
output_1.default.json(result);
|
|
47
|
+
output_1.default.exitNormal();
|
|
48
|
+
}
|
|
49
|
+
output_1.default.identifier(result.identifier);
|
|
50
|
+
if (result.html_url)
|
|
51
|
+
output_1.default.cyan(result.html_url);
|
|
52
|
+
output_1.default.green(texts_1.TXT_ARTIFACT_UPDATED);
|
|
53
|
+
output_1.default.exitNormal();
|
|
54
|
+
});
|
|
55
|
+
exports.default = commandArtifactUpdate;
|
|
@@ -9,6 +9,7 @@ const texts_1 = require("../../../texts");
|
|
|
9
9
|
const input_1 = __importDefault(require("../../../input"));
|
|
10
10
|
const output_1 = __importDefault(require("../../../output"));
|
|
11
11
|
const distro_1 = require("../../../types/distro");
|
|
12
|
+
const notes_1 = require("../../../types/notes");
|
|
12
13
|
const commandArtifactVersionGet = (0, utils_1.newCommand)('get', texts_1.DESC_COMMAND_ARTIFACT_VERSION_GET, {
|
|
13
14
|
requiredScopes: [utils_1.REST_API_SCOPE.ARTIFACT_READ],
|
|
14
15
|
examples: texts_1.EXAMPLE_ARTIFACT_VERSION_GET,
|
|
@@ -16,6 +17,7 @@ const commandArtifactVersionGet = (0, utils_1.newCommand)('get', texts_1.DESC_CO
|
|
|
16
17
|
commandArtifactVersionGet.option('-w, --workspace <domain>', texts_1.OPTION_REST_API_WORKSPACE);
|
|
17
18
|
commandArtifactVersionGet.option('-p, --project <name>', texts_1.OPTION_REST_API_PROJECT);
|
|
18
19
|
commandArtifactVersionGet.option('--format <text|json>', texts_1.OPTION_FORMAT);
|
|
20
|
+
commandArtifactVersionGet.option('--no-parent-notes', texts_1.OPTION_NO_PARENT_NOTES);
|
|
19
21
|
commandArtifactVersionGet.argument('<identifier>', texts_1.OPT_COMMAND_ARTIFACT_IDENTIFIER);
|
|
20
22
|
commandArtifactVersionGet.option('--scope <scope>', texts_1.OPT_COMMAND_SCOPE);
|
|
21
23
|
commandArtifactVersionGet.argument('<version>', texts_1.OPT_COMMAND_ARTIFACT_VERSION);
|
|
@@ -36,7 +38,9 @@ commandArtifactVersionGet.action(async (identifier, version, options) => {
|
|
|
36
38
|
}
|
|
37
39
|
const result = await client.getArtifactVersion(workspace, data.artifact_id, data.artifact_version_id);
|
|
38
40
|
if (options.format === 'json') {
|
|
39
|
-
output_1.default.json(result
|
|
41
|
+
output_1.default.json(await client.withParentNotes(workspace, result, options.parentNotes, [
|
|
42
|
+
{ type: notes_1.PARENT_NOTE_TYPE.ARTIFACT, id: data.artifact_id },
|
|
43
|
+
]));
|
|
40
44
|
output_1.default.exitNormal();
|
|
41
45
|
}
|
|
42
46
|
else {
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const cliError_1 = __importDefault(require("../../../cliError"));
|
|
7
|
+
const utils_1 = require("../../../utils");
|
|
8
|
+
const texts_1 = require("../../../texts");
|
|
9
|
+
const input_1 = __importDefault(require("../../../input"));
|
|
10
|
+
const output_1 = __importDefault(require("../../../output"));
|
|
11
|
+
const distro_1 = require("../../../types/distro");
|
|
12
|
+
const commandArtifactVersionUpdate = (0, utils_1.newCommand)('update', texts_1.DESC_COMMAND_ARTIFACT_VERSION_UPDATE, {
|
|
13
|
+
requiredScopes: [utils_1.REST_API_SCOPE.ARTIFACT_WRITE],
|
|
14
|
+
examples: texts_1.EXAMPLE_ARTIFACT_VERSION_UPDATE,
|
|
15
|
+
});
|
|
16
|
+
commandArtifactVersionUpdate.alias('edit');
|
|
17
|
+
commandArtifactVersionUpdate.option('-w, --workspace <domain>', texts_1.OPTION_REST_API_WORKSPACE);
|
|
18
|
+
commandArtifactVersionUpdate.option('--scope <scope>', texts_1.OPT_COMMAND_SCOPE);
|
|
19
|
+
commandArtifactVersionUpdate.option('-p, --project <name>', texts_1.OPTION_REST_API_PROJECT);
|
|
20
|
+
commandArtifactVersionUpdate.option('--note <note>', texts_1.OPT_COMMAND_NOTE);
|
|
21
|
+
commandArtifactVersionUpdate.option('--agent-note <note>', texts_1.OPT_COMMAND_AGENT_NOTE);
|
|
22
|
+
commandArtifactVersionUpdate.option('--format <text|json>', texts_1.OPTION_FORMAT);
|
|
23
|
+
commandArtifactVersionUpdate.argument('<identifier>', texts_1.OPT_COMMAND_ARTIFACT_IDENTIFIER);
|
|
24
|
+
commandArtifactVersionUpdate.argument('<version>', texts_1.OPT_COMMAND_ARTIFACT_VERSION);
|
|
25
|
+
commandArtifactVersionUpdate.action(async (identifier, version, options) => {
|
|
26
|
+
const body = {};
|
|
27
|
+
// an empty value clears the note
|
|
28
|
+
if (options.note !== undefined)
|
|
29
|
+
body.note = options.note;
|
|
30
|
+
if (options.agentNote !== undefined)
|
|
31
|
+
body.agent_note = options.agentNote;
|
|
32
|
+
if (!Object.keys(body).length)
|
|
33
|
+
output_1.default.exitError(texts_1.ERR_COMMAND_NO_UPDATE);
|
|
34
|
+
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
35
|
+
const project = input_1.default.restApiProject(options.project, true);
|
|
36
|
+
const scope = input_1.default.scope(project, options.scope);
|
|
37
|
+
const client = input_1.default.restApiTokenClient();
|
|
38
|
+
const data = await client.getArtifactVersionByIdentifier(workspace, scope === distro_1.SCOPE.PROJECT ? project : null, identifier, version);
|
|
39
|
+
if (!data || !data.domain) {
|
|
40
|
+
output_1.default.exitError(new cliError_1.default('not_found', texts_1.ERR_WORKSPACE_NOT_FOUND, texts_1.HINT_WORKSPACE_LIST));
|
|
41
|
+
}
|
|
42
|
+
if (!data || !data.artifact_id) {
|
|
43
|
+
output_1.default.exitError(new cliError_1.default('not_found', texts_1.ERR_ARTIFACT_NOT_FOUND, texts_1.HINT_ARTIFACT_LIST));
|
|
44
|
+
}
|
|
45
|
+
if (!data || !data.artifact_version_id) {
|
|
46
|
+
output_1.default.exitError(new cliError_1.default('not_found', texts_1.ERR_ARTIFACT_VERSION_NOT_FOUND, texts_1.HINT_ARTIFACT_VERSION_LIST));
|
|
47
|
+
}
|
|
48
|
+
const result = await client.updateArtifactVersion(workspace, data.artifact_id, data.artifact_version_id, body);
|
|
49
|
+
if (options.format === 'json') {
|
|
50
|
+
output_1.default.json(result);
|
|
51
|
+
output_1.default.exitNormal();
|
|
52
|
+
}
|
|
53
|
+
output_1.default.cyan(result.version);
|
|
54
|
+
if (result.html_url)
|
|
55
|
+
output_1.default.cyan(result.html_url);
|
|
56
|
+
output_1.default.green(texts_1.TXT_ARTIFACT_VERSION_UPDATED);
|
|
57
|
+
output_1.default.exitNormal();
|
|
58
|
+
});
|
|
59
|
+
exports.default = commandArtifactVersionUpdate;
|
|
@@ -7,6 +7,7 @@ const utils_1 = require("../../utils");
|
|
|
7
7
|
const list_1 = __importDefault(require("./version/list"));
|
|
8
8
|
const texts_1 = require("../../texts");
|
|
9
9
|
const get_1 = __importDefault(require("./version/get"));
|
|
10
|
+
const update_1 = __importDefault(require("./version/update"));
|
|
10
11
|
const delete_1 = __importDefault(require("./version/delete"));
|
|
11
12
|
const create_1 = __importDefault(require("./version/create"));
|
|
12
13
|
const open_1 = __importDefault(require("./version/open"));
|
|
@@ -14,6 +15,7 @@ const commandArtifactVersion = (0, utils_1.newCommand)('version', texts_1.DESC_C
|
|
|
14
15
|
commandArtifactVersion.alias('ver');
|
|
15
16
|
commandArtifactVersion.addCommand(list_1.default);
|
|
16
17
|
commandArtifactVersion.addCommand(get_1.default);
|
|
18
|
+
commandArtifactVersion.addCommand(update_1.default);
|
|
17
19
|
commandArtifactVersion.addCommand(open_1.default);
|
|
18
20
|
commandArtifactVersion.addCommand(delete_1.default);
|
|
19
21
|
commandArtifactVersion.addCommand(create_1.default);
|
|
@@ -11,6 +11,7 @@ const list_1 = __importDefault(require("./artifact/list"));
|
|
|
11
11
|
const create_1 = __importDefault(require("./artifact/create"));
|
|
12
12
|
const delete_1 = __importDefault(require("./artifact/delete"));
|
|
13
13
|
const get_1 = __importDefault(require("./artifact/get"));
|
|
14
|
+
const update_1 = __importDefault(require("./artifact/update"));
|
|
14
15
|
const version_1 = __importDefault(require("./artifact/version"));
|
|
15
16
|
const docker_1 = __importDefault(require("./artifact/docker"));
|
|
16
17
|
const composer_1 = __importDefault(require("./artifact/composer"));
|
|
@@ -20,6 +21,7 @@ commandArtifact.alias('art');
|
|
|
20
21
|
commandArtifact.addCommand(list_1.default);
|
|
21
22
|
commandArtifact.addCommand(create_1.default);
|
|
22
23
|
commandArtifact.addCommand(get_1.default);
|
|
24
|
+
commandArtifact.addCommand(update_1.default);
|
|
23
25
|
commandArtifact.addCommand(open_1.default);
|
|
24
26
|
commandArtifact.addCommand(delete_1.default);
|
|
25
27
|
commandArtifact.addCommand(publish_1.default);
|
|
@@ -17,6 +17,7 @@ commandDistroGet.option('-w, --workspace <domain>', texts_1.OPTION_REST_API_WORK
|
|
|
17
17
|
commandDistroGet.option('--scope <scope>', texts_1.OPT_COMMAND_SCOPE);
|
|
18
18
|
commandDistroGet.option('-p, --project <name>', texts_1.OPTION_REST_API_PROJECT);
|
|
19
19
|
commandDistroGet.option('--format <text|json>', texts_1.OPTION_FORMAT);
|
|
20
|
+
commandDistroGet.option('--no-parent-notes', texts_1.OPTION_NO_PARENT_NOTES);
|
|
20
21
|
commandDistroGet.argument('<identifier>', texts_1.OPT_COMMAND_DISTRO_IDENTIFIER);
|
|
21
22
|
commandDistroGet.action(async (identifier, options) => {
|
|
22
23
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
@@ -32,7 +33,7 @@ commandDistroGet.action(async (identifier, options) => {
|
|
|
32
33
|
}
|
|
33
34
|
const distro = await client.getDistribution(workspace, scope === distro_1.SCOPE.PROJECT ? project : null, data.distribution_id);
|
|
34
35
|
if (options.format === 'json') {
|
|
35
|
-
output_1.default.json(distro);
|
|
36
|
+
output_1.default.json(await client.withParentNotes(workspace, distro, options.parentNotes));
|
|
36
37
|
}
|
|
37
38
|
else {
|
|
38
39
|
const table = [
|
|
@@ -7,6 +7,7 @@ const cliError_1 = __importDefault(require("../../../cliError"));
|
|
|
7
7
|
const utils_1 = require("../../../utils");
|
|
8
8
|
const texts_1 = require("../../../texts");
|
|
9
9
|
const input_1 = __importDefault(require("../../../input"));
|
|
10
|
+
const notes_1 = require("../../../types/notes");
|
|
10
11
|
const output_1 = __importDefault(require("../../../output"));
|
|
11
12
|
const distro_1 = require("../../../types/distro");
|
|
12
13
|
const targetText = (target) => {
|
|
@@ -26,6 +27,7 @@ commandDistroRouteGet.option('-w, --workspace <domain>', texts_1.OPTION_REST_API
|
|
|
26
27
|
commandDistroRouteGet.option('--scope <scope>', texts_1.OPT_COMMAND_SCOPE);
|
|
27
28
|
commandDistroRouteGet.option('-p, --project <name>', texts_1.OPTION_REST_API_PROJECT);
|
|
28
29
|
commandDistroRouteGet.option('--format <text|json>', texts_1.OPTION_FORMAT);
|
|
30
|
+
commandDistroRouteGet.option('--no-parent-notes', texts_1.OPTION_NO_PARENT_NOTES);
|
|
29
31
|
commandDistroRouteGet.argument('<identifier>', texts_1.OPT_COMMAND_DISTRO_IDENTIFIER);
|
|
30
32
|
commandDistroRouteGet.argument('<route-id>', texts_1.OPT_COMMAND_ROUTE_ID);
|
|
31
33
|
commandDistroRouteGet.action(async (identifier, routeId, options) => {
|
|
@@ -42,7 +44,13 @@ commandDistroRouteGet.action(async (identifier, routeId, options) => {
|
|
|
42
44
|
}
|
|
43
45
|
const route = await client.getRoute(workspace, scope === distro_1.SCOPE.PROJECT ? project : null, data.distribution_id, routeId);
|
|
44
46
|
if (options.format === 'json') {
|
|
45
|
-
output_1.default.json(route
|
|
47
|
+
output_1.default.json(await client.withParentNotes(workspace, route, options.parentNotes, [
|
|
48
|
+
{
|
|
49
|
+
type: notes_1.PARENT_NOTE_TYPE.DISTRIBUTION,
|
|
50
|
+
id: data.distribution_id,
|
|
51
|
+
project: scope === distro_1.SCOPE.PROJECT ? project : null,
|
|
52
|
+
},
|
|
53
|
+
]));
|
|
46
54
|
}
|
|
47
55
|
else {
|
|
48
56
|
const table = [
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const utils_1 = require("../../utils");
|
|
7
|
+
const texts_1 = require("../../texts");
|
|
8
|
+
const output_1 = __importDefault(require("../../output"));
|
|
9
|
+
const input_1 = __importDefault(require("../../input"));
|
|
10
|
+
const scope_1 = require("./scope");
|
|
11
|
+
// Only the notes: integrations hold credentials, which the CLI never takes
|
|
12
|
+
// (see `integration add`). The PATCH is partial, so the rest stays as it is.
|
|
13
|
+
const commandIntegrationUpdate = (0, utils_1.newCommand)('update', texts_1.DESC_COMMAND_INTEGRATION_UPDATE, {
|
|
14
|
+
requiredScopes: [utils_1.REST_API_SCOPE.INTEGRATION_MANAGE],
|
|
15
|
+
examples: texts_1.EXAMPLE_INTEGRATION_UPDATE,
|
|
16
|
+
});
|
|
17
|
+
commandIntegrationUpdate.alias('edit');
|
|
18
|
+
commandIntegrationUpdate.option('-w, --workspace <domain>', texts_1.OPTION_REST_API_WORKSPACE);
|
|
19
|
+
commandIntegrationUpdate.option('-p, --project <name>', texts_1.OPTION_REST_API_PROJECT);
|
|
20
|
+
commandIntegrationUpdate.option('--scope <scope>', texts_1.OPT_COMMAND_SCOPE_ENVIRONMENT);
|
|
21
|
+
commandIntegrationUpdate.option('--environment <identifier>', texts_1.OPTION_INTEGRATION_ENVIRONMENT);
|
|
22
|
+
commandIntegrationUpdate.option('--note <note>', texts_1.OPT_COMMAND_NOTE);
|
|
23
|
+
commandIntegrationUpdate.option('--agent-note <note>', texts_1.OPT_COMMAND_AGENT_NOTE);
|
|
24
|
+
commandIntegrationUpdate.option('--format <text|json>', texts_1.OPTION_FORMAT);
|
|
25
|
+
commandIntegrationUpdate.argument('<identifier>', texts_1.OPTION_INTEGRATION_IDENTIFIER);
|
|
26
|
+
commandIntegrationUpdate.action(async (identifier, options) => {
|
|
27
|
+
const body = {};
|
|
28
|
+
// an empty value clears the note
|
|
29
|
+
if (options.note !== undefined)
|
|
30
|
+
body.note = options.note;
|
|
31
|
+
if (options.agentNote !== undefined)
|
|
32
|
+
body.agent_note = options.agentNote;
|
|
33
|
+
if (!Object.keys(body).length)
|
|
34
|
+
output_1.default.exitError(texts_1.ERR_COMMAND_NO_UPDATE);
|
|
35
|
+
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
36
|
+
const client = input_1.default.restApiTokenClient();
|
|
37
|
+
const hash_id = await (0, scope_1.resolveIntegrationId)(client, workspace, identifier, options,
|
|
38
|
+
/* strictLine */ true);
|
|
39
|
+
const result = await client.updateIntegration(workspace, hash_id, body);
|
|
40
|
+
if (options.format === 'json') {
|
|
41
|
+
output_1.default.json(result);
|
|
42
|
+
output_1.default.exitNormal();
|
|
43
|
+
}
|
|
44
|
+
output_1.default.identifier(result.identifier);
|
|
45
|
+
if (result.html_url)
|
|
46
|
+
output_1.default.cyan(result.html_url);
|
|
47
|
+
output_1.default.green(texts_1.TXT_INTEGRATION_UPDATED);
|
|
48
|
+
output_1.default.exitNormal();
|
|
49
|
+
});
|
|
50
|
+
exports.default = commandIntegrationUpdate;
|
|
@@ -7,6 +7,7 @@ const utils_1 = require("../utils");
|
|
|
7
7
|
const texts_1 = require("../texts");
|
|
8
8
|
const list_1 = __importDefault(require("./integration/list"));
|
|
9
9
|
const get_1 = __importDefault(require("./integration/get"));
|
|
10
|
+
const update_1 = __importDefault(require("./integration/update"));
|
|
10
11
|
const add_1 = __importDefault(require("./integration/add"));
|
|
11
12
|
const delete_1 = __importDefault(require("./integration/delete"));
|
|
12
13
|
const types_1 = __importDefault(require("./integration/types"));
|
|
@@ -15,6 +16,7 @@ const commandIntegration = (0, utils_1.newCommand)('integration', texts_1.DESC_C
|
|
|
15
16
|
commandIntegration.alias('int');
|
|
16
17
|
commandIntegration.addCommand(list_1.default);
|
|
17
18
|
commandIntegration.addCommand(get_1.default);
|
|
19
|
+
commandIntegration.addCommand(update_1.default);
|
|
18
20
|
commandIntegration.addCommand(add_1.default);
|
|
19
21
|
commandIntegration.addCommand(delete_1.default);
|
|
20
22
|
commandIntegration.addCommand(types_1.default);
|
|
@@ -24,26 +24,25 @@ commandPipelineList.action(async (options) => {
|
|
|
24
24
|
const project = input_1.default.restApiProject(options.project);
|
|
25
25
|
const client = input_1.default.restApiTokenClient();
|
|
26
26
|
const r = await client.getPipelines(workspace, project, page, perPage);
|
|
27
|
-
if (!r.pipelines.length) {
|
|
28
|
-
output_1.default.exitNormal(texts_1.TXT_PIPELINES_NOT_FOUND);
|
|
29
|
-
}
|
|
30
27
|
if (options.format === 'json') {
|
|
31
28
|
output_1.default.json(r.pipelines);
|
|
29
|
+
output_1.default.exitNormal();
|
|
30
|
+
}
|
|
31
|
+
if (!r.pipelines.length) {
|
|
32
|
+
output_1.default.exitNormal(texts_1.TXT_PIPELINES_NOT_FOUND);
|
|
32
33
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
]);
|
|
44
|
-
}
|
|
45
|
-
output_1.default.table(data);
|
|
34
|
+
const data = [['NAME', 'STATUS', 'ID', 'IDENTIFIER', 'URL']];
|
|
35
|
+
const OutputPipeline = require('../../output/pipeline').default;
|
|
36
|
+
for (const pipeline of r.pipelines) {
|
|
37
|
+
data.push([
|
|
38
|
+
pipeline.name || '-',
|
|
39
|
+
OutputPipeline.runStatusText(pipeline.last_execution_status || '-'),
|
|
40
|
+
String(pipeline.id || '-'),
|
|
41
|
+
pipeline.identifier || '-',
|
|
42
|
+
pipeline.html_url || '-',
|
|
43
|
+
]);
|
|
46
44
|
}
|
|
45
|
+
output_1.default.table(data);
|
|
47
46
|
output_1.default.exitNormal();
|
|
48
47
|
});
|
|
49
48
|
exports.default = commandPipelineList;
|
|
@@ -3,9 +3,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.pipelineParentNotes = pipelineParentNotes;
|
|
6
7
|
exports.resolvePipelineId = resolvePipelineId;
|
|
7
8
|
const cliError_1 = __importDefault(require("../../../cliError"));
|
|
8
9
|
const texts_1 = require("../../../texts");
|
|
10
|
+
const notes_1 = require("../../../types/notes");
|
|
11
|
+
// The notes of the pipeline for the JSONL parent_notes record, read once and
|
|
12
|
+
// not on every poll: what the pipeline is for explains its failure. Never
|
|
13
|
+
// rejects - a pipeline the token cannot read just has no record.
|
|
14
|
+
function pipelineParentNotes(client, workspace, project, pipelineId) {
|
|
15
|
+
return client
|
|
16
|
+
.getParentNotes(workspace, [
|
|
17
|
+
{ type: notes_1.PARENT_NOTE_TYPE.PIPELINE, id: pipelineId, project },
|
|
18
|
+
])
|
|
19
|
+
.catch(() => []);
|
|
20
|
+
}
|
|
9
21
|
/** Resolve and validate the execution's parent resources. */
|
|
10
22
|
async function resolvePipelineId(client, workspace, project, identifier) {
|
|
11
23
|
const data = await client.getPipelineByIdentifier(workspace, project, identifier);
|
|
@@ -36,26 +36,26 @@ commandPipelineRunList.action(async (identifier, options) => {
|
|
|
36
36
|
output_1.default.exitError(new cliError_1.default('not_found', texts_1.ERR_PIPELINE_NOT_FOUND, texts_1.HINT_PIPELINE_LIST));
|
|
37
37
|
}
|
|
38
38
|
const result = await client.getPipelineRuns(workspace, project, data.pipeline_id, page, perPage);
|
|
39
|
-
|
|
40
|
-
output_1.default.exitError(texts_1.ERR_PIPELINE_RUNS_NOT_FOUND);
|
|
41
|
-
}
|
|
39
|
+
// an empty page is an empty JSON array, the way the API returns it
|
|
42
40
|
if (options.format === 'json') {
|
|
43
41
|
output_1.default.json(result.executions);
|
|
42
|
+
output_1.default.exitNormal();
|
|
43
|
+
}
|
|
44
|
+
if (!result.executions.length) {
|
|
45
|
+
output_1.default.exitError(texts_1.ERR_PIPELINE_RUNS_NOT_FOUND);
|
|
44
46
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
]);
|
|
56
|
-
}
|
|
57
|
-
output_1.default.table(table);
|
|
47
|
+
const OutputPipeline = require('../../../output/pipeline').default;
|
|
48
|
+
const table = [['ID', 'STATUS', 'STARTED', 'FINISHED', 'URL']];
|
|
49
|
+
for (const run of result.executions) {
|
|
50
|
+
table.push([
|
|
51
|
+
String(run.id),
|
|
52
|
+
OutputPipeline.runStatusText(run.status),
|
|
53
|
+
run.start_date || '-',
|
|
54
|
+
run.finish_date || '-',
|
|
55
|
+
run.html_url,
|
|
56
|
+
]);
|
|
58
57
|
}
|
|
58
|
+
output_1.default.table(table);
|
|
59
59
|
output_1.default.exitNormal('');
|
|
60
60
|
});
|
|
61
61
|
exports.default = commandPipelineRunList;
|
|
@@ -19,6 +19,7 @@ commandPipelineRunStatus.option('--no-follow', texts_1.OPTION_PIPELINE_RUN_NO_FO
|
|
|
19
19
|
commandPipelineRunStatus.option('--exit-code', texts_1.OPTION_EXEC_EXIT_CODE);
|
|
20
20
|
commandPipelineRunStatus.option('--failed-logs', texts_1.OPTION_PIPELINE_RUN_FAILED_LOGS);
|
|
21
21
|
commandPipelineRunStatus.option('--format <text|jsonl>', texts_1.OPTION_EXEC_FORMAT_JSONL);
|
|
22
|
+
commandPipelineRunStatus.option('--no-parent-notes', texts_1.OPTION_PIPELINE_RUN_NO_PARENT_NOTES);
|
|
22
23
|
commandPipelineRunStatus.argument('<identifier>', texts_1.OPTION_PIPELINE_IDENTIFIER);
|
|
23
24
|
commandPipelineRunStatus.argument('<run-id>', texts_1.OPTION_PIPELINE_RUN_ID);
|
|
24
25
|
commandPipelineRunStatus.action(async (identifier, runId, options) => {
|
|
@@ -27,7 +28,12 @@ commandPipelineRunStatus.action(async (identifier, runId, options) => {
|
|
|
27
28
|
const client = input_1.default.restApiTokenClient();
|
|
28
29
|
const rid = input_1.default.pipelineRunId(runId);
|
|
29
30
|
const pipelineId = await (0, execution_1.resolvePipelineId)(client, workspace, project, identifier);
|
|
31
|
+
const isJson = options.format === 'jsonl';
|
|
32
|
+
// fetched alongside the first poll, printed once that poll found the run
|
|
33
|
+
const parentNotes = isJson && options.parentNotes
|
|
34
|
+
? (0, execution_1.pipelineParentNotes)(client, workspace, project, pipelineId)
|
|
35
|
+
: null;
|
|
30
36
|
const OutputPipeline = require('../../../output/pipeline').default;
|
|
31
|
-
await OutputPipeline.runStatus(client, workspace, project, identifier, pipelineId, rid, !options.wait, !options.follow,
|
|
37
|
+
await OutputPipeline.runStatus(client, workspace, project, identifier, pipelineId, rid, !options.wait, !options.follow, isJson, !!options.exitCode, !!options.failedLogs, parentNotes);
|
|
32
38
|
});
|
|
33
39
|
exports.default = commandPipelineRunStatus;
|
|
@@ -12,6 +12,7 @@ const fetchSource_1 = require("./fetchSource");
|
|
|
12
12
|
const commandSandboxGet = (0, utils_1.newCommand)('get', texts_1.DESC_COMMAND_SANDBOX_GET, { requiredScopes: [utils_1.REST_API_SCOPE.SANDBOX_READ] });
|
|
13
13
|
(0, utils_1.sandboxScopeOptions)(commandSandboxGet);
|
|
14
14
|
commandSandboxGet.option('--format <text|json>', texts_1.OPTION_FORMAT);
|
|
15
|
+
commandSandboxGet.option('--no-parent-notes', texts_1.OPTION_NO_PARENT_NOTES);
|
|
15
16
|
commandSandboxGet.argument('<identifier>', texts_1.OPTION_SANDBOX_IDENTIFIER);
|
|
16
17
|
commandSandboxGet.action(async (identifier, options) => {
|
|
17
18
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
@@ -19,7 +20,7 @@ commandSandboxGet.action(async (identifier, options) => {
|
|
|
19
20
|
const sandboxId = await input_1.default.sandboxId(client, workspace, options, identifier);
|
|
20
21
|
const sandbox = await client.getSandbox(workspace, sandboxId);
|
|
21
22
|
if (options.format === 'json') {
|
|
22
|
-
output_1.default.json(sandbox);
|
|
23
|
+
output_1.default.json(await client.withParentNotes(workspace, sandbox, options.parentNotes));
|
|
23
24
|
}
|
|
24
25
|
else {
|
|
25
26
|
const data = [
|
|
@@ -17,6 +17,7 @@ commandTargetGet.option('-p, --project <name>', texts_1.OPTION_REST_API_PROJECT)
|
|
|
17
17
|
commandTargetGet.option('--pipeline <identifier>', texts_1.OPTION_TARGET_PIPELINE);
|
|
18
18
|
commandTargetGet.option('--environment <identifier>', texts_1.OPTION_TARGET_ENVIRONMENT);
|
|
19
19
|
commandTargetGet.option('--format <text|json>', texts_1.OPTION_FORMAT);
|
|
20
|
+
commandTargetGet.option('--no-parent-notes', texts_1.OPTION_NO_PARENT_NOTES);
|
|
20
21
|
commandTargetGet.argument('<identifier>', texts_1.OPTION_TARGET_IDENTIFIER);
|
|
21
22
|
commandTargetGet.action(async (identifier, options) => {
|
|
22
23
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
@@ -24,7 +25,7 @@ commandTargetGet.action(async (identifier, options) => {
|
|
|
24
25
|
const target_id = await (0, scope_1.resolveTargetId)(client, workspace, identifier, options);
|
|
25
26
|
const target = await client.getTarget(workspace, target_id);
|
|
26
27
|
if (options.format === 'json') {
|
|
27
|
-
output_1.default.json(target);
|
|
28
|
+
output_1.default.json(await client.withParentNotes(workspace, target, options.parentNotes));
|
|
28
29
|
}
|
|
29
30
|
else {
|
|
30
31
|
const data = [
|
|
@@ -7,6 +7,7 @@ const utils_1 = require("../../utils");
|
|
|
7
7
|
const texts_1 = require("../../texts");
|
|
8
8
|
const output_1 = __importDefault(require("../../output"));
|
|
9
9
|
const input_1 = __importDefault(require("../../input"));
|
|
10
|
+
const client_1 = __importDefault(require("../../api/client"));
|
|
10
11
|
const scope_1 = require("./scope");
|
|
11
12
|
const commandVariableGet = (0, utils_1.newCommand)('get', texts_1.DESC_COMMAND_VARIABLE_GET, {
|
|
12
13
|
requiredScopes: [utils_1.REST_API_SCOPE.VARIABLE_READ],
|
|
@@ -19,13 +20,19 @@ commandVariableGet.option('--environment <identifier>', texts_1.OPTION_VARIABLE_
|
|
|
19
20
|
commandVariableGet.option('--sandbox <identifier>', texts_1.OPTION_VARIABLE_SANDBOX);
|
|
20
21
|
commandVariableGet.option('--scope <scope>', texts_1.OPT_COMMAND_VARIABLE_SCOPE);
|
|
21
22
|
commandVariableGet.option('--format <text|json>', texts_1.OPTION_FORMAT);
|
|
23
|
+
commandVariableGet.option('--no-parent-notes', texts_1.OPTION_NO_PARENT_NOTES);
|
|
22
24
|
commandVariableGet.argument('<key>', texts_1.OPTION_VARIABLE_KEY);
|
|
23
25
|
commandVariableGet.action(async (key, options) => {
|
|
24
26
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
25
27
|
const client = input_1.default.restApiTokenClient();
|
|
26
28
|
const { variable, scope } = await (0, scope_1.resolveVariable)(client, workspace, key, options);
|
|
27
29
|
if (options.format === 'json') {
|
|
28
|
-
|
|
30
|
+
// the variable comes from the list, whose items carry no pipeline,
|
|
31
|
+
// sandbox or environment: the parents are named by the variable's own GET
|
|
32
|
+
const refs = options.parentNotes
|
|
33
|
+
? client_1.default.parentRefs(await client.getVariable(workspace, variable.id).catch(() => null))
|
|
34
|
+
: [];
|
|
35
|
+
output_1.default.json(await client.withParentNotes(workspace, variable, options.parentNotes, refs));
|
|
29
36
|
}
|
|
30
37
|
else {
|
|
31
38
|
const data = [
|
|
@@ -84,7 +84,11 @@ class OutputPipeline {
|
|
|
84
84
|
if (result.has_more)
|
|
85
85
|
output_1.default.normal(texts_1.TXT_PIPELINE_RUN_FIND_MORE);
|
|
86
86
|
}
|
|
87
|
-
static
|
|
87
|
+
static jsonParentNotes(notes) {
|
|
88
|
+
if (notes.length)
|
|
89
|
+
output_1.default.json({ type: 'parent_notes', parent_notes: notes });
|
|
90
|
+
}
|
|
91
|
+
static async runStatus(client, workspace, project, identifier, pipelineId, runId, noWait, noFollow, isJson, semanticExitCode = false, failedLogs = false, parentNotes = null) {
|
|
88
92
|
if (output_1.default.isTTY() &&
|
|
89
93
|
!noWait &&
|
|
90
94
|
!noFollow &&
|
|
@@ -93,7 +97,7 @@ class OutputPipeline {
|
|
|
93
97
|
!failedLogs) {
|
|
94
98
|
return await this._runStatusInteractive(client, workspace, project, pipelineId, runId);
|
|
95
99
|
}
|
|
96
|
-
return await this._runStatusNonInteractive(client, workspace, project, identifier, pipelineId, runId, noWait, noFollow, isJson, semanticExitCode, failedLogs);
|
|
100
|
+
return await this._runStatusNonInteractive(client, workspace, project, identifier, pipelineId, runId, noWait, noFollow, isJson, semanticExitCode, failedLogs, parentNotes);
|
|
97
101
|
}
|
|
98
102
|
static _canCancel(status) {
|
|
99
103
|
return ![
|
|
@@ -1399,7 +1403,7 @@ class OutputPipeline {
|
|
|
1399
1403
|
}
|
|
1400
1404
|
}, false, semanticExitCode);
|
|
1401
1405
|
}
|
|
1402
|
-
static async _runStatusNonInteractive(client, workspace, project, identifier, pipelineId, runId, noWait, noFollow, isJson, semanticExitCode = false, failedLogs = false) {
|
|
1406
|
+
static async _runStatusNonInteractive(client, workspace, project, identifier, pipelineId, runId, noWait, noFollow, isJson, semanticExitCode = false, failedLogs = false, parentNotes = null) {
|
|
1403
1407
|
const flags = this._scopeFlags(workspace, project);
|
|
1404
1408
|
const finishRun = async (run) => {
|
|
1405
1409
|
if (failedLogs)
|
|
@@ -1476,6 +1480,11 @@ class OutputPipeline {
|
|
|
1476
1480
|
};
|
|
1477
1481
|
run = await this._runStatusLoop(client, workspace, project, pipelineId, runId, async (run) => {
|
|
1478
1482
|
totalFetchesCount += 1;
|
|
1483
|
+
// after the run was found, so a missing run starts with its error
|
|
1484
|
+
if (parentNotes) {
|
|
1485
|
+
this.jsonParentNotes(await parentNotes);
|
|
1486
|
+
parentNotes = null;
|
|
1487
|
+
}
|
|
1479
1488
|
if (!noFollow || noWait) {
|
|
1480
1489
|
if (isJson)
|
|
1481
1490
|
this.jsonRun(identifier, run, flags);
|
package/distTs/src/texts.js
CHANGED
|
@@ -17,19 +17,19 @@ exports.OPTION_SANDBOX_COMMAND_ID = exports.DESC_COMMAND_SANDBOX_EXEC_KILL = exp
|
|
|
17
17
|
exports.OPTION_SANDBOX_FETCH_SOURCE_PATH = exports.OPTION_SANDBOX_FETCH_ARTIFACT = exports.OPTION_SANDBOX_FETCH_PATH = exports.OPTION_SANDBOX_FETCH_REPOSITORY = exports.OPTION_SANDBOX_FETCH_REF = exports.OPTION_SANDBOX_FETCH_ARG = exports.DESC_COMMAND_SANDBOX_FETCH_REFETCH = exports.DESC_COMMAND_SANDBOX_FETCH_DELETE = exports.DESC_COMMAND_SANDBOX_FETCH_ADD = exports.DESC_COMMAND_SANDBOX_FETCH_GET = exports.DESC_COMMAND_SANDBOX_FETCH_LIST = exports.DESC_COMMAND_SANDBOX_FETCH = 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 = 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_EXEC_LIMIT = void 0;
|
|
18
18
|
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_CANCELLED = 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 = 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_FETCH_SOURCE_PATH = exports.ERR_SANDBOX_FETCH_MIX_ARTIFACT = exports.ERR_SANDBOX_FETCHES_NOT_FOUND = exports.ERR_SANDBOX_FETCH_NOT_FOUND = exports.TXT_SANDBOX_FETCH_REFETCHED = exports.TXT_SANDBOX_FETCH_DELETED = exports.TXT_SANDBOX_FETCH_DELETE_CONFIRM = exports.TXT_SANDBOX_FETCH_ADDED_STALE = exports.TXT_SANDBOX_FETCH_ADDED = exports.OPTION_SANDBOX_FETCH_BUILD = void 0;
|
|
19
19
|
exports.OPTION_VARIABLE_DISABLE = exports.OPTION_VARIABLE_ENABLE = exports.OPTION_VARIABLE_RENAME = exports.OPTION_VARIABLE_NO_SETTABLE = exports.OPTION_VARIABLE_SETTABLE = exports.OPTION_VARIABLE_NO_ENCRYPTED = exports.OPTION_VARIABLE_ENCRYPTED = exports.OPT_COMMAND_VARIABLE_SCOPE = exports.OPTION_VARIABLE_SANDBOX = exports.OPTION_VARIABLE_ENVIRONMENT = exports.OPTION_VARIABLE_PIPELINE = exports.OPTION_VARIABLE_FILE = exports.OPTION_VARIABLE_VALUE = exports.OPTION_VARIABLE_KEY = exports.DESC_COMMAND_VARIABLE_DELETE = exports.DESC_COMMAND_VARIABLE_UPDATE = exports.DESC_COMMAND_VARIABLE_CREATE = exports.DESC_COMMAND_VARIABLE_GET = exports.DESC_COMMAND_VARIABLE_LIST = exports.DESC_COMMAND_VARIABLE = 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 = void 0;
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
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 = void 0;
|
|
20
|
+
exports.DESC_COMMAND_INTEGRATION_EXEC_LOGS = exports.DESC_COMMAND_INTEGRATION_EXEC_STATUS = exports.DESC_COMMAND_INTEGRATION_EXEC_LIST = exports.DESC_COMMAND_INTEGRATION_EXEC_CALL = exports.DESC_COMMAND_INTEGRATION_EXEC_TOOL = exports.DESC_COMMAND_INTEGRATION_EXEC_TOOLS = exports.DESC_COMMAND_INTEGRATION_EXEC = exports.TXT_INTEGRATION_DELETED = exports.TXT_INTEGRATION_DELETE_CONFIRM = exports.TXT_INTEGRATION_ADD_URL = exports.TXT_INTEGRATION_TYPES_NOT_FOUND = exports.TXT_INTEGRATION_NOT_FOUND = exports.HINT_INTEGRATION_TYPE = exports.ERR_INTEGRATION_TYPE = exports.ERR_INTEGRATION_ADD_URL_MISSING = exports.ERR_INTEGRATION_SCOPE_ENV_CONFLICT = exports.ERR_INTEGRATION_NOT_FOUND = exports.OPTION_INTEGRATION_ENVIRONMENT = exports.OPTION_INTEGRATION_TYPES_GROUP = exports.OPTION_INTEGRATION_TYPE = exports.OPTION_INTEGRATION_IDENTIFIER = exports.DESC_COMMAND_INTEGRATION_TYPES = exports.TXT_INTEGRATION_UPDATED = exports.DESC_COMMAND_INTEGRATION_UPDATE = exports.DESC_COMMAND_INTEGRATION_DELETE = exports.DESC_COMMAND_INTEGRATION_ADD = exports.DESC_COMMAND_INTEGRATION_GET = exports.DESC_COMMAND_INTEGRATION_LIST = exports.DESC_COMMAND_INTEGRATION = 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 = exports.TXT_VARIABLE_DELETED = exports.TXT_VARIABLE_DELETE_CONFIRM = exports.TXT_VARIABLE_UPDATED = exports.TXT_VARIABLE_CREATED = exports.TXT_VARIABLE_NOT_FOUND = exports.ERR_VARIABLE_ENABLE_DISABLE = exports.ERR_VARIABLE_DECRYPT_NO_VALUE = exports.ERR_VARIABLE_FILE_NOT_FOUND = exports.ERR_VARIABLE_VALUE_CONFLICT = exports.ERR_VARIABLE_SCOPE_NO_SANDBOX = exports.ERR_VARIABLE_LINE_CONFLICT = exports.ERR_VARIABLE_SCOPE = exports.ERR_VARIABLE_NOT_FOUND = void 0;
|
|
21
|
+
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_INTEGRATION_EXEC_BACKGROUND = exports.TXT_INTEGRATION_EXEC_DESTRUCTIVE_CONFIRM = exports.TXT_INTEGRATION_EXEC_NO_TOOLS = exports.ERR_INTEGRATION_NO_EXECS = exports.ERR_INTEGRATION_EXEC_TOOL_ERROR = exports.ERR_INTEGRATION_EXEC_CANCELLED = exports.ERR_INTEGRATION_EXEC_FAILED = exports.ERR_INTEGRATION_EXEC_OUTPUT = exports.HINT_INTEGRATION_EXEC_TOOL = exports.ERR_INTEGRATION_EXEC_ARGS_INVALID = exports.ERR_INTEGRATION_EXEC_ARGS_FILE = exports.ERR_INTEGRATION_EXEC_ARGS_JSON = exports.OPTION_INTEGRATION_EXEC_ASYNC = exports.OPTION_INTEGRATION_EXEC_FORCE = exports.OPTION_INTEGRATION_EXEC_NO_VALIDATE = exports.OPTION_INTEGRATION_EXEC_ARGS = exports.OPTION_INTEGRATION_EXEC_TOOL = exports.DESC_COMMAND_INTEGRATION_EXEC_KILL = void 0;
|
|
22
|
+
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 = 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 = void 0;
|
|
23
|
+
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.OPTION_PIPELINE_RUN_NO_PARENT_NOTES = exports.OPTION_NO_PARENT_NOTES = 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_DETAILS = exports.ERR_LOGIN_INVALID_BASE_URL = exports.ERR_LOGIN_NO_WORKSPACE_FOUND = exports.ERR_LOGIN_NO_WORKSPACES = exports.ERR_REGISTER_HTTP_CANCEL = 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 = void 0;
|
|
24
|
+
exports.TXT_COMMAND_DOMAIN_UPDATED = exports.TXT_COMMAND_DOMAIN_CREATED = exports.ERR_COMMAND_DOMAIN_TYPE = exports.OPT_COMMAND_DOMAIN_IMPORT_YAML = exports.OPT_COMMAND_DOMAIN_YAML = exports.OPT_COMMAND_DOMAIN_LIST_TYPE = exports.OPT_COMMAND_DOMAIN_CREATE_TYPE = exports.OPT_COMMAND_DOMAIN_NAME = exports.DESC_COMMAND_DOMAIN_IMPORT = exports.DESC_COMMAND_DOMAIN_UPDATE = exports.DESC_COMMAND_DOMAIN_YAML = exports.DESC_COMMAND_DOMAIN_DELETE = exports.DESC_COMMAND_DOMAIN_CREATE = exports.TXT_COMMAND_DOMAIN_PREMIUM_CONFIRM = exports.TXT_COMMAND_DOMAIN_PREMIUM = 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 = 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 = void 0;
|
|
25
|
+
exports.OPT_COMMAND_PROJECT_CREATE_SOURCE = exports.OPT_COMMAND_PROJECT_CREATE_ACCESS = exports.OPT_COMMAND_PROJECT_CREATE_NAME = exports.OPT_COMMAND_PROJECT_CREATE_DISPLAY_NAME = exports.OPT_COMMAND_PROJECT_NAME = exports.DESC_COMMAND_PROJECT_DELETE = exports.HELP_PROJECT_CREATE = exports.DESC_COMMAND_PROJECT_CREATE = exports.DESC_COMMAND_PROJECT_GET = 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 = 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.TXT_ARTIFACT_VERSION_UPDATED = exports.DESC_COMMAND_ARTIFACT_VERSION_UPDATE = exports.TXT_ARTIFACT_UPDATED = exports.DESC_COMMAND_ARTIFACT_UPDATE = exports.DESC_COMMAND_ARTIFACT_GET = exports.ERR_ARTIFACT_DOCKER_NOT_FOUND = 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.TXT_COMMAND_DOMAIN_PREMIUM_HINT = exports.TXT_COMMAND_DOMAIN_IMPORTED = exports.TXT_COMMAND_DOMAIN_DELETED = exports.TXT_COMMAND_DOMAIN_DELETE_CONFIRM = void 0;
|
|
26
|
+
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.TXT_COMMAND_PROJECT_DELETED = exports.TXT_COMMAND_PROJECT_DELETE_CONFIRM = exports.TXT_COMMAND_PROJECT_UPDATED = exports.TXT_COMMAND_PROJECT_LINK_RENAMED = exports.TXT_COMMAND_PROJECT_RENAMED = exports.ERR_COMMAND_PROJECT_UPDATE_SUBMODULES_KEY = exports.ERR_COMMAND_PROJECT_UPDATE_STATUS = exports.OPT_COMMAND_PROJECT_UPDATE_NO_SYNC_DEFAULT_BRANCH = exports.OPT_COMMAND_PROJECT_UPDATE_SYNC_DEFAULT_BRANCH = exports.OPT_COMMAND_PROJECT_UPDATE_SUBMODULES_KEY = exports.OPT_COMMAND_PROJECT_UPDATE_NO_FETCH_SUBMODULES = exports.OPT_COMMAND_PROJECT_UPDATE_FETCH_SUBMODULES = exports.OPT_COMMAND_PROJECT_UPDATE_NO_ALLOW_PULL_REQUESTS = exports.OPT_COMMAND_PROJECT_UPDATE_ALLOW_PULL_REQUESTS = exports.OPT_COMMAND_PROJECT_UPDATE_STATUS = exports.OPT_COMMAND_PROJECT_UPDATE_ACCESS = exports.OPT_COMMAND_PROJECT_UPDATE_DISPLAY_NAME = exports.OPT_COMMAND_PROJECT_UPDATE_NEW_NAME = exports.OPT_COMMAND_PROJECT_UPDATE_NAME = exports.DESC_COMMAND_PROJECT_UPDATE = exports.TXT_COMMAND_PROJECT_CREATE_NAME_CHANGED = exports.ERR_COMMAND_PROJECT_CREATE_PULL_REQUESTS = exports.ERR_COMMAND_PROJECT_CREATE_INTEGRATION_SOURCE = exports.ERR_COMMAND_PROJECT_CREATE_INTEGRATION_TYPE = exports.HINT_COMMAND_PROJECT_CREATE_INTEGRATION_NOT_FOUND = exports.ERR_COMMAND_PROJECT_CREATE_INTEGRATION_NOT_FOUND = exports.ERR_COMMAND_PROJECT_CREATE_INTEGRATION_FORMAT = exports.ERR_COMMAND_PROJECT_CREATE_INTEGRATION_REQUIRED = exports.ERR_COMMAND_PROJECT_CREATE_SOURCE = exports.ERR_COMMAND_PROJECT_CREATE_ACCESS = exports.OPT_COMMAND_PROJECT_CREATE_ALLOW_PULL_REQUESTS = exports.OPT_COMMAND_PROJECT_CREATE_INTEGRATION = void 0;
|
|
27
|
+
exports.EXAMPLE_INTEGRATION_LIST = 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 = 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_PROJECT_DELETE = exports.EXAMPLE_PROJECT_UPDATE = exports.EXAMPLE_PROJECT_CREATE = exports.EXAMPLE_PROJECT_GET = 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.TXT_PROJECT_PAGE_EMPTY = 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 = void 0;
|
|
28
|
+
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 = exports.TXT_PIPELINE_FAILED_LOGS_HEADER = exports.OPTION_PIPELINE_RUN_FAILED_LOGS = exports.FAILED_LOGS_LIMIT = exports.EXAMPLE_PIPELINE_RUN_START = exports.EXAMPLE_SANDBOX_ENDPOINT_LIST = exports.EXAMPLE_SANDBOX_FETCH_REFETCH = exports.EXAMPLE_SANDBOX_FETCH_DELETE = exports.EXAMPLE_SANDBOX_FETCH_ADD = exports.EXAMPLE_SANDBOX_FETCH_GET = exports.EXAMPLE_SANDBOX_FETCH_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_VARIABLE_DELETE = exports.EXAMPLE_VARIABLE_UPDATE = exports.EXAMPLE_VARIABLE_CREATE = exports.EXAMPLE_VARIABLE_GET = exports.EXAMPLE_VARIABLE_LIST = exports.EXAMPLE_TARGET_DELETE = exports.EXAMPLE_TARGET_UPDATE = exports.EXAMPLE_TARGET_CREATE = exports.EXAMPLE_TARGET_GET = exports.EXAMPLE_INTEGRATION_EXEC_KILL = exports.EXAMPLE_INTEGRATION_EXEC_LOGS = exports.EXAMPLE_INTEGRATION_EXEC_STATUS = exports.EXAMPLE_INTEGRATION_EXEC_LIST = exports.EXAMPLE_INTEGRATION_EXEC_CALL = exports.EXAMPLE_INTEGRATION_EXEC_TOOL = exports.EXAMPLE_INTEGRATION_EXEC_TOOLS = exports.EXAMPLE_INTEGRATION_DELETE = exports.EXAMPLE_INTEGRATION_TYPES = exports.EXAMPLE_INTEGRATION_ADD = exports.EXAMPLE_INTEGRATION_UPDATE = exports.EXAMPLE_INTEGRATION_GET = void 0;
|
|
29
|
+
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 = 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 = void 0;
|
|
30
|
+
exports.EXAMPLE_DOMAIN_UPDATE = exports.EXAMPLE_DOMAIN_YAML = exports.EXAMPLE_DOMAIN_DELETE = exports.EXAMPLE_DOMAIN_CREATE = exports.EXAMPLE_DOMAIN_LIST = exports.EXAMPLE_DOMAIN_BUY = 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 = void 0;
|
|
31
|
+
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 = 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 = 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 = void 0;
|
|
33
33
|
const utils_1 = require("./utils");
|
|
34
34
|
exports.ERR_CONFIRM_REQUIRED = 'Confirmation is required in non-interactive mode';
|
|
35
35
|
exports.ERR_FOLLOW_WITH_JSON = '--follow cannot be used with --format json';
|
|
@@ -558,7 +558,7 @@ exports.DISCOVERY_TIPS = [
|
|
|
558
558
|
'Check each command for supported output formats: json and jsonl are different; not every command supports them.',
|
|
559
559
|
'required_scopes: null means undocumented or dynamic; [] means explicitly no token scopes required. Token scopes are separate from the --scope resource option.',
|
|
560
560
|
"Use 'bdy discover' for an index with usage, options, scopes and example counts. Selecting a command without subcommands returns full details automatically; use --full for a whole subtree. Aliases are accepted.",
|
|
561
|
-
"agent_note is an instruction left on a resource for AI agents (e.g. 'deploy: manual-approval-required'). Read
|
|
561
|
+
"agent_note is an instruction left on a resource for AI agents (e.g. 'deploy: manual-approval-required'); note is the same for humans. Read them before changing a resource and follow them: 'get' of pipelines, sandboxes, artifacts and their versions, distributions and routes, environments, targets, variables and integrations returns them (JSON fields note and agent_note, text rows 'Note' and 'Agent note'), and so does the JSON of 'pipeline list', 'target list', 'variable list', 'integration list' and 'distro route list' - pick a target or a variable by its agent_note. An environment's agent_note can explain all of its targets at once: 'target get' of each of them returns it in parent_notes. The JSON of 'get' of targets, sandboxes, variables, artifacts and their versions, distributions and routes adds parent_notes: the notes of the resources it belongs to (pipeline, environment, sandbox, artifact, distribution), closest first, each with its type and identifier; 'pipeline run status --format jsonl' puts a parent_notes record with the pipeline's notes before its first run record. --no-parent-notes leaves them out. Set notes with --note / --agent-note on the create and update commands that offer them (an empty value clears one), or with note / agent_note keys in the YAML of YAML-defined resources (pipelines, sandboxes, targets).",
|
|
562
562
|
'Options listed under shared_options in a command are described once in the top-level shared_options; global_options apply to every command and are not repeated.',
|
|
563
563
|
"Use 'bdy <command> --examples' for examples alone; add --format json or jsonl for structured output, even if that command normally has a different output format.",
|
|
564
564
|
"Run 'bdy discover --help' for the JSON contract and field meanings.",
|
|
@@ -1240,6 +1240,8 @@ exports.DESC_COMMAND_INTEGRATION_LIST = 'List integrations';
|
|
|
1240
1240
|
exports.DESC_COMMAND_INTEGRATION_GET = 'Show integration details';
|
|
1241
1241
|
exports.DESC_COMMAND_INTEGRATION_ADD = 'Print a link to the Buddy page for adding an integration. Integrations hold credentials, so they are added in the app';
|
|
1242
1242
|
exports.DESC_COMMAND_INTEGRATION_DELETE = 'Delete an integration';
|
|
1243
|
+
exports.DESC_COMMAND_INTEGRATION_UPDATE = "Update an integration's notes. Credentials and settings are changed in the app";
|
|
1244
|
+
exports.TXT_INTEGRATION_UPDATED = 'Integration updated';
|
|
1243
1245
|
exports.DESC_COMMAND_INTEGRATION_TYPES = 'List integration types that can be added, with what each is for';
|
|
1244
1246
|
// Integration options
|
|
1245
1247
|
exports.OPTION_INTEGRATION_IDENTIFIER = 'Integration identifier';
|
|
@@ -1501,6 +1503,8 @@ exports.DESC_COMMAND_ROUTE_UPDATE = 'Update a route';
|
|
|
1501
1503
|
exports.DESC_COMMAND_ROUTE = 'Manage routes of a distribution';
|
|
1502
1504
|
exports.OPT_COMMAND_NOTE = 'Resource note';
|
|
1503
1505
|
exports.OPT_COMMAND_AGENT_NOTE = 'Note for AI agents operating on this resource; stored as agent_note and meant to be read before acting on the resource';
|
|
1506
|
+
exports.OPTION_NO_PARENT_NOTES = 'Leave parent_notes out of the JSON: the notes of the resources this one belongs to (pipeline, environment, ...), fetched with an extra request per parent';
|
|
1507
|
+
exports.OPTION_PIPELINE_RUN_NO_PARENT_NOTES = 'Leave out the JSONL parent_notes record with the notes of the pipeline (one extra request)';
|
|
1504
1508
|
exports.OPT_COMMAND_SCOPE = 'Force scope (WORKSPACE, PROJECT). By default calculated by provided options and environmental variables (--project, BUDDY_PROJECT, linked project)';
|
|
1505
1509
|
exports.OPT_COMMAND_SCOPE_ENVIRONMENT = 'Force scope (WORKSPACE, PROJECT, ENVIRONMENT). By default calculated by provided options and environmental variables (--project, --environment, BUDDY_PROJECT, linked project)';
|
|
1506
1510
|
exports.OPT_COMMAND_DISTRO_IDENTIFIER = 'Human-readable ID of the distribution';
|
|
@@ -1615,6 +1619,10 @@ exports.TXT_ARTIFACT_DOCKER_LOGIN_SUCCESS = 'Login succeeded';
|
|
|
1615
1619
|
exports.TXT_ARTIFACT_DOCKER_LOGIN_FAILED = 'Login failed. Check your token and try again later...';
|
|
1616
1620
|
exports.ERR_ARTIFACT_DOCKER_NOT_FOUND = 'Docker CLI not found. Install Docker and make sure docker is on PATH.';
|
|
1617
1621
|
exports.DESC_COMMAND_ARTIFACT_GET = 'Show artifact details';
|
|
1622
|
+
exports.DESC_COMMAND_ARTIFACT_UPDATE = "Update an artifact's notes";
|
|
1623
|
+
exports.TXT_ARTIFACT_UPDATED = 'Artifact updated';
|
|
1624
|
+
exports.DESC_COMMAND_ARTIFACT_VERSION_UPDATE = "Update an artifact version's notes";
|
|
1625
|
+
exports.TXT_ARTIFACT_VERSION_UPDATED = 'Artifact version updated';
|
|
1618
1626
|
exports.DESC_COMMAND_ARTIFACT_COMPOSER_PUBLISH = 'Publish the Composer package in a directory as a new artifact version';
|
|
1619
1627
|
exports.DESC_COMMAND_ARTIFACT_CREATE = 'Create an artifact';
|
|
1620
1628
|
exports.OPT_COMMAND_ARTIFACT_TYPE = 'Artifact type: "BUCKET" or "CONTAINER"';
|
|
@@ -2398,6 +2406,20 @@ exports.EXAMPLE_INTEGRATION_GET = [
|
|
|
2398
2406
|
command: 'bdy int get integration-identifier --scope WORKSPACE',
|
|
2399
2407
|
},
|
|
2400
2408
|
];
|
|
2409
|
+
exports.EXAMPLE_INTEGRATION_UPDATE = [
|
|
2410
|
+
{
|
|
2411
|
+
description: 'set the note read by AI agents:',
|
|
2412
|
+
command: 'bdy int update integration-identifier --agent-note "read-only token, use for reporting only"',
|
|
2413
|
+
},
|
|
2414
|
+
{
|
|
2415
|
+
description: 'set note of a project integration as json:',
|
|
2416
|
+
command: 'bdy int update integration-identifier -p project --note "owned by team web" --format json',
|
|
2417
|
+
},
|
|
2418
|
+
{
|
|
2419
|
+
description: 'clear the agent note:',
|
|
2420
|
+
command: 'bdy int update integration-identifier --agent-note ""',
|
|
2421
|
+
},
|
|
2422
|
+
];
|
|
2401
2423
|
exports.EXAMPLE_INTEGRATION_ADD = [
|
|
2402
2424
|
{
|
|
2403
2425
|
description: 'link to adding a GitHub integration to the workspace:',
|
|
@@ -3011,6 +3033,12 @@ exports.HELP_PIPELINE_RUN_STATUS = `${exports.HELP_PIPELINE_RUN_JSONL}${HELP_PIP
|
|
|
3011
3033
|
Exit codes describe the resulting pipeline run, including after start/retry/cancel/approve.
|
|
3012
3034
|
--no-follow hides intermediate changes but still waits.
|
|
3013
3035
|
|
|
3036
|
+
PARENT NOTES:
|
|
3037
|
+
When the pipeline has a note or an agent note, one record holding them comes right
|
|
3038
|
+
before the first run record, read once (not on every poll); a run that is not found
|
|
3039
|
+
gets its error record without it. --no-parent-notes leaves it out:
|
|
3040
|
+
{"type": "parent_notes", "parent_notes": [{"type": "pipeline", "identifier": "...", "note": "...", "agent_note": "..."}]}
|
|
3041
|
+
|
|
3014
3042
|
NEXT STEPS:
|
|
3015
3043
|
A run that ends FAILED or TERMINATED, waits for approval, or is still in progress
|
|
3016
3044
|
is followed by suggested commands: "Next:" lines in text, and in JSONL one record
|
|
@@ -3363,6 +3391,26 @@ exports.EXAMPLE_ARTIFACT_VERSION_GET = [
|
|
|
3363
3391
|
command: 'bdy art ver get artifact-identifier version -p project',
|
|
3364
3392
|
},
|
|
3365
3393
|
];
|
|
3394
|
+
exports.EXAMPLE_ARTIFACT_VERSION_UPDATE = [
|
|
3395
|
+
{
|
|
3396
|
+
description: 'set the note read by AI agents:',
|
|
3397
|
+
command: 'bdy art ver update artifact-identifier 1.0.0 --agent-note "broken migration, do not deploy"',
|
|
3398
|
+
},
|
|
3399
|
+
{
|
|
3400
|
+
description: 'clear the note:',
|
|
3401
|
+
command: 'bdy art ver update artifact-identifier 1.0.0 --note ""',
|
|
3402
|
+
},
|
|
3403
|
+
];
|
|
3404
|
+
exports.EXAMPLE_ARTIFACT_UPDATE = [
|
|
3405
|
+
{
|
|
3406
|
+
description: 'set the note read by AI agents:',
|
|
3407
|
+
command: 'bdy art update artifact-identifier --agent-note "built by the release pipeline only"',
|
|
3408
|
+
},
|
|
3409
|
+
{
|
|
3410
|
+
description: 'set note of a project artifact as json:',
|
|
3411
|
+
command: 'bdy art update artifact-identifier -p project --note "frontend bundle" --format json',
|
|
3412
|
+
},
|
|
3413
|
+
];
|
|
3366
3414
|
exports.EXAMPLE_ARTIFACT_VERSION_DELETE = [
|
|
3367
3415
|
{
|
|
3368
3416
|
description: 'delete artifact version:',
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PARENT_NOTE_TYPE = void 0;
|
|
4
|
+
// The resources whose notes describe what lives under them. A project and a
|
|
5
|
+
// workspace have no notes in the API, so a chain ends at a pipeline or an
|
|
6
|
+
// environment.
|
|
7
|
+
var PARENT_NOTE_TYPE;
|
|
8
|
+
(function (PARENT_NOTE_TYPE) {
|
|
9
|
+
PARENT_NOTE_TYPE["PIPELINE"] = "pipeline";
|
|
10
|
+
PARENT_NOTE_TYPE["ENVIRONMENT"] = "environment";
|
|
11
|
+
PARENT_NOTE_TYPE["SANDBOX"] = "sandbox";
|
|
12
|
+
PARENT_NOTE_TYPE["ARTIFACT"] = "artifact";
|
|
13
|
+
PARENT_NOTE_TYPE["DISTRIBUTION"] = "distribution";
|
|
14
|
+
})(PARENT_NOTE_TYPE || (exports.PARENT_NOTE_TYPE = PARENT_NOTE_TYPE = {}));
|