@vibgrate/cli 2026.805.2 → 2026.806.2

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 (84) hide show
  1. package/DOCS.md +11 -5
  2. package/dist/{agent-PFYXJWWP.js → agent-DSC3EQLT.js} +11 -11
  3. package/dist/{agent-PFYXJWWP.js.map → agent-DSC3EQLT.js.map} +1 -1
  4. package/dist/{baseline-7C4F7PBS.js → baseline-KVCXVZFQ.js} +3 -3
  5. package/dist/{baseline-7C4F7PBS.js.map → baseline-KVCXVZFQ.js.map} +1 -1
  6. package/dist/{chunk-PPXAN2X5.js → chunk-455ZJQQ4.js} +5 -5
  7. package/dist/{chunk-PPXAN2X5.js.map → chunk-455ZJQQ4.js.map} +1 -1
  8. package/dist/{chunk-MDQO4ACI.js → chunk-6L6V77HW.js} +8 -8
  9. package/dist/{chunk-MDQO4ACI.js.map → chunk-6L6V77HW.js.map} +1 -1
  10. package/dist/{chunk-L5O6W5EB.js → chunk-6XKDAYYR.js} +4 -4
  11. package/dist/{chunk-L5O6W5EB.js.map → chunk-6XKDAYYR.js.map} +1 -1
  12. package/dist/{chunk-4IAKFZVG.js → chunk-7C5UKIXD.js} +4 -4
  13. package/dist/{chunk-4IAKFZVG.js.map → chunk-7C5UKIXD.js.map} +1 -1
  14. package/dist/{chunk-EEZ5HCL2.js → chunk-CBPDYYIH.js} +4 -4
  15. package/dist/{chunk-EEZ5HCL2.js.map → chunk-CBPDYYIH.js.map} +1 -1
  16. package/dist/{chunk-OAMAINC6.js → chunk-D2VEJHPC.js} +7 -7
  17. package/dist/{chunk-OAMAINC6.js.map → chunk-D2VEJHPC.js.map} +1 -1
  18. package/dist/{chunk-PZEJ4LHP.js → chunk-EW2ZMFUC.js} +4 -4
  19. package/dist/{chunk-PZEJ4LHP.js.map → chunk-EW2ZMFUC.js.map} +1 -1
  20. package/dist/{chunk-TFGUYBNC.js → chunk-HV4CKBXT.js} +3 -3
  21. package/dist/{chunk-TFGUYBNC.js.map → chunk-HV4CKBXT.js.map} +1 -1
  22. package/dist/{chunk-P64OTAUL.js → chunk-I2JNLAKW.js} +1295 -61
  23. package/dist/chunk-I2JNLAKW.js.map +1 -0
  24. package/dist/{chunk-ABJVJUKB.js → chunk-IQJUFRZZ.js} +35 -17
  25. package/dist/{chunk-ABJVJUKB.js.map → chunk-IQJUFRZZ.js.map} +1 -1
  26. package/dist/chunk-K6MLOGU4.js +6 -0
  27. package/dist/{chunk-54USY7IT.js.map → chunk-K6MLOGU4.js.map} +1 -1
  28. package/dist/{chunk-63QGVU4A.js → chunk-KAOSPAFK.js} +5 -5
  29. package/dist/{chunk-63QGVU4A.js.map → chunk-KAOSPAFK.js.map} +1 -1
  30. package/dist/{chunk-LEESW7CF.js → chunk-KYRH3567.js} +32 -12
  31. package/dist/chunk-KYRH3567.js.map +1 -0
  32. package/dist/{chunk-TPWMFEIA.js → chunk-QDKFGLI3.js} +6 -6
  33. package/dist/{chunk-TPWMFEIA.js.map → chunk-QDKFGLI3.js.map} +1 -1
  34. package/dist/{chunk-ZY6XAHLH.js → chunk-RL6MHAOK.js} +4 -4
  35. package/dist/{chunk-ZY6XAHLH.js.map → chunk-RL6MHAOK.js.map} +1 -1
  36. package/dist/{chunk-VETQRKXJ.js → chunk-SBVZGEOB.js} +3 -3
  37. package/dist/{chunk-VETQRKXJ.js.map → chunk-SBVZGEOB.js.map} +1 -1
  38. package/dist/{chunk-2U4SXS5U.js → chunk-SI4D7DYF.js} +13 -4
  39. package/dist/chunk-SI4D7DYF.js.map +1 -0
  40. package/dist/{chunk-TWSUMNKS.js → chunk-TOVVTZTM.js} +3 -3
  41. package/dist/{chunk-TWSUMNKS.js.map → chunk-TOVVTZTM.js.map} +1 -1
  42. package/dist/{chunk-3LDQD53S.js → chunk-VTJAPNJO.js} +4 -4
  43. package/dist/{chunk-3LDQD53S.js.map → chunk-VTJAPNJO.js.map} +1 -1
  44. package/dist/{chunk-ZXQP2GQE.js → chunk-ZMSTSEGR.js} +3 -3
  45. package/dist/{chunk-ZXQP2GQE.js.map → chunk-ZMSTSEGR.js.map} +1 -1
  46. package/dist/{chunk-TAV6XEFK.js → chunk-ZPPDKHGL.js} +65 -9
  47. package/dist/chunk-ZPPDKHGL.js.map +1 -0
  48. package/dist/cli.js +406 -244
  49. package/dist/cli.js.map +1 -1
  50. package/dist/embed-worker-main.js +3 -3
  51. package/dist/{ensure-map-7L3TPCGA.js → ensure-map-5E5TFPXJ.js} +12 -12
  52. package/dist/{ensure-map-7L3TPCGA.js.map → ensure-map-5E5TFPXJ.js.map} +1 -1
  53. package/dist/graph-backend-GQZXMNRI.js +13 -0
  54. package/dist/{graph-backend-5AMGXUDF.js.map → graph-backend-GQZXMNRI.js.map} +1 -1
  55. package/dist/index.d.ts +10 -3
  56. package/dist/index.js +11 -11
  57. package/dist/{interactive-5NXJTODL.js → interactive-7EZHEBHQ.js} +24 -22
  58. package/dist/interactive-7EZHEBHQ.js.map +1 -0
  59. package/dist/load-QBVKCWZT.js +9 -0
  60. package/dist/{load-B6KY2WPG.js.map → load-QBVKCWZT.js.map} +1 -1
  61. package/dist/{run-outcome-JO4IIEJJ.js → run-outcome-NQAU6DOA.js} +5 -5
  62. package/dist/{run-outcome-JO4IIEJJ.js.map → run-outcome-NQAU6DOA.js.map} +1 -1
  63. package/dist/runtime-session-ZPGU4PGW.js +20 -0
  64. package/dist/{runtime-session-LY3STY7C.js.map → runtime-session-ZPGU4PGW.js.map} +1 -1
  65. package/dist/session-QNSYTLLJ.js +15 -0
  66. package/dist/{session-KRLJTAK6.js.map → session-QNSYTLLJ.js.map} +1 -1
  67. package/dist/{stream-json-VP6TVWKF.js → stream-json-5WFD6HRO.js} +11 -11
  68. package/dist/{stream-json-VP6TVWKF.js.map → stream-json-5WFD6HRO.js.map} +1 -1
  69. package/dist/{vg-mcp-bridge-2CT67CXT.js → vg-mcp-bridge-VTGXA6CO.js} +8 -8
  70. package/dist/{vg-mcp-bridge-2CT67CXT.js.map → vg-mcp-bridge-VTGXA6CO.js.map} +1 -1
  71. package/dist/{vgd-BCBVZ2QA.js → vgd-54GEZWBI.js} +8 -8
  72. package/dist/vgd-54GEZWBI.js.map +1 -0
  73. package/package.json +3 -3
  74. package/dist/chunk-2U4SXS5U.js.map +0 -1
  75. package/dist/chunk-54USY7IT.js +0 -6
  76. package/dist/chunk-LEESW7CF.js.map +0 -1
  77. package/dist/chunk-P64OTAUL.js.map +0 -1
  78. package/dist/chunk-TAV6XEFK.js.map +0 -1
  79. package/dist/graph-backend-5AMGXUDF.js +0 -13
  80. package/dist/interactive-5NXJTODL.js.map +0 -1
  81. package/dist/load-B6KY2WPG.js +0 -9
  82. package/dist/runtime-session-LY3STY7C.js +0 -20
  83. package/dist/session-KRLJTAK6.js +0 -15
  84. package/dist/vgd-BCBVZ2QA.js.map +0 -1
