nio-cat 0.9.9 → 0.9.11

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/web/app/style.css CHANGED
@@ -85,8 +85,8 @@ kbd { font: 600 11px var(--font); padding: 1px 6px; border: 1px solid var(--bord
85
85
  body.side-collapsed .brand .word { visibility: hidden; }
86
86
  body.side-collapsed .side nav a .l, body.side-collapsed .kbd .l, body.side-collapsed .kbd kbd, body.side-collapsed .conn span, body.side-collapsed .conn svg { display: none; }
87
87
  body.side-collapsed .conn { padding-left: 0; justify-content: center; }
88
- body.side-collapsed .side nav .grp { font-size: 0; padding: 9px 13px 5px; }
89
- body.side-collapsed .side nav .grp::before { content: ''; display: block; height: 1px; background: var(--border); }
88
+ body.side-collapsed .side nav .grp { font-size: 0; margin-top: 8px; padding: 8px 0 0; }
89
+ body.side-collapsed .side nav .grp::before { left: 10px; right: 10px; }
90
90
  body.side-collapsed .side nav .grp:first-child { display: none; }
91
91
  body.side-collapsed .side nav a .badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; font-size: 9px; padding: 0 4px; }
92
92
  }
@@ -135,7 +135,11 @@ button.chip:hover { border-color: var(--fg); }
135
135
  .chip.waiting { background: var(--lemon); border-color: var(--lemon); }
136
136
  .chip.error { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
137
137
  .chip.usage { gap: 6px; }
138
- .chip.usage .uw + .uw::before { content: '·'; margin-right: 6px; color: var(--fg-muted); font-weight: 400; }
138
+ .chip.usage .uw + .uw::before { content: '//'; margin-right: 6px; color: var(--fg-muted); font-weight: 400; opacity: .7; }
139
+ .chip.usage .ring { width: 15px; height: 15px; stroke-width: 3; }
140
+ .chip.usage .ring .rt { stroke: color-mix(in srgb, currentColor 18%, transparent); }
141
+ .chip.usage .ring .rv { stroke: var(--moss); }
142
+ .chip.usage[data-hi="1"] .ring .rv { stroke: var(--red); }
139
143
  .chip.usage .uw[data-hi="1"] { color: var(--red); font-weight: 600; }
140
144
  .chip.beta { height: 20px; padding: 0 7px; font-size: 10px; color: var(--fg-muted); }
141
145
  .pulse { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.2s ease-in-out infinite; }
@@ -185,6 +189,9 @@ button.chip:hover { border-color: var(--fg); }
185
189
  .try h2 { font-size: 18px; font-weight: 600; letter-spacing: -.03em; }
186
190
  .side nav .grp { display: block; padding: 14px 13px 4px; font-size: 11px; font-weight: 600; color: var(--fg-muted); letter-spacing: .02em; }
187
191
  .side nav .grp:first-child { padding-top: 0; }
192
+ /* Cada apartat comença amb una línia fina, alineada amb el text dels enllaços. */
193
+ .side nav .grp:not(:first-child) { position: relative; margin-top: 10px; padding-top: 18px; }
194
+ .side nav .grp:not(:first-child)::before { content: ''; position: absolute; top: 0; left: 13px; right: 13px; height: 1px; background: color-mix(in srgb, var(--border) 85%, transparent); }
188
195
 
189
196
  /* ---------- Sessions ---------- */
190
197
  .session-card .title { font-size: 16px; font-weight: 500; letter-spacing: -.02em; margin-top: 8px; }
@@ -360,6 +367,7 @@ body.board-mode .view-enter { animation: none; }
360
367
  body.nav-open .side { transform: none; box-shadow: 24px 0 60px -30px color-mix(in srgb, var(--fg) 45%, transparent); }
361
368
  .side.dragging { transition: none; }
362
369
  .side nav a { padding: 12px; font-size: 16px; }
370
+ .side nav, .side .foot { flex-shrink: 0; } /* el calaix fa scroll; la llista no s'encongeix sota el peu */
363
371
  .side .foot .kbd kbd { display: none; }
364
372
  .scrim { display: block; position: fixed; inset: 0; z-index: 45; background: color-mix(in srgb, var(--fg) 30%, transparent); opacity: 0; pointer-events: none; transition: opacity .3s ease-out; }
365
373
  body.nav-open .scrim { opacity: 1; pointer-events: auto; }
@@ -372,6 +380,8 @@ body.board-mode .view-enter { animation: none; }
372
380
  .cmd.big .btn { height: 38px; }
373
381
  .paste .pair-form { flex-direction: column; }
374
382
  .side nav .grp { padding: 16px 12px 4px; }
383
+ .side nav .grp:not(:first-child) { margin-top: 12px; padding-top: 20px; }
384
+ .side nav .grp:not(:first-child)::before { left: 12px; right: 12px; }
375
385
  .top h1 { font-size: 26px; }
376
386
  /* Al mòbil només fa scroll el document: res de contenidors amb scroll propi. */
377
387
  .chat { height: auto; min-height: calc(100dvh - 56px - var(--safe-t)); }
@@ -540,7 +550,14 @@ a.kbd { text-decoration: none; color: inherit; }
540
550
  .composer .mic.wait { opacity: .5; }
541
551
 
542
552
  /* ---------- Ordre i text net ---------- */
543
- .grid2.one { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
553
+ .grid2.one { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
554
+ .cols { max-width: 760px; }
555
+ /* Pantalla ampla: els panells d'una sola columna (Ajustos, Ordinadors, Pantalla) es reparteixen en dues, sense forats. */
556
+ @media (min-width: 1180px) {
557
+ .grid2.one, .cols { max-width: none; }
558
+ .cols, .grid2.one > .stack { display: block; columns: 2; column-gap: 16px; }
559
+ .cols > *, .grid2.one > .stack > * { break-inside: avoid; margin: 0 0 16px; }
560
+ }
544
561
  .top h1, .top p, .panel.empty h2, .panel.empty p, .stepper p, .stepper b, .help-body p, .card p, .sheet h2, .sheet p, .tour-card h3, .tour-card p, .muted.small { text-wrap: balance; }
545
562
  @media (max-width: 820px) {
546
563
  .side nav a[href="#/models"] { display: none; }
@@ -722,7 +739,7 @@ html.rd-open, html.rd-open body { overflow: hidden; }
722
739
  #jobMinsU { flex: 1; }
723
740
 
724
741
  /* Demo: avís d'ordinador simulat */
725
- .demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin: 16px 40px 0; padding: 10px 12px 10px 16px; border: 1px dashed var(--accent); border-radius: var(--radius); background: var(--panel); font-size: 13px; }
742
+ .demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin: 16px 40px 0; max-width: 1000px; padding: 10px 12px 10px 16px; border: 1px dashed var(--accent); border-radius: var(--radius); background: var(--panel); font-size: 13px; }
726
743
  .demo-bar b { color: var(--accent); }
727
744
  body.chat-mode .demo-bar, body.board-mode .demo-bar { display: none; }
728
745
  @media (max-width: 820px) { .demo-bar { margin: 12px 16px 0; } }
@@ -751,11 +768,14 @@ body.chat-mode .demo-bar, body.board-mode .demo-bar { display: none; }
751
768
  .feed { position: relative; }
752
769
 
753
770
  /* Totes les seccions, amb controls còmodes de tocar. */
754
- .more-sections { display: grid; gap: 22px; margin-top: 20px; }
755
- .more-sections h3 { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--fg-muted); }
771
+ .more-sections { display: grid; gap: 0; margin-top: 16px; }
772
+ .more-sections section + section { margin-top: 14px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--border) 85%, transparent); }
773
+ .more-sections h3 { margin: 0 0 4px; padding-left: 12px; font-size: 12px; font-weight: 600; color: var(--fg-muted); }
756
774
  .more-sections section > div { display: grid; }
