@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,280 @@
1
+ import { clone, extractErrorMsg } from "@ibgib/helper-gib/dist/helpers/utils-helper.mjs";
2
+ import { Ib, TransformResult } from "@ibgib/ts-gib/dist/types.mjs";
3
+ import { Factory_V1 } from "@ibgib/ts-gib/dist/V1/factory.mjs";
4
+ import { IbGibSpaceAny } from "@ibgib/core-gib/dist/witness/space/space-base-v1.mjs";
5
+ import { MetaspaceService } from "@ibgib/core-gib/dist/witness/space/metaspace/metaspace-types.mjs";
6
+
7
+ import { GLOBAL_LOG_A_LOT } from "../../constants.mjs";
8
+ import { IbGibSettings, SettingsIbGib_V1 } from "./settings-types.mjs";
9
+ import type { SettingsData_V1, SettingsIbInfo } from "./settings-types.mjs";
10
+ import {
11
+ isSettingsType, DEFAULT_SETTINGS_GENERAL, SETTINGS_TYPE_VALID_VALUES,
12
+ SettingsType, DEFAULT_SETTINGS_TEXTEDITOR,
13
+ DEFAULT_SETTINGS_DATA_V1,
14
+ SETTINGS_ATOM,
15
+ DEFAULT_SETTINGS_PROJECT,
16
+ DEFAULT_SETTINGS_MINIGAME,
17
+ DEFAULT_SETTINGS_CHRONOLOGYS
18
+ } from "./settings-constants.mjs";
19
+ import { IbGib_V1 } from "@ibgib/ts-gib/dist/V1/types.mjs";
20
+ import { getIbAndGib } from "@ibgib/ts-gib/dist/helper.mjs";
21
+
22
+
23
+ const logalot = GLOBAL_LOG_A_LOT; // change this when you want to turn off verbose logging
24
+
25
+ export async function getSettingsScope({
26
+ ibGib
27
+ }: {
28
+ ibGib: IbGib_V1
29
+ }): Promise<string> {
30
+ const lc = `[${getSettingsScope.name}]`;
31
+ try {
32
+ if (logalot) { console.log(`${lc} starting... (I: 57ac4c0a3448bc5e98ecf5bfb02ce825)`); }
33
+ const { ib } = getIbAndGib({ ibGib });
34
+ const atom = ib.split(' ').at(0);
35
+ if (!atom) { throw new Error(`(UNEXPECTED) atom falsy? we split the ib by spaces (space-delimiter). this makes no sense. (E: 6a9ea640ae38823aeefc6ec82a05d625)`); }
36
+
37
+ return `${SETTINGS_ATOM}_${atom}`;
38
+ } catch (error) {
39
+ console.error(`${lc} ${extractErrorMsg(error)}`);
40
+ throw error;
41
+ } finally {
42
+ if (logalot) { console.log(`${lc} complete.`); }
43
+ }
44
+ }
45
+
46
+ export async function getSectionName({
47
+ settingsType,
48
+ useCase,
49
+ }: {
50
+ settingsType: SettingsType,
51
+ useCase: string,
52
+ }): Promise<string> {
53
+ const lc = `[${getSectionName.name}]`;
54
+ try {
55
+ if (logalot) { console.log(`${lc} starting... (I: f13dff111048421cad5453f821487825)`); }
56
+ if (useCase.includes('_')) { throw new Error(`(UNEXPECTED) settingsType.includes('_')? should be kebab-cased or camelCased (E: 8f75e89b9378819ab882cc1870f1e825)`); }
57
+ if (settingsType.includes('_')) { throw new Error(`(UNEXPECTED) settingsType.includes('_')? should be kebab-cased or camelCased (E: 1d316b0808287c12689d1e882648b825)`); }
58
+ return [
59
+ settingsType,
60
+ useCase
61
+ ].join('_');
62
+
63
+ } catch (error) {
64
+ console.error(`${lc} ${extractErrorMsg(error)}`);
65
+ throw error;
66
+ } finally {
67
+ if (logalot) { console.log(`${lc} complete.`); }
68
+ }
69
+ }
70
+
71
+ export function parseSectionName({
72
+ sectionName,
73
+ }: {
74
+ sectionName: string,
75
+ }): { settingsType: SettingsType, useCase: string } {
76
+ const lc = `[${parseSectionName.name}]`;
77
+ try {
78
+ if (logalot) { console.log(`${lc} starting... (I: f5867c51505a3c32f20d5489f2919f25)`); }
79
+ if (!sectionName.includes('_')) { throw new Error(`invalid sectionName (${sectionName}). Should be a underscore-delimited value in form of "settingsType_useCase" (E: ec0208c6513878f028b68756a818b825)`); }
80
+ const [
81
+ settingsType,
82
+ useCase
83
+ ] = sectionName.split('_');
84
+ if (!isSettingsType(settingsType)) { throw new Error(`invalid settingsType (${settingsType}) found in sectionName (${sectionName}). Must be one of ${SETTINGS_TYPE_VALID_VALUES} (E: 0e1078f6aaa871154182f239a639f825)`); }
85
+ return { settingsType, useCase, };
86
+ } catch (error) {
87
+ console.error(`${lc} ${extractErrorMsg(error)}`);
88
+ throw error;
89
+ } finally {
90
+ if (logalot) { console.log(`${lc} complete.`); }
91
+ }
92
+ }
93
+
94
+ export async function getDefaultSettings<TSettings extends IbGibSettings>({
95
+ settingsType,
96
+ }: {
97
+ settingsType: SettingsType, // hard-coded for now
98
+ }): Promise<TSettings> {
99
+ const lc = `[${getDefaultSettings.name}]`;
100
+ try {
101
+ if (logalot) { console.log(`${lc} starting... (I: f8a03b1bb6d1ecbf52552358f9ea0825)`); }
102
+ switch (settingsType) {
103
+ case SettingsType.general:
104
+ return clone(DEFAULT_SETTINGS_GENERAL) as TSettings;
105
+ case SettingsType.textEditor:
106
+ return clone(DEFAULT_SETTINGS_TEXTEDITOR) as TSettings;
107
+ case SettingsType.project:
108
+ return clone(DEFAULT_SETTINGS_PROJECT) as TSettings;
109
+ case SettingsType.minigame:
110
+ return clone(DEFAULT_SETTINGS_MINIGAME) as TSettings;
111
+ case SettingsType.chronologys:
112
+ return clone(DEFAULT_SETTINGS_CHRONOLOGYS) as TSettings;
113
+ default:
114
+ throw new Error(`(UNEXPECTED) unknown settingsType (${settingsType})? right now, we're whitelisting only. SettingsTypes: ${SETTINGS_TYPE_VALID_VALUES} (E: 801a7ade4c0849b308d5c8f8f0318d25)`);
115
+ }
116
+ } catch (error) {
117
+ console.error(`${lc} ${extractErrorMsg(error)}`);
118
+ throw error;
119
+ } finally {
120
+ if (logalot) { console.log(`${lc} complete.`); }
121
+ }
122
+ }
123
+
124
+ export async function getSettingsSection<TSettings extends IbGibSettings>({
125
+ sectionName,
126
+ settingsIbGib,
127
+ }: {
128
+ /**
129
+ * key (i.e. name) of section to get from the `settingsIbGib.data.sections`.
130
+ * @see {@link SettingsData_V1.sections}
131
+ * @see {@link IbGibSettings}
132
+ */
133
+ sectionName: string,
134
+ settingsIbGib: SettingsIbGib_V1,
135
+ }): Promise<TSettings | undefined> {
136
+ const lc = `[${getSettingsSection.name}]`;
137
+ try {
138
+ if (logalot) { console.log(`${lc} starting... (I: 266554b13f6ce6daa85c882f04805825)`); }
139
+
140
+ if (!settingsIbGib.data) { throw new Error(`(UNEXPECTED) settingsIbGib.data falsy? (E: dd3708f0515fb0b4d4024f4d336a3625)`); }
141
+ if (!settingsIbGib.data.sections) { throw new Error(`(UNEXPECTED) settingsIbGib.data.sections falsy? what was the settingsIbGib even created for? (E: 31f85898a1c854e13440e278a79ceb25)`); }
142
+ const sections = settingsIbGib.data.sections ?? {};
143
+ const section = sections[sectionName];
144
+ return section as (TSettings | undefined);
145
+ } catch (error) {
146
+ console.error(`${lc} ${extractErrorMsg(error)}`);
147
+ throw error;
148
+ } finally {
149
+ if (logalot) { console.log(`${lc} complete.`); }
150
+ }
151
+ }
152
+
153
+ export function getSettingsIb({
154
+ scope,
155
+ }: {
156
+ scope: string,
157
+ }): Ib {
158
+ const lc = `[${getSettingsIb.name}]`;
159
+ try {
160
+ if (scope.includes(' ')) {
161
+ console.warn(`${lc} scope includes one or more spaces. These will be converted to double underscores. (W: 75a53c623d3110b5e874e5789b414325)`);
162
+ scope = scope.replace(/ /g, '__');
163
+ }
164
+ return `${SETTINGS_ATOM} ${scope}`;
165
+ } catch (error) {
166
+ console.error(`${lc} ${extractErrorMsg(error)}`);
167
+ throw error;
168
+ }
169
+ }
170
+
171
+ export function parseSettingsIb({
172
+ ib,
173
+ }: {
174
+ ib: Ib,
175
+ }): SettingsIbInfo {
176
+ const lc = `[${parseSettingsIb.name}]`;
177
+ try {
178
+ const pieces = ib.split(' ');
179
+ if (pieces.length !== 2) {
180
+ 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)`);
181
+ }
182
+ const [atom, scope] = pieces;
183
+ if (atom !== SETTINGS_ATOM) { throw new Error(`invalid atom (${atom}) found in ib (${ib}). should be ${SETTINGS_ATOM} (E: b8a5ac4b940816ff6887a64dec05bf25)`); }
184
+ return {
185
+ atom,
186
+ scope,
187
+ };
188
+ } catch (error) {
189
+ console.error(`${lc} ${extractErrorMsg(error)}`);
190
+ throw error;
191
+ }
192
+ }
193
+
194
+ /**
195
+ * creates a new settings ibgib with default values set (and atow 05/2025 also
196
+ * assigns "current" Settings as well).
197
+ *
198
+ * if {@link saveInSpace} is true, then will save the transform result AND
199
+ * register the ibgib with the metaspace's latest index. This requires also
200
+ * {@link metaspace} to be truthy, and throws if it is not. If {@link space} is
201
+ * falsy, then will use the metaspace's default local user space.
202
+ */
203
+ export async function createSettings({
204
+ scope,
205
+ metaspace,
206
+ space,
207
+ saveInSpace,
208
+ }: {
209
+ scope: string,
210
+ metaspace?: MetaspaceService,
211
+ space?: IbGibSpaceAny,
212
+ saveInSpace?: boolean,
213
+ }): Promise<TransformResult<SettingsIbGib_V1>> {
214
+ const lc = `[${createSettings.name}]`;
215
+ try {
216
+
217
+ let ib = getSettingsIb({ scope });
218
+ let data = await getDefaultSettingsData();
219
+ let rel8ns = undefined;
220
+
221
+ const resSettings = await Factory_V1.firstGen<SettingsData_V1>({
222
+ parentIbGib: Factory_V1.primitive({ ib: SETTINGS_ATOM }),
223
+ ib, data, rel8ns,
224
+ dna: true,
225
+ nCounter: true,
226
+ tjp: { timestamp: true, uuid: true },
227
+ }) as TransformResult<SettingsIbGib_V1>;
228
+
229
+ if (saveInSpace) {
230
+ if (!metaspace) { throw new Error(`metaspace falsy but saveInSpace is true (E: f91adfe38d78e6e4f8bca278fce37925)`); }
231
+ await metaspace.persistTransformResult({ resTransform: resSettings, space });
232
+ await metaspace.registerNewIbGib({ ibGib: resSettings.newIbGib, space });
233
+ }
234
+
235
+ return resSettings;
236
+ } catch (error) {
237
+ console.error(`${lc} ${extractErrorMsg(error)}`);
238
+ throw error;
239
+ }
240
+ }
241
+
242
+ /**
243
+ * hacky function that atow (05/2025) populates default/current
244
+ * general/texteditor sections
245
+ */
246
+ export async function getDefaultSettingsData(): Promise<SettingsData_V1> {
247
+ const lc = `[${getDefaultSettingsData.name}]`;
248
+ try {
249
+ if (logalot) { console.log(`${lc} starting... (I: 3d7cc3f242cc88ad28dafaf85d646a25)`); }
250
+ const data: SettingsData_V1 = clone(DEFAULT_SETTINGS_DATA_V1);
251
+ const sectionName_generalDefault = await getSectionName({
252
+ settingsType: 'general',
253
+ useCase: 'default',
254
+ });
255
+ const sectionName_generalCurrent = await getSectionName({
256
+ settingsType: 'general',
257
+ useCase: 'current',
258
+ });
259
+ data.sections[sectionName_generalDefault] = clone(DEFAULT_SETTINGS_GENERAL);
260
+ data.sections[sectionName_generalCurrent] = clone(DEFAULT_SETTINGS_GENERAL);
261
+
262
+ const sectionName_textEditorDefault = await getSectionName({
263
+ settingsType: 'text-editor',
264
+ useCase: 'default',
265
+ });
266
+ const sectionName_textEditorCurrent = await getSectionName({
267
+ settingsType: 'text-editor',
268
+ useCase: 'current',
269
+ });
270
+ data.sections[sectionName_textEditorDefault] = clone(DEFAULT_SETTINGS_TEXTEDITOR);
271
+ data.sections[sectionName_textEditorCurrent] = clone(DEFAULT_SETTINGS_TEXTEDITOR);
272
+
273
+ return data;
274
+ } catch (error) {
275
+ console.error(`${lc} ${extractErrorMsg(error)}`);
276
+ throw error;
277
+ } finally {
278
+ if (logalot) { console.log(`${lc} complete.`); }
279
+ }
280
+ }
@@ -0,0 +1,137 @@
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
+
13
+ import { IbGib_V1, IbGibData_V1, IbGibRel8ns_V1 } from "@ibgib/ts-gib/dist/V1/types.mjs";
14
+ import { IbGibAddr } from "@ibgib/ts-gib/dist/types.mjs";
15
+
16
+ import {
17
+ SETTINGS_ATOM, SETTINGS_TYPE_CHRONOLOGYS, SETTINGS_TYPE_MINIGAME, SETTINGS_TYPE_PROJECT,
18
+ SETTINGS_TYPE_TEXTEDITOR, SettingsType,
19
+ } from "./settings-constants.mjs";
20
+ import { LensMode } from "../project/project-types.mjs";
21
+
22
+ export interface SettingsBase {
23
+ /**
24
+ * Discriminator for Settings info
25
+ */
26
+ type: SettingsType;
27
+ /**
28
+ * to help determine competing settings. fudge factor basically.
29
+ */
30
+ priority?: number;
31
+ /**
32
+ * ibgib has been marked as readonly.
33
+ */
34
+ readonly?: boolean;
35
+ }
36
+
37
+ export interface SettingsWithTabs extends SettingsBase {
38
+ openChildTjpAddrs: IbGibAddr[];
39
+ activeChildTjpAddr: IbGibAddr | undefined;
40
+ }
41
+
42
+ /**
43
+ * general settings for any ibgib. This can be
44
+ */
45
+ export interface Settings_General extends SettingsBase {
46
+ type: 'general';
47
+ /**
48
+ * type of viewing component to use when just viewing the ibgib.
49
+ */
50
+ viewer?: string;
51
+ /**
52
+ * type of editor component to use when editing ibgib.
53
+ */
54
+ editor?: string;
55
+ }
56
+
57
+ /**
58
+ * settings specifically when interfacing with an ibgib via a text-editor
59
+ * component.
60
+ */
61
+ export interface Settings_TextEditor extends SettingsBase {
62
+ type: typeof SETTINGS_TYPE_TEXTEDITOR;
63
+ wrap?: boolean | 'normal' | 'break-word' | 'wrap' | 'nowrap';
64
+ }
65
+
66
+ export interface Settings_Project extends SettingsBase, SettingsWithTabs {
67
+ type: typeof SETTINGS_TYPE_PROJECT;
68
+ // openChildTjpAddrs: IbGibAddr[];
69
+ // activeChildTjpAddr: IbGibAddr | undefined;
70
+ lensMode: LensMode;
71
+ }
72
+
73
+ export interface Settings_Minigame extends SettingsBase {
74
+ type: typeof SETTINGS_TYPE_MINIGAME;
75
+ }
76
+
77
+ export interface Settings_Chronologys extends SettingsBase, SettingsWithTabs {
78
+ type: typeof SETTINGS_TYPE_CHRONOLOGYS;
79
+ // openChildTjpAddrs: IbGibAddr[];
80
+ // activeChildTjpAddr: IbGibAddr | undefined;
81
+ }
82
+
83
+ /**
84
+ * union type of known Settings interfaces for various use cases.
85
+ *
86
+ * ## notes
87
+ *
88
+ * This is more a union type of shapes that this app knows, not necessarily what
89
+ * settings must have. IOW, there might be other shapes in settings...
90
+ *
91
+ * @see {@link SettingsBase.type}
92
+ */
93
+ export type IbGibSettings =
94
+ | Settings_General
95
+ | Settings_TextEditor
96
+ | Settings_Project
97
+ | Settings_Minigame
98
+ | Settings_Chronologys;
99
+
100
+ export interface SettingsData_V1 extends IbGibData_V1 {
101
+ /**
102
+ * map of a use-case key to a Settings instance.
103
+ *
104
+ * I am thinking this will be 'general_default', 'text-editor_default',
105
+ * 'general_current', 'text-editor_current', etc., so the key will be in the
106
+ * form of:
107
+ * `${type}_${useCase}`
108
+ */
109
+ sections: { [key: string]: IbGibSettings; }
110
+ /**
111
+ * composite pattern for settings.
112
+ *
113
+ * ## intent
114
+ *
115
+ * Does the ibgib have any children, i.e., if this ibgib has child tabs,
116
+ * which tabs are open? Which details pages are open? What are their
117
+ * rel8nNames? (I don't know which things I'll keep here or what).
118
+ *
119
+ * ## NOTE
120
+ *
121
+ * This is not a composite pattern of other *settings ibgibs*, but just the
122
+ * settings themselves.
123
+ *
124
+ * Also, I don't know which one wins as far as an ibgib's child's settings
125
+ * vs. that child ibgib's registered settings with the local space.
126
+ */
127
+ children: { [tjpAddr: IbGibAddr]: IbGibSettings; }
128
+ }
129
+
130
+ export interface SettingsRel8ns_V1 extends IbGibRel8ns_V1 { }
131
+
132
+ export interface SettingsIbGib_V1 extends IbGib_V1<SettingsData_V1, SettingsRel8ns_V1> { }
133
+
134
+ export interface SettingsIbInfo {
135
+ atom: typeof SETTINGS_ATOM;
136
+ scope: string;
137
+ }
@@ -0,0 +1,39 @@
1
+ import { tagTextToIb } from "@ibgib/core-gib/dist/common/other/ibgib-helper.mjs";
2
+
3
+ export const GLOBAL_LOG_A_LOT = false;
4
+ export const GLOBAL_TIMER_NAME = '[web^gib timer]';
5
+
6
+ /**
7
+ * regex for what we think of as a gemini api key.
8
+ */
9
+ export const GEMINI_API_KEY_REGEXP = /^[a-zA-Z0-9\-_]{32,64}$/;
10
+ export const CONFIG_OPTION_GEMINI_API_KEY_LOCATION_HELP = `Gemini API Key Config option (⚙️ icon in the top right)`;
11
+
12
+ /**
13
+ * used for the agent tag, in ibgib.data.text
14
+ */
15
+ export const TAG_AGENT_TEXT = "agent";
16
+ /**
17
+ * used for the agent tag, in ibgib.data.icon
18
+ */
19
+ export const TAG_AGENT_ICON = "body-outline";
20
+ /**
21
+ * used for the agent tag, in ibgib.data.description
22
+ */
23
+ export const TAG_AGENT_DESCRIPTION = "This tag tracks the active agents for the current local user space.";
24
+ /**
25
+ * the ib value of the tag ibgib for the agents.
26
+ */
27
+ export const TAG_AGENT_IB = tagTextToIb(TAG_AGENT_TEXT);
28
+
29
+ export const DEFAULT_IBGIB_COLOR = '#78f87e88';
30
+ export const DEFAULT_IBGIB_TRANSLUCENT = '#78f87e10';
31
+ export const DEFAULT_IBGIB_COLOR_CONTRAST = '#ffffff';
32
+ export const DEFAULT_TJP_COLOR = '#78f87e88';
33
+ export const DEFAULT_TJP_COLOR_TRANSLUCENT = '#78f87e10';
34
+ export const DEFAULT_TJP_COLOR_CONTRAST = '#ffffff';
35
+
36
+ /**
37
+ * I am toying with tagging hardcoded prompts at the moment (atow 05/2025)
38
+ */
39
+ export const HARDCODED_PROMPT_TAG_TEXT = 'AUTOMATED_TEXT';
package/src/foo.mts ADDED
@@ -0,0 +1,13 @@
1
+ const logalot = true;
2
+
3
+ export async function fooFn(): Promise<void> {
4
+ const lc = `[${fooFn.name}]`;
5
+ try {
6
+ if (logalot) { console.log(`${lc} starting... (I: dfb1e864e0a8d029abab9418f249ed25)`); }
7
+ } catch (error) {
8
+ console.error(`${lc} ${error.message}`);
9
+ throw error;
10
+ } finally {
11
+ if (logalot) { console.log(`${lc} complete.`); }
12
+ }
13
+ }