@synod-ai/extension-feedback 0.1.1 → 0.1.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.
- package/README.md +1 -1
- package/dist/index.js +21 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -63,7 +63,7 @@ function validateConfig(input) {
|
|
|
63
63
|
maxRetries: input.maxRetries ?? DEFAULT_MAX_RETRIES
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
var MAX_CONTEXT_JSON_BYTES =
|
|
66
|
+
var MAX_CONTEXT_JSON_BYTES = 65536;
|
|
67
67
|
function isContextJsonValid(contextJson) {
|
|
68
68
|
const serialized = JSON.stringify(contextJson);
|
|
69
69
|
return new TextEncoder().encode(serialized).length <= MAX_CONTEXT_JSON_BYTES;
|
|
@@ -1819,7 +1819,7 @@ function calculateFlippedPosition(targetRect, elementSize, viewport, margin = MI
|
|
|
1819
1819
|
}
|
|
1820
1820
|
|
|
1821
1821
|
// src/utils/screenshot.ts
|
|
1822
|
-
var MAX_SCREENSHOT_BYTES =
|
|
1822
|
+
var MAX_SCREENSHOT_BYTES = 32768;
|
|
1823
1823
|
async function capture(element) {
|
|
1824
1824
|
try {
|
|
1825
1825
|
const mod = await import("modern-screenshot");
|
|
@@ -2510,6 +2510,21 @@ var QueuePanel = class {
|
|
|
2510
2510
|
}
|
|
2511
2511
|
}
|
|
2512
2512
|
}
|
|
2513
|
+
/**
|
|
2514
|
+
* Public entry point for callers outside QueuePanel (notably the IssueForm's
|
|
2515
|
+
* "Send now" flow in interaction/setup.ts) to surface a BatchResult through
|
|
2516
|
+
* the same toast/banner path as the bulk-send button. Without this, send-now
|
|
2517
|
+
* awaited sendBatch() silently and showed no confirmation.
|
|
2518
|
+
*/
|
|
2519
|
+
reportSendResult(result) {
|
|
2520
|
+
this.handleSendResult(result);
|
|
2521
|
+
}
|
|
2522
|
+
/**
|
|
2523
|
+
* Public entry point matching reportSendResult for the error path.
|
|
2524
|
+
*/
|
|
2525
|
+
reportSendError(err) {
|
|
2526
|
+
this.handleSendError(err);
|
|
2527
|
+
}
|
|
2513
2528
|
handleSendResult(result) {
|
|
2514
2529
|
const total = result.created.length + result.errors.length;
|
|
2515
2530
|
if (result.errors.length === 0 && result.created.length > 0) {
|
|
@@ -2984,10 +2999,12 @@ function ensureVisibleUI() {
|
|
|
2984
2999
|
manager.queue(finding);
|
|
2985
3000
|
issueForm?.hide();
|
|
2986
3001
|
try {
|
|
2987
|
-
await manager.sendBatch();
|
|
3002
|
+
const batchResult = await manager.sendBatch();
|
|
3003
|
+
queuePanel?.reportSendResult(batchResult);
|
|
2988
3004
|
updateBadgeCount();
|
|
2989
3005
|
deactivateSelection();
|
|
2990
|
-
} catch {
|
|
3006
|
+
} catch (err) {
|
|
3007
|
+
queuePanel?.reportSendError(err);
|
|
2991
3008
|
updateBadgeCount();
|
|
2992
3009
|
toggleQueuePanel();
|
|
2993
3010
|
}
|