feat(pipeline): version tag on indexed nodes + diff_versions MCP tool#1064
Open
isc-tdyar wants to merge 1 commit into
Open
feat(pipeline): version tag on indexed nodes + diff_versions MCP tool#1064isc-tdyar wants to merge 1 commit into
isc-tdyar wants to merge 1 commit into
Conversation
…ntifier node types Signed-off-by: Thomas Dyar <tdyar@intersystems.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds version tagging on all indexed nodes and a
diff_versionsMCP tool for cross-version change detection.Closes #1062. Depends on #467 (ObjectScript language support) merging first — the Storage node inline-JSON change targets ObjectScript Storage nodes.
New API
cbm_pipeline_set_version(cbm_pipeline_t *p, const char *version_tag)Sets a version label (e.g.
"28.0") on a pipeline instance. When set, the tag is written as a"version"property on every node. Also bypasses the incremental-index path so versioned indexing always does a full pass — the graph accumulates both versions side-by-side.index_repositorytool: newversionparameter{ "repo_path": "/repos/myproject-28.0", "version": "28.0" }When omitted, a version-like segment (digits and dots) is auto-derived from the repo path. No behavior change for projects that don't use versioning.
diff_versionsMCP tool{ "project": "myproject", "from_version": "28.0", "to_version": "30.0", "label": "Class" }Returns
{"added": [...], "removed": [...], "from_version": "28.0", "to_version": "30.0"}. Default labelClass, limit 500 per side.Files changed
src/pipeline/pipeline.h—cbm_pipeline_set_version()declarationsrc/pipeline/pipeline_internal.h—version_tagfield on ctxsrc/pipeline/pipeline.c— setter, free, skip-incremental guard, ctx wiringsrc/pipeline/pass_definitions.c—versionproperty on all nodes; Storage nodes with structured docstring have fields merged inline as raw JSON rather than escapedsrc/pipeline/pass_parallel.c— same changes mirrored;version_tagthreaded through parallel workersrc/mcp/mcp.c—cbm_derive_version_from_path()helper,versionparam onindex_repository,diff_versionstool registered and handler implemented