@geminilight/mindos-windows-arm64 1.0.5 → 1.0.7

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 (625) hide show
  1. package/_standalone/.mindos-build-version +1 -1
  2. package/_standalone/__next/BUILD_ID +1 -1
  3. package/_standalone/__next/app-path-routes-manifest.json +26 -26
  4. package/_standalone/__next/build-manifest.json +4 -4
  5. package/_standalone/__next/prerender-manifest.json +3 -3
  6. package/_standalone/__next/react-loadable-manifest.json +4 -4
  7. package/_standalone/__next/required-server-files.json +4 -4
  8. package/_standalone/__next/server/app/.well-known/agent-card.json/route.js +1 -1
  9. package/_standalone/__next/server/app/.well-known/agent-card.json/route_client-reference-manifest.js +1 -1
  10. package/_standalone/__next/server/app/_global-error/page.js +3 -3
  11. package/_standalone/__next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  12. package/_standalone/__next/server/app/_global-error.html +2 -2
  13. package/_standalone/__next/server/app/_global-error.rsc +3 -3
  14. package/_standalone/__next/server/app/_global-error.segments/_full.segment.rsc +3 -3
  15. package/_standalone/__next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  16. package/_standalone/__next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  17. package/_standalone/__next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  18. package/_standalone/__next/server/app/_global-error.segments/_index.segment.rsc +2 -2
  19. package/_standalone/__next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  20. package/_standalone/__next/server/app/_not-found/page.js +2 -2
  21. package/_standalone/__next/server/app/_not-found/page.js.nft.json +1 -1
  22. package/_standalone/__next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  23. package/_standalone/__next/server/app/agents/[agentKey]/page.js +2 -2
  24. package/_standalone/__next/server/app/agents/[agentKey]/page.js.nft.json +1 -1
  25. package/_standalone/__next/server/app/agents/[agentKey]/page_client-reference-manifest.js +1 -1
  26. package/_standalone/__next/server/app/agents/page.js +2 -2
  27. package/_standalone/__next/server/app/agents/page.js.nft.json +1 -1
  28. package/_standalone/__next/server/app/agents/page_client-reference-manifest.js +1 -1
  29. package/_standalone/__next/server/app/api/a2a/agents/route.js +1 -1
  30. package/_standalone/__next/server/app/api/a2a/agents/route.js.nft.json +1 -1
  31. package/_standalone/__next/server/app/api/a2a/agents/route_client-reference-manifest.js +1 -1
  32. package/_standalone/__next/server/app/api/a2a/delegations/route.js +1 -1
  33. package/_standalone/__next/server/app/api/a2a/delegations/route.js.nft.json +1 -1
  34. package/_standalone/__next/server/app/api/a2a/delegations/route_client-reference-manifest.js +1 -1
  35. package/_standalone/__next/server/app/api/a2a/discover/route.js +1 -1
  36. package/_standalone/__next/server/app/api/a2a/discover/route.js.nft.json +1 -1
  37. package/_standalone/__next/server/app/api/a2a/discover/route_client-reference-manifest.js +1 -1
  38. package/_standalone/__next/server/app/api/a2a/route.js +1 -1
  39. package/_standalone/__next/server/app/api/a2a/route.js.nft.json +1 -1
  40. package/_standalone/__next/server/app/api/a2a/route_client-reference-manifest.js +1 -1
  41. package/_standalone/__next/server/app/api/acp/config/route.js +1 -1
  42. package/_standalone/__next/server/app/api/acp/config/route.js.nft.json +1 -1
  43. package/_standalone/__next/server/app/api/acp/config/route_client-reference-manifest.js +1 -1
  44. package/_standalone/__next/server/app/api/acp/detect/route.js +1 -1
  45. package/_standalone/__next/server/app/api/acp/detect/route.js.nft.json +1 -1
  46. package/_standalone/__next/server/app/api/acp/detect/route_client-reference-manifest.js +1 -1
  47. package/_standalone/__next/server/app/api/acp/install/route.js +1 -1
  48. package/_standalone/__next/server/app/api/acp/install/route.js.nft.json +1 -1
  49. package/_standalone/__next/server/app/api/acp/install/route_client-reference-manifest.js +1 -1
  50. package/_standalone/__next/server/app/api/acp/registry/route.js +1 -1
  51. package/_standalone/__next/server/app/api/acp/registry/route.js.nft.json +1 -1
  52. package/_standalone/__next/server/app/api/acp/registry/route_client-reference-manifest.js +1 -1
  53. package/_standalone/__next/server/app/api/acp/session/route.js +1 -1
  54. package/_standalone/__next/server/app/api/acp/session/route.js.nft.json +1 -1
  55. package/_standalone/__next/server/app/api/acp/session/route_client-reference-manifest.js +1 -1
  56. package/_standalone/__next/server/app/api/agent-activity/route.js +1 -1
  57. package/_standalone/__next/server/app/api/agent-activity/route.js.nft.json +1 -1
  58. package/_standalone/__next/server/app/api/agent-activity/route_client-reference-manifest.js +1 -1
  59. package/_standalone/__next/server/app/api/agents/copy-skill/route.js +1 -1
  60. package/_standalone/__next/server/app/api/agents/copy-skill/route.js.nft.json +1 -1
  61. package/_standalone/__next/server/app/api/agents/copy-skill/route_client-reference-manifest.js +1 -1
  62. package/_standalone/__next/server/app/api/agents/custom/detect/route.js +1 -1
  63. package/_standalone/__next/server/app/api/agents/custom/detect/route.js.nft.json +1 -1
  64. package/_standalone/__next/server/app/api/agents/custom/detect/route_client-reference-manifest.js +1 -1
  65. package/_standalone/__next/server/app/api/agents/custom/route.js +1 -1
  66. package/_standalone/__next/server/app/api/agents/custom/route.js.nft.json +1 -1
  67. package/_standalone/__next/server/app/api/agents/custom/route_client-reference-manifest.js +1 -1
  68. package/_standalone/__next/server/app/api/ask/route.js +2 -2
  69. package/_standalone/__next/server/app/api/ask/route.js.nft.json +1 -1
  70. package/_standalone/__next/server/app/api/ask/route_client-reference-manifest.js +1 -1
  71. package/_standalone/__next/server/app/api/ask-sessions/route.js +1 -1
  72. package/_standalone/__next/server/app/api/ask-sessions/route.js.nft.json +1 -1
  73. package/_standalone/__next/server/app/api/ask-sessions/route_client-reference-manifest.js +1 -1
  74. package/_standalone/__next/server/app/api/auth/route.js +1 -1
  75. package/_standalone/__next/server/app/api/auth/route_client-reference-manifest.js +1 -1
  76. package/_standalone/__next/server/app/api/backlinks/route.js +1 -1
  77. package/_standalone/__next/server/app/api/backlinks/route.js.nft.json +1 -1
  78. package/_standalone/__next/server/app/api/backlinks/route_client-reference-manifest.js +1 -1
  79. package/_standalone/__next/server/app/api/bootstrap/route.js +1 -1
  80. package/_standalone/__next/server/app/api/bootstrap/route.js.nft.json +1 -1
  81. package/_standalone/__next/server/app/api/bootstrap/route_client-reference-manifest.js +1 -1
  82. package/_standalone/__next/server/app/api/changes/route.js +1 -1
  83. package/_standalone/__next/server/app/api/changes/route.js.nft.json +1 -1
  84. package/_standalone/__next/server/app/api/changes/route_client-reference-manifest.js +1 -1
  85. package/_standalone/__next/server/app/api/channels/verify/route.js +1 -1
  86. package/_standalone/__next/server/app/api/channels/verify/route.js.nft.json +1 -1
  87. package/_standalone/__next/server/app/api/channels/verify/route_client-reference-manifest.js +1 -1
  88. package/_standalone/__next/server/app/api/connect/route.js +1 -1
  89. package/_standalone/__next/server/app/api/connect/route.js.nft.json +1 -1
  90. package/_standalone/__next/server/app/api/connect/route_client-reference-manifest.js +1 -1
  91. package/_standalone/__next/server/app/api/embedding/route.js +1 -1
  92. package/_standalone/__next/server/app/api/embedding/route.js.nft.json +1 -1
  93. package/_standalone/__next/server/app/api/embedding/route_client-reference-manifest.js +1 -1
  94. package/_standalone/__next/server/app/api/export/route.js +1 -1
  95. package/_standalone/__next/server/app/api/export/route.js.nft.json +1 -1
  96. package/_standalone/__next/server/app/api/export/route_client-reference-manifest.js +1 -1
  97. package/_standalone/__next/server/app/api/extract-docx/route.js +1 -1
  98. package/_standalone/__next/server/app/api/extract-docx/route_client-reference-manifest.js +1 -1
  99. package/_standalone/__next/server/app/api/extract-pdf/route.js +2 -2
  100. package/_standalone/__next/server/app/api/extract-pdf/route_client-reference-manifest.js +1 -1
  101. package/_standalone/__next/server/app/api/file/import/route.js +1 -1
  102. package/_standalone/__next/server/app/api/file/import/route.js.nft.json +1 -1
  103. package/_standalone/__next/server/app/api/file/import/route_client-reference-manifest.js +1 -1
  104. package/_standalone/__next/server/app/api/file/raw/route.js +1 -1
  105. package/_standalone/__next/server/app/api/file/raw/route.js.nft.json +1 -1
  106. package/_standalone/__next/server/app/api/file/raw/route_client-reference-manifest.js +1 -1
  107. package/_standalone/__next/server/app/api/file/route.js +1 -1
  108. package/_standalone/__next/server/app/api/file/route.js.nft.json +1 -1
  109. package/_standalone/__next/server/app/api/file/route_client-reference-manifest.js +1 -1
  110. package/_standalone/__next/server/app/api/files/route.js +1 -1
  111. package/_standalone/__next/server/app/api/files/route.js.nft.json +1 -1
  112. package/_standalone/__next/server/app/api/files/route_client-reference-manifest.js +1 -1
  113. package/_standalone/__next/server/app/api/git/route.js +1 -1
  114. package/_standalone/__next/server/app/api/git/route.js.nft.json +1 -1
  115. package/_standalone/__next/server/app/api/git/route_client-reference-manifest.js +1 -1
  116. package/_standalone/__next/server/app/api/graph/route.js +1 -1
  117. package/_standalone/__next/server/app/api/graph/route.js.nft.json +1 -1
  118. package/_standalone/__next/server/app/api/graph/route_client-reference-manifest.js +1 -1
  119. package/_standalone/__next/server/app/api/health/route.js +1 -1
  120. package/_standalone/__next/server/app/api/health/route.js.nft.json +1 -1
  121. package/_standalone/__next/server/app/api/health/route_client-reference-manifest.js +1 -1
  122. package/_standalone/__next/server/app/api/im/activity/route.js +1 -1
  123. package/_standalone/__next/server/app/api/im/activity/route.js.nft.json +1 -1
  124. package/_standalone/__next/server/app/api/im/activity/route_client-reference-manifest.js +1 -1
  125. package/_standalone/__next/server/app/api/im/config/route.js +1 -1
  126. package/_standalone/__next/server/app/api/im/config/route.js.nft.json +1 -1
  127. package/_standalone/__next/server/app/api/im/config/route_client-reference-manifest.js +1 -1
  128. package/_standalone/__next/server/app/api/im/feishu/long-connection/event/route.js +1 -1
  129. package/_standalone/__next/server/app/api/im/feishu/long-connection/event/route.js.nft.json +1 -1
  130. package/_standalone/__next/server/app/api/im/feishu/long-connection/event/route_client-reference-manifest.js +1 -1
  131. package/_standalone/__next/server/app/api/im/feishu/long-connection/route.js +1 -1
  132. package/_standalone/__next/server/app/api/im/feishu/long-connection/route.js.nft.json +1 -1
  133. package/_standalone/__next/server/app/api/im/feishu/long-connection/route_client-reference-manifest.js +1 -1
  134. package/_standalone/__next/server/app/api/im/status/route.js +1 -1
  135. package/_standalone/__next/server/app/api/im/status/route.js.nft.json +1 -1
  136. package/_standalone/__next/server/app/api/im/status/route_client-reference-manifest.js +1 -1
  137. package/_standalone/__next/server/app/api/im/test/route.js +1 -1
  138. package/_standalone/__next/server/app/api/im/test/route.js.nft.json +1 -1
  139. package/_standalone/__next/server/app/api/im/test/route_client-reference-manifest.js +1 -1
  140. package/_standalone/__next/server/app/api/im/webhook/feishu/route.js +1 -1
  141. package/_standalone/__next/server/app/api/im/webhook/feishu/route.js.nft.json +1 -1
  142. package/_standalone/__next/server/app/api/im/webhook/feishu/route_client-reference-manifest.js +1 -1
  143. package/_standalone/__next/server/app/api/im/webhook-status/route.js +1 -1
  144. package/_standalone/__next/server/app/api/im/webhook-status/route.js.nft.json +1 -1
  145. package/_standalone/__next/server/app/api/im/webhook-status/route_client-reference-manifest.js +1 -1
  146. package/_standalone/__next/server/app/api/inbox/clip/route.js +2 -2
  147. package/_standalone/__next/server/app/api/inbox/clip/route.js.nft.json +1 -1
  148. package/_standalone/__next/server/app/api/inbox/clip/route_client-reference-manifest.js +1 -1
  149. package/_standalone/__next/server/app/api/inbox/route.js +1 -1
  150. package/_standalone/__next/server/app/api/inbox/route.js.nft.json +1 -1
  151. package/_standalone/__next/server/app/api/inbox/route_client-reference-manifest.js +1 -1
  152. package/_standalone/__next/server/app/api/init/route.js +1 -1
  153. package/_standalone/__next/server/app/api/init/route.js.nft.json +1 -1
  154. package/_standalone/__next/server/app/api/init/route_client-reference-manifest.js +1 -1
  155. package/_standalone/__next/server/app/api/lint/route.js +1 -1
  156. package/_standalone/__next/server/app/api/lint/route.js.nft.json +1 -1
  157. package/_standalone/__next/server/app/api/lint/route_client-reference-manifest.js +1 -1
  158. package/_standalone/__next/server/app/api/mcp/agents/route.js +1 -1
  159. package/_standalone/__next/server/app/api/mcp/agents/route.js.nft.json +1 -1
  160. package/_standalone/__next/server/app/api/mcp/agents/route_client-reference-manifest.js +1 -1
  161. package/_standalone/__next/server/app/api/mcp/direct-tools/route.js +1 -1
  162. package/_standalone/__next/server/app/api/mcp/direct-tools/route.js.nft.json +1 -1
  163. package/_standalone/__next/server/app/api/mcp/direct-tools/route_client-reference-manifest.js +1 -1
  164. package/_standalone/__next/server/app/api/mcp/install/route.js +1 -1
  165. package/_standalone/__next/server/app/api/mcp/install/route.js.nft.json +1 -1
  166. package/_standalone/__next/server/app/api/mcp/install/route_client-reference-manifest.js +1 -1
  167. package/_standalone/__next/server/app/api/mcp/install-skill/route.js +1 -1
  168. package/_standalone/__next/server/app/api/mcp/install-skill/route.js.nft.json +1 -1
  169. package/_standalone/__next/server/app/api/mcp/install-skill/route_client-reference-manifest.js +1 -1
  170. package/_standalone/__next/server/app/api/mcp/restart/route.js +1 -1
  171. package/_standalone/__next/server/app/api/mcp/restart/route.js.nft.json +1 -1
  172. package/_standalone/__next/server/app/api/mcp/restart/route_client-reference-manifest.js +1 -1
  173. package/_standalone/__next/server/app/api/mcp/status/route.js +1 -1
  174. package/_standalone/__next/server/app/api/mcp/status/route.js.nft.json +1 -1
  175. package/_standalone/__next/server/app/api/mcp/status/route_client-reference-manifest.js +1 -1
  176. package/_standalone/__next/server/app/api/mcp/tools/route.js +1 -1
  177. package/_standalone/__next/server/app/api/mcp/tools/route.js.nft.json +1 -1
  178. package/_standalone/__next/server/app/api/mcp/tools/route_client-reference-manifest.js +1 -1
  179. package/_standalone/__next/server/app/api/mcp/uninstall/route.js +1 -1
  180. package/_standalone/__next/server/app/api/mcp/uninstall/route.js.nft.json +1 -1
  181. package/_standalone/__next/server/app/api/mcp/uninstall/route_client-reference-manifest.js +1 -1
  182. package/_standalone/__next/server/app/api/monitoring/route.js +1 -1
  183. package/_standalone/__next/server/app/api/monitoring/route.js.nft.json +1 -1
  184. package/_standalone/__next/server/app/api/monitoring/route_client-reference-manifest.js +1 -1
  185. package/_standalone/__next/server/app/api/obsidian/compat-report/route.js +1 -1
  186. package/_standalone/__next/server/app/api/obsidian/compat-report/route.js.nft.json +1 -1
  187. package/_standalone/__next/server/app/api/obsidian/compat-report/route_client-reference-manifest.js +1 -1
  188. package/_standalone/__next/server/app/api/obsidian/import/route.js +1 -1
  189. package/_standalone/__next/server/app/api/obsidian/import/route.js.nft.json +1 -1
  190. package/_standalone/__next/server/app/api/obsidian/import/route_client-reference-manifest.js +1 -1
  191. package/_standalone/__next/server/app/api/obsidian-plugins/settings/route.js +2 -2
  192. package/_standalone/__next/server/app/api/obsidian-plugins/settings/route.js.nft.json +1 -1
  193. package/_standalone/__next/server/app/api/obsidian-plugins/settings/route_client-reference-manifest.js +1 -1
  194. package/_standalone/__next/server/app/api/recent-files/route.js +1 -1
  195. package/_standalone/__next/server/app/api/recent-files/route.js.nft.json +1 -1
  196. package/_standalone/__next/server/app/api/recent-files/route_client-reference-manifest.js +1 -1
  197. package/_standalone/__next/server/app/api/restart/route.js +1 -1
  198. package/_standalone/__next/server/app/api/restart/route.js.nft.json +1 -1
  199. package/_standalone/__next/server/app/api/restart/route_client-reference-manifest.js +1 -1
  200. package/_standalone/__next/server/app/api/search/prewarm/route.js +1 -1
  201. package/_standalone/__next/server/app/api/search/prewarm/route.js.nft.json +1 -1
  202. package/_standalone/__next/server/app/api/search/prewarm/route_client-reference-manifest.js +1 -1
  203. package/_standalone/__next/server/app/api/search/route.js +1 -1
  204. package/_standalone/__next/server/app/api/search/route.js.nft.json +1 -1
  205. package/_standalone/__next/server/app/api/search/route_client-reference-manifest.js +1 -1
  206. package/_standalone/__next/server/app/api/settings/list-models/route.js +1 -1
  207. package/_standalone/__next/server/app/api/settings/list-models/route.js.nft.json +1 -1
  208. package/_standalone/__next/server/app/api/settings/list-models/route_client-reference-manifest.js +1 -1
  209. package/_standalone/__next/server/app/api/settings/reset-token/route.js +1 -1
  210. package/_standalone/__next/server/app/api/settings/reset-token/route.js.nft.json +1 -1
  211. package/_standalone/__next/server/app/api/settings/reset-token/route_client-reference-manifest.js +1 -1
  212. package/_standalone/__next/server/app/api/settings/route.js +1 -1
  213. package/_standalone/__next/server/app/api/settings/route.js.nft.json +1 -1
  214. package/_standalone/__next/server/app/api/settings/route_client-reference-manifest.js +1 -1
  215. package/_standalone/__next/server/app/api/settings/test-key/route.js +1 -1
  216. package/_standalone/__next/server/app/api/settings/test-key/route.js.nft.json +1 -1
  217. package/_standalone/__next/server/app/api/settings/test-key/route_client-reference-manifest.js +1 -1
  218. package/_standalone/__next/server/app/api/setup/check-path/route.js +1 -1
  219. package/_standalone/__next/server/app/api/setup/check-path/route.js.nft.json +1 -1
  220. package/_standalone/__next/server/app/api/setup/check-path/route_client-reference-manifest.js +1 -1
  221. package/_standalone/__next/server/app/api/setup/check-port/route.js +1 -1
  222. package/_standalone/__next/server/app/api/setup/check-port/route.js.nft.json +1 -1
  223. package/_standalone/__next/server/app/api/setup/check-port/route_client-reference-manifest.js +1 -1
  224. package/_standalone/__next/server/app/api/setup/generate-token/route.js +1 -1
  225. package/_standalone/__next/server/app/api/setup/generate-token/route.js.nft.json +1 -1
  226. package/_standalone/__next/server/app/api/setup/generate-token/route_client-reference-manifest.js +1 -1
  227. package/_standalone/__next/server/app/api/setup/ls/route.js +1 -1
  228. package/_standalone/__next/server/app/api/setup/ls/route.js.nft.json +1 -1
  229. package/_standalone/__next/server/app/api/setup/ls/route_client-reference-manifest.js +1 -1
  230. package/_standalone/__next/server/app/api/setup/route.js +1 -1
  231. package/_standalone/__next/server/app/api/setup/route.js.nft.json +1 -1
  232. package/_standalone/__next/server/app/api/setup/route_client-reference-manifest.js +1 -1
  233. package/_standalone/__next/server/app/api/skills/route.js +1 -1
  234. package/_standalone/__next/server/app/api/skills/route.js.nft.json +1 -1
  235. package/_standalone/__next/server/app/api/skills/route_client-reference-manifest.js +1 -1
  236. package/_standalone/__next/server/app/api/space-overview/route.js +1 -1
  237. package/_standalone/__next/server/app/api/space-overview/route.js.nft.json +1 -1
  238. package/_standalone/__next/server/app/api/space-overview/route_client-reference-manifest.js +1 -1
  239. package/_standalone/__next/server/app/api/sync/route.js +1 -1
  240. package/_standalone/__next/server/app/api/sync/route.js.nft.json +1 -1
  241. package/_standalone/__next/server/app/api/sync/route_client-reference-manifest.js +1 -1
  242. package/_standalone/__next/server/app/api/tree-version/route.js +1 -1
  243. package/_standalone/__next/server/app/api/tree-version/route.js.nft.json +1 -1
  244. package/_standalone/__next/server/app/api/tree-version/route_client-reference-manifest.js +1 -1
  245. package/_standalone/__next/server/app/api/uninstall/route.js +1 -1
  246. package/_standalone/__next/server/app/api/uninstall/route.js.nft.json +1 -1
  247. package/_standalone/__next/server/app/api/uninstall/route_client-reference-manifest.js +1 -1
  248. package/_standalone/__next/server/app/api/update/route.js +1 -1
  249. package/_standalone/__next/server/app/api/update/route.js.nft.json +1 -1
  250. package/_standalone/__next/server/app/api/update/route_client-reference-manifest.js +1 -1
  251. package/_standalone/__next/server/app/api/update-check/route.js +1 -1
  252. package/_standalone/__next/server/app/api/update-check/route.js.nft.json +1 -1
  253. package/_standalone/__next/server/app/api/update-check/route_client-reference-manifest.js +1 -1
  254. package/_standalone/__next/server/app/api/update-status/route.js +1 -1
  255. package/_standalone/__next/server/app/api/update-status/route.js.nft.json +1 -1
  256. package/_standalone/__next/server/app/api/update-status/route_client-reference-manifest.js +1 -1
  257. package/_standalone/__next/server/app/api/workflows/route.js +1 -1
  258. package/_standalone/__next/server/app/api/workflows/route.js.nft.json +1 -1
  259. package/_standalone/__next/server/app/api/workflows/route_client-reference-manifest.js +1 -1
  260. package/_standalone/__next/server/app/capture/history/page.js +2 -2
  261. package/_standalone/__next/server/app/capture/history/page.js.nft.json +1 -1
  262. package/_standalone/__next/server/app/capture/history/page_client-reference-manifest.js +1 -1
  263. package/_standalone/__next/server/app/capture/page.js +2 -2
  264. package/_standalone/__next/server/app/capture/page.js.nft.json +1 -1
  265. package/_standalone/__next/server/app/capture/page_client-reference-manifest.js +1 -1
  266. package/_standalone/__next/server/app/changelog/page.js +2 -2
  267. package/_standalone/__next/server/app/changelog/page.js.nft.json +1 -1
  268. package/_standalone/__next/server/app/changelog/page_client-reference-manifest.js +1 -1
  269. package/_standalone/__next/server/app/changes/page.js +2 -2
  270. package/_standalone/__next/server/app/changes/page.js.nft.json +1 -1
  271. package/_standalone/__next/server/app/changes/page_client-reference-manifest.js +1 -1
  272. package/_standalone/__next/server/app/echo/[segment]/page.js +4 -4
  273. package/_standalone/__next/server/app/echo/[segment]/page.js.nft.json +1 -1
  274. package/_standalone/__next/server/app/echo/[segment]/page_client-reference-manifest.js +1 -1
  275. package/_standalone/__next/server/app/echo/page.js +2 -2
  276. package/_standalone/__next/server/app/echo/page.js.nft.json +1 -1
  277. package/_standalone/__next/server/app/echo/page_client-reference-manifest.js +1 -1
  278. package/_standalone/__next/server/app/explore/page.js +3 -3
  279. package/_standalone/__next/server/app/explore/page.js.nft.json +1 -1
  280. package/_standalone/__next/server/app/explore/page_client-reference-manifest.js +1 -1
  281. package/_standalone/__next/server/app/help/page.js +2 -2
  282. package/_standalone/__next/server/app/help/page.js.nft.json +1 -1
  283. package/_standalone/__next/server/app/help/page_client-reference-manifest.js +1 -1
  284. package/_standalone/__next/server/app/icon.svg/route.js +1 -1
  285. package/_standalone/__next/server/app/inbox/history/page.js +2 -2
  286. package/_standalone/__next/server/app/inbox/history/page.js.nft.json +1 -1
  287. package/_standalone/__next/server/app/inbox/history/page_client-reference-manifest.js +1 -1
  288. package/_standalone/__next/server/app/login/page.js +2 -2
  289. package/_standalone/__next/server/app/login/page.js.nft.json +1 -1
  290. package/_standalone/__next/server/app/login/page_client-reference-manifest.js +1 -1
  291. package/_standalone/__next/server/app/page.js +2 -2
  292. package/_standalone/__next/server/app/page.js.nft.json +1 -1
  293. package/_standalone/__next/server/app/page_client-reference-manifest.js +1 -1
  294. package/_standalone/__next/server/app/settings/page.js +2 -2
  295. package/_standalone/__next/server/app/settings/page.js.nft.json +1 -1
  296. package/_standalone/__next/server/app/settings/page_client-reference-manifest.js +1 -1
  297. package/_standalone/__next/server/app/setup/page.js +2 -2
  298. package/_standalone/__next/server/app/setup/page.js.nft.json +1 -1
  299. package/_standalone/__next/server/app/setup/page_client-reference-manifest.js +1 -1
  300. package/_standalone/__next/server/app/todo/page.js +2 -2
  301. package/_standalone/__next/server/app/todo/page.js.nft.json +1 -1
  302. package/_standalone/__next/server/app/todo/page_client-reference-manifest.js +1 -1
  303. package/_standalone/__next/server/app/trash/page.js +3 -3
  304. package/_standalone/__next/server/app/trash/page.js.nft.json +1 -1
  305. package/_standalone/__next/server/app/trash/page_client-reference-manifest.js +1 -1
  306. package/_standalone/__next/server/app/view/[...path]/page.js +3 -3
  307. package/_standalone/__next/server/app/view/[...path]/page.js.nft.json +1 -1
  308. package/_standalone/__next/server/app/view/[...path]/page_client-reference-manifest.js +1 -1
  309. package/_standalone/__next/server/app/wiki/page.js +2 -2
  310. package/_standalone/__next/server/app/wiki/page.js.nft.json +1 -1
  311. package/_standalone/__next/server/app/wiki/page_client-reference-manifest.js +1 -1
  312. package/_standalone/__next/server/app-paths-manifest.json +26 -26
  313. package/_standalone/__next/server/chunks/{6602.js → 1834.js} +32 -32
  314. package/_standalone/__next/server/chunks/1976.js +3 -3
  315. package/_standalone/__next/server/chunks/3466.js +1 -1
  316. package/_standalone/__next/server/chunks/3566.js +1 -1
  317. package/_standalone/__next/server/chunks/3727.js +1 -1
  318. package/_standalone/__next/server/chunks/4793.js +1 -1
  319. package/_standalone/__next/server/chunks/6377.js +3 -3
  320. package/_standalone/__next/server/chunks/6754.js +1 -1
  321. package/_standalone/__next/server/chunks/7765.js +1 -1
  322. package/_standalone/__next/server/chunks/8028.js +1 -1
  323. package/_standalone/__next/server/chunks/{7295.js → 8461.js} +19 -19
  324. package/_standalone/__next/server/chunks/9350.js +2 -2
  325. package/_standalone/__next/server/chunks/{5225.js → 9773.js} +4 -4
  326. package/_standalone/__next/server/middleware-build-manifest.js +1 -1
  327. package/_standalone/__next/server/middleware-react-loadable-manifest.js +1 -1
  328. package/_standalone/__next/server/middleware.js +2 -2
  329. package/_standalone/__next/server/pages/500.html +2 -2
  330. package/_standalone/__next/server/server-reference-manifest.js +1 -1
  331. package/_standalone/__next/server/server-reference-manifest.json +1 -1
  332. package/_standalone/__next/static/chunks/{1430-a3447cf370715cad.js → 1430-c4ffa328888515c1.js} +1 -1
  333. package/{static-web/_next/static/chunks/7166-d6d8489fdf67d180.js → _standalone/__next/static/chunks/1957-723ac4eb5200214c.js} +3 -3
  334. package/_standalone/__next/static/chunks/{2280-2277c97eae59ded9.js → 2737-f4970f0684c334d6.js} +2 -2
  335. package/{static-web/_next/static/chunks/5200-2447cea5eb41a922.js → _standalone/__next/static/chunks/5200-6c82e5ce54a95b4b.js} +2 -2
  336. package/_standalone/__next/static/chunks/{1998.c8edc5601fa7362f.js → 6728.e1841cddb63308b0.js} +1 -1
  337. package/_standalone/__next/static/chunks/{6947.51e37852cef26113.js → 6947.fb89346ef2f6be17.js} +1 -1
  338. package/_standalone/__next/static/chunks/app/_not-found/{page-ec6fa498a07e6fd9.js → page-eaedcec1b693c03c.js} +1 -1
  339. package/{static-web/_next/static/chunks/app/agents/[agentKey]/page-44c493b744d18249.js → _standalone/__next/static/chunks/app/agents/[agentKey]/page-1dac12945bfbaf35.js} +1 -1
  340. package/{static-web/_next/static/chunks/app/agents/page-6591b482a193e657.js → _standalone/__next/static/chunks/app/agents/page-7ff2e39ca12eb20a.js} +1 -1
  341. package/_standalone/__next/static/chunks/app/capture/history/page-51db96203209a441.js +1 -0
  342. package/_standalone/__next/static/chunks/app/capture/page-3bf09d1f5e1c379c.js +1 -0
  343. package/_standalone/__next/static/chunks/app/changelog/page-01dc22b6d2230c7f.js +1 -0
  344. package/_standalone/__next/static/chunks/app/changes/page-c9f8d5632a001849.js +1 -0
  345. package/{static-web/_next/static/chunks/app/echo/[segment]/page-c5ea40ac04f2dc29.js → _standalone/__next/static/chunks/app/echo/[segment]/page-44b6b8e7fd0bbe31.js} +2 -2
  346. package/_standalone/__next/static/chunks/app/echo/page-c9f8d5632a001849.js +1 -0
  347. package/_standalone/__next/static/chunks/app/{error-c46d1b03d5e3289c.js → error-1cfcd6abd93c3837.js} +1 -1
  348. package/_standalone/__next/static/chunks/app/explore/{page-5d6dd4af8d1bb468.js → page-117fcf54b8b9765c.js} +1 -1
  349. package/_standalone/__next/static/chunks/app/global-error-11b333dcf222bc09.js +1 -0
  350. package/{static-web/_next/static/chunks/app/help/page-3f0a1a8e51249cb2.js → _standalone/__next/static/chunks/app/help/page-6efb8aa3a3c169fa.js} +1 -1
  351. package/_standalone/__next/static/chunks/app/inbox/history/page-913645bbd6161116.js +1 -0
  352. package/_standalone/__next/static/chunks/app/{layout-7aa371fe2615cd3e.js → layout-24a31ea28c556e82.js} +38 -38
  353. package/_standalone/__next/static/chunks/app/login/page-7f9aca3d51266bec.js +1 -0
  354. package/{static-web/_next/static/chunks/app/page-5c9489e28657376e.js → _standalone/__next/static/chunks/app/page-35662964020c0ea9.js} +1 -1
  355. package/_standalone/__next/static/chunks/app/settings/{page-4b75d6c17f42d565.js → page-f816f13a34613538.js} +1 -1
  356. package/{static-web/_next/static/chunks/app/setup/page-f5de08d0d588c778.js → _standalone/__next/static/chunks/app/setup/page-a1027871dc33ffbd.js} +1 -1
  357. package/_standalone/__next/static/chunks/app/todo/page-54c3ec77f662ff73.js +1 -0
  358. package/_standalone/__next/static/chunks/app/trash/page-50622e3df2047204.js +1 -0
  359. package/_standalone/__next/static/chunks/app/view/[...path]/{error-f73092e638a4e999.js → error-c9a3f6de7c963c74.js} +1 -1
  360. package/_standalone/__next/static/chunks/app/view/[...path]/{not-found-80e5f4054819b372.js → not-found-5a4f2b4fbe28d617.js} +1 -1
  361. package/{static-web/_next/static/chunks/app/view/[...path]/page-ffe3c61100e25591.js → _standalone/__next/static/chunks/app/view/[...path]/page-b10d3819827da1c2.js} +2 -2
  362. package/{static-web/_next/static/chunks/app/wiki/page-4c9bc816069b6f2a.js → _standalone/__next/static/chunks/app/wiki/page-7afd3b97c1ea1b8c.js} +2 -2
  363. package/_standalone/__next/static/chunks/{main-app-23adfdc06470abb6.js → main-app-8a6081b103b8f494.js} +1 -1
  364. package/_standalone/__next/static/chunks/webpack-7d8c24c6af17dd51.js +1 -0
  365. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  366. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  367. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  368. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  369. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  370. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  371. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  372. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  373. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  374. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  375. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  376. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  377. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  378. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  379. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  380. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  381. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  382. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  383. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  384. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  385. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  386. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  387. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  388. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  389. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  390. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  391. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  392. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  393. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  394. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  395. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  396. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  397. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  398. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  399. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  400. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  401. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  402. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  403. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  404. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  405. package/_standalone/__node_modules/@aws-sdk/xml-builder/node_modules/.bin/fxparser +2 -2
  406. package/_standalone/__node_modules/@mariozechner/pi-agent-core/node_modules/.bin/pi-ai +2 -2
  407. package/_standalone/__node_modules/@mariozechner/pi-agent-core/node_modules/@mariozechner/pi-ai/node_modules/.bin/anthropic-ai-sdk +2 -2
  408. package/_standalone/__node_modules/@mariozechner/pi-agent-core/node_modules/@mariozechner/pi-ai/node_modules/.bin/openai +2 -2
  409. package/_standalone/__node_modules/@mariozechner/pi-ai/node_modules/.bin/anthropic-ai-sdk +2 -2
  410. package/_standalone/__node_modules/@mariozechner/pi-ai/node_modules/.bin/openai +2 -2
  411. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/extract-zip +2 -2
  412. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/highlight +2 -2
  413. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/jiti +2 -2
  414. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/marked +2 -2
  415. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/pi-ai +2 -2
  416. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/yaml +2 -2
  417. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/@mariozechner/pi-ai/node_modules/.bin/anthropic-ai-sdk +2 -2
  418. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/@mariozechner/pi-ai/node_modules/.bin/openai +2 -2
  419. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/strip-ansi/node_modules/ansi-regex/index.js +14 -0
  420. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/strip-ansi/node_modules/ansi-regex/license +9 -0
  421. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/strip-ansi/node_modules/ansi-regex/package.json +61 -0
  422. package/_standalone/__node_modules/@mariozechner/pi-tui/node_modules/.bin/marked +2 -2
  423. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  424. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  425. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  426. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  427. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  428. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  429. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  430. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  431. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  432. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  433. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  434. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  435. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  436. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  437. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  438. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  439. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  440. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  441. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  442. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  443. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  444. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  445. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  446. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  447. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  448. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  449. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  450. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  451. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  452. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  453. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  454. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  455. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  456. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  457. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  458. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  459. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  460. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  461. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  462. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  463. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  464. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  465. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  466. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  467. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  468. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  469. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  470. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  471. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  472. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  473. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  474. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  475. package/_standalone/__node_modules/bignumber.js/doc/API.html +2249 -0
  476. package/_standalone/__node_modules/degenerator/node_modules/.bin/escodegen +2 -2
  477. package/_standalone/__node_modules/degenerator/node_modules/.bin/esgenerate +2 -2
  478. package/_standalone/__node_modules/degenerator/node_modules/.bin/esparse +2 -2
  479. package/_standalone/__node_modules/degenerator/node_modules/.bin/esvalidate +2 -2
  480. package/_standalone/__node_modules/entities/LICENSE +11 -0
  481. package/_standalone/__node_modules/entities/dist/decode-codepoint.js +46 -0
  482. package/_standalone/__node_modules/entities/dist/decode.js +544 -0
  483. package/_standalone/__node_modules/entities/dist/encode.js +90 -0
  484. package/_standalone/__node_modules/entities/dist/escape.js +132 -0
  485. package/_standalone/__node_modules/entities/dist/generated/decode-data-html.js +5 -0
  486. package/_standalone/__node_modules/entities/dist/generated/decode-data-xml.js +5 -0
  487. package/_standalone/__node_modules/entities/dist/generated/encode-html.js +12 -0
  488. package/_standalone/__node_modules/entities/dist/index.js +91 -0
  489. package/_standalone/__node_modules/entities/dist/internal/bin-trie-flags.js +18 -0
  490. package/_standalone/__node_modules/entities/dist/internal/decode-shared.js +17 -0
  491. package/_standalone/__node_modules/entities/dist/internal/encode-shared.js +93 -0
  492. package/_standalone/__node_modules/entities/package.json +83 -0
  493. package/_standalone/__node_modules/entities/src/decode-codepoint.ts +50 -0
  494. package/_standalone/__node_modules/entities/src/decode.ts +671 -0
  495. package/_standalone/__node_modules/entities/src/encode.ts +95 -0
  496. package/_standalone/__node_modules/entities/src/escape.ts +160 -0
  497. package/_standalone/__node_modules/entities/src/generated/decode-data-html.ts +7 -0
  498. package/_standalone/__node_modules/entities/src/generated/decode-data-xml.ts +7 -0
  499. package/_standalone/__node_modules/entities/src/generated/encode-html.ts +18 -0
  500. package/_standalone/__node_modules/entities/src/index.ts +162 -0
  501. package/_standalone/__node_modules/entities/src/internal/bin-trie-flags.ts +16 -0
  502. package/_standalone/__node_modules/entities/src/internal/decode-shared.ts +18 -0
  503. package/_standalone/__node_modules/entities/src/internal/encode-shared.ts +123 -0
  504. package/_standalone/__node_modules/escodegen/node_modules/.bin/esparse +2 -2
  505. package/_standalone/__node_modules/escodegen/node_modules/.bin/esvalidate +2 -2
  506. package/_standalone/__node_modules/global-agent/node_modules/.bin/semver +2 -2
  507. package/_standalone/__node_modules/has-flag/index.js +8 -0
  508. package/_standalone/__node_modules/has-flag/license +9 -0
  509. package/_standalone/__node_modules/has-flag/package.json +46 -0
  510. package/_standalone/__node_modules/jsdom/node_modules/.bin/specificity +2 -2
  511. package/_standalone/__node_modules/koffi/doc/benchmarks.md +126 -0
  512. package/_standalone/__node_modules/koffi/doc/callbacks.md +210 -0
  513. package/_standalone/__node_modules/koffi/doc/contribute.md +148 -0
  514. package/_standalone/__node_modules/koffi/doc/functions.md +250 -0
  515. package/_standalone/__node_modules/koffi/doc/index.md +61 -0
  516. package/_standalone/__node_modules/koffi/doc/input.md +471 -0
  517. package/_standalone/__node_modules/koffi/doc/migration.md +159 -0
  518. package/_standalone/__node_modules/koffi/doc/misc.md +180 -0
  519. package/_standalone/__node_modules/koffi/doc/output.md +305 -0
  520. package/_standalone/__node_modules/koffi/doc/packaging.md +88 -0
  521. package/_standalone/__node_modules/koffi/doc/platforms.md +36 -0
  522. package/_standalone/__node_modules/koffi/doc/pointers.md +328 -0
  523. package/_standalone/__node_modules/koffi/doc/start.md +118 -0
  524. package/_standalone/__node_modules/koffi/doc/unions.md +186 -0
  525. package/_standalone/__node_modules/koffi/doc/variables.md +102 -0
  526. package/_standalone/__node_modules/postcss/node_modules/.bin/nanoid +2 -2
  527. package/_standalone/__node_modules/supports-color/browser.js +5 -0
  528. package/_standalone/__node_modules/supports-color/index.js +135 -0
  529. package/_standalone/__node_modules/supports-color/license +9 -0
  530. package/_standalone/__node_modules/supports-color/package.json +53 -0
  531. package/_standalone/__node_modules/tough-cookie/node_modules/.bin/tldts +2 -2
  532. package/_standalone/__node_modules/yaml/browser/dist/doc/Document.js +335 -0
  533. package/_standalone/__node_modules/yaml/browser/dist/doc/anchors.js +71 -0
  534. package/_standalone/__node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
  535. package/_standalone/__node_modules/yaml/browser/dist/doc/createNode.js +88 -0
  536. package/_standalone/__node_modules/yaml/browser/dist/doc/directives.js +176 -0
  537. package/_standalone/__node_modules/yaml/dist/doc/Document.js +337 -0
  538. package/_standalone/__node_modules/yaml/dist/doc/anchors.js +76 -0
  539. package/_standalone/__node_modules/yaml/dist/doc/applyReviver.js +57 -0
  540. package/_standalone/__node_modules/yaml/dist/doc/createNode.js +90 -0
  541. package/_standalone/__node_modules/yaml/dist/doc/directives.js +178 -0
  542. package/_standalone/server.js +1 -1
  543. package/dist/server/handlers/mcp-agents.d.ts +1 -0
  544. package/dist/server/handlers/mcp-agents.d.ts.map +1 -1
  545. package/dist/server/handlers/mcp-agents.js +230 -7
  546. package/dist/server/handlers/mcp-agents.js.map +1 -1
  547. package/dist/server/http.d.ts +7 -4
  548. package/dist/server/http.d.ts.map +1 -1
  549. package/dist/server/http.js +2 -0
  550. package/dist/server/http.js.map +1 -1
  551. package/dist/server/mcp-agent-registry.d.ts +4 -0
  552. package/dist/server/mcp-agent-registry.d.ts.map +1 -0
  553. package/dist/server/mcp-agent-registry.js +266 -0
  554. package/dist/server/mcp-agent-registry.js.map +1 -0
  555. package/package.json +1 -1
  556. package/runtime-manifest.json +1 -1
  557. package/scripts/prepare-standalone.mjs +0 -1
  558. package/scripts/smoke-desktop-app.mjs +82 -8
  559. package/scripts/verify-desktop-runtime.mjs +2 -1
  560. package/scripts/verify-standalone.mjs +12 -0
  561. package/static-web/.mindos-build-version +1 -1
  562. package/static-web/_next/static/chunks/{1430-a3447cf370715cad.js → 1430-c4ffa328888515c1.js} +1 -1
  563. package/{_standalone/__next/static/chunks/7166-d6d8489fdf67d180.js → static-web/_next/static/chunks/1957-723ac4eb5200214c.js} +3 -3
  564. package/static-web/_next/static/chunks/{2280-2277c97eae59ded9.js → 2737-f4970f0684c334d6.js} +2 -2
  565. package/{_standalone/__next/static/chunks/5200-2447cea5eb41a922.js → static-web/_next/static/chunks/5200-6c82e5ce54a95b4b.js} +2 -2
  566. package/static-web/_next/static/chunks/{1998.c8edc5601fa7362f.js → 6728.e1841cddb63308b0.js} +1 -1
  567. package/static-web/_next/static/chunks/{6947.51e37852cef26113.js → 6947.fb89346ef2f6be17.js} +1 -1
  568. package/static-web/_next/static/chunks/app/_not-found/{page-ec6fa498a07e6fd9.js → page-eaedcec1b693c03c.js} +1 -1
  569. package/{_standalone/__next/static/chunks/app/agents/[agentKey]/page-44c493b744d18249.js → static-web/_next/static/chunks/app/agents/[agentKey]/page-1dac12945bfbaf35.js} +1 -1
  570. package/{_standalone/__next/static/chunks/app/agents/page-6591b482a193e657.js → static-web/_next/static/chunks/app/agents/page-7ff2e39ca12eb20a.js} +1 -1
  571. package/static-web/_next/static/chunks/app/capture/history/page-51db96203209a441.js +1 -0
  572. package/static-web/_next/static/chunks/app/capture/page-3bf09d1f5e1c379c.js +1 -0
  573. package/static-web/_next/static/chunks/app/changelog/page-01dc22b6d2230c7f.js +1 -0
  574. package/static-web/_next/static/chunks/app/changes/page-c9f8d5632a001849.js +1 -0
  575. package/{_standalone/__next/static/chunks/app/echo/[segment]/page-c5ea40ac04f2dc29.js → static-web/_next/static/chunks/app/echo/[segment]/page-44b6b8e7fd0bbe31.js} +2 -2
  576. package/static-web/_next/static/chunks/app/echo/page-c9f8d5632a001849.js +1 -0
  577. package/static-web/_next/static/chunks/app/{error-c46d1b03d5e3289c.js → error-1cfcd6abd93c3837.js} +1 -1
  578. package/static-web/_next/static/chunks/app/explore/{page-5d6dd4af8d1bb468.js → page-117fcf54b8b9765c.js} +1 -1
  579. package/static-web/_next/static/chunks/app/global-error-11b333dcf222bc09.js +1 -0
  580. package/{_standalone/__next/static/chunks/app/help/page-3f0a1a8e51249cb2.js → static-web/_next/static/chunks/app/help/page-6efb8aa3a3c169fa.js} +1 -1
  581. package/static-web/_next/static/chunks/app/inbox/history/page-913645bbd6161116.js +1 -0
  582. package/static-web/_next/static/chunks/app/{layout-7aa371fe2615cd3e.js → layout-24a31ea28c556e82.js} +38 -38
  583. package/static-web/_next/static/chunks/app/login/page-7f9aca3d51266bec.js +1 -0
  584. package/{_standalone/__next/static/chunks/app/page-5c9489e28657376e.js → static-web/_next/static/chunks/app/page-35662964020c0ea9.js} +1 -1
  585. package/static-web/_next/static/chunks/app/settings/{page-4b75d6c17f42d565.js → page-f816f13a34613538.js} +1 -1
  586. package/{_standalone/__next/static/chunks/app/setup/page-f5de08d0d588c778.js → static-web/_next/static/chunks/app/setup/page-a1027871dc33ffbd.js} +1 -1
  587. package/static-web/_next/static/chunks/app/todo/page-54c3ec77f662ff73.js +1 -0
  588. package/static-web/_next/static/chunks/app/trash/page-50622e3df2047204.js +1 -0
  589. package/static-web/_next/static/chunks/app/view/[...path]/{error-f73092e638a4e999.js → error-c9a3f6de7c963c74.js} +1 -1
  590. package/static-web/_next/static/chunks/app/view/[...path]/{not-found-80e5f4054819b372.js → not-found-5a4f2b4fbe28d617.js} +1 -1
  591. package/{_standalone/__next/static/chunks/app/view/[...path]/page-ffe3c61100e25591.js → static-web/_next/static/chunks/app/view/[...path]/page-b10d3819827da1c2.js} +2 -2
  592. package/{_standalone/__next/static/chunks/app/wiki/page-4c9bc816069b6f2a.js → static-web/_next/static/chunks/app/wiki/page-7afd3b97c1ea1b8c.js} +2 -2
  593. package/static-web/_next/static/chunks/{main-app-23adfdc06470abb6.js → main-app-8a6081b103b8f494.js} +1 -1
  594. package/static-web/_next/static/chunks/webpack-7d8c24c6af17dd51.js +1 -0
  595. package/static-web/help/index.html +3 -3
  596. package/static-web/index.html +3 -3
  597. package/static-web/setup/index.html +3 -3
  598. package/static-web/static-web-manifest.json +1 -1
  599. package/static-web/wiki/index.html +3 -3
  600. package/_standalone/__next/static/chunks/app/capture/history/page-d157ce945ad84c23.js +0 -1
  601. package/_standalone/__next/static/chunks/app/capture/page-ae4d683afdc7a7b2.js +0 -1
  602. package/_standalone/__next/static/chunks/app/changelog/page-5a39d8fe531f4d45.js +0 -1
  603. package/_standalone/__next/static/chunks/app/changes/page-64cf8d751245eee9.js +0 -1
  604. package/_standalone/__next/static/chunks/app/echo/page-64cf8d751245eee9.js +0 -1
  605. package/_standalone/__next/static/chunks/app/global-error-d42727c6c6c48879.js +0 -1
  606. package/_standalone/__next/static/chunks/app/inbox/history/page-b2930c2ef04e00b0.js +0 -1
  607. package/_standalone/__next/static/chunks/app/login/page-a4f9f9053c75ae8d.js +0 -1
  608. package/_standalone/__next/static/chunks/app/todo/page-c7629a0c102c634f.js +0 -1
  609. package/_standalone/__next/static/chunks/app/trash/page-e1bfaeeca2de6ab4.js +0 -1
  610. package/_standalone/__next/static/chunks/webpack-e39fda9494843875.js +0 -1
  611. package/static-web/_next/static/chunks/app/capture/history/page-d157ce945ad84c23.js +0 -1
  612. package/static-web/_next/static/chunks/app/capture/page-ae4d683afdc7a7b2.js +0 -1
  613. package/static-web/_next/static/chunks/app/changelog/page-5a39d8fe531f4d45.js +0 -1
  614. package/static-web/_next/static/chunks/app/changes/page-64cf8d751245eee9.js +0 -1
  615. package/static-web/_next/static/chunks/app/echo/page-64cf8d751245eee9.js +0 -1
  616. package/static-web/_next/static/chunks/app/global-error-d42727c6c6c48879.js +0 -1
  617. package/static-web/_next/static/chunks/app/inbox/history/page-b2930c2ef04e00b0.js +0 -1
  618. package/static-web/_next/static/chunks/app/login/page-a4f9f9053c75ae8d.js +0 -1
  619. package/static-web/_next/static/chunks/app/todo/page-c7629a0c102c634f.js +0 -1
  620. package/static-web/_next/static/chunks/app/trash/page-e1bfaeeca2de6ab4.js +0 -1
  621. package/static-web/_next/static/chunks/webpack-e39fda9494843875.js +0 -1
  622. /package/_standalone/__next/static/{DFngZEGZSufSm5RuKPkYN → 3FkuJxcda957EywJ5ZWWG}/_buildManifest.js +0 -0
  623. /package/_standalone/__next/static/{DFngZEGZSufSm5RuKPkYN → 3FkuJxcda957EywJ5ZWWG}/_ssgManifest.js +0 -0
  624. /package/static-web/_next/static/{DFngZEGZSufSm5RuKPkYN → 3FkuJxcda957EywJ5ZWWG}/_buildManifest.js +0 -0
  625. /package/static-web/_next/static/{DFngZEGZSufSm5RuKPkYN → 3FkuJxcda957EywJ5ZWWG}/_ssgManifest.js +0 -0
