Repository navigation
feat!: support AWP v1alpha4 and make it the default (D23, D24) - #2
Merged
Merged
Conversation
The specification adds v1alpha4 as the next draft (D23, spec PR #31): v1alpha3 plus `when` conditions (spec 3.12) and `type: workflow` steps (spec 5.6.6). The validator now knows the version, vendors its schema, conformance suite, examples and the new conformance/conditions.mjs, and exports migrateToV1alpha4 next to migrateToV1alpha3. v1alpha3 stays the current draft, so API_VERSION and the default schema are unchanged; older versions are validated as before. The vendored specification is synced from the spec feature branch (46f76bf) and must be re-synced from main once spec PR #31 is merged. Signed-off-by: Erik <erik@weisser.dev>
Deploying awp-validator with
|
| Latest commit: |
5f29a32
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://35e52aa1.awp-validator.pages.dev |
| Branch Preview URL: | https://feat-v1alpha4.awp-validator.pages.dev |
The vendored files are identical to the feature branch commit 46f76bf; only the recorded source commit and branch change to the merge commit 058c267 on main. Signed-off-by: Erik <erik@weisser.dev>
The specification makes v1alpha4 the current draft (D24, spec PR #32). API_VERSION, the default schema and ./schema.json follow it; v1alpha1, v1alpha2 and v1alpha3 documents are still validated against their own schema. The website starts with a v1alpha4 manifest and shows the v1alpha4 examples. D24 changes no vendored schema or semantic rule, so the vendored specification stays at 058c267; it is re-synced from spec main after PR #32 is merged. The release stays 0.4.0: like 0.3.0 (D22, feat!) the breaking change of the default ships as a minor bump during 0.x, together with the v1alpha4 support already planned for 0.4.0. BREAKING CHANGE: the default schema export and the version an unsupported apiVersion is checked against are now v1alpha4. Signed-off-by: Erik <erik@weisser.dev>
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.
Adds AWP
v1alpha4(D23):whenconditions (spec 3.12) andtype: workflowsteps (5.6.6), and makes it the current draft and default (D24).v1alpha4inAPI_VERSIONS;API_VERSION, the defaultschema(src/index.js,src/browser.js) and./schema.jsonare nowv1alpha4(breaking, like 0.3.0 for D22). Older versions are validated against their own schema as before.scripts/sync-spec.mjs(now also copiesconformance/conditions.mjs), from spec main058c267(#31 merged).schemas.v1alpha4, export./schema/v1alpha4.json, types,migrateToV1alpha4(Node and browser). The CLI has nomigratecommand; migration is API-only as before.v1alpha4.when.not-a-dependency, default isv1alpha4.npm test: 24/24 pass.feat!during 0.x, as 10993ef did for 0.3.0), README, CHANGELOG.Depends on spec PR agenticworkflowprotocol/agenticworkflowprotocol.org#32 (D24). D24 changes no vendored schema or rule, but after #32 merges re-run
node scripts/sync-spec.mjs ../agenticworkflowprotocol.orgfrom specmainsoPROVENANCE.jsonpoints at the D24 commit, before merging this PR.Order: spec #32 → this PR (release 0.4.0) → awp-editor PR #2.