@@ -1,12 +1,12 @@
1
- import { FREE_PACK, navigationToolsetConfig, deferredToolNames, HOT_TOOLS } from './chunk-TPWMFEIA.js';
1
+ import { FREE_PACK, navigationToolsetConfig, deferredToolNames, HOT_TOOLS } from './chunk-QDKFGLI3.js';
2
2
  import { edgeId, buildModuleResolver, resolve, applyStaticTestLinkage, nodeId } from './chunk-VIWZ4QT7.js';
3
3
  import { init_cli_invocation, whichOnPath, isInstalledOwnBinary } from './chunk-3LSG7Z4I.js';
4
- import { indexFor } from './chunk-PZEJ4LHP.js';
4
+ import { indexFor } from './chunk-EW2ZMFUC.js';
5
5
  import { langById, grammarSetVersion, langForExtension, setGrammarsOverride, parseSource } from './chunk-UTNNGKKX.js';
6
6
  import { redactSecrets } from './chunk-RXP66R2E.js';
7
- import { writeGraphIndex, SCHEMA_VERSION, loadGraph } from './chunk-VETQRKXJ.js';
8
- import { loadCache, serializeGraph, cacheDir, stableStringify, ensureVibgrateGitignore } from './chunk-ZXQP2GQE.js';
9
- import { VERSION } from './chunk-54USY7IT.js';
7
+ import { writeGraphIndex, SCHEMA_VERSION, loadGraph } from './chunk-SBVZGEOB.js';
8
+ import { loadCache, serializeGraph, cacheDir, stableStringify, ensureVibgrateGitignore } from './chunk-ZMSTSEGR.js';
9
+ import { VERSION } from './chunk-K6MLOGU4.js';
10
10
  import { shortId, canonicalize, hashString, hashBytes } from './chunk-JFGYT6BI.js';