757
775
  .more-link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
758
776
  .more-link > span:first-of-type { flex: 1; }
777
+ .more-link > .ico:first-child { width: 20px; height: 20px; color: var(--fg-muted); }
778
+ .more-link[aria-current="page"] > .ico:first-child { color: var(--fg); }
759
779
  .more-link > .ico:last-child { width: 14px; color: var(--fg-muted); }
760
780
  .more-link:hover, .more-link[aria-current="page"] { background: var(--bg-2); }
761
781
  .voice-extras { border: 1px solid var(--border); border-radius: 12px; padding: 0 14px; }
@@ -801,3 +821,15 @@ dialog.sheet:has(#memForm) { width: min(780px, calc(100% - 32px)); }
801
821
  .term-card { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; border-style: dashed; }
802
822
  .term-card:disabled { opacity: .6; cursor: progress; }
803
823
  .term-go { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-weight: 600; color: var(--fg); }
824
+
825
+ /* Pas a pas de la clau d'ElevenLabs */
826
+ .el-guide { margin: -4px 0 4px; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); font-size: 13.5px; }
827
+ .el-guide summary { cursor: pointer; font-weight: 600; }
828
+ .el-guide ol { margin: 10px 0 6px; padding-left: 20px; display: grid; gap: 8px; line-height: 1.45; }
829
+ .el-guide ul { margin: 6px 0 0; padding-left: 16px; display: grid; gap: 4px; }
830
+ .el-guide a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
831
+ .el-on, .el-off { display: inline-block; padding: 0 6px; border-radius: 6px; font-size: 12px; font-weight: 600; }
832
+ .el-on { background: color-mix(in srgb, var(--moss) 18%, transparent); color: var(--moss); }
833
+ .el-off { background: color-mix(in srgb, var(--fg) 8%, transparent); color: var(--fg-muted); }
834
+ .linkish { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
835
+ .main:has(.nt) .demo-bar { max-width: 1160px; }
package/web/sw.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // nio · service worker: obre l'app encara que no hi hagi connexió i mostra els avisos.
2
- const SHELL = 'nio-shell-v50';
3
- const FILES = ['/app', '/app/style.css', '/app/notes.css', '/app/call.css', '/app/app.js', '/app/notes.js', '/app/call.js', '/app/demo.js', '/bot.css', '/bot.js', '/board.css', '/board.js', '/favicon.svg', '/manifest.webmanifest'];
2
+ const SHELL = 'nio-shell-v53';
3
+ const FILES = ['/app', '/app/style.css', '/app/notes.css', '/app/call.css', '/app/app.js', '/app/notes.js', '/app/notes-live.js', '/app/call.js', '/app/demo.js', '/bot.css', '/bot.js', '/board.css', '/board.js', '/favicon.svg', '/manifest.webmanifest'];
4
4
 
5
5
  self.addEventListener('install', (e) => {
6
6
  e.waitUntil(caches.open(SHELL).then((c) => c.addAll(FILES)).catch(() => {}));