@lamplitisles/dsh-nanocodex 0.1.0-beta.0

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 (276) hide show
  1. package/LICENSE +65 -0
  2. package/NOTICE +2 -0
  3. package/README.md +182 -0
  4. package/THIRD_PARTY_NOTICES.md +29 -0
  5. package/cordis.patch.yml +52 -0
  6. package/dist/index.d.ts +435 -0
  7. package/dist/index.js +3405 -0
  8. package/dist/standard-preset.d.ts +7 -0
  9. package/dist/standard-preset.js +25 -0
  10. package/engine-release.json +14 -0
  11. package/package.json +119 -0
  12. package/presets/standard/agent.cordis.yml +6 -0
  13. package/presets/standard/preset.yml +2 -0
  14. package/vendor/nanocodex/README.md +1344 -0
  15. package/vendor/nanocodex/actions/events.d.mts +10 -0
  16. package/vendor/nanocodex/actions/events.mjs +163 -0
  17. package/vendor/nanocodex/actions/index.d.mts +13 -0
  18. package/vendor/nanocodex/actions/index.mjs +35 -0
  19. package/vendor/nanocodex/actions/session.d.mts +66 -0
  20. package/vendor/nanocodex/actions/session.mjs +59 -0
  21. package/vendor/nanocodex/actions/turn.d.mts +59 -0
  22. package/vendor/nanocodex/actions/turn.mjs +37 -0
  23. package/vendor/nanocodex/actions/voice.d.mts +22 -0
  24. package/vendor/nanocodex/actions/voice.mjs +50 -0
  25. package/vendor/nanocodex/browser/Agent.d.mts +55 -0
  26. package/vendor/nanocodex/browser/Agent.mjs +11 -0
  27. package/vendor/nanocodex/browser/ChatGptSubscription.d.mts +7 -0
  28. package/vendor/nanocodex/browser/ChatGptSubscription.mjs +19 -0
  29. package/vendor/nanocodex/browser/InlineAgent.mjs +266 -0
  30. package/vendor/nanocodex/browser/Transport.d.mts +74 -0
  31. package/vendor/nanocodex/browser/Transport.mjs +61 -0
  32. package/vendor/nanocodex/browser/Voice.d.mts +71 -0
  33. package/vendor/nanocodex/browser/Voice.mjs +291 -0
  34. package/vendor/nanocodex/browser/VoiceSession.mjs +688 -0
  35. package/vendor/nanocodex/browser/WorkerAgent.d.mts +65 -0
  36. package/vendor/nanocodex/browser/WorkerAgent.mjs +1472 -0
  37. package/vendor/nanocodex/browser/agent.worker.mjs +3 -0
  38. package/vendor/nanocodex/browser/config.d.mts +36 -0
  39. package/vendor/nanocodex/browser/config.mjs +439 -0
  40. package/vendor/nanocodex/browser/engine.mjs +13 -0
  41. package/vendor/nanocodex/browser/harness.mjs +55 -0
  42. package/vendor/nanocodex/browser/host.d.mts +83 -0
  43. package/vendor/nanocodex/browser/host.mjs +555 -0
  44. package/vendor/nanocodex/browser/hostManagedWebSocket.d.mts +14 -0
  45. package/vendor/nanocodex/browser/hostManagedWebSocket.mjs +110 -0
  46. package/vendor/nanocodex/browser/index.d.mts +92 -0
  47. package/vendor/nanocodex/browser/index.mjs +23 -0
  48. package/vendor/nanocodex/browser/indexeddb-durability-store.mjs +197 -0
  49. package/vendor/nanocodex/browser/workspace.d.mts +16 -0
  50. package/vendor/nanocodex/browser/workspace.mjs +107 -0
  51. package/vendor/nanocodex/cloud/Client.d.mts +83 -0
  52. package/vendor/nanocodex/cloud/Client.mjs +231 -0
  53. package/vendor/nanocodex/cloud/Decorator.d.mts +31 -0
  54. package/vendor/nanocodex/cloud/Decorator.mjs +37 -0
  55. package/vendor/nanocodex/cloud/Dialog.d.mts +113 -0
  56. package/vendor/nanocodex/cloud/Dialog.mjs +366 -0
  57. package/vendor/nanocodex/cloud/Errors.d.mts +22 -0
  58. package/vendor/nanocodex/cloud/Errors.mjs +39 -0
  59. package/vendor/nanocodex/cloud/Principal.d.mts +26 -0
  60. package/vendor/nanocodex/cloud/Principal.mjs +88 -0
  61. package/vendor/nanocodex/cloud/RemoteProvider.mjs +88 -0
  62. package/vendor/nanocodex/cloud/Transport.d.mts +47 -0
  63. package/vendor/nanocodex/cloud/Transport.mjs +454 -0
  64. package/vendor/nanocodex/cloud/actions/account.d.mts +9 -0
  65. package/vendor/nanocodex/cloud/actions/account.mjs +19 -0
  66. package/vendor/nanocodex/cloud/actions/agent.d.mts +18 -0
  67. package/vendor/nanocodex/cloud/actions/agent.mjs +428 -0
  68. package/vendor/nanocodex/cloud/actions/connection.d.mts +133 -0
  69. package/vendor/nanocodex/cloud/actions/connection.mjs +580 -0
  70. package/vendor/nanocodex/cloud/actions/grant.d.mts +10 -0
  71. package/vendor/nanocodex/cloud/actions/grant.mjs +12 -0
  72. package/vendor/nanocodex/cloud/actions/index.d.mts +7 -0
  73. package/vendor/nanocodex/cloud/actions/index.mjs +7 -0
  74. package/vendor/nanocodex/cloud/actions/machineUsd.d.mts +23 -0
  75. package/vendor/nanocodex/cloud/actions/machineUsd.mjs +37 -0
  76. package/vendor/nanocodex/cloud/actions/model.d.mts +12 -0
  77. package/vendor/nanocodex/cloud/actions/model.mjs +50 -0
  78. package/vendor/nanocodex/cloud/actions/mpp.d.mts +28 -0
  79. package/vendor/nanocodex/cloud/actions/mpp.mjs +39 -0
  80. package/vendor/nanocodex/cloud/index.d.mts +30 -0
  81. package/vendor/nanocodex/cloud/index.mjs +9 -0
  82. package/vendor/nanocodex/cloud/internal.mjs +533 -0
  83. package/vendor/nanocodex/cloud/mercator.mjs +108 -0
  84. package/vendor/nanocodex/cloud/server/HostPrincipal.d.mts +34 -0
  85. package/vendor/nanocodex/cloud/server/HostPrincipal.mjs +202 -0
  86. package/vendor/nanocodex/cloud/server/index.d.mts +1 -0
  87. package/vendor/nanocodex/cloud/server/index.mjs +1 -0
  88. package/vendor/nanocodex/cloud/types.d.mts +211 -0
  89. package/vendor/nanocodex/cloudflare/Agent.d.mts +133 -0
  90. package/vendor/nanocodex/cloudflare/Agent.mjs +811 -0
  91. package/vendor/nanocodex/cloudflare/egress-subject.mjs +19 -0
  92. package/vendor/nanocodex/cloudflare/egress.d.mts +41 -0
  93. package/vendor/nanocodex/cloudflare/egress.mjs +119 -0
  94. package/vendor/nanocodex/cloudflare/event-socket.mjs +316 -0
  95. package/vendor/nanocodex/cloudflare/index.d.mts +7 -0
  96. package/vendor/nanocodex/cloudflare/index.mjs +6 -0
  97. package/vendor/nanocodex/host/Agent.d.mts +55 -0
  98. package/vendor/nanocodex/host/Agent.mjs +1 -0
  99. package/vendor/nanocodex/host/index.d.mts +82 -0
  100. package/vendor/nanocodex/host/index.mjs +10 -0
  101. package/vendor/nanocodex/index.d.mts +81 -0
  102. package/vendor/nanocodex/index.mjs +12 -0
  103. package/vendor/nanocodex/internal.mjs +1275 -0
  104. package/vendor/nanocodex/managed/Agent.d.mts +380 -0
  105. package/vendor/nanocodex/managed/Agent.mjs +1694 -0
  106. package/vendor/nanocodex/managed/ManagedError.d.mts +9 -0
  107. package/vendor/nanocodex/managed/ManagedError.mjs +8 -0
  108. package/vendor/nanocodex/managed/README.md +241 -0
  109. package/vendor/nanocodex/managed/Voice.mjs +202 -0
  110. package/vendor/nanocodex/managed/index.d.mts +20 -0
  111. package/vendor/nanocodex/managed/index.mjs +2 -0
  112. package/vendor/nanocodex/managed/internal.mjs +119 -0
  113. package/vendor/nanocodex/node/Agent.d.mts +50 -0
  114. package/vendor/nanocodex/node/Agent.mjs +203 -0
  115. package/vendor/nanocodex/node/ChatGptSubscription.d.mts +9 -0
  116. package/vendor/nanocodex/node/ChatGptSubscription.mjs +17 -0
  117. package/vendor/nanocodex/node/Transport.d.mts +44 -0
  118. package/vendor/nanocodex/node/Transport.mjs +46 -0
  119. package/vendor/nanocodex/node/host.mjs +731 -0
  120. package/vendor/nanocodex/node/index.d.mts +73 -0
  121. package/vendor/nanocodex/node/index.mjs +17 -0
  122. package/vendor/nanocodex/node/workspace.d.mts +10 -0
  123. package/vendor/nanocodex/node/workspace.mjs +198 -0
  124. package/vendor/nanocodex/package.json +200 -0
  125. package/vendor/nanocodex/pkg-node/nanocodex.d.ts +675 -0
  126. package/vendor/nanocodex/pkg-node/nanocodex.js +2628 -0
  127. package/vendor/nanocodex/pkg-node/nanocodex_bg.wasm.d.ts +105 -0
  128. package/vendor/nanocodex/pkg-node/package.json +1 -0
  129. package/vendor/nanocodex/pkg-web/.nanocodex-bindgen-stamp +6 -0
  130. package/vendor/nanocodex/pkg-web/nanocodex-build.json +1 -0
  131. package/vendor/nanocodex/pkg-web/nanocodex.d.ts +805 -0
  132. package/vendor/nanocodex/pkg-web/nanocodex.js +2714 -0
  133. package/vendor/nanocodex/pkg-web/nanocodex_bg.js +2615 -0
  134. package/vendor/nanocodex/pkg-web/nanocodex_bg.wasm +0 -0
  135. package/vendor/nanocodex/pkg-web/nanocodex_bg.wasm.d.ts +105 -0
  136. package/vendor/nanocodex/pkg-web/nanocodex_worker.js +9 -0
  137. package/vendor/nanocodex/pkg-web/package.json +1 -0
  138. package/vendor/nanocodex/runtime/chatgpt-subscription.mjs +212 -0
  139. package/vendor/nanocodex/runtime/cloudflare-durability-store.d.mts +26 -0
  140. package/vendor/nanocodex/runtime/cloudflare-durability-store.mjs +168 -0
  141. package/vendor/nanocodex/runtime/code-evaluator.worker.mjs +137 -0
  142. package/vendor/nanocodex/runtime/code-runtime.mjs +1 -0
  143. package/vendor/nanocodex/runtime/durability-store.d.mts +85 -0
  144. package/vendor/nanocodex/runtime/durability-store.mjs +631 -0
  145. package/vendor/nanocodex/runtime/durability.mjs +153 -0
  146. package/vendor/nanocodex/runtime/managed-transport.mjs +460 -0
  147. package/vendor/nanocodex/runtime/mcp-runtime.mjs +534 -0
  148. package/vendor/nanocodex/runtime/postgres-durability-store.d.mts +64 -0
  149. package/vendor/nanocodex/runtime/postgres-durability-store.mjs +532 -0
  150. package/vendor/nanocodex/runtime/quickjs-evaluator.d.mts +17 -0
  151. package/vendor/nanocodex/runtime/quickjs-evaluator.mjs +236 -0
  152. package/vendor/nanocodex/runtime/responses-transport.mjs +22 -0
  153. package/vendor/nanocodex/runtime/subagents.d.mts +107 -0
  154. package/vendor/nanocodex/runtime/subagents.mjs +54 -0
  155. package/vendor/nanocodex/runtime/subscription-store.d.mts +8 -0
  156. package/vendor/nanocodex/runtime/subscription-store.mjs +42 -0
  157. package/vendor/nanocodex/runtime/tempo-provider.d.mts +125 -0
  158. package/vendor/nanocodex/runtime/tempo-provider.mjs +264 -0
  159. package/vendor/nanocodex/runtime/tool-configuration.mjs +1 -0
  160. package/vendor/nanocodex/runtime/tool-router.mjs +1 -0
  161. package/vendor/nanocodex/runtime/utf8.mjs +1 -0
  162. package/vendor/nanocodex/runtime/worker-evaluator.mjs +162 -0
  163. package/vendor/nanocodex/runtime/workspace.d.mts +1 -0
  164. package/vendor/nanocodex/runtime/workspace.mjs +1 -0
  165. package/vendor/nanocodex/tools/Tools.d.mts +56 -0
  166. package/vendor/nanocodex/tools/Tools.mjs +136 -0
  167. package/vendor/nanocodex/tools/artifact.d.mts +1 -0
  168. package/vendor/nanocodex/tools/artifact.mjs +1 -0
  169. package/vendor/nanocodex/tools/attachment.mjs +1 -0
  170. package/vendor/nanocodex/tools/bash.d.mts +1 -0
  171. package/vendor/nanocodex/tools/bash.mjs +1 -0
  172. package/vendor/nanocodex/tools/browser/accountInfo.mjs +795 -0
  173. package/vendor/nanocodex/tools/browser/browserBuffer.mjs +18 -0
  174. package/vendor/nanocodex/tools/browser/browserCompiler.mjs +155 -0
  175. package/vendor/nanocodex/tools/browser/browserEgress.mjs +161 -0
  176. package/vendor/nanocodex/tools/browser/browserPython.mjs +133 -0
  177. package/vendor/nanocodex/tools/browser/browserShell.mjs +1075 -0
  178. package/vendor/nanocodex/tools/browser/browserSprintf.mjs +4 -0
  179. package/vendor/nanocodex/tools/browser/browserSsh.mjs +201 -0
  180. package/vendor/nanocodex/tools/browser/browserZlib.mjs +136 -0
  181. package/vendor/nanocodex/tools/browser/compiler.worker.mjs +160 -0
  182. package/vendor/nanocodex/tools/browser/devTunnelsSshBrowser.mjs +13 -0
  183. package/vendor/nanocodex/tools/browser/index.d.mts +209 -0
  184. package/vendor/nanocodex/tools/browser/index.mjs +174 -0
  185. package/vendor/nanocodex/tools/browser/opfsGit.mjs +248 -0
  186. package/vendor/nanocodex/tools/browser/python.worker.mjs +114 -0
  187. package/vendor/nanocodex/tools/browser/threadGit.mjs +197 -0
  188. package/vendor/nanocodex/tools/browser/unsupportedNodeRsa.mjs +5 -0
  189. package/vendor/nanocodex/tools/browser/workspace.mjs +83 -0
  190. package/vendor/nanocodex/tools/dataset.d.mts +1 -0
  191. package/vendor/nanocodex/tools/dataset.mjs +1 -0
  192. package/vendor/nanocodex/tools/datasetContract.mjs +1 -0
  193. package/vendor/nanocodex/tools/datasetEngine.mjs +1 -0
  194. package/vendor/nanocodex/tools/hostedCatalog.d.mts +1 -0
  195. package/vendor/nanocodex/tools/hostedCatalog.mjs +1 -0
  196. package/vendor/nanocodex/tools/index.d.mts +49 -0
  197. package/vendor/nanocodex/tools/index.mjs +19 -0
  198. package/vendor/nanocodex/tools/namedTool.mjs +1 -0
  199. package/vendor/nanocodex/tools/repository-workspace.d.mts +1 -0
  200. package/vendor/nanocodex/tools/repository-workspace.mjs +1 -0
  201. package/vendor/nanocodex/tools/ssh.d.mts +1 -0
  202. package/vendor/nanocodex/tools/ssh.mjs +1 -0
  203. package/vendor/nanocodex/tools/standard.mjs +1 -0
  204. package/vendor/nanocodex/tools/standardDescriptions.mjs +1 -0
  205. package/vendor/nanocodex/types.d.mts +663 -0
  206. package/vendor/nanocodex/wasm.d.mts +4 -0
  207. package/vendor/nanocodex/worker/ChatGptSubscription.d.mts +9 -0
  208. package/vendor/nanocodex/worker/ChatGptSubscription.mjs +29 -0
  209. package/vendor/nanocodex/worker/index.d.mts +18 -0
  210. package/vendor/nanocodex/worker/index.mjs +5 -0
  211. package/vendor/nanocodex-tools/README.md +65 -0
  212. package/vendor/nanocodex-tools/dist/hosted/app-tool-catalog.d.ts +7 -0
  213. package/vendor/nanocodex-tools/dist/hosted/app-tool-catalog.js +14 -0
  214. package/vendor/nanocodex-tools/dist/hosted/broker-core.d.ts +172 -0
  215. package/vendor/nanocodex-tools/dist/hosted/broker-core.js +1278 -0
  216. package/vendor/nanocodex-tools/dist/hosted/index.d.ts +3 -0
  217. package/vendor/nanocodex-tools/dist/hosted/index.js +3 -0
  218. package/vendor/nanocodex-tools/dist/hosted/protocol.d.ts +120 -0
  219. package/vendor/nanocodex-tools/dist/hosted/protocol.js +415 -0
  220. package/vendor/nanocodex-tools/dist/index.d.ts +19 -0
  221. package/vendor/nanocodex-tools/dist/index.js +14 -0
  222. package/vendor/nanocodex-tools/dist/memory.d.ts +204 -0
  223. package/vendor/nanocodex-tools/dist/memory.js +411 -0
  224. package/vendor/nanocodex-tools/dist/namespace.d.ts +87 -0
  225. package/vendor/nanocodex-tools/dist/namespace.js +338 -0
  226. package/vendor/nanocodex-tools/dist/repository-archive.d.ts +4 -0
  227. package/vendor/nanocodex-tools/dist/repository-archive.js +104 -0
  228. package/vendor/nanocodex-tools/dist/runtime.d.ts +30 -0
  229. package/vendor/nanocodex-tools/dist/runtime.js +37 -0
  230. package/vendor/nanocodex-tools/dist/session.d.ts +167 -0
  231. package/vendor/nanocodex-tools/dist/session.js +286 -0
  232. package/vendor/nanocodex-tools/dist/shell.d.ts +51 -0
  233. package/vendor/nanocodex-tools/dist/shell.js +553 -0
  234. package/vendor/nanocodex-tools/dist/ssh.d.ts +29 -0
  235. package/vendor/nanocodex-tools/dist/ssh.js +66 -0
  236. package/vendor/nanocodex-tools/dist/workspace.d.ts +45 -0
  237. package/vendor/nanocodex-tools/dist/workspace.js +237 -0
  238. package/vendor/nanocodex-tools/package.json +122 -0
  239. package/vendor/nanocodex-tools/runtime/code-runtime.mjs +817 -0
  240. package/vendor/nanocodex-tools/runtime/tool-configuration.mjs +50 -0
  241. package/vendor/nanocodex-tools/runtime/tool-router.mjs +730 -0
  242. package/vendor/nanocodex-tools/runtime/utf8.d.mts +2 -0
  243. package/vendor/nanocodex-tools/runtime/utf8.mjs +25 -0
  244. package/vendor/nanocodex-tools/tools/artifact.d.mts +69 -0
  245. package/vendor/nanocodex-tools/tools/artifact.mjs +270 -0
  246. package/vendor/nanocodex-tools/tools/attachment.mjs +603 -0
  247. package/vendor/nanocodex-tools/tools/bash.d.mts +90 -0
  248. package/vendor/nanocodex-tools/tools/bash.mjs +742 -0
  249. package/vendor/nanocodex-tools/tools/dataset.d.mts +9 -0
  250. package/vendor/nanocodex-tools/tools/dataset.mjs +47 -0
  251. package/vendor/nanocodex-tools/tools/datasetContract.mjs +54 -0
  252. package/vendor/nanocodex-tools/tools/datasetEngine.mjs +1167 -0
  253. package/vendor/nanocodex-tools/tools/execution-contract.d.mts +5 -0
  254. package/vendor/nanocodex-tools/tools/execution-contract.mjs +63 -0
  255. package/vendor/nanocodex-tools/tools/hostedCatalog.d.mts +20 -0
  256. package/vendor/nanocodex-tools/tools/hostedCatalog.mjs +67 -0
  257. package/vendor/nanocodex-tools/tools/hostedMachine.d.mts +10 -0
  258. package/vendor/nanocodex-tools/tools/hostedMachine.mjs +56 -0
  259. package/vendor/nanocodex-tools/tools/just-bash-browser.d.mts +1 -0
  260. package/vendor/nanocodex-tools/tools/just-bash-browser.mjs +1 -0
  261. package/vendor/nanocodex-tools/tools/namedTool.d.mts +3 -0
  262. package/vendor/nanocodex-tools/tools/namedTool.mjs +3 -0
  263. package/vendor/nanocodex-tools/tools/nodeProcess.d.mts +10 -0
  264. package/vendor/nanocodex-tools/tools/nodeProcess.mjs +314 -0
  265. package/vendor/nanocodex-tools/tools/processOutput.mjs +56 -0
  266. package/vendor/nanocodex-tools/tools/repository-workspace.d.mts +55 -0
  267. package/vendor/nanocodex-tools/tools/repository-workspace.mjs +397 -0
  268. package/vendor/nanocodex-tools/tools/ssh.d.mts +56 -0
  269. package/vendor/nanocodex-tools/tools/ssh.mjs +503 -0
  270. package/vendor/nanocodex-tools/tools/standard.mjs +458 -0
  271. package/vendor/nanocodex-tools/tools/standardDescriptions.mjs +3 -0
  272. package/vendor/nanocodex-tools/tools/types.d.mts +83 -0
  273. package/vendor/nanocodex-tools/tools/workspace.d.mts +25 -0
  274. package/vendor/nanocodex-tools/tools/workspace.mjs +282 -0
  275. package/vendor/nanocodex-tools/tools/x.d.mts +30 -0
  276. package/vendor/nanocodex-tools/tools/x.mjs +91 -0
