@nordicsemiconductor/pc-nrfconnect-shared 147.0.0 → 149.0.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/Changelog.md +43 -0
- package/config/eslintrc.js +1 -1
- package/nrfutil/device/batch.ts +3 -3
- package/nrfutil/device/common.ts +3 -76
- package/nrfutil/device/device.ts +5 -5
- package/nrfutil/device/index.ts +23 -0
- package/nrfutil/device/list.ts +3 -7
- package/nrfutil/device/logLibVersions.ts +16 -9
- package/nrfutil/index.ts +8 -18
- package/nrfutil/modules.ts +149 -0
- package/nrfutil/sandbox.ts +0 -3
- package/package.json +1 -1
- package/src/About/SupportCard.tsx +5 -7
- package/src/Device/DeviceSelector/DeviceSelector.tsx +1 -1
- package/src/Device/deviceInfo/deviceInfo.ts +1 -1
- package/src/Device/deviceLister.ts +1 -1
- package/src/Device/deviceSlice.ts +1 -1
- package/src/Log/logSlice.ts +23 -3
- package/src/index.ts +1 -1
- package/src/utils/persistentStore.ts +18 -6
- package/src/utils/systemReport.ts +19 -19
- package/typings/generated/nrfutil/device/batch.d.ts.map +1 -1
- package/typings/generated/nrfutil/device/common.d.ts +0 -2
- package/typings/generated/nrfutil/device/common.d.ts.map +1 -1
- package/typings/generated/nrfutil/device/device.d.ts +13 -13
- package/typings/generated/nrfutil/device/device.d.ts.map +1 -1
- package/typings/generated/nrfutil/device/index.d.ts +9 -0
- package/typings/generated/nrfutil/device/index.d.ts.map +1 -0
- package/typings/generated/nrfutil/device/list.d.ts.map +1 -1
- package/typings/generated/nrfutil/device/logLibVersions.d.ts +1 -1
- package/typings/generated/nrfutil/device/logLibVersions.d.ts.map +1 -1
- package/typings/generated/nrfutil/index.d.ts +2 -8
- package/typings/generated/nrfutil/index.d.ts.map +1 -1
- package/typings/generated/nrfutil/modules.d.ts +8 -0
- package/typings/generated/nrfutil/modules.d.ts.map +1 -0
- package/typings/generated/nrfutil/sandbox.d.ts.map +1 -1
- package/typings/generated/src/About/SupportCard.d.ts.map +1 -1
- package/typings/generated/src/Device/deviceInfo/deviceInfo.d.ts +1 -1
- package/typings/generated/src/Device/deviceInfo/deviceInfo.d.ts.map +1 -1
- package/typings/generated/src/Device/deviceLister.d.ts +1 -1
- package/typings/generated/src/Device/deviceLister.d.ts.map +1 -1
- package/typings/generated/src/Device/deviceSlice.d.ts +1 -1
- package/typings/generated/src/Device/deviceSlice.d.ts.map +1 -1
- package/typings/generated/src/Log/logSlice.d.ts +3 -2
- package/typings/generated/src/Log/logSlice.d.ts.map +1 -1
- package/typings/generated/src/index.d.ts +1 -1
- package/typings/generated/src/index.d.ts.map +1 -1
- package/typings/generated/src/utils/persistentStore.d.ts +4 -2
- package/typings/generated/src/utils/persistentStore.d.ts.map +1 -1
- package/typings/generated/src/utils/usageDataCommon.d.ts +2 -2
package/Changelog.md
CHANGED
|
@@ -7,6 +7,49 @@ This project does _not_ adhere to
|
|
|
7
7
|
[Semantic Versioning](https://semver.org/spec/v2.0.0.html) but contrary to it
|
|
8
8
|
every new version is a new major version.
|
|
9
9
|
|
|
10
|
+
## 149.0.0 - 2024-01-16
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- `openFile` export.
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- Updated `es6` -> `es2021` in eslint config `env`.
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- Make new `isVerboseLogging` persistent setting get/set compatible with Main
|
|
23
|
+
thread code (by using `globalThis` instead of `window`).
|
|
24
|
+
|
|
25
|
+
## 148.0.0 - 2024-01-16
|
|
26
|
+
|
|
27
|
+
### Added
|
|
28
|
+
|
|
29
|
+
- `getModule` export from `@nordicsemiconductor/pc-nrfconnect-shared/nrfutil`
|
|
30
|
+
to retrieve/initialise specific nrfutil module sandbox.
|
|
31
|
+
- `setVerboseLogging`, `setLogLevel` and `getAllModuleVersions` exports from
|
|
32
|
+
`@nordicsemiconductor/pc-nrfconnect-shared/nrfutil` to target all
|
|
33
|
+
initialised nrfutil modules.
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
|
|
37
|
+
- `isLoggingVerbose` persisted state is now saved in the app specific store.
|
|
38
|
+
- `isLoggingVerbose` now reflects the current verbose logging state
|
|
39
|
+
(previously this was only used to determine whether an app should have
|
|
40
|
+
verbose logging enabled on startup). This allows code which does/should not
|
|
41
|
+
have access to the redux store to still retrieve the verbose logging state.
|
|
42
|
+
- `Create system report` now logs the version of all initialised nrfutil
|
|
43
|
+
modules.
|
|
44
|
+
- nrfutil device exports have now been moved to
|
|
45
|
+
`@nordicsemiconductor/pc-nrfconnect-shared/nrfutil/device`.
|
|
46
|
+
|
|
47
|
+
### Steps to upgrade
|
|
48
|
+
|
|
49
|
+
- Replace all calls of nrfutil device imported from
|
|
50
|
+
`@nordicsemiconductor/pc-nrfconnect-shared/nrfutil` to
|
|
51
|
+
`@nordicsemiconductor/pc-nrfconnect-shared/nrfutil/device`.
|
|
52
|
+
|
|
10
53
|
## 147.0.0 - 2024-01-09
|
|
11
54
|
|
|
12
55
|
### Fixed
|
package/config/eslintrc.js
CHANGED
package/nrfutil/device/batch.ts
CHANGED
|
@@ -9,13 +9,13 @@ import os from 'os';
|
|
|
9
9
|
import path from 'path';
|
|
10
10
|
import { v4 as uuid } from 'uuid';
|
|
11
11
|
|
|
12
|
+
import { getModule } from '..';
|
|
12
13
|
import { TaskEnd } from '../sandboxTypes';
|
|
13
14
|
import { BatchOperationWrapper, Callbacks } from './batchTypes';
|
|
14
15
|
import {
|
|
15
16
|
DeviceCore,
|
|
16
17
|
DeviceTraits,
|
|
17
18
|
deviceTraitsToArgs,
|
|
18
|
-
getDeviceSandbox,
|
|
19
19
|
NrfutilDevice,
|
|
20
20
|
ResetKind,
|
|
21
21
|
} from './common';
|
|
@@ -49,7 +49,7 @@ export class Batch {
|
|
|
49
49
|
args: string[] = []
|
|
50
50
|
) {
|
|
51
51
|
const getPromise = async () => {
|
|
52
|
-
const box = await
|
|
52
|
+
const box = await getModule('device');
|
|
53
53
|
|
|
54
54
|
const batchOperation =
|
|
55
55
|
await box.singleInfoOperationOptionalData<object>(
|
|
@@ -311,7 +311,7 @@ export class Batch {
|
|
|
311
311
|
})),
|
|
312
312
|
};
|
|
313
313
|
|
|
314
|
-
const sandbox = await
|
|
314
|
+
const sandbox = await getModule('device');
|
|
315
315
|
try {
|
|
316
316
|
await sandbox.spawnNrfutilSubcommand<unknown>(
|
|
317
317
|
'x-execute-batch',
|
package/nrfutil/device/common.ts
CHANGED
|
@@ -4,16 +4,8 @@
|
|
|
4
4
|
* SPDX-License-Identifier: LicenseRef-Nordic-4-Clause
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import {
|
|
8
|
-
import { isDevelopment } from '../../src/utils/environment';
|
|
9
|
-
import {
|
|
10
|
-
getIsLoggingVerbose,
|
|
11
|
-
persistIsLoggingVerbose,
|
|
12
|
-
} from '../../src/utils/persistentStore';
|
|
13
|
-
import { getNrfutilLogger } from '../nrfutilLogger';
|
|
14
|
-
import sandbox, { type NrfutilSandbox } from '../sandbox';
|
|
7
|
+
import { getModule } from '../modules';
|
|
15
8
|
import { Progress } from '../sandboxTypes';
|
|
16
|
-
import logLibVersions from './logLibVersions';
|
|
17
9
|
|
|
18
10
|
export const deviceTraitsToArgs = (traits: DeviceTraits) => {
|
|
19
11
|
const args: string[] = [];
|
|
@@ -157,71 +149,6 @@ export interface SerialPort {
|
|
|
157
149
|
path: string | null;
|
|
158
150
|
}
|
|
159
151
|
|
|
160
|
-
let deviceSandbox: NrfutilSandbox | undefined;
|
|
161
|
-
let promiseDeviceSandbox: Promise<NrfutilSandbox> | undefined;
|
|
162
|
-
|
|
163
|
-
export const getDeviceSandbox = async () => {
|
|
164
|
-
if (deviceSandbox) {
|
|
165
|
-
return deviceSandbox;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
if (!promiseDeviceSandbox) {
|
|
169
|
-
promiseDeviceSandbox = sandbox(
|
|
170
|
-
getUserDataDir(),
|
|
171
|
-
'device',
|
|
172
|
-
undefined,
|
|
173
|
-
undefined
|
|
174
|
-
);
|
|
175
|
-
deviceSandbox = await promiseDeviceSandbox;
|
|
176
|
-
deviceSandbox.getModuleVersion().then(logLibVersions);
|
|
177
|
-
|
|
178
|
-
deviceSandbox.onLogging((evt, pid) => {
|
|
179
|
-
const deviceLogger = getNrfutilLogger();
|
|
180
|
-
const formatMsg = (msg: string) =>
|
|
181
|
-
`${
|
|
182
|
-
pid && deviceSandbox?.logLevel === 'trace'
|
|
183
|
-
? `[PID:${pid}] `
|
|
184
|
-
: ''
|
|
185
|
-
}${msg}`;
|
|
186
|
-
|
|
187
|
-
switch (evt.level) {
|
|
188
|
-
case 'TRACE':
|
|
189
|
-
deviceLogger?.verbose(formatMsg(evt.message));
|
|
190
|
-
break;
|
|
191
|
-
case 'DEBUG':
|
|
192
|
-
deviceLogger?.debug(formatMsg(evt.message));
|
|
193
|
-
break;
|
|
194
|
-
case 'INFO':
|
|
195
|
-
deviceLogger?.info(formatMsg(evt.message));
|
|
196
|
-
break;
|
|
197
|
-
case 'WARN':
|
|
198
|
-
deviceLogger?.warn(formatMsg(evt.message));
|
|
199
|
-
break;
|
|
200
|
-
case 'ERROR':
|
|
201
|
-
deviceLogger?.error(formatMsg(evt.message));
|
|
202
|
-
break;
|
|
203
|
-
case 'CRITICAL':
|
|
204
|
-
deviceLogger?.error(formatMsg(evt.message));
|
|
205
|
-
break;
|
|
206
|
-
case 'OFF':
|
|
207
|
-
default:
|
|
208
|
-
// Unreachable
|
|
209
|
-
break;
|
|
210
|
-
}
|
|
211
|
-
});
|
|
212
|
-
|
|
213
|
-
const fallbackLevel = isDevelopment ? 'error' : 'off';
|
|
214
|
-
deviceSandbox.setLogLevel(
|
|
215
|
-
getIsLoggingVerbose() ? 'trace' : fallbackLevel
|
|
216
|
-
);
|
|
217
|
-
// Only the first reset after selecting "reset with verbose logging" is relevant
|
|
218
|
-
persistIsLoggingVerbose(false);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
const box = await promiseDeviceSandbox;
|
|
222
|
-
return box;
|
|
223
|
-
};
|
|
224
|
-
|
|
225
152
|
export const deviceSingleTaskEndOperation = async <T = void>(
|
|
226
153
|
device: NrfutilDevice,
|
|
227
154
|
command: string,
|
|
@@ -234,7 +161,7 @@ export const deviceSingleTaskEndOperation = async <T = void>(
|
|
|
234
161
|
`Device does not have a serial number, no device operation is possible`
|
|
235
162
|
);
|
|
236
163
|
}
|
|
237
|
-
const box = await
|
|
164
|
+
const box = await getModule('device');
|
|
238
165
|
return box.singleTaskEndOperationWithData<T>(
|
|
239
166
|
command,
|
|
240
167
|
onProgress,
|
|
@@ -256,7 +183,7 @@ export const deviceSingleTaskEndOperationVoid = async (
|
|
|
256
183
|
);
|
|
257
184
|
}
|
|
258
185
|
|
|
259
|
-
const box = await
|
|
186
|
+
const box = await getModule('device');
|
|
260
187
|
await box.singleTaskEndOperationOptionalData(
|
|
261
188
|
command,
|
|
262
189
|
onProgress,
|
package/nrfutil/device/device.ts
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* SPDX-License-Identifier: LicenseRef-Nordic-4-Clause
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
import { getModule } from '..';
|
|
7
8
|
import { LogLevel, LogMessage } from '../sandboxTypes';
|
|
8
9
|
import { Batch } from './batch';
|
|
9
10
|
import boardController from './boardController';
|
|
10
|
-
import { getDeviceSandbox } from './common';
|
|
11
11
|
import deviceInfo from './deviceInfo';
|
|
12
12
|
import erase from './erase';
|
|
13
13
|
import firmwareRead from './firmwareRead';
|
|
@@ -23,24 +23,24 @@ import setMcuState from './setMcuState';
|
|
|
23
23
|
import setProtectionStatus from './setProtectionStatus';
|
|
24
24
|
|
|
25
25
|
const onLogging = async (handler: (logging: LogMessage) => void) => {
|
|
26
|
-
const sandbox = await
|
|
26
|
+
const sandbox = await getModule('device');
|
|
27
27
|
return sandbox.onLogging(handler);
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
const setLogLevel = async (level: LogLevel) => {
|
|
31
|
-
const sandbox = await
|
|
31
|
+
const sandbox = await getModule('device');
|
|
32
32
|
sandbox.setLogLevel(level);
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
const setVerboseLogging = async (verbose: boolean) => {
|
|
36
|
-
const sandbox = await
|
|
36
|
+
const sandbox = await getModule('device');
|
|
37
37
|
const fallbackLevel =
|
|
38
38
|
process.env.NODE_ENV === 'production' ? 'off' : 'error';
|
|
39
39
|
|
|
40
40
|
sandbox.setLogLevel(verbose ? 'trace' : fallbackLevel);
|
|
41
41
|
};
|
|
42
42
|
const getModuleVersion = async () => {
|
|
43
|
-
const sandbox = await
|
|
43
|
+
const sandbox = await getModule('device');
|
|
44
44
|
return sandbox.getModuleVersion();
|
|
45
45
|
};
|
|
46
46
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2024 Nordic Semiconductor ASA
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: LicenseRef-Nordic-4-Clause
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export { default as NrfutilDeviceLib } from './device';
|
|
8
|
+
|
|
9
|
+
export type {
|
|
10
|
+
DeviceCore,
|
|
11
|
+
DeviceTraits,
|
|
12
|
+
ProtectionStatus,
|
|
13
|
+
SerialPort as DeviceSerialPort,
|
|
14
|
+
NrfutilDevice,
|
|
15
|
+
} from './common';
|
|
16
|
+
|
|
17
|
+
export type { DeviceInfo } from './deviceInfo';
|
|
18
|
+
export type { DeviceCoreInfo } from './getCoreInfo';
|
|
19
|
+
export type { ImageType } from './getFwInfo';
|
|
20
|
+
|
|
21
|
+
export type { Batch as DeviceBatch } from './batch';
|
|
22
|
+
export type { Callbacks as BatchCallbacks } from './batchTypes';
|
|
23
|
+
export type { GetProtectionStatusResult } from './getProtectionStatus';
|
package/nrfutil/device/list.ts
CHANGED
|
@@ -4,12 +4,8 @@
|
|
|
4
4
|
* SPDX-License-Identifier: LicenseRef-Nordic-4-Clause
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
deviceTraitsToArgs,
|
|
10
|
-
getDeviceSandbox,
|
|
11
|
-
NrfutilDevice,
|
|
12
|
-
} from './common';
|
|
7
|
+
import { getModule } from '..';
|
|
8
|
+
import { DeviceTraits, deviceTraitsToArgs, NrfutilDevice } from './common';
|
|
13
9
|
|
|
14
10
|
export interface HotplugEvent {
|
|
15
11
|
id: number;
|
|
@@ -67,7 +63,7 @@ export default async (
|
|
|
67
63
|
}
|
|
68
64
|
};
|
|
69
65
|
|
|
70
|
-
const sandbox = await
|
|
66
|
+
const sandbox = await getModule('device');
|
|
71
67
|
return sandbox.spawnBackgroundSubcommand<HotplugEvent>('list', args, {
|
|
72
68
|
onData,
|
|
73
69
|
onError,
|
|
@@ -7,19 +7,21 @@
|
|
|
7
7
|
import { spawn } from 'child_process';
|
|
8
8
|
import os from 'os';
|
|
9
9
|
|
|
10
|
-
import
|
|
10
|
+
import describeError from '../../src/logging/describeError';
|
|
11
11
|
import {
|
|
12
12
|
describeVersion,
|
|
13
13
|
getExpectedVersion,
|
|
14
14
|
resolveModuleVersion,
|
|
15
15
|
} from '../moduleVersion';
|
|
16
|
-
import {
|
|
16
|
+
import { getNrfutilLogger } from '../nrfutilLogger';
|
|
17
|
+
import type { ModuleVersion, SubDependency } from '../sandboxTypes';
|
|
17
18
|
|
|
18
19
|
const log = (description: string, moduleVersion?: SubDependency | string) => {
|
|
20
|
+
const logger = getNrfutilLogger();
|
|
19
21
|
if (moduleVersion == null) {
|
|
20
|
-
logger
|
|
22
|
+
logger?.warn(`Unable to detect version of ${description}.`);
|
|
21
23
|
} else {
|
|
22
|
-
logger
|
|
24
|
+
logger?.info(
|
|
23
25
|
`Using ${description} version: ${describeVersion(moduleVersion)}`
|
|
24
26
|
);
|
|
25
27
|
}
|
|
@@ -68,6 +70,7 @@ const checkJLinkArchitectureOnDarwin = async () => {
|
|
|
68
70
|
};
|
|
69
71
|
|
|
70
72
|
export default async (moduleVersion: ModuleVersion) => {
|
|
73
|
+
const logger = getNrfutilLogger();
|
|
71
74
|
try {
|
|
72
75
|
const dependencies = moduleVersion.dependencies;
|
|
73
76
|
|
|
@@ -81,12 +84,12 @@ export default async (moduleVersion: ModuleVersion) => {
|
|
|
81
84
|
if (jlinkVersion) {
|
|
82
85
|
const result = getExpectedVersion(jlinkVersion);
|
|
83
86
|
if (!result.isExpectedVersion) {
|
|
84
|
-
logger
|
|
87
|
+
logger?.warn(
|
|
85
88
|
`Installed JLink version does not match the expected version (${result.expectedVersion})`
|
|
86
89
|
);
|
|
87
90
|
}
|
|
88
91
|
} else {
|
|
89
|
-
logger
|
|
92
|
+
logger?.warn(
|
|
90
93
|
`JLink is not installed. Please install JLink from: https://www.segger.com/downloads/jlink`
|
|
91
94
|
);
|
|
92
95
|
}
|
|
@@ -101,15 +104,19 @@ export default async (moduleVersion: ModuleVersion) => {
|
|
|
101
104
|
JLinkArchOnDarwin === 'arm'
|
|
102
105
|
? '64-bit Apple M1 Installer'
|
|
103
106
|
: '64-bit Intel Installer';
|
|
104
|
-
logger
|
|
107
|
+
logger?.warn(
|
|
105
108
|
`It looks like you have installed JLink using ${JLinkInstallerVersion}, but currently we only support their Universal Installer for your system.`
|
|
106
109
|
);
|
|
107
|
-
logger
|
|
110
|
+
logger?.warn(
|
|
108
111
|
`Please install JLink: https://www.segger.com/downloads/jlink/JLink_MacOSX_V788j_universal.pkg`
|
|
109
112
|
);
|
|
110
113
|
}
|
|
111
114
|
}
|
|
112
115
|
} catch (error) {
|
|
113
|
-
logger
|
|
116
|
+
logger?.error(
|
|
117
|
+
`Failed to get the library versions${
|
|
118
|
+
error == null ? `: ${describeError(error)}` : ''
|
|
119
|
+
}`
|
|
120
|
+
);
|
|
114
121
|
}
|
|
115
122
|
};
|
package/nrfutil/index.ts
CHANGED
|
@@ -1,26 +1,16 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2024 Nordic Semiconductor ASA
|
|
3
3
|
*
|
|
4
4
|
* SPDX-License-Identifier: LicenseRef-Nordic-4-Clause
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
export { default as NrfutilDeviceLib } from './device/device';
|
|
8
|
-
|
|
9
|
-
export type {
|
|
10
|
-
DeviceCore,
|
|
11
|
-
DeviceTraits,
|
|
12
|
-
ProtectionStatus,
|
|
13
|
-
SerialPort as DeviceSerialPort,
|
|
14
|
-
NrfutilDevice,
|
|
15
|
-
} from './device/common';
|
|
16
|
-
|
|
17
|
-
export type { DeviceInfo } from './device/deviceInfo';
|
|
18
|
-
export type { DeviceCoreInfo } from './device/getCoreInfo';
|
|
19
|
-
export type { ImageType } from './device/getFwInfo';
|
|
20
|
-
|
|
21
7
|
export { default as prepareSandbox } from './sandbox';
|
|
22
8
|
export { NrfutilSandbox } from './sandbox';
|
|
23
9
|
export type { Progress, SemanticVersion } from './sandboxTypes';
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
|
|
10
|
+
export { getNrfutilLogger, setNrfutilLogger } from './nrfutilLogger';
|
|
11
|
+
export {
|
|
12
|
+
getModule,
|
|
13
|
+
setLogLevel,
|
|
14
|
+
setVerboseLogging,
|
|
15
|
+
getAllModuleVersions,
|
|
16
|
+
} from './modules';
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2024 Nordic Semiconductor ASA
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: LicenseRef-Nordic-4-Clause
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { getUserDataDir } from '../src/utils/appDirs';
|
|
8
|
+
import { isLauncher, packageJsonApp } from '../src/utils/packageJson';
|
|
9
|
+
import { getIsLoggingVerbose } from '../src/utils/persistentStore';
|
|
10
|
+
import logLibVersions from './device/logLibVersions';
|
|
11
|
+
import { describeVersion } from './moduleVersion';
|
|
12
|
+
import { getNrfutilLogger } from './nrfutilLogger';
|
|
13
|
+
import sandbox, { NrfutilSandbox } from './sandbox';
|
|
14
|
+
import { LogLevel } from './sandboxTypes';
|
|
15
|
+
|
|
16
|
+
const fallbackLevel = process.env.NODE_ENV === 'production' ? 'off' : 'error';
|
|
17
|
+
|
|
18
|
+
const logModuleVersions = (module: string, moduleSandbox: NrfutilSandbox) => {
|
|
19
|
+
if (module === 'device') {
|
|
20
|
+
moduleSandbox.getModuleVersion().then(logLibVersions);
|
|
21
|
+
} else {
|
|
22
|
+
moduleSandbox.getModuleVersion().then(moduleVersion => {
|
|
23
|
+
getNrfutilLogger()?.info(
|
|
24
|
+
`Using ${module} version: ${describeVersion(
|
|
25
|
+
moduleVersion.version
|
|
26
|
+
)}`
|
|
27
|
+
);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const forwardLogging = (moduleSandbox: NrfutilSandbox) => {
|
|
33
|
+
moduleSandbox.onLogging((evt, pid) => {
|
|
34
|
+
const logger = getNrfutilLogger();
|
|
35
|
+
const formatMsg = (msg: string) =>
|
|
36
|
+
`${
|
|
37
|
+
pid && moduleSandbox?.logLevel === 'trace'
|
|
38
|
+
? `[PID:${pid}] `
|
|
39
|
+
: ''
|
|
40
|
+
}${msg}`;
|
|
41
|
+
|
|
42
|
+
switch (evt.level) {
|
|
43
|
+
case 'TRACE':
|
|
44
|
+
logger?.verbose(formatMsg(evt.message));
|
|
45
|
+
break;
|
|
46
|
+
case 'DEBUG':
|
|
47
|
+
logger?.debug(formatMsg(evt.message));
|
|
48
|
+
break;
|
|
49
|
+
case 'INFO':
|
|
50
|
+
logger?.info(formatMsg(evt.message));
|
|
51
|
+
break;
|
|
52
|
+
case 'WARN':
|
|
53
|
+
logger?.warn(formatMsg(evt.message));
|
|
54
|
+
break;
|
|
55
|
+
case 'ERROR':
|
|
56
|
+
logger?.error(formatMsg(evt.message));
|
|
57
|
+
break;
|
|
58
|
+
case 'CRITICAL':
|
|
59
|
+
logger?.error(formatMsg(evt.message));
|
|
60
|
+
break;
|
|
61
|
+
case 'OFF':
|
|
62
|
+
default:
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
const getModuleSandbox = (module: string) => {
|
|
69
|
+
let moduleSandbox: NrfutilSandbox | undefined;
|
|
70
|
+
let promiseModuleSandbox: Promise<NrfutilSandbox> | undefined;
|
|
71
|
+
|
|
72
|
+
const createModuleSandbox = async () => {
|
|
73
|
+
getNrfutilLogger()?.info(`Initialising nrfutil module: ${module}`);
|
|
74
|
+
promiseModuleSandbox = sandbox(
|
|
75
|
+
getUserDataDir(),
|
|
76
|
+
module,
|
|
77
|
+
undefined,
|
|
78
|
+
undefined
|
|
79
|
+
);
|
|
80
|
+
moduleSandbox = await promiseModuleSandbox;
|
|
81
|
+
|
|
82
|
+
logModuleVersions(module, moduleSandbox);
|
|
83
|
+
forwardLogging(moduleSandbox);
|
|
84
|
+
|
|
85
|
+
const initialLogLevel = getIsLoggingVerbose() ? 'trace' : fallbackLevel;
|
|
86
|
+
moduleSandbox.setLogLevel(initialLogLevel);
|
|
87
|
+
|
|
88
|
+
return moduleSandbox;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
return {
|
|
92
|
+
isInitialised: () => !!moduleSandbox,
|
|
93
|
+
get: () =>
|
|
94
|
+
moduleSandbox ?? promiseModuleSandbox ?? createModuleSandbox(),
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
const modules: Record<
|
|
99
|
+
string,
|
|
100
|
+
{
|
|
101
|
+
isInitialised: () => boolean;
|
|
102
|
+
get: () => NrfutilSandbox | Promise<NrfutilSandbox>;
|
|
103
|
+
}
|
|
104
|
+
> = {};
|
|
105
|
+
if (process.env.NODE_ENV !== 'test' && !isLauncher()) {
|
|
106
|
+
const nrfutil = packageJsonApp().nrfConnectForDesktop.nrfutil;
|
|
107
|
+
if (nrfutil) {
|
|
108
|
+
Object.keys(nrfutil).forEach(module => {
|
|
109
|
+
modules[module] = getModuleSandbox(module);
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export const getModule = (module: string) => {
|
|
115
|
+
if (modules[module]) {
|
|
116
|
+
return modules[module].get();
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
throw new Error(`Module ${module} not found`);
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
export const isModuleInitialised = (module: string) =>
|
|
123
|
+
!!modules[module]?.isInitialised();
|
|
124
|
+
|
|
125
|
+
const getAllIninitialisedModules = () =>
|
|
126
|
+
Promise.all(
|
|
127
|
+
Object.values(modules)
|
|
128
|
+
.filter(module => module.isInitialised())
|
|
129
|
+
.map(module => module.get())
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
export const setLogLevel = async (level: LogLevel) => {
|
|
133
|
+
(await getAllIninitialisedModules()).forEach(moduleSandbox =>
|
|
134
|
+
moduleSandbox.setLogLevel(level)
|
|
135
|
+
);
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
export const setVerboseLogging = async (verbose: boolean) => {
|
|
139
|
+
(await getAllIninitialisedModules()).forEach(moduleSandbox =>
|
|
140
|
+
moduleSandbox.setLogLevel(verbose ? 'trace' : fallbackLevel)
|
|
141
|
+
);
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
export const getAllModuleVersions = async () =>
|
|
145
|
+
Promise.all(
|
|
146
|
+
(await getAllIninitialisedModules()).map(module =>
|
|
147
|
+
module.getModuleVersion()
|
|
148
|
+
)
|
|
149
|
+
);
|
package/nrfutil/sandbox.ts
CHANGED
|
@@ -174,9 +174,6 @@ export class NrfutilSandbox {
|
|
|
174
174
|
onProgress?: (progress: Progress, task?: Task) => void
|
|
175
175
|
) => {
|
|
176
176
|
try {
|
|
177
|
-
getNrfutilLogger()?.info(
|
|
178
|
-
`Preparing nrfutil-${this.module} version: ${this.version}`
|
|
179
|
-
);
|
|
180
177
|
await this.spawnNrfutil(
|
|
181
178
|
'install',
|
|
182
179
|
[`${this.module}=${this.version}`, '--force'],
|
package/package.json
CHANGED
|
@@ -8,7 +8,6 @@ import React from 'react';
|
|
|
8
8
|
import { useDispatch, useSelector } from 'react-redux';
|
|
9
9
|
import { getCurrentWindow } from '@electron/remote';
|
|
10
10
|
|
|
11
|
-
import NrfutilDeviceLib from '../../nrfutil/device/device';
|
|
12
11
|
import Button from '../Button/Button';
|
|
13
12
|
import Card from '../Card/Card';
|
|
14
13
|
import {
|
|
@@ -18,7 +17,7 @@ import {
|
|
|
18
17
|
} from '../Device/deviceSlice';
|
|
19
18
|
import { isLoggingVerbose, setIsLoggingVerbose } from '../Log/logSlice';
|
|
20
19
|
import { Toggle } from '../Toggle/Toggle';
|
|
21
|
-
import {
|
|
20
|
+
import { doNotResetVerboseLogginOnRestart } from '../utils/persistentStore';
|
|
22
21
|
import systemReport from '../utils/systemReport';
|
|
23
22
|
import AboutButton from './AboutButton';
|
|
24
23
|
import Section from './Section';
|
|
@@ -71,10 +70,9 @@ export default () => {
|
|
|
71
70
|
<Toggle
|
|
72
71
|
id="enableVerboseLoggin"
|
|
73
72
|
label="VERBOSE LOGGING"
|
|
74
|
-
onToggle={isToggled =>
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}}
|
|
73
|
+
onToggle={isToggled =>
|
|
74
|
+
dispatch(setIsLoggingVerbose(isToggled))
|
|
75
|
+
}
|
|
78
76
|
isToggled={verboseLogging}
|
|
79
77
|
variant="primary"
|
|
80
78
|
/>
|
|
@@ -83,7 +81,7 @@ export default () => {
|
|
|
83
81
|
<Button
|
|
84
82
|
variant="secondary"
|
|
85
83
|
onClick={() => {
|
|
86
|
-
|
|
84
|
+
doNotResetVerboseLogginOnRestart();
|
|
87
85
|
getCurrentWindow().emit('restart-window');
|
|
88
86
|
}}
|
|
89
87
|
title="Restart application with verbose logging turned on to get log messages from initial enumeration"
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
8
8
|
import { useDispatch, useSelector } from 'react-redux';
|
|
9
9
|
|
|
10
|
-
import { NrfutilDeviceLib } from '../../../nrfutil';
|
|
10
|
+
import { NrfutilDeviceLib } from '../../../nrfutil/device';
|
|
11
11
|
import { DeviceTraits } from '../../../nrfutil/device/common';
|
|
12
12
|
import logger from '../../logging';
|
|
13
13
|
import usageData from '../../utils/usageData';
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
31
|
import { KnownDevicePCA } from '../../../ipc/device';
|
|
32
|
-
import { NrfutilDevice } from '../../../nrfutil';
|
|
32
|
+
import { NrfutilDevice } from '../../../nrfutil/device';
|
|
33
33
|
import type { Device as WrappedDevice } from '../deviceSlice';
|
|
34
34
|
|
|
35
35
|
import nPMFamilyLogo from '!!@svgr!./nPM-Family-Series-logo.svg';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: LicenseRef-Nordic-4-Clause
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { DeviceInfo } from '../../nrfutil';
|
|
7
|
+
import { DeviceInfo } from '../../nrfutil/device';
|
|
8
8
|
import { DeviceTraits, NrfutilDevice } from '../../nrfutil/device/common';
|
|
9
9
|
import NrfutilDeviceLib from '../../nrfutil/device/device';
|
|
10
10
|
import logger from '../logging';
|
|
@@ -8,7 +8,7 @@ import { createSlice, PayloadAction } from '@reduxjs/toolkit';
|
|
|
8
8
|
import type { AutoDetectTypes } from '@serialport/bindings-cpp';
|
|
9
9
|
import { SerialPortOpenOptions } from 'serialport';
|
|
10
10
|
|
|
11
|
-
import { DeviceInfo } from '../../nrfutil';
|
|
11
|
+
import { DeviceInfo } from '../../nrfutil/device';
|
|
12
12
|
import { NrfutilDevice } from '../../nrfutil/device/common';
|
|
13
13
|
import type { RootState } from '../store';
|
|
14
14
|
import {
|
package/src/Log/logSlice.ts
CHANGED
|
@@ -7,8 +7,13 @@
|
|
|
7
7
|
import { createSlice, PayloadAction } from '@reduxjs/toolkit';
|
|
8
8
|
import { LogEntry } from 'winston';
|
|
9
9
|
|
|
10
|
-
import
|
|
11
|
-
import
|
|
10
|
+
import { setVerboseLogging } from '../../nrfutil/modules';
|
|
11
|
+
import logger from '../logging';
|
|
12
|
+
import type { AppThunk, RootState } from '../store';
|
|
13
|
+
import {
|
|
14
|
+
getIsLoggingVerbose,
|
|
15
|
+
persistIsLoggingVerbose,
|
|
16
|
+
} from '../utils/persistentStore';
|
|
12
17
|
|
|
13
18
|
const MAX_ENTRIES = 1000;
|
|
14
19
|
|
|
@@ -66,5 +71,20 @@ const slice = createSlice({
|
|
|
66
71
|
|
|
67
72
|
export const {
|
|
68
73
|
reducer,
|
|
69
|
-
actions: { addEntries, clear, toggleAutoScroll
|
|
74
|
+
actions: { addEntries, clear, toggleAutoScroll },
|
|
70
75
|
} = slice;
|
|
76
|
+
|
|
77
|
+
export const setIsLoggingVerbose =
|
|
78
|
+
(enable: boolean): AppThunk =>
|
|
79
|
+
dispatch => {
|
|
80
|
+
try {
|
|
81
|
+
setVerboseLogging(enable);
|
|
82
|
+
} catch (e) {
|
|
83
|
+
logger.error(
|
|
84
|
+
'Failed to enable verbose logging to nrfutil modules',
|
|
85
|
+
e
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
persistIsLoggingVerbose(enable);
|
|
89
|
+
dispatch(slice.actions.setIsLoggingVerbose(enable));
|
|
90
|
+
};
|
package/src/index.ts
CHANGED
|
@@ -74,7 +74,7 @@ export {
|
|
|
74
74
|
getUserDataDir,
|
|
75
75
|
} from './utils/appDirs';
|
|
76
76
|
|
|
77
|
-
export { openUrl } from './utils/open';
|
|
77
|
+
export { openUrl, openFile } from './utils/open';
|
|
78
78
|
export { default as systemReport } from './utils/systemReport';
|
|
79
79
|
|
|
80
80
|
export { default as usageData } from './utils/usageData';
|
|
@@ -28,7 +28,6 @@ export interface TerminalSettings {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
const sharedStore = new Store<{
|
|
31
|
-
verboseLogging: boolean;
|
|
32
31
|
isSendingTelemetry: boolean | undefined;
|
|
33
32
|
clientId?: string;
|
|
34
33
|
}>({
|
|
@@ -133,11 +132,6 @@ const newUsageDataClientId = () => {
|
|
|
133
132
|
export const getUsageDataClientId = () =>
|
|
134
133
|
existingUsageDataClientId() ?? newUsageDataClientId();
|
|
135
134
|
|
|
136
|
-
export const persistIsLoggingVerbose = (value: boolean) =>
|
|
137
|
-
sharedStore.set('isLoggingVerbose', value);
|
|
138
|
-
export const getIsLoggingVerbose = () =>
|
|
139
|
-
sharedStore.get('isLoggingVerbose', false);
|
|
140
|
-
|
|
141
135
|
// This one must be initialised lazily, because the package.json is not read yet when this module is initialised.
|
|
142
136
|
// This can probably be changed when we bundle shared with the apps.
|
|
143
137
|
let appSpecificStore: Store | undefined;
|
|
@@ -145,6 +139,7 @@ let appSpecificStore: Store | undefined;
|
|
|
145
139
|
interface SharedAppSpecificStoreSchema {
|
|
146
140
|
currentPane?: number;
|
|
147
141
|
isLogVisible?: boolean;
|
|
142
|
+
isLoggingVerbose?: boolean;
|
|
148
143
|
}
|
|
149
144
|
|
|
150
145
|
export const getAppSpecificStore = <
|
|
@@ -181,5 +176,22 @@ export const persistLogVisible = (visible: boolean) =>
|
|
|
181
176
|
`isLogVisible`,
|
|
182
177
|
visible
|
|
183
178
|
);
|
|
179
|
+
|
|
180
|
+
export const persistIsLoggingVerbose = (value: boolean) =>
|
|
181
|
+
getAppSpecificStore<SharedAppSpecificStoreSchema>().set(
|
|
182
|
+
'isLoggingVerbose',
|
|
183
|
+
value
|
|
184
|
+
);
|
|
185
|
+
export const getIsLoggingVerbose = () =>
|
|
186
|
+
getAppSpecificStore<SharedAppSpecificStoreSchema>().get(
|
|
187
|
+
'isLoggingVerbose',
|
|
188
|
+
false
|
|
189
|
+
);
|
|
190
|
+
|
|
191
|
+
const resetIsLoggingVerbose = () => persistIsLoggingVerbose(false);
|
|
192
|
+
globalThis.addEventListener?.('beforeunload', resetIsLoggingVerbose);
|
|
193
|
+
export const doNotResetVerboseLogginOnRestart = () =>
|
|
194
|
+
globalThis.removeEventListener?.('beforeunload', resetIsLoggingVerbose);
|
|
195
|
+
|
|
184
196
|
export const getPersistedLogVisible = () =>
|
|
185
197
|
getAppSpecificStore<SharedAppSpecificStoreSchema>().get(`isLogVisible`);
|
|
@@ -10,7 +10,7 @@ import path from 'path';
|
|
|
10
10
|
import pretty from 'prettysize';
|
|
11
11
|
import si from 'systeminformation';
|
|
12
12
|
|
|
13
|
-
import
|
|
13
|
+
import { getAllModuleVersions } from '../../nrfutil';
|
|
14
14
|
import {
|
|
15
15
|
describeVersion,
|
|
16
16
|
resolveModuleVersion,
|
|
@@ -23,7 +23,6 @@ import { Device } from '../Device/deviceSlice';
|
|
|
23
23
|
import logger from '../logging';
|
|
24
24
|
import { getAppDataDir } from './appDirs';
|
|
25
25
|
import { openFile } from './open';
|
|
26
|
-
import { packageJsonApp } from './packageJson';
|
|
27
26
|
|
|
28
27
|
const generalInfoReport = async () => {
|
|
29
28
|
const [
|
|
@@ -51,9 +50,6 @@ const generalInfoReport = async () => {
|
|
|
51
50
|
si.fsSize(),
|
|
52
51
|
]);
|
|
53
52
|
|
|
54
|
-
const jsonApp = packageJsonApp();
|
|
55
|
-
const hasDeviceLib = !!jsonApp.nrfConnectForDesktop.nrfutil?.device;
|
|
56
|
-
|
|
57
53
|
const result = [
|
|
58
54
|
`- System: ${manufacturer} ${model}`,
|
|
59
55
|
`- BIOS: ${vendor} ${version}`,
|
|
@@ -74,23 +70,27 @@ const generalInfoReport = async () => {
|
|
|
74
70
|
` - python3: ${python3}`,
|
|
75
71
|
];
|
|
76
72
|
|
|
77
|
-
|
|
78
|
-
const moduleVersion = await NrfutilDeviceLib.getModuleVersion();
|
|
79
|
-
const dependencies = moduleVersion.dependencies;
|
|
73
|
+
const moduleVersions = await getAllModuleVersions();
|
|
80
74
|
|
|
75
|
+
moduleVersions.forEach(moduleVersion => {
|
|
81
76
|
result.push(
|
|
82
|
-
|
|
83
|
-
` - nrfutil-device: ${moduleVersion.version}`,
|
|
84
|
-
` - nrfjprog DLL: ${describeVersion(
|
|
85
|
-
resolveModuleVersion('jprog', dependencies)
|
|
86
|
-
)}`,
|
|
87
|
-
` - JLink: ${describeVersion(
|
|
88
|
-
resolveModuleVersion('JlinkARM', dependencies)
|
|
89
|
-
)}`,
|
|
90
|
-
'',
|
|
91
|
-
]
|
|
77
|
+
` - nrfutil-${moduleVersion.name}: ${moduleVersion.version}`
|
|
92
78
|
);
|
|
93
|
-
|
|
79
|
+
if (moduleVersion.name === 'device') {
|
|
80
|
+
const dependencies = moduleVersion.dependencies;
|
|
81
|
+
result.push(
|
|
82
|
+
...[
|
|
83
|
+
` - nrfjprog DLL: ${describeVersion(
|
|
84
|
+
resolveModuleVersion('jprog', dependencies)
|
|
85
|
+
)}`,
|
|
86
|
+
` - JLink: ${describeVersion(
|
|
87
|
+
resolveModuleVersion('JlinkARM', dependencies)
|
|
88
|
+
)}`,
|
|
89
|
+
'',
|
|
90
|
+
]
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
94
|
|
|
95
95
|
return result;
|
|
96
96
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch.d.ts","sourceRoot":"","sources":["../../../../nrfutil/device/batch.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"batch.d.ts","sourceRoot":"","sources":["../../../../nrfutil/device/batch.ts"],"names":[],"mappings":";AAYA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAyB,SAAS,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EACH,UAAU,EACV,YAAY,EAEZ,aAAa,EACb,SAAS,EACZ,MAAM,UAAU,CAAC;AAElB,OAAO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,CAAC,EAAE,SAAS;IAWhE,OAAO,CACV,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,CAAC,cAAc,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,KAAK,IAAI;IAW7C,GAAG,CACZ,MAAM,EAAE,aAAa,EACrB,UAAU,CAAC,EAAE,eAAe,GAAG,SAAS,GACzC,OAAO,CAAC,OAAO,EAAE,CAAC;CAqGxB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type NrfutilSandbox } from '../sandbox';
|
|
2
1
|
import { Progress } from '../sandboxTypes';
|
|
3
2
|
export declare const deviceTraitsToArgs: (traits: DeviceTraits) => string[];
|
|
4
3
|
export type ResetKind = 'RESET_SYSTEM' | 'RESET_HARD' | 'RESET_DEBUG' | 'RESET_PIN';
|
|
@@ -92,7 +91,6 @@ export interface SerialPort {
|
|
|
92
91
|
vcom: number;
|
|
93
92
|
path: string | null;
|
|
94
93
|
}
|
|
95
|
-
export declare const getDeviceSandbox: () => Promise<NrfutilSandbox>;
|
|
96
94
|
export declare const deviceSingleTaskEndOperation: <T = void>(device: NrfutilDevice, command: string, onProgress?: ((progress: Progress) => void) | undefined, controller?: AbortController, args?: string[]) => Promise<NonNullable<Awaited<T>>>;
|
|
97
95
|
export declare const deviceSingleTaskEndOperationVoid: (device: NrfutilDevice, command: string, onProgress?: ((progress: Progress) => void) | undefined, controller?: AbortController, args?: string[]) => Promise<void>;
|
|
98
96
|
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../nrfutil/device/common.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../nrfutil/device/common.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,eAAO,MAAM,kBAAkB,WAAY,YAAY,aAatD,CAAC;AAEF,MAAM,MAAM,S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ChC;AACD,MAAM,WAAW,UAAU;IACvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,eAAO,MAAM,4BAA4B,qBAC7B,aAAa,WACZ,MAAM,2BACS,QAAQ,KAAK,IAAI,4BAC5B,eAAe,SACtB,MAAM,EAAE,qCAcjB,CAAC;AAEF,eAAO,MAAM,gCAAgC,WACjC,aAAa,WACZ,MAAM,2BACS,QAAQ,KAAK,IAAI,4BAC5B,eAAe,SACtB,MAAM,EAAE,kBAejB,CAAC"}
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import { LogLevel, LogMessage } from '../sandboxTypes';
|
|
3
3
|
import { Batch } from './batch';
|
|
4
4
|
declare const _default: {
|
|
5
|
-
program: (device: import("./common").NrfutilDevice, firmware: import("./program").FirmwareType, onProgress?: ((progress: import("
|
|
6
|
-
deviceInfo: (device: import("./common").NrfutilDevice, core?: import("./common").DeviceCore | undefined, onProgress?: ((progress: import("
|
|
7
|
-
erase: (device: import("./common").NrfutilDevice, core?: import("./common").DeviceCore | undefined, onProgress?: ((progress: import("
|
|
8
|
-
recover: (device: import("./common").NrfutilDevice, core?: import("./common").DeviceCore | undefined, onProgress?: ((progress: import("
|
|
9
|
-
reset: (device: import("./common").NrfutilDevice, core?: import("./common").DeviceCore | undefined, resetKind?: import("./common").ResetKind | undefined, onProgress?: ((progress: import("
|
|
10
|
-
getProtectionStatus: (device: import("./common").NrfutilDevice, core?: import("./common").DeviceCore | undefined, onProgress?: ((progress: import("
|
|
11
|
-
setProtectionStatus: (device: import("./common").NrfutilDevice, region: "All" | "SecureRegions" | "Region0" | "Region0Region1", core?: import("./common").DeviceCore | undefined, onProgress?: ((progress: import("
|
|
12
|
-
getFwInfo: (device: import("./common").NrfutilDevice, core?: import("./common").DeviceCore | undefined, onProgress?: ((progress: import("
|
|
13
|
-
setMcuState: (device: import("./common").NrfutilDevice, state: import("./setMcuState").McuState, onProgress?: ((progress: import("
|
|
14
|
-
getCoreInfo: (device: import("./common").NrfutilDevice, core?: import("./common").DeviceCore | undefined, onProgress?: ((progress: import("
|
|
5
|
+
program: (device: import("./common").NrfutilDevice, firmware: import("./program").FirmwareType, onProgress?: ((progress: import("..").Progress) => void) | undefined, core?: import("./common").DeviceCore | undefined, programmingOptions?: import("./program").ProgrammingOptions | undefined, controller?: AbortController | undefined) => Promise<void>;
|
|
6
|
+
deviceInfo: (device: import("./common").NrfutilDevice, core?: import("./common").DeviceCore | undefined, onProgress?: ((progress: import("..").Progress) => void) | undefined, controller?: AbortController | undefined) => Promise<import("./deviceInfo").DeviceInfo | undefined>;
|
|
7
|
+
erase: (device: import("./common").NrfutilDevice, core?: import("./common").DeviceCore | undefined, onProgress?: ((progress: import("..").Progress) => void) | undefined, controller?: AbortController | undefined) => Promise<void>;
|
|
8
|
+
recover: (device: import("./common").NrfutilDevice, core?: import("./common").DeviceCore | undefined, onProgress?: ((progress: import("..").Progress) => void) | undefined, controller?: AbortController | undefined) => Promise<void>;
|
|
9
|
+
reset: (device: import("./common").NrfutilDevice, core?: import("./common").DeviceCore | undefined, resetKind?: import("./common").ResetKind | undefined, onProgress?: ((progress: import("..").Progress) => void) | undefined, controller?: AbortController | undefined) => Promise<void>;
|
|
10
|
+
getProtectionStatus: (device: import("./common").NrfutilDevice, core?: import("./common").DeviceCore | undefined, onProgress?: ((progress: import("..").Progress) => void) | undefined, controller?: AbortController | undefined) => Promise<import("./getProtectionStatus").GetProtectionStatusResult>;
|
|
11
|
+
setProtectionStatus: (device: import("./common").NrfutilDevice, region: "All" | "SecureRegions" | "Region0" | "Region0Region1", core?: import("./common").DeviceCore | undefined, onProgress?: ((progress: import("..").Progress) => void) | undefined, controller?: AbortController | undefined) => Promise<void>;
|
|
12
|
+
getFwInfo: (device: import("./common").NrfutilDevice, core?: import("./common").DeviceCore | undefined, onProgress?: ((progress: import("..").Progress) => void) | undefined, controller?: AbortController | undefined) => Promise<import("./getFwInfo").FWInfo>;
|
|
13
|
+
setMcuState: (device: import("./common").NrfutilDevice, state: import("./setMcuState").McuState, onProgress?: ((progress: import("..").Progress) => void) | undefined, controller?: AbortController | undefined) => Promise<void>;
|
|
14
|
+
getCoreInfo: (device: import("./common").NrfutilDevice, core?: import("./common").DeviceCore | undefined, onProgress?: ((progress: import("..").Progress) => void) | undefined, controller?: AbortController | undefined) => Promise<import("./getCoreInfo").DeviceCoreInfo>;
|
|
15
15
|
list: (traits: import("./common").DeviceTraits, onEnumerated: (devices: import("./common").NrfutilDevice[]) => void, onError: (error: Error, pid?: number | undefined) => void, onHotplugEvent?: {
|
|
16
16
|
onDeviceArrived: (device: import("./common").NrfutilDevice) => void;
|
|
17
17
|
onDeviceLeft: (id: number) => void;
|
|
@@ -20,13 +20,13 @@ declare const _default: {
|
|
|
20
20
|
isRunning: () => boolean;
|
|
21
21
|
onClosed: (handler: (error?: Error | undefined) => void) => () => ((error?: Error | undefined) => void)[];
|
|
22
22
|
}>;
|
|
23
|
-
firmwareRead: (device: import("./common").NrfutilDevice, core?: import("./common").DeviceCore | undefined, onProgress?: ((progress: import("
|
|
23
|
+
firmwareRead: (device: import("./common").NrfutilDevice, core?: import("./common").DeviceCore | undefined, onProgress?: ((progress: import("..").Progress) => void) | undefined, controller?: AbortController | undefined) => Promise<Buffer>;
|
|
24
24
|
onLogging: (handler: (logging: LogMessage) => void) => Promise<() => ((logging: LogMessage, pid?: number | undefined) => void)[]>;
|
|
25
25
|
setLogLevel: (level: LogLevel) => Promise<void>;
|
|
26
26
|
setVerboseLogging: (verbose: boolean) => Promise<void>;
|
|
27
27
|
getModuleVersion: () => Promise<import("../sandboxTypes").ModuleVersion>;
|
|
28
|
-
boardController: (device: import("./common").NrfutilDevice, data: object, onProgress?: ((progress: import("
|
|
29
|
-
getBoardControllerVersion: (device: import("./common").NrfutilDevice, onProgress?: ((progress: import("
|
|
28
|
+
boardController: (device: import("./common").NrfutilDevice, data: object, onProgress?: ((progress: import("..").Progress) => void) | undefined, controller?: AbortController | undefined) => Promise<void>;
|
|
29
|
+
getBoardControllerVersion: (device: import("./common").NrfutilDevice, onProgress?: ((progress: import("..").Progress) => void) | undefined, controller?: AbortController | undefined) => Promise<import("./getBoardControllerVersion").BoardControllerVersion>;
|
|
30
30
|
batch: () => Batch;
|
|
31
31
|
};
|
|
32
32
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../../../nrfutil/device/device.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../../../nrfutil/device/device.ts"],"names":[],"mappings":";AAOA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsChC,wBAoBE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as NrfutilDeviceLib } from './device';
|
|
2
|
+
export type { DeviceCore, DeviceTraits, ProtectionStatus, SerialPort as DeviceSerialPort, NrfutilDevice, } from './common';
|
|
3
|
+
export type { DeviceInfo } from './deviceInfo';
|
|
4
|
+
export type { DeviceCoreInfo } from './getCoreInfo';
|
|
5
|
+
export type { ImageType } from './getFwInfo';
|
|
6
|
+
export type { Batch as DeviceBatch } from './batch';
|
|
7
|
+
export type { Callbacks as BatchCallbacks } from './batchTypes';
|
|
8
|
+
export type { GetProtectionStatusResult } from './getProtectionStatus';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../nrfutil/device/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEvD,YAAY,EACR,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,UAAU,IAAI,gBAAgB,EAC9B,aAAa,GAChB,MAAM,UAAU,CAAC;AAElB,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,YAAY,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,YAAY,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,SAAS,CAAC;AACpD,YAAY,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,cAAc,CAAC;AAChE,YAAY,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../nrfutil/device/list.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../nrfutil/device/list.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAsB,aAAa,EAAE,MAAM,UAAU,CAAC;AAE3E,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,SAAS,GAAG,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,aAAa,CAAC;CAC1B;AAED,MAAM,WAAW,SAAS;IACtB,OAAO,EAAE,aAAa,EAAE,CAAC;CAC5B;iCAUW,YAAY,0BACI,aAAa,EAAE,KAAK,IAAI,mBAC/B,KAAK,QAAQ,MAAM,KAAK,IAAI;8BAEf,aAAa,KAAK,IAAI;uBAC7B,MAAM,KAAK,IAAI;yBAE5B,MAAM;;;;;AARpB,wBA4CE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logLibVersions.d.ts","sourceRoot":"","sources":["../../../../nrfutil/device/logLibVersions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"logLibVersions.d.ts","sourceRoot":"","sources":["../../../../nrfutil/device/logLibVersions.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,aAAa,EAAiB,MAAM,iBAAiB,CAAC;wCAuD/B,aAAa;AAAlD,wBAkDE"}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
export { default as NrfutilDeviceLib } from './device/device';
|
|
2
|
-
export type { DeviceCore, DeviceTraits, ProtectionStatus, SerialPort as DeviceSerialPort, NrfutilDevice, } from './device/common';
|
|
3
|
-
export type { DeviceInfo } from './device/deviceInfo';
|
|
4
|
-
export type { DeviceCoreInfo } from './device/getCoreInfo';
|
|
5
|
-
export type { ImageType } from './device/getFwInfo';
|
|
6
1
|
export { default as prepareSandbox } from './sandbox';
|
|
7
2
|
export { NrfutilSandbox } from './sandbox';
|
|
8
3
|
export type { Progress, SemanticVersion } from './sandboxTypes';
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export type { GetProtectionStatusResult } from './device/getProtectionStatus';
|
|
4
|
+
export { getNrfutilLogger, setNrfutilLogger } from './nrfutilLogger';
|
|
5
|
+
export { getModule, setLogLevel, setVerboseLogging, getAllModuleVersions, } from './modules';
|
|
12
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../nrfutil/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../nrfutil/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,YAAY,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EACH,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,oBAAoB,GACvB,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NrfutilSandbox } from './sandbox';
|
|
2
|
+
import { LogLevel } from './sandboxTypes';
|
|
3
|
+
export declare const getModule: (module: string) => NrfutilSandbox | Promise<NrfutilSandbox>;
|
|
4
|
+
export declare const isModuleInitialised: (module: string) => boolean;
|
|
5
|
+
export declare const setLogLevel: (level: LogLevel) => Promise<void>;
|
|
6
|
+
export declare const setVerboseLogging: (verbose: boolean) => Promise<void>;
|
|
7
|
+
export declare const getAllModuleVersions: () => Promise<import("./sandboxTypes").ModuleVersion[]>;
|
|
8
|
+
//# sourceMappingURL=modules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../../../nrfutil/modules.ts"],"names":[],"mappings":"AAYA,OAAgB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAoG1C,eAAO,MAAM,SAAS,WAAY,MAAM,6CAMvC,CAAC;AAEF,eAAO,MAAM,mBAAmB,WAAY,MAAM,YACZ,CAAC;AASvC,eAAO,MAAM,WAAW,UAAiB,QAAQ,kBAIhD,CAAC;AAEF,eAAO,MAAM,iBAAiB,YAAmB,OAAO,kBAIvD,CAAC;AAEF,eAAO,MAAM,oBAAoB,yDAK5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox.d.ts","sourceRoot":"","sources":["../../../nrfutil/sandbox.ts"],"names":[],"mappings":";AAiBA,OAAO,EACH,cAAc,EACd,QAAQ,EACR,UAAU,EACV,aAAa,EAGb,QAAQ,EACR,IAAI,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AK,KAAK,IAAI;MAoDhD;IAEK,8BAA8B,eACxB,MAAM,2BACS,QAAQ,SAAS,IAAI,KAAK,IAAI,4BACzC,eAAe,SACtB,MAAM,EAAE,sCAahB;IAEK,kCAAkC,sBAC5B,MAAM,2BACS,QAAQ,SAAS,IAAI,KAAK,IAAI,4BACzC,eAAe,SACtB,MAAM,EAAE,gBAehB;IAEK,+BAA+B,sBACzB,MAAM,eACF,eAAe,SACtB,MAAM,EAAE,gBAehB;IAEK,SAAS,sBACO,UAAU,QAAQ,MAAM,KAAK,IAAI,sBA9jB1B,UAAU,QAAQ,MAAM,KAAK,IAAI,IAukB7D;IAEK,WAAW,UAAW,QAAQ,UAEnC;CACL;kCAGY,MAAM,UACP,MAAM,YACJ,MAAM,2BACQ,QAAQ,SAAS,IAAI,KAAK,IAAI;AAJ1D,wBAqBE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SupportCard.d.ts","sourceRoot":"","sources":["../../../../src/About/SupportCard.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"SupportCard.d.ts","sourceRoot":"","sources":["../../../../src/About/SupportCard.tsx"],"names":[],"mappings":";;AAwBA,wBAwEE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { NrfutilDevice } from '../../../nrfutil';
|
|
2
|
+
import { NrfutilDevice } from '../../../nrfutil/device';
|
|
3
3
|
import type { Device as WrappedDevice } from '../deviceSlice';
|
|
4
4
|
type Device = NrfutilDevice | WrappedDevice;
|
|
5
5
|
interface DeviceInfo {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceInfo.d.ts","sourceRoot":"","sources":["../../../../../src/Device/deviceInfo/deviceInfo.ts"],"names":[],"mappings":";AA+BA,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"deviceInfo.d.ts","sourceRoot":"","sources":["../../../../../src/Device/deviceInfo/deviceInfo.ts"],"names":[],"mappings":";AA+BA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAY9D,KAAK,MAAM,GAAG,aAAa,GAAG,aAAa,CAAC;AAE5C,UAAU,UAAU;IAChB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC;IACxB,OAAO,EAAE;QACL,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,eAAe,CAAC,EAAE,MAAM,CAAC;KAC5B,CAAC;CACL;AA+LD,eAAO,MAAM,UAAU,WAAY,MAAM,KAAG,UAC2B,CAAC;AASxE,eAAO,MAAM,mBAAmB,WACpB,MAAM;;YAQjB,CAAC;AAEF,eAAO,MAAM,cAAc,WAAY,MAAM,uBAEiC,CAAC;AAE/E,eAAO,MAAM,YAAY,WAAY,MAAM,uBAIrC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceLister.d.ts","sourceRoot":"","sources":["../../../../src/Device/deviceLister.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"deviceLister.d.ts","sourceRoot":"","sources":["../../../../src/Device/deviceLister.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAiB,MAAM,6BAA6B,CAAC;AAG1E,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAcpD,OAAO,EAEH,MAAM,EAIT,MAAM,eAAe,CAAC;AAsDvB,eAAO,MAAM,QAAQ,WAAY,MAAM,eAAe,UAAU,YAK3D,CAAC;AA8BN,eAAO,MAAM,oBAAoB,iBACf,YAAY,kBACV,YAAY,YAS3B,CAAC;AAkCN,eAAO,MAAM,oBAAoB,kBAEV,YAAY,8BACC,MAAM,KAAK,IAAI,iCACZ,MAAM,KAAK,IAAI,sBAC1B,MAAM,IAAI,2BACL,MAAM,kBAAkB,OAAO,KAAK,IAAI,KAClE,SAAS,SAAS,EAAE,IAAI,CA0P1B,CAAC;AAwDN,eAAO,MAAM,mBAAmB,cAAe,MAAM,IAAI,SAGxD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AutoDetectTypes } from '@serialport/bindings-cpp';
|
|
2
2
|
import { SerialPortOpenOptions } from 'serialport';
|
|
3
|
-
import { DeviceInfo } from '../../nrfutil';
|
|
3
|
+
import { DeviceInfo } from '../../nrfutil/device';
|
|
4
4
|
import { NrfutilDevice } from '../../nrfutil/device/common';
|
|
5
5
|
import type { RootState } from '../store';
|
|
6
6
|
export interface Device extends NrfutilDevice {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceSlice.d.ts","sourceRoot":"","sources":["../../../../src/Device/deviceSlice.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEnD,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"deviceSlice.d.ts","sourceRoot":"","sources":["../../../../src/Device/deviceSlice.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEnD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAU1C,MAAM,WAAW,MAAO,SAAQ,aAAa;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0BAA0B,CAAC,EAAE,qBAAqB,CAAC,eAAe,CAAC,CAAC;CACvE;AAED,MAAM,WAAW,sBAAuB,SAAQ,MAAM;IAClD,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,wBAAwB,WACzB,MAAM,qCAEmC,CAAC;AA0BtD,MAAM,WAAW,WAAW;IACxB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,kBAAkB,EAAE,SAAS,GAAG,WAAW,GAAG,aAAa,CAAC;IAC5D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,UAAU,CAAC;CACnC;AA+MD,eAAO,MACH,OAAO,mEAEH,cAAc,mFACd,mBAAmB,6FACnB,YAAY,sFACZ,qBAAqB,uHACrB,SAAS,mFACT,YAAY,sFACZ,iBAAiB;;;8CACjB,qBAAqB,+FACrB,oBAAoB,+HACpB,wBAAwB,gIAEvB,CAAC;AAEV,eAAO,MAAM,SAAS,UAAW,SAAS,gBAAgB,MAAM,uBACG,CAAC;AAEpE,eAAO,MAAM,UAAU,UAAW,SAAS,aAAyB,CAAC;AAErE,eAAO,MAAM,gBAAgB,UAAW,SAAS,YAChB,CAAC;AAElC,eAAO,MAAM,cAAc,UAAW,SAAS,uBAAgC,CAAC;AAEhF,eAAO,MAAM,kBAAkB,UAAW,SAAS,2BAC0B,CAAC;AAE9E,eAAO,MAAM,oBAAoB,UAAW,SAAS,8BACR,CAAC;AAE9C,eAAO,MAAM,qBAAqB,UAAW,SAAS,4CACnB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LogEntry } from 'winston';
|
|
2
|
-
import type { RootState } from '../store';
|
|
2
|
+
import type { AppThunk, RootState } from '../store';
|
|
3
3
|
export interface Log {
|
|
4
4
|
autoScroll: boolean;
|
|
5
5
|
logEntries: LogEntry[];
|
|
@@ -8,5 +8,6 @@ export interface Log {
|
|
|
8
8
|
export declare const autoScroll: (state: RootState) => boolean;
|
|
9
9
|
export declare const logEntries: (state: RootState) => LogEntry[];
|
|
10
10
|
export declare const isLoggingVerbose: (state: RootState) => boolean;
|
|
11
|
-
export declare const reducer: import("redux").Reducer<Log, import("redux").AnyAction>, addEntries: import("@reduxjs/toolkit").ActionCreatorWithPayload<LogEntry[], "log/addEntries">, clear: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"log/clear">, toggleAutoScroll: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"log/toggleAutoScroll"
|
|
11
|
+
export declare const reducer: import("redux").Reducer<Log, import("redux").AnyAction>, addEntries: import("@reduxjs/toolkit").ActionCreatorWithPayload<LogEntry[], "log/addEntries">, clear: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"log/clear">, toggleAutoScroll: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"log/toggleAutoScroll">;
|
|
12
|
+
export declare const setIsLoggingVerbose: (enable: boolean) => AppThunk;
|
|
12
13
|
//# sourceMappingURL=logSlice.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logSlice.d.ts","sourceRoot":"","sources":["../../../../src/Log/logSlice.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"logSlice.d.ts","sourceRoot":"","sources":["../../../../src/Log/logSlice.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAInC,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAQpD,MAAM,WAAW,GAAG;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,QAAQ,EAAE,CAAC;IACvB,gBAAgB,EAAE,OAAO,CAAC;CAC7B;AAqBD,eAAO,MAAM,UAAU,UAAW,SAAS,YAAyB,CAAC;AACrE,eAAO,MAAM,UAAU,UAAW,SAAS,eAAyB,CAAC;AACrE,eAAO,MAAM,gBAAgB,UAAW,SAAS,YACnB,CAAC;AAwB/B,eAAO,MACH,OAAO,2DACI,UAAU,qFAAE,KAAK,uEAAE,gBAAgB,gFACzC,CAAC;AAEV,eAAO,MAAM,mBAAmB,WACnB,OAAO,KAAG,QAYlB,CAAC"}
|
|
@@ -48,7 +48,7 @@ export { default as logger } from './logging';
|
|
|
48
48
|
export { default as bleChannels } from './utils/bleChannels';
|
|
49
49
|
export { colors } from './utils/colors';
|
|
50
50
|
export { getAppDir, getAppFile, getAppDataDir, getAppLogDir, getUserDataDir, } from './utils/appDirs';
|
|
51
|
-
export { openUrl } from './utils/open';
|
|
51
|
+
export { openUrl, openFile } from './utils/open';
|
|
52
52
|
export { default as systemReport } from './utils/systemReport';
|
|
53
53
|
export { default as usageData } from './utils/usageData';
|
|
54
54
|
export { type Metadata as UsageDataMetadata } from './utils/usageDataCommon';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,kBAAkB;;;;;;;;;CAA6B,CAAC;AAE7D,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EACH,OAAO,IAAI,cAAc,EACzB,KAAK,KAAK,IAAI,mBAAmB,GACpC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACH,MAAM,EACN,aAAa,EACb,kBAAkB,EAClB,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,GACf,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,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,MAAM,oBAAoB,CAAC"}
|
|
@@ -27,16 +27,18 @@ export declare const persistIsSendingUsageData: (value: boolean) => void;
|
|
|
27
27
|
export declare const getIsSendingUsageData: () => boolean | undefined;
|
|
28
28
|
export declare const deleteIsSendingUsageData: () => void;
|
|
29
29
|
export declare const getUsageDataClientId: () => string;
|
|
30
|
-
export declare const persistIsLoggingVerbose: (value: boolean) => void;
|
|
31
|
-
export declare const getIsLoggingVerbose: () => boolean;
|
|
32
30
|
interface SharedAppSpecificStoreSchema {
|
|
33
31
|
currentPane?: number;
|
|
34
32
|
isLogVisible?: boolean;
|
|
33
|
+
isLoggingVerbose?: boolean;
|
|
35
34
|
}
|
|
36
35
|
export declare const getAppSpecificStore: <StoreSchema extends Record<string, any>>(options?: Store.Options<any>) => Store<StoreSchema & SharedAppSpecificStoreSchema>;
|
|
37
36
|
export declare const persistCurrentPane: (currentPane: number) => void;
|
|
38
37
|
export declare const getPersistedCurrentPane: () => number | undefined;
|
|
39
38
|
export declare const persistLogVisible: (visible: boolean) => void;
|
|
39
|
+
export declare const persistIsLoggingVerbose: (value: boolean) => void;
|
|
40
|
+
export declare const getIsLoggingVerbose: () => boolean;
|
|
41
|
+
export declare const doNotResetVerboseLogginOnRestart: () => void;
|
|
40
42
|
export declare const getPersistedLogVisible: () => boolean | undefined;
|
|
41
43
|
export {};
|
|
42
44
|
//# sourceMappingURL=persistentStore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"persistentStore.d.ts","sourceRoot":"","sources":["../../../../src/utils/persistentStore.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAInD,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAIpD,MAAM,WAAW,cAAc;IAC3B,iBAAiB,EAAE,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B,MAAM,oBAcvD,CAAC;AAEF,eAAO,MAAM,yBAAyB,iBACpB,MAAM,sBACA,KAAK,cAAc,EAAE,aAAa,CAAC,SAKrD,CAAC;AACP,eAAO,MAAM,8BAA8B,iBACzB,MAAM,KACrB,cAAc,GAAG,SAMnB,CAAC;AACF,eAAO,MAAM,uBAAuB,WACxB,MAAM,aACH,MAAM,oBACC,gBAAgB,SAQrC,CAAC;AACF,eAAO,MAAM,4BAA4B,WAC7B,MAAM,aACH,MAAM,KAClB,gBAAgB,GAAG,SAUrB,CAAC;AAEF,eAAO,MAAM,yBAAyB,UAAW,OAAO,SACR,CAAC;AACjD,eAAO,MAAM,qBAAqB,2BACyC,CAAC;AAC5E,eAAO,MAAM,wBAAwB,YACO,CAAC;AAS7C,eAAO,MAAM,oBAAoB,cACwB,CAAC;AAM1D,UAAU,4BAA4B;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,eAAO,MAAM,mBAAmB,sDAKlB,MAAM,OAAO,CAAC,GAAG,CAAC,sDAe/B,CAAC;AAEF,eAAO,MAAM,kBAAkB,gBAAiB,MAAM,SAIjD,CAAC;AACN,eAAO,MAAM,uBAAuB,0BACsC,CAAC;AAC3E,eAAO,MAAM,iBAAiB,YAAa,OAAO,SAI7C,CAAC;AAEN,eAAO,MAAM,uBAAuB,UAAW,OAAO,SAIjD,CAAC;AACN,eAAO,MAAM,mBAAmB,eAI3B,CAAC;AAIN,eAAO,MAAM,gCAAgC,YAC8B,CAAC;AAE5E,eAAO,MAAM,sBAAsB,2BACwC,CAAC"}
|
|
@@ -6,8 +6,8 @@ export interface Metadata {
|
|
|
6
6
|
}
|
|
7
7
|
export declare const simplifyDeviceForLogging: (device: Device) => {
|
|
8
8
|
devkit: import("../../nrfutil/device/common").NordicDevKit | undefined;
|
|
9
|
-
serialPorts: import("../../nrfutil").DeviceSerialPort[] | undefined;
|
|
10
|
-
traits: import("../../nrfutil").DeviceTraits;
|
|
9
|
+
serialPorts: import("../../nrfutil/device").DeviceSerialPort[] | undefined;
|
|
10
|
+
traits: import("../../nrfutil/device").DeviceTraits;
|
|
11
11
|
serialNumber: string | null | undefined;
|
|
12
12
|
enumerationID: number;
|
|
13
13
|
usb: {
|