@datalayer/agent-runtimes 1.6.42 → 1.6.45
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 +85 -85
- package/lib/apps/plugins/assistant/index.d.ts +2 -1
- package/lib/apps/plugins/assistant/index.js +61 -78
- package/lib/chat/assistant/AssistantStage.d.ts +10 -2
- package/lib/chat/assistant/AssistantStage.js +36 -5
- package/lib/chat/assistant/SpeechBalloon.d.ts +23 -1
- package/lib/chat/assistant/SpeechBalloon.js +37 -5
- package/lib/examples/pap/PapCompanyDiscoveryView.js +4 -4
- package/lib/examples/pap/PapGuidedJourneyView.js +9 -9
- package/lib/examples/pap/PapSessionLifecycleView.js +4 -1
- package/lib/examples/pap/traces/account-tokens.json +9 -3
- package/lib/examples/pap/traces/conversation-control.json +19 -13
- package/lib/examples/pap/traces/conversation-streaming.json +13 -7
- package/lib/examples/pap/traces/mediated-sign-in.json +9 -3
- package/lib/examples/pap/traces/operations.json +31 -25
- package/lib/examples/pap/traces/two-companies.json +25 -25
- package/lib/examples/pap/traces/user-with-a-company.json +22 -16
- package/lib/pap/index.d.ts +12 -0
- package/lib/pap/index.js +19 -2
- package/lib/specs/mcpServers.js +1 -1
- package/lib/specs/protocols.js +1 -1
- package/lib/specs/scenes.js +5 -5
- package/package.json +3 -2
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"title": "Two companies working together",
|
|
4
4
|
"description": "Ledgerly, an accounting firm, is a PAP company to Ada's agent Atlas and a PAP personal agent at Northwind Bank for her. Every approval is Ada's. This is composition: draft 0.4 defines no company-to-company protocol.",
|
|
5
5
|
"generator": "examples/personal-agent-protocol/traces/generate.py",
|
|
6
|
-
"sdk": "personal-agent-protocol 0.
|
|
6
|
+
"sdk": "personal-agent-protocol 0.35.0",
|
|
7
7
|
"parties": [
|
|
8
8
|
{
|
|
9
9
|
"id": "user",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"content-type": "application/json"
|
|
116
116
|
},
|
|
117
117
|
"body": {
|
|
118
|
-
"protocol_version": "0
|
|
118
|
+
"protocol_version": "1.0",
|
|
119
119
|
"organization": {
|
|
120
120
|
"name": "Ledgerly",
|
|
121
121
|
"domain": "ledgerly.example"
|
|
@@ -544,7 +544,7 @@
|
|
|
544
544
|
"poppy-session": "‹Session JWT›"
|
|
545
545
|
},
|
|
546
546
|
"body": {
|
|
547
|
-
"id": "
|
|
547
|
+
"id": "req_vYutOtJ2qQuU-yO4gpnqBw",
|
|
548
548
|
"message": {
|
|
549
549
|
"author": {
|
|
550
550
|
"type": "human"
|
|
@@ -565,7 +565,7 @@
|
|
|
565
565
|
"created_at": "2026-10-11T09:00:05Z",
|
|
566
566
|
"type": "message",
|
|
567
567
|
"message": {
|
|
568
|
-
"id": "
|
|
568
|
+
"id": "req_vYutOtJ2qQuU-yO4gpnqBw",
|
|
569
569
|
"author": {
|
|
570
570
|
"type": "human"
|
|
571
571
|
},
|
|
@@ -583,7 +583,7 @@
|
|
|
583
583
|
"type": "agent"
|
|
584
584
|
},
|
|
585
585
|
"role": "company",
|
|
586
|
-
"as_of_request": "
|
|
586
|
+
"as_of_request": "req_vYutOtJ2qQuU-yO4gpnqBw",
|
|
587
587
|
"text": "To pay from your Northwind account, let Ledgerly connect to it: open https://northwind.example/device and enter the code shown with this message. Tell me when done.",
|
|
588
588
|
"data": {
|
|
589
589
|
"connect": {
|
|
@@ -1071,7 +1071,7 @@
|
|
|
1071
1071
|
"poppy-session": "‹Session JWT›"
|
|
1072
1072
|
},
|
|
1073
1073
|
"body": {
|
|
1074
|
-
"id": "
|
|
1074
|
+
"id": "req_NhXxaDutQvqutSVPmWpDNg",
|
|
1075
1075
|
"message": {
|
|
1076
1076
|
"author": {
|
|
1077
1077
|
"type": "human"
|
|
@@ -1092,7 +1092,7 @@
|
|
|
1092
1092
|
"created_at": "2026-10-11T09:00:10Z",
|
|
1093
1093
|
"type": "message",
|
|
1094
1094
|
"message": {
|
|
1095
|
-
"id": "
|
|
1095
|
+
"id": "req_NhXxaDutQvqutSVPmWpDNg",
|
|
1096
1096
|
"author": {
|
|
1097
1097
|
"type": "human"
|
|
1098
1098
|
},
|
|
@@ -1110,7 +1110,7 @@
|
|
|
1110
1110
|
"type": "agent"
|
|
1111
1111
|
},
|
|
1112
1112
|
"role": "company",
|
|
1113
|
-
"as_of_request": "
|
|
1113
|
+
"as_of_request": "req_NhXxaDutQvqutSVPmWpDNg",
|
|
1114
1114
|
"text": "Northwind Bank asks approval for this payment.",
|
|
1115
1115
|
"extensions": {
|
|
1116
1116
|
"operations": {
|
|
@@ -1194,7 +1194,7 @@
|
|
|
1194
1194
|
"poppy-session": "‹Session JWT›"
|
|
1195
1195
|
},
|
|
1196
1196
|
"body": {
|
|
1197
|
-
"id": "
|
|
1197
|
+
"id": "req_9QIZXi7HZJa3RNGrypsikg",
|
|
1198
1198
|
"message": {
|
|
1199
1199
|
"author": {
|
|
1200
1200
|
"type": "agent"
|
|
@@ -1215,7 +1215,7 @@
|
|
|
1215
1215
|
"created_at": "2026-10-11T09:00:10Z",
|
|
1216
1216
|
"type": "message",
|
|
1217
1217
|
"message": {
|
|
1218
|
-
"id": "
|
|
1218
|
+
"id": "req_9QIZXi7HZJa3RNGrypsikg",
|
|
1219
1219
|
"author": {
|
|
1220
1220
|
"type": "agent"
|
|
1221
1221
|
},
|
|
@@ -1233,7 +1233,7 @@
|
|
|
1233
1233
|
"type": "agent"
|
|
1234
1234
|
},
|
|
1235
1235
|
"role": "company",
|
|
1236
|
-
"as_of_request": "
|
|
1236
|
+
"as_of_request": "req_9QIZXi7HZJa3RNGrypsikg",
|
|
1237
1237
|
"text": "Ready to pay INV-0042.",
|
|
1238
1238
|
"extensions": {
|
|
1239
1239
|
"operations": {
|
|
@@ -1409,7 +1409,7 @@
|
|
|
1409
1409
|
"poppy-session": "‹Session JWT›"
|
|
1410
1410
|
},
|
|
1411
1411
|
"body": {
|
|
1412
|
-
"id": "
|
|
1412
|
+
"id": "req_c-QcE1Wd2ItKx7n4T0o7UQ",
|
|
1413
1413
|
"message": {
|
|
1414
1414
|
"author": {
|
|
1415
1415
|
"type": "agent"
|
|
@@ -1439,7 +1439,7 @@
|
|
|
1439
1439
|
"created_at": "2026-10-11T09:00:10Z",
|
|
1440
1440
|
"type": "message",
|
|
1441
1441
|
"message": {
|
|
1442
|
-
"id": "
|
|
1442
|
+
"id": "req_c-QcE1Wd2ItKx7n4T0o7UQ",
|
|
1443
1443
|
"author": {
|
|
1444
1444
|
"type": "agent"
|
|
1445
1445
|
},
|
|
@@ -1466,7 +1466,7 @@
|
|
|
1466
1466
|
"type": "agent"
|
|
1467
1467
|
},
|
|
1468
1468
|
"role": "company",
|
|
1469
|
-
"as_of_request": "
|
|
1469
|
+
"as_of_request": "req_c-QcE1Wd2ItKx7n4T0o7UQ",
|
|
1470
1470
|
"text": "Northwind Bank: Sent EUR 1250.00 to Acme GmbH for INV-0042 from DE89 3704 0044 0532 0130 00. Bank reference NW-0001.",
|
|
1471
1471
|
"data": {
|
|
1472
1472
|
"bank_reference": "NW-0001"
|
|
@@ -1498,7 +1498,7 @@
|
|
|
1498
1498
|
"poppy-session": "‹Session JWT›"
|
|
1499
1499
|
},
|
|
1500
1500
|
"body": {
|
|
1501
|
-
"id": "
|
|
1501
|
+
"id": "req_f3k-NJgNiufNuGSkqMj7lg",
|
|
1502
1502
|
"message": {
|
|
1503
1503
|
"author": {
|
|
1504
1504
|
"type": "agent"
|
|
@@ -1527,7 +1527,7 @@
|
|
|
1527
1527
|
"created_at": "2026-10-11T09:00:10Z",
|
|
1528
1528
|
"type": "message",
|
|
1529
1529
|
"message": {
|
|
1530
|
-
"id": "
|
|
1530
|
+
"id": "req_9QIZXi7HZJa3RNGrypsikg",
|
|
1531
1531
|
"author": {
|
|
1532
1532
|
"type": "agent"
|
|
1533
1533
|
},
|
|
@@ -1545,7 +1545,7 @@
|
|
|
1545
1545
|
"type": "agent"
|
|
1546
1546
|
},
|
|
1547
1547
|
"role": "company",
|
|
1548
|
-
"as_of_request": "
|
|
1548
|
+
"as_of_request": "req_9QIZXi7HZJa3RNGrypsikg",
|
|
1549
1549
|
"text": "Ready to pay INV-0042.",
|
|
1550
1550
|
"extensions": {
|
|
1551
1551
|
"operations": {
|
|
@@ -1573,7 +1573,7 @@
|
|
|
1573
1573
|
"created_at": "2026-10-11T09:00:10Z",
|
|
1574
1574
|
"type": "message",
|
|
1575
1575
|
"message": {
|
|
1576
|
-
"id": "
|
|
1576
|
+
"id": "req_f3k-NJgNiufNuGSkqMj7lg",
|
|
1577
1577
|
"author": {
|
|
1578
1578
|
"type": "agent"
|
|
1579
1579
|
},
|
|
@@ -1599,7 +1599,7 @@
|
|
|
1599
1599
|
"type": "agent"
|
|
1600
1600
|
},
|
|
1601
1601
|
"role": "company",
|
|
1602
|
-
"as_of_request": "
|
|
1602
|
+
"as_of_request": "req_f3k-NJgNiufNuGSkqMj7lg",
|
|
1603
1603
|
"text": "Sent EUR 1250.00 to Acme GmbH for INV-0042 from DE89 3704 0044 0532 0130 00. Bank reference NW-0001.",
|
|
1604
1604
|
"data": {
|
|
1605
1605
|
"bank_reference": "NW-0001"
|
|
@@ -1770,7 +1770,7 @@
|
|
|
1770
1770
|
"poppy-session": "‹Session JWT›"
|
|
1771
1771
|
},
|
|
1772
1772
|
"body": {
|
|
1773
|
-
"id": "
|
|
1773
|
+
"id": "req_QkRkXLBCPW-hKDOXyxElNw",
|
|
1774
1774
|
"message": {
|
|
1775
1775
|
"author": {
|
|
1776
1776
|
"type": "human"
|
|
@@ -1791,7 +1791,7 @@
|
|
|
1791
1791
|
"created_at": "2026-10-11T09:00:10Z",
|
|
1792
1792
|
"type": "message",
|
|
1793
1793
|
"message": {
|
|
1794
|
-
"id": "
|
|
1794
|
+
"id": "req_QkRkXLBCPW-hKDOXyxElNw",
|
|
1795
1795
|
"author": {
|
|
1796
1796
|
"type": "human"
|
|
1797
1797
|
},
|
|
@@ -1809,7 +1809,7 @@
|
|
|
1809
1809
|
"type": "agent"
|
|
1810
1810
|
},
|
|
1811
1811
|
"role": "company",
|
|
1812
|
-
"as_of_request": "
|
|
1812
|
+
"as_of_request": "req_QkRkXLBCPW-hKDOXyxElNw",
|
|
1813
1813
|
"text": "Northwind Bank asks approval for this payment.",
|
|
1814
1814
|
"extensions": {
|
|
1815
1815
|
"operations": {
|
|
@@ -1859,7 +1859,7 @@
|
|
|
1859
1859
|
"poppy-session": "‹Session JWT›"
|
|
1860
1860
|
},
|
|
1861
1861
|
"body": {
|
|
1862
|
-
"id": "
|
|
1862
|
+
"id": "req_RjYhoBJ5ENHueY1nKrgZNA",
|
|
1863
1863
|
"message": {
|
|
1864
1864
|
"author": {
|
|
1865
1865
|
"type": "agent"
|
|
@@ -1880,7 +1880,7 @@
|
|
|
1880
1880
|
"created_at": "2026-10-11T09:00:10Z",
|
|
1881
1881
|
"type": "message",
|
|
1882
1882
|
"message": {
|
|
1883
|
-
"id": "
|
|
1883
|
+
"id": "req_RjYhoBJ5ENHueY1nKrgZNA",
|
|
1884
1884
|
"author": {
|
|
1885
1885
|
"type": "agent"
|
|
1886
1886
|
},
|
|
@@ -1898,7 +1898,7 @@
|
|
|
1898
1898
|
"type": "agent"
|
|
1899
1899
|
},
|
|
1900
1900
|
"role": "company",
|
|
1901
|
-
"as_of_request": "
|
|
1901
|
+
"as_of_request": "req_RjYhoBJ5ENHueY1nKrgZNA",
|
|
1902
1902
|
"text": "Ready to pay INV-0043.",
|
|
1903
1903
|
"extensions": {
|
|
1904
1904
|
"operations": {
|
|
@@ -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.35.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": "1.0",
|
|
95
95
|
"organization": {
|
|
96
96
|
"name": "Manzanita Outfitters",
|
|
97
97
|
"domain": "manzanita.example"
|
|
@@ -143,7 +143,13 @@
|
|
|
143
143
|
"extensions": {
|
|
144
144
|
"operations": [
|
|
145
145
|
{
|
|
146
|
-
"version": "3"
|
|
146
|
+
"version": "3",
|
|
147
|
+
"endpoint": "https://manzanita.example/poppy/operations"
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"browser-control": [
|
|
151
|
+
{
|
|
152
|
+
"version": "1"
|
|
147
153
|
}
|
|
148
154
|
],
|
|
149
155
|
"links": [
|
|
@@ -325,7 +331,7 @@
|
|
|
325
331
|
"poppy-session": "‹Session JWT›"
|
|
326
332
|
},
|
|
327
333
|
"body": {
|
|
328
|
-
"id": "
|
|
334
|
+
"id": "req_PxYRyHUldxCFP_o8JAo77g",
|
|
329
335
|
"message": {
|
|
330
336
|
"author": {
|
|
331
337
|
"type": "human"
|
|
@@ -346,7 +352,7 @@
|
|
|
346
352
|
"created_at": "2026-10-11T09:00:00Z",
|
|
347
353
|
"type": "message",
|
|
348
354
|
"message": {
|
|
349
|
-
"id": "
|
|
355
|
+
"id": "req_PxYRyHUldxCFP_o8JAo77g",
|
|
350
356
|
"author": {
|
|
351
357
|
"type": "human"
|
|
352
358
|
},
|
|
@@ -364,7 +370,7 @@
|
|
|
364
370
|
"type": "agent"
|
|
365
371
|
},
|
|
366
372
|
"role": "company",
|
|
367
|
-
"as_of_request": "
|
|
373
|
+
"as_of_request": "req_PxYRyHUldxCFP_o8JAo77g",
|
|
368
374
|
"text": "I can look that up once you sign in to your Manzanita account."
|
|
369
375
|
}
|
|
370
376
|
},
|
|
@@ -716,7 +722,7 @@
|
|
|
716
722
|
"poppy-session": "‹Session JWT›"
|
|
717
723
|
},
|
|
718
724
|
"body": {
|
|
719
|
-
"id": "
|
|
725
|
+
"id": "req_28EuVp1ddftp90iT4IeLkg",
|
|
720
726
|
"message": {
|
|
721
727
|
"author": {
|
|
722
728
|
"type": "human"
|
|
@@ -737,7 +743,7 @@
|
|
|
737
743
|
"created_at": "2026-10-11T09:00:10Z",
|
|
738
744
|
"type": "message",
|
|
739
745
|
"message": {
|
|
740
|
-
"id": "
|
|
746
|
+
"id": "req_28EuVp1ddftp90iT4IeLkg",
|
|
741
747
|
"author": {
|
|
742
748
|
"type": "human"
|
|
743
749
|
},
|
|
@@ -755,7 +761,7 @@
|
|
|
755
761
|
"type": "agent"
|
|
756
762
|
},
|
|
757
763
|
"role": "company",
|
|
758
|
-
"as_of_request": "
|
|
764
|
+
"as_of_request": "req_28EuVp1ddftp90iT4IeLkg",
|
|
759
765
|
"text": "The insulated Ridge Jacket is in stock. Here is the exchange.",
|
|
760
766
|
"extensions": {
|
|
761
767
|
"operations": {
|
|
@@ -889,7 +895,7 @@
|
|
|
889
895
|
"poppy-session": "‹Session JWT›"
|
|
890
896
|
},
|
|
891
897
|
"body": {
|
|
892
|
-
"id": "
|
|
898
|
+
"id": "req_iTqaMHzxs0QwGGK_nC24hA",
|
|
893
899
|
"message": {
|
|
894
900
|
"author": {
|
|
895
901
|
"type": "agent"
|
|
@@ -919,7 +925,7 @@
|
|
|
919
925
|
"created_at": "2026-10-11T09:00:00Z",
|
|
920
926
|
"type": "message",
|
|
921
927
|
"message": {
|
|
922
|
-
"id": "
|
|
928
|
+
"id": "req_PxYRyHUldxCFP_o8JAo77g",
|
|
923
929
|
"author": {
|
|
924
930
|
"type": "human"
|
|
925
931
|
},
|
|
@@ -937,7 +943,7 @@
|
|
|
937
943
|
"type": "agent"
|
|
938
944
|
},
|
|
939
945
|
"role": "company",
|
|
940
|
-
"as_of_request": "
|
|
946
|
+
"as_of_request": "req_PxYRyHUldxCFP_o8JAo77g",
|
|
941
947
|
"text": "I can look that up once you sign in to your Manzanita account."
|
|
942
948
|
}
|
|
943
949
|
},
|
|
@@ -953,7 +959,7 @@
|
|
|
953
959
|
"created_at": "2026-10-11T09:00:10Z",
|
|
954
960
|
"type": "message",
|
|
955
961
|
"message": {
|
|
956
|
-
"id": "
|
|
962
|
+
"id": "req_28EuVp1ddftp90iT4IeLkg",
|
|
957
963
|
"author": {
|
|
958
964
|
"type": "human"
|
|
959
965
|
},
|
|
@@ -971,7 +977,7 @@
|
|
|
971
977
|
"type": "agent"
|
|
972
978
|
},
|
|
973
979
|
"role": "company",
|
|
974
|
-
"as_of_request": "
|
|
980
|
+
"as_of_request": "req_28EuVp1ddftp90iT4IeLkg",
|
|
975
981
|
"text": "The insulated Ridge Jacket is in stock. Here is the exchange.",
|
|
976
982
|
"extensions": {
|
|
977
983
|
"operations": {
|
|
@@ -1004,7 +1010,7 @@
|
|
|
1004
1010
|
"created_at": "2026-10-11T09:00:10Z",
|
|
1005
1011
|
"type": "message",
|
|
1006
1012
|
"message": {
|
|
1007
|
-
"id": "
|
|
1013
|
+
"id": "req_iTqaMHzxs0QwGGK_nC24hA",
|
|
1008
1014
|
"author": {
|
|
1009
1015
|
"type": "agent"
|
|
1010
1016
|
},
|
|
@@ -1031,7 +1037,7 @@
|
|
|
1031
1037
|
"type": "agent"
|
|
1032
1038
|
},
|
|
1033
1039
|
"role": "company",
|
|
1034
|
-
"as_of_request": "
|
|
1040
|
+
"as_of_request": "req_iTqaMHzxs0QwGGK_nC24hA",
|
|
1035
1041
|
"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.",
|
|
1036
1042
|
"data": {
|
|
1037
1043
|
"order_id": "ord_7Hk2",
|
package/lib/pap/index.d.ts
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import { type DiscoveredCompany, type DiscoveryOptions, type JsonWebKeySet, type ClientMetadata, type IdentityRequestOptions } from '@datalayer/personal-agent-protocol';
|
|
2
|
+
/**
|
|
3
|
+
* The one PAP version Agent Runtimes speaks: the newest its SDK implements
|
|
4
|
+
* (the 1.0 draft with personal-agent-protocol 0.35). Announced and accepted
|
|
5
|
+
* alone: a company serving only older versions is refused at discovery,
|
|
6
|
+
* never negotiated down to.
|
|
7
|
+
*/
|
|
8
|
+
export declare const PAP_PROTOCOL_VERSION: string;
|
|
2
9
|
/** Verified public company capabilities safe for model and UI surfaces. */
|
|
3
10
|
export interface PapCompanySummary {
|
|
4
11
|
readonly organization: string;
|
|
5
12
|
readonly domain: string;
|
|
13
|
+
/**
|
|
14
|
+
* The name with the domain beside it (`organizationLabel`): the name is what
|
|
15
|
+
* the domain says about itself, unconfirmed (PAP 1.0 §10.3), never shown alone.
|
|
16
|
+
*/
|
|
17
|
+
readonly label: string;
|
|
6
18
|
readonly protocolVersion: string;
|
|
7
19
|
readonly issuer: string | null;
|
|
8
20
|
/**
|
package/lib/pap/index.js
CHANGED
|
@@ -2,7 +2,19 @@
|
|
|
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, negotiateExtensions, offersDevice, SUPPORTED_EXTENSIONS, offersDirect, } from '@datalayer/personal-agent-protocol';
|
|
5
|
+
import { AVAILABLE_PROTOCOL_VERSIONS, AgentIdentityClient, discoverCompany, mediatedSignIn, negotiateExtensions, offersDevice, SUPPORTED_EXTENSIONS, offersDirect, organizationLabel, parseVersion, } from '@datalayer/personal-agent-protocol';
|
|
6
|
+
/**
|
|
7
|
+
* The one PAP version Agent Runtimes speaks: the newest its SDK implements
|
|
8
|
+
* (the 1.0 draft with personal-agent-protocol 0.35). Announced and accepted
|
|
9
|
+
* alone: a company serving only older versions is refused at discovery,
|
|
10
|
+
* never negotiated down to.
|
|
11
|
+
*/
|
|
12
|
+
export const PAP_PROTOCOL_VERSION = [
|
|
13
|
+
...AVAILABLE_PROTOCOL_VERSIONS,
|
|
14
|
+
].reduce((newest, version) => {
|
|
15
|
+
const [a, b] = [parseVersion(newest), parseVersion(version)];
|
|
16
|
+
return b[0] > a[0] || (b[0] === a[0] && b[1] > a[1]) ? version : newest;
|
|
17
|
+
});
|
|
6
18
|
/**
|
|
7
19
|
* Use PAP clients while enforcing Agent Runtimes' public-summary boundary.
|
|
8
20
|
*
|
|
@@ -18,7 +30,11 @@ export class PapPersonalAgentCapability {
|
|
|
18
30
|
this.#identity = options.identity ?? new AgentIdentityClient();
|
|
19
31
|
}
|
|
20
32
|
async discoverCompany(domain, options = {}) {
|
|
21
|
-
|
|
33
|
+
// At the one version Agent Runtimes speaks, whatever else the caller passes.
|
|
34
|
+
const company = await this.#discover(domain, {
|
|
35
|
+
...options,
|
|
36
|
+
protocolVersions: [PAP_PROTOCOL_VERSION],
|
|
37
|
+
});
|
|
22
38
|
const { document, oauthMetadata } = company;
|
|
23
39
|
const auth = document.auth;
|
|
24
40
|
const signIn = [
|
|
@@ -35,6 +51,7 @@ export class PapPersonalAgentCapability {
|
|
|
35
51
|
return Object.freeze({
|
|
36
52
|
organization: document.organization.name,
|
|
37
53
|
domain: document.organization.domain,
|
|
54
|
+
label: organizationLabel(document.organization),
|
|
38
55
|
protocolVersion: document.protocol_version,
|
|
39
56
|
issuer: oauthMetadata?.issuer ?? null,
|
|
40
57
|
signIn: Object.freeze(signIn),
|
package/lib/specs/mcpServers.js
CHANGED
|
@@ -193,7 +193,7 @@ export const DATALAYER_MCP_SERVER_0_0_1 = {
|
|
|
193
193
|
args: [],
|
|
194
194
|
headers: { Authorization: 'Bearer ${DATALAYER_API_KEY}' },
|
|
195
195
|
transport: 'streamable-http',
|
|
196
|
-
enabled:
|
|
196
|
+
enabled: true,
|
|
197
197
|
isAvailable: false,
|
|
198
198
|
tools: [],
|
|
199
199
|
requiredEnvVars: ['DATALAYER_API_KEY:0.0.1'],
|
package/lib/specs/protocols.js
CHANGED
|
@@ -114,7 +114,7 @@ export const PAP_PROTOCOL_0_0_1 = {
|
|
|
114
114
|
publisher: 'Sierra, Meta',
|
|
115
115
|
layer: 'consent',
|
|
116
116
|
specUrl: 'https://personalagentprotocol.org',
|
|
117
|
-
specVersion: 'draft 0
|
|
117
|
+
specVersion: 'draft 1.0',
|
|
118
118
|
status: 'shipped',
|
|
119
119
|
connects: "Companies, as a person's agent there, or being one",
|
|
120
120
|
packages: {
|
package/lib/specs/scenes.js
CHANGED
|
@@ -1530,7 +1530,7 @@ export const PAP_A_PERSON_AND_A_COMPANY_SCENE_0_0_1 = {
|
|
|
1530
1530
|
says: 'Asks Ada to sign in at Manzanita, on Manzanita’s own page.',
|
|
1531
1531
|
card: {
|
|
1532
1532
|
kind: 'sign-in',
|
|
1533
|
-
title: 'Sign in at Manzanita Outfitters',
|
|
1533
|
+
title: 'Sign in at Manzanita Outfitters (manzanita.example)',
|
|
1534
1534
|
rows: [],
|
|
1535
1535
|
lines: [
|
|
1536
1536
|
'Your agent asks to see your orders.',
|
|
@@ -1679,7 +1679,7 @@ export const PAP_APPROVE_ONCE_SCENE_0_0_1 = {
|
|
|
1679
1679
|
says: 'Every operation is Ada’s to approve: it waits for her.',
|
|
1680
1680
|
card: {
|
|
1681
1681
|
kind: 'approval',
|
|
1682
|
-
title: 'Manzanita Outfitters asks you to confirm',
|
|
1682
|
+
title: 'Manzanita Outfitters (manzanita.example) asks you to confirm',
|
|
1683
1683
|
rows: [
|
|
1684
1684
|
['Order', 'ord_7Hk2'],
|
|
1685
1685
|
['Price difference', 'USD 70.00'],
|
|
@@ -1847,7 +1847,7 @@ export const PAP_TWO_COMPANIES_SCENE_0_0_1 = {
|
|
|
1847
1847
|
says: 'Passes the bank’s proposal on, quoting it as written.',
|
|
1848
1848
|
card: {
|
|
1849
1849
|
kind: 'approval',
|
|
1850
|
-
title: 'Ledgerly asks you to confirm',
|
|
1850
|
+
title: 'Ledgerly (ledgerly.example) asks you to confirm',
|
|
1851
1851
|
rows: [
|
|
1852
1852
|
['Amount', 'EUR 1250.00'],
|
|
1853
1853
|
['To', 'Acme GmbH'],
|
|
@@ -2019,7 +2019,7 @@ export const PAP_YOUR_APPLICATION_A_COMPANY_SCENE_0_0_1 = {
|
|
|
2019
2019
|
says: 'Asks Sam to sign in at Exchange desk, with his Datalayer account.',
|
|
2020
2020
|
card: {
|
|
2021
2021
|
kind: 'sign-in',
|
|
2022
|
-
title: 'Sign in at Exchange desk',
|
|
2022
|
+
title: 'Sign in at Exchange desk (exchange-desk.apps.datalayer.ai)',
|
|
2023
2023
|
rows: [],
|
|
2024
2024
|
lines: [
|
|
2025
2025
|
'With your Datalayer account, on Datalayer’s page: the agent never sees your password.',
|
|
@@ -2038,7 +2038,7 @@ export const PAP_YOUR_APPLICATION_A_COMPANY_SCENE_0_0_1 = {
|
|
|
2038
2038
|
says: 'Proposes the exchange in the Maker’s own words: “Exchange order ord_7Hk2 for size L.”',
|
|
2039
2039
|
card: {
|
|
2040
2040
|
kind: 'approval',
|
|
2041
|
-
title: 'Exchange desk asks you to confirm',
|
|
2041
|
+
title: 'Exchange desk (exchange-desk.apps.datalayer.ai) asks you to confirm',
|
|
2042
2042
|
rows: [
|
|
2043
2043
|
['Order', 'ord_7Hk2'],
|
|
2044
2044
|
['Size', 'L'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datalayer/agent-runtimes",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.45",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"workspaces": [
|
|
6
6
|
".",
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
"@datalayer/lexical-loro": "^1.0.6",
|
|
165
165
|
"@datalayer/primer-addons": "^1.0.46",
|
|
166
166
|
"@datalayer/primer-rjsf": "^1.0.3",
|
|
167
|
-
"@datalayer/personal-agent-protocol": ">=0.
|
|
167
|
+
"@datalayer/personal-agent-protocol": ">=0.35.0 <0.36",
|
|
168
168
|
"@datalayer/reactor": "^1.3.5",
|
|
169
169
|
"@datalayer/reactor-commands": "^1.0.4",
|
|
170
170
|
"@datalayer/reactor-manager": "^1.0.4",
|
|
@@ -375,6 +375,7 @@
|
|
|
375
375
|
},
|
|
376
376
|
"overrides": {
|
|
377
377
|
"@a2ui/web_core": "0.12.0",
|
|
378
|
+
"@ag-ui/langgraph": "0.0.45",
|
|
378
379
|
"@langchain/core": "^0.3.80",
|
|
379
380
|
"@ai-sdk/react": "4.0.93",
|
|
380
381
|
"@microsoft/fast-colors": "5.3.1",
|