@@ -0,0 +1,102 @@
1
+ # Variable definitions
2
+
3
+ *New in Koffi 2.6*
4
+
5
+ To find an exported and declare a variable, use `lib.symbol(name, type)`. You need to specify its name and its type.
6
+
7
+ ```c
8
+ int my_int = 42;
9
+ const char *my_string = NULL;
10
+ ```
11
+
12
+ ```js
13
+ const my_int = lib.symbol('my_int', 'int');
14
+ const my_string = lib.symbol('my_string', 'const char *');
15
+ ```
16
+
17
+ You cannot directly manipulate these variables, use:
18
+
19
+ - [koffi.decode()](#decode-to-js-values) to read their value
20
+ - [koffi.encode()](#encode-to-c-memory) to change their valuèe
21
+
22
+ # Decode to JS values
23
+
24
+ *New in Koffi 2.2, changed in Koffi 2.3*
25
+
26
+ Use `koffi.decode()` to decode C pointers, wrapped as external objects or as simple numbers.
27
+
28
+ Some arguments are optional and this function can be called in several ways:
29
+
30
+ - `koffi.decode(value, type)`: no offset
31
+ - `koffi.decode(value, offset, type)`: explicit offset to add to the pointer before decoding
32
+
33
+ By default, Koffi expects NUL terminated strings when decoding them. See below if you need to specify the string length.
34
+
35
+ The following example illustrates how to decode an integer and a C string variable.
36
+
37
+ ```c
38
+ int my_int = 42;
39
+ const char *my_string = "foobar";
40
+ ```
41
+
42
+ ```js
43
+ const my_int = lib.symbol('my_int', 'int');
44
+ const my_string = lib.symbol('my_string', 'const char *');
45
+
46
+ console.log(koffi.decode(my_int, 'int')) // Prints 42
47
+ console.log(koffi.decode(my_string, 'const char *')) // Prints "foobar"
48
+ ```
49
+
50
+ There is also an optional ending `length` argument that you can use in two cases:
51
+
52
+ - Use it to give the number of bytes to decode in non-NUL terminated strings: `koffi.decode(value, 'char *', 5)`
53
+ - Decode consecutive values into an array. For example, here is how you can decode an array with 3 float values: `koffi.decode(value, 'float', 3)`. This is equivalent to `koffi.decode(value, koffi.array('float', 3))`.
54
+
55
+ The example below will decode the symbol `my_string` defined above but only the first three bytes.
56
+
57
+ ```js
58
+ // Only decode 3 bytes from the C string my_string
59
+ console.log(koffi.decode(my_string, 'const char *', 3)) // Prints "foo"
60
+ ```
61
+
62
+ > [!NOTE]
63
+ > In Koffi 2.2 and earlier versions, the length argument is only used to decode strings and is ignored otherwise.
64
+
65
+ # Encode to C memory
66
+
67
+ *New in Koffi 2.6*
68
+
69
+ Use `koffi.encode()` to encode JS values into C symbols or pointers, wrapped as external objects or as simple numbers.
70
+
71
+ Some arguments are optional and this function can be called in several ways:
72
+
73
+ - `koffi.encode(ref, type, value)`: no offset
74
+ - `koffi.encode(ref, offset, type, value)`: explicit offset to add to the pointer before encoding
75
+
76
+ We'll reuse the examples shown above and change the variable values with `koffi.encode()`.
77
+
78
+ ```c
79
+ int my_int = 42;
80
+ const char *my_string = NULL;
81
+ ```
82
+
83
+ ```js
84
+ const my_int = lib.symbol('my_int', 'int');
85
+ const my_string = lib.symbol('my_string', 'const char *');
86
+
87
+ console.log(koffi.decode(my_int, 'int')) // Prints 42
88
+ console.log(koffi.decode(my_string, 'const char *')) // Prints null
89
+
90
+ koffi.encode(my_int, 'int', -1);
91
+ koffi.encode(my_string, 'const char *', 'Hello World!');
92
+
93
+ console.log(koffi.decode(my_int, 'int')) // Prints -1
94
+ console.log(koffi.decode(my_string, 'const char *')) // Prints "Hello World!"
95
+ ```
96
+
97
+ When encoding strings (either directly or embedded in arrays or structs), the memory will be bound to the raw pointer value and managed by Koffi. You can assign to the same string again and again without any leak or risk of use-after-free.
98
+
99
+ There is also an optional ending `length` argument that you can use to encode an array. For example, here is how you can encode an array with 3 float values: `koffi.encode(symbol, 'float', [1, 2, 3], 3)`. This is equivalent to `koffi.encode(symbol, koffi.array('float', 3), [1, 2, 3])`.
100
+
101
+ > [!NOTE]
102
+ > The length argument did not work correctly before Koffi 2.6.11.
@@ -10,9 +10,9 @@ case `uname` in
10
10
  esac
11
11
 
12
12
  if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/home/runner/work/MindOS/MindOS/node_modules/.pnpm/nanoid@3.3.11/node_modules/nanoid/bin/node_modules:/home/runner/work/MindOS/MindOS/node_modules/.pnpm/nanoid@3.3.11/node_modules/nanoid/node_modules:/home/runner/work/MindOS/MindOS/node_modules/.pnpm/nanoid@3.3.11/node_modules:/home/runner/work/MindOS/MindOS/node_modules/.pnpm/node_modules"
13
+ export NODE_PATH="/home/runner/work/mindos-dev/mindos-dev/node_modules/.pnpm/nanoid@3.3.11/node_modules/nanoid/bin/node_modules:/home/runner/work/mindos-dev/mindos-dev/node_modules/.pnpm/nanoid@3.3.11/node_modules/nanoid/node_modules:/home/runner/work/mindos-dev/mindos-dev/node_modules/.pnpm/nanoid@3.3.11/node_modules:/home/runner/work/mindos-dev/mindos-dev/node_modules/.pnpm/node_modules"
14
14
  else
15
- export NODE_PATH="/home/runner/work/MindOS/MindOS/node_modules/.pnpm/nanoid@3.3.11/node_modules/nanoid/bin/node_modules:/home/runner/work/MindOS/MindOS/node_modules/.pnpm/nanoid@3.3.11/node_modules/nanoid/node_modules:/home/runner/work/MindOS/MindOS/node_modules/.pnpm/nanoid@3.3.11/node_modules:/home/runner/work/MindOS/MindOS/node_modules/.pnpm/node_modules:$NODE_PATH"
15
+ export NODE_PATH="/home/runner/work/mindos-dev/mindos-dev/node_modules/.pnpm/nanoid@3.3.11/node_modules/nanoid/bin/node_modules:/home/runner/work/mindos-dev/mindos-dev/node_modules/.pnpm/nanoid@3.3.11/node_modules/nanoid/node_modules:/home/runner/work/mindos-dev/mindos-dev/node_modules/.pnpm/nanoid@3.3.11/node_modules:/home/runner/work/mindos-dev/mindos-dev/node_modules/.pnpm/node_modules:$NODE_PATH"
16
16
  fi
17
17
  if [ -x "$basedir/node" ]; then
18
18
  exec "$basedir/node" "$basedir/../../../../../nanoid@3.3.11/node_modules/nanoid/bin/nanoid.cjs" "$@"
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+ module.exports = {
3
+ stdout: false,
4
+ stderr: false
5
+ };
@@ -0,0 +1,135 @@
1
+ 'use strict';
2
+ const os = require('os');
3
+ const tty = require('tty');
4
+ const hasFlag = require('has-flag');
5
+
6
+ const {env} = process;
7
+
8
+ let forceColor;
9
+ if (hasFlag('no-color') ||
10
+ hasFlag('no-colors') ||
11
+ hasFlag('color=false') ||
12
+ hasFlag('color=never')) {
13
+ forceColor = 0;
14
+ } else if (hasFlag('color') ||
15
+ hasFlag('colors') ||
16
+ hasFlag('color=true') ||
17
+ hasFlag('color=always')) {
18
+ forceColor = 1;
19
+ }
20
+
21
+ if ('FORCE_COLOR' in env) {
22
+ if (env.FORCE_COLOR === 'true') {
23
+ forceColor = 1;
24
+ } else if (env.FORCE_COLOR === 'false') {
25
+ forceColor = 0;
26
+ } else {
27
+ forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
28
+ }
29
+ }
30
+
31
+ function translateLevel(level) {
32
+ if (level === 0) {
33
+ return false;
34
+ }
35
+
36
+ return {
37
+ level,
38
+ hasBasic: true,
39
+ has256: level >= 2,
40
+ has16m: level >= 3
41
+ };
42
+ }
43
+
44
+ function supportsColor(haveStream, streamIsTTY) {
45
+ if (forceColor === 0) {
46
+ return 0;
47
+ }
48
+
49
+ if (hasFlag('color=16m') ||
50
+ hasFlag('color=full') ||
51
+ hasFlag('color=truecolor')) {
52
+ return 3;
53
+ }
54
+
55
+ if (hasFlag('color=256')) {
56
+ return 2;
57
+ }
58
+
59
+ if (haveStream && !streamIsTTY && forceColor === undefined) {
60
+ return 0;
61
+ }
62
+
63
+ const min = forceColor || 0;
64
+
65
+ if (env.TERM === 'dumb') {
66
+ return min;
67
+ }
68
+
69
+ if (process.platform === 'win32') {
70
+ // Windows 10 build 10586 is the first Windows release that supports 256 colors.
71
+ // Windows 10 build 14931 is the first release that supports 16m/TrueColor.
72
+ const osRelease = os.release().split('.');
73
+ if (
74
+ Number(osRelease[0]) >= 10 &&
75
+ Number(osRelease[2]) >= 10586
76
+ ) {
77
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
78
+ }
79
+
80
+ return 1;
81
+ }
82
+
83
+ if ('CI' in env) {
84
+ if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
85
+ return 1;
86
+ }
87
+
88
+ return min;
89
+ }
90
+
91
+ if ('TEAMCITY_VERSION' in env) {
92
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
93
+ }
94
+
95
+ if (env.COLORTERM === 'truecolor') {
96
+ return 3;
97
+ }
98
+
99
+ if ('TERM_PROGRAM' in env) {
100
+ const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
101
+
102
+ switch (env.TERM_PROGRAM) {
103
+ case 'iTerm.app':
104
+ return version >= 3 ? 3 : 2;
105
+ case 'Apple_Terminal':
106
+ return 2;
107
+ // No default
108
+ }
109
+ }
110
+
111
+ if (/-256(color)?$/i.test(env.TERM)) {
112
+ return 2;
113
+ }
114
+
115
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
116
+ return 1;
117
+ }
118
+
119
+ if ('COLORTERM' in env) {
120
+ return 1;
121
+ }
122
+
123
+ return min;
124
+ }
125
+
126
+ function getSupportLevel(stream) {
127
+ const level = supportsColor(stream, stream && stream.isTTY);
128
+ return translateLevel(level);
129
+ }
130
+
131
+ module.exports = {
132
+ supportsColor: getSupportLevel,
133
+ stdout: translateLevel(supportsColor(true, tty.isatty(1))),
134
+ stderr: translateLevel(supportsColor(true, tty.isatty(2)))
135
+ };
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "supports-color",
3
+ "version": "7.2.0",
4
+ "description": "Detect whether a terminal supports color",
5
+ "license": "MIT",
6
+ "repository": "chalk/supports-color",
7
+ "author": {
8
+ "name": "Sindre Sorhus",
9
+ "email": "sindresorhus@gmail.com",
10
+ "url": "sindresorhus.com"
11
+ },
12
+ "engines": {
13
+ "node": ">=8"
14
+ },
15
+ "scripts": {
16
+ "test": "xo && ava"
17
+ },
18
+ "files": [
19
+ "index.js",
20
+ "browser.js"
21
+ ],
22
+ "keywords": [
23
+ "color",
24
+ "colour",
25
+ "colors",
26
+ "terminal",
27
+ "console",
28
+ "cli",
29
+ "ansi",
30
+ "styles",
31
+ "tty",
32
+ "rgb",
33
+ "256",
34
+ "shell",
35
+ "xterm",
36
+ "command-line",
37
+ "support",
38
+ "supports",
39
+ "capability",
40
+ "detect",
41
+ "truecolor",
42
+ "16m"
43
+ ],
44
+ "dependencies": {
45
+ "has-flag": "^4.0.0"
46
+ },
47
+ "devDependencies": {
48
+ "ava": "^1.4.1",
49
+ "import-fresh": "^3.0.0",
50
+ "xo": "^0.24.0"
51
+ },
52
+ "browser": "browser.js"
53
+ }
@@ -10,9 +10,9 @@ case `uname` in
10
10
  esac
