Skip to content

feat: add analyzer_only compile option (-COMPILEANA); engine 3.6.0 - #29

Merged
ddehilster merged 2 commits into
VisualText:mainfrom
ddehilster:feat/compile-analyzer-only
Jun 15, 2026
Merged

ddehilster merged 2 commits into
VisualText:mainfrom
ddehilster:feat/compile-analyzer-only

Conversation

@ddehilster

Copy link
Copy Markdown
Member

Adds analyzer-only compile support to NLPPlus, matching nlp-engine 3.6.0's new -COMPILEANA mode.

Changes

  • bindings.cpp — wrap_compile gains an analyzerOnly arg and calls engine.init(..., compileKB=kbOnly, compileAna=analyzerOnly); the nanobind compile def exposes analyzerOnly=False.
  • NLPPlus/__init__.py — Engine.compile / Engine.cloud_compile and the module-level compile / cloud_compile gain analyzer_only. Mutually exclusive with kb_only.
  • NLPPlus/cloud.py — _stage_payload ships only run/, _stage_artifact stages only run.<ext>/runu.<ext>, and the dispatcher manifest carries analyzerOnly.
  • nlp-engine submodule bumped v3.1.55 → v3.6.0 (provides the compileAna init parameter).
  • README updated.

Note: the cloud (cloud_compile(analyzer_only=True)) path uploads only the run/ tree; the nlp-compile-service runner builds from whatever subdirs are staged. If the dispatcher needs to special-case analyzerOnly, that's a follow-up in that repo.

🤖 Generated with Claude Code

ddehilster and others added 2 commits June 6, 2026 16:49
Lead with a targeted statement that NLP++ builds fully customized,
100%-visible text analyzers via the VSCode NLP++ extension, unlike
black-box NLP packages.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Thread an `analyzer_only` flag through Engine.compile / cloud_compile
and the module-level compile()/cloud_compile(), mapping to the
engine's new -COMPILEANA mode via the nanobind wrap_compile
(init(..., compileAna=True)). cloud.py stages only run/ and the
run.<ext>/runu.<ext> artifacts for analyzer-only builds, and adds
analyzerOnly to the dispatcher manifest. kb_only and analyzer_only
are mutually exclusive.

Bumps the nlp-engine submodule to v3.6.0 (which adds the compileAna
init parameter the binding now passes).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ddehilster
ddehilster merged commit e70676e into VisualText:main Jun 15, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant