@superbee/core 0.2.0-pre.5 → 0.2.0-pre.8

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 (131) hide show
  1. package/README.md +89 -0
  2. package/dist/bundle-ops.d.ts +1 -1
  3. package/dist/bundle-ops.d.ts.map +1 -1
  4. package/dist/bundle-ops.js +2 -2
  5. package/dist/bundle-ops.js.map +1 -1
  6. package/dist/document-codec.d.ts +5 -1
  7. package/dist/document-codec.d.ts.map +1 -1
  8. package/dist/document-codec.js +7 -4
  9. package/dist/document-codec.js.map +1 -1
  10. package/dist/document-write-policy.d.ts.map +1 -1
  11. package/dist/document-write-policy.js +4 -2
  12. package/dist/document-write-policy.js.map +1 -1
  13. package/dist/engine.d.ts +1 -1
  14. package/dist/engine.d.ts.map +1 -1
  15. package/dist/engine.js +4 -3
  16. package/dist/engine.js.map +1 -1
  17. package/dist/file-journaled-backend-internal.d.ts +19 -0
  18. package/dist/file-journaled-backend-internal.d.ts.map +1 -0
  19. package/dist/file-journaled-backend-internal.js +10 -0
  20. package/dist/file-journaled-backend-internal.js.map +1 -0
  21. package/dist/file-journaled-backend.d.ts +162 -0
  22. package/dist/file-journaled-backend.d.ts.map +1 -0
  23. package/dist/file-journaled-backend.js +1113 -0
  24. package/dist/file-journaled-backend.js.map +1 -0
  25. package/dist/filesystem-lock.d.ts +10 -0
  26. package/dist/filesystem-lock.d.ts.map +1 -1
  27. package/dist/filesystem-lock.js +283 -22
  28. package/dist/filesystem-lock.js.map +1 -1
  29. package/dist/filesystem-push-role.d.ts +77 -0
  30. package/dist/filesystem-push-role.d.ts.map +1 -0
  31. package/dist/filesystem-push-role.js +165 -0
  32. package/dist/filesystem-push-role.js.map +1 -0
  33. package/dist/governed-body-write.d.ts +8 -1
  34. package/dist/governed-body-write.d.ts.map +1 -1
  35. package/dist/governed-body-write.js +9 -2
  36. package/dist/governed-body-write.js.map +1 -1
  37. package/dist/host-text.d.ts +31 -0
  38. package/dist/host-text.d.ts.map +1 -0
  39. package/dist/host-text.js +77 -0
  40. package/dist/host-text.js.map +1 -0
  41. package/dist/hosted-transport/answer-rows.d.ts +216 -0
  42. package/dist/hosted-transport/answer-rows.d.ts.map +1 -0
  43. package/dist/hosted-transport/answer-rows.js +396 -0
  44. package/dist/hosted-transport/answer-rows.js.map +1 -0
  45. package/dist/hosted-transport/carrier.d.ts +142 -0
  46. package/dist/hosted-transport/carrier.d.ts.map +1 -0
  47. package/dist/hosted-transport/carrier.js +241 -0
  48. package/dist/hosted-transport/carrier.js.map +1 -0
  49. package/dist/hosted-transport/history-pages.d.ts +55 -0
  50. package/dist/hosted-transport/history-pages.d.ts.map +1 -0
  51. package/dist/hosted-transport/history-pages.js +69 -0
  52. package/dist/hosted-transport/history-pages.js.map +1 -0
  53. package/dist/hosted-transport/index.d.ts +18 -0
  54. package/dist/hosted-transport/index.d.ts.map +1 -0
  55. package/dist/hosted-transport/index.js +18 -0
  56. package/dist/hosted-transport/index.js.map +1 -0
  57. package/dist/hosted-transport/operations.d.ts +85 -0
  58. package/dist/hosted-transport/operations.d.ts.map +1 -0
  59. package/dist/hosted-transport/operations.js +128 -0
  60. package/dist/hosted-transport/operations.js.map +1 -0
  61. package/dist/hosted-transport/paged-reads.d.ts +87 -0
  62. package/dist/hosted-transport/paged-reads.d.ts.map +1 -0
  63. package/dist/hosted-transport/paged-reads.js +238 -0
  64. package/dist/hosted-transport/paged-reads.js.map +1 -0
  65. package/dist/hosted-transport/read-adapter.d.ts +250 -0
  66. package/dist/hosted-transport/read-adapter.d.ts.map +1 -0
  67. package/dist/hosted-transport/read-adapter.js +557 -0
  68. package/dist/hosted-transport/read-adapter.js.map +1 -0
  69. package/dist/hosted-transport/root-write.d.ts +114 -0
  70. package/dist/hosted-transport/root-write.d.ts.map +1 -0
  71. package/dist/hosted-transport/root-write.js +171 -0
  72. package/dist/hosted-transport/root-write.js.map +1 -0
  73. package/dist/hosted-transport/whole-document-transport.d.ts +174 -0
  74. package/dist/hosted-transport/whole-document-transport.d.ts.map +1 -0
  75. package/dist/hosted-transport/whole-document-transport.js +411 -0
  76. package/dist/hosted-transport/whole-document-transport.js.map +1 -0
  77. package/dist/index.d.ts +5 -3
  78. package/dist/index.d.ts.map +1 -1
  79. package/dist/index.js +5 -2
  80. package/dist/index.js.map +1 -1
  81. package/dist/indexeddb-backend.d.ts +6 -1
  82. package/dist/indexeddb-backend.d.ts.map +1 -1
  83. package/dist/indexeddb-backend.js +77 -6
  84. package/dist/indexeddb-backend.js.map +1 -1
  85. package/dist/journaled-backend.d.ts +73 -5
  86. package/dist/journaled-backend.d.ts.map +1 -1
  87. package/dist/journaled-backend.js +55 -1
  88. package/dist/journaled-backend.js.map +1 -1
  89. package/dist/kinds.d.ts +25 -1
  90. package/dist/kinds.d.ts.map +1 -1
  91. package/dist/kinds.js +52 -4
  92. package/dist/kinds.js.map +1 -1
  93. package/dist/links.d.ts +1 -1
  94. package/dist/links.d.ts.map +1 -1
  95. package/dist/links.js +5 -10
  96. package/dist/links.js.map +1 -1
  97. package/dist/memory-backend.d.ts.map +1 -1
  98. package/dist/memory-backend.js +6 -2
  99. package/dist/memory-backend.js.map +1 -1
  100. package/dist/platform.d.ts +9 -2
  101. package/dist/platform.d.ts.map +1 -1
  102. package/dist/platform.js.map +1 -1
  103. package/dist/query-order.d.ts +22 -0
  104. package/dist/query-order.d.ts.map +1 -0
  105. package/dist/query-order.js +42 -0
  106. package/dist/query-order.js.map +1 -0
  107. package/dist/remote-backend.d.ts +56 -11
  108. package/dist/remote-backend.d.ts.map +1 -1
  109. package/dist/remote-backend.js +154 -27
  110. package/dist/remote-backend.js.map +1 -1
  111. package/dist/remote-error.d.ts +17 -1
  112. package/dist/remote-error.d.ts.map +1 -1
  113. package/dist/remote-error.js +32 -2
  114. package/dist/remote-error.js.map +1 -1
  115. package/dist/remote-operations.d.ts +5 -4
  116. package/dist/remote-operations.d.ts.map +1 -1
  117. package/dist/remote-operations.js +16 -6
  118. package/dist/remote-operations.js.map +1 -1
  119. package/dist/remote-parsers.d.ts +1 -1
  120. package/dist/remote-parsers.js +1 -1
  121. package/dist/types.d.ts +9 -4
  122. package/dist/types.d.ts.map +1 -1
  123. package/dist/uncertain-write.d.ts +45 -11
  124. package/dist/uncertain-write.d.ts.map +1 -1
  125. package/dist/uncertain-write.js +30 -9
  126. package/dist/uncertain-write.js.map +1 -1
  127. package/dist/versioning.d.ts +9 -4
  128. package/dist/versioning.d.ts.map +1 -1
  129. package/dist/versioning.js +9 -4
  130. package/dist/versioning.js.map +1 -1
  131. package/package.json +18 -2
