cognitive-modules 0.6.0 → 0.6.2
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/dist/cli.js +15 -14
- package/package.json +4 -3
- package/src/cli.ts +15 -14
package/dist/cli.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import { parseArgs } from 'node:util';
|
|
17
17
|
import { getProvider, listProviders } from './providers/index.js';
|
|
18
18
|
import { run, list, pipe, init, add, update, remove, versions } from './commands/index.js';
|
|
19
|
-
const VERSION = '0.6.
|
|
19
|
+
const VERSION = '0.6.2';
|
|
20
20
|
async function main() {
|
|
21
21
|
const args = process.argv.slice(2);
|
|
22
22
|
const command = args[0];
|
|
@@ -269,7 +269,8 @@ Cognitive Runtime v${VERSION}
|
|
|
269
269
|
Structured AI Task Execution
|
|
270
270
|
|
|
271
271
|
USAGE:
|
|
272
|
-
|
|
272
|
+
cognitive <command> [options]
|
|
273
|
+
cogm <command> [options]
|
|
273
274
|
|
|
274
275
|
COMMANDS:
|
|
275
276
|
run <module> Run a Cognitive Module
|
|
@@ -298,24 +299,24 @@ OPTIONS:
|
|
|
298
299
|
-h, --help Show this help
|
|
299
300
|
|
|
300
301
|
EXAMPLES:
|
|
301
|
-
# Add modules from GitHub
|
|
302
|
-
|
|
303
|
-
|
|
302
|
+
# Add modules from GitHub (npx usage)
|
|
303
|
+
npx cognitive-modules add ziel-io/cognitive-modules -m code-simplifier
|
|
304
|
+
cognitive add org/repo --module my-module --tag v1.0.0
|
|
304
305
|
|
|
305
306
|
# Version management
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
307
|
+
cognitive update code-simplifier
|
|
308
|
+
cognitive versions ziel-io/cognitive-modules
|
|
309
|
+
cognitive remove code-simplifier
|
|
309
310
|
|
|
310
311
|
# Run modules
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
cognitive run code-reviewer --args "def foo(): pass"
|
|
313
|
+
cognitive run code-reviewer --provider openai --model gpt-4o --args "..."
|
|
314
|
+
cognitive list
|
|
314
315
|
|
|
315
316
|
# Other
|
|
316
|
-
echo "review this code" |
|
|
317
|
-
|
|
318
|
-
|
|
317
|
+
echo "review this code" | cognitive pipe --module code-reviewer
|
|
318
|
+
cognitive init my-module
|
|
319
|
+
cognitive doctor
|
|
319
320
|
|
|
320
321
|
ENVIRONMENT:
|
|
321
322
|
GEMINI_API_KEY Google Gemini
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cognitive-modules",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "Cognitive Modules - Structured AI Task Execution with version management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"bin": {
|
|
8
|
-
"
|
|
9
|
-
"cognitive": "dist/cli.js"
|
|
8
|
+
"cognitive-modules": "dist/cli.js",
|
|
9
|
+
"cognitive": "dist/cli.js",
|
|
10
|
+
"cogm": "dist/cli.js"
|
|
10
11
|
},
|
|
11
12
|
"scripts": {
|
|
12
13
|
"build": "tsc",
|
package/src/cli.ts
CHANGED
|
@@ -19,7 +19,7 @@ import { getProvider, listProviders } from './providers/index.js';
|
|
|
19
19
|
import { run, list, pipe, init, add, update, remove, versions } from './commands/index.js';
|
|
20
20
|
import type { CommandContext } from './types.js';
|
|
21
21
|
|
|
22
|
-
const VERSION = '0.6.
|
|
22
|
+
const VERSION = '0.6.2';
|
|
23
23
|
|
|
24
24
|
async function main() {
|
|
25
25
|
const args = process.argv.slice(2);
|
|
@@ -308,7 +308,8 @@ Cognitive Runtime v${VERSION}
|
|
|
308
308
|
Structured AI Task Execution
|
|
309
309
|
|
|
310
310
|
USAGE:
|
|
311
|
-
|
|
311
|
+
cognitive <command> [options]
|
|
312
|
+
cogm <command> [options]
|
|
312
313
|
|
|
313
314
|
COMMANDS:
|
|
314
315
|
run <module> Run a Cognitive Module
|
|
@@ -337,24 +338,24 @@ OPTIONS:
|
|
|
337
338
|
-h, --help Show this help
|
|
338
339
|
|
|
339
340
|
EXAMPLES:
|
|
340
|
-
# Add modules from GitHub
|
|
341
|
-
|
|
342
|
-
|
|
341
|
+
# Add modules from GitHub (npx usage)
|
|
342
|
+
npx cognitive-modules add ziel-io/cognitive-modules -m code-simplifier
|
|
343
|
+
cognitive add org/repo --module my-module --tag v1.0.0
|
|
343
344
|
|
|
344
345
|
# Version management
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
346
|
+
cognitive update code-simplifier
|
|
347
|
+
cognitive versions ziel-io/cognitive-modules
|
|
348
|
+
cognitive remove code-simplifier
|
|
348
349
|
|
|
349
350
|
# Run modules
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
351
|
+
cognitive run code-reviewer --args "def foo(): pass"
|
|
352
|
+
cognitive run code-reviewer --provider openai --model gpt-4o --args "..."
|
|
353
|
+
cognitive list
|
|
353
354
|
|
|
354
355
|
# Other
|
|
355
|
-
echo "review this code" |
|
|
356
|
-
|
|
357
|
-
|
|
356
|
+
echo "review this code" | cognitive pipe --module code-reviewer
|
|
357
|
+
cognitive init my-module
|
|
358
|
+
cognitive doctor
|
|
358
359
|
|
|
359
360
|
ENVIRONMENT:
|
|
360
361
|
GEMINI_API_KEY Google Gemini
|