Skip to content

Feat/compat safeline 20 openapi#38

Merged
jerrynbc merged 4 commits into
mainfrom
feat/compat-safeline-20-openapi
May 21, 2026
Merged

Feat/compat safeline 20 openapi#38
jerrynbc merged 4 commits into
mainfrom
feat/compat-safeline-20-openapi

Conversation

@jerrynbc
Copy link
Copy Markdown
Collaborator

No description provided.

Jerry and others added 4 commits May 21, 2026 13:52
Add IsParamError, DoWithFallback, and DoMultiWithFallback to detect
unsupported-parameter errors from older SafeLine servers and
automatically retry with fallback query parameters.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Wire the version package into the safeline CLI so subcommands can
access the detected server version. Adds ServerVersion global variable
with accessor functions in cmd/root.go, and a detectServerVersion()
call in PersistentPreRunE that tries cache first, then queries the
server, caching the result on success. Failures are silent so
version-aware features fall back gracefully.
Add version-aware parameter filtering and fallback retry to log detect
list and log access list commands so they work with old servers that
don't support exclude_body.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…parameter filtering

Provides semantic version comparison (YY.MM.PPP), server version detection
via /api/ServerControlledConfigAPI with local caching, parameter constraint
filtering to strip unsupported params for old server versions, and fallback
parameter stripping for error retry scenarios.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@jerrynbc jerrynbc force-pushed the feat/compat-safeline-20-openapi branch from 8e46503 to d94b0b0 Compare May 21, 2026 06:07
@jerrynbc jerrynbc merged commit 554e861 into main May 21, 2026
3 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