@@ -0,0 +1,805 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+
4
+ /**
5
+ * Rust-owned Codex browser voice protocol and Agent bridge.
6
+ */
7
+ export class BrowserVoice {
8
+ private constructor();
9
+ free(): void;
10
+ [Symbol.dispose](): void;
11
+ /**
12
+ * Applies one typed Agent event to the Rust-owned handoff stream.
13
+ *
14
+ * # Errors
15
+ *
16
+ * Rejects only when effects cannot be serialized.
17
+ */
18
+ agentEvent(envelope: string): string;
19
+ /**
20
+ * Adds background context without requesting speech or consuming a delegation.
21
+ *
22
+ * # Errors
23
+ * Rejects an inactive session or invalid text.
24
+ */
25
+ appendContext(text: string): string;
26
+ /**
27
+ * Queues explicitly speakable text in the current conversation.
28
+ *
29
+ * # Errors
30
+ * Rejects inactive sessions, invalid text, or a full output queue.
31
+ */
32
+ appendSpeech(text: string): string;
33
+ /**
34
+ * Appends text through Codex's subscription context adapter.
35
+ *
36
+ * # Errors
37
+ * Rejects inactive sessions, invalid roles/text, or a full output queue.
38
+ */
39
+ appendText(role: string, text: string): string;
40
+ /**
41
+ * Encodes the complete same-origin call request after the browser creates its SDP offer.
42
+ *
43
+ * # Errors
44
+ *
45
+ * Rejects calls made before [`Self::start`] or an empty SDP offer.
46
+ */
47
+ callBody(sdp: string): string;
48
+ /**
49
+ * Cancels only the active coding turn, never merely the voice transport.
50
+ *
51
+ * # Errors
52
+ *
53
+ * Rejects when the active turn cannot be cancelled.
54
+ */
55
+ cancel(): Promise<boolean>;
56
+ /**
57
+ * Decodes Codex's provider response body and Location header in Rust.
58
+ *
59
+ * # Errors
60
+ *
61
+ * Rejects an empty SDP answer or a Location without a Codex call identity.
62
+ */
63
+ completeCall(response_body: string, location: string): string;
64
+ /**
65
+ * Sets subscription voice preferences before starting a call.
66
+ *
67
+ * # Errors
68
+ * Rejects invalid settings or changes to an active call.
69
+ */
70
+ configure(settings_json: string): void;
71
+ /**
72
+ * Drains one Codex-paced streamed or final Agent handoff chunk.
73
+ *
74
+ * # Errors
75
+ *
76
+ * Rejects only when effects cannot be serialized.
77
+ */
78
+ flush(final_chunk: boolean): string;
79
+ /**
80
+ * Acknowledges frames written by the browser WebSocket effect executor.
81
+ */
82
+ framesSent(count: number): void;
83
+ /**
84
+ * Selects Codex's preferred physical input from browser device labels.
85
+ *
86
+ * # Errors
87
+ *
88
+ * Rejects malformed label JSON.
89
+ */
90
+ preferredPhysicalInput(current_label: string, labels_json: string): number | undefined;
91
+ /**
92
+ * Applies one Frameless sideband event and routes any delegation through the Rust Agent.
93
+ *
94
+ * # Errors
95
+ *
96
+ * Rejects when delegated Agent work cannot be accepted or steered.
97
+ */
98
+ realtimeMessage(payload: string): Promise<string>;
99
+ /**
100
+ * Reports whether one Rust-decoded sideband event can admit Agent work.
101
+ */
102
+ requiresAgentAdmission(payload: string): boolean;
103
+ /**
104
+ * Applies Codex's Rust-owned Frameless reconnect policy after transport loss.
105
+ *
106
+ * # Errors
107
+ *
108
+ * Rejects only when effects cannot be serialized.
109
+ */
110
+ sidebandClosed(connected_ms: number): string;
111
+ /**
112
+ * Replays Rust-retained outbound frames after a sideband connects.
113
+ *
114
+ * # Errors
115
+ *
116
+ * Rejects only when effects cannot be serialized.
117
+ */
118
+ sidebandOpened(): string;
119
+ /**
120
+ * Builds the same-origin sideband URL with Codex's Rust-owned request identity.
121
+ *
122
+ * # Errors
123
+ *
124
+ * Rejects a malformed provider call identity.
125
+ */
126
+ sidebandUrl(call_id: string): string;
127
+ /**
128
+ * Begins Codex's Realtime lifecycle and builds bounded browser startup context in Rust.
129
+ *
130
+ * # Errors
131
+ *
132
+ * Rejects when the Agent driver has stopped.
133
+ */
134
+ start(): Promise<void>;
135
+ /**
136
+ * Flushes any final transcript tail and ends Codex's Realtime lifecycle.
137
+ *
138
+ * # Errors
139
+ *
140
+ * Rejects when the Agent driver stops.
141
+ */
142
+ stop(): Promise<string>;
143
+ }
144
+
145
+ /**
146
+ * JavaScript binding over the Rust-owned hosted ChatGPT credential lifecycle.
147
+ */
148
+ export class ChatGptSubscription {
149
+ private constructor();
150
+ free(): void;
151
+ [Symbol.dispose](): void;
152
+ /**
153
+ * Resolves one credential generation for a host-owned outbound request.
154
+ */
155
+ credential(): Promise<string>;
156
+ /**
157
+ * Clears the persisted credential and pending login.
158
+ */
159
+ logout(): Promise<void>;
160
+ /**
161
+ * Opens a subscription over the currently registered generic host capabilities.
162
+ */
163
+ static open(config_json: string): Promise<ChatGptSubscription>;
164
+ /**
165
+ * Refreshes a rejected generation and returns the credential now current.
166
+ */
167
+ recover(rejected_revision: string): Promise<string>;
168
+ /**
169
+ * Starts a ChatGPT device login and returns public pending state as JSON.
170
+ */
171
+ startLogin(): Promise<string>;
172
+ /**
173
+ * Polls device login and returns public state as JSON.
174
+ */
175
+ status(): Promise<string>;
176
+ }
177
+
178
+ /**
179
+ * Standalone Rust-owned browser voice protocol for a remote managed Agent.
180
+ *
181
+ * This core owns only Realtime protocol state. The caller owns media,
182
+ * transports, the managed Agent lifecycle, and routing returned delegations.
183
+ */
184
+ export class ManagedBrowserVoice {
185
+ free(): void;
186
+ [Symbol.dispose](): void;
187
+ /**
188
+ * Applies one canonical raw `AgentEvent` JSON value to the handoff stream.
189
+ *
190
+ * # Errors
191
+ *
192
+ * Rejects only when effects cannot be serialized.
193
+ */
194
+ agentEvent(event_json: string): string;
195
+ /**
196
+ * Adds background context without requesting speech or consuming a delegation.
197
+ *
198
+ * # Errors
199
+ * Rejects an inactive session or invalid text.
200
+ */
201
+ appendContext(text: string): string;
202
+ /**
203
+ * Queues explicitly speakable text in the current conversation.
204
+ *
205
+ * # Errors
206
+ * Rejects inactive sessions, invalid text, or a full output queue.
207
+ */
208
+ appendSpeech(text: string): string;
209
+ /**
210
+ * Appends text through Codex's subscription context adapter.
211
+ *
212
+ * # Errors
213
+ * Rejects inactive sessions, invalid roles/text, or a full output queue.
214
+ */
215
+ appendText(role: string, text: string): string;
216
+ /**
217
+ * Encodes the managed same-origin call request after the browser creates its SDP offer.
218
+ *
219
+ * # Errors
220
+ *
221
+ * Rejects invalid session IDs or empty SDP offers. Admission can complete
222
+ * after this request; its context is then sent over the control channel.
223
+ */
224
+ callBody(sdp: string, managed_session_id: string): string;
225
+ /**
226
+ * Decodes Codex's provider response body and Location header in Rust.
227
+ *
228
+ * # Errors
229
+ *
230
+ * Rejects an empty SDP answer or a Location without a Codex call identity.
231
+ */
232
+ completeCall(response_body: string, location: string): string;
233
+ /**
234
+ * Sets subscription voice preferences before starting a call.
235
+ *
236
+ * # Errors
237
+ * Rejects invalid settings or changes to an active call.
238
+ */
239
+ configure(settings_json: string): void;
240
+ /**
241
+ * Drains one Codex-paced streamed or final managed Agent handoff chunk.
242
+ *
243
+ * # Errors
244
+ *
245
+ * Rejects only when effects cannot be serialized.
246
+ */
247
+ flush(final_chunk: boolean): string;
248
+ /**
249
+ * Acknowledges frames written by the caller's WebSocket effect executor.
250
+ */
251
+ framesSent(count: number): void;
252
+ /**
253
+ * Applies a scoped managed context envelope using the shared Rust queue.
254
+ *
255
+ * # Errors
256
+ * Rejects malformed JSON or effects that cannot be serialized.
257
+ */
258
+ managedEvent(envelope_json: string): string;
259
+ /**
260
+ * Creates an idle managed browser voice protocol core.
261
+ *
262
+ * # Errors
263
+ *
264
+ * Rejects voices outside Codex's ChatGPT V3 catalog.
265
+ */
266
+ constructor(voice: string);
267
+ /**
268
+ * Selects Codex's preferred physical input from browser device labels.
269
+ *
270
+ * # Errors
271
+ *
272
+ * Rejects malformed label JSON.
273
+ */
274
+ preferredPhysicalInput(current_label: string, labels_json: string): number | undefined;
275
+ /**
276
+ * Applies one sideband event and returns effects plus canonical delegation text.
277
+ *
278
+ * The caller must route returned delegation text through its remote managed Agent.
279
+ *
280
+ * # Errors
281
+ *
282
+ * Rejects only when the update cannot be serialized.
283
+ */
284
+ realtimeMessage(payload: string): string;
285
+ /**
286
+ * Reports whether one sideband event may produce a managed Agent delegation.
287
+ */
288
+ requiresAgentAdmission(payload: string): boolean;
289
+ /**
290
+ * Applies Codex's bounded reconnect policy after sideband transport loss.
291
+ *
292
+ * # Errors
293
+ *
294
+ * Rejects only when effects cannot be serialized.
295
+ */
296
+ sidebandClosed(connected_ms: number): string;
297
+ /**
298
+ * Replays Rust-retained outbound frames after a sideband connects.
299
+ *
300
+ * # Errors
301
+ *
302
+ * Rejects only when effects cannot be serialized.
303
+ */
304
+ sidebandOpened(): string;
305
+ /**
306
+ * Builds the managed same-origin sideband URL for a provider call identity.
307
+ *
308
+ * # Errors
309
+ *
310
+ * Rejects malformed provider call or managed session identities.
311
+ */
312
+ sidebandUrl(call_id: string, managed_session_id: string): string;
313
+ /**
314
+ * Starts the protocol from the managed Agent's authoritative serialized context.
315
+ *
316
+ * # Errors
317
+ *
318
+ * Rejects malformed `AgentSessionContext` JSON.
319
+ */
320
+ start(context_json: string): void;
321
+ /**
322
+ * Stops the protocol and returns final transcript delegation plus close effects.
323
+ *
324
+ * # Errors
325
+ *
326
+ * Rejects only when the update cannot be serialized.
327
+ */
328
+ stop(): string;
329
+ }
330
+
331
+ /**
332
+ * JavaScript binding over the shared Rust agent lifecycle.
333
+ */
334
+ export class Nanocodex {
335
+ private constructor();
336
+ free(): void;
337
+ [Symbol.dispose](): void;
338
+ /**
339
+ * Appends adapter-owned developer context at the next safe model boundary.
340
+ *
341
+ * Returns the complete read-only session context captured at that boundary.
342
+ *
343
+ * # Errors
344
+ *
345
+ * Rejects empty text or a stopped driver.
346
+ */
347
+ appendDeveloperMessage(text: string): Promise<string>;
348
+ /**
349
+ * Creates the Rust-owned Codex browser voice controller for this agent.
350
+ *
351
+ * # Errors
352
+ *
353
+ * Rejects voices outside Codex's ChatGPT V3 catalog.
354
+ */
355
+ browserVoice(voice: string): BrowserVoice;
356
+ /**
357
+ * Closes one canonical task-tree child and its descendants.
358
+ */
359
+ closeSubagent(task: string): Promise<string>;
360
+ /**
361
+ * Compacts retained history immediately without fabricating a user prompt.
362
+ *
363
+ * # Errors
364
+ *
365
+ * Throws when compaction or the agent driver fails.
366
+ */
367
+ compact(): Promise<void>;
368
+ /**
369
+ * Compacts retained history and returns the private replacement mapping.
370
+ *
371
+ * The serialized result includes the generated summary, the replaced
372
+ * pre-compaction range, retained tail identities, and the complete
373
+ * post-compaction session context for custom host compaction. It is
374
+ * `null` when provider-default compaction is active.
375
+ */
376
+ compactOutcome(): Promise<string>;
377
+ /**
378
+ * Returns complete read-only session context at the latest safe boundary.
379
+ *
380
+ * # Errors
381
+ *
382
+ * Rejects after the driver stops or when context serialization fails.
383
+ */
384
+ context(): Promise<string>;
385
+ /**
386
+ * Builds an agent from its JavaScript JSON configuration.
387
+ *
388
+ * # Errors
389
+ *
390
+ * Throws when the JSON or agent policy is invalid.
391
+ */
392
+ static create(config_json: string): Promise<Nanocodex>;
393
+ /**
394
+ * Builds an agent whose ChatGPT credential lifecycle is owned by Rust.
395
+ */
396
+ static createWithChatGpt(config_json: string, subscription: ChatGptSubscription): Promise<Nanocodex>;
397
+ /**
398
+ * Ends the canonical Codex Realtime adapter lifecycle.
399
+ *
400
+ * # Errors
401
+ *
402
+ * Rejects when the agent driver has stopped or context serialization fails.
403
+ */
404
+ endRealtimeConversation(): Promise<string>;
405
+ /**
406
+ * Forks the latest safe committed model boundary.
407
+ *
408
+ * # Errors
409
+ *
410
+ * Rejects before the first safe boundary or after the driver stops.
411
+ */
412
+ fork(): Promise<Nanocodex>;
413
+ /**
414
+ * Forks from an exact completed historical turn.
415
+ *
416
+ * # Errors
417
+ *
418
+ * Rejects if the result belongs to another agent or the driver stopped.
419
+ */
420
+ forkFrom(result: TurnResult): Promise<Nanocodex>;
421
+ /**
422
+ * Interrupts one canonical task-tree child while keeping it reusable.
423
+ */
424
+ interruptSubagent(task: string): Promise<string>;
425
+ /**
426
+ * Lists the canonical task-tree directory visible to the owning root.
427
+ */
428
+ listSubagents(task: string): Promise<string>;
429
+ /**
430
+ * Accepts a text prompt and returns its independently awaitable turn.
431
+ *
432
+ * # Errors
433
+ *
434
+ * Throws when the prompt is empty.
435
+ */
436
+ prompt(instruction: string, operation_id?: string | null, cancel_on_admission?: boolean | null, supplementary_context?: string | null): Turn;
437
+ /**
438
+ * Accepts browser-safe multimodal input encoded as JSON.
439
+ *
440
+ * # Errors
441
+ *
442
+ * Throws for malformed, empty, or local-filesystem input.
443
+ */
444
+ promptContent(content_json: string, operation_id?: string | null, cancel_on_admission?: boolean | null, supplementary_context?: string | null): Turn;
445
+ /**
446
+ * Formats one structured Realtime delegation using canonical Codex markers.
447
+ *
448
+ * # Errors
449
+ *
450
+ * Rejects malformed transcript JSON.
451
+ */
452
+ realtimeDelegation(input: string, transcript: string): string;
453
+ /**
454
+ * Formats an unconsumed Realtime transcript tail using canonical Codex markers.
455
+ *
456
+ * # Errors
457
+ *
458
+ * Rejects malformed transcript JSON.
459
+ */
460
+ realtimeTailDelegation(transcript: string): string | undefined;
461
+ /**
462
+ * Restores persisted logical children after the JavaScript owner acquires
463
+ * its durability generation and activates the replacement host.
464
+ *
465
+ * # Errors
466
+ *
467
+ * Rejects malformed descriptors, disabled subagents, duplicate restoration,
468
+ * or an invalid persisted topology.
469
+ */
470
+ restoreSubagents(descriptors_json: string, host_contexts_json?: string | null): Promise<void>;
471
+ /**
472
+ * Atomically steers the active turn or starts a new independently awaitable turn.
473
+ *
474
+ * Returns `undefined` when the input was steered into an active turn.
475
+ *
476
+ * # Errors
477
+ *
478
+ * Rejects empty input, a full steering queue, or a stopped driver.
479
+ */
480
+ routePrompt(instruction: string): Promise<Turn | undefined>;
481
+ /**
482
+ * Sends one canonical directed task-tree message from the owning root.
483
+ */
484
+ sendSubagentMessage(task: string): Promise<string>;
485
+ /**
486
+ * Enables or disables the optional JavaScript event crossing for this handle.
487
+ */
488
+ setEventForwarding(enabled: boolean): void;
489
+ /**
490
+ * Enables or disables priority processing for subsequently accepted turns.
491
+ *
492
+ * # Errors
493
+ *
494
+ * Rejects after the driver stops.
495
+ */
496
+ setFastMode(enabled: boolean): Promise<void>;
497
+ /**
498
+ * Changes the model before the first turn is accepted.
499
+ *
500
+ * # Errors
501
+ *
502
+ * Rejects an invalid model, an incompatible thinking level, conversation
503
+ * activity, or a stopped driver.
504
+ */
505
+ setModel(model: string): Promise<void>;
506
+ /**
507
+ * Changes the reasoning effort for subsequently accepted turns.
508
+ *
509
+ * # Errors
510
+ *
511
+ * Rejects an invalid effort or a stopped driver.
512
+ */
513
+ setThinking(thinking: string): Promise<void>;
514
+ /**
515
+ * Gracefully stops the driver and joins every resource owned by this agent.
516
+ *
517
+ * # Errors
518
+ *
519
+ * Rejects when the driver had already stopped or cleanup fails.
520
+ */
521
+ shutdown(): Promise<void>;
522
+ /**
523
+ * Serializes the latest committed, resumable session snapshot.
524
+ *
525
+ * This is the engine-owned checkpoint at the latest completed safe
526
+ * boundary. After manual compaction, it therefore captures the exact
527
+ * post-install history that can be supplied to a fresh Agent instance.
528
+ *
529
+ * # Errors
530
+ *
531
+ * Rejects before the first committed boundary, after the driver stops,
532
+ * or when serialization fails.
533
+ */
534
+ snapshot(): Promise<string>;
535
+ /**
536
+ * Starts a clean sibling with the same private agent policy.
537
+ *
538
+ * # Errors
539
+ *
540
+ * Rejects after the driver stops.
541
+ */
542
+ spawn(): Promise<Nanocodex>;
543
+ /**
544
+ * Starts one canonical Rust task-tree child and returns its descriptor.
545
+ */
546
+ spawnSubagent(task: string): Promise<string>;
547
+ /**
548
+ * Starts an ordered batch of canonical subagents in the same task tree.
549
+ *
550
+ * # Errors
551
+ *
552
+ * Rejects malformed tasks, agents without subagent tools, a stopped
553
+ * parent, or a batch that cannot be reserved in full.
554
+ */
555
+ spawnSubagents(tasks_json: string): Promise<string>;
556
+ /**
557
+ * Starts the canonical Codex Realtime adapter lifecycle.
558
+ *
559
+ * # Errors
560
+ *
561
+ * Rejects when the agent driver has stopped or context serialization fails.
562
+ */
563
+ startRealtimeConversation(): Promise<string>;
564
+ /**
565
+ * Waits for any selected canonical task-tree child to become terminal.
566
+ */
567
+ waitSubagents(task: string): Promise<string>;
568
+ /**
569
+ * Returns the stable Agent identity.
570
+ */
571
+ readonly agentId: string;
572
+ /**
573
+ * Returns the stable UUID session identity (`UUIDv7` by default).
574
+ */
575
+ readonly sessionId: string;
576
+ }
577
+
578
+ /**
579
+ * JavaScript binding over one shared Rust turn.
580
+ */
581
+ export class Turn {
582
+ private constructor();
583
+ free(): void;
584
+ [Symbol.dispose](): void;
585
+ /**
586
+ * Waits until the Rust driver has durably admitted this turn.
587
+ *
588
+ * Returns the durable request identity selected during admission, or
589
+ * `undefined` when the agent has no execution policy.
590
+ *
591
+ * # Errors
592
+ *
593
+ * Rejects with a stable `code` describing an admission failure.
594
+ */
595
+ accepted(): Promise<string | undefined>;
596
+ /**
597
+ * Cancels this exact active or queued turn.
598
+ *
599
+ * # Errors
600
+ *
601
+ * Rejects if the turn is already terminal or its driver stopped.
602
+ */
603
+ cancel(): Promise<void>;
604
+ /**
605
+ * Waits for the final assistant message.
606
+ *
607
+ * # Errors
608
+ *
609
+ * Rejects with a stable `code` when the model run or driver fails.
610
+ */
611
+ result(): Promise<TurnResult>;
612
+ /**
613
+ * Injects text input at the active turn's next safe model boundary.
614
+ *
615
+ * # Errors
616
+ *
617
+ * Rejects if the turn is not active or its driver stopped.
618
+ */
619
+ steer(instruction: string): Promise<void>;
620
+ /**
621
+ * Injects browser-safe multimodal input at the active turn's next boundary.
622
+ *
623
+ * # Errors
624
+ *
625
+ * Rejects malformed input or a turn that is no longer active.
626
+ */
627
+ steerContent(content_json: string): Promise<void>;
628
+ }
629
+
630
+ /**
631
+ * JavaScript binding over one completed Rust turn result.
632
+ */
633
+ export class TurnResult {
634
+ private constructor();
635
+ free(): void;
636
+ [Symbol.dispose](): void;
637
+ /**
638
+ * Serializes this completed boundary's resumable session snapshot.
639
+ *
640
+ * # Errors
641
+ *
642
+ * Throws when serialization fails.
643
+ */
644
+ snapshot(): string;
645
+ /**
646
+ * Serializes exact aggregate usage for this completed logical turn.
647
+ *
648
+ * # Errors
649
+ *
650
+ * Throws when serialization fails.
651
+ */
652
+ usage(): string;
653
+ /**
654
+ * Returns the final assistant message.
655
+ */
656
+ readonly finalMessage: string;
657
+ }
658
+
659
+ /**
660
+ * Applies a browser-workspace patch through the canonical Rust planner.
661
+ *
662
+ * The browser host uses this internal binding for nested Code Mode calls so
663
+ * they share the direct `apply_patch` tool's verification and mutation path.
664
+ */
665
+ export function applyBrowserPatch(patch: string, session_id: string): Promise<string>;
666
+
667
+ /**
668
+ * Returns the shared bounded first-prompt retrieval plan for a managed host.
669
+ */
670
+ export function managedBootstrapPlan(input: string): string;
671
+
672
+ /**
673
+ * Prunes old replay receipts before the full Agent runtime is constructed.
674
+ */
675
+ export function pruneDurableReceipts(durability_host_id: string, durability_id: string, terminal_receipt_limit: number): Promise<void>;
676
+
677
+ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
678
+
679
+ export interface InitOutput {
680
+ readonly memory: WebAssembly.Memory;
681
+ readonly __wbg_browservoice_free: (a: number, b: number) => void;
682
+ readonly __wbg_chatgptsubscription_free: (a: number, b: number) => void;
683
+ readonly __wbg_managedbrowservoice_free: (a: number, b: number) => void;
684
+ readonly __wbg_nanocodex_free: (a: number, b: number) => void;
685
+ readonly __wbg_turn_free: (a: number, b: number) => void;
686
+ readonly __wbg_turnresult_free: (a: number, b: number) => void;
687
+ readonly applyBrowserPatch: (a: number, b: number, c: number, d: number) => number;
688
+ readonly browservoice_agentEvent: (a: number, b: number, c: number, d: number) => void;
689
+ readonly browservoice_appendContext: (a: number, b: number, c: number, d: number) => void;
690
+ readonly browservoice_appendSpeech: (a: number, b: number, c: number, d: number) => void;
691
+ readonly browservoice_appendText: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
692
+ readonly browservoice_callBody: (a: number, b: number, c: number, d: number) => void;
693
+ readonly browservoice_cancel: (a: number) => number;
694
+ readonly browservoice_completeCall: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
695
+ readonly browservoice_configure: (a: number, b: number, c: number, d: number) => void;
696
+ readonly browservoice_flush: (a: number, b: number, c: number) => void;
697
+ readonly browservoice_framesSent: (a: number, b: number) => void;
698
+ readonly browservoice_preferredPhysicalInput: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
699
+ readonly browservoice_realtimeMessage: (a: number, b: number, c: number) => number;
700
+ readonly browservoice_requiresAgentAdmission: (a: number, b: number, c: number) => number;
701
+ readonly browservoice_sidebandClosed: (a: number, b: number, c: number) => void;
702
+ readonly browservoice_sidebandOpened: (a: number, b: number) => void;
703
+ readonly browservoice_sidebandUrl: (a: number, b: number, c: number, d: number) => void;
704
+ readonly browservoice_start: (a: number) => number;
705
+ readonly browservoice_stop: (a: number) => number;
706
+ readonly chatgptsubscription_credential: (a: number) => number;
707
+ readonly chatgptsubscription_logout: (a: number) => number;
708
+ readonly chatgptsubscription_open: (a: number, b: number) => number;
709
+ readonly chatgptsubscription_recover: (a: number, b: number, c: number) => number;
710
+ readonly chatgptsubscription_startLogin: (a: number) => number;
711
+ readonly chatgptsubscription_status: (a: number) => number;
712
+ readonly managedBootstrapPlan: (a: number, b: number, c: number) => void;
713
+ readonly managedbrowservoice_agentEvent: (a: number, b: number, c: number, d: number) => void;
714
+ readonly managedbrowservoice_appendContext: (a: number, b: number, c: number, d: number) => void;
715
+ readonly managedbrowservoice_appendSpeech: (a: number, b: number, c: number, d: number) => void;
716
+ readonly managedbrowservoice_appendText: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
717
+ readonly managedbrowservoice_callBody: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
718
+ readonly managedbrowservoice_completeCall: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
719
+ readonly managedbrowservoice_configure: (a: number, b: number, c: number, d: number) => void;
720
+ readonly managedbrowservoice_flush: (a: number, b: number, c: number) => void;
721
+ readonly managedbrowservoice_framesSent: (a: number, b: number) => void;
722
+ readonly managedbrowservoice_managedEvent: (a: number, b: number, c: number, d: number) => void;
723
+ readonly managedbrowservoice_new: (a: number, b: number, c: number) => void;
724
+ readonly managedbrowservoice_preferredPhysicalInput: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
725
+ readonly managedbrowservoice_realtimeMessage: (a: number, b: number, c: number, d: number) => void;
726
+ readonly managedbrowservoice_requiresAgentAdmission: (a: number, b: number, c: number) => number;
727
+ readonly managedbrowservoice_sidebandClosed: (a: number, b: number, c: number) => void;
728
+ readonly managedbrowservoice_sidebandOpened: (a: number, b: number) => void;
729
+ readonly managedbrowservoice_sidebandUrl: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
730
+ readonly managedbrowservoice_start: (a: number, b: number, c: number, d: number) => void;
731
+ readonly managedbrowservoice_stop: (a: number, b: number) => void;
732
+ readonly nanocodex_agentId: (a: number, b: number) => void;
733
+ readonly nanocodex_appendDeveloperMessage: (a: number, b: number, c: number) => number;
734
+ readonly nanocodex_browserVoice: (a: number, b: number, c: number, d: number) => void;
735
+ readonly nanocodex_closeSubagent: (a: number, b: number, c: number) => number;
736
+ readonly nanocodex_compact: (a: number) => number;
737
+ readonly nanocodex_compactOutcome: (a: number) => number;
738
+ readonly nanocodex_context: (a: number) => number;
739
+ readonly nanocodex_create: (a: number, b: number) => number;
740
+ readonly nanocodex_createWithChatGpt: (a: number, b: number, c: number) => number;
741
+ readonly nanocodex_endRealtimeConversation: (a: number) => number;
742
+ readonly nanocodex_fork: (a: number) => number;
743
+ readonly nanocodex_forkFrom: (a: number, b: number) => number;
744
+ readonly nanocodex_interruptSubagent: (a: number, b: number, c: number) => number;
745
+ readonly nanocodex_listSubagents: (a: number, b: number, c: number) => number;
746
+ readonly nanocodex_prompt: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
747
+ readonly nanocodex_promptContent: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
748
+ readonly nanocodex_realtimeDelegation: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
749
+ readonly nanocodex_realtimeTailDelegation: (a: number, b: number, c: number, d: number) => void;
750
+ readonly nanocodex_restoreSubagents: (a: number, b: number, c: number, d: number, e: number) => number;
751
+ readonly nanocodex_routePrompt: (a: number, b: number, c: number) => number;
752
+ readonly nanocodex_sendSubagentMessage: (a: number, b: number, c: number) => number;
753
+ readonly nanocodex_sessionId: (a: number, b: number) => void;
754
+ readonly nanocodex_setEventForwarding: (a: number, b: number) => void;
755
+ readonly nanocodex_setFastMode: (a: number, b: number) => number;
756
+ readonly nanocodex_setModel: (a: number, b: number, c: number) => number;
757
+ readonly nanocodex_setThinking: (a: number, b: number, c: number) => number;
758
+ readonly nanocodex_shutdown: (a: number) => number;
759
+ readonly nanocodex_snapshot: (a: number) => number;
760
+ readonly nanocodex_spawn: (a: number) => number;
761
+ readonly nanocodex_spawnSubagent: (a: number, b: number, c: number) => number;
762
+ readonly nanocodex_spawnSubagents: (a: number, b: number, c: number) => number;
763
+ readonly nanocodex_startRealtimeConversation: (a: number) => number;
764
+ readonly nanocodex_waitSubagents: (a: number, b: number, c: number) => number;
765
+ readonly pruneDurableReceipts: (a: number, b: number, c: number, d: number, e: number) => number;
766
+ readonly turn_accepted: (a: number) => number;
767
+ readonly turn_cancel: (a: number) => number;
768
+ readonly turn_result: (a: number) => number;
769
+ readonly turn_steer: (a: number, b: number, c: number) => number;
770
+ readonly turn_steerContent: (a: number, b: number, c: number) => number;
771
+ readonly turnresult_finalMessage: (a: number, b: number) => void;
772
+ readonly turnresult_snapshot: (a: number, b: number) => void;
773
+ readonly turnresult_usage: (a: number, b: number) => void;
774
+ readonly __wasm_bindgen_func_elem_20354: (a: number, b: number, c: number, d: number) => void;
775
+ readonly __wasm_bindgen_func_elem_20356: (a: number, b: number, c: number, d: number) => void;
776
+ readonly __wasm_bindgen_func_elem_4730: (a: number, b: number) => void;
777
+ readonly __wbindgen_export: (a: number, b: number) => number;
778
+ readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
779
+ readonly __wbindgen_export3: (a: number) => void;
780
+ readonly __wbindgen_export4: (a: number, b: number) => void;
781
+ readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
782
+ readonly __wbindgen_export5: (a: number, b: number, c: number) => void;
783
+ }
784
+
785
+ export type SyncInitInput = BufferSource | WebAssembly.Module;
786
+
787
+ /**
788
+ * Instantiates the given `module`, which can either be bytes or
789
+ * a precompiled `WebAssembly.Module`.
790
+ *
791
+ * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
792
+ *
793
+ * @returns {InitOutput}
794
+ */
795
+ export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
796
+
797
+ /**
798
+ * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
799
+ * for everything else, calls `WebAssembly.instantiate` directly.
800
+ *
801
+ * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
802
+ *
803
+ * @returns {Promise<InitOutput>}
804
+ */
805
+ export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;