@calo-design/cli 0.8.0 → 0.9.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/bin/mirror-push.js +7 -4
- package/package.json +1 -1
package/bin/mirror-push.js
CHANGED
|
@@ -23,7 +23,7 @@ const { ensureLoggedIn, easToken, publishToMirror } = require("./login");
|
|
|
23
23
|
// ---- shared contract with the Mirror shell (calo-design-mirror) -------------
|
|
24
24
|
const SHARED_PROJECT_ID = "290a759f-427c-432e-9ab5-dab98310e66b";
|
|
25
25
|
const UPDATES_URL = `https://u.expo.dev/${SHARED_PROJECT_ID}`;
|
|
26
|
-
const RUNTIME_VERSION = "0.
|
|
26
|
+
const RUNTIME_VERSION = "0.2.0"; // must equal the shell binary's runtimeVersion (SDK 57 shell, version 0.2.0)
|
|
27
27
|
const LAUNCHER_CHANNEL = "mirror";
|
|
28
28
|
// Crash reporting: every pushed prototype gets a Sentry init + error boundary
|
|
29
29
|
// injected (see injectBackChrome). Same project as the shell's own init
|
|
@@ -307,10 +307,13 @@ function injectBackChrome({ stagedAppDir, mirrorChromeDir, libRel, slug, owner }
|
|
|
307
307
|
}
|
|
308
308
|
fs.writeFileSync(
|
|
309
309
|
layout,
|
|
310
|
-
|
|
310
|
+
`// MirrorChrome MUST be the first import: its module scope boots Sentry, so a
|
|
311
|
+
// crash while any later module evaluates (expo-router, the design system — the
|
|
312
|
+
// SDK-drift class) is captured instead of dying unreported before init.
|
|
313
|
+
import { MirrorChrome } from "${libRel}";
|
|
314
|
+
import { Stack } from "expo-router";
|
|
311
315
|
import { useFonts } from "expo-font";
|
|
312
316
|
import { caloFonts } from "@calo/design-system";
|
|
313
|
-
import { MirrorChrome } from "${libRel}";
|
|
314
317
|
|
|
315
318
|
export default function RootLayout() {
|
|
316
319
|
const [loaded] = useFonts(caloFonts);
|
|
@@ -370,7 +373,7 @@ try {
|
|
|
370
373
|
enableLogs: true,
|
|
371
374
|
enableAutoSessionTracking: false,
|
|
372
375
|
});
|
|
373
|
-
Sentry!.setTags({ surface: "prototype", prototype: PROTOTYPE, owner: OWNER });
|
|
376
|
+
Sentry!.setTags({ surface: "prototype", prototype: PROTOTYPE, owner: OWNER, runtime: ${JSON.stringify(RUNTIME_VERSION)} });
|
|
374
377
|
} catch {
|
|
375
378
|
Sentry = null; // reporting must never be the thing that crashes a prototype
|
|
376
379
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@calo-design/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
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"
|