@botbuddy/cli 1.118.1 → 1.118.2
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 +18 -0
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.118.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.118.2",
|
|
3
|
+
"source_commit": "384493f578caa6f632e6ef17e46cafb2fb2a919a",
|
|
4
|
+
"source_sha256": "498025ce1836c9c330731eab7c89dde5164781c0505dd2c188086169b6ad2f36",
|
|
5
5
|
"target": "darwin-arm64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "a9cf281e8c09b428e3b87fcfc5167a37e24d310f3c71c4ec15edf38ccc95c4a6"
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.118.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.118.2",
|
|
3
|
+
"source_commit": "384493f578caa6f632e6ef17e46cafb2fb2a919a",
|
|
4
|
+
"source_sha256": "498025ce1836c9c330731eab7c89dde5164781c0505dd2c188086169b6ad2f36",
|
|
5
5
|
"target": "linux-x64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "b51ba74276d127800e22d9bde60d0c595c522e527422a9b0d0e4a65de5f11707"
|
|
7
7
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema_version": 1,
|
|
3
|
-
"release_version": "1.118.
|
|
4
|
-
"source_commit": "
|
|
5
|
-
"source_sha256": "
|
|
3
|
+
"release_version": "1.118.2",
|
|
4
|
+
"source_commit": "384493f578caa6f632e6ef17e46cafb2fb2a919a",
|
|
5
|
+
"source_sha256": "498025ce1836c9c330731eab7c89dde5164781c0505dd2c188086169b6ad2f36",
|
|
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": "a9cf281e8c09b428e3b87fcfc5167a37e24d310f3c71c4ec15edf38ccc95c4a6",
|
|
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": "b51ba74276d127800e22d9bde60d0c595c522e527422a9b0d0e4a65de5f11707",
|
|
19
19
|
"mode": "0755"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/package.json
CHANGED
package/src/release-notes.mjs
CHANGED
|
@@ -230,6 +230,8 @@ export async function cmdReleaseNotes(args, {
|
|
|
230
230
|
ok: true, source_key: data.source_key, state: data.state, revision: data.revision, created: data.created === true, changed: data.changed === true, tenant: data.tenant ?? null,
|
|
231
231
|
...(data.customers && typeof data.customers === "object" ? { customers: data.customers } : {}),
|
|
232
232
|
...(isBinding(data.binding) ? { binding: data.binding } : {}),
|
|
233
|
+
// BOT-3172: what the tenant's auto-publish setting did (absent from an older server).
|
|
234
|
+
...(data.auto_publish && typeof data.auto_publish === "object" ? { auto_publish: data.auto_publish } : {}),
|
|
233
235
|
};
|
|
234
236
|
if (json) log(JSON.stringify(receipt));
|
|
235
237
|
else {
|
|
@@ -237,6 +239,8 @@ export async function cmdReleaseNotes(args, {
|
|
|
237
239
|
log(`Release note ${receipt.source_key} ${what}: state ${receipt.state}, revision ${receipt.revision}${receipt.tenant ? `, tenant ${receipt.tenant}` : ""}.`);
|
|
238
240
|
if (receipt.binding) log(termClean(describeBinding(receipt.binding)));
|
|
239
241
|
if (receipt.customers) log(describeCustomers(receipt.customers));
|
|
242
|
+
const autoLine = describeAutoPublish(receipt.auto_publish);
|
|
243
|
+
if (autoLine) log(autoLine);
|
|
240
244
|
}
|
|
241
245
|
return CALL_EXIT.OK;
|
|
242
246
|
}
|
|
@@ -806,3 +810,17 @@ async function cmdGet(argv, deps) {
|
|
|
806
810
|
log(termClean(lines.join("\n")));
|
|
807
811
|
return CALL_EXIT.OK;
|
|
808
812
|
}
|
|
813
|
+
|
|
814
|
+
// BOT-3172: one line for the tenant's auto-publish outcome; none when the
|
|
815
|
+
// setting is off or the server predates it.
|
|
816
|
+
export function describeAutoPublish(ap) {
|
|
817
|
+
if (!ap || typeof ap !== "object") return null;
|
|
818
|
+
if (ap.published === true) {
|
|
819
|
+
const rev = Number.isInteger(ap.external_revision) ? ` (external revision ${ap.external_revision})` : "";
|
|
820
|
+
return `Auto-publish: published to customers${rev}; it shows on the Changelog once its change is live in production.`;
|
|
821
|
+
}
|
|
822
|
+
if (typeof ap.error === "string") return `Auto-publish: failed (${termClean(ap.error)}); the note is stored and the next submit retries it.`;
|
|
823
|
+
if (ap.reason === "no_external_copy") return "Auto-publish: not published: the note has no external wording, so customers will not see it.";
|
|
824
|
+
if (ap.reason === "withdrawn") return "Auto-publish: not published: a change manager withdrew this note.";
|
|
825
|
+
return null;
|
|
826
|
+
}
|