tpmkms 8.0.0-beta.50 → 8.0.0-beta.52

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.
@@ -254,12 +254,10 @@ class API {
254
254
  notes: `generator for who/what is X owned by`,
255
255
  // match: ({context, hierarchy}) => hierarchy.isA(context.marker, 'is') && context.one && context.one.marker == 'ownee' && context.one.constraints && context.one.constraints[0] && context.one.constraints[0].constraint.marker == 'owned' && context.one.constraints[0].constraint.owner.implicit,
256
256
  match: ({context, hierarchy}) => hierarchy.isA(context.marker, 'is') && context.one && context.one.marker == after[0].tag && context.one.constraints && context.one.constraints[0] && context.one.constraints[0].constraint.marker == edAble.operator && context.one.constraints[0].constraint[before[0].tag].implicit,
257
- apply: async ({context, g, gs, callId}) => {
257
+ apply: async ({context, fragments, g, gs, callId}) => {
258
258
  const isToFromM = [{"from":["one"],"to":["two"]},{"from":["two"],"to":["one"]}]
259
- const fromF = config.fragment(whoIsWhatVerbedBy).contexts()[0]
260
- // const fromF = config.fragment[before[0].tag]"ownerVar is owneeVar owned by").contexts()[0]
261
- // const toF = config.fragment("owneeVar is owned by ownerVar")
262
- const toF = config.fragment(thisIsVerbedByThat)
259
+ const fromF = fragments(whoIsWhatVerbedBy).contexts()[0]
260
+ const toF = fragments(thisIsVerbedByThat)
263
261
  const to = toF.contexts()[0]
264
262
  const tm = translationMapping(fromF, to)
265
263
  /*
@@ -489,7 +489,7 @@ let config = {
489
489
  where: where(),
490
490
  // match: ({context}) => context.marker == 'property' && context.same && context.object,
491
491
  match: ({context, hierarchy, uuid}) => hierarchy.isA(context.marker, 'property') && context.same && context.objects && !context[`disable${uuid}`],
492
- apply: async ({context, objects, km, api, log, s, uuid}) => {
492
+ apply: async ({context, fragments, objects, km, api, log, s, uuid}) => {
493
493
  const objectContext = context.object;
494
494
  const propertyContext = context;
495
495
  const objectId = context.object.value
@@ -516,7 +516,7 @@ let config = {
516
516
  } catch (e) {
517
517
  log(`Error processing set property of an object: ${e}`)
518
518
  const config = km('properties')
519
- const fragment = config.fragment("the property1 of object1 is value1")
519
+ const fragment = fragments("the property1 of object1 is value1")
520
520
  const value = await api.getProperty(objectId, propertyId)
521
521
  if (value.value == context.same.value) {
522
522
  context.evalue = [
package/package.json CHANGED
@@ -294,8 +294,8 @@
294
294
  "table": "^6.7.1",
295
295
  "base-64": "^1.0.0",
296
296
  "argparse": "^2.0.1",
297
- "theprogrammablemind": "8.0.0-beta.50"
297
+ "theprogrammablemind": "8.0.0-beta.52"
298
298
  },
299
- "version": "8.0.0-beta.50",
299
+ "version": "8.0.0-beta.52",
300
300
  "license": "UNLICENSED"
301
301
  }