@@ -4,10 +4,15 @@
4
4
  * These make the seam's "hardest case" (content-addressed versions, compare-and-swap
5
5
  * writes, actor attribution) implementable uniformly across adapters:
6
6
  * - {@link contentVersion} defines the opaque {@link Version} token as a SHA-256 over
7
- * the canonically serialized document, so identical content yields the same token
8
- * REGARDLESS of backend. The filesystem adapter hashes the on-disk bytes; the
9
- * in-memory adapter hashes the same serialization — an engine-written document
10
- * therefore carries the same version token in either store.
7
+ * the canonically serialized document. A version token is a property of a backend,
8
+ * not of the content: the filesystem adapter hashes the on-disk bytes exactly as
9
+ * written, so a hand-authored file keeps its bytes and its token; the in-memory and
10
+ * wire adapters hash a re-serialization, which folds long strings, expands flow
11
+ * sequences and normalizes timestamps, so content Superbee did not author may carry a
12
+ * different token there. An engine-written document carries the same token in either
13
+ * store, because the engine wrote the canonical bytes. Bytes are the promise that
14
+ * travels between backends (decision of 2026-09-17, "bytes win"); no promise rests on
15
+ * cross-backend token equality.
11
16
  * - {@link blobVersion} is the SAME idea for opaque blob bytes, but hashes the raw
