@inkeep/agents-cli 0.31.1 → 0.31.3

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 +314 -326
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -685,10 +685,10 @@ var init_dist = __esm({
685
685
  }
686
686
  });
687
687
 
688
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/utils/url.js
688
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/utils/url.js
689
689
  var tryDecode, _decodeURI, _getQueryParam, getQueryParam, getQueryParams, decodeURIComponent_;
690
690
  var init_url = __esm({
691
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/utils/url.js"() {
691
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/utils/url.js"() {
692
692
  "use strict";
693
693
  init_esm_shims();
694
694
  tryDecode = (str, decoder) => {
@@ -785,52 +785,52 @@ var init_url = __esm({
785
785
  }
786
786
  });
787
787
 
788
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/utils/cookie.js
788
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/utils/cookie.js
789
789
  var init_cookie = __esm({
790
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/utils/cookie.js"() {
790
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/utils/cookie.js"() {
791
791
  "use strict";
792
792
  init_esm_shims();
793
793
  init_url();
794
794
  }
795
795
  });
796
796
 
797
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/helper/cookie/index.js
797
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/helper/cookie/index.js
798
798
  var init_cookie2 = __esm({
799
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/helper/cookie/index.js"() {
799
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/helper/cookie/index.js"() {
800
800
  "use strict";
801
801
  init_esm_shims();
802
802
  init_cookie();
803
803
  }
804
804
  });
805
805
 
806
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/http-exception.js
806
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/http-exception.js
807
807
  var init_http_exception = __esm({
808
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/http-exception.js"() {
808
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/http-exception.js"() {
809
809
  "use strict";
810
810
  init_esm_shims();
811
811
  }
812
812
  });
813
813
 
814
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/utils/crypto.js
814
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/utils/crypto.js
815
815
  var init_crypto = __esm({
816
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/utils/crypto.js"() {
816
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/utils/crypto.js"() {
817
817
  "use strict";
818
818
  init_esm_shims();
819
819
  }
820
820
  });
821
821
 
822
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/utils/buffer.js
822
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/utils/buffer.js
823
823
  var init_buffer = __esm({
824
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/utils/buffer.js"() {
824
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/utils/buffer.js"() {
825
825
  "use strict";
826
826
  init_esm_shims();
827
827
  init_crypto();
828
828
  }
829
829
  });
830
830
 
831
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/validator/validator.js
831
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/validator/validator.js
832
832
  var init_validator = __esm({
833
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/validator/validator.js"() {
833
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/validator/validator.js"() {
834
834
  "use strict";
835
835
  init_esm_shims();
836
836
  init_cookie2();
@@ -839,43 +839,43 @@ var init_validator = __esm({
839
839
  }
840
840
  });
841
841
 
842
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/validator/index.js
842
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/validator/index.js
843
843
  var init_validator2 = __esm({
844
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/validator/index.js"() {
844
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/validator/index.js"() {
845
845
  "use strict";
846
846
  init_esm_shims();
847
847
  init_validator();
848
848
  }
849
849
  });
850
850
 
851
- // ../node_modules/.pnpm/@hono+zod-validator@0.7.4_hono@4.10.3_zod@4.1.12/node_modules/@hono/zod-validator/dist/index.js
851
+ // ../node_modules/.pnpm/@hono+zod-validator@0.7.4_hono@4.10.4_zod@4.1.12/node_modules/@hono/zod-validator/dist/index.js
852
852
  var init_dist2 = __esm({
853
- "../node_modules/.pnpm/@hono+zod-validator@0.7.4_hono@4.10.3_zod@4.1.12/node_modules/@hono/zod-validator/dist/index.js"() {
853
+ "../node_modules/.pnpm/@hono+zod-validator@0.7.4_hono@4.10.4_zod@4.1.12/node_modules/@hono/zod-validator/dist/index.js"() {
854
854
  "use strict";
855
855
  init_esm_shims();
856
856
  init_validator2();
857
857
  }
858
858
  });
859
859
 
860
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/compose.js
860
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/compose.js
861
861
  var init_compose = __esm({
862
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/compose.js"() {
862
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/compose.js"() {
863
863
  "use strict";
864
864
  init_esm_shims();
865
865
  }
866
866
  });
867
867
 
868
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/request/constants.js
868
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/request/constants.js
869
869
  var GET_MATCH_RESULT;
870
870
  var init_constants = __esm({
871
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/request/constants.js"() {
871
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/request/constants.js"() {
872
872
  "use strict";
873
873
  init_esm_shims();
874
874
  GET_MATCH_RESULT = Symbol();
875
875
  }
876
876
  });
877
877
 
