@tasksai/install 0.1.33 → 0.1.34

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tasksai/install",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "description": "Shared TasksAI MCP installer CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -2,3 +2,4 @@ mcp>=1.0.0,<2.0.0
2
2
  httpx>=0.27.0
3
3
  python-dotenv>=1.0.0
4
4
  python-docx>=1.1.2
5
+ pywin32>=311; sys_platform == "win32"
package/src/index.js CHANGED
@@ -475,7 +475,7 @@ async function configureMcpClient({ client, vertical, installDir, runtimeDir, ve
475
475
 
476
476
  function buildMcpServerConfig({ client, vertical, installDir, runtimeDir, vendorDir }) {
477
477
  return {
478
- command: "python3",
478
+ command: pythonCommandForPlatform(),
479
479
  args: [path.join(runtimeDir, "server.py")],
480
480
  env: {
481
481
  TASKSAI_PRODUCT_ID: vertical.product_id,
@@ -487,6 +487,10 @@ function buildMcpServerConfig({ client, vertical, installDir, runtimeDir, vendor
487
487
  };
488
488
  }
489
489
 
490
+ function pythonCommandForPlatform(platform = process.platform) {
491
+ return platform === "win32" ? "python" : "python3";
492
+ }
493
+
490
494
  async function jsonConfigHasServer(configPath, productId) {
491
495
  const config = await readJson(configPath);
492
496
  return Boolean(config.mcpServers?.[productId]);
@@ -1356,6 +1360,7 @@ export {
1356
1360
  parseArgs,
1357
1361
  parseEnv,
1358
1362
  parseSource,
1363
+ pythonCommandForPlatform,
1359
1364
  safeReportDoctorPassed,
1360
1365
  verifyProductionSource,
1361
1366
  verifyRuntimeHealth,