Skip to content

Commit 2fd0c31

Browse files
committed
fix: update discovery profile specification links
Outdated links pointing to 'https://ucp.dev/specs/shopping' were returning 404 errors. This change updates all discovery profiles and documentation in the samples repository to use the current 'https://ucp.dev/specification' structure. - rest/python/server: Updated 'discovery_profile.json' and 'README.md'. - rest/python/client: Regenerated 'happy_path_dialog.md' by running the updated server and client. - rest/nodejs: Updated discovery service logic in 'discovery.ts'. - a2a/business_agent: Updated 'ucp.json' and 'agent_card.json' data files. - a2a/chat-client: Updated 'agent_profile.json'. These updates ensure that discovery responses from sample implementations point to valid, working specification pages.
1 parent 1b83acf commit 2fd0c31

7 files changed

Lines changed: 100 additions & 114 deletions

File tree

a2a/business_agent/src/business_agent/data/agent_card.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@
1010
{
1111
"name": "dev.ucp.shopping.checkout",
1212
"version": "2026-01-11",
13-
"spec": "https://ucp.dev/specs/shopping/checkout",
13+
"spec": "https://ucp.dev/specification/checkout",
1414
"schema": "https://ucp.dev/schemas/shopping/checkout.json"
1515
},
1616
{
1717
"name": "dev.ucp.shopping.fulfillment",
1818
"version": "2026-01-11",
19-
"spec": "https://ucp.dev/specs/shopping/fulfillment",
19+
"spec": "https://ucp.dev/specification/fulfillment",
2020
"schema": "https://ucp.dev/schemas/shopping/fulfillment.json",
2121
"extends": "dev.ucp.shopping.checkout"
2222
},
2323
{
2424
"name": "dev.ucp.shopping.discount",
2525
"version": "2026-01-11",
26-
"spec": "https://ucp.dev/specs/shopping/discount",
26+
"spec": "https://ucp.dev/specification/discount",
2727
"schema": "https://ucp.dev/schemas/shopping/discount.json",
2828
"extends": "dev.ucp.shopping.checkout"
2929
}

