Loading apps/cli/package.json +1 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ "source-map-support": "^0.5.21" }, "devDependencies": { "@types/node": "^22.2.0", "@types/node": "^22.4.1", "@yume-chan/eslint-config": "workspace:^1.0.0", "@yume-chan/tsconfig": "workspace:^1.0.0", "prettier": "^3.3.3", Loading libraries/adb-credential-web/src/index.ts +6 −0 Original line number Diff line number Diff line Loading @@ -63,6 +63,12 @@ async function getAllKeys() { }); } /** * An `AdbCredentialStore` implementation that creates RSA private keys using Web Crypto API * and stores them in IndexedDB. * * [Online Documentation](https://docs.tangoapp.dev/tango/daemon/credential-store/) */ export default class AdbWebCredentialStore implements AdbCredentialStore { #appName: string; Loading libraries/adb-daemon-webusb/package.json +1 −1 Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ "@yume-chan/struct": "workspace:^0.0.24" }, "devDependencies": { "@types/node": "^22.2.0", "@types/node": "^22.4.1", "@yume-chan/eslint-config": "workspace:^1.0.0", "@yume-chan/test-runner": "workspace:^1.0.0", "@yume-chan/tsconfig": "workspace:^1.0.0", Loading libraries/adb-daemon-webusb/src/device.ts +3 −2 Original line number Diff line number Diff line Loading @@ -343,8 +343,9 @@ export class AdbDaemonWebUsbDevice implements AdbDaemonDevice { } /** * Claim the device and create a pair of `AdbPacket` streams to the ADB interface. * @returns The pair of `AdbPacket` streams. * Open the device and create a new connection to the ADB Daemon. * * [Online Documentation](https://docs.tangoapp.dev/tango/daemon/usb/create-connection/) */ async connect(): Promise<AdbDaemonWebUsbConnection> { const [inEndpoint, outEndpoint] = await this.#claimInterface(); Loading libraries/adb-daemon-webusb/src/manager.ts +7 −19 Original line number Diff line number Diff line Loading @@ -12,6 +12,9 @@ export namespace AdbDaemonWebUsbDeviceManager { } } /** * [Online Documentation](https://docs.tangoapp.dev/tango/daemon/usb/device-manager/) */ export class AdbDaemonWebUsbDeviceManager { /** * Gets the instance of {@link AdbDaemonWebUsbDeviceManager} using browser WebUSB implementation. Loading @@ -35,17 +38,9 @@ export class AdbDaemonWebUsbDeviceManager { } /** * Request access to a connected device. * This is a convince method for `usb.requestDevice()`. * @param filters * The filters to apply to the device list. * Call `USB#requestDevice()` to prompt the user to select a device. * * It must have `classCode`, `subclassCode` and `protocolCode` fields for selecting the ADB interface, * but might also have `vendorId`, `productId` or `serialNumber` fields to limit the displayed device list. * * Defaults to {@link ADB_DEFAULT_INTERFACE_FILTER}. * @returns An {@link AdbDaemonWebUsbDevice} instance if the user selected a device, * or `undefined` if the user cancelled the device picker. * [Online Documentation](https://docs.tangoapp.dev/tango/daemon/usb/request-device/) */ async requestDevice( options: AdbDaemonWebUsbDeviceManager.RequestDeviceOptions = {}, Loading @@ -69,16 +64,9 @@ export class AdbDaemonWebUsbDeviceManager { } /** * Get all connected and authenticated devices. * This is a convince method for `usb.getDevices()`. * @param filters * The filters to apply to the device list. * * It must have `classCode`, `subclassCode` and `protocolCode` fields for selecting the ADB interface, * but might also have `vendorId`, `productId` or `serialNumber` fields to limit the device list. * Get all connected and requested devices that match the specified filters. * * Defaults to {@link ADB_DEFAULT_INTERFACE_FILTER}. * @returns An array of {@link AdbDaemonWebUsbDevice} instances for all connected and authenticated devices. * [Online Documentation](https://docs.tangoapp.dev/tango/daemon/usb/get-devices/) */ getDevices( filters?: USBDeviceFilter[] | undefined, Loading Loading
apps/cli/package.json +1 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ "source-map-support": "^0.5.21" }, "devDependencies": { "@types/node": "^22.2.0", "@types/node": "^22.4.1", "@yume-chan/eslint-config": "workspace:^1.0.0", "@yume-chan/tsconfig": "workspace:^1.0.0", "prettier": "^3.3.3", Loading
libraries/adb-credential-web/src/index.ts +6 −0 Original line number Diff line number Diff line Loading @@ -63,6 +63,12 @@ async function getAllKeys() { }); } /** * An `AdbCredentialStore` implementation that creates RSA private keys using Web Crypto API * and stores them in IndexedDB. * * [Online Documentation](https://docs.tangoapp.dev/tango/daemon/credential-store/) */ export default class AdbWebCredentialStore implements AdbCredentialStore { #appName: string; Loading
libraries/adb-daemon-webusb/package.json +1 −1 Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ "@yume-chan/struct": "workspace:^0.0.24" }, "devDependencies": { "@types/node": "^22.2.0", "@types/node": "^22.4.1", "@yume-chan/eslint-config": "workspace:^1.0.0", "@yume-chan/test-runner": "workspace:^1.0.0", "@yume-chan/tsconfig": "workspace:^1.0.0", Loading
libraries/adb-daemon-webusb/src/device.ts +3 −2 Original line number Diff line number Diff line Loading @@ -343,8 +343,9 @@ export class AdbDaemonWebUsbDevice implements AdbDaemonDevice { } /** * Claim the device and create a pair of `AdbPacket` streams to the ADB interface. * @returns The pair of `AdbPacket` streams. * Open the device and create a new connection to the ADB Daemon. * * [Online Documentation](https://docs.tangoapp.dev/tango/daemon/usb/create-connection/) */ async connect(): Promise<AdbDaemonWebUsbConnection> { const [inEndpoint, outEndpoint] = await this.#claimInterface(); Loading
libraries/adb-daemon-webusb/src/manager.ts +7 −19 Original line number Diff line number Diff line Loading @@ -12,6 +12,9 @@ export namespace AdbDaemonWebUsbDeviceManager { } } /** * [Online Documentation](https://docs.tangoapp.dev/tango/daemon/usb/device-manager/) */ export class AdbDaemonWebUsbDeviceManager { /** * Gets the instance of {@link AdbDaemonWebUsbDeviceManager} using browser WebUSB implementation. Loading @@ -35,17 +38,9 @@ export class AdbDaemonWebUsbDeviceManager { } /** * Request access to a connected device. * This is a convince method for `usb.requestDevice()`. * @param filters * The filters to apply to the device list. * Call `USB#requestDevice()` to prompt the user to select a device. * * It must have `classCode`, `subclassCode` and `protocolCode` fields for selecting the ADB interface, * but might also have `vendorId`, `productId` or `serialNumber` fields to limit the displayed device list. * * Defaults to {@link ADB_DEFAULT_INTERFACE_FILTER}. * @returns An {@link AdbDaemonWebUsbDevice} instance if the user selected a device, * or `undefined` if the user cancelled the device picker. * [Online Documentation](https://docs.tangoapp.dev/tango/daemon/usb/request-device/) */ async requestDevice( options: AdbDaemonWebUsbDeviceManager.RequestDeviceOptions = {}, Loading @@ -69,16 +64,9 @@ export class AdbDaemonWebUsbDeviceManager { } /** * Get all connected and authenticated devices. * This is a convince method for `usb.getDevices()`. * @param filters * The filters to apply to the device list. * * It must have `classCode`, `subclassCode` and `protocolCode` fields for selecting the ADB interface, * but might also have `vendorId`, `productId` or `serialNumber` fields to limit the device list. * Get all connected and requested devices that match the specified filters. * * Defaults to {@link ADB_DEFAULT_INTERFACE_FILTER}. * @returns An array of {@link AdbDaemonWebUsbDevice} instances for all connected and authenticated devices. * [Online Documentation](https://docs.tangoapp.dev/tango/daemon/usb/get-devices/) */ getDevices( filters?: USBDeviceFilter[] | undefined, Loading