@memnexus-ai/cli 0.1.1 → 0.1.4

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 (62) hide show
  1. package/README.md +986 -986
  2. package/bin/mx.js +1 -1
  3. package/package.json +74 -67
  4. package/.env.example +0 -13
  5. package/.eslintrc.js +0 -24
  6. package/.github/ISSUE_TEMPLATE/phase-1-foundation.md +0 -1078
  7. package/.github/workflows/publish.yml +0 -277
  8. package/.github/workflows/test-app-token.yml +0 -54
  9. package/.npmrc.backup +0 -3
  10. package/.npmrc.example +0 -6
  11. package/.prettierignore +0 -4
  12. package/.prettierrc +0 -8
  13. package/PLATFORM_TESTING.md +0 -243
  14. package/RELEASE.md +0 -428
  15. package/RELEASE_READINESS.md +0 -253
  16. package/docs/README.md +0 -219
  17. package/docs/code-generation-strategy.md +0 -560
  18. package/docs/prd.md +0 -748
  19. package/docs/sync-strategy.md +0 -533
  20. package/jest.config.js +0 -30
  21. package/scripts/install-deps.sh +0 -38
  22. package/src/commands/apikeys.ts +0 -144
  23. package/src/commands/artifacts.ts +0 -296
  24. package/src/commands/auth.ts +0 -122
  25. package/src/commands/communities.ts +0 -153
  26. package/src/commands/config.ts +0 -144
  27. package/src/commands/conversations.ts +0 -176
  28. package/src/commands/facts.ts +0 -320
  29. package/src/commands/graphrag.ts +0 -149
  30. package/src/commands/memories.ts +0 -332
  31. package/src/commands/patterns.ts +0 -251
  32. package/src/commands/system.ts +0 -102
  33. package/src/commands/topics.ts +0 -354
  34. package/src/index.ts +0 -43
  35. package/src/lib/api-client.ts +0 -68
  36. package/src/lib/auth.ts +0 -42
  37. package/src/lib/config.ts +0 -68
  38. package/src/lib/errors.ts +0 -143
  39. package/src/lib/formatters.ts +0 -123
  40. package/src/lib/spinner.ts +0 -113
  41. package/src/lib/validators.ts +0 -302
  42. package/src/types/index.ts +0 -17
  43. package/tests/__mocks__/chalk.ts +0 -16
  44. package/tests/__mocks__/cli-table3.ts +0 -37
  45. package/tests/__mocks__/configstore.ts +0 -38
  46. package/tests/commands/apikeys.test.ts +0 -179
  47. package/tests/commands/artifacts.test.ts +0 -194
  48. package/tests/commands/auth.test.ts +0 -120
  49. package/tests/commands/communities.test.ts +0 -154
  50. package/tests/commands/config.test.ts +0 -154
  51. package/tests/commands/conversations.test.ts +0 -136
  52. package/tests/commands/facts.test.ts +0 -210
  53. package/tests/commands/graphrag.test.ts +0 -194
  54. package/tests/commands/memories.test.ts +0 -215
  55. package/tests/commands/patterns.test.ts +0 -201
  56. package/tests/commands/system.test.ts +0 -172
  57. package/tests/commands/topics.test.ts +0 -274
  58. package/tests/lib/auth.test.ts +0 -77
  59. package/tests/lib/config.test.ts +0 -50
  60. package/tests/lib/errors.test.ts +0 -126
  61. package/tests/lib/formatters.test.ts +0 -87
  62. package/tsconfig.json +0 -20
@@ -1,87 +0,0 @@
1
- import { formatJson, formatYaml, formatTable, formatOutput } from '../../src/lib/formatters';
2
-
3
- describe('Output Formatters', () => {
4
- const testData = { id: '123', name: 'Test', active: true };
5
- const testArray = [
6
- { id: '1', name: 'First' },
7
- { id: '2', name: 'Second' },
8
- ];
9
-
10
- describe('formatJson', () => {
11
- it('should format as JSON', () => {
12
- const output = formatJson(testData);
13
- expect(output).toContain('"id"');
14
- expect(output).toContain('"123"');
15
- expect(output).toContain('"name"');
16
- expect(output).toContain('"Test"');
17
- });
18
-
19
- it('should pretty print JSON', () => {
20
- const output = formatJson(testData);
21
- expect(output.split('\n').length).toBeGreaterThan(1);
22
- });
23
- });
24
-
25
- describe('formatYaml', () => {
26
- it('should format as YAML', () => {
27
- const output = formatYaml(testData);
28
- expect(output).toContain('id: ');
29
- expect(output).toContain('name: Test');
30
- expect(output).toContain('active: true');
31
- });
32
- });
33
-
34
- describe('formatTable', () => {
35
- it('should format object as table', () => {
36
- const output = formatTable(testData);
37
- expect(output).toContain('Property');
38
- expect(output).toContain('Value');
39
- expect(output).toContain('id');
40
- expect(output).toContain('123');
41
- });
42
-
43
- it('should format array as table', () => {
44
- const output = formatTable(testArray);
45
- expect(output).toContain('id');
46
- expect(output).toContain('name');
47
- expect(output).toContain('First');
48
- expect(output).toContain('Second');
49
- });
50
-
51
- it('should handle empty array', () => {
52
- const output = formatTable([]);
53
- expect(output).toBe('No results');
54
- });
55
-
56
- it('should handle null data', () => {
57
- const output = formatTable(null);
58
- expect(output).toBe('No data');
59
- });
60
-
61
- it('should format primitive value', () => {
62
- const output = formatTable('simple string');
63
- expect(output).toBe('simple string');
64
- });
65
-
66
- it('should format array of primitives', () => {
67
- const output = formatTable(['one', 'two', 'three']);
68
- expect(output).toContain('Value');
69
- expect(output).toContain('one');
70
- });
71
- });
72
-
73
- describe('formatOutput', () => {
74
- it('should format with specified format', () => {
75
- const jsonOutput = formatOutput(testData, 'json');
76
- expect(jsonOutput).toContain('"id"');
77
-
78
- const yamlOutput = formatOutput(testData, 'yaml');
79
- expect(yamlOutput).toContain('id: ');
80
- });
81
-
82
- it('should use default format from config', () => {
83
- const output = formatOutput(testData);
84
- expect(output).toBeDefined();
85
- });
86
- });
87
- });
package/tsconfig.json DELETED
@@ -1,20 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2022",
4
- "module": "commonjs",
5
- "lib": ["ES2022"],
6
- "outDir": "./dist",
7
- "rootDir": "./src",
8
- "strict": true,
9
- "esModuleInterop": true,
10
- "skipLibCheck": true,
11
- "forceConsistentCasingInFileNames": true,
12
- "resolveJsonModule": true,
13
- "declaration": true,
14
- "declarationMap": true,
15
- "sourceMap": true,
16
- "moduleResolution": "node"
17
- },
18
- "include": ["src/**/*"],
19
- "exclude": ["node_modules", "dist", "tests"]
20
- }