@memberjunction/ai-cli 3.3.0 → 4.0.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.
Files changed (55) hide show
  1. package/bin/run.js +3 -3
  2. package/dist/commands/actions/list.js +17 -46
  3. package/dist/commands/actions/list.js.map +1 -1
  4. package/dist/commands/actions/run.d.ts +1 -1
  5. package/dist/commands/actions/run.js +32 -61
  6. package/dist/commands/actions/run.js.map +1 -1
  7. package/dist/commands/agents/list.js +17 -46
  8. package/dist/commands/agents/list.js.map +1 -1
  9. package/dist/commands/agents/run.d.ts +2 -2
  10. package/dist/commands/agents/run.js +34 -63
  11. package/dist/commands/agents/run.js.map +1 -1
  12. package/dist/commands/prompts/list.js +15 -21
  13. package/dist/commands/prompts/list.js.map +1 -1
  14. package/dist/commands/prompts/run.d.ts +5 -5
  15. package/dist/commands/prompts/run.js +22 -28
  16. package/dist/commands/prompts/run.js.map +1 -1
  17. package/dist/config.d.ts.map +1 -1
  18. package/dist/config.js +5 -24
  19. package/dist/config.js.map +1 -1
  20. package/dist/index.d.ts +13 -13
  21. package/dist/index.js +13 -32
  22. package/dist/index.js.map +1 -1
  23. package/dist/lib/audit-analyzer.js +1 -5
  24. package/dist/lib/audit-analyzer.js.map +1 -1
  25. package/dist/lib/audit-formatter.d.ts +1 -1
  26. package/dist/lib/audit-formatter.js +78 -85
  27. package/dist/lib/audit-formatter.js.map +1 -1
  28. package/dist/lib/console-manager.js +3 -7
  29. package/dist/lib/console-manager.js.map +1 -1
  30. package/dist/lib/execution-logger.js +13 -25
  31. package/dist/lib/execution-logger.js.map +1 -1
  32. package/dist/lib/mj-provider.js +20 -29
  33. package/dist/lib/mj-provider.js.map +1 -1
  34. package/dist/lib/output-formatter.js +61 -69
  35. package/dist/lib/output-formatter.js.map +1 -1
  36. package/dist/lib/text-formatter.js +13 -20
  37. package/dist/lib/text-formatter.js.map +1 -1
  38. package/dist/services/ActionService.d.ts +1 -1
  39. package/dist/services/ActionService.js +14 -40
  40. package/dist/services/ActionService.js.map +1 -1
  41. package/dist/services/AgentAuditService.d.ts +1 -1
  42. package/dist/services/AgentAuditService.js +14 -44
  43. package/dist/services/AgentAuditService.js.map +1 -1
  44. package/dist/services/AgentService.d.ts +1 -1
  45. package/dist/services/AgentService.js +19 -49
  46. package/dist/services/AgentService.js.map +1 -1
  47. package/dist/services/ConversationService.js +31 -60
  48. package/dist/services/ConversationService.js.map +1 -1
  49. package/dist/services/PromptService.d.ts +1 -1
  50. package/dist/services/PromptService.js +12 -39
  51. package/dist/services/PromptService.js.map +1 -1
  52. package/dist/services/ValidationService.js +1 -5
  53. package/dist/services/ValidationService.js.map +1 -1
  54. package/oclif.manifest.json +124 -124
  55. package/package.json +31 -30
