@ibgib/web-gib 0.0.1

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 (372) hide show
  1. package/.ibgibignore +30 -0
  2. package/.vscode/ibgib-snippets.code-snippets +309 -0
  3. package/.vscode/launch.json +25 -0
  4. package/.vscode/settings.json +68 -0
  5. package/.vscode/tasks.json +38 -0
  6. package/CHANGELOG.md +427 -0
  7. package/README.md +66 -0
  8. package/dist/agent-texts/common-agent-texts.d.mts +14 -0
  9. package/dist/agent-texts/common-agent-texts.d.mts.map +1 -0
  10. package/dist/agent-texts/common-agent-texts.mjs +51 -0
  11. package/dist/agent-texts/common-agent-texts.mjs.map +1 -0
  12. package/dist/agent-texts/primary-agent-texts.d.mts +16 -0
  13. package/dist/agent-texts/primary-agent-texts.d.mts.map +1 -0
  14. package/dist/agent-texts/primary-agent-texts.mjs +27 -0
  15. package/dist/agent-texts/primary-agent-texts.mjs.map +1 -0
  16. package/dist/agent-texts/project-agent-texts.d.mts +8 -0
  17. package/dist/agent-texts/project-agent-texts.d.mts.map +1 -0
  18. package/dist/agent-texts/project-agent-texts.mjs +29 -0
  19. package/dist/agent-texts/project-agent-texts.mjs.map +1 -0
  20. package/dist/agent-texts/project-child-text-agent-texts.d.mts +5 -0
  21. package/dist/agent-texts/project-child-text-agent-texts.d.mts.map +1 -0
  22. package/dist/agent-texts/project-child-text-agent-texts.mjs +26 -0
  23. package/dist/agent-texts/project-child-text-agent-texts.mjs.map +1 -0
  24. package/dist/agent-texts/projects-agent-texts.d.mts +4 -0
  25. package/dist/agent-texts/projects-agent-texts.d.mts.map +1 -0
  26. package/dist/agent-texts/projects-agent-texts.mjs +15 -0
  27. package/dist/agent-texts/projects-agent-texts.mjs.map +1 -0
  28. package/dist/agent-texts/raw-agent-texts.d.mts +4 -0
  29. package/dist/agent-texts/raw-agent-texts.d.mts.map +1 -0
  30. package/dist/agent-texts/raw-agent-texts.mjs +17 -0
  31. package/dist/agent-texts/raw-agent-texts.mjs.map +1 -0
  32. package/dist/agent-texts/text-editor-agent-texts.d.mts +6 -0
  33. package/dist/agent-texts/text-editor-agent-texts.d.mts.map +1 -0
  34. package/dist/agent-texts/text-editor-agent-texts.mjs +19 -0
  35. package/dist/agent-texts/text-editor-agent-texts.mjs.map +1 -0
  36. package/dist/api/api-constants.d.mts +9 -0
  37. package/dist/api/api-constants.d.mts.map +1 -0
  38. package/dist/api/api-constants.mjs +9 -0
  39. package/dist/api/api-constants.mjs.map +1 -0
  40. package/dist/api/api-index.d.mts +10 -0
  41. package/dist/api/api-index.d.mts.map +1 -0
  42. package/dist/api/api-index.mjs +121 -0
  43. package/dist/api/api-index.mjs.map +1 -0
  44. package/dist/api/api-types.d.mts +36 -0
  45. package/dist/api/api-types.d.mts.map +1 -0
  46. package/dist/api/api-types.mjs +2 -0
  47. package/dist/api/api-types.mjs.map +1 -0
  48. package/dist/api/commands/chat/chat-index.d.mts +3 -0
  49. package/dist/api/commands/chat/chat-index.d.mts.map +1 -0
  50. package/dist/api/commands/chat/chat-index.mjs +9 -0
  51. package/dist/api/commands/chat/chat-index.mjs.map +1 -0
  52. package/dist/api/commands/chat/get-context-info.d.mts +71 -0
  53. package/dist/api/commands/chat/get-context-info.d.mts.map +1 -0
  54. package/dist/api/commands/chat/get-context-info.mjs +130 -0
  55. package/dist/api/commands/chat/get-context-info.mjs.map +1 -0
  56. package/dist/api/commands/chat/hello-world.d.mts +63 -0
  57. package/dist/api/commands/chat/hello-world.d.mts.map +1 -0
  58. package/dist/api/commands/chat/hello-world.mjs +132 -0
  59. package/dist/api/commands/chat/hello-world.mjs.map +1 -0
  60. package/dist/api/commands/chat/tell-user.d.mts +57 -0
  61. package/dist/api/commands/chat/tell-user.d.mts.map +1 -0
  62. package/dist/api/commands/chat/tell-user.mjs +199 -0
  63. package/dist/api/commands/chat/tell-user.mjs.map +1 -0
  64. package/dist/api/commands/command-constants.d.mts +22 -0
  65. package/dist/api/commands/command-constants.d.mts.map +1 -0
  66. package/dist/api/commands/command-constants.mjs +17 -0
  67. package/dist/api/commands/command-constants.mjs.map +1 -0
  68. package/dist/api/commands/command-helpers.d.mts +47 -0
  69. package/dist/api/commands/command-helpers.d.mts.map +1 -0
  70. package/dist/api/commands/command-helpers.mjs +76 -0
  71. package/dist/api/commands/command-helpers.mjs.map +1 -0
  72. package/dist/api/commands/command-service-v1.d.mts +28 -0
  73. package/dist/api/commands/command-service-v1.d.mts.map +1 -0
  74. package/dist/api/commands/command-service-v1.mjs +122 -0
  75. package/dist/api/commands/command-service-v1.mjs.map +1 -0
  76. package/dist/api/commands/command-service.respec.d.mts +7 -0
  77. package/dist/api/commands/command-service.respec.d.mts.map +1 -0
  78. package/dist/api/commands/command-service.respec.mjs +66 -0
  79. package/dist/api/commands/command-service.respec.mjs.map +1 -0
  80. package/dist/api/commands/command-types.d.mts +48 -0
  81. package/dist/api/commands/command-types.d.mts.map +1 -0
  82. package/dist/api/commands/command-types.mjs +12 -0
  83. package/dist/api/commands/command-types.mjs.map +1 -0
  84. package/dist/api/commands/ibgib/get-ibgibs.d.mts +94 -0
  85. package/dist/api/commands/ibgib/get-ibgibs.d.mts.map +1 -0
  86. package/dist/api/commands/ibgib/get-ibgibs.mjs +219 -0
  87. package/dist/api/commands/ibgib/get-ibgibs.mjs.map +1 -0
  88. package/dist/api/commands/ibgib/ibgib-index.d.mts +3 -0
  89. package/dist/api/commands/ibgib/ibgib-index.d.mts.map +1 -0
  90. package/dist/api/commands/ibgib/ibgib-index.mjs +7 -0
  91. package/dist/api/commands/ibgib/ibgib-index.mjs.map +1 -0
  92. package/dist/api/commands/ibgib/mut8-ibgib.d.mts +135 -0
  93. package/dist/api/commands/ibgib/mut8-ibgib.d.mts.map +1 -0
  94. package/dist/api/commands/ibgib/mut8-ibgib.mjs +318 -0
  95. package/dist/api/commands/ibgib/mut8-ibgib.mjs.map +1 -0
  96. package/dist/api/commands/templates/api-function-info.template.d.mts +73 -0
  97. package/dist/api/commands/templates/api-function-info.template.d.mts.map +1 -0
  98. package/dist/api/commands/templates/api-function-info.template.mjs +161 -0
  99. package/dist/api/commands/templates/api-function-info.template.mjs.map +1 -0
  100. package/dist/api/commands/text/text-edit.d.mts +54 -0
  101. package/dist/api/commands/text/text-edit.d.mts.map +1 -0
  102. package/dist/api/commands/text/text-edit.mjs +170 -0
  103. package/dist/api/commands/text/text-edit.mjs.map +1 -0
  104. package/dist/api/commands/text/text-index.d.mts +3 -0
  105. package/dist/api/commands/text/text-index.d.mts.map +1 -0
  106. package/dist/api/commands/text/text-index.mjs +5 -0
  107. package/dist/api/commands/text/text-index.mjs.map +1 -0
  108. package/dist/api/commands/ui/ui-index.d.mts +3 -0
  109. package/dist/api/commands/ui/ui-index.d.mts.map +1 -0
  110. package/dist/api/commands/ui/ui-index.mjs +5 -0
  111. package/dist/api/commands/ui/ui-index.mjs.map +1 -0
  112. package/dist/api/commands/ui/update-css-variables.d.mts +48 -0
  113. package/dist/api/commands/ui/update-css-variables.d.mts.map +1 -0
  114. package/dist/api/commands/ui/update-css-variables.mjs +145 -0
  115. package/dist/api/commands/ui/update-css-variables.mjs.map +1 -0
  116. package/dist/api/function-infos.web.d.mts +15 -0
  117. package/dist/api/function-infos.web.d.mts.map +1 -0
  118. package/dist/api/function-infos.web.mjs +63 -0
  119. package/dist/api/function-infos.web.mjs.map +1 -0
  120. package/dist/assumptions.respec.d.mts +2 -0
  121. package/dist/assumptions.respec.d.mts.map +1 -0
  122. package/dist/assumptions.respec.mjs +41 -0
  123. package/dist/assumptions.respec.mjs.map +1 -0
  124. package/dist/common/project/project-constants.d.mts +38 -0
  125. package/dist/common/project/project-constants.d.mts.map +1 -0
  126. package/dist/common/project/project-constants.mjs +71 -0
  127. package/dist/common/project/project-constants.mjs.map +1 -0
  128. package/dist/common/project/project-helper.d.mts +127 -0
  129. package/dist/common/project/project-helper.d.mts.map +1 -0
  130. package/dist/common/project/project-helper.mjs +683 -0
  131. package/dist/common/project/project-helper.mjs.map +1 -0
  132. package/dist/common/project/project-types.d.mts +91 -0
  133. package/dist/common/project/project-types.d.mts.map +1 -0
  134. package/dist/common/project/project-types.mjs +31 -0
  135. package/dist/common/project/project-types.mjs.map +1 -0
  136. package/dist/common/prompt-functions.web.d.mts +90 -0
  137. package/dist/common/prompt-functions.web.d.mts.map +1 -0
  138. package/dist/common/prompt-functions.web.mjs +426 -0
  139. package/dist/common/prompt-functions.web.mjs.map +1 -0
  140. package/dist/common/settings/settings-constants.d.mts +33 -0
  141. package/dist/common/settings/settings-constants.d.mts.map +1 -0
  142. package/dist/common/settings/settings-constants.mjs +54 -0
  143. package/dist/common/settings/settings-constants.mjs.map +1 -0
  144. package/dist/common/settings/settings-helpers.d.mts +59 -0
  145. package/dist/common/settings/settings-helpers.d.mts.map +1 -0
  146. package/dist/common/settings/settings-helpers.mjs +253 -0
  147. package/dist/common/settings/settings-helpers.mjs.map +1 -0
  148. package/dist/common/settings/settings-types.d.mts +118 -0
  149. package/dist/common/settings/settings-types.d.mts.map +1 -0
  150. package/dist/common/settings/settings-types.mjs +13 -0
  151. package/dist/common/settings/settings-types.mjs.map +1 -0
  152. package/dist/constants.d.mts +34 -0
  153. package/dist/constants.d.mts.map +1 -0
  154. package/dist/constants.mjs +35 -0
  155. package/dist/constants.mjs.map +1 -0
  156. package/dist/foo.d.mts +2 -0
  157. package/dist/foo.d.mts.map +1 -0
  158. package/dist/foo.mjs +19 -0
  159. package/dist/foo.mjs.map +1 -0
  160. package/dist/helpers.d.mts +137 -0
  161. package/dist/helpers.d.mts.map +1 -0
  162. package/dist/helpers.mjs +514 -0
  163. package/dist/helpers.mjs.map +1 -0
  164. package/dist/helpers.web.d.mts +324 -0
  165. package/dist/helpers.web.d.mts.map +1 -0
  166. package/dist/helpers.web.mjs +1133 -0
  167. package/dist/helpers.web.mjs.map +1 -0
  168. package/dist/helpers.web.respec.d.mts +2 -0
  169. package/dist/helpers.web.respec.d.mts.map +1 -0
  170. package/dist/helpers.web.respec.mjs +12 -0
  171. package/dist/helpers.web.respec.mjs.map +1 -0
  172. package/dist/index.d.mts +2 -0
  173. package/dist/index.d.mts.map +1 -0
  174. package/dist/index.mjs +3 -0
  175. package/dist/index.mjs.map +1 -0
  176. package/dist/respec-gib.node.d.mts +2 -0
  177. package/dist/respec-gib.node.d.mts.map +1 -0
  178. package/dist/respec-gib.node.mjs +211 -0
  179. package/dist/respec-gib.node.mjs.map +1 -0
  180. package/dist/spec-helper.node.respec.d.mts +13 -0
  181. package/dist/spec-helper.node.respec.d.mts.map +1 -0
  182. package/dist/spec-helper.node.respec.mjs +50 -0
  183. package/dist/spec-helper.node.respec.mjs.map +1 -0
  184. package/dist/storage/storage-helpers.web.d.mts +108 -0
  185. package/dist/storage/storage-helpers.web.d.mts.map +1 -0
  186. package/dist/storage/storage-helpers.web.mjs +757 -0
  187. package/dist/storage/storage-helpers.web.mjs.map +1 -0
  188. package/dist/storage/storage-types.web.d.mts +30 -0
  189. package/dist/storage/storage-types.web.d.mts.map +1 -0
  190. package/dist/storage/storage-types.web.mjs +2 -0
  191. package/dist/storage/storage-types.web.mjs.map +1 -0
  192. package/dist/types.web.d.mts +42 -0
  193. package/dist/types.web.d.mts.map +1 -0
  194. package/dist/types.web.mjs +2 -0
  195. package/dist/types.web.mjs.map +1 -0
  196. package/dist/ui/component/component-types.d.mts +225 -0
  197. package/dist/ui/component/component-types.d.mts.map +1 -0
  198. package/dist/ui/component/component-types.mjs +2 -0
  199. package/dist/ui/component/component-types.mjs.map +1 -0
  200. package/dist/ui/component/ibgib-component-service.d.mts +70 -0
  201. package/dist/ui/component/ibgib-component-service.d.mts.map +1 -0
  202. package/dist/ui/component/ibgib-component-service.mjs +201 -0
  203. package/dist/ui/component/ibgib-component-service.mjs.map +1 -0
  204. package/dist/ui/component/ibgib-dynamic-component-bases.d.mts +338 -0
  205. package/dist/ui/component/ibgib-dynamic-component-bases.d.mts.map +1 -0
  206. package/dist/ui/component/ibgib-dynamic-component-bases.mjs +1304 -0
  207. package/dist/ui/component/ibgib-dynamic-component-bases.mjs.map +1 -0
  208. package/dist/ui/ui-constants.d.mts +12 -0
  209. package/dist/ui/ui-constants.d.mts.map +1 -0
  210. package/dist/ui/ui-constants.mjs +93 -0
  211. package/dist/ui/ui-constants.mjs.map +1 -0
  212. package/dist/ui/ui-helpers.d.mts +42 -0
  213. package/dist/ui/ui-helpers.d.mts.map +1 -0
  214. package/dist/ui/ui-helpers.mjs +198 -0
  215. package/dist/ui/ui-helpers.mjs.map +1 -0
  216. package/dist/ui/ui-types.d.mts +13 -0
  217. package/dist/ui/ui-types.d.mts.map +1 -0
  218. package/dist/ui/ui-types.mjs +2 -0
  219. package/dist/ui/ui-types.mjs.map +1 -0
  220. package/dist/witness/agent/agent-constants.d.mts +97 -0
  221. package/dist/witness/agent/agent-constants.d.mts.map +1 -0
  222. package/dist/witness/agent/agent-constants.mjs +98 -0
  223. package/dist/witness/agent/agent-constants.mjs.map +1 -0
  224. package/dist/witness/agent/agent-helpers.d.mts +106 -0
  225. package/dist/witness/agent/agent-helpers.d.mts.map +1 -0
  226. package/dist/witness/agent/agent-helpers.mjs +601 -0
  227. package/dist/witness/agent/agent-helpers.mjs.map +1 -0
  228. package/dist/witness/agent/agent-one-file.app.d.mts +2 -0
  229. package/dist/witness/agent/agent-one-file.app.d.mts.map +1 -0
  230. package/dist/witness/agent/agent-one-file.app.mjs +8 -0
  231. package/dist/witness/agent/agent-one-file.app.mjs.map +1 -0
  232. package/dist/witness/agent/agent-one-file.d.mts +478 -0
  233. package/dist/witness/agent/agent-one-file.d.mts.map +1 -0
  234. package/dist/witness/agent/agent-one-file.mjs +1462 -0
  235. package/dist/witness/agent/agent-one-file.mjs.map +1 -0
  236. package/dist/witness/agent/agent-types.d.mts +83 -0
  237. package/dist/witness/agent/agent-types.d.mts.map +1 -0
  238. package/dist/witness/agent/agent-types.mjs +2 -0
  239. package/dist/witness/agent/agent-types.mjs.map +1 -0
  240. package/dist/witness/agent/agents-service-v1.d.mts +99 -0
  241. package/dist/witness/agent/agents-service-v1.d.mts.map +1 -0
  242. package/dist/witness/agent/agents-service-v1.mjs +453 -0
  243. package/dist/witness/agent/agents-service-v1.mjs.map +1 -0
  244. package/dist/witness/agent/function-info/function-info-one-file.d.mts +192 -0
  245. package/dist/witness/agent/function-info/function-info-one-file.d.mts.map +1 -0
  246. package/dist/witness/agent/function-info/function-info-one-file.mjs +192 -0
  247. package/dist/witness/agent/function-info/function-info-one-file.mjs.map +1 -0
  248. package/dist/witness/agent/gemini/agent-witness-gemini-v1.d.mts +51 -0
  249. package/dist/witness/agent/gemini/agent-witness-gemini-v1.d.mts.map +1 -0
  250. package/dist/witness/agent/gemini/agent-witness-gemini-v1.mjs +928 -0
  251. package/dist/witness/agent/gemini/agent-witness-gemini-v1.mjs.map +1 -0
  252. package/dist/witness/agent/gemini/gemini-agent-factory.d.mts +27 -0
  253. package/dist/witness/agent/gemini/gemini-agent-factory.d.mts.map +1 -0
  254. package/dist/witness/agent/gemini/gemini-agent-factory.mjs +144 -0
  255. package/dist/witness/agent/gemini/gemini-agent-factory.mjs.map +1 -0
  256. package/dist/witness/agent/gemini/gemini-constants.d.mts +36 -0
  257. package/dist/witness/agent/gemini/gemini-constants.d.mts.map +1 -0
  258. package/dist/witness/agent/gemini/gemini-constants.mjs +47 -0
  259. package/dist/witness/agent/gemini/gemini-constants.mjs.map +1 -0
  260. package/dist/witness/agent/gemini/gemini-helpers.d.mts +58 -0
  261. package/dist/witness/agent/gemini/gemini-helpers.d.mts.map +1 -0
  262. package/dist/witness/agent/gemini/gemini-helpers.mjs +210 -0
  263. package/dist/witness/agent/gemini/gemini-helpers.mjs.map +1 -0
  264. package/dist/witness/agent/gemini/gemini-types.d.mts +82 -0
  265. package/dist/witness/agent/gemini/gemini-types.d.mts.map +1 -0
  266. package/dist/witness/agent/gemini/gemini-types.mjs +3 -0
  267. package/dist/witness/agent/gemini/gemini-types.mjs.map +1 -0
  268. package/dist/witness/live-proxy-ibgib/live-proxy-ibgib-one-file.d.mts +136 -0
  269. package/dist/witness/live-proxy-ibgib/live-proxy-ibgib-one-file.d.mts.map +1 -0
  270. package/dist/witness/live-proxy-ibgib/live-proxy-ibgib-one-file.mjs +334 -0
  271. package/dist/witness/live-proxy-ibgib/live-proxy-ibgib-one-file.mjs.map +1 -0
  272. package/dist/witness/space/metaspace/metaspace-webspace/metaspace-webspace-helper.d.mts +35 -0
  273. package/dist/witness/space/metaspace/metaspace-webspace/metaspace-webspace-helper.d.mts.map +1 -0
  274. package/dist/witness/space/metaspace/metaspace-webspace/metaspace-webspace-helper.mjs +267 -0
  275. package/dist/witness/space/metaspace/metaspace-webspace/metaspace-webspace-helper.mjs.map +1 -0
  276. package/dist/witness/space/metaspace/metaspace-webspace/metaspace-webspace.d.mts +134 -0
  277. package/dist/witness/space/metaspace/metaspace-webspace/metaspace-webspace.d.mts.map +1 -0
  278. package/dist/witness/space/metaspace/metaspace-webspace/metaspace-webspace.mjs +389 -0
  279. package/dist/witness/space/metaspace/metaspace-webspace/metaspace-webspace.mjs.map +1 -0
  280. package/dist/witness/space/web-filesystem-space/web-filesystem-space-constants.d.mts +2 -0
  281. package/dist/witness/space/web-filesystem-space/web-filesystem-space-constants.d.mts.map +1 -0
  282. package/dist/witness/space/web-filesystem-space/web-filesystem-space-constants.mjs +2 -0
  283. package/dist/witness/space/web-filesystem-space/web-filesystem-space-constants.mjs.map +1 -0
  284. package/dist/witness/space/web-filesystem-space/web-filesystem-space-helper.d.mts +104 -0
  285. package/dist/witness/space/web-filesystem-space/web-filesystem-space-helper.d.mts.map +1 -0
  286. package/dist/witness/space/web-filesystem-space/web-filesystem-space-helper.mjs +457 -0
  287. package/dist/witness/space/web-filesystem-space/web-filesystem-space-helper.mjs.map +1 -0
  288. package/dist/witness/space/web-filesystem-space/web-filesystem-space-types.d.mts +93 -0
  289. package/dist/witness/space/web-filesystem-space/web-filesystem-space-types.d.mts.map +1 -0
  290. package/dist/witness/space/web-filesystem-space/web-filesystem-space-types.mjs +98 -0
  291. package/dist/witness/space/web-filesystem-space/web-filesystem-space-types.mjs.map +1 -0
  292. package/dist/witness/space/web-filesystem-space/web-filesystem-space-v1.d.mts +73 -0
  293. package/dist/witness/space/web-filesystem-space/web-filesystem-space-v1.d.mts.map +1 -0
  294. package/dist/witness/space/web-filesystem-space/web-filesystem-space-v1.mjs +650 -0
  295. package/dist/witness/space/web-filesystem-space/web-filesystem-space-v1.mjs.map +1 -0
  296. package/generate-version-file.js +29 -0
  297. package/package.json +60 -0
  298. package/src/agent-texts/common-agent-texts.mts +61 -0
  299. package/src/agent-texts/primary-agent-texts.mts +32 -0
  300. package/src/agent-texts/project-agent-texts.mts +29 -0
  301. package/src/agent-texts/project-child-text-agent-texts.mts +30 -0
  302. package/src/agent-texts/projects-agent-texts.mts +17 -0
  303. package/src/agent-texts/raw-agent-texts.mts +18 -0
  304. package/src/agent-texts/text-editor-agent-texts.mts +20 -0
  305. package/src/api/api-constants.mts +8 -0
  306. package/src/api/api-index.mts +110 -0
  307. package/src/api/api-types.mts +36 -0
  308. package/src/api/commands/chat/chat-index.mts +10 -0
  309. package/src/api/commands/chat/get-context-info.mts +196 -0
  310. package/src/api/commands/chat/hello-world.mts +183 -0
  311. package/src/api/commands/chat/tell-user.mts +241 -0
  312. package/src/api/commands/command-constants.mts +17 -0
  313. package/src/api/commands/command-helpers.mts +105 -0
  314. package/src/api/commands/command-service-v1.mts +136 -0
  315. package/src/api/commands/command-service.respec.mts +72 -0
  316. package/src/api/commands/command-types.mts +71 -0
  317. package/src/api/commands/ibgib/get-ibgibs.mts +269 -0
  318. package/src/api/commands/ibgib/ibgib-index.mts +8 -0
  319. package/src/api/commands/ibgib/mut8-ibgib.mts +418 -0
  320. package/src/api/commands/templates/api-function-info.template.mts +212 -0
  321. package/src/api/commands/text/text-edit.mts +217 -0
  322. package/src/api/commands/text/text-index.mts +6 -0
  323. package/src/api/commands/ui/ui-index.mts +6 -0
  324. package/src/api/commands/ui/update-css-variables.mts +187 -0
  325. package/src/api/function-infos.web.mts +66 -0
  326. package/src/assets/fullscreen-dialog.html +18 -0
  327. package/src/assumptions.respec.mts +51 -0
  328. package/src/common/project/project-constants.mts +83 -0
  329. package/src/common/project/project-helper.mts +730 -0
  330. package/src/common/project/project-types.mts +121 -0
  331. package/src/common/prompt-functions.web.mts +447 -0
  332. package/src/common/settings/settings-constants.mts +72 -0
  333. package/src/common/settings/settings-helpers.mts +280 -0
  334. package/src/common/settings/settings-types.mts +137 -0
  335. package/src/constants.mts +39 -0
  336. package/src/foo.mts +13 -0
  337. package/src/helpers.mts +574 -0
  338. package/src/helpers.web.mts +1277 -0
  339. package/src/helpers.web.respec.mts +16 -0
  340. package/src/index.mts +3 -0
  341. package/src/respec-gib.node.mts +199 -0
  342. package/src/spec-helper.node.respec.mts +50 -0
  343. package/src/storage/storage-helpers.web.mts +728 -0
  344. package/src/storage/storage-types.web.mts +29 -0
  345. package/src/types.web.mts +42 -0
  346. package/src/ui/component/component-types.mts +241 -0
  347. package/src/ui/component/ibgib-component-service.mts +201 -0
  348. package/src/ui/component/ibgib-dynamic-component-bases.mts +1369 -0
  349. package/src/ui/ui-constants.mts +101 -0
  350. package/src/ui/ui-helpers.mts +222 -0
  351. package/src/ui/ui-types.mts +11 -0
  352. package/src/witness/agent/agent-constants.mts +122 -0
  353. package/src/witness/agent/agent-helpers.mts +681 -0
  354. package/src/witness/agent/agent-one-file.app.mts +8 -0
  355. package/src/witness/agent/agent-one-file.mts +1665 -0
  356. package/src/witness/agent/agent-types.mts +92 -0
  357. package/src/witness/agent/agents-service-v1.mts +482 -0
  358. package/src/witness/agent/function-info/function-info-one-file.mts +362 -0
  359. package/src/witness/agent/gemini/agent-witness-gemini-v1.mts +910 -0
  360. package/src/witness/agent/gemini/gemini-agent-factory.mts +135 -0
  361. package/src/witness/agent/gemini/gemini-constants.mts +79 -0
  362. package/src/witness/agent/gemini/gemini-helpers.mts +216 -0
  363. package/src/witness/agent/gemini/gemini-types.mts +88 -0
  364. package/src/witness/live-proxy-ibgib/live-proxy-ibgib-one-file.mts +321 -0
  365. package/src/witness/space/metaspace/metaspace-webspace/metaspace-webspace-helper.mts +290 -0
  366. package/src/witness/space/metaspace/metaspace-webspace/metaspace-webspace.mts +407 -0
  367. package/src/witness/space/web-filesystem-space/web-filesystem-space-constants.mts +1 -0
  368. package/src/witness/space/web-filesystem-space/web-filesystem-space-helper.mts +491 -0
  369. package/src/witness/space/web-filesystem-space/web-filesystem-space-types.mts +172 -0
  370. package/src/witness/space/web-filesystem-space/web-filesystem-space-v1.mts +670 -0
  371. package/tsconfig.json +17 -0
  372. package/tsconfig.test.json +10 -0