a2a/business_agent/src/business_agent/data/ucp.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"services": {
55
"dev.ucp.shopping": {
66
"version": "2026-01-11",
7-
"spec": "https://ucp.dev/specs/shopping",
7+
"spec": "https://ucp.dev/specification/shopping",
88
"a2a": {
99
"endpoint": "http://localhost:10999/.well-known/agent-card.json"
1010
}
@@ -14,13 +14,13 @@
1414
{
1515
"name": "dev.ucp.shopping.checkout",
1616
"version": "2026-01-11",
17-
"spec": "https://ucp.dev/specs/shopping/checkout",
17+
"spec": "https://ucp.dev/specification/checkout",
1818
"schema": "https://ucp.dev/schemas/shopping/checkout.json"
1919
},
2020
{
2121
"name": "dev.ucp.shopping.fulfillment",
2222
"version": "2026-01-11",
23-
"spec": "https://ucp.dev/specs/shopping/fulfillment",
23+
"spec": "https://ucp.dev/specification/fulfillment",
2424
"schema": "https://ucp.dev/schemas/shopping/fulfillment.json",
2525
"extends": "dev.ucp.shopping.checkout"
2626
}

a2a/chat-client/profile/agent_profile.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
{
66
"name": "dev.ucp.shopping.checkout",
77
"version": "2026-01-11",
8-
"spec": "https://ucp.dev/specs/shopping/checkout",
8+
"spec": "https://ucp.dev/specification/checkout",
99
"schema": "https://ucp.dev/schemas/shopping/checkout.json"
1010
},
1111
{
1212
"name": "dev.ucp.shopping.fulfillment",
1313
"version": "2026-01-11",
14-
"spec": "https://ucp.dev/specs/shopping/fulfillment",
14+
"spec": "https://ucp.dev/specification/fulfillment",
1515
"schema": "https://ucp.dev/schemas/shopping/fulfillment.json",
1616
"extends": "dev.ucp.shopping.checkout"
1717
},
1818
{
1919
"name": "dev.ucp.shopping.discount",
2020
"version": "2026-01-11",
21-
"spec": "https://ucp.dev/specs/shopping/discount",
21+
"spec": "https://ucp.dev/specification/discount",
2222
"schema": "https://ucp.dev/schemas/shopping/discount.json",
2323
"extends": "dev.ucp.shopping.checkout"
2424
},

rest/nodejs/src/api/discovery.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class DiscoveryService {
3030
services: {
3131
'dev.ucp.shopping': {
3232
version: this.ucpVersion,
33-
spec: 'https://ucp.dev/specs/shopping',
33+
spec: 'https://ucp.dev/specification/shopping',
3434
rest: {
3535
schema: 'https://ucp.dev/services/shopping/openapi.json',
3636
endpoint: 'http://localhost:3000',
@@ -41,54 +41,54 @@ export class DiscoveryService {
4141
{
4242
name: 'dev.ucp.shopping.checkout',
4343
version: this.ucpVersion,
44-
spec: 'https://ucp.dev/specs/shopping/checkout',
44+
spec: 'https://ucp.dev/specification/checkout',
4545
schema: 'https://ucp.dev/schemas/shopping/checkout.json',
4646
},
4747
{
4848
name: 'dev.ucp.shopping.order',
4949
version: this.ucpVersion,
50-
spec: 'https://ucp.dev/specs/shopping/order',
50+
spec: 'https://ucp.dev/specification/order',
5151
schema: 'https://ucp.dev/schemas/shopping/order.json',
5252
},
5353
{
5454
name: 'dev.ucp.shopping.refund',
5555
version: this.ucpVersion,
56-
spec: 'https://ucp.dev/specs/shopping/refund',
56+
spec: 'https://ucp.dev/specification/refund',
5757
schema: 'https://ucp.dev/schemas/shopping/refund.json',
5858
extends: 'dev.ucp.shopping.order',
5959
},
6060
{
6161
name: 'dev.ucp.shopping.return',
6262
version: this.ucpVersion,
63-
spec: 'https://ucp.dev/specs/shopping/return',
63+
spec: 'https://ucp.dev/specification/return',
6464
schema: 'https://ucp.dev/schemas/shopping/return.json',
6565
extends: 'dev.ucp.shopping.order',
6666
},
6767
{
6868
name: 'dev.ucp.shopping.dispute',
6969
version: this.ucpVersion,
70-
spec: 'https://ucp.dev/specs/shopping/dispute',
70+
spec: 'https://ucp.dev/specification/dispute',
7171
schema: 'https://ucp.dev/schemas/shopping/dispute.json',
7272
extends: 'dev.ucp.shopping.order',
7373
},
7474
{
7575
name: 'dev.ucp.shopping.discount',
7676
version: this.ucpVersion,
77-
spec: 'https://ucp.dev/specs/shopping/discount',
77+
spec: 'https://ucp.dev/specification/discount',
7878
schema: 'https://ucp.dev/schemas/shopping/discount.json',
7979
extends: 'dev.ucp.shopping.checkout',
8080
},
8181
{
8282
name: 'dev.ucp.shopping.fulfillment',
8383
version: this.ucpVersion,
84-
spec: 'https://ucp.dev/specs/shopping/fulfillment',
84+
spec: 'https://ucp.dev/specification/fulfillment',
8585
schema: 'https://ucp.dev/schemas/shopping/fulfillment.json',
8686
extends: 'dev.ucp.shopping.checkout',
8787
},
8888
{
8989
name: 'dev.ucp.shopping.buyer_consent',
9090
version: this.ucpVersion,
91-
spec: 'https://ucp.dev/specs/shopping/buyer_consent',
91+
spec: 'https://ucp.dev/specification/buyer_consent',
9292
schema: 'https://ucp.dev/schemas/shopping/buyer_consent.json',
9393
extends: 'dev.ucp.shopping.checkout',
9494
},

0 commit comments

Comments
 (0)