@ait-co/devtools 0.1.17 → 0.1.19

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.
@@ -1,10 +1,10 @@
1
1
  /// <reference types="node" />
2
2
  import { URL as URL$1 } from "node:url";
3
3
  import * as _$unplugin from "unplugin";
4
+ import * as fs from "node:fs";
4
5
  import * as http from "node:http";
5
6
  import { Agent, ClientRequest, ClientRequestArgs, OutgoingHttpHeaders } from "node:http";
6
7
  import { Http2SecureServer } from "node:http2";
7
- import * as fs from "node:fs";
8
8
  import { EventEmitter } from "node:events";
9
9
  import { Server as Server$1, ServerOptions as ServerOptions$1 } from "node:https";
10
10
  import * as net from "node:net";
@@ -10117,6 +10117,16 @@ interface AitDevtoolsOptions {
10117
10117
  * mock alias 활성화 여부. default: true (development), false (production + forceEnable)
10118
10118
  */
10119
10119
  mock?: boolean;
10120
+ /**
10121
+ * Vite dev 서버를 Cloudflare quick tunnel(`*.trycloudflare.com`, 계정 불필요)로
10122
+ * 외부 노출해 실제 폰에서 미리보기. **Vite dev 모드 전용** — production은
10123
+ * `forceEnable`이어도 터널을 띄우지 않는다 (의도치 않은 노출 방지). 다른 번들러는
10124
+ * 무시. `true`면 기본 동작, 객체로 세부 설정 가능.
10125
+ */
10126
+ tunnel?: boolean | {
10127
+ /** 노출할 포트 (미지정 시 dev 서버가 실제 listen한 포트 자동 감지). */port?: number; /** 터미널 ASCII QR 출력 (default: true). */
10128
+ qr?: boolean;
10129
+ };
10120
10130
  }
10121
10131
  declare const aitDevtoolsPlugin: _$unplugin.UnpluginInstance<AitDevtoolsOptions | undefined, boolean>;
10122
10132
  declare const vite: (options?: AitDevtoolsOptions | undefined) => Plugin<any> | Plugin<any>[];