Change wassette inspect to accept component ID instead of URI#498
Conversation
wassette inspect command
|
@copilot actually the inspect command should not take a file path or a OCI path because that's the job of load-component. it should just be a component id and display its json schema. |
You're right! Changed in commit 62afa3e. The # Load first
wassette component load oci://ghcr.io/microsoft/time-server-js:latest
# Then inspect
wassette inspect time-server-jsThe command now shows: |
wassette inspect commandwassette inspect to accept component ID instead of URI
|
@copilot please resolve unused dependencies and linking issues |
8ccc82e to
006662a
Compare
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
- Reverted loader module to private - Removed oci-wasm dependency - Updated inspect to work with loaded components only - Updated tests to load then inspect - Updated documentation Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Replaced assert_eq!(bool, true) with assert!(bool) in transport_integration_test.rs Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
…allowance for CLI test commands Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
bae268e to
52b424b
Compare
|
@copilot please remove unused dependencies and fix linting and clippy issues before commit |
These dependencies were used in the old inspect implementation that downloaded and compiled components directly. Since inspect now uses LifecycleManager::get_component_schema(), they are no longer needed. Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Fixed in commit 396c7f9. Removed unused dependencies Verified with:
|
|
@copilot Revert the changes to CHANGELOG and add a changeset log file |
- Reverted CHANGELOG.md to original state - Added changelog.d/inspect-component-id.feature.md changeset file describing the inspect command changes Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
…osoft#498) * Initial plan * Add OCI/remote URI support to wassette inspect command Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com> * Add tests and documentation for remote URI support in inspect Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com> * Fix test timeout for OCI inspect test Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com> * Update CHANGELOG.md with remote URI support for inspect Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com> * Fix duplicate documentation comment in loader.rs Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com> * Change inspect command to accept component ID instead of URI - Reverted loader module to private - Removed oci-wasm dependency - Updated inspect to work with loaded components only - Updated tests to load then inspect - Updated documentation Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com> * Fix clippy warning about bool assertion comparison Replaced assert_eq!(bool, true) with assert!(bool) in transport_integration_test.rs Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com> * Update plugin directory reference in main function and add dead code allowance for CLI test commands Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com> * fix linting issues Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com> * Remove unused dependencies component2json and wasmtime These dependencies were used in the old inspect implementation that downloaded and compiled components directly. Since inspect now uses LifecycleManager::get_component_schema(), they are no longer needed. Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com> * Revert CHANGELOG.md changes and add changeset file - Reverted CHANGELOG.md to original state - Added changelog.d/inspect-component-id.feature.md changeset file describing the inspect command changes Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com> --------- Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com> Co-authored-by: Jiaxiao Zhou <duibao55328@gmail.com>
Change
wassette inspectto Accept Component IDFollowing feedback, the
wassette inspectcommand has been changed to accept a component ID instead of a file path or URI. This aligns the command with its intended purpose: inspecting already-loaded components.Changes
CLI Interface
inspectargument from URI/path to component ID--plugin-diroption for specifying component storage locationImplementation
LifecycleManager::get_component_schema()to retrieve schema from loaded componentscomponent2jsonandwasmtime)Testing & Documentation
test_cli_inspect_invalid_pathtotest_cli_inspect_invalid_component_idchangelog.d/inspect-component-id.feature.md) for automated changelog generationUsage
Components must be loaded before inspection using
wassette component load.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.