@datalayer/agent-runtimes 1.5.115 → 1.5.118
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 +44 -44
- 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/apps.js +16 -0
- package/lib/specs/appspecSchema.js +13 -1
- package/lib/specs/battles.js +6 -6
- package/lib/specs/protocols.js +1 -1
- package/lib/types/agentspecs.d.ts +10 -0
- package/package.json +2 -2
- package/scripts/codegen/generate_apps.py +2 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"title": "A user with a company",
|
|
4
4
|
"description": "Ada asks her personal agent, Atlas, to exchange a jacket at Manzanita Outfitters. Both sides are the PAP Python SDK's demo world: real keys and Session JWTs over in-process HTTP, recorded and redacted.",
|
|
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",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"content-type": "application/json"
|
|
92
92
|
},
|
|
93
93
|
"body": {
|
|
94
|
-
"protocol_version": "0.
|
|
94
|
+
"protocol_version": "0.4",
|
|
95
95
|
"organization": {
|
|
96
96
|
"name": "Manzanita Outfitters",
|
|
97
97
|
"domain": "manzanita.example"
|
|
@@ -108,7 +108,8 @@
|
|
|
108
108
|
"issuer": "https://manzanita.example",
|
|
109
109
|
"scopes": {
|
|
110
110
|
"orders:read": "See your orders, returns and exchanges",
|
|
111
|
-
"orders:write": "Exchange or return items in your orders"
|
|
111
|
+
"orders:write": "Exchange or return items in your orders",
|
|
112
|
+
"poppy:browser-sign-in": "Use the website signed in, with the other access you approve"
|
|
112
113
|
},
|
|
113
114
|
"scope_hints": {
|
|
114
115
|
"orders:read": {
|
|
@@ -143,25 +144,44 @@
|
|
|
143
144
|
"url": "https://manzanita.example/poppy/excluded-tasks.json"
|
|
144
145
|
},
|
|
145
146
|
"extensions": {
|
|
146
|
-
"operations":
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
147
|
+
"operations": [
|
|
148
|
+
{
|
|
149
|
+
"version": "2"
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
"links": [
|
|
153
|
+
{
|
|
154
|
+
"version": "1"
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"disclosures": [
|
|
158
|
+
{
|
|
159
|
+
"version": "1"
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
"ucp": [
|
|
163
|
+
{
|
|
164
|
+
"version": "1"
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
"mediated-sign-in": [
|
|
168
|
+
{
|
|
169
|
+
"version": "1",
|
|
170
|
+
"fields": [
|
|
171
|
+
{
|
|
172
|
+
"name": "email",
|
|
173
|
+
"label": "Email",
|
|
174
|
+
"secret": false
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "password",
|
|
178
|
+
"label": "Password",
|
|
179
|
+
"secret": true
|
|
180
|
+
}
|
|
181
|
+
],
|
|
182
|
+
"scopes": ["orders:read", "orders:write"]
|
|
183
|
+
}
|
|
184
|
+
]
|
|
165
185
|
}
|
|
166
186
|
}
|
|
167
187
|
}
|
|
@@ -185,7 +205,11 @@
|
|
|
185
205
|
"body": {
|
|
186
206
|
"resource": "https://manzanita.example",
|
|
187
207
|
"authorization_servers": ["https://manzanita.example"],
|
|
188
|
-
"scopes_supported": [
|
|
208
|
+
"scopes_supported": [
|
|
209
|
+
"orders:read",
|
|
210
|
+
"orders:write",
|
|
211
|
+
"poppy:browser-sign-in"
|
|
212
|
+
],
|
|
189
213
|
"bearer_methods_supported": ["header"]
|
|
190
214
|
}
|
|
191
215
|
}
|
|
@@ -216,7 +240,12 @@
|
|
|
216
240
|
"urn:ietf:params:oauth:grant-type:device_code",
|
|
217
241
|
"https://personalagentprotocol.org/grant/mediated-sign-in"
|
|
218
242
|
],
|
|
219
|
-
"
|
|
243
|
+
"token_endpoint_auth_methods_supported": ["private_key_jwt"],
|
|
244
|
+
"scopes_supported": [
|
|
245
|
+
"orders:read",
|
|
246
|
+
"orders:write",
|
|
247
|
+
"poppy:browser-sign-in"
|
|
248
|
+
],
|
|
220
249
|
"protected_resources": [
|
|
221
250
|
"https://manzanita.example",
|
|
222
251
|
"https://manzanita.example/mcp"
|
|
@@ -279,7 +308,7 @@
|
|
|
279
308
|
},
|
|
280
309
|
{
|
|
281
310
|
"label": "Conversation",
|
|
282
|
-
"value": "
|
|
311
|
+
"value": "open · handoff none · agent · 3 events"
|
|
283
312
|
}
|
|
284
313
|
]
|
|
285
314
|
},
|
|
@@ -298,8 +327,8 @@
|
|
|
298
327
|
"poppy-session": "‹Session JWT›"
|
|
299
328
|
},
|
|
300
329
|
"body": {
|
|
330
|
+
"id": "req_ovNAh3jL5ONFaSuJh_gCZA",
|
|
301
331
|
"message": {
|
|
302
|
-
"id": "msg_1",
|
|
303
332
|
"author": {
|
|
304
333
|
"type": "human"
|
|
305
334
|
},
|
|
@@ -319,7 +348,7 @@
|
|
|
319
348
|
"created_at": "2026-10-11T09:00:00Z",
|
|
320
349
|
"type": "message",
|
|
321
350
|
"message": {
|
|
322
|
-
"id": "
|
|
351
|
+
"id": "req_ovNAh3jL5ONFaSuJh_gCZA",
|
|
323
352
|
"author": {
|
|
324
353
|
"type": "human"
|
|
325
354
|
},
|
|
@@ -330,42 +359,31 @@
|
|
|
330
359
|
{
|
|
331
360
|
"id": "evt_2",
|
|
332
361
|
"created_at": "2026-10-11T09:00:00Z",
|
|
333
|
-
"type": "state",
|
|
334
|
-
"status": "working",
|
|
335
|
-
"responder": "agent"
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
"id": "evt_3",
|
|
339
|
-
"created_at": "2026-10-11T09:00:00Z",
|
|
340
362
|
"type": "message",
|
|
341
363
|
"message": {
|
|
342
|
-
"id": "
|
|
364
|
+
"id": "msg_1",
|
|
343
365
|
"author": {
|
|
344
366
|
"type": "agent"
|
|
345
367
|
},
|
|
346
368
|
"role": "company",
|
|
369
|
+
"as_of_request": "req_ovNAh3jL5ONFaSuJh_gCZA",
|
|
347
370
|
"text": "I can look that up once you sign in to your Manzanita account."
|
|
348
371
|
}
|
|
349
372
|
},
|
|
350
373
|
{
|
|
351
|
-
"id": "
|
|
374
|
+
"id": "evt_3",
|
|
352
375
|
"created_at": "2026-10-11T09:00:00Z",
|
|
353
376
|
"type": "authorization",
|
|
354
377
|
"error": "insufficient_scope",
|
|
355
378
|
"scope": "orders:read orders:write"
|
|
356
|
-
},
|
|
357
|
-
{
|
|
358
|
-
"id": "evt_5",
|
|
359
|
-
"created_at": "2026-10-11T09:00:00Z",
|
|
360
|
-
"type": "state",
|
|
361
|
-
"status": "idle",
|
|
362
|
-
"responder": "agent"
|
|
363
379
|
}
|
|
364
380
|
],
|
|
365
|
-
"cursor": "
|
|
381
|
+
"cursor": "evt_3",
|
|
366
382
|
"has_more": false,
|
|
367
|
-
"
|
|
368
|
-
"
|
|
383
|
+
"working": false,
|
|
384
|
+
"handoff": "none",
|
|
385
|
+
"responder": "agent",
|
|
386
|
+
"closed": false
|
|
369
387
|
}
|
|
370
388
|
}
|
|
371
389
|
},
|
|
@@ -390,12 +408,7 @@
|
|
|
390
408
|
"client_name": "Atlas",
|
|
391
409
|
"jwks_uri": "https://atlas.example/jwks.json",
|
|
392
410
|
"redirect_uris": ["https://atlas.example/oauth/callback"],
|
|
393
|
-
"token_endpoint_auth_method": "private_key_jwt"
|
|
394
|
-
"extensions": {
|
|
395
|
-
"operations": {
|
|
396
|
-
"version": "2"
|
|
397
|
-
}
|
|
398
|
-
}
|
|
411
|
+
"token_endpoint_auth_method": "private_key_jwt"
|
|
399
412
|
}
|
|
400
413
|
}
|
|
401
414
|
},
|
|
@@ -500,7 +513,7 @@
|
|
|
500
513
|
},
|
|
501
514
|
{
|
|
502
515
|
"label": "Conversation",
|
|
503
|
-
"value": "
|
|
516
|
+
"value": "open · handoff none · agent · 3 events"
|
|
504
517
|
}
|
|
505
518
|
]
|
|
506
519
|
},
|
|
@@ -681,7 +694,7 @@
|
|
|
681
694
|
},
|
|
682
695
|
{
|
|
683
696
|
"label": "Conversation",
|
|
684
|
-
"value": "
|
|
697
|
+
"value": "open · handoff none · agent · 5 events"
|
|
685
698
|
},
|
|
686
699
|
{
|
|
687
700
|
"label": "Operation orders.exchange",
|
|
@@ -695,7 +708,7 @@
|
|
|
695
708
|
"from": "atlas",
|
|
696
709
|
"to": "manzanita",
|
|
697
710
|
"method": "POST",
|
|
698
|
-
"url": "https://manzanita.example/poppy/conversations/cnv_1/messages?cursor=
|
|
711
|
+
"url": "https://manzanita.example/poppy/conversations/cnv_1/messages?cursor=evt_3&wait=0",
|
|
699
712
|
"status": 202,
|
|
700
713
|
"request": {
|
|
701
714
|
"headers": {
|
|
@@ -705,8 +718,8 @@
|
|
|
705
718
|
"poppy-session": "‹Session JWT›"
|
|
706
719
|
},
|
|
707
720
|
"body": {
|
|
721
|
+
"id": "req_llKq-t7ehB7uStAEPwA-EQ",
|
|
708
722
|
"message": {
|
|
709
|
-
"id": "msg_3",
|
|
710
723
|
"author": {
|
|
711
724
|
"type": "human"
|
|
712
725
|
},
|
|
@@ -722,11 +735,11 @@
|
|
|
722
735
|
"conversation_id": "cnv_1",
|
|
723
736
|
"events": [
|
|
724
737
|
{
|
|
725
|
-
"id": "
|
|
738
|
+
"id": "evt_4",
|
|
726
739
|
"created_at": "2026-10-11T09:00:10Z",
|
|
727
740
|
"type": "message",
|
|
728
741
|
"message": {
|
|
729
|
-
"id": "
|
|
742
|
+
"id": "req_llKq-t7ehB7uStAEPwA-EQ",
|
|
730
743
|
"author": {
|
|
731
744
|
"type": "human"
|
|
732
745
|
},
|
|
@@ -735,50 +748,50 @@
|
|
|
735
748
|
}
|
|
736
749
|
},
|
|
737
750
|
{
|
|
738
|
-
"id": "
|
|
739
|
-
"created_at": "2026-10-11T09:00:10Z",
|
|
740
|
-
"type": "state",
|
|
741
|
-
"status": "working",
|
|
742
|
-
"responder": "agent"
|
|
743
|
-
},
|
|
744
|
-
{
|
|
745
|
-
"id": "evt_8",
|
|
751
|
+
"id": "evt_5",
|
|
746
752
|
"created_at": "2026-10-11T09:00:10Z",
|
|
747
753
|
"type": "message",
|
|
748
754
|
"message": {
|
|
749
|
-
"id": "
|
|
755
|
+
"id": "msg_2",
|
|
750
756
|
"author": {
|
|
751
757
|
"type": "agent"
|
|
752
758
|
},
|
|
753
759
|
"role": "company",
|
|
760
|
+
"as_of_request": "req_llKq-t7ehB7uStAEPwA-EQ",
|
|
754
761
|
"text": "The insulated Ridge Jacket is in stock. Here is the exchange.",
|
|
755
|
-
"
|
|
756
|
-
"
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
762
|
+
"extensions": {
|
|
763
|
+
"operations": {
|
|
764
|
+
"operation": {
|
|
765
|
+
"operation_id": "op_1",
|
|
766
|
+
"revision": "rev_1",
|
|
767
|
+
"summary": "Exchange the Ridge Jacket (M) from order ord_7Hk2 for the insulated Ridge Jacket (M), USD 70.00 more.",
|
|
768
|
+
"terms": {
|
|
769
|
+
"order_id": "ord_7Hk2",
|
|
770
|
+
"price_difference": {
|
|
771
|
+
"amount": "70.00",
|
|
772
|
+
"currency": "USD"
|
|
773
|
+
}
|
|
774
|
+
},
|
|
775
|
+
"expires_at": "2026-10-11T09:15:10Z"
|
|
764
776
|
}
|
|
765
777
|
},
|
|
766
|
-
"
|
|
778
|
+
"disclosures": {
|
|
779
|
+
"items": [
|
|
780
|
+
{
|
|
781
|
+
"text": "Exchanged items ship once the original jacket is received."
|
|
782
|
+
}
|
|
783
|
+
]
|
|
784
|
+
}
|
|
767
785
|
}
|
|
768
786
|
}
|
|
769
|
-
},
|
|
770
|
-
{
|
|
771
|
-
"id": "evt_9",
|
|
772
|
-
"created_at": "2026-10-11T09:00:10Z",
|
|
773
|
-
"type": "state",
|
|
774
|
-
"status": "idle",
|
|
775
|
-
"responder": "agent"
|
|
776
787
|
}
|
|
777
788
|
],
|
|
778
|
-
"cursor": "
|
|
789
|
+
"cursor": "evt_5",
|
|
779
790
|
"has_more": false,
|
|
780
|
-
"
|
|
781
|
-
"
|
|
791
|
+
"working": false,
|
|
792
|
+
"handoff": "none",
|
|
793
|
+
"responder": "agent",
|
|
794
|
+
"closed": false
|
|
782
795
|
}
|
|
783
796
|
}
|
|
784
797
|
}
|
|
@@ -848,7 +861,7 @@
|
|
|
848
861
|
},
|
|
849
862
|
{
|
|
850
863
|
"label": "Conversation",
|
|
851
|
-
"value": "
|
|
864
|
+
"value": "open · handoff none · agent · 7 events"
|
|
852
865
|
},
|
|
853
866
|
{
|
|
854
867
|
"label": "Operation orders.exchange",
|
|
@@ -878,14 +891,19 @@
|
|
|
878
891
|
"poppy-session": "‹Session JWT›"
|
|
879
892
|
},
|
|
880
893
|
"body": {
|
|
894
|
+
"id": "req_C2RMJFzN2uY1bej9lHoFcQ",
|
|
881
895
|
"message": {
|
|
882
|
-
"id": "msg_5",
|
|
883
896
|
"author": {
|
|
884
897
|
"type": "agent"
|
|
885
898
|
},
|
|
886
|
-
"
|
|
887
|
-
"
|
|
888
|
-
|
|
899
|
+
"extensions": {
|
|
900
|
+
"operations": {
|
|
901
|
+
"approval": {
|
|
902
|
+
"operation_id": "op_1",
|
|
903
|
+
"revision": "rev_1",
|
|
904
|
+
"approved_at": 1791709210
|
|
905
|
+
}
|
|
906
|
+
}
|
|
889
907
|
}
|
|
890
908
|
}
|
|
891
909
|
}
|
|
@@ -902,7 +920,7 @@
|
|
|
902
920
|
"created_at": "2026-10-11T09:00:00Z",
|
|
903
921
|
"type": "message",
|
|
904
922
|
"message": {
|
|
905
|
-
"id": "
|
|
923
|
+
"id": "req_ovNAh3jL5ONFaSuJh_gCZA",
|
|
906
924
|
"author": {
|
|
907
925
|
"type": "human"
|
|
908
926
|
},
|
|
@@ -913,43 +931,30 @@
|
|
|
913
931
|
{
|
|
914
932
|
"id": "evt_2",
|
|
915
933
|
"created_at": "2026-10-11T09:00:00Z",
|
|
916
|
-
"type": "state",
|
|
917
|
-
"status": "working",
|
|
918
|
-
"responder": "agent"
|
|
919
|
-
},
|
|
920
|
-
{
|
|
921
|
-
"id": "evt_3",
|
|
922
|
-
"created_at": "2026-10-11T09:00:00Z",
|
|
923
934
|
"type": "message",
|
|
924
935
|
"message": {
|
|
925
|
-
"id": "
|
|
936
|
+
"id": "msg_1",
|
|
926
937
|
"author": {
|
|
927
938
|
"type": "agent"
|
|
928
939
|
},
|
|
929
940
|
"role": "company",
|
|
941
|
+
"as_of_request": "req_ovNAh3jL5ONFaSuJh_gCZA",
|
|
930
942
|
"text": "I can look that up once you sign in to your Manzanita account."
|
|
931
943
|
}
|
|
932
944
|
},
|
|
933
945
|
{
|
|
934
|
-
"id": "
|
|
946
|
+
"id": "evt_3",
|
|
935
947
|
"created_at": "2026-10-11T09:00:00Z",
|
|
936
948
|
"type": "authorization",
|
|
937
949
|
"error": "insufficient_scope",
|
|
938
950
|
"scope": "orders:read orders:write"
|
|
939
951
|
},
|
|
940
952
|
{
|
|
941
|
-
"id": "
|
|
942
|
-
"created_at": "2026-10-11T09:00:00Z",
|
|
943
|
-
"type": "state",
|
|
944
|
-
"status": "idle",
|
|
945
|
-
"responder": "agent"
|
|
946
|
-
},
|
|
947
|
-
{
|
|
948
|
-
"id": "evt_6",
|
|
953
|
+
"id": "evt_4",
|
|
949
954
|
"created_at": "2026-10-11T09:00:10Z",
|
|
950
955
|
"type": "message",
|
|
951
956
|
"message": {
|
|
952
|
-
"id": "
|
|
957
|
+
"id": "req_llKq-t7ehB7uStAEPwA-EQ",
|
|
953
958
|
"author": {
|
|
954
959
|
"type": "human"
|
|
955
960
|
},
|
|
@@ -958,78 +963,75 @@
|
|
|
958
963
|
}
|
|
959
964
|
},
|
|
960
965
|
{
|
|
961
|
-
"id": "
|
|
962
|
-
"created_at": "2026-10-11T09:00:10Z",
|
|
963
|
-
"type": "state",
|
|
964
|
-
"status": "working",
|
|
965
|
-
"responder": "agent"
|
|
966
|
-
},
|
|
967
|
-
{
|
|
968
|
-
"id": "evt_8",
|
|
966
|
+
"id": "evt_5",
|
|
969
967
|
"created_at": "2026-10-11T09:00:10Z",
|
|
970
968
|
"type": "message",
|
|
971
969
|
"message": {
|
|
972
|
-
"id": "
|
|
970
|
+
"id": "msg_2",
|
|
973
971
|
"author": {
|
|
974
972
|
"type": "agent"
|
|
975
973
|
},
|
|
976
974
|
"role": "company",
|
|
975
|
+
"as_of_request": "req_llKq-t7ehB7uStAEPwA-EQ",
|
|
977
976
|
"text": "The insulated Ridge Jacket is in stock. Here is the exchange.",
|
|
978
|
-
"
|
|
979
|
-
"
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
977
|
+
"extensions": {
|
|
978
|
+
"operations": {
|
|
979
|
+
"operation": {
|
|
980
|
+
"operation_id": "op_1",
|
|
981
|
+
"revision": "rev_1",
|
|
982
|
+
"summary": "Exchange the Ridge Jacket (M) from order ord_7Hk2 for the insulated Ridge Jacket (M), USD 70.00 more.",
|
|
983
|
+
"terms": {
|
|
984
|
+
"order_id": "ord_7Hk2",
|
|
985
|
+
"price_difference": {
|
|
986
|
+
"amount": "70.00",
|
|
987
|
+
"currency": "USD"
|
|
988
|
+
}
|
|
989
|
+
},
|
|
990
|
+
"expires_at": "2026-10-11T09:15:10Z"
|
|
987
991
|
}
|
|
988
992
|
},
|
|
989
|
-
"
|
|
993
|
+
"disclosures": {
|
|
994
|
+
"items": [
|
|
995
|
+
{
|
|
996
|
+
"text": "Exchanged items ship once the original jacket is received."
|
|
997
|
+
}
|
|
998
|
+
]
|
|
999
|
+
}
|
|
990
1000
|
}
|
|
991
1001
|
}
|
|
992
1002
|
},
|
|
993
1003
|
{
|
|
994
|
-
"id": "
|
|
995
|
-
"created_at": "2026-10-11T09:00:10Z",
|
|
996
|
-
"type": "state",
|
|
997
|
-
"status": "idle",
|
|
998
|
-
"responder": "agent"
|
|
999
|
-
},
|
|
1000
|
-
{
|
|
1001
|
-
"id": "evt_10",
|
|
1004
|
+
"id": "evt_6",
|
|
1002
1005
|
"created_at": "2026-10-11T09:00:10Z",
|
|
1003
1006
|
"type": "message",
|
|
1004
1007
|
"message": {
|
|
1005
|
-
"id": "
|
|
1008
|
+
"id": "req_C2RMJFzN2uY1bej9lHoFcQ",
|
|
1006
1009
|
"author": {
|
|
1007
1010
|
"type": "agent"
|
|
1008
1011
|
},
|
|
1009
|
-
"
|
|
1010
|
-
"
|
|
1011
|
-
|
|
1012
|
+
"extensions": {
|
|
1013
|
+
"operations": {
|
|
1014
|
+
"approval": {
|
|
1015
|
+
"operation_id": "op_1",
|
|
1016
|
+
"revision": "rev_1",
|
|
1017
|
+
"approved_at": 1791709210
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1012
1020
|
},
|
|
1013
1021
|
"role": "user"
|
|
1014
1022
|
}
|
|
1015
1023
|
},
|
|
1016
1024
|
{
|
|
1017
|
-
"id": "
|
|
1018
|
-
"created_at": "2026-10-11T09:00:10Z",
|
|
1019
|
-
"type": "state",
|
|
1020
|
-
"status": "working",
|
|
1021
|
-
"responder": "agent"
|
|
1022
|
-
},
|
|
1023
|
-
{
|
|
1024
|
-
"id": "evt_12",
|
|
1025
|
+
"id": "evt_7",
|
|
1025
1026
|
"created_at": "2026-10-11T09:00:10Z",
|
|
1026
1027
|
"type": "message",
|
|
1027
1028
|
"message": {
|
|
1028
|
-
"id": "
|
|
1029
|
+
"id": "msg_3",
|
|
1029
1030
|
"author": {
|
|
1030
1031
|
"type": "agent"
|
|
1031
1032
|
},
|
|
1032
1033
|
"role": "company",
|
|
1034
|
+
"as_of_request": "req_C2RMJFzN2uY1bej9lHoFcQ",
|
|
1033
1035
|
"text": "Exchanged the Ridge Jacket (M) for the insulated Ridge Jacket (M). USD 70.00 charged to the card ending 4242; a return label was emailed.",
|
|
1034
1036
|
"data": {
|
|
1035
1037
|
"order_id": "ord_7Hk2",
|
|
@@ -1039,19 +1041,14 @@
|
|
|
1039
1041
|
}
|
|
1040
1042
|
}
|
|
1041
1043
|
}
|
|
1042
|
-
},
|
|
1043
|
-
{
|
|
1044
|
-
"id": "evt_13",
|
|
1045
|
-
"created_at": "2026-10-11T09:00:10Z",
|
|
1046
|
-
"type": "state",
|
|
1047
|
-
"status": "idle",
|
|
1048
|
-
"responder": "agent"
|
|
1049
1044
|
}
|
|
1050
1045
|
],
|
|
1051
|
-
"cursor": "
|
|
1046
|
+
"cursor": "evt_7",
|
|
1052
1047
|
"has_more": false,
|
|
1053
|
-
"
|
|
1054
|
-
"
|
|
1048
|
+
"working": false,
|
|
1049
|
+
"handoff": "none",
|
|
1050
|
+
"responder": "agent",
|
|
1051
|
+
"closed": false
|
|
1055
1052
|
}
|
|
1056
1053
|
}
|
|
1057
1054
|
}
|
|
@@ -1107,7 +1104,7 @@
|
|
|
1107
1104
|
},
|
|
1108
1105
|
{
|
|
1109
1106
|
"label": "Conversation",
|
|
1110
|
-
"value": "
|
|
1107
|
+
"value": "open · handoff none · agent · 7 events"
|
|
1111
1108
|
},
|
|
1112
1109
|
{
|
|
1113
1110
|
"label": "Operation orders.exchange",
|
|
@@ -83,6 +83,7 @@ export declare function useCheckpointAgent(): import("@tanstack/react-query").Us
|
|
|
83
83
|
success: boolean;
|
|
84
84
|
message: string;
|
|
85
85
|
checkpoint_id: string | null;
|
|
86
|
+
runtime_uid?: string;
|
|
86
87
|
}, Error, CheckpointAgentParams, unknown>;
|
|
87
88
|
/**
|
|
88
89
|
* Hook to terminate an agent runtime (delete it).
|
|
@@ -163,5 +164,6 @@ export declare function useCheckpoints(): {
|
|
|
163
164
|
success: boolean;
|
|
164
165
|
message: string;
|
|
165
166
|
checkpoint_id: string | null;
|
|
167
|
+
runtime_uid?: string;
|
|
166
168
|
}, Error, CheckpointAgentParams, unknown>;
|
|
167
169
|
};
|
package/lib/pap/index.d.ts
CHANGED
|
@@ -23,6 +23,10 @@ export interface PapCompanySummary {
|
|
|
23
23
|
/** The domains whose `poppy.json` names this issuer (`protected_resources`). */
|
|
24
24
|
readonly protectedResources: readonly string[];
|
|
25
25
|
readonly interfaces: readonly string[];
|
|
26
|
+
/**
|
|
27
|
+
* The extensions a Session with it declares, one version each (`Poppy-Extensions`, PAP draft
|
|
28
|
+
* 0.4 §3.3, §3.4): each it lists at a version this agent implements.
|
|
29
|
+
*/
|
|
26
30
|
readonly extensions: Readonly<Record<string, string>>;
|
|
27
31
|
}
|
|
28
32
|
/** Verified public personal-agent identity safe for model and UI surfaces. */
|
|
@@ -31,6 +35,10 @@ export interface PapAgentIdentitySummary {
|
|
|
31
35
|
readonly clientName: string;
|
|
32
36
|
readonly redirectCount: number;
|
|
33
37
|
readonly signingAlgorithms: readonly string[];
|
|
38
|
+
/**
|
|
39
|
+
* The extensions this personal agent implements, one version each, declared per Session (PAP
|
|
40
|
+
* draft 0.4 §3.3): client metadata lists none any more.
|
|
41
|
+
*/
|
|
34
42
|
readonly extensions: Readonly<Record<string, string>>;
|
|
35
43
|
}
|
|
36
44
|
type DiscoverCompany = (domain: string, options?: DiscoveryOptions) => Promise<DiscoveredCompany>;
|
package/lib/pap/index.js
CHANGED
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2025-2026 Datalayer, Inc.
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
|
-
import { AgentIdentityClient, discoverCompany, mediatedSignIn, offersDevice, offersDirect, } from '@datalayer/personal-agent-protocol';
|
|
6
|
-
function extensionVersions(extensions) {
|
|
7
|
-
return Object.freeze(Object.fromEntries(Object.entries(extensions).map(([name, value]) => [name, value.version])));
|
|
8
|
-
}
|
|
5
|
+
import { AgentIdentityClient, discoverCompany, mediatedSignIn, negotiateExtensions, offersDevice, SUPPORTED_EXTENSIONS, offersDirect, } from '@datalayer/personal-agent-protocol';
|
|
9
6
|
/**
|
|
10
7
|
* Use PAP clients while enforcing Agent Runtimes' public-summary boundary.
|
|
11
8
|
*
|
|
@@ -53,7 +50,7 @@ export class PapPersonalAgentCapability {
|
|
|
53
50
|
...(oauthMetadata?.protected_resources ?? []),
|
|
54
51
|
]),
|
|
55
52
|
interfaces: Object.freeze(interfaces),
|
|
56
|
-
extensions:
|
|
53
|
+
extensions: Object.freeze(negotiateExtensions(document.extensions)),
|
|
57
54
|
});
|
|
58
55
|
}
|
|
59
56
|
async inspectAgent(clientId, options = {}) {
|
|
@@ -67,7 +64,7 @@ export class PapPersonalAgentCapability {
|
|
|
67
64
|
clientName: metadata.client_name,
|
|
68
65
|
redirectCount: metadata.redirect_uris.length,
|
|
69
66
|
signingAlgorithms: Object.freeze(signingAlgorithms),
|
|
70
|
-
extensions:
|
|
67
|
+
extensions: Object.freeze({ ...SUPPORTED_EXTENSIONS }),
|
|
71
68
|
});
|
|
72
69
|
}
|
|
73
70
|
}
|