@su-record/vibe 2.4.9 → 2.4.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/hooks/hooks.json +11 -7
- package/package.json +1 -1
package/hooks/hooks.json
CHANGED
|
@@ -106,7 +106,8 @@
|
|
|
106
106
|
"hooks": [
|
|
107
107
|
{
|
|
108
108
|
"type": "command",
|
|
109
|
-
"command": "
|
|
109
|
+
"command": "node -e \"let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{const q=JSON.parse(d).prompt;import('@su-record/vibe/lib/gpt').then(g=>g.chat({messages:[{role:'user',content:q}],systemPrompt:'You are a software architect. Analyze and review the architecture.'})).then(r=>console.log('[GPT-5.2 Architecture]\\n'+r.content)).catch(e=>console.log('[GPT] Error:',e.message))})\"",
|
|
110
|
+
"statusMessage": "GPT analyzing architecture..."
|
|
110
111
|
}
|
|
111
112
|
]
|
|
112
113
|
},
|
|
@@ -115,7 +116,8 @@
|
|
|
115
116
|
"hooks": [
|
|
116
117
|
{
|
|
117
118
|
"type": "command",
|
|
118
|
-
"command": "
|
|
119
|
+
"command": "node -e \"let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{const q=JSON.parse(d).prompt;import('@su-record/vibe/lib/gemini').then(g=>g.chat({messages:[{role:'user',content:q}],systemPrompt:'You are a UI/UX expert. Analyze and provide feedback.'})).then(r=>console.log('[GEMINI-3 UI/UX]\\n'+r.content)).catch(e=>console.log('[GEMINI] Error:',e.message))})\"",
|
|
120
|
+
"statusMessage": "Gemini reviewing UI/UX..."
|
|
119
121
|
}
|
|
120
122
|
]
|
|
121
123
|
},
|
|
@@ -124,17 +126,17 @@
|
|
|
124
126
|
"hooks": [
|
|
125
127
|
{
|
|
126
128
|
"type": "command",
|
|
127
|
-
"command": "node -e \"import('@su-record/vibe/lib/gpt').then(g
|
|
129
|
+
"command": "node -e \"let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{const q=JSON.parse(d).prompt.replace(/gpt.*?(물어|질문|한테|분석)[^가-힣]*/i,'').trim();import('@su-record/vibe/lib/gpt').then(g=>g.quickAsk(q)).then(r=>console.log('[GPT-5.2]\\n'+r)).catch(e=>console.log('[GPT] Error:',e.message))})\"",
|
|
128
130
|
"statusMessage": "Asking GPT-5.2..."
|
|
129
131
|
}
|
|
130
132
|
]
|
|
131
133
|
},
|
|
132
134
|
{
|
|
133
|
-
"matcher": "gemini.*물어|gemini.*질문|gemini.*한테|ask.*gemini|gemini
|
|
135
|
+
"matcher": "gemini.*물어|gemini.*질문|gemini.*한테|ask.*gemini|gemini.*분석|제미나이",
|
|
134
136
|
"hooks": [
|
|
135
137
|
{
|
|
136
138
|
"type": "command",
|
|
137
|
-
"command": "node -e \"import('@su-record/vibe/lib/gemini').then(g
|
|
139
|
+
"command": "node -e \"let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{const q=JSON.parse(d).prompt.replace(/(gemini|제미나이).*?(물어|질문|한테|분석)[^가-힣]*/i,'').trim();import('@su-record/vibe/lib/gemini').then(g=>g.quickAsk(q)).then(r=>console.log('[GEMINI-3]\\n'+r)).catch(e=>console.log('[GEMINI] Error:',e.message))})\"",
|
|
138
140
|
"statusMessage": "Asking Gemini 3..."
|
|
139
141
|
}
|
|
140
142
|
]
|
|
@@ -144,7 +146,8 @@
|
|
|
144
146
|
"hooks": [
|
|
145
147
|
{
|
|
146
148
|
"type": "command",
|
|
147
|
-
"command": "
|
|
149
|
+
"command": "node -e \"let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{const q=JSON.parse(d).prompt;import('@su-record/vibe/lib/gpt').then(g=>g.chat({messages:[{role:'user',content:q}],systemPrompt:'You are a debugging expert. Find bugs and suggest fixes.'})).then(r=>console.log('[GPT-5.2 Debug]\\n'+r.content)).catch(e=>console.log('[GPT] Error:',e.message))})\"",
|
|
150
|
+
"statusMessage": "GPT debugging..."
|
|
148
151
|
}
|
|
149
152
|
]
|
|
150
153
|
},
|
|
@@ -153,7 +156,8 @@
|
|
|
153
156
|
"hooks": [
|
|
154
157
|
{
|
|
155
158
|
"type": "command",
|
|
156
|
-
"command": "
|
|
159
|
+
"command": "node -e \"let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{const q=JSON.parse(d).prompt;import('@su-record/vibe/lib/gemini').then(g=>g.chat({messages:[{role:'user',content:q}],systemPrompt:'You are a code analysis expert. Review and analyze the code.'})).then(r=>console.log('[GEMINI-3 Code]\\n'+r.content)).catch(e=>console.log('[GEMINI] Error:',e.message))})\"",
|
|
160
|
+
"statusMessage": "Gemini analyzing code..."
|
|
157
161
|
}
|
|
158
162
|
]
|
|
159
163
|
}
|