@cat-factory/app 0.306.0 → 0.307.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.
- package/app/components/guidedReview/GuidedReviewThread.vue +16 -3
- package/app/docs/consumer-extensions.md +1 -1
- package/i18n/locales/de.json +4 -1
- package/i18n/locales/en.json +4 -1
- package/i18n/locales/es.json +4 -1
- package/i18n/locales/fr.json +4 -1
- package/i18n/locales/he.json +4 -1
- package/i18n/locales/it.json +4 -1
- package/i18n/locales/ja.json +4 -1
- package/i18n/locales/pl.json +4 -1
- package/i18n/locales/tr.json +4 -1
- package/i18n/locales/uk.json +4 -1
- package/package.json +5 -5
|
@@ -27,6 +27,7 @@ const store = useGuidedReviewStore()
|
|
|
27
27
|
const { present } = usePipelineErrorToast()
|
|
28
28
|
|
|
29
29
|
const prompt = ref('')
|
|
30
|
+
const deep = ref(false)
|
|
30
31
|
const sending = ref(false)
|
|
31
32
|
const messages = computed(() => props.view?.messages ?? [])
|
|
32
33
|
const ready = computed(() => canAsk(messages.value) && !sending.value)
|
|
@@ -37,10 +38,11 @@ async function send(): Promise<void> {
|
|
|
37
38
|
const content = prompt.value.trim()
|
|
38
39
|
sending.value = true
|
|
39
40
|
try {
|
|
41
|
+
const question = { content, ...(deep.value ? { depth: 'deep' as const } : {}) }
|
|
40
42
|
if (props.view) {
|
|
41
|
-
await store.ask(props.sessionId, props.view.thread.id,
|
|
43
|
+
await store.ask(props.sessionId, props.view.thread.id, question)
|
|
42
44
|
} else {
|
|
43
|
-
const created = await store.openThread(props.sessionId, { question
|
|
45
|
+
const created = await store.openThread(props.sessionId, { question })
|
|
44
46
|
emit('created', created.thread.id)
|
|
45
47
|
}
|
|
46
48
|
prompt.value = ''
|
|
@@ -128,7 +130,11 @@ async function draftComments(): Promise<void> {
|
|
|
128
130
|
</template>
|
|
129
131
|
<p v-else-if="isLive(m)" class="flex items-center gap-2 text-muted">
|
|
130
132
|
<UIcon name="i-lucide-loader-circle" class="h-4 w-4 animate-spin" />
|
|
131
|
-
{{
|
|
133
|
+
{{
|
|
134
|
+
m.depth === 'deep'
|
|
135
|
+
? t('guidedReview.thread.investigating')
|
|
136
|
+
: t('guidedReview.thread.waiting')
|
|
137
|
+
}}
|
|
132
138
|
</p>
|
|
133
139
|
<GuidedReviewFailure v-else-if="m.status === 'failed' && m.failure" :failure="m.failure" />
|
|
134
140
|
<template v-else-if="m.kind === 'answer'">
|
|
@@ -228,6 +234,13 @@ async function draftComments(): Promise<void> {
|
|
|
228
234
|
@keydown.enter.ctrl.prevent="send"
|
|
229
235
|
/>
|
|
230
236
|
<div class="flex flex-wrap items-center gap-2">
|
|
237
|
+
<USwitch
|
|
238
|
+
v-model="deep"
|
|
239
|
+
size="sm"
|
|
240
|
+
:label="t('guidedReview.thread.deep')"
|
|
241
|
+
:description="t('guidedReview.thread.deepHint')"
|
|
242
|
+
data-testid="guided-review-deep"
|
|
243
|
+
/>
|
|
231
244
|
<UButton
|
|
232
245
|
color="primary"
|
|
233
246
|
icon="i-lucide-send"
|
|
@@ -47,7 +47,7 @@ export default defineNuxtPlugin(() => {
|
|
|
47
47
|
- **`registerAppModule` is auto-imported** from the layer (`app/utils/modular.ts`), so you
|
|
48
48
|
need no deep import into the layer's internals.
|
|
49
49
|
- **`enforce: 'post'` is load-bearing.** The layer's own install plugin is `enforce:
|
|
50
|
-
'post'`, and Nuxt runs layer plugins before the consuming app's plugins within one
|
|
50
|
+
'post'`, and Nuxt runs layer plugins before the consuming app's plugins within one
|
|
51
51
|
enforce bucket. So your registration plugin must run in the **default** (or `pre`) bucket
|
|
52
52
|
, i.e. **do not** put `enforce: 'post'` on it, or it registers too late and is silently
|
|
53
53
|
missed.
|
package/i18n/locales/de.json
CHANGED
|
@@ -4648,7 +4648,10 @@
|
|
|
4648
4648
|
"placeholder": "Stell eine Frage zur Änderung",
|
|
4649
4649
|
"busy": "Warte auf die Antwort auf die vorherige Frage",
|
|
4650
4650
|
"send": "Fragen",
|
|
4651
|
-
"draftRequest": "Review-Kommentare angefordert"
|
|
4651
|
+
"draftRequest": "Review-Kommentare angefordert",
|
|
4652
|
+
"deep": "Tiefenanalyse",
|
|
4653
|
+
"deepHint": "Antwort aus einem Checkout des Repositorys: langsamer, kann aber den ganzen Baum durchsuchen.",
|
|
4654
|
+
"investigating": "Untersuchung in einem Checkout des Repositorys. Das kann einige Minuten dauern."
|
|
4652
4655
|
},
|
|
4653
4656
|
"drafts": {
|
|
4654
4657
|
"title": "Kommentarentwürfe",
|
package/i18n/locales/en.json
CHANGED
|
@@ -5370,7 +5370,10 @@
|
|
|
5370
5370
|
"placeholder": "Ask a question about the change",
|
|
5371
5371
|
"busy": "Waiting for the answer to the previous question",
|
|
5372
5372
|
"send": "Ask",
|
|
5373
|
-
"draftRequest": "Asked for review comments"
|
|
5373
|
+
"draftRequest": "Asked for review comments",
|
|
5374
|
+
"deep": "Deep dive",
|
|
5375
|
+
"deepHint": "Answer from a checkout of the repository: slower, but can search the whole tree.",
|
|
5376
|
+
"investigating": "Investigating in a checkout of the repository. This can take several minutes."
|
|
5374
5377
|
},
|
|
5375
5378
|
"drafts": {
|
|
5376
5379
|
"title": "Comment drafts",
|
package/i18n/locales/es.json
CHANGED
|
@@ -5176,7 +5176,10 @@
|
|
|
5176
5176
|
"placeholder": "Haz una pregunta sobre el cambio",
|
|
5177
5177
|
"busy": "Esperando la respuesta a la pregunta anterior",
|
|
5178
5178
|
"send": "Preguntar",
|
|
5179
|
-
"draftRequest": "Se pidieron comentarios de revisión"
|
|
5179
|
+
"draftRequest": "Se pidieron comentarios de revisión",
|
|
5180
|
+
"deep": "Análisis a fondo",
|
|
5181
|
+
"deepHint": "Responde desde una copia del repositorio: más lento, pero puede buscar en todo el árbol.",
|
|
5182
|
+
"investigating": "Investigando en una copia del repositorio. Puede tardar varios minutos."
|
|
5180
5183
|
},
|
|
5181
5184
|
"drafts": {
|
|
5182
5185
|
"title": "Borradores de comentarios",
|
package/i18n/locales/fr.json
CHANGED
|
@@ -5176,7 +5176,10 @@
|
|
|
5176
5176
|
"placeholder": "Pose une question sur le changement",
|
|
5177
5177
|
"busy": "En attente de la réponse à la question précédente",
|
|
5178
5178
|
"send": "Demander",
|
|
5179
|
-
"draftRequest": "Commentaires de revue demandés"
|
|
5179
|
+
"draftRequest": "Commentaires de revue demandés",
|
|
5180
|
+
"deep": "Analyse approfondie",
|
|
5181
|
+
"deepHint": "Répond depuis un checkout du dépôt : plus lent, mais peut chercher dans toute l'arborescence.",
|
|
5182
|
+
"investigating": "Analyse dans un checkout du dépôt. Cela peut prendre plusieurs minutes."
|
|
5180
5183
|
},
|
|
5181
5184
|
"drafts": {
|
|
5182
5185
|
"title": "Brouillons de commentaires",
|
package/i18n/locales/he.json
CHANGED
|
@@ -5176,7 +5176,10 @@
|
|
|
5176
5176
|
"placeholder": "שאלו שאלה על השינוי",
|
|
5177
5177
|
"busy": "ממתין לתשובה לשאלה הקודמת",
|
|
5178
5178
|
"send": "לשאול",
|
|
5179
|
-
"draftRequest": "התבקשו הערות סקירה"
|
|
5179
|
+
"draftRequest": "התבקשו הערות סקירה",
|
|
5180
|
+
"deep": "בדיקה מעמיקה",
|
|
5181
|
+
"deepHint": "תשובה מתוך עותק של המאגר: איטית יותר, אבל יכולה לחפש בכל העץ.",
|
|
5182
|
+
"investigating": "בודק בעותק של המאגר. זה עשוי לקחת כמה דקות."
|
|
5180
5183
|
},
|
|
5181
5184
|
"drafts": {
|
|
5182
5185
|
"title": "טיוטות הערות",
|
package/i18n/locales/it.json
CHANGED
|
@@ -4648,7 +4648,10 @@
|
|
|
4648
4648
|
"placeholder": "Fai una domanda sulla modifica",
|
|
4649
4649
|
"busy": "In attesa della risposta alla domanda precedente",
|
|
4650
4650
|
"send": "Chiedi",
|
|
4651
|
-
"draftRequest": "Richiesti commenti di revisione"
|
|
4651
|
+
"draftRequest": "Richiesti commenti di revisione",
|
|
4652
|
+
"deep": "Analisi approfondita",
|
|
4653
|
+
"deepHint": "Risponde da un checkout del repository: più lento, ma può cercare in tutto l'albero.",
|
|
4654
|
+
"investigating": "Analisi in corso in un checkout del repository. Può richiedere alcuni minuti."
|
|
4652
4655
|
},
|
|
4653
4656
|
"drafts": {
|
|
4654
4657
|
"title": "Bozze di commenti",
|
package/i18n/locales/ja.json
CHANGED
|
@@ -5176,7 +5176,10 @@
|
|
|
5176
5176
|
"placeholder": "変更について質問する",
|
|
5177
5177
|
"busy": "前の質問への回答を待っています",
|
|
5178
5178
|
"send": "質問する",
|
|
5179
|
-
"draftRequest": "レビューコメントを依頼しました"
|
|
5179
|
+
"draftRequest": "レビューコメントを依頼しました",
|
|
5180
|
+
"deep": "詳細調査",
|
|
5181
|
+
"deepHint": "リポジトリのチェックアウトから回答します。時間はかかりますが、ツリー全体を検索できます。",
|
|
5182
|
+
"investigating": "リポジトリのチェックアウトで調査しています。数分かかる場合があります。"
|
|
5180
5183
|
},
|
|
5181
5184
|
"drafts": {
|
|
5182
5185
|
"title": "コメントの下書き",
|
package/i18n/locales/pl.json
CHANGED
|
@@ -5176,7 +5176,10 @@
|
|
|
5176
5176
|
"placeholder": "Zadaj pytanie o zmianę",
|
|
5177
5177
|
"busy": "Czekam na odpowiedź na poprzednie pytanie",
|
|
5178
5178
|
"send": "Zapytaj",
|
|
5179
|
-
"draftRequest": "Poproszono o komentarze do przeglądu"
|
|
5179
|
+
"draftRequest": "Poproszono o komentarze do przeglądu",
|
|
5180
|
+
"deep": "Dogłębna analiza",
|
|
5181
|
+
"deepHint": "Odpowiedź z kopii repozytorium: wolniej, ale można przeszukać całe drzewo.",
|
|
5182
|
+
"investigating": "Trwa analiza w kopii repozytorium. Może to potrwać kilka minut."
|
|
5180
5183
|
},
|
|
5181
5184
|
"drafts": {
|
|
5182
5185
|
"title": "Szkice komentarzy",
|
package/i18n/locales/tr.json
CHANGED
|
@@ -5176,7 +5176,10 @@
|
|
|
5176
5176
|
"placeholder": "Değişiklik hakkında bir soru sorun",
|
|
5177
5177
|
"busy": "Önceki sorunun yanıtı bekleniyor",
|
|
5178
5178
|
"send": "Sor",
|
|
5179
|
-
"draftRequest": "İnceleme yorumları istendi"
|
|
5179
|
+
"draftRequest": "İnceleme yorumları istendi",
|
|
5180
|
+
"deep": "Derin inceleme",
|
|
5181
|
+
"deepHint": "Deponun bir kopyasından yanıtlar: daha yavaş ama tüm ağaçta arama yapabilir.",
|
|
5182
|
+
"investigating": "Deponun bir kopyasında inceleniyor. Bu birkaç dakika sürebilir."
|
|
5180
5183
|
},
|
|
5181
5184
|
"drafts": {
|
|
5182
5185
|
"title": "Yorum taslakları",
|
package/i18n/locales/uk.json
CHANGED
|
@@ -5176,7 +5176,10 @@
|
|
|
5176
5176
|
"placeholder": "Поставте запитання про зміни",
|
|
5177
5177
|
"busy": "Очікування відповіді на попереднє запитання",
|
|
5178
5178
|
"send": "Запитати",
|
|
5179
|
-
"draftRequest": "Запитано коментарі до рев’ю"
|
|
5179
|
+
"draftRequest": "Запитано коментарі до рев’ю",
|
|
5180
|
+
"deep": "Глибокий аналіз",
|
|
5181
|
+
"deepHint": "Відповідь із копії репозиторію: повільніше, зате можна шукати по всьому дереву.",
|
|
5182
|
+
"investigating": "Досліджується в копії репозиторію. Це може тривати кілька хвилин."
|
|
5180
5183
|
},
|
|
5181
5184
|
"drafts": {
|
|
5182
5185
|
"title": "Чернетки коментарів",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cat-factory/app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.307.1",
|
|
4
4
|
"description": "Reusable Nuxt layer for the Agent Architecture Board SPA (components, stores, composables, pages). Consume it from a thin deployment app via `extends: ['@cat-factory/app']` and point it at your backend with NUXT_PUBLIC_API_BASE. See deploy/frontend for an example.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@cat-factory/contracts": "0.
|
|
21
|
+
"@cat-factory/contracts": "0.362.0",
|
|
22
22
|
"@modular-frontend/core": "0.6.0",
|
|
23
23
|
"@modular-vue/core": "^1.5.0",
|
|
24
24
|
"@modular-vue/journeys": "^1.4.0",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@modular-vue/runtime": "^1.4.1",
|
|
27
27
|
"@modular-vue/vue": "^1.4.1",
|
|
28
28
|
"@nuxt/fonts": "^0.14.0",
|
|
29
|
-
"@nuxt/ui": "^4.11.
|
|
29
|
+
"@nuxt/ui": "^4.11.3",
|
|
30
30
|
"@nuxtjs/i18n": "^10.6.0",
|
|
31
31
|
"@pinia/nuxt": "^1.0.2",
|
|
32
32
|
"@toad-contracts/core": "1.0.0",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"@toad-contracts/testing": "1.0.0",
|
|
48
48
|
"happy-dom": "^20.14.5",
|
|
49
49
|
"msw": "^2.15.0",
|
|
50
|
-
"nuxt": "^4.
|
|
50
|
+
"nuxt": "^4.6.0",
|
|
51
51
|
"typescript": "^6.0.3",
|
|
52
52
|
"vitest": "^4.1.11",
|
|
53
53
|
"vue-i18n-extract": "^2.0.7",
|
|
54
|
-
"vue-tsc": "^3.3.
|
|
54
|
+
"vue-tsc": "^3.3.12"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"nuxt": "^4.5.2"
|