@loupekit/sdk 0.12.0 → 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.js
CHANGED
|
@@ -645,6 +645,12 @@ var STYLES = (
|
|
|
645
645
|
}
|
|
646
646
|
.fwdchip { border-color: var(--accent); color: var(--accent); }
|
|
647
647
|
.fwdchip.bad { border-color: #d9534f; color: #d9534f; }
|
|
648
|
+
a.fwdchip { text-decoration: none; cursor: pointer; }
|
|
649
|
+
.fwdchip[class*="st-"] { max-width: 220px; }
|
|
650
|
+
.fwdchip.st-queue { border-color: var(--line); color: var(--muted); }
|
|
651
|
+
.fwdchip.st-in_progress { border-color: #3f8ae0; color: #3f8ae0; }
|
|
652
|
+
.fwdchip.st-in_review { border-color: #c98a1b; color: #c98a1b; }
|
|
653
|
+
.fwdchip.st-resolved { border-color: #2f9e6a; color: #2f9e6a; }
|
|
648
654
|
|
|
649
655
|
/* ------------------------------------------------ lifecycle chips + review flow */
|
|
650
656
|
.lifechip {
|
|
@@ -3940,7 +3946,7 @@ var HttpAdapter = class {
|
|
|
3940
3946
|
};
|
|
3941
3947
|
|
|
3942
3948
|
// src/app.ts
|
|
3943
|
-
var SDK_VERSION = true ? "0.
|
|
3949
|
+
var SDK_VERSION = true ? "0.13.0" : "dev";
|
|
3944
3950
|
var FAB_SIZE = 46;
|
|
3945
3951
|
var FAB_DRAG_THRESHOLD = 6;
|
|
3946
3952
|
var LAUNCHER_SHORTCUT = "Alt+Shift+L";
|
|
@@ -6670,9 +6676,25 @@ var LoupeApp = class {
|
|
|
6670
6676
|
if (fwd && fwd.status !== "none") {
|
|
6671
6677
|
const where = fwd.destinationName || (fwd.status === "ok" ? "webhook" : "Hub");
|
|
6672
6678
|
const ok = fwd.status === "ok";
|
|
6673
|
-
const
|
|
6674
|
-
|
|
6675
|
-
|
|
6679
|
+
const remote = ok ? fwd.remote : void 0;
|
|
6680
|
+
if (remote) {
|
|
6681
|
+
const said = remote.label || STAGE_LABELS[normalizeStatus(remote.status)];
|
|
6682
|
+
const text = [`\u2192 ${where}`, remote.reference, said].filter(Boolean).join(" \xB7 ");
|
|
6683
|
+
const link = remote.url && /^https?:\/\//i.test(remote.url) ? remote.url : null;
|
|
6684
|
+
const chip = el(link ? "a" : "span", `fwdchip st-${normalizeStatus(remote.status)}`, text);
|
|
6685
|
+
chip.title = `${where}: ${said}${remote.at ? ` \u2014 updated ${fmtAgo(remote.at)}` : ""}`;
|
|
6686
|
+
if (link) {
|
|
6687
|
+
chip.href = link;
|
|
6688
|
+
chip.setAttribute("target", "_blank");
|
|
6689
|
+
chip.setAttribute("rel", "noreferrer");
|
|
6690
|
+
chip.addEventListener("click", (e) => e.stopPropagation());
|
|
6691
|
+
}
|
|
6692
|
+
top.appendChild(chip);
|
|
6693
|
+
} else {
|
|
6694
|
+
const chip = el("span", ok ? "fwdchip" : "fwdchip bad", ok ? `\u2192 ${where}` : `\u2192 ${where} failed`);
|
|
6695
|
+
chip.title = ok ? `Sent to ${where}` : `Could not send to ${where}${fwd.error ? `: ${fwd.error}` : ""}`;
|
|
6696
|
+
top.appendChild(chip);
|
|
6697
|
+
}
|
|
6676
6698
|
}
|
|
6677
6699
|
if (isResolved(c)) top.appendChild(el("span", "badge done", "resolved"));
|
|
6678
6700
|
else if (detached) {
|
|
@@ -7301,6 +7323,7 @@ ${c.body}` : c.body)}</div>` + (c.context?.html ? `<pre class="or-code">${escape
|
|
|
7301
7323
|
);
|
|
7302
7324
|
head.lastElementChild.title = this.fmtWhen(m.createdAt);
|
|
7303
7325
|
if (fromAgent) head.appendChild(el("span", "msg-tag", "agent"));
|
|
7326
|
+
if (m.origin) head.appendChild(el("span", "msg-tag origin", `from ${m.origin.projectName || m.origin.projectId}`));
|
|
7304
7327
|
const body = el("div", "msg-body");
|
|
7305
7328
|
for (const seg of mentionSegments(m.body, parseMentions(m.body))) {
|
|
7306
7329
|
if (seg.mention) body.appendChild(el("span", "mention", seg.text));
|