afyx-engineering-kit 0.1.0-alpha.7 → 0.1.0-alpha.8

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.
Files changed (55) hide show
  1. package/.afyx-source-revision +1 -1
  2. package/afyx-context/src/budget.js +39 -153
  3. package/afyx-context/src/documentation.js +116 -0
  4. package/afyx-context/src/index.js +2 -0
  5. package/afyx-context/src/memory.js +122 -229
  6. package/afyx-context/src/usage.js +91 -0
  7. package/afyx-forge/src/cli.js +14 -1
  8. package/afyx-forge/src/index.js +3 -0
  9. package/afyx-forge/src/workflow-refiner.js +48 -15
  10. package/afyx-forge/src/workflow.js +226 -0
  11. package/afyx-graph/engine/release/RELEASE-MANIFEST.json +16 -6
  12. package/afyx-graph/engine/release/SHA256SUMS +4 -2
  13. package/afyx-graph/engine/release/afyx-graph-darwin-arm64.tar.gz +0 -0
  14. package/afyx-graph/engine/release/afyx-graph-darwin-x64.tar.gz +0 -0
  15. package/afyx-graph/engine/release/afyx-graph-linux-x64.tar.gz +0 -0
  16. package/afyx-graph/engine/release/afyx-graph-win32-x64.zip +0 -0
  17. package/bin/afyx-engineering-kit.mjs +14 -6
  18. package/install.ps1 +52 -6
  19. package/install.sh +11 -7
  20. package/package.json +3 -1
  21. package/scripts/afyx-capability-orchestrator.mjs +159 -41
  22. package/scripts/afyx-graph-artifact.mjs +1 -1
  23. package/scripts/afyx-graph-targets.mjs +8 -0
  24. package/scripts/afyx-host-adapters.mjs +52 -0
  25. package/scripts/afyx-host-bridge-lifecycle.mjs +4 -0
  26. package/scripts/afyx-host-bridge.mjs +25 -0
  27. package/scripts/afyx-install-backend.mjs +34 -13
  28. package/scripts/afyx-install-contract.mjs +5 -2
  29. package/scripts/afyx-install-progress.mjs +88 -0
  30. package/scripts/afyx-installer-environment.mjs +150 -0
  31. package/scripts/afyx-local-link-ownership.mjs +16 -0
  32. package/scripts/afyx-midnight-circuit.mjs +322 -79
  33. package/scripts/afyx-modular-integration.mjs +3 -0
  34. package/scripts/afyx-modular-runtime.mjs +3 -0
  35. package/scripts/afyx-native-execution.mjs +168 -0
  36. package/scripts/afyx-native-github.mjs +155 -0
  37. package/scripts/afyx-npm-installer.mjs +56 -28
  38. package/scripts/afyx-provider-inventory.mjs +6 -3
  39. package/scripts/afyx-security-auditor.mjs +61 -64
  40. package/scripts/afyx-skill-catalog.mjs +83 -0
  41. package/scripts/afyx-skill-engineering.mjs +2 -0
  42. package/scripts/afyx-universal-runtime.mjs +74 -12
  43. package/scripts/install-afyx-graph.sh +4 -4
  44. package/scripts/lib/AfyxInstallerProgress.psm1 +11 -0
  45. package/scripts/lib/AfyxSkillLifecycle.psm1 +42 -6
  46. package/scripts/lib/afyx-installer-progress.sh +30 -0
  47. package/scripts/link-global-dev.ps1 +10 -3
  48. package/scripts/link-global-dev.sh +10 -8
  49. package/scripts/prepare-g6-package.mjs +13 -28
  50. package/scripts/resolve-git-release-artifacts.mjs +5 -4
  51. package/scripts/stage-npm-release.mjs +3 -1
  52. package/scripts/validate-release-zip-graph.mjs +2 -2
  53. package/uninstall.ps1 +2 -0
  54. package/verify.ps1 +7 -1
  55. package/verify.sh +5 -3