11
11
 
12
12
  if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/home/runner/work/MindOS/MindOS/node_modules/.pnpm/tldts@7.0.28/node_modules/tldts/bin/node_modules:/home/runner/work/MindOS/MindOS/node_modules/.pnpm/tldts@7.0.28/node_modules/tldts/node_modules:/home/runner/work/MindOS/MindOS/node_modules/.pnpm/tldts@7.0.28/node_modules:/home/runner/work/MindOS/MindOS/node_modules/.pnpm/node_modules"
13
+ export NODE_PATH="/home/runner/work/mindos-dev/mindos-dev/node_modules/.pnpm/tldts@7.0.28/node_modules/tldts/bin/node_modules:/home/runner/work/mindos-dev/mindos-dev/node_modules/.pnpm/tldts@7.0.28/node_modules/tldts/node_modules:/home/runner/work/mindos-dev/mindos-dev/node_modules/.pnpm/tldts@7.0.28/node_modules:/home/runner/work/mindos-dev/mindos-dev/node_modules/.pnpm/node_modules"
14
14
  else
15
- export NODE_PATH="/home/runner/work/MindOS/MindOS/node_modules/.pnpm/tldts@7.0.28/node_modules/tldts/bin/node_modules:/home/runner/work/MindOS/MindOS/node_modules/.pnpm/tldts@7.0.28/node_modules/tldts/node_modules:/home/runner/work/MindOS/MindOS/node_modules/.pnpm/tldts@7.0.28/node_modules:/home/runner/work/MindOS/MindOS/node_modules/.pnpm/node_modules:$NODE_PATH"
15
+ export NODE_PATH="/home/runner/work/mindos-dev/mindos-dev/node_modules/.pnpm/tldts@7.0.28/node_modules/tldts/bin/node_modules:/home/runner/work/mindos-dev/mindos-dev/node_modules/.pnpm/tldts@7.0.28/node_modules/tldts/node_modules:/home/runner/work/mindos-dev/mindos-dev/node_modules/.pnpm/tldts@7.0.28/node_modules:/home/runner/work/mindos-dev/mindos-dev/node_modules/.pnpm/node_modules:$NODE_PATH"
16
16
  fi
