@datalayer/agent-runtimes 1.5.96 → 1.5.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist-embed/chunks/{index.esm-zOy6kFPv.js → index.esm-BLDeC6q1.js} +1 -1
  2. package/dist-embed/datalayer-app-main.js +80 -80
  3. package/lib/apps/apps/appspec.d.ts +11 -12
  4. package/lib/apps/apps/appspec.js +45 -87
  5. package/lib/components/cards/ToolApprovalCard.js +4 -2
  6. package/lib/components/teams/HarnessIcon.d.ts +11 -0
  7. package/lib/components/teams/HarnessIcon.js +17 -0
  8. package/lib/components/teams/SceneTranscript.d.ts +1 -1
  9. package/lib/components/teams/SceneTranscript.js +12 -7
  10. package/lib/components/teams/SceneView.d.ts +7 -1
  11. package/lib/components/teams/SceneView.js +2 -2
  12. package/lib/components/teams/backdrops/hero.js +1 -1
  13. package/lib/components/teams/backdrops/minimal.js +1 -1
  14. package/lib/components/teams/backdrops/nodes.js +4 -3
  15. package/lib/components/teams/backdrops/space.js +1 -1
  16. package/lib/components/teams/backdrops/types.d.ts +9 -0
  17. package/lib/components/teams/index.d.ts +2 -0
  18. package/lib/components/teams/index.js +2 -0
  19. package/lib/components/teams/memberHarness.d.ts +16 -0
  20. package/lib/components/teams/memberHarness.js +42 -0
  21. package/lib/components/teams/sceneTranscriptRules.js +6 -1
  22. package/lib/components/teams/transcript/LineSelect.d.ts +20 -0
  23. package/lib/components/teams/transcript/LineSelect.js +20 -0
  24. package/lib/components/teams/transcript/TranscriptTable.d.ts +11 -5
  25. package/lib/components/teams/transcript/TranscriptTable.js +24 -7
  26. package/lib/components/teams/transcript/TranscriptViews.js +1 -1
  27. package/lib/components/teams/transcript/recordingPlayback.d.ts +13 -0
  28. package/lib/components/teams/transcript/recordingPlayback.js +32 -0
  29. package/lib/components/teams/transcript/useSceneRecording.d.ts +1 -1
  30. package/lib/components/teams/transcript/useSceneRecording.js +19 -11
  31. package/lib/examples/PapAccountTokensExample.d.ts +1 -1
  32. package/lib/examples/PapAccountTokensExample.js +3 -3
  33. package/lib/examples/PapSessionJwtExample.d.ts +4 -0
  34. package/lib/examples/{PapDpopProofExample.js → PapSessionJwtExample.js} +9 -9
  35. package/lib/examples/PapSessionLifecycleExample.d.ts +1 -1
  36. package/lib/examples/PapSessionLifecycleExample.js +2 -2
  37. package/lib/examples/ScenesExample.js +15 -13
  38. package/lib/examples/example-selector.js +3 -3
  39. package/lib/examples/index.d.ts +1 -1
  40. package/lib/examples/index.js +1 -1
  41. package/lib/examples/main.js +1 -1
  42. package/lib/examples/pap/PapAccountTokensView.d.ts +1 -1
  43. package/lib/examples/pap/PapAuthorizationBoundaryView.js +15 -22
  44. package/lib/examples/pap/PapGuidedJourneyView.js +61 -60
  45. package/lib/examples/pap/PapSessionJwtView.d.ts +4 -0
  46. package/lib/examples/pap/PapSessionJwtView.js +69 -0
  47. package/lib/examples/pap/PapSessionLifecycleView.js +36 -58
  48. package/lib/examples/pap/PapSignInDisplayView.d.ts +1 -1
  49. package/lib/examples/pap/PapSignInDisplayView.js +1 -1
  50. package/lib/examples/pap/PapTraceView.d.ts +1 -1
  51. package/lib/examples/pap/PapTraceView.js +1 -1
  52. package/lib/examples/pap/traces/account-tokens.json +145 -173
  53. package/lib/examples/pap/traces/conversation-control.json +118 -140
  54. package/lib/examples/pap/traces/conversation-streaming.json +114 -134
  55. package/lib/examples/pap/traces/mediated-sign-in.json +151 -166
  56. package/lib/examples/pap/traces/operations.json +613 -391
  57. package/lib/examples/pap/traces/two-companies.json +380 -990
  58. package/lib/examples/pap/traces/user-with-a-company.json +319 -207
  59. package/lib/models/environments.generated.d.ts +2 -2
  60. package/lib/models/environments.generated.js +1 -1
  61. package/lib/pap/index.d.ts +1 -1
  62. package/lib/pap/index.js +3 -3
  63. package/lib/portable/displays.d.ts +13 -22
  64. package/lib/portable/displays.js +17 -65
  65. package/lib/portable/hosts/approvalRenderers.d.ts +4 -4
  66. package/lib/portable/hosts/approvalRenderers.js +26 -13
  67. package/lib/portable/hosts/contracts.json +5 -2
  68. package/lib/portable/index.d.ts +1 -1
  69. package/lib/portable/index.js +1 -1
  70. package/lib/protocols/decks/index.d.ts +37 -0
  71. package/lib/protocols/decks/index.js +48 -0
  72. package/lib/protocols/decks/pact-a-personal-agent-at-a-business.d.ts +2 -0
  73. package/lib/protocols/decks/pact-a-personal-agent-at-a-business.js +148 -0
  74. package/lib/protocols/decks/ucp-a-purchase-approved.d.ts +2 -0
  75. package/lib/protocols/decks/ucp-a-purchase-approved.js +154 -0
  76. package/lib/specs/actions.d.ts +1 -1
  77. package/lib/specs/actions.js +2 -2
  78. package/lib/specs/agents/agents.js +3 -3
  79. package/lib/specs/apps.d.ts +1 -1
  80. package/lib/specs/apps.js +10 -11
  81. package/lib/specs/appspecSchema.js +4 -112
  82. package/lib/specs/envvars.js +2 -2
  83. package/lib/specs/harnesses.js +9 -9
  84. package/lib/specs/scenes.js +10 -33
  85. package/lib/specs/teams/teams.js +2 -2
  86. package/lib/types/agentspecs.d.ts +91 -127
  87. package/package.json +409 -409
  88. package/scripts/codegen/generate_apps.py +6 -7
  89. package/scripts/validate_pap_examples.py +1 -1
  90. package/lib/examples/PapDpopProofExample.d.ts +0 -4
  91. package/lib/examples/pap/PapDpopProofView.d.ts +0 -4
  92. package/lib/examples/pap/PapDpopProofView.js +0 -61
