Upgrade to SDK v0.2.19: resource type tools, dependency visibility, and new list filters - #13
Upgrade to SDK v0.2.19: resource type tools, dependency visibility, and new list filters#13chrisghill wants to merge 1 commit into
Conversation
…nd new list filters Adds tools for the resource type catalog and the connection system, and drops service account creation. New tools: - get_resource_type: returns the JSON schema a create_resource payload must satisfy, plus uiSchema, markdown import instructions, connection orientation, and effective attributes. Accepts version pinning (@1.2.3, @~1, @latest). - list_resource_type_dependents: what depends on a resource type in an environment, one entry per (instance, dependency field) pair. - list_unfulfilled_dependencies: required inputs nothing fills, so a blocked deploy is diagnosable. - list_environment_links: the links in effect given the versions each environment actually runs. - get_organization_settings / update_organization_settings. Removed create_service_account. It mints a bearer credential and returns it in the response, which does not belong behind a tool call. List filters: attributes on list_resources, list_oci_repos, and list_instances; created_after/created_before on list_resources, list_oci_repos, and list_projects. Timestamps parse as RFC 3339 and a malformed bound errors rather than silently widening the result set. Also fixes the v0.2.19 rename of serviceaccounts.Created to ServiceAccountWithToken, which broke the build. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
@claude review |
|
Claude finished @chrisghill's task in 1m 41s —— View job Review complete
This is a clean, well-scoped SDK bump. The new tools follow existing conventions closely (error wrapping with the tool name prefix, Bug:
but Other observations (no action needed, just confirming intentional design):
Not verified: |
Picks up
massdriver-sdk-gov0.2.19 and surfaces the new resource type and dependency APIs as tools.New tools
get_resource_type— returns the JSONschemaacreate_resourcepayload must satisfy, plusuiSchema, markdown importinstructions,connectionOrientation, andeffectiveAttributes. Previouslycreate_resourcetook apayloadwith no way to discover its shape. Accepts version pinning (aws-iam-role@1.2.3,@~1,@latest).list_resource_type_dependents— blast radius within an environment, one entry per (instance, dependency field) pair.list_unfulfilled_dependencies— required inputs nothing fills (no link, no remote reference, no environment default). Makes a blockeddeploy_environmentdiagnosable; points atlink_components,set_remote_reference, andset_environment_defaultas the fixes.list_environment_links— the subset of a project's blueprint links actually in effect, given the versions each environment runs.get_organization_settings/update_organization_settings—defaultBundleAccess, enum-constrained toNONE/ALL_PROJECTS.Removed
create_service_account— the create mutation mints a bearer credential and returns it in the response. The tool, handler,Createinterface method, and registration are gone. No access-token tools were added either, despite the SDK splittingCreateintoCreatePersonal/CreateServiceAccountToken.New list filters
attributesonlist_resources,list_oci_repos,list_instancescreated_after/created_beforeonlist_resources,list_oci_repos,list_projectsTimestamps parse as RFC 3339; a malformed bound errors rather than silently dropping the filter and widening the result set.
Description updates
@versionpinning oncreate_resourceandlist_resources;artifact_typenow covering resource types as well as bundles; link version constraints onget_component; OCI repo name limit 53 → 100 chars, enforced asmaxLength.Also
Fixes the v0.2.19 rename of
serviceaccounts.Created→ServiceAccountWithToken, which broke the build on the bare dependency bump.Notes
organizations.Settingsships without JSON tags, so it would serialize as{"DefaultBundleAccess": ...}. Wrapped in a local type to emitdefaultBundleAccess— worth an upstream SDK fix so the wrapper can go away.Testing
go build,go vet,gofmt, andgo test ./...all clean. New tests cover each new handler, filter forwarding on all four list tools, and the two new helpers. Both README tool indexes updated; section counts sum to 111.