@tuttiai/cli 0.2.0
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/LICENSE +21 -0
- package/README.md +48 -0
- package/dist/index.js +217 -0
- package/dist/index.js.map +1 -0
- package/package.json +40 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Tutti AI
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# @tuttiai/cli
|
|
2
|
+
|
|
3
|
+
CLI for [Tutti](https://tutti-ai.com) — scaffold and run multi-agent projects from the command line.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @tuttiai/cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Commands
|
|
12
|
+
|
|
13
|
+
### `tutti-ai init [project-name]`
|
|
14
|
+
|
|
15
|
+
Scaffold a new Tutti project with a ready-to-run `tutti.score.ts`:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
tutti-ai init my-project
|
|
19
|
+
cd my-project
|
|
20
|
+
cp .env.example .env # add your ANTHROPIC_API_KEY
|
|
21
|
+
npm install
|
|
22
|
+
npm run dev
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### `tutti-ai run [score]`
|
|
26
|
+
|
|
27
|
+
Load a score file and open an interactive REPL:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
tutti-ai run # defaults to ./tutti.score.ts
|
|
31
|
+
tutti-ai run ./custom-score.ts # specify a score file
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Features:
|
|
35
|
+
- Spinner on LLM calls
|
|
36
|
+
- Colored tool execution trace
|
|
37
|
+
- Session continuity across messages
|
|
38
|
+
- Graceful Ctrl+C handling
|
|
39
|
+
|
|
40
|
+
## Links
|
|
41
|
+
|
|
42
|
+
- [Tutti](https://tutti-ai.com)
|
|
43
|
+
- [GitHub](https://github.com/tuttiai/tutti/tree/main/packages/cli)
|
|
44
|
+
- [Docs](https://tutti-ai.com/docs)
|
|
45
|
+
|
|
46
|
+
## License
|
|
47
|
+
|
|
48
|
+
MIT
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/index.ts
|
|
4
|
+
import { config } from "dotenv";
|
|
5
|
+
import { Command } from "commander";
|
|
6
|
+
|
|
7
|
+
// src/commands/init.ts
|
|
8
|
+
import { mkdirSync, writeFileSync, existsSync } from "fs";
|
|
9
|
+
import { join } from "path";
|
|
10
|
+
import chalk from "chalk";
|
|
11
|
+
import Enquirer from "enquirer";
|
|
12
|
+
var { prompt } = Enquirer;
|
|
13
|
+
async function initCommand(projectName) {
|
|
14
|
+
if (!projectName) {
|
|
15
|
+
const response = await prompt({
|
|
16
|
+
type: "input",
|
|
17
|
+
name: "projectName",
|
|
18
|
+
message: "Project name?"
|
|
19
|
+
});
|
|
20
|
+
projectName = response.projectName;
|
|
21
|
+
}
|
|
22
|
+
if (!projectName) {
|
|
23
|
+
console.error(chalk.red("Project name is required."));
|
|
24
|
+
process.exit(1);
|
|
25
|
+
}
|
|
26
|
+
const dir = join(process.cwd(), projectName);
|
|
27
|
+
if (existsSync(dir)) {
|
|
28
|
+
console.error(chalk.red(`Directory already exists: ${projectName}/`));
|
|
29
|
+
process.exit(1);
|
|
30
|
+
}
|
|
31
|
+
mkdirSync(dir, { recursive: true });
|
|
32
|
+
const files = {
|
|
33
|
+
"package.json": JSON.stringify(
|
|
34
|
+
{
|
|
35
|
+
name: projectName,
|
|
36
|
+
version: "0.0.1",
|
|
37
|
+
type: "module",
|
|
38
|
+
scripts: {
|
|
39
|
+
dev: "tsx watch tutti.score.ts",
|
|
40
|
+
start: "tsx tutti.score.ts"
|
|
41
|
+
},
|
|
42
|
+
dependencies: {
|
|
43
|
+
"@tuttiai/core": "*",
|
|
44
|
+
"@tuttiai/types": "*"
|
|
45
|
+
},
|
|
46
|
+
devDependencies: {
|
|
47
|
+
tsx: "^4.0.0",
|
|
48
|
+
typescript: "^5.7.0"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
null,
|
|
52
|
+
2
|
|
53
|
+
),
|
|
54
|
+
".env.example": "ANTHROPIC_API_KEY=your_key_here\n",
|
|
55
|
+
".gitignore": "node_modules\ndist\n.env\n",
|
|
56
|
+
"tsconfig.json": JSON.stringify(
|
|
57
|
+
{
|
|
58
|
+
compilerOptions: {
|
|
59
|
+
strict: true,
|
|
60
|
+
target: "ES2022",
|
|
61
|
+
module: "ES2022",
|
|
62
|
+
moduleResolution: "bundler",
|
|
63
|
+
esModuleInterop: true,
|
|
64
|
+
skipLibCheck: true,
|
|
65
|
+
outDir: "dist",
|
|
66
|
+
rootDir: "."
|
|
67
|
+
},
|
|
68
|
+
include: ["."]
|
|
69
|
+
},
|
|
70
|
+
null,
|
|
71
|
+
2
|
|
72
|
+
),
|
|
73
|
+
"tutti.score.ts": `import { defineScore, AnthropicProvider } from "@tuttiai/core"
|
|
74
|
+
|
|
75
|
+
export default defineScore({
|
|
76
|
+
provider: new AnthropicProvider(),
|
|
77
|
+
default_model: "claude-sonnet-4-20250514",
|
|
78
|
+
agents: {
|
|
79
|
+
assistant: {
|
|
80
|
+
name: "Assistant",
|
|
81
|
+
system_prompt: "You are a helpful assistant.",
|
|
82
|
+
voices: [],
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
})
|
|
86
|
+
`,
|
|
87
|
+
"README.md": `# ${projectName}
|
|
88
|
+
|
|
89
|
+
A Tutti agent project. All agents. All together.
|
|
90
|
+
|
|
91
|
+
## Setup
|
|
92
|
+
|
|
93
|
+
\`\`\`bash
|
|
94
|
+
cp .env.example .env
|
|
95
|
+
# Add your ANTHROPIC_API_KEY to .env
|
|
96
|
+
npm install
|
|
97
|
+
\`\`\`
|
|
98
|
+
|
|
99
|
+
## Run
|
|
100
|
+
|
|
101
|
+
\`\`\`bash
|
|
102
|
+
npm run dev
|
|
103
|
+
\`\`\`
|
|
104
|
+
`
|
|
105
|
+
};
|
|
106
|
+
for (const [filename, content] of Object.entries(files)) {
|
|
107
|
+
writeFileSync(join(dir, filename), content);
|
|
108
|
+
}
|
|
109
|
+
console.log();
|
|
110
|
+
console.log(chalk.green(` \u2714 Created ${projectName}/`));
|
|
111
|
+
console.log();
|
|
112
|
+
console.log(" Next steps:");
|
|
113
|
+
console.log(chalk.cyan(` cd ${projectName}`));
|
|
114
|
+
console.log(chalk.cyan(" cp .env.example .env"));
|
|
115
|
+
console.log(chalk.cyan(" npm install"));
|
|
116
|
+
console.log(chalk.cyan(" npm run dev"));
|
|
117
|
+
console.log();
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// src/commands/run.ts
|
|
121
|
+
import { existsSync as existsSync2 } from "fs";
|
|
122
|
+
import { resolve } from "path";
|
|
123
|
+
import { createInterface } from "readline/promises";
|
|
124
|
+
import chalk2 from "chalk";
|
|
125
|
+
import ora from "ora";
|
|
126
|
+
import { TuttiRuntime, ScoreLoader } from "@tuttiai/core";
|
|
127
|
+
async function runCommand(scorePath) {
|
|
128
|
+
const file = resolve(scorePath ?? "./tutti.score.ts");
|
|
129
|
+
if (!existsSync2(file)) {
|
|
130
|
+
console.error(chalk2.red(`Score file not found: ${file}`));
|
|
131
|
+
console.error(
|
|
132
|
+
chalk2.dim('Run "tutti-ai init" to create a new project.')
|
|
133
|
+
);
|
|
134
|
+
process.exit(1);
|
|
135
|
+
}
|
|
136
|
+
let score;
|
|
137
|
+
try {
|
|
138
|
+
score = await ScoreLoader.load(file);
|
|
139
|
+
} catch (err) {
|
|
140
|
+
console.error(
|
|
141
|
+
chalk2.red(
|
|
142
|
+
`Failed to load score: ${err instanceof Error ? err.message : err}`
|
|
143
|
+
)
|
|
144
|
+
);
|
|
145
|
+
process.exit(1);
|
|
146
|
+
}
|
|
147
|
+
const runtime = new TuttiRuntime(score);
|
|
148
|
+
const spinner = ora({ color: "cyan" });
|
|
149
|
+
runtime.events.on("agent:start", (e) => {
|
|
150
|
+
console.log(chalk2.cyan(`Running agent: ${e.agent_name}`));
|
|
151
|
+
});
|
|
152
|
+
runtime.events.on("llm:request", () => {
|
|
153
|
+
spinner.start("Thinking...");
|
|
154
|
+
});
|
|
155
|
+
runtime.events.on("llm:response", () => {
|
|
156
|
+
spinner.stop();
|
|
157
|
+
});
|
|
158
|
+
runtime.events.on("tool:start", (e) => {
|
|
159
|
+
console.log(chalk2.dim(` Using tool: ${e.tool_name}`));
|
|
160
|
+
});
|
|
161
|
+
runtime.events.on("tool:end", (e) => {
|
|
162
|
+
console.log(chalk2.dim(` Done: ${e.tool_name}`));
|
|
163
|
+
});
|
|
164
|
+
runtime.events.on("tool:error", (e) => {
|
|
165
|
+
console.log(chalk2.red(` Error in tool: ${e.tool_name}`));
|
|
166
|
+
});
|
|
167
|
+
const rl = createInterface({
|
|
168
|
+
input: process.stdin,
|
|
169
|
+
output: process.stdout
|
|
170
|
+
});
|
|
171
|
+
console.log(chalk2.dim('Tutti REPL \u2014 type "exit" to quit\n'));
|
|
172
|
+
let sessionId;
|
|
173
|
+
process.on("SIGINT", () => {
|
|
174
|
+
console.log(chalk2.dim("\nGoodbye!"));
|
|
175
|
+
rl.close();
|
|
176
|
+
process.exit(0);
|
|
177
|
+
});
|
|
178
|
+
try {
|
|
179
|
+
while (true) {
|
|
180
|
+
const input = await rl.question(chalk2.cyan("> "));
|
|
181
|
+
const trimmed = input.trim();
|
|
182
|
+
if (!trimmed) continue;
|
|
183
|
+
if (trimmed === "exit" || trimmed === "quit") break;
|
|
184
|
+
try {
|
|
185
|
+
const result = await runtime.run("assistant", trimmed, sessionId);
|
|
186
|
+
sessionId = result.session_id;
|
|
187
|
+
console.log(`
|
|
188
|
+
${result.output}
|
|
189
|
+
`);
|
|
190
|
+
} catch (err) {
|
|
191
|
+
spinner.stop();
|
|
192
|
+
console.error(
|
|
193
|
+
chalk2.red(
|
|
194
|
+
`Error: ${err instanceof Error ? err.message : err}`
|
|
195
|
+
)
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
} catch {
|
|
200
|
+
}
|
|
201
|
+
console.log(chalk2.dim("Goodbye!"));
|
|
202
|
+
rl.close();
|
|
203
|
+
process.exit(0);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
// src/index.ts
|
|
207
|
+
config();
|
|
208
|
+
var program = new Command();
|
|
209
|
+
program.name("tutti-ai").description("Tutti \u2014 multi-agent orchestration. All agents. All together.").version("0.2.0");
|
|
210
|
+
program.command("init [project-name]").description("Create a new Tutti project").action(async (projectName) => {
|
|
211
|
+
await initCommand(projectName);
|
|
212
|
+
});
|
|
213
|
+
program.command("run [score]").description("Run a Tutti score interactively").action(async (score) => {
|
|
214
|
+
await runCommand(score);
|
|
215
|
+
});
|
|
216
|
+
program.parse();
|
|
217
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/commands/init.ts","../src/commands/run.ts"],"sourcesContent":["import { config } from \"dotenv\";\nconfig();\n\nimport { Command } from \"commander\";\nimport { initCommand } from \"./commands/init.js\";\nimport { runCommand } from \"./commands/run.js\";\n\nconst program = new Command();\n\nprogram\n .name(\"tutti-ai\")\n .description(\"Tutti — multi-agent orchestration. All agents. All together.\")\n .version(\"0.2.0\");\n\nprogram\n .command(\"init [project-name]\")\n .description(\"Create a new Tutti project\")\n .action(async (projectName?: string) => {\n await initCommand(projectName);\n });\n\nprogram\n .command(\"run [score]\")\n .description(\"Run a Tutti score interactively\")\n .action(async (score?: string) => {\n await runCommand(score);\n });\n\nprogram.parse();\n","import { mkdirSync, writeFileSync, existsSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport chalk from \"chalk\";\nimport Enquirer from \"enquirer\";\n\nconst { prompt } = Enquirer;\n\nexport async function initCommand(projectName?: string): Promise<void> {\n if (!projectName) {\n const response = await prompt<{ projectName: string }>({\n type: \"input\",\n name: \"projectName\",\n message: \"Project name?\",\n });\n projectName = response.projectName;\n }\n\n if (!projectName) {\n console.error(chalk.red(\"Project name is required.\"));\n process.exit(1);\n }\n\n const dir = join(process.cwd(), projectName);\n\n if (existsSync(dir)) {\n console.error(chalk.red(`Directory already exists: ${projectName}/`));\n process.exit(1);\n }\n\n mkdirSync(dir, { recursive: true });\n\n const files: Record<string, string> = {\n \"package.json\": JSON.stringify(\n {\n name: projectName,\n version: \"0.0.1\",\n type: \"module\",\n scripts: {\n dev: \"tsx watch tutti.score.ts\",\n start: \"tsx tutti.score.ts\",\n },\n dependencies: {\n \"@tuttiai/core\": \"*\",\n \"@tuttiai/types\": \"*\",\n },\n devDependencies: {\n tsx: \"^4.0.0\",\n typescript: \"^5.7.0\",\n },\n },\n null,\n 2,\n ),\n\n \".env.example\": \"ANTHROPIC_API_KEY=your_key_here\\n\",\n\n \".gitignore\": \"node_modules\\ndist\\n.env\\n\",\n\n \"tsconfig.json\": JSON.stringify(\n {\n compilerOptions: {\n strict: true,\n target: \"ES2022\",\n module: \"ES2022\",\n moduleResolution: \"bundler\",\n esModuleInterop: true,\n skipLibCheck: true,\n outDir: \"dist\",\n rootDir: \".\",\n },\n include: [\".\"],\n },\n null,\n 2,\n ),\n\n \"tutti.score.ts\": `import { defineScore, AnthropicProvider } from \"@tuttiai/core\"\n\nexport default defineScore({\n provider: new AnthropicProvider(),\n default_model: \"claude-sonnet-4-20250514\",\n agents: {\n assistant: {\n name: \"Assistant\",\n system_prompt: \"You are a helpful assistant.\",\n voices: [],\n }\n }\n})\n`,\n\n \"README.md\": `# ${projectName}\n\nA Tutti agent project. All agents. All together.\n\n## Setup\n\n\\`\\`\\`bash\ncp .env.example .env\n# Add your ANTHROPIC_API_KEY to .env\nnpm install\n\\`\\`\\`\n\n## Run\n\n\\`\\`\\`bash\nnpm run dev\n\\`\\`\\`\n`,\n };\n\n for (const [filename, content] of Object.entries(files)) {\n writeFileSync(join(dir, filename), content);\n }\n\n console.log();\n console.log(chalk.green(` ✔ Created ${projectName}/`));\n console.log();\n console.log(\" Next steps:\");\n console.log(chalk.cyan(` cd ${projectName}`));\n console.log(chalk.cyan(\" cp .env.example .env\"));\n console.log(chalk.cyan(\" npm install\"));\n console.log(chalk.cyan(\" npm run dev\"));\n console.log();\n}\n","import { existsSync } from \"node:fs\";\nimport { resolve } from \"node:path\";\nimport { createInterface } from \"node:readline/promises\";\nimport chalk from \"chalk\";\nimport ora from \"ora\";\nimport { TuttiRuntime, ScoreLoader } from \"@tuttiai/core\";\n\nexport async function runCommand(scorePath?: string): Promise<void> {\n const file = resolve(scorePath ?? \"./tutti.score.ts\");\n\n if (!existsSync(file)) {\n console.error(chalk.red(`Score file not found: ${file}`));\n console.error(\n chalk.dim('Run \"tutti-ai init\" to create a new project.'),\n );\n process.exit(1);\n }\n\n let score;\n try {\n score = await ScoreLoader.load(file);\n } catch (err) {\n console.error(\n chalk.red(\n `Failed to load score: ${err instanceof Error ? err.message : err}`,\n ),\n );\n process.exit(1);\n }\n\n const runtime = new TuttiRuntime(score);\n const spinner = ora({ color: \"cyan\" });\n\n // Event-based execution trace\n runtime.events.on(\"agent:start\", (e) => {\n console.log(chalk.cyan(`Running agent: ${e.agent_name}`));\n });\n\n runtime.events.on(\"llm:request\", () => {\n spinner.start(\"Thinking...\");\n });\n\n runtime.events.on(\"llm:response\", () => {\n spinner.stop();\n });\n\n runtime.events.on(\"tool:start\", (e) => {\n console.log(chalk.dim(` Using tool: ${e.tool_name}`));\n });\n\n runtime.events.on(\"tool:end\", (e) => {\n console.log(chalk.dim(` Done: ${e.tool_name}`));\n });\n\n runtime.events.on(\"tool:error\", (e) => {\n console.log(chalk.red(` Error in tool: ${e.tool_name}`));\n });\n\n // REPL\n const rl = createInterface({\n input: process.stdin,\n output: process.stdout,\n });\n\n console.log(chalk.dim('Tutti REPL — type \"exit\" to quit\\n'));\n\n let sessionId: string | undefined;\n\n // Handle Ctrl+C\n process.on(\"SIGINT\", () => {\n console.log(chalk.dim(\"\\nGoodbye!\"));\n rl.close();\n process.exit(0);\n });\n\n try {\n while (true) {\n const input = await rl.question(chalk.cyan(\"> \"));\n const trimmed = input.trim();\n\n if (!trimmed) continue;\n if (trimmed === \"exit\" || trimmed === \"quit\") break;\n\n try {\n const result = await runtime.run(\"assistant\", trimmed, sessionId);\n sessionId = result.session_id;\n console.log(`\\n${result.output}\\n`);\n } catch (err) {\n spinner.stop();\n console.error(\n chalk.red(\n `Error: ${err instanceof Error ? err.message : err}`,\n ),\n );\n }\n }\n } catch {\n // readline closed\n }\n\n console.log(chalk.dim(\"Goodbye!\"));\n r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,KAAK,CAAC;AAAA,EAChB,CAAC;AAED,MAAI;AACF,WAAO,MAAM;AACX,YAAM,QAAQ,MAAM,GAAG,SAASA,OAAM,KAAK,IAAI,CAAC;AAChD,YAAM,UAAU,MAAM,KAAK;AAE3B,UAAI,CAAC,QAAS;AACd,UAAI,YAAY,UAAU,YAAY,OAAQ;AAE9C,UAAI;AACF,cAAM,SAAS,MAAM,QAAQ,IAAI,aAAa,SAAS,SAAS;AAChE,oBAAY,OAAO;AACnB,gBAAQ,IAAI;AAAA,EAAK,OAAO,MAAM;AAAA,CAAI;AAAA,MACpC,SAAS,KAAK;AACZ,gBAAQ,KAAK;AACb,gBAAQ;AAAA,UACNA,OAAM;AAAA,YACJ,UAAU,eAAe,QAAQ,IAAI,UAAU,GAAG;AAAA,UACpD;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF,QAAQ;AAAA,EAER;AAEA,UAAQ,IAAIA,OAAM,IAAI,UAAU,CAAC;AACjC,KAAG,MAAM;AACT,UAAQ,KAAK,CAAC;AAChB;;;AFtGA,OAAO;AAMP,IAAM,UAAU,IAAI,QAAQ;AAE5B,QACG,KAAK,UAAU,EACf,YAAY,mEAA8D,EAC1E,QAAQ,OAAO;AAElB,QACG,QAAQ,qBAAqB,EAC7B,YAAY,4BAA4B,EACxC,OAAO,OAAO,gBAAyB;AACtC,QAAM,YAAY,WAAW;AAC/B,CAAC;AAEH,QACG,QAAQ,aAAa,EACrB,YAAY,iCAAiC,EAC7C,OAAO,OAAO,UAAmB;AAChC,QAAM,WAAW,KAAK;AACxB,CAAC;AAEH,QAAQ,MAAM;","names":["existsSync","chalk"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tuttiai/cli",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Tutti CLI — scaffold and run multi-agent projects",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"tutti-ai": "./dist/index.js"
|
|
8
|
+
},
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"main": "./dist/index.js",
|
|
15
|
+
"files": ["dist", "README.md", "LICENSE"],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "tsup",
|
|
18
|
+
"dev": "tsup --watch",
|
|
19
|
+
"test": "vitest run",
|
|
20
|
+
"test:watch": "vitest",
|
|
21
|
+
"typecheck": "tsc --noEmit"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@tuttiai/core": "^0.1.0",
|
|
25
|
+
"@tuttiai/types": "^0.1.0",
|
|
26
|
+
"chalk": "^5.4.0",
|
|
27
|
+
"commander": "^13.1.0",
|
|
28
|
+
"dotenv": "^17.4.1",
|
|
29
|
+
"enquirer": "^2.4.0",
|
|
30
|
+
"ora": "^8.2.0"
|
|
31
|
+
},
|
|
32
|
+
"keywords": ["tutti", "ai", "agents", "orchestration", "cli", "scaffold"],
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "https://github.com/tuttiai/tutti",
|
|
37
|
+
"directory": "packages/cli"
|
|
38
|
+
},
|
|
39
|
+
"homepage": "https://tutti-ai.com"
|
|
40
|
+
}
|