@agentshouse/mdmodel 0.1.0-cd90851746292 → 0.1.0-cdbd463e01dc2

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 (95) hide show
  1. package/API.md +90 -81
  2. package/README.md +6 -4
  3. package/dist/definition.d.ts +1 -1
  4. package/dist/definition.d.ts.map +1 -1
  5. package/dist/definition.js +13 -9
  6. package/dist/event.d.ts +78 -0
  7. package/dist/event.d.ts.map +1 -0
  8. package/dist/event.js +230 -0
  9. package/dist/facts.d.ts +15 -0
  10. package/dist/facts.d.ts.map +1 -0
  11. package/dist/facts.js +39 -0
  12. package/dist/index.d.ts +17 -5
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +10 -3
  15. package/dist/kinds.d.ts +19 -0
  16. package/dist/kinds.d.ts.map +1 -0
  17. package/dist/kinds.js +161 -0
  18. package/dist/query/language.d.ts +223 -0
  19. package/dist/query/language.d.ts.map +1 -0
  20. package/dist/query/language.js +565 -0
  21. package/dist/query/match.d.ts +14 -0
  22. package/dist/query/match.d.ts.map +1 -0
  23. package/dist/query/match.js +121 -0
  24. package/dist/query/rows.d.ts +32 -0
  25. package/dist/query/rows.d.ts.map +1 -0
  26. package/dist/query/rows.js +161 -0
  27. package/dist/query/sql.d.ts +39 -0
  28. package/dist/query/sql.d.ts.map +1 -0
  29. package/dist/query/sql.js +279 -0
  30. package/dist/reserved.d.ts +5 -0
  31. package/dist/reserved.d.ts.map +1 -0
  32. package/dist/reserved.js +20 -0
  33. package/dist/types.d.ts +7 -0
  34. package/dist/types.d.ts.map +1 -1
  35. package/dist/validate.d.ts +4 -3
  36. package/dist/validate.d.ts.map +1 -1
  37. package/dist/validate.js +103 -36
  38. package/fixtures/README.md +17 -2
  39. package/fixtures/cases/link-into-a-reserved-name/context.json +1 -0
  40. package/fixtures/cases/link-into-a-reserved-name/expected.json +5 -0
  41. package/fixtures/cases/link-into-a-reserved-name/library/notes/a.md +6 -0
  42. package/fixtures/cases/link-into-a-reserved-name/schema.yaml +3 -0
  43. package/fixtures/cases/link-into-a-reserved-name-from-an-untyped-document/context.json +1 -0
  44. package/fixtures/cases/link-into-a-reserved-name-from-an-untyped-document/expected.json +5 -0
  45. package/fixtures/cases/link-into-a-reserved-name-from-an-untyped-document/library/notes/b.md +5 -0
  46. package/fixtures/cases/member-on-an-untyped-document/context.json +1 -0
  47. package/fixtures/cases/member-on-an-untyped-document/expected.json +6 -0
  48. package/fixtures/cases/member-on-an-untyped-document/library/note.md +4 -0
  49. package/fixtures/cases/member-on-another-type/context.json +1 -0
  50. package/fixtures/cases/member-on-another-type/expected.json +6 -0
  51. package/fixtures/cases/member-on-another-type/library/note.md +4 -0
  52. package/fixtures/cases/member-on-another-type/schema.yaml +7 -0
  53. package/fixtures/cases/reference-into-a-reserved-name/context.json +1 -0
  54. package/fixtures/cases/reference-into-a-reserved-name/expected.json +6 -0
  55. package/fixtures/cases/reference-into-a-reserved-name/library/notes/a.md +4 -0
  56. package/fixtures/cases/reference-into-a-reserved-name/library/settings/brief.md +1 -0
  57. package/fixtures/cases/reference-into-a-reserved-name/schema.yaml +3 -0
  58. package/fixtures/cases/room-md-declares-a-type/context.json +1 -0
  59. package/fixtures/cases/room-md-declares-a-type/expected.json +6 -0
  60. package/fixtures/cases/room-md-declares-a-type/library/ROOM.md +5 -0
  61. package/fixtures/cases/typed-path-names-another-type/context.json +11 -0
  62. package/fixtures/cases/typed-path-names-another-type/expected.json +6 -0
  63. package/fixtures/cases/typed-path-names-another-type/library/settings/prefs/one.md +3 -0
  64. package/fixtures/cases/typed-path-names-another-type/schema.yaml +6 -0
  65. package/fixtures/cases/typed-path-names-its-type/context.json +11 -0
  66. package/fixtures/cases/typed-path-names-its-type/expected.json +3 -0
  67. package/fixtures/cases/typed-path-names-its-type/library/settings/prefs/deeper/two.md +1 -0
  68. package/fixtures/cases/typed-path-names-its-type/library/settings/prefs/one.md +4 -0
  69. package/fixtures/cases/typed-path-names-its-type/schema.yaml +6 -0
  70. package/fixtures/cases/typed-path-names-no-type/context.json +11 -0
  71. package/fixtures/cases/typed-path-names-no-type/expected.json +6 -0
  72. package/fixtures/cases/typed-path-names-no-type/library/settings/prefs/one.md +1 -0
  73. package/fixtures/cases/typed-path-names-no-type/schema.yaml +6 -0
  74. package/fixtures/cases/unnamed-typed-path-checks-its-fields/context.json +11 -0
  75. package/fixtures/cases/unnamed-typed-path-checks-its-fields/expected.json +6 -0
  76. package/fixtures/cases/unnamed-typed-path-checks-its-fields/library/rooms/team/tasks/plan.md +4 -0
  77. package/fixtures/cases/unnamed-typed-path-checks-its-fields/schema.yaml +5 -0
  78. package/fixtures/cases/unnamed-typed-path-names-a-type/context.json +11 -0
  79. package/fixtures/cases/unnamed-typed-path-names-a-type/expected.json +6 -0
  80. package/fixtures/cases/unnamed-typed-path-names-a-type/library/rooms/team/tasks/plan.md +6 -0
  81. package/fixtures/cases/unnamed-typed-path-names-a-type/schema.yaml +5 -0
  82. package/fixtures/cases/unnamed-typed-path-reads-its-type/context.json +11 -0
  83. package/fixtures/cases/unnamed-typed-path-reads-its-type/expected.json +3 -0
  84. package/fixtures/cases/unnamed-typed-path-reads-its-type/library/rooms/team/plan.md +1 -0
  85. package/fixtures/cases/unnamed-typed-path-reads-its-type/library/rooms/team/tasks/plan.md +5 -0
  86. package/fixtures/cases/unnamed-typed-path-reads-its-type/schema.yaml +5 -0
  87. package/fixtures/cases/unnamed-typed-path-without-a-body/context.json +11 -0
  88. package/fixtures/cases/unnamed-typed-path-without-a-body/expected.json +5 -0
  89. package/fixtures/cases/unnamed-typed-path-without-a-body/library/rooms/team/tasks/plan.md +5 -0
  90. package/fixtures/cases/unnamed-typed-path-without-a-body/schema.yaml +5 -0
  91. package/fixtures/queries.json +913 -0
  92. package/package.json +1 -1
  93. package/dist/condition.d.ts +0 -180
  94. package/dist/condition.d.ts.map +0 -1
  95. package/dist/condition.js +0 -633
