@icjhd/cj-quest 2.1.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 +28 -0
- package/.cj-stubs/assets/canonical.js +15 -0
- package/.cj-stubs/assets/event.js +19 -0
- package/.cj-stubs/assets/executor.js +21 -0
- package/.cj-stubs/assets/loader.js +19 -0
- package/.cj-stubs/assets/marker.js +20 -0
- package/.cj-stubs/assets/migration.js +18 -0
- package/.cj-stubs/assets/save.js +28 -0
- package/.cj-stubs/assets/store.js +43 -0
- package/.cj-stubs/assets/system.js +29 -0
- package/.cj-stubs/assets/target-index.js +31 -0
- package/.cj-stubs/assets/testing.js +15 -0
- package/.cj-stubs/assets/types.js +15 -0
- package/.cj-stubs/assets/wave-director.js +25 -0
- package/.cj-stubs/assets/wave-ledger.js +21 -0
- package/.cj-stubs/index.js +22 -0
- package/.cj-stubs/recovery-manifest.json +97 -0
- package/README.md +21 -0
- package/assets/canonical.d.ts +3 -0
- package/assets/canonical.js +15 -0
- package/assets/event.d.ts +8 -0
- package/assets/event.js +19 -0
- package/assets/executor.d.ts +37 -0
- package/assets/executor.js +21 -0
- package/assets/loader.d.ts +8 -0
- package/assets/loader.js +19 -0
- package/assets/marker.d.ts +13 -0
- package/assets/marker.js +20 -0
- package/assets/migration.d.ts +6 -0
- package/assets/migration.js +18 -0
- package/assets/save.d.ts +28 -0
- package/assets/save.js +28 -0
- package/assets/store.d.ts +61 -0
- package/assets/store.js +43 -0
- package/assets/system.d.ts +58 -0
- package/assets/system.js +29 -0
- package/assets/target-index.d.ts +31 -0
- package/assets/target-index.js +31 -0
- package/assets/testing.d.ts +4 -0
- package/assets/testing.js +15 -0
- package/assets/types.d.ts +268 -0
- package/assets/types.js +15 -0
- package/assets/wave-director.d.ts +76 -0
- package/assets/wave-director.js +25 -0
- package/assets/wave-ledger.d.ts +28 -0
- package/assets/wave-ledger.js +21 -0
- package/cj-release-commit.json +10 -0
- package/encrypted-payload-v2/files/assets/canonical.js.bin +1 -0
- package/encrypted-payload-v2/files/assets/event.js.bin +3 -0
- package/encrypted-payload-v2/files/assets/executor.js.bin +0 -0
- package/encrypted-payload-v2/files/assets/loader.js.bin +0 -0
- package/encrypted-payload-v2/files/assets/marker.js.bin +0 -0
- package/encrypted-payload-v2/files/assets/migration.js.bin +0 -0
- package/encrypted-payload-v2/files/assets/save.js.bin +0 -0
- package/encrypted-payload-v2/files/assets/store.js.bin +0 -0
- package/encrypted-payload-v2/files/assets/system.js.bin +0 -0
- package/encrypted-payload-v2/files/assets/target-index.js.bin +0 -0
- package/encrypted-payload-v2/files/assets/testing.js.bin +1 -0
- package/encrypted-payload-v2/files/assets/types.js.bin +1 -0
- package/encrypted-payload-v2/files/assets/wave-director.js.bin +0 -0
- package/encrypted-payload-v2/files/assets/wave-ledger.js.bin +0 -0
- package/encrypted-payload-v2/files/index.js.bin +2 -0
- package/encrypted-payload-v2/manifest.json +197 -0
- package/index.d.ts +10 -0
- package/index.js +22 -0
- package/package.json +48 -0
package/.cj-package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "cj-package-v2",
|
|
3
|
+
"name": "@icjhd/cj-quest",
|
|
4
|
+
"version": "2.1.0",
|
|
5
|
+
"payloadManifest": "encrypted-payload-v2/manifest.json",
|
|
6
|
+
"recoveryManifest": ".cj-stubs/recovery-manifest.json",
|
|
7
|
+
"releaseCommit": "cj-release-commit.json",
|
|
8
|
+
"entry": "index.js",
|
|
9
|
+
"assetsDir": "assets",
|
|
10
|
+
"generatedFiles": [
|
|
11
|
+
"assets/canonical.js",
|
|
12
|
+
"assets/event.js",
|
|
13
|
+
"assets/executor.js",
|
|
14
|
+
"assets/loader.js",
|
|
15
|
+
"assets/marker.js",
|
|
16
|
+
"assets/migration.js",
|
|
17
|
+
"assets/save.js",
|
|
18
|
+
"assets/store.js",
|
|
19
|
+
"assets/system.js",
|
|
20
|
+
"assets/target-index.js",
|
|
21
|
+
"assets/testing.js",
|
|
22
|
+
"assets/types.js",
|
|
23
|
+
"assets/wave-director.js",
|
|
24
|
+
"assets/wave-ledger.js",
|
|
25
|
+
"index.js"
|
|
26
|
+
],
|
|
27
|
+
"dependencies": []
|
|
28
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 function stableStringify(...args) { return __cjSafeValue; }
|
|
15
|
+
export function fnv1a32(...args) { return __cjSafeValue; }
|
|
@@ -0,0 +1,19 @@
|
|
|
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 class QuestEventHub {
|
|
15
|
+
constructor(...args) {}
|
|
16
|
+
on(...args) { return __cjSafeValue; }
|
|
17
|
+
emit(...args) { return __cjSafeValue; }
|
|
18
|
+
clear(...args) { return __cjSafeValue; }
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 class QuestExecutor {
|
|
15
|
+
constructor(...args) {}
|
|
16
|
+
dispose(...args) { return __cjSafeValue; }
|
|
17
|
+
resumeActiveTaskWaves(...args) { return __cjSafeValue; }
|
|
18
|
+
tick(...args) { return __cjSafeValue; }
|
|
19
|
+
handle(...args) { return __cjSafeValue; }
|
|
20
|
+
evaluateCondition(...args) { return __cjSafeValue; }
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 class QuestRuntimeValidationError {
|
|
15
|
+
constructor(...args) {}
|
|
16
|
+
}
|
|
17
|
+
export function loadQuestRuntimeBundle(...args) { return __cjSafeValue; }
|
|
18
|
+
export function validateQuestRuntimeBundle(...args) { return __cjSafeValue; }
|
|
19
|
+
export function computeQuestBundleHash(...args) { return __cjSafeValue; }
|
|
@@ -0,0 +1,20 @@
|
|
|
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 class QuestMarkerProjector {
|
|
15
|
+
constructor(...args) {}
|
|
16
|
+
snapshots(...args) { return []; }
|
|
17
|
+
}
|
|
18
|
+
export function markerIdForStep(...args) { return __cjSafeValue; }
|
|
19
|
+
export function markerVisibilityFlag(...args) { return __cjSafeValue; }
|
|
20
|
+
export const TRACKED_QUEST_FLAG = __cjSafeValue;
|
|
@@ -0,0 +1,18 @@
|
|
|
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 class QuestMigrationError {
|
|
15
|
+
constructor(...args) {}
|
|
16
|
+
}
|
|
17
|
+
export function migrateQuestSnapshot(...args) { return __cjSafeValue; }
|
|
18
|
+
export function findMigrationChain(...args) { return __cjSafeValue; }
|
|
@@ -0,0 +1,28 @@
|
|
|
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 class MemoryQuestStorage {
|
|
15
|
+
constructor(...args) {}
|
|
16
|
+
getItem(...args) { return __cjSafeValue; }
|
|
17
|
+
setItem(...args) { return __cjSafeValue; }
|
|
18
|
+
removeItem(...args) { return __cjSafeValue; }
|
|
19
|
+
}
|
|
20
|
+
export class QuestSaveRepository {
|
|
21
|
+
constructor(...args) {}
|
|
22
|
+
load(...args) { return __cjSafeValue; }
|
|
23
|
+
save(...args) { return __cjSafeValue; }
|
|
24
|
+
clear(...args) { return __cjSafeValue; }
|
|
25
|
+
}
|
|
26
|
+
export function encodeEnvelope(...args) { return __cjSafeValue; }
|
|
27
|
+
export function decodeEnvelope(...args) { return __cjSafeValue; }
|
|
28
|
+
export function checksumSnapshot(...args) { return __cjSafeValue; }
|
|
@@ -0,0 +1,43 @@
|
|
|
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 class QuestStore {
|
|
15
|
+
constructor(...args) {}
|
|
16
|
+
get snapshot() { return __cjSafeValue; }
|
|
17
|
+
setTransitionListener(...args) { return __cjSafeValue; }
|
|
18
|
+
setActivationGuard(...args) { return __cjSafeValue; }
|
|
19
|
+
replaceSnapshot(...args) { return __cjSafeValue; }
|
|
20
|
+
consumeDirty(...args) { return __cjSafeValue; }
|
|
21
|
+
setCurrentLevel(...args) { return __cjSafeValue; }
|
|
22
|
+
advanceTime(...args) { return __cjSafeValue; }
|
|
23
|
+
activateAutoStart(...args) { return __cjSafeValue; }
|
|
24
|
+
activateQuest(...args) { return __cjSafeValue; }
|
|
25
|
+
retryQuest(...args) { return __cjSafeValue; }
|
|
26
|
+
cancelQuest(...args) { return __cjSafeValue; }
|
|
27
|
+
activateStep(...args) { return __cjSafeValue; }
|
|
28
|
+
completeStep(...args) { return __cjSafeValue; }
|
|
29
|
+
failStep(...args) { return __cjSafeValue; }
|
|
30
|
+
cancelStep(...args) { return __cjSafeValue; }
|
|
31
|
+
setStepProgress(...args) { return __cjSafeValue; }
|
|
32
|
+
setStepData(...args) { return __cjSafeValue; }
|
|
33
|
+
stepData(...args) { return __cjSafeValue; }
|
|
34
|
+
activeSteps(...args) { return []; }
|
|
35
|
+
questStatus(...args) { return __cjSafeValue; }
|
|
36
|
+
stepStatus(...args) { return __cjSafeValue; }
|
|
37
|
+
flag(...args) { return __cjSafeValue; }
|
|
38
|
+
setFlag(...args) { return __cjSafeValue; }
|
|
39
|
+
counter(...args) { return __cjSafeValue; }
|
|
40
|
+
setCounter(...args) { return __cjSafeValue; }
|
|
41
|
+
rememberEvent(...args) { return __cjSafeValue; }
|
|
42
|
+
}
|
|
43
|
+
export function createEmptySnapshot(...args) { return __cjSafeValue; }
|
|
@@ -0,0 +1,29 @@
|
|
|
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 class QuestRuntimeSystem {
|
|
15
|
+
constructor(...args) {}
|
|
16
|
+
get bundle() { return __cjSafeValue; }
|
|
17
|
+
get targets() { return __cjSafeValue; }
|
|
18
|
+
get snapshot() { return __cjSafeValue; }
|
|
19
|
+
get diagnostics() { return __cjSafeValue; }
|
|
20
|
+
get lastHotUpdate() { return __cjSafeValue; }
|
|
21
|
+
get markers() { return __cjSafeValue; }
|
|
22
|
+
startLevel(...args) { return __cjSafeValue; }
|
|
23
|
+
tick(...args) { return __cjSafeValue; }
|
|
24
|
+
emit(...args) { return __cjSafeValue; }
|
|
25
|
+
retryQuest(...args) { return __cjSafeValue; }
|
|
26
|
+
refreshMarkers(...args) { return __cjSafeValue; }
|
|
27
|
+
requestHotUpdate(...args) { return __cjSafeValue; }
|
|
28
|
+
dispose(...args) { return __cjSafeValue; }
|
|
29
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 class QuestTargetIndex {
|
|
15
|
+
constructor(...args) {}
|
|
16
|
+
resetBundle(...args) { return __cjSafeValue; }
|
|
17
|
+
registerTarget(...args) { return __cjSafeValue; }
|
|
18
|
+
getTarget(...args) { return __cjSafeValue; }
|
|
19
|
+
resolveTarget(...args) { return __cjSafeValue; }
|
|
20
|
+
registerActor(...args) { return __cjSafeValue; }
|
|
21
|
+
unregisterActor(...args) { return __cjSafeValue; }
|
|
22
|
+
setPrimaryActor(...args) { return __cjSafeValue; }
|
|
23
|
+
primaryActor(...args) { return __cjSafeValue; }
|
|
24
|
+
actorByRuntimeId(...args) { return __cjSafeValue; }
|
|
25
|
+
actorForTarget(...args) { return __cjSafeValue; }
|
|
26
|
+
actorForBinding(...args) { return __cjSafeValue; }
|
|
27
|
+
stableIdentityForRuntimeId(...args) { return __cjSafeValue; }
|
|
28
|
+
}
|
|
29
|
+
export function questTargetContains(...args) { return __cjSafeValue; }
|
|
30
|
+
export function geometryContains(...args) { return __cjSafeValue; }
|
|
31
|
+
export function targetKey(...args) { return __cjSafeValue; }
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { fnv1a32, stableStringify } from './canonical.js';
|
|
15
|
+
export function sealQuestBundleForTests(...args) { return __cjSafeValue; }
|
|
@@ -0,0 +1,15 @@
|
|
|
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 const QUEST_RUNTIME_SCHEMA_VERSION = __cjSafeValue;
|
|
15
|
+
export const QUEST_SAVE_SCHEMA_VERSION = __cjSafeValue;
|
|
@@ -0,0 +1,25 @@
|
|
|
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 class QuestWaveDirector {
|
|
15
|
+
constructor(...args) {}
|
|
16
|
+
startWave(...args) { return __cjSafeValue; }
|
|
17
|
+
stopWave(...args) { return __cjSafeValue; }
|
|
18
|
+
stopOwner(...args) { return __cjSafeValue; }
|
|
19
|
+
registerHost(...args) { return __cjSafeValue; }
|
|
20
|
+
unregisterHost(...args) { return __cjSafeValue; }
|
|
21
|
+
status(...args) { return __cjSafeValue; }
|
|
22
|
+
reset(...args) { return __cjSafeValue; }
|
|
23
|
+
}
|
|
24
|
+
export function normalizeQuestWaveStartMode(...args) { return __cjSafeValue; }
|
|
25
|
+
export function matchTaskActiveQuestWaveSource(...args) { return __cjSafeValue; }
|
|
@@ -0,0 +1,21 @@
|
|
|
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 class QuestWaveLedger {
|
|
15
|
+
constructor(...args) {}
|
|
16
|
+
register(...args) { return __cjSafeValue; }
|
|
17
|
+
leave(...args) { return __cjSafeValue; }
|
|
18
|
+
memberCount(...args) { return __cjSafeValue; }
|
|
19
|
+
clear(...args) { return __cjSafeValue; }
|
|
20
|
+
}
|
|
21
|
+
export function resolveQuestWaveIdentity(...args) { return __cjSafeValue; }
|
|
@@ -0,0 +1,22 @@
|
|
|
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 * from './assets/types.js';
|
|
15
|
+
export * from './assets/loader.js';
|
|
16
|
+
export * from './assets/target-index.js';
|
|
17
|
+
export * from './assets/migration.js';
|
|
18
|
+
export * from './assets/wave-ledger.js';
|
|
19
|
+
export * from './assets/wave-director.js';
|
|
20
|
+
export * from './assets/save.js';
|
|
21
|
+
export * from './assets/event.js';
|
|
22
|
+
export * from './assets/system.js';
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "cj-recovery-manifest-envelope-v1",
|
|
3
|
+
"signed": {
|
|
4
|
+
"schema": "cj-runtime-recovery-v1",
|
|
5
|
+
"purpose": "cj-runtime-stub-recovery",
|
|
6
|
+
"packageName": "@icjhd/cj-quest",
|
|
7
|
+
"packageVersion": "2.1.0",
|
|
8
|
+
"securityEpoch": 1,
|
|
9
|
+
"entries": [
|
|
10
|
+
{
|
|
11
|
+
"out": "assets/canonical.js",
|
|
12
|
+
"stub": ".cj-stubs/assets/canonical.js",
|
|
13
|
+
"stubSha256": "sha256:0684cadf5f8a6779b00c67f951f0bf4788c3b027061fe4b47629648c8837d58f"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"out": "assets/event.js",
|
|
17
|
+
"stub": ".cj-stubs/assets/event.js",
|
|
18
|
+
"stubSha256": "sha256:a9a28eee713bed7eaadd3d3a2ec1592b02418cd7f00f82ef6e4a8f790c675026"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"out": "assets/executor.js",
|
|
22
|
+
"stub": ".cj-stubs/assets/executor.js",
|
|
23
|
+
"stubSha256": "sha256:c66b385daedb451fe0f90abb2c0f30b2d1cc3315c2b4606a0e856004f4db84c0"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"out": "assets/loader.js",
|
|
27
|
+
"stub": ".cj-stubs/assets/loader.js",
|
|
28
|
+
"stubSha256": "sha256:4209cf2235c89f6b867895e96221d1f2c4b9bafa330874dafa38b0470fe53c69"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"out": "assets/marker.js",
|
|
32
|
+
"stub": ".cj-stubs/assets/marker.js",
|
|
33
|
+
"stubSha256": "sha256:11dc1196c7af17a9c5b048200053293191f6c23136a3dd1cd1558952758fab73"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"out": "assets/migration.js",
|
|
37
|
+
"stub": ".cj-stubs/assets/migration.js",
|
|
38
|
+
"stubSha256": "sha256:abd4266a7acf3fa10bb34c0b52541930ce6d4f647cfdd853a6bdd450b67dc790"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"out": "assets/save.js",
|
|
42
|
+
"stub": ".cj-stubs/assets/save.js",
|
|
43
|
+
"stubSha256": "sha256:5625da9091d995c5e39926e4305a6d2993ea09d723608d7417cfbd47e4da1607"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"out": "assets/store.js",
|
|
47
|
+
"stub": ".cj-stubs/assets/store.js",
|
|
48
|
+
"stubSha256": "sha256:83e6647fc9bb4aa2ddbc9d2984f4c652413ca277d0a794a7a892161d26e3a033"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"out": "assets/system.js",
|
|
52
|
+
"stub": ".cj-stubs/assets/system.js",
|
|
53
|
+
"stubSha256": "sha256:5e15f54a22398f5bca7d19590474a971312dfafdce7bdf68e58df2a272400b06"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"out": "assets/target-index.js",
|
|
57
|
+
"stub": ".cj-stubs/assets/target-index.js",
|
|
58
|
+
"stubSha256": "sha256:fbdc8b486c616678148440cda625441e4675a79c0a88bc4d0af94e720f2a0572"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"out": "assets/testing.js",
|
|
62
|
+
"stub": ".cj-stubs/assets/testing.js",
|
|
63
|
+
"stubSha256": "sha256:75d26344da0e97464455766c8ed67f9637fc45c6fae2e6025a59f2e628419e93"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"out": "assets/types.js",
|
|
67
|
+
"stub": ".cj-stubs/assets/types.js",
|
|
68
|
+
"stubSha256": "sha256:de0d9913c374957a31caa27245f5de9fbc88f763a5cb3dfb8e04b2ef07db241b"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"out": "assets/wave-director.js",
|
|
72
|
+
"stub": ".cj-stubs/assets/wave-director.js",
|
|
73
|
+
"stubSha256": "sha256:b99990993a02ea97d586ddaa82c69a141f6b03af0fa381834595ec0962e1041e"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"out": "assets/wave-ledger.js",
|
|
77
|
+
"stub": ".cj-stubs/assets/wave-ledger.js",
|
|
78
|
+
"stubSha256": "sha256:f0e603c9cc35734cefe57669fb0f773ac5d46dd72eab9c5a09af03a4030a1b5f"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"out": "index.js",
|
|
82
|
+
"stub": ".cj-stubs/index.js",
|
|
83
|
+
"stubSha256": "sha256:8260755b77e88c246729b56e8e270323f85688824ded02f82bb7bc5ad1fc0fb0"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"issuer": {
|
|
87
|
+
"algorithm": "Ed25519",
|
|
88
|
+
"keyId": "recovery-prod-2026-01",
|
|
89
|
+
"keysetVersion": 1
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"signature": {
|
|
93
|
+
"algorithm": "Ed25519",
|
|
94
|
+
"keyId": "recovery-prod-2026-01",
|
|
95
|
+
"value": "EqF02uaV9TJcYD1j9pnw1+0wyYF1XT8rxDOivbVjOxr+gnSz685xDqvuE1cGFxl2Jm3lh+B0s2UggcQXig7/Bw=="
|
|
96
|
+
}
|
|
97
|
+
}
|
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# @icjhd/cj-quest
|
|
2
|
+
|
|
3
|
+
Deterministic, host-neutral quest runtime primitives.
|
|
4
|
+
|
|
5
|
+
The main entry exports the runtime contract, bundle loader and validator,
|
|
6
|
+
QuestRuntimeSystem, target registration/query APIs, migrations, explicit
|
|
7
|
+
save/event ports, and wave primitives. Store, executor, marker-projector,
|
|
8
|
+
canonicalization, and testing implementations stay outside the main entry.
|
|
9
|
+
|
|
10
|
+
It intentionally excludes GameClient adapters, process-wide hosts/singletons,
|
|
11
|
+
TMX raw-object parsing, and automatic localStorage discovery. Test/content
|
|
12
|
+
authoring helpers live at @icjhd/cj-quest/assets/testing and are not exported
|
|
13
|
+
from the main entry.
|
|
14
|
+
|
|
15
|
+
The package participates in the protected Runtime/CLI release baseline. Its
|
|
16
|
+
main entry stays host-neutral; Cocos projects should consume the generated
|
|
17
|
+
JavaScript package through their normal `db://pkg` export bridge.
|
|
18
|
+
|
|
19
|
+
Run the host-neutral behavior tests and strict type check from the repository root:
|
|
20
|
+
|
|
21
|
+
`npm test --prefix assets/cj-quest`
|
|
@@ -0,0 +1,15 @@
|
|
|
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 function stableStringify(...args) { return __cjSafeValue; }
|
|
15
|
+
export function fnv1a32(...args) { return __cjSafeValue; }
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { QuestRuntimeEvent } from "./types";
|
|
2
|
+
export type QuestEventListener = (event: QuestRuntimeEvent) => void;
|
|
3
|
+
export declare class QuestEventHub {
|
|
4
|
+
private readonly listeners;
|
|
5
|
+
on(listener: QuestEventListener): () => void;
|
|
6
|
+
emit(event: QuestRuntimeEvent): void;
|
|
7
|
+
clear(): void;
|
|
8
|
+
}
|
package/assets/event.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
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 class QuestEventHub {
|
|
15
|
+
constructor(...args) {}
|
|
16
|
+
on(...args) { return __cjSafeValue; }
|
|
17
|
+
emit(...args) { return __cjSafeValue; }
|
|
18
|
+
clear(...args) { return __cjSafeValue; }
|
|
19
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { QuestTargetIndex } from "./target-index";
|
|
2
|
+
import { QuestStore } from "./store";
|
|
3
|
+
import type { QuestCondition, QuestRuntimeEvent, QuestRuntimePorts } from "./types";
|
|
4
|
+
export declare class QuestExecutor {
|
|
5
|
+
private readonly store;
|
|
6
|
+
private readonly targets;
|
|
7
|
+
private readonly ports;
|
|
8
|
+
private readonly emittedDiagnostics;
|
|
9
|
+
constructor(store: QuestStore, targets: QuestTargetIndex, ports: QuestRuntimePorts);
|
|
10
|
+
dispose(): void;
|
|
11
|
+
/** Replays only the idempotent lifecycle start for restored active steps. */
|
|
12
|
+
resumeActiveTaskWaves(levelId: string): void;
|
|
13
|
+
tick(deltaMs: number): void;
|
|
14
|
+
handle(event: QuestRuntimeEvent): void;
|
|
15
|
+
evaluateCondition(condition: QuestCondition, questId: string, stepId: string): boolean;
|
|
16
|
+
private tickReachZone;
|
|
17
|
+
private handleKill;
|
|
18
|
+
private handleTalk;
|
|
19
|
+
private handleCollect;
|
|
20
|
+
private tickCollect;
|
|
21
|
+
private handleDeliver;
|
|
22
|
+
private tickEscort;
|
|
23
|
+
private tickProtectDefend;
|
|
24
|
+
private handleWavesCleared;
|
|
25
|
+
private handleActorState;
|
|
26
|
+
private resolveActor;
|
|
27
|
+
private eventMatchesBinding;
|
|
28
|
+
private attemptComplete;
|
|
29
|
+
private attemptFail;
|
|
30
|
+
private conditionsPass;
|
|
31
|
+
private onTransition;
|
|
32
|
+
private runActions;
|
|
33
|
+
private executeAction;
|
|
34
|
+
private stopActiveTaskWaves;
|
|
35
|
+
private runTaskWaveLifecycle;
|
|
36
|
+
private diagnosticOnce;
|
|
37
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 class QuestExecutor {
|
|
15
|
+
constructor(...args) {}
|
|
16
|
+
dispose(...args) { return __cjSafeValue; }
|
|
17
|
+
resumeActiveTaskWaves(...args) { return __cjSafeValue; }
|
|
18
|
+
tick(...args) { return __cjSafeValue; }
|
|
19
|
+
handle(...args) { return __cjSafeValue; }
|
|
20
|
+
evaluateCondition(...args) { return __cjSafeValue; }
|
|
21
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type QuestDiagnostic, type QuestRuntimeBundle } from "./types";
|
|
2
|
+
export declare class QuestRuntimeValidationError extends Error {
|
|
3
|
+
readonly diagnostics: QuestDiagnostic[];
|
|
4
|
+
constructor(diagnostics: QuestDiagnostic[]);
|
|
5
|
+
}
|
|
6
|
+
export declare function loadQuestRuntimeBundle(input: unknown): QuestRuntimeBundle;
|
|
7
|
+
export declare function validateQuestRuntimeBundle(bundle: QuestRuntimeBundle): QuestDiagnostic[];
|
|
8
|
+
export declare function computeQuestBundleHash(bundle: QuestRuntimeBundle): string;
|
package/assets/loader.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
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 class QuestRuntimeValidationError {
|
|
15
|
+
constructor(...args) {}
|
|
16
|
+
}
|
|
17
|
+
export function loadQuestRuntimeBundle(...args) { return __cjSafeValue; }
|
|
18
|
+
export function validateQuestRuntimeBundle(...args) { return __cjSafeValue; }
|
|
19
|
+
export function computeQuestBundleHash(...args) { return __cjSafeValue; }
|