@ny4n/codemode 0.0.0-stage → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +324 -2
  3. package/dist/cloudflare.d.ts +53 -0
  4. package/dist/cloudflare.d.ts.map +1 -0
  5. package/dist/cloudflare.js +64 -0
  6. package/dist/cloudflare.js.map +1 -0
  7. package/dist/declarations.d.ts +58 -0
  8. package/dist/declarations.d.ts.map +1 -0
  9. package/dist/declarations.js +334 -0
  10. package/dist/declarations.js.map +1 -0
  11. package/dist/identifier.d.ts +6 -0
  12. package/dist/identifier.d.ts.map +1 -0
  13. package/dist/identifier.js +13 -0
  14. package/dist/identifier.js.map +1 -0
  15. package/dist/index.d.ts +11 -0
  16. package/dist/index.d.ts.map +1 -0
  17. package/dist/index.js +10 -0
  18. package/dist/index.js.map +1 -0
  19. package/dist/portable.d.ts +15 -0
  20. package/dist/portable.d.ts.map +1 -0
  21. package/dist/portable.js +12 -0
  22. package/dist/portable.js.map +1 -0
  23. package/dist/runtime/execution.d.ts +54 -0
  24. package/dist/runtime/execution.d.ts.map +1 -0
  25. package/dist/runtime/execution.js +371 -0
  26. package/dist/runtime/execution.js.map +1 -0
  27. package/dist/runtime/host.d.ts +13 -0
  28. package/dist/runtime/host.d.ts.map +1 -0
  29. package/dist/runtime/host.js +72 -0
  30. package/dist/runtime/host.js.map +1 -0
  31. package/dist/runtime/inline.d.ts +63 -0
  32. package/dist/runtime/inline.d.ts.map +1 -0
  33. package/dist/runtime/inline.js +79 -0
  34. package/dist/runtime/inline.js.map +1 -0
  35. package/dist/runtime/prelude-source.d.ts +43 -0
  36. package/dist/runtime/prelude-source.d.ts.map +1 -0
  37. package/dist/runtime/prelude-source.js +510 -0
  38. package/dist/runtime/prelude-source.js.map +1 -0
  39. package/dist/runtime/protocol.d.ts +75 -0
  40. package/dist/runtime/protocol.d.ts.map +1 -0
  41. package/dist/runtime/protocol.js +10 -0
  42. package/dist/runtime/protocol.js.map +1 -0
  43. package/dist/runtime/remote.d.ts +102 -0
  44. package/dist/runtime/remote.d.ts.map +1 -0
  45. package/dist/runtime/remote.js +170 -0
  46. package/dist/runtime/remote.js.map +1 -0
  47. package/dist/runtime/vm.d.ts +22 -0
  48. package/dist/runtime/vm.d.ts.map +1 -0
  49. package/dist/runtime/vm.js +171 -0
  50. package/dist/runtime/vm.js.map +1 -0
  51. package/dist/runtime/worker.d.ts +2 -0
  52. package/dist/runtime/worker.d.ts.map +1 -0
  53. package/dist/runtime/worker.js +38 -0
  54. package/dist/runtime/worker.js.map +1 -0
  55. package/dist/source.d.ts +35 -0
  56. package/dist/source.d.ts.map +1 -0
  57. package/dist/source.js +92 -0
  58. package/dist/source.js.map +1 -0
  59. package/dist/types.d.ts +148 -0
  60. package/dist/types.d.ts.map +1 -0
  61. package/dist/types.js +2 -0
  62. package/dist/types.js.map +1 -0
  63. package/dist/wasm.d.ts +12 -0
  64. package/dist/wasm.d.ts.map +1 -0
  65. package/dist/wasm.js +24 -0
  66. package/dist/wasm.js.map +1 -0
  67. package/package.json +75 -5
package/package.json CHANGED
@@ -1,6 +1,76 @@
1
1
  {
2
- "name": "@ny4n/codemode",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
2
+ "name": "@ny4n/codemode",
3
+ "version": "1.0.1",
4
+ "description": "Sandboxed JavaScript execution where the only capability is calling injected tools",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "source": "./src/index.ts",
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ },
14
+ "./declarations": {
15
+ "source": "./src/declarations.ts",
16
+ "types": "./dist/declarations.d.ts",
17
+ "import": "./dist/declarations.js"
18
+ },
19
+ "./source": {
20
+ "source": "./src/source.ts",
21
+ "types": "./dist/source.d.ts",
22
+ "import": "./dist/source.js"
23
+ },
24
+ "./portable": {
25
+ "source": "./src/portable.ts",
26
+ "types": "./dist/portable.d.ts",
27
+ "import": "./dist/portable.js"
28
+ },
29
+ "./cloudflare": {
30
+ "source": "./src/cloudflare.ts",
31
+ "types": "./dist/cloudflare.d.ts",
32
+ "import": "./dist/cloudflare.js"
33
+ },
34
+ "./worker": {
35
+ "source": "./src/runtime/worker.ts",
36
+ "types": "./dist/runtime/worker.d.ts",
37
+ "import": "./dist/runtime/worker.js"
38
+ }
39
+ },
40
+ "files": [
41
+ "dist",
42
+ "README.md"
43
+ ],
44
+ "scripts": {
45
+ "clean": "shx rm -rf dist",
46
+ "build": "tsc -p tsconfig.build.json",
47
+ "test": "vitest --run",
48
+ "prepublishOnly": "npm run clean && npm run build"
49
+ },
50
+ "keywords": [
51
+ "nyan",
52
+ "codemode",
53
+ "sandbox",
54
+ "quickjs",
55
+ "wasm",
56
+ "cloudflare",
57
+ "durable-objects"
58
+ ],
59
+ "author": "Nyan",
60
+ "license": "MIT",
61
+ "repository": {
62
+ "type": "git",
63
+ "url": "git+https://github.com/blxzer77/nyan.git",
64
+ "directory": "packages/codemode"
65
+ },
66
+ "engines": {
67
+ "node": ">=22.19.0"
68
+ },
69
+ "dependencies": {
70
+ "quickjs-wasi": "3.6.2"
71
+ },
72
+ "devDependencies": {
73
+ "shx": "0.3.4",
74
+ "vitest": "4.1.11"
75
+ }
76
+ }