vgxness 1.20.13 → 1.20.14

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.
@@ -1,5 +1,6 @@
1
1
  import { existsSync, readFileSync } from 'node:fs';
2
2
  import { join } from 'node:path';
3
+ import { canonicalCapabilitySubagentLegacyAliases } from '../../../agents/canonical-agent-manifest.js';
3
4
  import { createOpenCodeDefaultAgentConfig, createOpenCodeDefaultAgentInstallPlan, } from './opencode-default-agent-config.js';
4
5
  const opencodeConfigSchema = 'https://opencode.ai/config.json';
5
6
  const opencodeUserGlobalOnlyMessage = 'VGX-managed OpenCode configuration is user-global only. Project/local OpenCode files are treated as external/manual diagnostics and will not be written by VGXNESS. Re-run without the project/local install scope.';
@@ -141,7 +142,8 @@ export function findConflictingVgxnessAgents(config, agentPlan, input = {}) {
141
142
  if (!agentPlan.installsAgents || !isRecord(config.agent))
142
143
  return [];
143
144
  const defaults = createOpenCodeDefaultAgentConfig(input).agents;
144
- return agentPlan.agentNames.filter((name) => Object.hasOwn(config.agent, name) && !deepEqual(config.agent[name], defaults[name]));
145
+ const managedNames = [...agentPlan.agentNames, ...Object.keys(canonicalCapabilitySubagentLegacyAliases)];
146
+ return managedNames.filter((name) => Object.hasOwn(config.agent, name) && !deepEqual(config.agent[name], defaults[name]));
145
147
  }
146
148
  function deepEqual(left, right) {
147
149
  if (Object.is(left, right))
@@ -1,5 +1,6 @@
1
1
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
2
2
  import { dirname } from 'node:path';
3
+ import { canonicalCapabilitySubagentLegacyAliases } from '../../../agents/canonical-agent-manifest.js';
3
4
  import { createManagedProviderConfigBackup } from '../../../setup/backup-rollback-service.js';
4
5
  import { findConflictingVgxnessAgents, planOpenCodeMcpInstall, } from './client-install-opencode-contract.js';
5
6
  import { createOpenCodeDefaultAgentConfig, createOpenCodeDefaultAgentInstallPlan, vgxnessOpenCodeInstructionsPath, } from './opencode-default-agent-config.js';
@@ -73,7 +74,10 @@ function mergeVgxnessOpenCodeConfig(config, server, installsAgents, effectiveMan
73
74
  const defaults = createOpenCodeDefaultAgentConfig({ effectiveManagerInstructions });
74
75
  merged.instructions = mergeOpenCodeInstructions(config.instructions);
75
76
  merged.default_agent = defaults.defaultAgent;
76
- merged.agent = { ...(isRecord(config.agent) ? config.agent : {}), ...defaults.agents };
77
+ const existingAgents = isRecord(config.agent) ? { ...config.agent } : {};
78
+ for (const legacyName of Object.keys(canonicalCapabilitySubagentLegacyAliases))
79
+ delete existingAgents[legacyName];
80
+ merged.agent = { ...existingAgents, ...defaults.agents };
77
81
  }
78
82
  merged.permission = { ...(isRecord(config.permission) ? config.permission : {}), bash: 'ask' };
79
83
  return merged;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vgxness",
3
- "version": "1.20.13",
3
+ "version": "1.20.14",
4
4
  "description": "CLI and MCP control plane for guided AI-agent workflows, SDD, memory, and OpenCode setup.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {