@nextclaw/app-runtime 0.14.1 → 0.15.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 (28) hide show
  1. package/dist/index.d.ts +3 -2
  2. package/dist/index.js +2 -1
  3. package/dist/package.js +1 -1
  4. package/dist/services/app-build.service.d.ts +1 -0
  5. package/dist/services/app-build.service.d.ts.map +1 -1
  6. package/dist/services/app-build.service.js +37 -2
  7. package/dist/services/app-build.service.js.map +1 -1
  8. package/dist/services/app-runtime-cli.service.js +1 -1
  9. package/dist/services/app-runtime-cli.service.js.map +1 -1
  10. package/dist/services/app-runtime-options.service.d.ts.map +1 -1
  11. package/dist/services/app-runtime-options.service.js +2 -2
  12. package/dist/services/app-runtime-options.service.js.map +1 -1
  13. package/dist/services/app-runtime-toolchain.service.d.ts +5 -2
  14. package/dist/services/app-runtime-toolchain.service.d.ts.map +1 -1
  15. package/dist/services/app-runtime-toolchain.service.js +36 -4
  16. package/dist/services/app-runtime-toolchain.service.js.map +1 -1
  17. package/dist/services/app-rust-wasi-scaffold-template.service.d.ts +24 -0
  18. package/dist/services/app-rust-wasi-scaffold-template.service.d.ts.map +1 -0
  19. package/dist/services/app-rust-wasi-scaffold-template.service.js +357 -0
  20. package/dist/services/app-rust-wasi-scaffold-template.service.js.map +1 -0
  21. package/dist/services/app-scaffold.service.d.ts +4 -2
  22. package/dist/services/app-scaffold.service.d.ts.map +1 -1
  23. package/dist/services/app-scaffold.service.js +20 -4
  24. package/dist/services/app-scaffold.service.js.map +1 -1
  25. package/dist/services/platform-auth-state.service.js +1 -1
  26. package/package.json +2 -1
  27. package/resources/rust-wasi/Cargo.lock +454 -0
  28. package/resources/wit/portable-service.wit +47 -0
