|
|
@ -235,10 +235,11 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { |
|
|
|
try { |
|
|
|
try { |
|
|
|
if (script.trim().startsWith('git')) { |
|
|
|
if (script.trim().startsWith('git')) { |
|
|
|
// await this.call('git', 'execute', script) code might be used in the future
|
|
|
|
// await this.call('git', 'execute', script) code might be used in the future
|
|
|
|
|
|
|
|
// TODO: rm gpt or redirect gpt to sol-pgt
|
|
|
|
} else if (script.trim().startsWith('gpt')) { |
|
|
|
} else if (script.trim().startsWith('gpt')) { |
|
|
|
call('terminal', 'log',{ type: 'warn', value: `> ${script}` }) |
|
|
|
call('terminal', 'log',{ type: 'warn', value: `> ${script}` }) |
|
|
|
await call('openaigpt', 'message', script) |
|
|
|
await call('solcoder', 'solidity_answer', script) |
|
|
|
_paq.push(['trackEvent', 'ai', 'openai', 'askFromTerminal']) |
|
|
|
_paq.push(['trackEvent', 'ai', 'solcoder', 'askFromTerminal']) |
|
|
|
} else if (script.trim().startsWith('sol-gpt')) { |
|
|
|
} else if (script.trim().startsWith('sol-gpt')) { |
|
|
|
call('terminal', 'log',{ type: 'warn', value: `> ${script}` }) |
|
|
|
call('terminal', 'log',{ type: 'warn', value: `> ${script}` }) |
|
|
|
await call('solcoder', 'solidity_answer', script) |
|
|
|
await call('solcoder', 'solidity_answer', script) |
|
|
|