@@ -3,7 +3,7 @@
3
3
  "title": "Conversation streaming",
4
4
  "description": "Atlas reads a Manzanita conversation over Server-Sent Events: display-only text deltas, complete message events, and a resume from Last-Event-ID.",
5
5
  "generator": "examples/personal-agent-protocol/traces/generate.py",
6
- "sdk": "personal-agent-protocol 0.27.0",
6
+ "sdk": "personal-agent-protocol 0.28.0",
7
7
  "parties": [
8
8
  {
9
9
  "id": "user",
@@ -30,7 +30,7 @@
30
30
  {
31
31
  "title": "Atlas finds Manzanita",
32
32
  "channel": "Discovery + Session",
33
- "summary": "Atlas reads Manzanita's public poppy.json and OAuth metadata, then opens a signed-out, pairwise Session. Manzanita verifies Atlas by fetching its client metadata and keys.",
33
+ "summary": "Atlas reads Manzanita's protected resource metadata, public poppy.json and OAuth metadata. A Session is local: Atlas chooses a random sid for Ada's pairwise User ID, and no request is sent. Manzanita verifies Atlas's delegation at its first request.",
34
34
  "chat": [
35
35
  {
36
36
  "speaker": "user",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  {
48
48
  "label": "Session",
49
- "value": "signed out · DPoP-bound"
49
+ "value": "signed out · a Session JWT on every request"
50
50
  },
51
51
  {
52
52
  "label": "Vault (host only)",
@@ -60,15 +60,11 @@
60
60
  "manzanita": [
61
61
  {
62
62
  "label": "Verified client",
63
- "value": "atlas.example/agent.json"
63
+ "value": "None yet"
64
64
  },
65
65
  {
66
66
  "label": "Sessions",
67
- "value": "1 live · 0 signed in"
68
- },
69
- {
70
- "label": "Who is it?",
71
- "value": "A pairwise identifier only"
67
+ "value": "None"
72
68
  }
73
69
  ]
74
70
  },
@@ -97,22 +93,6 @@
97
93
  },
98
94
  "auth": {
99
95
  "issuer": "https://manzanita.example",
100
- "mediated": {
101
- "endpoint": "https://manzanita.example/poppy/sign-in",
102
- "fields": [
103
- {
104
- "name": "email",
105
- "label": "Email",
106
- "secret": false
107
- },
108
- {
109
- "name": "password",
110
- "label": "Password",
111
- "secret": true
112
- }
113
- ],
114
- "scopes": ["orders:read", "orders:write"]
115
- },
116
96
  "scopes": {
117
97
  "orders:read": "See your orders, returns and exchanges",
118
98
  "orders:write": "Exchange or return items in your orders"
@@ -159,8 +139,23 @@
159
139
  },
160
140
  "extensions": {
161
141
  "operations": {
142
+ "version": "2"
143
+ },
144
+ "mediated-sign-in": {
162
145
  "version": "1",
163
- "endpoint": "https://manzanita.example/poppy/operations"
146
+ "fields": [
147
+ {
148
+ "name": "email",
149
+ "label": "Email",
150
+ "secret": false
151
+ },
152
+ {
153
+ "name": "password",
154
+ "label": "Password",
155
+ "secret": true
156
+ }
157
+ ],
158
+ "scopes": ["orders:read", "orders:write"]
164
159
  }
165
160
  }
166
161
  }
@@ -171,7 +166,7 @@
171
166
  "from": "atlas",
172
167
  "to": "manzanita",
173
168
  "method": "GET",
174
- "url": "https://manzanita.example/.well-known/oauth-authorization-server",
169
+ "url": "https://manzanita.example/.well-known/oauth-protected-resource",
175
170
  "status": 200,
176
171
  "request": {
177
172
  "headers": {
@@ -183,24 +178,10 @@
183
178
  "content-type": "application/json"
184
179
  },
185
180
  "body": {
186
- "issuer": "https://manzanita.example",
187
- "token_endpoint": "https://manzanita.example/oauth/token",
188
- "revocation_endpoint": "https://manzanita.example/oauth/revoke",
189
- "grant_types_supported": [
190
- "urn:ietf:params:oauth:grant-type:jwt-bearer",
191
- "refresh_token",
192
- "authorization_code",
193
- "urn:ietf:params:oauth:grant-type:device_code"
194
- ],
181
+ "resource": "https://manzanita.example",
182
+ "authorization_servers": ["https://manzanita.example"],
195
183
  "scopes_supported": ["orders:read", "orders:write"],
196
- "protected_resources": [
197
- "https://manzanita.example",
198
- "https://manzanita.example/mcp"
199
- ],
200
- "dpop_signing_alg_values_supported": ["ES256", "RS256"],
201
- "authorization_endpoint": "https://manzanita.example/oauth/authorize",
202
- "code_challenge_methods_supported": ["S256"],
203
- "device_1": "https://manzanita.example/oauth/device"
184
+ "bearer_methods_supported": ["header"]
204
185
  }
205
186
  }
206
187
  },
@@ -208,72 +189,8 @@
208
189
  "kind": "http",
209
190
  "from": "atlas",
210
191
  "to": "manzanita",
211
- "method": "POST",
212
- "url": "https://manzanita.example/oauth/token",
213
- "status": 200,
214
- "request": {
215
- "headers": {
216
- "content-type": "application/x-www-form-urlencoded",
217
- "accept": "application/json",
218
- "dpop": "‹DPoP proof›"
219
- },
220
- "body": {
221
- "grant_type": "urn:ietf:params:oauth:grant-type:jwt-bearer",
222
- "assertion": "‹session assertion›",
223
- "client_id": "https://atlas.example/agent.json",
224
- "client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
225
- "client_assertion": "‹client assertion›"
226
- },
227
- "encoding": "form"
228
- },
229
- "response": {
230
- "headers": {
231
- "content-type": "application/json",
232
- "cache-control": "no-store"
233
- },
234
- "body": {
235
- "access_token": "‹session token›",
236
- "token_type": "DPoP",
237
- "expires_in": 3600
238
- }
239
- }
240
- },
241
- {
242
- "kind": "http",
243
- "from": "manzanita",
244
- "to": "atlas",
245
192
  "method": "GET",
246
- "url": "https://atlas.example/agent.json",
247
- "status": 200,
248
- "request": {
249
- "headers": {
250
- "accept": "application/json"
251
- }
252
- },
253
- "response": {
254
- "headers": {
255
- "content-type": "application/json"
256
- },
257
- "body": {
258
- "client_id": "https://atlas.example/agent.json",
259
- "client_name": "Atlas",
260
- "jwks_uri": "https://atlas.example/jwks.json",
261
- "redirect_uris": ["https://atlas.example/oauth/callback"],
262
- "token_endpoint_auth_method": "private_key_jwt",
263
- "extensions": {
264
- "operations": {
265
- "version": "1"
266
- }
267
- }
268
- }
269
- }
270
- },
271
- {
272
- "kind": "http",
273
- "from": "manzanita",
274
- "to": "atlas",
275
- "method": "GET",
276
- "url": "https://atlas.example/jwks.json",
193
+ "url": "https://manzanita.example/.well-known/oauth-authorization-server",
277
194
  "status": 200,
278
195
  "request": {
279
196
  "headers": {
@@ -285,17 +202,23 @@
285
202
  "content-type": "application/json"
286
203
  },
287
204
  "body": {
288
- "keys": [
289
- {
290
- "kty": "EC",
291
- "crv": "P-256",
292
- "x": "‹public key›",
293
- "y": "‹public key›",
294
- "kid": "key-1",
295
- "use": "sig",
296
- "alg": "ES256"
297
- }
298
- ]
205
+ "issuer": "https://manzanita.example",
206
+ "token_endpoint": "https://manzanita.example/oauth/token",
207
+ "revocation_endpoint": "https://manzanita.example/oauth/revoke",
208
+ "grant_types_supported": [
209
+ "refresh_token",
210
+ "authorization_code",
211
+ "urn:ietf:params:oauth:grant-type:device_code",
212
+ "https://personalagentprotocol.org/grant/mediated-sign-in"
213
+ ],
214
+ "scopes_supported": ["orders:read", "orders:write"],
215
+ "protected_resources": [
216
+ "https://manzanita.example",
217
+ "https://manzanita.example/mcp"
218
+ ],
219
+ "authorization_endpoint": "https://manzanita.example/oauth/authorize",
220
+ "code_challenge_methods_supported": ["S256"],
221
+ "device_1": "https://manzanita.example/oauth/device"
299
222
  }
300
223
  }
301
224
  }
@@ -314,7 +237,7 @@
314
237
  },
315
238
  {
316
239
  "label": "Session",
317
- "value": "signed out · DPoP-bound"
240
+ "value": "signed out · a Session JWT on every request"
318
241
  },
319
242
  {
320
243
  "label": "Vault (host only)",
@@ -332,7 +255,7 @@
332
255
  },
333
256
  {
334
257
  "label": "Sessions",
335
- "value": "1 live · 0 signed in"
258
+ "value": "1 live"
336
259
  },
337
260
  {
338
261
  "label": "Who is it?",
@@ -356,8 +279,7 @@
356
279
  "headers": {
357
280
  "content-type": "application/json",
358
281
  "accept": "*/*",
359
- "authorization": "DPoP ‹session token›",
360
- "dpop": "‹DPoP proof›"
282
+ "poppy-session": "‹Session JWT›"
361
283
  },
362
284
  "body": {
363
285
  "message": {
@@ -379,6 +301,67 @@
379
301
  "responder": "agent"
380
302
  }
381
303
  }
304
+ },
305
+ {
306
+ "kind": "http",
307
+ "from": "manzanita",
308
+ "to": "atlas",
309
+ "method": "GET",
310
+ "url": "https://atlas.example/agent.json",
311
+ "status": 200,
312
+ "request": {
313
+ "headers": {
314
+ "accept": "application/json"
315
+ }
316
+ },
317
+ "response": {
318
+ "headers": {
319
+ "content-type": "application/json"
320
+ },
321
+ "body": {
322
+ "client_id": "https://atlas.example/agent.json",
323
+ "client_name": "Atlas",
324
+ "jwks_uri": "https://atlas.example/jwks.json",
325
+ "redirect_uris": ["https://atlas.example/oauth/callback"],
326
+ "token_endpoint_auth_method": "private_key_jwt",
327
+ "extensions": {
328
+ "operations": {
329
+ "version": "2"
330
+ }
331
+ }
332
+ }
333
+ }
334
+ },
335
+ {
336
+ "kind": "http",
337
+ "from": "manzanita",
338
+ "to": "atlas",
339
+ "method": "GET",
340
+ "url": "https://atlas.example/jwks.json",
341
+ "status": 200,
342
+ "request": {
343
+ "headers": {
344
+ "accept": "application/json"
345
+ }
346
+ },
347
+ "response": {
348
+ "headers": {
349
+ "content-type": "application/json"
350
+ },
351
+ "body": {
352
+ "keys": [
353
+ {
354
+ "kty": "EC",
355
+ "crv": "P-256",
356
+ "x": "‹public key›",
357
+ "y": "‹public key›",
358
+ "kid": "key-1",
359
+ "use": "sig",
360
+ "alg": "ES256"
361
+ }
362
+ ]
363
+ }
364
+ }
382
365
  }
383
366
  ]
