@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.
Files changed (66) hide show
  1. package/.cj-package.json +28 -0
  2. package/.cj-stubs/assets/canonical.js +15 -0
  3. package/.cj-stubs/assets/event.js +19 -0
  4. package/.cj-stubs/assets/executor.js +21 -0
  5. package/.cj-stubs/assets/loader.js +19 -0
  6. package/.cj-stubs/assets/marker.js +20 -0
  7. package/.cj-stubs/assets/migration.js +18 -0
  8. package/.cj-stubs/assets/save.js +28 -0
  9. package/.cj-stubs/assets/store.js +43 -0
  10. package/.cj-stubs/assets/system.js +29 -0
  11. package/.cj-stubs/assets/target-index.js +31 -0
  12. package/.cj-stubs/assets/testing.js +15 -0
  13. package/.cj-stubs/assets/types.js +15 -0
  14. package/.cj-stubs/assets/wave-director.js +25 -0
  15. package/.cj-stubs/assets/wave-ledger.js +21 -0
  16. package/.cj-stubs/index.js +22 -0
  17. package/.cj-stubs/recovery-manifest.json +97 -0
  18. package/README.md +21 -0
  19. package/assets/canonical.d.ts +3 -0
  20. package/assets/canonical.js +15 -0
  21. package/assets/event.d.ts +8 -0
  22. package/assets/event.js +19 -0
  23. package/assets/executor.d.ts +37 -0
  24. package/assets/executor.js +21 -0
  25. package/assets/loader.d.ts +8 -0
  26. package/assets/loader.js +19 -0
  27. package/assets/marker.d.ts +13 -0
  28. package/assets/marker.js +20 -0
  29. package/assets/migration.d.ts +6 -0
  30. package/assets/migration.js +18 -0
  31. package/assets/save.d.ts +28 -0
  32. package/assets/save.js +28 -0
  33. package/assets/store.d.ts +61 -0
  34. package/assets/store.js +43 -0
  35. package/assets/system.d.ts +58 -0
  36. package/assets/system.js +29 -0
  37. package/assets/target-index.d.ts +31 -0
  38. package/assets/target-index.js +31 -0
  39. package/assets/testing.d.ts +4 -0
  40. package/assets/testing.js +15 -0
  41. package/assets/types.d.ts +268 -0
  42. package/assets/types.js +15 -0
  43. package/assets/wave-director.d.ts +76 -0
  44. package/assets/wave-director.js +25 -0
  45. package/assets/wave-ledger.d.ts +28 -0
  46. package/assets/wave-ledger.js +21 -0
  47. package/cj-release-commit.json +10 -0
  48. package/encrypted-payload-v2/files/assets/canonical.js.bin +1 -0
  49. package/encrypted-payload-v2/files/assets/event.js.bin +3 -0
  50. package/encrypted-payload-v2/files/assets/executor.js.bin +0 -0
  51. package/encrypted-payload-v2/files/assets/loader.js.bin +0 -0
  52. package/encrypted-payload-v2/files/assets/marker.js.bin +0 -0
  53. package/encrypted-payload-v2/files/assets/migration.js.bin +0 -0
  54. package/encrypted-payload-v2/files/assets/save.js.bin +0 -0
  55. package/encrypted-payload-v2/files/assets/store.js.bin +0 -0
  56. package/encrypted-payload-v2/files/assets/system.js.bin +0 -0
  57. package/encrypted-payload-v2/files/assets/target-index.js.bin +0 -0
  58. package/encrypted-payload-v2/files/assets/testing.js.bin +1 -0
  59. package/encrypted-payload-v2/files/assets/types.js.bin +1 -0
  60. package/encrypted-payload-v2/files/assets/wave-director.js.bin +0 -0
  61. package/encrypted-payload-v2/files/assets/wave-ledger.js.bin +0 -0
  62. package/encrypted-payload-v2/files/index.js.bin +2 -0
  63. package/encrypted-payload-v2/manifest.json +197 -0
  64. package/index.d.ts +10 -0
  65. package/index.js +22 -0
  66. package/package.json +48 -0
