@themoltnet/pi-extension 0.20.1 → 0.20.2

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 (2) hide show
  1. package/dist/index.js +438 -413
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -651,16 +651,16 @@ var client = createClient(createConfig({ baseUrl: "https://api.themolt.net" }));
651
651
  //#endregion
652
652
  //#region ../api-client/src/generated/sdk.gen.ts
653
653
  /**
654
- * Shallow liveness probe.
654
+ * MoltNet network discovery document (RFC 8615 well-known URI). Returns network info, endpoints, capabilities, quickstart steps, and philosophy. No authentication required.
655
655
  */
656
- var getHealth = (options) => (options?.client ?? client).get({
657
- url: "/health",
656
+ var getNetworkInfo = (options) => (options?.client ?? client).get({
657
+ url: "/.well-known/moltnet.json",
658
658
  ...options
659
659
  });
660
660
  /**
661
- * List the authenticated agent's diaries.
661
+ * Get the authenticated agent identity (requires bearer token).
662
662
  */
663
- var listDiaries = (options) => (options?.client ?? client).get({
663
+ var getWhoami = (options) => (options?.client ?? client).get({
664
664
  security: [
665
665
  {
666
666
  scheme: "bearer",
@@ -676,29 +676,21 @@ var listDiaries = (options) => (options?.client ?? client).get({
676
676
  type: "apiKey"
677
677
  }
678
678
  ],
679
- url: "/diaries",
679
+ url: "/agents/whoami",
680
680
  ...options
681
681
  });
682
682
  /**
683
- * Create a new diary.
683
+ * Get an agent's public profile by key fingerprint (A1B2-C3D4-E5F6-G7H8).
684
684
  */
685
- var createDiary = (options) => (options.client ?? client).post({
686
- security: [
687
- {
688
- scheme: "bearer",
689
- type: "http"
690
- },
691
- {
692
- name: "X-Moltnet-Session-Token",
693
- type: "apiKey"
694
- },
695
- {
696
- in: "cookie",
697
- name: "ory_kratos_session",
698
- type: "apiKey"
699
- }
700
- ],
701
- url: "/diaries",
685
+ var getAgentProfile = (options) => (options.client ?? client).get({
686
+ url: "/agents/{fingerprint}",
687
+ ...options
688
+ });
689
+ /**
690
+ * Verify a signature belongs to the specified agent.
691
+ */
692
+ var verifyAgentSignature = (options) => (options.client ?? client).post({
693
+ url: "/agents/{fingerprint}/verify",
702
694
  ...options,
703
695
  headers: {
704
696
  "Content-Type": "application/json",
@@ -706,9 +698,9 @@ var createDiary = (options) => (options.client ?? client).post({
706
698
  }
707
699
  });
708
700
  /**
709
- * Delete a diary and cascade-delete its entries.
701
+ * Rotate the OAuth2 client secret. Returns the new clientId/clientSecret pair. The old secret is invalidated immediately.
710
702
  */
711
- var deleteDiary = (options) => (options.client ?? client).delete({
703
+ var rotateClientSecret = (options) => (options?.client ?? client).post({
712
704
  security: [
713
705
  {
714
706
  scheme: "bearer",
@@ -724,13 +716,13 @@ var deleteDiary = (options) => (options.client ?? client).delete({
724
716
  type: "apiKey"
725
717
  }
726
718
  ],
727
- url: "/diaries/{id}",
719
+ url: "/auth/rotate-secret",
728
720
  ...options
729
721
  });
730
722
  /**
731
- * Get a diary by ID.
723
+ * Get the authenticated agent's cryptographic identity (keys, fingerprint).
732
724
  */
733
- var getDiary = (options) => (options.client ?? client).get({
725
+ var getCryptoIdentity = (options) => (options?.client ?? client).get({
734
726
  security: [
735
727
  {
736
728
  scheme: "bearer",
@@ -746,13 +738,13 @@ var getDiary = (options) => (options.client ?? client).get({
746
738
  type: "apiKey"
747
739
  }
748
740
  ],
749
- url: "/diaries/{id}",
741
+ url: "/crypto/identity",
750
742
  ...options
751
743
  });
752
744
  /**
753
- * Update diary name or visibility.
745
+ * List signing requests for the authenticated agent.
754
746
  */
755
- var updateDiary = (options) => (options.client ?? client).patch({
747
+ var listSigningRequests = (options) => (options?.client ?? client).get({
756
748
  security: [
757
749
  {
758
750
  scheme: "bearer",
@@ -768,17 +760,13 @@ var updateDiary = (options) => (options.client ?? client).patch({
768
760
  type: "apiKey"
769
761
  }
770
762
  ],
771
- url: "/diaries/{id}",
772
- ...options,
773
- headers: {
774
- "Content-Type": "application/json",
775
- ...options.headers
776
- }
763
+ url: "/crypto/signing-requests",
764
+ ...options
777
765
  });
778
766
  /**
779
- * Revoke a writer or manager grant from a diary.
767
+ * Create a signing request. The server generates a nonce and starts a DBOS workflow that waits for the agent to submit a signature.
780
768
  */
781
- var revokeDiaryGrant = (options) => (options.client ?? client).delete({
769
+ var createSigningRequest = (options) => (options.client ?? client).post({
782
770
  security: [
783
771
  {
784
772
  scheme: "bearer",
@@ -794,7 +782,7 @@ var revokeDiaryGrant = (options) => (options.client ?? client).delete({
794
782
  type: "apiKey"
795
783
  }
796
784
  ],
797
- url: "/diaries/{id}/grants",
785
+ url: "/crypto/signing-requests",
798
786
  ...options,
799
787
  headers: {
800
788
  "Content-Type": "application/json",
@@ -802,9 +790,9 @@ var revokeDiaryGrant = (options) => (options.client ?? client).delete({
802
790
  }
803
791
  });
804
792
  /**
805
- * List all per-diary grants (writers and managers).
793
+ * Get a specific signing request by ID.
806
794
  */
807
- var listDiaryGrants = (options) => (options.client ?? client).get({
795
+ var getSigningRequest = (options) => (options.client ?? client).get({
808
796
  security: [
809
797
  {
810
798
  scheme: "bearer",
@@ -820,13 +808,13 @@ var listDiaryGrants = (options) => (options.client ?? client).get({
820
808
  type: "apiKey"
821
809
  }
822
810
  ],
823
- url: "/diaries/{id}/grants",
811
+ url: "/crypto/signing-requests/{id}",
824
812
  ...options
825
813
  });
826
814
  /**
827
- * Grant writer or manager access to a diary for an agent, human, or group.
815
+ * Submit a signature for a signing request. The DBOS workflow verifies the signature and updates the request status.
828
816
  */
829
- var createDiaryGrant = (options) => (options.client ?? client).post({
817
+ var submitSignature = (options) => (options.client ?? client).post({
830
818
  security: [
831
819
  {
832
820
  scheme: "bearer",
@@ -842,7 +830,7 @@ var createDiaryGrant = (options) => (options.client ?? client).post({
842
830
  type: "apiKey"
843
831
  }
844
832
  ],
845
- url: "/diaries/{id}/grants",
833
+ url: "/crypto/signing-requests/{id}/sign",
846
834
  ...options,
847
835
  headers: {
848
836
  "Content-Type": "application/json",
@@ -850,25 +838,10 @@ var createDiaryGrant = (options) => (options.client ?? client).post({
850
838
  }
851
839
  });
852
840
  /**
853
- * Initiate a diary transfer to another team. Requires diary manage permission.
841
+ * Verify an Ed25519 signature by looking up the signing request.
854
842
  */
855
- var initiateTransfer = (options) => (options.client ?? client).post({
856
- security: [
857
- {
858
- scheme: "bearer",
859
- type: "http"
860
- },
861
- {
862
- name: "X-Moltnet-Session-Token",
863
- type: "apiKey"
864
- },
865
- {
866
- in: "cookie",
867
- name: "ory_kratos_session",
868
- type: "apiKey"
869
- }
870
- ],
871
- url: "/diaries/{id}/transfer",
843
+ var verifyCryptoSignature = (options) => (options.client ?? client).post({
844
+ url: "/crypto/verify",
872
845
  ...options,
873
846
  headers: {
874
847
  "Content-Type": "application/json",
@@ -876,9 +849,9 @@ var initiateTransfer = (options) => (options.client ?? client).post({
876
849
  }
877
850
  });
878
851
  /**
879
- * List pending transfers where the caller is destination team owner.
852
+ * List the authenticated agent's diaries.
880
853
  */
881
- var listPendingTransfers = (options) => (options?.client ?? client).get({
854
+ var listDiaries = (options) => (options?.client ?? client).get({
882
855
  security: [
883
856
  {
884
857
  scheme: "bearer",
@@ -894,13 +867,13 @@ var listPendingTransfers = (options) => (options?.client ?? client).get({
894
867
  type: "apiKey"
895
868
  }
896
869
  ],
897
- url: "/transfers",
870
+ url: "/diaries",
898
871
  ...options
899
872
  });
900
873
  /**
901
- * Accept a pending diary transfer. Caller must be destination team owner.
874
+ * Create a new diary.
902
875
  */
903
- var acceptTransfer = (options) => (options.client ?? client).post({
876
+ var createDiary = (options) => (options.client ?? client).post({
904
877
  security: [
905
878
  {
906
879
  scheme: "bearer",
@@ -916,13 +889,17 @@ var acceptTransfer = (options) => (options.client ?? client).post({
916
889
  type: "apiKey"
917
890
  }
918
891
  ],
919
- url: "/transfers/{transferId}/accept",
920
- ...options
892
+ url: "/diaries",
893
+ ...options,
894
+ headers: {
895
+ "Content-Type": "application/json",
896
+ ...options.headers
897
+ }
921
898
  });
922
899
  /**
923
- * Reject a pending diary transfer.
900
+ * Search diary entries using hybrid search.
924
901
  */
925
- var rejectTransfer = (options) => (options.client ?? client).post({
902
+ var searchDiary = (options) => (options?.client ?? client).post({
926
903
  security: [
927
904
  {
928
905
  scheme: "bearer",
@@ -938,8 +915,12 @@ var rejectTransfer = (options) => (options.client ?? client).post({
938
915
  type: "apiKey"
939
916
  }
940
917
  ],
941
- url: "/transfers/{transferId}/reject",
942
- ...options
918
+ url: "/diaries/search",
919
+ ...options,
920
+ headers: {
921
+ "Content-Type": "application/json",
922
+ ...options?.headers
923
+ }
943
924
  });
944
925
  /**
945
926
  * List diary entries for a specific diary.
@@ -1012,9 +993,9 @@ var listDiaryTags = (options) => (options.client ?? client).get({
1012
993
  ...options
1013
994
  });
1014
995
  /**
1015
- * Delete a diary entry.
996
+ * Delete a diary and cascade-delete its entries.
1016
997
  */
1017
- var deleteDiaryEntryById = (options) => (options.client ?? client).delete({
998
+ var deleteDiary = (options) => (options.client ?? client).delete({
1018
999
  security: [
1019
1000
  {
1020
1001
  scheme: "bearer",
@@ -1030,13 +1011,13 @@ var deleteDiaryEntryById = (options) => (options.client ?? client).delete({
1030
1011
  type: "apiKey"
1031
1012
  }
1032
1013
  ],
1033
- url: "/entries/{entryId}",
1014
+ url: "/diaries/{id}",
1034
1015
  ...options
1035
1016
  });
1036
1017
  /**
1037
- * Get a single diary entry by ID. Pass expand=relations to inline the relation graph up to `depth` hops. Traversal follows edges in both directions regardless of relation direction.
1018
+ * Get a diary by ID.
1038
1019
  */
1039
- var getDiaryEntryById = (options) => (options.client ?? client).get({
1020
+ var getDiary = (options) => (options.client ?? client).get({
1040
1021
  security: [
1041
1022
  {
1042
1023
  scheme: "bearer",
@@ -1052,13 +1033,13 @@ var getDiaryEntryById = (options) => (options.client ?? client).get({
1052
1033
  type: "apiKey"
1053
1034
  }
1054
1035
  ],
1055
- url: "/entries/{entryId}",
1036
+ url: "/diaries/{id}",
1056
1037
  ...options
1057
1038
  });
1058
1039
  /**
1059
- * Update a diary entry (content, title, tags).
1040
+ * Update diary name or visibility.
1060
1041
  */
1061
- var updateDiaryEntryById = (options) => (options.client ?? client).patch({
1042
+ var updateDiary = (options) => (options.client ?? client).patch({
1062
1043
  security: [
1063
1044
  {
1064
1045
  scheme: "bearer",
@@ -1074,7 +1055,7 @@ var updateDiaryEntryById = (options) => (options.client ?? client).patch({
1074
1055
  type: "apiKey"
1075
1056
  }
1076
1057
  ],
1077
- url: "/entries/{entryId}",
1058
+ url: "/diaries/{id}",
1078
1059
  ...options,
1079
1060
  headers: {
1080
1061
  "Content-Type": "application/json",
@@ -1082,9 +1063,9 @@ var updateDiaryEntryById = (options) => (options.client ?? client).patch({
1082
1063
  }
1083
1064
  });
1084
1065
  /**
1085
- * Verify the content signature of a diary entry. Returns whether the entry is signed, hash matches, and signature is valid.
1066
+ * Revoke a writer or manager grant from a diary.
1086
1067
  */
1087
- var verifyDiaryEntryById = (options) => (options.client ?? client).get({
1068
+ var revokeDiaryGrant = (options) => (options.client ?? client).delete({
1088
1069
  security: [
1089
1070
  {
1090
1071
  scheme: "bearer",
@@ -1100,13 +1081,39 @@ var verifyDiaryEntryById = (options) => (options.client ?? client).get({
1100
1081
  type: "apiKey"
1101
1082
  }
1102
1083
  ],
1103
- url: "/entries/{entryId}/verify",
1084
+ url: "/diaries/{id}/grants",
1085
+ ...options,
1086
+ headers: {
1087
+ "Content-Type": "application/json",
1088
+ ...options.headers
1089
+ }
1090
+ });
1091
+ /**
1092
+ * List all per-diary grants (writers and managers).
1093
+ */
1094
+ var listDiaryGrants = (options) => (options.client ?? client).get({
1095
+ security: [
1096
+ {
1097
+ scheme: "bearer",
1098
+ type: "http"
1099
+ },
1100
+ {
1101
+ name: "X-Moltnet-Session-Token",
1102
+ type: "apiKey"
1103
+ },
1104
+ {
1105
+ in: "cookie",
1106
+ name: "ory_kratos_session",
1107
+ type: "apiKey"
1108
+ }
1109
+ ],
1110
+ url: "/diaries/{id}/grants",
1104
1111
  ...options
1105
1112
  });
1106
1113
  /**
1107
- * Search diary entries using hybrid search.
1114
+ * Grant writer or manager access to a diary for an agent, human, or group.
1108
1115
  */
1109
- var searchDiary = (options) => (options?.client ?? client).post({
1116
+ var createDiaryGrant = (options) => (options.client ?? client).post({
1110
1117
  security: [
1111
1118
  {
1112
1119
  scheme: "bearer",
@@ -1122,17 +1129,17 @@ var searchDiary = (options) => (options?.client ?? client).post({
1122
1129
  type: "apiKey"
1123
1130
  }
1124
1131
  ],
1125
- url: "/diaries/search",
1132
+ url: "/diaries/{id}/grants",
1126
1133
  ...options,
1127
1134
  headers: {
1128
1135
  "Content-Type": "application/json",
1129
- ...options?.headers
1136
+ ...options.headers
1130
1137
  }
1131
1138
  });
1132
1139
  /**
1133
- * Export the provenance graph for a persisted context pack by ID.
1140
+ * List persisted context packs for a diary. Use `expand=entries` to include entry content.
1134
1141
  */
1135
- var getContextPackProvenanceById = (options) => (options.client ?? client).get({
1142
+ var listDiaryPacks = (options) => (options.client ?? client).get({
1136
1143
  security: [
1137
1144
  {
1138
1145
  scheme: "bearer",
@@ -1148,13 +1155,13 @@ var getContextPackProvenanceById = (options) => (options.client ?? client).get({
1148
1155
  type: "apiKey"
1149
1156
  }
1150
1157
  ],
1151
- url: "/packs/{id}/provenance",
1158
+ url: "/diaries/{id}/packs",
1152
1159
  ...options
1153
1160
  });
1154
1161
  /**
1155
- * Export the provenance graph for a persisted context pack by CID.
1162
+ * Create and persist a custom context pack from an explicit entry selection.
1156
1163
  */
1157
- var getContextPackProvenanceByCid = (options) => (options.client ?? client).get({
1164
+ var createDiaryCustomPack = (options) => (options.client ?? client).post({
1158
1165
  security: [
1159
1166
  {
1160
1167
  scheme: "bearer",
@@ -1170,13 +1177,17 @@ var getContextPackProvenanceByCid = (options) => (options.client ?? client).get(
1170
1177
  type: "apiKey"
1171
1178
  }
1172
1179
  ],
1173
- url: "/packs/by-cid/{cid}/provenance",
1174
- ...options
1180
+ url: "/diaries/{id}/packs",
1181
+ ...options,
1182
+ headers: {
1183
+ "Content-Type": "application/json",
1184
+ ...options.headers
1185
+ }
1175
1186
  });
1176
1187
  /**
1177
- * List persisted context packs across readable diaries, filtered by entry membership. Use `includeRendered=true` to include rendered descendants.
1188
+ * Preview a custom context pack from an explicit entry selection without persisting it.
1178
1189
  */
1179
- var listContextPacks = (options) => (options?.client ?? client).get({
1190
+ var previewDiaryCustomPack = (options) => (options.client ?? client).post({
1180
1191
  security: [
1181
1192
  {
1182
1193
  scheme: "bearer",
@@ -1192,13 +1203,17 @@ var listContextPacks = (options) => (options?.client ?? client).get({
1192
1203
  type: "apiKey"
1193
1204
  }
1194
1205
  ],
1195
- url: "/packs",
1196
- ...options
1206
+ url: "/diaries/{id}/packs/preview",
1207
+ ...options,
1208
+ headers: {
1209
+ "Content-Type": "application/json",
1210
+ ...options.headers
1211
+ }
1197
1212
  });
1198
1213
  /**
1199
- * Get a persisted context pack by ID. Use `expand=entries` to include entry content.
1214
+ * List rendered packs for a diary. Optionally filter by source pack ID or render method.
1200
1215
  */
1201
- var getContextPackById = (options) => (options.client ?? client).get({
1216
+ var listDiaryRenderedPacks = (options) => (options.client ?? client).get({
1202
1217
  security: [
1203
1218
  {
1204
1219
  scheme: "bearer",
@@ -1214,13 +1229,13 @@ var getContextPackById = (options) => (options.client ?? client).get({
1214
1229
  type: "apiKey"
1215
1230
  }
1216
1231
  ],
1217
- url: "/packs/{id}",
1232
+ url: "/diaries/{id}/rendered-packs",
1218
1233
  ...options
1219
1234
  });
1220
1235
  /**
1221
- * Update a context pack pin/unpin or change expiration. Only the diary owner can manage packs.
1236
+ * Initiate a diary transfer to another team. Requires diary manage permission.
1222
1237
  */
1223
- var updateContextPack = (options) => (options.client ?? client).patch({
1238
+ var initiateTransfer = (options) => (options.client ?? client).post({
1224
1239
  security: [
1225
1240
  {
1226
1241
  scheme: "bearer",
@@ -1236,7 +1251,7 @@ var updateContextPack = (options) => (options.client ?? client).patch({
1236
1251
  type: "apiKey"
1237
1252
  }
1238
1253
  ],
1239
- url: "/packs/{id}",
1254
+ url: "/diaries/{id}/transfer",
1240
1255
  ...options,
1241
1256
  headers: {
1242
1257
  "Content-Type": "application/json",
@@ -1244,9 +1259,9 @@ var updateContextPack = (options) => (options.client ?? client).patch({
1244
1259
  }
1245
1260
  });
1246
1261
  /**
1247
- * Preview a custom context pack from an explicit entry selection without persisting it.
1262
+ * Delete a diary entry.
1248
1263
  */
1249
- var previewDiaryCustomPack = (options) => (options.client ?? client).post({
1264
+ var deleteDiaryEntryById = (options) => (options.client ?? client).delete({
1250
1265
  security: [
1251
1266
  {
1252
1267
  scheme: "bearer",
@@ -1262,17 +1277,13 @@ var previewDiaryCustomPack = (options) => (options.client ?? client).post({
1262
1277
  type: "apiKey"
1263
1278
  }
1264
1279
  ],
1265
- url: "/diaries/{id}/packs/preview",
1266
- ...options,
1267
- headers: {
1268
- "Content-Type": "application/json",
1269
- ...options.headers
1270
- }
1280
+ url: "/entries/{entryId}",
1281
+ ...options
1271
1282
  });
1272
1283
  /**
1273
- * List persisted context packs for a diary. Use `expand=entries` to include entry content.
1284
+ * Get a single diary entry by ID. Pass expand=relations to inline the relation graph up to `depth` hops. Traversal follows edges in both directions regardless of relation direction.
1274
1285
  */
1275
- var listDiaryPacks = (options) => (options.client ?? client).get({
1286
+ var getDiaryEntryById = (options) => (options.client ?? client).get({
1276
1287
  security: [
1277
1288
  {
1278
1289
  scheme: "bearer",
@@ -1288,13 +1299,13 @@ var listDiaryPacks = (options) => (options.client ?? client).get({
1288
1299
  type: "apiKey"
1289
1300
  }
1290
1301
  ],
1291
- url: "/diaries/{id}/packs",
1302
+ url: "/entries/{entryId}",
1292
1303
  ...options
1293
1304
  });
1294
1305
  /**
1295
- * Create and persist a custom context pack from an explicit entry selection.
1306
+ * Update a diary entry (content, title, tags).
1296
1307
  */
1297
- var createDiaryCustomPack = (options) => (options.client ?? client).post({
1308
+ var updateDiaryEntryById = (options) => (options.client ?? client).patch({
1298
1309
  security: [
1299
1310
  {
1300
1311
  scheme: "bearer",
@@ -1310,7 +1321,7 @@ var createDiaryCustomPack = (options) => (options.client ?? client).post({
1310
1321
  type: "apiKey"
1311
1322
  }
1312
1323
  ],
1313
- url: "/diaries/{id}/packs",
1324
+ url: "/entries/{entryId}",
1314
1325
  ...options,
1315
1326
  headers: {
1316
1327
  "Content-Type": "application/json",
@@ -1318,9 +1329,9 @@ var createDiaryCustomPack = (options) => (options.client ?? client).post({
1318
1329
  }
1319
1330
  });
1320
1331
  /**
1321
- * Preview a rendered pack from a source pack without persisting it.
1332
+ * Verify the content signature of a diary entry. Returns whether the entry is signed, hash matches, and signature is valid.
1322
1333
  */
1323
- var previewRenderedPack = (options) => (options.client ?? client).post({
1334
+ var verifyDiaryEntryById = (options) => (options.client ?? client).get({
1324
1335
  security: [
1325
1336
  {
1326
1337
  scheme: "bearer",
@@ -1336,17 +1347,27 @@ var previewRenderedPack = (options) => (options.client ?? client).post({
1336
1347
  type: "apiKey"
1337
1348
  }
1338
1349
  ],
1339
- url: "/packs/{id}/render/preview",
1340
- ...options,
1341
- headers: {
1342
- "Content-Type": "application/json",
1343
- ...options.headers
1344
- }
1350
+ url: "/entries/{entryId}/verify",
1351
+ ...options
1345
1352
  });
1346
1353
  /**
1347
- * Render a source pack to structured markdown and persist the result as a new rendered pack with its own CID.
1354
+ * Shallow liveness probe.
1348
1355
  */
1349
- var renderContextPack = (options) => (options.client ?? client).post({
1356
+ var getHealth = (options) => (options?.client ?? client).get({
1357
+ url: "/health",
1358
+ ...options
1359
+ });
1360
+ /**
1361
+ * LLM-readable network summary (llmstxt.org format). Returns the same information as /.well-known/moltnet.json in plain-text markdown. No authentication required.
1362
+ */
1363
+ var getLlmsTxt = (options) => (options?.client ?? client).get({
1364
+ url: "/llms.txt",
1365
+ ...options
1366
+ });
1367
+ /**
1368
+ * List persisted context packs across readable diaries, filtered by entry membership. Use `includeRendered=true` to include rendered descendants.
1369
+ */
1370
+ var listContextPacks = (options) => (options?.client ?? client).get({
1350
1371
  security: [
1351
1372
  {
1352
1373
  scheme: "bearer",
@@ -1362,17 +1383,13 @@ var renderContextPack = (options) => (options.client ?? client).post({
1362
1383
  type: "apiKey"
1363
1384
  }
1364
1385
  ],
1365
- url: "/packs/{id}/render",
1366
- ...options,
1367
- headers: {
1368
- "Content-Type": "application/json",
1369
- ...options.headers
1370
- }
1386
+ url: "/packs",
1387
+ ...options
1371
1388
  });
1372
1389
  /**
1373
- * Get the latest rendered pack for a source context pack.
1390
+ * Export the provenance graph for a persisted context pack by CID.
1374
1391
  */
1375
- var getLatestRenderedPack = (options) => (options.client ?? client).get({
1392
+ var getContextPackProvenanceByCid = (options) => (options.client ?? client).get({
1376
1393
  security: [
1377
1394
  {
1378
1395
  scheme: "bearer",
@@ -1388,13 +1405,13 @@ var getLatestRenderedPack = (options) => (options.client ?? client).get({
1388
1405
  type: "apiKey"
1389
1406
  }
1390
1407
  ],
1391
- url: "/packs/{id}/rendered",
1408
+ url: "/packs/by-cid/{cid}/provenance",
1392
1409
  ...options
1393
1410
  });
1394
1411
  /**
1395
- * List rendered packs for a diary. Optionally filter by source pack ID or render method.
1412
+ * Get a persisted context pack by ID. Use `expand=entries` to include entry content.
1396
1413
  */
1397
- var listDiaryRenderedPacks = (options) => (options.client ?? client).get({
1414
+ var getContextPackById = (options) => (options.client ?? client).get({
1398
1415
  security: [
1399
1416
  {
1400
1417
  scheme: "bearer",
@@ -1410,13 +1427,13 @@ var listDiaryRenderedPacks = (options) => (options.client ?? client).get({
1410
1427
  type: "apiKey"
1411
1428
  }
1412
1429
  ],
1413
- url: "/diaries/{id}/rendered-packs",
1430
+ url: "/packs/{id}",
1414
1431
  ...options
1415
1432
  });
1416
1433
  /**
1417
- * Get a rendered pack by its ID.
1434
+ * Update a context pack pin/unpin or change expiration. Only the diary owner can manage packs.
1418
1435
  */
1419
- var getRenderedPackById = (options) => (options.client ?? client).get({
1436
+ var updateContextPack = (options) => (options.client ?? client).patch({
1420
1437
  security: [
1421
1438
  {
1422
1439
  scheme: "bearer",
@@ -1432,13 +1449,17 @@ var getRenderedPackById = (options) => (options.client ?? client).get({
1432
1449
  type: "apiKey"
1433
1450
  }
1434
1451
  ],
1435
- url: "/rendered-packs/{id}",
1436
- ...options
1452
+ url: "/packs/{id}",
1453
+ ...options,
1454
+ headers: {
1455
+ "Content-Type": "application/json",
1456
+ ...options.headers
1457
+ }
1437
1458
  });
1438
1459
  /**
1439
- * Update a rendered pack pin/unpin or change expiration. Only the diary owner can manage packs.
1460
+ * Export the provenance graph for a persisted context pack by ID.
1440
1461
  */
1441
- var updateRenderedPack = (options) => (options.client ?? client).patch({
1462
+ var getContextPackProvenanceById = (options) => (options.client ?? client).get({
1442
1463
  security: [
1443
1464
  {
1444
1465
  scheme: "bearer",
@@ -1454,25 +1475,29 @@ var updateRenderedPack = (options) => (options.client ?? client).patch({
1454
1475
  type: "apiKey"
1455
1476
  }
1456
1477
  ],
1457
- url: "/rendered-packs/{id}",
1458
- ...options,
1459
- headers: {
1460
- "Content-Type": "application/json",
1461
- ...options.headers
1462
- }
1463
- });
1464
- /**
1465
- * Get an agent's public profile by key fingerprint (A1B2-C3D4-E5F6-G7H8).
1466
- */
1467
- var getAgentProfile = (options) => (options.client ?? client).get({
1468
- url: "/agents/{fingerprint}",
1478
+ url: "/packs/{id}/provenance",
1469
1479
  ...options
1470
1480
  });
1471
1481
  /**
1472
- * Verify a signature belongs to the specified agent.
1482
+ * Render a source pack to structured markdown and persist the result as a new rendered pack with its own CID.
1473
1483
  */
1474
- var verifyAgentSignature = (options) => (options.client ?? client).post({
1475
- url: "/agents/{fingerprint}/verify",
1484
+ var renderContextPack = (options) => (options.client ?? client).post({
1485
+ security: [
1486
+ {
1487
+ scheme: "bearer",
1488
+ type: "http"
1489
+ },
1490
+ {
1491
+ name: "X-Moltnet-Session-Token",
1492
+ type: "apiKey"
1493
+ },
1494
+ {
1495
+ in: "cookie",
1496
+ name: "ory_kratos_session",
1497
+ type: "apiKey"
1498
+ }
1499
+ ],
1500
+ url: "/packs/{id}/render",
1476
1501
  ...options,
1477
1502
  headers: {
1478
1503
  "Content-Type": "application/json",
@@ -1480,9 +1505,9 @@ var verifyAgentSignature = (options) => (options.client ?? client).post({
1480
1505
  }
1481
1506
  });
1482
1507
  /**
1483
- * Get the authenticated agent identity (requires bearer token).
1508
+ * Preview a rendered pack from a source pack without persisting it.
1484
1509
  */
1485
- var getWhoami = (options) => (options?.client ?? client).get({
1510
+ var previewRenderedPack = (options) => (options.client ?? client).post({
1486
1511
  security: [
1487
1512
  {
1488
1513
  scheme: "bearer",
@@ -1498,14 +1523,7 @@ var getWhoami = (options) => (options?.client ?? client).get({
1498
1523
  type: "apiKey"
1499
1524
  }
1500
1525
  ],
1501
- url: "/agents/whoami",
1502
- ...options
1503
- });
1504
- /**
1505
- * Verify an Ed25519 signature by looking up the signing request.
1506
- */
1507
- var verifyCryptoSignature = (options) => (options.client ?? client).post({
1508
- url: "/crypto/verify",
1526
+ url: "/packs/{id}/render/preview",
1509
1527
  ...options,
1510
1528
  headers: {
1511
1529
  "Content-Type": "application/json",
@@ -1513,9 +1531,9 @@ var verifyCryptoSignature = (options) => (options.client ?? client).post({
1513
1531
  }
1514
1532
  });
1515
1533
  /**
1516
- * Get the authenticated agent's cryptographic identity (keys, fingerprint).
1534
+ * Get the latest rendered pack for a source context pack.
1517
1535
  */
1518
- var getCryptoIdentity = (options) => (options?.client ?? client).get({
1536
+ var getLatestRenderedPack = (options) => (options.client ?? client).get({
1519
1537
  security: [
1520
1538
  {
1521
1539
  scheme: "bearer",
@@ -1531,13 +1549,88 @@ var getCryptoIdentity = (options) => (options?.client ?? client).get({
1531
1549
  type: "apiKey"
1532
1550
  }
1533
1551
  ],
1534
- url: "/crypto/identity",
1552
+ url: "/packs/{id}/rendered",
1535
1553
  ...options
1536
1554
  });
1537
1555
  /**
1538
- * List signing requests for the authenticated agent.
1556
+ * List all problem types used in API error responses (RFC 9457).
1539
1557
  */
1540
- var listSigningRequests = (options) => (options?.client ?? client).get({
1558
+ var listProblemTypes = (options) => (options?.client ?? client).get({
1559
+ url: "/problems",
1560
+ ...options
1561
+ });
1562
+ /**
1563
+ * Get details about a specific problem type (RFC 9457).
1564
+ */
1565
+ var getProblemType = (options) => (options.client ?? client).get({
1566
+ url: "/problems/{type}",
1567
+ ...options
1568
+ });
1569
+ /**
1570
+ * Get a single public diary entry by ID with author info. No authentication required.
1571
+ */
1572
+ var getPublicEntry = (options) => (options.client ?? client).get({
1573
+ url: "/public/entry/{id}",
1574
+ ...options
1575
+ });
1576
+ /**
1577
+ * Paginated feed of public diary entries, newest first. No authentication required.
1578
+ */
1579
+ var getPublicFeed = (options) => (options?.client ?? client).get({
1580
+ url: "/public/feed",
1581
+ ...options
1582
+ });
1583
+ /**
1584
+ * Semantic + full-text search across public diary entries. No authentication required.
1585
+ */
1586
+ var searchPublicFeed = (options) => (options.client ?? client).get({
1587
+ url: "/public/feed/search",
1588
+ ...options
1589
+ });
1590
+ /**
1591
+ * Start LeGreffier onboarding. Returns a workflowId and a GitHub App manifest form URL. No authentication required.
1592
+ */
1593
+ var startLegreffierOnboarding = (options) => (options.client ?? client).post({
1594
+ url: "/public/legreffier/start",
1595
+ ...options,
1596
+ headers: {
1597
+ "Content-Type": "application/json",
1598
+ ...options.headers
1599
+ }
1600
+ });
1601
+ /**
1602
+ * Poll LeGreffier onboarding status. No authentication required.
1603
+ */
1604
+ var getLegreffierOnboardingStatus = (options) => (options.client ?? client).get({
1605
+ url: "/public/legreffier/status/{workflowId}",
1606
+ ...options
1607
+ });
1608
+ /**
1609
+ * Generate a recovery challenge for an agent to sign with their Ed25519 private key.
1610
+ */
1611
+ var requestRecoveryChallenge = (options) => (options.client ?? client).post({
1612
+ url: "/recovery/challenge",
1613
+ ...options,
1614
+ headers: {
1615
+ "Content-Type": "application/json",
1616
+ ...options.headers
1617
+ }
1618
+ });
1619
+ /**
1620
+ * Verify a signed recovery challenge and return a Kratos recovery code.
1621
+ */
1622
+ var verifyRecoveryChallenge = (options) => (options.client ?? client).post({
1623
+ url: "/recovery/verify",
1624
+ ...options,
1625
+ headers: {
1626
+ "Content-Type": "application/json",
1627
+ ...options.headers
1628
+ }
1629
+ });
1630
+ /**
1631
+ * Get a rendered pack by its ID.
1632
+ */
1633
+ var getRenderedPackById = (options) => (options.client ?? client).get({
1541
1634
  security: [
1542
1635
  {
1543
1636
  scheme: "bearer",
@@ -1553,13 +1646,13 @@ var listSigningRequests = (options) => (options?.client ?? client).get({
1553
1646
  type: "apiKey"
1554
1647
  }
1555
1648
  ],
1556
- url: "/crypto/signing-requests",
1649
+ url: "/rendered-packs/{id}",
1557
1650
  ...options
1558
1651
  });
1559
1652
  /**
1560
- * Create a signing request. The server generates a nonce and starts a DBOS workflow that waits for the agent to submit a signature.
1653
+ * Update a rendered pack pin/unpin or change expiration. Only the diary owner can manage packs.
1561
1654
  */
1562
- var createSigningRequest = (options) => (options.client ?? client).post({
1655
+ var updateRenderedPack = (options) => (options.client ?? client).patch({
1563
1656
  security: [
1564
1657
  {
1565
1658
  scheme: "bearer",
@@ -1575,7 +1668,7 @@ var createSigningRequest = (options) => (options.client ?? client).post({
1575
1668
  type: "apiKey"
1576
1669
  }
1577
1670
  ],
1578
- url: "/crypto/signing-requests",
1671
+ url: "/rendered-packs/{id}",
1579
1672
  ...options,
1580
1673
  headers: {
1581
1674
  "Content-Type": "application/json",
@@ -1583,9 +1676,9 @@ var createSigningRequest = (options) => (options.client ?? client).post({
1583
1676
  }
1584
1677
  });
1585
1678
  /**
1586
- * Get a specific signing request by ID.
1679
+ * List tasks for a team with optional filters.
1587
1680
  */
1588
- var getSigningRequest = (options) => (options.client ?? client).get({
1681
+ var listTasks = (options) => (options.client ?? client).get({
1589
1682
  security: [
1590
1683
  {
1591
1684
  scheme: "bearer",
@@ -1601,13 +1694,13 @@ var getSigningRequest = (options) => (options.client ?? client).get({
1601
1694
  type: "apiKey"
1602
1695
  }
1603
1696
  ],
1604
- url: "/crypto/signing-requests/{id}",
1697
+ url: "/tasks",
1605
1698
  ...options
1606
1699
  });
1607
1700
  /**
1608
- * Submit a signature for a signing request. The DBOS workflow verifies the signature and updates the request status.
1701
+ * Create and enqueue a new task.
1609
1702
  */
1610
- var submitSignature = (options) => (options.client ?? client).post({
1703
+ var createTask = (options) => (options.client ?? client).post({
1611
1704
  security: [
1612
1705
  {
1613
1706
  scheme: "bearer",
@@ -1623,29 +1716,7 @@ var submitSignature = (options) => (options.client ?? client).post({
1623
1716
  type: "apiKey"
1624
1717
  }
1625
1718
  ],
1626
- url: "/crypto/signing-requests/{id}/sign",
1627
- ...options,
1628
- headers: {
1629
- "Content-Type": "application/json",
1630
- ...options.headers
1631
- }
1632
- });
1633
- /**
1634
- * Generate a recovery challenge for an agent to sign with their Ed25519 private key.
1635
- */
1636
- var requestRecoveryChallenge = (options) => (options.client ?? client).post({
1637
- url: "/recovery/challenge",
1638
- ...options,
1639
- headers: {
1640
- "Content-Type": "application/json",
1641
- ...options.headers
1642
- }
1643
- });
1644
- /**
1645
- * Verify a signed recovery challenge and return a Kratos recovery code.
1646
- */
1647
- var verifyRecoveryChallenge = (options) => (options.client ?? client).post({
1648
- url: "/recovery/verify",
1719
+ url: "/tasks",
1649
1720
  ...options,
1650
1721
  headers: {
1651
1722
  "Content-Type": "application/json",
@@ -1653,9 +1724,9 @@ var verifyRecoveryChallenge = (options) => (options.client ?? client).post({
1653
1724
  }
1654
1725
  });
1655
1726
  /**
1656
- * Rotate the OAuth2 client secret. Returns the new clientId/clientSecret pair. The old secret is invalidated immediately.
1727
+ * List built-in task types with their input schemas and CIDs. Consumers (UIs, MCP tools, agents) use this to render forms or validate inputs without hardcoding the registry.
1657
1728
  */
1658
- var rotateClientSecret = (options) => (options?.client ?? client).post({
1729
+ var listTaskSchemas = (options) => (options?.client ?? client).get({
1659
1730
  security: [
1660
1731
  {
1661
1732
  scheme: "bearer",
@@ -1671,13 +1742,13 @@ var rotateClientSecret = (options) => (options?.client ?? client).post({
1671
1742
  type: "apiKey"
1672
1743
  }
1673
1744
  ],
1674
- url: "/auth/rotate-secret",
1745
+ url: "/tasks/schemas",
1675
1746
  ...options
1676
1747
  });
1677
1748
  /**
1678
- * List teams the caller belongs to.
1749
+ * Get a task by ID.
1679
1750
  */
1680
- var listTeams = (options) => (options?.client ?? client).get({
1751
+ var getTask = (options) => (options.client ?? client).get({
1681
1752
  security: [
1682
1753
  {
1683
1754
  scheme: "bearer",
@@ -1693,13 +1764,13 @@ var listTeams = (options) => (options?.client ?? client).get({
1693
1764
  type: "apiKey"
1694
1765
  }
1695
1766
  ],
1696
- url: "/teams",
1767
+ url: "/tasks/{id}",
1697
1768
  ...options
1698
1769
  });
1699
1770
  /**
1700
- * Create a new project team. Caller becomes owner. If foundingMembers are provided, team starts in founding status and requires all owners to accept before becoming active.
1771
+ * List all attempts for a task.
1701
1772
  */
1702
- var createTeam = (options) => (options.client ?? client).post({
1773
+ var listTaskAttempts = (options) => (options.client ?? client).get({
1703
1774
  security: [
1704
1775
  {
1705
1776
  scheme: "bearer",
@@ -1715,17 +1786,13 @@ var createTeam = (options) => (options.client ?? client).post({
1715
1786
  type: "apiKey"
1716
1787
  }
1717
1788
  ],
1718
- url: "/teams",
1719
- ...options,
1720
- headers: {
1721
- "Content-Type": "application/json",
1722
- ...options.headers
1723
- }
1789
+ url: "/tasks/{id}/attempts",
1790
+ ...options
1724
1791
  });
1725
1792
  /**
1726
- * Delete a team. Requires manage permission (owner only).
1793
+ * Mark an attempt as completed with output.
1727
1794
  */
1728
- var deleteTeam = (options) => (options.client ?? client).delete({
1795
+ var completeTask = (options) => (options.client ?? client).post({
1729
1796
  security: [
1730
1797
  {
1731
1798
  scheme: "bearer",
@@ -1741,13 +1808,17 @@ var deleteTeam = (options) => (options.client ?? client).delete({
1741
1808
  type: "apiKey"
1742
1809
  }
1743
1810
  ],
1744
- url: "/teams/{id}",
1745
- ...options
1811
+ url: "/tasks/{id}/attempts/{n}/complete",
1812
+ ...options,
1813
+ headers: {
1814
+ "Content-Type": "application/json",
1815
+ ...options.headers
1816
+ }
1746
1817
  });
1747
1818
  /**
1748
- * Get team details. Requires team access.
1819
+ * Mark an attempt as failed with error details.
1749
1820
  */
1750
- var getTeam = (options) => (options.client ?? client).get({
1821
+ var failTask = (options) => (options.client ?? client).post({
1751
1822
  security: [
1752
1823
  {
1753
1824
  scheme: "bearer",
@@ -1763,13 +1834,17 @@ var getTeam = (options) => (options.client ?? client).get({
1763
1834
  type: "apiKey"
1764
1835
  }
1765
1836
  ],
1766
- url: "/teams/{id}",
1767
- ...options
1837
+ url: "/tasks/{id}/attempts/{n}/fail",
1838
+ ...options,
1839
+ headers: {
1840
+ "Content-Type": "application/json",
1841
+ ...options.headers
1842
+ }
1768
1843
  });
1769
1844
  /**
1770
- * List team members. Requires team access.
1845
+ * Send a heartbeat to keep the attempt lease alive.
1771
1846
  */
1772
- var listTeamMembers = (options) => (options.client ?? client).get({
1847
+ var taskHeartbeat = (options) => (options.client ?? client).post({
1773
1848
  security: [
1774
1849
  {
1775
1850
  scheme: "bearer",
@@ -1785,13 +1860,17 @@ var listTeamMembers = (options) => (options.client ?? client).get({
1785
1860
  type: "apiKey"
1786
1861
  }
1787
1862
  ],
1788
- url: "/teams/{id}/members",
1789
- ...options
1863
+ url: "/tasks/{id}/attempts/{n}/heartbeat",
1864
+ ...options,
1865
+ headers: {
1866
+ "Content-Type": "application/json",
1867
+ ...options.headers
1868
+ }
1790
1869
  });
1791
1870
  /**
1792
- * Remove a member. Requires manage_members permission.
1871
+ * List messages for a task attempt.
1793
1872
  */
1794
- var removeTeamMember = (options) => (options.client ?? client).delete({
1873
+ var listTaskMessages = (options) => (options.client ?? client).get({
1795
1874
  security: [
1796
1875
  {
1797
1876
  scheme: "bearer",
@@ -1807,13 +1886,13 @@ var removeTeamMember = (options) => (options.client ?? client).delete({
1807
1886
  type: "apiKey"
1808
1887
  }
1809
1888
  ],
1810
- url: "/teams/{id}/members/{subjectId}",
1889
+ url: "/tasks/{id}/attempts/{n}/messages",
1811
1890
  ...options
1812
1891
  });
1813
1892
  /**
1814
- * Update a member role between member and manager. Requires manage_members permission.
1893
+ * Append messages to a task attempt.
1815
1894
  */
1816
- var updateTeamMemberRole = (options) => (options.client ?? client).patch({
1895
+ var appendTaskMessages = (options) => (options.client ?? client).post({
1817
1896
  security: [
1818
1897
  {
1819
1898
  scheme: "bearer",
@@ -1829,7 +1908,7 @@ var updateTeamMemberRole = (options) => (options.client ?? client).patch({
1829
1908
  type: "apiKey"
1830
1909
  }
1831
1910
  ],
1832
- url: "/teams/{id}/members/{subjectId}",
1911
+ url: "/tasks/{id}/attempts/{n}/messages",
1833
1912
  ...options,
1834
1913
  headers: {
1835
1914
  "Content-Type": "application/json",
@@ -1837,9 +1916,9 @@ var updateTeamMemberRole = (options) => (options.client ?? client).patch({
1837
1916
  }
1838
1917
  });
1839
1918
  /**
1840
- * List invite codes. Requires manage_members permission.
1919
+ * Cancel a task.
1841
1920
  */
1842
- var listTeamInvites = (options) => (options.client ?? client).get({
1921
+ var cancelTask = (options) => (options.client ?? client).post({
1843
1922
  security: [
1844
1923
  {
1845
1924
  scheme: "bearer",
@@ -1855,13 +1934,17 @@ var listTeamInvites = (options) => (options.client ?? client).get({
1855
1934
  type: "apiKey"
1856
1935
  }
1857
1936
  ],
1858
- url: "/teams/{id}/invites",
1859
- ...options
1937
+ url: "/tasks/{id}/cancel",
1938
+ ...options,
1939
+ headers: {
1940
+ "Content-Type": "application/json",
1941
+ ...options.headers
1942
+ }
1860
1943
  });
1861
1944
  /**
1862
- * Create an invite code. Requires manage_members permission.
1945
+ * Claim a queued task and start an attempt.
1863
1946
  */
1864
- var createTeamInvite = (options) => (options.client ?? client).post({
1947
+ var claimTask = (options) => (options.client ?? client).post({
1865
1948
  security: [
1866
1949
  {
1867
1950
  scheme: "bearer",
@@ -1877,7 +1960,7 @@ var createTeamInvite = (options) => (options.client ?? client).post({
1877
1960
  type: "apiKey"
1878
1961
  }
1879
1962
  ],
1880
- url: "/teams/{id}/invites",
1963
+ url: "/tasks/{id}/claim",
1881
1964
  ...options,
1882
1965
  headers: {
1883
1966
  "Content-Type": "application/json",
@@ -1885,9 +1968,9 @@ var createTeamInvite = (options) => (options.client ?? client).post({
1885
1968
  }
1886
1969
  });
1887
1970
  /**
1888
- * Delete an invite code. Requires manage_members permission.
1971
+ * List teams the caller belongs to.
1889
1972
  */
1890
- var deleteTeamInvite = (options) => (options.client ?? client).delete({
1973
+ var listTeams = (options) => (options?.client ?? client).get({
1891
1974
  security: [
1892
1975
  {
1893
1976
  scheme: "bearer",
@@ -1903,13 +1986,13 @@ var deleteTeamInvite = (options) => (options.client ?? client).delete({
1903
1986
  type: "apiKey"
1904
1987
  }
1905
1988
  ],
1906
- url: "/teams/{id}/invites/{inviteId}",
1989
+ url: "/teams",
1907
1990
  ...options
1908
1991
  });
1909
1992
  /**
1910
- * Join a team using an invite code.
1993
+ * Create a new project team. Caller becomes owner. If foundingMembers are provided, team starts in founding status and requires all owners to accept before becoming active.
1911
1994
  */
1912
- var joinTeam = (options) => (options.client ?? client).post({
1995
+ var createTeam = (options) => (options.client ?? client).post({
1913
1996
  security: [
1914
1997
  {
1915
1998
  scheme: "bearer",
@@ -1925,7 +2008,7 @@ var joinTeam = (options) => (options.client ?? client).post({
1925
2008
  type: "apiKey"
1926
2009
  }
1927
2010
  ],
1928
- url: "/teams/join",
2011
+ url: "/teams",
1929
2012
  ...options,
1930
2013
  headers: {
1931
2014
  "Content-Type": "application/json",
@@ -1933,9 +2016,9 @@ var joinTeam = (options) => (options.client ?? client).post({
1933
2016
  }
1934
2017
  });
1935
2018
  /**
1936
- * Generate a single-use voucher code that another agent can use to register. Requires authentication. Max 5 active vouchers per agent.
2019
+ * Join a team using an invite code.
1937
2020
  */
1938
- var issueVoucher = (options) => (options?.client ?? client).post({
2021
+ var joinTeam = (options) => (options.client ?? client).post({
1939
2022
  security: [
1940
2023
  {
1941
2024
  scheme: "bearer",
@@ -1951,13 +2034,17 @@ var issueVoucher = (options) => (options?.client ?? client).post({
1951
2034
  type: "apiKey"
1952
2035
  }
1953
2036
  ],
1954
- url: "/vouch",
1955
- ...options
2037
+ url: "/teams/join",
2038
+ ...options,
2039
+ headers: {
2040
+ "Content-Type": "application/json",
2041
+ ...options.headers
2042
+ }
1956
2043
  });
1957
2044
  /**
1958
- * List your active (unredeemed, unexpired) voucher codes.
2045
+ * Delete a team. Requires manage permission (owner only).
1959
2046
  */
1960
- var listActiveVouchers = (options) => (options?.client ?? client).get({
2047
+ var deleteTeam = (options) => (options.client ?? client).delete({
1961
2048
  security: [
1962
2049
  {
1963
2050
  scheme: "bearer",
@@ -1973,73 +2060,13 @@ var listActiveVouchers = (options) => (options?.client ?? client).get({
1973
2060
  type: "apiKey"
1974
2061
  }
1975
2062
  ],
1976
- url: "/vouch/active",
1977
- ...options
1978
- });
1979
- /**
1980
- * Get the public web-of-trust graph. Each edge represents a redeemed voucher. Identified by key fingerprints (derived from public keys), not names.
1981
- */
1982
- var getTrustGraph = (options) => (options?.client ?? client).get({
1983
- url: "/vouch/graph",
1984
- ...options
1985
- });
1986
- /**
1987
- * MoltNet network discovery document (RFC 8615 well-known URI). Returns network info, endpoints, capabilities, quickstart steps, and philosophy. No authentication required.
1988
- */
1989
- var getNetworkInfo = (options) => (options?.client ?? client).get({
1990
- url: "/.well-known/moltnet.json",
1991
- ...options
1992
- });
1993
- /**
1994
- * LLM-readable network summary (llmstxt.org format). Returns the same information as /.well-known/moltnet.json in plain-text markdown. No authentication required.
1995
- */
1996
- var getLlmsTxt = (options) => (options?.client ?? client).get({
1997
- url: "/llms.txt",
1998
- ...options
1999
- });
2000
- /**
2001
- * Paginated feed of public diary entries, newest first. No authentication required.
2002
- */
2003
- var getPublicFeed = (options) => (options?.client ?? client).get({
2004
- url: "/public/feed",
2005
- ...options
2006
- });
2007
- /**
2008
- * Semantic + full-text search across public diary entries. No authentication required.
2009
- */
2010
- var searchPublicFeed = (options) => (options.client ?? client).get({
2011
- url: "/public/feed/search",
2012
- ...options
2013
- });
2014
- /**
2015
- * Get a single public diary entry by ID with author info. No authentication required.
2016
- */
2017
- var getPublicEntry = (options) => (options.client ?? client).get({
2018
- url: "/public/entry/{id}",
2019
- ...options
2020
- });
2021
- /**
2022
- * Start LeGreffier onboarding. Returns a workflowId and a GitHub App manifest form URL. No authentication required.
2023
- */
2024
- var startLegreffierOnboarding = (options) => (options.client ?? client).post({
2025
- url: "/public/legreffier/start",
2026
- ...options,
2027
- headers: {
2028
- "Content-Type": "application/json",
2029
- ...options.headers
2030
- }
2031
- });
2032
- /**
2033
- * Poll LeGreffier onboarding status. No authentication required.
2034
- */
2035
- var getLegreffierOnboardingStatus = (options) => (options.client ?? client).get({
2036
- url: "/public/legreffier/status/{workflowId}",
2063
+ url: "/teams/{id}",
2037
2064
  ...options
2038
2065
  });
2039
2066
  /**
2040
- * List built-in task types with their input schemas and CIDs. Consumers (UIs, MCP tools, agents) use this to render forms or validate inputs without hardcoding the registry.
2067
+ * Get team details. Requires team access.
2041
2068
  */
2042
- var listTaskSchemas = (options) => (options?.client ?? client).get({
2069
+ var getTeam = (options) => (options.client ?? client).get({
2043
2070
  security: [
2044
2071
  {
2045
2072
  scheme: "bearer",
@@ -2055,13 +2082,13 @@ var listTaskSchemas = (options) => (options?.client ?? client).get({
2055
2082
  type: "apiKey"
2056
2083
  }
2057
2084
  ],
2058
- url: "/tasks/schemas",
2085
+ url: "/teams/{id}",
2059
2086
  ...options
2060
2087
  });
2061
2088
  /**
2062
- * List tasks for a team with optional filters.
2089
+ * List invite codes. Requires manage_members permission.
2063
2090
  */
2064
- var listTasks = (options) => (options.client ?? client).get({
2091
+ var listTeamInvites = (options) => (options.client ?? client).get({
2065
2092
  security: [
2066
2093
  {
2067
2094
  scheme: "bearer",
@@ -2077,13 +2104,13 @@ var listTasks = (options) => (options.client ?? client).get({
2077
2104
  type: "apiKey"
2078
2105
  }
2079
2106
  ],
2080
- url: "/tasks",
2107
+ url: "/teams/{id}/invites",
2081
2108
  ...options
2082
2109
  });
2083
2110
  /**
2084
- * Create and enqueue a new task.
2111
+ * Create an invite code. Requires manage_members permission.
2085
2112
  */
2086
- var createTask = (options) => (options.client ?? client).post({
2113
+ var createTeamInvite = (options) => (options.client ?? client).post({
2087
2114
  security: [
2088
2115
  {
2089
2116
  scheme: "bearer",
@@ -2099,7 +2126,7 @@ var createTask = (options) => (options.client ?? client).post({
2099
2126
  type: "apiKey"
2100
2127
  }
2101
2128
  ],
2102
- url: "/tasks",
2129
+ url: "/teams/{id}/invites",
2103
2130
  ...options,
2104
2131
  headers: {
2105
2132
  "Content-Type": "application/json",
@@ -2107,9 +2134,9 @@ var createTask = (options) => (options.client ?? client).post({
2107
2134
  }
2108
2135
  });
2109
2136
  /**
2110
- * Get a task by ID.
2137
+ * Delete an invite code. Requires manage_members permission.
2111
2138
  */
2112
- var getTask = (options) => (options.client ?? client).get({
2139
+ var deleteTeamInvite = (options) => (options.client ?? client).delete({
2113
2140
  security: [
2114
2141
  {
2115
2142
  scheme: "bearer",
@@ -2125,13 +2152,13 @@ var getTask = (options) => (options.client ?? client).get({
2125
2152
  type: "apiKey"
2126
2153
  }
2127
2154
  ],
2128
- url: "/tasks/{id}",
2155
+ url: "/teams/{id}/invites/{inviteId}",
2129
2156
  ...options
2130
2157
  });
2131
2158
  /**
2132
- * Claim a queued task and start an attempt.
2159
+ * List team members. Requires team access.
2133
2160
  */
2134
- var claimTask = (options) => (options.client ?? client).post({
2161
+ var listTeamMembers = (options) => (options.client ?? client).get({
2135
2162
  security: [
2136
2163
  {
2137
2164
  scheme: "bearer",
@@ -2147,17 +2174,13 @@ var claimTask = (options) => (options.client ?? client).post({
2147
2174
  type: "apiKey"
2148
2175
  }
2149
2176
  ],
2150
- url: "/tasks/{id}/claim",
2151
- ...options,
2152
- headers: {
2153
- "Content-Type": "application/json",
2154
- ...options.headers
2155
- }
2177
+ url: "/teams/{id}/members",
2178
+ ...options
2156
2179
  });
2157
2180
  /**
2158
- * Send a heartbeat to keep the attempt lease alive.
2181
+ * Remove a member. Requires manage_members permission.
2159
2182
  */
2160
- var taskHeartbeat = (options) => (options.client ?? client).post({
2183
+ var removeTeamMember = (options) => (options.client ?? client).delete({
2161
2184
  security: [
2162
2185
  {
2163
2186
  scheme: "bearer",
@@ -2173,17 +2196,13 @@ var taskHeartbeat = (options) => (options.client ?? client).post({
2173
2196
  type: "apiKey"
2174
2197
  }
2175
2198
  ],
2176
- url: "/tasks/{id}/attempts/{n}/heartbeat",
2177
- ...options,
2178
- headers: {
2179
- "Content-Type": "application/json",
2180
- ...options.headers
2181
- }
2199
+ url: "/teams/{id}/members/{subjectId}",
2200
+ ...options
2182
2201
  });
2183
2202
  /**
2184
- * Mark an attempt as completed with output.
2203
+ * Update a member role between member and manager. Requires manage_members permission.
2185
2204
  */
2186
- var completeTask = (options) => (options.client ?? client).post({
2205
+ var updateTeamMemberRole = (options) => (options.client ?? client).patch({
2187
2206
  security: [
2188
2207
  {
2189
2208
  scheme: "bearer",
@@ -2199,7 +2218,7 @@ var completeTask = (options) => (options.client ?? client).post({
2199
2218
  type: "apiKey"
2200
2219
  }
2201
2220
  ],
2202
- url: "/tasks/{id}/attempts/{n}/complete",
2221
+ url: "/teams/{id}/members/{subjectId}",
2203
2222
  ...options,
2204
2223
  headers: {
2205
2224
  "Content-Type": "application/json",
@@ -2207,9 +2226,9 @@ var completeTask = (options) => (options.client ?? client).post({
2207
2226
  }
2208
2227
  });
2209
2228
  /**
2210
- * Mark an attempt as failed with error details.
2229
+ * List pending transfers where the caller is destination team owner.
2211
2230
  */
2212
- var failTask = (options) => (options.client ?? client).post({
2231
+ var listPendingTransfers = (options) => (options?.client ?? client).get({
2213
2232
  security: [
2214
2233
  {
2215
2234
  scheme: "bearer",
@@ -2225,17 +2244,13 @@ var failTask = (options) => (options.client ?? client).post({
2225
2244
  type: "apiKey"
2226
2245
  }
2227
2246
  ],
2228
- url: "/tasks/{id}/attempts/{n}/fail",
2229
- ...options,
2230
- headers: {
2231
- "Content-Type": "application/json",
2232
- ...options.headers
2233
- }
2247
+ url: "/transfers",
2248
+ ...options
2234
2249
  });
2235
2250
  /**
2236
- * Cancel a task.
2251
+ * Accept a pending diary transfer. Caller must be destination team owner.
2237
2252
  */
2238
- var cancelTask = (options) => (options.client ?? client).post({
2253
+ var acceptTransfer = (options) => (options.client ?? client).post({
2239
2254
  security: [
2240
2255
  {
2241
2256
  scheme: "bearer",
@@ -2251,17 +2266,13 @@ var cancelTask = (options) => (options.client ?? client).post({
2251
2266
  type: "apiKey"
2252
2267
  }
2253
2268
  ],
2254
- url: "/tasks/{id}/cancel",
2255
- ...options,
2256
- headers: {
2257
- "Content-Type": "application/json",
2258
- ...options.headers
2259
- }
2269
+ url: "/transfers/{transferId}/accept",
2270
+ ...options
2260
2271
  });
2261
2272
  /**
2262
- * List all attempts for a task.
2273
+ * Reject a pending diary transfer.
2263
2274
  */
2264
- var listTaskAttempts = (options) => (options.client ?? client).get({
2275
+ var rejectTransfer = (options) => (options.client ?? client).post({
2265
2276
  security: [
2266
2277
  {
2267
2278
  scheme: "bearer",
@@ -2277,13 +2288,13 @@ var listTaskAttempts = (options) => (options.client ?? client).get({
2277
2288
  type: "apiKey"
2278
2289
  }
2279
2290
  ],
2280
- url: "/tasks/{id}/attempts",
2291
+ url: "/transfers/{transferId}/reject",
2281
2292
  ...options
2282
2293
  });
2283
2294
  /**
2284
- * List messages for a task attempt.
2295
+ * Generate a single-use voucher code that another agent can use to register. Requires authentication. Max 5 active vouchers per agent.
2285
2296
  */
2286
- var listTaskMessages = (options) => (options.client ?? client).get({
2297
+ var issueVoucher = (options) => (options?.client ?? client).post({
2287
2298
  security: [
2288
2299
  {
2289
2300
  scheme: "bearer",
@@ -2299,13 +2310,13 @@ var listTaskMessages = (options) => (options.client ?? client).get({
2299
2310
  type: "apiKey"
2300
2311
  }
2301
2312
  ],
2302
- url: "/tasks/{id}/attempts/{n}/messages",
2313
+ url: "/vouch",
2303
2314
  ...options
2304
2315
  });
2305
2316
  /**
2306
- * Append messages to a task attempt.
2317
+ * List your active (unredeemed, unexpired) voucher codes.
2307
2318
  */
2308
- var appendTaskMessages = (options) => (options.client ?? client).post({
2319
+ var listActiveVouchers = (options) => (options?.client ?? client).get({
2309
2320
  security: [
2310
2321
  {
2311
2322
  scheme: "bearer",
@@ -2321,25 +2332,14 @@ var appendTaskMessages = (options) => (options.client ?? client).post({
2321
2332
  type: "apiKey"
2322
2333
  }
2323
2334
  ],
2324
- url: "/tasks/{id}/attempts/{n}/messages",
2325
- ...options,
2326
- headers: {
2327
- "Content-Type": "application/json",
2328
- ...options.headers
2329
- }
2330
- });
2331
- /**
2332
- * List all problem types used in API error responses (RFC 9457).
2333
- */
2334
- var listProblemTypes = (options) => (options?.client ?? client).get({
2335
- url: "/problems",
2335
+ url: "/vouch/active",
2336
2336
  ...options
2337
2337
  });
2338
2338
  /**
2339
- * Get details about a specific problem type (RFC 9457).
2339
+ * Get the public web-of-trust graph. Each edge represents a redeemed voucher. Identified by key fingerprints (derived from public keys), not names.
2340
2340
  */
2341
- var getProblemType = (options) => (options.client ?? client).get({
2342
- url: "/problems/{type}",
2341
+ var getTrustGraph = (options) => (options?.client ?? client).get({
2342
+ url: "/vouch/graph",
2343
2343
  ...options
2344
2344
  });
2345
2345
  //#endregion
@@ -9378,6 +9378,14 @@ var CuratePackOutput = Type$1.Object({
9378
9378
  //#endregion
9379
9379
  //#region ../tasks/src/task-types/freeform.ts
9380
9380
  var FREEFORM_TYPE = "freeform";
9381
+ var FreeformExecutionOptions = Type$1.Object({ workspace: Type$1.Optional(Type$1.Union([
9382
+ Type$1.Literal("none"),
9383
+ Type$1.Literal("shared_mount"),
9384
+ Type$1.Literal("dedicated_worktree")
9385
+ ])) }, {
9386
+ $id: "FreeformExecutionOptions",
9387
+ additionalProperties: false
9388
+ });
9381
9389
  var FreeformTaskTypeProposal = Type$1.Object({
9382
9390
  name: Type$1.String({ minLength: 1 }),
9383
9391
  rationale: Type$1.String({ minLength: 1 }),
@@ -9394,7 +9402,8 @@ var FreeformInput = Type$1.Object({
9394
9402
  constraints: Type$1.Optional(Type$1.Array(Type$1.String({ minLength: 1 }), { maxItems: 20 })),
9395
9403
  suggestedTaskType: Type$1.Optional(Type$1.String({ minLength: 1 })),
9396
9404
  successCriteria: Type$1.Optional(SuccessCriteria),
9397
- context: Type$1.Optional(TaskContext)
9405
+ context: Type$1.Optional(TaskContext),
9406
+ execution: Type$1.Optional(FreeformExecutionOptions)
9398
9407
  }, {
9399
9408
  $id: "FreeformInput",
9400
9409
  additionalProperties: false
@@ -9404,24 +9413,16 @@ var FreeformArtifact = Type$1.Object({
9404
9413
  title: Type$1.String({ minLength: 1 }),
9405
9414
  description: Type$1.Optional(Type$1.String({ minLength: 1 })),
9406
9415
  url: Type$1.Optional(Type$1.String({ minLength: 1 })),
9407
- path: Type$1.Optional(Type$1.String({ minLength: 1 }))
9416
+ path: Type$1.Optional(Type$1.String({ minLength: 1 })),
9417
+ body: Type$1.Optional(Type$1.String({ maxLength: 65536 }))
9408
9418
  }, {
9409
9419
  $id: "FreeformArtifact",
9410
9420
  additionalProperties: false
9411
9421
  });
9412
- var FreeformFollowUpTask = Type$1.Object({
9413
- title: Type$1.String({ minLength: 1 }),
9414
- brief: Type$1.String({ minLength: 1 }),
9415
- suggestedTaskType: Type$1.Optional(Type$1.String({ minLength: 1 }))
9416
- }, {
9417
- $id: "FreeformFollowUpTask",
9418
- additionalProperties: false
9419
- });
9420
9422
  var FreeformOutput = Type$1.Object({
9421
9423
  summary: Type$1.String({ minLength: 1 }),
9422
9424
  artifacts: Type$1.Optional(Type$1.Array(FreeformArtifact, { maxItems: 20 })),
9423
9425
  proposedTaskType: Type$1.Optional(FreeformTaskTypeProposal),
9424
- followUpTasks: Type$1.Optional(Type$1.Array(FreeformFollowUpTask, { maxItems: 20 })),
9425
9426
  diaryEntryIds: Type$1.Optional(Type$1.Array(Type$1.String({ format: "uuid" }))),
9426
9427
  verification: Type$1.Optional(VerificationRecord)
9427
9428
  }, {
@@ -9992,8 +9993,11 @@ var BUILT_IN_TASK_TYPES = {
9992
9993
  inputSchema: FreeformInput,
9993
9994
  outputSchema: FreeformOutput,
9994
9995
  outputKind: "artifact",
9995
- workspaceScope: "attempt",
9996
- sessionScope: "none",
9996
+ resumable: true,
9997
+ workspaceMode: "shared_mount",
9998
+ workspaceScope: "session",
9999
+ sessionScope: "correlation",
10000
+ acceptsInputWorkspaceOverride: true,
9997
10001
  requiresReferences: false,
9998
10002
  validateOutput: requireVerificationWhenCriteriaPresent
9999
10003
  },
@@ -10074,6 +10078,7 @@ var BUILT_IN_TASK_TYPES = {
10074
10078
  resumable: true,
10075
10079
  workspaceScope: "session",
10076
10080
  sessionScope: "custom",
10081
+ acceptsInputWorkspaceOverride: true,
10077
10082
  requiresReferences: false,
10078
10083
  validateOutput: validateRunEvalOutput
10079
10084
  },
@@ -10949,8 +10954,7 @@ function buildFreeformUserPrompt(input, ctx) {
10949
10954
  "2. Gather enough context to avoid guessing.",
10950
10955
  "3. Complete the requested work when it is safe and bounded.",
10951
10956
  "4. If the request reveals a recurring task shape, include a",
10952
- " `proposedTaskType` in the final output with a concise rationale.",
10953
- "5. If the work should be split or continued, include `followUpTasks`."
10957
+ " `proposedTaskType` in the final output with a concise rationale."
10954
10958
  ].join("\n");
10955
10959
  return assembleTaskPrompt("freeform", [
10956
10960
  {
@@ -11008,9 +11012,8 @@ function buildFreeformUserPrompt(input, ctx) {
11008
11012
  shapeSketch: [
11009
11013
  "{",
11010
11014
  " \"summary\": \"<2-5 sentence result>\",",
11011
- " \"artifacts\": [{ \"kind\": \"...\", \"title\": \"...\", \"description\": \"...\", \"url\": \"...\", \"path\": \"...\" }],",
11015
+ " \"artifacts\": [{ \"kind\": \"...\", \"title\": \"...\", \"description\": \"...\", \"body\": \"<inline content up to 64 KiB; preferred for textual output so it persists with the task>\", \"url\": \"...\", \"path\": \"<worktree-ephemeral; not persisted after completion>\" }],",
11012
11016
  " \"proposedTaskType\": { \"name\": \"...\", \"rationale\": \"...\", \"inputShape\": {}, \"outputShape\": {} },",
11013
- " \"followUpTasks\": [{ \"title\": \"...\", \"brief\": \"...\", \"suggestedTaskType\": \"...\" }],",
11014
11017
  " \"diaryEntryIds\": [\"...\"],",
11015
11018
  " \"verification\": <required iff input.successCriteria; see Self-verification>",
11016
11019
  "}"
@@ -16583,7 +16586,7 @@ async function executePiTask(claimedTask, reporter, opts) {
16583
16586
  is_error: event.isError,
16584
16587
  result: event.isError ? truncateForWire(event.result) : void 0
16585
16588
  }));
16586
- if (event.isError) track(emitError("tool_call_error", describeToolErrorMessage(event.result), {
16589
+ if (shouldEmitToolCallError(event)) track(emitError("tool_call_error", describeToolErrorMessage(event.result), {
16587
16590
  tool: event.toolName,
16588
16591
  result: truncateForWire(event.result)
16589
16592
  }));
@@ -16835,6 +16838,28 @@ function summarizePayloadForLog(kind, payload) {
16835
16838
  }
16836
16839
  }
16837
16840
  /**
16841
+ * Classify a `tool_execution_end` event for telemetry purposes.
16842
+ *
16843
+ * Bash subprocess non-zero exits are routine — agents deliberately probe
16844
+ * absent commands (e.g. `command -v docker` returning 127) and treat the
16845
+ * non-zero exit as data. Surfacing those as `tool_call_error` events floods
16846
+ * the message stream with spurious errors and makes a successful
16847
+ * negative-space probe look like a failing task.
16848
+ *
16849
+ * Reserve the `error` kind for genuine tool-machinery failures (transport,
16850
+ * MCP, malformed response). The `is_error` flag on `tool_call_end` still
16851
+ * records the non-zero exit, so consumers can distinguish ok vs. failed
16852
+ * bash calls without searching for a sibling error event.
16853
+ *
16854
+ * Bash timeouts remain handled separately by the cap-abort path; that
16855
+ * branch doesn't go through `tool_call_error`.
16856
+ */
16857
+ function shouldEmitToolCallError(event) {
16858
+ if (!event.isError) return false;
16859
+ if (event.toolName === "bash") return false;
16860
+ return true;
16861
+ }
16862
+ /**
16838
16863
  * Detect pi's bash-timeout error wrapper in a `tool_execution_end`
16839
16864
  * result. The bash tool surfaces a timeout as a structured tool result
16840
16865
  * `{ content: [{ type: 'text', text: '… Command timed out after N