@ibgib/core-gib 0.0.4

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 (330) hide show
  1. package/.vscode/core-gib-snippets.code-snippets +189 -0
  2. package/.vscode/launch.json +24 -0
  3. package/.vscode/settings.json +56 -0
  4. package/.vscode/tasks.json +37 -0
  5. package/CHANGELOG.md +11 -0
  6. package/README.md +215 -0
  7. package/dist/common/aws-constants.d.mts +7 -0
  8. package/dist/common/aws-constants.d.mts.map +1 -0
  9. package/dist/common/aws-constants.mjs +7 -0
  10. package/dist/common/aws-constants.mjs.map +1 -0
  11. package/dist/common/bin/bin-types.d.mts +17 -0
  12. package/dist/common/bin/bin-types.d.mts.map +1 -0
  13. package/dist/common/bin/bin-types.mjs +3 -0
  14. package/dist/common/bin/bin-types.mjs.map +1 -0
  15. package/dist/common/cache/cache-types.d.mts +57 -0
  16. package/dist/common/cache/cache-types.d.mts.map +1 -0
  17. package/dist/common/cache/cache-types.mjs +2 -0
  18. package/dist/common/cache/cache-types.mjs.map +1 -0
  19. package/dist/common/comment/comment-constants.d.mts +11 -0
  20. package/dist/common/comment/comment-constants.d.mts.map +1 -0
  21. package/dist/common/comment/comment-constants.mjs +11 -0
  22. package/dist/common/comment/comment-constants.mjs.map +1 -0
  23. package/dist/common/comment/comment-helper.d.mts +59 -0
  24. package/dist/common/comment/comment-helper.d.mts.map +1 -0
  25. package/dist/common/comment/comment-helper.mjs +173 -0
  26. package/dist/common/comment/comment-helper.mjs.map +1 -0
  27. package/dist/common/comment/comment-types.d.mts +16 -0
  28. package/dist/common/comment/comment-types.d.mts.map +1 -0
  29. package/dist/common/comment/comment-types.mjs +2 -0
  30. package/dist/common/comment/comment-types.mjs.map +1 -0
  31. package/dist/common/display/display-helper.d.mts +19 -0
  32. package/dist/common/display/display-helper.d.mts.map +1 -0
  33. package/dist/common/display/display-helper.mjs +68 -0
  34. package/dist/common/display/display-helper.mjs.map +1 -0
  35. package/dist/common/display/display-types.d.mts +97 -0
  36. package/dist/common/display/display-types.d.mts.map +1 -0
  37. package/dist/common/display/display-types.mjs +37 -0
  38. package/dist/common/display/display-types.mjs.map +1 -0
  39. package/dist/common/encrypt/encrypt-constants.d.mts +27 -0
  40. package/dist/common/encrypt/encrypt-constants.d.mts.map +1 -0
  41. package/dist/common/encrypt/encrypt-constants.mjs +27 -0
  42. package/dist/common/encrypt/encrypt-constants.mjs.map +1 -0
  43. package/dist/common/encrypt/encrypt-types.d.mts +116 -0
  44. package/dist/common/encrypt/encrypt-types.d.mts.map +1 -0
  45. package/dist/common/encrypt/encrypt-types.mjs +9 -0
  46. package/dist/common/encrypt/encrypt-types.mjs.map +1 -0
  47. package/dist/common/error/error-constants.d.mts +9 -0
  48. package/dist/common/error/error-constants.d.mts.map +1 -0
  49. package/dist/common/error/error-constants.mjs +9 -0
  50. package/dist/common/error/error-constants.mjs.map +1 -0
  51. package/dist/common/error/error-helper.d.mts +43 -0
  52. package/dist/common/error/error-helper.d.mts.map +1 -0
  53. package/dist/common/error/error-helper.mjs +167 -0
  54. package/dist/common/error/error-helper.mjs.map +1 -0
  55. package/dist/common/error/error-types.d.mts +58 -0
  56. package/dist/common/error/error-types.d.mts.map +1 -0
  57. package/dist/common/error/error-types.mjs +2 -0
  58. package/dist/common/error/error-types.mjs.map +1 -0
  59. package/dist/common/form/form-helper.d.mts +97 -0
  60. package/dist/common/form/form-helper.d.mts.map +1 -0
  61. package/dist/common/form/form-helper.mjs +185 -0
  62. package/dist/common/form/form-helper.mjs.map +1 -0
  63. package/dist/common/form/form-items.d.mts +229 -0
  64. package/dist/common/form/form-items.d.mts.map +1 -0
  65. package/dist/common/form/form-items.mjs +63 -0
  66. package/dist/common/form/form-items.mjs.map +1 -0
  67. package/dist/common/import-export/import-export-types.d.mts +18 -0
  68. package/dist/common/import-export/import-export-types.d.mts.map +1 -0
  69. package/dist/common/import-export/import-export-types.mjs +2 -0
  70. package/dist/common/import-export/import-export-types.mjs.map +1 -0
  71. package/dist/common/legacy/legacy-types.d.mts +2 -0
  72. package/dist/common/legacy/legacy-types.d.mts.map +1 -0
  73. package/dist/common/legacy/legacy-types.mjs +2 -0
  74. package/dist/common/legacy/legacy-types.mjs.map +1 -0
  75. package/dist/common/link/link-constants.d.mts +2 -0
  76. package/dist/common/link/link-constants.d.mts.map +1 -0
  77. package/dist/common/link/link-constants.mjs +2 -0
  78. package/dist/common/link/link-constants.mjs.map +1 -0
  79. package/dist/common/link/link-helper.d.mts +37 -0
  80. package/dist/common/link/link-helper.d.mts.map +1 -0
  81. package/dist/common/link/link-helper.mjs +143 -0
  82. package/dist/common/link/link-helper.mjs.map +1 -0
  83. package/dist/common/link/link-types.d.mts +14 -0
  84. package/dist/common/link/link-types.d.mts.map +1 -0
  85. package/dist/common/link/link-types.mjs +2 -0
  86. package/dist/common/link/link-types.mjs.map +1 -0
  87. package/dist/common/other/graph-helper.d.mts +166 -0
  88. package/dist/common/other/graph-helper.d.mts.map +1 -0
  89. package/dist/common/other/graph-helper.mjs +710 -0
  90. package/dist/common/other/graph-helper.mjs.map +1 -0
  91. package/dist/common/other/ibgib-helper.d.mts +245 -0
  92. package/dist/common/other/ibgib-helper.d.mts.map +1 -0
  93. package/dist/common/other/ibgib-helper.mjs +641 -0
  94. package/dist/common/other/ibgib-helper.mjs.map +1 -0
  95. package/dist/common/other/other-constants.d.mts +53 -0
  96. package/dist/common/other/other-constants.d.mts.map +1 -0
  97. package/dist/common/other/other-constants.mjs +67 -0
  98. package/dist/common/other/other-constants.mjs.map +1 -0
  99. package/dist/common/other/other-types.d.mts +166 -0
  100. package/dist/common/other/other-types.d.mts.map +1 -0
  101. package/dist/common/other/other-types.mjs +30 -0
  102. package/dist/common/other/other-types.mjs.map +1 -0
  103. package/dist/common/other/svg-constants.d.mts +2 -0
  104. package/dist/common/other/svg-constants.d.mts.map +1 -0
  105. package/dist/common/other/svg-constants.mjs +2 -0
  106. package/dist/common/other/svg-constants.mjs.map +1 -0
  107. package/dist/common/other/svg-helper.d.mts +54 -0
  108. package/dist/common/other/svg-helper.d.mts.map +1 -0
  109. package/dist/common/other/svg-helper.mjs +170 -0
  110. package/dist/common/other/svg-helper.mjs.map +1 -0
  111. package/dist/common/pic/pic-constants.d.mts +13 -0
  112. package/dist/common/pic/pic-constants.d.mts.map +1 -0
  113. package/dist/common/pic/pic-constants.mjs +13 -0
  114. package/dist/common/pic/pic-constants.mjs.map +1 -0
  115. package/dist/common/pic/pic-helper.d.mts +70 -0
  116. package/dist/common/pic/pic-helper.d.mts.map +1 -0
  117. package/dist/common/pic/pic-helper.mjs +235 -0
  118. package/dist/common/pic/pic-helper.mjs.map +1 -0
  119. package/dist/common/pic/pic-types.d.mts +23 -0
  120. package/dist/common/pic/pic-types.d.mts.map +1 -0
  121. package/dist/common/pic/pic-types.mjs +2 -0
  122. package/dist/common/pic/pic-types.mjs.map +1 -0
  123. package/dist/common/root/root-constants.d.mts +40 -0
  124. package/dist/common/root/root-constants.d.mts.map +1 -0
  125. package/dist/common/root/root-constants.mjs +40 -0
  126. package/dist/common/root/root-constants.mjs.map +1 -0
  127. package/dist/common/root/root-types.d.mts +9 -0
  128. package/dist/common/root/root-types.d.mts.map +1 -0
  129. package/dist/common/root/root-types.mjs +2 -0
  130. package/dist/common/root/root-types.mjs.map +1 -0
  131. package/dist/common/tag/tag-constants.d.mts +21 -0
  132. package/dist/common/tag/tag-constants.d.mts.map +1 -0
  133. package/dist/common/tag/tag-constants.mjs +28 -0
  134. package/dist/common/tag/tag-constants.mjs.map +1 -0
  135. package/dist/common/tag/tag-types.d.mts +14 -0
  136. package/dist/common/tag/tag-types.d.mts.map +1 -0
  137. package/dist/common/tag/tag-types.mjs +2 -0
  138. package/dist/common/tag/tag-types.mjs.map +1 -0
  139. package/dist/core-constants.d.mts +89 -0
  140. package/dist/core-constants.d.mts.map +1 -0
  141. package/dist/core-constants.mjs +484 -0
  142. package/dist/core-constants.mjs.map +1 -0
  143. package/dist/core-helper.d.mts +6 -0
  144. package/dist/core-helper.d.mts.map +1 -0
  145. package/dist/core-helper.mjs +28 -0
  146. package/dist/core-helper.mjs.map +1 -0
  147. package/dist/core-types.d.mts +520 -0
  148. package/dist/core-types.d.mts.map +1 -0
  149. package/dist/core-types.mjs +2 -0
  150. package/dist/core-types.mjs.map +1 -0
  151. package/dist/index.d.mts +2 -0
  152. package/dist/index.d.mts.map +1 -0
  153. package/dist/index.mjs +3 -0
  154. package/dist/index.mjs.map +1 -0
  155. package/dist/witness/app/app-base-v1.d.mts +130 -0
  156. package/dist/witness/app/app-base-v1.d.mts.map +1 -0
  157. package/dist/witness/app/app-base-v1.mjs +462 -0
  158. package/dist/witness/app/app-base-v1.mjs.map +1 -0
  159. package/dist/witness/app/app-constants.d.mts +10 -0
  160. package/dist/witness/app/app-constants.d.mts.map +1 -0
  161. package/dist/witness/app/app-constants.mjs +13 -0
  162. package/dist/witness/app/app-constants.mjs.map +1 -0
  163. package/dist/witness/app/app-helper.d.mts +85 -0
  164. package/dist/witness/app/app-helper.d.mts.map +1 -0
  165. package/dist/witness/app/app-helper.mjs +258 -0
  166. package/dist/witness/app/app-helper.mjs.map +1 -0
  167. package/dist/witness/app/app-types.d.mts +211 -0
  168. package/dist/witness/app/app-types.d.mts.map +1 -0
  169. package/dist/witness/app/app-types.mjs +49 -0
  170. package/dist/witness/app/app-types.mjs.map +1 -0
  171. package/dist/witness/app/chat-app/chat-app-types.d.mts +18 -0
  172. package/dist/witness/app/chat-app/chat-app-types.d.mts.map +1 -0
  173. package/dist/witness/app/chat-app/chat-app-types.mjs +25 -0
  174. package/dist/witness/app/chat-app/chat-app-types.mjs.map +1 -0
  175. package/dist/witness/app/flash-app/flash-app-types.d.mts +16 -0
  176. package/dist/witness/app/flash-app/flash-app-types.d.mts.map +1 -0
  177. package/dist/witness/app/flash-app/flash-app-types.mjs +23 -0
  178. package/dist/witness/app/flash-app/flash-app-types.mjs.map +1 -0
  179. package/dist/witness/app/raw-app/raw-app-types.d.mts +18 -0
  180. package/dist/witness/app/raw-app/raw-app-types.d.mts.map +1 -0
  181. package/dist/witness/app/raw-app/raw-app-types.mjs +25 -0
  182. package/dist/witness/app/raw-app/raw-app-types.mjs.map +1 -0
  183. package/dist/witness/app/todo-app/todo-app-types.d.ts +33 -0
  184. package/dist/witness/app/todo-app/todo-app-types.d.ts.map +1 -0
  185. package/dist/witness/app/todo-app/todo-app-types.js +31 -0
  186. package/dist/witness/app/todo-app/todo-app-types.js.map +1 -0
  187. package/dist/witness/robbot/robbot-base-v1.d.ts +432 -0
  188. package/dist/witness/robbot/robbot-base-v1.d.ts.map +1 -0
  189. package/dist/witness/robbot/robbot-base-v1.js +1407 -0
  190. package/dist/witness/robbot/robbot-base-v1.js.map +1 -0
  191. package/dist/witness/robbot/robbot-constants.d.mts +24 -0
  192. package/dist/witness/robbot/robbot-constants.d.mts.map +1 -0
  193. package/dist/witness/robbot/robbot-constants.mjs +24 -0
  194. package/dist/witness/robbot/robbot-constants.mjs.map +1 -0
  195. package/dist/witness/robbot/robbot-helper.d.mts +152 -0
  196. package/dist/witness/robbot/robbot-helper.d.mts.map +1 -0
  197. package/dist/witness/robbot/robbot-helper.mjs +609 -0
  198. package/dist/witness/robbot/robbot-helper.mjs.map +1 -0
  199. package/dist/witness/robbot/robbot-types.d.mts +539 -0
  200. package/dist/witness/robbot/robbot-types.d.mts.map +1 -0
  201. package/dist/witness/robbot/robbot-types.mjs +294 -0
  202. package/dist/witness/robbot/robbot-types.mjs.map +1 -0
  203. package/dist/witness/space/bootstrap/bootstrap-constants.d.mts +14 -0
  204. package/dist/witness/space/bootstrap/bootstrap-constants.d.mts.map +1 -0
  205. package/dist/witness/space/bootstrap/bootstrap-constants.mjs +15 -0
  206. package/dist/witness/space/bootstrap/bootstrap-constants.mjs.map +1 -0
  207. package/dist/witness/space/inner-space-v1.d.ts +63 -0
  208. package/dist/witness/space/inner-space-v1.d.ts.map +1 -0
  209. package/dist/witness/space/inner-space-v1.js +356 -0
  210. package/dist/witness/space/inner-space-v1.js.map +1 -0
  211. package/dist/witness/space/outer-space/outer-space-constants.d.mts +2 -0
  212. package/dist/witness/space/outer-space/outer-space-constants.d.mts.map +1 -0
  213. package/dist/witness/space/outer-space/outer-space-constants.mjs +2 -0
  214. package/dist/witness/space/outer-space/outer-space-constants.mjs.map +1 -0
  215. package/dist/witness/space/outer-space/outer-space-helper.d.mts +28 -0
  216. package/dist/witness/space/outer-space/outer-space-helper.d.mts.map +1 -0
  217. package/dist/witness/space/outer-space/outer-space-helper.mjs +87 -0
  218. package/dist/witness/space/outer-space/outer-space-helper.mjs.map +1 -0
  219. package/dist/witness/space/outer-space/outer-space-types.d.mts +548 -0
  220. package/dist/witness/space/outer-space/outer-space-types.d.mts.map +1 -0
  221. package/dist/witness/space/outer-space/outer-space-types.mjs +118 -0
  222. package/dist/witness/space/outer-space/outer-space-types.mjs.map +1 -0
  223. package/dist/witness/space/space-base-v1.d.mts +147 -0
  224. package/dist/witness/space/space-base-v1.d.mts.map +1 -0
  225. package/dist/witness/space/space-base-v1.mjs +350 -0
  226. package/dist/witness/space/space-base-v1.mjs.map +1 -0
  227. package/dist/witness/space/space-constants.d.mts +181 -0
  228. package/dist/witness/space/space-constants.d.mts.map +1 -0
  229. package/dist/witness/space/space-constants.mjs +192 -0
  230. package/dist/witness/space/space-constants.mjs.map +1 -0
  231. package/dist/witness/space/space-helper.d.mts +666 -0
  232. package/dist/witness/space/space-helper.d.mts.map +1 -0
  233. package/dist/witness/space/space-helper.mjs +2830 -0
  234. package/dist/witness/space/space-helper.mjs.map +1 -0
  235. package/dist/witness/space/space-types.d.mts +422 -0
  236. package/dist/witness/space/space-types.d.mts.map +1 -0
  237. package/dist/witness/space/space-types.mjs +52 -0
  238. package/dist/witness/space/space-types.mjs.map +1 -0
  239. package/dist/witness/witness-base-v1.d.ts +144 -0
  240. package/dist/witness/witness-base-v1.d.ts.map +1 -0
  241. package/dist/witness/witness-base-v1.js +300 -0
  242. package/dist/witness/witness-base-v1.js.map +1 -0
  243. package/dist/witness/witness-constants.d.mts +3 -0
  244. package/dist/witness/witness-constants.d.mts.map +1 -0
  245. package/dist/witness/witness-constants.mjs +3 -0
  246. package/dist/witness/witness-constants.mjs.map +1 -0
  247. package/dist/witness/witness-form-builder.d.mts +45 -0
  248. package/dist/witness/witness-form-builder.d.mts.map +1 -0
  249. package/dist/witness/witness-form-builder.mjs +95 -0
  250. package/dist/witness/witness-form-builder.mjs.map +1 -0
  251. package/dist/witness/witness-helper.d.mts +89 -0
  252. package/dist/witness/witness-helper.d.mts.map +1 -0
  253. package/dist/witness/witness-helper.mjs +229 -0
  254. package/dist/witness/witness-helper.mjs.map +1 -0
  255. package/dist/witness/witness-types.d.mts +211 -0
  256. package/dist/witness/witness-types.d.mts.map +1 -0
  257. package/dist/witness/witness-types.mjs +2 -0
  258. package/dist/witness/witness-types.mjs.map +1 -0
  259. package/jasmine-browser.json +18 -0
  260. package/jasmine.json +6 -0
  261. package/package.json +67 -0
  262. package/src/assumptions.spec.mts +45 -0
  263. package/src/common/aws-constants.mts +5 -0
  264. package/src/common/bin/bin-types.mts +17 -0
  265. package/src/common/cache/cache-types.mts +53 -0
  266. package/src/common/comment/comment-constants.mts +10 -0
  267. package/src/common/comment/comment-helper.mts +211 -0
  268. package/src/common/comment/comment-types.mts +19 -0
  269. package/src/common/display/display-helper.mts +88 -0
  270. package/src/common/display/display-types.mts +108 -0
  271. package/src/common/encrypt/encrypt-constants.mts +28 -0
  272. package/src/common/encrypt/encrypt-types.mts +130 -0
  273. package/src/common/error/error-constants.mts +8 -0
  274. package/src/common/error/error-helper.mts +155 -0
  275. package/src/common/error/error-types.mts +62 -0
  276. package/src/common/form/form-helper.mts +253 -0
  277. package/src/common/form/form-items.mts +236 -0
  278. package/src/common/import-export/import-export-types.mts +18 -0
  279. package/src/common/legacy/about-legacy.md +0 -0
  280. package/src/common/legacy/legacy-types.mts +0 -0
  281. package/src/common/link/link-constants.mts +1 -0
  282. package/src/common/link/link-helper.mts +155 -0
  283. package/src/common/link/link-types.mts +16 -0
  284. package/src/common/other/graph-helper.mts +853 -0
  285. package/src/common/other/ibgib-helper.mts +671 -0
  286. package/src/common/other/other-constants.mts +76 -0
  287. package/src/common/other/other-types.mts +186 -0
  288. package/src/common/other/svg-constants.mts +1 -0
  289. package/src/common/other/svg-helper.mts +238 -0
  290. package/src/common/pic/pic-constants.mts +13 -0
  291. package/src/common/pic/pic-helper.mts +295 -0
  292. package/src/common/pic/pic-types.mts +29 -0
  293. package/src/common/root/root-constants.mts +41 -0
  294. package/src/common/root/root-types.mts +8 -0
  295. package/src/common/tag/tag-constants.mts +34 -0
  296. package/src/common/tag/tag-types.mts +19 -0
  297. package/src/core-constants.mts +506 -0
  298. package/src/core-helper.mts +33 -0
  299. package/src/core-types.mts +519 -0
  300. package/src/helper.spec.mts +64 -0
  301. package/src/index.mts +1 -0
  302. package/src/witness/app/app-base-v1.mts +584 -0
  303. package/src/witness/app/app-constants.mts +16 -0
  304. package/src/witness/app/app-helper.mts +322 -0
  305. package/src/witness/app/app-types.mts +252 -0
  306. package/src/witness/app/chat-app/chat-app-types.mts +40 -0
  307. package/src/witness/app/flash-app/flash-app-types.mts +38 -0
  308. package/src/witness/app/raw-app/raw-app-types.mts +40 -0
  309. package/src/witness/app/todo-app/todo-app-types.ts +59 -0
  310. package/src/witness/robbot/robbot-base-v1.ts +1531 -0
  311. package/src/witness/robbot/robbot-constants.mts +25 -0
  312. package/src/witness/robbot/robbot-helper.mts +676 -0
  313. package/src/witness/robbot/robbot-helper.spec.mts +135 -0
  314. package/src/witness/robbot/robbot-types.mts +797 -0
  315. package/src/witness/space/bootstrap/bootstrap-constants.mts +15 -0
  316. package/src/witness/space/inner-space-v1.ts +372 -0
  317. package/src/witness/space/outer-space/outer-space-constants.mts +1 -0
  318. package/src/witness/space/outer-space/outer-space-helper.mts +91 -0
  319. package/src/witness/space/outer-space/outer-space-types.mts +627 -0
  320. package/src/witness/space/space-base-v1.mts +414 -0
  321. package/src/witness/space/space-constants.mts +208 -0
  322. package/src/witness/space/space-helper.mts +3242 -0
  323. package/src/witness/space/space-types.mts +476 -0
  324. package/src/witness/witness-base-v1.ts +325 -0
  325. package/src/witness/witness-constants.mts +2 -0
  326. package/src/witness/witness-form-builder.mts +128 -0
  327. package/src/witness/witness-helper.mts +256 -0
  328. package/src/witness/witness-types.mts +249 -0
  329. package/tsconfig.json +15 -0
  330. package/tsconfig.test.json +10 -0