11
11
  import * as fs11 from 'fs';
12
12
  import * as path11 from 'path';
@@ -2929,10 +2929,24 @@ var ASSISTANTS = [
2929
2929
  homeMarkers: [".gemini"],
2930
2930
  bin: ["gemini"]
2931
2931
  },
2932
+ {
2933
+ // Grok reads project-scoped MCP servers from `.grok/config.toml` — a TOML
2934
+ // `[mcp_servers.<name>]` table, the same thing `grok mcp add --scope
2935
+ // project` writes. Without it Grok sees the skill but no `vg` server, says
2936
+ // it "isn't listed among connected servers", and falls back to shelling the
2937
+ // CLI (slow, and killed by its command timeout on a stale map).
2938
+ id: "grok",
2939
+ label: "Grok CLI",
2940
+ skill: ".grok/skills/vg/SKILL.md",
2941
+ mcp: { file: ".grok/config.toml", key: "mcp_servers", format: "toml" },
2942
+ nudge: { file: "AGENTS.md", kind: "block" },
2943
+ markers: [".grok", "GROK.md"],
2944
+ homeMarkers: [".grok"],
2945
+ bin: ["grok"]
2946
+ },
2932
2947
  // Skill + advisory AGENTS.md nudge (the broad-reach common denominator). MCP
2933
2948
  // registration for these hosts is host-specific and added as their formats
2934
2949
  // stabilise; the skill + nudge work today.
2935
- { id: "grok", label: "Grok CLI", skill: ".grok/skills/vg/SKILL.md", nudge: { file: "AGENTS.md", kind: "block" }, markers: [".grok", "GROK.md"], homeMarkers: [".grok"], bin: ["grok"] },
2936
2950
  { id: "opencode", label: "OpenCode", skill: ".opencode/skills/vg/SKILL.md", nudge: { file: "AGENTS.md", kind: "block" }, markers: [".opencode", "opencode.json"], homeMarkers: [".config/opencode"], bin: ["opencode"] },
2937
2951
  { id: "kilo", label: "Kilo Code", skill: ".kilo/skills/vg/SKILL.md", nudge: { file: "AGENTS.md", kind: "block" }, markers: [".kilo", ".kilocode"], homeMarkers: [".kilocode"] },
2938
2952
  { id: "aider", label: "Aider", skill: ".aider/vg/SKILL.md", nudge: { file: "AGENTS.md", kind: "block" }, markers: [".aider", ".aider.conf.yml"], homeMarkers: [".aider.conf.yml"], bin: ["aider"] },
