@microtronics/studio-cli 1.2.0-alpha.4 → 1.2.0-alpha.5

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.
@@ -2126,7 +2126,7 @@ export declare const DeviceProfiles: any;
2126
2126
  * The pair of transports (UTO data + AT debug) needed to talk to a connected device,
2127
2127
  * plus a way to release the underlying link.
2128
2128
  */
2129
- declare interface DeviceTransports {
2129
+ export declare interface DeviceTransports {
2130
2130
  uto: ITransport;
2131
2131
  /** Absent when the caller asked for the UTO interface only (`needDebug: false`). */
2132
2132
  debug?: ITransport;
@@ -5727,7 +5727,7 @@ export declare interface StampPollerStatus {
5727
5727
  * Opens the transports for a device given its serial number. The default (WebUSB) factory
5728
5728
  * is used by {@link openDevice} unless a test/consumer supplies its own.
5729
5729
  */
5730
- declare type TransportFactory = (serial: string, needDebug?: boolean) => Promise<DeviceTransports>;
5730
+ export declare type TransportFactory = (serial: string, needDebug?: boolean) => Promise<DeviceTransports>;
5731
5731
 
5732
5732
  /**
5733
5733
  * Upload result interface
@@ -5746,9 +5746,11 @@ declare interface UploadResult {
5746
5746
  * @param debugLog - Enable debug logging
5747
5747
  * @param retryMs - Total ms budget to retry a transient device-open failure (see
5748
5748
  * {@link isTransientUsbOpenError}); `0` (the default) attempts once.
5749
+ * @param transportFactory - Overrides how the transports are obtained (used by tests and by
5750
+ * consumers, e.g. the VS Code extension, running on their own injected transport).
5749
5751
  * @returns Promise resolving to an UploadResult
5750
5752
  */
5751
- declare function uploadToDevice(serialNumber: string, fileUri: URI, fs: LocalFS, logger: Log.Logger, debugLog?: boolean, retryMs?: number): Promise<UploadResult>;
5753
+ declare function uploadToDevice(serialNumber: string, fileUri: URI, fs: LocalFS, logger: Log.Logger, debugLog?: boolean, retryMs?: number, transportFactory?: TransportFactory): Promise<UploadResult>;
5752
5754
 
5753
5755
  declare function uriToMemFsPath(path: URI): string;
5754
5756