@firmer/mesh 0.0.5 → 0.0.7
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/cause/errors.d.ts +5 -1
- package/dist/codec/json.d.ts +2 -2
- package/dist/http/consumer.d.ts +4 -2
- package/dist/index.d.ts +13 -5
- package/dist/mesh.js +7199 -6026
- package/dist/mesh.umd.cjs +8 -8
- package/dist/mpc/hook.d.ts +11 -11
- package/dist/mpc/mesh.d.ts +4 -0
- package/dist/mpc/reference.d.ts +1 -0
- package/dist/mpc/urn.d.ts +3 -1
- package/dist/psi/devops.d.ts +32 -0
- package/dist/psi/firewall.d.ts +20 -0
- package/dist/psi/index.d.ts +3 -1
- package/dist/psi/network.d.ts +4 -0
- package/dist/psi/tokenizer.d.ts +10 -6
- package/dist/psi/vm.d.ts +28 -0
- package/dist/types/devops.d.ts +100 -0
- package/dist/types/environ.d.ts +4 -0
- package/dist/types/firewall.d.ts +98 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/oauth2.d.ts +28 -10
- package/dist/types/schema.d.ts +158 -0
- package/dist/types/script.d.ts +42 -9
- package/package.json +8 -8
- package/dist/psi/evaluator.d.ts +0 -20
package/dist/types/script.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { Mani } from './builtin';
|
|
2
|
+
export declare class Script extends Mani {
|
|
2
3
|
/**
|
|
3
4
|
* Script code
|
|
4
5
|
*/
|
|
@@ -8,19 +9,51 @@ export declare class Script {
|
|
|
8
9
|
*/
|
|
9
10
|
name: string;
|
|
10
11
|
/**
|
|
11
|
-
* Script
|
|
12
|
+
* Script kind, EXPRESSION/VALUE/SCRIPT/PROJECT. PROJECT is .tar format
|
|
12
13
|
*/
|
|
13
|
-
|
|
14
|
+
kind: string;
|
|
14
15
|
/**
|
|
15
|
-
* Script
|
|
16
|
+
* Script lang
|
|
16
17
|
*/
|
|
17
|
-
|
|
18
|
+
lang: string;
|
|
19
|
+
/**
|
|
20
|
+
* 标记 1内置
|
|
21
|
+
*/
|
|
22
|
+
flags: number;
|
|
23
|
+
/**
|
|
24
|
+
* Script author
|
|
25
|
+
*/
|
|
26
|
+
author: string;
|
|
27
|
+
/**
|
|
28
|
+
* Script version
|
|
29
|
+
*/
|
|
30
|
+
version: string;
|
|
31
|
+
/**
|
|
32
|
+
* Script runtime, FE/RE
|
|
33
|
+
*/
|
|
34
|
+
runtime: string;
|
|
35
|
+
/**
|
|
36
|
+
* Script memo
|
|
37
|
+
*/
|
|
38
|
+
memo: string;
|
|
39
|
+
/**
|
|
40
|
+
* Script icon
|
|
41
|
+
*/
|
|
42
|
+
icon: string;
|
|
43
|
+
/**
|
|
44
|
+
* Script doc
|
|
45
|
+
*/
|
|
46
|
+
doc: string;
|
|
47
|
+
/**
|
|
48
|
+
* Script in development
|
|
49
|
+
*/
|
|
50
|
+
dev: Uint8Array;
|
|
18
51
|
/**
|
|
19
|
-
* Script
|
|
52
|
+
* Script in runtime
|
|
20
53
|
*/
|
|
21
|
-
|
|
54
|
+
run: Uint8Array;
|
|
22
55
|
/**
|
|
23
|
-
* Script
|
|
56
|
+
* Script raw JSON
|
|
24
57
|
*/
|
|
25
|
-
|
|
58
|
+
raw: Record<string, string>;
|
|
26
59
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firmer/mesh",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "Mesh: A lightweight, distributed, relational network architecture for MPC",
|
|
5
5
|
"homepage": "mesh",
|
|
6
6
|
"repository": "git.firmer.tech/firmer/mesh",
|
|
@@ -32,25 +32,25 @@
|
|
|
32
32
|
"coverage": "vitest run --coverage"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@grpc/grpc-js": "^1.14.
|
|
35
|
+
"@grpc/grpc-js": "^1.14.3",
|
|
36
36
|
"@grpc/proto-loader": "^0.8.0",
|
|
37
|
-
"@types/node": "^
|
|
37
|
+
"@types/node": "^25.0.3",
|
|
38
38
|
"async": "^3.2.6",
|
|
39
|
-
"axios": "^1.
|
|
39
|
+
"axios": "^1.13.2",
|
|
40
40
|
"buffer": "^6.0.3",
|
|
41
|
-
"google-protobuf": "^4.0.
|
|
41
|
+
"google-protobuf": "^4.0.1",
|
|
42
42
|
"grpc-web": "^2.0.2",
|
|
43
43
|
"lodash": "^4.17.21",
|
|
44
44
|
"moment": "^2.30.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@firmer/tsc": "0.0.1",
|
|
48
|
-
"@types/react": "^19.2.
|
|
48
|
+
"@types/react": "^19.2.7",
|
|
49
49
|
"reflect-metadata": "^0.2.2",
|
|
50
50
|
"typescript": "^5.9.3",
|
|
51
|
-
"vite": "^7.
|
|
51
|
+
"vite": "^7.3.0",
|
|
52
52
|
"vite-plugin-dts": "^4.5.4",
|
|
53
|
-
"vitest": "^
|
|
53
|
+
"vitest": "^4.0.16"
|
|
54
54
|
},
|
|
55
55
|
"packageManager": "yarn@4.9.2"
|
|
56
56
|
}
|
package/dist/psi/evaluator.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Context } from './context';
|
|
2
|
-
import { Page, Paging, Script } from '../types';
|
|
3
|
-
export declare abstract class Evaluator {
|
|
4
|
-
/**
|
|
5
|
-
* Compile the named rule.
|
|
6
|
-
*/
|
|
7
|
-
compile(script: Script, ctx?: Context): Promise<string>;
|
|
8
|
-
/**
|
|
9
|
-
* Exec the script with name.
|
|
10
|
-
*/
|
|
11
|
-
exec(code: string, args: Record<string, string>, dft: string, ctx?: Context): Promise<string>;
|
|
12
|
-
/**
|
|
13
|
-
* Dump the scripts.
|
|
14
|
-
*/
|
|
15
|
-
dump(feature: Record<string, string>, ctx?: Context): Promise<Script[]>;
|
|
16
|
-
/**
|
|
17
|
-
* Index the scripts.
|
|
18
|
-
*/
|
|
19
|
-
index(index: Paging, ctx?: Context): Promise<Page<Script>>;
|
|
20
|
-
}
|