@fliwright/devices 0.0.0-stage → 0.1.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Fliwright contributors.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,48 @@
1
- # Temporary Holding Version
1
+ # @fliwright/devices
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Shared host device discovery for CLI, editor integrations and cloud Workers.
4
+ No Flutter app or VM Service connection is required.
5
+
6
+ ```ts
7
+ import { DeviceDiscovery } from '@fliwright/devices';
8
+
9
+ const inventory = await new DeviceDiscovery().scan();
10
+ // inventory.devices, inventory.diagnostics, inventory.scannedAt
11
+ ```
12
+
13
+ - iOS: Xcode `simctl` lists booted, stopped and unavailable iOS simulators;
14
+ `xcdevice` lists physical iPhones/iPads, including unavailable devices known to Xcode.
15
+ macOS, watchOS and tvOS devices are excluded. iOS detection requires macOS.
16
+ - Android: `adb devices -l` lists connected physical devices and running emulators,
17
+ including offline and unauthorized devices. `emulator -list-avds` adds stopped AVDs.
18
+ Running AVD names merge into the connected emulator entry. An unidentified/offline
19
+ emulator makes unmatched AVD state `unknown`, because shutdown cannot be proven.
20
+ - `osVersion`, `model`, `avdName` and device diagnostic `detail` are optional.
21
+ iOS unavailable devices report Xcode's detail rather than guessing authorization state.
22
+ - Android executables resolve through `ANDROID_HOME`, `ANDROID_SDK_ROOT`, the standard
23
+ host SDK location, then PATH. Override with constructor `tools: { adb, emulator, xcrun }`.
24
+ - `scan({ platforms: ['android'], timeoutMs: 8000, signal })` limits detection.
25
+ The default scans Android and, on macOS, iOS. Each tool command has a bounded timeout.
26
+ Cancellation rejects; native tool failures appear in `diagnostics` and other results survive.
27
+ An empty list with diagnostics is incomplete detection, not proof of an empty host.
28
+ - Detection does not launch apps or boot, erase, unlock or pair devices. ADB may start
29
+ its normal host daemon while enumerating. Android OS metadata uses read-only getprop.
30
+ - A stopped AVD uses `avd:<name>` as its inventory ID; that ID cannot launch a Flutter app.
31
+ Once running, use its native `emulator-<port>` ID. Device IDs are scoped to the host/platform.
32
+
33
+ The package owns device information, native tool execution and normalization.
34
+ Cloud inventory freshness, registration, slot leases, scheduling and reset policies
35
+ remain with the cloud package. Scanning never creates execution slots.
36
+
37
+ CLI: `fliwright devices list --json` or `fliwright devices list --platform ios --json`.
38
+
39
+
40
+ ## Device change notifications
41
+
42
+ `discovery.watch(changed, { signal })` returns a disposal function. It observes
43
+ Android `adb track-devices`, iOS `xcdevice observe --both` on macOS, AVD directory
44
+ changes and CoreSimulator device state files. Notifications are coalesced for
45
+ 150ms; call `scan()` to read normalized inventory. Native observers retry after
46
+ failure. Abort or dispose to release child processes and filesystem watchers.
47
+ Keep periodic scans for state transitions without complete native notifications
48
+ and to surface tool diagnostics; notifications alone do not certify readiness.
@@ -0,0 +1,16 @@
1
+ import type { DeviceDiscoveryOptions, DeviceInventory, DeviceScanOptions } from './types.js';
2
+ /** Read-only device discovery. Tool failures return diagnostics while other sources remain usable. */
3
+ export declare class DeviceDiscovery {
4
+ private readonly host;
5
+ private readonly tools;
6
+ constructor(options?: DeviceDiscoveryOptions);
7
+ /** Observe native device changes. Notifications are coalesced for 150ms; rescan for state.
8
+ * Failed observers retry automatically. Dispose or abort to stop all observers.
9
+ * Keep periodic scans for platforms/tools without complete native notifications.
10
+ */
11
+ watch(changed: () => void, options?: {
12
+ signal?: AbortSignal;
13
+ }): () => void;
14
+ /** Detect devices without launching apps or booting, erasing, pairing or unlocking devices. Cancellation rejects. */
15
+ scan(options?: DeviceScanOptions): Promise<DeviceInventory>;
16
+ }
@@ -0,0 +1,164 @@
1
+ import { existsSync } from 'node:fs';
2
+ import { homedir } from 'node:os';
3
+ import { join } from 'node:path';
4
+ import { runTool } from './commands.js';
5
+ import { watchDeviceChanges } from './device-changes.js';
6
+ class InvalidOutput extends Error {
7
+ }
8
+ function object(value) {
9
+ if (!value || typeof value !== 'object' || Array.isArray(value))
10
+ throw new InvalidOutput();
11
+ return value;
12
+ }
13
+ function array(value) {
14
+ if (!Array.isArray(value))
15
+ throw new InvalidOutput();
16
+ return value;
17
+ }
18
+ function json(text) {
19
+ try {
20
+ return JSON.parse(text);
21
+ }
22
+ catch {
23
+ throw new InvalidOutput();
24
+ }
25
+ }
26
+ function required(value) {
27
+ if (typeof value !== 'string' || !value)
28
+ throw new InvalidOutput();
29
+ return value;
30
+ }
31
+ function text(value) { return typeof value === 'string' && value ? value : undefined; }
32
+ function androidTool(name, host) {
33
+ const sdk = process.env.ANDROID_HOME || process.env.ANDROID_SDK_ROOT || (host === 'darwin'
34
+ ? join(homedir(), 'Library', 'Android', 'sdk')
35
+ : host === 'win32' ? join(process.env.LOCALAPPDATA || join(homedir(), 'AppData', 'Local'), 'Android', 'Sdk') : join(homedir(), 'Android', 'Sdk'));
36
+ const path = join(sdk, name === 'adb' ? 'platform-tools' : 'emulator', host === 'win32' ? `${name}.exe` : name);
37
+ return existsSync(path) ? path : name;
38
+ }
39
+ /** Read-only device discovery. Tool failures return diagnostics while other sources remain usable. */
40
+ export class DeviceDiscovery {
41
+ host;
42
+ tools;
43
+ constructor(options = {}) {
44
+ this.host = options.hostPlatform ?? process.platform;
45
+ this.tools = { adb: androidTool('adb', this.host), emulator: androidTool('emulator', this.host), xcrun: 'xcrun', ...options.tools };
46
+ }
47
+ /** Observe native device changes. Notifications are coalesced for 150ms; rescan for state.
48
+ * Failed observers retry automatically. Dispose or abort to stop all observers.
49
+ * Keep periodic scans for platforms/tools without complete native notifications.
50
+ */
51
+ watch(changed, options = {}) {
52
+ return watchDeviceChanges(this.tools, this.host, changed, options.signal);
53
+ }
54
+ /** Detect devices without launching apps or booting, erasing, pairing or unlocking devices. Cancellation rejects. */
55
+ async scan(options = {}) {
56
+ options.signal?.throwIfAborted();
57
+ const timeoutMs = options.timeoutMs ?? 8000;
58
+ if (!Number.isSafeInteger(timeoutMs) || timeoutMs <= 0)
59
+ throw new Error('timeoutMs must be a positive integer');
60
+ const platforms = options.platforms ?? (this.host === 'darwin' ? ['ios', 'android'] : ['android']);
61
+ const inventory = { scannedAt: '', devices: [], diagnostics: [] };
62
+ const run = (bin, args) => runTool(bin, args, { timeoutMs, signal: options.signal });
63
+ const probe = async (source, work) => {
64
+ try {
65
+ return await work();
66
+ }
67
+ catch (error) {
68
+ options.signal?.throwIfAborted();
69
+ const code = error instanceof InvalidOutput ? 'invalid-output'
70
+ : error?.code === 'ENOENT' ? 'missing-tool' : 'command-failed';
71
+ inventory.diagnostics.push({ source, code, message: code === 'missing-tool' ? `${source}: required tool is not installed or not on PATH.`
72
+ : code === 'invalid-output' ? `${source}: unexpected tool output; detection is incomplete.` : `${source}: command failed or timed out; check tool permissions and device access.` });
73
+ return undefined;
74
+ }
75
+ };
76
+ const ios = async () => {
77
+ if (this.host !== 'darwin') {
78
+ inventory.diagnostics.push({ source: 'ios-device', code: 'unsupported-host', message: 'iOS device discovery requires macOS and Xcode.' });
79
+ return;
80
+ }
81
+ const results = await Promise.all([
82
+ probe('ios-simulator', async () => {
83
+ const groups = object(object(json(await run(this.tools.xcrun, ['simctl', 'list', 'devices', '--json']))).devices);
84
+ const devices = [];
85
+ for (const [runtime, rows] of Object.entries(groups)) {
86
+ if (!runtime.includes('.iOS-'))
87
+ continue;
88
+ for (const value of array(rows)) {
89
+ const d = object(value);
90
+ const deviceType = text(d.deviceTypeIdentifier);
91
+ const model = deviceType?.startsWith('com.apple.CoreSimulator.SimDeviceType.')
92
+ ? deviceType.slice('com.apple.CoreSimulator.SimDeviceType.'.length).replaceAll('-', ' ') || undefined : undefined;
93
+ devices.push({ id: required(d.udid), name: required(d.name), platform: 'ios', kind: 'simulator',
94
+ model,
95
+ state: d.isAvailable === false ? 'unavailable' : d.state === 'Booted' ? 'online' : d.state === 'Shutdown' ? 'shutdown' : 'unknown',
96
+ osVersion: runtime.split('.iOS-')[1]?.replaceAll('-', '.'), detail: text(d.availabilityError) });
97
+ }
98
+ }
99
+ return devices;
100
+ }),
101
+ probe('ios-device', async () => array(json(await run(this.tools.xcrun, ['xcdevice', 'list', '--timeout', '3'])))
102
+ .map(object).filter((d) => d.platform === 'com.apple.platform.iphoneos' && d.simulator === false && d.ignored !== true)
103
+ .map((d) => ({ id: required(d.identifier), name: required(d.name), platform: 'ios', kind: 'physical',
104
+ state: d.available === true ? 'online' : 'unavailable', osVersion: text(d.operatingSystemVersion), model: text(d.modelName), detail: d.error ? text(object(d.error).description) : undefined }))),
105
+ ]);
106
+ for (const devices of results)
107
+ if (devices)
108
+ inventory.devices.push(...devices);
109
+ };
110
+ const android = async () => {
111
+ const [connected, avds] = await Promise.all([
112
+ probe('adb', async () => {
113
+ const output = await run(this.tools.adb, ['devices', '-l']);
114
+ if (!output.includes('List of devices attached'))
115
+ throw new InvalidOutput();
116
+ return output.split(/\r?\n/).slice(output.split(/\r?\n/).findIndex((line) => line.startsWith('List of devices attached')) + 1)
117
+ .filter((line) => line.trim() && !line.startsWith('*')).map((line) => {
118
+ const [id, status] = line.trim().split(/\s+/);
119
+ if (!id || !status)
120
+ throw new InvalidOutput();
121
+ const model = line.match(/\bmodel:(\S+)/)?.[1]?.replaceAll('_', ' ');
122
+ return { id, name: model ?? id, model, platform: 'android', kind: id.startsWith('emulator-') ? 'simulator' : 'physical',
123
+ state: status === 'device' ? 'online' : status === 'offline' ? 'offline' : status === 'unauthorized' ? 'unauthorized' : status === 'no' ? 'unavailable' : 'unknown' };
124
+ });
125
+ }),
126
+ probe('android-emulator', async () => {
127
+ const lines = (await run(this.tools.emulator, ['-list-avds'])).split(/\r?\n/).map((line) => line.trim()).filter(Boolean);
128
+ if (lines.some((line) => !/^[\w.-]+$/.test(line)))
129
+ throw new InvalidOutput();
130
+ return [...new Set(lines)];
131
+ }),
132
+ ]);
133
+ await Promise.all((connected ?? []).map(async (device) => {
134
+ if (device.state !== 'online')
135
+ return;
136
+ const [version, avdName] = await Promise.all([
137
+ probe('adb', () => run(this.tools.adb, ['-s', device.id, 'shell', 'getprop', 'ro.build.version.release'])),
138
+ device.kind === 'simulator' ? probe('adb', async () => {
139
+ const name = (await run(this.tools.adb, ['-s', device.id, 'emu', 'avd', 'name'])).split(/\r?\n/)[0]?.trim();
140
+ return required(name);
141
+ }) : undefined,
142
+ ]);
143
+ device.osVersion = version?.trim() || undefined;
144
+ if (avdName) {
145
+ device.avdName = avdName;
146
+ device.name = avdName;
147
+ }
148
+ }));
149
+ inventory.devices.push(...(connected ?? []));
150
+ const names = new Set(connected?.map((device) => device.avdName).filter(Boolean));
151
+ const complete = connected !== undefined && !connected.some((device) => device.kind === 'simulator' && !device.avdName);
152
+ for (const name of avds ?? [])
153
+ if (!names.has(name))
154
+ inventory.devices.push({ id: `avd:${name}`, name, platform: 'android', kind: 'simulator', state: complete ? 'shutdown' : 'unknown', avdName: name });
155
+ };
156
+ await Promise.all([...(platforms.includes('ios') ? [ios()] : []), ...(platforms.includes('android') ? [android()] : [])]);
157
+ options.signal?.throwIfAborted();
158
+ inventory.devices = [...new Map(inventory.devices.map((device) => [`${device.platform}:${device.id}`, device])).values()]
159
+ .sort((a, b) => a.platform.localeCompare(b.platform) || a.id.localeCompare(b.id));
160
+ inventory.diagnostics.sort((a, b) => a.source.localeCompare(b.source) || a.code.localeCompare(b.code));
161
+ inventory.scannedAt = new Date().toISOString();
162
+ return inventory;
163
+ }
164
+ }
@@ -0,0 +1,5 @@
1
+ /** Internal process seam: bounded output, no shell interpolation, cooperative cancellation. */
2
+ export declare function runTool(bin: string, args: string[], options: {
3
+ timeoutMs: number;
4
+ signal?: AbortSignal;
5
+ }): Promise<string>;
@@ -0,0 +1,12 @@
1
+ import { execFile } from 'node:child_process';
2
+ /** Internal process seam: bounded output, no shell interpolation, cooperative cancellation. */
3
+ export function runTool(bin, args, options) {
4
+ return new Promise((resolve, reject) => {
5
+ execFile(bin, args, { encoding: 'utf8', timeout: options.timeoutMs, signal: options.signal, maxBuffer: 8 * 1024 * 1024, windowsHide: true }, (error, stdout) => {
6
+ if (error)
7
+ reject(error);
8
+ else
9
+ resolve(stdout);
10
+ });
11
+ });
12
+ }
@@ -0,0 +1,2 @@
1
+ /** Native notifications invalidate inventory; callers rescan to obtain normalized state. */
2
+ export declare function watchDeviceChanges(tools: Record<'adb' | 'emulator' | 'xcrun', string>, host: NodeJS.Platform, changed: () => void, signal?: AbortSignal): () => void;
@@ -0,0 +1,100 @@
1
+ import { spawn } from 'node:child_process';
2
+ import { watch, readdirSync } from 'node:fs';
3
+ import { homedir } from 'node:os';
4
+ import { join } from 'node:path';
5
+ /** Native notifications invalidate inventory; callers rescan to obtain normalized state. */
6
+ export function watchDeviceChanges(tools, host, changed, signal) {
7
+ if (signal?.aborted)
8
+ return () => { };
9
+ let stopped = false;
10
+ let debounce;
11
+ const children = new Set();
12
+ const retries = new Set();
13
+ const directories = new Map();
14
+ const notify = () => {
15
+ if (stopped || debounce)
16
+ return;
17
+ debounce = setTimeout(() => { debounce = undefined; if (!stopped)
18
+ changed(); }, 150);
19
+ };
20
+ const observe = (program, args) => {
21
+ if (stopped)
22
+ return;
23
+ const child = spawn(program, args, { stdio: ['ignore', 'pipe', 'pipe'], windowsHide: true });
24
+ children.add(child);
25
+ child.stdout?.on('data', notify);
26
+ child.stderr?.resume();
27
+ let ended = false;
28
+ const restart = () => {
29
+ if (ended)
30
+ return;
31
+ ended = true;
32
+ children.delete(child);
33
+ child.kill();
34
+ if (stopped)
35
+ return;
36
+ notify();
37
+ const timer = setTimeout(() => { retries.delete(timer); observe(program, args); }, 5000);
38
+ retries.add(timer);
39
+ };
40
+ child.once('error', restart);
41
+ child.once('close', restart);
42
+ };
43
+ const watchDirectory = (path, listener) => {
44
+ if (stopped || directories.has(path))
45
+ return;
46
+ try {
47
+ const watcher = watch(path, (event, file) => listener(event, file));
48
+ directories.set(path, watcher);
49
+ watcher.on('error', () => { watcher.close(); directories.delete(path); notify(); });
50
+ }
51
+ catch { /* Missing directories/tools are retried; periodic scans retain diagnostics. */ }
52
+ };
53
+ const avds = process.env.ANDROID_AVD_HOME || join(process.env.ANDROID_USER_HOME || join(homedir(), '.android'), 'avd');
54
+ const simulators = join(homedir(), 'Library', 'Developer', 'CoreSimulator', 'Devices');
55
+ const syncDirectories = () => {
56
+ watchDirectory(avds, notify);
57
+ if (host !== 'darwin')
58
+ return;
59
+ watchDirectory(simulators, () => { notify(); syncSimulators(); });
60
+ syncSimulators();
61
+ };
62
+ const syncSimulators = () => {
63
+ try {
64
+ const paths = new Set(readdirSync(simulators).map((name) => join(simulators, name)));
65
+ for (const [path, watcher] of directories) {
66
+ if (path.startsWith(`${simulators}/`) && !paths.has(path)) {
67
+ watcher.close();
68
+ directories.delete(path);
69
+ }
70
+ }
71
+ for (const path of paths)
72
+ watchDirectory(path, (_event, file) => {
73
+ if (!file || file === 'device.plist')
74
+ notify();
75
+ });
76
+ }
77
+ catch { /* Xcode may not have created the simulator directory yet. */ }
78
+ };
79
+ const stop = () => {
80
+ if (stopped)
81
+ return;
82
+ stopped = true;
83
+ signal?.removeEventListener('abort', stop);
84
+ clearTimeout(debounce);
85
+ clearInterval(directoryRetry);
86
+ for (const timer of retries)
87
+ clearTimeout(timer);
88
+ for (const watcher of directories.values())
89
+ watcher.close();
90
+ for (const child of children)
91
+ child.kill();
92
+ };
93
+ observe(tools.adb, ['track-devices']);
94
+ if (host === 'darwin')
95
+ observe(tools.xcrun, ['xcdevice', 'observe', '--both']);
96
+ syncDirectories();
97
+ const directoryRetry = setInterval(syncDirectories, 5000);
98
+ signal?.addEventListener('abort', stop, { once: true });
99
+ return stop;
100
+ }
@@ -0,0 +1,2 @@
1
+ export { DeviceDiscovery } from './DeviceDiscovery.js';
2
+ export type { DevicePlatform, DeviceState, DiscoverySource, DiscoveredDevice, DiscoveryDiagnostic, DeviceInventory, DeviceDiscoveryOptions, DeviceScanOptions } from './types.js';
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export { DeviceDiscovery } from './DeviceDiscovery.js';
@@ -0,0 +1,39 @@
1
+ export type DevicePlatform = 'ios' | 'android';
2
+ export type DeviceState = 'online' | 'offline' | 'unauthorized' | 'shutdown' | 'unavailable' | 'unknown';
3
+ export type DiscoverySource = 'adb' | 'android-emulator' | 'ios-simulator' | 'ios-device';
4
+ /** A host device, independent of any app, VM Service or cloud execution slot. */
5
+ export interface DiscoveredDevice {
6
+ /** Native device ID; stopped Android AVDs use avd:<name> and cannot launch an app with this ID. */
7
+ id: string;
8
+ name: string;
9
+ platform: DevicePlatform;
10
+ kind: 'physical' | 'simulator';
11
+ state: DeviceState;
12
+ osVersion?: string;
13
+ model?: string;
14
+ avdName?: string;
15
+ detail?: string;
16
+ }
17
+ export interface DiscoveryDiagnostic {
18
+ source: DiscoverySource;
19
+ code: 'missing-tool' | 'command-failed' | 'invalid-output' | 'unsupported-host';
20
+ message: string;
21
+ }
22
+ /** A completed scan; diagnostics distinguish partial detection from an empty host. */
23
+ export interface DeviceInventory {
24
+ scannedAt: string;
25
+ devices: DiscoveredDevice[];
26
+ diagnostics: DiscoveryDiagnostic[];
27
+ }
28
+ export interface DeviceDiscoveryOptions {
29
+ /** Override native executable paths. Android SDK environment variables and standard SDK locations are detected. */
30
+ tools?: Partial<Record<'adb' | 'emulator' | 'xcrun', string>>;
31
+ hostPlatform?: NodeJS.Platform;
32
+ }
33
+ export interface DeviceScanOptions {
34
+ /** Defaults to Android plus iOS on macOS, and Android on other hosts. */
35
+ platforms?: DevicePlatform[];
36
+ /** Timeout for each native command, in milliseconds. Defaults to 8000. */
37
+ timeoutMs?: number;
38
+ signal?: AbortSignal;
39
+ }
package/dist/types.js ADDED
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,45 @@
1
1
  {
2
2
  "name": "@fliwright/devices",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.1",
4
+ "description": "Host device discovery for iOS and Android physical devices and simulators.",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/0x01lab/fliwright.git",
9
+ "directory": "packages/fliwright-devices"
10
+ },
11
+ "bugs": {
12
+ "url": "https://github.com/0x01lab/fliwright/issues"
13
+ },
14
+ "homepage": "https://github.com/0x01lab/fliwright#readme",
15
+ "type": "module",
16
+ "main": "dist/index.js",
17
+ "types": "dist/index.d.ts",
18
+ "files": [
19
+ "dist",
20
+ "README.md",
21
+ "LICENSE"
22
+ ],
23
+ "exports": {
24
+ ".": {
25
+ "types": "./dist/index.d.ts",
26
+ "import": "./dist/index.js"
27
+ }
28
+ },
29
+ "engines": {
30
+ "node": ">=20"
31
+ },
32
+ "publishConfig": {
33
+ "access": "public"
34
+ },
35
+ "devDependencies": {
36
+ "@types/node": "^26.0.1",
37
+ "typescript": "^5.5.0",
38
+ "vitest": "5.0.5"
39
+ },
40
+ "scripts": {
41
+ "build": "tsc",
42
+ "test": "vitest run",
43
+ "lint": "tsc --noEmit"
44
+ }
6
45
  }