bulletin-deploy 0.7.3 → 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-MDYSENTW.js → chunk-CQ753LDA.js} +1 -1
- package/dist/{chunk-BYIVK52G.js → chunk-DHQ3JGF4.js} +67 -75
- package/dist/{chunk-EPNPPAMS.js → chunk-SVKCVNXD.js} +68 -41
- package/dist/chunk-UJP2PZGU.js +155 -0
- package/dist/chunk-YREZFNCC.js +869 -0
- package/dist/{chunk-4EQERQRG.js → chunk-YYULF2JX.js} +2 -2
- package/dist/deploy.d.ts +4 -2
- package/dist/deploy.js +8 -5
- package/dist/dotns.d.ts +12 -40
- package/dist/dotns.js +9 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +24 -6
- 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 +4 -3
- package/dist/chunk-M3H3F4FY.js +0 -1048
|
@@ -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
|
@@ -67,7 +67,13 @@ declare const WS_HEARTBEAT_TIMEOUT_MS: number;
|
|
|
67
67
|
declare const DOTNS_TX_MAX_ATTEMPTS: number;
|
|
68
68
|
declare function classifyTxRetryDecision(err: unknown): "retry" | "abort";
|
|
69
69
|
declare const DEFAULT_MNEMONIC: string;
|
|
70
|
-
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
|
+
}>;
|
|
71
77
|
declare const ProofOfPersonhoodStatus: {
|
|
72
78
|
readonly NoStatus: 0;
|
|
73
79
|
readonly ProofOfPersonhoodLite: 1;
|
|
@@ -105,28 +111,9 @@ declare class ReviveClientWrapper {
|
|
|
105
111
|
constructor(client: any);
|
|
106
112
|
getEvmAddress(substrateAddress: string): Promise<string>;
|
|
107
113
|
performDryRunCall(originSubstrateAddress: string, contractAddress: string, value: bigint, encodedData: string): Promise<any>;
|
|
108
|
-
estimateGasForCall(originSubstrateAddress: string, contractAddress: string, value: bigint, encodedData: string): Promise<any>;
|
|
109
114
|
checkIfAccountMapped(substrateAddress: string): Promise<boolean>;
|
|
110
|
-
ensureAccountMapped(substrateAddress: string, signer: PolkadotSigner): Promise<void>;
|
|
111
|
-
signAndSubmitExtrinsic(extrinsic: any, signer: PolkadotSigner, statusCallback: (status: string) => void, _opts?: {
|
|
112
|
-
nonceFallback?: {
|
|
113
|
-
rpc: string;
|
|
114
|
-
senderSS58: string;
|
|
115
|
-
expectedNonce: number;
|
|
116
|
-
};
|
|
117
|
-
}): Promise<string>;
|
|
118
|
-
signAndSubmitWithRetry(buildExtrinsic: () => any, signer: PolkadotSigner, statusCallback: (status: string) => void, label: string, opts?: {
|
|
119
|
-
nonceFallback?: {
|
|
120
|
-
rpc: string;
|
|
121
|
-
senderSS58: string;
|
|
122
|
-
expectedNonce: number;
|
|
123
|
-
};
|
|
124
|
-
}): Promise<string>;
|
|
125
|
-
submitTransaction(contractAddress: string, value: bigint, encodedData: string, signerSubstrateAddress: string, signer: PolkadotSigner, statusCallback: (status: string) => void, { rpc, useNoncePolling }?: {
|
|
126
|
-
rpc?: string;
|
|
127
|
-
useNoncePolling?: boolean;
|
|
128
|
-
}): Promise<string>;
|
|
129
115
|
}
|
|
116
|
+
declare function runDotnsCli(argv: string[], env?: Record<string, string>): Promise<unknown>;
|
|
130
117
|
declare class DotNS {
|
|
131
118
|
client: any | null;
|
|
132
119
|
clientWrapper: ReviveClientWrapper | null;
|
|
@@ -135,33 +122,17 @@ declare class DotNS {
|
|
|
135
122
|
evmAddress: string | null;
|
|
136
123
|
signer: PolkadotSigner | null;
|
|
137
124
|
connected: boolean;
|
|
125
|
+
private _mnemonic;
|
|
126
|
+
private _keyUri;
|
|
138
127
|
constructor();
|
|
139
128
|
connect(options?: DotNSConnectOptions): Promise<this>;
|
|
140
129
|
ensureConnected(): void;
|
|
141
130
|
private _testnetCache;
|
|
142
131
|
isTestnet(): Promise<boolean>;
|
|
143
132
|
contractCall(contractAddress: string, contractAbi: readonly any[], functionName: string, args?: any[]): Promise<any>;
|
|
144
|
-
contractTransaction(contractAddress: string, value: bigint, contractAbi: readonly any[], functionName: string, args?: any[], statusCallback?: (status: string) => void, { useNoncePolling }?: {
|
|
145
|
-
useNoncePolling?: boolean;
|
|
146
|
-
}): Promise<string>;
|
|
147
133
|
checkOwnership(label: string, ownerAddress?: string | null): Promise<OwnershipResult>;
|
|
148
|
-
classifyName(label: string): Promise<{
|
|
149
|
-
requiredStatus: number;
|
|
150
|
-
message: string;
|
|
151
|
-
}>;
|
|
152
134
|
getUserPopStatus(ownerAddress?: string | null): Promise<number>;
|
|
153
135
|
setUserPopStatus(status: number): Promise<void>;
|
|
154
|
-
ensureNotRegistered(label: string): Promise<void>;
|
|
155
|
-
generateCommitment(label: string, includeReverse?: boolean): Promise<{
|
|
156
|
-
commitment: any;
|
|
157
|
-
registration: any;
|
|
158
|
-
}>;
|
|
159
|
-
submitCommitment(commitment: any): Promise<void>;
|
|
160
|
-
waitForCommitmentAge(commitment: any): Promise<void>;
|
|
161
|
-
getPriceAndValidate(label: string): Promise<PriceValidationResult>;
|
|
162
|
-
finalizeRegistration(registration: any, priceWei: bigint): Promise<void>;
|
|
163
|
-
verifyOwnership(label: string): Promise<void>;
|
|
164
|
-
getContenthash(domainName: string): Promise<string>;
|
|
165
136
|
checkSubdomainOwnership(sublabel: string, parentLabel: string): Promise<OwnershipResult>;
|
|
166
137
|
registerSubdomain(sublabel: string, parentLabel: string): Promise<{
|
|
167
138
|
sublabel: string;
|
|
@@ -171,6 +142,7 @@ declare class DotNS {
|
|
|
171
142
|
setContenthash(domainName: string, contenthashHex: string): Promise<{
|
|
172
143
|
node: string;
|
|
173
144
|
}>;
|
|
145
|
+
getContenthash(domainName: string): Promise<string>;
|
|
174
146
|
preflight(label: string, explicitStatusOverride?: string): Promise<DotnsPreflightResult>;
|
|
175
147
|
register(label: string, options?: DotNSConnectOptions & {
|
|
176
148
|
status?: string;
|
|
@@ -183,4 +155,4 @@ declare class DotNS {
|
|
|
183
155
|
}
|
|
184
156
|
declare const dotns: DotNS;
|
|
185
157
|
|
|
186
|
-
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, 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
|
@@ -26,12 +26,15 @@ import {
|
|
|
26
26
|
parseDomainName,
|
|
27
27
|
parseProofOfPersonhoodStatus,
|
|
28
28
|
popStatusName,
|
|
29
|
+
runDotnsCli,
|
|
29
30
|
sanitizeDomainLabel,
|
|
30
31
|
simulateUserStatus,
|
|
31
32
|
stripTrailingDigits,
|
|
32
|
-
validateDomainLabel
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
validateDomainLabel,
|
|
34
|
+
verifyNonceAdvanced
|
|
35
|
+
} from "./chunk-YREZFNCC.js";
|
|
36
|
+
import "./chunk-DHQ3JGF4.js";
|
|
37
|
+
import "./chunk-UJP2PZGU.js";
|
|
35
38
|
import "./chunk-JHNW2EKY.js";
|
|
36
39
|
import "./chunk-QGM4M3NI.js";
|
|
37
40
|
export {
|
|
@@ -62,8 +65,10 @@ export {
|
|
|
62
65
|
parseDomainName,
|
|
63
66
|
parseProofOfPersonhoodStatus,
|
|
64
67
|
popStatusName,
|
|
68
|
+
runDotnsCli,
|
|
65
69
|
sanitizeDomainLabel,
|
|
66
70
|
simulateUserStatus,
|
|
67
71
|
stripTrailingDigits,
|
|
68
|
-
validateDomainLabel
|
|
72
|
+
validateDomainLabel,
|
|
73
|
+
verifyNonceAdvanced
|
|
69
74
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ export { DeployContent, DeployOptions, DeployResult, deploy } from './deploy.js'
|
|
|
2
2
|
export { PoolAccount, PoolAuthorization, bootstrapPool, derivePoolAccounts, ensureAuthorized, fetchPoolAuthorizations, selectAccount } from './pool.js';
|
|
3
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,14 +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
7
|
DotNS,
|
|
8
8
|
parseDomainName
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YREZFNCC.js";
|
|
10
10
|
import "./chunk-2Q2WSKFD.js";
|
|
11
|
-
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";
|
|
12
22
|
import {
|
|
13
23
|
merkleizeJS
|
|
14
24
|
} from "./chunk-B7GUYYAN.js";
|
|
@@ -22,12 +32,20 @@ import {
|
|
|
22
32
|
import "./chunk-QGM4M3NI.js";
|
|
23
33
|
export {
|
|
24
34
|
DotNS,
|
|
35
|
+
VERSION,
|
|
25
36
|
bootstrapPool,
|
|
26
37
|
deploy,
|
|
27
38
|
derivePoolAccounts,
|
|
28
39
|
ensureAuthorized,
|
|
29
40
|
fetchPoolAuthorizations,
|
|
41
|
+
loadRunState,
|
|
30
42
|
merkleizeJS,
|
|
31
43
|
parseDomainName,
|
|
32
|
-
|
|
44
|
+
probablyOomRssMb,
|
|
45
|
+
resolveStateDir,
|
|
46
|
+
selectAccount,
|
|
47
|
+
shouldShowOomHint,
|
|
48
|
+
shouldSkipStaleWarning,
|
|
49
|
+
stateFilePath,
|
|
50
|
+
writeRunState
|
|
33
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",
|
|
@@ -61,4 +62,4 @@
|
|
|
61
62
|
"engines": {
|
|
62
63
|
"node": ">=22"
|
|
63
64
|
}
|
|
64
|
-
}
|
|
65
|
+
}
|