@cogitator-ai/cli 0.2.23 → 0.3.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/README.md +11 -11
- package/dist/__tests__/init.test.js +1 -1
- package/dist/commands/deploy.d.ts +3 -0
- package/dist/commands/deploy.d.ts.map +1 -0
- package/dist/commands/deploy.js +216 -0
- package/dist/commands/deploy.js.map +1 -0
- package/dist/commands/init.js +1 -1
- package/dist/commands/models.js +2 -2
- package/dist/commands/run.js +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +22 -19
- package/LICENSE +0 -21
package/README.md
CHANGED
|
@@ -173,7 +173,7 @@ If no model is specified, the CLI will:
|
|
|
173
173
|
|
|
174
174
|
1. Check `COGITATOR_MODEL` environment variable
|
|
175
175
|
2. Query Ollama for available models
|
|
176
|
-
3. Select from preferred models: llama3.
|
|
176
|
+
3. Select from preferred models: llama3.1:8b, llama3.1:8b, gemma3:4b, gemma2:9b, mistral:7b
|
|
177
177
|
4. Fall back to first available model
|
|
178
178
|
|
|
179
179
|
**Examples:**
|
|
@@ -212,7 +212,7 @@ When running without a message or with `-i`, you enter interactive mode:
|
|
|
212
212
|
|
|
213
213
|
AI Agent Runtime v0.1.0
|
|
214
214
|
|
|
215
|
-
Model: llama3.
|
|
215
|
+
Model: llama3.1:8b
|
|
216
216
|
Commands: /model <name>, /clear, /help, exit
|
|
217
217
|
|
|
218
218
|
> Hello!
|
|
@@ -237,7 +237,7 @@ Commands: /model <name>, /clear, /help, exit
|
|
|
237
237
|
|
|
238
238
|
```
|
|
239
239
|
> /model
|
|
240
|
-
Current model: ollama/llama3.
|
|
240
|
+
Current model: ollama/llama3.1:8b
|
|
241
241
|
|
|
242
242
|
> /model gemma3:4b
|
|
243
243
|
✓ Switched to model: ollama/gemma3:4b
|
|
@@ -337,7 +337,7 @@ cogitator models [options]
|
|
|
337
337
|
```
|
|
338
338
|
✓ Found 3 model(s)
|
|
339
339
|
|
|
340
|
-
llama3.
|
|
340
|
+
llama3.1:8b 4.7 GB 2 days ago
|
|
341
341
|
gemma3:4b 2.8 GB 1 week ago
|
|
342
342
|
mistral:7b 4.1 GB 3 weeks ago
|
|
343
343
|
|
|
@@ -351,7 +351,7 @@ Use with: cogitator run -m ollama/<model> "message"
|
|
|
351
351
|
cogitator models
|
|
352
352
|
|
|
353
353
|
# Pull a new model
|
|
354
|
-
cogitator models --pull llama3.
|
|
354
|
+
cogitator models --pull llama3.1:8b
|
|
355
355
|
cogitator models --pull gemma3:4b
|
|
356
356
|
cogitator models --pull mistral:7b
|
|
357
357
|
```
|
|
@@ -395,7 +395,7 @@ memory:
|
|
|
395
395
|
**Example .env:**
|
|
396
396
|
|
|
397
397
|
```bash
|
|
398
|
-
COGITATOR_MODEL=ollama/llama3.
|
|
398
|
+
COGITATOR_MODEL=ollama/llama3.1:8b
|
|
399
399
|
OPENAI_API_KEY=sk-...
|
|
400
400
|
```
|
|
401
401
|
|
|
@@ -422,7 +422,7 @@ const greet = tool({
|
|
|
422
422
|
const agent = new Agent({
|
|
423
423
|
id: 'my-agent',
|
|
424
424
|
name: 'My Agent',
|
|
425
|
-
model: 'ollama/llama3.
|
|
425
|
+
model: 'ollama/llama3.1:8b',
|
|
426
426
|
instructions: 'You are a helpful assistant. Use the greet tool when asked to greet someone.',
|
|
427
427
|
tools: [greet],
|
|
428
428
|
});
|
|
@@ -465,7 +465,7 @@ const datetime = tool({
|
|
|
465
465
|
|
|
466
466
|
const agent = new Agent({
|
|
467
467
|
name: 'Assistant',
|
|
468
|
-
model: 'ollama/llama3.
|
|
468
|
+
model: 'ollama/llama3.1:8b',
|
|
469
469
|
instructions: 'You are a helpful assistant with calculator and datetime tools.',
|
|
470
470
|
tools: [calculator, datetime],
|
|
471
471
|
});
|
|
@@ -541,15 +541,15 @@ Start Ollama with: ollama serve
|
|
|
541
541
|
|
|
542
542
|
```
|
|
543
543
|
⚠ No models installed
|
|
544
|
-
Pull a model with: cogitator models --pull llama3.
|
|
544
|
+
Pull a model with: cogitator models --pull llama3.1:8b
|
|
545
545
|
```
|
|
546
546
|
|
|
547
547
|
**Solution:**
|
|
548
548
|
|
|
549
549
|
```bash
|
|
550
|
-
cogitator models --pull llama3.
|
|
550
|
+
cogitator models --pull llama3.1:8b
|
|
551
551
|
# or
|
|
552
|
-
ollama pull llama3.
|
|
552
|
+
ollama pull llama3.1:8b
|
|
553
553
|
```
|
|
554
554
|
|
|
555
555
|
### Docker Not Running
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../src/commands/deploy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA0OpC,eAAO,MAAM,aAAa,SAyBtB,CAAC"}
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { Command } from 'commander';
|
|
2
|
+
import chalk from 'chalk';
|
|
3
|
+
import ora from 'ora';
|
|
4
|
+
import { resolve } from 'node:path';
|
|
5
|
+
import { log } from '../utils/logger.js';
|
|
6
|
+
function resolveTarget(flag, configTarget) {
|
|
7
|
+
const raw = flag ?? configTarget ?? 'docker';
|
|
8
|
+
const valid = ['docker', 'fly', 'railway', 'k8s', 'ssh'];
|
|
9
|
+
if (!valid.includes(raw)) {
|
|
10
|
+
log.error(`Unknown deploy target: "${raw}"`);
|
|
11
|
+
log.dim(`Available targets: ${valid.join(', ')}`);
|
|
12
|
+
process.exit(1);
|
|
13
|
+
}
|
|
14
|
+
return raw;
|
|
15
|
+
}
|
|
16
|
+
async function loadDeployConfig(configPath) {
|
|
17
|
+
try {
|
|
18
|
+
const { loadConfig } = await import('@cogitator-ai/config');
|
|
19
|
+
const config = loadConfig({ configPath });
|
|
20
|
+
return config.deploy;
|
|
21
|
+
}
|
|
22
|
+
catch {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function buildConfigOverrides(flags, fileConfig) {
|
|
27
|
+
const overrides = {};
|
|
28
|
+
if (fileConfig) {
|
|
29
|
+
Object.assign(overrides, fileConfig);
|
|
30
|
+
}
|
|
31
|
+
if (flags.registry) {
|
|
32
|
+
overrides.registry = flags.registry;
|
|
33
|
+
}
|
|
34
|
+
if (flags.region) {
|
|
35
|
+
overrides.region = flags.region;
|
|
36
|
+
}
|
|
37
|
+
return overrides;
|
|
38
|
+
}
|
|
39
|
+
async function runDeploy(flags) {
|
|
40
|
+
const projectDir = resolve(process.cwd());
|
|
41
|
+
const spinner = ora('Loading configuration...').start();
|
|
42
|
+
const fileConfig = await loadDeployConfig(flags.config);
|
|
43
|
+
const target = resolveTarget(flags.target, fileConfig?.target);
|
|
44
|
+
const configOverrides = buildConfigOverrides(flags, fileConfig);
|
|
45
|
+
spinner.text = 'Analyzing project...';
|
|
46
|
+
const { Deployer } = await import('@cogitator-ai/deploy');
|
|
47
|
+
const deployer = new Deployer();
|
|
48
|
+
const plan = await deployer.plan({
|
|
49
|
+
projectDir,
|
|
50
|
+
target,
|
|
51
|
+
dryRun: flags.dryRun,
|
|
52
|
+
noPush: !flags.push,
|
|
53
|
+
configOverrides,
|
|
54
|
+
});
|
|
55
|
+
spinner.stop();
|
|
56
|
+
console.log();
|
|
57
|
+
log.info(`Deploy plan for ${chalk.bold(target)}`);
|
|
58
|
+
console.log();
|
|
59
|
+
const { config, preflight } = plan;
|
|
60
|
+
console.log(chalk.dim(' Configuration:'));
|
|
61
|
+
console.log(` Target: ${chalk.cyan(target)}`);
|
|
62
|
+
if (config.server)
|
|
63
|
+
console.log(` Server: ${chalk.cyan(config.server)}`);
|
|
64
|
+
if (config.port)
|
|
65
|
+
console.log(` Port: ${chalk.cyan(String(config.port))}`);
|
|
66
|
+
if (config.region)
|
|
67
|
+
console.log(` Region: ${chalk.cyan(config.region)}`);
|
|
68
|
+
if (config.registry)
|
|
69
|
+
console.log(` Registry: ${chalk.cyan(config.registry)}`);
|
|
70
|
+
if (config.instances)
|
|
71
|
+
console.log(` Instances: ${chalk.cyan(String(config.instances))}`);
|
|
72
|
+
console.log();
|
|
73
|
+
if (config.services?.redis || config.services?.postgres) {
|
|
74
|
+
console.log(chalk.dim(' Services:'));
|
|
75
|
+
if (config.services.redis)
|
|
76
|
+
console.log(` ${chalk.green('●')} Redis`);
|
|
77
|
+
if (config.services.postgres)
|
|
78
|
+
console.log(` ${chalk.green('●')} PostgreSQL`);
|
|
79
|
+
console.log();
|
|
80
|
+
}
|
|
81
|
+
if (config.secrets && config.secrets.length > 0) {
|
|
82
|
+
console.log(chalk.dim(' Required secrets:'));
|
|
83
|
+
for (const secret of config.secrets) {
|
|
84
|
+
console.log(` ${chalk.yellow('○')} ${secret}`);
|
|
85
|
+
}
|
|
86
|
+
console.log();
|
|
87
|
+
}
|
|
88
|
+
console.log(chalk.dim(' Preflight checks:'));
|
|
89
|
+
for (const check of preflight.checks) {
|
|
90
|
+
const icon = check.passed ? chalk.green('✓') : chalk.red('✗');
|
|
91
|
+
console.log(` ${icon} ${check.message}`);
|
|
92
|
+
}
|
|
93
|
+
console.log();
|
|
94
|
+
if (!preflight.passed) {
|
|
95
|
+
log.error('Preflight checks failed');
|
|
96
|
+
console.log();
|
|
97
|
+
const failures = preflight.checks.filter((c) => !c.passed);
|
|
98
|
+
for (const failure of failures) {
|
|
99
|
+
if (failure.fix) {
|
|
100
|
+
log.dim(` Fix: ${failure.fix}`);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
process.exit(1);
|
|
104
|
+
}
|
|
105
|
+
if (flags.dryRun) {
|
|
106
|
+
log.success('Dry run completed — no changes made');
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
const deploySpinner = ora('Deploying...').start();
|
|
110
|
+
const result = await deployer.deploy({
|
|
111
|
+
projectDir,
|
|
112
|
+
target,
|
|
113
|
+
dryRun: false,
|
|
114
|
+
noPush: !flags.push,
|
|
115
|
+
configOverrides,
|
|
116
|
+
});
|
|
117
|
+
if (!result.success) {
|
|
118
|
+
deploySpinner.fail('Deploy failed');
|
|
119
|
+
log.error(result.error ?? 'Unknown error');
|
|
120
|
+
process.exit(1);
|
|
121
|
+
}
|
|
122
|
+
deploySpinner.succeed('Deployed successfully');
|
|
123
|
+
console.log();
|
|
124
|
+
if (result.url) {
|
|
125
|
+
log.success(`URL: ${chalk.underline(result.url)}`);
|
|
126
|
+
}
|
|
127
|
+
if (result.endpoints) {
|
|
128
|
+
if (result.endpoints.api) {
|
|
129
|
+
console.log(` API: ${chalk.cyan(result.endpoints.api)}`);
|
|
130
|
+
}
|
|
131
|
+
if (result.endpoints.a2a) {
|
|
132
|
+
console.log(` A2A: ${chalk.cyan(result.endpoints.a2a)}`);
|
|
133
|
+
}
|
|
134
|
+
if (result.endpoints.health) {
|
|
135
|
+
console.log(` Health: ${chalk.cyan(result.endpoints.health)}`);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
console.log();
|
|
139
|
+
log.dim('Commands:');
|
|
140
|
+
console.log(` cogitator deploy status — check deployment status`);
|
|
141
|
+
console.log(` cogitator deploy destroy — tear down deployment`);
|
|
142
|
+
console.log();
|
|
143
|
+
}
|
|
144
|
+
async function runDeployStatus(flags) {
|
|
145
|
+
const projectDir = resolve(process.cwd());
|
|
146
|
+
const fileConfig = await loadDeployConfig(flags.config);
|
|
147
|
+
const target = resolveTarget(flags.target, fileConfig?.target);
|
|
148
|
+
const configOverrides = buildConfigOverrides(flags, fileConfig);
|
|
149
|
+
const spinner = ora('Checking deployment status...').start();
|
|
150
|
+
const { Deployer } = await import('@cogitator-ai/deploy');
|
|
151
|
+
const deployer = new Deployer();
|
|
152
|
+
const deployConfig = { target, ...configOverrides };
|
|
153
|
+
const status = await deployer.status(target, deployConfig, projectDir);
|
|
154
|
+
spinner.stop();
|
|
155
|
+
console.log();
|
|
156
|
+
if (status.running) {
|
|
157
|
+
log.success(`Deployment is ${chalk.green('running')}`);
|
|
158
|
+
if (status.url)
|
|
159
|
+
console.log(` URL: ${chalk.cyan(status.url)}`);
|
|
160
|
+
if (status.instances)
|
|
161
|
+
console.log(` Instances: ${chalk.cyan(String(status.instances))}`);
|
|
162
|
+
if (status.uptime)
|
|
163
|
+
console.log(` Uptime: ${chalk.cyan(status.uptime)}`);
|
|
164
|
+
}
|
|
165
|
+
else {
|
|
166
|
+
log.warn('Deployment is not running');
|
|
167
|
+
log.dim('Run "cogitator deploy" to deploy your project');
|
|
168
|
+
}
|
|
169
|
+
console.log();
|
|
170
|
+
}
|
|
171
|
+
async function runDeployDestroy(flags) {
|
|
172
|
+
const projectDir = resolve(process.cwd());
|
|
173
|
+
const fileConfig = await loadDeployConfig(flags.config);
|
|
174
|
+
const target = resolveTarget(flags.target, fileConfig?.target);
|
|
175
|
+
const configOverrides = buildConfigOverrides(flags, fileConfig);
|
|
176
|
+
const spinner = ora(`Destroying ${target} deployment...`).start();
|
|
177
|
+
const { Deployer } = await import('@cogitator-ai/deploy');
|
|
178
|
+
const deployer = new Deployer();
|
|
179
|
+
const deployConfig = { target, ...configOverrides };
|
|
180
|
+
try {
|
|
181
|
+
await deployer.destroy(target, deployConfig, projectDir);
|
|
182
|
+
spinner.succeed('Deployment destroyed');
|
|
183
|
+
}
|
|
184
|
+
catch (err) {
|
|
185
|
+
spinner.fail('Failed to destroy deployment');
|
|
186
|
+
log.error(err instanceof Error ? err.message : String(err));
|
|
187
|
+
process.exit(1);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
export const deployCommand = new Command('deploy')
|
|
191
|
+
.description('Deploy your Cogitator project')
|
|
192
|
+
.argument('[action]', 'Action to perform: status, destroy')
|
|
193
|
+
.option('-t, --target <target>', 'Deploy target (docker, fly, railway, k8s, ssh)')
|
|
194
|
+
.option('-c, --config <path>', 'Config file path')
|
|
195
|
+
.option('--registry <url>', 'Container registry URL')
|
|
196
|
+
.option('--no-push', 'Skip pushing image to registry')
|
|
197
|
+
.option('--dry-run', 'Show deploy plan without executing')
|
|
198
|
+
.option('--region <region>', 'Deploy region')
|
|
199
|
+
.action(async (action, flags) => {
|
|
200
|
+
switch (action) {
|
|
201
|
+
case 'status':
|
|
202
|
+
await runDeployStatus(flags);
|
|
203
|
+
break;
|
|
204
|
+
case 'destroy':
|
|
205
|
+
await runDeployDestroy(flags);
|
|
206
|
+
break;
|
|
207
|
+
case undefined:
|
|
208
|
+
await runDeploy(flags);
|
|
209
|
+
break;
|
|
210
|
+
default:
|
|
211
|
+
log.error(`Unknown action: "${action}"`);
|
|
212
|
+
log.dim('Available actions: status, destroy');
|
|
213
|
+
process.exit(1);
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
//# sourceMappingURL=deploy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../src/commands/deploy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAYzC,SAAS,aAAa,CACpB,IAAwB,EACxB,YAAsC;IAEtC,MAAM,GAAG,GAAG,IAAI,IAAI,YAAY,IAAI,QAAQ,CAAC;IAC7C,MAAM,KAAK,GAAmB,CAAC,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACzE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAmB,CAAC,EAAE,CAAC;QACzC,GAAG,CAAC,KAAK,CAAC,2BAA2B,GAAG,GAAG,CAAC,CAAC;QAC7C,GAAG,CAAC,GAAG,CAAC,sBAAsB,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAClD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IACD,OAAO,GAAmB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
82
82
|
id: 'my-agent',
|
|
83
83
|
name: 'My Agent',
|
|
84
|
-
model: 'ollama/llama3.
|
|
84
|
+
model: 'ollama/llama3.1:8b',
|
|
85
85
|
instructions: 'You are a helpful assistant. Use the greet tool when asked to greet someone.',
|
|
86
86
|
tools: [greet],
|
|
87
87
|
});
|
package/dist/commands/models.js
CHANGED
|
@@ -48,8 +48,8 @@ export const modelsCommand = new Command('models')
|
|
|
48
48
|
if (data.models.length === 0) {
|
|
49
49
|
log.warn('No models installed');
|
|
50
50
|
console.log();
|
|
51
|
-
log.dim('Pull a model with: cogitator models --pull llama3.
|
|
52
|
-
log.dim('Or directly: ollama pull llama3.
|
|
51
|
+
log.dim('Pull a model with: cogitator models --pull llama3.1:8b');
|
|
52
|
+
log.dim('Or directly: ollama pull llama3.1:8b');
|
|
53
53
|
return;
|
|
54
54
|
}
|
|
55
55
|
console.log();
|
package/dist/commands/run.js
CHANGED
|
@@ -25,7 +25,7 @@ async function detectModel() {
|
|
|
25
25
|
const models = await getOllamaModels();
|
|
26
26
|
if (models.length === 0)
|
|
27
27
|
return null;
|
|
28
|
-
const preferred = ['llama3.
|
|
28
|
+
const preferred = ['llama3.1:8b', 'llama3:8b', 'gemma3:4b', 'gemma2:9b', 'mistral:7b'];
|
|
29
29
|
for (const p of preferred) {
|
|
30
30
|
if (models.includes(p))
|
|
31
31
|
return `ollama/${p}`;
|
package/dist/index.js
CHANGED
|
@@ -12,6 +12,7 @@ import { runCommand } from './commands/run.js';
|
|
|
12
12
|
import { statusCommand } from './commands/status.js';
|
|
13
13
|
import { logsCommand } from './commands/logs.js';
|
|
14
14
|
import { modelsCommand } from './commands/models.js';
|
|
15
|
+
import { deployCommand } from './commands/deploy.js';
|
|
15
16
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
16
17
|
const pkg = JSON.parse(readFileSync(join(__dirname, '../package.json'), 'utf-8'));
|
|
17
18
|
const program = new Command()
|
|
@@ -25,5 +26,6 @@ program.addCommand(runCommand);
|
|
|
25
26
|
program.addCommand(statusCommand);
|
|
26
27
|
program.addCommand(logsCommand);
|
|
27
28
|
program.addCommand(modelsCommand);
|
|
29
|
+
program.addCommand(deployCommand);
|
|
28
30
|
program.parse();
|
|
29
31
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAC1D,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,iBAAiB,CAAC,EAAE,OAAO,CAAC,CAE/E,CAAC;AAEF,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE;KAC1B,IAAI,CAAC,WAAW,CAAC;KACjB,WAAW,CAAC,gCAAgC,CAAC;KAC7C,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAExB,OAAO,CAAC,UAAU,CAAC,WAAW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AAM,OAAO,GAAG,IAAI,OAAO,EAAE;KAC1B,IAAI,CAAC,WAAW,CAAC;KACjB,WAAW,CAAC,gCAAgC,CAAC;KAC7C,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAExB,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;AAChC,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AAC9B,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;AAChC,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;AAC/B,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AAClC,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;AAChC,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AAClC,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AAElC,OAAO,CAAC,KAAK,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cogitator-ai/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "CLI for Cogitator AI Agent Runtime",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -17,33 +17,36 @@
|
|
|
17
17
|
"files": [
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "tsc",
|
|
22
|
+
"dev": "tsc --watch",
|
|
23
|
+
"clean": "rm -rf dist",
|
|
24
|
+
"typecheck": "tsc --noEmit",
|
|
25
|
+
"test": "vitest run",
|
|
26
|
+
"test:watch": "vitest"
|
|
27
|
+
},
|
|
20
28
|
"dependencies": {
|
|
21
|
-
"
|
|
29
|
+
"@cogitator-ai/config": "workspace:*",
|
|
30
|
+
"@cogitator-ai/core": "workspace:*",
|
|
31
|
+
"@cogitator-ai/deploy": "workspace:*",
|
|
32
|
+
"@cogitator-ai/types": "workspace:*",
|
|
22
33
|
"chalk": "^5.3.0",
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"@cogitator-ai/config": "0.3.11"
|
|
34
|
+
"commander": "^12.0.0",
|
|
35
|
+
"ora": "^9.3.0"
|
|
26
36
|
},
|
|
27
37
|
"devDependencies": {
|
|
28
|
-
"@types/node": "^
|
|
38
|
+
"@types/node": "^25.0.10",
|
|
29
39
|
"typescript": "^5.3.0",
|
|
30
|
-
"vitest": "^
|
|
40
|
+
"vitest": "^4.0.18"
|
|
31
41
|
},
|
|
32
42
|
"repository": {
|
|
33
43
|
"type": "git",
|
|
34
|
-
"url": "https://github.com/
|
|
44
|
+
"url": "https://github.com/cogitator-ai/Cogitator-AI.git",
|
|
35
45
|
"directory": "packages/cli"
|
|
36
46
|
},
|
|
37
47
|
"publishConfig": {
|
|
38
|
-
"access": "public"
|
|
48
|
+
"access": "public",
|
|
49
|
+
"registry": "https://npm.pkg.github.com"
|
|
39
50
|
},
|
|
40
|
-
"license": "MIT"
|
|
41
|
-
|
|
42
|
-
"build": "tsc",
|
|
43
|
-
"dev": "tsc --watch",
|
|
44
|
-
"clean": "rm -rf dist",
|
|
45
|
-
"typecheck": "tsc --noEmit",
|
|
46
|
-
"test": "vitest run",
|
|
47
|
-
"test:watch": "vitest"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
51
|
+
"license": "MIT"
|
|
52
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Cogitator Contributors
|
|
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.
|