@bonginkan/maria 3.0.7 → 3.1.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 +229 -565
- package/dist/bin/maria.cjs +38171 -0
- package/dist/bin/maria.cjs.map +1 -0
- package/dist/cli.cjs +19563 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/index.js +5170 -56
- package/dist/index.js.map +1 -1
- package/npm-shrinkwrap.json +11053 -0
- package/package.json +130 -49
- package/bin/maria +0 -74
- package/bin/maria.d.ts +0 -2
- package/bin/maria.js +0 -46663
- package/bin/maria.js.map +0 -1
- package/dist/cli.d.ts +0 -15
- package/dist/cli.js +0 -61
- package/dist/cli.js.map +0 -1
- package/dist/index.d.ts +0 -12
- package/images/CLI_visual.png +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bonginkan/maria",
|
|
3
|
-
"version": "3.0
|
|
4
|
-
"description": "🚀 MARIA v3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
|
+
"description": "🚀 MARIA v3.1.0 - Minimal API, Maximum Power. Intelligent Router + Dual Memory + File System. Enterprise-ready AI development platform with CLI cleanup and production-ready improvements.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
7
7
|
"cli",
|
|
@@ -68,25 +68,20 @@
|
|
|
68
68
|
"content-extraction",
|
|
69
69
|
"ai-analysis",
|
|
70
70
|
"research-automation",
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
71
|
+
"rl-dashboard",
|
|
72
|
+
"reinforcement-learning",
|
|
73
|
+
"context-switch-profiling",
|
|
74
|
+
"performance-monitoring",
|
|
75
|
+
"blessed-ui",
|
|
76
|
+
"terminal-dashboard",
|
|
75
77
|
"real-time-monitoring",
|
|
76
|
-
"
|
|
77
|
-
"dashboard-
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"performance-analytics",
|
|
84
|
-
"observability-platform",
|
|
85
|
-
"interruption-control",
|
|
86
|
-
"human-authority",
|
|
87
|
-
"japanese-business-culture",
|
|
88
|
-
"ultrathink-integration",
|
|
89
|
-
"natural-language-control"
|
|
78
|
+
"evolution-visualization",
|
|
79
|
+
"dashboard-interface",
|
|
80
|
+
"system-optimization",
|
|
81
|
+
"performance-analysis",
|
|
82
|
+
"intelligent-monitoring",
|
|
83
|
+
"rl-evolution",
|
|
84
|
+
"context-analysis"
|
|
90
85
|
],
|
|
91
86
|
"author": "Bonginkan Inc.",
|
|
92
87
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -98,43 +93,46 @@
|
|
|
98
93
|
"bugs": {
|
|
99
94
|
"url": "https://github.com/bonginkan/maria/issues"
|
|
100
95
|
},
|
|
96
|
+
"type": "module",
|
|
101
97
|
"main": "./dist/index.js",
|
|
102
98
|
"types": "./dist/index.d.ts",
|
|
99
|
+
"exports": {
|
|
100
|
+
".": {
|
|
101
|
+
"types": "./dist/index.d.ts",
|
|
102
|
+
"default": "./dist/index.js"
|
|
103
|
+
},
|
|
104
|
+
"./services/internal-mode": {
|
|
105
|
+
"types": "./dist/services/internal-mode/index.d.ts",
|
|
106
|
+
"default": "./dist/services/internal-mode/index.js"
|
|
107
|
+
},
|
|
108
|
+
"./services/internal-mode-v2": {
|
|
109
|
+
"types": "./dist/services/internal-mode-v2/index.d.ts",
|
|
110
|
+
"default": "./dist/services/internal-mode-v2/index.js"
|
|
111
|
+
},
|
|
112
|
+
"./package.json": "./package.json"
|
|
113
|
+
},
|
|
114
|
+
"typesVersions": {
|
|
115
|
+
"*": {
|
|
116
|
+
"services/internal-mode": [
|
|
117
|
+
"dist/services/internal-mode/index.d.ts"
|
|
118
|
+
],
|
|
119
|
+
"services/internal-mode-v2": [
|
|
120
|
+
"dist/services/internal-mode-v2/index.d.ts"
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
},
|
|
103
124
|
"bin": {
|
|
104
|
-
"maria": "
|
|
105
|
-
"mc": "
|
|
125
|
+
"maria": "dist/cli.cjs",
|
|
126
|
+
"mc": "dist/cli.cjs"
|
|
106
127
|
},
|
|
107
128
|
"files": [
|
|
108
129
|
"dist",
|
|
109
|
-
"bin",
|
|
110
|
-
"images",
|
|
111
130
|
"README.md",
|
|
112
131
|
"LICENSE"
|
|
113
132
|
],
|
|
114
|
-
"
|
|
133
|
+
"sideEffects": false,
|
|
115
134
|
"engines": {
|
|
116
|
-
"node": ">=
|
|
117
|
-
},
|
|
118
|
-
"scripts": {
|
|
119
|
-
"build": "tsup",
|
|
120
|
-
"dev": "tsup --watch",
|
|
121
|
-
"clean": "rm -rf dist",
|
|
122
|
-
"prebuild": "pnpm run clean",
|
|
123
|
-
"postbuild": "chmod +x bin/maria",
|
|
124
|
-
"test": "vitest",
|
|
125
|
-
"test:coverage": "vitest --coverage",
|
|
126
|
-
"lint": "eslint src --ext .ts,.tsx",
|
|
127
|
-
"lint:fix": "eslint src --ext .ts,.tsx --fix",
|
|
128
|
-
"type-check": "tsc --noEmit",
|
|
129
|
-
"prepublishOnly": "echo 'Using prebuilt dist files'",
|
|
130
|
-
"release": "pnpm version patch && pnpm publish",
|
|
131
|
-
"pre-commit": "lint-staged",
|
|
132
|
-
"release:latest": "pnpm publish && npm dist-tag add @bonginkan/maria@$(npm pkg get version | tr -d '\"') latest",
|
|
133
|
-
"release:alpha": "pnpm publish --tag alpha",
|
|
134
|
-
"release:beta": "pnpm publish --tag beta",
|
|
135
|
-
"version:sync": "node scripts/sync-versions.js",
|
|
136
|
-
"version:auto": "npm version prerelease --preid=alpha --no-git-tag-version && npm run version:sync",
|
|
137
|
-
"version:dynamic": "node scripts/dynamic-version.js && npm run version:sync"
|
|
135
|
+
"node": ">=20.10.0"
|
|
138
136
|
},
|
|
139
137
|
"dependencies": {
|
|
140
138
|
"@anthropic-ai/sdk": "^0.20.0",
|
|
@@ -156,6 +154,7 @@
|
|
|
156
154
|
"fs-extra": "^11.2.0",
|
|
157
155
|
"fuse.js": "^7.1.0",
|
|
158
156
|
"glob": "^10.3.10",
|
|
157
|
+
"globby": "^14.1.0",
|
|
159
158
|
"gpt-3-encoder": "^1.1.4",
|
|
160
159
|
"groq-sdk": "^0.3.0",
|
|
161
160
|
"ink": "^4.4.1",
|
|
@@ -202,17 +201,23 @@
|
|
|
202
201
|
"@vitest/coverage-v8": "^1.2.0",
|
|
203
202
|
"better-sqlite3": "^12.2.0",
|
|
204
203
|
"cli-highlight": "^2.1.11",
|
|
204
|
+
"dependency-cruiser": "^16.10.4",
|
|
205
205
|
"eslint": "^8.56.0",
|
|
206
206
|
"eslint-config-prettier": "^9.1.0",
|
|
207
|
+
"eslint-plugin-import": "^2.32.0",
|
|
207
208
|
"eslint-plugin-node": "^11.1.0",
|
|
208
209
|
"eslint-plugin-prettier": "^5.1.3",
|
|
209
210
|
"execa": "^9.6.0",
|
|
211
|
+
"fast-glob": "^3.3.3",
|
|
210
212
|
"figures": "^6.1.0",
|
|
213
|
+
"jscodeshift": "^17.3.0",
|
|
211
214
|
"lint-staged": "^16.1.5",
|
|
212
215
|
"prettier": "^3.2.4",
|
|
213
216
|
"react-devtools-core": "^6.1.5",
|
|
217
|
+
"ts-morph": "^26.0.0",
|
|
214
218
|
"ts-node": "^10.9.2",
|
|
215
219
|
"tsup": "^8.0.1",
|
|
220
|
+
"tsx": "^4.20.3",
|
|
216
221
|
"typescript": "5.3.3",
|
|
217
222
|
"vitest": "^1.2.0"
|
|
218
223
|
},
|
|
@@ -229,5 +234,81 @@
|
|
|
229
234
|
"prettier --write"
|
|
230
235
|
]
|
|
231
236
|
},
|
|
232
|
-
"
|
|
233
|
-
|
|
237
|
+
"scripts": {
|
|
238
|
+
"build": "NODE_ENV=production tsup",
|
|
239
|
+
"build:dev": "NODE_ENV=development tsup",
|
|
240
|
+
"build:analyze": "ANALYZE=true NODE_ENV=production tsup",
|
|
241
|
+
"build:fast": "NODE_ENV=production tsup --minify false --sourcemap false",
|
|
242
|
+
"dev": "NODE_ENV=development tsup --watch",
|
|
243
|
+
"clean": "rm -rf dist",
|
|
244
|
+
"gen:cmd-types": "node --experimental-specifier-resolution=node scripts/gen/command-types.mts",
|
|
245
|
+
"prebuild": "pnpm run clean && pnpm gen:cmd-types",
|
|
246
|
+
"postbuild": "chmod +x dist/cli.cjs dist/bin/maria.cjs 2>/dev/null || true",
|
|
247
|
+
"test": "vitest",
|
|
248
|
+
"test:coverage": "vitest --coverage",
|
|
249
|
+
"test:smoke": "vitest run src/__tests__/smoke.test.ts",
|
|
250
|
+
"test:registry": "vitest run src/__tests__/command-registry.test.ts",
|
|
251
|
+
"test:integration": "vitest --config vitest.integration.config.ts",
|
|
252
|
+
"test:integration:ci": "vitest run --config vitest.integration.config.ts --reporter=json --reporter=verbose",
|
|
253
|
+
"ci:smoke": "pnpm -s build && pnpm -s test:smoke",
|
|
254
|
+
"lint": "eslint src --ext .ts,.tsx",
|
|
255
|
+
"lint:fix": "eslint src --ext .ts,.tsx --fix",
|
|
256
|
+
"type-check": "tsc --noEmit",
|
|
257
|
+
"fix:underscores": "tsx scripts/fix/underscore-mismatch.ts",
|
|
258
|
+
"fix:args": "tsx scripts/fix/arg-prefix-normalize.ts",
|
|
259
|
+
"codemod:internal-mode": "node scripts/codemod/replace-internal-mode.mjs",
|
|
260
|
+
"codemod:edm-migration": "node scripts/codemod/edm-migration.mjs",
|
|
261
|
+
"migration:status": "node scripts/migration-status.mjs",
|
|
262
|
+
"phase3:readiness": "node scripts/phase3-readiness-check.mjs",
|
|
263
|
+
"deps:check": "npx dependency-cruiser src --config .dependency-cruiser.cjs",
|
|
264
|
+
"deps:graph": "npx dependency-cruiser src --include-only '^src' --config .dependency-cruiser.js --output-type dot | dot -T svg > dependency-graph.svg",
|
|
265
|
+
"deps:monitor": "node scripts/qc/circular-dependency-monitor.mjs check",
|
|
266
|
+
"deps:status": "node scripts/qc/circular-dependency-monitor.mjs status",
|
|
267
|
+
"deps:report": "node scripts/qc/circular-dependency-monitor.mjs report",
|
|
268
|
+
"perf:monitor": "node scripts/perf/continuous-monitor.mjs",
|
|
269
|
+
"perf:baseline": "node scripts/bundle-performance-monitor.mjs",
|
|
270
|
+
"test:safety-net": "vitest run tests/*safety*.test.ts tests/deprecation*.test.ts tests/phase3*.test.ts",
|
|
271
|
+
"test:phase3": "vitest run tests/phase3-safety.test.ts",
|
|
272
|
+
"metrics:deprecation": "node -e \"console.log('Deprecation metrics would be shown here')\"",
|
|
273
|
+
"lint:edm": "eslint src/services/memory-system/phase4 --config .eslintrc.edm-migration.js",
|
|
274
|
+
"fix:args:anon": "tsx scripts/fix/arg-anonymize-unused.ts",
|
|
275
|
+
"fix:all": "pnpm -s fix:underscores && pnpm -s fix:args && pnpm -s fix:args:anon",
|
|
276
|
+
"fix:quick": "pnpm -s fix:underscores && pnpm -s build && pnpm -s test:smoke",
|
|
277
|
+
"snapshot:help": "node scripts/qc/help-snapshot.js",
|
|
278
|
+
"snapshot:update": "UPDATE_SNAPSHOTS=true node scripts/qc/help-snapshot.js",
|
|
279
|
+
"release": "pnpm version patch && pnpm publish",
|
|
280
|
+
"pre-commit": "lint-staged",
|
|
281
|
+
"release:latest": "pnpm publish && npm dist-tag add @bonginkan/maria@$(npm pkg get version | tr -d '\"') latest",
|
|
282
|
+
"release:alpha": "pnpm publish --tag alpha",
|
|
283
|
+
"release:beta": "pnpm publish --tag beta",
|
|
284
|
+
"version:sync": "node scripts/sync-versions.js",
|
|
285
|
+
"test:arch": "depcruise --config .dependency-cruiser.cjs 'src/**/*.ts?(x)'",
|
|
286
|
+
"check:public-api": "grep -REn \"export (\\*|\\{|default)\" src | grep -v \"^src/index.ts:\" || true",
|
|
287
|
+
"check:deps": "depcruise --config .dependency-cruiser.cjs \"src/**/*.ts?(x)\"",
|
|
288
|
+
"lint:strict": "eslint src --ext .ts,.tsx --max-warnings 0",
|
|
289
|
+
"perf:bench": "node scripts/qc/perf-bench.mjs",
|
|
290
|
+
"ci:registry": "node scripts/qc/assert-registry.mjs",
|
|
291
|
+
"ci:smoke-test": "node scripts/qc/smoke-test.mjs",
|
|
292
|
+
"version:auto": "npm version prerelease --preid=alpha --no-git-tag-version && npm run version:sync",
|
|
293
|
+
"version:dynamic": "node scripts/dynamic-version.js && npm run version:sync",
|
|
294
|
+
"report:phase9": "node scripts/generate-phase9-metrics.js",
|
|
295
|
+
"bench:41:startup": "node scripts/bench/phase41_startup_bench.mjs",
|
|
296
|
+
"gate:41": "pnpm bench:41:startup && node scripts/bench/gate.mjs 4.1",
|
|
297
|
+
"test:security": "vitest run tests/security/*.spec.ts",
|
|
298
|
+
"bench:42:rbac": "vitest run tests/security/rbac.spec.ts --reporter=json > artifacts/phase42/rbac-test-results.json",
|
|
299
|
+
"gate:42": "pnpm test:security && node scripts/bench/gate.mjs 4.2",
|
|
300
|
+
"bench:43:ai": "vitest run tests/ai-orchestration/*.spec.ts --reporter=json",
|
|
301
|
+
"gate:43": "pnpm bench:43:ai && node scripts/bench/gate.mjs 4.3",
|
|
302
|
+
"bench:44:dx": "vitest run tests/command-intelligence/*.spec.ts --reporter=json",
|
|
303
|
+
"gate:44": "pnpm bench:44:dx && node scripts/bench/gate.mjs 4.4",
|
|
304
|
+
"perf:report": "node scripts/perf/generate-report.mjs",
|
|
305
|
+
"gate:phase4:all": "pnpm gate:41 && pnpm gate:42 && pnpm gate:43 && pnpm gate:44",
|
|
306
|
+
"lint:json": "eslint -f json -o lint-errors.json .",
|
|
307
|
+
"type-check:log": "tsc -p tsconfig.json --noEmit --pretty false > type-check-errors.txt 2>&1 || true",
|
|
308
|
+
"qc:summary": "pnpm lint:json && pnpm type-check:log && node scripts/qc/summarize.mjs",
|
|
309
|
+
"type-check:stage1": "tsc -p tsconfig.strict.stage1.json --noEmit",
|
|
310
|
+
"type-check:stage2": "tsc -p tsconfig.strict.stage2.json --noEmit",
|
|
311
|
+
"type-check:stage3": "tsc -p tsconfig.strict.stage3.json --noEmit",
|
|
312
|
+
"type-check:final": "tsc -p tsconfig.strict.final.json --noEmit"
|
|
313
|
+
}
|
|
314
|
+
}
|
package/bin/maria
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* MARIA CODE - Smart Entry Point
|
|
5
|
-
* Launches either command mode or beautiful interactive CLI
|
|
6
|
-
* Bonginkan Inc.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
const { spawn } = require('child_process');
|
|
10
|
-
const path = require('path');
|
|
11
|
-
const fs = require('fs');
|
|
12
|
-
|
|
13
|
-
// Get the script directory and project root
|
|
14
|
-
const binDir = __dirname;
|
|
15
|
-
const projectRoot = path.dirname(binDir);
|
|
16
|
-
const mariaFile = path.join(projectRoot, 'dist', 'bin', 'maria.js');
|
|
17
|
-
const cliFile = path.join(projectRoot, 'dist', 'cli.js');
|
|
18
|
-
|
|
19
|
-
// Check if running with arguments or in interactive mode
|
|
20
|
-
const hasArgs = process.argv.length > 2;
|
|
21
|
-
|
|
22
|
-
if (hasArgs) {
|
|
23
|
-
// If arguments provided, use the built CLI for commands
|
|
24
|
-
console.log('🚀 MARIA CODE CLI - Command Mode');
|
|
25
|
-
|
|
26
|
-
// Check if built maria file exists
|
|
27
|
-
if (!fs.existsSync(mariaFile)) {
|
|
28
|
-
console.error('❌ Built file not found:', mariaFile);
|
|
29
|
-
console.error('💡 Please run: pnpm build');
|
|
30
|
-
process.exit(1);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// Launch the maria entry point with version check
|
|
34
|
-
const child = spawn('node', ['--no-deprecation', mariaFile, ...process.argv.slice(2)], {
|
|
35
|
-
stdio: 'inherit',
|
|
36
|
-
cwd: process.cwd(),
|
|
37
|
-
env: { ...process.env, NODE_NO_WARNINGS: '1' }
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
child.on('error', (err) => {
|
|
41
|
-
console.error('❌ Error:', err.message);
|
|
42
|
-
process.exit(1);
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
child.on('exit', (code) => {
|
|
46
|
-
process.exit(code || 0);
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
} else {
|
|
50
|
-
// If no arguments, launch interactive mode directly
|
|
51
|
-
|
|
52
|
-
// Check if maria.js file exists
|
|
53
|
-
if (!fs.existsSync(mariaFile)) {
|
|
54
|
-
console.error('❌ Built file not found:', mariaFile);
|
|
55
|
-
console.error('💡 Please run: pnpm build');
|
|
56
|
-
process.exit(1);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// Launch the maria entry point directly for interactive mode
|
|
60
|
-
const child = spawn('node', ['--no-deprecation', mariaFile], {
|
|
61
|
-
stdio: 'inherit',
|
|
62
|
-
cwd: process.cwd(),
|
|
63
|
-
env: { ...process.env, NODE_NO_WARNINGS: '1' }
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
child.on('error', (err) => {
|
|
67
|
-
console.error('❌ Error:', err.message);
|
|
68
|
-
process.exit(1);
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
child.on('exit', (code) => {
|
|
72
|
-
process.exit(code || 0);
|
|
73
|
-
});
|
|
74
|
-
}
|
package/bin/maria.d.ts
DELETED