@@ -0,0 +1,454 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "anyhow"
7
+ version = "1.0.104"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470"
10
+
11
+ [[package]]
12
+ name = "bitflags"
13
+ version = "2.13.1"
14
+ source = "registry+https://github.com/rust-lang/crates.io-index"
15
+ checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da"
16
+
17
+ [[package]]
18
+ name = "equivalent"
19
+ version = "1.0.2"
20
+ source = "registry+https://github.com/rust-lang/crates.io-index"
21
+ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
22
+
23
+ [[package]]
24
+ name = "foldhash"
25
+ version = "0.1.5"
26
+ source = "registry+https://github.com/rust-lang/crates.io-index"
27
+ checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
28
+
29
+ [[package]]
30
+ name = "futures"
31
+ version = "0.3.34"
32
+ source = "registry+https://github.com/rust-lang/crates.io-index"
33
+ checksum = "9a31d2a3fbaaeb2af2368bbdd904aa8e812d3c04a1ee10d3171f52d556e5d0a3"
34
+ dependencies = [
35
+ "futures-channel",
36
+ "futures-core",
37
+ "futures-executor",
38
+ "futures-io",
39
+ "futures-sink",
40
+ "futures-task",
41
+ "futures-util",
42
+ ]
43
+
44
+ [[package]]
45
+ name = "futures-channel"
46
+ version = "0.3.34"
47
+ source = "registry+https://github.com/rust-lang/crates.io-index"
48
+ checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4"
49
+ dependencies = [
50
+ "futures-core",
51
+ "futures-sink",
52
+ ]
53
+
54
+ [[package]]
55
+ name = "futures-core"
56
+ version = "0.3.34"
57
+ source = "registry+https://github.com/rust-lang/crates.io-index"
58
+ checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e"
59
+
60
+ [[package]]
61
+ name = "futures-executor"
62
+ version = "0.3.34"
63
+ source = "registry+https://github.com/rust-lang/crates.io-index"
64
+ checksum = "031b47cf1a3c6cc8bc2fc76cd437f521619387907d469316e7c0bc278f1f5432"
65
+ dependencies = [
66
+ "futures-core",
67
+ "futures-task",
68
+ "futures-util",
69
+ ]
70
+
71
+ [[package]]
72
+ name = "futures-io"
73
+ version = "0.3.34"
74
+ source = "registry+https://github.com/rust-lang/crates.io-index"
75
+ checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed"
76
+
77
+ [[package]]
78
+ name = "futures-macro"
79
+ version = "0.3.34"
80
+ source = "registry+https://github.com/rust-lang/crates.io-index"
81
+ checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44"
82
+ dependencies = [
83
+ "proc-macro2",
84
+ "quote",
85
+ "syn 3.0.4",
86
+ ]
87
+
88
+ [[package]]
89
+ name = "futures-sink"
90
+ version = "0.3.34"
91
+ source = "registry+https://github.com/rust-lang/crates.io-index"
92
+ checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d"
93
+
94
+ [[package]]
95
+ name = "futures-task"
96
+ version = "0.3.34"
97
+ source = "registry+https://github.com/rust-lang/crates.io-index"
98
+ checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd"
99
+
100
+ [[package]]
101
+ name = "futures-util"
102
+ version = "0.3.34"
103
+ source = "registry+https://github.com/rust-lang/crates.io-index"
104
+ checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc"
105
+ dependencies = [
106
+ "futures-channel",
107
+ "futures-core",
108
+ "futures-io",
109
+ "futures-macro",
110
+ "futures-sink",
111
+ "futures-task",
112
+ "memchr",
113
+ "pin-project-lite",
114
+ "slab",
115
+ ]
116
+
117
+ [[package]]
118
+ name = "hashbrown"
119
+ version = "0.15.5"
120
+ source = "registry+https://github.com/rust-lang/crates.io-index"
121
+ checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
122
+ dependencies = [
123
+ "foldhash",
124
+ ]
125
+
126
+ [[package]]
127
+ name = "hashbrown"
128
+ version = "0.17.1"
129
+ source = "registry+https://github.com/rust-lang/crates.io-index"
130
+ checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
131
+
132
+ [[package]]
133
+ name = "heck"
134
+ version = "0.5.0"
135
+ source = "registry+https://github.com/rust-lang/crates.io-index"
136
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
137
+
138
+ [[package]]
139
+ name = "id-arena"
140
+ version = "2.3.0"
141
+ source = "registry+https://github.com/rust-lang/crates.io-index"
142
+ checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954"
143
+
144
+ [[package]]
145
+ name = "indexmap"
146
+ version = "2.14.1"
147
+ source = "registry+https://github.com/rust-lang/crates.io-index"
148
+ checksum = "07aa2048142242915a31d35844fb311e0e53fcca590c3a0a40dcf1b841fa09eb"
149
+ dependencies = [
150
+ "equivalent",
151
+ "hashbrown 0.17.1",
152
+ "serde",
153
+ "serde_core",
154
+ ]
155
+
156
+ [[package]]
157
+ name = "itoa"
158
+ version = "1.0.18"
159
+ source = "registry+https://github.com/rust-lang/crates.io-index"
160
+ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
161
+
162
+ [[package]]
163
+ name = "leb128fmt"
164
+ version = "0.1.0"
165
+ source = "registry+https://github.com/rust-lang/crates.io-index"
166
+ checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2"
167
+
168
+ [[package]]
169
+ name = "log"
170
+ version = "0.4.34"
171
+ source = "registry+https://github.com/rust-lang/crates.io-index"
172
+ checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"
173
+
174
+ [[package]]
175
+ name = "memchr"
176
+ version = "2.8.3"
177
+ source = "registry+https://github.com/rust-lang/crates.io-index"
178
+ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
179
+
180
+ [[package]]
181
+ name = "nextclaw-rust-wasi-guest"
182
+ version = "0.1.0"
183
+ dependencies = [
184
+ "serde_json",
185
+ "wit-bindgen",
186
+ ]
187
+
188
+ [[package]]
189
+ name = "once_cell"
190
+ version = "1.21.4"
191
+ source = "registry+https://github.com/rust-lang/crates.io-index"
192
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
193
+
194
+ [[package]]
195
+ name = "pin-project-lite"
196
+ version = "0.2.17"
197
+ source = "registry+https://github.com/rust-lang/crates.io-index"
198
+ checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
199
+
200
+ [[package]]
201
+ name = "prettyplease"
202
+ version = "0.2.37"
203
+ source = "registry+https://github.com/rust-lang/crates.io-index"
204
+ checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b"
205
+ dependencies = [
206
+ "proc-macro2",
207
+ "syn 2.0.119",
208
+ ]
209
+
210
+ [[package]]
211
+ name = "proc-macro2"
212
+ version = "1.0.107"
213
+ source = "registry+https://github.com/rust-lang/crates.io-index"
214
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
215
+ dependencies = [
216
+ "unicode-ident",
217
+ ]
218
+
219
+ [[package]]
220
+ name = "quote"
221
+ version = "1.0.47"
222
+ source = "registry+https://github.com/rust-lang/crates.io-index"
223
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
224
+ dependencies = [
225
+ "proc-macro2",
226
+ ]
227
+
228
+ [[package]]
229
+ name = "semver"
230
+ version = "1.0.28"
231
+ source = "registry+https://github.com/rust-lang/crates.io-index"
232
+ checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
233
+
234
+ [[package]]
235
+ name = "serde"
236
+ version = "1.0.229"
237
+ source = "registry+https://github.com/rust-lang/crates.io-index"
238
+ checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
239
+ dependencies = [
240
+ "serde_core",
241
+ ]
242
+
243
+ [[package]]
244
+ name = "serde_core"
245
+ version = "1.0.229"
246
+ source = "registry+https://github.com/rust-lang/crates.io-index"
247
+ checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
248
+ dependencies = [
249
+ "serde_derive",
250
+ ]
251
+
252
+ [[package]]
253
+ name = "serde_derive"
254
+ version = "1.0.229"
255
+ source = "registry+https://github.com/rust-lang/crates.io-index"
256
+ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
257
+ dependencies = [
258
+ "proc-macro2",
259
+ "quote",
260
+ "syn 3.0.4",
261
+ ]
262
+
263
+ [[package]]
264
+ name = "serde_json"
265
+ version = "1.0.151"
266
+ source = "registry+https://github.com/rust-lang/crates.io-index"
267
+ checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
268
+ dependencies = [
269
+ "itoa",
270
+ "memchr",
271
+ "serde",
272
+ "serde_core",
273
+ "zmij",
274
+ ]
275
+
276
+ [[package]]
277
+ name = "slab"
278
+ version = "0.4.12"
279
+ source = "registry+https://github.com/rust-lang/crates.io-index"
280
+ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
281
+
282
+ [[package]]
283
+ name = "syn"
284
+ version = "2.0.119"
285
+ source = "registry+https://github.com/rust-lang/crates.io-index"
286
+ checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
287
+ dependencies = [
288
+ "proc-macro2",
289
+ "quote",
290
+ "unicode-ident",
291
+ ]
292
+
293
+ [[package]]
294
+ name = "syn"
295
+ version = "3.0.4"
296
+ source = "registry+https://github.com/rust-lang/crates.io-index"
297
+ checksum = "e6275cddf4610d1775e6d1fe9469b2e77d0f39fd98fb7450901b821e0c53649f"
298
+ dependencies = [
299
+ "proc-macro2",
300
+ "quote",
301
+ "unicode-ident",
302
+ ]
303
+
304
+ [[package]]
305
+ name = "unicode-ident"
306
+ version = "1.0.24"
307
+ source = "registry+https://github.com/rust-lang/crates.io-index"
308
+ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
309
+
310
+ [[package]]
311
+ name = "unicode-xid"
312
+ version = "0.2.6"
313
+ source = "registry+https://github.com/rust-lang/crates.io-index"
314
+ checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
315
+
316
+ [[package]]
317
+ name = "wasm-encoder"
318
+ version = "0.236.1"
319
+ source = "registry+https://github.com/rust-lang/crates.io-index"
320
+ checksum = "724fccfd4f3c24b7e589d333fc0429c68042897a7e8a5f8694f31792471841e7"
321
+ dependencies = [
322
+ "leb128fmt",
323
+ "wasmparser",
324
+ ]
325
+
326
+ [[package]]
327
+ name = "wasm-metadata"
328
+ version = "0.236.1"
329
+ source = "registry+https://github.com/rust-lang/crates.io-index"
330
+ checksum = "c909f94a49a8de3365f3c0344f064818f1e369ff1740c5b04f455f85d454768e"
331
+ dependencies = [
332
+ "anyhow",
333
+ "indexmap",
334
+ "wasm-encoder",
335
+ "wasmparser",
336
+ ]
337
+
338
+ [[package]]
339
+ name = "wasmparser"
340
+ version = "0.236.1"
341
+ source = "registry+https://github.com/rust-lang/crates.io-index"
342
+ checksum = "a9b1e81f3eb254cf7404a82cee6926a4a3ccc5aad80cc3d43608a070c67aa1d7"
343
+ dependencies = [
344
+ "bitflags",
345
+ "hashbrown 0.15.5",
346
+ "indexmap",
347
+ "semver",
348
+ ]
349
+
350
+ [[package]]
351
+ name = "wit-bindgen"
352
+ version = "0.44.0"
353
+ source = "registry+https://github.com/rust-lang/crates.io-index"
354
+ checksum = "04bd9ed271234163b18c92783b0d406f08ca32c232e972f207a68c7b324c44bf"
355
+ dependencies = [
356
+ "wit-bindgen-rt",
357
+ "wit-bindgen-rust-macro",
358
+ ]
359
+
360
+ [[package]]
361
+ name = "wit-bindgen-core"
362
+ version = "0.44.0"
363
+ source = "registry+https://github.com/rust-lang/crates.io-index"
364
+ checksum = "b4103c7a3e178b75cd8b0b574fa199ed015e8399c9859b003865cc28834b474b"
365
+ dependencies = [
366
+ "anyhow",
367
+ "heck",
368
+ "wit-parser",
369
+ ]
370
+
371
+ [[package]]
372
+ name = "wit-bindgen-rt"
373
+ version = "0.44.0"
374
+ source = "registry+https://github.com/rust-lang/crates.io-index"
375
+ checksum = "653c85dd7aee6fe6f4bded0d242406deadae9819029ce6f7d258c920c384358a"
376
+ dependencies = [
377
+ "bitflags",
378
+ "futures",
379
+ "once_cell",
380
+ ]
381
+
382
+ [[package]]
383
+ name = "wit-bindgen-rust"
384
+ version = "0.44.0"
385
+ source = "registry+https://github.com/rust-lang/crates.io-index"
386
+ checksum = "95d164b3b6fbd2b0dd8b639b1012110c0bc256519a0a6def410d4020fa8ae106"
387
+ dependencies = [
388
+ "anyhow",
389
+ "heck",
390
+ "indexmap",
391
+ "prettyplease",
392
+ "syn 2.0.119",
393
+ "wasm-metadata",
394
+ "wit-bindgen-core",
395
+ "wit-component",
396
+ ]
397
+
398
+ [[package]]
399
+ name = "wit-bindgen-rust-macro"
400
+ version = "0.44.0"
401
+ source = "registry+https://github.com/rust-lang/crates.io-index"
402
+ checksum = "2c9100a5e1ac85e526dcd4ef49c3ff7689e026fa5e56e2a2047fd377fc682e02"
403
+ dependencies = [
404
+ "anyhow",
405
+ "prettyplease",
406
+ "proc-macro2",
407
+ "quote",
408
+ "syn 2.0.119",
409
+ "wit-bindgen-core",
410
+ "wit-bindgen-rust",
411
+ ]
412
+
413
+ [[package]]
414
+ name = "wit-component"
415
+ version = "0.236.1"
416
+ source = "registry+https://github.com/rust-lang/crates.io-index"
417
+ checksum = "3622959ed7ed6341c38e5aa35af243632534b0a36226852faa802939ce11e00f"
418
+ dependencies = [
419
+ "anyhow",
420
+ "bitflags",
421
+ "indexmap",
422
+ "log",
423
+ "serde",
424
+ "serde_derive",
425
+ "serde_json",
426
+ "wasm-encoder",
427
+ "wasm-metadata",
428
+ "wasmparser",
429
+ "wit-parser",
430
+ ]
431
+
432
+ [[package]]
433
+ name = "wit-parser"
434
+ version = "0.236.1"
435
+ source = "registry+https://github.com/rust-lang/crates.io-index"
436
+ checksum = "16e4833a20cd6e85d6abfea0e63a399472d6f88c6262957c17f546879a80ba15"
437
+ dependencies = [
438
+ "anyhow",
439
+ "id-arena",
440
+ "indexmap",
441
+ "log",
442
+ "semver",
443
+ "serde",
444
+ "serde_derive",
445
+ "serde_json",
446
+ "unicode-xid",
447
+ "wasmparser",
448
+ ]
449
+
450
+ [[package]]
451
+ name = "zmij"
452
+ version = "1.0.23"
453
+ source = "registry+https://github.com/rust-lang/crates.io-index"
454
+ checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
@@ -0,0 +1,47 @@
1
+ package nextclaw:portable-service@0.1.0;
2
+
3
+ interface host {
4
+ enum log-level {
5
+ debug,
6
+ info,
7
+ warn,
8
+ error,
9
+ }
10
+
11
+ record http-response {
12
+ status: u16,
13
+ body: string,
14
+ }
15
+
16
+ record runtime-info {
17
+ runner-pid: u32,
18
+ loaded-components: u32,
19
+ component-id: string,
20
+ }
21
+
22
+ log: func(level: log-level, message: string);
23
+ kv-get: func(key: string) -> result<option<string>, string>;
24
+ kv-set: func(key: string, value: string) -> result<_, string>;
25
+ http-get: func(url: string) -> result<http-response, string>;
26
+ component-call: func(provider-id: string, action: string, input-json: string) -> result<string, string>;
27
+ get-runtime-info: func() -> runtime-info;
28
+ }
29
+
30
+ interface service {
31
+ record action {
32
+ name: string,
33
+ title: string,
34
+ description: string,
35
+ }
36
+
37
+ list-actions: func() -> list<action>;
38
+ invoke: func(action: string, input-json: string) -> result<string, string>;
39
+ start: func(config-json: string) -> result<string, string>;
40
+ handle-event: func(event-json: string) -> result<string, string>;
41
+ stop: func(reason-json: string) -> result<string, string>;
42
+ }
43
+
44
+ world service-app {
45
+ import host;
46
+ export service;
47
+ }