[runtime] align env naming and analyze payload consistency#57
Closed
GsCommand wants to merge 1 commit into
Closed
Conversation
Why: Reduce legacy configuration ambiguity while keeping one explicit migration path and configurable CORS. Contract impact: none
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.
Motivation
*.analyzeverb to accept the same object-shapedinput.contentas other verbs for consistent payload ergonomics.Description
scripts/dev.shto export the canonical signer envRECEIPT_SIGNER_IDand removed ignoredCL_KEY_ID/CL_CANONICAL_IDexports.server.mjsto a canonical name plus one legacy alias for signer id, private key, and public key inputs, and added deprecation warnings when aliases are used viaenvAny/envAnySource.CORS_ALLOW_ORIGIN,CORS_ALLOW_HEADERS, andCORS_ALLOW_METHODSwhile preserving previous defaults when unset.doAnalyzeto expectbody.input.content(object) instead of a raw string inbody.input, and updated internal processing accordingly.BUILTIN_SHARED_SCHEMASinline inserver.mjsand added a short note indocs/CONFIGURATION.mddocumenting that it is an intentional offline/bootstrapping fallback.docs/CONFIGURATION.mdandSECURITY.mdto reflect the new canonical env names, legacy alias behavior, and CORS configuration.tests/smoke.mjs) to set canonical signer envs so the tests boot with the new narrowed alias surface.Testing
npm test(unit tests vianode --test runtime/tests/*.test.mjsand smoke testsnode tests/smoke.mjs).smoke ok).Codex Task