orchestrix 16.0.5 → 16.0.6

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/lib/install.js CHANGED
@@ -101,7 +101,7 @@ async function install(flags) {
101
101
 
102
102
  // .mcp.json
103
103
  if (!flags.noMcp) {
104
- const mcpAction = mergeMcpJson(projectDir);
104
+ const mcpAction = mergeMcpJson(projectDir, licenseKey);
105
105
  ui.fileAction(mcpAction, '.mcp.json');
106
106
  } else {
107
107
  ui.fileAction('skip', '.mcp.json (--no-mcp)');
package/lib/merge.js CHANGED
@@ -7,9 +7,11 @@ const MCP_SERVER_URL = 'https://orchestrix-mcp.youlidao.ai/api/mcp';
7
7
 
8
8
  /**
9
9
  * Deep merge .mcp.json — preserves existing entries, adds/updates orchestrix
10
+ * @param {string} projectDir
11
+ * @param {string} licenseKey — written directly into the Authorization header
10
12
  * Returns: 'create' | 'update' | 'skip'
11
13
  */
12
- function mergeMcpJson(projectDir) {
14
+ function mergeMcpJson(projectDir, licenseKey) {
13
15
  const filePath = path.join(projectDir, '.mcp.json');
14
16
  let existing = {};
15
17
 
@@ -28,14 +30,15 @@ function mergeMcpJson(projectDir) {
28
30
 
29
31
  let changed = false;
30
32
 
31
- // Add/update orchestrix entry
33
+ // Build the target entry with the actual key
34
+ const authHeader = licenseKey ? `Bearer ${licenseKey}` : '';
32
35
  const orchestrixEntry = {
33
36
  type: 'http',
34
37
  url: MCP_SERVER_URL,
35
- headers: {
36
- Authorization: 'Bearer ${ORCHESTRIX_LICENSE_KEY}',
37
- },
38
38
  };
39
+ if (authHeader) {
40
+ orchestrixEntry.headers = { Authorization: authHeader };
41
+ }
39
42
 
40
43
  const existingOrchestrix = existing.mcpServers.orchestrix;
41
44
  if (!existingOrchestrix) {
@@ -46,7 +49,7 @@ function mergeMcpJson(projectDir) {
46
49
  const needsUpdate =
47
50
  existingOrchestrix.url !== orchestrixEntry.url ||
48
51
  existingOrchestrix.type !== orchestrixEntry.type ||
49
- existingOrchestrix.headers?.Authorization !== orchestrixEntry.headers.Authorization;
52
+ (authHeader && existingOrchestrix.headers?.Authorization !== authHeader);
50
53
 
51
54
  if (needsUpdate) {
52
55
  existing.mcpServers.orchestrix = { ...existingOrchestrix, ...orchestrixEntry };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orchestrix",
3
- "version": "16.0.5",
3
+ "version": "16.0.6",
4
4
  "description": "Install Orchestrix multi-agent infrastructure into any project. One command: npx orchestrix install",
5
5
  "bin": {
6
6
  "orchestrix": "bin/o8x.js"