@@ -0,0 +1,11 @@
1
+ {
2
+ "binaryTargets": [],
3
+ "typedPaths": [
4
+ {
5
+ "path": "rooms/*/tasks/*.md",
6
+ "type": "task",
7
+ "named": false,
8
+ "body": true
9
+ }
10
+ ]
11
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "verdict": "accept"
3
+ }
@@ -0,0 +1,5 @@
1
+ ---
2
+ title: Plan
3
+ owner: 019a0000-0000-7000-8000-000000000001
4
+ ---
5
+ Write the plan.
@@ -0,0 +1,5 @@
1
+ task:
2
+ properties:
3
+ title: { type: string, maxLength: 20 }
4
+ owner: { type: string, format: uuid }
5
+ required: [title, owner]
@@ -0,0 +1,11 @@
1
+ {
2
+ "binaryTargets": [],
3
+ "typedPaths": [
4
+ {
5
+ "path": "rooms/*/tasks/*.md",
6
+ "type": "task",
7
+ "named": false,
8
+ "body": true
9
+ }
10
+ ]
11
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "verdict": "refuse",
3
+ "file": "rooms/team/tasks/plan.md",
4
+ "rule": "required-body"
5
+ }
@@ -0,0 +1,5 @@
1
+ ---
2
+ title: Plan
3
+ owner: 019a0000-0000-7000-8000-000000000001
4
+ ---
5
+
@@ -0,0 +1,5 @@
1
+ task:
2
+ properties:
3
+ title: { type: string, maxLength: 20 }
4
+ owner: { type: string, format: uuid }
5
+ required: [title, owner]