shadok-ai 0.20.30 → 0.20.31
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 +3 -3
- package/package.json +1 -1
- package/public/index.html +12 -3
package/README.md
CHANGED
|
@@ -702,9 +702,9 @@ Enter to skip; you can add it later from the web UI).
|
|
|
702
702
|
`autonomous`). Every attempt — published, refused, expired,
|
|
703
703
|
failed — is written to a **publication log** (who triggered it, who approved
|
|
704
704
|
it, the text, the post URL or LinkedIn's error), readable by anyone who can
|
|
705
|
-
use the account through the row's **Log** button (the last 50 entries). A pending draft
|
|
706
|
-
|
|
707
|
-
good, so the card in the chat is the reminder. An unapproved draft expires after 7
|
|
705
|
+
use the account through the row's **Log** button (the last 50 entries). A new pending draft flags its agent as "unread" (amber, cleared by
|
|
706
|
+
visiting the channel), never as "waiting for an answer": one nobody decides
|
|
707
|
+
would keep that signal on for good, so the card in the chat is the reminder. An unapproved draft expires after 7
|
|
708
708
|
days. LinkedIn tokens last about 60 days: seven days before expiry the owner
|
|
709
709
|
gets a dismissible banner at the top of the cockpit (and again once it has
|
|
710
710
|
expired) and, when they are the Telegram DM owner, a DM; an expired
|
package/package.json
CHANGED
package/public/index.html
CHANGED
|
@@ -11792,11 +11792,20 @@
|
|
|
11792
11792
|
}
|
|
11793
11793
|
if (t === active) updateJumpButton();
|
|
11794
11794
|
break;
|
|
11795
|
-
case "social-draft":
|
|
11796
|
-
// A LinkedIn
|
|
11797
|
-
// its card is updated in place
|
|
11795
|
+
case "social-draft": {
|
|
11796
|
+
// A draft card (email, LinkedIn post, Drive upload) appeared or changed
|
|
11797
|
+
// state (published, discarded…): its card is updated in place.
|
|
11798
|
+
// A NEW pending one flags the tab "unread" — the same signal as an answer
|
|
11799
|
+
// landing, cleared by simply visiting the channel. Never "needs-answer":
|
|
11800
|
+
// a draft nobody decides would keep that lit forever. Only on the live
|
|
11801
|
+
// arrival (a replay never re-flags) and never over a real question.
|
|
11802
|
+
const isNew = !!(msg.draft && msg.draft.id) && !(t.drafts && t.drafts.has(msg.draft.id));
|
|
11798
11803
|
if (msg.draft) renderSocialDraft(t, msg.draft, msg.draft.createdAt);
|
|
11804
|
+
const away = document.hidden || !document.hasFocus();
|
|
11805
|
+
if (isNew && msg.draft.status === "pending" && (t !== active || away)
|
|
11806
|
+
&& !t.btnEl.classList.contains("needs-answer")) setTabMood(t, "unread");
|
|
11799
11807
|
break;
|
|
11808
|
+
}
|
|
11800
11809
|
case "stream-tool":
|
|
11801
11810
|
// The suspended message's tool_use is written right AFTER its text
|
|
11802
11811
|
// blocks: from here on, new text really comes after the question.
|