@loupekit/sdk 0.12.0-next.78 → 0.13.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/index.global.js +27 -4
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +27 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.global.js
CHANGED
|
@@ -682,6 +682,12 @@ var Loupe = (() => {
|
|
|
682
682
|
}
|
|
683
683
|
.fwdchip { border-color: var(--accent); color: var(--accent); }
|
|
684
684
|
.fwdchip.bad { border-color: #d9534f; color: #d9534f; }
|
|
685
|
+
a.fwdchip { text-decoration: none; cursor: pointer; }
|
|
686
|
+
.fwdchip[class*="st-"] { max-width: 220px; }
|
|
687
|
+
.fwdchip.st-queue { border-color: var(--line); color: var(--muted); }
|
|
688
|
+
.fwdchip.st-in_progress { border-color: #3f8ae0; color: #3f8ae0; }
|
|
689
|
+
.fwdchip.st-in_review { border-color: #c98a1b; color: #c98a1b; }
|
|
690
|
+
.fwdchip.st-resolved { border-color: #2f9e6a; color: #2f9e6a; }
|
|
685
691
|
|
|
686
692
|
/* ------------------------------------------------ lifecycle chips + review flow */
|
|
687
693
|
.lifechip {
|
|
@@ -3977,7 +3983,7 @@ var Loupe = (() => {
|
|
|
3977
3983
|
};
|
|
3978
3984
|
|
|
3979
3985
|
// src/app.ts
|
|
3980
|
-
var SDK_VERSION = true ? "0.
|
|
3986
|
+
var SDK_VERSION = true ? "0.13.0" : "dev";
|
|
3981
3987
|
var FAB_SIZE = 46;
|
|
3982
3988
|
var FAB_DRAG_THRESHOLD = 6;
|
|
3983
3989
|
var LAUNCHER_SHORTCUT = "Alt+Shift+L";
|
|
@@ -6707,9 +6713,25 @@ var Loupe = (() => {
|
|
|
6707
6713
|
if (fwd && fwd.status !== "none") {
|
|
6708
6714
|
const where = fwd.destinationName || (fwd.status === "ok" ? "webhook" : "Hub");
|
|
6709
6715
|
const ok = fwd.status === "ok";
|
|
6710
|
-
const
|
|
6711
|
-
|
|
6712
|
-
|
|
6716
|
+
const remote = ok ? fwd.remote : void 0;
|
|
6717
|
+
if (remote) {
|
|
6718
|
+
const said = remote.label || STAGE_LABELS[normalizeStatus(remote.status)];
|
|
6719
|
+
const text = [`\u2192 ${where}`, remote.reference, said].filter(Boolean).join(" \xB7 ");
|
|
6720
|
+
const link = remote.url && /^https?:\/\//i.test(remote.url) ? remote.url : null;
|
|
6721
|
+
const chip = el(link ? "a" : "span", `fwdchip st-${normalizeStatus(remote.status)}`, text);
|
|
6722
|
+
chip.title = `${where}: ${said}${remote.at ? ` \u2014 updated ${fmtAgo(remote.at)}` : ""}`;
|
|
6723
|
+
if (link) {
|
|
6724
|
+
chip.href = link;
|
|
6725
|
+
chip.setAttribute("target", "_blank");
|
|
6726
|
+
chip.setAttribute("rel", "noreferrer");
|
|
6727
|
+
chip.addEventListener("click", (e) => e.stopPropagation());
|
|
6728
|
+
}
|
|
6729
|
+
top.appendChild(chip);
|
|
6730
|
+
} else {
|
|
6731
|
+
const chip = el("span", ok ? "fwdchip" : "fwdchip bad", ok ? `\u2192 ${where}` : `\u2192 ${where} failed`);
|
|
6732
|
+
chip.title = ok ? `Sent to ${where}` : `Could not send to ${where}${fwd.error ? `: ${fwd.error}` : ""}`;
|
|
6733
|
+
top.appendChild(chip);
|
|
6734
|
+
}
|
|
6713
6735
|
}
|
|
6714
6736
|
if (isResolved(c)) top.appendChild(el("span", "badge done", "resolved"));
|
|
6715
6737
|
else if (detached) {
|
|
@@ -7338,6 +7360,7 @@ ${c.body}` : c.body)}</div>` + (c.context?.html ? `<pre class="or-code">${escape
|
|
|
7338
7360
|
);
|
|
7339
7361
|
head.lastElementChild.title = this.fmtWhen(m.createdAt);
|
|
7340
7362
|
if (fromAgent) head.appendChild(el("span", "msg-tag", "agent"));
|
|
7363
|
+
if (m.origin) head.appendChild(el("span", "msg-tag origin", `from ${m.origin.projectName || m.origin.projectId}`));
|
|
7341
7364
|
const body = el("div", "msg-body");
|
|
7342
7365
|
for (const seg of mentionSegments(m.body, parseMentions(m.body))) {
|
|
7343
7366
|
if (seg.mention) body.appendChild(el("span", "mention", seg.text));
|