878
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/utils/body.js
878
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/utils/body.js
879
879
  async function parseFormData(request, options) {
880
880
  const formData = await request.formData();
881
881
  if (formData) {
@@ -906,7 +906,7 @@ function convertFormDataToBodyData(formData, options) {
906
906
  }
907
907
  var parseBody, handleParsingAllValues, handleParsingNestedValues;
908
908
  var init_body = __esm({
909
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/utils/body.js"() {
909
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/utils/body.js"() {
910
910
  "use strict";
911
911
  init_esm_shims();
912
912
  init_request();
@@ -952,10 +952,10 @@ var init_body = __esm({
952
952
  }
953
953
  });
954
954
 
955
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/request.js
955
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/request.js
956
956
  var tryDecodeURIComponent, HonoRequest;
957
957
  var init_request = __esm({
958
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/request.js"() {
958
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/request.js"() {
959
959
  "use strict";
960
960
  init_esm_shims();
961
961
  init_http_exception();
@@ -1074,17 +1074,17 @@ var init_request = __esm({
1074
1074
  }
1075
1075
  });
1076
1076
 
1077
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/utils/html.js
1077
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/utils/html.js
1078
1078
  var init_html = __esm({
1079
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/utils/html.js"() {
1079
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/utils/html.js"() {
1080
1080
  "use strict";
1081
1081
  init_esm_shims();
1082
1082
  }
1083
1083
  });
1084
1084
 
1085
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/context.js
1085
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/context.js
1086
1086
  var init_context = __esm({
1087
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/context.js"() {
1087
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/context.js"() {
1088
1088
  "use strict";
1089
1089
  init_esm_shims();
1090
1090
  init_request();
@@ -1092,25 +1092,25 @@ var init_context = __esm({
1092
1092
  }
1093
1093
  });
1094
1094
 
1095
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/router.js
1095
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/router.js
1096
1096
  var init_router = __esm({
1097
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/router.js"() {
1097
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/router.js"() {
1098
1098
  "use strict";
1099
1099
  init_esm_shims();
1100
1100
  }
1101
1101
  });
1102
1102
 
1103
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/utils/constants.js
1103
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/utils/constants.js
1104
1104
  var init_constants2 = __esm({
1105
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/utils/constants.js"() {
1105
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/utils/constants.js"() {
1106
1106
  "use strict";
1107
1107
  init_esm_shims();
1108
1108
  }
1109
1109
  });
1110
1110
 
1111
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/hono-base.js
1111
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/hono-base.js
1112
1112
  var init_hono_base = __esm({
1113
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/hono-base.js"() {
1113
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/hono-base.js"() {
1114
1114
  "use strict";
1115
1115
  init_esm_shims();
1116
1116
  init_compose();
@@ -1121,19 +1121,19 @@ var init_hono_base = __esm({
1121
1121
  }
1122
1122
  });
1123
1123
 
1124
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/router/reg-exp-router/matcher.js
1124
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/router/reg-exp-router/matcher.js
1125
1125
  var init_matcher = __esm({
1126
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/router/reg-exp-router/matcher.js"() {
1126
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/router/reg-exp-router/matcher.js"() {
1127
1127
  "use strict";
1128
1128
  init_esm_shims();
1129
1129
  init_router();
1130
1130
  }
1131
1131
  });
1132
1132
 
1133
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/router/reg-exp-router/node.js
1133
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/router/reg-exp-router/node.js
1134
1134
  var PATH_ERROR, regExpMetaChars;
1135
1135
  var init_node = __esm({
1136
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/router/reg-exp-router/node.js"() {
1136
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/router/reg-exp-router/node.js"() {
1137
1137
  "use strict";
1138
1138
  init_esm_shims();
1139
1139
  PATH_ERROR = Symbol();
@@ -1141,18 +1141,18 @@ var init_node = __esm({
1141
1141
  }
1142
1142
  });
1143
1143
 
1144
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/router/reg-exp-router/trie.js
1144
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/router/reg-exp-router/trie.js
1145
1145
  var init_trie = __esm({
1146
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/router/reg-exp-router/trie.js"() {
1146
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/router/reg-exp-router/trie.js"() {
1147
1147
  "use strict";
1148
1148
  init_esm_shims();
1149
1149
  init_node();
1150
1150
  }
1151
1151
  });
1152
1152
 
1153
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/router/reg-exp-router/router.js
1153
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/router/reg-exp-router/router.js
1154
1154
  var init_router2 = __esm({
1155
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/router/reg-exp-router/router.js"() {
1155
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/router/reg-exp-router/router.js"() {
1156
1156
  "use strict";
1157
1157
  init_esm_shims();
1158
1158
  init_router();
@@ -1163,9 +1163,9 @@ var init_router2 = __esm({
1163
1163
  }
1164
1164
  });
1165
1165
 
1166
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/router/reg-exp-router/prepared-router.js
1166
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/router/reg-exp-router/prepared-router.js
1167
1167
  var init_prepared_router = __esm({
1168
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/router/reg-exp-router/prepared-router.js"() {
1168
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/router/reg-exp-router/prepared-router.js"() {
1169
1169
  "use strict";
1170
1170
  init_esm_shims();
1171
1171
  init_router();
@@ -1174,9 +1174,9 @@ var init_prepared_router = __esm({
1174
1174
  }
1175
1175
  });
1176
1176
 
1177
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/router/reg-exp-router/index.js
1177
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/router/reg-exp-router/index.js
1178
1178
  var init_reg_exp_router = __esm({
1179
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/router/reg-exp-router/index.js"() {
1179
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/router/reg-exp-router/index.js"() {
1180
1180
  "use strict";
1181
1181
  init_esm_shims();
1182
1182
  init_router2();
@@ -1184,27 +1184,27 @@ var init_reg_exp_router = __esm({
1184
1184
  }
1185
1185
  });
1186
1186
 
1187
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/router/smart-router/router.js
1187
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/router/smart-router/router.js
1188
1188
  var init_router3 = __esm({
1189
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/router/smart-router/router.js"() {
1189
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/router/smart-router/router.js"() {
1190
1190
  "use strict";
1191
1191
  init_esm_shims();
1192
1192
  init_router();
1193
1193
  }
1194
1194
  });
1195
1195
 
1196
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/router/smart-router/index.js
1196
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/router/smart-router/index.js
1197
1197
  var init_smart_router = __esm({
1198
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/router/smart-router/index.js"() {
1198
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/router/smart-router/index.js"() {
1199
1199
  "use strict";
1200
1200
  init_esm_shims();
1201
1201
  init_router3();
1202
1202
  }
1203
1203
  });
1204
1204
 
1205
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/router/trie-router/node.js
1205
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/router/trie-router/node.js
1206
1206
  var init_node2 = __esm({
1207
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/router/trie-router/node.js"() {
1207
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/router/trie-router/node.js"() {
1208
1208
  "use strict";
1209
1209
  init_esm_shims();
1210
1210
  init_router();
@@ -1212,9 +1212,9 @@ var init_node2 = __esm({
1212
1212
  }
1213
1213
  });
1214
1214
 
1215
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/router/trie-router/router.js
1215
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/router/trie-router/router.js
1216
1216
  var init_router4 = __esm({
1217
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/router/trie-router/router.js"() {
1217
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/router/trie-router/router.js"() {
1218
1218
  "use strict";
1219
1219
  init_esm_shims();
1220
1220
  init_url();
@@ -1222,18 +1222,18 @@ var init_router4 = __esm({
1222
1222
  }
1223
1223
  });
1224
1224
 
1225
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/router/trie-router/index.js
1225
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/router/trie-router/index.js
1226
1226
  var init_trie_router = __esm({
1227
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/router/trie-router/index.js"() {
1227
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/router/trie-router/index.js"() {
1228
1228
  "use strict";
1229
1229
  init_esm_shims();
1230
1230
  init_router4();
1231
1231
  }
1232
1232
  });
1233
1233
 
1234
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/hono.js
1234
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/hono.js
1235
1235
  var init_hono = __esm({
1236
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/hono.js"() {
1236
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/hono.js"() {
1237
1237
  "use strict";
1238
1238
  init_esm_shims();
1239
1239
  init_hono_base();
@@ -1243,19 +1243,19 @@ var init_hono = __esm({
1243
1243
  }
1244
1244
  });
1245
1245
 
1246
- // ../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/index.js
1246
+ // ../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/index.js
1247
1247
  var init_dist3 = __esm({
1248
- "../node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/index.js"() {
1248
+ "../node_modules/.pnpm/hono@4.10.4/node_modules/hono/dist/index.js"() {
1249
1249
  "use strict";
1250
1250
  init_esm_shims();
1251
1251
  init_hono();
1252
1252
  }
1253
1253
  });
1254
1254
 
1255
- // ../node_modules/.pnpm/@hono+zod-openapi@1.1.4_hono@4.10.3_zod@4.1.12/node_modules/@hono/zod-openapi/dist/index.js
1255
+ // ../node_modules/.pnpm/@hono+zod-openapi@1.1.4_hono@4.10.4_zod@4.1.12/node_modules/@hono/zod-openapi/dist/index.js
1256
1256
  import { z as z2 } from "zod";
1257
1257
  var init_dist4 = __esm({
1258
- "../node_modules/.pnpm/@hono+zod-openapi@1.1.4_hono@4.10.3_zod@4.1.12/node_modules/@hono/zod-openapi/dist/index.js"() {
1258
+ "../node_modules/.pnpm/@hono+zod-openapi@1.1.4_hono@4.10.4_zod@4.1.12/node_modules/@hono/zod-openapi/dist/index.js"() {
1259
1259
  "use strict";
1260
1260
  init_esm_shims();
1261
1261
  init_dist();
@@ -218206,11 +218206,11 @@ var init_index_node = __esm({
218206
218206
  }
218207
218207
  });
218208
218208
 
218209
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
218209
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.17.2/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
218210
218210
  import { z as z5 } from "zod";
218211
- var JSONRPC_VERSION, ProgressTokenSchema, CursorSchema, RequestMetaSchema, BaseRequestParamsSchema, RequestSchema, BaseNotificationParamsSchema, NotificationSchema, ResultSchema, RequestIdSchema, JSONRPCRequestSchema, JSONRPCNotificationSchema, JSONRPCResponseSchema, ErrorCode, JSONRPCErrorSchema, JSONRPCMessageSchema, EmptyResultSchema, CancelledNotificationSchema, IconSchema, IconsSchema, BaseMetadataSchema, ImplementationSchema, ClientCapabilitiesSchema, InitializeRequestSchema, ServerCapabilitiesSchema, InitializeResultSchema, InitializedNotificationSchema, PingRequestSchema, ProgressSchema, ProgressNotificationSchema, PaginatedRequestSchema, PaginatedResultSchema, ResourceContentsSchema, TextResourceContentsSchema, Base64Schema, BlobResourceContentsSchema, ResourceSchema, ResourceTemplateSchema, ListResourcesRequestSchema, ListResourcesResultSchema, ListResourceTemplatesRequestSchema, ListResourceTemplatesResultSchema, ReadResourceRequestSchema, ReadResourceResultSchema, ResourceListChangedNotificationSchema, SubscribeRequestSchema, UnsubscribeRequestSchema, ResourceUpdatedNotificationSchema, PromptArgumentSchema, PromptSchema, ListPromptsRequestSchema, ListPromptsResultSchema, GetPromptRequestSchema, TextContentSchema, ImageContentSchema, AudioContentSchema, EmbeddedResourceSchema, ResourceLinkSchema, ContentBlockSchema, PromptMessageSchema, GetPromptResultSchema, PromptListChangedNotificationSchema, ToolAnnotationsSchema, ToolSchema, ListToolsRequestSchema, ListToolsResultSchema, CallToolResultSchema, CompatibilityCallToolResultSchema, CallToolRequestSchema, ToolListChangedNotificationSchema, LoggingLevelSchema, SetLevelRequestSchema, LoggingMessageNotificationSchema, ModelHintSchema, ModelPreferencesSchema, SamplingMessageSchema, CreateMessageRequestSchema, CreateMessageResultSchema, BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema, EnumSchemaSchema, PrimitiveSchemaDefinitionSchema, ElicitRequestSchema, ElicitResultSchema, ResourceTemplateReferenceSchema, PromptReferenceSchema, CompleteRequestSchema, CompleteResultSchema, RootSchema, ListRootsRequestSchema, ListRootsResultSchema, RootsListChangedNotificationSchema, ClientRequestSchema, ClientNotificationSchema, ClientResultSchema, ServerRequestSchema, ServerNotificationSchema, ServerResultSchema;
218211
+ var JSONRPC_VERSION, ProgressTokenSchema, CursorSchema, RequestMetaSchema, BaseRequestParamsSchema, RequestSchema, BaseNotificationParamsSchema, NotificationSchema, ResultSchema, RequestIdSchema, JSONRPCRequestSchema, JSONRPCNotificationSchema, JSONRPCResponseSchema, ErrorCode, JSONRPCErrorSchema, JSONRPCMessageSchema, EmptyResultSchema, CancelledNotificationSchema, BaseMetadataSchema, ImplementationSchema, ClientCapabilitiesSchema, InitializeRequestSchema, ServerCapabilitiesSchema, InitializeResultSchema, InitializedNotificationSchema, PingRequestSchema, ProgressSchema, ProgressNotificationSchema, PaginatedRequestSchema, PaginatedResultSchema, ResourceContentsSchema, TextResourceContentsSchema, Base64Schema, BlobResourceContentsSchema, ResourceSchema, ResourceTemplateSchema, ListResourcesRequestSchema, ListResourcesResultSchema, ListResourceTemplatesRequestSchema, ListResourceTemplatesResultSchema, ReadResourceRequestSchema, ReadResourceResultSchema, ResourceListChangedNotificationSchema, SubscribeRequestSchema, UnsubscribeRequestSchema, ResourceUpdatedNotificationSchema, PromptArgumentSchema, PromptSchema, ListPromptsRequestSchema, ListPromptsResultSchema, GetPromptRequestSchema, TextContentSchema, ImageContentSchema, AudioContentSchema, EmbeddedResourceSchema, ResourceLinkSchema, ContentBlockSchema, PromptMessageSchema, GetPromptResultSchema, PromptListChangedNotificationSchema, ToolAnnotationsSchema, ToolSchema, ListToolsRequestSchema, ListToolsResultSchema, CallToolResultSchema, CompatibilityCallToolResultSchema, CallToolRequestSchema, ToolListChangedNotificationSchema, LoggingLevelSchema, SetLevelRequestSchema, LoggingMessageNotificationSchema, ModelHintSchema, ModelPreferencesSchema, SamplingMessageSchema, CreateMessageRequestSchema, CreateMessageResultSchema, BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema, EnumSchemaSchema, PrimitiveSchemaDefinitionSchema, ElicitRequestSchema, ElicitResultSchema, ResourceTemplateReferenceSchema, PromptReferenceSchema, CompleteRequestSchema, CompleteResultSchema, RootSchema, ListRootsRequestSchema, ListRootsResultSchema, RootsListChangedNotificationSchema, ClientRequestSchema, ClientNotificationSchema, ClientResultSchema, ServerRequestSchema, ServerNotificationSchema, ServerResultSchema;
218212
218212
  var init_types2 = __esm({
218213
- "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js"() {
218213
+ "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.17.2/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js"() {
218214
218214
  "use strict";
218215
218215
  init_esm_shims();
218216
218216
  JSONRPC_VERSION = "2.0";
@@ -218287,7 +218287,12 @@ var init_types2 = __esm({
218287
218287
  data: z5.optional(z5.unknown())
218288
218288
  })
218289
218289
  }).strict();
218290
- JSONRPCMessageSchema = z5.union([JSONRPCRequestSchema, JSONRPCNotificationSchema, JSONRPCResponseSchema, JSONRPCErrorSchema]);
218290
+ JSONRPCMessageSchema = z5.union([
218291
+ JSONRPCRequestSchema,
218292
+ JSONRPCNotificationSchema,
218293
+ JSONRPCResponseSchema,
218294
+ JSONRPCErrorSchema
218295
+ ]);
218291
218296
  EmptyResultSchema = ResultSchema.strict();
218292
218297
  CancelledNotificationSchema = NotificationSchema.extend({
218293
218298
  method: z5.literal("notifications/cancelled"),
@@ -218304,57 +218309,22 @@ var init_types2 = __esm({
218304
218309
  reason: z5.string().optional()
218305
218310
  })
218306
218311
  });
218307
- IconSchema = z5.object({
218308
- /**
218309
- * URL or data URI for the icon.
218310
- */
218311
- src: z5.string(),
218312
- /**
218313
- * Optional MIME type for the icon.
218314
- */
218315
- mimeType: z5.optional(z5.string()),
218316
- /**
218317
- * Optional array of strings that specify sizes at which the icon can be used.
218318
- * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
218319
- *
218320
- * If not provided, the client should assume that the icon can be used at any size.
218321
- */
218322
- sizes: z5.optional(z5.array(z5.string()))
218323
- }).passthrough();
218324
- IconsSchema = z5.object({
218325
- /**
218326
- * Optional set of sized icons that the client can display in a user interface.
218327
- *
218328
- * Clients that support rendering icons MUST support at least the following MIME types:
218329
- * - `image/png` - PNG images (safe, universal compatibility)
218330
- * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
218331
- *
218332
- * Clients that support rendering icons SHOULD also support:
218333
- * - `image/svg+xml` - SVG images (scalable but requires security precautions)
218334
- * - `image/webp` - WebP images (modern, efficient format)
218335
- */
218336
- icons: z5.array(IconSchema).optional()
218337
- }).passthrough();
218338
218312
  BaseMetadataSchema = z5.object({
218339
218313
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
218340
218314
  name: z5.string(),
218341
218315
  /**
218342
- * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
218343
- * even by those unfamiliar with domain-specific terminology.
218344
- *
218345
- * If not provided, the name should be used for display (except for Tool,
218346
- * where `annotations.title` should be given precedence over using `name`,
218347
- * if present).
218348
- */
218316
+ * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
218317
+ * even by those unfamiliar with domain-specific terminology.
218318
+ *
218319
+ * If not provided, the name should be used for display (except for Tool,
218320
+ * where `annotations.title` should be given precedence over using `name`,
218321
+ * if present).
218322
+ */
218349
218323
  title: z5.optional(z5.string())
218350
218324
  }).passthrough();
218351
218325
  ImplementationSchema = BaseMetadataSchema.extend({
218352
- version: z5.string(),
218353
- /**
218354
- * An optional URL of the website for this implementation.
218355
- */
218356
- websiteUrl: z5.optional(z5.string())
218357
- }).merge(IconsSchema);
218326
+ version: z5.string()
218327
+ });
218358
218328
  ClientCapabilitiesSchema = z5.object({
218359
218329
  /**
218360
218330
  * Experimental, non-standard capabilities that the client supports.
@@ -218548,7 +218518,7 @@ var init_types2 = __esm({
218548
218518
  * for notes on _meta usage.
218549
218519
  */
218550
218520
  _meta: z5.optional(z5.object({}).passthrough())
218551
- }).merge(IconsSchema);
218521
+ });
218552
218522
  ResourceTemplateSchema = BaseMetadataSchema.extend({
218553
218523
  /**
218554
218524
  * A URI template (according to RFC 6570) that can be used to construct resource URIs.
@@ -218569,7 +218539,7 @@ var init_types2 = __esm({
218569
218539
  * for notes on _meta usage.
218570
218540
  */
218571
218541
  _meta: z5.optional(z5.object({}).passthrough())
218572
- }).merge(IconsSchema);
218542
+ });
218573
218543
  ListResourcesRequestSchema = PaginatedRequestSchema.extend({
218574
218544
  method: z5.literal("resources/list")
218575
218545
  });
@@ -218652,7 +218622,7 @@ var init_types2 = __esm({
218652
218622
  * for notes on _meta usage.
218653
218623
  */
218654
218624
  _meta: z5.optional(z5.object({}).passthrough())
218655
- }).merge(IconsSchema);
218625
+ });
218656
218626
  ListPromptsRequestSchema = PaginatedRequestSchema.extend({
218657
218627
  method: z5.literal("prompts/list")
218658
218628
  });
@@ -218819,7 +218789,7 @@ var init_types2 = __esm({
218819
218789
  * for notes on _meta usage.
218820
218790
  */
218821
218791
  _meta: z5.optional(z5.object({}).passthrough())
218822
- }).merge(IconsSchema);
218792
+ });
218823
218793
  ListToolsRequestSchema = PaginatedRequestSchema.extend({
218824
218794
  method: z5.literal("tools/list")
218825
218795
  });
@@ -218869,7 +218839,16 @@ var init_types2 = __esm({
218869
218839
  ToolListChangedNotificationSchema = NotificationSchema.extend({
218870
218840
  method: z5.literal("notifications/tools/list_changed")
218871
218841
  });
218872
- LoggingLevelSchema = z5.enum(["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]);
218842
+ LoggingLevelSchema = z5.enum([
218843
+ "debug",
218844
+ "info",
218845
+ "notice",
218846
+ "warning",
218847
+ "error",
218848
+ "critical",
218849
+ "alert",
218850
+ "emergency"
218851
+ ]);
218873
218852
  SetLevelRequestSchema = RequestSchema.extend({
218874
218853
  method: z5.literal("logging/setLevel"),
218875
218854
  params: BaseRequestParamsSchema.extend({
@@ -218962,7 +218941,11 @@ var init_types2 = __esm({
218962
218941
  */
218963
218942
  stopReason: z5.optional(z5.enum(["endTurn", "stopSequence", "maxTokens"]).or(z5.string())),
218964
218943
  role: z5.enum(["user", "assistant"]),
218965
- content: z5.discriminatedUnion("type", [TextContentSchema, ImageContentSchema, AudioContentSchema])
218944
+ content: z5.discriminatedUnion("type", [
218945
+ TextContentSchema,
218946
+ ImageContentSchema,
218947
+ AudioContentSchema
218948
+ ])
218966
218949
  });
218967
218950
  BooleanSchemaSchema = z5.object({
218968
218951
  type: z5.literal("boolean"),
@@ -218992,7 +218975,12 @@ var init_types2 = __esm({
218992
218975
  enum: z5.array(z5.string()),
218993
218976
  enumNames: z5.optional(z5.array(z5.string()))
218994
218977
  }).passthrough();
218995
- PrimitiveSchemaDefinitionSchema = z5.union([BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema, EnumSchemaSchema]);
218978
+ PrimitiveSchemaDefinitionSchema = z5.union([
218979
+ BooleanSchemaSchema,
218980
+ StringSchemaSchema,
218981
+ NumberSchemaSchema,
218982
+ EnumSchemaSchema
218983
+ ]);
218996
218984
  ElicitRequestSchema = RequestSchema.extend({
218997
218985
  method: z5.literal("elicitation/create"),
218998
218986
  params: BaseRequestParamsSchema.extend({
@@ -219120,8 +219108,18 @@ var init_types2 = __esm({
219120
219108
  InitializedNotificationSchema,
219121
219109
  RootsListChangedNotificationSchema
219122
219110
  ]);
219123
- ClientResultSchema = z5.union([EmptyResultSchema, CreateMessageResultSchema, ElicitResultSchema, ListRootsResultSchema]);
219124
- ServerRequestSchema = z5.union([PingRequestSchema, CreateMessageRequestSchema, ElicitRequestSchema, ListRootsRequestSchema]);
219111
+ ClientResultSchema = z5.union([
219112
+ EmptyResultSchema,
219113
+ CreateMessageResultSchema,
219114
+ ElicitResultSchema,
219115
+ ListRootsResultSchema
219116
+ ]);
219117
+ ServerRequestSchema = z5.union([
219118
+ PingRequestSchema,
219119
+ CreateMessageRequestSchema,
219120
+ ElicitRequestSchema,
219121
+ ListRootsRequestSchema
219122
+ ]);
219125
219123
  ServerNotificationSchema = z5.union([
219126
219124
  CancelledNotificationSchema,
219127
219125
  ProgressNotificationSchema,
@@ -219146,29 +219144,16 @@ var init_types2 = __esm({
219146
219144
  }
219147
219145
  });
219148
219146
 
219149
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
219147
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.17.2/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
219150
219148
  import { z as z6 } from "zod";
219151
- var SafeUrlSchema, OAuthProtectedResourceMetadataSchema, OAuthMetadataSchema, OpenIdProviderMetadataSchema, OpenIdProviderDiscoveryMetadataSchema, OAuthTokensSchema, OAuthErrorResponseSchema, OptionalSafeUrlSchema, OAuthClientMetadataSchema, OAuthClientInformationSchema, OAuthClientInformationFullSchema, OAuthClientRegistrationErrorSchema, OAuthTokenRevocationRequestSchema;
219149
+ var OAuthProtectedResourceMetadataSchema, OAuthMetadataSchema, OpenIdProviderMetadataSchema, OpenIdProviderDiscoveryMetadataSchema, OAuthTokensSchema, OAuthErrorResponseSchema, OAuthClientMetadataSchema, OAuthClientInformationSchema, OAuthClientInformationFullSchema, OAuthClientRegistrationErrorSchema, OAuthTokenRevocationRequestSchema;
219152
219150
  var init_auth = __esm({
219153
- "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js"() {
219151
+ "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.17.2/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js"() {
219154
219152
  "use strict";
219155
219153
  init_esm_shims();
219156
- SafeUrlSchema = z6.string().url().superRefine((val, ctx) => {
219157
- if (!URL.canParse(val)) {
219158
- ctx.addIssue({
219159
- code: z6.ZodIssueCode.custom,
219160
- message: "URL must be parseable",
219161
- fatal: true
219162
- });
219163
- return z6.NEVER;
219164
- }
219165
- }).refine((url) => {
219166
- const u = new URL(url);
219167
- return u.protocol !== "javascript:" && u.protocol !== "data:" && u.protocol !== "vbscript:";
219168
- }, { message: "URL cannot use javascript:, data:, or vbscript: scheme" });
219169
219154
  OAuthProtectedResourceMetadataSchema = z6.object({
219170
219155
  resource: z6.string().url(),
219171
- authorization_servers: z6.array(SafeUrlSchema).optional(),
219156
+ authorization_servers: z6.array(z6.string().url()).optional(),
219172
219157
  jwks_uri: z6.string().url().optional(),
219173
219158
  scopes_supported: z6.array(z6.string()).optional(),
219174
219159
  bearer_methods_supported: z6.array(z6.string()).optional(),
@@ -219184,17 +219169,17 @@ var init_auth = __esm({
219184
219169
  }).passthrough();
219185
219170
  OAuthMetadataSchema = z6.object({
219186
219171
  issuer: z6.string(),
219187
- authorization_endpoint: SafeUrlSchema,
219188
- token_endpoint: SafeUrlSchema,
219189
- registration_endpoint: SafeUrlSchema.optional(),
219172
+ authorization_endpoint: z6.string(),
219173
+ token_endpoint: z6.string(),
219174
+ registration_endpoint: z6.string().optional(),
219190
219175
  scopes_supported: z6.array(z6.string()).optional(),
219191
219176
  response_types_supported: z6.array(z6.string()),
219192
219177
  response_modes_supported: z6.array(z6.string()).optional(),
219193
219178
  grant_types_supported: z6.array(z6.string()).optional(),
219194
219179
  token_endpoint_auth_methods_supported: z6.array(z6.string()).optional(),
219195
219180
  token_endpoint_auth_signing_alg_values_supported: z6.array(z6.string()).optional(),
219196
- service_documentation: SafeUrlSchema.optional(),
219197
- revocation_endpoint: SafeUrlSchema.optional(),
219181
+ service_documentation: z6.string().optional(),
219182
+ revocation_endpoint: z6.string().optional(),
219198
219183
  revocation_endpoint_auth_methods_supported: z6.array(z6.string()).optional(),
219199
219184
  revocation_endpoint_auth_signing_alg_values_supported: z6.array(z6.string()).optional(),
219200
219185
  introspection_endpoint: z6.string().optional(),
@@ -219204,11 +219189,11 @@ var init_auth = __esm({
219204
219189
  }).passthrough();
219205
219190
  OpenIdProviderMetadataSchema = z6.object({
219206
219191
  issuer: z6.string(),
219207
- authorization_endpoint: SafeUrlSchema,
219208
- token_endpoint: SafeUrlSchema,
219209
- userinfo_endpoint: SafeUrlSchema.optional(),
219210
- jwks_uri: SafeUrlSchema,
219211
- registration_endpoint: SafeUrlSchema.optional(),
219192
+ authorization_endpoint: z6.string(),
219193
+ token_endpoint: z6.string(),
219194
+ userinfo_endpoint: z6.string().optional(),
219195
+ jwks_uri: z6.string(),
219196
+ registration_endpoint: z6.string().optional(),
219212
219197
  scopes_supported: z6.array(z6.string()).optional(),
219213
219198
  response_types_supported: z6.array(z6.string()),
219214
219199
  response_modes_supported: z6.array(z6.string()).optional(),
@@ -219236,8 +219221,8 @@ var init_auth = __esm({
219236
219221
  request_parameter_supported: z6.boolean().optional(),
219237
219222
  request_uri_parameter_supported: z6.boolean().optional(),
219238
219223
  require_request_uri_registration: z6.boolean().optional(),
219239
- op_policy_uri: SafeUrlSchema.optional(),
219240
- op_tos_uri: SafeUrlSchema.optional()
219224
+ op_policy_uri: z6.string().optional(),
219225
+ op_tos_uri: z6.string().optional()
219241
219226
  }).passthrough();
219242
219227
  OpenIdProviderDiscoveryMetadataSchema = OpenIdProviderMetadataSchema.merge(OAuthMetadataSchema.pick({
219243
219228
  code_challenge_methods_supported: true
@@ -219256,20 +219241,19 @@ var init_auth = __esm({
219256
219241
  error_description: z6.string().optional(),
219257
219242
  error_uri: z6.string().optional()
219258
219243
  });
219259
- OptionalSafeUrlSchema = SafeUrlSchema.optional().or(z6.literal("").transform(() => void 0));
219260
219244
  OAuthClientMetadataSchema = z6.object({
219261
- redirect_uris: z6.array(SafeUrlSchema),
219245
+ redirect_uris: z6.array(z6.string()).refine((uris) => uris.every((uri) => URL.canParse(uri)), { message: "redirect_uris must contain valid URLs" }),
219262
219246
  token_endpoint_auth_method: z6.string().optional(),
219263
219247
  grant_types: z6.array(z6.string()).optional(),
219264
219248
  response_types: z6.array(z6.string()).optional(),
219265
219249
  client_name: z6.string().optional(),
219266
- client_uri: SafeUrlSchema.optional(),
219267
- logo_uri: OptionalSafeUrlSchema,
219250
+ client_uri: z6.string().optional(),
219251
+ logo_uri: z6.string().optional(),
219268
219252
  scope: z6.string().optional(),
219269
219253
  contacts: z6.array(z6.string()).optional(),
219270
- tos_uri: OptionalSafeUrlSchema,
219254
+ tos_uri: z6.string().optional(),
219271
219255
  policy_uri: z6.string().optional(),
219272
- jwks_uri: SafeUrlSchema.optional(),
219256
+ jwks_uri: z6.string().optional(),
219273
219257
  jwks: z6.any().optional(),
219274
219258
  software_id: z6.string().optional(),
219275
219259
  software_version: z6.string().optional(),
@@ -219293,18 +219277,18 @@ var init_auth = __esm({
219293
219277
  }
219294
219278
  });
219295
219279
 
219296
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js
219280
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.17.2/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js
219297
219281
  var init_auth_utils = __esm({
219298
- "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js"() {
219282
+ "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.17.2/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js"() {
219299
219283
  "use strict";
219300
219284
  init_esm_shims();
219301
219285
  }
219302
219286
  });
219303
219287
 
219304
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js
219288
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.17.2/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js
219305
219289
  var OAuthError, InvalidRequestError, InvalidClientError, InvalidGrantError, UnauthorizedClientError, UnsupportedGrantTypeError, InvalidScopeError, AccessDeniedError, ServerError, TemporarilyUnavailableError, UnsupportedResponseTypeError, UnsupportedTokenTypeError, InvalidTokenError, MethodNotAllowedError, TooManyRequestsError, InvalidClientMetadataError, InsufficientScopeError, OAUTH_ERRORS;
219306
219290
  var init_errors = __esm({
219307
- "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js"() {
219291
+ "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.17.2/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js"() {
219308
219292
  "use strict";
219309
219293
  init_esm_shims();
219310
219294
  OAuthError = class extends Error {
@@ -219399,9 +219383,9 @@ var init_errors = __esm({
219399
219383
  }
219400
219384
  });
219401
219385
 
219402
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js
219386
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.17.2/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js
219403
219387
  var init_auth2 = __esm({
219404
- "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js"() {
219388
+ "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.17.2/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js"() {
219405
219389
  "use strict";
219406
219390
  init_esm_shims();
219407
219391
  init_index_node();
@@ -219595,9 +219579,9 @@ var init_execution = __esm({
219595
219579
  }
219596
219580
  });
219597
219581
 
219598
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
219582
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.17.2/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
219599
219583
  var init_protocol = __esm({
219600
- "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js"() {
219584
+ "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.17.2/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js"() {
219601
219585
  "use strict";
219602
219586
  init_esm_shims();
219603
219587
  init_types2();
@@ -225865,10 +225849,10 @@ var require_ajv = __commonJS({
225865
225849
  }
225866
225850
  });
225867
225851
 
225868
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js
225852
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.17.2/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js
225869
225853
  var import_ajv;
225870
225854
  var init_client2 = __esm({
225871
- "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js"() {
225855
+ "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.17.2/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js"() {
225872
225856
  "use strict";
225873
225857
  init_esm_shims();
225874
225858
  init_protocol();
@@ -225877,9 +225861,9 @@ var init_client2 = __esm({
225877
225861
  }
225878
225862
  });
225879
225863
 
225880
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.js
225864
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.17.2/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.js
225881
225865
  var init_sse = __esm({
225882
- "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.js"() {
225866
+ "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.17.2/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.js"() {
225883
225867
  "use strict";
225884
225868
  init_esm_shims();
225885
225869
  init_types2();
@@ -225887,9 +225871,9 @@ var init_sse = __esm({
225887
225871
  }
225888
225872
  });
225889
225873
 
225890
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js
225874
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.17.2/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js
225891
225875
  var init_streamableHttp = __esm({
225892
- "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js"() {
225876
+ "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.17.2/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js"() {
225893
225877
  "use strict";
225894
225878
  init_esm_shims();
225895
225879
  init_types2();
@@ -233940,27 +233924,27 @@ var init_memory_store = __esm({
233940
233924
  }
233941
233925
  });
233942
233926
 
233943
- // ../node_modules/.pnpm/@nangohq+node@0.69.5/node_modules/@nangohq/node/dist/version.js
233927
+ // ../node_modules/.pnpm/@nangohq+node@0.69.9/node_modules/@nangohq/node/dist/version.js
233944
233928
  var init_version2 = __esm({
233945
- "../node_modules/.pnpm/@nangohq+node@0.69.5/node_modules/@nangohq/node/dist/version.js"() {
233929
+ "../node_modules/.pnpm/@nangohq+node@0.69.9/node_modules/@nangohq/node/dist/version.js"() {
233946
233930
  "use strict";
233947
233931
  init_esm_shims();
233948
233932
  }
233949
233933
  });
233950
233934
 
233951
- // ../node_modules/.pnpm/@nangohq+node@0.69.5/node_modules/@nangohq/node/dist/utils.js
233935
+ // ../node_modules/.pnpm/@nangohq+node@0.69.9/node_modules/@nangohq/node/dist/utils.js
233952
233936
  var init_utils2 = __esm({
233953
- "../node_modules/.pnpm/@nangohq+node@0.69.5/node_modules/@nangohq/node/dist/utils.js"() {
233937
+ "../node_modules/.pnpm/@nangohq+node@0.69.9/node_modules/@nangohq/node/dist/utils.js"() {
233954
233938
  "use strict";
233955
233939
  init_esm_shims();
233956
233940
  init_version2();
233957
233941
  }
233958
233942
  });
233959
233943
 
233960
- // ../node_modules/.pnpm/@nangohq+node@0.69.5/node_modules/@nangohq/node/dist/types.js
233944
+ // ../node_modules/.pnpm/@nangohq+node@0.69.9/node_modules/@nangohq/node/dist/types.js
233961
233945
  var SyncConfigType;
233962
233946
  var init_types4 = __esm({
233963
- "../node_modules/.pnpm/@nangohq+node@0.69.5/node_modules/@nangohq/node/dist/types.js"() {
233947
+ "../node_modules/.pnpm/@nangohq+node@0.69.9/node_modules/@nangohq/node/dist/types.js"() {
233964
233948
  "use strict";
233965
233949
  init_esm_shims();
233966
233950
  (function(SyncConfigType2) {
@@ -233970,12 +233954,12 @@ var init_types4 = __esm({
233970
233954
  }
233971
233955
  });
233972
233956
 
233973
- // ../node_modules/.pnpm/@nangohq+node@0.69.5/node_modules/@nangohq/node/dist/index.js
233957
+ // ../node_modules/.pnpm/@nangohq+node@0.69.9/node_modules/@nangohq/node/dist/index.js
233974
233958
  import crypto5 from "crypto";
233975
233959
  import https from "https";
233976
233960
  var defaultHttpsAgent;
233977
233961
  var init_dist5 = __esm({
233978
- "../node_modules/.pnpm/@nangohq+node@0.69.5/node_modules/@nangohq/node/dist/index.js"() {
233962
+ "../node_modules/.pnpm/@nangohq+node@0.69.9/node_modules/@nangohq/node/dist/index.js"() {
233979
233963
  "use strict";
233980
233964
  init_esm_shims();
233981
233965
  init_utils2();
@@ -234538,6 +234522,62 @@ ${errorText}` : ""}`
234538
234522
  }
234539
234523
  });
234540
234524
 
234525
+ // src/utils/cli-pipeline.ts
234526
+ import * as p4 from "@clack/prompts";
234527
+ import chalk5 from "chalk";
234528
+ async function initializeCommand(options = {}) {
234529
+ const {
234530
+ configPath,
234531
+ showSpinner = false,
234532
+ spinnerText = "Loading configuration...",
234533
+ logConfig = true
234534
+ } = options;
234535
+ const s = showSpinner ? p4.spinner() : void 0;
234536
+ if (s) {
234537
+ s.start(spinnerText);
234538
+ }
234539
+ try {
234540
+ const config = await validateConfiguration(configPath);
234541
+ if (s) {
234542
+ s.stop("Configuration loaded");
234543
+ }
234544
+ if (logConfig) {
234545
+ console.log(chalk5.gray("Configuration:"));
234546
+ console.log(chalk5.gray(` \u2022 Tenant ID: ${config.tenantId}`));
234547
+ console.log(chalk5.gray(` \u2022 Manage API URL: ${config.agentsManageApiUrl}`));
234548
+ console.log(chalk5.gray(` \u2022 Run API URL: ${config.agentsRunApiUrl}`));
234549
+ if (config.sources.configFile) {
234550
+ console.log(chalk5.gray(` \u2022 Config file: ${config.sources.configFile}`));
234551
+ }
234552
+ }
234553
+ return { config };
234554
+ } catch (error) {
234555
+ if (s) {
234556
+ s.stop("Configuration failed");
234557
+ }
234558
+ console.error(chalk5.red("Error:"), error.message);
234559
+ if (error.message.includes("No configuration found")) {
234560
+ console.log(chalk5.yellow("\nHint: Create a configuration file by running:"));
234561
+ console.log(chalk5.gray(" inkeep init"));
234562
+ } else if (error.message.includes("Config file not found")) {
234563
+ console.log(chalk5.yellow("\nHint: Check that your config file path is correct"));
234564
+ } else if (error.message.includes("tenantId") || error.message.includes("API URL")) {
234565
+ console.log(chalk5.yellow("\nHint: Ensure your inkeep.config.ts has all required fields:"));
234566
+ console.log(chalk5.gray(" - tenantId"));
234567
+ console.log(chalk5.gray(" - agentsManageApiUrl (or agentsManageApi.url)"));
234568
+ console.log(chalk5.gray(" - agentsRunApiUrl (or agentsRunApi.url)"));
234569
+ }
234570
+ process.exit(1);
234571
+ }
234572
+ }
234573
+ var init_cli_pipeline = __esm({
234574
+ "src/utils/cli-pipeline.ts"() {
234575
+ "use strict";
234576
+ init_esm_shims();
234577
+ init_config();
234578
+ }
234579
+ });
234580
+
234541
234581
  // src/utils/version-check.ts
234542
234582
  import { existsSync as existsSync5, readFileSync as readFileSync2 } from "fs";
234543
234583
  import { dirname as dirname4, join as join5 } from "path";
@@ -234634,6 +234674,38 @@ var init_background_version_check = __esm({
234634
234674
  }
234635
234675
  });
234636
234676
 
234677
+ // src/utils/project-loader.ts
234678
+ var project_loader_exports = {};
234679
+ __export(project_loader_exports, {
234680
+ loadProject: () => loadProject
234681
+ });
234682
+ import { existsSync as existsSync6 } from "fs";
234683
+ import { join as join6 } from "path";
234684
+ async function loadProject(projectDir) {
234685
+ const indexPath = join6(projectDir, "index.ts");
234686
+ if (!existsSync6(indexPath)) {
234687
+ throw new Error(`index.ts not found in project directory: ${projectDir}`);
234688
+ }
234689
+ const module = await importWithTypeScriptSupport(indexPath);
234690
+ const exports = Object.keys(module);
234691
+ for (const exportKey of exports) {
234692
+ const value = module[exportKey];
234693
+ if (value && typeof value === "object" && value.__type === "project") {
234694
+ return value;
234695
+ }
234696
+ }
234697
+ throw new Error(
234698
+ 'No project export found in index.ts. Expected an export with __type = "project"'
234699
+ );
234700
+ }
234701
+ var init_project_loader = __esm({
234702
+ "src/utils/project-loader.ts"() {
234703
+ "use strict";
234704
+ init_esm_shims();
234705
+ init_tsx_loader();
234706
+ }
234707
+ });
234708
+
234637
234709
  // src/commands/pull-v3/utils/generator-utils.ts
234638
234710
  function toCamelCase(str) {
234639
234711
  const result = str.replace(/[-_](.)/g, (_, char) => char.toUpperCase()).replace(/[^a-zA-Z0-9]/g, "").replace(/^[0-9]/, "_$&");
@@ -237265,7 +237337,7 @@ var init_component_registry = __esm({
237265
237337
 
237266
237338
  // src/commands/pull-v3/introspect-generator.ts
237267
237339
  import { mkdirSync, writeFileSync as writeFileSync3 } from "fs";
237268
- import { dirname as dirname5, join as join6 } from "path";
237340
+ import { dirname as dirname5, join as join7 } from "path";
237269
237341
  import chalk8 from "chalk";
237270
237342
  function ensureDir(filePath) {
237271
237343
  const dir = dirname5(filePath);
@@ -237282,14 +237354,14 @@ async function introspectGenerate(project, paths, environment, debug, options =
237282
237354
  registerAllComponents(project, registry2);
237283
237355
  if (project.credentialReferences) {
237284
237356
  for (const [credId, credData] of Object.entries(project.credentialReferences)) {
237285
- const credentialFile = join6(paths.credentialsDir, `${credId}.ts`);
237357
+ const credentialFile = join7(paths.credentialsDir, `${credId}.ts`);
237286
237358
  const credentialContent = generateCredentialFile(credId, credData, style);
237287
237359
  ensureDir(credentialFile);
237288
237360
  writeFileSync3(credentialFile, credentialContent, "utf-8");
237289
237361
  generatedFiles.push(credentialFile);
237290
237362
  }
237291
237363
  }
237292
- const envFile = join6(paths.environmentsDir, `${environment}.env.ts`);
237364
+ const envFile = join7(paths.environmentsDir, `${environment}.env.ts`);
237293
237365
  const envData = {
237294
237366
  name: `${environment} Environment`,
237295
237367
  description: `Environment configuration for ${environment}`,
@@ -237300,7 +237372,7 @@ async function introspectGenerate(project, paths, environment, debug, options =
237300
237372
  ensureDir(envFile);
237301
237373
  writeFileSync3(envFile, envContent, "utf-8");
237302
237374
  generatedFiles.push(envFile);
237303
- const envIndexFile = join6(paths.environmentsDir, "index.ts");
237375
+ const envIndexFile = join7(paths.environmentsDir, "index.ts");
237304
237376
  const environments = [environment];
237305
237377
  const envIndexContent = generateEnvironmentIndexFile(environments, style);
237306
237378
  ensureDir(envIndexFile);
@@ -237308,7 +237380,7 @@ async function introspectGenerate(project, paths, environment, debug, options =
237308
237380
  generatedFiles.push(envIndexFile);
237309
237381
  if (project.functions) {
237310
237382
  for (const [funcId, funcData] of Object.entries(project.functions)) {
237311
- const functionFile = join6(paths.toolsDir, "functions", `${funcId}.ts`);
237383
+ const functionFile = join7(paths.toolsDir, "functions", `${funcId}.ts`);
237312
237384
  const functionContent = generateFunctionToolFile(funcId, funcData, style);
237313
237385
  ensureDir(functionFile);
237314
237386
  writeFileSync3(functionFile, functionContent, "utf-8");
@@ -237317,7 +237389,7 @@ async function introspectGenerate(project, paths, environment, debug, options =
237317
237389
  }
237318
237390
  if (project.tools) {
237319
237391
  for (const [toolId, toolData] of Object.entries(project.tools)) {
237320
- const toolFile = join6(paths.toolsDir, `${toolId}.ts`);
237392
+ const toolFile = join7(paths.toolsDir, `${toolId}.ts`);
237321
237393
  const toolContent = generateMcpToolFile(toolId, toolData, style, registry2);
237322
237394
  ensureDir(toolFile);
237323
237395
  writeFileSync3(toolFile, toolContent, "utf-8");
@@ -237326,7 +237398,7 @@ async function introspectGenerate(project, paths, environment, debug, options =
237326
237398
  }
237327
237399
  if (project.dataComponents) {
237328
237400
  for (const [dataId, dataData] of Object.entries(project.dataComponents)) {
237329
- const dataFile = join6(paths.dataComponentsDir, `${dataId}.ts`);
237401
+ const dataFile = join7(paths.dataComponentsDir, `${dataId}.ts`);
237330
237402
  const dataContent = generateDataComponentFile(dataId, dataData, style);
237331
237403
  ensureDir(dataFile);
237332
237404
  writeFileSync3(dataFile, dataContent, "utf-8");
@@ -237335,7 +237407,7 @@ async function introspectGenerate(project, paths, environment, debug, options =
237335
237407
  }
237336
237408
  if (project.artifactComponents) {
237337
237409
  for (const [artifactId, artifactData] of Object.entries(project.artifactComponents)) {
237338
- const artifactFile = join6(paths.artifactComponentsDir, `${artifactId}.ts`);
237410
+ const artifactFile = join7(paths.artifactComponentsDir, `${artifactId}.ts`);
237339
237411
  const artifactContent = generateArtifactComponentFile(artifactId, artifactData, style);
237340
237412
  ensureDir(artifactFile);
237341
237413
  writeFileSync3(artifactFile, artifactContent, "utf-8");
@@ -237347,7 +237419,7 @@ async function introspectGenerate(project, paths, environment, debug, options =
237347
237419
  for (const statusComp of registeredStatusComponents) {
237348
237420
  const statusData = findStatusComponentData(project, statusComp.id);
237349
237421
  if (statusData) {
237350
- const statusFile = join6(paths.statusComponentsDir, `${statusComp.id}.ts`);
237422
+ const statusFile = join7(paths.statusComponentsDir, `${statusComp.id}.ts`);
237351
237423
  const statusContent = generateStatusComponentFile(statusComp.id, statusData, style);
237352
237424
  ensureDir(statusFile);
237353
237425
  writeFileSync3(statusFile, statusContent, "utf-8");
@@ -237357,7 +237429,7 @@ async function introspectGenerate(project, paths, environment, debug, options =
237357
237429
  }
237358
237430
  if (project.externalAgents) {
237359
237431
  for (const [extAgentId, extAgentData] of Object.entries(project.externalAgents)) {
237360
- const extAgentFile = join6(paths.externalAgentsDir, `${extAgentId}.ts`);
237432
+ const extAgentFile = join7(paths.externalAgentsDir, `${extAgentId}.ts`);
237361
237433
  const extAgentContent = generateExternalAgentFile(
237362
237434
  extAgentId,
237363
237435
  extAgentData,
@@ -237374,7 +237446,7 @@ async function introspectGenerate(project, paths, environment, debug, options =
237374
237446
  for (const contextComp of registeredContextConfigs) {
237375
237447
  const contextData = findContextConfigData(project, contextComp.id);
237376
237448
  if (contextData) {
237377
- const contextFile = join6(paths.contextConfigsDir, `${contextComp.id}.ts`);
237449
+ const contextFile = join7(paths.contextConfigsDir, `${contextComp.id}.ts`);
237378
237450
  const contextContent = generateContextConfigFile(
237379
237451
  contextComp.id,
237380
237452
  contextData,
@@ -237401,7 +237473,7 @@ async function introspectGenerate(project, paths, environment, debug, options =
237401
237473
  if (agentData.subAgents) {
237402
237474
  const contextConfigData = agentData.contextConfig?.id ? findContextConfigData(project, agentData.contextConfig.id) : void 0;
237403
237475
  for (const [subAgentId, subAgentData] of Object.entries(agentData.subAgents)) {
237404
- const subAgentFile = join6(paths.agentsDir, "sub-agents", `${subAgentId}.ts`);
237476
+ const subAgentFile = join7(paths.agentsDir, "sub-agents", `${subAgentId}.ts`);
237405
237477
  const parentModels = agentData.models || project.models;
237406
237478
  const subAgentContent = generateSubAgentFile(
237407
237479
  subAgentId,
@@ -237422,7 +237494,7 @@ async function introspectGenerate(project, paths, environment, debug, options =
237422
237494
  }
237423
237495
  if (project.agents) {
237424
237496
  for (const [agentId, agentData] of Object.entries(project.agents)) {
237425
- const agentFile = join6(paths.agentsDir, `${agentId}.ts`);
237497
+ const agentFile = join7(paths.agentsDir, `${agentId}.ts`);
237426
237498
  const contextConfigData = agentData.contextConfig?.id ? findContextConfigData(project, agentData.contextConfig.id) : void 0;
237427
237499
  const agentContent = generateAgentFile(
237428
237500
  agentId,
@@ -237447,7 +237519,7 @@ async function introspectGenerate(project, paths, environment, debug, options =
237447
237519
  artifactComponents: project.artifactComponents ? Object.keys(project.artifactComponents) : [],
237448
237520
  credentialReferences: project.credentialReferences ? Object.keys(project.credentialReferences) : []
237449
237521
  };
237450
- const projectFile = join6(paths.projectRoot, "index.ts");
237522
+ const projectFile = join7(paths.projectRoot, "index.ts");
237451
237523
  const projectContent = generateProjectFile(
237452
237524
  project.id,
237453
237525
  projectDataForGenerator,
@@ -238451,38 +238523,6 @@ var init_project_comparator = __esm({
238451
238523
  }
238452
238524
  });
238453
238525
 
238454
- // src/utils/project-loader.ts
238455
- var project_loader_exports = {};
238456
- __export(project_loader_exports, {
238457
- loadProject: () => loadProject
238458
- });
238459
- import { existsSync as existsSync6 } from "fs";
238460
- import { join as join7 } from "path";
238461
- async function loadProject(projectDir) {
238462
- const indexPath = join7(projectDir, "index.ts");
238463
- if (!existsSync6(indexPath)) {
238464
- throw new Error(`index.ts not found in project directory: ${projectDir}`);
238465
- }
238466
- const module = await importWithTypeScriptSupport(indexPath);
238467
- const exports = Object.keys(module);
238468
- for (const exportKey of exports) {
238469
- const value = module[exportKey];
238470
- if (value && typeof value === "object" && value.__type === "project") {
238471
- return value;
238472
- }
238473
- }
238474
- throw new Error(
238475
- 'No project export found in index.ts. Expected an export with __type = "project"'
238476
- );
238477
- }
238478
- var init_project_loader = __esm({
238479
- "src/utils/project-loader.ts"() {
238480
- "use strict";
238481
- init_esm_shims();
238482
- init_tsx_loader();
238483
- }
238484
- });
238485
-
238486
238526
  // src/commands/pull-v3/component-parser.ts
238487
238527
  var component_parser_exports = {};
238488
238528
  __export(component_parser_exports, {
@@ -240262,35 +240302,9 @@ var init_project_index_generator = __esm({
240262
240302
 
240263
240303
  // src/commands/pull-v3/index.ts
240264
240304
  import { existsSync as existsSync11, mkdirSync as mkdirSync5 } from "fs";
240265
- import { dirname as dirname9, join as join13, resolve as resolve3 } from "path";
240305
+ import { join as join13, resolve as resolve3 } from "path";
240266
240306
  import * as p6 from "@clack/prompts";
240267
240307
  import chalk14 from "chalk";
240268
- async function loadProjectConfig(projectDir, configPathOverride) {
240269
- const configPath = configPathOverride ? resolve3(process.cwd(), configPathOverride) : join13(projectDir, "inkeep.config.ts");
240270
- if (!existsSync11(configPath)) {
240271
- throw new Error(`Configuration file not found: ${configPath}`);
240272
- }
240273
- try {
240274
- const config = await loadConfig(configPath);
240275
- if (!config.tenantId) {
240276
- throw new Error("tenantId is required in inkeep.config.ts");
240277
- }
240278
- return {
240279
- tenantId: config.tenantId,
240280
- agentsManageApi: {
240281
- url: config.agentsManageApiUrl || "http://localhost:3002",
240282
- ...config.agentsManageApiKey && { apiKey: config.agentsManageApiKey }
240283
- },
240284
- agentsRunApi: {
240285
- url: config.agentsRunApiUrl || "http://localhost:3003",
240286
- ...config.agentsRunApiKey && { apiKey: config.agentsRunApiKey }
240287
- },
240288
- outputDirectory: config.outputDirectory
240289
- };
240290
- } catch (error) {
240291
- throw new Error(`Failed to load configuration: ${error.message}`);
240292
- }
240293
- }
240294
240308
  function createProjectStructure(projectDir, projectId) {
240295
240309
  const projectRoot = projectDir;
240296
240310
  const paths = {
@@ -240437,31 +240451,54 @@ async function pullV3Command(options) {
240437
240451
  }
240438
240452
  const s = p6.spinner();
240439
240453
  try {
240440
- s.start("Loading configuration...");
240441
- let config = null;
240442
- const searchDir = process.cwd();
240443
- if (options.config) {
240444
- const configPath = resolve3(process.cwd(), options.config);
240445
- if (existsSync11(configPath)) {
240446
- config = await loadProjectConfig(dirname9(configPath), options.config);
240447
- } else {
240448
- throw new Error(`Configuration file not found: ${configPath}`);
240454
+ const { config } = await initializeCommand({
240455
+ configPath: options.config,
240456
+ showSpinner: true,
240457
+ spinnerText: "Loading configuration...",
240458
+ logConfig: true
240459
+ });
240460
+ s.start("Detecting project...");
240461
+ let projectDir;
240462
+ if (options.project) {
240463
+ projectDir = resolve3(process.cwd(), options.project);
240464
+ if (!existsSync11(join13(projectDir, "index.ts"))) {
240465
+ s.stop(`No index.ts found in specified project directory: ${projectDir}`);
240466
+ console.error(
240467
+ chalk14.yellow("The specified project directory must contain an index.ts file")
240468
+ );
240469
+ process.exit(1);
240449
240470
  }
240450
240471
  } else {
240451
- const currentConfigPath = join13(searchDir, "inkeep.config.ts");
240452
- if (existsSync11(currentConfigPath)) {
240453
- config = await loadProjectConfig(searchDir);
240472
+ const currentDir = process.cwd();
240473
+ if (existsSync11(join13(currentDir, "index.ts"))) {
240474
+ projectDir = currentDir;
240454
240475
  } else {
240455
- throw new Error("Could not find inkeep.config.ts");
240476
+ s.stop("No index.ts found in current directory");
240477
+ console.error(
240478
+ chalk14.yellow(
240479
+ "Please run this command from a directory containing index.ts or use --project <path>"
240480
+ )
240481
+ );
240482
+ process.exit(1);
240456
240483
  }
240457
240484
  }
240458
- const projectId = options.project;
240459
- if (!projectId) {
240460
- throw new Error("Project ID is required");
240485
+ s.stop(`Project found: ${projectDir}`);
240486
+ s.start("Loading local project to get project ID...");
240487
+ let localProjectForId;
240488
+ let projectId;
240489
+ try {
240490
+ localProjectForId = await loadProject(projectDir);
240491
+ projectId = localProjectForId.getId();
240492
+ s.stop(`Project ID: ${projectId}`);
240493
+ } catch (error) {
240494
+ s.stop("Failed to load local project");
240495
+ throw new Error(
240496
+ `Could not determine project ID. Local project failed to load: ${error instanceof Error ? error.message : String(error)}`
240497
+ );
240461
240498
  }
240462
- s.message("Configuration loaded");
240499
+ s.start(`Fetching project: ${projectId}`);
240463
240500
  const apiClient = await ManagementApiClient.create(
240464
- config.agentsManageApi.url,
240501
+ config.agentsManageApiUrl,
240465
240502
  options.config,
240466
240503
  config.tenantId,
240467
240504
  projectId
@@ -240547,8 +240584,6 @@ async function pullV3Command(options) {
240547
240584
  restoreLogLevel();
240548
240585
  return;
240549
240586
  }
240550
- const outputDir = config.outputDirectory && config.outputDirectory !== "default" ? config.outputDirectory : process.cwd();
240551
- const projectDir = resolve3(outputDir, projectId);
240552
240587
  const paths = createProjectStructure(projectDir, projectId);
240553
240588
  if (options.introspect) {
240554
240589
  console.log(chalk14.yellow("\n\u{1F50D} Introspect mode: Regenerating all files from scratch"));
@@ -240722,7 +240757,8 @@ var init_pull_v3 = __esm({
240722
240757
  init_esm_shims();
240723
240758
  init_api();
240724
240759
  init_background_version_check();
240725
- init_config();
240760
+ init_cli_pipeline();
240761
+ init_project_loader();
240726
240762
  init_introspect_generator();
240727
240763
  init_project_comparator();
240728
240764
  init_component_registry();
@@ -241752,62 +241788,10 @@ Note: Config file created in ${configDir}`));
241752
241788
  // src/commands/list-agents.ts
241753
241789
  init_esm_shims();
241754
241790
  init_api();
241791
+ init_cli_pipeline();
241755
241792
  import * as p5 from "@clack/prompts";
241756
241793
  import chalk6 from "chalk";
241757
241794
  import Table from "cli-table3";
241758
-
241759
- // src/utils/cli-pipeline.ts
241760
- init_esm_shims();
241761
- init_config();
241762
- import * as p4 from "@clack/prompts";
241763
- import chalk5 from "chalk";
241764
- async function initializeCommand(options = {}) {
241765
- const {
241766
- configPath,
241767
- showSpinner = false,
241768
- spinnerText = "Loading configuration...",
241769
- logConfig = true
241770
- } = options;
241771
- const s = showSpinner ? p4.spinner() : void 0;
241772
- if (s) {
241773
- s.start(spinnerText);
241774
- }
241775
- try {
241776
- const config = await validateConfiguration(configPath);
241777
- if (s) {
241778
- s.stop("Configuration loaded");
241779
- }
241780
- if (logConfig) {
241781
- console.log(chalk5.gray("Configuration:"));
241782
- console.log(chalk5.gray(` \u2022 Tenant ID: ${config.tenantId}`));
241783
- console.log(chalk5.gray(` \u2022 Manage API URL: ${config.agentsManageApiUrl}`));
241784
- console.log(chalk5.gray(` \u2022 Run API URL: ${config.agentsRunApiUrl}`));
241785
- if (config.sources.configFile) {
241786
- console.log(chalk5.gray(` \u2022 Config file: ${config.sources.configFile}`));
241787
- }
241788
- }
241789
- return { config };
241790
- } catch (error) {
241791
- if (s) {
241792
- s.stop("Configuration failed");
241793
- }
241794
- console.error(chalk5.red("Error:"), error.message);
241795
- if (error.message.includes("No configuration found")) {
241796
- console.log(chalk5.yellow("\nHint: Create a configuration file by running:"));
241797
- console.log(chalk5.gray(" inkeep init"));
241798
- } else if (error.message.includes("Config file not found")) {
241799
- console.log(chalk5.yellow("\nHint: Check that your config file path is correct"));
241800
- } else if (error.message.includes("tenantId") || error.message.includes("API URL")) {
241801
- console.log(chalk5.yellow("\nHint: Ensure your inkeep.config.ts has all required fields:"));
241802
- console.log(chalk5.gray(" - tenantId"));
241803
- console.log(chalk5.gray(" - agentsManageApiUrl (or agentsManageApi.url)"));
241804
- console.log(chalk5.gray(" - agentsRunApiUrl (or agentsRunApi.url)"));
241805
- }
241806
- process.exit(1);
241807
- }
241808
- }
241809
-
241810
- // src/commands/list-agents.ts
241811
241795
  async function listAgentsCommand(options) {
241812
241796
  const configPath = options.config || options.configFilePath;
241813
241797
  const { config } = await initializeCommand({
@@ -241876,6 +241860,7 @@ import { join as join15, resolve as resolve4 } from "path";
241876
241860
  import * as p7 from "@clack/prompts";
241877
241861
  import chalk15 from "chalk";
241878
241862
  init_background_version_check();
241863
+ init_cli_pipeline();
241879
241864
 
241880
241865
  // src/utils/environment-loader.ts
241881
241866
  init_esm_shims();
@@ -242262,7 +242247,10 @@ program.command("push").description("Push a project configuration to the backend
242262
242247
  ).option("--json", "Generate project data JSON file instead of pushing to backend").action(async (options) => {
242263
242248
  await pushCommand(options);
242264
242249
  });
242265
- program.command("pull").description("Pull project configuration with clean, efficient code generation").option("--project <project-id>", "Project ID to pull from backend").option("--config <path>", "Path to configuration file").option(
242250
+ program.command("pull").description("Pull project configuration with clean, efficient code generation").option(
242251
+ "--project <project-id>",
242252
+ "Override project ID (defaults to local project ID from index.ts)"
242253
+ ).option("--config <path>", "Path to configuration file").option(
242266
242254
  "--env <environment>",
242267
242255
  "Environment file to generate (development, staging, production). Defaults to development"
242268
242256
  ).option("--json", "Output project data as JSON instead of generating files").option("--debug", "Enable debug logging").option("--verbose", "Enable verbose logging").option("--force", "Force regeneration even if no changes detected").option("--introspect", "Completely regenerate all files from scratch (no comparison needed)").action(async (options) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-cli",
3
- "version": "0.31.1",
3
+ "version": "0.31.3",
4
4
  "description": "Inkeep CLI tool",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -49,8 +49,8 @@
49
49
  "ts-morph": "^26.0.0",
50
50
  "tsx": "^4.20.5",
51
51
  "open": "^10.2.0",
52
- "@inkeep/agents-core": "^0.31.1",
53
- "@inkeep/agents-sdk": "^0.31.1"
52
+ "@inkeep/agents-core": "^0.31.3",
53
+ "@inkeep/agents-sdk": "^0.31.3"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/degit": "^2.8.6",