Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@ All notable changes are documented in this file. The format is based on
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.3.0] - 2026-11-25

### Changed

- `v1alpha3` is the current draft (decision D22 of the specification). The website starts with a
`v1alpha3` manifest, and `examples/<file>` now serves the `v1alpha3` examples; the `v1alpha2`
examples moved to `examples/v1alpha2/<file>`. `examples/v1alpha3/<file>` still works but is no
longer listed.
- The page footer lists the AWP versions of the bundled validator instead of a fixed text.
- Viewer and editor show `v1alpha1` and `v1alpha2` manifests as before; the browser test now
checks a `v1alpha2` example explicitly.
- Uses `@agenticworkflowprotocol/validator` 0.3.0 (`v1alpha3` as the current draft).

## [0.2.0] - 2026-11-20

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Embeddable like Swagger UI; runs entirely in the browser.
- **Embed:** two Web Components, `<awp-viewer>` and `<awp-editor>`, for applications, developer
portals and documentation ([embedding guide](https://editor.agenticworkflowprotocol.org/embed.html)).

Status: alpha, like the specification (AWP `v1alpha1`, `v1alpha2` and the proposed `v1alpha3`).
Status: alpha, like the specification (AWP `v1alpha3`, the current draft, plus `v1alpha2` and `v1alpha1`).

## What the viewer shows

Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@agenticworkflowprotocol/editor",
"version": "0.2.0",
"version": "0.3.0",
"description": "Viewer and editor for Agentic Workflow Protocol (AWP) manifests: step graph, agents, tools, permissions, approvals and budgets at a glance, with live validation. Embeddable like Swagger UI; runs entirely in the browser.",
"license": "Apache-2.0",
"type": "module",
Expand Down Expand Up @@ -54,7 +54,7 @@
"prepack": "node scripts/build.mjs"
},
"dependencies": {
"@agenticworkflowprotocol/validator": "0.2.0",
"@agenticworkflowprotocol/validator": "0.3.0",
"yaml": "2.9.1"
},
"devDependencies": {
Expand Down
17 changes: 12 additions & 5 deletions scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,14 @@ async function bundle(entry, out) {
});
}

// Examples on the site: the current draft at examples/<file> (stable URLs), proposed versions
// under examples/<version>/<file>.
// Examples on the site: the current draft (v1alpha3, decision D22 of the specification) at
// examples/<file>, older versions under examples/<version>/<file>. The current draft is also
// copied to examples/v1alpha3/ without being listed, so links from the time it was a proposed
// draft keep working.
const EXAMPLE_SETS = [
{ version: 'v1alpha2', dir: '' },
{ version: 'v1alpha3', dir: 'v1alpha3/' },
{ version: 'v1alpha3', dir: '' },
{ version: 'v1alpha2', dir: 'v1alpha2/' },
{ version: 'v1alpha3', dir: 'v1alpha3/', listed: false },
];

/** Copy the manifest examples of one spec version; returns their paths relative to examples/. */
Expand All @@ -59,14 +62,18 @@ function site() {
mkdirSync(join(out, 'lib'), { recursive: true });
for (const f of ['awp-viewer.mjs', 'awp-editor.mjs']) cpSync(join(root, 'dist', f), join(out, 'lib', f));

const examples = EXAMPLE_SETS.flatMap((set) => copyExamples(set, out));
const examples = EXAMPLE_SETS.flatMap((set) => {
const files = copyExamples(set, out);
return set.listed === false ? [] : files;
});
writeFileSync(join(out, 'examples/index.json'), `${JSON.stringify({ examples }, null, 2)}\n`);

for (const page of readdirSync(out).filter((f) => f.endsWith('.html'))) {
const p = join(out, page);
writeFileSync(p, readFileSync(p, 'utf8')
.replaceAll('{{version}}', pkg.version)
.replaceAll('{{validatorVersion}}', validatorPkg.version)
.replaceAll('{{awpVersions}}', [...provenance.awpVersions].reverse().join(', '))
.replaceAll('{{specCommit}}', provenance.source.commit.slice(0, 7)));
}
}
Expand Down
4 changes: 2 additions & 2 deletions site/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
import { buildModel, parseYaml as parse } from './lib/awp-editor.mjs';
import { decodeShare, encodeShare } from './share.js';

