@calo-design/cli 0.12.0 → 0.12.1
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/bin/mirror-push.js +8 -2
- package/package.json +1 -1
package/bin/mirror-push.js
CHANGED
|
@@ -106,7 +106,12 @@ function extractEasGroup(captured) {
|
|
|
106
106
|
// party — CLI, broker page, Mirror launcher — can derive it, but it's also stored in
|
|
107
107
|
// artifact.easBranch so the convention can evolve without re-deriving. EAS channel
|
|
108
108
|
// names share the slug charset; slug ≤63 + "--g" + 8 = ≤74, under EAS's limits.
|
|
109
|
-
|
|
109
|
+
// A hoisted `function` on purpose: it's called from cmdPush, which runs ABOVE this
|
|
110
|
+
// definition — a `const` here sat in the TDZ and silently killed the pin (the
|
|
111
|
+
// best-effort catch ate the ReferenceError; caught only by live-push verification).
|
|
112
|
+
function versionBranchOf(slug, group) {
|
|
113
|
+
return `${slug}--g${String(group).slice(0, 8).toLowerCase()}`;
|
|
114
|
+
}
|
|
110
115
|
|
|
111
116
|
function runtimeDir() {
|
|
112
117
|
const home = process.env.DESIGNCHEF_HOME || path.join(os.homedir(), ".designchef");
|
|
@@ -890,7 +895,8 @@ async function cmdPush(args) {
|
|
|
890
895
|
}
|
|
891
896
|
await require("./checkpoints").autoCheckpoint({
|
|
892
897
|
root: process.cwd(),
|
|
893
|
-
|
|
898
|
+
// NB: mirror-push's flag() takes the full "--name" (unlike share.js's bare-name helper).
|
|
899
|
+
note: flag(args, "--note") || `pushed to the Mirror (${slug})`,
|
|
894
900
|
publishedUrl: `designchef://open/${slug}`,
|
|
895
901
|
artifact: {
|
|
896
902
|
kind: "mirror",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@calo-design/cli",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "One-line setup for Calo design tooling: logs in with your Calo email and installs the calo-design skill + design-system packages. No GitHub account needed.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"calo-design": "bin/cli.js"
|