@maximoai/maximo-syntax-cli 0.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 ADDED
@@ -0,0 +1,120 @@
1
+ <p align="center">
2
+ <a href="https://maximoai.co/syntax">
3
+ <img src="https://maximoai.co/maximo-syntax-cli-transparent.png" alt="Maximo Syntax CLI logo">
4
+ </a>
5
+ </p>
6
+ <p align="center">Build, ship, and iterate from your terminal. Maximo Syntax CLI is a powerful AI-powered command-line interface that brings together advanced LLM integration with a lightning-fast developer experience.</p>
7
+ <p align="center">
8
+ <a href="https://maximoai.co/syntax"><img alt="Website" src="https://img.shields.io/badge/Website-maximoai.co%2Fsyntax-021027?style=flat-square&logo=google-chrome&logoColor=white" /></a>
9
+ <a href="https://github.com/maximoai-co/maximo-syntax-cli"><img alt="GitHub" src="https://img.shields.io/badge/GitHub-maximoai--co%2Fmaximo--syntax--cli-021027?style=flat-square&logo=github&logoColor=white" /></a>
10
+ </p>
11
+
12
+ # Maximo Syntax CLI
13
+
14
+ Maximo Syntax CLI is a powerful AI-powered command-line interface that enables you to work with any LLM — GPT-4o, DeepSeek, Gemini, Llama, Mistral, or any model that speaks the OpenAI chat completions API.
15
+
16
+ All the tools you need work right from your terminal — bash execution, file read/write/edit, grep, glob, agents, tasks, MCP — all powered by whatever model you choose.
17
+
18
+ ---
19
+
20
+ ## Install
21
+
22
+ ### Option A: npm (recommended)
23
+
24
+ ```bash
25
+ npm install -g @maximoai/maximo-syntax-cli
26
+ ```
27
+
28
+ ### Option B: From source (requires Bun)
29
+
30
+ ```bash
31
+ # Clone from maximoai
32
+ git clone https://github.com/maximoai-co/maximo-syntax-cli.git
33
+ cd maximo-syntax-cli
34
+
35
+ # Install dependencies
36
+ bun install
37
+
38
+ # Build
39
+ bun run build
40
+
41
+ # Link globally (optional)
42
+ npm link
43
+ ```
44
+
45
+ ### Option C: Run directly with Bun (no build step)
46
+
47
+ ```bash
48
+ git clone https://github.com/maximoai-co/maximo-syntax-cli.git
49
+ cd maximo-syntax-cli
50
+ bun install
51
+ bun run dev
52
+ ```
53
+
54
+ ---
55
+
56
+ ## Quick Start
57
+
58
+ ### 1. Set up Maximo AI (Recommended)
59
+
60
+ Maximo Syntax CLI uses Maximo AI as the default provider. Get your API key from [Maximo AI](https://maximoai.co/platform) and set the following environment variables:
61
+
62
+ ```bash
63
+ export CLAUDE_CODE_USE_OPENAI=1
64
+ export OPENAI_API_KEY=your-maximo-api-key
65
+ export OPENAI_BASE_URL=https://api.maximoai.co/v1
66
+ export OPENAI_MODEL=maximo-pandora-3.6-nano
67
+ ```
68
+
69
+ Or create a `.env` file in your project directory:
70
+
71
+ ```
72
+ CLAUDE_CODE_USE_OPENAI=1
73
+ OPENAI_API_KEY=your-maximo-api-key
74
+ OPENAI_BASE_URL=https://api.maximoai.co/v1
75
+ OPENAI_MODEL=maximo-pandora-3.6-nano
76
+ ```
77
+
78
+ ### 2. Run Maximo Syntax CLI
79
+
80
+ ```bash
81
+ maximo-syntax-cli
82
+ ```
83
+
84
+ ---
85
+
86
+ ## Alternative Providers
87
+
88
+ ### OpenAI / Any OpenAI-compatible provider (GPT-4o, DeepSeek, Ollama, Groq)
89
+
90
+ ```bash
91
+ export CLAUDE_CODE_USE_OPENAI=1
92
+ export OPENAI_API_KEY=sk-...
93
+ export OPENAI_MODEL=gpt-4o
94
+ ```
95
+
96
+ ### Google Gemini (free key at https://aistudio.google.com/apikey)
97
+
98
+ ```bash
99
+ export CLAUDE_CODE_USE_GEMINI=1
100
+ export GEMINI_API_KEY=your-key
101
+ ```
102
+
103
+ ### Amazon Bedrock
104
+
105
+ See documentation: https://code.claude.com/docs/en/amazon-bedrock
106
+
107
+ ### Microsoft Foundry
108
+
109
+ See documentation: https://code.claude.com/docs/en/microsoft-foundry
110
+
111
+ ### Vertex AI
112
+
113
+ See documentation: https://code.claude.com/docs/en/google-vertex-ai
114
+
115
+ ---
116
+
117
+ ## Documentation
118
+
119
+ - [Maximo AI Documentation](https://maximoai.co/syntax)
120
+ - [GitHub Repository](https://github.com/maximoai-co/maximo-syntax-cli)
@@ -0,0 +1,7 @@
1
+ import { join } from 'path'
2
+ import { pathToFileURL } from 'url'
3
+
4
+ export function getDistImportSpecifier(baseDir) {
5
+ const distPath = join(baseDir, '..', 'dist', 'cli.mjs')
6
+ return pathToFileURL(distPath).href
7
+ }
@@ -0,0 +1,13 @@
1
+ import assert from 'node:assert/strict'
2
+ import test from 'node:test'
3
+
4
+ import { getDistImportSpecifier } from './import-specifier.mjs'
5
+
6
+ test('builds a file URL import specifier for dist/cli.mjs', () => {
7
+ const specifier = getDistImportSpecifier('C:\\repo\\bin')
8
+
9
+ assert.equal(
10
+ specifier,
11
+ 'file:///C:/repo/dist/cli.mjs',
12
+ )
13
+ })
@@ -0,0 +1,32 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * Maximo Syntax CLI — Maximo Syntax with any LLM, powered by Maximo AI
5
+ *
6
+ * If dist/cli.mjs exists (built), run that.
7
+ * Otherwise, tell the user to build first or use `bun run dev`.
8
+ */
9
+
10
+ import { existsSync } from "fs";
11
+ import { join, dirname } from "path";
12
+ import { fileURLToPath, pathToFileURL } from "url";
13
+
14
+ const __dirname = dirname(fileURLToPath(import.meta.url));
15
+ const distPath = join(__dirname, "..", "dist", "cli.mjs");
16
+
17
+ if (existsSync(distPath)) {
18
+ await import(pathToFileURL(distPath).href);
19
+ } else {
20
+ console.error(`
21
+ maximo-syntax-cli: dist/cli.mjs not found.
22
+
23
+ Build first:
24
+ bun run build
25
+
26
+ Or run directly with Bun:
27
+ bun run dev
28
+
29
+ See README.md for setup instructions.
30
+ `);
31
+ process.exit(1);
32
+ }