@misterscan/sesi 1.1.1 → 1.1.2
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 +19 -15
- package/bin/sesi.js +3 -3
- package/dist/sesi.bundled.js +54585 -0
- package/docs/QUICKSTART.md +12 -33
- package/docs/README.md +2 -26
- package/package.json +3 -2
package/docs/QUICKSTART.md
CHANGED
|
@@ -1,32 +1,6 @@
|
|
|
1
1
|
# Quick Start Guide: Sesi Programming Language
|
|
2
2
|
|
|
3
|
-
##
|
|
4
|
-
|
|
5
|
-
### Prerequisites
|
|
6
|
-
|
|
7
|
-
- Node.js 18+
|
|
8
|
-
- npm or yarn
|
|
9
|
-
|
|
10
|
-
### Setup
|
|
11
|
-
|
|
12
|
-
1. **Clone and install**:
|
|
13
|
-
|
|
14
|
-
```bash
|
|
15
|
-
git clone https://github.com/Misterscan/Sesi.git
|
|
16
|
-
cd sesi-programming-lang
|
|
17
|
-
npm install
|
|
18
|
-
|
|
19
|
-
# Unlock the `sesi` command
|
|
20
|
-
npm install -g
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
2. **Build from TypeScript**:
|
|
24
|
-
|
|
25
|
-
```bash
|
|
26
|
-
npm run build
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
3. **Run a program (if installed globally)**:
|
|
3
|
+
## Run a program:
|
|
30
4
|
|
|
31
5
|
```bash
|
|
32
6
|
sesi main/start.sesi
|
|
@@ -236,6 +210,11 @@ sesi examples/09_structured_output.sesi
|
|
|
236
210
|
sesi examples/10_code_generation.sesi
|
|
237
211
|
sesi examples/11_memory_conversation.sesi
|
|
238
212
|
sesi examples/12_classification.sesi
|
|
213
|
+
sesi examples/13_data_pipeline.sesi
|
|
214
|
+
sesi examples/14_folder_explainer.sesi
|
|
215
|
+
|
|
216
|
+
# Image generation example
|
|
217
|
+
sesi example/15_image_generation.sesi
|
|
239
218
|
```
|
|
240
219
|
|
|
241
220
|
## Common Patterns
|
|
@@ -324,16 +303,16 @@ else {print "Response: " response}
|
|
|
324
303
|
|
|
325
304
|
## Next Steps
|
|
326
305
|
|
|
327
|
-
1. **Read the spec**: [SPECIFICATION.md](
|
|
328
|
-
2. **Learn about reasoning**: [SYSTEMS_REASONING.md](
|
|
329
|
-
3. **Understand architecture**: [ARCHITECTURE.md](
|
|
330
|
-
4. **Check roadmap**: [ROADMAP.md](
|
|
331
|
-
5. **Study examples**: [examples/](examples/)
|
|
306
|
+
1. **Read the spec**: [SPECIFICATION.md](SPECIFICATION.md)
|
|
307
|
+
2. **Learn about reasoning**: [SYSTEMS_REASONING.md](SYSTEMS_REASONING.md)
|
|
308
|
+
3. **Understand architecture**: [ARCHITECTURE.md](ARCHITECTURE.md)
|
|
309
|
+
4. **Check roadmap**: [ROADMAP.md](ROADMAP.md)
|
|
310
|
+
5. **Study examples**: [examples/](/examples/)
|
|
332
311
|
|
|
333
312
|
## Getting Help
|
|
334
313
|
|
|
335
314
|
- Check documentation in [docs/](docs/)
|
|
336
|
-
- Review examples in [examples/](examples/)
|
|
315
|
+
- Review examples in [examples/](/examples/)
|
|
337
316
|
- Read error messages carefully
|
|
338
317
|
- Try simpler programs first
|
|
339
318
|
|
package/docs/README.md
CHANGED
|
@@ -19,31 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
## Quick Start
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
Clone the repository:
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
git clone https://github.com/Misterscan/Sesi.git
|
|
28
|
-
cd sesi-programming-lang
|
|
29
|
-
```
|
|
30
|
-
You'll need a [Gemini API Key](https://aistudio.google.com/app/apikey). Create a `.env` file referencing your key:
|
|
31
|
-
|
|
32
|
-
```env
|
|
33
|
-
GEMINI_API_KEY="AIzaSy..."
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
You can install Sesi globally to use the `sesi` command anywhere on your system:
|
|
37
|
-
|
|
38
|
-
```bash
|
|
39
|
-
# Install required dependencies
|
|
40
|
-
npm install
|
|
41
|
-
|
|
42
|
-
# Unlock the `sesi` command
|
|
43
|
-
npm install -g .
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
Then run any program directly:
|
|
22
|
+
Run any program directly:
|
|
47
23
|
|
|
48
24
|
```bash
|
|
49
25
|
# Standard script execution
|
|
@@ -58,7 +34,7 @@ sesi examples.sesi
|
|
|
58
34
|
|
|
59
35
|
# Local Execution (Development)
|
|
60
36
|
|
|
61
|
-
If you choose not
|
|
37
|
+
If you choose not use the `sesi` command, use the helper npm scripts:
|
|
62
38
|
|
|
63
39
|
```bash
|
|
64
40
|
npm run example 01_hello.sesi
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@misterscan/sesi",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Sesi: A High-Performance Systems Language",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dev": "npm run lint &&dotenvx run -- npm run build --watch",
|
|
20
20
|
"test": "npx ts-node tests/basic.test.ts",
|
|
21
21
|
"test:watch": "npm run lint && npx ts-node tests/basic.test.ts --watch",
|
|
22
|
-
"build:exe": "npx pkg . --targets node18-win-x64,node18-macos-x64,node18-linux-x64 --out-path releases",
|
|
22
|
+
"build:exe": "npx esbuild bin/sesi.js --bundle --platform=node --alias:node:sqlite=./mock-sqlite.js --outfile=dist/sesi.bundled.js && npx pkg dist/sesi.bundled.js --targets node18-win-x64,node18-macos-x64,node18-linux-x64 --out-path releases && node -e \"setTimeout(() => { const { rcedit } = require('rcedit'); rcedit('releases/sesi.bundled-win.exe', { icon: 'favicon.ico' }); }, 1000)\"",
|
|
23
23
|
"repl": "node dist/repl.js",
|
|
24
24
|
"example": "node --no-deprecation example.js",
|
|
25
25
|
"example:ai": "node --no-deprecation example-ai.js",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"@types/node": "^25.7.0",
|
|
45
45
|
"eslint": "^10.3.0",
|
|
46
46
|
"globals": "^17.6.0",
|
|
47
|
+
"rcedit": "^5.0.2",
|
|
47
48
|
"typescript": "6.0.3",
|
|
48
49
|
"typescript-eslint": "^8.59.3"
|
|
49
50
|
}
|