@coreframe/diagnostics 0.2.1 → 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-tauri/tauri.conf.json`)),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`))]),f=a(s,`identifier`);return{productionChecklistExists:n!==void 0,defaultIdentity:[i(r?.includes(`<title>Coreframe</title>`),`Web title`,`Coreframe`),i(s?.includes(`"productName": "Coreframe"`),`App name`,`Coreframe`),i(f===`com.coreframe.app`||f===`com.example`||f?.startsWith(`com.example.`),`App identifier`,f),i(c?.includes(`"name": "api"`),`Worker name`,`api`)].filter(e=>e!==void 0),defaultLegalDocuments:[l?.includes(`Replace this template copy`)?`Privacy policy`:void 0,u?.includes(`Replace this template copy`)?`Terms of service`:void 0].filter(e=>e!==void 0),privacyReviewRecorded:d!==void 0&&!d.includes(`No final-pass review recorded yet`)&&/^- Date:\s*\S+/mu.test(d)}}function i(e,t,n){return e?{label:t,value:n}:void 0}function a(e,t){if(e)return RegExp(`"${t}"\\s*:\\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};
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};
@@ -1 +1 @@
1
- import{agentPrompt as e}from"./actions.js";const t={id:`launch.scope`,evaluate:t=>t.facts.launchReadiness?.productionChecklistExists?[]:[{id:`launch.scope.undecided`,title:`First-release scope has not been decided`,summary:`The template wires several optional production services, but the project does not record which ones are required, deferred, or removed for the first release.`,severity:`warning`,status:`needs_action`,area:`launch`,actions:[e(`Decide first-release services`,`Inspect docs/stack-setup.md and the integrations wired into this Coreframe project. Ask me which capabilities are required for the first production release, which are deferred, and whether any additional services are needed. Then create docs/production-checklist.md for the confirmed scope without creating accounts or production credentials.`)]}]};export{t as default};
1
+ import{agentPrompt as e}from"./actions.js";const t={id:`launch.scope`,evaluate:t=>t.facts.launchReadiness?.productionChecklistExists?[]:[{id:`launch.scope.undecided`,title:`First-release scope has not been decided`,summary:`The template wires several optional production services, but the project does not record which ones are required, deferred, or removed for the first release.`,severity:`warning`,status:`needs_action`,area:`launch`,actions:[e(`Decide first-release services`,`Inspect .agents/references/stack-setup.md and the integrations wired into this Coreframe project. Ask me which capabilities are required for the first production release, which are deferred, and whether any additional services are needed. Then create docs/production-checklist.md for the confirmed scope without creating accounts or production credentials.`)]}]};export{t as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coreframe/diagnostics",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Production-readiness diagnostics engine for Coreframe projects",
5
5
  "repository": {
6
6
  "type": "git",