apple-mail-mcp 2.20.5 → 2.20.6
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/build/index.js +9 -4
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -82735,6 +82735,7 @@ function getByIdScanThreshold() {
|
|
|
82735
82735
|
return 5e4;
|
|
82736
82736
|
}
|
|
82737
82737
|
var BYID_SCAN_BUDGET_SECONDS = 9;
|
|
82738
|
+
var BYID_PROBE_TIMEOUT_SECONDS = 3;
|
|
82738
82739
|
var BYID_COVERAGE_MARKER = "COV";
|
|
82739
82740
|
var SCOPED_MISS_MARKER = "SCOPED";
|
|
82740
82741
|
function describeUnscopedMiss(id, raw) {
|
|
@@ -84536,16 +84537,20 @@ ${indent}end try${this.sanitizeFragment("_uacct", indent)}${this.sanitizeFragmen
|
|
|
84536
84537
|
*/
|
|
84537
84538
|
unscopedByIdScript(id, innerAction, opts = {}) {
|
|
84538
84539
|
const threshold = getByIdScanThreshold();
|
|
84539
|
-
const sizeGuard = (mbVar, acctNameExpr) => threshold > 0 ? `set _mbCount to
|
|
84540
|
+
const sizeGuard = (mbVar, acctNameExpr) => threshold > 0 ? `set _mbCount to -1
|
|
84540
84541
|
try
|
|
84541
|
-
|
|
84542
|
+
with timeout of ${BYID_PROBE_TIMEOUT_SECONDS} seconds
|
|
84543
|
+
set _mbCount to count of messages of ${mbVar}
|
|
84544
|
+
end timeout
|
|
84542
84545
|
end try
|
|
84543
|
-
if _mbCount > ${threshold} then
|
|
84546
|
+
if _mbCount < 0 or _mbCount > ${threshold} then
|
|
84544
84547
|
set _skipPath to ""
|
|
84545
84548
|
try
|
|
84546
84549
|
${mailboxPathFragment(mbVar, "_skipPath")}
|
|
84547
84550
|
end try
|
|
84548
|
-
set
|
|
84551
|
+
set _sizeLabel to "size unknown (count probe exceeded ${BYID_PROBE_TIMEOUT_SECONDS}s)"
|
|
84552
|
+
if _mbCount > -1 then set _sizeLabel to (_mbCount as string)
|
|
84553
|
+
set _skipped to _skipped & ${acctNameExpr} & " / " & _skipPath & " (" & _sizeLabel & ")${DIAG_ITEM_SEP}"
|
|
84549
84554
|
set _probe to false
|
|
84550
84555
|
end if` : "";
|
|
84551
84556
|
const budgetCheck = `if ((current date) - _startedAt) > ${BYID_SCAN_BUDGET_SECONDS} then
|
package/package.json
CHANGED