@g9tm/aiassistant-svelte 1.4.0 → 1.4.1

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.
@@ -13,6 +13,7 @@
13
13
  let q = $state("");
14
14
  let found = $state<{ id: string; label: string }[]>([]);
15
15
  let asked = $state(false);
16
+ let askedFor = $state(""); // before anything is typed an empty answer is a hint, not "nothing found"
16
17
  let failed = $state(false);
17
18
  let handle: ReturnType<typeof setTimeout> | undefined;
18
19
  let seq = 0;
@@ -24,6 +25,7 @@
24
25
  pageCalls.pick(ui.assistant.api, slot.kind, text.trim()).then((raw) => {
25
26
  if (mine !== seq) return;
26
27
  found = readPicks(raw);
28
+ askedFor = text.trim();
27
29
  asked = true;
28
30
  failed = false;
29
31
  }, () => {
@@ -49,7 +51,7 @@
49
51
  {/each}
50
52
  </ul>
51
53
  {:else if asked}
52
- <p class="g9a-note">{t("routine.none_found")}</p>
54
+ <p class="g9a-note">{t(askedFor.length === 0 ? "routine.type_to_search" : "routine.none_found")}</p>
53
55
  {/if}
54
56
  {/if}
55
57
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@g9tm/aiassistant-svelte",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Svelte 5 components for the G9 AI assistant, fully customisable (layouts, tokens, per-part classes, overrides, parts).",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -31,7 +31,7 @@
31
31
  "access": "public"
32
32
  },
33
33
  "dependencies": {
34
- "@g9tm/aiassistant": "1.4.0"
34
+ "@g9tm/aiassistant": "1.4.1"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@sveltejs/package": "2.5.8",