@marktiderman/genesis-cli 1.13.0 → 1.13.2
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/cli.js +3 -1
- package/dist/cli.js.map +1 -1
- package/dist/doctor.js +3 -1
- package/dist/doctor.js.map +1 -1
- package/dist/genesis-catalog.json +303 -15
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/starter/README.md +9 -1
- package/dist/starter/__tests__/components/product-demo.test.tsx +32 -0
- package/dist/starter/__tests__/starter.test.ts +33 -1
- package/dist/starter/metro.config.js +1 -1
- package/dist/starter/package.json +1 -0
- package/dist/starter/src/app/(app)/(home)/_layout.tsx +3 -0
- package/dist/starter/src/app/(app)/messages/_layout.tsx +3 -0
- package/dist/starter/src/app/(app)/notifications/_layout.tsx +3 -0
- package/dist/starter/src/app/(app)/settings/_layout.tsx +3 -0
- package/dist/starter/src/app/(app)/settings/index.tsx +9 -3
- package/dist/starter/src/app/(app)/settings/product.tsx +44 -0
- package/dist/starter/src/copy.ts +18 -0
- package/dist/starter/src/lib/define-starter.ts +7 -0
- package/dist/starter/src/lib/observability.ts +12 -1
- package/dist/starter/src/lib/product-demo.ts +26 -0
- package/dist/starter/starter.config.ts +2 -0
- package/dist/vite.js +3 -1
- package/dist/vite.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"packages": {
|
|
3
3
|
"@marktiderman/genesis-chat": {
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.3",
|
|
5
5
|
"blocks": {
|
|
6
6
|
"chat": {
|
|
7
7
|
"feature": {
|
|
@@ -52,8 +52,14 @@
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
|
+
"@marktiderman/genesis-collab": {
|
|
56
|
+
"version": "0.1.0"
|
|
57
|
+
},
|
|
58
|
+
"@marktiderman/genesis-connect": {
|
|
59
|
+
"version": "0.1.1"
|
|
60
|
+
},
|
|
55
61
|
"@marktiderman/genesis-core": {
|
|
56
|
-
"version": "1.
|
|
62
|
+
"version": "1.16.1"
|
|
57
63
|
},
|
|
58
64
|
"@marktiderman/genesis-switchboard": {
|
|
59
65
|
"version": "2.1.0"
|
|
@@ -65,10 +71,10 @@
|
|
|
65
71
|
"version": "0.2.0"
|
|
66
72
|
},
|
|
67
73
|
"@marktiderman/genesis-features": {
|
|
68
|
-
"version": "0.6.
|
|
74
|
+
"version": "0.6.1"
|
|
69
75
|
},
|
|
70
76
|
"@marktiderman/genesis-forms": {
|
|
71
|
-
"version": "0.
|
|
77
|
+
"version": "0.10.0"
|
|
72
78
|
},
|
|
73
79
|
"@marktiderman/genesis-forms-builder": {
|
|
74
80
|
"version": "0.6.4"
|
|
@@ -77,7 +83,7 @@
|
|
|
77
83
|
"version": "0.1.2"
|
|
78
84
|
},
|
|
79
85
|
"@marktiderman/genesis-forms-native": {
|
|
80
|
-
"version": "0.
|
|
86
|
+
"version": "0.2.0"
|
|
81
87
|
},
|
|
82
88
|
"@marktiderman/genesis-forms-react": {
|
|
83
89
|
"version": "0.3.1"
|
|
@@ -89,13 +95,13 @@
|
|
|
89
95
|
"version": "0.6.3"
|
|
90
96
|
},
|
|
91
97
|
"@marktiderman/genesis": {
|
|
92
|
-
"version": "0.9.
|
|
98
|
+
"version": "0.9.19"
|
|
93
99
|
},
|
|
94
100
|
"@marktiderman/genesis-cli": {
|
|
95
|
-
"version": "1.13.
|
|
101
|
+
"version": "1.13.2"
|
|
96
102
|
},
|
|
97
103
|
"@marktiderman/genesis-native": {
|
|
98
|
-
"version": "0.
|
|
104
|
+
"version": "0.5.0",
|
|
99
105
|
"blocks": {
|
|
100
106
|
"push": {
|
|
101
107
|
"feature": {
|
|
@@ -273,7 +279,7 @@
|
|
|
273
279
|
}
|
|
274
280
|
},
|
|
275
281
|
"@marktiderman/genesis-notifications": {
|
|
276
|
-
"version": "0.
|
|
282
|
+
"version": "0.3.0",
|
|
277
283
|
"blocks": {
|
|
278
284
|
"notifications": {
|
|
279
285
|
"feature": {
|
|
@@ -328,6 +334,9 @@
|
|
|
328
334
|
}
|
|
329
335
|
}
|
|
330
336
|
},
|
|
337
|
+
"@marktiderman/genesis-product": {
|
|
338
|
+
"version": "0.0.5"
|
|
339
|
+
},
|
|
331
340
|
"@marktiderman/genesis-sites": {
|
|
332
341
|
"version": "0.3.3",
|
|
333
342
|
"blocks": {
|
|
@@ -376,10 +385,10 @@
|
|
|
376
385
|
"version": "0.2.1"
|
|
377
386
|
},
|
|
378
387
|
"@marktiderman/genesis-studio-server": {
|
|
379
|
-
"version": "0.
|
|
388
|
+
"version": "0.4.0"
|
|
380
389
|
},
|
|
381
390
|
"@marktiderman/genesis-supabase": {
|
|
382
|
-
"version": "0.
|
|
391
|
+
"version": "0.9.0",
|
|
383
392
|
"blocks": {
|
|
384
393
|
"account": {
|
|
385
394
|
"feature": {
|
|
@@ -506,10 +515,18 @@
|
|
|
506
515
|
{
|
|
507
516
|
"file": "migrations/0014_genesis_feature_registry_hardening.sql",
|
|
508
517
|
"test": "migrations/tests/0014_genesis_feature_registry_hardening.test.sql"
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"file": "migrations/0016_genesis_viewer_people.sql",
|
|
521
|
+
"test": "migrations/tests/0016_genesis_viewer_people.test.sql"
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"file": "migrations/0017_genesis_person_entitlements.sql",
|
|
525
|
+
"test": "migrations/tests/0017_genesis_person_entitlements.test.sql"
|
|
509
526
|
}
|
|
510
527
|
],
|
|
511
528
|
"steps": [
|
|
512
|
-
"Sync the registry on every deploy with the service key: syncFeatureRegistry(admin, features.json, { version: BUILD_TIME } (the build time, from a production deployment only)). Grant paid features by writing feature_entitlements from your billing webhook."
|
|
529
|
+
"Sync the registry on every deploy with the service key: syncFeatureRegistry(admin, features.json, { version: BUILD_TIME } (the build time, from a production deployment only)). Grant paid features by writing feature_entitlements from your billing webhook (a tenant's) or calling grant_person_entitlement (one person's). For person grants, define private.genesis_viewer_people(viewer) as 0016 shows."
|
|
513
530
|
]
|
|
514
531
|
},
|
|
515
532
|
"owner-access": {
|
|
@@ -538,13 +555,51 @@
|
|
|
538
555
|
{
|
|
539
556
|
"file": "migrations/0009_genesis_owner_access.sql",
|
|
540
557
|
"test": "migrations/tests/0009_genesis_owner_access.test.sql"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"file": "migrations/0016_genesis_viewer_people.sql",
|
|
561
|
+
"test": "migrations/tests/0016_genesis_viewer_people.test.sql"
|
|
562
|
+
}
|
|
563
|
+
],
|
|
564
|
+
"install": [
|
|
565
|
+
"@supabase/supabase-js@^2.118.0"
|
|
566
|
+
],
|
|
567
|
+
"steps": [
|
|
568
|
+
"Define private.genesis_owner_can(tenant, viewer, person_id, team_id, organization_id, action) and private.genesis_readable_owners(viewer) in your own migration, as the header of 0009 shows, and private.genesis_viewer_people(viewer) as 0016 shows. Without them the wrappers answer no."
|
|
569
|
+
]
|
|
570
|
+
},
|
|
571
|
+
"web-handoff": {
|
|
572
|
+
"feature": {
|
|
573
|
+
"name": "Continue on the web",
|
|
574
|
+
"summary": "A native app opens a web page signed in as the same person: a single-use, 60-second link minted by the server for the person's own account, confirmed on the page unless that browser is already signed in as them.",
|
|
575
|
+
"keywords": [
|
|
576
|
+
"handoff",
|
|
577
|
+
"open on web",
|
|
578
|
+
"magic link",
|
|
579
|
+
"single sign-on",
|
|
580
|
+
"continue on web"
|
|
581
|
+
],
|
|
582
|
+
"audience": [
|
|
583
|
+
"person"
|
|
584
|
+
]
|
|
585
|
+
},
|
|
586
|
+
"platforms": [
|
|
587
|
+
"web",
|
|
588
|
+
"native"
|
|
589
|
+
],
|
|
590
|
+
"migrations": [
|
|
591
|
+
{
|
|
592
|
+
"file": "migrations/0015_genesis_web_handoff.sql",
|
|
593
|
+
"test": "migrations/tests/0015_genesis_web_handoff.test.sql"
|
|
541
594
|
}
|
|
542
595
|
],
|
|
543
596
|
"install": [
|
|
544
597
|
"@supabase/supabase-js@^2.118.0"
|
|
545
598
|
],
|
|
546
599
|
"steps": [
|
|
547
|
-
"
|
|
600
|
+
"Add two POST routes with createWebHandoff from @marktiderman/genesis-supabase/web-handoff/server (mint at /api/auth/handoff, redeem at /api/auth/redeem-handoff), using the service-role client on the server.",
|
|
601
|
+
"Add the /auth/handoff page: call takeWebHandoffFragment before analytics or error reporting load, then completeWebHandoff; send Referrer-Policy: no-referrer and frame-ancestors 'none' for it.",
|
|
602
|
+
"In the native app, call openOnWeb from @marktiderman/genesis-native/web-handoff with the mint route, the session's access token and expo-web-browser."
|
|
548
603
|
]
|
|
549
604
|
}
|
|
550
605
|
}
|
|
@@ -740,10 +795,243 @@
|
|
|
740
795
|
}
|
|
741
796
|
},
|
|
742
797
|
"@marktiderman/genesis-ui": {
|
|
743
|
-
"version": "2.
|
|
798
|
+
"version": "2.20.0"
|
|
744
799
|
},
|
|
745
800
|
"@marktiderman/genesis-ui-native": {
|
|
746
|
-
"version": "2.
|
|
801
|
+
"version": "2.8.1"
|
|
802
|
+
},
|
|
803
|
+
"@marktiderman/genesis-work": {
|
|
804
|
+
"version": "0.3.0",
|
|
805
|
+
"blocks": {
|
|
806
|
+
"pursuits": {
|
|
807
|
+
"feature": {
|
|
808
|
+
"name": "Pursuits",
|
|
809
|
+
"summary": "Goals and projects (one table, either or both) with tasks, issues and milestones, owned by a person, a team or the tenant; who reads and writes is the app's hook.",
|
|
810
|
+
"keywords": [
|
|
811
|
+
"goals",
|
|
812
|
+
"projects",
|
|
813
|
+
"tasks",
|
|
814
|
+
"issues",
|
|
815
|
+
"milestones",
|
|
816
|
+
"quarterly priorities"
|
|
817
|
+
],
|
|
818
|
+
"audience": [
|
|
819
|
+
"person",
|
|
820
|
+
"developer"
|
|
821
|
+
]
|
|
822
|
+
},
|
|
823
|
+
"platforms": [
|
|
824
|
+
"web",
|
|
825
|
+
"native"
|
|
826
|
+
],
|
|
827
|
+
"requires": [
|
|
828
|
+
"owner-access"
|
|
829
|
+
],
|
|
830
|
+
"migrations": [
|
|
831
|
+
{
|
|
832
|
+
"file": "migrations/0001_genesis_work_pursuits.sql",
|
|
833
|
+
"test": "migrations/tests/0001_genesis_work_pursuits.test.sql"
|
|
834
|
+
}
|
|
835
|
+
],
|
|
836
|
+
"install": [
|
|
837
|
+
"@supabase/supabase-js@^2.118.0"
|
|
838
|
+
],
|
|
839
|
+
"steps": [
|
|
840
|
+
"Define private.genesis_readable_owners(viewer) and private.genesis_owner_can(tenant, viewer, person_id, team_id, organization_id, action) in a migration, as the header of 0009 shows. Without them nobody signed in reads or writes.",
|
|
841
|
+
"Add genesis_work to your API's exposed schemas (supabase/config.toml [api] schemas)."
|
|
842
|
+
]
|
|
843
|
+
},
|
|
844
|
+
"metrics": {
|
|
845
|
+
"feature": {
|
|
846
|
+
"name": "Metrics",
|
|
847
|
+
"summary": "Numbers tracked over time (a scorecard, a habit, a profit margin), one value per period, goals that change over time, owned by a person, a team or the tenant.",
|
|
848
|
+
"keywords": [
|
|
849
|
+
"metrics",
|
|
850
|
+
"kpi",
|
|
851
|
+
"scorecard",
|
|
852
|
+
"habits",
|
|
853
|
+
"trend"
|
|
854
|
+
],
|
|
855
|
+
"audience": [
|
|
856
|
+
"person",
|
|
857
|
+
"developer"
|
|
858
|
+
]
|
|
859
|
+
},
|
|
860
|
+
"platforms": [
|
|
861
|
+
"web",
|
|
862
|
+
"native"
|
|
863
|
+
],
|
|
864
|
+
"requires": [
|
|
865
|
+
"pursuits"
|
|
866
|
+
],
|
|
867
|
+
"migrations": [
|
|
868
|
+
{
|
|
869
|
+
"file": "migrations/0002_genesis_work_metrics.sql",
|
|
870
|
+
"test": "migrations/tests/0002_genesis_work_metrics.test.sql"
|
|
871
|
+
}
|
|
872
|
+
],
|
|
873
|
+
"install": [
|
|
874
|
+
"@supabase/supabase-js@^2.118.0"
|
|
875
|
+
],
|
|
876
|
+
"steps": [
|
|
877
|
+
"Uses the owner-access block's hooks: private.genesis_readable_owners(viewer) and private.genesis_owner_can(...). Without them nobody signed in reads or writes.",
|
|
878
|
+
"Add genesis_work to your API's exposed schemas (supabase/config.toml [api] schemas)."
|
|
879
|
+
]
|
|
880
|
+
},
|
|
881
|
+
"status-updates": {
|
|
882
|
+
"feature": {
|
|
883
|
+
"name": "Status updates",
|
|
884
|
+
"summary": "Dated updates (health and a note) on goals, projects, tasks, issues and metrics, and requests to a person for an update by a due time, answered by posting one.",
|
|
885
|
+
"keywords": [
|
|
886
|
+
"status update",
|
|
887
|
+
"check-in",
|
|
888
|
+
"update request",
|
|
889
|
+
"health",
|
|
890
|
+
"overdue"
|
|
891
|
+
],
|
|
892
|
+
"audience": [
|
|
893
|
+
"person",
|
|
894
|
+
"developer"
|
|
895
|
+
]
|
|
896
|
+
},
|
|
897
|
+
"platforms": [
|
|
898
|
+
"web",
|
|
899
|
+
"native"
|
|
900
|
+
],
|
|
901
|
+
"requires": [
|
|
902
|
+
"pursuits",
|
|
903
|
+
"metrics"
|
|
904
|
+
],
|
|
905
|
+
"migrations": [
|
|
906
|
+
{
|
|
907
|
+
"file": "migrations/0003_genesis_work_updates.sql",
|
|
908
|
+
"test": "migrations/tests/0003_genesis_work_updates.test.sql"
|
|
909
|
+
}
|
|
910
|
+
],
|
|
911
|
+
"install": [
|
|
912
|
+
"@supabase/supabase-js@^2.118.0"
|
|
913
|
+
],
|
|
914
|
+
"steps": [
|
|
915
|
+
"Needs the pursuits and metrics blocks and their hooks. For reminders, schedule a job (the jobs block) that reads update_requests_due and sends one notification per request.",
|
|
916
|
+
"Add genesis_work to your API's exposed schemas (supabase/config.toml [api] schemas)."
|
|
917
|
+
]
|
|
918
|
+
},
|
|
919
|
+
"sessions": {
|
|
920
|
+
"feature": {
|
|
921
|
+
"name": "Sessions",
|
|
922
|
+
"summary": "Sessions of any kind (a meeting, workshop, presentation, coaching call, one-on-one, class or planning day): types with agendas, a schedule and calendar event, the agenda copied at start, the live step, notes and recordings; attendees with presence and a 1-to-10 rating; links to pre-work and collaboration spaces.",
|
|
923
|
+
"keywords": [
|
|
924
|
+
"sessions",
|
|
925
|
+
"meetings",
|
|
926
|
+
"workshops",
|
|
927
|
+
"coaching calls",
|
|
928
|
+
"agenda",
|
|
929
|
+
"rating",
|
|
930
|
+
"attendance"
|
|
931
|
+
],
|
|
932
|
+
"audience": [
|
|
933
|
+
"person",
|
|
934
|
+
"developer"
|
|
935
|
+
]
|
|
936
|
+
},
|
|
937
|
+
"platforms": [
|
|
938
|
+
"web",
|
|
939
|
+
"native"
|
|
940
|
+
],
|
|
941
|
+
"requires": [
|
|
942
|
+
"pursuits"
|
|
943
|
+
],
|
|
944
|
+
"migrations": [
|
|
945
|
+
{
|
|
946
|
+
"file": "migrations/0004_genesis_work_sessions.sql",
|
|
947
|
+
"test": "migrations/tests/0004_genesis_work_sessions.test.sql"
|
|
948
|
+
}
|
|
949
|
+
],
|
|
950
|
+
"install": [
|
|
951
|
+
"@supabase/supabase-js@^2.118.0"
|
|
952
|
+
],
|
|
953
|
+
"steps": [
|
|
954
|
+
"Uses the owner-access block (genesis-supabase) and its app hooks. To share pre-work or a live worksheet with attendees, register private.genesis_session_members(session) as a collaboration audience.",
|
|
955
|
+
"Add genesis_work to your API's exposed schemas (supabase/config.toml [api] schemas)."
|
|
956
|
+
]
|
|
957
|
+
},
|
|
958
|
+
"custom-fields": {
|
|
959
|
+
"feature": {
|
|
960
|
+
"name": "Custom fields",
|
|
961
|
+
"summary": "A tenant's own fields on goals, projects, tasks, issues, metrics and sessions, with no code or migration: genesis-forms field types, values in a custom jsonb checked by shape, app and content-pack fields that only server code writes.",
|
|
962
|
+
"keywords": [
|
|
963
|
+
"custom fields",
|
|
964
|
+
"extend",
|
|
965
|
+
"metafields",
|
|
966
|
+
"properties"
|
|
967
|
+
],
|
|
968
|
+
"audience": [
|
|
969
|
+
"admin",
|
|
970
|
+
"developer"
|
|
971
|
+
]
|
|
972
|
+
},
|
|
973
|
+
"platforms": [
|
|
974
|
+
"web",
|
|
975
|
+
"native"
|
|
976
|
+
],
|
|
977
|
+
"requires": [
|
|
978
|
+
"pursuits",
|
|
979
|
+
"metrics",
|
|
980
|
+
"sessions"
|
|
981
|
+
],
|
|
982
|
+
"migrations": [
|
|
983
|
+
{
|
|
984
|
+
"file": "migrations/0005_genesis_work_fields.sql",
|
|
985
|
+
"test": "migrations/tests/0005_genesis_work_fields.test.sql"
|
|
986
|
+
}
|
|
987
|
+
],
|
|
988
|
+
"install": [
|
|
989
|
+
"@supabase/supabase-js@^2.118.0"
|
|
990
|
+
],
|
|
991
|
+
"steps": [
|
|
992
|
+
"Validate custom values on the server with the genesis-forms engine before writing; the database checks only their shape and that a field exists."
|
|
993
|
+
]
|
|
994
|
+
},
|
|
995
|
+
"content-pack-install": {
|
|
996
|
+
"feature": {
|
|
997
|
+
"name": "Content pack install",
|
|
998
|
+
"summary": "Install a content pack (session types, metric templates, custom fields, labels) into a tenant's own editable rows; updates are additive and keep what the tenant changed; uninstalling removes only untouched, unused items.",
|
|
999
|
+
"keywords": [
|
|
1000
|
+
"content packs",
|
|
1001
|
+
"templates",
|
|
1002
|
+
"starter content",
|
|
1003
|
+
"install",
|
|
1004
|
+
"taxonomy"
|
|
1005
|
+
],
|
|
1006
|
+
"audience": [
|
|
1007
|
+
"admin",
|
|
1008
|
+
"developer"
|
|
1009
|
+
]
|
|
1010
|
+
},
|
|
1011
|
+
"platforms": [
|
|
1012
|
+
"web",
|
|
1013
|
+
"native",
|
|
1014
|
+
"server"
|
|
1015
|
+
],
|
|
1016
|
+
"requires": [
|
|
1017
|
+
"sessions",
|
|
1018
|
+
"metrics",
|
|
1019
|
+
"custom-fields"
|
|
1020
|
+
],
|
|
1021
|
+
"migrations": [
|
|
1022
|
+
{
|
|
1023
|
+
"file": "migrations/0006_genesis_work_packs.sql",
|
|
1024
|
+
"test": "migrations/tests/0006_genesis_work_packs.test.sql"
|
|
1025
|
+
}
|
|
1026
|
+
],
|
|
1027
|
+
"install": [
|
|
1028
|
+
"@supabase/supabase-js@^2.118.0"
|
|
1029
|
+
],
|
|
1030
|
+
"steps": [
|
|
1031
|
+
"Install packs from server code: check that a tenant admin asked, then call genesis_work.install_content_pack(tenant, manifest, person) with the service role. Forms and roadmap templates in a manifest are the app's to install."
|
|
1032
|
+
]
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
747
1035
|
}
|
|
748
1036
|
}
|
|
749
1037
|
}
|
package/dist/index.js
CHANGED
|
@@ -3589,7 +3589,9 @@ function checkChanges(ctx, pkg, json, base, mergeBase) {
|
|
|
3589
3589
|
}
|
|
3590
3590
|
const raw = json;
|
|
3591
3591
|
if (jsonBefore && (JSON.stringify(jsonBefore.genesis) !== JSON.stringify(raw.genesis) || JSON.stringify(jsonBefore.exports) !== JSON.stringify(raw.exports))) {
|
|
3592
|
-
const
|
|
3592
|
+
const appInRepo = path14.relative(top, realpathSync(ctx.root)).split(path14.sep).join("/");
|
|
3593
|
+
const candidates = [.../* @__PURE__ */ new Set(["features.ts", "src/features.ts", ...appInRepo ? [`${appInRepo}/features.ts`, `${appInRepo}/src/features.ts`] : []])];
|
|
3594
|
+
const registry = (git(top, ["diff", "--name-only", mergeBase, "--", ...candidates]) ?? "").trim();
|
|
3593
3595
|
if (!registry) ctx.report({ rule: "package-unversioned-change", level: "warn", file: `${pkg.rel}/package.json`, message: `${pkg.name}'s blocks or exports changed but features.ts didn't; update the features they belong to` });
|
|
3594
3596
|
}
|
|
3595
3597
|
if (bumped && !named && before !== null) {
|