@bonginkan/maria 3.0.7 → 3.0.9

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bonginkan/maria",
3
- "version": "3.0.7",
4
- "description": "🚀 MARIA v3.0.7 - All version displays now dynamic. 50+ working commands. Enterprise-ready AI development platform.",
3
+ "version": "3.0.9",
4
+ "description": "🚀 MARIA v3.0.9 - Minimal API, Maximum Power. Intelligent Router + Dual Memory + File System. Enterprise-ready AI development platform with enhanced /help command and stability 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
- "hsr-system",
72
- "hokoku-soudan-renraku",
73
- "human-centered-ai",
74
- "always-stoppable",
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
- "websocket-server",
77
- "dashboard-system",
78
- "multi-format-output",
79
- "ascii-visualization",
80
- "html-charts",
81
- "production-monitoring",
82
- "enterprise-monitoring",
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,124 @@
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": "./bin/maria",
105
- "mc": "./bin/maria"
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
- "type": "commonjs",
133
+ "sideEffects": false,
115
134
  "engines": {
116
- "node": ">=18.0.0"
135
+ "node": ">=20.10.0"
117
136
  },
118
137
  "scripts": {
119
- "build": "tsup",
120
- "dev": "tsup --watch",
138
+ "build": "NODE_ENV=production tsup",
139
+ "build:dev": "NODE_ENV=development tsup",
140
+ "build:analyze": "ANALYZE=true NODE_ENV=production tsup",
141
+ "build:fast": "NODE_ENV=production tsup --minify false --sourcemap false",
142
+ "dev": "NODE_ENV=development tsup --watch",
121
143
  "clean": "rm -rf dist",
122
- "prebuild": "pnpm run clean",
123
- "postbuild": "chmod +x bin/maria",
144
+ "gen:cmd-types": "node --experimental-specifier-resolution=node scripts/gen/command-types.mts",
145
+ "prebuild": "pnpm run clean && pnpm gen:cmd-types",
146
+ "postbuild": "chmod +x dist/cli.cjs dist/bin/maria.cjs 2>/dev/null || true",
124
147
  "test": "vitest",
125
148
  "test:coverage": "vitest --coverage",
149
+ "test:smoke": "vitest run src/__tests__/smoke.test.ts",
150
+ "test:registry": "vitest run src/__tests__/command-registry.test.ts",
151
+ "test:integration": "vitest --config vitest.integration.config.ts",
152
+ "test:integration:ci": "vitest run --config vitest.integration.config.ts --reporter=json --reporter=verbose",
153
+ "ci:smoke": "pnpm -s build && pnpm -s test:smoke",
126
154
  "lint": "eslint src --ext .ts,.tsx",
127
155
  "lint:fix": "eslint src --ext .ts,.tsx --fix",
128
156
  "type-check": "tsc --noEmit",
129
- "prepublishOnly": "echo 'Using prebuilt dist files'",
157
+ "fix:underscores": "tsx scripts/fix/underscore-mismatch.ts",
158
+ "fix:args": "tsx scripts/fix/arg-prefix-normalize.ts",
159
+ "codemod:internal-mode": "node scripts/codemod/replace-internal-mode.mjs",
160
+ "codemod:edm-migration": "node scripts/codemod/edm-migration.mjs",
161
+ "migration:status": "node scripts/migration-status.mjs",
162
+ "phase3:readiness": "node scripts/phase3-readiness-check.mjs",
163
+ "deps:check": "npx dependency-cruiser src --config .dependency-cruiser.cjs",
164
+ "deps:graph": "npx dependency-cruiser src --include-only '^src' --config .dependency-cruiser.js --output-type dot | dot -T svg > dependency-graph.svg",
165
+ "deps:monitor": "node scripts/qc/circular-dependency-monitor.mjs check",
166
+ "deps:status": "node scripts/qc/circular-dependency-monitor.mjs status",
167
+ "deps:report": "node scripts/qc/circular-dependency-monitor.mjs report",
168
+ "perf:monitor": "node scripts/perf/continuous-monitor.mjs",
169
+ "perf:baseline": "node scripts/bundle-performance-monitor.mjs",
170
+ "test:safety-net": "vitest run tests/*safety*.test.ts tests/deprecation*.test.ts tests/phase3*.test.ts",
171
+ "test:phase3": "vitest run tests/phase3-safety.test.ts",
172
+ "metrics:deprecation": "node -e \"console.log('Deprecation metrics would be shown here')\"",
173
+ "lint:edm": "eslint src/services/memory-system/phase4 --config .eslintrc.edm-migration.js",
174
+ "fix:args:anon": "tsx scripts/fix/arg-anonymize-unused.ts",
175
+ "fix:all": "pnpm -s fix:underscores && pnpm -s fix:args && pnpm -s fix:args:anon",
176
+ "fix:quick": "pnpm -s fix:underscores && pnpm -s build && pnpm -s test:smoke",
177
+ "prepublishOnly": "pnpm -s build && node scripts/qc/assert-registry.mjs",
178
+ "snapshot:help": "node scripts/qc/help-snapshot.js",
179
+ "snapshot:update": "UPDATE_SNAPSHOTS=true node scripts/qc/help-snapshot.js",
130
180
  "release": "pnpm version patch && pnpm publish",
131
181
  "pre-commit": "lint-staged",
132
182
  "release:latest": "pnpm publish && npm dist-tag add @bonginkan/maria@$(npm pkg get version | tr -d '\"') latest",
133
183
  "release:alpha": "pnpm publish --tag alpha",
134
184
  "release:beta": "pnpm publish --tag beta",
135
185
  "version:sync": "node scripts/sync-versions.js",
186
+ "test:arch": "depcruise --config .dependency-cruiser.cjs 'src/**/*.ts?(x)'",
187
+ "check:public-api": "grep -REn \"export (\\*|\\{|default)\" src | grep -v \"^src/index.ts:\" || true",
188
+ "check:deps": "depcruise --config .dependency-cruiser.cjs \"src/**/*.ts?(x)\"",
189
+ "lint:strict": "eslint src --ext .ts,.tsx --max-warnings 0",
190
+ "perf:bench": "node scripts/qc/perf-bench.mjs",
191
+ "ci:registry": "node scripts/qc/assert-registry.mjs",
192
+ "ci:smoke-test": "node scripts/qc/smoke-test.mjs",
136
193
  "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"
194
+ "version:dynamic": "node scripts/dynamic-version.js && npm run version:sync",
195
+ "report:phase9": "node scripts/generate-phase9-metrics.js",
196
+ "bench:41:startup": "node scripts/bench/phase41_startup_bench.mjs",
197
+ "gate:41": "pnpm bench:41:startup && node scripts/bench/gate.mjs 4.1",
198
+ "test:security": "vitest run tests/security/*.spec.ts",
199
+ "bench:42:rbac": "vitest run tests/security/rbac.spec.ts --reporter=json > artifacts/phase42/rbac-test-results.json",
200
+ "gate:42": "pnpm test:security && node scripts/bench/gate.mjs 4.2",
201
+ "bench:43:ai": "vitest run tests/ai-orchestration/*.spec.ts --reporter=json",
202
+ "gate:43": "pnpm bench:43:ai && node scripts/bench/gate.mjs 4.3",
203
+ "bench:44:dx": "vitest run tests/command-intelligence/*.spec.ts --reporter=json",
204
+ "gate:44": "pnpm bench:44:dx && node scripts/bench/gate.mjs 4.4",
205
+ "perf:report": "node scripts/perf/generate-report.mjs",
206
+ "gate:phase4:all": "pnpm gate:41 && pnpm gate:42 && pnpm gate:43 && pnpm gate:44",
207
+ "lint:json": "eslint -f json -o lint-errors.json .",
208
+ "type-check:log": "tsc -p tsconfig.json --noEmit --pretty false > type-check-errors.txt 2>&1 || true",
209
+ "qc:summary": "pnpm lint:json && pnpm type-check:log && node scripts/qc/summarize.mjs",
210
+ "type-check:stage1": "tsc -p tsconfig.strict.stage1.json --noEmit",
211
+ "type-check:stage2": "tsc -p tsconfig.strict.stage2.json --noEmit",
212
+ "type-check:stage3": "tsc -p tsconfig.strict.stage3.json --noEmit",
213
+ "type-check:final": "tsc -p tsconfig.strict.final.json --noEmit"
138
214
  },
