@botbuddy/cli 1.122.0 → 1.123.0
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/daemon/bin/darwin-arm64/botbuddy-daemon +0 -0
- package/daemon/bin/linux-x64/botbuddy-daemon +0 -0
- package/daemon-release/darwin-arm64.json +4 -4
- package/daemon-release/linux-x64.json +4 -4
- package/daemon-release/manifest.json +5 -5
- package/package.json +1 -1
- package/src/release-notes.mjs +29 -11
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.123.0",
|
|
3
|
+
"source_commit": "346055b0839c48c3d18c108872f9d60e40430d87",
|
|
4
|
+
"source_sha256": "8ac3254f2a56329cc1e9d72b6693c7e7f4ba13c6231faf86101035433611fe3f",
|
|
5
5
|
"target": "darwin-arm64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "e99a38d6de3c842c796fe4cf0fb3452c002238dcc38e5e0cfb870dfc1869c168"
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.123.0",
|
|
3
|
+
"source_commit": "346055b0839c48c3d18c108872f9d60e40430d87",
|
|
4
|
+
"source_sha256": "8ac3254f2a56329cc1e9d72b6693c7e7f4ba13c6231faf86101035433611fe3f",
|
|
5
5
|
"target": "linux-x64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "6fcb81b3436d79300cfdc5ad046b24599d011adae54b6fdb4a0f1b255504db97"
|
|
7
7
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema_version": 1,
|
|
3
|
-
"release_version": "1.
|
|
4
|
-
"source_commit": "
|
|
5
|
-
"source_sha256": "
|
|
3
|
+
"release_version": "1.123.0",
|
|
4
|
+
"source_commit": "346055b0839c48c3d18c108872f9d60e40430d87",
|
|
5
|
+
"source_sha256": "8ac3254f2a56329cc1e9d72b6693c7e7f4ba13c6231faf86101035433611fe3f",
|
|
6
6
|
"targets": {
|
|
7
7
|
"darwin-arm64": {
|
|
8
8
|
"goos": "darwin",
|
|
9
9
|
"goarch": "arm64",
|
|
10
10
|
"binary": "daemon/bin/darwin-arm64/botbuddy-daemon",
|
|
11
|
-
"sha256": "
|
|
11
|
+
"sha256": "e99a38d6de3c842c796fe4cf0fb3452c002238dcc38e5e0cfb870dfc1869c168",
|
|
12
12
|
"mode": "0755"
|
|
13
13
|
},
|
|
14
14
|
"linux-x64": {
|
|
15
15
|
"goos": "linux",
|
|
16
16
|
"goarch": "amd64",
|
|
17
17
|
"binary": "daemon/bin/linux-x64/botbuddy-daemon",
|
|
18
|
-
"sha256": "
|
|
18
|
+
"sha256": "6fcb81b3436d79300cfdc5ad046b24599d011adae54b6fdb4a0f1b255504db97",
|
|
19
19
|
"mode": "0755"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/package.json
CHANGED
package/src/release-notes.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import { cmdReleaseNotesKeys, cmdReleaseNotesOrigins, RELEASE_NOTES_KEYS_USAGE }
|
|
|
11
11
|
export const RELEASE_NOTES_USAGE = `Usage: bb release-notes submit <note.json> [--pack <pack.json>] [--json]
|
|
12
12
|
bb release-notes publish <source_key> --to internal|external [--tenant <slug>] [--json]
|
|
13
13
|
bb release-notes withdraw <source_key> [--tenant <slug>] [--json]
|
|
14
|
-
bb release-notes list [--tag <group>=<value>]... [--type <type>] [--state <state>] [--cursor <cursor>] [--json]
|
|
14
|
+
bb release-notes list [--tag <group>=<value>]... [--type <type>] [--audience external|internal] [--state <state>] [--cursor <cursor>] [--json]
|
|
15
15
|
bb release-notes get <source_key> [--json]
|
|
16
16
|
bb release-notes digest --release <version|run-id> --voice internal|external [--environment production|staging] [--format markdown|json|slack|discord|github-release] [--repository owner/name] [--json]
|
|
17
17
|
bb release-notes digest --candidate <sha> --repository owner/name --voice internal [--format …] [--json]
|
|
@@ -35,7 +35,10 @@ Submits one release note for your tenant. The file is a schema-1 payload:
|
|
|
35
35
|
"external_links": [ { "name": "Open the report", "url": "/reports?tab=x", "kind": "deep_link" } ],
|
|
36
36
|
"tags": { "component": ["Web app"], "module": ["Reports"] } }
|
|
37
37
|
|
|
38
|
-
type is one of Feature, Improvement, Fix, Security, Deprecation,
|
|
38
|
+
type is one of Feature, Improvement, Fix, Security, Deprecation, Chore.
|
|
39
|
+
Audience is not a type (BOT-3637): a note is External when it has external
|
|
40
|
+
wording, otherwise Internal. A legacy type Internal is stored as Chore and the
|
|
41
|
+
receipt prints "Translated type Internal → Chore".
|
|
39
42
|
external and both link lists are optional. A body uses bbrn-md-1: paragraphs,
|
|
40
43
|
"- " lists, **bold**, *italic* and \`code\`; a backslash escapes only \\ * \` and <.
|
|
41
44
|
No HTML and no links inside a body. A link url is https://… or an app path
|
|
@@ -52,10 +55,11 @@ note's "pack": the fields a release pack and testing tour are built from.
|
|
|
52
55
|
"try": "…", "look_for": "…",
|
|
53
56
|
"watch": "…", "role": ["Release manager"] } }
|
|
54
57
|
|
|
55
|
-
category is
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
category is a note type: Feature, Improvement, Fix, Security, Deprecation or
|
|
59
|
+
Chore (a legacy "Bug fix" is stored as Fix). A Chore needs only category and
|
|
60
|
+
after; every other category needs before, after, benefit, ui (bbrn-md-1, or
|
|
61
|
+
"none" when there is no UI) and the tour's find_it (an app path or https URL),
|
|
62
|
+
try and look_for. A missing field is refused with pack_field_missing naming
|
|
59
63
|
it. tour.where is optional: the screen's name in plain text (at most 120
|
|
60
64
|
characters), shown as the text of the find_it link. BotBuddy shows find_it as
|
|
61
65
|
a link: an https URL as-is, an app path in your own app (your one production
|
|
@@ -73,8 +77,9 @@ why. A refusal names its code
|
|
|
73
77
|
entitlement_missing, pack_field_missing) and stores nothing.
|
|
74
78
|
|
|
75
79
|
Reading. list shows your tenant's notes, newest change first, 50 a page:
|
|
76
|
-
source key, type, state, revision count,
|
|
77
|
-
|
|
80
|
+
source key, type, audience (External or Internal), state, revision count,
|
|
81
|
+
internal title and tags. --audience external|internal filters by audience; a
|
|
82
|
+
legacy --type Internal is read as --audience internal. Filters combine with AND; repeating --tag for one group matches any of its values;
|
|
78
83
|
--state withdrawn is the only way to list withdrawn notes. When there is more,
|
|
79
84
|
list prints the --cursor for the next page. get prints one note by its exact
|
|
80
85
|
source key: both voices, links and tags; read it before you resubmit, because
|
|
@@ -237,6 +242,8 @@ export async function cmdReleaseNotes(args, {
|
|
|
237
242
|
...(isBinding(data.binding) ? { binding: data.binding } : {}),
|
|
238
243
|
// BOT-3172: what the tenant's auto-publish setting did (absent from an older server).
|
|
239
244
|
...(data.auto_publish && typeof data.auto_publish === "object" ? { auto_publish: data.auto_publish } : {}),
|
|
245
|
+
// BOT-3637: legacy values the server accepted and stored as their current form.
|
|
246
|
+
...(Array.isArray(data.translated) && data.translated.length ? { translated: data.translated } : {}),
|
|
240
247
|
};
|
|
241
248
|
if (json) log(JSON.stringify(receipt));
|
|
242
249
|
else {
|
|
@@ -246,6 +253,7 @@ export async function cmdReleaseNotes(args, {
|
|
|
246
253
|
if (receipt.customers) log(describeCustomers(receipt.customers));
|
|
247
254
|
const autoLine = describeAutoPublish(receipt.auto_publish);
|
|
248
255
|
if (autoLine) log(autoLine);
|
|
256
|
+
for (const line of translatedLines(receipt.translated)) log(termClean(line));
|
|
249
257
|
}
|
|
250
258
|
return CALL_EXIT.OK;
|
|
251
259
|
}
|
|
@@ -702,6 +710,14 @@ function readUsage(errorLog) {
|
|
|
702
710
|
return 2;
|
|
703
711
|
}
|
|
704
712
|
|
|
713
|
+
/** BOT-3637: one line per legacy value the server translated. */
|
|
714
|
+
function translatedLines(translated) {
|
|
715
|
+
return Array.isArray(translated) ? translated.map((t) => `Translated ${t.field} ${t.from} → ${t.to}`) : [];
|
|
716
|
+
}
|
|
717
|
+
const AUDIENCE_COPY = { external: "External", internal: "Internal" };
|
|
718
|
+
const audienceWord = (a) => AUDIENCE_COPY[a] ?? null;
|
|
719
|
+
const typeAndAudience = (n) => [n.type, audienceWord(n.audience)].filter(Boolean).join(" · ");
|
|
720
|
+
|
|
705
721
|
/** list arguments → tool arguments, or null for a usage error. */
|
|
706
722
|
export function parseListArgs(argv) {
|
|
707
723
|
const out = {};
|
|
@@ -709,7 +725,7 @@ export function parseListArgs(argv) {
|
|
|
709
725
|
for (let i = 0; i < argv.length; i += 1) {
|
|
710
726
|
const a = argv[i];
|
|
711
727
|
if (a === "--json") { json = true; continue; }
|
|
712
|
-
if (!["--tag", "--type", "--state", "--cursor"].includes(a)) return null;
|
|
728
|
+
if (!["--tag", "--type", "--audience", "--state", "--cursor"].includes(a)) return null;
|
|
713
729
|
const v = argv[i + 1];
|
|
714
730
|
if (v === undefined || v === "" || v.startsWith("--")) return null;
|
|
715
731
|
i += 1;
|
|
@@ -725,6 +741,7 @@ export function parseListArgs(argv) {
|
|
|
725
741
|
} else {
|
|
726
742
|
const key = a.slice(2);
|
|
727
743
|
if (out[key] !== undefined) return null;
|
|
744
|
+
if (key === "audience" && !(v in AUDIENCE_COPY)) return null;
|
|
728
745
|
out[key] = v;
|
|
729
746
|
}
|
|
730
747
|
}
|
|
@@ -774,10 +791,11 @@ async function cmdList(argv, deps) {
|
|
|
774
791
|
return CALL_EXIT.OK;
|
|
775
792
|
}
|
|
776
793
|
for (const n of data.items) {
|
|
777
|
-
log(`${n.source_key} · ${n
|
|
794
|
+
log(`${n.source_key} · ${typeAndAudience(n)} · ${n.state} · ${revisionsWord(n.revisions)} · ${n.title}`);
|
|
778
795
|
const tags = tagLine(n.tags);
|
|
779
796
|
if (tags) log(` ${tags}`);
|
|
780
797
|
}
|
|
798
|
+
for (const line of translatedLines(data.translated)) log(line);
|
|
781
799
|
if (data.next_cursor) log(`More: bb release-notes list --cursor ${data.next_cursor}${argv.length ? " (repeat your filters)" : ""}`);
|
|
782
800
|
return CALL_EXIT.OK;
|
|
783
801
|
}
|
|
@@ -799,7 +817,7 @@ async function cmdGet(argv, deps) {
|
|
|
799
817
|
}
|
|
800
818
|
const text = data.text ?? {};
|
|
801
819
|
const links = (list) => (Array.isArray(list) ? list.map((l) => ` - ${l.name} · ${l.url}`) : []);
|
|
802
|
-
const lines = [`${n.source_key} · ${n
|
|
820
|
+
const lines = [`${n.source_key} · ${typeAndAudience(n)} · ${n.state} · ${revisionsWord(n.revisions)}`];
|
|
803
821
|
if (isBinding(data.binding)) lines.push(describeBinding(data.binding));
|
|
804
822
|
const tags = tagLine(n.tags);
|
|
805
823
|
if (tags) lines.push(`Tags: ${tags}`);
|