tpmkms_4wp 9.2.0 → 9.3.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.
Files changed (48) hide show
  1. package/common/animals.instance.json +21 -8
  2. package/common/colors.instance.json +32 -18
  3. package/common/comparable.instance.json +3 -0
  4. package/common/comparable.js +2 -2
  5. package/common/crew.instance.json +4736 -964
  6. package/common/crew.test.json +1904 -0
  7. package/common/dates.instance.json +28657 -0
  8. package/common/dates.js +152 -0
  9. package/common/dates.test.json +10239 -0
  10. package/common/dialogues.js +28 -9
  11. package/common/dimension.instance.json +3 -2
  12. package/common/edible.instance.json +1335 -508
  13. package/common/emotions.instance.json +7 -14
  14. package/common/emotions.js +4 -5
  15. package/common/fastfood.instance.json +4090 -698
  16. package/common/fastfood.js +7 -0
  17. package/common/formulas.instance.json +1 -0
  18. package/common/gdefaults.js +14 -0
  19. package/common/helpers/concept.js +1 -0
  20. package/common/helpers/dialogues.js +3 -0
  21. package/common/helpers/properties.js +2 -27
  22. package/common/helpers.js +70 -1
  23. package/common/hierarchy.js +4 -3
  24. package/common/kirk.instance.json +156 -10
  25. package/common/length.instance.json +17 -2
  26. package/common/math.instance.json +1 -0
  27. package/common/menus.instance.json +7 -0
  28. package/common/menus.js +1 -0
  29. package/common/menus.test.json +2418 -1355
  30. package/common/meta.js +3 -3
  31. package/common/ordering.instance.json +4 -2
  32. package/common/people.instance.json +8 -0
  33. package/common/pipboy.instance.json +57 -12
  34. package/common/pokemon.instance.json +24 -3
  35. package/common/pressure.instance.json +6 -2
  36. package/common/properties.instance.json +1 -0
  37. package/common/properties.js +19 -5
  38. package/common/punctuation.js +3 -0
  39. package/common/reports.instance.json +24 -14
  40. package/common/reports.js +2 -2
  41. package/common/spock.instance.json +156 -10
  42. package/common/temperature.instance.json +6 -2
  43. package/common/ui.instance.json +1 -0
  44. package/common/weight.instance.json +12 -0
  45. package/common/wp.instance.json +393 -95
  46. package/common/wp.js +15 -0
  47. package/main.js +2 -0
  48. package/package.json +6 -2
@@ -83,8 +83,9 @@ const config = {
83
83
  name: 'properties',
84
84
  associations: {
85
85
  positive: [
86
- { context: [["the",0],["unknown",0],["propertyOf",0],["unknown",0],["is",0],["unknown",0]], choose: 4 },
86
+ { context: [["the",0],["unknown",0],["propertyOf",0],["unknown",0],["is",0],["unknown",0]], choose: { index: 4, increment: true } },
87
87
  { context: [["objectPrefix",0],["unknown",0]], choose: 1 },
88
+ { context: [["unknown",0],["propertyOf", 0],["unknown",0]], choose: 0 },
88
89
  ]
89
90
  },
90
91
 
@@ -431,9 +432,9 @@ const config = {
431
432
  {
432
433
  where: where(),
433
434
  match: ({context}) => context.marker == 'concept' && context.same,
434
- apply: ({context, km, config}) => {
435
- const api = km('properties').api
436
- api.makeObject({ config, context: context.same })
435
+ apply: (args) => {
436
+ const {context} = args
437
+ args.makeObject({ ...args, context: context.same })
437
438
  context.sameWasProcessed = true
438
439
  }
439
440
  },
@@ -542,10 +543,15 @@ const config = {
542
543
  where: where(),
543
544
  // match: ({context}) => context.marker == 'property' && context.same && context.object,
544
545
  match: ({context, hierarchy, uuid}) => hierarchy.isA(context.marker, 'property') && context.same && context.objects && !context[`disable${uuid}`],
545
- apply: async ({context, fragments, objects, km, api, log, s, uuid}) => {
546
+ apply: async (args) => {
547
+ const {context, fragments, objects, km, api, log, s, uuid} = args
548
+ // greg55
546
549
  const objectContext = context.object;
547
550
  const propertyContext = context;
548
551
  const objectId = context.object.value
552
+
553
+ api.makeObject({ ...args, context: objectContext })
554
+ api.makeObject({ ...args, context: propertyContext })
549
555
  // const propertyId = context.value
550
556
  /*
551
557
  const propertyId = context.marker
@@ -670,10 +676,18 @@ const config = {
670
676
  ]
671
677
  };
672
678
 
679
+ const initializer = ({objects, config, isModule}) => {
680
+ // debugger
681
+ config.addArgs(({config, api, isA}) => ({
682
+ makeObject: api('properties').makeObject,
683
+ }))
684
+ }
685
+
673
686
  knowledgeModule( {
674
687
  config,
675
688
  api: () => new API(),
676
689
  includes: [concept, meta, dialogues],
690
+ initializer,
677
691
 
678
692
  module,
679
693
  description: 'properties of objects',
@@ -16,18 +16,21 @@ const config = {
16
16
  {
17
17
  id: "comma",
18
18
  level: 0,
19
+ skipable: true,
19
20
  bridge: "{ ...before[0], decorators.after: operator, no_convolutions: true }", // css :after decoration
20
21
  words: [{ word: ",", value: ',', depth: '+' }],
21
22
  },
22
23
  {
23
24
  id: "leftParenthesis",
24
25
  level: 0,
26
+ skipable: true,
25
27
  bridge: "{ ...after[0], parenthesis: '(' }",
26
28
  words: [{ word: "(", value: '(', depth: '+' }],
27
29
  },
28
30
  {
29
31
  id: "rightParenthesis",
30
32
  level: 0,
33
+ skipable: true,
31
34
  bridge: "{ ...next(operator) }",
32
35
  words: [{ word: ")", value: ')', depth: '-' }],
33
36
  },