@datalayer/agent-runtimes 1.5.115 → 1.5.121
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.
- package/dist-embed/datalayer-app-main.js +52 -52
- package/lib/api/runtimes/runtimes.d.ts +5 -0
- package/lib/apps/apps/appspec.js +4 -0
- package/lib/examples/pap/PapAgentIdentityView.js +0 -1
- package/lib/examples/pap/PapCompanyDiscoveryView.js +5 -4
- package/lib/examples/pap/PapGuidedJourneyView.js +31 -17
- package/lib/examples/pap/PapSessionLifecycleView.js +1 -1
- package/lib/examples/pap/traces/account-tokens.json +54 -30
- package/lib/examples/pap/traces/conversation-control.json +171 -220
- package/lib/examples/pap/traces/conversation-streaming.json +66 -44
- package/lib/examples/pap/traces/mediated-sign-in.json +54 -30
- package/lib/examples/pap/traces/operations.json +174 -223
- package/lib/examples/pap/traces/two-companies.json +252 -306
- package/lib/examples/pap/traces/user-with-a-company.json +159 -162
- package/lib/hooks/useCheckpoints.d.ts +2 -0
- package/lib/pap/index.d.ts +8 -0
- package/lib/pap/index.js +3 -6
- package/lib/portable/direct.d.ts +9 -3
- package/lib/portable/direct.js +9 -4
- package/lib/specs/actions.js +72 -9
- package/lib/specs/agents/agents.js +32 -9
- package/lib/specs/apps.js +18 -8
- package/lib/specs/appspecSchema.js +13 -1
- package/lib/specs/battles.js +6 -6
- package/lib/specs/mcpServers.js +66 -31
- package/lib/specs/models.d.ts +8 -1
- package/lib/specs/models.js +40 -2
- package/lib/specs/protocols.js +1 -1
- package/lib/specs/scenes.js +1 -5
- package/lib/types/agentspecs.d.ts +10 -0
- package/package.json +2 -2
- package/scripts/codegen/generate_apps.py +2 -0
- package/scripts/codegen/generate_models.py +17 -4
|
@@ -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.
|
|
6
|
+
"sdk": "personal-agent-protocol 0.32.0",
|
|
7
7
|
"parties": [
|
|
8
8
|
{
|
|
9
9
|
"id": "user",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"content-type": "application/json"
|
|
87
87
|
},
|
|
88
88
|
"body": {
|
|
89
|
-
"protocol_version": "0.
|
|
89
|
+
"protocol_version": "0.4",
|
|
90
90
|
"organization": {
|
|
91
91
|
"name": "Manzanita Outfitters",
|
|
92
92
|
"domain": "manzanita.example"
|
|
@@ -103,7 +103,8 @@
|
|
|
103
103
|
"issuer": "https://manzanita.example",
|
|
104
104
|
"scopes": {
|
|
105
105
|
"orders:read": "See your orders, returns and exchanges",
|
|
106
|
-
"orders:write": "Exchange or return items in your orders"
|
|
106
|
+
"orders:write": "Exchange or return items in your orders",
|
|
107
|
+
"poppy:browser-sign-in": "Use the website signed in, with the other access you approve"
|
|
107
108
|
},
|
|
108
109
|
"scope_hints": {
|
|
109
110
|
"orders:read": {
|
|
@@ -138,25 +139,44 @@
|
|
|
138
139
|
"url": "https://manzanita.example/poppy/excluded-tasks.json"
|
|
139
140
|
},
|
|
140
141
|
"extensions": {
|
|
141
|
-
"operations":
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
142
|
+
"operations": [
|
|
143
|
+
{
|
|
144
|
+
"version": "2"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"links": [
|
|
148
|
+
{
|
|
149
|
+
"version": "1"
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
"disclosures": [
|
|
153
|
+
{
|
|
154
|
+
"version": "1"
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"ucp": [
|
|
158
|
+
{
|
|
159
|
+
"version": "1"
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
"mediated-sign-in": [
|
|
163
|
+
{
|
|
164
|
+
"version": "1",
|
|
165
|
+
"fields": [
|
|
166
|
+
{
|
|
167
|
+
"name": "email",
|
|
168
|
+
"label": "Email",
|
|
169
|
+
"secret": false
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "password",
|
|
173
|
+
"label": "Password",
|
|
174
|
+
"secret": true
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
"scopes": ["orders:read", "orders:write"]
|
|
178
|
+
}
|
|
179
|
+
]
|
|
160
180
|
}
|
|
161
181
|
}
|
|
162
182
|
}
|
|
@@ -180,7 +200,11 @@
|
|
|
180
200
|
"body": {
|
|
181
201
|
"resource": "https://manzanita.example",
|
|
182
202
|
"authorization_servers": ["https://manzanita.example"],
|
|
183
|
-
"scopes_supported": [
|
|
203
|
+
"scopes_supported": [
|
|
204
|
+
"orders:read",
|
|
205
|
+
"orders:write",
|
|
206
|
+
"poppy:browser-sign-in"
|
|
207
|
+
],
|
|
184
208
|
"bearer_methods_supported": ["header"]
|
|
185
209
|
}
|
|
186
210
|
}
|
|
@@ -211,7 +235,12 @@
|
|
|
211
235
|
"urn:ietf:params:oauth:grant-type:device_code",
|
|
212
236
|
"https://personalagentprotocol.org/grant/mediated-sign-in"
|
|
213
237
|
],
|
|
214
|
-
"
|
|
238
|
+
"token_endpoint_auth_methods_supported": ["private_key_jwt"],
|
|
239
|
+
"scopes_supported": [
|
|
240
|
+
"orders:read",
|
|
241
|
+
"orders:write",
|
|
242
|
+
"poppy:browser-sign-in"
|
|
243
|
+
],
|
|
215
244
|
"protected_resources": [
|
|
216
245
|
"https://manzanita.example",
|
|
217
246
|
"https://manzanita.example/mcp"
|
|
@@ -263,7 +292,7 @@
|
|
|
263
292
|
},
|
|
264
293
|
{
|
|
265
294
|
"label": "Conversation",
|
|
266
|
-
"value": "
|
|
295
|
+
"value": "open · handoff none · agent · 2 events"
|
|
267
296
|
}
|
|
268
297
|
]
|
|
269
298
|
},
|
|
@@ -282,8 +311,8 @@
|
|
|
282
311
|
"poppy-session": "‹Session JWT›"
|
|
283
312
|
},
|
|
284
313
|
"body": {
|
|
314
|
+
"id": "req_Ivd96OaxRnL5xoZA6CUC8w",
|
|
285
315
|
"message": {
|
|
286
|
-
"id": "msg_1",
|
|
287
316
|
"author": {
|
|
288
317
|
"type": "human"
|
|
289
318
|
},
|
|
@@ -296,9 +325,7 @@
|
|
|
296
325
|
"content-type": "application/json"
|
|
297
326
|
},
|
|
298
327
|
"body": {
|
|
299
|
-
"conversation_id": "cnv_1"
|
|
300
|
-
"status": "idle",
|
|
301
|
-
"responder": "agent"
|
|
328
|
+
"conversation_id": "cnv_1"
|
|
302
329
|
}
|
|
303
330
|
}
|
|
304
331
|
},
|
|
@@ -323,12 +350,7 @@
|
|
|
323
350
|
"client_name": "Atlas",
|
|
324
351
|
"jwks_uri": "https://atlas.example/jwks.json",
|
|
325
352
|
"redirect_uris": ["https://atlas.example/oauth/callback"],
|
|
326
|
-
"token_endpoint_auth_method": "private_key_jwt"
|
|
327
|
-
"extensions": {
|
|
328
|
-
"operations": {
|
|
329
|
-
"version": "2"
|
|
330
|
-
}
|
|
331
|
-
}
|
|
353
|
+
"token_endpoint_auth_method": "private_key_jwt"
|
|
332
354
|
}
|
|
333
355
|
}
|
|
334
356
|
},
|
|
@@ -415,7 +437,7 @@
|
|
|
415
437
|
},
|
|
416
438
|
{
|
|
417
439
|
"label": "Conversation",
|
|
418
|
-
"value": "closed · agent ·
|
|
440
|
+
"value": "closed · handoff none · agent · 3 events"
|
|
419
441
|
}
|
|
420
442
|
]
|
|
421
443
|
},
|
|
@@ -426,23 +448,23 @@
|
|
|
426
448
|
"to": "manzanita",
|
|
427
449
|
"method": "POST",
|
|
428
450
|
"url": "https://manzanita.example/poppy/conversations/cnv_1/close",
|
|
429
|
-
"status":
|
|
451
|
+
"status": 202,
|
|
430
452
|
"request": {
|
|
431
453
|
"headers": {
|
|
432
454
|
"content-type": "application/json",
|
|
433
455
|
"accept": "*/*",
|
|
434
456
|
"poppy-session": "‹Session JWT›"
|
|
435
457
|
},
|
|
436
|
-
"body": {
|
|
458
|
+
"body": {
|
|
459
|
+
"id": "req_1ZXKbbSdgK4N-K1-e9ca5Q"
|
|
460
|
+
}
|
|
437
461
|
},
|
|
438
462
|
"response": {
|
|
439
463
|
"headers": {
|
|
440
464
|
"content-type": "application/json"
|
|
441
465
|
},
|
|
442
466
|
"body": {
|
|
443
|
-
"conversation_id": "cnv_1"
|
|
444
|
-
"status": "closed",
|
|
445
|
-
"responder": "agent"
|
|
467
|
+
"conversation_id": "cnv_1"
|
|
446
468
|
}
|
|
447
469
|
}
|
|
448
470
|
},
|
|
@@ -464,7 +486,7 @@
|
|
|
464
486
|
"content-type": "text/event-stream",
|
|
465
487
|
"cache-control": "no-store"
|
|
466
488
|
},
|
|
467
|
-
"body": ": poppy\n\nid: evt_1\ndata: {\"id\": \"evt_1\", \"created_at\": \"2026-10-11T09:00:00Z\", \"type\": \"message\", \"message\": {\"id\": \"
|
|
489
|
+
"body": ": poppy\n\nevent: working\ndata: {\"working\": false}\n\nid: evt_1\ndata: {\"id\": \"evt_1\", \"created_at\": \"2026-10-11T09:00:00Z\", \"type\": \"message\", \"message\": {\"id\": \"req_Ivd96OaxRnL5xoZA6CUC8w\", \"author\": {\"type\": \"human\"}, \"text\": \"Hello\", \"role\": \"user\"}}\n\nevent: text-delta\ndata: {\"message_id\": \"msg_1\", \"text\": \"Hello from Manzanita Outfit\"}\n\nid: evt_2\ndata: {\"id\": \"evt_2\", \"created_at\": \"2026-10-11T09:00:00Z\", \"type\": \"message\", \"message\": {\"id\": \"msg_1\", \"author\": {\"type\": \"agent\"}, \"role\": \"company\", \"as_of_request\": \"req_Ivd96OaxRnL5xoZA6CUC8w\", \"text\": \"Hello from Manzanita Outfitters. Ask me about an order.\"}}\n\nid: evt_3\ndata: {\"id\": \"evt_3\", \"created_at\": \"2026-10-11T09:00:00Z\", \"type\": \"state\", \"handoff\": \"none\", \"responder\": \"agent\", \"closed\": true}\n\n",
|
|
468
490
|
"encoding": "sse"
|
|
469
491
|
}
|
|
470
492
|
}
|
|
@@ -509,7 +531,7 @@
|
|
|
509
531
|
},
|
|
510
532
|
{
|
|
511
533
|
"label": "Conversation",
|
|
512
|
-
"value": "closed · agent ·
|
|
534
|
+
"value": "closed · handoff none · agent · 3 events"
|
|
513
535
|
}
|
|
514
536
|
]
|
|
515
537
|
},
|
|
@@ -533,7 +555,7 @@
|
|
|
533
555
|
"content-type": "text/event-stream",
|
|
534
556
|
"cache-control": "no-store"
|
|
535
557
|
},
|
|
536
|
-
"body": ": poppy\n\
|
|
558
|
+
"body": ": poppy\n\nevent: working\ndata: {\"working\": false}\n\nevent: text-delta\ndata: {\"message_id\": \"msg_1\", \"text\": \"Hello from Manzanita Outfit\"}\n\nid: evt_2\ndata: {\"id\": \"evt_2\", \"created_at\": \"2026-10-11T09:00:00Z\", \"type\": \"message\", \"message\": {\"id\": \"msg_1\", \"author\": {\"type\": \"agent\"}, \"role\": \"company\", \"as_of_request\": \"req_Ivd96OaxRnL5xoZA6CUC8w\", \"text\": \"Hello from Manzanita Outfitters. Ask me about an order.\"}}\n\nid: evt_3\ndata: {\"id\": \"evt_3\", \"created_at\": \"2026-10-11T09:00:00Z\", \"type\": \"state\", \"handoff\": \"none\", \"responder\": \"agent\", \"closed\": true}\n\n",
|
|
537
559
|
"encoding": "sse"
|
|
538
560
|
}
|
|
539
561
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"title": "Mediated Sign-In",
|
|
4
4
|
"description": "Ada signs in to Manzanita without leaving Atlas: the host's protected input collects the fields Manzanita declares in its mediated-sign-in extension and sends them to Manzanita's token endpoint, once, as an extension grant.",
|
|
5
5
|
"generator": "examples/personal-agent-protocol/traces/generate.py",
|
|
6
|
-
"sdk": "personal-agent-protocol 0.
|
|
6
|
+
"sdk": "personal-agent-protocol 0.32.0",
|
|
7
7
|
"parties": [
|
|
8
8
|
{
|
|
9
9
|
"id": "user",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"content-type": "application/json"
|
|
87
87
|
},
|
|
88
88
|
"body": {
|
|
89
|
-
"protocol_version": "0.
|
|
89
|
+
"protocol_version": "0.4",
|
|
90
90
|
"organization": {
|
|
91
91
|
"name": "Manzanita Outfitters",
|
|
92
92
|
"domain": "manzanita.example"
|
|
@@ -103,7 +103,8 @@
|
|
|
103
103
|
"issuer": "https://manzanita.example",
|
|
104
104
|
"scopes": {
|
|
105
105
|
"orders:read": "See your orders, returns and exchanges",
|
|
106
|
-
"orders:write": "Exchange or return items in your orders"
|
|
106
|
+
"orders:write": "Exchange or return items in your orders",
|
|
107
|
+
"poppy:browser-sign-in": "Use the website signed in, with the other access you approve"
|
|
107
108
|
},
|
|
108
109
|
"scope_hints": {
|
|
109
110
|
"orders:read": {
|
|
@@ -138,25 +139,44 @@
|
|
|
138
139
|
"url": "https://manzanita.example/poppy/excluded-tasks.json"
|
|
139
140
|
},
|
|
140
141
|
"extensions": {
|
|
141
|
-
"operations":
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
142
|
+
"operations": [
|
|
143
|
+
{
|
|
144
|
+
"version": "2"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"links": [
|
|
148
|
+
{
|
|
149
|
+
"version": "1"
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
"disclosures": [
|
|
153
|
+
{
|
|
154
|
+
"version": "1"
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"ucp": [
|
|
158
|
+
{
|
|
159
|
+
"version": "1"
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
"mediated-sign-in": [
|
|
163
|
+
{
|
|
164
|
+
"version": "1",
|
|
165
|
+
"fields": [
|
|
166
|
+
{
|
|
167
|
+
"name": "email",
|
|
168
|
+
"label": "Email",
|
|
169
|
+
"secret": false
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "password",
|
|
173
|
+
"label": "Password",
|
|
174
|
+
"secret": true
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
"scopes": ["orders:read", "orders:write"]
|
|
178
|
+
}
|
|
179
|
+
]
|
|
160
180
|
}
|
|
161
181
|
}
|
|
162
182
|
}
|
|
@@ -180,7 +200,11 @@
|
|
|
180
200
|
"body": {
|
|
181
201
|
"resource": "https://manzanita.example",
|
|
182
202
|
"authorization_servers": ["https://manzanita.example"],
|
|
183
|
-
"scopes_supported": [
|
|
203
|
+
"scopes_supported": [
|
|
204
|
+
"orders:read",
|
|
205
|
+
"orders:write",
|
|
206
|
+
"poppy:browser-sign-in"
|
|
207
|
+
],
|
|
184
208
|
"bearer_methods_supported": ["header"]
|
|
185
209
|
}
|
|
186
210
|
}
|
|
@@ -211,7 +235,12 @@
|
|
|
211
235
|
"urn:ietf:params:oauth:grant-type:device_code",
|
|
212
236
|
"https://personalagentprotocol.org/grant/mediated-sign-in"
|
|
213
237
|
],
|
|
214
|
-
"
|
|
238
|
+
"token_endpoint_auth_methods_supported": ["private_key_jwt"],
|
|
239
|
+
"scopes_supported": [
|
|
240
|
+
"orders:read",
|
|
241
|
+
"orders:write",
|
|
242
|
+
"poppy:browser-sign-in"
|
|
243
|
+
],
|
|
215
244
|
"protected_resources": [
|
|
216
245
|
"https://manzanita.example",
|
|
217
246
|
"https://manzanita.example/mcp"
|
|
@@ -335,12 +364,7 @@
|
|
|
335
364
|
"client_name": "Atlas",
|
|
336
365
|
"jwks_uri": "https://atlas.example/jwks.json",
|
|
337
366
|
"redirect_uris": ["https://atlas.example/oauth/callback"],
|
|
338
|
-
"token_endpoint_auth_method": "private_key_jwt"
|
|
339
|
-
"extensions": {
|
|
340
|
-
"operations": {
|
|
341
|
-
"version": "2"
|
|
342
|
-
}
|
|
343
|
-
}
|
|
367
|
+
"token_endpoint_auth_method": "private_key_jwt"
|
|
344
368
|
}
|
|
345
369
|
}
|
|
346
370
|
},
|