@dcl/sdk-commands 7.29.1-36625469671.commit-2d5ffac → 7.29.1-36716815278.commit-ab46c81
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/commands/code-to-composite/scene-executor.js +18 -1
- package/dist/commands/code-to-composite/scene-executor.js.map +1 -1
- package/dist/commands/start/index.d.ts +0 -1
- package/dist/commands/start/index.js +6 -24
- package/dist/commands/start/index.js.map +1 -1
- package/dist/commands/start/server/routes.d.ts +1 -1
- package/dist/commands/start/server/routes.js +2 -6
- package/dist/commands/start/server/routes.js.map +1 -1
- package/dist/commands/start/utils.d.ts +0 -32
- package/dist/commands/start/utils.js +0 -72
- package/dist/commands/start/utils.js.map +1 -1
- package/dist/components/analytics.d.ts +1 -75
- package/dist/components/analytics.js +2 -3
- package/dist/components/analytics.js.map +1 -1
- package/dist/logic/bundle.js +1 -32
- package/dist/logic/bundle.js.map +1 -1
- package/dist/logic/config.d.ts +0 -1
- package/dist/logic/config.js +0 -7
- package/dist/logic/config.js.map +1 -1
- package/dist/logic/error.d.ts +1 -1
- package/dist/logic/error.js.map +1 -1
- package/dist/logic/exec.d.ts +0 -1
- package/dist/logic/exec.js +2 -2
- package/dist/logic/exec.js.map +1 -1
- package/dist/logic/lang.js +1 -1
- package/dist/logic/project-files.js +0 -2
- package/dist/logic/project-files.js.map +1 -1
- package/dist/logic/scene-validations.d.ts +1 -8
- package/dist/logic/scene-validations.js.map +1 -1
- package/package.json +4 -4
- package/dist/commands/sdk-server-logs/index.d.ts +0 -24
- package/dist/commands/sdk-server-logs/index.js +0 -313
- package/dist/commands/sdk-server-logs/index.js.map +0 -1
- package/dist/commands/start/dcl-env.d.ts +0 -16
- package/dist/commands/start/dcl-env.js +0 -51
- package/dist/commands/start/dcl-env.js.map +0 -1
- package/dist/commands/start/multiplayer-server.d.ts +0 -35
- package/dist/commands/start/multiplayer-server.js +0 -244
- package/dist/commands/start/multiplayer-server.js.map +0 -1
- package/dist/commands/start/server/runtime-env.d.ts +0 -84
- package/dist/commands/start/server/runtime-env.js +0 -415
- package/dist/commands/start/server/runtime-env.js.map +0 -1
- package/dist/commands/start/server/storage-service.d.ts +0 -8
- package/dist/commands/start/server/storage-service.js +0 -243
- package/dist/commands/start/server/storage-service.js.map +0 -1
- package/dist/commands/storage/env.d.ts +0 -5
- package/dist/commands/storage/env.js +0 -86
- package/dist/commands/storage/env.js.map +0 -1
- package/dist/commands/storage/index.d.ts +0 -26
- package/dist/commands/storage/index.js +0 -142
- package/dist/commands/storage/index.js.map +0 -1
- package/dist/commands/storage/player.d.ts +0 -5
- package/dist/commands/storage/player.js +0 -143
- package/dist/commands/storage/player.js.map +0 -1
- package/dist/commands/storage/scene.d.ts +0 -5
- package/dist/commands/storage/scene.js +0 -105
- package/dist/commands/storage/scene.js.map +0 -1
- package/dist/commands/storage/shared.d.ts +0 -62
- package/dist/commands/storage/shared.js +0 -260
- package/dist/commands/storage/shared.js.map +0 -1
- package/dist/commands/storage/types.d.ts +0 -56
- package/dist/commands/storage/types.js +0 -23
- package/dist/commands/storage/types.js.map +0 -1
- package/dist/logic/auth-chain-headers.d.ts +0 -11
- package/dist/logic/auth-chain-headers.js +0 -25
- package/dist/logic/auth-chain-headers.js.map +0 -1
- package/dist/logic/lsd-realm.d.ts +0 -5
- package/dist/logic/lsd-realm.js +0 -28
- package/dist/logic/lsd-realm.js.map +0 -1
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { Result } from 'arg';
|
|
2
|
-
import { CliComponents } from '../../components';
|
|
3
|
-
export declare const args: {
|
|
4
|
-
'--help': BooleanConstructor;
|
|
5
|
-
'-h': string;
|
|
6
|
-
'--dir': StringConstructor;
|
|
7
|
-
'--target': StringConstructor;
|
|
8
|
-
'-t': string;
|
|
9
|
-
'--port': NumberConstructor;
|
|
10
|
-
'-p': string;
|
|
11
|
-
'--https': BooleanConstructor;
|
|
12
|
-
'--no-browser': BooleanConstructor;
|
|
13
|
-
'-b': string;
|
|
14
|
-
'--value': StringConstructor;
|
|
15
|
-
'-v': string;
|
|
16
|
-
'--address': StringConstructor;
|
|
17
|
-
'-a': string;
|
|
18
|
-
'--confirm': BooleanConstructor;
|
|
19
|
-
'-c': string;
|
|
20
|
-
};
|
|
21
|
-
export interface Options {
|
|
22
|
-
args: Result<typeof args>;
|
|
23
|
-
components: CliComponents;
|
|
24
|
-
}
|
|
25
|
-
export type StorageType = 'env' | 'scene' | 'player';
|
|
26
|
-
export interface StorageInfo {
|
|
27
|
-
storageType?: StorageType;
|
|
28
|
-
key?: string;
|
|
29
|
-
value?: string;
|
|
30
|
-
address?: string;
|
|
31
|
-
world?: string;
|
|
32
|
-
action: 'get' | 'set' | 'delete' | 'clear';
|
|
33
|
-
targetUrl: string;
|
|
34
|
-
rootCID: string;
|
|
35
|
-
timestamp: string;
|
|
36
|
-
metadata: string;
|
|
37
|
-
baseParcel: string;
|
|
38
|
-
parcels: string[];
|
|
39
|
-
skipValidations: boolean;
|
|
40
|
-
debug: boolean;
|
|
41
|
-
isWorld: boolean;
|
|
42
|
-
}
|
|
43
|
-
export interface LinkerOptions {
|
|
44
|
-
linkerPort?: number;
|
|
45
|
-
openBrowser: boolean;
|
|
46
|
-
isHttps: boolean;
|
|
47
|
-
}
|
|
48
|
-
export interface AuthHeaders {
|
|
49
|
-
[key: string]: string;
|
|
50
|
-
}
|
|
51
|
-
export interface ApiResponse {
|
|
52
|
-
ok: boolean;
|
|
53
|
-
status: number;
|
|
54
|
-
text: () => Promise<string>;
|
|
55
|
-
json: () => Promise<any>;
|
|
56
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.args = void 0;
|
|
4
|
-
const args_1 = require("../../logic/args");
|
|
5
|
-
exports.args = (0, args_1.declareArgs)({
|
|
6
|
-
'--help': Boolean,
|
|
7
|
-
'-h': '--help',
|
|
8
|
-
'--dir': String,
|
|
9
|
-
'--target': String,
|
|
10
|
-
'-t': '--target',
|
|
11
|
-
'--port': Number,
|
|
12
|
-
'-p': '--port',
|
|
13
|
-
'--https': Boolean,
|
|
14
|
-
'--no-browser': Boolean,
|
|
15
|
-
'-b': '--no-browser',
|
|
16
|
-
'--value': String,
|
|
17
|
-
'-v': '--value',
|
|
18
|
-
'--address': String,
|
|
19
|
-
'-a': '--address',
|
|
20
|
-
'--confirm': Boolean,
|
|
21
|
-
'-c': '--confirm'
|
|
22
|
-
});
|
|
23
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/commands/storage/types.ts"],"names":[],"mappings":";;;AAEA,2CAA8C;AAEjC,QAAA,IAAI,GAAG,IAAA,kBAAW,EAAC;IAC9B,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,MAAM;IAClB,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,MAAM;IAChB,IAAI,EAAE,QAAQ;IACd,SAAS,EAAE,OAAO;IAClB,cAAc,EAAE,OAAO;IACvB,IAAI,EAAE,cAAc;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,MAAM;IACnB,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,OAAO;IACpB,IAAI,EAAE,WAAW;CAClB,CAAC,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AuthChain } from '@dcl/crypto';
|
|
2
|
-
/**
|
|
3
|
-
* Creates HTTP headers from an auth chain following ADR-44 (Signed Fetch) format.
|
|
4
|
-
* Used for authenticated requests to Decentraland services.
|
|
5
|
-
*
|
|
6
|
-
* @param authChain - The authentication chain from the linker dApp or wallet signing
|
|
7
|
-
* @param timestamp - Unix timestamp of the request
|
|
8
|
-
* @param metadata - JSON string with request metadata (e.g., { key, value, world })
|
|
9
|
-
* @returns Record of HTTP headers to include in the request
|
|
10
|
-
*/
|
|
11
|
-
export declare function createAuthChainHeaders(authChain: AuthChain, timestamp: string, metadata: string): Record<string, string>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createAuthChainHeaders = createAuthChainHeaders;
|
|
4
|
-
const AUTH_CHAIN_HEADER_PREFIX = 'x-identity-auth-chain-';
|
|
5
|
-
const AUTH_TIMESTAMP_HEADER = 'x-identity-timestamp';
|
|
6
|
-
const AUTH_METADATA_HEADER = 'x-identity-metadata';
|
|
7
|
-
/**
|
|
8
|
-
* Creates HTTP headers from an auth chain following ADR-44 (Signed Fetch) format.
|
|
9
|
-
* Used for authenticated requests to Decentraland services.
|
|
10
|
-
*
|
|
11
|
-
* @param authChain - The authentication chain from the linker dApp or wallet signing
|
|
12
|
-
* @param timestamp - Unix timestamp of the request
|
|
13
|
-
* @param metadata - JSON string with request metadata (e.g., { key, value, world })
|
|
14
|
-
* @returns Record of HTTP headers to include in the request
|
|
15
|
-
*/
|
|
16
|
-
function createAuthChainHeaders(authChain, timestamp, metadata) {
|
|
17
|
-
const headers = {};
|
|
18
|
-
authChain.forEach((link, i) => {
|
|
19
|
-
headers[AUTH_CHAIN_HEADER_PREFIX + i] = JSON.stringify(link);
|
|
20
|
-
});
|
|
21
|
-
headers[AUTH_TIMESTAMP_HEADER] = timestamp;
|
|
22
|
-
headers[AUTH_METADATA_HEADER] = metadata;
|
|
23
|
-
return headers;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=auth-chain-headers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth-chain-headers.js","sourceRoot":"","sources":["../../src/logic/auth-chain-headers.ts"],"names":[],"mappings":";;AAeA,wDAeC;AA5BD,MAAM,wBAAwB,GAAG,wBAAwB,CAAA;AACzD,MAAM,qBAAqB,GAAG,sBAAsB,CAAA;AACpD,MAAM,oBAAoB,GAAG,qBAAqB,CAAA;AAElD;;;;;;;;GAQG;AACH,SAAgB,sBAAsB,CACpC,SAAoB,EACpB,SAAiB,EACjB,QAAgB;IAEhB,MAAM,OAAO,GAA2B,EAAE,CAAA;IAE1C,SAAS,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE;QAC5B,OAAO,CAAC,wBAAwB,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;IAC9D,CAAC,CAAC,CAAA;IAEF,OAAO,CAAC,qBAAqB,CAAC,GAAG,SAAS,CAAA;IAC1C,OAAO,CAAC,oBAAoB,CAAC,GAAG,QAAQ,CAAA;IAExC,OAAO,OAAO,CAAA;AAChB,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/** Pulse's `MaxRealmLength`. */
|
|
2
|
-
export declare const PULSE_MAX_REALM_LENGTH = 255;
|
|
3
|
-
/** The scene entity id the preview server already serves, reused verbatim. */
|
|
4
|
-
export declare function lsdPreviewSceneId(projectRoot: string): string;
|
|
5
|
-
export declare function lsdRealmKey(projectRoot: string): string;
|
package/dist/logic/lsd-realm.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PULSE_MAX_REALM_LENGTH = void 0;
|
|
4
|
-
exports.lsdPreviewSceneId = lsdPreviewSceneId;
|
|
5
|
-
exports.lsdRealmKey = lsdRealmKey;
|
|
6
|
-
// Local Scene Development identity and the Pulse realm key.
|
|
7
|
-
// Pulse matches realms by exact string and nothing is exchanged, so a derivation
|
|
8
|
-
// that drifts is invisible: peers just never see each other.
|
|
9
|
-
// Contract and caveats: docs/lsd-identity-and-pulse-realm.md
|
|
10
|
-
const crypto_1 = require("crypto");
|
|
11
|
-
const project_files_1 = require("./project-files");
|
|
12
|
-
/** Pulse's `MaxRealmLength`. */
|
|
13
|
-
exports.PULSE_MAX_REALM_LENGTH = 255;
|
|
14
|
-
const LSD_REALM_PREFIX = 'lsd:';
|
|
15
|
-
const LSD_REALM_HASHED_PREFIX = 'lsd:sha256:';
|
|
16
|
-
/** The scene entity id the preview server already serves, reused verbatim. */
|
|
17
|
-
function lsdPreviewSceneId(projectRoot) {
|
|
18
|
-
return (0, project_files_1.b64HashingFunction)(projectRoot);
|
|
19
|
-
}
|
|
20
|
-
function lsdRealmKey(projectRoot) {
|
|
21
|
-
const previewSceneId = lsdPreviewSceneId(projectRoot);
|
|
22
|
-
const realmKey = LSD_REALM_PREFIX + previewSceneId;
|
|
23
|
-
// hashed, not truncated: every party must land on the same string unprompted
|
|
24
|
-
if (realmKey.length <= exports.PULSE_MAX_REALM_LENGTH)
|
|
25
|
-
return realmKey;
|
|
26
|
-
return LSD_REALM_HASHED_PREFIX + (0, crypto_1.createHash)('sha256').update(previewSceneId).digest('hex');
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=lsd-realm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lsd-realm.js","sourceRoot":"","sources":["../../src/logic/lsd-realm.ts"],"names":[],"mappings":";;;AAcA,8CAEC;AAED,kCAQC;AA1BD,4DAA4D;AAC5D,iFAAiF;AACjF,6DAA6D;AAC7D,6DAA6D;AAC7D,mCAAmC;AACnC,mDAAoD;AAEpD,gCAAgC;AACnB,QAAA,sBAAsB,GAAG,GAAG,CAAA;AAEzC,MAAM,gBAAgB,GAAG,MAAM,CAAA;AAC/B,MAAM,uBAAuB,GAAG,aAAa,CAAA;AAE7C,8EAA8E;AAC9E,SAAgB,iBAAiB,CAAC,WAAmB;IACnD,OAAO,IAAA,kCAAkB,EAAC,WAAW,CAAC,CAAA;AACxC,CAAC;AAED,SAAgB,WAAW,CAAC,WAAmB;IAC7C,MAAM,cAAc,GAAG,iBAAiB,CAAC,WAAW,CAAC,CAAA;IACrD,MAAM,QAAQ,GAAG,gBAAgB,GAAG,cAAc,CAAA;IAElD,6EAA6E;IAC7E,IAAI,QAAQ,CAAC,MAAM,IAAI,8BAAsB;QAAE,OAAO,QAAQ,CAAA;IAE9D,OAAO,uBAAuB,GAAG,IAAA,mBAAU,EAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;AAC5F,CAAC"}
|