@notis_ai/cli 0.2.20 → 0.2.22
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/dist/sdk/src/ui/engine/core.ts +9 -3
- package/dist/space-harness/host.js +61 -61
- package/dist/space-sdk/dist/{chunk-ZSN57ATH.js → chunk-SVZATGZB.js} +1 -1
- package/dist/space-sdk/dist/index.js +1 -1
- package/dist/space-sdk/dist/ui.js +3 -3
- package/dist/space-sdk/src/tailwind-candidates.d.ts +5 -0
- package/dist/space-sdk/src/ui/engine/core.d.ts +1 -0
- package/dist/space-sdk/src/ui/present/screens.d.ts +2 -2
- package/dist/view-renderer/dist/host.js +111 -111
- package/package.json +3 -3
|
@@ -46,9 +46,15 @@ export function detectLocale(): Locale {
|
|
|
46
46
|
return /^fr\b/i.test(lang) ? 'fr' : 'en';
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
// Bundlers replace only the literal `process.env.NODE_ENV`, so a production
|
|
50
|
+
// build drops a clashing shortcut instead of throwing and blanking the view.
|
|
51
|
+
// Where nothing replaces it and no `process` exists, stay strict.
|
|
52
|
+
export function defaultStrict(): boolean {
|
|
53
|
+
try {
|
|
54
|
+
return process.env.NODE_ENV !== 'production';
|
|
55
|
+
} catch {
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
52
58
|
}
|
|
53
59
|
|
|
54
60
|
function consume(event: KeyboardEvent, immediate = false): void {
|