ultimate-brain 0.5.0 → 0.6.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.
@@ -809,18 +809,77 @@
809
809
  ]
810
810
  },
811
811
  "reference": {
812
- "description": "What the user kept from a document (decision 0045, spec/schema.md §4 reference).",
812
+ "description": "A Document (decision 0049; a reference note, decision 0045; spec/schema.md §4 reference): a source's whole text, a part the user asked to keep, or a page promoted from a decision or concept.",
813
813
  "allOf": [
814
814
  {
815
815
  "$ref": "#/$defs/knowledge"
816
816
  },
817
817
  {
818
- "required": [
819
- "sources"
820
- ],
821
818
  "properties": {
822
- "sources": {
823
- "minItems": 1
819
+ "origin": {
820
+ "enum": [
821
+ "whole",
822
+ "part",
823
+ "promoted"
824
+ ],
825
+ "description": "whole: a source's converted text, verbatim; part: what Only keep named; promoted: seeded from a decision or concept. Absent: part (written before 0.6.0)."
826
+ },
827
+ "promoted_from": {
828
+ "type": "string",
829
+ "pattern": "^(dec|con)-[0-9abcdefghjkmnpqrstvwxyz]{8}$"
830
+ }
831
+ }
832
+ },
833
+ {
834
+ "description": "promoted_from exactly with origin: promoted.",
835
+ "if": {
836
+ "required": [
837
+ "origin"
838
+ ],
839
+ "properties": {
840
+ "origin": {
841
+ "const": "promoted"
842
+ }
843
+ }
844
+ },
845
+ "then": {
846
+ "required": [
847
+ "promoted_from"
848
+ ]
849
+ },
850
+ "else": {
851
+ "not": {
852
+ "required": [
853
+ "promoted_from"
854
+ ]
855
+ },
856
+ "required": [
857
+ "sources"
858
+ ],
859
+ "properties": {
860
+ "sources": {
861
+ "minItems": 1
862
+ }
863
+ }
864
+ }
865
+ },
866
+ {
867
+ "description": "A whole Document holds one source's text.",
868
+ "if": {
869
+ "required": [
870
+ "origin"
871
+ ],
872
+ "properties": {
873
+ "origin": {
874
+ "const": "whole"
875
+ }
876
+ }
877
+ },
878
+ "then": {
879
+ "properties": {
880
+ "sources": {
881
+ "maxItems": 1
882
+ }
824
883
  }
825
884
  }
826
885
  }
@@ -884,9 +943,27 @@
884
943
  "replaces": {
885
944
  "$ref": "#/$defs/sourceId"
886
945
  },
946
+ "area": {
947
+ "$ref": "#/$defs/areaId",
948
+ "description": "The Area the user set on the Inbox row or meeting when it was taken in (decision 0050)."
949
+ },
950
+ "projects": {
951
+ "type": "array",
952
+ "items": {
953
+ "$ref": "#/$defs/projectId"
954
+ },
955
+ "description": "The Project(s) the user set on the Inbox row or meeting when it was taken in (decision 0050)."
956
+ },
887
957
  "keep": {
888
958
  "type": "string",
889
- "minLength": 1
959
+ "minLength": 1,
960
+ "deprecated": true,
961
+ "description": "Before 0.6.0: read as only_keep (decision 0049)."
962
+ },
963
+ "only_keep": {
964
+ "type": "string",
965
+ "minLength": 1,
966
+ "description": "What the user asked to keep as a Document, when only part (decision 0049). Absent: the whole input."
890
967
  },
891
968
  "summary": {
892
969
  "type": "string",
@@ -901,7 +978,9 @@
901
978
  "enum": [
902
979
  "digest",
903
980
  "full"
904
- ]
981
+ ],
982
+ "deprecated": true,
983
+ "description": "Retired in 0.6.0 (decision 0049): kept on sources written before; never written again."
905
984
  },
906
985
  "notion_parts": {
907
986
  "type": "array",
@@ -910,10 +989,14 @@
910
989
  "items": {
911
990
  "type": "string",
912
991
  "pattern": "^[1-9][0-9]*(-[1-9][0-9]*)?$"
913
- }
992
+ },
993
+ "deprecated": true,
994
+ "description": "Retired in 0.6.0 (decision 0049): kept on sources written before; never written again."
914
995
  },
915
996
  "notion_text_requested": {
916
- "$ref": "#/$defs/timestamp"
997
+ "$ref": "#/$defs/timestamp",
998
+ "deprecated": true,
999
+ "description": "Retired in 0.6.0 (decision 0049): kept on sources written before; never written again."
917
1000
  },
918
1001
  "notion": {
919
1002
  "$ref": "#/$defs/notionPageId"
@@ -1138,14 +1221,9 @@
1138
1221
  }
1139
1222
  },
1140
1223
  {
1141
- "description": "keep only on a source that is read for its content (0045).",
1224
+ "description": "keep and only_keep only on a source read for its content: not minutes or capture (0045, 0049). An attached file takes its row's Only keep.",
1142
1225
  "if": {
1143
1226
  "anyOf": [
1144
- {
1145
- "required": [
1146
- "attached_to"
1147
- ]
1148
- },
1149
1227
  {
1150
1228
  "required": [
1151
1229
  "kind"
@@ -1170,8 +1248,17 @@
1170
1248
  },
1171
1249
  "then": {
1172
1250
  "not": {
1173
- "required": [
1174
- "keep"
1251
+ "anyOf": [
1252
+ {
1253
+ "required": [
1254
+ "keep"
1255
+ ]
1256
+ },
1257
+ {
1258
+ "required": [
1259
+ "only_keep"
1260
+ ]
1261
+ }
1175
1262
  ]
1176
1263
  }
1177
1264
  }
@@ -3,6 +3,7 @@
3
3
  "owner": { "name": "Owner" },
4
4
  "budgets": { "ingest_max_notes": 8 },
5
5
  "settings": { "publish": "ask", "push": "auto" },
6
+ "modules": { "knowledge": true, "orgs": true, "documents": false, "reports": false, "tasks": false, "planning": false },
6
7
  "notion": {
7
8
  "databases": {
8
9
  "areas": "",
@@ -17,7 +18,7 @@
17
18
  "review": "",
18
19
  "inbox": "",
19
20
  "concepts": "",
20
- "references": ""
21
+ "documents": ""
21
22
  },
22
23
  "tasks": {
23
24
  "database": "",