@easynet/agent-tool-buildin 0.0.68 → 0.0.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-tool-extension-compat.d.ts.map +1 -1
- package/dist/agent-tool-extension-compat.js +14 -4
- package/dist/agent-tool-extension-compat.js.map +1 -1
- package/dist/core-tools-manifest.json +6 -503
- package/dist/src/analyze/analyzeProjectRepo.constants.d.ts +6 -0
- package/dist/src/analyze/analyzeProjectRepo.constants.d.ts.map +1 -0
- package/dist/src/analyze/analyzeProjectRepo.constants.js +53 -0
- package/dist/src/analyze/analyzeProjectRepo.constants.js.map +1 -0
- package/dist/src/analyze/analyzeProjectRepo.d.ts +4 -9
- package/dist/src/analyze/analyzeProjectRepo.d.ts.map +1 -1
- package/dist/src/analyze/analyzeProjectRepo.js +100 -122
- package/dist/src/analyze/analyzeProjectRepo.js.map +1 -1
- package/dist/src/analyze/askProjectRepo.d.ts +0 -2
- package/dist/src/analyze/askProjectRepo.d.ts.map +1 -1
- package/dist/src/analyze/askProjectRepo.helpers.d.ts +57 -0
- package/dist/src/analyze/askProjectRepo.helpers.d.ts.map +1 -0
- package/dist/src/analyze/askProjectRepo.helpers.js +233 -0
- package/dist/src/analyze/askProjectRepo.helpers.js.map +1 -0
- package/dist/src/analyze/askProjectRepo.js +132 -354
- package/dist/src/analyze/askProjectRepo.js.map +1 -1
- package/dist/src/exec/runCommand.d.ts +1 -6
- package/dist/src/exec/runCommand.d.ts.map +1 -1
- package/dist/src/exec/runCommand.js +88 -69
- package/dist/src/exec/runCommand.js.map +1 -1
- package/dist/src/http/downloadFile.d.ts +1 -3
- package/dist/src/http/downloadFile.d.ts.map +1 -1
- package/dist/src/http/downloadFile.js +99 -56
- package/dist/src/http/downloadFile.js.map +1 -1
- package/dist/src/http/duckduckgoSearch.d.ts +0 -9
- package/dist/src/http/duckduckgoSearch.d.ts.map +1 -1
- package/dist/src/http/duckduckgoSearch.js +104 -94
- package/dist/src/http/duckduckgoSearch.js.map +1 -1
- package/dist/src/http/fetchJson.d.ts +1 -2
- package/dist/src/http/fetchJson.d.ts.map +1 -1
- package/dist/src/http/fetchJson.js +91 -53
- package/dist/src/http/fetchJson.js.map +1 -1
- package/dist/src/http/fetchPageMainContent.d.ts +1 -3
- package/dist/src/http/fetchPageMainContent.d.ts.map +1 -1
- package/dist/src/http/fetchPageMainContent.js +80 -66
- package/dist/src/http/fetchPageMainContent.js.map +1 -1
- package/dist/src/http/fetchText.d.ts +1 -2
- package/dist/src/http/fetchText.d.ts.map +1 -1
- package/dist/src/http/fetchText.js +100 -67
- package/dist/src/http/fetchText.js.map +1 -1
- package/dist/src/http/yahooFinance.d.ts +1 -4
- package/dist/src/http/yahooFinance.d.ts.map +1 -1
- package/dist/src/http/yahooFinance.js +122 -93
- package/dist/src/http/yahooFinance.js.map +1 -1
- package/dist/src/iterm/itermRunCommandInSession.d.ts +0 -18
- package/dist/src/iterm/itermRunCommandInSession.d.ts.map +1 -1
- package/dist/src/iterm/itermRunCommandInSession.js +57 -86
- package/dist/src/iterm/itermRunCommandInSession.js.map +1 -1
- package/dist/src/platform/securityCompat.d.ts.map +1 -1
- package/dist/src/platform/securityCompat.js +14 -6
- package/dist/src/platform/securityCompat.js.map +1 -1
- package/dist/src/reminders/remindersSyncFromCalendar.d.ts +0 -6
- package/dist/src/reminders/remindersSyncFromCalendar.d.ts.map +1 -1
- package/dist/src/reminders/remindersSyncFromCalendar.js +62 -57
- package/dist/src/reminders/remindersSyncFromCalendar.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-tool-extension-compat.d.ts","sourceRoot":"","sources":["../agent-tool-extension-compat.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agent-tool-extension-compat.d.ts","sourceRoot":"","sources":["../agent-tool-extension-compat.ts"],"names":[],"mappings":"AA8BA,wBAAgB,qBAAqB,CAAC,OAAO,EAAE;IAAE,UAAU,EAAE,UAAU,CAAA;CAAE,OAQxE;AAED,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAQxD"}
|
|
@@ -1,18 +1,28 @@
|
|
|
1
1
|
import * as agentTool from "@easynet/agent-tool";
|
|
2
|
+
function safeGet(target, key) {
|
|
3
|
+
try {
|
|
4
|
+
return target[key];
|
|
5
|
+
}
|
|
6
|
+
catch {
|
|
7
|
+
return undefined;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
2
10
|
function getCreateExtension() {
|
|
3
|
-
const direct = agentTool
|
|
11
|
+
const direct = safeGet(agentTool, "createExtension");
|
|
4
12
|
if (typeof direct === "function")
|
|
5
13
|
return direct;
|
|
6
|
-
const
|
|
14
|
+
const platformApi = safeGet(agentTool, "platformApi");
|
|
15
|
+
const fromFacade = platformApi?.extension?.createExtension;
|
|
7
16
|
if (typeof fromFacade === "function")
|
|
8
17
|
return fromFacade;
|
|
9
18
|
return undefined;
|
|
10
19
|
}
|
|
11
20
|
function getGenerateManifest() {
|
|
12
|
-
const direct = agentTool
|
|
21
|
+
const direct = safeGet(agentTool, "generateManifest");
|
|
13
22
|
if (typeof direct === "function")
|
|
14
23
|
return direct;
|
|
15
|
-
const
|
|
24
|
+
const platformApi = safeGet(agentTool, "platformApi");
|
|
25
|
+
const fromFacade = platformApi?.extension?.generateManifest;
|
|
16
26
|
if (typeof fromFacade === "function")
|
|
17
27
|
return fromFacade;
|
|
18
28
|
return undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-tool-extension-compat.js","sourceRoot":"","sources":["../agent-tool-extension-compat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,qBAAqB,CAAC;AAIjD,SAAS,kBAAkB;IACzB,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"agent-tool-extension-compat.js","sourceRoot":"","sources":["../agent-tool-extension-compat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,qBAAqB,CAAC;AAIjD,SAAS,OAAO,CAAC,MAAe,EAAE,GAAW;IAC3C,IAAI,CAAC;QACH,OAAQ,MAAkC,CAAC,GAAG,CAAC,CAAC;IAClD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED,SAAS,kBAAkB;IACzB,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,iBAAiB,CAAY,CAAC;IAChE,IAAI,OAAO,MAAM,KAAK,UAAU;QAAE,OAAO,MAAM,CAAC;IAChD,MAAM,WAAW,GAAG,OAAO,CAAC,SAAS,EAAE,aAAa,CAA8D,CAAC;IACnH,MAAM,UAAU,GAAG,WAAW,EAAE,SAAS,EAAE,eAA0B,CAAC;IACtE,IAAI,OAAO,UAAU,KAAK,UAAU;QAAE,OAAO,UAAU,CAAC;IACxD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,SAAS,mBAAmB;IAC1B,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,kBAAkB,CAAY,CAAC;IACjE,IAAI,OAAO,MAAM,KAAK,UAAU;QAAE,OAAO,MAAM,CAAC;IAChD,MAAM,WAAW,GAAG,OAAO,CAAC,SAAS,EAAE,aAAa,CAA+D,CAAC;IACpH,MAAM,UAAU,GAAG,WAAW,EAAE,SAAS,EAAE,gBAA2B,CAAC;IACvE,IAAI,OAAO,UAAU,KAAK,UAAU;QAAE,OAAO,UAAU,CAAC;IACxD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,OAAmC;IACvE,MAAM,EAAE,GAAG,kBAAkB,EAAE,CAAC;IAChC,IAAI,CAAC,EAAE,EAAE,CAAC;QACR,MAAM,IAAI,KAAK,CACb,0EAA0E,CAC3E,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,CAAC,OAAO,CAAC,CAAC;AACrB,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,GAAW;IAChD,MAAM,EAAE,GAAG,mBAAmB,EAAE,CAAC;IACjC,IAAI,CAAC,EAAE,EAAE,CAAC;QACR,MAAM,IAAI,KAAK,CACb,2EAA2E,CAC5E,CAAC;IACJ,CAAC;IACD,EAAE,CAAC,GAAG,CAAC,CAAC;AACV,CAAC"}
|
|
@@ -999,132 +999,6 @@
|
|
|
999
999
|
"exportName": "itermSendText",
|
|
1000
1000
|
"sideEffect": "local_write"
|
|
1001
1001
|
},
|
|
1002
|
-
{
|
|
1003
|
-
"name": "itermRunCommandInSession",
|
|
1004
|
-
"description": "Run a shell command in an iTerm session (panel).",
|
|
1005
|
-
"inputSchema": {
|
|
1006
|
-
"type": "object",
|
|
1007
|
-
"properties": {
|
|
1008
|
-
"command": {
|
|
1009
|
-
"type": "string"
|
|
1010
|
-
},
|
|
1011
|
-
"windowId": {
|
|
1012
|
-
"type": "number"
|
|
1013
|
-
},
|
|
1014
|
-
"tabIndex": {
|
|
1015
|
-
"type": "number"
|
|
1016
|
-
},
|
|
1017
|
-
"sessionId": {
|
|
1018
|
-
"type": "string"
|
|
1019
|
-
},
|
|
1020
|
-
"waitMs": {
|
|
1021
|
-
"type": "number"
|
|
1022
|
-
},
|
|
1023
|
-
"maxOutputLines": {
|
|
1024
|
-
"type": "number"
|
|
1025
|
-
},
|
|
1026
|
-
"outputOffsetLines": {
|
|
1027
|
-
"type": "number"
|
|
1028
|
-
}
|
|
1029
|
-
},
|
|
1030
|
-
"required": [
|
|
1031
|
-
"command"
|
|
1032
|
-
]
|
|
1033
|
-
},
|
|
1034
|
-
"outputSchema": {
|
|
1035
|
-
"type": "object",
|
|
1036
|
-
"properties": {
|
|
1037
|
-
"result": {
|
|
1038
|
-
"type": "object",
|
|
1039
|
-
"properties": {
|
|
1040
|
-
"command": {
|
|
1041
|
-
"type": "string"
|
|
1042
|
-
},
|
|
1043
|
-
"sessionId": {
|
|
1044
|
-
"type": "string"
|
|
1045
|
-
},
|
|
1046
|
-
"output": {
|
|
1047
|
-
"type": "string"
|
|
1048
|
-
},
|
|
1049
|
-
"totalBufferLines": {
|
|
1050
|
-
"type": "number"
|
|
1051
|
-
},
|
|
1052
|
-
"returnedLineCount": {
|
|
1053
|
-
"type": "number"
|
|
1054
|
-
},
|
|
1055
|
-
"outputOffsetLines": {
|
|
1056
|
-
"type": "number"
|
|
1057
|
-
},
|
|
1058
|
-
"isOutputTruncated": {
|
|
1059
|
-
"type": "boolean"
|
|
1060
|
-
},
|
|
1061
|
-
"text": {
|
|
1062
|
-
"type": "string"
|
|
1063
|
-
},
|
|
1064
|
-
"newline": {
|
|
1065
|
-
"type": "boolean"
|
|
1066
|
-
},
|
|
1067
|
-
"windowId": {
|
|
1068
|
-
"type": "number"
|
|
1069
|
-
},
|
|
1070
|
-
"tabIndex": {
|
|
1071
|
-
"type": "number"
|
|
1072
|
-
},
|
|
1073
|
-
"sessionUniqueId": {
|
|
1074
|
-
"type": "string"
|
|
1075
|
-
}
|
|
1076
|
-
},
|
|
1077
|
-
"required": [
|
|
1078
|
-
"command",
|
|
1079
|
-
"sessionId",
|
|
1080
|
-
"output",
|
|
1081
|
-
"totalBufferLines",
|
|
1082
|
-
"returnedLineCount",
|
|
1083
|
-
"outputOffsetLines",
|
|
1084
|
-
"isOutputTruncated",
|
|
1085
|
-
"text",
|
|
1086
|
-
"newline",
|
|
1087
|
-
"windowId",
|
|
1088
|
-
"tabIndex",
|
|
1089
|
-
"sessionUniqueId"
|
|
1090
|
-
]
|
|
1091
|
-
},
|
|
1092
|
-
"evidence": {
|
|
1093
|
-
"type": "array",
|
|
1094
|
-
"items": {
|
|
1095
|
-
"type": "object",
|
|
1096
|
-
"properties": {
|
|
1097
|
-
"type": {
|
|
1098
|
-
"type": "string"
|
|
1099
|
-
},
|
|
1100
|
-
"ref": {
|
|
1101
|
-
"type": "string"
|
|
1102
|
-
},
|
|
1103
|
-
"summary": {
|
|
1104
|
-
"type": "string"
|
|
1105
|
-
},
|
|
1106
|
-
"createdAt": {
|
|
1107
|
-
"type": "string"
|
|
1108
|
-
}
|
|
1109
|
-
},
|
|
1110
|
-
"required": [
|
|
1111
|
-
"type",
|
|
1112
|
-
"ref",
|
|
1113
|
-
"summary",
|
|
1114
|
-
"createdAt"
|
|
1115
|
-
]
|
|
1116
|
-
}
|
|
1117
|
-
}
|
|
1118
|
-
},
|
|
1119
|
-
"required": [
|
|
1120
|
-
"result",
|
|
1121
|
-
"evidence"
|
|
1122
|
-
]
|
|
1123
|
-
},
|
|
1124
|
-
"sourcePath": "src/iterm/itermRunCommandInSession",
|
|
1125
|
-
"exportName": "itermRunCommandInSession",
|
|
1126
|
-
"sideEffect": "local_write"
|
|
1127
|
-
},
|
|
1128
1002
|
{
|
|
1129
1003
|
"name": "itermGetSessionInfo",
|
|
1130
1004
|
"description": "Get detailed info for a specific iTerm session (panel) by id / uniqueId / tty.",
|
|
@@ -1310,145 +1184,6 @@
|
|
|
1310
1184
|
"exportName": "analyzeLog",
|
|
1311
1185
|
"sideEffect": "none"
|
|
1312
1186
|
},
|
|
1313
|
-
{
|
|
1314
|
-
"name": "analyzeProjectRepo",
|
|
1315
|
-
"description": "Build an index for a source-code repository and generate a whole-project understanding summary.",
|
|
1316
|
-
"inputSchema": {
|
|
1317
|
-
"type": "object",
|
|
1318
|
-
"properties": {
|
|
1319
|
-
"path": {
|
|
1320
|
-
"type": "string"
|
|
1321
|
-
},
|
|
1322
|
-
"repoPath": {
|
|
1323
|
-
"type": "string"
|
|
1324
|
-
},
|
|
1325
|
-
"projectPath": {
|
|
1326
|
-
"type": "string"
|
|
1327
|
-
},
|
|
1328
|
-
"outputIndexPath": {
|
|
1329
|
-
"type": "string"
|
|
1330
|
-
},
|
|
1331
|
-
"includeHidden": {
|
|
1332
|
-
"type": "boolean"
|
|
1333
|
-
},
|
|
1334
|
-
"maxFiles": {
|
|
1335
|
-
"type": "number"
|
|
1336
|
-
},
|
|
1337
|
-
"maxFileBytes": {
|
|
1338
|
-
"type": "number"
|
|
1339
|
-
},
|
|
1340
|
-
"includeExtensions": {
|
|
1341
|
-
"type": "array",
|
|
1342
|
-
"items": {
|
|
1343
|
-
"type": "string"
|
|
1344
|
-
}
|
|
1345
|
-
},
|
|
1346
|
-
"excludeDirs": {
|
|
1347
|
-
"type": "array",
|
|
1348
|
-
"items": {
|
|
1349
|
-
"type": "string"
|
|
1350
|
-
}
|
|
1351
|
-
},
|
|
1352
|
-
"model": {
|
|
1353
|
-
"type": "string"
|
|
1354
|
-
},
|
|
1355
|
-
"timeoutMs": {
|
|
1356
|
-
"type": "number"
|
|
1357
|
-
}
|
|
1358
|
-
},
|
|
1359
|
-
"required": [
|
|
1360
|
-
"path"
|
|
1361
|
-
]
|
|
1362
|
-
},
|
|
1363
|
-
"outputSchema": {
|
|
1364
|
-
"type": "object",
|
|
1365
|
-
"properties": {
|
|
1366
|
-
"result": {
|
|
1367
|
-
"type": "object",
|
|
1368
|
-
"properties": {
|
|
1369
|
-
"repoRoot": {
|
|
1370
|
-
"type": "string"
|
|
1371
|
-
},
|
|
1372
|
-
"indexPath": {
|
|
1373
|
-
"type": "string"
|
|
1374
|
-
},
|
|
1375
|
-
"totalIndexedFiles": {
|
|
1376
|
-
"type": "number"
|
|
1377
|
-
},
|
|
1378
|
-
"truncated": {
|
|
1379
|
-
"type": "boolean"
|
|
1380
|
-
},
|
|
1381
|
-
"skippedBinary": {
|
|
1382
|
-
"type": "number"
|
|
1383
|
-
},
|
|
1384
|
-
"indexSplit": {
|
|
1385
|
-
"type": "boolean"
|
|
1386
|
-
},
|
|
1387
|
-
"indexPartPaths": {
|
|
1388
|
-
"type": "array",
|
|
1389
|
-
"items": {
|
|
1390
|
-
"type": "string"
|
|
1391
|
-
}
|
|
1392
|
-
},
|
|
1393
|
-
"llmUsed": {
|
|
1394
|
-
"type": "boolean"
|
|
1395
|
-
},
|
|
1396
|
-
"partialCount": {
|
|
1397
|
-
"type": "number"
|
|
1398
|
-
},
|
|
1399
|
-
"model": {
|
|
1400
|
-
"type": "string"
|
|
1401
|
-
},
|
|
1402
|
-
"understanding": {
|
|
1403
|
-
"type": "string"
|
|
1404
|
-
}
|
|
1405
|
-
},
|
|
1406
|
-
"required": [
|
|
1407
|
-
"repoRoot",
|
|
1408
|
-
"indexPath",
|
|
1409
|
-
"totalIndexedFiles",
|
|
1410
|
-
"truncated",
|
|
1411
|
-
"skippedBinary",
|
|
1412
|
-
"indexSplit",
|
|
1413
|
-
"indexPartPaths",
|
|
1414
|
-
"llmUsed",
|
|
1415
|
-
"partialCount",
|
|
1416
|
-
"model",
|
|
1417
|
-
"understanding"
|
|
1418
|
-
]
|
|
1419
|
-
},
|
|
1420
|
-
"evidence": {
|
|
1421
|
-
"type": "array",
|
|
1422
|
-
"items": {
|
|
1423
|
-
"type": "object",
|
|
1424
|
-
"properties": {
|
|
1425
|
-
"type": {
|
|
1426
|
-
"type": "string"
|
|
1427
|
-
},
|
|
1428
|
-
"summary": {
|
|
1429
|
-
"type": "string"
|
|
1430
|
-
},
|
|
1431
|
-
"createdAt": {
|
|
1432
|
-
"type": "string"
|
|
1433
|
-
}
|
|
1434
|
-
},
|
|
1435
|
-
"required": [
|
|
1436
|
-
"type",
|
|
1437
|
-
"summary",
|
|
1438
|
-
"createdAt"
|
|
1439
|
-
]
|
|
1440
|
-
}
|
|
1441
|
-
}
|
|
1442
|
-
},
|
|
1443
|
-
"required": [
|
|
1444
|
-
"result",
|
|
1445
|
-
"evidence"
|
|
1446
|
-
]
|
|
1447
|
-
},
|
|
1448
|
-
"sourcePath": "src/analyze/analyzeProjectRepo",
|
|
1449
|
-
"exportName": "analyzeProjectRepo",
|
|
1450
|
-
"sideEffect": "local_write"
|
|
1451
|
-
},
|
|
1452
1187
|
{
|
|
1453
1188
|
"name": "askProjectRepo",
|
|
1454
1189
|
"description": "Ask a concrete question about a repository based on .project-index.json (or split parts).",
|
|
@@ -2524,7 +2259,7 @@
|
|
|
2524
2259
|
},
|
|
2525
2260
|
{
|
|
2526
2261
|
"name": "runCommand",
|
|
2527
|
-
"description": "Run
|
|
2262
|
+
"description": "Run a whitelisted command with bounded output/timeout inside sandbox.",
|
|
2528
2263
|
"inputSchema": {
|
|
2529
2264
|
"type": "object",
|
|
2530
2265
|
"properties": {
|
|
@@ -4237,7 +3972,7 @@
|
|
|
4237
3972
|
},
|
|
4238
3973
|
{
|
|
4239
3974
|
"name": "downloadFile",
|
|
4240
|
-
"description": "Download
|
|
3975
|
+
"description": "Download URL to local sandbox path with size and SSRF limits.",
|
|
4241
3976
|
"inputSchema": {
|
|
4242
3977
|
"type": "object",
|
|
4243
3978
|
"properties": {
|
|
@@ -4337,141 +4072,9 @@
|
|
|
4337
4072
|
"exportName": "downloadFile",
|
|
4338
4073
|
"sideEffect": "local_write"
|
|
4339
4074
|
},
|
|
4340
|
-
{
|
|
4341
|
-
"name": "duckduckgoSearch",
|
|
4342
|
-
"description": "Search the web via DuckDuckGo (no API key required), with HTML fallback when no instant answers.",
|
|
4343
|
-
"inputSchema": {
|
|
4344
|
-
"type": "object",
|
|
4345
|
-
"properties": {
|
|
4346
|
-
"query": {
|
|
4347
|
-
"type": "string"
|
|
4348
|
-
},
|
|
4349
|
-
"q": {
|
|
4350
|
-
"type": "string"
|
|
4351
|
-
},
|
|
4352
|
-
"maxResults": {
|
|
4353
|
-
"type": "number"
|
|
4354
|
-
},
|
|
4355
|
-
"timeoutMs": {
|
|
4356
|
-
"type": "number"
|
|
4357
|
-
},
|
|
4358
|
-
"maxBytes": {
|
|
4359
|
-
"type": "number"
|
|
4360
|
-
}
|
|
4361
|
-
},
|
|
4362
|
-
"required": [
|
|
4363
|
-
"query"
|
|
4364
|
-
]
|
|
4365
|
-
},
|
|
4366
|
-
"outputSchema": {
|
|
4367
|
-
"type": "object",
|
|
4368
|
-
"properties": {
|
|
4369
|
-
"result": {
|
|
4370
|
-
"type": "object",
|
|
4371
|
-
"properties": {
|
|
4372
|
-
"query": {
|
|
4373
|
-
"type": "string"
|
|
4374
|
-
},
|
|
4375
|
-
"abstract": {
|
|
4376
|
-
"type": "string"
|
|
4377
|
-
},
|
|
4378
|
-
"abstractUrl": {
|
|
4379
|
-
"type": "string"
|
|
4380
|
-
},
|
|
4381
|
-
"abstractSource": {
|
|
4382
|
-
"type": "string"
|
|
4383
|
-
},
|
|
4384
|
-
"heading": {
|
|
4385
|
-
"type": "string"
|
|
4386
|
-
},
|
|
4387
|
-
"results": {
|
|
4388
|
-
"type": "array",
|
|
4389
|
-
"items": {
|
|
4390
|
-
"type": "object",
|
|
4391
|
-
"properties": {
|
|
4392
|
-
"url": {
|
|
4393
|
-
"type": "string"
|
|
4394
|
-
},
|
|
4395
|
-
"title": {
|
|
4396
|
-
"type": "string"
|
|
4397
|
-
},
|
|
4398
|
-
"snippet": {
|
|
4399
|
-
"type": "string"
|
|
4400
|
-
}
|
|
4401
|
-
},
|
|
4402
|
-
"required": [
|
|
4403
|
-
"url",
|
|
4404
|
-
"title"
|
|
4405
|
-
]
|
|
4406
|
-
}
|
|
4407
|
-
},
|
|
4408
|
-
"relatedTopics": {
|
|
4409
|
-
"type": "array",
|
|
4410
|
-
"items": {
|
|
4411
|
-
"type": "object",
|
|
4412
|
-
"properties": {
|
|
4413
|
-
"text": {
|
|
4414
|
-
"type": "string"
|
|
4415
|
-
},
|
|
4416
|
-
"url": {
|
|
4417
|
-
"type": "string"
|
|
4418
|
-
}
|
|
4419
|
-
},
|
|
4420
|
-
"required": [
|
|
4421
|
-
"text"
|
|
4422
|
-
]
|
|
4423
|
-
}
|
|
4424
|
-
}
|
|
4425
|
-
},
|
|
4426
|
-
"required": [
|
|
4427
|
-
"query",
|
|
4428
|
-
"abstract",
|
|
4429
|
-
"abstractUrl",
|
|
4430
|
-
"abstractSource",
|
|
4431
|
-
"heading",
|
|
4432
|
-
"results",
|
|
4433
|
-
"relatedTopics"
|
|
4434
|
-
]
|
|
4435
|
-
},
|
|
4436
|
-
"evidence": {
|
|
4437
|
-
"type": "array",
|
|
4438
|
-
"items": {
|
|
4439
|
-
"type": "object",
|
|
4440
|
-
"properties": {
|
|
4441
|
-
"type": {
|
|
4442
|
-
"type": "string"
|
|
4443
|
-
},
|
|
4444
|
-
"ref": {
|
|
4445
|
-
"type": "string"
|
|
4446
|
-
},
|
|
4447
|
-
"summary": {
|
|
4448
|
-
"type": "string"
|
|
4449
|
-
},
|
|
4450
|
-
"createdAt": {
|
|
4451
|
-
"type": "string"
|
|
4452
|
-
}
|
|
4453
|
-
},
|
|
4454
|
-
"required": [
|
|
4455
|
-
"type",
|
|
4456
|
-
"ref",
|
|
4457
|
-
"summary",
|
|
4458
|
-
"createdAt"
|
|
4459
|
-
]
|
|
4460
|
-
}
|
|
4461
|
-
}
|
|
4462
|
-
},
|
|
4463
|
-
"required": [
|
|
4464
|
-
"result",
|
|
4465
|
-
"evidence"
|
|
4466
|
-
]
|
|
4467
|
-
},
|
|
4468
|
-
"sourcePath": "src/http/duckduckgoSearch",
|
|
4469
|
-
"exportName": "duckduckgoSearch",
|
|
4470
|
-
"sideEffect": "none"
|
|
4471
|
-
},
|
|
4472
4075
|
{
|
|
4473
4076
|
"name": "fetchJson",
|
|
4474
|
-
"description": "Fetch
|
|
4077
|
+
"description": "Fetch JSON from HTTP endpoint with SSRF/safety checks and size limits.",
|
|
4475
4078
|
"inputSchema": {
|
|
4476
4079
|
"type": "object",
|
|
4477
4080
|
"properties": {
|
|
@@ -4565,7 +4168,7 @@
|
|
|
4565
4168
|
},
|
|
4566
4169
|
{
|
|
4567
4170
|
"name": "fetchPageMainContent",
|
|
4568
|
-
"description": "Fetch
|
|
4171
|
+
"description": "Fetch page and extract main text content heuristically.",
|
|
4569
4172
|
"inputSchema": {
|
|
4570
4173
|
"type": "object",
|
|
4571
4174
|
"properties": {
|
|
@@ -4655,7 +4258,7 @@
|
|
|
4655
4258
|
},
|
|
4656
4259
|
{
|
|
4657
4260
|
"name": "fetchText",
|
|
4658
|
-
"description": "Fetch
|
|
4261
|
+
"description": "Fetch text body from HTTP endpoint with SSRF/safety checks and size limits.",
|
|
4659
4262
|
"inputSchema": {
|
|
4660
4263
|
"type": "object",
|
|
4661
4264
|
"properties": {
|
|
@@ -4836,7 +4439,7 @@
|
|
|
4836
4439
|
},
|
|
4837
4440
|
{
|
|
4838
4441
|
"name": "yahooFinanceQuote",
|
|
4839
|
-
"description": "Fetch
|
|
4442
|
+
"description": "Fetch quote snapshots from Yahoo Finance chart API.",
|
|
4840
4443
|
"inputSchema": {
|
|
4841
4444
|
"type": "object",
|
|
4842
4445
|
"properties": {
|
|
@@ -6497,106 +6100,6 @@
|
|
|
6497
6100
|
"exportName": "remindersList",
|
|
6498
6101
|
"sideEffect": "none"
|
|
6499
6102
|
},
|
|
6500
|
-
{
|
|
6501
|
-
"name": "remindersSyncFromCalendar",
|
|
6502
|
-
"description": "Sync Calendar events in range into Reminders list as tasks.",
|
|
6503
|
-
"inputSchema": {
|
|
6504
|
-
"type": "object",
|
|
6505
|
-
"properties": {
|
|
6506
|
-
"calendar": {
|
|
6507
|
-
"type": "string"
|
|
6508
|
-
},
|
|
6509
|
-
"remindersList": {
|
|
6510
|
-
"type": "string"
|
|
6511
|
-
},
|
|
6512
|
-
"fromDateText": {
|
|
6513
|
-
"type": "string"
|
|
6514
|
-
},
|
|
6515
|
-
"toDateText": {
|
|
6516
|
-
"type": "string"
|
|
6517
|
-
},
|
|
6518
|
-
"titlePrefix": {
|
|
6519
|
-
"type": "string"
|
|
6520
|
-
},
|
|
6521
|
-
"limit": {
|
|
6522
|
-
"type": "number"
|
|
6523
|
-
}
|
|
6524
|
-
}
|
|
6525
|
-
},
|
|
6526
|
-
"outputSchema": {
|
|
6527
|
-
"type": "object",
|
|
6528
|
-
"properties": {
|
|
6529
|
-
"result": {
|
|
6530
|
-
"type": "object",
|
|
6531
|
-
"properties": {
|
|
6532
|
-
"calendar": {
|
|
6533
|
-
"type": "string"
|
|
6534
|
-
},
|
|
6535
|
-
"remindersList": {
|
|
6536
|
-
"type": "string"
|
|
6537
|
-
},
|
|
6538
|
-
"fromDateText": {
|
|
6539
|
-
"type": "string"
|
|
6540
|
-
},
|
|
6541
|
-
"toDateText": {
|
|
6542
|
-
"type": "string"
|
|
6543
|
-
},
|
|
6544
|
-
"scannedCount": {
|
|
6545
|
-
"type": "number"
|
|
6546
|
-
},
|
|
6547
|
-
"createdCount": {
|
|
6548
|
-
"type": "number"
|
|
6549
|
-
},
|
|
6550
|
-
"skippedCount": {
|
|
6551
|
-
"type": "number"
|
|
6552
|
-
}
|
|
6553
|
-
},
|
|
6554
|
-
"required": [
|
|
6555
|
-
"calendar",
|
|
6556
|
-
"remindersList",
|
|
6557
|
-
"fromDateText",
|
|
6558
|
-
"toDateText",
|
|
6559
|
-
"scannedCount",
|
|
6560
|
-
"createdCount",
|
|
6561
|
-
"skippedCount"
|
|
6562
|
-
]
|
|
6563
|
-
},
|
|
6564
|
-
"evidence": {
|
|
6565
|
-
"type": "array",
|
|
6566
|
-
"items": {
|
|
6567
|
-
"type": "object",
|
|
6568
|
-
"properties": {
|
|
6569
|
-
"type": {
|
|
6570
|
-
"type": "string"
|
|
6571
|
-
},
|
|
6572
|
-
"ref": {
|
|
6573
|
-
"type": "string"
|
|
6574
|
-
},
|
|
6575
|
-
"summary": {
|
|
6576
|
-
"type": "string"
|
|
6577
|
-
},
|
|
6578
|
-
"createdAt": {
|
|
6579
|
-
"type": "string"
|
|
6580
|
-
}
|
|
6581
|
-
},
|
|
6582
|
-
"required": [
|
|
6583
|
-
"type",
|
|
6584
|
-
"ref",
|
|
6585
|
-
"summary",
|
|
6586
|
-
"createdAt"
|
|
6587
|
-
]
|
|
6588
|
-
}
|
|
6589
|
-
}
|
|
6590
|
-
},
|
|
6591
|
-
"required": [
|
|
6592
|
-
"result",
|
|
6593
|
-
"evidence"
|
|
6594
|
-
]
|
|
6595
|
-
},
|
|
6596
|
-
"sourcePath": "src/reminders/remindersSyncFromCalendar",
|
|
6597
|
-
"exportName": "remindersSyncFromCalendar",
|
|
6598
|
-
"sideEffect": "local_write"
|
|
6599
|
-
},
|
|
6600
6103
|
{
|
|
6601
6104
|
"name": "safariCloseTab",
|
|
6602
6105
|
"description": "Close a Safari tab by window and tab index (1-based).",
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const DEFAULT_EXCLUDE_DIRS: string[];
|
|
2
|
+
export declare const DEFAULT_CODE_EXTENSIONS: string[];
|
|
3
|
+
export declare const DEFAULT_NAME_WHITELIST: Set<string>;
|
|
4
|
+
export declare const PARTIAL_PROMPT = "You are a senior software architect.\nRead the indexed repository slice and summarize:\n1) Main purpose of this part of the code.\n2) Key modules and responsibilities.\n3) Important dependencies/integrations.\n4) Potential risks, TODOs, or unclear areas.\n\nRepository slice:\n{slice}";
|
|
5
|
+
export declare const FINAL_PROMPT = "You are a senior software architect.\nGiven all partial repository summaries, produce a complete project understanding:\n1) Project purpose and target users.\n2) High-level architecture.\n3) Core modules and data/control flow.\n4) External dependencies/services.\n5) Build/test/run workflow inferred from files.\n6) Technical risks and missing pieces.\n7) Suggested next exploration order for a new engineer.\nUse concise, structured paragraphs.\n\nPartial summaries:\n{partials}";
|
|
6
|
+
//# sourceMappingURL=analyzeProjectRepo.constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analyzeProjectRepo.constants.d.ts","sourceRoot":"","sources":["../../../src/analyze/analyzeProjectRepo.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,UAWhC,CAAC;AAEF,eAAO,MAAM,uBAAuB,UAMnC,CAAC;AAEF,eAAO,MAAM,sBAAsB,aAUjC,CAAC;AAEH,eAAO,MAAM,cAAc,iSAQnB,CAAC;AAET,eAAO,MAAM,YAAY,oeAYd,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export const DEFAULT_EXCLUDE_DIRS = [
|
|
2
|
+
".git",
|
|
3
|
+
"node_modules",
|
|
4
|
+
"dist",
|
|
5
|
+
"build",
|
|
6
|
+
".next",
|
|
7
|
+
"coverage",
|
|
8
|
+
"out",
|
|
9
|
+
".turbo",
|
|
10
|
+
".idea",
|
|
11
|
+
".vscode",
|
|
12
|
+
];
|
|
13
|
+
export const DEFAULT_CODE_EXTENSIONS = [
|
|
14
|
+
".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs",
|
|
15
|
+
".py", ".go", ".rs", ".java", ".kt", ".swift",
|
|
16
|
+
".rb", ".php", ".cs", ".cpp", ".c", ".h", ".hpp",
|
|
17
|
+
".json", ".yaml", ".yml", ".toml", ".ini", ".md",
|
|
18
|
+
".sh", ".sql",
|
|
19
|
+
];
|
|
20
|
+
export const DEFAULT_NAME_WHITELIST = new Set([
|
|
21
|
+
"Dockerfile",
|
|
22
|
+
"Makefile",
|
|
23
|
+
"README",
|
|
24
|
+
"README.md",
|
|
25
|
+
"LICENSE",
|
|
26
|
+
"package.json",
|
|
27
|
+
"pyproject.toml",
|
|
28
|
+
"go.mod",
|
|
29
|
+
"Cargo.toml",
|
|
30
|
+
]);
|
|
31
|
+
export const PARTIAL_PROMPT = `You are a senior software architect.
|
|
32
|
+
Read the indexed repository slice and summarize:
|
|
33
|
+
1) Main purpose of this part of the code.
|
|
34
|
+
2) Key modules and responsibilities.
|
|
35
|
+
3) Important dependencies/integrations.
|
|
36
|
+
4) Potential risks, TODOs, or unclear areas.
|
|
37
|
+
|
|
38
|
+
Repository slice:
|
|
39
|
+
{slice}`;
|
|
40
|
+
export const FINAL_PROMPT = `You are a senior software architect.
|
|
41
|
+
Given all partial repository summaries, produce a complete project understanding:
|
|
42
|
+
1) Project purpose and target users.
|
|
43
|
+
2) High-level architecture.
|
|
44
|
+
3) Core modules and data/control flow.
|
|
45
|
+
4) External dependencies/services.
|
|
46
|
+
5) Build/test/run workflow inferred from files.
|
|
47
|
+
6) Technical risks and missing pieces.
|
|
48
|
+
7) Suggested next exploration order for a new engineer.
|
|
49
|
+
Use concise, structured paragraphs.
|
|
50
|
+
|
|
51
|
+
Partial summaries:
|
|
52
|
+
{partials}`;
|
|
53
|
+
//# sourceMappingURL=analyzeProjectRepo.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analyzeProjectRepo.constants.js","sourceRoot":"","sources":["../../../src/analyze/analyzeProjectRepo.constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,MAAM;IACN,cAAc;IACd,MAAM;IACN,OAAO;IACP,OAAO;IACP,UAAU;IACV,KAAK;IACL,QAAQ;IACR,OAAO;IACP,SAAS;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAC5C,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ;IAC7C,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM;IAChD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK;IAChD,KAAK,EAAE,MAAM;CACd,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,GAAG,CAAC;IAC5C,YAAY;IACZ,UAAU;IACV,QAAQ;IACR,WAAW;IACX,SAAS;IACT,cAAc;IACd,gBAAgB;IAChB,QAAQ;IACR,YAAY;CACb,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG;;;;;;;;QAQtB,CAAC;AAET,MAAM,CAAC,MAAM,YAAY,GAAG;;;;;;;;;;;;WAYjB,CAAC"}
|