@vibgrate/cli 2026.715.1 → 2026.718.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.
- package/DOCS.md +1 -1
- package/README.md +26 -0
- package/dist/baseline-DKPQWOQ6.js +6 -0
- package/dist/{baseline-BTLZWSNS.js.map → baseline-DKPQWOQ6.js.map} +1 -1
- package/dist/{chunk-6DKWB2OI.js → chunk-BFXDF6ZE.js} +3 -3
- package/dist/{chunk-6DKWB2OI.js.map → chunk-BFXDF6ZE.js.map} +1 -1
- package/dist/{chunk-D4BPWARI.js → chunk-H5M7CXE6.js} +108 -35
- package/dist/chunk-H5M7CXE6.js.map +1 -0
- package/dist/{chunk-C5AVF7PT.js → chunk-RME7BFMU.js} +44 -12
- package/dist/chunk-RME7BFMU.js.map +1 -0
- package/dist/cli.js +1005 -176
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/baseline-BTLZWSNS.js +0 -6
- package/dist/chunk-C5AVF7PT.js.map +0 -1
- package/dist/chunk-D4BPWARI.js.map +0 -1
package/DOCS.md
CHANGED
|
@@ -567,7 +567,7 @@ vg ask "<question>"
|
|
|
567
567
|
|
|
568
568
|
A local ONNX embedding model is downloaded once on first use, then cached and fully offline. Degrades gracefully to lexical-only under `--local` or `--no-semantic`.
|
|
569
569
|
|
|
570
|
-
> **Semantic search is opt-in.** The embedding backend (`fastembed`, which pulls a native ONNX runtime) is declared as an **optional dependency**: package managers install it by default, but if it's absent — e.g. you installed with `--omit=optional`, or it failed to build on your platform — `vg ask` and `vg embed` transparently fall back to lexical + structural search. Nothing else in the CLI needs it, so `vg build`, `vg show`, `vg impact`, drift reporting, and MCP serving all run without it. If you never use semantic `ask`, you can install lean: `npm i @vibgrate/cli --omit=optional`.
|
|
570
|
+
> **Semantic search is opt-in.** The embedding backend (`fastembed`, which pulls a native ONNX runtime) is declared as an **optional dependency**: package managers install it by default, but if it's absent — e.g. you installed with `--omit=optional`, or it failed to build on your platform — `vg ask` and `vg embed` transparently fall back to lexical + structural search. Nothing else in the CLI needs it, so `vg build`, `vg show`, `vg impact`, drift reporting, and MCP serving all run without it. If you never use semantic `ask`, you can install lean: `npm i @vibgrate/cli --omit=optional`. A host application that bundles the CLI without optional dependencies (Vibgrate for VS Code does this) can supply the backend from its own directory by setting `VIBGRATE_EMBEDDER_PATH` to a folder whose `node_modules` contains `fastembed`; when set, that copy is used first.
|
|
571
571
|
|
|
572
572
|
Before answering, `ask` checks whether files changed since the map was last built and, if so, rebuilds it incrementally first (only the changed files re-parse) — so answers always reflect the code as it is now. The check is stat-based and costs almost nothing when nothing changed; `--no-refresh` opts out.
|
|
573
573
|
|
package/README.md
CHANGED
|
@@ -89,6 +89,32 @@ This writes the MCP config for your chosen tool(s) and installs a skill that tea
|
|
|
89
89
|
|
|
90
90
|
Browse all 21+ supported assistants and their skill descriptions at **[vibgrate.com/skills](https://vibgrate.com/skills)**.
|
|
91
91
|
|
|
92
|
+
## Tools
|
|
93
|
+
|
|
94
|
+
`vg serve` exposes 19 MCP tools:
|
|
95
|
+
|
|
96
|
+
- **orient** — start here: project overview, entry points, where to look first.
|
|
97
|
+
- **search_symbols** — find a symbol by name or literal string.
|
|
98
|
+
- **query_graph** — find code by meaning: symptoms, relationships, what-breaks-if.
|
|
99
|
+
- **get_node** — inspect one symbol: signature, callers, callees, area.
|
|
100
|
+
- **find_path** — shortest connection between two symbols.
|
|
101
|
+
- **impact_of** — blast radius of a change: dependents, files, covering tests, risk.
|
|
102
|
+
- **tests_for** — which tests cover a symbol.
|
|
103
|
+
- **get_graph_summary** — code map overview: counts, languages, top areas and hubs.
|
|
104
|
+
- **list_areas** — code areas (communities) by size.
|
|
105
|
+
- **list_hubs** — most-depended-on symbols.
|
|
106
|
+
- **get_facts** — deterministic facts for a node (contract/invariant; needs a `--deep` build).
|
|
107
|
+
- **guide_node** — cited standards and practices for a node (OWASP/CWE).
|
|
108
|
+
- **check_drift** — offline dependency inventory with optional git who-added attribution.
|
|
109
|
+
- **vuln_attribution** — who introduced each open vulnerability, exposure windows, CRA remediation metrics.
|
|
110
|
+
- **list_vulnerabilities** — known vulnerabilities from the last `vg scan --vulns`: CVE, severity, CVSS, fixed version.
|
|
111
|
+
- **upgrade_impact** — what breaks if you upgrade a package: major distance, import blast radius, vulns fixed.
|
|
112
|
+
- **list_models** — local models on disk (Ollama / LM Studio / gguf).
|
|
113
|
+
- **resolve_library** — resolve a library to its canonical id and the version your project uses.
|
|
114
|
+
- **library_docs** — version-correct usage docs for a library, sliced to a token budget.
|
|
115
|
+
|
|
116
|
+
Prefer the hosted server over your team's scan data? **[Vibgrate MCP](https://vibgrate.com/mcp)** connects your assistant to Vibgrate Cloud (OAuth 2.1, 51 tools).
|
|
117
|
+
|
|
92
118
|
---
|
|
93
119
|
|
|
94
120
|
## Understand any codebase
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"baseline-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"baseline-DKPQWOQ6.js"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { runCoreScan, writeJsonFile, compactUiPurpose } from './chunk-
|
|
1
|
+
import { runCoreScan, writeJsonFile, compactUiPurpose } from './chunk-RME7BFMU.js';
|
|
2
2
|
import { findPackageJsonFiles, readJsonFile, findFiles, readTextFile, pathExists } from './chunk-GI6W53LM.js';
|
|
3
3
|
import * as path3 from 'path';
|
|
4
4
|
import { Command } from 'commander';
|
|
@@ -4355,5 +4355,5 @@ var baselineCommand = new Command("baseline").description("Create a drift baseli
|
|
|
4355
4355
|
});
|
|
4356
4356
|
|
|
4357
4357
|
export { baselineCommand, loadAdvancedScanHook, runBaseline };
|
|
4358
|
-
//# sourceMappingURL=chunk-
|
|
4359
|
-
//# sourceMappingURL=chunk-
|
|
4358
|
+
//# sourceMappingURL=chunk-BFXDF6ZE.js.map
|
|
4359
|
+
//# sourceMappingURL=chunk-BFXDF6ZE.js.map
|