Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@10kdevs/matha

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@10kdevs/matha - npm Package Compare versions

Comparing version
0.1.3
to
0.1.4
+33
-30
dist/index.js
#!/usr/bin/env node
import { Command } from 'commander';
import { runInit } from './commands/init.js';
import { runBefore } from './commands/before.js';
import { runAfter } from './commands/after.js';
import { runMigrate } from './commands/migrate.js';
import { parseMarkdownFile } from './utils/markdown-parser.js';
import { Command } from "commander";
import { runInit } from "./commands/init.js";
import { runBefore } from "./commands/before.js";
import { runAfter } from "./commands/after.js";
import { runMigrate } from "./commands/migrate.js";
import { parseMarkdownFile } from "./utils/markdown-parser.js";
import { createRequire } from "module";
const require = createRequire(import.meta.url);
const { version } = require('../package.json');
const program = new Command();
program
.name('matha')
.description('MATHA: Persistent cognitive layer for AI-assisted development')
.version('0.1.0');
.name("matha")
.description("MATHA: Persistent cognitive layer for AI-assisted development");
program.version(version);
// ──────────────────────────────────────────────────────────────────────

@@ -17,6 +20,6 @@ // INIT COMMAND

program
.command('init')
.description('Initialize MATHA in a project (one-time setup)')
.option('--project <path>', 'Project root path (default: current directory)')
.option('--from <filepath>', 'Parse a markdown/text file to pre-fill init prompts')
.command("init")
.description("Initialize MATHA in a project (one-time setup)")
.option("--project <path>", "Project root path (default: current directory)")
.option("--from <filepath>", "Parse a markdown/text file to pre-fill init prompts")
.action(async (options) => {

@@ -38,3 +41,3 @@ try {

catch (err) {
console.error('Init failed:', err.message);
console.error("Init failed:", err.message);
process.exit(1);

@@ -47,5 +50,5 @@ }

program
.command('before')
.description('Run gates 01-06: pre-session context gathering')
.option('--project <path>', 'Project root path (default: current directory)')
.command("before")
.description("Run gates 01-06: pre-session context gathering")
.option("--project <path>", "Project root path (default: current directory)")
.action(async (options) => {

@@ -57,3 +60,3 @@ try {

catch (err) {
console.error('Before failed:', err.message);
console.error("Before failed:", err.message);
process.exit(1);

@@ -66,5 +69,5 @@ }

program
.command('after')
.description('Run gate 08: post-session write-back and loop closure')
.option('--project <path>', 'Project root path (default: current directory)')
.command("after")
.description("Run gate 08: post-session write-back and loop closure")
.option("--project <path>", "Project root path (default: current directory)")
.action(async (options) => {

@@ -76,3 +79,3 @@ try {

catch (err) {
console.error('After failed:', err.message);
console.error("After failed:", err.message);
process.exit(1);

@@ -85,4 +88,4 @@ }

program
.command('migrate')
.description('Migrate .matha/ to current schema version')
.command("migrate")
.description("Migrate .matha/ to current schema version")
.action(async () => {

@@ -96,5 +99,5 @@ const result = await runMigrate();

program
.command('serve')
.description('Start MCP server on stdio for IDE integration')
.option('--project <path>', 'Project root path (default: current directory)')
.command("serve")
.description("Start MCP server on stdio for IDE integration")
.option("--project <path>", "Project root path (default: current directory)")
.action((options) => {

@@ -105,4 +108,4 @@ try {

// This keeps the stdio channel intact for MCP protocol
import('./mcp/server.js').catch((err) => {
console.error('Failed to start MCP server:', err.message);
import("./mcp/server.js").catch((err) => {
console.error("Failed to start MCP server:", err.message);
process.exit(1);

@@ -112,3 +115,3 @@ });

catch (err) {
console.error('Serve failed:', err.message);
console.error("Serve failed:", err.message);
process.exit(1);

@@ -115,0 +118,0 @@ }

{
"name": "@10kdevs/matha",
"version": "0.1.3",
"version": "0.1.4",
"description": "The persistent cognitive layer for AI-assisted development. Gives AI agents the project context that currently only exists inside a senior engineer's head.",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",