const STARTER = `apiVersion: awp.agenticworkflowprotocol.org/v1alpha2
const STARTER = `apiVersion: awp.agenticworkflowprotocol.org/v1alpha3
kind: Workflow
metadata:
name: hello-workflow
spec:
version: 0.1.0
description: Summarise a ticket and propose a reply.
owner:
team: example-team
classification: internal
spec:
inputs:
- name: ticket
type: string
Expand Down
2 changes: 1 addition & 1 deletion site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ <h1 class="sr-only">AWP manifest editor</h1>
<span id="status" class="status" role="status" aria-live="polite"></span>
</div>
<awp-editor id="editor"></awp-editor>
<p class="note">Everything runs in your browser; the manifest is not uploaded. Editor {{version}} · validator {{validatorVersion}} · AWP v1alpha1 and v1alpha2 (specification <code>{{specCommit}}</code>).</p>
<p class="note">Everything runs in your browser; the manifest is not uploaded. Editor {{version}} · validator {{validatorVersion}} · AWP {{awpVersions}} (specification <code>{{specCommit}}</code>).</p>
</main>
</body>
</html>
18 changes: 12 additions & 6 deletions test/browser/run.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,17 @@ const viewerText = (p, selector) => p.evaluate((sel) => {
check((await viewerText(p, '.node')).length === 3, 'example vulnerability-fixer has three steps');
check((await viewerText(p, '#awp-actions tbody tr')).length > 3, 'tools and permissions table is filled');

// v1alpha3 (Kubernetes resource model): an example from the subfolder, version from spec, valid.
await p.selectOption('#example', 'v1alpha3/vulnerability-fixer.workflow.yaml');
await p.waitForFunction(() => document.querySelector('awp-editor').shadowRoot.querySelector('awp-viewer').shadowRoot.querySelector('.api')?.textContent.endsWith('/v1alpha3'));
// The examples at the top level are the current draft v1alpha3: version from spec, valid.
check((await p.locator('awp-editor').evaluate((el) => el.value)).includes('/v1alpha3'), 'the top-level examples are v1alpha3');
check((await viewerText(p, '.title .version')).join().trim() !== '', 'v1alpha3 example shows its version from spec');
check((await viewerText(p, '.head .badge')).some((t) => t.startsWith('valid')), 'v1alpha3 example is valid');

// Older versions stay supported: a v1alpha2 example from the subfolder, version from metadata, valid.
await p.selectOption('#example', 'v1alpha2/vulnerability-fixer.workflow.yaml');
await p.waitForFunction(() => document.querySelector('awp-editor').shadowRoot.querySelector('awp-viewer').shadowRoot.querySelector('.api')?.textContent.endsWith('/v1alpha2'));
check((await viewerText(p, '.title .version')).join().trim() !== '', 'v1alpha2 example shows its version from metadata');
check((await viewerText(p, '.head .badge')).some((t) => t.startsWith('valid')), 'v1alpha2 example is valid');

await p.click('#share');
await p.waitForFunction(() => location.hash.startsWith('#m='));
const shared = await p.evaluate(() => location.href);
Expand All @@ -109,7 +114,7 @@ const viewerText = (p, selector) => p.evaluate((sel) => {
}
{
// v1alpha2 iteration (spec 5.6.4): marker in the graph, badge and description on the step card.
const { p, errors, close } = await page('viewer.html?url=examples/image-review.workflow.yaml');
const { p, errors, close } = await page('viewer.html?url=examples/v1alpha2/image-review.workflow.yaml');
await p.waitForFunction(() => document.querySelector('awp-viewer')?.shadowRoot?.querySelector('.title'));
check((await viewerText(p, '.node.for-each .node-each')).join() === 'each ≤20', 'iterating step shows its bound in the graph');
const label = await p.evaluate(() => document.querySelector('awp-viewer').shadowRoot.querySelector('.node.for-each').getAttribute('aria-label'));
Expand All @@ -119,7 +124,8 @@ const viewerText = (p, selector) => p.evaluate((sel) => {
await close();
}
{
// v1alpha3 WorkflowRun: namespace and referenced workflow in the facts.
// v1alpha3 WorkflowRun: namespace and referenced workflow in the facts. The examples/v1alpha3/
// path is kept for links from the time v1alpha3 was a proposed draft.
const { p, errors, close } = await page('viewer.html?url=examples/v1alpha3/vulnerability-fixer.run.yaml');
await p.waitForFunction(() => document.querySelector('awp-viewer')?.shadowRoot?.querySelector('.title'));
const text = await p.evaluate(() => document.querySelector('awp-viewer').shadowRoot.textContent);
Expand All @@ -136,7 +142,7 @@ const viewerText = (p, selector) => p.evaluate((sel) => {

// 3. Accessibility of every page in both colour schemes (axe needs an inline script: bypass CSP).
for (const colorScheme of ['light', 'dark']) {
for (const path of ['', 'viewer.html?url=examples/vulnerability-fixer.workflow.yaml', 'viewer.html?url=examples/image-review.workflow.yaml', 'viewer.html?url=examples/v1alpha3/vulnerability-fixer.run.yaml', 'embed.html']) {
for (const path of ['', 'viewer.html?url=examples/vulnerability-fixer.workflow.yaml', 'viewer.html?url=examples/v1alpha2/image-review.workflow.yaml', 'viewer.html?url=examples/vulnerability-fixer.run.yaml', 'embed.html']) {
const context = await browser.newContext({ colorScheme, bypassCSP: true });
const p = await context.newPage();
await p.goto(base + path);
Expand Down