@@ -3041,7 +3055,9 @@ function isAssistantInstalled(a, root) {
3041
3055
  if (a.skill && fs11.existsSync(path11.join(root, a.skill))) return true;
3042
3056
  if (a.mcp) {
3043
3057
  const file = path11.join(root, a.mcp.file);
3044
- if (fs11.existsSync(file)) {
3058
+ if (a.mcp.format === "toml") {
3059
+ if (hasTomlMcp(file, a.mcp)) return true;
3060
+ } else if (fs11.existsSync(file)) {
3045
3061
  try {
3046
3062
  const config = readJson(file);
3047
3063
  const bag = config[a.mcp.key];
@@ -3078,6 +3094,10 @@ function writeNavigationConfig(root) {
3078
3094
  return rel2;
3079
3095
  }
3080
3096
  function upsertMcp(file, target, launch) {
3097
+ if (target.format === "toml") {
3098
+ upsertTomlMcp(file, target, launch);
3099
+ return;
3100
+ }
3081
3101
  const config = readJson(file);
3082
3102
  const entry = mcpServerEntry(launch);
3083
3103
  const value = target.vscode ? { type: "stdio", ...entry } : entry;
@@ -3087,7 +3107,43 @@ function upsertMcp(file, target, launch) {
3087
3107
  writeFileEnsured(file, `${JSON.stringify(config, null, 2)}
3088
3108
  `);
3089
3109
  }
3110
+ function tomlTableRe(key) {
3111
+ return new RegExp(`(^|\\n)[ \\t]*\\[${escapeRe(key)}\\.vg\\][^\\n]*\\n(?:(?![ \\t]*\\[)[^\\n]*\\n?)*`);
3112
+ }
3113
+ function tomlString(s) {
3114
+ return JSON.stringify(s);
3115
+ }
3116
+ function upsertTomlMcp(file, target, launch) {
3117
+ const entry = mcpServerEntry(launch);
3118
+ const table = `[${target.key}.vg]
3119
+ command = ${tomlString(entry.command)}
3120
+ args = [${entry.args.map(tomlString).join(", ")}]
3121
+ `;
3122
+ const existing = fs11.existsSync(file) ? fs11.readFileSync(file, "utf8") : "";
3123
+ const re = tomlTableRe(target.key);
3124
+ const next = re.test(existing) ? existing.replace(re, (m) => m.startsWith("\n") ? `
3125
+ ${table}` : table) : existing.length ? `${existing.replace(/\s*$/, "")}
3126
+
3127
+ ${table}` : table;
3128
+ writeFileEnsured(file, next);
3129
+ }
3130
+ function removeTomlMcp(file, target) {
3131
+ if (!fs11.existsSync(file)) return false;
3132
+ const existing = readTextSafe(file);
3133
+ if (existing === null) return false;
3134
+ const re = tomlTableRe(target.key);
3135
+ if (!re.test(existing)) return false;
3136
+ const next = existing.replace(re, (m) => m.startsWith("\n") ? "\n" : "").replace(/\n{3,}/g, "\n\n");
3137
+ writeFileEnsured(file, next.trim().length ? next : "");
3138
+ return true;
3139
+ }
3140
+ function hasTomlMcp(file, target) {
3141
+ if (!fs11.existsSync(file)) return false;
3142
+ const text = readTextSafe(file);
3143
+ return text !== null && tomlTableRe(target.key).test(text);
3144
+ }
3090
3145
  function removeMcp(file, target) {
3146
+ if (target.format === "toml") return removeTomlMcp(file, target);
3091
3147
  if (!fs11.existsSync(file)) return false;
3092
3148
  const config = readJson(file);
3093
3149
  const bag = config[target.key];
@@ -3204,5 +3260,5 @@ function escapeRe(s) {
3204
3260
  }
3205
3261
 
3206
3262
  export { ASSISTANTS, CliError, ExitCode, ResourceLimitError, SKIP_DIRS, SKIP_FILES, SMALL_REPO_FILES, UsageError, analyze, applyCoverage, assistantById, buildFacts, buildGraph, decodeScipIndex, detectAssistants, detectServeLaunch, discover, driftCount, epistemicBreakdown, groundGraph, hasDrift, installAssistant, isAssistantInstalled, isSkippedDirName, loadCoverage, loadSnapshot, probeFreshness, refreshInstalledInstructions, resolveLimits, scipEdges, uninstallAssistant, usageError, verifyDeterminism, versionMarker, writeNavigationConfig, writeSnapshot };
3207
- //# sourceMappingURL=chunk-TAV6XEFK.js.map
3208
- //# sourceMappingURL=chunk-TAV6XEFK.js.map
3263
+ //# sourceMappingURL=chunk-ZPPDKHGL.js.map
3264
+ //# sourceMappingURL=chunk-ZPPDKHGL.js.map