@@ -38,9 +38,6 @@ if ! command -v node >/dev/null 2>&1 || ! command -v npm >/dev/null 2>&1; then
38
38
  if [ -s "${HOME:-}/.nvm/nvm.sh" ]; then
39
39
  # shellcheck source=/dev/null
40
40
  source "${HOME}/.nvm/nvm.sh"
41
- elif [ -s "/home/afif/.nvm/nvm.sh" ]; then
42
- # shellcheck source=/dev/null
43
- source "/home/afif/.nvm/nvm.sh"
44
41
  fi
45
42
  fi
46
43
 
@@ -57,7 +54,8 @@ fi
57
54
  NODE_VER="$(node --version)"
58
55
  NODE_MAJOR="${NODE_VER%%.*}"
59
56
  NODE_MAJOR="${NODE_MAJOR#v}"
60
- if [ "$NODE_MAJOR" -lt 22 ]; then
57
+ NODE_MINOR="${NODE_VER#*.}"; NODE_MINOR="${NODE_MINOR%%.*}"
58
+ if [ "$NODE_MAJOR" -lt 22 ] || { [ "$NODE_MAJOR" -eq 22 ] && [ "$NODE_MINOR" -lt 5 ]; }; then
61
59
  printf "[FAIL] Node.js Version: Node.js >= 22.5.0 required (detected %s)\n" "$NODE_VER" >&2
62
60
  exit 1
63
61
  fi
@@ -81,9 +79,14 @@ fi
81
79
 
82
80
  chmod +x "$ENTRY_POINT" "$REPOSITORY_ROOT/install.sh" "$REPOSITORY_ROOT/verify.sh" 2>/dev/null || true
83
81
 
82
+ GLOBAL_MODULES="$(npm root --global)"
83
+ node "$SCRIPT_DIR/afyx-local-link-ownership.mjs" "$REPOSITORY_ROOT" "$GLOBAL_MODULES" || {
84
+ printf '[FAIL] Ownership: refusing to replace or unlink a foreign npm installation.\n' >&2; exit 1;
85
+ }
86
+
84
87
  if [ "$MODE" = "uninstall" ]; then
85
88
  printf "[INFO] Uninstall: Unlinking global afyx-engineering-kit package...\n"
86
- (cd "$REPOSITORY_ROOT" && npm unlink --global afyx-engineering-kit >/dev/null 2>&1 || true)
89
+ (cd "$REPOSITORY_ROOT" && npm unlink --global afyx-engineering-kit)
87
90
  printf "[PASS] Uninstall: Successfully unlinked global afyx-engineering-kit.\n"
88
91
  exit 0
89
92
  fi
@@ -113,8 +116,7 @@ CLI_VER="$(afyx-engineering-kit --version)"
113
116
  printf "[PASS] Version: %s\n" "$CLI_VER"
114
117
 
115
118
  # Test bare npx execution offline from a temporary location
116
- TEMP_TEST_DIR="/tmp/afyx-npx-verify-$$"
117
- mkdir -p "$TEMP_TEST_DIR"
119
+ TEMP_TEST_DIR="$(mktemp -d "${TMPDIR:-/tmp}/afyx-npx-verify.XXXXXX")"
118
120
  trap 'rm -rf "$TEMP_TEST_DIR"' EXIT
119
121
 