384
367
  },
@@ -406,7 +389,7 @@
406
389
  },
407
390
  {
408
391
  "label": "Session",
409
- "value": "signed out · DPoP-bound"
392
+ "value": "signed out · a Session JWT on every request"
410
393
  },
411
394
  {
412
395
  "label": "Vault (host only)",
@@ -424,7 +407,7 @@
424
407
  },
425
408
  {
426
409
  "label": "Sessions",
427
- "value": "1 live · 0 signed in"
410
+ "value": "1 live"
428
411
  },
429
412
  {
430
413
  "label": "Who is it?",
@@ -448,8 +431,7 @@
448
431
  "headers": {
449
432
  "content-type": "application/json",
450
433
  "accept": "*/*",
451
- "authorization": "DPoP ‹session token›",
452
- "dpop": "‹DPoP proof›"
434
+ "poppy-session": "‹Session JWT›"
453
435
  },
454
436
  "body": {}
455
437
  },
@@ -474,8 +456,7 @@
474
456
  "request": {
475
457
  "headers": {
476
458
  "accept": "text/event-stream",
477
- "authorization": "DPoP ‹session token›",
478
- "dpop": "‹DPoP proof›"
459
+ "poppy-session": "‹Session JWT›"
479
460
  }
480
461
  },
481
462
  "response": {
@@ -502,7 +483,7 @@
502
483
  },
503
484
  {
504
485
  "label": "Session",
505
- "value": "signed out · DPoP-bound"
486
+ "value": "signed out · a Session JWT on every request"
506
487
  },
507
488
  {
508
489
  "label": "Vault (host only)",
@@ -520,7 +501,7 @@
520
501
  },
521
502
  {
522
503
  "label": "Sessions",
523
- "value": "1 live · 0 signed in"
504
+ "value": "1 live"
524
505
  },
525
506
  {
526
507
  "label": "Who is it?",
@@ -544,8 +525,7 @@
544
525
  "headers": {
545
526
  "accept": "text/event-stream",
546
527
  "last-event-id": "evt_1",
547
- "authorization": "DPoP ‹session token›",
548
- "dpop": "‹DPoP proof›"
528
+ "poppy-session": "‹Session JWT›"
549
529
  }
550
530
  },
551
531
  "response": {