12
17
  * `Uint8Array` directly with no string/UTF-8 step — a doc-shaped hash would corrupt
13
18
  * binary content, so blobs get their own primitive rather than reusing `contentVersion`
@@ -1 +1 @@
1
- {"version":3,"file":"versioning.js","sourceRoot":"","sources":["../src/versioning.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,YAAY,E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M,aAAa,CAAC;AAGhE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE7F,sFAAsF;AACtF,MAAM,UAAU,SAAS,CAAC,KAAa;IACrC,OAAO,eAAe,CAAC,KAAK,CAAC,CAAC;AAChC,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,GAAgB;IAC7C,OAAO,UAAU,SAAS,CAAC,YAAY,CAAC,GAAG,CAAC,WAAW,EAAE,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC;AAC9E,CAAC;AAED,gGAAgG;AAChG,MAAM,UAAU,cAAc,CAAC,GAAW;IACxC,OAAO,UAAU,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;AACpC,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,WAAW,CAAC,KAAiB;IAC3C,OAAO,UAAU,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC;AAC7C,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,YAAY;IAC1B,MAAM,GAAG,GAAG,OAAO,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;IACrE,OAAO,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,OAAO,CAAC;AACvF,CAAC"}
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@superbee/core",
3
- "version": "0.2.0-pre.5",
3
+ "version": "0.2.0-pre.8",
4
4
  "type": "module",
5
- "description": "OKF store engine \u2014 bundle I/O, cross-links, derived backlinks, freshness, and versioned writes.",
5
+ "description": "OKF store engine — bundle I/O, cross-links, derived backlinks, freshness, and versioned writes.",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
8
8
  "type": "git",
@@ -75,6 +75,10 @@
75
75
  "types": "./dist/publication-filesystem.d.ts",
76
76
  "default": "./dist/publication-filesystem.js"
77
77
  },
78
+ "./query-order": {
79
+ "types": "./dist/query-order.d.ts",
80
+ "default": "./dist/query-order.js"
81
+ },
78
82
  "./query-filter": {
79
83
  "types": "./dist/query-filter.d.ts",
80
84
  "default": "./dist/query-filter.js"
@@ -91,6 +95,10 @@
91
95
  "types": "./dist/remote-operations.d.ts",
92
96
  "default": "./dist/remote-operations.js"
93
97
  },
98
+ "./hosted-transport": {
99
+ "types": "./dist/hosted-transport/index.d.ts",
100
+ "default": "./dist/hosted-transport/index.js"
101
+ },
94
102
  "./storage": {
95
103
  "types": "./dist/storage.d.ts",
96
104
  "default": "./dist/storage.js"
@@ -111,6 +119,10 @@
111
119
  "types": "./dist/journaled-backend.d.ts",
112
120
  "default": "./dist/journaled-backend.js"
113
121
  },
122
+ "./file-journaled-backend": {
123
+ "types": "./dist/file-journaled-backend.d.ts",
124
+ "default": "./dist/file-journaled-backend.js"
125
+ },
114
126
  "./uncertain-write": {
115
127
  "types": "./dist/uncertain-write.d.ts",
116
128
  "default": "./dist/uncertain-write.js"
@@ -122,6 +134,10 @@
122
134
  "./filesystem": {
123
135
  "types": "./dist/filesystem.d.ts",
124
136
  "default": "./dist/filesystem.js"
137
+ },
138
+ "./filesystem-push-role": {
139
+ "types": "./dist/filesystem-push-role.d.ts",
140
+ "default": "./dist/filesystem-push-role.js"
125
141
  }
126
142
  },
127
143
  "files": [