bulletin-deploy 0.7.2 → 0.7.4
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/README.md +26 -0
- package/bin/bulletin-deploy +94 -1
- package/dist/bug-report.js +4 -3
- package/dist/{chunk-4UNQGG3O.js → chunk-CQ753LDA.js} +1 -1
- package/dist/{chunk-4FUUYJP2.js → chunk-DHQ3JGF4.js} +67 -75
- package/dist/{chunk-VJLTIZ6S.js → chunk-SVKCVNXD.js} +126 -68
- package/dist/chunk-UJP2PZGU.js +155 -0
- package/dist/chunk-YREZFNCC.js +869 -0
- package/dist/{chunk-LMSMDKVU.js → chunk-YYULF2JX.js} +2 -2
- package/dist/deploy.d.ts +4 -2
- package/dist/deploy.js +8 -5
- package/dist/dotns.d.ts +25 -39
- package/dist/dotns.js +11 -4
- package/dist/index.d.ts +2 -1
- package/dist/index.js +27 -7
- package/dist/memory-report.js +2 -1
- package/dist/run-state.d.ts +22 -0
- package/dist/run-state.js +21 -0
- package/dist/telemetry.d.ts +5 -1
- package/dist/telemetry.js +8 -1
- package/dist/version-check.js +3 -2
- package/package.json +3 -2
- package/dist/chunk-NEV6WTYM.js +0 -999
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
classifyErrorArea,
|
|
3
3
|
isInteractive,
|
|
4
4
|
promptYesNo
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CQ753LDA.js";
|
|
6
6
|
import {
|
|
7
7
|
VERSION,
|
|
8
8
|
getCurrentSentryTraceId
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DHQ3JGF4.js";
|
|
10
10
|
|
|
11
11
|
// src/bug-report.ts
|
|
12
12
|
import { execSync, execFileSync } from "child_process";
|
package/dist/deploy.d.ts
CHANGED
|
@@ -25,9 +25,11 @@ interface ExistingProvider {
|
|
|
25
25
|
signer?: PolkadotSigner;
|
|
26
26
|
ss58?: string;
|
|
27
27
|
reconnect?: () => Promise<ProviderResult>;
|
|
28
|
+
fetchNonce?: (rpc: string | string[], ss58: string) => Promise<number>;
|
|
28
29
|
}
|
|
29
30
|
declare const DEFAULT_BULLETIN_RPC = "wss://paseo-bulletin-rpc.polkadot.io";
|
|
30
31
|
declare const DEFAULT_POOL_SIZE = 10;
|
|
32
|
+
declare const CHUNK_MORTALITY_PERIOD = 16;
|
|
31
33
|
declare function isConnectionError(error: any): boolean;
|
|
32
34
|
declare function deriveRootSigner(mnemonic: string, path?: string): {
|
|
33
35
|
signer: PolkadotSigner;
|
|
@@ -43,7 +45,7 @@ declare const ENCRYPT_KEY_LEN = 32;
|
|
|
43
45
|
declare const ENCRYPT_PBKDF2_ITERATIONS = 100000;
|
|
44
46
|
declare function encryptContent(data: Uint8Array, password: string): Promise<Uint8Array>;
|
|
45
47
|
declare function storeFile(contentBytes: Uint8Array, { client: existingClient, unsafeApi: existingApi, signer: existingSigner }?: ExistingProvider): Promise<string>;
|
|
46
|
-
declare function storeChunkedContent(chunks: Uint8Array[], { client: existingClient, unsafeApi: existingApi, signer: existingSigner, ss58: existingSS58, reconnect }?: ExistingProvider): Promise<string>;
|
|
48
|
+
declare function storeChunkedContent(chunks: Uint8Array[], { client: existingClient, unsafeApi: existingApi, signer: existingSigner, ss58: existingSS58, reconnect, fetchNonce: fetchNonceOverride }?: ExistingProvider): Promise<string>;
|
|
47
49
|
declare function chunk(data: Uint8Array, size?: number): Uint8Array[];
|
|
48
50
|
declare function hasIPFS(): boolean;
|
|
49
51
|
declare function merkleize(directoryPath: string, outputCarPath: string): Promise<{
|
|
@@ -103,4 +105,4 @@ interface DeployOptions {
|
|
|
103
105
|
declare function estimateUploadBytes(content: DeployContent): Promise<number | null>;
|
|
104
106
|
declare function deploy(content: DeployContent, domainName?: string | null, options?: DeployOptions): Promise<DeployResult>;
|
|
105
107
|
|
|
106
|
-
export { DEFAULT_BULLETIN_RPC, DEFAULT_POOL_SIZE, type DeployContent, type DeployOptions, type DeployResult, ENCRYPT_KEY_LEN, ENCRYPT_MAGIC, ENCRYPT_NONCE_LEN, ENCRYPT_PBKDF2_ITERATIONS, ENCRYPT_SALT_LEN, ENCRYPT_TAG_LEN, EXIT_CODE_NO_RETRY, NonRetryableError, type StoreDirectoryOptions, chunk, computeStorageCid, createCID, deploy, deriveRootSigner, encodeContenthash, encryptContent, estimateUploadBytes, friendlyChainError, hasIPFS, isConnectionError, merkleize, storeChunkedContent, storeDirectory, storeFile };
|
|
108
|
+
export { CHUNK_MORTALITY_PERIOD, DEFAULT_BULLETIN_RPC, DEFAULT_POOL_SIZE, type DeployContent, type DeployOptions, type DeployResult, ENCRYPT_KEY_LEN, ENCRYPT_MAGIC, ENCRYPT_NONCE_LEN, ENCRYPT_PBKDF2_ITERATIONS, ENCRYPT_SALT_LEN, ENCRYPT_TAG_LEN, EXIT_CODE_NO_RETRY, NonRetryableError, type StoreDirectoryOptions, chunk, computeStorageCid, createCID, deploy, deriveRootSigner, encodeContenthash, encryptContent, estimateUploadBytes, friendlyChainError, hasIPFS, isConnectionError, merkleize, storeChunkedContent, storeDirectory, storeFile };
|
package/dist/deploy.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
CHUNK_MORTALITY_PERIOD,
|
|
2
3
|
DEFAULT_BULLETIN_RPC,
|
|
3
4
|
DEFAULT_POOL_SIZE,
|
|
4
5
|
ENCRYPT_KEY_LEN,
|
|
@@ -24,16 +25,18 @@ import {
|
|
|
24
25
|
storeChunkedContent,
|
|
25
26
|
storeDirectory,
|
|
26
27
|
storeFile
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-SVKCVNXD.js";
|
|
29
|
+
import "./chunk-YYULF2JX.js";
|
|
30
|
+
import "./chunk-CQ753LDA.js";
|
|
31
|
+
import "./chunk-YREZFNCC.js";
|
|
31
32
|
import "./chunk-2Q2WSKFD.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-DHQ3JGF4.js";
|
|
34
|
+
import "./chunk-UJP2PZGU.js";
|
|
33
35
|
import "./chunk-B7GUYYAN.js";
|
|
34
36
|
import "./chunk-JHNW2EKY.js";
|
|
35
37
|
import "./chunk-QGM4M3NI.js";
|
|
36
38
|
export {
|
|
39
|
+
CHUNK_MORTALITY_PERIOD,
|
|
37
40
|
DEFAULT_BULLETIN_RPC,
|
|
38
41
|
DEFAULT_POOL_SIZE,
|
|
39
42
|
ENCRYPT_KEY_LEN,
|
package/dist/dotns.d.ts
CHANGED
|
@@ -18,6 +18,13 @@ interface PriceValidationResult {
|
|
|
18
18
|
userStatus: number;
|
|
19
19
|
message: string;
|
|
20
20
|
}
|
|
21
|
+
interface ParsedDomainName {
|
|
22
|
+
isSubdomain: boolean;
|
|
23
|
+
label: string;
|
|
24
|
+
sublabel: string | null;
|
|
25
|
+
parentLabel: string | null;
|
|
26
|
+
fullName: string;
|
|
27
|
+
}
|
|
21
28
|
interface DotnsPreflightResult {
|
|
22
29
|
label: string;
|
|
23
30
|
classification: {
|
|
@@ -60,7 +67,13 @@ declare const WS_HEARTBEAT_TIMEOUT_MS: number;
|
|
|
60
67
|
declare const DOTNS_TX_MAX_ATTEMPTS: number;
|
|
61
68
|
declare function classifyTxRetryDecision(err: unknown): "retry" | "abort";
|
|
62
69
|
declare const DEFAULT_MNEMONIC: string;
|
|
63
|
-
declare function fetchNonce(rpc: string, ss58Address: string): Promise<number>;
|
|
70
|
+
declare function fetchNonce(rpc: string | string[], ss58Address: string): Promise<number>;
|
|
71
|
+
declare function verifyNonceAdvanced(endpoints: string[], ss58Address: string, originalNonce: number): Promise<{
|
|
72
|
+
advanced: true;
|
|
73
|
+
witnessRpc: string;
|
|
74
|
+
} | {
|
|
75
|
+
advanced: false;
|
|
76
|
+
}>;
|
|
64
77
|
declare const ProofOfPersonhoodStatus: {
|
|
65
78
|
readonly NoStatus: 0;
|
|
66
79
|
readonly ProofOfPersonhoodLite: 1;
|
|
@@ -84,6 +97,7 @@ declare function simulateUserStatus(currentStatus: number, requiredStatus: numbe
|
|
|
84
97
|
explicitStatus?: number;
|
|
85
98
|
isTestnet: boolean;
|
|
86
99
|
}): number;
|
|
100
|
+
declare function parseDomainName(input: string): ParsedDomainName;
|
|
87
101
|
declare function parseProofOfPersonhoodStatus(status: string): number;
|
|
88
102
|
declare function popStatusName(status: number): string;
|
|
89
103
|
declare class ReviveClientWrapper {
|
|
@@ -97,28 +111,9 @@ declare class ReviveClientWrapper {
|
|
|
97
111
|
constructor(client: any);
|
|
98
112
|
getEvmAddress(substrateAddress: string): Promise<string>;
|
|
99
113
|
performDryRunCall(originSubstrateAddress: string, contractAddress: string, value: bigint, encodedData: string): Promise<any>;
|
|
100
|
-
estimateGasForCall(originSubstrateAddress: string, contractAddress: string, value: bigint, encodedData: string): Promise<any>;
|
|
101
114
|
checkIfAccountMapped(substrateAddress: string): Promise<boolean>;
|
|
102
|
-
ensureAccountMapped(substrateAddress: string, signer: PolkadotSigner): Promise<void>;
|
|
103
|
-
signAndSubmitExtrinsic(extrinsic: any, signer: PolkadotSigner, statusCallback: (status: string) => void, _opts?: {
|
|
104
|
-
nonceFallback?: {
|
|
105
|
-
rpc: string;
|
|
106
|
-
senderSS58: string;
|
|
107
|
-
expectedNonce: number;
|
|
108
|
-
};
|
|
109
|
-
}): Promise<string>;
|
|
110
|
-
signAndSubmitWithRetry(buildExtrinsic: () => any, signer: PolkadotSigner, statusCallback: (status: string) => void, label: string, opts?: {
|
|
111
|
-
nonceFallback?: {
|
|
112
|
-
rpc: string;
|
|
113
|
-
senderSS58: string;
|
|
114
|
-
expectedNonce: number;
|
|
115
|
-
};
|
|
116
|
-
}): Promise<string>;
|
|
117
|
-
submitTransaction(contractAddress: string, value: bigint, encodedData: string, signerSubstrateAddress: string, signer: PolkadotSigner, statusCallback: (status: string) => void, { rpc, useNoncePolling }?: {
|
|
118
|
-
rpc?: string;
|
|
119
|
-
useNoncePolling?: boolean;
|
|
120
|
-
}): Promise<string>;
|
|
121
115
|
}
|
|
116
|
+
declare function runDotnsCli(argv: string[], env?: Record<string, string>): Promise<unknown>;
|
|
122
117
|
declare class DotNS {
|
|
123
118
|
client: any | null;
|
|
124
119
|
clientWrapper: ReviveClientWrapper | null;
|
|
@@ -127,36 +122,27 @@ declare class DotNS {
|
|
|
127
122
|
evmAddress: string | null;
|
|
128
123
|
signer: PolkadotSigner | null;
|
|
129
124
|
connected: boolean;
|
|
125
|
+
private _mnemonic;
|
|
126
|
+
private _keyUri;
|
|
130
127
|
constructor();
|
|
131
128
|
connect(options?: DotNSConnectOptions): Promise<this>;
|
|
132
129
|
ensureConnected(): void;
|
|
133
130
|
private _testnetCache;
|
|
134
131
|
isTestnet(): Promise<boolean>;
|
|
135
132
|
contractCall(contractAddress: string, contractAbi: readonly any[], functionName: string, args?: any[]): Promise<any>;
|
|
136
|
-
contractTransaction(contractAddress: string, value: bigint, contractAbi: readonly any[], functionName: string, args?: any[], statusCallback?: (status: string) => void, { useNoncePolling }?: {
|
|
137
|
-
useNoncePolling?: boolean;
|
|
138
|
-
}): Promise<string>;
|
|
139
133
|
checkOwnership(label: string, ownerAddress?: string | null): Promise<OwnershipResult>;
|
|
140
|
-
classifyName(label: string): Promise<{
|
|
141
|
-
requiredStatus: number;
|
|
142
|
-
message: string;
|
|
143
|
-
}>;
|
|
144
134
|
getUserPopStatus(ownerAddress?: string | null): Promise<number>;
|
|
145
135
|
setUserPopStatus(status: number): Promise<void>;
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
136
|
+
checkSubdomainOwnership(sublabel: string, parentLabel: string): Promise<OwnershipResult>;
|
|
137
|
+
registerSubdomain(sublabel: string, parentLabel: string): Promise<{
|
|
138
|
+
sublabel: string;
|
|
139
|
+
parentLabel: string;
|
|
140
|
+
owner: string;
|
|
150
141
|
}>;
|
|
151
|
-
submitCommitment(commitment: any): Promise<void>;
|
|
152
|
-
waitForCommitmentAge(commitment: any): Promise<void>;
|
|
153
|
-
getPriceAndValidate(label: string): Promise<PriceValidationResult>;
|
|
154
|
-
finalizeRegistration(registration: any, priceWei: bigint): Promise<void>;
|
|
155
|
-
verifyOwnership(label: string): Promise<void>;
|
|
156
|
-
getContenthash(domainName: string): Promise<string>;
|
|
157
142
|
setContenthash(domainName: string, contenthashHex: string): Promise<{
|
|
158
143
|
node: string;
|
|
159
144
|
}>;
|
|
145
|
+
getContenthash(domainName: string): Promise<string>;
|
|
160
146
|
preflight(label: string, explicitStatusOverride?: string): Promise<DotnsPreflightResult>;
|
|
161
147
|
register(label: string, options?: DotNSConnectOptions & {
|
|
162
148
|
status?: string;
|
|
@@ -169,4 +155,4 @@ declare class DotNS {
|
|
|
169
155
|
}
|
|
170
156
|
declare const dotns: DotNS;
|
|
171
157
|
|
|
172
|
-
export { CONNECTION_TIMEOUT_MS, CONTRACTS, DECIMALS, DEFAULT_MNEMONIC, DOTNS_TX_MAX_ATTEMPTS, DOT_NODE, DotNS, type DotNSConnectOptions, type DotnsPreflightResult, NATIVE_TO_ETH_RATIO, OPERATION_TIMEOUT_MS, type OwnershipResult, type PriceValidationResult, ProofOfPersonhoodStatus, RPC_ENDPOINTS, TX_CHAIN_TIME_BUDGET_MS, TX_TIMEOUT_MS, TX_WALL_CLOCK_CEILING_MS, WS_HEARTBEAT_TIMEOUT_MS, canRegister, classifyDotnsLabel, classifyTxRetryDecision, computeDomainTokenId, convertWeiToNative, countTrailingDigits, dotns, fetchNonce, isCommitmentMature, parseProofOfPersonhoodStatus, popStatusName, sanitizeDomainLabel, simulateUserStatus, stripTrailingDigits, validateDomainLabel };
|
|
158
|
+
export { CONNECTION_TIMEOUT_MS, CONTRACTS, DECIMALS, DEFAULT_MNEMONIC, DOTNS_TX_MAX_ATTEMPTS, DOT_NODE, DotNS, type DotNSConnectOptions, type DotnsPreflightResult, NATIVE_TO_ETH_RATIO, OPERATION_TIMEOUT_MS, type OwnershipResult, type ParsedDomainName, type PriceValidationResult, ProofOfPersonhoodStatus, RPC_ENDPOINTS, TX_CHAIN_TIME_BUDGET_MS, TX_TIMEOUT_MS, TX_WALL_CLOCK_CEILING_MS, WS_HEARTBEAT_TIMEOUT_MS, canRegister, classifyDotnsLabel, classifyTxRetryDecision, computeDomainTokenId, convertWeiToNative, countTrailingDigits, dotns, fetchNonce, isCommitmentMature, parseDomainName, parseProofOfPersonhoodStatus, popStatusName, runDotnsCli, sanitizeDomainLabel, simulateUserStatus, stripTrailingDigits, validateDomainLabel, verifyNonceAdvanced };
|
package/dist/dotns.js
CHANGED
|
@@ -23,14 +23,18 @@ import {
|
|
|
23
23
|
dotns,
|
|
24
24
|
fetchNonce,
|
|
25
25
|
isCommitmentMature,
|
|
26
|
+
parseDomainName,
|
|
26
27
|
parseProofOfPersonhoodStatus,
|
|
27
28
|
popStatusName,
|
|
29
|
+
runDotnsCli,
|
|
28
30
|
sanitizeDomainLabel,
|
|
29
31
|
simulateUserStatus,
|
|
30
32
|
stripTrailingDigits,
|
|
31
|
-
validateDomainLabel
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
validateDomainLabel,
|
|
34
|
+
verifyNonceAdvanced
|
|
35
|
+
} from "./chunk-YREZFNCC.js";
|
|
36
|
+
import "./chunk-DHQ3JGF4.js";
|
|
37
|
+
import "./chunk-UJP2PZGU.js";
|
|
34
38
|
import "./chunk-JHNW2EKY.js";
|
|
35
39
|
import "./chunk-QGM4M3NI.js";
|
|
36
40
|
export {
|
|
@@ -58,10 +62,13 @@ export {
|
|
|
58
62
|
dotns,
|
|
59
63
|
fetchNonce,
|
|
60
64
|
isCommitmentMature,
|
|
65
|
+
parseDomainName,
|
|
61
66
|
parseProofOfPersonhoodStatus,
|
|
62
67
|
popStatusName,
|
|
68
|
+
runDotnsCli,
|
|
63
69
|
sanitizeDomainLabel,
|
|
64
70
|
simulateUserStatus,
|
|
65
71
|
stripTrailingDigits,
|
|
66
|
-
validateDomainLabel
|
|
72
|
+
validateDomainLabel,
|
|
73
|
+
verifyNonceAdvanced
|
|
67
74
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { DeployContent, DeployOptions, DeployResult, deploy } from './deploy.js';
|
|
2
2
|
export { PoolAccount, PoolAuthorization, bootstrapPool, derivePoolAccounts, ensureAuthorized, fetchPoolAuthorizations, selectAccount } from './pool.js';
|
|
3
|
-
export { DotNS, DotNSConnectOptions, OwnershipResult, PriceValidationResult } from './dotns.js';
|
|
3
|
+
export { DotNS, DotNSConnectOptions, OwnershipResult, ParsedDomainName, PriceValidationResult, parseDomainName } from './dotns.js';
|
|
4
4
|
export { MerkleizeResult, merkleizeJS } from './merkle.js';
|
|
5
|
+
export { RunState, RunStatus, VERSION, loadRunState, probablyOomRssMb, resolveStateDir, shouldShowOomHint, shouldSkipStaleWarning, stateFilePath, writeRunState } from './run-state.js';
|
|
5
6
|
import 'multiformats/cid';
|
|
6
7
|
import 'polkadot-api';
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deploy
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-SVKCVNXD.js";
|
|
4
|
+
import "./chunk-YYULF2JX.js";
|
|
5
|
+
import "./chunk-CQ753LDA.js";
|
|
6
6
|
import {
|
|
7
|
-
DotNS
|
|
8
|
-
|
|
7
|
+
DotNS,
|
|
8
|
+
parseDomainName
|
|
9
|
+
} from "./chunk-YREZFNCC.js";
|
|
9
10
|
import "./chunk-2Q2WSKFD.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-DHQ3JGF4.js";
|
|
12
|
+
import {
|
|
13
|
+
VERSION,
|
|
14
|
+
loadRunState,
|
|
15
|
+
probablyOomRssMb,
|
|
16
|
+
resolveStateDir,
|
|
17
|
+
shouldShowOomHint,
|
|
18
|
+
shouldSkipStaleWarning,
|
|
19
|
+
stateFilePath,
|
|
20
|
+
writeRunState
|
|
21
|
+
} from "./chunk-UJP2PZGU.js";
|
|
11
22
|
import {
|
|
12
23
|
merkleizeJS
|
|
13
24
|
} from "./chunk-B7GUYYAN.js";
|
|
@@ -21,11 +32,20 @@ import {
|
|
|
21
32
|
import "./chunk-QGM4M3NI.js";
|
|
22
33
|
export {
|
|
23
34
|
DotNS,
|
|
35
|
+
VERSION,
|
|
24
36
|
bootstrapPool,
|
|
25
37
|
deploy,
|
|
26
38
|
derivePoolAccounts,
|
|
27
39
|
ensureAuthorized,
|
|
28
40
|
fetchPoolAuthorizations,
|
|
41
|
+
loadRunState,
|
|
29
42
|
merkleizeJS,
|
|
30
|
-
|
|
43
|
+
parseDomainName,
|
|
44
|
+
probablyOomRssMb,
|
|
45
|
+
resolveStateDir,
|
|
46
|
+
selectAccount,
|
|
47
|
+
shouldShowOomHint,
|
|
48
|
+
shouldSkipStaleWarning,
|
|
49
|
+
stateFilePath,
|
|
50
|
+
writeRunState
|
|
31
51
|
};
|
package/dist/memory-report.js
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const VERSION: string;
|
|
2
|
+
type RunStatus = "running" | "succeeded" | "failed" | "crashed";
|
|
3
|
+
interface RunState {
|
|
4
|
+
status: RunStatus;
|
|
5
|
+
pid: number;
|
|
6
|
+
startedAt: number;
|
|
7
|
+
endedAt?: number;
|
|
8
|
+
toolVersion: string;
|
|
9
|
+
argv: string[];
|
|
10
|
+
lastPeakRssMb: number | null;
|
|
11
|
+
lastStage: string | null;
|
|
12
|
+
reason?: string;
|
|
13
|
+
}
|
|
14
|
+
declare function resolveStateDir(): string;
|
|
15
|
+
declare function stateFilePath(): string;
|
|
16
|
+
declare function loadRunState(): RunState | null;
|
|
17
|
+
declare function writeRunState(patch: Partial<RunState>): void;
|
|
18
|
+
declare function shouldSkipStaleWarning(prev: RunState): boolean;
|
|
19
|
+
declare function probablyOomRssMb(override?: number): number;
|
|
20
|
+
declare function shouldShowOomHint(prev: RunState): boolean;
|
|
21
|
+
|
|
22
|
+
export { type RunState, type RunStatus, VERSION, loadRunState, probablyOomRssMb, resolveStateDir, shouldShowOomHint, shouldSkipStaleWarning, stateFilePath, writeRunState };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
VERSION,
|
|
3
|
+
loadRunState,
|
|
4
|
+
probablyOomRssMb,
|
|
5
|
+
resolveStateDir,
|
|
6
|
+
shouldShowOomHint,
|
|
7
|
+
shouldSkipStaleWarning,
|
|
8
|
+
stateFilePath,
|
|
9
|
+
writeRunState
|
|
10
|
+
} from "./chunk-UJP2PZGU.js";
|
|
11
|
+
import "./chunk-QGM4M3NI.js";
|
|
12
|
+
export {
|
|
13
|
+
VERSION,
|
|
14
|
+
loadRunState,
|
|
15
|
+
probablyOomRssMb,
|
|
16
|
+
resolveStateDir,
|
|
17
|
+
shouldShowOomHint,
|
|
18
|
+
shouldSkipStaleWarning,
|
|
19
|
+
stateFilePath,
|
|
20
|
+
writeRunState
|
|
21
|
+
};
|
package/dist/telemetry.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ interface InternalContextSignals {
|
|
|
6
6
|
githubRepository?: string;
|
|
7
7
|
runnerName?: string;
|
|
8
8
|
gitRemote?: string;
|
|
9
|
+
hostApp?: string;
|
|
9
10
|
}
|
|
10
11
|
declare function isInternalContextFromSignals(signals: InternalContextSignals): boolean;
|
|
11
12
|
declare function isInternalContext(): boolean;
|
|
@@ -13,6 +14,9 @@ declare function scrubPaths(msg: string): string;
|
|
|
13
14
|
declare function truncateAddress(ss58: string | undefined): string | undefined;
|
|
14
15
|
declare function sanitizeBranch(name: string | undefined): string | undefined;
|
|
15
16
|
declare function sanitizeRepo(slug: string | undefined): string | undefined;
|
|
17
|
+
declare function setRunStateActive(v: boolean): void;
|
|
18
|
+
declare function markRelaunchOomHintShown(): void;
|
|
19
|
+
declare function closeTelemetry(timeoutMs: number): Promise<void>;
|
|
16
20
|
declare function initTelemetry(): void;
|
|
17
21
|
declare function resolveRepo(domain: string): string;
|
|
18
22
|
declare function resolveRunner(): string;
|
|
@@ -31,4 +35,4 @@ declare function setDeploySentryTag(key: string, value: string): void;
|
|
|
31
35
|
declare function captureWarning(message: string, context?: Record<string, unknown>): void;
|
|
32
36
|
declare function flush(): Promise<void>;
|
|
33
37
|
|
|
34
|
-
export { type InternalContextSignals, VERSION, captureWarning, flush, getCurrentSentryTraceId, getDeployAttributes, initTelemetry, isExpectedError, isInternalContext, isInternalContextFromSignals, resolveRepo, resolveRunner, resolveRunnerType, sampleMemory, sanitizeBranch, sanitizeRepo, scrubPaths, setDeployAttribute, setDeployReportContext, setDeploySentryTag, truncateAddress, withDeploySpan, withSpan };
|
|
38
|
+
export { type InternalContextSignals, VERSION, captureWarning, closeTelemetry, flush, getCurrentSentryTraceId, getDeployAttributes, initTelemetry, isExpectedError, isInternalContext, isInternalContextFromSignals, markRelaunchOomHintShown, resolveRepo, resolveRunner, resolveRunnerType, sampleMemory, sanitizeBranch, sanitizeRepo, scrubPaths, setDeployAttribute, setDeployReportContext, setDeploySentryTag, setRunStateActive, truncateAddress, withDeploySpan, withSpan };
|
package/dist/telemetry.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
VERSION,
|
|
3
3
|
captureWarning,
|
|
4
|
+
closeTelemetry,
|
|
4
5
|
flush,
|
|
5
6
|
getCurrentSentryTraceId,
|
|
6
7
|
getDeployAttributes,
|
|
@@ -8,6 +9,7 @@ import {
|
|
|
8
9
|
isExpectedError,
|
|
9
10
|
isInternalContext,
|
|
10
11
|
isInternalContextFromSignals,
|
|
12
|
+
markRelaunchOomHintShown,
|
|
11
13
|
resolveRepo,
|
|
12
14
|
resolveRunner,
|
|
13
15
|
resolveRunnerType,
|
|
@@ -18,14 +20,17 @@ import {
|
|
|
18
20
|
setDeployAttribute,
|
|
19
21
|
setDeployReportContext,
|
|
20
22
|
setDeploySentryTag,
|
|
23
|
+
setRunStateActive,
|
|
21
24
|
truncateAddress,
|
|
22
25
|
withDeploySpan,
|
|
23
26
|
withSpan
|
|
24
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-DHQ3JGF4.js";
|
|
28
|
+
import "./chunk-UJP2PZGU.js";
|
|
25
29
|
import "./chunk-QGM4M3NI.js";
|
|
26
30
|
export {
|
|
27
31
|
VERSION,
|
|
28
32
|
captureWarning,
|
|
33
|
+
closeTelemetry,
|
|
29
34
|
flush,
|
|
30
35
|
getCurrentSentryTraceId,
|
|
31
36
|
getDeployAttributes,
|
|
@@ -33,6 +38,7 @@ export {
|
|
|
33
38
|
isExpectedError,
|
|
34
39
|
isInternalContext,
|
|
35
40
|
isInternalContextFromSignals,
|
|
41
|
+
markRelaunchOomHintShown,
|
|
36
42
|
resolveRepo,
|
|
37
43
|
resolveRunner,
|
|
38
44
|
resolveRunnerType,
|
|
@@ -43,6 +49,7 @@ export {
|
|
|
43
49
|
setDeployAttribute,
|
|
44
50
|
setDeployReportContext,
|
|
45
51
|
setDeploySentryTag,
|
|
52
|
+
setRunStateActive,
|
|
46
53
|
truncateAddress,
|
|
47
54
|
withDeploySpan,
|
|
48
55
|
withSpan
|
package/dist/version-check.js
CHANGED
|
@@ -8,8 +8,9 @@ import {
|
|
|
8
8
|
isPreReleaseVersion,
|
|
9
9
|
preReleaseWarning,
|
|
10
10
|
promptYesNo
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-CQ753LDA.js";
|
|
12
|
+
import "./chunk-DHQ3JGF4.js";
|
|
13
|
+
import "./chunk-UJP2PZGU.js";
|
|
13
14
|
import "./chunk-QGM4M3NI.js";
|
|
14
15
|
export {
|
|
15
16
|
assessVersion,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bulletin-deploy",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"bin"
|
|
28
28
|
],
|
|
29
29
|
"scripts": {
|
|
30
|
-
"build": "tsup src/index.ts src/deploy.ts src/dotns.ts src/pool.ts src/telemetry.ts src/memory-report.ts src/merkle.ts src/gh-pages-mirror.ts src/version-check.ts src/bug-report.ts --format esm --dts --clean --target node22",
|
|
30
|
+
"build": "tsup src/index.ts src/deploy.ts src/dotns.ts src/pool.ts src/telemetry.ts src/memory-report.ts src/merkle.ts src/gh-pages-mirror.ts src/version-check.ts src/bug-report.ts src/run-state.ts --format esm --dts --clean --target node22",
|
|
31
31
|
"prepare": "npm run build",
|
|
32
32
|
"test": "npm run build && node --test test/test.js test/pool.test.js test/helpers/e2e-helpers.test.js",
|
|
33
33
|
"test:e2e": "npm run build && node --test test/e2e.test.js",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"@ipld/car": "^5.4.3",
|
|
41
41
|
"@ipld/dag-pb": "^4.1.3",
|
|
42
42
|
"@noble/hashes": "^1.7.2",
|
|
43
|
+
"@parity/dotns-cli": "0.5.6",
|
|
43
44
|
"@polkadot-api/substrate-bindings": "^0.16.5",
|
|
44
45
|
"@polkadot-labs/hdkd": "^0.0.25",
|
|
45
46
|
"@polkadot-labs/hdkd-helpers": "^0.0.26",
|