@@ -1,5 +1,124 @@
1
1
  {
2
2
  "commands": {
3
+ "actions:list": {
4
+ "aliases": [],
5
+ "args": {},
6
+ "description": "List available actions",
7
+ "examples": [
8
+ "<%= config.bin %> <%= command.id %>",
9
+ "<%= config.bin %> <%= command.id %> --output=json",
10
+ "<%= config.bin %> <%= command.id %> --output=table"
11
+ ],
12
+ "flags": {
13
+ "output": {
14
+ "description": "Output format",
15
+ "name": "output",
16
+ "default": "table",
17
+ "hasDynamicHelp": false,
18
+ "multiple": false,
19
+ "options": [
20
+ "compact",
21
+ "json",
22
+ "table"
23
+ ],
24
+ "type": "option"
25
+ }
26
+ },
27
+ "hasDynamicHelp": false,
28
+ "hiddenAliases": [],
29
+ "id": "actions:list",
30
+ "pluginAlias": "@memberjunction/ai-cli",
31
+ "pluginName": "@memberjunction/ai-cli",
32
+ "pluginType": "core",
33
+ "strict": true,
34
+ "enableJsonFlag": false,
35
+ "isESM": true,
36
+ "relativePath": [
37
+ "dist",
38
+ "commands",
39
+ "actions",
40
+ "list.js"
41
+ ]
42
+ },
43
+ "actions:run": {
44
+ "aliases": [],
45
+ "args": {},
46
+ "description": "Execute individual actions directly",
47
+ "examples": [
48
+ "<%= config.bin %> <%= command.id %> -n \"Get Weather\" --param \"Location=Boston\"",
49
+ "<%= config.bin %> <%= command.id %> -n \"Send Email\" --param \"To=user@example.com\" --param \"Subject=Test\"",
50
+ "<%= config.bin %> <%= command.id %> --output=json",
51
+ "<%= config.bin %> <%= command.id %> -n \"Calculate\" --param \"Numbers=[1,2,3]\" --verbose"
52
+ ],
53
+ "flags": {
54
+ "name": {
55
+ "char": "n",
56
+ "description": "Name of the action to execute",
57
+ "name": "name",
58
+ "required": false,
59
+ "hasDynamicHelp": false,
60
+ "multiple": false,
61
+ "type": "option"
62
+ },
63
+ "param": {
64
+ "description": "Action parameter (key=value format, can be used multiple times)",
65
+ "name": "param",
66
+ "default": [],
67
+ "hasDynamicHelp": false,
68
+ "multiple": true,
69
+ "type": "option"
70
+ },
71
+ "verbose": {
72
+ "char": "v",
73
+ "description": "Show detailed execution information",
74
+ "name": "verbose",
75
+ "allowNo": false,
76
+ "type": "boolean"
77
+ },
78
+ "timeout": {
79
+ "description": "Override default timeout (milliseconds)",
80
+ "name": "timeout",
81
+ "default": 300000,
82
+ "hasDynamicHelp": false,
83
+ "multiple": false,
84
+ "type": "option"
85
+ },
86
+ "dry-run": {
87
+ "description": "Validate without executing",
88
+ "name": "dry-run",
89
+ "allowNo": false,
90
+ "type": "boolean"
91
+ },
92
+ "output": {
93
+ "description": "Output format",
94
+ "name": "output",
95
+ "default": "compact",
96
+ "hasDynamicHelp": false,
97
+ "multiple": false,
98
+ "options": [
99
+ "compact",
100
+ "json",
101
+ "table"
102
+ ],
103
+ "type": "option"
104
+ }
105
+ },
106
+ "hasDynamicHelp": false,
107
+ "hiddenAliases": [],
108
+ "id": "actions:run",
109
+ "pluginAlias": "@memberjunction/ai-cli",
110
+ "pluginName": "@memberjunction/ai-cli",
111
+ "pluginType": "core",
112
+ "strict": true,
113
+ "enableJsonFlag": false,
114
+ "isESM": true,
115
+ "relativePath": [
116
+ "dist",
117
+ "commands",
118
+ "actions",
119
+ "run.js"
120
+ ]
121
+ },
3
122
  "agents:list": {
4
123
  "aliases": [],
5
124
  "args": {},
@@ -32,7 +151,7 @@
32
151
  "pluginType": "core",
33
152
  "strict": true,
34
153
  "enableJsonFlag": false,
35
- "isESM": false,
154
+ "isESM": true,
36
155
  "relativePath": [
37
156
  "dist",
38
157
  "commands",
@@ -118,7 +237,7 @@
118
237
  "pluginType": "core",
119
238
  "strict": true,
120
239
  "enableJsonFlag": false,
121
- "isESM": false,
240
+ "isESM": true,
122
241
  "relativePath": [
123
242
  "dist",
124
243
  "commands",
@@ -150,7 +269,7 @@
150
269
  "pluginType": "core",
151
270
  "strict": true,
152
271
  "enableJsonFlag": false,
153
- "isESM": false,
272
+ "isESM": true,
154
273
  "relativePath": [
155
274
  "dist",
156
275
  "commands",
@@ -255,133 +374,14 @@
255
374
  "pluginType": "core",
256
375
  "strict": true,
257
376
  "enableJsonFlag": false,
258
- "isESM": false,
377
+ "isESM": true,
259
378
  "relativePath": [
260
379
  "dist",
261
380
  "commands",
262
381
  "prompts",
263
382
  "run.js"
264
383
  ]
265
- },
266
- "actions:list": {
267
- "aliases": [],
268
- "args": {},
269
- "description": "List available actions",
270
- "examples": [
271
- "<%= config.bin %> <%= command.id %>",
272
- "<%= config.bin %> <%= command.id %> --output=json",
273
- "<%= config.bin %> <%= command.id %> --output=table"
274
- ],
275
- "flags": {
276
- "output": {
277
- "description": "Output format",
278
- "name": "output",
279
- "default": "table",
280
- "hasDynamicHelp": false,
281
- "multiple": false,
282
- "options": [
283
- "compact",
284
- "json",
285
- "table"
286
- ],
287
- "type": "option"
288
- }
289
- },
290
- "hasDynamicHelp": false,
291
- "hiddenAliases": [],
292
- "id": "actions:list",
293
- "pluginAlias": "@memberjunction/ai-cli",
294
- "pluginName": "@memberjunction/ai-cli",
295
- "pluginType": "core",
296
- "strict": true,
297
- "enableJsonFlag": false,
298
- "isESM": false,
299
- "relativePath": [
300
- "dist",
301
- "commands",
302
- "actions",
303
- "list.js"
304
- ]
305
- },
306
- "actions:run": {
307
- "aliases": [],
308
- "args": {},
309
- "description": "Execute individual actions directly",
310
- "examples": [
311
- "<%= config.bin %> <%= command.id %> -n \"Get Weather\" --param \"Location=Boston\"",
312
- "<%= config.bin %> <%= command.id %> -n \"Send Email\" --param \"To=user@example.com\" --param \"Subject=Test\"",
313
- "<%= config.bin %> <%= command.id %> --output=json",
314
- "<%= config.bin %> <%= command.id %> -n \"Calculate\" --param \"Numbers=[1,2,3]\" --verbose"
315
- ],
316
- "flags": {
317
- "name": {
318
- "char": "n",
319
- "description": "Name of the action to execute",
320
- "name": "name",
321
- "required": false,
322
- "hasDynamicHelp": false,
323
- "multiple": false,
324
- "type": "option"
325
- },
326
- "param": {
327
- "description": "Action parameter (key=value format, can be used multiple times)",
328
- "name": "param",
329
- "default": [],
330
- "hasDynamicHelp": false,
331
- "multiple": true,
332
- "type": "option"
333
- },
334
- "verbose": {
335
- "char": "v",
336
- "description": "Show detailed execution information",
337
- "name": "verbose",
338
- "allowNo": false,
339
- "type": "boolean"
340
- },
341
- "timeout": {
342
- "description": "Override default timeout (milliseconds)",
343
- "name": "timeout",
344
- "default": 300000,
345
- "hasDynamicHelp": false,
346
- "multiple": false,
347
- "type": "option"
348
- },
349
- "dry-run": {
350
- "description": "Validate without executing",
351
- "name": "dry-run",
352
- "allowNo": false,
353
- "type": "boolean"
354
- },
355
- "output": {
356
- "description": "Output format",
357
- "name": "output",
358
- "default": "compact",
359
- "hasDynamicHelp": false,
360
- "multiple": false,
361
- "options": [
362
- "compact",
363
- "json",
364
- "table"
365
- ],
366
- "type": "option"
367
- }
368
- },
369
- "hasDynamicHelp": false,
370
- "hiddenAliases": [],
371
- "id": "actions:run",
372
- "pluginAlias": "@memberjunction/ai-cli",
373
- "pluginName": "@memberjunction/ai-cli",
374
- "pluginType": "core",
375
- "strict": true,
376
- "enableJsonFlag": false,
377
- "isESM": false,
378
- "relativePath": [
379
- "dist",
380
- "commands",
381
- "actions",
382
- "run.js"
383
- ]
384
384
  }
385
385
  },
386
- "version": "3.3.0"
386
+ "version": "4.0.0"
387
387
  }
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@memberjunction/ai-cli",
3
- "version": "3.3.0",
3
+ "type": "module",
4
+ "version": "4.0.0",
4
5
  "description": "MemberJunction AI agent, prompt and action execution CLI, integrated with the main MJ CLI.",
5
6
  "keywords": [
6
7
  "oclif",
@@ -29,7 +30,7 @@
29
30
  "/oclif.manifest.json"
30
31
  ],
31
32
  "scripts": {
32
- "build": "tsc -b",
33
+ "build": "tsc -b && tsc-alias -f",
33
34
  "prepack": "npm run build && oclif manifest && oclif readme",
34
35
  "postpack": "rimraf oclif.manifest.json",
35
36
  "version": "oclif readme && git add README.md"
@@ -48,41 +49,41 @@
48
49
  }
49
50
  },
50
51
  "dependencies": {
51
- "@inquirer/prompts": "^5.0.1",
52
- "@memberjunction/actions": "3.3.0",
53
- "@memberjunction/ai": "3.3.0",
54
- "@memberjunction/ai-agents": "3.3.0",
55
- "@memberjunction/ai-anthropic": "3.3.0",
56
- "@memberjunction/ai-betty-bot": "3.3.0",
57
- "@memberjunction/ai-cerebras": "3.3.0",
58
- "@memberjunction/ai-core-plus": "3.3.0",
59
- "@memberjunction/ai-groq": "3.3.0",
60
- "@memberjunction/ai-mistral": "3.3.0",
61
- "@memberjunction/ai-openai": "3.3.0",
62
- "@memberjunction/ai-prompts": "3.3.0",
63
- "@memberjunction/core": "3.3.0",
64
- "@memberjunction/core-actions": "3.3.0",
65
- "@memberjunction/core-entities": "3.3.0",
66
- "@memberjunction/core-entities-server": "3.3.0",
67
- "@memberjunction/sqlserver-dataprovider": "3.3.0",
68
- "@oclif/core": "^3",
69
- "@oclif/plugin-help": "^6",
70
- "@oclif/plugin-version": "^2.0.17",
71
- "@oclif/plugin-warn-if-update-available": "^3.0.16",
72
- "chalk": "^4.1.2",
52
+ "@inquirer/prompts": "^8.2.0",
53
+ "@memberjunction/actions": "4.0.0",
54
+ "@memberjunction/ai": "4.0.0",
55
+ "@memberjunction/ai-agents": "4.0.0",
56
+ "@memberjunction/ai-anthropic": "4.0.0",
57
+ "@memberjunction/ai-betty-bot": "4.0.0",
58
+ "@memberjunction/ai-cerebras": "4.0.0",
59
+ "@memberjunction/ai-core-plus": "4.0.0",
60
+ "@memberjunction/ai-groq": "4.0.0",
61
+ "@memberjunction/ai-mistral": "4.0.0",
62
+ "@memberjunction/ai-openai": "4.0.0",
63
+ "@memberjunction/ai-prompts": "4.0.0",
64
+ "@memberjunction/core": "4.0.0",
65
+ "@memberjunction/core-actions": "4.0.0",
66
+ "@memberjunction/core-entities": "4.0.0",
67
+ "@memberjunction/core-entities-server": "4.0.0",
68
+ "@memberjunction/sqlserver-dataprovider": "4.0.0",
69
+ "@oclif/core": "^3.27.0",
70
+ "@oclif/plugin-help": "^6.2.37",
71
+ "@oclif/plugin-version": "^2.2.36",
72
+ "@oclif/plugin-warn-if-update-available": "^3.1.55",
73
+ "chalk": "^5.6.2",
73
74
  "cosmiconfig": "9.0.0",
74
- "dotenv": "16.4.5",
75
- "mssql": "^11.0.1",
75
+ "dotenv": "17.2.4",
76
+ "mssql": "^12.2.0",
76
77
  "ora-classic": "^5.4.2",
77
78
  "readline": "^1.3.0",
78
- "table": "^6.8.1"
79
+ "table": "^6.9.0"
79
80
  },
80
81
  "devDependencies": {
81
82
  "@oclif/prettier-config": "^0.2.1",
82
- "oclif": "^4",
83
- "rimraf": "5.0.7",
83
+ "oclif": "^4.22.73",
84
+ "rimraf": "6.1.2",
84
85
  "ts-node": "^10.9.2",
85
- "typescript": "^5.4.5"
86
+ "typescript": "^5.9.3"
86
87
  },
87
88
  "engines": {
88
89
  "node": ">=20.0.0"