@ait-co/devtools 0.1.49 → 0.1.50
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 +6 -12
- package/dist/mcp/cli.js.map +1 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +5 -11
- package/dist/mcp/server.js.map +1 -1
- package/dist/panel/index.js +2 -2
- package/package.json +1 -1
package/dist/mcp/cli.js
CHANGED
|
@@ -3611,7 +3611,7 @@ function createDebugServer(deps) {
|
|
|
3611
3611
|
const collector = collectorDep ?? new InMemoryDiagnosticsCollector();
|
|
3612
3612
|
const server = new Server({
|
|
3613
3613
|
name: "ait-debug",
|
|
3614
|
-
version: "0.1.
|
|
3614
|
+
version: "0.1.50"
|
|
3615
3615
|
}, { capabilities: { tools: { listChanged: true } } });
|
|
3616
3616
|
server.setRequestHandler(ListToolsRequestSchema, () => {
|
|
3617
3617
|
const env = resolveEnvironment();
|
|
@@ -4635,16 +4635,10 @@ async function buildDevMeasureSafeArea(aitSource) {
|
|
|
4635
4635
|
*/
|
|
4636
4636
|
async function buildDevCallSdk(methodName, aitSource) {
|
|
4637
4637
|
switch (methodName) {
|
|
4638
|
-
case "getOperationalEnvironment": {
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
value: {
|
|
4643
|
-
environment: env.environment,
|
|
4644
|
-
sdkVersion: env.sdkVersion
|
|
4645
|
-
}
|
|
4646
|
-
};
|
|
4647
|
-
}
|
|
4638
|
+
case "getOperationalEnvironment": return {
|
|
4639
|
+
ok: true,
|
|
4640
|
+
value: (await aitSource.get("AIT.getOperationalEnvironment")).environment
|
|
4641
|
+
};
|
|
4648
4642
|
default: return {
|
|
4649
4643
|
ok: false,
|
|
4650
4644
|
error: `dev-mode-unsupported: "${methodName}"은 dev-mode에서 직접 호출할 수 없습니다. CDP bridge(window.__sdkCall)가 없으므로 실제 SDK 호출은 \`--mode=local\` 또는 debug 모드에서만 가능합니다. 지원 메서드: getOperationalEnvironment (mock state에서 읽음).`
|
|
@@ -4658,7 +4652,7 @@ function createDevServer(deps = {}) {
|
|
|
4658
4652
|
const aitSource = deps.aitSource ?? new HttpAitSource({ stateEndpoint });
|
|
4659
4653
|
const server = new Server({
|
|
4660
4654
|
name: "ait-devtools",
|
|
4661
|
-
version: "0.1.
|
|
4655
|
+
version: "0.1.50"
|
|
4662
4656
|
}, { capabilities: { tools: {} } });
|
|
4663
4657
|
server.setRequestHandler(ListToolsRequestSchema, () => ({ tools: DEV_TOOL_DEFINITIONS.map((tool) => ({ ...tool })) }));
|
|
4664
4658
|
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|