@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 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.49"
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
- const env = await aitSource.get("AIT.getOperationalEnvironment");
4640
- return {
4641
- ok: true,
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.49"
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) => {