120
122
  (
@@ -126,5 +128,5 @@ trap 'rm -rf "$TEMP_TEST_DIR"' EXIT
126
128
 
127
129
  printf "[PASS] BARE_NPX_ON_WSL2: Bare \"npx afyx-engineering-kit install\" resolved offline from temp directory.\n"
128
130
  printf "[PASS] OFFLINE_REGISTRY_ISOLATION: Executed with npm_config_offline=true; zero registry queries required.\n"
129
- printf "[PASS] GRAPH_RUNTIME_AVAILABILITY: Graph engine and release archives confirmed available.\n"
131
+ printf "[INFO] GRAPH_RUNTIME_AVAILABILITY: Not tested by this local-link verifier; Full runtime acceptance is separate.\n"
130
132
  printf "[PASS] LOCAL_BARE_NPX_VERIFIED: Local bare NPX resolution setup on Linux/WSL2 is healthy and verified.\n"
@@ -26,10 +26,7 @@ import { createDeterministicArchive } from '../afyx-graph/engine/scripts/determi
26
26
  import { stampArtifact } from './afyx-graph-artifact.mjs';
27
27
  import { resolveAndStageGitReleaseArtifacts } from './resolve-git-release-artifacts.mjs';
28
28
 
29
- const expected = new Map([
30
- ['afyx-graph-win32-x64.zip', 'win32-x64'],
31
- ['afyx-graph-linux-x64.tar.gz', 'linux-x64'],
32
- ]);
29
+ import { GRAPH_PACKAGE_TARGETS, graphArchiveName, graphManifestTargets } from './afyx-graph-targets.mjs';
33
30
 
34
31
  export function buildGraphBundle({ root, target, revision, outputDir }) {
35
32
  const engineRoot = join(root, 'afyx-graph', 'engine');
@@ -151,36 +148,21 @@ export function buildGraphReleaseArtifacts(root, revision) {
151
148
  const releaseDir = join(root, 'afyx-graph', 'engine', 'release');
152
149
  mkdirSync(releaseDir, { recursive: true });
153
150
 
154
- const winZip = buildGraphBundle({ root, target: 'win32-x64', revision, outputDir: releaseDir });
155
- const linuxTar = buildGraphBundle({ root, target: 'linux-x64', revision, outputDir: releaseDir });
156
-
157
- const winSum = createHash('sha256').update(readFileSync(winZip)).digest('hex');
158
- const linuxSum = createHash('sha256').update(readFileSync(linuxTar)).digest('hex');
159
-
160
- const sumsContent = `${linuxSum} afyx-graph-linux-x64.tar.gz\n${winSum} afyx-graph-win32-x64.zip\n`;
161
- writeFileSync(join(releaseDir, 'SHA256SUMS'), sumsContent, 'utf8');
162
-
151
+ const artifacts = GRAPH_PACKAGE_TARGETS.map((target) => {
152
+ const archive = buildGraphBundle({ root, target, revision, outputDir: releaseDir });
153
+ return { file: graphArchiveName(target), target, sha256: createHash('sha256').update(readFileSync(archive)).digest('hex') };
154
+ });
155
+ writeFileSync(join(releaseDir, 'SHA256SUMS'), artifacts.map((a) => `${a.sha256} ${a.file}`).join('\n') + '\n', 'utf8');
163
156
  const graphVersion = JSON.parse(readFileSync(join(root, 'afyx-graph', 'engine', 'package.json'), 'utf8')).version;
164
157
  const manifest = {
165
- schema: 1,
158
+ schema: 2,
166
159
  product: 'Afyx Graph',
167
160
  product_version: graphVersion,
168
161
  release_tag: `afyx-graph-v${graphVersion}`,
169
162
  source_revision: revision,
170
163
  integrity_claim: 'sha256',
171
164
  publisher_authenticity: 'requires-independent-attestation',
172
- artifacts: [
173
- {
174
- file: 'afyx-graph-linux-x64.tar.gz',
175
- target: 'linux-x64',
176
- sha256: linuxSum,
177
- },
178
- {
179
- file: 'afyx-graph-win32-x64.zip',
180
- target: 'win32-x64',
181
- sha256: winSum,
182
- },
183
- ],
165
+ artifacts,
184
166
  };
185
167
  writeFileSync(join(releaseDir, 'RELEASE-MANIFEST.json'), `${JSON.stringify(manifest, null, 2)}\n`, 'utf8');
186
168
  }
@@ -200,6 +182,8 @@ export function checkGraphReleaseValid(root, revision) {
200
182
  if (manifest.source_revision !== revision) return false;
201
183
  const graphVersion = JSON.parse(readFileSync(join(root, 'afyx-graph', 'engine', 'package.json'), 'utf8')).version;
202
184
  if (manifest.product_version !== graphVersion) return false;
185
+ if (manifest.artifacts?.length !== graphManifestTargets(manifest).length) return false;
186
+ for (const target of graphManifestTargets(manifest)) if (!manifest.artifacts.some((a) => a.target === target && a.file === graphArchiveName(target))) return false;
203
187
  for (const artifact of manifest.artifacts) {
204
188
  const filePath = join(release, artifact.file);
205
189
  if (!existsSync(filePath)) return false;
@@ -221,15 +205,16 @@ export function prepareG6Package(root, revision, { autoBuild = false } = {}) {
221
205
  }
222
206
 
223
207
  const manifest = JSON.parse(readFileSync(join(release, 'RELEASE-MANIFEST.json'), 'utf8'));
208
+ const expected = new Map(graphManifestTargets(manifest).map((target) => [graphArchiveName(target), target]));
224
209
  const graphVersion = JSON.parse(readFileSync(join(root, 'afyx-graph', 'engine', 'package.json'), 'utf8')).version;
225
- if (manifest.schema !== 1 || manifest.product !== 'Afyx Graph' ||
210
+ if (![1, 2].includes(manifest.schema) || manifest.product !== 'Afyx Graph' ||
226
211
  manifest.source_revision !== revision || manifest.product_version !== graphVersion ||
227
212
  !Array.isArray(manifest.artifacts) || manifest.artifacts.length !== expected.size) {
228
213
  throw new Error('Graph release manifest does not match this source revision and product');
229
214
  }
230
215
  const sumLines = readFileSync(join(release, 'SHA256SUMS'), 'utf8').trim().split(/\r?\n/);
231
216
  const sums = new Map(sumLines.map((line) => {
232
- const match = /^([0-9a-f]{64}) (afyx-graph-(?:win32|linux)-x64\.(?:zip|tar\.gz))$/.exec(line);
217
+ const match = /^([0-9a-f]{64}) (afyx-graph-(?:win32-x64|linux-x64|darwin-arm64|darwin-x64)\.(?:zip|tar\.gz))$/.exec(line);
233
218
  if (!match) throw new Error('Malformed Graph SHA256SUMS');
234
219
  return [match[2], match[1]];
235
220
  }));
@@ -23,6 +23,7 @@ import { dirname, join, resolve } from 'node:path';
23
23
  import { fileURLToPath } from 'node:url';
24
24
  import { tmpdir } from 'node:os';
25
25
  import { verifyGraphArchivePaths } from './verify-graph-archive.mjs';
26
+ import { graphManifestTargets, graphArchiveName } from './afyx-graph-targets.mjs';
26
27
 
27
28
  const CANONICAL_REPO = 'a5zero7/afyx-engineering-kit';
28
29
  const GITHUB_API_BASE = `https://api.github.com/repos/${CANONICAL_REPO}`;
@@ -36,7 +37,7 @@ const REQUIRED_ARTIFACTS = Object.freeze([
36
37
  ]);
37
38
 
38
39
  export function validateReleaseChecksums(manifest, sumsText, revision) {
39
- const archives = REQUIRED_ARTIFACTS.filter((name) => name.endsWith('.zip') || name.endsWith('.tar.gz'));
40
+ const archives = graphManifestTargets(manifest).map(graphArchiveName);
40
41
  if (manifest?.source_revision !== revision || !Array.isArray(manifest.artifacts) ||
41
42
  manifest.artifacts.length !== archives.length) throw new Error('Incomplete or stale Graph release manifest');
42
43
  const entries = new Map();
@@ -256,7 +257,7 @@ export async function resolveAndStageGitReleaseArtifacts(root, revision, options
256
257
  const expectedSums = validateReleaseChecksums(manifestObj, sumsContent, revision);
257
258
 
258
259
  // 4. Download and verify each required archive
259
- const archivesToDownload = ['afyx-graph-win32-x64.zip', 'afyx-graph-linux-x64.tar.gz'];
260
+ const archivesToDownload = graphManifestTargets(manifestObj).map(graphArchiveName);
260
261
  for (const archiveName of archivesToDownload) {
261
262
  const archiveUrl = `${downloadBase}/${resolvedTag}/${archiveName}`;
262
263
  const archiveBuf = await fetchArtifact(archiveUrl, { timeoutMs: 60000 });
@@ -285,7 +286,7 @@ export async function resolveAndStageGitReleaseArtifacts(root, revision, options
285
286
  }
286
287
 
287
288
  // 5. Atomically stage all verified artifacts to releaseDir
288
- for (const file of REQUIRED_ARTIFACTS) {
289
+ for (const file of ['RELEASE-MANIFEST.json', 'SHA256SUMS', ...graphManifestTargets(manifestObj).map(graphArchiveName)]) {
289
290
  copyFileSync(join(tempStage, file), join(releaseDir, file));
290
291
  }
291
292
 
@@ -293,7 +294,7 @@ export async function resolveAndStageGitReleaseArtifacts(root, revision, options
293
294
  success: true,
294
295
  tag: resolvedTag,
295
296
  revision,
296
- artifacts: REQUIRED_ARTIFACTS,
297
+ artifacts: ['RELEASE-MANIFEST.json', 'SHA256SUMS', ...graphManifestTargets(manifestObj).map(graphArchiveName)],
297
298
  };
298
299
  } finally {
299
300
  if (existsSync(tempStage)) {
@@ -7,6 +7,7 @@ import { tmpdir } from 'node:os';
7
7
  import { dirname, isAbsolute, join, relative, resolve } from 'node:path';
8
8
  import { fileURLToPath } from 'node:url';
9
9
  import { buildGraphReleaseArtifacts, checkGraphReleaseValid } from './prepare-g6-package.mjs';
10
+ import { GRAPH_PACKAGE_TARGETS, graphArchiveName } from './afyx-graph-targets.mjs';
10
11
 
11
12
  const root = resolve(dirname(fileURLToPath(import.meta.url)), '..');
12
13
  const args = process.argv.slice(2);
@@ -60,7 +61,7 @@ run('tar', ['-xf', archive, '-C', stage]);
60
61
  writeFileSync(join(stage, '.afyx-source-revision'), `${revision}\n`, 'utf8');
61
62
  const release = join('afyx-graph', 'engine', 'release');
62
63
  mkdirSync(join(stage, release), { recursive: true });
63
- for (const name of ['afyx-graph-win32-x64.zip', 'afyx-graph-linux-x64.tar.gz', 'SHA256SUMS', 'RELEASE-MANIFEST.json']) {
64
+ for (const name of [...GRAPH_PACKAGE_TARGETS.map(graphArchiveName), 'SHA256SUMS', 'RELEASE-MANIFEST.json']) {
64
65
  const source = join(root, release, name);
65
66
  if (!statSync(source).isFile()) throw new Error(`Missing regular Graph artifact: ${name}`);
66
67
  copyFileSync(source, join(stage, release, name));
@@ -75,6 +76,7 @@ const fileNames = new Set(pkg.files.map((file) => file.path));
75
76
  for (const required of ['.afyx-source-revision', 'bin/afyx-engineering-kit.mjs',
76
77
  `${release.replaceAll('\\', '/')}/RELEASE-MANIFEST.json`,
77
78
  `${release.replaceAll('\\', '/')}/afyx-graph-win32-x64.zip`,
79
+ ...GRAPH_PACKAGE_TARGETS.filter((target) => target.startsWith('darwin')).map((target) => `${release.replaceAll('\\', '/')}/${graphArchiveName(target)}`),
78
80
  `${release.replaceAll('\\', '/')}/afyx-graph-linux-x64.tar.gz`]) {
79
81
  if (!fileNames.has(required)) throw new Error(`Incomplete npm package: ${required}`);
80
82
  }
@@ -20,7 +20,7 @@ if (mode === 'build') {
20
20
  const archive = join(release, archiveName);
21
21
  const manifest = JSON.parse(readFileSync(join(release, 'RELEASE-MANIFEST.json'), 'utf8'));
22
22
  const graphVersion = JSON.parse(readFileSync(join(root, 'afyx-graph', 'engine', 'package.json'), 'utf8')).version;
23
- if (manifest.schema !== 1 || manifest.product !== 'Afyx Graph' ||
23
+ if (![1, 2].includes(manifest.schema) || manifest.product !== 'Afyx Graph' ||
24
24
  manifest.source_revision !== revision || manifest.product_version !== graphVersion ||
25
25
  !Array.isArray(manifest.artifacts)) throw new Error('Graph manifest source/product mismatch');
26
26
  const matches = manifest.artifacts.filter((item) => item.file === archiveName);
@@ -28,7 +28,7 @@ if (mode === 'build') {
28
28
  throw new Error('Missing or invalid Windows x64 Graph manifest entry');
29
29
  }
30
30
  const lines = readFileSync(join(release, 'SHA256SUMS'), 'utf8').trim().split(/\r?\n/);
31
- const sums = lines.map((line) => /^([0-9a-f]{64}) (afyx-graph-(?:win32|linux)-x64\.(?:zip|tar\.gz))$/.exec(line));
31
+ const sums = lines.map((line) => /^([0-9a-f]{64}) (afyx-graph-(?:win32-x64|linux-x64|darwin-arm64|darwin-x64)\.(?:zip|tar\.gz))$/.exec(line));
32
32
  if (sums.some((match) => !match) || sums.filter((match) => match[2] === archiveName).length !== 1) {
33
33
  throw new Error('Missing, duplicate, or malformed Windows Graph SHA256SUMS entry');
34
34
  }
package/uninstall.ps1 CHANGED
@@ -25,6 +25,8 @@ param(
25
25
 
26
26
  Set-StrictMode -Version Latest
27
27
  $ErrorActionPreference = 'Stop'
28
+ $SelectedComponent = @($SelectedComponent | ForEach-Object { $_ -split ',' } | ForEach-Object { $_.Trim() } | Where-Object { $_ })
29
+ $Provider = @($Provider | ForEach-Object { $_ -split ',' } | ForEach-Object { $_.Trim() } | Where-Object { $_ })
28
30
 
29
31
  Write-Host 'Afyx Codex Engineering Kit — Windows uninstaller (PowerShell)'
30
32
  if ($All) {
package/verify.ps1 CHANGED
@@ -20,6 +20,9 @@ param(
20
20
 
21
21
  Set-StrictMode -Version Latest
22
22
  $ErrorActionPreference = 'Stop'
23
+ if ($CustomComponent.Count) {
24
+ $CustomComponent = @($CustomComponent | ForEach-Object { $_ -split ',' } | ForEach-Object { $_.Trim() } | Where-Object { $_ })
25
+ }
23
26
  $coreFailure = $false
24
27
  $configuredProviders = @()
25
28
  $claudeCommand = Get-Command claude -ErrorAction SilentlyContinue
@@ -237,13 +240,16 @@ if ($claudeRequired) {
237
240
  if ($claude) {
238
241
  try {
239
242
  $version = (& claude --version 2>$null) -join ' '
243
+ if ($LASTEXITCODE -ne 0) { throw 'version command returned non-zero exit code' }
240
244
  Write-Result 'OK' 'Claude Code host' "detected ($version)"
241
245
  } catch {
242
246
  Write-Result 'FAIL' 'Claude Code host' 'version command failed'
243
247
  $coreFailure = $true
244
248
  }
249
+ } elseif ([bool](Get-ChildItem -Path (Join-Path $env:USERPROFILE '.vscode\extensions\anthropic.claude-code-*') -Directory -ErrorAction SilentlyContinue | Select-Object -First 1)) {
250
+ Write-Result 'OK' 'Claude Code host' 'supported VS Code extension detected; standalone CLI is not installed'
245
251
  } else {
246
- Write-Result 'FAIL' 'Claude Code host' 'not found; install Claude Code CLI'
252
+ Write-Result 'FAIL' 'Claude Code host' 'not found; install Claude Code CLI or the supported Claude Code VS Code extension'
247
253
  $coreFailure = $true
248
254
  }
249
255
  }
package/verify.sh CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
2
  set -euo pipefail
3
3
  report_json=false
4
+ skip_provider_configuration=false
4
5
  verification_rows=()
5
6
 
6
7
  PACKAGE_ROOT="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
@@ -32,6 +33,7 @@ while (($#)); do
32
33
  --context-runtime-root) context_root="$2"; shift 2 ;;
33
34
  --forge-runtime-root) forge_root="$2"; shift 2 ;;
34
35
  --report-json) report_json=true; shift ;;
36
+ --skip-provider-configuration) skip_provider_configuration=true; shift ;;
35
37
  --preset) preset="$2"; shift 2 ;;
36
38
  --custom-component) custom_component_list="${custom_component_list:+$custom_component_list;}$2"; shift 2 ;;
37
39
  --provider) provider_list="$2"; provider_explicit=true; shift 2 ;;
@@ -147,7 +149,7 @@ else result SKIP 'Codex CLI' 'PROVIDER_NOT_INSTALLED'; fi
147
149
  extension_detected=false
148
150
  for extension in "$HOME"/.vscode/extensions/openai.chatgpt-*; do [[ -d "$extension" ]] && { extension_detected=true; break; }; done
149
151
  if "$extension_detected"; then result OK 'VS Code extension' 'detected'; else result INFO 'VS Code extension' 'not detected'; fi
150
- if "$provider_explicit"; then
152
+ if "$provider_explicit" && ! "$skip_provider_configuration"; then
151
153
  if [[ ",$provider_list," == *,codex,* ]] && ! "$codex_detected"; then
152
154
  result FAIL 'Codex provider' 'selected native Codex CLI is unavailable; VS Code extension alone cannot register MCP'; core_failure=true
153
155
  fi
@@ -200,7 +202,7 @@ case "$AFYX_STATE" in
200
202
  INVALID) result WARN 'Afyx Graph' 'invalid metadata (optional)' ;;
201
203
  *) result WARN 'Afyx Graph' "state $AFYX_STATE: $AFYX_DETAIL (optional)" ;;
202
204
  esac
203
- if [[ "$AFYX_STATE" == HEALTHY ]] && command -v node >/dev/null 2>&1 && "$codex_detected"; then
205
+ if [[ "$AFYX_STATE" == HEALTHY ]] && command -v node >/dev/null 2>&1 && "$codex_detected" && ! "$skip_provider_configuration"; then
204
206
  set +e
205
207
  integration_json="$(node "$PACKAGE_ROOT/scripts/afyx-mcp-integration.mjs" --node "$(command -v node)" --entry "$AFYX_PATH/current/lib/dist/bin/afyx-graph.js" --codex "$(command -v codex)" --codex-home "$codex_home" 2>/dev/null)"
206
208
  set -e
@@ -228,7 +230,7 @@ elif [[ "$AFYX_STATE" == HEALTHY ]] && command -v node >/dev/null 2>&1; then
228
230
  else result FAIL 'Afyx Graph MCP' "direct standalone handshake failed: $graph_probe"; core_failure=true; fi
229
231
  elif [[ "$AFYX_STATE" != HEALTHY ]]; then result INFO 'Afyx Graph MCP' 'MCP_BLOCKED: Graph runtime unavailable'
230
232
  else result INFO 'Afyx Graph MCP' 'MCP_NOT_CONFIGURED'; fi
231
- if [[ ",$provider_list," == *,antigravity,* && "$AFYX_STATE" == HEALTHY ]] && command -v node >/dev/null 2>&1; then
233
+ if [[ ",$provider_list," == *,antigravity,* && "$AFYX_STATE" == HEALTHY ]] && command -v node >/dev/null 2>&1 && ! "$skip_provider_configuration"; then
232
234
  set +e
233
235
  provider_json="$(node "$PACKAGE_ROOT/scripts/afyx-provider-integration.mjs" --providers antigravity --scope "$provider_scope" --workspace-root "$workspace_root" --gemini-home "$gemini_home" --node "$(command -v node)" --entry "$AFYX_PATH/current/lib/dist/bin/afyx-graph.js" 2>/dev/null)"; provider_exit=$?
234
236
  set -e