@yaks/key 0.0.0-stage → 0.2.36

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 (61) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +108 -2
  3. package/_dist/comp.d.ts +14 -0
  4. package/_dist/comp.d.ts.map +1 -0
  5. package/_dist/eid.d.ts +26 -0
  6. package/_dist/eid.d.ts.map +1 -0
  7. package/_dist/graph.d.ts +6 -0
  8. package/_dist/graph.d.ts.map +1 -0
  9. package/_dist/guard.d.ts +9 -0
  10. package/_dist/guard.d.ts.map +1 -0
  11. package/_dist/keywords.d.ts +8 -0
  12. package/_dist/keywords.d.ts.map +1 -0
  13. package/_dist/kinds.d.ts +14 -0
  14. package/_dist/kinds.d.ts.map +1 -0
  15. package/_dist/mod.d.ts +70 -0
  16. package/_dist/mod.d.ts.map +1 -0
  17. package/_dist/plugin.d.ts +23 -0
  18. package/_dist/plugin.d.ts.map +1 -0
  19. package/_dist/resolve.d.ts +26 -0
  20. package/_dist/resolve.d.ts.map +1 -0
  21. package/_dist/say.d.ts +10 -0
  22. package/_dist/say.d.ts.map +1 -0
  23. package/_dist/vocab.d.ts +9 -0
  24. package/_dist/vocab.d.ts.map +1 -0
  25. package/comp.js +49 -0
  26. package/comp.js.map +1 -0
  27. package/comp.ts +62 -0
  28. package/deno.json +1 -0
  29. package/eid.js +43 -0
  30. package/eid.js.map +1 -0
  31. package/eid.ts +56 -0
  32. package/graph.js +9 -0
  33. package/graph.js.map +1 -0
  34. package/graph.ts +11 -0
  35. package/guard.js +67 -0
  36. package/guard.js.map +1 -0
  37. package/guard.ts +69 -0
  38. package/keywords.js +34 -0
  39. package/keywords.js.map +1 -0
  40. package/keywords.ts +31 -0
  41. package/kinds.js +39 -0
  42. package/kinds.js.map +1 -0
  43. package/kinds.ts +46 -0
  44. package/meta/key.vocab.json +13 -0
  45. package/mod.js +70 -0
  46. package/mod.js.map +1 -0
  47. package/mod.ts +71 -0
  48. package/package.json +26 -4
  49. package/plugin.js +62 -0
  50. package/plugin.js.map +1 -0
  51. package/plugin.ts +58 -0
  52. package/resolve.js +163 -0
  53. package/resolve.js.map +1 -0
  54. package/resolve.ts +155 -0
  55. package/say.js +39 -0
  56. package/say.js.map +1 -0
  57. package/say.ts +37 -0
  58. package/vocab.js +18 -0
  59. package/vocab.js.map +1 -0
  60. package/vocab.json +36 -0
  61. package/vocab.ts +20 -0
package/vocab.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "$id": "urn:uuid:8f6168ff-fd0b-42df-ad65-0e95402185c6",
3
+ "$vocabulary": {
4
+ "https://yak.sh/vocab/core": true,
5
+ "https://yak.sh/vocab/key": true
6
+ },
7
+ "title": "key",
8
+ "$defs": {
9
+ "key": {
10
+ "$id": "urn:uuid:836e1250-a3aa-4c8e-90ba-c99f8d04aed8",
11
+ "component": true,
12
+ "type": "object",
13
+ "description": "a value that identifies an entity; a second component beside it tags which kind of value it is",
14
+ "properties": {
15
+ "of": {
16
+ "$id": "urn:uuid:7fa840e2-6be6-40a5-94cc-12c626bd7dc3",
17
+ "type": "string",
18
+ "ref": "entity",
19
+ "death": "release",
20
+ "description": "the entity the value identifies; the row is removed when that entity is deleted, which frees the value"
21
+ },
22
+ "value": {
23
+ "$id": "urn:uuid:b9f5680c-703c-4ec9-bb6a-a057db386be2",
24
+ "type": "string",
25
+ "description": "the value itself; unique within its kind, because the key's own id is derived from the kind and the value"
26
+ }
27
+ }
28
+ }
29
+ },
30
+ "kinds": {
31
+ "key": {
32
+ "$id": "urn:uuid:836e1250-a3aa-4c8e-90ba-c99f8d04aed8",
33
+ "description": "a value that identifies an entity; a second component beside it tags which kind of value it is"
34
+ }
35
+ }
36
+ }
package/vocab.ts ADDED
@@ -0,0 +1,20 @@
1
+ // The `key` component declaration and nothing else, exported as
2
+ // `@yaks/key/vocab`. It imports no storage, no SQL and no runtime API, so a
3
+ // browser tab loading this vocabulary loads nothing else with it.
4
+
5
+ import type { Keywords, VocabDoc } from 'jsr:@yaks/vocab@0.2.36'
6
+ import { keyDoc } from './comp.js'
7
+ import { keyKeywords } from './keywords.js'
8
+ import manifest from './package.json' with { type: 'json' }
9
+
10
+ export { keyDoc, keyKeywords }
11
+
12
+ /** What this package is: its manifest's description, the one place it is
13
+ * written, which a host stamps on each document here. */
14
+ export let description: string = manifest.description
15
+
16
+ /** Every document this plugin declares. */
17
+ export let docs: VocabDoc[] = [keyDoc]
18
+
19
+ /** The JSON Schema keywords those documents use. */
20
+ export let keywords: Keywords[] = [keyKeywords]