@marktiderman/genesis-cli 1.17.3 → 1.19.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/README.md +162 -17
- package/dist/cli.js +2099 -747
- package/dist/cli.js.map +1 -1
- package/dist/{config-1jP8eCZy.d.ts → config-Dj_f9T7J.d.ts} +14 -1
- package/dist/doctor.d.ts +3 -3
- package/dist/doctor.js +944 -361
- package/dist/doctor.js.map +1 -1
- package/dist/expo.d.ts +2 -2
- package/dist/expo.js +18 -0
- package/dist/expo.js.map +1 -1
- package/dist/genesis-catalog.json +29 -16
- package/dist/index.d.ts +1 -1
- package/dist/index.js +944 -361
- package/dist/index.js.map +1 -1
- package/dist/starter/README.md +9 -0
- package/dist/starter/__tests__/components/gestures.test.tsx +64 -0
- package/dist/starter/__tests__/components/resolver.js +14 -2
- package/dist/starter/__tests__/components/setup.ts +5 -0
- package/dist/starter/__tests__/starter.test.ts +56 -22
- package/dist/starter/genesis.config.json +10 -0
- package/dist/starter/jest.config.js +3 -0
- package/dist/starter/package.json +2 -0
- package/dist/starter/src/lib/link-hosts.ts +12 -0
- package/dist/starter/src/lib/links.ts +2 -1
- package/dist/starter/supabase/functions/genesis-apple-revoke/apple.ts +7 -2
- package/dist/starter/supabase/migrations/20261024000700_genesis_support_findings.sql +339 -0
- package/dist/starter/supabase/tests/database/genesis_notifications.test.sql +5 -3
- package/dist/starter/supabase/tests/database/genesis_support.test.sql +1 -1
- package/dist/starter/supabase/tests/database/genesis_support_findings.test.sql +219 -0
- package/dist/templates/ci/genesis-upgrade.yml +1 -0
- package/dist/vite.js +945 -362
- package/dist/vite.js.map +1 -1
- package/package.json +3 -3
|
@@ -391,12 +391,25 @@ interface GenesisPrivacy {
|
|
|
391
391
|
/** `NSPrivacyTracking`. Default false; true needs `NSPrivacyTrackingDomains` in app.config. */
|
|
392
392
|
tracking?: boolean;
|
|
393
393
|
}
|
|
394
|
+
/**
|
|
395
|
+
* The top-level `supabase` setting: where this app's database files (migrations, pgTAP tests,
|
|
396
|
+
* Edge Functions, config.toml) live. Left out (or `true`), they are this app's own `supabase/`.
|
|
397
|
+
* `false`: this app has none. `{ app }`: another Genesis app's folder, relative to this one
|
|
398
|
+
* (`"../app"`), whose `supabase/` holds them; a phone app beside a web app shares its database.
|
|
399
|
+
* Either way `genesis add`, `migrate`, `upgrade` and `init` never write or plan Supabase files
|
|
400
|
+
* here, and the doctor's supabase pack doesn't run.
|
|
401
|
+
*/
|
|
402
|
+
type GenesisSupabase = false | {
|
|
403
|
+
app: string;
|
|
404
|
+
};
|
|
394
405
|
/** genesis.config.json, parsed, with its shared blocks validated. */
|
|
395
406
|
interface GenesisConfigFile {
|
|
396
407
|
/** The whole parsed file, for blocks other readers own (`doctor`, `features`). */
|
|
397
408
|
raw: Record<string, unknown>;
|
|
398
409
|
links?: GenesisLinks;
|
|
399
410
|
privacy?: GenesisPrivacy;
|
|
411
|
+
/** Set only when the database files live elsewhere (see {@link GenesisSupabase}). */
|
|
412
|
+
supabase?: GenesisSupabase;
|
|
400
413
|
}
|
|
401
414
|
interface LoadedConfig {
|
|
402
415
|
config: DoctorConfig;
|
|
@@ -423,4 +436,4 @@ declare function validateLinks(raw: unknown, source?: string): GenesisLinks;
|
|
|
423
436
|
/** Check the shape, so a typo fails loudly instead of silently disabling a check. */
|
|
424
437
|
declare function validateConfig(raw: unknown, source?: string): DoctorConfig;
|
|
425
438
|
|
|
426
|
-
export { type AllowEntry as A,
|
|
439
|
+
export { type AllowEntry as A, type SupabasePackConfig as B, type CompanionPackage as C, type DoctorConfig as D, loadConfig as E, type Finding as F, type GenesisDataUse as G, validateConfig as H, type Level as L, type NativePackConfig as N, PRIVACY_DATA_TYPES as P, type RuleSetting as R, type SourceFile as S, type GenesisPrivacy as a, type GenesisLinks as b, GenesisConfigError as c, PRIVACY_PURPOSES as d, validatePrivacy as e, DoctorConfigError as f, type DoctorContext as g, type DoctorPlugin as h, type DoctorResult as i, type GenesisConfigFile as j, type GenesisSupabase as k, type GenesisFacts as l, type PatternRule as m, type PreferRule as n, type DeclaringPackage as o, privacyDataType as p, type PackageDeclaration as q, readGenesisConfig as r, type ContractsConfig as s, type DoctorPack as t, type FindingInput as u, validateLinks as v, type PackageRuleSetting as w, type PackagesPackConfig as x, type PluginSpec as y, type PrimitiveEntry as z };
|
package/dist/doctor.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as DoctorConfig,
|
|
2
|
-
export { A as AllowEntry, C as CompanionPackage,
|
|
1
|
+
import { D as DoctorConfig, l as GenesisFacts, m as PatternRule, h as DoctorPlugin, S as SourceFile, g as DoctorContext, n as PreferRule, o as DeclaringPackage, q as PackageDeclaration, i as DoctorResult, F as Finding } from './config-Dj_f9T7J.js';
|
|
2
|
+
export { A as AllowEntry, C as CompanionPackage, s as ContractsConfig, f as DoctorConfigError, t as DoctorPack, u as FindingInput, c as GenesisConfigError, j as GenesisConfigFile, b as GenesisLinks, k as GenesisSupabase, L as Level, N as NativePackConfig, w as PackageRuleSetting, x as PackagesPackConfig, y as PluginSpec, z as PrimitiveEntry, R as RuleSetting, B as SupabasePackConfig, E as loadConfig, r as readGenesisConfig, H as validateConfig, v as validateLinks } from './config-Dj_f9T7J.js';
|
|
3
3
|
import '@marktiderman/genesis-features';
|
|
4
4
|
|
|
5
5
|
/** The installed folder of `name`, looking in node_modules from `from` upward (works with hoisting and pnpm). */
|
|
@@ -27,7 +27,7 @@ declare function parseRulesMarkdown(markdown: string): PatternRule[];
|
|
|
27
27
|
declare function defineDoctorPlugin(plugin: DoctorPlugin): DoctorPlugin;
|
|
28
28
|
|
|
29
29
|
/** Ids of the built-in rules, for `rules` overrides and `allow` entries. */
|
|
30
|
-
declare const BUILTIN_RULES: readonly ["local-primitives", "starter-leftover", "forbidden-import", "raw-tag", "palette-color", "arbitrary-color", "raw-color", "undefined-token", "shadowed-export", "version-skew", "duplicate-genesis-package", "peer-range-mismatch", "hand-rolled-sub-nav", "local-genesis-copy", "resource-workspace", "page-layout", "iso-date-slice", "resource-view-tree", "studio-server-auth-import", "removed-scope-name", "scope-practice-id", "deprecated-import", "beta-import", "native-raw-primitive", "native-literal-color", "native-custom-header", "native-screen-layout", "store-readiness", "eas-placeholder", "migration-grants", "migration-rls", "migration-definer-search-path", "migration-edited", "migration-testing-kit", "migration-view-rls", "package-app-import", "package-undeclared-dependency", "package-migration-test", "package-migration-number", "package-migration-edited", "package-unregistered", "package-unversioned-change", "package-export-missing", "package-block-invalid", "package-untagged-tests", "package-doctor-declaration", "overlay-unmarked", "overlay-invalid", "overlay-age", "overlay-version", "package-rules-invalid", "package-rule-override", "ratchet-skipped", "allow-grew", "rules-weakened", "agent-guide-stale", "contracts-stale"];
|
|
30
|
+
declare const BUILTIN_RULES: readonly ["local-primitives", "starter-leftover", "forbidden-import", "raw-tag", "palette-color", "arbitrary-color", "raw-color", "undefined-token", "shadowed-export", "version-skew", "duplicate-genesis-package", "peer-range-mismatch", "hand-rolled-sub-nav", "local-genesis-copy", "resource-workspace", "page-layout", "iso-date-slice", "resource-view-tree", "studio-server-auth-import", "removed-scope-name", "scope-practice-id", "deprecated-import", "beta-import", "native-raw-primitive", "native-literal-color", "native-custom-header", "native-screen-layout", "store-readiness", "eas-placeholder", "migration-grants", "migration-rls", "migration-definer-search-path", "migration-edited", "migration-testing-kit", "migration-view-rls", "package-app-import", "package-undeclared-dependency", "package-migration-test", "package-migration-number", "package-migration-edited", "package-unregistered", "package-unversioned-change", "package-export-missing", "package-block-invalid", "package-untagged-tests", "package-doctor-declaration", "overlay-unmarked", "overlay-invalid", "overlay-age", "overlay-version", "overlay-behind", "package-rules-invalid", "package-rule-override", "ratchet-skipped", "allow-grew", "rules-weakened", "agent-guide-stale", "contracts-stale", "lock-files", "database-elsewhere"];
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* Minimal globs for config: `*` matches within a folder, `**` across folders,
|