@ait-co/devtools 0.1.62 → 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 +11 -3
- package/dist/mcp/cli.js.map +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/panel/index.js +2 -2
- 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.63";
|
|
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.63"
|
|
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();
|
|
@@ -6268,7 +6276,7 @@ function createDevServer(deps = {}) {
|
|
|
6268
6276
|
const aitSource = deps.aitSource ?? new HttpAitSource({ stateEndpoint });
|
|
6269
6277
|
const server = new Server({
|
|
6270
6278
|
name: "ait-devtools",
|
|
6271
|
-
version: "0.1.
|
|
6279
|
+
version: "0.1.63"
|
|
6272
6280
|
}, { capabilities: { tools: {} } });
|
|
6273
6281
|
server.setRequestHandler(ListToolsRequestSchema, () => ({ tools: DEV_TOOL_DEFINITIONS.map((tool) => ({ ...tool })) }));
|
|
6274
6282
|
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|