feat: Make Discovery accessible from CLI and SDK (#228)#232
Merged
feat: Make Discovery accessible from CLI and SDK (#228)#232
Conversation
added 5 commits
March 8, 2026 23:59
…S3 upload dependency
added 2 commits
March 9, 2026 11:59
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.
Summary
Makes Discovery accessible from CLI (
idp-cli discover) and SDK (client.discovery.run()), addressing #228.IUsage
Changes
New files
lib/idp_sdk/idp_sdk/models/discovery.py—DiscoveryResultandDiscoveryBatchResultPydantic modelslib/idp_sdk/idp_sdk/operations/discovery.py—DiscoveryOperationwithrun()andrun_batch()methods, local and stack-connected modeslib/idp_sdk/tests/unit/test_discovery_operations.py— 17 unit testsModified files
lib/idp_common_pkg/idp_common/discovery/classes_discovery.py— Addedfile_bytes,ground_truth_data,save_to_configoptional params (backward compatible)lib/idp_sdk/idp_sdk/client.py— Addeddiscoverynamespace (10th operation)lib/idp_sdk/idp_sdk/operations/__init__.py— ExportDiscoveryOperationlib/idp_sdk/idp_sdk/models/__init__.py— Export discovery modelslib/idp_cli_pkg/idp_cli/cli.py— Addeddiscovercommand with optional--stack-namedocs/idp-cli.md— Added discover command documentationdocs/idp-sdk.md— Added discovery operations documentationlib/idp_common_pkg/README.md— Added Discovery to core services listlib/idp_common_pkg/idp_common/README.md— Added Discovery usage exampleCHANGELOG.md— Added entry under [Unreleased]Key design decisions
file_bytesparameter--stack-nameoptional — without it, runs in local mode using system default Bedrock settings frombase-discovery.yamldiscoverCLI command —-drepeatable for batch modeClassesDiscoveryparameters are optional; existing Lambda callers unaffectedfix/discovery— Discovery no longer injects default config classes into target versionTesting
Closes #228