@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.
@@ -1,4 +1,5 @@
1
- export declare class Script {
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 desc
12
+ * Script kind, EXPRESSION/VALUE/SCRIPT/PROJECT. PROJECT is .tar format
12
13
  */
13
- desc: string;
14
+ kind: string;
14
15
  /**
15
- * Script kind
16
+ * Script lang
16
17
  */
17
- kind: string;
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 expression
52
+ * Script in runtime
20
53
  */
21
- expr: string;
54
+ run: Uint8Array;
22
55
  /**
23
- * Script attachment
56
+ * Script raw JSON
24
57
  */
25
- attachment: Record<string, string>;
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.5",
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.0",
35
+ "@grpc/grpc-js": "^1.14.3",
36
36
  "@grpc/proto-loader": "^0.8.0",
37
- "@types/node": "^24.8.1",
37
+ "@types/node": "^25.0.3",
38
38
  "async": "^3.2.6",
39
- "axios": "^1.12.2",
39
+ "axios": "^1.13.2",
40
40
  "buffer": "^6.0.3",
41
- "google-protobuf": "^4.0.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.2",
48
+ "@types/react": "^19.2.7",
49
49
  "reflect-metadata": "^0.2.2",
50
50
  "typescript": "^5.9.3",
51
- "vite": "^7.1.11",
51
+ "vite": "^7.3.0",
52
52
  "vite-plugin-dts": "^4.5.4",
53
- "vitest": "^3.2.4"
53
+ "vitest": "^4.0.16"
54
54
  },
55
55
  "packageManager": "yarn@4.9.2"
56
56
  }
@@ -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
- }