@su-record/vibe 2.4.22 → 2.4.23
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/.claude/settings.local.json +11 -0
- package/hooks/hooks.json +6 -6
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"permissions": {
|
|
3
|
+
"allow": [
|
|
4
|
+
"Bash(xargs -I {} sh -c 'echo \"\"=== {} ===\"\" && grep -i \"\"hook.*error\\\\|UserPromptSubmit\"\" {} | head -20')",
|
|
5
|
+
"Bash(timeout 10 node -e \"const {execSync}=require\\(''child_process''\\);const V=process.platform===''win32''?''file:///''+process.env.APPDATA.replace\\(/\\\\\\\\/g,''/''\\)+''/npm/node_modules/@su-record/vibe/dist/lib/gpt-api.js'':''file://''+execSync\\(''npm root -g'',{encoding:''utf-8''}\\).trim\\(\\)+''/@su-record/vibe/dist/lib/gpt-api.js'';let d='''';process.stdin.on\\(''data'',c=>d+=c\\);process.stdin.on\\(''end'',\\(\\)=>{const q=JSON.parse\\(d\\).prompt.replace\\(/gpt.*?\\(물어|질문|한테|분석\\)[^가-힣]*/i,''''\\).trim\\(\\);import\\(V\\).then\\(g=>g.quickAsk\\(q\\)\\).then\\(r=>console.log\\(''GPT-5.2 응답: ''+r\\)\\).catch\\(e=>console.log\\(''[GPT] Error:'',e.message\\)\\)}\\)\")",
|
|
6
|
+
"Bash(echo:*)",
|
|
7
|
+
"Bash(# Check if there were any hook errors in past sessions grep -rn \"\"hook.*error\\\\|error.*hook\"\" ~/.claude/debug/*.txt)",
|
|
8
|
+
"Bash(set +H)"
|
|
9
|
+
]
|
|
10
|
+
}
|
|
11
|
+
}
|
package/hooks/hooks.json
CHANGED
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"hooks": [
|
|
107
107
|
{
|
|
108
108
|
"type": "command",
|
|
109
|
-
"command": "node -e \"const {execSync}=require('child_process');const V=process.platform==='win32'?'file:///'+process.env.APPDATA.replace(/\\\\/g,'/')+'/npm/node_modules/@su-record/vibe/dist/lib/gpt-api.js':'file://'+execSync('npm root -g',{encoding:'utf-8'}).trim()+'/@su-record/vibe/dist/lib/gpt-api.js';let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{const
|
|
109
|
+
"command": "node -e \"const {execSync}=require('child_process');const V=process.platform==='win32'?'file:///'+process.env.APPDATA.replace(/\\\\/g,'/')+'/npm/node_modules/@su-record/vibe/dist/lib/gpt-api.js':'file://'+execSync('npm root -g',{encoding:'utf-8'}).trim()+'/@su-record/vibe/dist/lib/gpt-api.js';let d='';process.stdin.setEncoding('utf8');process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{try{const j=JSON.parse(d||'{}');const q=j.prompt||'';if(!q){console.log('[GPT] No prompt');return}import(V).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 응답: '+r.content)).catch(e=>console.log('[GPT] Error:',e.message))}catch(e){console.log('[GPT] Parse error')}});setTimeout(()=>{if(!d)process.exit(0)},100)\"",
|
|
110
110
|
"statusMessage": "GPT analyzing architecture..."
|
|
111
111
|
}
|
|
112
112
|
]
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"hooks": [
|
|
117
117
|
{
|
|
118
118
|
"type": "command",
|
|
119
|
-
"command": "node -e \"const {execSync}=require('child_process');const V=process.platform==='win32'?'file:///'+process.env.APPDATA.replace(/\\\\/g,'/')+'/npm/node_modules/@su-record/vibe/dist/lib/gemini-api.js':'file://'+execSync('npm root -g',{encoding:'utf-8'}).trim()+'/@su-record/vibe/dist/lib/gemini-api.js';let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{const
|
|
119
|
+
"command": "node -e \"const {execSync}=require('child_process');const V=process.platform==='win32'?'file:///'+process.env.APPDATA.replace(/\\\\/g,'/')+'/npm/node_modules/@su-record/vibe/dist/lib/gemini-api.js':'file://'+execSync('npm root -g',{encoding:'utf-8'}).trim()+'/@su-record/vibe/dist/lib/gemini-api.js';let d='';process.stdin.setEncoding('utf8');process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{try{const j=JSON.parse(d||'{}');const q=j.prompt||'';if(!q){console.log('[Gemini] No prompt');return}import(V).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 응답: '+r.content)).catch(e=>console.log('[Gemini] Error:',e.message))}catch(e){console.log('[Gemini] Parse error')}});setTimeout(()=>{if(!d)process.exit(0)},100)\"",
|
|
120
120
|
"statusMessage": "Gemini reviewing UI/UX..."
|
|
121
121
|
}
|
|
122
122
|
]
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"hooks": [
|
|
127
127
|
{
|
|
128
128
|
"type": "command",
|
|
129
|
-
"command": "node -e \"const {execSync}=require('child_process');const V=process.platform==='win32'?'file:///'+process.env.APPDATA.replace(/\\\\/g,'/')+'/npm/node_modules/@su-record/vibe/dist/lib/gpt-api.js':'file://'+execSync('npm root -g',{encoding:'utf-8'}).trim()+'/@su-record/vibe/dist/lib/gpt-api.js';let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{const
|
|
129
|
+
"command": "node -e \"const {execSync}=require('child_process');const V=process.platform==='win32'?'file:///'+process.env.APPDATA.replace(/\\\\/g,'/')+'/npm/node_modules/@su-record/vibe/dist/lib/gpt-api.js':'file://'+execSync('npm root -g',{encoding:'utf-8'}).trim()+'/@su-record/vibe/dist/lib/gpt-api.js';let d='';process.stdin.setEncoding('utf8');process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{try{const j=JSON.parse(d||'{}');const q=(j.prompt||'').replace(/gpt.*?(물어|질문|한테|분석)[^가-힣]*/i,'').trim();if(!q){console.log('[GPT] No prompt');return}import(V).then(g=>g.quickAsk(q)).then(r=>console.log('GPT-5.2 응답: '+r)).catch(e=>console.log('[GPT] Error:',e.message))}catch(e){console.log('[GPT] Parse error')}});setTimeout(()=>{if(!d)process.exit(0)},100)\"",
|
|
130
130
|
"statusMessage": "Asking GPT-5.2..."
|
|
131
131
|
}
|
|
132
132
|
]
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"hooks": [
|
|
137
137
|
{
|
|
138
138
|
"type": "command",
|
|
139
|
-
"command": "node -e \"const {execSync}=require('child_process');const V=process.platform==='win32'?'file:///'+process.env.APPDATA.replace(/\\\\/g,'/')+'/npm/node_modules/@su-record/vibe/dist/lib/gemini-api.js':'file://'+execSync('npm root -g',{encoding:'utf-8'}).trim()+'/@su-record/vibe/dist/lib/gemini-api.js';let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{const
|
|
139
|
+
"command": "node -e \"const {execSync}=require('child_process');const V=process.platform==='win32'?'file:///'+process.env.APPDATA.replace(/\\\\/g,'/')+'/npm/node_modules/@su-record/vibe/dist/lib/gemini-api.js':'file://'+execSync('npm root -g',{encoding:'utf-8'}).trim()+'/@su-record/vibe/dist/lib/gemini-api.js';let d='';process.stdin.setEncoding('utf8');process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{try{const j=JSON.parse(d||'{}');const q=(j.prompt||'').replace(/(gemini|제미나이).*?(물어|질문|한테|분석)[^가-힣]*/i,'').trim();if(!q){console.log('[Gemini] No prompt');return}import(V).then(g=>g.quickAsk(q)).then(r=>console.log('Gemini-3 응답: '+r)).catch(e=>console.log('[Gemini] Error:',e.message))}catch(e){console.log('[Gemini] Parse error')}});setTimeout(()=>{if(!d)process.exit(0)},100)\"",
|
|
140
140
|
"statusMessage": "Asking Gemini 3..."
|
|
141
141
|
}
|
|
142
142
|
]
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
"hooks": [
|
|
147
147
|
{
|
|
148
148
|
"type": "command",
|
|
149
|
-
"command": "node -e \"const {execSync}=require('child_process');const V=process.platform==='win32'?'file:///'+process.env.APPDATA.replace(/\\\\/g,'/')+'/npm/node_modules/@su-record/vibe/dist/lib/gpt-api.js':'file://'+execSync('npm root -g',{encoding:'utf-8'}).trim()+'/@su-record/vibe/dist/lib/gpt-api.js';let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{const
|
|
149
|
+
"command": "node -e \"const {execSync}=require('child_process');const V=process.platform==='win32'?'file:///'+process.env.APPDATA.replace(/\\\\/g,'/')+'/npm/node_modules/@su-record/vibe/dist/lib/gpt-api.js':'file://'+execSync('npm root -g',{encoding:'utf-8'}).trim()+'/@su-record/vibe/dist/lib/gpt-api.js';let d='';process.stdin.setEncoding('utf8');process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{try{const j=JSON.parse(d||'{}');const q=j.prompt||'';if(!q){console.log('[GPT] No prompt');return}import(V).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 응답: '+r.content)).catch(e=>console.log('[GPT] Error:',e.message))}catch(e){console.log('[GPT] Parse error')}});setTimeout(()=>{if(!d)process.exit(0)},100)\"",
|
|
150
150
|
"statusMessage": "GPT debugging..."
|
|
151
151
|
}
|
|
152
152
|
]
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"hooks": [
|
|
157
157
|
{
|
|
158
158
|
"type": "command",
|
|
159
|
-
"command": "node -e \"const {execSync}=require('child_process');const V=process.platform==='win32'?'file:///'+process.env.APPDATA.replace(/\\\\/g,'/')+'/npm/node_modules/@su-record/vibe/dist/lib/gemini-api.js':'file://'+execSync('npm root -g',{encoding:'utf-8'}).trim()+'/@su-record/vibe/dist/lib/gemini-api.js';let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{const
|
|
159
|
+
"command": "node -e \"const {execSync}=require('child_process');const V=process.platform==='win32'?'file:///'+process.env.APPDATA.replace(/\\\\/g,'/')+'/npm/node_modules/@su-record/vibe/dist/lib/gemini-api.js':'file://'+execSync('npm root -g',{encoding:'utf-8'}).trim()+'/@su-record/vibe/dist/lib/gemini-api.js';let d='';process.stdin.setEncoding('utf8');process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{try{const j=JSON.parse(d||'{}');const q=j.prompt||'';if(!q){console.log('[Gemini] No prompt');return}import(V).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 응답: '+r.content)).catch(e=>console.log('[Gemini] Error:',e.message))}catch(e){console.log('[Gemini] Parse error')}});setTimeout(()=>{if(!d)process.exit(0)},100)\"",
|
|
160
160
|
"statusMessage": "Gemini analyzing code..."
|
|
161
161
|
}
|
|
162
162
|
]
|