Repository navigation
Conversation
vito
force-pushed
the
naming/core-renames-graphql-casing
branch
from
October 28, 2026 02:33
e4744cb to
89993e6
Compare
vito
changed the base branch from
naming/view-prerelease-gate
to
naming/module-naming-graphql-casing
October 28, 2026 02:34
vito
force-pushed
the
naming/core-renames-graphql-casing
branch
2 times, most recently
from
October 28, 2026 03:32
375fcf6 to
ba7dd8b
Compare
vito
force-pushed
the
naming/core-renames-graphql-casing
branch
from
October 28, 2026 16:28
ba7dd8b to
0cd4ef7
Compare
vito
force-pushed
the
naming/core-renames-graphql-casing
branch
from
October 28, 2026 17:06
0cd4ef7 to
0e4d8a8
Compare
vito
force-pushed
the
naming/core-renames-graphql-casing
branch
from
October 29, 2026 01:20
0e4d8a8 to
df089c9
Compare
vito
marked this pull request as ready for review
October 29, 2026 01:24
vito
force-pushed
the
naming/core-renames-graphql-casing
branch
from
October 29, 2026 02:06
df089c9 to
deb2582
Compare
vito
added a commit
that referenced
this pull request
Oct 29, 2026
Changie fragments for the identifier-casing stack: prerelease-granular API views (#14810), module naming by GraphQL casing (#14891), the core API renames (#14895, breaking), and entrypoint engine versions from dang.toml (#14902). Signed-off-by: Alex Suraci <[email protected]>
This was referenced Oct 29, 2026
Generated from the dev engine's schema, past the identifier casing cut: the renamed fields and arguments go over the wire with their new names. experimental_with_all_gp_us and prerequisite_sh_as become experimental_with_all_gpus and prerequisite_shas, and the enums keep only the members the schema has. Signed-off-by: Alex Suraci <[email protected]>
Generated from the dev engine's schema, past the identifier casing cut: the renamed fields and arguments go over the wire with their new names, and the enums' atoms follow the schema's members (FunctionCachePolicy's never/0 is :NEVER; the image enums' PascalCase atoms are gone). Signed-off-by: Alex Suraci <[email protected]>
Modules that declare no engine version, or "latest", get the latest view: the Dang entrypoint fixtures spell the cache policies NEVER, PER_SESSION and DEFAULT, and the Go fixture that must not construct an SSHFS volume names the Go SDK's SSHFSVolume. A post-cut Python module can't index ImageLayerCompression by an old spelling, so the enum test checks old spellings as arguments, which the engine still decodes. Signed-off-by: Alex Suraci <[email protected]>
Core enum values are the new SCREAMING_SNAKE_CASE spellings in every view, but a module or client from before engine.IdentifierCasingVersion may only know the old ones: the TypeScript and Python SDKs map a value to its member by spelling, so GZIP is no Gzip to them. Values flowing out are now spelled for whoever receives them, with the view's primary alias: - query results' enum leaves, for the client's view (dagql viewLeaf); - core enum arguments passed into a module function, for the module's own view (core.SDKViewFromContext, CoreModEnum.ConvertToSDKInput). Recipes, IDs and cache keys keep the one value; only the spelling handed out changes. TestEnumType covers Go, TypeScript and Python modules from before the cut. Signed-off-by: Alex Suraci <[email protected]>
- Container.from's internal re-select of a digest-pinned image passes insecureSkipTlsVerify, the spelling view "" has, so its ID matches a direct call. - The expected-remote-SHA error no longer names one spelling of the argument. - Drop the unused core.ViewName, and note that renamed fields that had no view filter are view-scoped now. - The Dang fixtures and the registry test that declare "latest" use the new spellings (FunctionCachePolicy.NEVER, insecureSkipTlsVerify). - engine.IdentifierCasingVersion's comment and the dagger.json migration guide describe the renames to the GraphQL casing convention. Signed-off-by: Alex Suraci <[email protected]>
The GPU spellings added for the casing renames left the map's alignment off, so the file wasn't gofmt-clean. Signed-off-by: Alex Suraci <[email protected]>
The Java client is generated from the latest view, where ImageMediaTypes has only OCI and DOCKER since the casing renames, so DockerMediaTypes no longer compiles. DOCKER exists in views on either side of the cut. Signed-off-by: Alex Suraci <[email protected]>
The migration guide said generated Go code keeps its identifiers, but past the cut a few change, with no deprecated aliases: Sha, ShortSha, ParentShas, Sdks, SshfsVolume, Vcs*Paths, and identifiers derived from dependency names. Signed-off-by: Alex Suraci <[email protected]>
The design still described the opposite core renames, kept as hidden aliases, and SDK codegen through formatIdentifiers, neither of which this stack has. It now describes the stack as it stands: the core renames at engine.IdentifierCasingVersion as plain view gates, enum values stored as SCREAMING_SNAKE with view-gated aliases and spelled for the receiver's view, Go codegen by engine/naming past the cut while other SDKs keep their converters, and the accepted breaks. The transition-alias and SDK vendoring sections are gone, and the plan lists what's done and what isn't. Signed-off-by: Alex Suraci <[email protected]>
contextWithSDKView turned a module's engineVersion into a view with the uncapped engine.APIViewVersion. A module declaring a version past the engine's is served, and named by, the engine's view (engine.ModuleAPIViewVersion), so spell the core enum values passed into it for that view too. Test it with the capped naming, and update the design doc. Signed-off-by: Alex Suraci <[email protected]>
Review follow-up. The migration guide now lists the Go enum constants the regenerated SDK drops (ImageMediaTypesOcimediaTypes, ImageMediaTypesDockerMediaTypes, ImageLayerCompressionEstarGz) and their replacements. The design doc says the Go generator's __schemaVersion gate is the module's capped view, and no longer claims SDKs get formatted names from the engine in the test-vectors section. Signed-off-by: Alex Suraci <[email protected]>
Core enum arguments passed into a module function are spelled for the module's view, not the view a declared runtime client (#14881) is served: the engine converts them before the runtime connects. Record the gap. Signed-off-by: Alex Suraci <[email protected]>
The comment added before PrerequisiteSHAs splits the struct's alignment block, so gofmt realigns the fields above it. golangci-lint reported it on #14902's CI; #14895's own lint run was OOM-killed before reporting. Signed-off-by: Alex Suraci <[email protected]>
Main's new Entire remote test (git_entire_test.go) queries ModuleSource.htmlRepoURL through the host CLI, which is served the view of its own version, past the cut: spell it htmlRepoUrl. Signed-off-by: Alex Suraci <[email protected]>
Use raw schema names in node selections even when the new Go formatter spells a dependency type differently. Keep enum aliases consistent with the raw enum names used by declarations and type references. Signed-off-by: Alex Suraci <[email protected]>
Apply view conversion through typed list and nullable wrappers, including wrapped results. Preserve empty arrays and nulls, leave other scalars unchanged, and propagate element errors with their indexes. Signed-off-by: Alex Suraci <[email protected]>
Distinguish an old client using a newer API view from a client declaring its own version. Old enum input spellings still decode in every view; they do not fail like renamed fields and arguments. Signed-off-by: Alex Suraci <[email protected]>
Serve a fixed-version Dang module returning the three renamed core enums to clients on either side of the naming cut. Assert raw response strings and schema versions, revisiting each client after the other to exercise cached results without SDK enum normalization hiding the wire spelling. Signed-off-by: Alex Suraci <[email protected]>
Extend the receiving-client integration test with nullable enum results and nested enum lists containing null values and empty lists. This checks that result rendering preserves each shape and carries the client's view through the list's elements. Signed-off-by: Alex Suraci <[email protected]>
vito
force-pushed
the
naming/core-renames-graphql-casing
branch
from
November 5, 2026 16:28
3f7f7fa to
399d7dd
Compare
Follow the identifier casing cut to v1.0.0-beta.25: Go codegen's copy of the constant, the docs of the renames, and the view tests, where v1.0.0-beta.24, now the last release before the cut, keeps the old names and v1.0.0-beta.26 stands for a release after it. Signed-off-by: Alex Suraci <[email protected]>
Keep Go codegen's gate and the pre/post-cut fixtures aligned with the engine, retaining beta.25's released spellings. Signed-off-by: Alex Suraci <[email protected]>
vito
force-pushed
the
naming/core-renames-graphql-casing
branch
from
November 5, 2026 17:33
399d7dd to
58ec291
Compare
vito
added a commit
that referenced
this pull request
Nov 5, 2026
Changie fragments for the identifier-casing stack: prerelease-granular API views (#14810), module naming by GraphQL casing (#14891), the core API renames (#14895, breaking), and entrypoint engine versions from dang.toml (#14902). Signed-off-by: Alex Suraci <[email protected]>
vito
force-pushed
the
naming/core-renames-graphql-casing
branch
from
November 5, 2026 20:02
58ec291 to
5e9db14
Compare
vito
added a commit
that referenced
this pull request
Nov 5, 2026
Changie fragments for the identifier-casing stack: prerelease-granular API views (#14810), module naming by GraphQL casing (#14891), the core API renames (#14895, breaking), and entrypoint engine versions from dang.toml (#14902). Signed-off-by: Alex Suraci <[email protected]>
grouville
approved these changes
Nov 5, 2026
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.
Part of the identifier-casing epic, #13668. Core fields, arguments and enum values adopt consistent GraphQL casing from v1.0.0-beta.26 (
engine.IdentifierCasingVersion). Views before the cut—including beta.25—retain their existing schema names.Convention
The core schema follows the prevailing GraphQL convention from the cut on:
JSONValue,HTTPState,LLMasJson,withGpu,commitSha,htmlUrlNEVER,PER_SESSION,OCIRenames
Renamed fields and arguments are exposed only in their respective views: old spellings before the cut, new spellings from the cut onward, preserving any earlier availability gates. No deprecated alias fields are added. Enum schema/output spellings also change as shown below; input decoding remains compatible with both spellings.
CloudtraceURLtraceUrlContainerfrom(insecureSkipTLSVerify:),publish(insecureSkipTLSVerify:)insecureSkipTlsVerifyContainerwithGPU,experimentalWithGPU,experimentalWithAllGPUswithGpu,experimentalWithGpu,experimentalWithAllGpusFileasJSONasJsonGeneratedCodewithVCSGeneratedPaths,withVCSIgnoredPathswithVcsGeneratedPaths,withVcsIgnoredPathsGitBundleprerequisiteSHAsprerequisiteShasGitCommittreeSHAtreeShaGitPushResultpreviousSHApreviousShaGitRefcommitSHA,push(expectedRemoteSHA:)commitSha,expectedRemoteShaLLMwithMCPServerwithMcpServerModuleintrospectionSchemaJSONintrospectionSchemaJsonModuleSourcewithSDK,introspectionSchemaJSON,clientSchemaIntrospectionJSON,htmlURL,htmlRepoURLwithSdk,introspectionSchemaJson,clientSchemaIntrospectionJson,htmlUrl,htmlRepoUrlWorkspacewithSDK,withoutSDKwithSdk,withoutSdkFunctionCachePolicyDefault,PerSession,NeverDEFAULT,PER_SESSION,NEVERImageLayerCompressionGzip,Zstd,EStarGZ,Uncompressed(andGZIP, ... as aliases)GZIP,ZSTD,ESTARGZ,UNCOMPRESSEDonlyImageMediaTypesOCIMediaTypes,DockerMediaTypes(andOCI,DOCKERas aliases)OCI,DOCKERonlyThe audit found no type names to change, and no input fields. Names that already follow the convention (
shortSha,filterUri,callId,pushUrl, ...) are unchanged. The legacyload<Type>FromIDloaders, which only exist before v0.22.0, are left as they are.Implementation
core/schema/renamed_names.goinstalls canonical definitions under view-gated old/new names, preserving any earlier availability gates.GitBundle.prerequisiteShasandGitPushResult.previousShaare explicitly installed rather than reflected fields.Container.fromandpublishstill record calls in view"". Their legacyinsecureSkipTLSVerifyargument remains accepted internally, so a pre-cut caller's argument survives selection; the resolver accepts either spelling.engine/naming. Wire selections and enum-alias targets retain raw schema/declaration names rather than being reformatted.Client compatibility
Clients must use the field and argument names for their selected API view. An older binding querying a post-cut view can fail on renamed fields or arguments, but upgrading the CLI does not by itself imply that view change: SDKs can declare their own client version, and pre-cut views retain the old schema names.
Enum input decoding accepts both old and canonical spellings in every view. Enum results are rendered for the receiving client's view; this is distinct from field/argument name lookup.
Generated clients
The SDL snapshot and in-repo Go, Python, TypeScript, PHP, Rust and Elixir clients are regenerated.
engine/namingwith uppercase acronyms (commitSha→CommitSHA,withGpu→WithGPU). Notable identifier changes includeShortSHA,ParentSHAs,VCSGeneratedPaths,Workspace.SDKs, andSSHFSVolume. Dependency identifiers can also change (Github→GitHub,Ids→IDs), without deprecated Go aliases. Wire selections retain the exact schema spelling.commitSha()andwithGpu().experimental_with_all_gpusandprerequisite_shas.Validation
Coverage in the tree includes:
TestCoreSchemaGraphQLCasing,TestCoreSchemaConventionalandTestCoreRenamedNamesViews: schema-wide casing and old/new view gates.TestRenamedEnumPreCutSchemaandTestRenamedEnumValueSpellings: pre-cut enum schema preservation and accepted input spellings.TestLLM/TestMCPServerSessionAcrossSteps: exercises the renamed MCP API through the generated Go client.TestClient/TestCoreEnumResultViews: real pre-cut/post-cut clients receive all three renamed core enums, including nullable and nested-list results, from a fixed-version module. It checks raw response strings and each caller's schema version while alternating clients.Earlier revisions ran the relevant unit packages and targeted integrations. The beta.26 restack checked build/vet (with pre-existing
lostcancelwarnings disabled) and regenerated the SDL and six clients without drift. These are historical results, not a claim that all suites were rerun on the current head.Fresh targeted checks during this audit passed:
core/schema:TestCoreRenamedNamesViews,TestRenamedEnumValueSpellings,TestRenamedEnumPreCutSchema.Go templates:
TestGoNamer,TestIdentifierCasingVersion.Source-engine integration:
TestClient/TestCoreEnumResultViewspassed. Disabling scalar view conversion or dropping the view during nested-list conversion made the expected pre-cut assertions fail; restoring production code passed again. No full integration suite or regeneration was run for this cleanup.Remaining validation limits:
valueEnumerablefast path for renamed enums: no public core result field exposes these three enums through that path.Trade-offs
""), or the old pre-prerelease-viewv1.0.0view, which is now past the cut. This can affect stored recipe IDs, agent checkpoints and trace restores. There are no load-time field aliases; this compatibility break is accepted.Gzip→GZIP,Never→NEVER). These changes can cause cache misses; old enum input spellings remain decodable.API changes
go -C hack/sdl-diff run . 70f3dd6e9f4c9b8597660ec74ddda3415b941997:docs/docs-graphql/schema.graphqls 3f7f7fa2f515812cc011ff73e41ae06550cd92f2:docs/docs-graphql/schema.graphqlsDetailed diff
extend type Cloud { """ The trace URL for the current session """ - traceURL: String! + traceUrl: String! } extend type Container { """ Package the container state as an OCI image, and return it as a tar archive """ asTarball( """ Force each layer of the image to use the specified compression algorithm. If this is unset, then if a layer already has a compressed blob in the engine's cache, that will be used (this can result in a mix of compression algorithms for different layers). If this is unset and a layer has no compressed blob in the engine's cache, then it will be compressed using Gzip. """ forcedCompression: ImageLayerCompression """ Use the specified media types for the image's layers. Defaults to OCI, which is largely compatible with most recent container runtimes, but Docker may be needed for older runtimes without OCI support. """ - mediaTypes: ImageMediaTypes = OCIMediaTypes + mediaTypes: ImageMediaTypes = OCI """ Identifiers for other platform specific containers. Used for multi-platform images. """ platformVariants: [ID!] = [] @expectedType(name: "Container") """ Clamp the image's timestamps to this time, so that rebuilding unchanged files produces identical layers. Formatted in seconds following Unix epoch (e.g., 1672531199). File timestamps in every layer and the image's creation times that are later than this are set to it, as with BuildKit's rewrite-timestamp and SOURCE_DATE_EPOCH. Every layer is rewritten, so this costs time on each export. """ sourceDateEpoch: Int ): File! """ Configures all available GPUs on the host to be accessible to this container. This currently works for Nvidia devices only. """ - experimentalWithAllGPUs: Container! @deprecated(reason: "Use \"withGPU\" instead.") + experimentalWithAllGpus: Container! @deprecated(reason: "Use \"withGpu\" instead.") """ Configures the provided list of devices to be accessible to this container. This currently works for Nvidia devices only. """ - experimentalWithGPU( + experimentalWithGpu( """ List of devices to be accessible to this container. """ devices: [String!]! - ): Container! @deprecated(reason: "Use \"withGPU\" instead, which exposes all GPUs available on the host.") + ): Container! @deprecated(reason: "Use \"withGpu\" instead, which exposes all GPUs available on the host.") """ Writes the container as an OCI tarball to the destination file path on the host. It can also export platform variants. """ export( """ Replace "${VAR}" or "$VAR" in the value of path according to the current environment variables defined in the container (e.g. "/$VAR/foo"). """ expand: Boolean = false """ Force each layer of the exported image to use the specified compression algorithm. If this is unset, then if a layer already has a compressed blob in the engine's cache, that will be used (this can result in a mix of compression algorithms for different layers). If this is unset and a layer has no compressed blob in the engine's cache, then it will be compressed using Gzip. """ forcedCompression: ImageLayerCompression """ Use the specified media types for the exported image's layers. Defaults to OCI, which is largely compatible with most recent container runtimes, but Docker may be needed for older runtimes without OCI support. """ - mediaTypes: ImageMediaTypes = OCIMediaTypes + mediaTypes: ImageMediaTypes = OCI """ Host's destination path (e.g., "./tarball"). Path can be relative to the engine's workdir or absolute. """ path: String! """ Identifiers for other platform specific containers. Used for multi-platform image. """ platformVariants: [ID!] = [] @expectedType(name: "Container") """ Clamp the image's timestamps to this time, so that rebuilding unchanged files produces identical layers. Formatted in seconds following Unix epoch (e.g., 1672531199). File timestamps in every layer and the image's creation times that are later than this are set to it, as with BuildKit's rewrite-timestamp and SOURCE_DATE_EPOCH. Every layer is rewritten, so this costs time on each export. """ sourceDateEpoch: Int ): String! @reevaluate """ Exports the container as an image to the host's container image store. """ exportImage( """ Force each layer of the exported image to use the specified compression algorithm. If this is unset, then if a layer already has a compressed blob in the engine's cache, that will be used (this can result in a mix of compression algorithms for different layers). If this is unset and a layer has no compressed blob in the engine's cache, then it will be compressed using Gzip. """ forcedCompression: ImageLayerCompression """ Use the specified media types for the exported image's layers. Defaults to OCI, which is largely compatible with most recent container runtimes, but Docker may be needed for older runtimes without OCI support. """ - mediaTypes: ImageMediaTypes = OCIMediaTypes + mediaTypes: ImageMediaTypes = OCI """ Name of image to export to in the host's store """ name: String! """ Identifiers for other platform specific containers. Used for multi-platform image. """ platformVariants: [ID!] = [] @expectedType(name: "Container") """ Clamp the image's timestamps to this time, so that rebuilding unchanged files produces identical layers. Formatted in seconds following Unix epoch (e.g., 1672531199). File timestamps in every layer and the image's creation times that are later than this are set to it, as with BuildKit's rewrite-timestamp and SOURCE_DATE_EPOCH. Every layer is rewritten, so this costs time on each export. """ sourceDateEpoch: Int ): Void! """ Download a container image, and apply it to the container state. All previous state will be lost. """ from( """ Address of the container image to download, in standard OCI ref format. Example: "registry.dagger.io/engine:latest". An address without a tag or digest selects the greatest stable release tag, falling back to the literal "latest" tag when no eligible release exists. """ address: String! """ Allow HTTPS registry communication without verifying the server certificate. """ - insecureSkipTLSVerify: Boolean = false + insecureSkipTlsVerify: Boolean = false """ Ignore the workspace lockfile for this lookup. """ noLock: Boolean = false """ Protocol to use for registry communication. Defaults to "HTTPS". Use "HTTP" only for plain HTTP registries. """ protocol: RegistryProtocol """ Service to use as the registry endpoint for the image address. The service will be started only for this pull. """ registryService: ID @expectedType(name: "Service") """ Version query used to select an image tag. The address must not contain a tag or digest. """ version: String = "" ): Container! """ Returns the image layer or configuration blob with the given digest as a File. """ layer( """ Force each layer of the image to use the specified compression algorithm. If this is unset, then if a layer already has a compressed blob in the engine's cache, that will be used (this can result in a mix of compression algorithms for different layers). If this is unset and a layer has no compressed blob in the engine's cache, then it will be compressed using Gzip. """ forcedCompression: ImageLayerCompression """ Digest of the layer or configuration blob (e.g. "sha256:abc123..."). """ id: String! """ Media types to use for image layers. Defaults to OCI. """ - mediaTypes: ImageMediaTypes = OCIMediaTypes + mediaTypes: ImageMediaTypes = OCI ): File! """ Computes and returns the manifest for this container as a File. """ manifest( """ Force each layer of the image to use the specified compression algorithm. If this is unset, then if a layer already has a compressed blob in the engine's cache, that will be used (this can result in a mix of compression algorithms for different layers). If this is unset and a layer has no compressed blob in the engine's cache, then it will be compressed using Gzip. """ forcedCompression: ImageLayerCompression """ Media types to use for image layers. Defaults to OCI. """ - mediaTypes: ImageMediaTypes = OCIMediaTypes + mediaTypes: ImageMediaTypes = OCI ): File! """ Package the container state as an OCI image, and publish it to a registry Returns the fully qualified address of the published image, with digest """ publish( """ The OCI address to publish to Same format as "docker push". Example: "registry.example.com/user/repo:tag" """ address: String! """ Force each layer of the published image to use the specified compression algorithm. If this is unset, then if a layer already has a compressed blob in the engine's cache, that will be used (this can result in a mix of compression algorithms for different layers). If this is unset and a layer has no compressed blob in the engine's cache, then it will be compressed using Gzip. """ forcedCompression: ImageLayerCompression """ Allow HTTPS registry communication without verifying the server certificate. """ - insecureSkipTLSVerify: Boolean = false + insecureSkipTlsVerify: Boolean = false """ Use the specified media types for the published image's layers. Defaults to "OCI", which is compatible with most recent registries, but "Docker" may be needed for older registries without OCI support. """ - mediaTypes: ImageMediaTypes = OCIMediaTypes + mediaTypes: ImageMediaTypes = OCI """ Identifiers for other platform specific containers. Used for multi-platform image. """ platformVariants: [ID!] = [] @expectedType(name: "Container") """ Protocol to use for registry communication. Defaults to "HTTPS". Use "HTTP" only for plain HTTP registries. """ protocol: RegistryProtocol """ Service to use as the registry endpoint for the image address. The service will be started only for this push. """ registryService: ID @expectedType(name: "Service") """ Clamp the image's timestamps to this time, so that rebuilding unchanged files produces identical layers. Formatted in seconds following Unix epoch (e.g., 1672531199). File timestamps in every layer and the image's creation times that are later than this are set to it, as with BuildKit's rewrite-timestamp and SOURCE_DATE_EPOCH. Every layer is rewritten, so this costs time on each export. """ sourceDateEpoch: Int ): String! @reevaluate """ Configures all GPUs available on the host to be accessible to this container. This currently works with NVIDIA devices only, and requires the engine to run with GPU support enabled. """ - withGPU: Container! + withGpu: Container! } extend type File { """ Parse the file contents as JSON. """ - asJSON: JSONValue! + asJson: JSONValue! } extend enum FunctionCachePolicy { - Default - Never - PerSession + DEFAULT + NEVER + PER_SESSION } extend type GeneratedCode { """ Set the list of paths to mark generated in version control. """ - withVCSGeneratedPaths(paths: [String!]!): GeneratedCode! + withVcsGeneratedPaths(paths: [String!]!): GeneratedCode! """ Set the list of paths to ignore in version control. """ - withVCSIgnoredPaths(paths: [String!]!): GeneratedCode! + withVcsIgnoredPaths(paths: [String!]!): GeneratedCode! } extend type GitBundle { """ Commits that must already exist wherever this bundle is applied. """ - prerequisiteSHAs: [String!]! + prerequisiteShas: [String!]! } extend type GitCommit { """ The ID of the commit's Git tree object. Commits with identical trees have identical contents and file modes. """ - treeSHA: String! + treeSha: String! } extend type GitPushResult { """ The previous remote object ID; empty when the ref was created. """ - previousSHA: String! + previousSha: String! } extend type GitRef { """ The resolved commit id at this ref. """ - commit: String! @deprecated(reason: "Use \"commitSHA\" instead.") + commit: String! @deprecated(reason: "Use \"commitSha\" instead.") """ The resolved commit SHA at this ref. """ - commitSHA: String! + commitSha: String! """ Push this ref's commit and history to a remote repository using the destination's credentials. The source can come from a remote repository or an engine-side Git repository. To publish a workspace's commits, use Workspace.git.head.push. Pushing does not modify the calling client's checkout, and checkout hooks do not run. A missing remote ref is created. Without a lease, Git's normal non-force rules apply. Each invocation performs a push; loading the returned receipt does not push again. """ push( """ Destination branch; a refs/ prefix is used verbatim. Defaults to this ref's branch name. Required for detached and non-branch refs. """ branch: String = "" """ Optional lease: a full lowercase object ID allows replacement only if the remote ref still has that value. Checked even for up-to-date pushes. Empty or omitted uses normal non-force rules, creating the ref if it does not exist. """ - expectedRemoteSHA: String = "" + expectedRemoteSha: String = "" """ Name of a registered remote to push to (see GitRepository.withRemote). Defaults to origin. The remote's push URLs, or its URL, become the destination; more than one push URL requires an explicit to instead. """ remote: String = "" """ Destination remote repository. Defaults to the origin remote's push routing, or the source's repository URL when none is registered. Required when the source has no remote URL. """ to: ID @expectedType(name: "GitRepository") ): GitPushResult! @reevaluate } extend enum ImageLayerCompression { - ESTARGZ @enumValue(value: "EStarGZ") - EStarGZ - GZIP @enumValue(value: "Gzip") - Gzip - UNCOMPRESSED @enumValue(value: "Uncompressed") - Uncompressed - ZSTD @enumValue(value: "Zstd") - Zstd + ESTARGZ + GZIP + UNCOMPRESSED + ZSTD } extend enum ImageMediaTypes { - DOCKER @enumValue(value: "DockerMediaTypes") - DockerMediaTypes - OCI @enumValue(value: "OCIMediaTypes") - OCIMediaTypes + DOCKER + OCI } extend type LLM { """ Add an external MCP server to the LLM """ - withMCPServer( + withMcpServer( """ The name of the MCP server """ name: String! """ The MCP service to run and communicate with over stdio """ service: ID! @expectedType(name: "Service") ): LLM! } extend type Module { """ The introspection schema JSON file for this module. This file represents the schema visible to the module's source code, including all core types and those from the dependencies. Note: this is in the context of a module, so some core types may be hidden. """ - introspectionSchemaJSON: File! + introspectionSchemaJson: File! } extend type ModuleSource { """ The client-facing introspection schema JSON file for this module source. - This is the schema consumed by client codegen: unlike introspectionSchemaJSON + This is the schema consumed by client codegen: unlike introspectionSchemaJson (the module-facing schema), it hides no core types and installs this module (reached via dag.<moduleName>) so a generated client can bind it. The module's dependencies are excluded: a client is generated for a single module plus core, not its dependency graph. """ - clientSchemaIntrospectionJSON: File! + clientSchemaIntrospectionJson: File! """ The URL to access the web view of the repository (e.g., GitHub, GitLab, Bitbucket). """ - htmlRepoURL: String! + htmlRepoUrl: String! """ The URL to the source's git repo in a web browser. Only valid for git sources. """ - htmlURL: String! + htmlUrl: String! """ The introspection schema JSON file for this module source. This file represents the schema visible to the module's source code, including all core types and those from the dependencies. Note: this is in the context of a module, so some core types may be hidden. """ - introspectionSchemaJSON: File! + introspectionSchemaJson: File! """ Update the module source with a new SDK. """ - withSDK( + withSdk( """ The SDK source to set. """ source: String! ): ModuleSource! } extend type Workspace { """ Return this workspace with an SDK installed in its config. """ - withSDK( + withSdk( """ Optional override for the SDK name conventionally derived from the installed module name. """ asSdkName: String = "" """ Write to the workspace config directory at the workspace cwd. """ here: Boolean = false """ Override name for the installed SDK entry. """ name: String = "" """ SDK module reference to install. """ ref: String! ): Workspace! """ Return this workspace with an SDK removed from its config. """ - withoutSDK( + withoutSdk( """ Write to the workspace config directory at the workspace cwd. """ here: Boolean = false """ Name of the installed SDK entry to remove. """ name: String! ): Workspace! }