@aliceshimada/mica 1.0.4 → 1.0.5

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/CHANGELOG.md CHANGED
@@ -1,9 +1,15 @@
1
1
  # Changelog
2
2
 
3
- ## 1.0.4 - 2026-06-06
3
+ ## 1.0.5 - 2026-06-09
4
+
5
+ - Fix abort disconnection: give control evaluator a separate kernel via `LinkLaunch` instead of cloning `"Local"`.
6
+
7
+ ## 1.0.4 - 2026-06-07
4
8
 
5
9
  - Remove legacy dead code from npm package (bridge, legacy tools, stop command, runtimeOptions, types).
6
10
  - Tighten `files` field to only include active runtime directories.
11
+ - Fix `mica install` failing after npm install: `validateBridgeRoot` now checks `dist/src/bun/index.js` instead of removed `src/bun/index.ts`.
12
+ - Increase Wolfram HTTP timeout from 10s to 30s to prevent large notebook loading timeouts.
7
13
 
8
14
  ## 1.0.3 - 2026-06-06
9
15
 
@@ -3,7 +3,7 @@ import http from "node:http";
3
3
  import { executeBackendMcpTool } from "../mcp/backendTools.js";
4
4
  import { renderDashboard } from "./dashboard.js";
5
5
  const JSON_BODY_LIMIT_BYTES = 1024 * 1024;
6
- const DEFAULT_VERSION = "1.0.4";
6
+ const DEFAULT_VERSION = "1.0.5";
7
7
  export async function createBunHttpApp({ state, host = "127.0.0.1", port, authToken, version = DEFAULT_VERSION }) {
8
8
  const runtimeInfo = {
9
9
  host,
@@ -8,7 +8,7 @@ import { loadRuntimeConfig } from "../runtime/config.js";
8
8
  import { writeSessionFile } from "../runtime/session.js";
9
9
  import { createBunHttpApp } from "./httpServer.js";
10
10
  const MCP_SERVER_NAME = "mica-bun";
11
- const MICA_PACKAGE_VERSION = "1.0.4";
11
+ const MICA_PACKAGE_VERSION = "1.0.5";
12
12
  export async function startBunRuntime(deps = {}) {
13
13
  const config = deps.runtimeConfig ?? loadRuntimeConfig();
14
14
  const bridgeOnly = deps.bridgeOnly ?? config.bridgeOnly;
@@ -33,7 +33,7 @@ export const MICA_AGENT_INSTRUCTIONS = [
33
33
  "Tools:",
34
34
  ...TOOL_GUIDE.map(([name, description]) => `- ${name}: ${description}`),
35
35
  ].join("\n");
36
- export function createMicaMcpServer(name, version = "1.0.4") {
36
+ export function createMicaMcpServer(name, version = "1.0.5") {
37
37
  return new McpServer({ name, version }, { instructions: MICA_AGENT_INSTRUCTIONS });
38
38
  }
39
39
  export function registerMicaPrompts(server) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aliceshimada/mica",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Local MCP bridge for controlling live Wolfram Desktop / Mathematica notebooks.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -1651,15 +1651,18 @@ StopMMAAgentControlKernel[] := Module[{nb = $ControlAgentNotebook},
1651
1651
  <|"status" -> "closed"|>
1652
1652
  ];
1653
1653
 
1654
- EnsureControlEvaluator[evaluatorName_String] := Module[{before, beforeAssoc, localSpec, controlSpec, afterAssoc},
1654
+ EnsureControlEvaluator[evaluatorName_String] := Module[{before, beforeAssoc, controlSpec, afterAssoc, kernelCommand},
1655
1655
  before = Quiet @ Check[CurrentValue[$FrontEnd, EvaluatorNames], $Failed];
1656
1656
  If[before === $Failed, Return[BridgeFailure["EVALUATOR_CONFIG_FAILED", "Could not read FrontEnd evaluator configuration."]]];
1657
1657
  beforeAssoc = Association[before];
1658
1658
  If[KeyExistsQ[beforeAssoc, evaluatorName],
1659
1659
  Return[<|"status" -> "exists", "evaluatorName" -> evaluatorName, "spec" -> Lookup[beforeAssoc, evaluatorName]|>]
1660
1660
  ];
1661
- localSpec = Lookup[beforeAssoc, "Local", {"AutoStartOnLaunch" -> False}];
1662
- controlSpec = Append[DeleteCases[localSpec, HoldPattern["AutoStartOnLaunch" -> _]], "AutoStartOnLaunch" -> False];
1661
+ kernelCommand = First[$CommandLine] <> " -wstp -noicon";
1662
+ controlSpec = {
1663
+ "AutoStartOnLaunch" -> False,
1664
+ "Kernel" -> LinkLaunch[kernelCommand]
1665
+ };
1663
1666
  Quiet @ Check[
1664
1667
  CurrentValue[$FrontEnd, {EvaluatorNames, evaluatorName}] = controlSpec,
1665
1668
  Return[BridgeFailure["EVALUATOR_CONFIG_FAILED", "Failed to configure the control evaluator."]]