@ait-co/devtools 0.1.61 → 0.1.63
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 +13 -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/{qr-http-server-CSoE5MdF.cjs → qr-http-server-C34O140J.cjs} +3 -1
- package/dist/qr-http-server-C34O140J.cjs.map +1 -0
- package/dist/{qr-http-server-DgyGxjET.cjs → qr-http-server-CR4p9Y2d.cjs} +3 -1
- package/dist/qr-http-server-CR4p9Y2d.cjs.map +1 -0
- package/dist/{qr-http-server-BLQScKGq.js → qr-http-server-DBgh4rxe.js} +3 -1
- package/dist/qr-http-server-DBgh4rxe.js.map +1 -0
- package/dist/{qr-http-server-BTFj0LYB.js → qr-http-server-Dp3a1AMl.js} +3 -1
- package/dist/qr-http-server-Dp3a1AMl.js.map +1 -0
- package/dist/{tunnel-CArP5y9b.js → tunnel-EVTPTwlb.js} +2 -2
- package/dist/{tunnel-CArP5y9b.js.map → tunnel-EVTPTwlb.js.map} +1 -1
- package/dist/{tunnel-DwL0xizq.cjs → tunnel-g6assoEq.cjs} +2 -2
- package/dist/{tunnel-DwL0xizq.cjs.map → tunnel-g6assoEq.cjs.map} +1 -1
- package/dist/unplugin/index.cjs +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/unplugin/tunnel.cjs +1 -1
- package/dist/unplugin/tunnel.js +1 -1
- package/package.json +1 -1
- package/dist/qr-http-server-BLQScKGq.js.map +0 -1
- package/dist/qr-http-server-BTFj0LYB.js.map +0 -1
- package/dist/qr-http-server-CSoE5MdF.cjs.map +0 -1
- package/dist/qr-http-server-DgyGxjET.cjs.map +0 -1
package/dist/mcp/cli.js
CHANGED
|
@@ -2178,6 +2178,7 @@ img.qr {
|
|
|
2178
2178
|
width: min(90vw, 360px); height: auto;
|
|
2179
2179
|
image-rendering: pixelated;
|
|
2180
2180
|
background: #fff; padding: 1rem; border-radius: 12px;
|
|
2181
|
+
display: block; margin: 0 auto;
|
|
2181
2182
|
}
|
|
2182
2183
|
section { width: 100%; max-width: 480px; }
|
|
2183
2184
|
h2 { font-size: 1rem; font-weight: 600; color: #e6edf3; margin: 0 0 0.5rem; }
|
|
@@ -2244,6 +2245,7 @@ img.qr {
|
|
|
2244
2245
|
width: min(90vw, 360px); height: auto;
|
|
2245
2246
|
image-rendering: pixelated;
|
|
2246
2247
|
background: #fff; padding: 1rem; border-radius: 12px;
|
|
2248
|
+
display: block; margin: 0 auto;
|
|
2247
2249
|
}
|
|
2248
2250
|
section { width: 100%; max-width: 480px; }
|
|
2249
2251
|
h2 { font-size: 1rem; font-weight: 600; color: #e6edf3; margin: 0 0 0.5rem; }
|
|
@@ -3936,7 +3938,7 @@ async function readMcpSdkVersion() {
|
|
|
3936
3938
|
* some test environments that skip the build step).
|
|
3937
3939
|
*/
|
|
3938
3940
|
function readDevtoolsVersion() {
|
|
3939
|
-
return "0.1.
|
|
3941
|
+
return "0.1.63";
|
|
3940
3942
|
}
|
|
3941
3943
|
/**
|
|
3942
3944
|
* Derives the next recommended action from a completed diagnostics snapshot.
|
|
@@ -4424,7 +4426,7 @@ function createDebugServer(deps) {
|
|
|
4424
4426
|
const collector = collectorDep ?? new InMemoryDiagnosticsCollector();
|
|
4425
4427
|
const server = new Server({
|
|
4426
4428
|
name: "ait-debug",
|
|
4427
|
-
version: "0.1.
|
|
4429
|
+
version: "0.1.63"
|
|
4428
4430
|
}, { capabilities: { tools: { listChanged: true } } });
|
|
4429
4431
|
server.setRequestHandler(ListToolsRequestSchema, () => {
|
|
4430
4432
|
const conn = router.active;
|
|
@@ -5467,6 +5469,12 @@ async function runDebugServer(options = {}) {
|
|
|
5467
5469
|
} catch (err) {
|
|
5468
5470
|
logWarn("server.start", { msg: `QR HTTP 서버 시작 실패 (text QR fallback 사용): ${err instanceof Error ? err.message : String(err)}` });
|
|
5469
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();
|
|
5470
5478
|
const server = createDebugServer({
|
|
5471
5479
|
connection: router.active,
|
|
5472
5480
|
router,
|
|
@@ -5489,6 +5497,7 @@ async function runDebugServer(options = {}) {
|
|
|
5489
5497
|
if (closed) return;
|
|
5490
5498
|
closed = true;
|
|
5491
5499
|
parentWatcher?.stop();
|
|
5500
|
+
if (totpRefreshHandle) clearInterval(totpRefreshHandle);
|
|
5492
5501
|
router.stopWatcher();
|
|
5493
5502
|
for (const family of router.bootedFamilies()) family.stop();
|
|
5494
5503
|
server.close();
|
|
@@ -5502,6 +5511,7 @@ async function runDebugServer(options = {}) {
|
|
|
5502
5511
|
if (!closed) {
|
|
5503
5512
|
closed = true;
|
|
5504
5513
|
parentWatcher?.stop();
|
|
5514
|
+
if (totpRefreshHandle) clearInterval(totpRefreshHandle);
|
|
5505
5515
|
router.stopWatcher();
|
|
5506
5516
|
for (const family of router.bootedFamilies()) family.stop();
|
|
5507
5517
|
lockHandle.release();
|
|
@@ -6266,7 +6276,7 @@ function createDevServer(deps = {}) {
|
|
|
6266
6276
|
const aitSource = deps.aitSource ?? new HttpAitSource({ stateEndpoint });
|
|
6267
6277
|
const server = new Server({
|
|
6268
6278
|
name: "ait-devtools",
|
|
6269
|
-
version: "0.1.
|
|
6279
|
+
version: "0.1.63"
|
|
6270
6280
|
}, { capabilities: { tools: {} } });
|
|
6271
6281
|
server.setRequestHandler(ListToolsRequestSchema, () => ({ tools: DEV_TOOL_DEFINITIONS.map((tool) => ({ ...tool })) }));
|
|
6272
6282
|
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|