@icjhd/cj-script-compiler 2.0.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.
- package/.cj-package.json +21 -0
- package/.cj-stubs/assets/EffectProgramWriter.js +17 -0
- package/.cj-stubs/assets/FormulaExpressionAdapter.js +15 -0
- package/.cj-stubs/assets/OperationSpecs.js +16 -0
- package/.cj-stubs/assets/RegistrySnapshot.js +18 -0
- package/.cj-stubs/index.js +16 -0
- package/.cj-stubs/recovery-manifest.json +47 -0
- package/README.md +62 -0
- package/assets/EffectProgramWriter.d.ts +53 -0
- package/assets/EffectProgramWriter.js +17 -0
- package/assets/FormulaExpressionAdapter.d.ts +43 -0
- package/assets/FormulaExpressionAdapter.js +15 -0
- package/assets/OperationSpecs.d.ts +7 -0
- package/assets/OperationSpecs.js +16 -0
- package/assets/RegistrySnapshot.d.ts +37 -0
- package/assets/RegistrySnapshot.js +18 -0
- package/assets/fixtures/minimal-bool-jump.golden.json +56 -0
- package/assets/fixtures/minimal-call-group.golden.json +27 -0
- package/assets/fixtures/minimal-call-op.golden.json +27 -0
- package/assets/fixtures/minimal-chance.golden.json +37 -0
- package/assets/fixtures/minimal-context-formula.golden.json +55 -0
- package/assets/fixtures/minimal-formula-chance.golden.json +47 -0
- package/assets/fixtures/minimal-function-formula.golden.json +58 -0
- package/assets/fixtures/minimal-rounding-formula.golden.json +55 -0
- package/assets/fixtures/minimal-selector.golden.json +61 -0
- package/assets/generated/operation-field-coverage.json +5 -0
- package/assets/generated/registry.snapshot.json +4466 -0
- package/cj-release-commit.json +10 -0
- package/encrypted-payload-v2/files/assets/EffectProgramWriter.js.bin +0 -0
- package/encrypted-payload-v2/files/assets/FormulaExpressionAdapter.js.bin +0 -0
- package/encrypted-payload-v2/files/assets/OperationSpecs.js.bin +0 -0
- package/encrypted-payload-v2/files/assets/RegistrySnapshot.js.bin +0 -0
- package/encrypted-payload-v2/files/index.js.bin +0 -0
- package/encrypted-payload-v2/manifest.json +98 -0
- package/index.d.ts +6 -0
- package/index.js +16 -0
- package/package.json +52 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "cj-release-crypto-commit-v1",
|
|
3
|
+
"packageName": "@icjhd/cj-script-compiler",
|
|
4
|
+
"packageVersion": "2.0.0",
|
|
5
|
+
"securityEpoch": 1,
|
|
6
|
+
"manifestId": "BlW5dQ0Jvzra5fUDl6hhbKTAaEHwL3RFf839yAfhx-s",
|
|
7
|
+
"payloadManifestSha256": "sha256:6b06875296418f51a5d35ad5d6a4a4c5334f18b986d059c7f65ae0cb0fa6e699",
|
|
8
|
+
"recoveryManifestSha256": "sha256:75ffcafcf91ffa82f1db845be49b8ec6ec5f3cc8ed5f6fc9b30dda3ecb939f59",
|
|
9
|
+
"fileCount": 5
|
|
10
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "cj-payload-manifest-envelope-v1",
|
|
3
|
+
"signed": {
|
|
4
|
+
"schema": "cj-encrypted-payload-v2",
|
|
5
|
+
"purpose": "cj-runtime-payload",
|
|
6
|
+
"manifestId": "BlW5dQ0Jvzra5fUDl6hhbKTAaEHwL3RFf839yAfhx-s",
|
|
7
|
+
"packageName": "@icjhd/cj-script-compiler",
|
|
8
|
+
"packageVersion": "2.0.0",
|
|
9
|
+
"minCoreSecurityVersion": 1,
|
|
10
|
+
"securityEpoch": 1,
|
|
11
|
+
"keyScope": "package-major",
|
|
12
|
+
"keyId": "line-prod-cj-script-compiler-v2-e1",
|
|
13
|
+
"releaseSalt": "M30A0aA2EiLbbm56VsAIoL2lRkn5+o9mMoxZBx2dSMM=",
|
|
14
|
+
"algorithm": "AES-256-GCM",
|
|
15
|
+
"kdf": "HKDF-SHA256",
|
|
16
|
+
"content": "cocos-safe-obfuscated-esm-js",
|
|
17
|
+
"files": [
|
|
18
|
+
{
|
|
19
|
+
"out": "assets/EffectProgramWriter.js",
|
|
20
|
+
"bin": "files/assets/EffectProgramWriter.js.bin",
|
|
21
|
+
"stub": ".cj-stubs/assets/EffectProgramWriter.js",
|
|
22
|
+
"stubSha256": "sha256:b2d963c84c0ee5a7c479a9246415d6ce65069212fba3908347167ed8557cd2fd",
|
|
23
|
+
"nonce": "qenBrsOqD7t6TIJr",
|
|
24
|
+
"authTag": "yDSDj1fxdN0WWFkHH1GJ9A==",
|
|
25
|
+
"ciphertextSha256": "sha256:87dc6d82af383e74378a26cf7285e2a4cff0ccd076ecbbb143c67147adbe5bae",
|
|
26
|
+
"plaintextSha256": "sha256:23915d975766834518339782a141296b1c5d0b2f12b8073339d553773f7069fd",
|
|
27
|
+
"aadSchema": "cj-payload-file-aad-v1"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"out": "assets/FormulaExpressionAdapter.js",
|
|
31
|
+
"bin": "files/assets/FormulaExpressionAdapter.js.bin",
|
|
32
|
+
"stub": ".cj-stubs/assets/FormulaExpressionAdapter.js",
|
|
33
|
+
"stubSha256": "sha256:c20cf7583c25b6a8a7b62c43cb8f22de2d569a81e7a5979bdf067bf7b0b78b23",
|
|
34
|
+
"nonce": "f1XT07aO1ThFUFBx",
|
|
35
|
+
"authTag": "gVESg76X8FxhA7gusxUJgA==",
|
|
36
|
+
"ciphertextSha256": "sha256:6e9fa49d96ef515ebc492cb48a5caba55b630400dde60ef78e434fdbae3dc2b0",
|
|
37
|
+
"plaintextSha256": "sha256:c396e297d2b26d4c42bf137f5c42653de00a039b4308bfcbf4d46dcbadc7f7a2",
|
|
38
|
+
"aadSchema": "cj-payload-file-aad-v1"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"out": "assets/OperationSpecs.js",
|
|
42
|
+
"bin": "files/assets/OperationSpecs.js.bin",
|
|
43
|
+
"stub": ".cj-stubs/assets/OperationSpecs.js",
|
|
44
|
+
"stubSha256": "sha256:0f42329199008c955ebd304f7e873b7d1f736c249627eeac07bce9241f14e50c",
|
|
45
|
+
"nonce": "SflasY7OcoFl1jop",
|
|
46
|
+
"authTag": "7fcTyjrkks8Y3G6irGWy8A==",
|
|
47
|
+
"ciphertextSha256": "sha256:cabaeb5b2af21ab4df47adb4babedb605a139e216dad21e592c28c3ddc81830d",
|
|
48
|
+
"plaintextSha256": "sha256:a945f3beed8686ac98dbc27b64cba769a3a15a408e5f5388e20ae095185a3d0e",
|
|
49
|
+
"aadSchema": "cj-payload-file-aad-v1"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"out": "assets/RegistrySnapshot.js",
|
|
53
|
+
"bin": "files/assets/RegistrySnapshot.js.bin",
|
|
54
|
+
"stub": ".cj-stubs/assets/RegistrySnapshot.js",
|
|
55
|
+
"stubSha256": "sha256:3f008f48db67cb628aff47b629a59f7d1985cfd6ff69517e8554ad375568c6bf",
|
|
56
|
+
"nonce": "EWNx0FaEFYefHDXx",
|
|
57
|
+
"authTag": "z4lUEf5DGsc6pd89i6akog==",
|
|
58
|
+
"ciphertextSha256": "sha256:c3e92f1dfd8c27920dd0d896466f914200249330f869a52d157f223a8c9b0a84",
|
|
59
|
+
"plaintextSha256": "sha256:bf8d760bb09af32e31a9c3f74b5c600f551922792cf9ff58f6e07de8626ce46f",
|
|
60
|
+
"aadSchema": "cj-payload-file-aad-v1"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"out": "index.js",
|
|
64
|
+
"bin": "files/index.js.bin",
|
|
65
|
+
"stub": ".cj-stubs/index.js",
|
|
66
|
+
"stubSha256": "sha256:2bb724315925cbbdfcffdb52374327a5ad540cde83d439c5b311e0c1d2273da8",
|
|
67
|
+
"nonce": "DpnNsVfT5Hl3dABK",
|
|
68
|
+
"authTag": "m2pNZZDEMW75hAXBbehYpw==",
|
|
69
|
+
"ciphertextSha256": "sha256:8a306b1fb2b752a4a78cdecdf99a700d207cf7a79cf5dff41bef033db8f3134e",
|
|
70
|
+
"plaintextSha256": "sha256:a462cba606c3c414dd07c151f397324159fe03aabc33fb4477f2031507b491e9",
|
|
71
|
+
"aadSchema": "cj-payload-file-aad-v1"
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"publicExports": [
|
|
75
|
+
"COMPILER_ABI_VERSION",
|
|
76
|
+
"CONTRACT_ABI_VERSION",
|
|
77
|
+
"compileStaticFormulaFxToExpression",
|
|
78
|
+
"createMinimalCallGroupBundle",
|
|
79
|
+
"createMinimalCallOpBundle",
|
|
80
|
+
"createMinimalChanceBundle",
|
|
81
|
+
"createOperationFieldCoverage",
|
|
82
|
+
"createRegistrySnapshot",
|
|
83
|
+
"stableJson",
|
|
84
|
+
"writeEffectProgramBinary"
|
|
85
|
+
],
|
|
86
|
+
"createdAt": "2026-07-31T09:43:36.423Z",
|
|
87
|
+
"issuer": {
|
|
88
|
+
"algorithm": "Ed25519",
|
|
89
|
+
"keyId": "payload-prod-2026-01",
|
|
90
|
+
"keysetVersion": 1
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"signature": {
|
|
94
|
+
"algorithm": "Ed25519",
|
|
95
|
+
"keyId": "payload-prod-2026-01",
|
|
96
|
+
"value": "aLqHVnilD7O7DqPey+SUeltxZKVwHqJtuXV9dONciES1GXHEN7af2kD+tPiVAjPi7KxczzfMeQERZTfMAE+YDw=="
|
|
97
|
+
}
|
|
98
|
+
}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { createMinimalChanceBundle, createMinimalCallGroupBundle, createMinimalCallOpBundle, writeEffectProgramBinary, } from "./assets/EffectProgramWriter";
|
|
2
|
+
export type { FxComparisonOperator, FxComparisonSource, MinimalEffectBundleSource, MinimalEffectEntrySource, MinimalEffectInstructionSource, MinimalEffectProgramSource, MinimalEffectSelectorSource, } from "./assets/EffectProgramWriter";
|
|
3
|
+
export { compileStaticFormulaFxToExpression, } from "./assets/FormulaExpressionAdapter";
|
|
4
|
+
export type { CompiledFormulaExpressionSource, FormulaExpressionInstructionSource, } from "./assets/FormulaExpressionAdapter";
|
|
5
|
+
export { COMPILER_ABI_VERSION, CONTRACT_ABI_VERSION, createOperationFieldCoverage, createRegistrySnapshot, stableJson, } from "./assets/RegistrySnapshot";
|
|
6
|
+
export type { OperationFieldCoverage, RegistryEventSnapshot, RegistryFieldSnapshot, RegistryOperationSnapshot, RegistrySnapshot, } from "./assets/RegistrySnapshot";
|
package/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// CJHD editor-safe runtime stub. Generated by the publisher release tool.
|
|
2
|
+
|
|
3
|
+
const __cjSafeValue = new Proxy(function __cjSafeValue() {}, {
|
|
4
|
+
get(target, key) {
|
|
5
|
+
if (key === Symbol.toPrimitive) return function () { return 0; };
|
|
6
|
+
if (key === 'valueOf') return function () { return 0; };
|
|
7
|
+
if (key === 'toString') return function () { return '[CJHD editor-safe stub]'; };
|
|
8
|
+
return __cjSafeValue;
|
|
9
|
+
},
|
|
10
|
+
apply() { return __cjSafeValue; },
|
|
11
|
+
construct() { return __cjSafeValue; },
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export { createMinimalChanceBundle, createMinimalCallGroupBundle, createMinimalCallOpBundle, writeEffectProgramBinary } from './assets/EffectProgramWriter.js';
|
|
15
|
+
export { compileStaticFormulaFxToExpression } from './assets/FormulaExpressionAdapter.js';
|
|
16
|
+
export { COMPILER_ABI_VERSION, CONTRACT_ABI_VERSION, createOperationFieldCoverage, createRegistrySnapshot, stableJson } from './assets/RegistrySnapshot.js';
|
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@icjhd/cj-script-compiler",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "技能脚本合同快照与二进制写出工具核心",
|
|
5
|
+
"main": "./index.js",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public",
|
|
8
|
+
"registry": "https://registry.npmjs.org"
|
|
9
|
+
},
|
|
10
|
+
"license": "SEE LICENSE IN README.md",
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@icjhd/cj-formula-fx": "^2.0.0",
|
|
13
|
+
"@icjhd/cj-script-runtime": "^2.0.0"
|
|
14
|
+
},
|
|
15
|
+
"type": "module",
|
|
16
|
+
"browser": "./index.js",
|
|
17
|
+
"types": "./index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./index.d.ts",
|
|
21
|
+
"browser": "./index.js",
|
|
22
|
+
"import": "./index.js",
|
|
23
|
+
"default": "./index.js"
|
|
24
|
+
},
|
|
25
|
+
"./index.js": {
|
|
26
|
+
"types": "./index.d.ts",
|
|
27
|
+
"browser": "./index.js",
|
|
28
|
+
"import": "./index.js",
|
|
29
|
+
"default": "./index.js"
|
|
30
|
+
},
|
|
31
|
+
"./assets/*": {
|
|
32
|
+
"types": "./assets/*.d.ts",
|
|
33
|
+
"browser": "./assets/*.js",
|
|
34
|
+
"import": "./assets/*.js",
|
|
35
|
+
"default": "./assets/*.js"
|
|
36
|
+
},
|
|
37
|
+
"./package.json": "./package.json"
|
|
38
|
+
},
|
|
39
|
+
"files": [
|
|
40
|
+
"package.json",
|
|
41
|
+
"README.md",
|
|
42
|
+
"index.d.ts",
|
|
43
|
+
"index.js",
|
|
44
|
+
"assets/**/*.d.ts",
|
|
45
|
+
"assets/**/*.js",
|
|
46
|
+
"assets/**/*.json",
|
|
47
|
+
"encrypted-payload-v2/**",
|
|
48
|
+
".cj-stubs/**",
|
|
49
|
+
"cj-release-commit.json",
|
|
50
|
+
".cj-package.json"
|
|
51
|
+
]
|
|
52
|
+
}
|