@@ -0,0 +1,253 @@
1
+ import { clone, extractErrorMsg } from "@ibgib/helper-gib/dist/helpers/utils-helper.mjs";
2
+ import { Factory_V1 } from "@ibgib/ts-gib/dist/V1/factory.mjs";
3
+ import { GLOBAL_LOG_A_LOT } from "../../constants.mjs";
4
+ import { isSettingsType, DEFAULT_SETTINGS_GENERAL, SETTINGS_TYPE_VALID_VALUES, SettingsType, DEFAULT_SETTINGS_TEXTEDITOR, DEFAULT_SETTINGS_DATA_V1, SETTINGS_ATOM, DEFAULT_SETTINGS_PROJECT, DEFAULT_SETTINGS_MINIGAME, DEFAULT_SETTINGS_CHRONOLOGYS } from "./settings-constants.mjs";
5
+ import { getIbAndGib } from "@ibgib/ts-gib/dist/helper.mjs";
6
+ const logalot = GLOBAL_LOG_A_LOT; // change this when you want to turn off verbose logging
7
+ export async function getSettingsScope({ ibGib }) {
8
+ const lc = `[${getSettingsScope.name}]`;
9
+ try {
10
+ if (logalot) {
11
+ console.log(`${lc} starting... (I: 57ac4c0a3448bc5e98ecf5bfb02ce825)`);
12
+ }
13
+ const { ib } = getIbAndGib({ ibGib });
14
+ const atom = ib.split(' ').at(0);
15
+ if (!atom) {
16
+ throw new Error(`(UNEXPECTED) atom falsy? we split the ib by spaces (space-delimiter). this makes no sense. (E: 6a9ea640ae38823aeefc6ec82a05d625)`);
17
+ }
18
+ return `${SETTINGS_ATOM}_${atom}`;
19
+ }
20
+ catch (error) {
21
+ console.error(`${lc} ${extractErrorMsg(error)}`);
22
+ throw error;
23
+ }
24
+ finally {
25
+ if (logalot) {
26
+ console.log(`${lc} complete.`);
27
+ }
28
+ }
29
+ }
30
+ export async function getSectionName({ settingsType, useCase, }) {
31
+ const lc = `[${getSectionName.name}]`;
32
+ try {
33
+ if (logalot) {
34
+ console.log(`${lc} starting... (I: f13dff111048421cad5453f821487825)`);
35
+ }
36
+ if (useCase.includes('_')) {
37
+ throw new Error(`(UNEXPECTED) settingsType.includes('_')? should be kebab-cased or camelCased (E: 8f75e89b9378819ab882cc1870f1e825)`);
38
+ }
39
+ if (settingsType.includes('_')) {
40
+ throw new Error(`(UNEXPECTED) settingsType.includes('_')? should be kebab-cased or camelCased (E: 1d316b0808287c12689d1e882648b825)`);
41
+ }
42
+ return [
43
+ settingsType,
44
+ useCase
45
+ ].join('_');
46
+ }
47
+ catch (error) {
48
+ console.error(`${lc} ${extractErrorMsg(error)}`);
49
+ throw error;
50
+ }
51
+ finally {
52
+ if (logalot) {
53
+ console.log(`${lc} complete.`);
54
+ }
55
+ }
56
+ }
57
+ export function parseSectionName({ sectionName, }) {
58
+ const lc = `[${parseSectionName.name}]`;
59
+ try {
60
+ if (logalot) {
61
+ console.log(`${lc} starting... (I: f5867c51505a3c32f20d5489f2919f25)`);
62
+ }
63
+ if (!sectionName.includes('_')) {
64
+ throw new Error(`invalid sectionName (${sectionName}). Should be a underscore-delimited value in form of "settingsType_useCase" (E: ec0208c6513878f028b68756a818b825)`);
65
+ }
66
+ const [settingsType, useCase] = sectionName.split('_');
67
+ if (!isSettingsType(settingsType)) {
68
+ throw new Error(`invalid settingsType (${settingsType}) found in sectionName (${sectionName}). Must be one of ${SETTINGS_TYPE_VALID_VALUES} (E: 0e1078f6aaa871154182f239a639f825)`);
69
+ }
70
+ return { settingsType, useCase, };
71
+ }
72
+ catch (error) {
73
+ console.error(`${lc} ${extractErrorMsg(error)}`);
74
+ throw error;
75
+ }
76
+ finally {
77
+ if (logalot) {
78
+ console.log(`${lc} complete.`);
79
+ }
80
+ }
81
+ }
82
+ export async function getDefaultSettings({ settingsType, }) {
83
+ const lc = `[${getDefaultSettings.name}]`;
84
+ try {
85
+ if (logalot) {
86
+ console.log(`${lc} starting... (I: f8a03b1bb6d1ecbf52552358f9ea0825)`);
87
+ }
88
+ switch (settingsType) {
89
+ case SettingsType.general:
90
+ return clone(DEFAULT_SETTINGS_GENERAL);
91
+ case SettingsType.textEditor:
92
+ return clone(DEFAULT_SETTINGS_TEXTEDITOR);
93
+ case SettingsType.project:
94
+ return clone(DEFAULT_SETTINGS_PROJECT);
95
+ case SettingsType.minigame:
96
+ return clone(DEFAULT_SETTINGS_MINIGAME);
97
+ case SettingsType.chronologys:
98
+ return clone(DEFAULT_SETTINGS_CHRONOLOGYS);
99
+ default:
100
+ throw new Error(`(UNEXPECTED) unknown settingsType (${settingsType})? right now, we're whitelisting only. SettingsTypes: ${SETTINGS_TYPE_VALID_VALUES} (E: 801a7ade4c0849b308d5c8f8f0318d25)`);
101
+ }
102
+ }
103
+ catch (error) {
104
+ console.error(`${lc} ${extractErrorMsg(error)}`);
105
+ throw error;
106
+ }
107
+ finally {
108
+ if (logalot) {
109
+ console.log(`${lc} complete.`);
110
+ }
111
+ }
112
+ }
113
+ export async function getSettingsSection({ sectionName, settingsIbGib, }) {
114
+ const lc = `[${getSettingsSection.name}]`;
115
+ try {
116
+ if (logalot) {
117
+ console.log(`${lc} starting... (I: 266554b13f6ce6daa85c882f04805825)`);
118
+ }
119
+ if (!settingsIbGib.data) {
120
+ throw new Error(`(UNEXPECTED) settingsIbGib.data falsy? (E: dd3708f0515fb0b4d4024f4d336a3625)`);
121
+ }
122
+ if (!settingsIbGib.data.sections) {
123
+ throw new Error(`(UNEXPECTED) settingsIbGib.data.sections falsy? what was the settingsIbGib even created for? (E: 31f85898a1c854e13440e278a79ceb25)`);
124
+ }
125
+ const sections = settingsIbGib.data.sections ?? {};
126
+ const section = sections[sectionName];
127
+ return section;
128
+ }
129
+ catch (error) {
130
+ console.error(`${lc} ${extractErrorMsg(error)}`);
131
+ throw error;
132
+ }
133
+ finally {
134
+ if (logalot) {
135
+ console.log(`${lc} complete.`);
136
+ }
137
+ }
138
+ }
139
+ export function getSettingsIb({ scope, }) {
140
+ const lc = `[${getSettingsIb.name}]`;
141
+ try {
142
+ if (scope.includes(' ')) {
143
+ console.warn(`${lc} scope includes one or more spaces. These will be converted to double underscores. (W: 75a53c623d3110b5e874e5789b414325)`);
144
+ scope = scope.replace(/ /g, '__');
145
+ }
146
+ return `${SETTINGS_ATOM} ${scope}`;
147
+ }
148
+ catch (error) {
149
+ console.error(`${lc} ${extractErrorMsg(error)}`);
150
+ throw error;
151
+ }
152
+ }
153
+ export function parseSettingsIb({ ib, }) {
154
+ const lc = `[${parseSettingsIb.name}]`;
155
+ try {
156
+ const pieces = ib.split(' ');
157
+ if (pieces.length !== 2) {
158
+ throw new Error(`invalid settings ib (${ib}). should be in the form of "atom scope" (a single space, scope should not have spaces, atom should be ${SETTINGS_ATOM}) (E: 7b3fd82f4b68a29b9890dc164d52dc25)`);
159
+ }
160
+ const [atom, scope] = pieces;
161
+ if (atom !== SETTINGS_ATOM) {
162
+ throw new Error(`invalid atom (${atom}) found in ib (${ib}). should be ${SETTINGS_ATOM} (E: b8a5ac4b940816ff6887a64dec05bf25)`);
163
+ }
164
+ return {
165
+ atom,
166
+ scope,
167
+ };
168
+ }
169
+ catch (error) {
170
+ console.error(`${lc} ${extractErrorMsg(error)}`);
171
+ throw error;
172
+ }
173
+ }
174
+ /**
175
+ * creates a new settings ibgib with default values set (and atow 05/2025 also
176
+ * assigns "current" Settings as well).
177
+ *
178
+ * if {@link saveInSpace} is true, then will save the transform result AND
179
+ * register the ibgib with the metaspace's latest index. This requires also
180
+ * {@link metaspace} to be truthy, and throws if it is not. If {@link space} is
181
+ * falsy, then will use the metaspace's default local user space.
182
+ */
183
+ export async function createSettings({ scope, metaspace, space, saveInSpace, }) {
184
+ const lc = `[${createSettings.name}]`;
185
+ try {
186
+ let ib = getSettingsIb({ scope });
187
+ let data = await getDefaultSettingsData();
188
+ let rel8ns = undefined;
189
+ const resSettings = await Factory_V1.firstGen({
190
+ parentIbGib: Factory_V1.primitive({ ib: SETTINGS_ATOM }),
191
+ ib, data, rel8ns,
192
+ dna: true,
193
+ nCounter: true,
194
+ tjp: { timestamp: true, uuid: true },
195
+ });
196
+ if (saveInSpace) {
197
+ if (!metaspace) {
198
+ throw new Error(`metaspace falsy but saveInSpace is true (E: f91adfe38d78e6e4f8bca278fce37925)`);
199
+ }
200
+ await metaspace.persistTransformResult({ resTransform: resSettings, space });
201
+ await metaspace.registerNewIbGib({ ibGib: resSettings.newIbGib, space });
202
+ }
203
+ return resSettings;
204
+ }
205
+ catch (error) {
206
+ console.error(`${lc} ${extractErrorMsg(error)}`);
207
+ throw error;
208
+ }
209
+ }
210
+ /**
211
+ * hacky function that atow (05/2025) populates default/current
212
+ * general/texteditor sections
213
+ */
214
+ export async function getDefaultSettingsData() {
215
+ const lc = `[${getDefaultSettingsData.name}]`;
216
+ try {
217
+ if (logalot) {
218
+ console.log(`${lc} starting... (I: 3d7cc3f242cc88ad28dafaf85d646a25)`);
219
+ }
220
+ const data = clone(DEFAULT_SETTINGS_DATA_V1);
221
+ const sectionName_generalDefault = await getSectionName({
222
+ settingsType: 'general',
223
+ useCase: 'default',
224
+ });
225
+ const sectionName_generalCurrent = await getSectionName({
226
+ settingsType: 'general',
227
+ useCase: 'current',
228
+ });
229
+ data.sections[sectionName_generalDefault] = clone(DEFAULT_SETTINGS_GENERAL);
230
+ data.sections[sectionName_generalCurrent] = clone(DEFAULT_SETTINGS_GENERAL);
231
+ const sectionName_textEditorDefault = await getSectionName({
232
+ settingsType: 'text-editor',
233
+ useCase: 'default',
234
+ });
235
+ const sectionName_textEditorCurrent = await getSectionName({
236
+ settingsType: 'text-editor',
237
+ useCase: 'current',
238
+ });
239
+ data.sections[sectionName_textEditorDefault] = clone(DEFAULT_SETTINGS_TEXTEDITOR);
240
+ data.sections[sectionName_textEditorCurrent] = clone(DEFAULT_SETTINGS_TEXTEDITOR);
241
+ return data;
242
+ }
243
+ catch (error) {
244
+ console.error(`${lc} ${extractErrorMsg(error)}`);
245
+ throw error;
246
+ }
247
+ finally {
248
+ if (logalot) {
249
+ console.log(`${lc} complete.`);
250
+ }
251
+ }
252
+ }
253
+ //# sourceMappingURL=settings-helpers.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-helpers.mjs","sourceRoot":"","sources":["../../../src/common/settings/settings-helpers.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AAEzF,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAI/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGvD,OAAO,EACH,cAAc,EAAE,wBAAwB,EAAE,0BAA0B,EACpE,YAAY,EAAE,2BAA2B,EACzC,wBAAwB,EACxB,aAAa,EACb,wBAAwB,EACxB,yBAAyB,EACzB,4BAA4B,EAC/B,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAG5D,MAAM,OAAO,GAAG,gBAAgB,CAAC,CAAC,wDAAwD;AAE1F,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,EACnC,KAAK,EAGR;IACG,MAAM,EAAE,GAAG,IAAI,gBAAgB,CAAC,IAAI,GAAG,CAAC;IACxC,IAAI;QACA,IAAI,OAAO,EAAE;YAAE,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,oDAAoD,CAAC,CAAC;SAAE;QACxF,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QACtC,MAAM,IAAI,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,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,CAAC,CAAC;QAElF,OAAO,IAAI,CAAC;KACf;IAAC,OAAO,KAAK,EAAE;QACZ,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,IAAI,eAAe,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACjD,MAAM,KAAK,CAAC;KACf;YAAS;QACN,IAAI,OAAO,EAAE;YAAE,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC;SAAE;KACnD;AACL,CAAC"}
@@ -0,0 +1,118 @@
1
+ /**
2
+ * @module settings-types
3
+ *
4
+ * The idea is that some settings we want to rel8 to the ibgib itself, and some
5
+ * settings we will relate to the local user space (similar to the user). In the
6
+ * future, when we get identity going hopefully with keystones, then we may
7
+ * relate these to keystones.
8
+ *
9
+ * This is similar to how agents are associated with ibgibs. There is an agent
10
+ * special ibgib index that has a map of domainTjpAddr -> agentAddr
11
+ */
12
+ import { IbGib_V1, IbGibData_V1, IbGibRel8ns_V1 } from "@ibgib/ts-gib/dist/V1/types.mjs";
13
+ import { IbGibAddr } from "@ibgib/ts-gib/dist/types.mjs";
14
+ import { SETTINGS_ATOM, SETTINGS_TYPE_CHRONOLOGYS, SETTINGS_TYPE_MINIGAME, SETTINGS_TYPE_PROJECT, SETTINGS_TYPE_TEXTEDITOR, SettingsType } from "./settings-constants.mjs";
15
+ import { LensMode } from "../project/project-types.mjs";
16
+ export interface SettingsBase {
17
+ /**
18
+ * Discriminator for Settings info
19
+ */
20
+ type: SettingsType;
21
+ /**
22
+ * to help determine competing settings. fudge factor basically.
23
+ */
24
+ priority?: number;
25
+ /**
26
+ * ibgib has been marked as readonly.
27
+ */
28
+ readonly?: boolean;
29
+ }
30
+ export interface SettingsWithTabs extends SettingsBase {
31
+ openChildTjpAddrs: IbGibAddr[];
32
+ activeChildTjpAddr: IbGibAddr | undefined;
33
+ }
34
+ /**
35
+ * general settings for any ibgib. This can be
36
+ */
37
+ export interface Settings_General extends SettingsBase {
38
+ type: 'general';
39
+ /**
40
+ * type of viewing component to use when just viewing the ibgib.
41
+ */
42
+ viewer?: string;
43
+ /**
44
+ * type of editor component to use when editing ibgib.
45
+ */
46
+ editor?: string;
47
+ }
48
+ /**
49
+ * settings specifically when interfacing with an ibgib via a text-editor
50
+ * component.
51
+ */
52
+ export interface Settings_TextEditor extends SettingsBase {
53
+ type: typeof SETTINGS_TYPE_TEXTEDITOR;
54
+ wrap?: boolean | 'normal' | 'break-word' | 'wrap' | 'nowrap';
55
+ }
56
+ export interface Settings_Project extends SettingsBase, SettingsWithTabs {
57
+ type: typeof SETTINGS_TYPE_PROJECT;
58
+ lensMode: LensMode;
59
+ }
60
+ export interface Settings_Minigame extends SettingsBase {
61
+ type: typeof SETTINGS_TYPE_MINIGAME;
62
+ }
63
+ export interface Settings_Chronologys extends SettingsBase, SettingsWithTabs {
64
+ type: typeof SETTINGS_TYPE_CHRONOLOGYS;
65
+ }
66
+ /**
67
+ * union type of known Settings interfaces for various use cases.
68
+ *
69
+ * ## notes
70
+ *
71
+ * This is more a union type of shapes that this app knows, not necessarily what
72
+ * settings must have. IOW, there might be other shapes in settings...
73
+ *
74
+ * @see {@link SettingsBase.type}
75
+ */
76
+ export type IbGibSettings = Settings_General | Settings_TextEditor | Settings_Project | Settings_Minigame | Settings_Chronologys;
77
+ export interface SettingsData_V1 extends IbGibData_V1 {
78
+ /**
79
+ * map of a use-case key to a Settings instance.
80
+ *
81
+ * I am thinking this will be 'general_default', 'text-editor_default',
82
+ * 'general_current', 'text-editor_current', etc., so the key will be in the
83
+ * form of:
84
+ * `${type}_${useCase}`
85
+ */
86
+ sections: {
87
+ [key: string]: IbGibSettings;
88
+ };
89
+ /**
90
+ * composite pattern for settings.
91
+ *
92
+ * ## intent
93
+ *
94
+ * Does the ibgib have any children, i.e., if this ibgib has child tabs,
95
+ * which tabs are open? Which details pages are open? What are their
96
+ * rel8nNames? (I don't know which things I'll keep here or what).
97
+ *
98
+ * ## NOTE
99
+ *
100
+ * This is not a composite pattern of other *settings ibgibs*, but just the
101
+ * settings themselves.
102
+ *
103
+ * Also, I don't know which one wins as far as an ibgib's child's settings
104
+ * vs. that child ibgib's registered settings with the local space.
105
+ */
106
+ children: {
107
+ [tjpAddr: IbGibAddr]: IbGibSettings;
108
+ };
109
+ }
110
+ export interface SettingsRel8ns_V1 extends IbGibRel8ns_V1 {
111
+ }
112
+ export interface SettingsIbGib_V1 extends IbGib_V1<SettingsData_V1, SettingsRel8ns_V1> {
113
+ }
114
+ export interface SettingsIbInfo {
115
+ atom: typeof SETTINGS_ATOM;
116
+ scope: string;
117
+ }
118
+ //# sourceMappingURL=settings-types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-types.d.mts","sourceRoot":"","sources":["../../../src/common/settings/settings-types.mts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACzF,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,OAAO,EACH,aAAa,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,qBAAqB,EACvF,wBAAwB,EAAE,YAAY,EACzC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAExD,MAAM,WAAW,YAAY;IACzB;;OAEG;IACH,IAAI,EAAE,YAAY,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IAClD,iBAAiB,EAAE,SAAS,EAAE,CAAC;IAC/B,kBAAkB,EAAE,SAAS,GAAG,SAAS,CAAC;CAC7C;AAED;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IAClD,IAAI,EAAE,SAAS,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAA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gib itself, and some
5
+ * settings we will relate to the local user space (similar to the user). In the
6
+ * future, when we get identity going hopefully with keystones, then we may
7
+ * relate these to keystones.
8
+ *
9
+ * This is similar to how agents are associated with ibgibs. There is an agent
10
+ * special ibgib index that has a map of domainTjpAddr -> agentAddr
11
+ */
12
+ export {};
13
+ //# sourceMappingURL=settings-types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-types.mjs","sourceRoot":"","sources":["../../../src/common/settings/settings-types.mts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG"}
@@ -0,0 +1,34 @@
1
+ export declare const GLOBAL_LOG_A_LOT = false;
2
+ export declare const GLOBAL_TIMER_NAME = "[web^gib timer]";
3
+ /**
4
+ * regex for what we think of as a gemini api key.
5
+ */
6
+ export declare const GEMINI_API_KEY_REGEXP: RegExp;
7
+ export declare const CONFIG_OPTION_GEMINI_API_KEY_LOCATION_HELP = "Gemini API Key Config option (\u2699\uFE0F icon in the top right)";
8
+ /**
9
+ * used for the agent tag, in ibgib.data.text
10
+ */
11
+ export declare const TAG_AGENT_TEXT = "agent";
12
+ /**
13
+ * used for the agent tag, in ibgib.data.icon
14
+ */
15
+ export declare const TAG_AGENT_ICON = "body-outline";
16
+ /**
17
+ * used for the agent tag, in ibgib.data.description
18
+ */
19
+ export declare const TAG_AGENT_DESCRIPTION = "This tag tracks the active agents for the current local user space.";
20
+ /**
21
+ * the ib value of the tag ibgib for the agents.
22
+ */
23
+ export declare const TAG_AGENT_IB: string;
24
+ export declare const DEFAULT_IBGIB_COLOR = "#78f87e88";
25
+ export declare const DEFAULT_IBGIB_TRANSLUCENT = "#78f87e10";
26
+ export declare const DEFAULT_IBGIB_COLOR_CONTRAST = "#ffffff";
27
+ export declare const DEFAULT_TJP_COLOR = "#78f87e88";
28
+ export declare const DEFAULT_TJP_COLOR_TRANSLUCENT = "#78f87e10";
29
+ export declare const DEFAULT_TJP_COLOR_CONTRAST = "#ffffff";
30
+ /**
31
+ * I am toying with tagging hardcoded prompts at the moment (atow 05/2025)
32
+ */
33
+ export declare const HARDCODED_PROMPT_TAG_TEXT = "AUTOMATED_TEXT";
34
+ //# sourceMappingURL=constants.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../src/constants.mts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,QAAQ,CAAC;AACtC,eAAO,MAAM,iBAAiB,oBAAoB,CAAC;AAEnD;;GAEG;AACH,eAAO,MAAM,qBAAqB,QAA4B,CAAC;AAC/D,eAAO,MAAM,0CAA0C,sEAA4D,CAAC;AAEpH;;GAEG;AACH,eAAO,MAAM,cAAc,UAAU,CAAC;AACtC;;GAEG;AACH,eAAO,MAAM,cAAc,iBAAiB,CAAC;AAC7C;;GAEG;AACH,eAAO,MAAM,qBAAqB,wEAAwE,CAAC;AAC3G;;GAEG;AACH,eAAO,MAAM,YAAY,QAA8B,CAAC;AAExD,eAAO,MAAM,mBAAmB,cAAc,CAAC;AAC/C,eAAO,MAAM,yBAAyB,cAAc,CAAC;AACrD,eAAO,MAAM,4BAA4B,YAAY,CAAC;AACtD,eAAO,MAAM,iBAAiB,cAAc,CAAC;AAC7C,eAAO,MAAM,6BAA6B,cAAc,CAAC;AACzD,eAAO,MAAM,0BAA0B,YAAY,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,yBAAyB,mBAAmB,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { tagTextToIb } from "@ibgib/core-gib/dist/common/other/ibgib-helper.mjs";
2
+ export const GLOBAL_LOG_A_LOT = false;
3
+ export const GLOBAL_TIMER_NAME = '[web^gib timer]';
4
+ /**
5
+ * regex for what we think of as a gemini api key.
6
+ */
7
+ export const GEMINI_API_KEY_REGEXP = /^[a-zA-Z0-9\-_]{32,64}$/;
8
+ export const CONFIG_OPTION_GEMINI_API_KEY_LOCATION_HELP = `Gemini API Key Config option (⚙️ icon in the top right)`;
9
+ /**
10
+ * used for the agent tag, in ibgib.data.text
11
+ */
12
+ export const TAG_AGENT_TEXT = "agent";
13
+ /**
14
+ * used for the agent tag, in ibgib.data.icon
15
+ */
16
+ export const TAG_AGENT_ICON = "body-outline";
17
+ /**
18
+ * used for the agent tag, in ibgib.data.description
19
+ */
20
+ export const TAG_AGENT_DESCRIPTION = "This tag tracks the active agents for the current local user space.";
21
+ /**
22
+ * the ib value of the tag ibgib for the agents.
23
+ */
24
+ export const TAG_AGENT_IB = tagTextToIb(TAG_AGENT_TEXT);
25
+ export const DEFAULT_IBGIB_COLOR = '#78f87e88';
26
+ export const DEFAULT_IBGIB_TRANSLUCENT = '#78f87e10';
27
+ export const DEFAULT_IBGIB_COLOR_CONTRAST = '#ffffff';
28
+ export const DEFAULT_TJP_COLOR = '#78f87e88';
29
+ export const DEFAULT_TJP_COLOR_TRANSLUCENT = '#78f87e10';
30
+ export const DEFAULT_TJP_COLOR_CONTRAST = '#ffffff';
31
+ /**
32
+ * I am toying with tagging hardcoded prompts at the moment (atow 05/2025)
33
+ */
34
+ export const HARDCODED_PROMPT_TAG_TEXT = 'AUTOMATED_TEXT';
35
+ //# sourceMappingURL=constants.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.mjs","sourceRoot":"","sources":["../src/constants.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC;AACtC,MAAM,CAAC,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;AAEnD;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,yBAAyB,CAAC;AAC/D,MAAM,CAAC,MAAM,0CAA0C,GAAG,yDAAyD,CAAC;AAEpH;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC;AACtC;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,cAAc,CAAC;AAC7C;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,qEAAqE,CAAC;AAC3G;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CAAC,cAAc,CAAC,CAAC;AAExD,MAAM,CAAC,MAAM,mBAAmB,GAAG,WAAW,CAAC;AAC/C,MAAM,CAAC,MAAM,yBAAyB,GAAG,WAAW,CAAC;AACrD,MAAM,CAAC,MAAM,4BAA4B,GAAG,SAAS,CAAC;AACtD,MAAM,CAAC,MAAM,iBAAiB,GAAG,WAAW,CAAC;AAC7C,MAAM,CAAC,MAAM,6BAA6B,GAAG,WAAW,CAAC;AACzD,MAAM,CAAC,MAAM,0BAA0B,GAAG,SAAS,CAAC;AAEpD;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,gBAAgB,CAAC"}
package/dist/foo.d.mts ADDED
@@ -0,0 +1,2 @@
1
+ export declare function fooFn(): Promise<void>;
2
+ //# sourceMappingURL=foo.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"foo.d.mts","sourceRoot":"","sources":["../src/foo.mts"],"names":[],"mappings":"AAEA,wBAAsB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAU3C"}
package/dist/foo.mjs ADDED
@@ -0,0 +1,19 @@
1
+ const logalot = true;
2
+ export async function fooFn() {
3
+ const lc = `[${fooFn.name}]`;
4
+ try {
5
+ if (logalot) {
6
+ console.log(`${lc} starting... (I: dfb1e864e0a8d029abab9418f249ed25)`);
7
+ }
8
+ }
9
+ catch (error) {
10
+ console.error(`${lc} ${error.message}`);
11
+ throw error;
12
+ }
13
+ finally {
14
+ if (logalot) {
15
+ console.log(`${lc} complete.`);
16
+ }
17
+ }
18
+ }
19
+ //# sourceMappingURL=foo.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"foo.mjs","sourceRoot":"","sources":["../src/foo.mts"],"names":[],"mappings":"AAAA,MAAM,OAAO,GAAG,IAAI,CAAC;AAErB,MAAM,CAAC,KAAK,UAAU,KAAK;IACvB,MAAM,EAAE,GAAG,IAAI,KAAK,CAAC,IAAI,GAAG,CAAC;IAC7B,IAAI;QACA,IAAI,OAAO,EAAE;YAAE,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,oDAAoD,CAAC,CAAC;SAAE;KAC3F;IAAC,OAAO,KAAK,EAAE;QACZ,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;QACxC,MAAM,KAAK,CAAC;KACf;YAAS;QACN,IAAI,OAAO,EAAE;YAAE,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC;SAAE;KACnD;AACL,CAAC"}
@@ -0,0 +1,137 @@
1
+ import { IbGib_V1 } from "@ibgib/ts-gib/dist/V1/types.mjs";
2
+ import { IbGibAddr } from "@ibgib/ts-gib/dist/types.mjs";
3
+ import { MetaspaceService } from "@ibgib/core-gib/dist/witness/space/metaspace/metaspace-types.mjs";
4
+ import { IbGibSpaceAny } from "@ibgib/core-gib/dist/witness/space/space-base-v1.mjs";
5
+ export declare function getTagsIbGib({ metaspace, space, }: {
6
+ metaspace: MetaspaceService;
7
+ space: IbGibSpaceAny | undefined;
8
+ }): Promise<IbGib_V1>;
9
+ /**
10
+ * NOTE: This was originally written only for agents and I'm generalizing it to
11
+ * any "coupled" ibgib. The idea is that for local-space-specific ibgibs that
12
+ * are related to domain ibgibs, but where we don't want to modify the domain
13
+ * ibgib directly, we create this "coupled" ibgib. We then index it in a local
14
+ * space special (index) ibgib and associate it by tjpAddr.
15
+ *
16
+ * Generates a consistent special name for the agent index ibGib based on the
17
+ * domain ibGib's primitive ancestor's ib or the ibGibAddr's ib atom.
18
+ *
19
+ * RIGHT NOW I"M PRIORITIZING THE ATOM. I THINK IT ALWAYS RETURNS THE ATOM, I.E., THE FIRST SPACE-DELIMITED PIECE OF THE `ib`.
20
+ *
21
+ * I am doing this because the project ibgib actually forks from a comment
22
+ * ibgib, so its primitive ancestor is "comment^gib".
23
+ *
24
+ * ## notes
25
+ *
26
+ * We are trying to get a special ibgib index that maps from ibgibs (the domain)
27
+ * to what local agent is registered to handle that ibgib's timeline.
28
+ *
29
+ * Concretely, we're working on the project ibgibs and we need a way to get at
30
+ * the agent that is assigned to that project. But we can't just mut8 the
31
+ * project itself because this would cause issues once the project is spread out
32
+ * among multiple execution contexts (similar to "remotes" in git).
33
+ *
34
+ * So we will have a special ibgib registered with the local space which will
35
+ * act as this index that maps ibgib -> handling agent. This function helps get
36
+ * the *name* of that special indexing ibgib.
37
+ *
38
+ * This can be driven either by the ibgib itself, via the last primitive ancestor
39
+ * ibgib's address, or via the ib's atom (the first space-delimited term in the
40
+ * `ib` metadata).
41
+ *
42
+ * So if an ancestor is [comment^gib, specialComment^gib, specialComment
43
+ * abc123^ABC123.DEF456] (where the abc123 things are representative of the full
44
+ * hashes 64 characters long atow since we're using sha256), then the *last*
45
+ * primitive address is specialComment^gib.
46
+ */
47
+ export declare function getIndexNameFromIbGib({ scope, ibGib, ibGibAddr, defaultNameIfError, }: {
48
+ /**
49
+ * what kind of index are we talking in general?
50
+ */
51
+ scope: string;
52
+ ibGib?: IbGib_V1;
53
+ ibGibAddr?: IbGibAddr;
54
+ /**
55
+ * if truthy and an error is produced, then this will be returned.
56
+ */
57
+ defaultNameIfError?: string;
58
+ }): string;
59
+ /**
60
+ * NOTE: This was originally written only for agents and I'm generalizing it to
61
+ * any "coupled" ibgib. The idea is that for local-space-specific ibgibs that
62
+ * are related to domain ibgibs, but where we don't want to modify the domain
63
+ * ibgib directly, we create this "coupled" ibgib. We then index it in a local
64
+ * space special (index) ibgib and associate it by tjpAddr.
65
+ * Retrieves the agent ibGib associated with a domain ibGib from the special agent index ibGib.
66
+ *
67
+ * may have to change this to require the ibgib, not give an optional
68
+ * domainIbGibAddr
69
+ */
70
+ export declare function getLocalCoupledIbGibForDomainIbGib<TIbGib extends IbGib_V1>({ scope, ibGib, metaspace, space, skipGetLatest, }: {
71
+ scope: string;
72
+ ibGib: IbGib_V1;
73
+ metaspace: MetaspaceService;
74
+ space: IbGibSpaceAny;
75
+ /**
76
+ * if true, will not call getLatest on the coupled ibgib if found.
77
+ */
78
+ skipGetLatest?: boolean;
79
+ }): Promise<TIbGib | undefined>;
80
+ /**
81
+ * Registers a domain ibGib with its associated agent ibGib in the special agent
82
+ * index ibGib. This creates or updates a mapping from the domain ibGib's TJP
83
+ * address to the agent's address.
84
+ *
85
+ * ## intent
86
+ *
87
+ * we want to rel8 ibgibs but not directly change the domain ibgib. Like if we
88
+ * have an ibgib that we want to collaborate on, we want a mechanism for the
89
+ * local space (later local user via keystone) to have settings, agents, etc.,
90
+ * for that domain ibgib. But each space has its own version, like a local/user
91
+ * settings vs. a workspace settings.
92
+ *
93
+ * So this gets/creates an index on the local space and associates the domain
94
+ * with the local.
95
+ *
96
+ * @example
97
+ * use this to couple a local agent to a domain ibgib or a local settings ibgib
98
+ * to a domain ibgib, that you do not want to share with others who will have
99
+ * their own versions.
100
+ */
101
+ export declare function coupleDomainIbGibWithLocalIbGibViaIndex({ scope, domainIbGib, localIbGib, metaspace, space, }: {
102
+ scope: string;
103
+ domainIbGib: IbGib_V1;
104
+ localIbGib: IbGib_V1;
105
+ metaspace: MetaspaceService;
106
+ space: IbGibSpaceAny;
107
+ }): Promise<void>;
108
+ /**
109
+ * Returns a function, that, as long as it continues to be invoked, will not
110
+ * be triggered. The function will be called after it stops being called for
111
+ * N milliseconds. If `immediate` is passed, trigger the function on the
112
+ * leading edge, instead of the trailing.
113
+ *
114
+ * @param func The function to debounce.
115
+ * @param wait The number of milliseconds to wait after the last call.
116
+ * @param immediate If true, trigger the function on the leading edge.
117
+ * @returns A debounced version of the function.
118
+ */
119
+ export declare function debounce<T extends (...args: any[]) => void>(func: T, wait: number, immediate?: boolean): (...args: Parameters<T>) => void;
120
+ export declare function getMaskedSecret({ secret, countToShow }: {
121
+ secret: string;
122
+ countToShow: number;
123
+ }): string;
124
+ export declare function insertAt<T>({ newItems, index, targetArray, }: {
125
+ newItems: T[];
126
+ index: number;
127
+ targetArray: T[];
128
+ }): T[];
129
+ export declare function deleteAt<T>({ targetArray, index, }: {
130
+ targetArray: T[];
131
+ index: number;
132
+ }): T[];
133
+ export declare function getShortenedStringWithEllipsis({ str, maxChars, }: {
134
+ str: string;
135
+ maxChars: number;
136
+ }): string;
137
+ //# sourceMappingURL=helpers.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.mts","sourceRoot":"","sources":["../src/helpers.mts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAS,MAAM,iCAAiC,CAAC;AAElE,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAKzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kEAAkE,CAAC;AACpG,OAAO,EAAE,aAAa,EAAE,MAAM,sDAAsD,CAAC;AAOrF,wBAAsB,YAAY,CAAC,EAC/B,SAAS,EACT,KAAK,GACR,EAAE;IACC,SAAS,EAAE,gBAAgB,CAAC;IAC5B,KAAK,EAAE,aAAa,GAAG,SAAS,CAAC;CACpC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAepB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,qBAAqB,CAAC,EAClC,KAAK,EACL,KAAK,EACL,SAAS,EACT,kBAAkB,GACrB,EAAE;IACC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B,GAAG,MAAM,CA4FT;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,kCAAkC,CAAC,MAAM,SAAS,QAAQ,EAAE,EAC9E,KAAK,EACL,KAAK,EACL,SAAS,EACT,KAAK,EACL,aAAa,GAChB,EAAE;IACC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,QAAQ,CAAC;IAChB,S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