algomath-extract 1.0.10 → 1.0.12
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 +35 -7
- package/bin/install.js +14 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
```
|
|
2
|
+
█████╗ ██╗ ██████╗ ██████╗ ███╗ ███╗ █████╗ ████████╗██╗ ██╗
|
|
3
|
+
██╔══██╗██║ ██╔════╝ ██╔═══██╗████╗ ████║██╔══██╗╚══██╔══╝██║ ██║
|
|
4
|
+
███████║██║ ██║ ███╗██║ ██║██╔████╔██║███████║ ██║ ███████║
|
|
5
|
+
██╔══██║██║ ██║ ██║██║ ██║██║╚██╔╝██║██╔══██║ ██║ ██╔══██║
|
|
6
|
+
██║ ██║███████╗╚██████╔╝╚██████╔╝██║ ╚═╝ ██║██║ ██║ ██║ ██║ ██║
|
|
7
|
+
╚═╝ ╚═╝╚══════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝
|
|
8
|
+
```
|
|
9
|
+
|
|
1
10
|
# AlgoMath Framework
|
|
2
11
|
|
|
3
12
|
**AlgoMath** transforms mathematical algorithm descriptions from PDFs and text files into executable Python code through an intuitive workflow integrated with opencode.
|
|
@@ -8,23 +17,28 @@
|
|
|
8
17
|
|
|
9
18
|
## Installation
|
|
10
19
|
|
|
11
|
-
### Quick Install
|
|
20
|
+
### Quick Install (Recommended)
|
|
12
21
|
```bash
|
|
13
|
-
|
|
22
|
+
# Global install (no sudo needed)
|
|
23
|
+
sudo npx algomath-extract@latest
|
|
14
24
|
```
|
|
15
25
|
|
|
16
|
-
The installer will:
|
|
26
|
+
The interactive installer will:
|
|
17
27
|
1. Check for Python 3.11+ (auto-install guidance if missing)
|
|
18
|
-
2.
|
|
19
|
-
3.
|
|
28
|
+
2. Ask which runtime to install to (OpenCode, Claude Code, or both)
|
|
29
|
+
3. Ask for installation location (global or local)
|
|
30
|
+
4. Install Python dependencies (pdfplumber, pydantic)
|
|
31
|
+
5. Copy command files to the selected runtime
|
|
32
|
+
|
|
33
|
+
> **Note:** Use `sudo` when installing globally or locally if your `.opencode` directory was previously created with elevated permissions.
|
|
20
34
|
|
|
21
35
|
### Manual Install
|
|
22
36
|
```bash
|
|
23
37
|
# Global install
|
|
24
|
-
npm install -g algomath
|
|
38
|
+
sudo npm install -g algomath-extract
|
|
25
39
|
|
|
26
40
|
# Or local install per-project
|
|
27
|
-
npm install algomath
|
|
41
|
+
npm install algomath-extract
|
|
28
42
|
```
|
|
29
43
|
|
|
30
44
|
---
|
|
@@ -82,6 +96,20 @@ Verifies correctness with:
|
|
|
82
96
|
| `/algo-list` | List saved algorithms | Info |
|
|
83
97
|
| `/algo-help` | Show help | Info |
|
|
84
98
|
|
|
99
|
+
### CLI Commands (via npm)
|
|
100
|
+
|
|
101
|
+
After installation, you can also use these CLI commands:
|
|
102
|
+
|
|
103
|
+
| Command | Description |
|
|
104
|
+
|---------|-------------|
|
|
105
|
+
| `npx algoextract <file>` | Extract from command line |
|
|
106
|
+
| `npx algogenerate` | Generate code from CLI |
|
|
107
|
+
| `npx algorun` | Run from CLI |
|
|
108
|
+
| `npx algoverify` | Verify from CLI |
|
|
109
|
+
| `npx algostatus` | Check status |
|
|
110
|
+
| `npx algolist` | List algorithms |
|
|
111
|
+
| `npx algohelp` | Show help |
|
|
112
|
+
|
|
85
113
|
---
|
|
86
114
|
|
|
87
115
|
## Workflow Modes
|
package/bin/install.js
CHANGED
|
@@ -62,10 +62,20 @@ async function checkForUpdates() {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
async function main() {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
// Green ANSI color codes
|
|
66
|
+
const GREEN = '\x1b[32m';
|
|
67
|
+
const RESET = '\x1b[0m';
|
|
68
|
+
|
|
69
|
+
console.log(GREEN + `
|
|
70
|
+
█████╗ ██╗ ██████╗ ██████╗ ███╗ ███╗ █████╗ ████████╗██╗ ██╗
|
|
71
|
+
██╔══██╗██║ ██╔════╝ ██╔═══██╗████╗ ████║██╔══██╗╚══██╔══╝██║ ██║
|
|
72
|
+
███████║██║ ██║ ███╗██║ ██║██╔████╔██║███████║ ██║ ███████║
|
|
73
|
+
██╔══██║██║ ██║ ██║██║ ██║██║╚██╔╝██║██╔══██║ ██║ ██╔══██║
|
|
74
|
+
██║ ██║███████╗╚██████╔╝╚██████╔╝██║ ╚═╝ ██║██║ ██║ ██║ ██║ ██║
|
|
75
|
+
╚═╝ ╚═╝╚══════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝
|
|
76
|
+
Framework Installer v1.0.11
|
|
77
|
+
Mathematical Algorithm Extraction & Code
|
|
78
|
+
` + RESET + '\n');
|
|
69
79
|
|
|
70
80
|
// Check for updates
|
|
71
81
|
await checkForUpdates();
|