@ait-co/devtools 0.1.62 → 0.1.64
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/dist/mcp/cli.js +27 -3
- package/dist/mcp/cli.js.map +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/panel/index.js +2 -2
- package/dist/{tunnel-EVTPTwlb.js → tunnel-CIc0oSit.js} +12 -2
- package/dist/{tunnel-EVTPTwlb.js.map → tunnel-CIc0oSit.js.map} +1 -1
- package/dist/{tunnel-g6assoEq.cjs → tunnel-H7VujZz5.cjs} +12 -2
- package/dist/{tunnel-g6assoEq.cjs.map → tunnel-H7VujZz5.cjs.map} +1 -1
- package/dist/unplugin/index.cjs +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/unplugin/tunnel.cjs +11 -1
- package/dist/unplugin/tunnel.cjs.map +1 -1
- package/dist/unplugin/tunnel.d.cts.map +1 -1
- package/dist/unplugin/tunnel.d.ts.map +1 -1
- package/dist/unplugin/tunnel.js +11 -1
- package/dist/unplugin/tunnel.js.map +1 -1
- package/package.json +1 -1
package/dist/mcp/cli.js
CHANGED
|
@@ -3938,7 +3938,7 @@ async function readMcpSdkVersion() {
|
|
|
3938
3938
|
* some test environments that skip the build step).
|
|
3939
3939
|
*/
|
|
3940
3940
|
function readDevtoolsVersion() {
|
|
3941
|
-
return "0.1.
|
|
3941
|
+
return "0.1.64";
|
|
3942
3942
|
}
|
|
3943
3943
|
/**
|
|
3944
3944
|
* Derives the next recommended action from a completed diagnostics snapshot.
|
|
@@ -4426,7 +4426,7 @@ function createDebugServer(deps) {
|
|
|
4426
4426
|
const collector = collectorDep ?? new InMemoryDiagnosticsCollector();
|
|
4427
4427
|
const server = new Server({
|
|
4428
4428
|
name: "ait-debug",
|
|
4429
|
-
version: "0.1.
|
|
4429
|
+
version: "0.1.64"
|
|
4430
4430
|
}, { capabilities: { tools: { listChanged: true } } });
|
|
4431
4431
|
server.setRequestHandler(ListToolsRequestSchema, () => {
|
|
4432
4432
|
const conn = router.active;
|
|
@@ -5469,6 +5469,12 @@ async function runDebugServer(options = {}) {
|
|
|
5469
5469
|
} catch (err) {
|
|
5470
5470
|
logWarn("server.start", { msg: `QR HTTP 서버 시작 실패 (text QR fallback 사용): ${err instanceof Error ? err.message : String(err)}` });
|
|
5471
5471
|
}
|
|
5472
|
+
const TOTP_REFRESH_INTERVAL_MS = 2e4;
|
|
5473
|
+
let totpRefreshHandle = null;
|
|
5474
|
+
totpRefreshHandle = setInterval(() => {
|
|
5475
|
+
if (lastAttachParts !== null) qrServer?.notifyStateChange();
|
|
5476
|
+
}, TOTP_REFRESH_INTERVAL_MS);
|
|
5477
|
+
totpRefreshHandle.unref();
|
|
5472
5478
|
const server = createDebugServer({
|
|
5473
5479
|
connection: router.active,
|
|
5474
5480
|
router,
|
|
@@ -5491,6 +5497,7 @@ async function runDebugServer(options = {}) {
|
|
|
5491
5497
|
if (closed) return;
|
|
5492
5498
|
closed = true;
|
|
5493
5499
|
parentWatcher?.stop();
|
|
5500
|
+
if (totpRefreshHandle) clearInterval(totpRefreshHandle);
|
|
5494
5501
|
router.stopWatcher();
|
|
5495
5502
|
for (const family of router.bootedFamilies()) family.stop();
|
|
5496
5503
|
server.close();
|
|
@@ -5504,6 +5511,7 @@ async function runDebugServer(options = {}) {
|
|
|
5504
5511
|
if (!closed) {
|
|
5505
5512
|
closed = true;
|
|
5506
5513
|
parentWatcher?.stop();
|
|
5514
|
+
if (totpRefreshHandle) clearInterval(totpRefreshHandle);
|
|
5507
5515
|
router.stopWatcher();
|
|
5508
5516
|
for (const family of router.bootedFamilies()) family.stop();
|
|
5509
5517
|
lockHandle.release();
|
|
@@ -5625,6 +5633,12 @@ async function runLocalDebugServer(options = {}) {
|
|
|
5625
5633
|
} catch (err) {
|
|
5626
5634
|
logWarn("server.start", { msg: `QR HTTP 서버 시작 실패 (text QR fallback 사용): ${err instanceof Error ? err.message : String(err)}` });
|
|
5627
5635
|
}
|
|
5636
|
+
const TOTP_REFRESH_INTERVAL_MS = 2e4;
|
|
5637
|
+
let totpRefreshHandle = null;
|
|
5638
|
+
totpRefreshHandle = setInterval(() => {
|
|
5639
|
+
if (lastAttachParts !== null) qrServer?.notifyStateChange();
|
|
5640
|
+
}, TOTP_REFRESH_INTERVAL_MS);
|
|
5641
|
+
totpRefreshHandle.unref();
|
|
5628
5642
|
const server = createDebugServer({
|
|
5629
5643
|
connection: router.active,
|
|
5630
5644
|
router,
|
|
@@ -5647,6 +5661,7 @@ async function runLocalDebugServer(options = {}) {
|
|
|
5647
5661
|
if (closed) return;
|
|
5648
5662
|
closed = true;
|
|
5649
5663
|
parentWatcher?.stop();
|
|
5664
|
+
if (totpRefreshHandle) clearInterval(totpRefreshHandle);
|
|
5650
5665
|
router.stopWatcher();
|
|
5651
5666
|
for (const family of router.bootedFamilies()) family.stop();
|
|
5652
5667
|
server.close();
|
|
@@ -5660,6 +5675,7 @@ async function runLocalDebugServer(options = {}) {
|
|
|
5660
5675
|
if (!closed) {
|
|
5661
5676
|
closed = true;
|
|
5662
5677
|
parentWatcher?.stop();
|
|
5678
|
+
if (totpRefreshHandle) clearInterval(totpRefreshHandle);
|
|
5663
5679
|
router.stopWatcher();
|
|
5664
5680
|
for (const family of router.bootedFamilies()) family.stop();
|
|
5665
5681
|
lockHandle.release();
|
|
@@ -5765,6 +5781,12 @@ async function runMobileDebugServer(options = {}) {
|
|
|
5765
5781
|
} catch (err) {
|
|
5766
5782
|
logWarn("server.start", { msg: `QR HTTP 서버 시작 실패 (text QR fallback 사용): ${err instanceof Error ? err.message : String(err)}` });
|
|
5767
5783
|
}
|
|
5784
|
+
const TOTP_REFRESH_INTERVAL_MS = 2e4;
|
|
5785
|
+
let totpRefreshHandle = null;
|
|
5786
|
+
totpRefreshHandle = setInterval(() => {
|
|
5787
|
+
if (lastAttachParts !== null) qrServer?.notifyStateChange();
|
|
5788
|
+
}, TOTP_REFRESH_INTERVAL_MS);
|
|
5789
|
+
totpRefreshHandle.unref();
|
|
5768
5790
|
const server = createDebugServer({
|
|
5769
5791
|
connection: router.active,
|
|
5770
5792
|
router,
|
|
@@ -5787,6 +5809,7 @@ async function runMobileDebugServer(options = {}) {
|
|
|
5787
5809
|
if (closed) return;
|
|
5788
5810
|
closed = true;
|
|
5789
5811
|
parentWatcher?.stop();
|
|
5812
|
+
if (totpRefreshHandle) clearInterval(totpRefreshHandle);
|
|
5790
5813
|
router.stopWatcher();
|
|
5791
5814
|
for (const family of router.bootedFamilies()) family.stop();
|
|
5792
5815
|
server.close();
|
|
@@ -5800,6 +5823,7 @@ async function runMobileDebugServer(options = {}) {
|
|
|
5800
5823
|
if (!closed) {
|
|
5801
5824
|
closed = true;
|
|
5802
5825
|
parentWatcher?.stop();
|
|
5826
|
+
if (totpRefreshHandle) clearInterval(totpRefreshHandle);
|
|
5803
5827
|
router.stopWatcher();
|
|
5804
5828
|
for (const family of router.bootedFamilies()) family.stop();
|
|
5805
5829
|
lockHandle.release();
|
|
@@ -6268,7 +6292,7 @@ function createDevServer(deps = {}) {
|
|
|
6268
6292
|
const aitSource = deps.aitSource ?? new HttpAitSource({ stateEndpoint });
|
|
6269
6293
|
const server = new Server({
|
|
6270
6294
|
name: "ait-devtools",
|
|
6271
|
-
version: "0.1.
|
|
6295
|
+
version: "0.1.64"
|
|
6272
6296
|
}, { capabilities: { tools: {} } });
|
|
6273
6297
|
server.setRequestHandler(ListToolsRequestSchema, () => ({ tools: DEV_TOOL_DEFINITIONS.map((tool) => ({ ...tool })) }));
|
|
6274
6298
|
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|