@microsoft/m365-copilot-eval 1.1.0-preview.1 → 1.1.1-preview.1

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,8 +1,8 @@
1
1
  {
2
2
  "name": "@microsoft/m365-copilot-eval",
3
- "version": "1.1.0-preview.1",
3
+ "version": "1.1.1-preview.1",
4
4
  "description": "Zero-config Node.js wrapper for M365 Copilot Agent Evaluations CLI (Python-based Azure AI Evaluation SDK)",
5
- "publishDate": "2026-02-03",
5
+ "publishDate": "2026-02-04",
6
6
  "main": "src/clients/node-js/lib/index.js",
7
7
  "type": "module",
8
8
  "bin": {
@@ -2,7 +2,7 @@
2
2
  * Build-time injected default values
3
3
  * DO NOT EDIT - This file is auto-generated during build.
4
4
  *
5
- * Generated: 2026-02-03T22:27:55.106Z
5
+ * Generated: 2026-02-04T19:14:08.282Z
6
6
  *
7
7
  * @copyright Microsoft Corporation. All rights reserved.
8
8
  * @license MIT
@@ -95,17 +95,6 @@ function getVenvPython(venvDir) {
95
95
  }
96
96
  }
97
97
 
98
- /**
99
- * Get the venv pip executable path
100
- */
101
- function getVenvPip(venvDir) {
102
- if (process.platform === 'win32') {
103
- return path.join(venvDir, 'Scripts', 'pip.exe');
104
- } else {
105
- return path.join(venvDir, 'bin', 'pip');
106
- }
107
- }
108
-
109
98
  /**
110
99
  * Create a virtual environment
111
100
  * @param {string} pythonExe - Path to Python executable
@@ -140,18 +129,20 @@ async function installRequirements(
140
129
  verbose = false,
141
130
  onProgress
142
131
  ) {
143
- const pipExe = getVenvPip(venvDir);
132
+ const venvPython = getVenvPython(venvDir);
144
133
 
145
134
  if (!onProgress) {
146
135
  console.log('Installing Python dependencies...');
147
136
  }
148
137
  if (verbose) {
149
- console.log(`Using pip: ${pipExe}`);
138
+ console.log(`Using pip: ${venvPython} -m pip`);
150
139
  console.log(`Requirements: ${requirementsPath}`);
151
140
  }
152
141
 
153
- // Upgrade pip first
154
- await execCommand(pipExe, ['install', '--upgrade', 'pip'], { verbose });
142
+ // Upgrade pip first (use python -m pip to avoid Windows file locking issues)
143
+ await execCommand(venvPython, ['-m', 'pip', 'install', '--upgrade', 'pip'], {
144
+ verbose,
145
+ });
155
146
 
156
147
  // Track progress through pip's phases: Collecting -> Downloading/Cached -> Installing
157
148
  let collectingCount = 0;
@@ -160,7 +151,7 @@ async function installRequirements(
160
151
  let pipPhase = 'collecting'; // 'collecting', 'resolving', 'downloading', 'installing'
161
152
 
162
153
  // Install requirements with hash checking if available
163
- const args = ['install', '-r', requirementsPath];
154
+ const args = ['-m', 'pip', 'install', '-r', requirementsPath];
164
155
 
165
156
  // Support proxy and certificate configuration
166
157
  if (process.env.PIP_CERT) {
@@ -241,7 +232,7 @@ async function installRequirements(
241
232
  }
242
233
  : undefined;
243
234
 
244
- await execCommand(pipExe, args, { verbose, onStdout });
235
+ await execCommand(venvPython, args, { verbose, onStdout });
245
236
 
246
237
  if (!onProgress) {
247
238
  console.log('Dependencies installed ✓');