@@ -0,0 +1,189 @@
1
+ {
2
+ // Place your ionic-gib workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
3
+ // description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
4
+ // is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
5
+ // used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
6
+ // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
7
+ // Placeholders with the same ids are connected.
8
+ // Example:
9
+ // "Print to console": {
10
+ // "scope": "javascript,typescript",
11
+ // "prefix": "log",
12
+ // "body": [
13
+ // "console.log('$1');",
14
+ // "$2"
15
+ // ],
16
+ // "description": "Log output to console"
17
+ // }
18
+ "lc try..catch rethrow": {
19
+ "scope": "javascript,typescript",
20
+ "prefix": "lc_trycatch_rethrow",
21
+ "body": [
22
+ "const lc = `\\${this.lc}[\\${this.$1.name}]`;",
23
+ "try {",
24
+ "\t$SELECTION$0",
25
+ "} catch (error) {",
26
+ "\tconsole.error(`\\${lc} \\${error.message}`);",
27
+ "\tthrow error;",
28
+ "}"
29
+ ],
30
+ },
31
+ "lc try..catch..finally rethrow": {
32
+ "scope": "javascript,typescript",
33
+ "prefix": "lc_trycatchfinally_rethrow",
34
+ "body": [
35
+ "const lc = `\\${this.lc}[\\${this.$1.name}]`;",
36
+ "try {",
37
+ "\t$SELECTION$0",
38
+ "} catch (error) {",
39
+ "\tconsole.error(`\\${lc} \\${error.message}`);",
40
+ "\tthrow error;",
41
+ "} finally {",
42
+ "\t$2",
43
+ "}"
44
+ ],
45
+ },
46
+ "lc try..catch..finally rethrow with logging": {
47
+ "scope": "javascript,typescript",
48
+ "prefix": "lc_trycatchfinally_rethrow_withlogging",
49
+ "body": [
50
+ "const lc = `\\${this.lc}[\\${this.$1.name}]`;",
51
+ "try {",
52
+ "\tif (logalot) { console.log(`\\${lc} starting... (I: $RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$CURRENT_YEAR_SHORT)`); }",
53
+ "\t$SELECTION$0",
54
+ "} catch (error) {",
55
+ "\tconsole.error(`\\${lc} \\${error.message}`);",
56
+ "\tthrow error;",
57
+ "} finally {",
58
+ "\tif (logalot) { console.log(`\\${lc} complete.`); }",
59
+ "}"
60
+ ],
61
+ },
62
+ "func async lc try..catch rethrow": {
63
+ "scope": "javascript,typescript",
64
+ "prefix": "func_lc_trycatch_rethrow",
65
+ "body": [
66
+ "${1:export async function} ${2:fnName}({",
67
+ "\t$3,",
68
+ "}: {",
69
+ "\t$3: $4,",
70
+ "}): Promise<$5> {",
71
+ "\tconst lc = `\\${this.lc}[\\${this.$2.name}]`;",
72
+ "\ttry {",
73
+ "\t\t$SELECTION$0",
74
+ "\t} catch (error) {",
75
+ "\t\tconsole.error(`\\${lc} \\${error.message}`);",
76
+ "\t\tthrow error;",
77
+ "\t}",
78
+ "}"
79
+ ],
80
+ },
81
+ "func async lc try..catch..finally rethrow": {
82
+ "scope": "javascript,typescript",
83
+ "prefix": "func_lc_trycatchfinally_rethrow",
84
+ "body": [
85
+ "${1:export async function} ${2:fnName}({",
86
+ "\t$3,",
87
+ "}: {",
88
+ "\t$3: $4,",
89
+ "}): Promise<$5> {",
90
+ "\tconst lc = `\\${this.lc}[\\${this.$2.name}]`;",
91
+ "\ttry {",
92
+ "\t\t$SELECTION$0",
93
+ "\t} catch (error) {",
94
+ "\t\tconsole.error(`\\${lc} \\${error.message}`);",
95
+ "\t\tthrow error;",
96
+ "\t} finally {",
97
+ "\t\t$6",
98
+ "\t}",
99
+ "}"
100
+ ],
101
+ },
102
+ "func async lc try..catch..finally rethrow with logging": {
103
+ "scope": "javascript,typescript",
104
+ "prefix": "func_lc_trycatchfinally_rethrow_withlogging",
105
+ "body": [
106
+ "${1:export async function} ${2:fnName}({",
107
+ "\t$3,",
108
+ "}: {",
109
+ "\t$3: $4,",
110
+ "}): Promise<$5> {",
111
+ "\tconst lc = `\\${this.lc}[\\${this.$2.name}]`;",
112
+ "\ttry {",
113
+ "\t\tif (logalot) { console.log(`\\${lc} starting... (I: $RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$CURRENT_YEAR_SHORT)`); }",
114
+ "\t\t$SELECTION$0",
115
+ "\t} catch (error) {",
116
+ "\t\tconsole.error(`\\${lc} \\${error.message}`);",
117
+ "\t\tthrow error;",
118
+ "\t} finally {",
119
+ "\t\tif (logalot) { console.log(`\\${lc} complete.`); }",
120
+ "\t}",
121
+ "}"
122
+ ],
123
+ },
124
+ "throw new error with guid": {
125
+ "scope": "javascript,typescript",
126
+ "prefix": "throw_new_error_with_guid",
127
+ "body": [
128
+ "$0throw new Error(`$1 (E: $RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$CURRENT_YEAR_SHORT)`); "
129
+ ],
130
+ },
131
+ "if..throw with guid": {
132
+ "scope": "javascript,typescript",
133
+ "prefix": "if_throw_with_guid",
134
+ "body": [
135
+ "$0if ($1) { throw new Error(`$2 (E: $RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$CURRENT_YEAR_SHORT)`); }"
136
+ ],
137
+ },
138
+ "if logalot log": {
139
+ "scope": "javascript,typescript",
140
+ "prefix": "if_logalot_log",
141
+ "body": [
142
+ "$0if (logalot$1) { console.${2:log}(`\\${lc} $3 (I: $RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$CURRENT_YEAR_SHORT)`); }"
143
+ ],
144
+ },
145
+ "surround log if logalot log": {
146
+ "scope": "javascript,typescript",
147
+ "prefix": "surround_log_if_logalot",
148
+ "body": [
149
+ "if (logalot) { $SELECTION }"
150
+ ],
151
+ },
152
+ "surround if logalot timer console time-timeEnd": {
153
+ "scope": "javascript,typescript",
154
+ "prefix": "surround_if_logalot_timer_console_time_timeend",
155
+ "body": [
156
+ "let timerName: string;",
157
+ "const timerEnabled = true",
158
+ "if (logalot && timerEnabled) {",
159
+ "\ttimerName = lc.substring(0, ${1:24}) + '[timer $RANDOM_HEX]';",
160
+ "\tconsole.log(`\\${timerName} starting... (I: $RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$CURRENT_YEAR_SHORT)`);",
161
+ "\tconsole.time(timerName);",
162
+ "}",
163
+ "// can intersperse with calls to console.timeLog for intermediate times",
164
+ "// if (logalot) { console.timeLog(timerName); }",
165
+ "",
166
+ "$0$SELECTION",
167
+ "",
168
+ "if (logalot && timerEnabled) {",
169
+ "\tconsole.timeEnd(timerName);",
170
+ "\tconsole.log(`\\${timerName} complete.`);",
171
+ "}",
172
+ ],
173
+ },
174
+ "if logalot global ibgib timer": {
175
+ "scope": "javascript,typescript",
176
+ "prefix": "if_logalot_ibgib_timer",
177
+ "body": [
178
+ "if (logalot) { console.log(`\\${lc}\\${GLOBAL_TIMER_NAME}`); console.timeLog(GLOBAL_TIMER_NAME); }$0"
179
+ ],
180
+ },
181
+ "return early": {
182
+ "scope": "javascript,typescript",
183
+ "prefix": "return_early",
184
+ "description": "I like to indicate returning early in a function in a comment, so it's more obvious in the editor if I'm scanning for comments.",
185
+ "body": [
186
+ "return$1; /* <<<< returns early */$0",
187
+ ],
188
+ },
189
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ // Use IntelliSense to learn about possible attributes.
3
+ // Hover to view descriptions of existing attributes.
4
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
+ "version": "0.2.0",
6
+ "configurations": [
7
+ {
8
+ "type": "node",
9
+ "request": "launch",
10
+ "name": "npm debug",
11
+ "runtimeExecutable": "npm",
12
+ "runtimeArgs": [
13
+ "run",
14
+ "debug",
15
+ ],
16
+ "port": 9229,
17
+ "sourceMaps": true,
18
+ "skipFiles": [
19
+ "<node_internals>/**"
20
+ ]
21
+ },
22
+
23
+ ]
24
+ }
@@ -0,0 +1,56 @@
1
+ {
2
+ "typescript.tsdk": "node_modules/typescript/lib",
3
+ "search.exclude": {
4
+ "**/*.BAK": true,
5
+ "**/*.bak": true,
6
+ "**/dist": true
7
+ },
8
+ "files.watcherExclude": {
9
+ "**/*.BAK": true,
10
+ "**/*.bak": true
11
+ },
12
+ "editor.formatOnSave": true,
13
+ "files.insertFinalNewline": true,
14
+ "files.trimFinalNewlines": true,
15
+ "debug.node.autoAttach": "on",
16
+ "files.trimTrailingWhitespace": true,
17
+ "workbench.colorTheme": "Kimbie Dark",
18
+ "workbench.colorCustomizations": {
19
+ "editor.background": "#08143c",
20
+ "sideBar.background": "#0e1a42",
21
+ "editor.lineHighlightBackground": "#00ff2f18",
22
+ "activityBar.activeBackground": "#3333ff",
23
+ "activityBar.background": "#3333ff",
24
+ "activityBar.foreground": "#e7e7e7",
25
+ "activityBar.inactiveForeground": "#e7e7e799",
26
+ "activityBarBadge.background": "#600000",
27
+ "activityBarBadge.foreground": "#e7e7e7",
28
+ "commandCenter.border": "#e7e7e799",
29
+ "sash.hoverBorder": "#3333ff",
30
+ "statusBar.background": "#0000ff",
31
+ "statusBar.foreground": "#e7e7e7",
32
+ "statusBarItem.hoverBackground": "#3333ff",
33
+ "statusBarItem.remoteBackground": "#0000ff",
34
+ "statusBarItem.remoteForeground": "#e7e7e7",
35
+ "titleBar.activeBackground": "#0000ff",
36
+ "titleBar.activeForeground": "#e7e7e7",
37
+ "titleBar.inactiveBackground": "#0000ff99",
38
+ "titleBar.inactiveForeground": "#e7e7e799"
39
+ },
40
+ "editor.tokenColorCustomizations": {
41
+ "[Kimbie Dark]": {
42
+ "variables": "#c77a22",
43
+ "comments": "#fffb128c",
44
+ "textMateRules": [
45
+ {
46
+ "name": "Lists",
47
+ "scope": "markup.list",
48
+ "settings": {
49
+ "foreground": "#cb76d6"
50
+ }
51
+ },
52
+ ],
53
+ }
54
+ },
55
+ "peacock.color": "blue"
56
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ // See https://go.microsoft.com/fwlink/?LinkId=733558
3
+ // for the documentation about the tasks.json format
4
+ "version": "2.0.0",
5
+ "tasks": [
6
+ {
7
+ "type": "npm",
8
+ "script": "build",
9
+ "group": "build",
10
+ "problemMatcher": []
11
+ },
12
+ {
13
+ "type": "npm",
14
+ "script": "test",
15
+ "group": "build",
16
+ "problemMatcher": []
17
+ },
18
+ {
19
+ "type": "npm",
20
+ "script": "clean",
21
+ "group": "build",
22
+ "problemMatcher": []
23
+ },
24
+ {
25
+ "type": "npm",
26
+ "script": "build:test",
27
+ "group": "build",
28
+ "problemMatcher": []
29
+ },
30
+ {
31
+ "type": "npm",
32
+ "script": "prepare:publish",
33
+ "group": "build",
34
+ "problemMatcher": []
35
+ }
36
+ ],
37
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ ## 0.0.1
2
+ * getting basic folder structure going
3
+ * working mostly off of the existing ts-gib (v0.4.1)
4
+ * removed mocha
5
+ * trying out solutions for unit testing in both node and browser.
6
+ * spaces should be executing in both contexts.
7
+ * jasmine seems to be working atm for node.
8
+ * trying just jasmine because it "should" be able to work even
9
+ without using karma as the test runner.
10
+ * i only need rudimentary headless running at the space level (this lib)
11
+ because i'm not actually doing an app here.
package/README.md ADDED
@@ -0,0 +1,215 @@
1
+ # 🚧 wip.
2
+
3
+ I am working towards creating the fundamental es module package structure before
4
+ pulling out behavior from the [ionic-gib](https://github.com/wraiford/ibgib/tree/v0.2.729/ionic-gib) project into this lib. so this is just a
5
+ shell right now.
6
+
7
+ # forward
8
+
9
+ I have created a working MVP for ibgib that shows some of the potential for the
10
+ architecture:
11
+
12
+ * try it out
13
+ * https://ibgib.space
14
+ * pre-refactored MVP codebase on GitHub
15
+ * `ionic-gib`: https://github.com/wraiford/ibgib/tree/v0.2.729/ionic-gib
16
+ * "pre-refactored" = doesn't use this core-gib lib, but rather is the
17
+ springboard/"carcass" for it.
18
+ * base ibgib protocol graphing substrate lib on GitLab
19
+ * `ts-gib`: https://gitlab.com/ibgib/ts-gib/-/tree/master
20
+
21
+ # core-gib
22
+
23
+ `core-gib` is the intermediate ibgib substrate that provides functionality for basic ibgib interactions.
24
+
25
+ This includes plumbing for the following primary areas:
26
+
27
+ * witnesses
28
+ * spaces
29
+ * apps
30
+ * robbots
31
+
32
+ _note: many of these could technically be its own library, but at the very least for now these will stay within this core library until it seems they should be broken out._
33
+
34
+ This sits on top of the lowest level `ts-gib` library, which provides the very basic
35
+ primitives used in the mechanics of ibgib graphing.
36
+
37
+ ## witnesses
38
+
39
+ An ibgib "witness" is the lowest level of ibgib in code that provides behavior
40
+ that is associated with its ibgib data. It is so called because it's meant to
41
+ convey to us that an ibgib is not some impartial, absolute function but rather
42
+ _always has a POV_. It is like if you take a function and abstract away
43
+ specifics of how it gets its information (be it on a stack, heap, at a local RAM
44
+ location address, etc.)
45
+
46
+ So in short, a witness is a distributed computation metaversal function, but
47
+ personified in order to remind each of us of anything's fallibility (including
48
+ computer functions).
49
+
50
+ ### witness in code
51
+
52
+ With this in mind, let's look at the witness interface definitions in
53
+ TypeScript, with generic types and comments removed for clarity.
54
+
55
+ ```typescript
56
+ export interface IbGib {
57
+ ib: Ib; // string
58
+ gib?: Gib; // string
59
+ }
60
+
61
+ export interface IbGibWithDataAndRel8ns<...> extends IbGib {
62
+ data?: TData; // object/map of string->any
63
+ rel8ns?: TRel8ns; // map of string->string[]
64
+ }
65
+
66
+ export interface Witness<...> extends IbGibWithDataAndRel8ns<...> {
67
+ witness(arg: TIbGibIn): Promise<TIbGibOut | undefined>;
68
+ }
69
+ ```
70
+
71
+ This last `Witness` interface has a single member: the `witness` function. This
72
+ accepts a single ibgib arg and returns a single ibgib arg. Since each ibgib is
73
+ content addressed (*1), this allows for a function addressing scheme that
74
+ effectively works in an infinite addressing space.
75
+
76
+ Considering this, the ibgib + witness design can be thought of as a superset of
77
+ all programming languages with `witness` ibgib acting similar to how we think of
78
+ functions. So inter-witness communications are at the extreme of functional
79
+ programming. Or said another way it can describe any programming language. But
80
+ when it comes to execution, adding the isomorphic transformation into the ibgib
81
+ description space would necessarily add overhead and most likely create
82
+ unfeasible execution times (until computation power vastly improves relative to
83
+ our current POV in time). Or in short, it would be NECESSARILY SLOWER, to the
84
+ point of local impracticality.
85
+
86
+ Still, it's important to think each witness as a universally addressed function,
87
+ and each space as a special case witness whose job is colocation.
88
+
89
+ [*1] primitives and other ibgibs without a gib hash, like "6^gib" or "hello^gib", are still "content addressed", it's simply the value is the address itself.
90
+
91
+ ## spaces
92
+
93
+ So a "witness" is an ibgib with behavior, i.e. doesn't just have data. A "space"
94
+ is one kind of witness. Its primary job is to collocate ibgib.
95
+
96
+ _nuance: The implementation of "collocation" is not concrete and can be decided by - and vary wildly by - the implementing class._
97
+
98
+ ### types of spaces
99
+
100
+ Ideally all spaces are to be considered equally, with the idea being that you
101
+ "simply" treat them as buckets of data. As such, we can think of them like a
102
+ bucket or a repo with just a couple capabilities: `get`, `put`, etc.
103
+
104
+ But when dealing with the process of living, temporal data dynamics, we must
105
+ consider one key aspect of data: **perspective**, i.e. POV. As such, there are
106
+ necessarily(?) three "types" of space with respect to POV:
107
+
108
+ 1. local space
109
+ 2. outer space
110
+ 3. inner space
111
+
112
+ These are currently implemented in the ionic-gib MVP as follows:
113
+
114
+ 1. local space
115
+ * implemented with [`IonicSpace_V1`](https://github.com/wraiford/ibgib/blob/ed2d09c411dfdbc916e7841f1a0ccb6b559c303a/ionic-gib/src/app/common/witnesses/spaces/ionic-space-v1.ts)
116
+ * uses [capacitor filesystem api (v4)](https://capacitorjs.com/docs/apis/filesystem)
117
+ as indexeddb substrate
118
+ 2. outer space
119
+ * implemented with [`AWSDynamoSpace_V1`](https://github.com/wraiford/ibgib/blob/ed2d09c411dfdbc916e7841f1a0ccb6b559c303a/ionic-gib/src/app/common/witnesses/spaces/aws-dynamo-space-v1.ts#L854)
120
+ * this is implemented as a "merge" space, in that when ibgibs are "put" into
121
+ the space, timelines are dynamically merged using a CRDT-like merging
122
+ algorithm that applies unapplied DNA transforms
123
+ * uses DynamoDB for most ibgib data stored as four string fields ([max string size of 400 KB](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ServiceQuotas.html))
124
+ * uses S3 for larger ibgibs with DynamoDB entries that indicate S3 storage
125
+ 3. inner space
126
+ * the [InnerSpace_V1](https://github.com/wraiford/ibgib/blob/ed2d09c411dfdbc916e7841f1a0ccb6b559c303a/ionic-gib/src/app/common/witnesses/spaces/inner-space-v1.ts) is not used or tested
127
+ * it is only sketched
128
+ * better composeability will be required for inner spaces to be utilized
129
+
130
+ ## witnesses, and thus spaces, as universally addressed functions
131
+
132
+ If you think of a function in a programming language, it has a couple of characteristics:
133
+
134
+ * has an address
135
+ * has at least one parameter, which ultimately has an an address (either in the stack/heap or a pointer to memory)
136
+ * returns 0-1+ data structures
137
+
138
+
139
+ ## spaces related to witnesses
140
+
141
+ ## testing
142
+
143
+ ### importmaps - `npm run test:browser` fails
144
+
145
+ as a workaround for bleeding edge ES module consumption (let alone testing
146
+ frameworks for them), I have kluged a workaround by editing
147
+ `/node_modules/jasmine-browser-runner/run.html.ejs` to include an import map
148
+ section. So atow paste the following code before any other `script` tags in the
149
+ `head` section. (the versions may need to change):
150
+
151
+
152
+ _note: atow I am copy/pasting this text whenever I reinstall `node_modules` folder._
153
+
154
+ _note: if you are having CORS issues, it may be due to the cdn being down._
155
+
156
+
157
+ using **unpkg**:
158
+
159
+ ```html
160
+ <script type="importmap">
161
+ {
162
+ "imports": {
163
+ "@ibgib/helper-gib": "https://unpkg.com/@ibgib/helper-gib@0.0.4/dist/index.mjs",
164
+ "@ibgib/helper-gib/": "https://unpkg.com/@ibgib/helper-gib@0.0.4/"
165
+ }
166
+ }
167
+ </script>
168
+ ```
169
+
170
+ **using jsdelivr.net**:
171
+
172
+ ```html
173
+ <script type="importmap">
174
+ {
175
+ "imports": {
176
+ "@ibgib/helper-gib": "https://cdn.jsdelivr.net/npm/@ibgib/helper-gib@0.0.4/dist/index.mjs",
177
+ "@ibgib/helper-gib/": "https://cdn.jsdelivr.net/npm/@ibgib/helper-gib@0.0.4/"
178
+ }
179
+ }
180
+ </script>
181
+ ```
182
+
183
+
184
+ # carcass related
185
+
186
+ ## find and replace patterns
187
+
188
+ ### remove constants scoping
189
+
190
+ import \* as c from .+
191
+
192
+ ### scoped ts-gib for helper first
193
+
194
+ (import .+')ts-gib(.*helper)';
195
+ $1@ibgib/ts-gib$2.mjs';
196
+
197
+ ### scoped ts-gib for non-helper next
198
+
199
+ (import .+')ts-gib(.*)';
200
+ $1@ibgib/ts-gib$2';
201
+
202
+ ### non-mjs suffixed imports
203
+
204
+ (from '.+[\w\/]\w\w\w)'
205
+ $1.mjs'
206
+
207
+ ### add index.mjs explicit to folder imports
208
+
209
+ (from '.+/V1)'
210
+ $1/index.mjs'
211
+
212
+ ### convert cast to use `as` operator
213
+
214
+ (<)(\w+)(>)([\w.!\?]+)(\W)
215
+ ($4 as $2)$5
@@ -0,0 +1,7 @@
1
+ export {};
2
+ /**
3
+ * @module aws-constants
4
+ *
5
+ * this is to be moved into the aws-dynamodb-sync-space-gib lib.
6
+ */
7
+ //# sourceMappingURL=aws-constants.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aws-constants.d.mts","sourceRoot":"","sources":["../../src/common/aws-constants.mts"],"names":[],"mappings":";AAAA;;;;GAIG"}
@@ -0,0 +1,7 @@
1
+ export {};
2
+ /**
3
+ * @module aws-constants
4
+ *
5
+ * this is to be moved into the aws-dynamodb-sync-space-gib lib.
6
+ */
7
+ //# sourceMappingURL=aws-constants.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aws-constants.mjs","sourceRoot":"","sources":["../../src/common/aws-constants.mts"],"names":[],"mappings":";AAAA;;;;GAIG"}
@@ -0,0 +1,17 @@
1
+ import { IbGib_V1 } from '@ibgib/ts-gib/dist/V1/index.mjs';
2
+ /**
3
+ * For pic binaries, this is a base 64 encoded string of the pic's image data.
4
+
5
+ * @see {@link BinIbGib_V1}
6
+ */
7
+ export type BinData_V1 = any;
8
+ /**
9
+ * IbGib for a binary, which right now atow just means a pic.
10
+ *
11
+ * Also for now, BinIbGib has no rel8ns, only data.
12
+ *
13
+ * @see {@link BinData_V1}
14
+ */
15
+ export interface BinIbGib_V1 extends IbGib_V1<any> {
16
+ }
17
+ //# sourceMappingURL=bin-types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin-types.d.mts","sourceRoot":"","sources":["../../../src/common/bin/bin-types.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAE3D;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,GAAG,CAAC;AAE7B;;;;;;GAMG;AACH,MAAM,WAAW,WAAY,SAAQ,QAAQ,CAAC,GAAG,CAAC;CAAI"}
@@ -0,0 +1,3 @@
1
+ ;
2
+ export {};
3
+ //# sourceMappingURL=bin-types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin-types.mjs","sourceRoot":"","sources":["../../../src/common/bin/bin-types.mts"],"names":[],"mappings":"AAgBsD,CAAC"}
@@ -0,0 +1,57 @@
1
+ import { IbGibAddr } from '@ibgib/ts-gib';
2
+ import { IbGib_V1 } from '@ibgib/ts-gib/dist/V1/index.mjs';
3
+ export interface IbGibCacheInfo {
4
+ /**
5
+ * The "primary key" of the cache info. If {@link addrScope} is not provided,
6
+ * then atow this will be the only location information for the ibGib.
7
+ */
8
+ addr: IbGibAddr;
9
+ /**
10
+ * If provided, this will be used to identify the cache info in combination
11
+ * with the addr. Else, just the addr will be used.
12
+ *
13
+ * So, e.g., you may store an ibGib item by
14
+ * @example { addr: comment abc^123, addrScope: 'item', ibGib, other: item }
15
+ */
16
+ addrScope?: string;
17
+ /**
18
+ * ibGib reference.
19
+ */
20
+ ibGib: IbGib_V1;
21
+ /**
22
+ * Place to store additional associated cached data with the ibGib.
23
+ *
24
+ * ## driving use case
25
+ *
26
+ * I want to cache the entire IbGibItem for many IbGibComponentBase classes to
27
+ * speed up the entire loading (not just the loading of the ibGib property
28
+ * itself from storage).
29
+ *
30
+ * atow I'm storing a separate entry with addr + this.lc for using this other
31
+ * property.
32
+ */
33
+ other?: any;
34
+ tjpAddr?: IbGibAddr;
35
+ tjpIbGib?: IbGib_V1;
36
+ }
37
+ /**
38
+ * Using this for a quick implementation for caching.
39
+ *
40
+ * ## future
41
+ *
42
+ * change this to an ibgib (in memory) innerspace. then we can pass in
43
+ * the innerspace ibgib instead of just setting a property. this will make
44
+ * it more extensible in the future (i think...)
45
+ */
46
+ export interface IbGibCacheService {
47
+ has({ addr, addrScope }: {
48
+ addr: IbGibAddr;
49
+ addrScope?: string;
50
+ }): Promise<boolean>;
51
+ put(info: IbGibCacheInfo): Promise<void>;
52
+ get({ addr, addrScope }: {
53
+ addr: IbGibAddr;
54
+ addrScope?: string;
55
+ }): Promise<IbGibCacheInfo | undefined>;
56
+ }
57
+ //# sourceMappingURL=cache-types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache-types.d.mts","sourceRoot":"","sources":["../../../src/common/cache/cache-types.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAM,MAAM,iCAAiC,CAAC;AAG/D,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,EAAE,QAAQ,CAAC;IAChB;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,iBAAiB;IAChC,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACpF,GAAG,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzC,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC,CAAC;CACxG"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=cache-types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache-types.mjs","sourceRoot":"","sources":["../../../src/common/cache/cache-types.mts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * comment ibs atow are comment [commentText substring]
3
+ */
4
+ export declare const DEFAULT_COMMENT_TEXT_IB_SUBSTRING_LENGTH = 20;
5
+ /**
6
+ * comment ib can have additional metadata string,
7
+ *
8
+ * @example "comment thisisacomm here_is_addl_metadata"
9
+ */
10
+ export declare const DEFAULT_COMMENT_METADATA_IB_SUBSTRING_LENGTH = 64;
11
+ //# sourceMappingURL=comment-constants.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment-constants.d.mts","sourceRoot":"","sources":["../../../src/common/comment/comment-constants.mts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,wCAAwC,KAAK,CAAC;AAC3D;;;;GAIG;AACH,eAAO,MAAM,4CAA4C,KAAK,CAAC"}