@tokenoftrust/cli 1.4.0-rc.16 → 1.4.0-rc.17
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/package.json +1 -1
- package/src/commands/submit.mjs +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tokenoftrust/cli",
|
|
3
|
-
"version": "1.4.0-rc.
|
|
3
|
+
"version": "1.4.0-rc.17",
|
|
4
4
|
"description": "Token of Trust developer CLI — clone a tenant store, run it locally with save→reload, and submit it for preview. Installs the `tot` command.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Token of Trust",
|
package/src/commands/submit.mjs
CHANGED
|
@@ -756,12 +756,15 @@ export async function submitCandidate(client, { repo, changeId, changeSummary, p
|
|
|
756
756
|
}
|
|
757
757
|
|
|
758
758
|
/** Print the candidate_open result: the PR the approver reviews, or the MCP's own
|
|
759
|
-
* refusal message when it couldn't open/update one. `quiet` (--json) suppresses it.
|
|
759
|
+
* refusal message when it couldn't open/update one. `quiet` (--json) suppresses it.
|
|
760
|
+
* Deliberately does NOT print `result.url` — that's the INTERNAL forge (Gitea) PR
|
|
761
|
+
* link, plumbing a developer never needs to see (DZ, 2026-08-15); the product
|
|
762
|
+
* surface is the shareable /preview/<tenant>/pr/<N> URL printed right after
|
|
763
|
+
* (shareablePrUrl). The forge URL still rides the --json payload for tooling. */
|
|
760
764
|
function reportCandidate(result, changeId, { quiet = false } = {}) {
|
|
761
765
|
if (quiet) return;
|
|
762
766
|
if (result && typeof result.prNumber === "number") {
|
|
763
767
|
console.log(`\n ✓ candidate ${result.changeId || changeId} — PR #${result.prNumber} (${result.state || "open"})`);
|
|
764
|
-
if (result.url) console.log(` ${result.url}`);
|
|
765
768
|
return;
|
|
766
769
|
}
|
|
767
770
|
const msg = result?.message || (result?.raw && String(result.raw)) || JSON.stringify(result ?? null);
|