@coreframe/diagnostics 0.2.2 → 0.2.3
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
import{readFile as e}from"node:fs/promises";import{join as t}from"node:path";const n={id:`launch.readiness`,label:`Launch readiness`,collect:async e=>({launchReadiness:await r(e.projectRoot)})};async function r(e){let[n,r,s,c,l,u,d]=await Promise.all([o(t(e,`docs/production-checklist.md`)),o(t(e,`src/web/root.tsx`)),o(t(e,`src-
|
|
1
|
+
import{readFile as e}from"node:fs/promises";import{join as t}from"node:path";const n={id:`launch.readiness`,label:`Launch readiness`,collect:async e=>({launchReadiness:await r(e.projectRoot)})};async function r(e){let[n,r,s,c,l,u,d,f,p]=await Promise.all([o(t(e,`docs/production-checklist.md`)),o(t(e,`src/web/root.tsx`)),o(t(e,`src-flutter/pubspec.yaml`)),o(t(e,`src-flutter/android/app/build.gradle.kts`)),o(t(e,`src-flutter/linux/CMakeLists.txt`)),o(t(e,`wrangler.jsonc`)),o(t(e,`content/legal/en/privacy.md`)),o(t(e,`content/legal/en/terms.md`)),o(t(e,`docs/privacy-security-notes.md`))]),m=a(c,`applicationId`)??a(l,`APPLICATION_ID`);return{productionChecklistExists:n!==void 0,defaultIdentity:[i(r?.includes(`<title>Coreframe</title>`),`Web title`,`Coreframe`),i(s?.includes(`description: Private Coreframe Flutter shell`),`App name`,`Coreframe`),i(m===`com.coreframe.coreframe_flutter_shell`||m===`com.coreframe.app`||m===`com.example`||m?.startsWith(`com.example.`),`App identifier`,m),i(u?.includes(`"name": "api"`),`Worker name`,`api`)].filter(e=>e!==void 0),defaultLegalDocuments:[d?.includes(`Replace this template copy`)?`Privacy policy`:void 0,f?.includes(`Replace this template copy`)?`Terms of service`:void 0].filter(e=>e!==void 0),privacyReviewRecorded:p!==void 0&&!p.includes(`No final-pass review recorded yet`)&&/^- Date:\s*\S+/mu.test(p)}}function i(e,t,n){return e?{label:t,value:n}:void 0}function a(e,t){if(!e)return;let n=t.replace(/[.*+?^${}()|[\]\\]/gu,`\\$&`);return RegExp(`${n}\\s*[=:]\\s*["']([^"']+)["']`,`u`).exec(e)?.[1]??RegExp(`\\bset\\(\\s*${n}\\s+["']([^"']+)["']`,`u`).exec(e)?.[1]}async function o(t){try{return await e(t,`utf8`)}catch(e){if(s(e)&&e.code===`ENOENT`)return;throw e}}function s(e){return e instanceof Error&&`code`in e}export{n as default};
|