@fload-ai/mcp 0.10.0 → 0.11.0
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/.tsbuildinfo +1 -1
- package/dist/bin.js +12 -3
- package/dist/bin.js.map +2 -2
- package/dist/index.js +12 -3
- package/dist/index.js.map +2 -2
- package/dist/tools/actions.d.ts.map +1 -1
- package/dist/tools/index.js +12 -3
- package/dist/tools/index.js.map +2 -2
- package/dist/tools/reviews.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -404,7 +404,9 @@ async function getReviews(input, client) {
|
|
|
404
404
|
hasReply: hasReply(review),
|
|
405
405
|
replySource: review.replySource ?? null,
|
|
406
406
|
hasDraft: review.hasDraft ?? false,
|
|
407
|
-
reply: review.developerResponse ? typeof review.developerResponse === "object" ? review.developerResponse.response : review.developerResponse : review.reply || null
|
|
407
|
+
reply: review.developerResponse ? typeof review.developerResponse === "object" ? review.developerResponse.response : review.developerResponse : review.reply || null,
|
|
408
|
+
// FLO-2571: where an App Store reply stands at Apple.
|
|
409
|
+
replyPublication: typeof review.developerResponse === "object" ? review.developerResponse?.publication ?? null : null
|
|
408
410
|
}))
|
|
409
411
|
})
|
|
410
412
|
}
|
|
@@ -1407,6 +1409,13 @@ async function commandItem(client, itemId, intent, reason) {
|
|
|
1407
1409
|
}
|
|
1408
1410
|
};
|
|
1409
1411
|
}
|
|
1412
|
+
function approveMessage(command, applied2, result) {
|
|
1413
|
+
if (!applied2) return refusedMessage(result);
|
|
1414
|
+
if (command === "acknowledge") return "Acknowledged.";
|
|
1415
|
+
if (result?.alreadyLive)
|
|
1416
|
+
return "Already live: the store already shows this change, so nothing was sent. The item is done.";
|
|
1417
|
+
return "Approved. Fload delivers it after a short undo window; the inbox shows where it is.";
|
|
1418
|
+
}
|
|
1410
1419
|
function refusedMessage(result) {
|
|
1411
1420
|
const said = result?.error ?? "The approval could not be recorded.";
|
|
1412
1421
|
const check = result?.policyRefusal?.check;
|
|
@@ -1427,7 +1436,7 @@ async function approveAction(input, client) {
|
|
|
1427
1436
|
command,
|
|
1428
1437
|
result: result?.result ?? "unknown",
|
|
1429
1438
|
...result?.error ? { error: result.error } : {},
|
|
1430
|
-
message:
|
|
1439
|
+
message: approveMessage(command, applied2, result),
|
|
1431
1440
|
item: result?.item
|
|
1432
1441
|
},
|
|
1433
1442
|
!applied2
|
|
@@ -2017,7 +2026,7 @@ function registerTools(server, client, options = {}) {
|
|
|
2017
2026
|
tool(
|
|
2018
2027
|
"get_reviews",
|
|
2019
2028
|
"Get reviews",
|
|
2020
|
-
|
|
2029
|
+
'Get app reviews with flexible filtering. Filter by app (assetId or bundleId), platform, rating (1-5 stars), replied status, and date range. Returns reviews with metadata, author, body text, and reply status. For an App Store reply, replyPublication says where it stands at Apple: "publishing" (sent; Apple has not published it yet, usually within a day), "live" (live on the App Store), "removed" (Apple no longer shows it), or null (not known: never call it live). Useful for sentiment analysis, support workflows, and review management.',
|
|
2021
2030
|
getReviewsSchema,
|
|
2022
2031
|
getReviews,
|
|
2023
2032
|
{ readOnlyHint: true, openWorldHint: false }
|