@@ -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,76 @@
1
+ import type { QuestRuntimeWaveSource } from "./types";
2
+ export type QuestWaveStartMode = "external" | "task-active";
3
+ export interface QuestWaveStartRequest {
4
+ levelId: string;
5
+ waveId: string;
6
+ requestId: string;
7
+ ownerId?: string;
8
+ }
9
+ export interface QuestWaveHostRegistration {
10
+ hostId: string;
11
+ levelId: string;
12
+ waveId: string;
13
+ spawn: () => unknown | null | undefined;
14
+ reclaim: (host: unknown) => void;
15
+ }
16
+ export interface QuestWaveDirectorStatus {
17
+ levelId: string;
18
+ waveId: string;
19
+ activeRequests: number;
20
+ registeredHosts: number;
21
+ spawnedHosts: number;
22
+ pending: boolean;
23
+ }
24
+ export interface QuestWaveTmxHostIdentity {
25
+ hostId: string;
26
+ levelId: string;
27
+ waveId: string;
28
+ tiledObjectId: number;
29
+ targetGuid?: string;
30
+ abilityConfigRef?: string;
31
+ startMode: "task-active";
32
+ }
33
+ export type QuestWaveSourceMatchFailure = "wave-sources-missing" | "tiled-object-id-not-declared" | "tiled-object-id-ambiguous" | "wave-id-mismatch" | "start-mode-mismatch" | "target-guid-mismatch" | "ability-config-ref-mismatch";
34
+ export type QuestWaveSourceMatchResult = {
35
+ ok: true;
36
+ source: QuestRuntimeWaveSource;
37
+ } | {
38
+ ok: false;
39
+ reason: QuestWaveSourceMatchFailure;
40
+ };
41
+ /**
42
+ * Coordinates quest lifecycle requests with TMX-authored spawn hosts.
43
+ *
44
+ * The director never creates units itself. A registered host factory must call
45
+ * the existing map-object spawn path, which in turn attaches the authored
46
+ * Ability/SpawnUnit chain. Requests and host registrations may arrive in either
47
+ * order; both StartWave and StopWave are idempotent by requestId.
48
+ */
49
+ export declare class QuestWaveDirector {
50
+ private readonly onError?;
51
+ private readonly waves;
52
+ private readonly requests;
53
+ private readonly hostKeys;
54
+ constructor(onError?: (error: unknown, operation: "spawn" | "reclaim", hostId: string) => void);
55
+ startWave(input: QuestWaveStartRequest): boolean;
56
+ stopWave(input: QuestWaveStartRequest): boolean;
57
+ stopOwner(ownerId: string): void;
58
+ registerHost(input: QuestWaveHostRegistration): boolean;
59
+ unregisterHost(hostId: string): boolean;
60
+ status(levelId: string, waveId: string): QuestWaveDirectorStatus;
61
+ reset(): void;
62
+ private ensureWave;
63
+ private removeRequest;
64
+ private activate;
65
+ private activateHost;
66
+ private deactivate;
67
+ private reclaimHost;
68
+ private prune;
69
+ }
70
+ export declare function normalizeQuestWaveStartMode(value: unknown): QuestWaveStartMode;
71
+ /**
72
+ * Match a task-active TMX host against the source contract published for the
73
+ * current runtime level. Optional source fields become strict constraints when
74
+ * present. Missing/ambiguous declarations always fail closed.
75
+ */
76
+ export declare function matchTaskActiveQuestWaveSource(host: QuestWaveTmxHostIdentity, waveSources: readonly QuestRuntimeWaveSource[] | null | undefined): QuestWaveSourceMatchResult;
@@ -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,28 @@
1
+ export interface QuestWaveIdentity {
2
+ levelId: string;
3
+ waveId: string;
4
+ memberToken?: number;
5
+ }
6
+ /** Resolve only explicit authored/inherited wave identity; never infer from a generic group. */
7
+ export declare function resolveQuestWaveIdentity(input: {
8
+ inherited?: Partial<QuestWaveIdentity> | null;
9
+ levelId?: unknown;
10
+ explicitWaveId?: unknown;
11
+ marker?: unknown;
12
+ }): QuestWaveIdentity | null;
13
+ /**
14
+ * Deterministic membership ledger for explicitly authored quest waves.
15
+ *
16
+ * A generation completes only when every registered member leaves through the
17
+ * death pipeline. Any ordinary recycle/despawn invalidates that generation;
18
+ * once it drains, a later registration starts a clean generation.
19
+ */
20
+ export declare class QuestWaveLedger {
21
+ private readonly generations;
22
+ private readonly lastGenerationByKey;
23
+ register(levelId: string, waveId: string, memberId: number): number | null;
24
+ /** Returns the completed generation number, or null when no clear occurred. */
25
+ leave(levelId: string, waveId: string, memberId: number, completedByDeath: boolean): number | null;
26
+ memberCount(levelId: string, waveId: string): number;
27
+ clear(): void;
28
+ }
@@ -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,10 @@
1
+ {
2
+ "schema": "cj-release-crypto-commit-v1",
3
+ "packageName": "@icjhd/cj-quest",
4
+ "packageVersion": "2.1.0",
5
+ "securityEpoch": 1,
6
+ "manifestId": "enbiyR5W1H01rfe2S1RDiqNev0tPvx9LM0Zdwq6ApeE",
7
+ "payloadManifestSha256": "sha256:d472808d1d07964d397129d9365fad42a0aa56fc59d7d8bb5c17b9e7ef612ca3",
8
+ "recoveryManifestSha256": "sha256:79bc0c224d4be28f23d29fd24e655e8b9c2c282401056b1ff59160690ae3c2a2",
9
+ "fileCount": 15
10
+ }
@@ -0,0 +1 @@
1
+ �( Yv>T�� �,���l�| d ��F�Yrq�>۳!��������$����\��ٖ�f�\H��"�����x�#>ܣ�ƒ~�z�H�a��/&A��0�&��Ml��J�����ТC|���Kɳ{��OX��.�i��F��j�X���c�%�R�v�|b���|�V���5`��<��אo���%�:�����"{�N~G�c>#��|���I��O=t<m0`<�^pI¦���:�� u�{!�퉡��*I��nK+W�40F�<�����*'���?<��5��ݳlN>4�5;1 �m^o�˩B��:?���p�3K��wl�V�虎�Fͣ+f��F:�5�Y�W*Z�D�눰��]��h��<���‹t|��dF;����3%�̚����Ϊ��λ~MS[̯���:u(�7�����)��0
@@ -0,0 +1,3 @@
1
+ N�m���<��́��t�w��)|��sj��>�/��a��2ܰ��f
2
+ �&�I�QL+�y(�?��g ^t�`����iК���'>\��c��H` �o�̚�En����kk�ܖ��֒�zJu�z��L$�fa�Ȧ��1��D���!�~T���0����z0��
3
+ ��ZZƕ�B�þ�u�u������a�K�-�Q?�{Ӳj���ޅN\
@@ -0,0 +1 @@
1
+ �r��D��IJ5RT�{g��YIx �̓�U��s�`~l�gܵ+|�"l��&��HR �_,����=�9��CY;�*��c<�T�'6�P��+�(O�pO]��?�n���uf�����Q?EN�8�c�ƾ�.*�hM6�����6E�~�e����ϗR2�R{9!t�l9�Q�W�nr�|5l�#a7��ܦH�}�)��6��3�M
@@ -0,0 +1 @@
1
+ 4.h��Q��m�h�@��Ҏ�Hg�5h�T�����H|��J�כ�����Eƙ~ҁ�1D�*���7�b���q�#�@<�f�Y��8
@@ -0,0 +1,2 @@
1
+ $�Ÿ� � Ims�#�|b��$��=}��!�$:���MK�~�qfqW$y�1��1��ݛM���7!a�m��W٧ONmFKss�`��
2
+ �B�kt�@��ľ[�f%���}އa >��x��3���Z�݃���t�oD�*� �U�B��G��O�0�ϒMF�M��
@@ -0,0 +1,197 @@
1
+ {
2
+ "schema": "cj-payload-manifest-envelope-v1",
3
+ "signed": {
4
+ "schema": "cj-encrypted-payload-v2",
5
+ "purpose": "cj-runtime-payload",
6
+ "manifestId": "enbiyR5W1H01rfe2S1RDiqNev0tPvx9LM0Zdwq6ApeE",
7
+ "packageName": "@icjhd/cj-quest",
8
+ "packageVersion": "2.1.0",
9
+ "minCoreSecurityVersion": 1,
10
+ "securityEpoch": 1,
11
+ "keyScope": "package-major",
12
+ "keyId": "line-prod-cj-quest-v2-e1",
13
+ "releaseSalt": "0wcSzAlSQ2NrSFMRrorC+8uVswlGmLsQ8xP2rjSU6Fk=",
14
+ "algorithm": "AES-256-GCM",
15
+ "kdf": "HKDF-SHA256",
16
+ "content": "cocos-safe-obfuscated-esm-js",
17
+ "files": [
18
+ {
19
+ "out": "assets/canonical.js",
20
+ "bin": "files/assets/canonical.js.bin",
21
+ "stub": ".cj-stubs/assets/canonical.js",
22
+ "stubSha256": "sha256:0684cadf5f8a6779b00c67f951f0bf4788c3b027061fe4b47629648c8837d58f",
23
+ "nonce": "ba39sgMHenr/ohwr",
24
+ "authTag": "SWP/NwArQ5antwn8f/oSuA==",
25
+ "ciphertextSha256": "sha256:07abdfb66f4f0224db48fac6d7cbeaecdc5bb3ddbe93fd8b4c43265baa1a6c3d",
26
+ "plaintextSha256": "sha256:da3653d2bb125180c3be4501c7bb14a9c039797719830add41fbb2653ae0d471",
27
+ "aadSchema": "cj-payload-file-aad-v1"
28
+ },
29
+ {
30
+ "out": "assets/event.js",
31
+ "bin": "files/assets/event.js.bin",
32
+ "stub": ".cj-stubs/assets/event.js",
33
+ "stubSha256": "sha256:a9a28eee713bed7eaadd3d3a2ec1592b02418cd7f00f82ef6e4a8f790c675026",
34
+ "nonce": "RLt/4/ZkWVgrB2YE",
35
+ "authTag": "Igvjeai0nyXL4wDQHTJdgQ==",
36
+ "ciphertextSha256": "sha256:ade7457062662565c345bdadad1dfdea66f8e136ed22b1774a9b7eb774336f0d",
37
+ "plaintextSha256": "sha256:2530bca918f3aef2cf5bf289c761d1716ce11e33ae06b45eef27c1a7c53067cf",
38
+ "aadSchema": "cj-payload-file-aad-v1"
39
+ },
40
+ {
41
+ "out": "assets/executor.js",
42
+ "bin": "files/assets/executor.js.bin",
43
+ "stub": ".cj-stubs/assets/executor.js",
44
+ "stubSha256": "sha256:c66b385daedb451fe0f90abb2c0f30b2d1cc3315c2b4606a0e856004f4db84c0",
45
+ "nonce": "icBY8NSWk2JdLsLg",
46
+ "authTag": "0V9IKjqlNXIAZyYdE3OklA==",
47
+ "ciphertextSha256": "sha256:ade6463e0eb768636955d188ccd8e26b3eb6e62dc84bf885ebfa0b1505e898f6",
48
+ "plaintextSha256": "sha256:f4eb32a296e22d5e77fd860f9ceebb48d97adf68f2c5bad9b9636dde143a30a6",
49
+ "aadSchema": "cj-payload-file-aad-v1"
50
+ },
51
+ {
52
+ "out": "assets/loader.js",
53
+ "bin": "files/assets/loader.js.bin",
54
+ "stub": ".cj-stubs/assets/loader.js",
55
+ "stubSha256": "sha256:4209cf2235c89f6b867895e96221d1f2c4b9bafa330874dafa38b0470fe53c69",
56
+ "nonce": "d0hKmyGRRAX6qt0a",
57
+ "authTag": "u98qCZ5oMUuRU6CkXI3QTg==",
58
+ "ciphertextSha256": "sha256:4a42393ccace8c9deca5f7c145a5e46f42cf7da04d8cfdcfca6a9075c8a322e4",
59
+ "plaintextSha256": "sha256:a4f5f8ec4250ea36464627abdf92dd824d3a5724bb4ec138d28557487eb13643",
60
+ "aadSchema": "cj-payload-file-aad-v1"
61
+ },
62
+ {
63
+ "out": "assets/marker.js",
64
+ "bin": "files/assets/marker.js.bin",
65
+ "stub": ".cj-stubs/assets/marker.js",
66
+ "stubSha256": "sha256:11dc1196c7af17a9c5b048200053293191f6c23136a3dd1cd1558952758fab73",
67
+ "nonce": "nS3gr7ya28OAm+nn",
68
+ "authTag": "Mgx3/jpbCJN6DXXuJqzwvw==",
69
+ "ciphertextSha256": "sha256:8ccece982a7594e58affab252c9a0d16e6ab3b713536f9b0409e67cc08c82402",
70
+ "plaintextSha256": "sha256:b99a13c831920cbf70e499dec4699996f89546f65b774b74b4a5bbeaba6d5235",
71
+ "aadSchema": "cj-payload-file-aad-v1"
72
+ },
73
+ {
74
+ "out": "assets/migration.js",
75
+ "bin": "files/assets/migration.js.bin",
76
+ "stub": ".cj-stubs/assets/migration.js",
77
+ "stubSha256": "sha256:abd4266a7acf3fa10bb34c0b52541930ce6d4f647cfdd853a6bdd450b67dc790",
78
+ "nonce": "OWsn5q9qyujNA4/1",
79
+ "authTag": "DM2s38SeDlT1dA/EoAtgyg==",
80
+ "ciphertextSha256": "sha256:724da710021b86611ad7032592ffe2ffb6b5cfb5ccc31ca07669be8c87169bdd",
81
+ "plaintextSha256": "sha256:a46915d7cf0fdb5fe48ae43047b576749a5e4f6c56f076f8b2b48a84ab2113dd",
82
+ "aadSchema": "cj-payload-file-aad-v1"
83
+ },
84
+ {
85
+ "out": "assets/save.js",
86
+ "bin": "files/assets/save.js.bin",
87
+ "stub": ".cj-stubs/assets/save.js",
88
+ "stubSha256": "sha256:5625da9091d995c5e39926e4305a6d2993ea09d723608d7417cfbd47e4da1607",
89
+ "nonce": "/Hqn5fd/CPFvabKI",
90
+ "authTag": "jZrohkKlbrFIPxzF//oaUw==",
91
+ "ciphertextSha256": "sha256:c847f1be3c32d036ae6a961d05839c93c27a7a4f7f36b57318c4acd7a5dfedf6",
92
+ "plaintextSha256": "sha256:20458bba20a251c918b5b44cbd31959fa2f1511beb03548b1e9bbf3123d98802",
93
+ "aadSchema": "cj-payload-file-aad-v1"
94
+ },
95
+ {
96
+ "out": "assets/store.js",
97
+ "bin": "files/assets/store.js.bin",
98
+ "stub": ".cj-stubs/assets/store.js",
99
+ "stubSha256": "sha256:83e6647fc9bb4aa2ddbc9d2984f4c652413ca277d0a794a7a892161d26e3a033",
100
+ "nonce": "lFnPwIeRN5tNcpjw",
101
+ "authTag": "Z6friHISKW5e+2hk6SPigA==",
102
+ "ciphertextSha256": "sha256:f0a402bbd42635ab84696bd0e5787250172ab10ddbb585e197f663767930c0df",
103
+ "plaintextSha256": "sha256:f26b8218cbba485cceae673f31c2ee9916d9631b3c5fa89cd54a2f0fad151d85",
104
+ "aadSchema": "cj-payload-file-aad-v1"
105
+ },
106
+ {
107
+ "out": "assets/system.js",
108
+ "bin": "files/assets/system.js.bin",
109
+ "stub": ".cj-stubs/assets/system.js",
110
+ "stubSha256": "sha256:5e15f54a22398f5bca7d19590474a971312dfafdce7bdf68e58df2a272400b06",
111
+ "nonce": "T9i4h2MtfLCdaYvp",
112
+ "authTag": "tz9C0et38fl4G8Qs6ZjLKg==",
113
+ "ciphertextSha256": "sha256:5a2ed577631b14c5a3c7f30becfd7f6a55c3b5cce1a106607377a6152d7a0b41",
114
+ "plaintextSha256": "sha256:7e8ca0a96f21d6c076b4d15a98f3194fbf8943d10dd2ca5ca4c2cb80600d5c1f",
115
+ "aadSchema": "cj-payload-file-aad-v1"
116
+ },
117
+ {
118
+ "out": "assets/target-index.js",
119
+ "bin": "files/assets/target-index.js.bin",
120
+ "stub": ".cj-stubs/assets/target-index.js",
121
+ "stubSha256": "sha256:fbdc8b486c616678148440cda625441e4675a79c0a88bc4d0af94e720f2a0572",
122
+ "nonce": "O4t3OqwhWhdfyMtb",
123
+ "authTag": "56WulumHVYUwQi/xK5SOfQ==",
124
+ "ciphertextSha256": "sha256:7210525fe6173848e1e34312800143a97cd02309c9ef071fa2409872e71f74a0",
125
+ "plaintextSha256": "sha256:9575617c3d390137f07b2c3008a68e3c84ed72508cc84cc4493718de206ce2aa",
126
+ "aadSchema": "cj-payload-file-aad-v1"
127
+ },
128
+ {
129
+ "out": "assets/testing.js",
130
+ "bin": "files/assets/testing.js.bin",
131
+ "stub": ".cj-stubs/assets/testing.js",
132
+ "stubSha256": "sha256:75d26344da0e97464455766c8ed67f9637fc45c6fae2e6025a59f2e628419e93",
133
+ "nonce": "4o8trY1leLF65RH8",
134
+ "authTag": "aL8d5GA1wnZLGy+RGc3FFg==",
135
+ "ciphertextSha256": "sha256:95219414234f660059a696bf6947c8a885e7cf8c852f720ca4ade96a6129d124",
136
+ "plaintextSha256": "sha256:c28fc3f16dfefd0f2c01d693d5d1828fd57ebca2f2924e6a69485003528dbbdb",
137
+ "aadSchema": "cj-payload-file-aad-v1"
138
+ },
139
+ {
140
+ "out": "assets/types.js",
141
+ "bin": "files/assets/types.js.bin",
142
+ "stub": ".cj-stubs/assets/types.js",
143
+ "stubSha256": "sha256:de0d9913c374957a31caa27245f5de9fbc88f763a5cb3dfb8e04b2ef07db241b",
144
+ "nonce": "pJViiA2B30/XcnzT",
145
+ "authTag": "bGW6pCys0UdtO7h0X2Cvxg==",
146
+ "ciphertextSha256": "sha256:cb1bd729c5604a0ad83e71ad533eec53bc3a59dffce3c3573aa505930be5936c",
147
+ "plaintextSha256": "sha256:7cf15fa393f31146a357a83353506f8b51b565fe679e873faae3773ec6110439",
148
+ "aadSchema": "cj-payload-file-aad-v1"
149
+ },
150
+ {
151
+ "out": "assets/wave-director.js",
152
+ "bin": "files/assets/wave-director.js.bin",
153
+ "stub": ".cj-stubs/assets/wave-director.js",
154
+ "stubSha256": "sha256:b99990993a02ea97d586ddaa82c69a141f6b03af0fa381834595ec0962e1041e",
155
+ "nonce": "WI28rQz0yrpCMz8q",
156
+ "authTag": "AG6sDGPwobe/6hqqfqobeg==",
157
+ "ciphertextSha256": "sha256:231edc843808f10b86ff92b155cf89d8101520b65f984331c988ee6cc35280df",
158
+ "plaintextSha256": "sha256:88c680b22971b6e06241832f10f0ad2718545ef7cc7dc449df2010df0b881451",
159
+ "aadSchema": "cj-payload-file-aad-v1"
160
+ },
161
+ {
162
+ "out": "assets/wave-ledger.js",
163
+ "bin": "files/assets/wave-ledger.js.bin",
164
+ "stub": ".cj-stubs/assets/wave-ledger.js",
165
+ "stubSha256": "sha256:f0e603c9cc35734cefe57669fb0f773ac5d46dd72eab9c5a09af03a4030a1b5f",
166
+ "nonce": "PzBGpeKi2vnSq48H",
167
+ "authTag": "4z/i1Xenb85XwRIe1pvflw==",
168
+ "ciphertextSha256": "sha256:fed2f6139df5a0f70003f293450025f74dc650607fcfda7d6851e4c579b68efc",
169
+ "plaintextSha256": "sha256:4cc5e317e99973979d3eaaef9cb8685498640b4987d547454cce66ebc0c76a34",
170
+ "aadSchema": "cj-payload-file-aad-v1"
171
+ },
172
+ {
173
+ "out": "index.js",
174
+ "bin": "files/index.js.bin",
175
+ "stub": ".cj-stubs/index.js",
176
+ "stubSha256": "sha256:8260755b77e88c246729b56e8e270323f85688824ded02f82bb7bc5ad1fc0fb0",
177
+ "nonce": "SoZPMrFgnpg72Vj/",
178
+ "authTag": "WxObBV1IFBwCG/Q27KD4Bw==",
179
+ "ciphertextSha256": "sha256:1b00e9c1eebdb24a8166b71556a22fe2774ae483ede399e113e3c116dbb778db",
180
+ "plaintextSha256": "sha256:f87c31e0ec4536d4af48b70bca2a6ce044e4717d27185a8b64d1601904e1c206",
181
+ "aadSchema": "cj-payload-file-aad-v1"
182
+ }
183
+ ],
184
+ "publicExports": [],
185
+ "createdAt": "2026-09-01T18:45:23.926Z",
186
+ "issuer": {
187
+ "algorithm": "Ed25519",
188
+ "keyId": "payload-prod-2026-01",
189
+ "keysetVersion": 1
190
+ }
191
+ },
192
+ "signature": {
193
+ "algorithm": "Ed25519",
194
+ "keyId": "payload-prod-2026-01",
195
+ "value": "yQ/kCvombQB06rIvzAHP/9TsjEUDD1PCcjcwSKjNnHoi0SekvncxBk3V4sdHkZChlas3i3AiCJXxFdGVkMzWDw=="
196
+ }
197
+ }
package/index.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ export * from "./assets/types";
2
+ export * from "./assets/loader";
3
+ export * from "./assets/target-index";
4
+ export * from "./assets/migration";
5
+ export * from "./assets/wave-ledger";
6
+ export * from "./assets/wave-director";
7
+ export * from "./assets/save";
8
+ export * from "./assets/event";
9
+ export * from "./assets/system";
10
+ export type { QuestRetryResult } from "./assets/store";
package/index.js ADDED
@@ -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';
package/package.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "@icjhd/cj-quest",
3
+ "version": "2.1.0",
4
+ "description": "Host-neutral deterministic quest runtime core",
5
+ "main": "./index.js",
6
+ "publishConfig": {
7
+ "access": "public",
8
+ "registry": "https://registry.npmjs.org"
9
+ },
10
+ "license": "SEE LICENSE IN README.md",
11
+ "type": "module",
12
+ "browser": "./index.js",
13
+ "types": "./index.d.ts",
14
+ "exports": {
15
+ ".": {
16
+ "types": "./index.d.ts",
17
+ "browser": "./index.js",
18
+ "import": "./index.js",
19
+ "default": "./index.js"
20
+ },
21
+ "./index.js": {
22
+ "types": "./index.d.ts",
23
+ "browser": "./index.js",
24
+ "import": "./index.js",
25
+ "default": "./index.js"
26
+ },
27
+ "./assets/*": {
28
+ "types": "./assets/*.d.ts",
29
+ "browser": "./assets/*.js",
30
+ "import": "./assets/*.js",
31
+ "default": "./assets/*.js"
32
+ },
33
+ "./package.json": "./package.json"
34
+ },
35
+ "files": [
36
+ "package.json",
37
+ "README.md",
38
+ "index.d.ts",
39
+ "index.js",
40
+ "assets/**/*.d.ts",
41
+ "assets/**/*.js",
42
+ "encrypted-payload-v2/**",
43
+ ".cj-stubs/**",
44
+ "cj-release-commit.json",
45
+ ".cj-package.json"
46
+ ],
47
+ "dependencies": {}
48
+ }