139
215
  "dependencies": {
140
216
  "@anthropic-ai/sdk": "^0.20.0",
@@ -156,6 +232,7 @@
156
232
  "fs-extra": "^11.2.0",
157
233
  "fuse.js": "^7.1.0",
158
234
  "glob": "^10.3.10",
235
+ "globby": "^14.1.0",
159
236
  "gpt-3-encoder": "^1.1.4",
160
237
  "groq-sdk": "^0.3.0",
161
238
  "ink": "^4.4.1",
@@ -202,17 +279,23 @@
202
279
  "@vitest/coverage-v8": "^1.2.0",
203
280
  "better-sqlite3": "^12.2.0",
204
281
  "cli-highlight": "^2.1.11",
282
+ "dependency-cruiser": "^16.10.4",
205
283
  "eslint": "^8.56.0",
206
284
  "eslint-config-prettier": "^9.1.0",
285
+ "eslint-plugin-import": "^2.32.0",
207
286
  "eslint-plugin-node": "^11.1.0",
208
287
  "eslint-plugin-prettier": "^5.1.3",
209
288
  "execa": "^9.6.0",
289
+ "fast-glob": "^3.3.3",
210
290
  "figures": "^6.1.0",
291
+ "jscodeshift": "^17.3.0",
211
292
  "lint-staged": "^16.1.5",
212
293
  "prettier": "^3.2.4",
213
294
  "react-devtools-core": "^6.1.5",
295
+ "ts-morph": "^26.0.0",
214
296
  "ts-node": "^10.9.2",
215
297
  "tsup": "^8.0.1",
298
+ "tsx": "^4.20.3",
216
299
  "typescript": "5.3.3",
217
300
  "vitest": "^1.2.0"
218
301
  },
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
@@ -1,2 +0,0 @@
1
-
2
- export { }