@binblink/wasmnest-plugin-sdk-desktop 0.0.1 → 0.0.2

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 (219) hide show
  1. package/README.md +24 -4
  2. package/README_en.md +1 -1
  3. package/bin/cli.js +5 -5
  4. package/bin/manifest-gen.js +4 -0
  5. package/bin/manifest-validate.js +68 -6
  6. package/bin/permission-vocabulary.json +2 -2
  7. package/dev-shell/README.md +6 -5
  8. package/dev-shell/src/loader.ts +0 -5
  9. package/dev-shell/src/mock/commands.ts +1 -1
  10. package/dev-shell/src/mock/domain-context.ts +1 -1
  11. package/dev-shell/src/shell/types.ts +21 -32
  12. package/dev-shell/src/styles/shell.css +208 -2
  13. package/dev-shell/src/styles/style.css +72 -26
  14. package/dist/index.d.ts +44 -3
  15. package/dist/index.js +69 -1
  16. package/dist/types.d.ts +52 -5
  17. package/go/.gitignore +5 -0
  18. package/go/README.md +80 -0
  19. package/go/gen/wasmnest/api-call/host-api-call/empty.s +3 -0
  20. package/go/gen/wasmnest/api-call/host-api-call/host-api-call.wasm.go +13 -0
  21. package/go/gen/wasmnest/api-call/host-api-call/host-api-call.wit.go +34 -0
  22. package/go/gen/wasmnest/app/host-app/empty.s +3 -0
  23. package/go/gen/wasmnest/app/host-app/host-app.wasm.go +29 -0
  24. package/go/gen/wasmnest/app/host-app/host-app.wit.go +108 -0
  25. package/go/gen/wasmnest/auth-center/host-auth-center/abi.go +14 -0
  26. package/go/gen/wasmnest/auth-center/host-auth-center/empty.s +3 -0
  27. package/go/gen/wasmnest/auth-center/host-auth-center/host-auth-center.wasm.go +49 -0
  28. package/go/gen/wasmnest/auth-center/host-auth-center/host-auth-center.wit.go +225 -0
  29. package/go/gen/wasmnest/clipboard/host-clipboard/abi.go +14 -0
  30. package/go/gen/wasmnest/clipboard/host-clipboard/empty.s +3 -0
  31. package/go/gen/wasmnest/clipboard/host-clipboard/host-clipboard.wasm.go +17 -0
  32. package/go/gen/wasmnest/clipboard/host-clipboard/host-clipboard.wit.go +68 -0
  33. package/go/gen/wasmnest/connection-registry/host-connection-registry/empty.s +3 -0
  34. package/go/gen/wasmnest/connection-registry/host-connection-registry/host-connection-registry.wasm.go +13 -0
  35. package/go/gen/wasmnest/connection-registry/host-connection-registry/host-connection-registry.wit.go +50 -0
  36. package/go/gen/wasmnest/crypto/host-crypto/abi.go +18 -0
  37. package/go/gen/wasmnest/crypto/host-crypto/empty.s +3 -0
  38. package/go/gen/wasmnest/crypto/host-crypto/host-crypto.wasm.go +37 -0
  39. package/go/gen/wasmnest/crypto/host-crypto/host-crypto.wit.go +139 -0
  40. package/go/gen/wasmnest/fs-desktop/host-fs-desktop/abi.go +14 -0
  41. package/go/gen/wasmnest/fs-desktop/host-fs-desktop/empty.s +3 -0
  42. package/go/gen/wasmnest/fs-desktop/host-fs-desktop/host-fs-desktop.wasm.go +21 -0
  43. package/go/gen/wasmnest/fs-desktop/host-fs-desktop/host-fs-desktop.wit.go +62 -0
  44. package/go/gen/wasmnest/http/host-http/abi.go +14 -0
  45. package/go/gen/wasmnest/http/host-http/empty.s +3 -0
  46. package/go/gen/wasmnest/http/host-http/host-http.wasm.go +13 -0
  47. package/go/gen/wasmnest/http/host-http/host-http.wit.go +40 -0
  48. package/go/gen/wasmnest/http-endpoint/host-http-endpoint/empty.s +3 -0
  49. package/go/gen/wasmnest/http-endpoint/host-http-endpoint/host-http-endpoint.wasm.go +17 -0
  50. package/go/gen/wasmnest/http-endpoint/host-http-endpoint/host-http-endpoint.wit.go +69 -0
  51. package/go/gen/wasmnest/mdns/host-mdns/empty.s +3 -0
  52. package/go/gen/wasmnest/mdns/host-mdns/host-mdns.wasm.go +29 -0
  53. package/go/gen/wasmnest/mdns/host-mdns/host-mdns.wit.go +101 -0
  54. package/go/gen/wasmnest/notify/host-notify/empty.s +3 -0
  55. package/go/gen/wasmnest/notify/host-notify/host-notify.wasm.go +13 -0
  56. package/go/gen/wasmnest/notify/host-notify/host-notify.wit.go +64 -0
  57. package/go/gen/wasmnest/peer/host-peer/abi.go +14 -0
  58. package/go/gen/wasmnest/peer/host-peer/empty.s +3 -0
  59. package/go/gen/wasmnest/peer/host-peer/host-peer.wasm.go +85 -0
  60. package/go/gen/wasmnest/peer/host-peer/host-peer.wit.go +357 -0
  61. package/go/gen/wasmnest/platform-desktop/host-platform-desktop/empty.s +3 -0
  62. package/go/gen/wasmnest/platform-desktop/host-platform-desktop/host-platform-desktop.wasm.go +21 -0
  63. package/go/gen/wasmnest/platform-desktop/host-platform-desktop/host-platform-desktop.wit.go +70 -0
  64. package/go/gen/wasmnest/plugin/abi-form/abi-form.exports.go +11 -0
  65. package/go/gen/wasmnest/plugin/abi-form/abi-form.wasm.go +13 -0
  66. package/go/gen/wasmnest/plugin/abi-form/abi-form.wit.go +7 -0
  67. package/go/gen/wasmnest/plugin/abi-form/empty.s +3 -0
  68. package/go/gen/wasmnest/plugin/command/command.exports.go +11 -0
  69. package/go/gen/wasmnest/plugin/command/command.wasm.go +19 -0
  70. package/go/gen/wasmnest/plugin/command/command.wit.go +6 -0
  71. package/go/gen/wasmnest/plugin/command/empty.s +3 -0
  72. package/go/gen/wasmnest/plugin/events/empty.s +3 -0
  73. package/go/gen/wasmnest/plugin/events/events.exports.go +52 -0
  74. package/go/gen/wasmnest/plugin/events/events.wasm.go +74 -0
  75. package/go/gen/wasmnest/plugin/events/events.wit.go +195 -0
  76. package/go/gen/wasmnest/plugin/host-bus/empty.s +3 -0
  77. package/go/gen/wasmnest/plugin/host-bus/host-bus.wasm.go +29 -0
  78. package/go/gen/wasmnest/plugin/host-bus/host-bus.wit.go +94 -0
  79. package/go/gen/wasmnest/plugin/host-config/abi.go +14 -0
  80. package/go/gen/wasmnest/plugin/host-config/empty.s +3 -0
  81. package/go/gen/wasmnest/plugin/host-config/host-config.wasm.go +13 -0
  82. package/go/gen/wasmnest/plugin/host-config/host-config.wit.go +21 -0
  83. package/go/gen/wasmnest/plugin/host-events/empty.s +3 -0
  84. package/go/gen/wasmnest/plugin/host-events/host-events.wasm.go +9 -0
  85. package/go/gen/wasmnest/plugin/host-events/host-events.wit.go +27 -0
  86. package/go/gen/wasmnest/plugin/host-fs/abi.go +14 -0
  87. package/go/gen/wasmnest/plugin/host-fs/empty.s +3 -0
  88. package/go/gen/wasmnest/plugin/host-fs/host-fs.wasm.go +33 -0
  89. package/go/gen/wasmnest/plugin/host-fs/host-fs.wit.go +86 -0
  90. package/go/gen/wasmnest/plugin/host-log/empty.s +3 -0
  91. package/go/gen/wasmnest/plugin/host-log/host-log.wasm.go +25 -0
  92. package/go/gen/wasmnest/plugin/host-log/host-log.wit.go +65 -0
  93. package/go/gen/wasmnest/plugin/host-metrics/empty.s +3 -0
  94. package/go/gen/wasmnest/plugin/host-metrics/host-metrics.wasm.go +13 -0
  95. package/go/gen/wasmnest/plugin/host-metrics/host-metrics.wit.go +34 -0
  96. package/go/gen/wasmnest/plugin/host-platform/empty.s +3 -0
  97. package/go/gen/wasmnest/plugin/host-platform/host-platform.wasm.go +21 -0
  98. package/go/gen/wasmnest/plugin/host-platform/host-platform.wit.go +85 -0
  99. package/go/gen/wasmnest/plugin/host-plugin-database/abi.go +14 -0
  100. package/go/gen/wasmnest/plugin/host-plugin-database/empty.s +3 -0
  101. package/go/gen/wasmnest/plugin/host-plugin-database/host-plugin-database.wasm.go +29 -0
  102. package/go/gen/wasmnest/plugin/host-plugin-database/host-plugin-database.wit.go +70 -0
  103. package/go/gen/wasmnest/plugin/host-storage/abi.go +14 -0
  104. package/go/gen/wasmnest/plugin/host-storage/empty.s +3 -0
  105. package/go/gen/wasmnest/plugin/host-storage/host-storage.wasm.go +21 -0
  106. package/go/gen/wasmnest/plugin/host-storage/host-storage.wit.go +44 -0
  107. package/go/gen/wasmnest/plugin/host-worker/empty.s +3 -0
  108. package/go/gen/wasmnest/plugin/host-worker/host-worker.wasm.go +17 -0
  109. package/go/gen/wasmnest/plugin/host-worker/host-worker.wit.go +50 -0
  110. package/go/gen/wasmnest/plugin/lifecycle/empty.s +3 -0
  111. package/go/gen/wasmnest/plugin/lifecycle/lifecycle.exports.go +32 -0
  112. package/go/gen/wasmnest/plugin/lifecycle/lifecycle.wasm.go +41 -0
  113. package/go/gen/wasmnest/plugin/lifecycle/lifecycle.wit.go +9 -0
  114. package/go/gen/wasmnest/plugin/manifest/empty.s +3 -0
  115. package/go/gen/wasmnest/plugin/manifest/manifest.exports.go +11 -0
  116. package/go/gen/wasmnest/plugin/manifest/manifest.wasm.go +13 -0
  117. package/go/gen/wasmnest/plugin/manifest/manifest.wit.go +6 -0
  118. package/go/gen/wasmnest/plugin/plugin/plugin.wit.go +4 -0
  119. package/go/gen/wasmnest/process/host-process/empty.s +3 -0
  120. package/go/gen/wasmnest/process/host-process/host-process.wasm.go +21 -0
  121. package/go/gen/wasmnest/process/host-process/host-process.wit.go +56 -0
  122. package/go/gen/wasmnest/pty/host-pty/abi.go +14 -0
  123. package/go/gen/wasmnest/pty/host-pty/empty.s +3 -0
  124. package/go/gen/wasmnest/pty/host-pty/host-pty.wasm.go +33 -0
  125. package/go/gen/wasmnest/pty/host-pty/host-pty.wit.go +164 -0
  126. package/go/gen/wasmnest/task/host-task/abi.go +14 -0
  127. package/go/gen/wasmnest/task/host-task/empty.s +3 -0
  128. package/go/gen/wasmnest/task/host-task/host-task.wasm.go +29 -0
  129. package/go/gen/wasmnest/task/host-task/host-task.wit.go +110 -0
  130. package/go/gen/wasmnest/timer/host-timer/empty.s +3 -0
  131. package/go/gen/wasmnest/timer/host-timer/host-timer.wasm.go +13 -0
  132. package/go/gen/wasmnest/timer/host-timer/host-timer.wit.go +25 -0
  133. package/go/gen/wasmnest/ws/host-websocket/empty.s +3 -0
  134. package/go/gen/wasmnest/ws/host-websocket/host-websocket.wasm.go +29 -0
  135. package/go/gen/wasmnest/ws/host-websocket/host-websocket.wit.go +109 -0
  136. package/go/gen/wasmnest/ws-server/host-websocket-server/empty.s +3 -0
  137. package/go/gen/wasmnest/ws-server/host-websocket-server/host-websocket-server.wasm.go +49 -0
  138. package/go/gen/wasmnest/ws-server/host-websocket-server/host-websocket-server.wit.go +220 -0
  139. package/go/go.mod +14 -0
  140. package/go/go.sum +2 -0
  141. package/go/sdk/dispatch.go +49 -0
  142. package/go/sdk/dispatch_test.go +81 -0
  143. package/go/sdk/entry_native.go +13 -0
  144. package/go/sdk/entry_wasip2.go +188 -0
  145. package/go/sdk/host_http_wasip2.go +42 -0
  146. package/go/sdk/host_wasip2.go +251 -0
  147. package/go/sdk/plugin.go +103 -0
  148. package/go/testplugin/index.js +1 -0
  149. package/go/testplugin/main.go +67 -0
  150. package/go/testplugin/plugin.json +24 -0
  151. package/go/tools/assemble-wit.mjs +152 -0
  152. package/go/tools/gen-bindings.mjs +51 -0
  153. package/go/wit/core.wit +273 -0
  154. package/go/wit/deps/api-call/cap-api-call.wit +20 -0
  155. package/go/wit/deps/app/cap-app.wit +54 -0
  156. package/go/wit/deps/auth-center/cap-auth-center.wit +124 -0
  157. package/go/wit/deps/clipboard/clipboard.wit +48 -0
  158. package/go/wit/deps/clocks/monotonic-clock.wit +45 -0
  159. package/go/wit/deps/clocks/wall-clock.wit +42 -0
  160. package/go/wit/deps/clocks/world.wit +6 -0
  161. package/go/wit/deps/connection-registry/cap-connection-registry.wit +40 -0
  162. package/go/wit/deps/crypto/cap-crypto.wit +68 -0
  163. package/go/wit/deps/filesystem/preopens.wit +8 -0
  164. package/go/wit/deps/filesystem/types.wit +634 -0
  165. package/go/wit/deps/filesystem/world.wit +6 -0
  166. package/go/wit/deps/fs-desktop/cap-fs-desktop.wit +29 -0
  167. package/go/wit/deps/http/http.wit +28 -0
  168. package/go/wit/deps/http-endpoint/cap-http.wit +44 -0
  169. package/go/wit/deps/io/error.wit +34 -0
  170. package/go/wit/deps/io/poll.wit +41 -0
  171. package/go/wit/deps/io/streams.wit +262 -0
  172. package/go/wit/deps/io/world.wit +6 -0
  173. package/go/wit/deps/mdns/mdns.wit +45 -0
  174. package/go/wit/deps/notify/notify.wit +51 -0
  175. package/go/wit/deps/peer/peer.wit +126 -0
  176. package/go/wit/deps/platform-desktop/cap-platform-desktop.wit +38 -0
  177. package/go/wit/deps/process/cap-process.wit +25 -0
  178. package/go/wit/deps/pty/pty.wit +80 -0
  179. package/go/wit/deps/random/insecure-seed.wit +25 -0
  180. package/go/wit/deps/random/insecure.wit +22 -0
  181. package/go/wit/deps/random/random.wit +26 -0
  182. package/go/wit/deps/random/world.wit +7 -0
  183. package/go/wit/deps/sockets/instance-network.wit +9 -0
  184. package/go/wit/deps/sockets/ip-name-lookup.wit +51 -0
  185. package/go/wit/deps/sockets/network.wit +145 -0
  186. package/go/wit/deps/sockets/tcp-create-socket.wit +27 -0
  187. package/go/wit/deps/sockets/tcp.wit +353 -0
  188. package/go/wit/deps/sockets/udp-create-socket.wit +27 -0
  189. package/go/wit/deps/sockets/udp.wit +266 -0
  190. package/go/wit/deps/sockets/world.wit +11 -0
  191. package/go/wit/deps/task/cap-task.wit +56 -0
  192. package/go/wit/deps/timer/cap-timer.wit +14 -0
  193. package/go/wit/deps/wasi-cli/command.wit +7 -0
  194. package/go/wit/deps/wasi-cli/environment.wit +18 -0
  195. package/go/wit/deps/wasi-cli/exit.wit +4 -0
  196. package/go/wit/deps/wasi-cli/imports.wit +20 -0
  197. package/go/wit/deps/wasi-cli/run.wit +4 -0
  198. package/go/wit/deps/wasi-cli/stdio.wit +17 -0
  199. package/go/wit/deps/wasi-cli/terminal.wit +49 -0
  200. package/go/wit/deps/ws/ws.wit +50 -0
  201. package/go/wit/deps/ws-server/cap-ws.wit +99 -0
  202. package/go/wit/go-plugin.wit +28 -0
  203. package/go/wit/plugin-face.wit +355 -0
  204. package/go/wit/wasmnest.wit +25 -0
  205. package/package.json +12 -1
  206. package/src/index.ts +8 -0
  207. package/src/types.ts +681 -630
  208. package/src/ui/AppUpdateSection.d.ts +44 -0
  209. package/src/ui/AppUpdateSection.vue +253 -0
  210. package/src/ui/NumberField.d.ts +49 -0
  211. package/src/ui/NumberField.vue +390 -0
  212. package/src/ui/Select.vue +4 -4
  213. package/src/update.ts +123 -0
  214. package/template/README.md +39 -39
  215. package/tools/componentize/Cargo.lock +30 -1
  216. package/tools/componentize/Cargo.toml +3 -0
  217. package/tools/componentize/src/main.rs +197 -94
  218. package/dev-shell/src/mock/agent-hub-commands.ts +0 -1065
  219. package/dev-shell/src/mock/agent-hub.ts +0 -42