17
17
  if [ -x "$basedir/node" ]; then
18
18
  exec "$basedir/node" "$basedir/../../../../../tldts@7.0.28/node_modules/tldts/bin/cli.js" "$@"
@@ -0,0 +1,335 @@
1
+ import { Alias } from '../nodes/Alias.js';
2
+ import { isEmptyPath, collectionFromPath } from '../nodes/Collection.js';
3
+ import { NODE_TYPE, DOC, isNode, isCollection, isScalar } from '../nodes/identity.js';
4
+ import { Pair } from '../nodes/Pair.js';
5
+ import { toJS } from '../nodes/toJS.js';
6
+ import { Schema } from '../schema/Schema.js';
7
+ import { stringifyDocument } from '../stringify/stringifyDocument.js';
8
+ import { anchorNames, findNewAnchor, createNodeAnchors } from './anchors.js';
9
+ import { applyReviver } from './applyReviver.js';
10
+ import { createNode } from './createNode.js';
11
+ import { Directives } from './directives.js';
12
+
13
+ class Document {
14
+ constructor(value, replacer, options) {
15
+ /** A comment before this Document */
16
+ this.commentBefore = null;
17
+ /** A comment immediately after this Document */
18
+ this.comment = null;
19
+ /** Errors encountered during parsing. */
20
+ this.errors = [];
21
+ /** Warnings encountered during parsing. */
22
+ this.warnings = [];
23
+ Object.defineProperty(this, NODE_TYPE, { value: DOC });
24
+ let _replacer = null;
25
+ if (typeof replacer === 'function' || Array.isArray(replacer)) {
26
+ _replacer = replacer;
27
+ }
28
+ else if (options === undefined && replacer) {
29
+ options = replacer;
30
+ replacer = undefined;
31
+ }
32
+ const opt = Object.assign({
33
+ intAsBigInt: false,
34
+ keepSourceTokens: false,
35
+ logLevel: 'warn',
36
+ prettyErrors: true,
37
+ strict: true,
38
+ stringKeys: false,
39
+ uniqueKeys: true,
40
+ version: '1.2'
41
+ }, options);
42
+ this.options = opt;
43
+ let { version } = opt;
44
+ if (options?._directives) {
45
+ this.directives = options._directives.atDocument();
46
+ if (this.directives.yaml.explicit)
47
+ version = this.directives.yaml.version;
48
+ }
49
+ else
50
+ this.directives = new Directives({ version });
51
+ this.setSchema(version, options);
52
+ // @ts-expect-error We can't really know that this matches Contents.
53
+ this.contents =
54
+ value === undefined ? null : this.createNode(value, _replacer, options);
55
+ }
56
+ /**
57
+ * Create a deep copy of this Document and its contents.
58
+ *
59
+ * Custom Node values that inherit from `Object` still refer to their original instances.
60
+ */
61
+ clone() {
62
+ const copy = Object.create(Document.prototype, {
63
+ [NODE_TYPE]: { value: DOC }
64
+ });
65
+ copy.commentBefore = this.commentBefore;
66
+ copy.comment = this.comment;
67
+ copy.errors = this.errors.slice();
68
+ copy.warnings = this.warnings.slice();
69
+ copy.options = Object.assign({}, this.options);
70
+ if (this.directives)
71
+ copy.directives = this.directives.clone();
72
+ copy.schema = this.schema.clone();
73
+ // @ts-expect-error We can't really know that this matches Contents.
74
+ copy.contents = isNode(this.contents)
75
+ ? this.contents.clone(copy.schema)
76
+ : this.contents;
77
+ if (this.range)
78
+ copy.range = this.range.slice();
79
+ return copy;
80
+ }
81
+ /** Adds a value to the document. */
82
+ add(value) {
83
+ if (assertCollection(this.contents))
84
+ this.contents.add(value);
85
+ }
86
+ /** Adds a value to the document. */
87
+ addIn(path, value) {
88
+ if (assertCollection(this.contents))
89
+ this.contents.addIn(path, value);
90
+ }
91
+ /**
92
+ * Create a new `Alias` node, ensuring that the target `node` has the required anchor.
93
+ *
94
+ * If `node` already has an anchor, `name` is ignored.
95
+ * Otherwise, the `node.anchor` value will be set to `name`,
96
+ * or if an anchor with that name is already present in the document,
97
+ * `name` will be used as a prefix for a new unique anchor.
98
+ * If `name` is undefined, the generated anchor will use 'a' as a prefix.
99
+ */
100
+ createAlias(node, name) {
101
+ if (!node.anchor) {
102
+ const prev = anchorNames(this);
103
+ node.anchor =
104
+ // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
105
+ !name || prev.has(name) ? findNewAnchor(name || 'a', prev) : name;
106
+ }
107
+ return new Alias(node.anchor);
108
+ }
109
+ createNode(value, replacer, options) {
110
+ let _replacer = undefined;
111
+ if (typeof replacer === 'function') {
112
+ value = replacer.call({ '': value }, '', value);
113
+ _replacer = replacer;
114
+ }
115
+ else if (Array.isArray(replacer)) {
116
+ const keyToStr = (v) => typeof v === 'number' || v instanceof String || v instanceof Number;
117
+ const asStr = replacer.filter(keyToStr).map(String);
118
+ if (asStr.length > 0)
119
+ replacer = replacer.concat(asStr);
120
+ _replacer = replacer;
121
+ }
122
+ else if (options === undefined && replacer) {
123
+ options = replacer;
124
+ replacer = undefined;
125
+ }
126
+ const { aliasDuplicateObjects, anchorPrefix, flow, keepUndefined, onTagObj, tag } = options ?? {};
127
+ const { onAnchor, setAnchors, sourceObjects } = createNodeAnchors(this,
128
+ // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
129
+ anchorPrefix || 'a');
130
+ const ctx = {
131
+ aliasDuplicateObjects: aliasDuplicateObjects ?? true,
132
+ keepUndefined: keepUndefined ?? false,
133
+ onAnchor,
134
+ onTagObj,
135
+ replacer: _replacer,
136
+ schema: this.schema,
137
+ sourceObjects
138
+ };
139
+ const node = createNode(value, tag, ctx);
140
+ if (flow && isCollection(node))
141
+ node.flow = true;
142
+ setAnchors();
143
+ return node;
144
+ }
145
+ /**
146
+ * Convert a key and a value into a `Pair` using the current schema,
147
+ * recursively wrapping all values as `Scalar` or `Collection` nodes.
148
+ */
149
+ createPair(key, value, options = {}) {
150
+ const k = this.createNode(key, null, options);
151
+ const v = this.createNode(value, null, options);
152
+ return new Pair(k, v);
153
+ }
154
+ /**
155
+ * Removes a value from the document.
156
+ * @returns `true` if the item was found and removed.
157
+ */
158
+ delete(key) {
159
+ return assertCollection(this.contents) ? this.contents.delete(key) : false;
160
+ }
161
+ /**
162
+ * Removes a value from the document.
163
+ * @returns `true` if the item was found and removed.
164
+ */
165
+ deleteIn(path) {
166
+ if (isEmptyPath(path)) {
167
+ if (this.contents == null)
168
+ return false;
169
+ // @ts-expect-error Presumed impossible if Strict extends false
170
+ this.contents = null;
171
+ return true;
172
+ }
173
+ return assertCollection(this.contents)
174
+ ? this.contents.deleteIn(path)
175
+ : false;
176
+ }
177
+ /**
178
+ * Returns item at `key`, or `undefined` if not found. By default unwraps
179
+ * scalar values from their surrounding node; to disable set `keepScalar` to
180
+ * `true` (collections are always returned intact).
181
+ */
182
+ get(key, keepScalar) {
183
+ return isCollection(this.contents)
184
+ ? this.contents.get(key, keepScalar)
185
+ : undefined;
186
+ }
187
+ /**
188
+ * Returns item at `path`, or `undefined` if not found. By default unwraps
189
+ * scalar values from their surrounding node; to disable set `keepScalar` to
190
+ * `true` (collections are always returned intact).
191
+ */
192
+ getIn(path, keepScalar) {
193
+ if (isEmptyPath(path))
194
+ return !keepScalar && isScalar(this.contents)
195
+ ? this.contents.value
196
+ : this.contents;
197
+ return isCollection(this.contents)
198
+ ? this.contents.getIn(path, keepScalar)
199
+ : undefined;
200
+ }
201
+ /**
202
+ * Checks if the document includes a value with the key `key`.
203
+ */
204
+ has(key) {
205
+ return isCollection(this.contents) ? this.contents.has(key) : false;
206
+ }
207
+ /**
208
+ * Checks if the document includes a value at `path`.
209
+ */
210
+ hasIn(path) {
211
+ if (isEmptyPath(path))
212
+ return this.contents !== undefined;
213
+ return isCollection(this.contents) ? this.contents.hasIn(path) : false;
214
+ }
215
+ /**
216
+ * Sets a value in this document. For `!!set`, `value` needs to be a
217
+ * boolean to add/remove the item from the set.
218
+ */
219
+ set(key, value) {
220
+ if (this.contents == null) {
221
+ // @ts-expect-error We can't really know that this matches Contents.
222
+ this.contents = collectionFromPath(this.schema, [key], value);
223
+ }
224
+ else if (assertCollection(this.contents)) {
225
+ this.contents.set(key, value);
226
+ }
227
+ }
228
+ /**
229
+ * Sets a value in this document. For `!!set`, `value` needs to be a
230
+ * boolean to add/remove the item from the set.
231
+ */
232
+ setIn(path, value) {
233
+ if (isEmptyPath(path)) {
234
+ // @ts-expect-error We can't really know that this matches Contents.
235
+ this.contents = value;
236
+ }
237
+ else if (this.contents == null) {
238
+ // @ts-expect-error We can't really know that this matches Contents.
239
+ this.contents = collectionFromPath(this.schema, Array.from(path), value);
240
+ }
241
+ else if (assertCollection(this.contents)) {
242
+ this.contents.setIn(path, value);
243
+ }
244
+ }
245
+ /**
246
+ * Change the YAML version and schema used by the document.
247
+ * A `null` version disables support for directives, explicit tags, anchors, and aliases.
248
+ * It also requires the `schema` option to be given as a `Schema` instance value.
249
+ *
250
+ * Overrides all previously set schema options.
251
+ */
252
+ setSchema(version, options = {}) {
253
+ if (typeof version === 'number')
254
+ version = String(version);
255
+ let opt;
256
+ switch (version) {
257
+ case '1.1':
258
+ if (this.directives)
259
+ this.directives.yaml.version = '1.1';
260
+ else
261
+ this.directives = new Directives({ version: '1.1' });
262
+ opt = { resolveKnownTags: false, schema: 'yaml-1.1' };
263
+ break;
264
+ case '1.2':
265
+ case 'next':
266
+ if (this.directives)
267
+ this.directives.yaml.version = version;
268
+ else
269
+ this.directives = new Directives({ version });
270
+ opt = { resolveKnownTags: true, schema: 'core' };
271
+ break;
272
+ case null:
273
+ if (this.directives)
274
+ delete this.directives;
275
+ opt = null;
276
+ break;
277
+ default: {
278
+ const sv = JSON.stringify(version);
279
+ throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${sv}`);
280
+ }
281
+ }
282
+ // Not using `instanceof Schema` to allow for duck typing
283
+ if (options.schema instanceof Object)
284
+ this.schema = options.schema;
285
+ else if (opt)
286
+ this.schema = new Schema(Object.assign(opt, options));
287
+ else
288
+ throw new Error(`With a null YAML version, the { schema: Schema } option is required`);
289
+ }
290
+ // json & jsonArg are only used from toJSON()
291
+ toJS({ json, jsonArg, mapAsMap, maxAliasCount, onAnchor, reviver } = {}) {
292
+ const ctx = {
293
+ anchors: new Map(),
294
+ doc: this,
295
+ keep: !json,
296
+ mapAsMap: mapAsMap === true,
297
+ mapKeyWarned: false,
298
+ maxAliasCount: typeof maxAliasCount === 'number' ? maxAliasCount : 100
299
+ };
300
+ const res = toJS(this.contents, jsonArg ?? '', ctx);
301
+ if (typeof onAnchor === 'function')
302
+ for (const { count, res } of ctx.anchors.values())
303
+ onAnchor(res, count);
304
+ return typeof reviver === 'function'
305
+ ? applyReviver(reviver, { '': res }, '', res)
306
+ : res;
307
+ }
308
+ /**
309
+ * A JSON representation of the document `contents`.
310
+ *
311
+ * @param jsonArg Used by `JSON.stringify` to indicate the array index or
312
+ * property name.
313
+ */
314
+ toJSON(jsonArg, onAnchor) {
315
+ return this.toJS({ json: true, jsonArg, mapAsMap: false, onAnchor });
316
+ }
317
+ /** A YAML representation of the document. */
318
+ toString(options = {}) {
319
+ if (this.errors.length > 0)
320
+ throw new Error('Document with errors cannot be stringified');
321
+ if ('indent' in options &&
322
+ (!Number.isInteger(options.indent) || Number(options.indent) <= 0)) {
323
+ const s = JSON.stringify(options.indent);
324
+ throw new Error(`"indent" option must be a positive integer, not ${s}`);
325
+ }
326
+ return stringifyDocument(this, options);
327
+ }
328
+ }
329
+ function assertCollection(contents) {
330
+ if (isCollection(contents))
331
+ return true;
332
+ throw new Error('Expected a YAML collection as document contents');
333
+ }
334
+
335
+ export { Document };