@markii/lua 0.17.0-next.4 → 0.17.0-next.6
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.
- package/dist/index.d.ts +7 -12
- package/dist/index.js +10 -7
- package/dist/internal.d.ts +2 -0
- package/dist/internal.js +4 -0
- package/package.json +8 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
export type { ScriptFailure, ScriptLimitKind, ScriptMarshalReason, } from './errors.js';
|
|
2
2
|
export { CAPABILITY_ERROR_TAG, FETCH_DECODE_ERROR_TAG, MARSHAL_ERROR_TAG, ScriptLimitError, } from './errors.js';
|
|
3
3
|
export type { CreateEmptyLuaEngineOptions } from './globals.js';
|
|
4
|
-
export {
|
|
5
|
-
export type {
|
|
6
|
-
export { DEFAULT_LIMITS
|
|
7
|
-
export type { CacheEntry, CacheProvider,
|
|
8
|
-
export { DEFAULT_MAX_FETCH_BYTES,
|
|
9
|
-
export type { DocConfig } from './doc.js';
|
|
10
|
-
export { buildDoc } from './doc.js';
|
|
11
|
-
export type { JsonTableConfig } from './json-table.js';
|
|
12
|
-
export { buildJsonTable } from './json-table.js';
|
|
4
|
+
export { MISSING_WASM_URI_MESSAGE, MissingWasmUriError, createEmptyLuaEngine, } from './globals.js';
|
|
5
|
+
export type { ScriptLimits } from './limits.js';
|
|
6
|
+
export { DEFAULT_LIMITS } from './limits.js';
|
|
7
|
+
export type { CacheEntry, CacheProvider, CapabilityTier, NetGrants, NetProvider, NetResponse, } from './capabilities.js';
|
|
8
|
+
export { DEFAULT_MAX_FETCH_BYTES, isNetProviderDenial, netProviderDenial, } from './capabilities.js';
|
|
13
9
|
export type { MarshalLimits } from './marshal.js';
|
|
14
|
-
export { DEFAULT_MARSHAL_LIMITS
|
|
15
|
-
export type { PackModuleResolver
|
|
16
|
-
export { buildRequire } from './require.js';
|
|
10
|
+
export { DEFAULT_MARSHAL_LIMITS } from './marshal.js';
|
|
11
|
+
export type { PackModuleResolver } from './require.js';
|
|
17
12
|
export type { RunScriptOptions, RunScriptResult } from './sandbox.js';
|
|
18
13
|
export { runScript } from './sandbox.js';
|
|
19
14
|
export type { LuaExecutorConfig } from './executor.js';
|
package/dist/index.js
CHANGED
|
@@ -3,13 +3,16 @@
|
|
|
3
3
|
// filesystem). No React, no @markii/core, no @markii/react — see AGENTS.md's
|
|
4
4
|
// import rule and the ESLint guard in the root config. May depend on
|
|
5
5
|
// @markii/bundle for the `ScriptView` capability type only.
|
|
6
|
+
//
|
|
7
|
+
// This entry is the package's semver promise. The sandbox's assembly parts
|
|
8
|
+
// (the capability, document, require, marshalling and limit builders and the
|
|
9
|
+
// global lists) stay inside the package, so hardening the sandbox never
|
|
10
|
+
// changes a public name. `@markii/lua/internal` carries the one assembly
|
|
11
|
+
// part another workspace here builds on, with no semver promise.
|
|
6
12
|
export { CAPABILITY_ERROR_TAG, FETCH_DECODE_ERROR_TAG, MARSHAL_ERROR_TAG, ScriptLimitError, } from './errors.js';
|
|
7
|
-
export {
|
|
8
|
-
export { DEFAULT_LIMITS
|
|
9
|
-
export { DEFAULT_MAX_FETCH_BYTES,
|
|
10
|
-
export {
|
|
11
|
-
export { buildJsonTable } from './json-table.js';
|
|
12
|
-
export { DEFAULT_MARSHAL_LIMITS, buildMarshalPrelude, checkJsonWithinLimits, finalizeMarshaledValue, wrapUserCode, } from './marshal.js';
|
|
13
|
-
export { buildRequire } from './require.js';
|
|
13
|
+
export { MISSING_WASM_URI_MESSAGE, MissingWasmUriError, createEmptyLuaEngine, } from './globals.js';
|
|
14
|
+
export { DEFAULT_LIMITS } from './limits.js';
|
|
15
|
+
export { DEFAULT_MAX_FETCH_BYTES, isNetProviderDenial, netProviderDenial, } from './capabilities.js';
|
|
16
|
+
export { DEFAULT_MARSHAL_LIMITS } from './marshal.js';
|
|
14
17
|
export { runScript } from './sandbox.js';
|
|
15
18
|
export { createLuaExecutor } from './executor.js';
|
package/dist/internal.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// @markii/lua/internal: the sandbox assembly parts another workspace in this
|
|
2
|
+
// repository builds on. It carries NO semver promise: a name here can change
|
|
3
|
+
// or disappear in any release. An outside consumer should use the main entry.
|
|
4
|
+
export { buildRequire } from './require.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markii/lua",
|
|
3
|
-
"version": "0.17.0-next.
|
|
3
|
+
"version": "0.17.0-next.6",
|
|
4
4
|
"description": "Sandboxed Lua 5.4 (wasmoon) execution runtime for Mark's document scripting: an empty-env global whitelist, two-tier capability-gated net/cache/bundle access, instruction-count/wall-clock/memory limits, and depth/size-capped Lua<->JS marshaling.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"markdown",
|
|
@@ -29,6 +29,11 @@
|
|
|
29
29
|
"types": "./dist/index.d.ts",
|
|
30
30
|
"import": "./dist/index.js",
|
|
31
31
|
"default": "./dist/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./internal": {
|
|
34
|
+
"types": "./dist/internal.d.ts",
|
|
35
|
+
"import": "./dist/internal.js",
|
|
36
|
+
"default": "./dist/internal.js"
|
|
32
37
|
}
|
|
33
38
|
},
|
|
34
39
|
"files": [
|
|
@@ -44,8 +49,8 @@
|
|
|
44
49
|
"lint": "eslint ."
|
|
45
50
|
},
|
|
46
51
|
"dependencies": {
|
|
47
|
-
"@markii/bundle": "^0.17.0-next.
|
|
48
|
-
"@markii/runtime": "^0.17.0-next.
|
|
52
|
+
"@markii/bundle": "^0.17.0-next.6",
|
|
53
|
+
"@markii/runtime": "^0.17.0-next.6",
|
|
49
54
|
"wasmoon": "^1.16.0"
|
|
50
55
|
}
|
|
51
56
|
}
|