@@ -0,0 +1,21 @@
1
+ // Code generated by wit-bindgen-go. DO NOT EDIT.
2
+
3
+ package hoststorage
4
+
5
+ import (
6
+ "go.bytecodealliance.org/cm"
7
+ )
8
+
9
+ // This file contains wasmimport and wasmexport declarations for "wasmnest:plugin@0.1.0".
10
+
11
+ //go:wasmimport wasmnest:plugin/host-storage@0.1.0 get
12
+ //go:noescape
13
+ func wasmimport_Get(key0 *uint8, key1 uint32, result *cm.Result[OptionStringShape, cm.Option[string], string])
14
+
15
+ //go:wasmimport wasmnest:plugin/host-storage@0.1.0 set
16
+ //go:noescape
17
+ func wasmimport_Set(key0 *uint8, key1 uint32, value0 *uint8, value1 uint32, result *cm.Result[string, struct{}, string])
18
+
19
+ //go:wasmimport wasmnest:plugin/host-storage@0.1.0 delete
20
+ //go:noescape
21
+ func wasmimport_Delete(key0 *uint8, key1 uint32, result *cm.Result[string, struct{}, string])
@@ -0,0 +1,44 @@
1
+ // Code generated by wit-bindgen-go. DO NOT EDIT.
2
+
3
+ // Package hoststorage represents the imported interface "wasmnest:plugin/host-storage@0.1.0".
4
+ //
5
+ // 插件 KV 存储(原 storage.rs:storage_get/set/delete)
6
+ package hoststorage
7
+
8
+ import (
9
+ "go.bytecodealliance.org/cm"
10
+ )
11
+
12
+ // Get represents the imported function "get".
13
+ //
14
+ // get: func(key: string) -> result<option<string>, string>
15
+ //
16
+ //go:nosplit
17
+ func Get(key string) (result cm.Result[OptionStringShape, cm.Option[string], string]) {
18
+ key0, key1 := cm.LowerString(key)
19
+ wasmimport_Get((*uint8)(key0), (uint32)(key1), &result)
20
+ return
21
+ }
22
+
23
+ // Set represents the imported function "set".
24
+ //
25
+ // set: func(key: string, value: string) -> result<_, string>
26
+ //
27
+ //go:nosplit
28
+ func Set(key string, value string) (result cm.Result[string, struct{}, string]) {
29
+ key0, key1 := cm.LowerString(key)
30
+ value0, value1 := cm.LowerString(value)
31
+ wasmimport_Set((*uint8)(key0), (uint32)(key1), (*uint8)(value0), (uint32)(value1), &result)
32
+ return
33
+ }
34
+
35
+ // Delete represents the imported function "delete".
36
+ //
37
+ // delete: func(key: string) -> result<_, string>
38
+ //
39
+ //go:nosplit
40
+ func Delete(key string) (result cm.Result[string, struct{}, string]) {
41
+ key0, key1 := cm.LowerString(key)
42
+ wasmimport_Delete((*uint8)(key0), (uint32)(key1), &result)
43
+ return
44
+ }
@@ -0,0 +1,3 @@
1
+ // This file exists for testing this package without WebAssembly,
2
+ // allowing empty function bodies with a //go:wasmimport directive.
3
+ // See https://pkg.go.dev/cmd/compile for more information.
@@ -0,0 +1,17 @@
1
+ // Code generated by wit-bindgen-go. DO NOT EDIT.
2
+
3
+ package hostworker
4
+
5
+ import (
6
+ "go.bytecodealliance.org/cm"
7
+ )
8
+
9
+ // This file contains wasmimport and wasmexport declarations for "wasmnest:plugin@0.1.0".
10
+
11
+ //go:wasmimport wasmnest:plugin/host-worker@0.1.0 submit
12
+ //go:noescape
13
+ func wasmimport_Submit(worker0 *uint8, worker1 uint32, input0 *uint8, input1 uint32, result *cm.Result[string, string, string])
14
+
15
+ //go:wasmimport wasmnest:plugin/host-worker@0.1.0 cancel
16
+ //go:noescape
17
+ func wasmimport_Cancel(jobId0 *uint8, jobId1 uint32, result *cm.Result[string, struct{}, string])
@@ -0,0 +1,50 @@
1
+ // Code generated by wit-bindgen-go. DO NOT EDIT.
2
+
3
+ // Package hostworker represents the imported interface "wasmnest:plugin/host-worker@0.1.0".
4
+ //
5
+ // worker 调度(主插件经宿主中介调用内嵌 worker 子资源,ADR 0059)
6
+ //
7
+ // **权限 `worker:run`(manifest 必须单独声明)**:未声明即 `Err`——「占用宿主
8
+ // 并行资源」的准入门(一线程一 worker,per-plugin 并发 4 / 全局 8),与
9
+ // `task:run` 同款判据(并发能力与数据访问解耦授权)。
10
+ //
11
+ // worker 本体是声明插件的**私属**子资源:插件包 `worker/` 目录 + manifest
12
+ // `workers` 块声明(`[{name, file, wasmHash?, resourceOverrides?}]`),world
13
+ // 本体在 `wit/worker.wit`(零宿主 import,仅 WASI 内建)。每次运行 = 全新
14
+ // Store,零共享状态;worker 间通信只能走主插件编排。
15
+ //
16
+ // - `submit` 受理语义:同步校验(worker 名不存在 / 输入超限 / 队列满)→ `Err`;
17
+ // 受理成功返回 job id(1 submit = 1 run,fan-out = 连发 N 个 submit)。
18
+ // 运行期失败(实例化 / trap / 燃料耗尽)→ [`events-worker`] 终态事件。
19
+ // - `cancel` 语义 = 标记取消(非强杀):燃料自然终结、结果丢弃,不承诺强杀
20
+ // (与 task 审计票 09 裁决同立场)。
21
+ // - 传参 JSON string(输入 / 输出上限 1 MiB,真源 server-base constants);
22
+ // 超大输入显性报错,文件路径留给 preopen 阶段。
23
+ package hostworker
24
+
25
+ import (
26
+ "go.bytecodealliance.org/cm"
27
+ )
28
+
29
+ // Submit represents the imported function "submit".
30
+ //
31
+ // submit: func(worker: string, input: string) -> result<string, string>
32
+ //
33
+ //go:nosplit
34
+ func Submit(worker string, input string) (result cm.Result[string, string, string]) {
35
+ worker0, worker1 := cm.LowerString(worker)
36
+ input0, input1 := cm.LowerString(input)
37
+ wasmimport_Submit((*uint8)(worker0), (uint32)(worker1), (*uint8)(input0), (uint32)(input1), &result)
38
+ return
39
+ }
40
+
41
+ // Cancel represents the imported function "cancel".
42
+ //
43
+ // cancel: func(job-id: string) -> result<_, string>
44
+ //
45
+ //go:nosplit
46
+ func Cancel(jobID string) (result cm.Result[string, struct{}, string]) {
47
+ jobId0, jobId1 := cm.LowerString(jobID)
48
+ wasmimport_Cancel((*uint8)(jobId0), (uint32)(jobId1), &result)
49
+ return
50
+ }
@@ -0,0 +1,3 @@
1
+ // This file exists for testing this package without WebAssembly,
2
+ // allowing empty function bodies with a //go:wasmimport directive.
3
+ // See https://pkg.go.dev/cmd/compile for more information.
@@ -0,0 +1,32 @@
1
+ // Code generated by wit-bindgen-go. DO NOT EDIT.
2
+
3
+ package lifecycle
4
+
5
+ import (
6
+ "go.bytecodealliance.org/cm"
7
+ )
8
+
9
+ // Exports represents the caller-defined exports from "wasmnest:plugin/lifecycle@0.1.0".
10
+ var Exports struct {
11
+ // Activate represents the caller-defined, exported function "activate".
12
+ //
13
+ // activate: func() -> result<_, string>
14
+ Activate func() (result cm.Result[string, struct{}, string])
15
+
16
+ // Deactivate represents the caller-defined, exported function "deactivate".
17
+ //
18
+ // deactivate: func() -> result<_, string>
19
+ Deactivate func() (result cm.Result[string, struct{}, string])
20
+
21
+ // OnStartup represents the caller-defined, exported function "on-startup".
22
+ //
23
+ // on-startup: func() -> result<_, string>
24
+ OnStartup func() (result cm.Result[string, struct{}, string])
25
+
26
+ // OnShutdown represents the caller-defined, exported function "on-shutdown".
27
+ //
28
+ // 补全:携带启动初始化结果
29
+ //
30
+ // on-shutdown: func() -> result<_, string>
31
+ OnShutdown func() (result cm.Result[string, struct{}, string])
32
+ }
@@ -0,0 +1,41 @@
1
+ // Code generated by wit-bindgen-go. DO NOT EDIT.
2
+
3
+ package lifecycle
4
+
5
+ import (
6
+ "go.bytecodealliance.org/cm"
7
+ )
8
+
9
+ // This file contains wasmimport and wasmexport declarations for "wasmnest:plugin@0.1.0".
10
+
11
+ //go:wasmexport wasmnest:plugin/lifecycle@0.1.0#activate
12
+ //export wasmnest:plugin/lifecycle@0.1.0#activate
13
+ func wasmexport_Activate() (result *cm.Result[string, struct{}, string]) {
14
+ result_ := Exports.Activate()
15
+ result = &result_
16
+ return
17
+ }
18
+
19
+ //go:wasmexport wasmnest:plugin/lifecycle@0.1.0#deactivate
20
+ //export wasmnest:plugin/lifecycle@0.1.0#deactivate
21
+ func wasmexport_Deactivate() (result *cm.Result[string, struct{}, string]) {
22
+ result_ := Exports.Deactivate()
23
+ result = &result_
24
+ return
25
+ }
26
+
27
+ //go:wasmexport wasmnest:plugin/lifecycle@0.1.0#on-startup
28
+ //export wasmnest:plugin/lifecycle@0.1.0#on-startup
29
+ func wasmexport_OnStartup() (result *cm.Result[string, struct{}, string]) {
30
+ result_ := Exports.OnStartup()
31
+ result = &result_
32
+ return
33
+ }
34
+
35
+ //go:wasmexport wasmnest:plugin/lifecycle@0.1.0#on-shutdown
36
+ //export wasmnest:plugin/lifecycle@0.1.0#on-shutdown
37
+ func wasmexport_OnShutdown() (result *cm.Result[string, struct{}, string]) {
38
+ result_ := Exports.OnShutdown()
39
+ result = &result_
40
+ return
41
+ }
@@ -0,0 +1,9 @@
1
+ // Code generated by wit-bindgen-go. DO NOT EDIT.
2
+
3
+ // Package lifecycle represents the exported interface "wasmnest:plugin/lifecycle@0.1.0".
4
+ //
5
+ // 生命周期(原 activate/deactivate/on_startup/on_shutdown)
6
+ //
7
+ // 四个导出均携带结果(v8):启动初始化/清理的成败由导出返回值如实上抛,
8
+ // 宿主据此区分 Activated / Degraded,不再依赖「调用没抛错」推断成功
9
+ package lifecycle
@@ -0,0 +1,3 @@
1
+ // This file exists for testing this package without WebAssembly,
2
+ // allowing empty function bodies with a //go:wasmimport directive.
3
+ // See https://pkg.go.dev/cmd/compile for more information.
@@ -0,0 +1,11 @@
1
+ // Code generated by wit-bindgen-go. DO NOT EDIT.
2
+
3
+ package manifest
4
+
5
+ // Exports represents the caller-defined exports from "wasmnest:plugin/manifest@0.1.0".
6
+ var Exports struct {
7
+ // Get represents the caller-defined, exported function "get".
8
+ //
9
+ // get: func() -> string
10
+ Get func() (result string)
11
+ }
@@ -0,0 +1,13 @@
1
+ // Code generated by wit-bindgen-go. DO NOT EDIT.
2
+
3
+ package manifest
4
+
5
+ // This file contains wasmimport and wasmexport declarations for "wasmnest:plugin@0.1.0".
6
+
7
+ //go:wasmexport wasmnest:plugin/manifest@0.1.0#get
8
+ //export wasmnest:plugin/manifest@0.1.0#get
9
+ func wasmexport_Get() (result *string) {
10
+ result_ := Exports.Get()
11
+ result = &result_
12
+ return
13
+ }
@@ -0,0 +1,6 @@
1
+ // Code generated by wit-bindgen-go. DO NOT EDIT.
2
+
3
+ // Package manifest represents the exported interface "wasmnest:plugin/manifest@0.1.0".
4
+ //
5
+ // 插件 manifest(原 __wasmnest_manifest,JSON 字符串)
6
+ package manifest
@@ -0,0 +1,4 @@
1
+ // Code generated by wit-bindgen-go. DO NOT EDIT.
2
+
3
+ // Package plugin represents the world "wasmnest:plugin/plugin@0.1.0".
4
+ package plugin
@@ -0,0 +1,3 @@
1
+ // This file exists for testing this package without WebAssembly,
2
+ // allowing empty function bodies with a //go:wasmimport directive.
3
+ // See https://pkg.go.dev/cmd/compile for more information.
@@ -0,0 +1,21 @@
1
+ // Code generated by wit-bindgen-go. DO NOT EDIT.
2
+
3
+ package hostprocess
4
+
5
+ import (
6
+ "go.bytecodealliance.org/cm"
7
+ )
8
+
9
+ // This file contains wasmimport and wasmexport declarations for "wasmnest:process@0.0.1".
10
+
11
+ //go:wasmimport wasmnest:process/host-process@0.0.1 run
12
+ //go:noescape
13
+ func wasmimport_Run(requestJson0 *uint8, requestJson1 uint32, result *cm.Result[string, string, string])
14
+
15
+ //go:wasmimport wasmnest:process/host-process@0.0.1 kill
16
+ //go:noescape
17
+ func wasmimport_Kill(runId0 *uint8, runId1 uint32, result *cm.Result[string, struct{}, string])
18
+
19
+ //go:wasmimport wasmnest:process/host-process@0.0.1 run-sync
20
+ //go:noescape
21
+ func wasmimport_RunSync(requestJson0 *uint8, requestJson1 uint32, result *cm.Result[string, string, string])
@@ -0,0 +1,56 @@
1
+ // Code generated by wit-bindgen-go. DO NOT EDIT.
2
+
3
+ // Package hostprocess represents the imported interface "wasmnest:process/host-process@0.0.1".
4
+ //
5
+ // 桌面端能力域分片(WIT 按包拆分,ADR 0061):一个能力域 = 一个独立包,
6
+ // 版本独立演进——本包 WIT 变更只 bump 本包,不波及未 import 它的应用。
7
+ // 端 `plugin` world 经 `include wasmnest:process/cap-process@0.0.1;` 并入本接口。
8
+ // 进程执行(v8:host-process)——调度框架等插件需要执行外部命令/脚本
9
+ //
10
+ // 异步执行:`run` 立即返回 run-id,进程结束后宿主经 `events.on-process-done`
11
+ // 回调插件(携带 exit_code / 超时标记);`kill` 用于超时/取消。
12
+ package hostprocess
13
+
14
+ import (
15
+ "go.bytecodealliance.org/cm"
16
+ )
17
+
18
+ // Run represents the imported function "run".
19
+ //
20
+ // run: func(request-json: string) -> result<string, string>
21
+ //
22
+ //go:nosplit
23
+ func Run(requestJSON string) (result cm.Result[string, string, string]) {
24
+ requestJson0, requestJson1 := cm.LowerString(requestJSON)
25
+ wasmimport_Run((*uint8)(requestJson0), (uint32)(requestJson1), &result)
26
+ return
27
+ }
28
+
29
+ // Kill represents the imported function "kill".
30
+ //
31
+ // kill: func(run-id: string) -> result<_, string>
32
+ //
33
+ //go:nosplit
34
+ func Kill(runID string) (result cm.Result[string, struct{}, string]) {
35
+ runId0, runId1 := cm.LowerString(runID)
36
+ wasmimport_Kill((*uint8)(runId0), (uint32)(runId1), &result)
37
+ return
38
+ }
39
+
40
+ // RunSync represents the imported function "run-sync".
41
+ //
42
+ // v19 函数级追加(工作区 git 域):**同步**执行并捕获输出。
43
+ // request-json 同 `run`(command / args / cwd / env / timeout_ms,无
44
+ // output_path——输出由宿主捕获);返回
45
+ // `{exitCode, stdout, stderr, timedOut}`。同步阻塞等待进程结束,供插件
46
+ // 同步路径(HTTP 端点命令面)使用;`run` 是异步事件模型(run-id +
47
+ // on_process_done 回调),不适配「命令面里同步拿结果」。权限 `process:run`。
48
+ //
49
+ // run-sync: func(request-json: string) -> result<string, string>
50
+ //
51
+ //go:nosplit
52
+ func RunSync(requestJSON string) (result cm.Result[string, string, string]) {
53
+ requestJson0, requestJson1 := cm.LowerString(requestJSON)
54
+ wasmimport_RunSync((*uint8)(requestJson0), (uint32)(requestJson1), &result)
55
+ return
56
+ }
@@ -0,0 +1,14 @@
1
+ // Code generated by wit-bindgen-go. DO NOT EDIT.
2
+
3
+ package hostpty
4
+
5
+ import (
6
+ "go.bytecodealliance.org/cm"
7
+ "unsafe"
8
+ )
9
+
10
+ // OptionRingFetchResultShape is used for storage in variant or result types.
11
+ type OptionRingFetchResultShape struct {
12
+ _ cm.HostLayout
13
+ shape [unsafe.Sizeof(cm.Option[RingFetchResult]{})]byte
14
+ }
@@ -0,0 +1,3 @@
1
+ // This file exists for testing this package without WebAssembly,
2
+ // allowing empty function bodies with a //go:wasmimport directive.
3
+ // See https://pkg.go.dev/cmd/compile for more information.
@@ -0,0 +1,33 @@
1
+ // Code generated by wit-bindgen-go. DO NOT EDIT.
2
+
3
+ package hostpty
4
+
5
+ import (
6
+ "go.bytecodealliance.org/cm"
7
+ )
8
+
9
+ // This file contains wasmimport and wasmexport declarations for "wasmnest:pty@0.0.1".
10
+
11
+ //go:wasmimport wasmnest:pty/host-pty@0.0.1 spawn
12
+ //go:noescape
13
+ func wasmimport_Spawn(configJson0 *uint8, configJson1 uint32, result *cm.Result[string, string, string])
14
+
15
+ //go:wasmimport wasmnest:pty/host-pty@0.0.1 write
16
+ //go:noescape
17
+ func wasmimport_Write(ptyId0 *uint8, ptyId1 uint32, data0 *uint8, data1 uint32, result *cm.Result[string, struct{}, string])
18
+
19
+ //go:wasmimport wasmnest:pty/host-pty@0.0.1 resize
20
+ //go:noescape
21
+ func wasmimport_Resize(ptyId0 *uint8, ptyId1 uint32, cols0 uint32, rows0 uint32, result *cm.Result[string, struct{}, string])
22
+
23
+ //go:wasmimport wasmnest:pty/host-pty@0.0.1 kill
24
+ //go:noescape
25
+ func wasmimport_Kill(ptyId0 *uint8, ptyId1 uint32, result *cm.Result[string, struct{}, string])
26
+
27
+ //go:wasmimport wasmnest:pty/host-pty@0.0.1 ring-fetch
28
+ //go:noescape
29
+ func wasmimport_RingFetch(ptyId0 *uint8, ptyId1 uint32, fromOffset0 uint64, maxBytes0 uint32, result *cm.Result[OptionRingFetchResultShape, cm.Option[RingFetchResult], string])
30
+
31
+ //go:wasmimport wasmnest:pty/host-pty@0.0.1 is-running
32
+ //go:noescape
33
+ func wasmimport_IsRunning(ptyId0 *uint8, ptyId1 uint32, result *cm.Result[string, bool, string])
@@ -0,0 +1,164 @@
1
+ // Code generated by wit-bindgen-go. DO NOT EDIT.
2
+
3
+ // Package hostpty represents the imported interface "wasmnest:pty/host-pty@0.0.1".
4
+ //
5
+ // ======================================================================
6
+ // 插件私有伪终端(host-pty,v16):裸 PTY 引擎原语,零业务语义(ADR 0022)
7
+ //
8
+ // **与宿主业务会话线的边界(终态,v27 + v28 后)**:本接口是**宿主侧唯一的 PTY 出口**,
9
+ // 而业务会话本身就是一个本接口的句柄(会话 id 由插件自产,登记 / 状态机 / 输入输出编排
10
+ // 全在 `com.wasmnest.bedcode` 私有域)。宿主**不再持有任何会话对象**:内核会话目录
11
+ // `src-tauri/src/session/` 整目录删除,`host-session` 与 `host-terminal` 两个 interface
12
+ // 随 v27 退役,PTY 引擎只有本接口这一张注册表(无 SessionManager、无业务输出总线、
13
+ // 引擎不注入 `WASMNEST_SESSION_ID`)。**v28 起宿主也不再直读任何插件 PTY 的输出环**
14
+ // (`hostBroadcastSessionId` 只读订阅声明已删除,详见下方版本说明)——输出只经属主
15
+ // 插件的 `ring-fetch` 游标拉取。
16
+ //
17
+ // 约定与红线:
18
+ // - **属主隔离**:句柄 `pty-<uuid>` 仅创建者插件可调,他人 → `not owner of pty handle`;
19
+ // 插件停用时宿主回收其全部 PTY(kill + 摘注册表 + 补发 `pty:exit`)
20
+ // - **输出纯拉取**(无 push 回调):宿主为每个 PTY 维护有界环形缓冲,插件按
21
+ // 自己的节奏以游标拉取;慢插件只损失自己的历史(淘汰最旧 + `truncated`),
22
+ // 背压绝不回传到 PTY 读取端
23
+ // - **环的消费者只有属主插件一个**:曾允许 `spawn` 声明 `hostBroadcastSessionId`
24
+ // 把本句柄挂进宿主侧的「会话 id → pty 句柄」只读映射、供宿主 server 直读同进程
25
+ // `PtyRing`。该字段与宿主直读路径均已删除(PTY 引擎不再知道 session id),
26
+ // 输出只能经本接口 `ring-fetch` 拉取
27
+ // - **并发拉取**:游标由调用方自持、拉取本身是纯读(不消费、不推进全局状态);
28
+ // 淘汰由**产出量**驱动(环满即淘汰最旧),读取不释放空间,慢消费者落后于
29
+ // 驻留起点即 `truncated`(环容量需覆盖最慢消费者的滞后)
30
+ // - **生命周期事件**:仅 `<owner>::pty:exit` 一条(host-bus 订阅,属主私有命名空间,
31
+ // 跨属主订阅被宿主拒绝)。payload `{ ptyId, reason, exitCode? }`(camelCase),
32
+ // `reason = "stopped" | "killed" | "error"`。**须在 activate 期订阅**:宿主不缓冲、
33
+ // 不重放,晚订阅期间的丢失靠 `is-running` 快照自愈。事件发出即摘除注册表与环,
34
+ // 插件应先消费完输出(`ring-fetch` 的 `next-offset` 不再前进)再等退出事件
35
+ // - **明确不做**(业务语义归插件层):shell 包装(bash -lic / PowerShell -Command /
36
+ // CMD /K)、WSL 路径转换、危险字符校验、默认 shell 探测、特殊键 API、close/reopen
37
+ //
38
+ // 权限两域(可独立授予/审计):`pty:spawn`(spawn / kill——任意命令执行的高风险面)、
39
+ // `pty:io`(write / resize / ring-fetch / is-running——数据面)。
40
+ package hostpty
41
+
42
+ import (
43
+ "go.bytecodealliance.org/cm"
44
+ )
45
+
46
+ // RingFetchResult represents the record "wasmnest:pty/host-pty@0.0.1#ring-fetch-result".
47
+ //
48
+ // 一次拉取的返回(游标语义见 `ring-fetch`)
49
+ //
50
+ // record ring-fetch-result {
51
+ // data: list<u8>,
52
+ // next-offset: u64,
53
+ // truncated: bool,
54
+ // }
55
+ type RingFetchResult struct {
56
+ _ cm.HostLayout `json:"-"`
57
+ // `[实际起点, next-offset)` 区间的原始字节(未解码,可能是非 UTF-8)
58
+ Data cm.List[uint8] `json:"data"`
59
+
60
+ // 下一次拉取应传的游标
61
+ NextOffset uint64 `json:"next-offset"`
62
+
63
+ // `from-offset` 落后于环驻留起点(中间字节已被淘汰)→ 调用方按 resync 重建上下文
64
+ Truncated bool `json:"truncated"`
65
+ }
66
+
67
+ // Spawn represents the imported function "spawn".
68
+ //
69
+ // 创建裸 PTY:成功返回句柄 `pty-<uuid>` 并登记属主;失败只回错误且
70
+ // **不发布任何事件**(无句柄可寻址)。
71
+ // config-json(camelCase,纯引擎参数,宿主不做 shell 解析):
72
+ // `{ command, args?, env?, workingDir?, cols?, rows?, ringBytes? }`
73
+ // (参数数组 exec 天然免注入;`env` 为追加进继承环境的键值;尺寸缺省取宿主终端配置
74
+ // `terminal.default_cols` / `default_rows`,与业务线同源;`ringBytes` 是本条 PTY
75
+ // 的输出环容量,缺省取宿主默认,超宿主上限或超出每插件在册条数上限一律 `Err`
76
+ // ——配额类失败可见,不静默降级也不静默淘汰既有句柄)。
77
+ //
78
+ // spawn: func(config-json: string) -> result<string, string>
79
+ //
80
+ //go:nosplit
81
+ func Spawn(configJSON string) (result cm.Result[string, string, string]) {
82
+ configJson0, configJson1 := cm.LowerString(configJSON)
83
+ wasmimport_Spawn((*uint8)(configJson0), (uint32)(configJson1), &result)
84
+ return
85
+ }
86
+
87
+ // Write represents the imported function "write".
88
+ //
89
+ // 写入输入字节(分块语义宿主内建;超单次上限 → Err)
90
+ //
91
+ // write: func(pty-id: string, data: list<u8>) -> result<_, string>
92
+ //
93
+ //go:nosplit
94
+ func Write(ptyID string, data cm.List[uint8]) (result cm.Result[string, struct{}, string]) {
95
+ ptyId0, ptyId1 := cm.LowerString(ptyID)
96
+ data0, data1 := cm.LowerList(data)
97
+ wasmimport_Write((*uint8)(ptyId0), (uint32)(ptyId1), (*uint8)(data0), (uint32)(data1), &result)
98
+ return
99
+ }
100
+
101
+ // Resize represents the imported function "resize".
102
+ //
103
+ // 调整终端尺寸(TUI 程序全屏刷新依赖)
104
+ //
105
+ // resize: func(pty-id: string, cols: u16, rows: u16) -> result<_, string>
106
+ //
107
+ //go:nosplit
108
+ func Resize(ptyID string, cols uint16, rows uint16) (result cm.Result[string, struct{}, string]) {
109
+ ptyId0, ptyId1 := cm.LowerString(ptyID)
110
+ cols0 := (uint32)(cols)
111
+ rows0 := (uint32)(rows)
112
+ wasmimport_Resize((*uint8)(ptyId0), (uint32)(ptyId1), (uint32)(cols0), (uint32)(rows0), &result)
113
+ return
114
+ }
115
+
116
+ // Kill represents the imported function "kill".
117
+ //
118
+ // 终止并销毁(优雅 Ctrl-C → 兜底强杀);随后发布 `<owner>::pty:exit`(reason=killed)
119
+ //
120
+ // kill: func(pty-id: string) -> result<_, string>
121
+ //
122
+ //go:nosplit
123
+ func Kill(ptyID string) (result cm.Result[string, struct{}, string]) {
124
+ ptyId0, ptyId1 := cm.LowerString(ptyID)
125
+ wasmimport_Kill((*uint8)(ptyId0), (uint32)(ptyId1), &result)
126
+ return
127
+ }
128
+
129
+ // RingFetch represents the imported function "ring-fetch".
130
+ //
131
+ // 按游标拉取输出历史
132
+ // - `Ok(None)`:游标已追平产出端,无新字节
133
+ // - `Ok(Some)`:自游标起的字节(单次不超 `max-bytes`),`next-offset` 续拉不重复
134
+ // - `truncated = true`:`from-offset` 落后于环驻留起点,返回的是现存最早段
135
+ // - `Err`:句柄不存在 / 非属主 / 权限缺失
136
+ //
137
+ // **并发拉取**:游标由调用方自持、互不干扰(`from-offset` 只描述本次拉取的窗口,
138
+ // 拉取不消费不改变全局偏移);淘汰按产出量全局计,任一读取都不为他人保留历史,
139
+ // 落后于驻留起点即 `truncated`。(消费者只有属主插件自己。)
140
+ //
141
+ // ring-fetch: func(pty-id: string, from-offset: u64, max-bytes: u32) -> result<option<ring-fetch-result>,
142
+ // string>
143
+ //
144
+ //go:nosplit
145
+ func RingFetch(ptyID string, fromOffset uint64, maxBytes uint32) (result cm.Result[OptionRingFetchResultShape, cm.Option[RingFetchResult], string]) {
146
+ ptyId0, ptyId1 := cm.LowerString(ptyID)
147
+ fromOffset0 := (uint64)(fromOffset)
148
+ maxBytes0 := (uint32)(maxBytes)
149
+ wasmimport_RingFetch((*uint8)(ptyId0), (uint32)(ptyId1), (uint64)(fromOffset0), (uint32)(maxBytes0), &result)
150
+ return
151
+ }
152
+
153
+ // IsRunning represents the imported function "is-running".
154
+ //
155
+ // 进程是否仍在运行(丢失 `pty:exit` 事件后的自愈快照查询)
156
+ //
157
+ // is-running: func(pty-id: string) -> result<bool, string>
158
+ //
159
+ //go:nosplit
160
+ func IsRunning(ptyID string) (result cm.Result[string, bool, string]) {
161
+ ptyId0, ptyId1 := cm.LowerString(ptyID)
162
+ wasmimport_IsRunning((*uint8)(ptyId0), (uint32)(ptyId1), &result)
163
+ return
164
+ }
@@ -0,0 +1,14 @@
1
+ // Code generated by wit-bindgen-go. DO NOT EDIT.
2
+
3
+ package hosttask
4
+
5
+ import (
6
+ "go.bytecodealliance.org/cm"
7
+ "unsafe"
8
+ )
9
+
10
+ // OptionStringShape is used for storage in variant or result types.
11
+ type OptionStringShape struct {
12
+ _ cm.HostLayout
13
+ shape [unsafe.Sizeof(cm.Option[string]{})]byte
14
+ }
@@ -0,0 +1,3 @@
1
+ // This file exists for testing this package without WebAssembly,
2
+ // allowing empty function bodies with a //go:wasmimport directive.
3
+ // See https://pkg.go.dev/cmd/compile for more information.
@@ -0,0 +1,29 @@
1
+ // Code generated by wit-bindgen-go. DO NOT EDIT.
2
+
3
+ package hosttask
4
+
5
+ import (
6
+ "go.bytecodealliance.org/cm"
7
+ )
8
+
9
+ // This file contains wasmimport and wasmexport declarations for "wasmnest:task@0.0.1".
10
+
11
+ //go:wasmimport wasmnest:task/host-task@0.0.1 execute-batch
12
+ //go:noescape
13
+ func wasmimport_ExecuteBatch(planJson0 *uint8, planJson1 uint32, result *cm.Result[string, string, string])
14
+
15
+ //go:wasmimport wasmnest:task/host-task@0.0.1 submit
16
+ //go:noescape
17
+ func wasmimport_Submit(planJson0 *uint8, planJson1 uint32, result *cm.Result[string, string, string])
18
+
19
+ //go:wasmimport wasmnest:task/host-task@0.0.1 status
20
+ //go:noescape
21
+ func wasmimport_Status(jobId0 *uint8, jobId1 uint32, result *cm.Result[OptionStringShape, cm.Option[string], string])
22
+
23
+ //go:wasmimport wasmnest:task/host-task@0.0.1 cancel
24
+ //go:noescape
25
+ func wasmimport_Cancel(jobId0 *uint8, jobId1 uint32, result *cm.Result[string, bool, string])
26
+
27
+ //go:wasmimport wasmnest:task/host-task@0.0.1 list-jobs
28
+ //go:noescape
29
+ func wasmimport_ListJobs(result *cm.Result[string, string, string])