shadok-ai 0.19.79 → 0.19.80
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 +2 -1
- package/package.json +1 -1
- package/public/index.html +61 -5
package/README.md
CHANGED
|
@@ -573,7 +573,8 @@ Enter to skip; you can add it later from the web UI).
|
|
|
573
573
|
own bar and, when the keyboard opens, sits right above it (the instrument bar
|
|
574
574
|
folds away while you type). Fields are 16px, which is what stops Safari from
|
|
575
575
|
zooming in on focus. The agents column is replaced by a channel selector in
|
|
576
|
-
the channel bar.
|
|
576
|
+
the channel bar. The composer keeps one row: **+** (attach a file, add a
|
|
577
|
+
skill) · the field · the mic · **↑** to send.
|
|
577
578
|
- **Tweak Shadok-AI** — a card pinned at the bottom of the agents column, with the running version in grey beside its title (the code a tweak starts from). One
|
|
578
579
|
click clones shadok-ai's own source into `~/.shadok-ai/self/shadok-ai` and
|
|
579
580
|
starts an agent on it in its own worktree; that agent delivers its change as a
|
package/package.json
CHANGED
package/public/index.html
CHANGED
|
@@ -3350,14 +3350,39 @@
|
|
|
3350
3350
|
the rail, the agents column and the engine room, so a wide window can still
|
|
3351
3351
|
hold a narrow composer. */
|
|
3352
3352
|
#composer { container: composer / inline-size; }
|
|
3353
|
+
/* The "+" and its menu exist only for the narrow composer below. */
|
|
3354
|
+
#cmpPlus, .cmp-plus-menu { display: none; }
|
|
3355
|
+
#sendBtn .send-ico { display: none; }
|
|
3353
3356
|
@container composer (max-width: 560px) {
|
|
3357
|
+
/* ONE row on a phone: + · field · mic · ↑. It used to be two (the field on
|
|
3358
|
+
its own row, five buttons beneath), which spent a whole extra row of a
|
|
3359
|
+
small screen on buttons. Folding the paperclip and the skill button behind
|
|
3360
|
+
"+" and reducing Send to an arrow leaves the field ~220px at 390px — the
|
|
3361
|
+
old one-row layout had ~110px, which is why it was split. */
|
|
3362
|
+
#composer { gap: 6px; align-items: flex-end; }
|
|
3354
3363
|
#composer .cmp-mic-msg { order: -3; }
|
|
3355
3364
|
#composer .cmp-atts { order: -2; }
|
|
3356
|
-
#composer
|
|
3357
|
-
#composer
|
|
3358
|
-
#composer .cmp-
|
|
3359
|
-
#composer .cmp-attach {
|
|
3365
|
+
#composer #attachBtn, #composer #skillBtn { display: none; }
|
|
3366
|
+
#composer #cmpPlus { display: inline-flex; }
|
|
3367
|
+
#composer .cmp-plus-menu:not([hidden]) { display: flex; }
|
|
3368
|
+
#composer .cmp-attach, #composer .cmp-mic, #composer #sendBtn { height: 42px; }
|
|
3369
|
+
#composer .cmp-attach { width: 42px; }
|
|
3370
|
+
#composer .cmp-mic { border-radius: 21px; } /* round like + and ↑; a pill while the timer shows */
|
|
3371
|
+
#composer #sendBtn { width: 42px; min-width: 42px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; align-self: flex-end; }
|
|
3372
|
+
#composer #sendBtn .send-txt { display: none; }
|
|
3373
|
+
#composer #sendBtn .send-ico { display: block; }
|
|
3374
|
+
}
|
|
3375
|
+
.cmp-plus-menu {
|
|
3376
|
+
position: absolute; left: 12px; bottom: 100%; z-index: 30; margin-bottom: 6px;
|
|
3377
|
+
flex-direction: column; gap: 2px; padding: 4px; min-width: 190px;
|
|
3378
|
+
background: var(--bg-raised); border-radius: 14px;
|
|
3379
|
+
box-shadow: 0 22px 50px -18px rgba(0, 0, 0, .6), 0 0 0 1px var(--line);
|
|
3360
3380
|
}
|
|
3381
|
+
.cmp-plus-menu button { text-align: left; border: 0; background: transparent; color: var(--text); padding: 10px 12px; border-radius: 10px; font: inherit; font-size: 15px; }
|
|
3382
|
+
.cmp-plus-menu button:hover:not(:disabled) { background: var(--amber-soft); }
|
|
3383
|
+
.cmp-plus-menu button:disabled { opacity: 0.45; }
|
|
3384
|
+
/* A room has no skills: the skill button is hidden there, so is its twin. */
|
|
3385
|
+
body.room-active #cmpPlusSkill { display: none; }
|
|
3361
3386
|
|
|
3362
3387
|
/* Floating menus: lifted, not outlined. */
|
|
3363
3388
|
#moreMenu, #tabMenu, #verMenu, .slash-menu {
|
|
@@ -4568,6 +4593,16 @@
|
|
|
4568
4593
|
<div id="composerAtts" class="cmp-atts" hidden></div>
|
|
4569
4594
|
<!-- Transient status for the dictate button (permission, nothing heard…). -->
|
|
4570
4595
|
<div id="micMsg" class="cmp-mic-msg" role="status" aria-live="polite" hidden></div>
|
|
4596
|
+
<!-- A narrow composer (a phone) keeps ONE row: the paperclip and the skill
|
|
4597
|
+
button fold behind this "+", which opens a two-item menu that clicks
|
|
4598
|
+
the real buttons (so their handlers and disabled state still apply). -->
|
|
4599
|
+
<button type="button" id="cmpPlus" class="cmp-attach" title="Attach a file or add a skill" aria-label="More" aria-haspopup="true" aria-expanded="false">
|
|
4600
|
+
<svg viewBox="0 0 24 24" width="18" height="18" aria-hidden="true"><path d="M12 5v14M5 12h14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>
|
|
4601
|
+
</button>
|
|
4602
|
+
<div id="cmpPlusMenu" class="cmp-plus-menu" role="menu" hidden>
|
|
4603
|
+
<button type="button" role="menuitem" data-for="attachBtn">📎 Attach a file</button>
|
|
4604
|
+
<button type="button" role="menuitem" data-for="skillBtn" id="cmpPlusSkill">✨ Add a skill</button>
|
|
4605
|
+
</div>
|
|
4571
4606
|
<!-- Pick a file to send: the same path as a paste or a drop (attachFile). -->
|
|
4572
4607
|
<button type="button" id="attachBtn" class="cmp-attach" title="Attach a file" aria-label="Attach a file">
|
|
4573
4608
|
<svg viewBox="0 0 24 24" width="18" height="18" aria-hidden="true"><path d="M21 11.5l-8.6 8.6a5.5 5.5 0 0 1-7.8-7.8l8.6-8.6a3.7 3.7 0 0 1 5.2 5.2l-8.6 8.6a1.8 1.8 0 0 1-2.6-2.6l7.9-7.9" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
@@ -4588,7 +4623,7 @@
|
|
|
4588
4623
|
<svg class="mic-rec" viewBox="0 0 24 24" width="15" height="15" aria-hidden="true"><rect x="6" y="6" width="12" height="12" rx="2" fill="currentColor"/></svg>
|
|
4589
4624
|
<span class="mic-time" aria-hidden="true"></span>
|
|
4590
4625
|
</button>
|
|
4591
|
-
<button type="submit" class="primary" id="sendBtn">Send</button>
|
|
4626
|
+
<button type="submit" class="primary" id="sendBtn" aria-label="Send"><span class="send-txt">Send</span><svg class="send-ico" viewBox="0 0 24 24" width="18" height="18" aria-hidden="true"><path d="M12 19V5M6 11l6-6 6 6" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
|
|
4592
4627
|
</form>
|
|
4593
4628
|
|
|
4594
4629
|
<!-- Interactive terminal, per channel, filling the main area (toggled by ⌨️
|
|
@@ -12776,6 +12811,27 @@
|
|
|
12776
12811
|
composer.requestSubmit();
|
|
12777
12812
|
}
|
|
12778
12813
|
});
|
|
12814
|
+
// The phone "+": opens Attach / Add a skill, each clicking the real button.
|
|
12815
|
+
// Disabled mirrors the real button at open time (no agent, upload running…).
|
|
12816
|
+
{
|
|
12817
|
+
const plus = $("cmpPlus"), menu = $("cmpPlusMenu");
|
|
12818
|
+
const close = () => { menu.hidden = true; plus.setAttribute("aria-expanded", "false"); };
|
|
12819
|
+
plus.addEventListener("click", (e) => {
|
|
12820
|
+
e.stopPropagation();
|
|
12821
|
+
if (!menu.hidden) return close();
|
|
12822
|
+
for (const b of menu.querySelectorAll("button[data-for]")) b.disabled = !!$(b.dataset.for)?.disabled;
|
|
12823
|
+
menu.hidden = false;
|
|
12824
|
+
plus.setAttribute("aria-expanded", "true");
|
|
12825
|
+
});
|
|
12826
|
+
menu.addEventListener("click", (e) => {
|
|
12827
|
+
const b = e.target.closest("button[data-for]");
|
|
12828
|
+
if (!b || b.disabled) return;
|
|
12829
|
+
e.stopPropagation(); // the skill menu opens on this click: don't let the document close it
|
|
12830
|
+
close();
|
|
12831
|
+
$(b.dataset.for)?.click();
|
|
12832
|
+
});
|
|
12833
|
+
document.addEventListener("click", (e) => { if (!menu.hidden && !menu.contains(e.target)) close(); });
|
|
12834
|
+
}
|
|
12779
12835
|
function autosizePrompt() {
|
|
12780
12836
|
promptInput.style.height = "auto";
|
|
12781
12837
|
promptInput.style.height = Math.min(promptInput.scrollHeight, 160) + "px";
|