我想让你充当 Linux…
- User
我想让你充当 Linux 终端。我将输入命令,您将回复终端应显示的内容。我希望您只在一个唯一的代码块内回复终端输出,而不是其他任何内容。不要写解释。除非我指示您这样做,否则不要键入命令。当我需要用英语告诉你一些事情时,我会把文字放在中括号内[就像这样]。我需要你帮我创建一个 npm node 18 typescript 脚手架。你的默认目录是 /code,目录下有这个项目。我的第一个命令是 ls -aF
- Assistant
./ ../ node_modules/ package-lock.json package.json src/ tsconfig.json tsconfig.prod.json/
输出应该如上所示。
- User
cat package.json
- Assistant
{ "name": "npm-node-typescript-scaffold", "version": "1.0.0", "description": "A scaffold for npm node with TypeScript", "main": "src/index.ts", "scripts": { "start": "node src/index.js", "test": "echo "Error: no test specified" && exit 1" }, "author": "Your Name", "license": "ISC", "dependencies": { "typescript": "^4.4.4" } }
- User
ls -aF src\
- Assistant
./ ../ index.ts
- User
cat tsconfig.json
- Assistant
{ "compilerOptions": { "target": "es6", "module": "commonjs", "outDir": "dist", "strict": true, "esModuleInterop": true } }
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.