@genesislcap/ai-assistant 14.458.1-GENC-0.2 → 14.458.1-GENC-0.3

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.
@@ -1 +1 @@
1
- {"version":3,"file":"main.template.d.ts","sourceRoot":"","sources":["../../../src/main/main.template.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AASH,OAAO,EAAuC,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAwJpD,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,GACxC,oBAAoB,MAAM,KACzB,YAAY,CAAC,qBAAqB,CAikBpC,CAAC"}
1
+ {"version":3,"file":"main.template.d.ts","sourceRoot":"","sources":["../../../src/main/main.template.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AASH,OAAO,EAAuC,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAgLpD,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,GACxC,oBAAoB,MAAM,KACzB,YAAY,CAAC,qBAAqB,CAqjBpC,CAAC"}
@@ -134,6 +134,28 @@ const liveSubAgentTraceTemplate = html `
134
134
  ${repeat((x) => x.liveSubAgentTrace.filter((m) => m.role !== 'user'), subAgentMessageRowTemplate)}
135
135
  </div>
136
136
  `;
137
+ // The two interchangeable loading indicators. These MUST be stable module-level
138
+ // instances: the binding that selects between them reads `enabledAnimations`,
139
+ // which is backed by the redux store proxy and re-evaluates on every change to
140
+ // the aiAssistant slice (i.e. every new message, including hidden tool-call and
141
+ // thinking-step messages). Returning a fresh `html` instance from that binding
142
+ // would make FAST tear down and rebuild the indicator DOM each time, restarting
143
+ // the dots' CSS animation and the waves' rAF loop. Stable references let FAST
144
+ // reuse the existing view so the animation runs uninterrupted.
145
+ const thinkingDotsTemplate = html `
146
+ <div class="thinking-dots">
147
+ <div class="dot dot-1"></div>
148
+ <div class="dot dot-2"></div>
149
+ <div class="dot dot-3"></div>
150
+ <div class="dot dot-4"></div>
151
+ </div>
152
+ `;
153
+ const thinkingWavesTemplate = html `
154
+ <div class="thinking-waves" part="thinking-waves">
155
+ <ai-waves-indicator></ai-waves-indicator>
156
+ <span class="thinking-caption">Thinking...</span>
157
+ </div>
158
+ `;
137
159
  // ─── Public factory ───────────────────────────────────────────────────────────
138
160
  /** @internal */
139
161
  export const FoundationAiAssistantTemplate = (designSystemPrefix) => {
@@ -464,20 +486,8 @@ ${(tc) => { var _a; return (((_a = tc.foldPath) === null || _a === void 0 ? void
464
486
  `}
465
487
  </div>
466
488
  ${(x) => x.enabledAnimations.includes('waves')
467
- ? html `
468
- <div class="thinking-waves" part="thinking-waves">
469
- <ai-waves-indicator></ai-waves-indicator>
470
- <span class="thinking-caption">Thinking...</span>
471
- </div>
472
- `
473
- : html `
474
- <div class="thinking-dots">
475
- <div class="dot dot-1"></div>
476
- <div class="dot dot-2"></div>
477
- <div class="dot dot-3"></div>
478
- <div class="dot dot-4"></div>
479
- </div>
480
- `}
489
+ ? thinkingWavesTemplate
490
+ : thinkingDotsTemplate}
481
491
  </div>
482
492
  `)}
483
493
  </div>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/ai-assistant",
3
3
  "description": "Genesis AI Assistant micro-frontend",
4
- "version": "14.458.1-GENC-0.2",
4
+ "version": "14.458.1-GENC-0.3",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/ai-assistant.d.ts",
@@ -64,24 +64,24 @@
64
64
  }
65
65
  },
66
66
  "devDependencies": {
67
- "@genesislcap/foundation-testing": "14.458.1-GENC-0.2",
68
- "@genesislcap/genx": "14.458.1-GENC-0.2",
69
- "@genesislcap/rollup-builder": "14.458.1-GENC-0.2",
70
- "@genesislcap/ts-builder": "14.458.1-GENC-0.2",
71
- "@genesislcap/uvu-playwright-builder": "14.458.1-GENC-0.2",
72
- "@genesislcap/vite-builder": "14.458.1-GENC-0.2",
73
- "@genesislcap/webpack-builder": "14.458.1-GENC-0.2",
67
+ "@genesislcap/foundation-testing": "14.458.1-GENC-0.3",
68
+ "@genesislcap/genx": "14.458.1-GENC-0.3",
69
+ "@genesislcap/rollup-builder": "14.458.1-GENC-0.3",
70
+ "@genesislcap/ts-builder": "14.458.1-GENC-0.3",
71
+ "@genesislcap/uvu-playwright-builder": "14.458.1-GENC-0.3",
72
+ "@genesislcap/vite-builder": "14.458.1-GENC-0.3",
73
+ "@genesislcap/webpack-builder": "14.458.1-GENC-0.3",
74
74
  "@types/dompurify": "^3.0.5",
75
75
  "@types/marked": "^5.0.2"
76
76
  },
77
77
  "dependencies": {
78
- "@genesislcap/foundation-ai": "14.458.1-GENC-0.2",
79
- "@genesislcap/foundation-logger": "14.458.1-GENC-0.2",
80
- "@genesislcap/foundation-redux": "14.458.1-GENC-0.2",
81
- "@genesislcap/foundation-ui": "14.458.1-GENC-0.2",
82
- "@genesislcap/foundation-utils": "14.458.1-GENC-0.2",
83
- "@genesislcap/rapid-design-system": "14.458.1-GENC-0.2",
84
- "@genesislcap/web-core": "14.458.1-GENC-0.2",
78
+ "@genesislcap/foundation-ai": "14.458.1-GENC-0.3",
79
+ "@genesislcap/foundation-logger": "14.458.1-GENC-0.3",
80
+ "@genesislcap/foundation-redux": "14.458.1-GENC-0.3",
81
+ "@genesislcap/foundation-ui": "14.458.1-GENC-0.3",
82
+ "@genesislcap/foundation-utils": "14.458.1-GENC-0.3",
83
+ "@genesislcap/rapid-design-system": "14.458.1-GENC-0.3",
84
+ "@genesislcap/web-core": "14.458.1-GENC-0.3",
85
85
  "dompurify": "^3.3.1",
86
86
  "marked": "^17.0.3"
87
87
  },
@@ -93,5 +93,5 @@
93
93
  "publishConfig": {
94
94
  "access": "public"
95
95
  },
96
- "gitHead": "7506d57ff2fb4954bdba714195727a48ebb3d9a3"
96
+ "gitHead": "8c0abb0de4dbbe5069d5456c3d8e7a52b5854133"
97
97
  }
@@ -173,6 +173,30 @@ const liveSubAgentTraceTemplate = html<FoundationAiAssistant>`
173
173
  </div>
174
174
  `;
175
175
 
176
+ // The two interchangeable loading indicators. These MUST be stable module-level
177
+ // instances: the binding that selects between them reads `enabledAnimations`,
178
+ // which is backed by the redux store proxy and re-evaluates on every change to
179
+ // the aiAssistant slice (i.e. every new message, including hidden tool-call and
180
+ // thinking-step messages). Returning a fresh `html` instance from that binding
181
+ // would make FAST tear down and rebuild the indicator DOM each time, restarting
182
+ // the dots' CSS animation and the waves' rAF loop. Stable references let FAST
183
+ // reuse the existing view so the animation runs uninterrupted.
184
+ const thinkingDotsTemplate = html<FoundationAiAssistant>`
185
+ <div class="thinking-dots">
186
+ <div class="dot dot-1"></div>
187
+ <div class="dot dot-2"></div>
188
+ <div class="dot dot-3"></div>
189
+ <div class="dot dot-4"></div>
190
+ </div>
191
+ `;
192
+
193
+ const thinkingWavesTemplate = html<FoundationAiAssistant>`
194
+ <div class="thinking-waves" part="thinking-waves">
195
+ <ai-waves-indicator></ai-waves-indicator>
196
+ <span class="thinking-caption">Thinking...</span>
197
+ </div>
198
+ `;
199
+
176
200
  // ─── Public factory ───────────────────────────────────────────────────────────
177
201
 
178
202
  /** @internal */
@@ -602,20 +626,8 @@ ${(tc) => (tc.foldPath?.length ? `${tc.foldPath.join(' › ')} › ` : '')}<stro
602
626
  </div>
603
627
  ${(x) =>
604
628
  x.enabledAnimations.includes('waves')
605
- ? html<FoundationAiAssistant>`
606
- <div class="thinking-waves" part="thinking-waves">
607
- <ai-waves-indicator></ai-waves-indicator>
608
- <span class="thinking-caption">Thinking...</span>
609
- </div>
610
- `
611
- : html<FoundationAiAssistant>`
612
- <div class="thinking-dots">
613
- <div class="dot dot-1"></div>
614
- <div class="dot dot-2"></div>
615
- <div class="dot dot-3"></div>
616
- <div class="dot dot-4"></div>
617
- </div>
618
- `}
629
+ ? thinkingWavesTemplate
630
+ : thinkingDotsTemplate}
619
631
  </div>
620
632
  `,
621
633
  )}