kuhul-es 1.0.6 → 1.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.
File without changes
package/bin/kuhul-es.js CHANGED
@@ -1,62 +1,50 @@
1
- #!/usr/bin/env node
2
- // KUHUL-ES CLI
3
- 'use strict';
4
-
5
- console.log(`
6
- ╔══════════════════════════════════════╗
7
- ║ KUHUL-ES v1.0.0 ║
8
- ║ ECMAScript syntax, KUHUL semantics ║
9
- ╚══════════════════════════════════════╝
10
- `);
11
-
12
- const { program } = require('commander');
13
-
14
- program
15
- .name('kuhul-es')
16
- .description('KUHUL-ES - The Trojan Horse for KUHUL semantics')
17
- .version('1.0.6');
18
-
19
- program
20
- .command('init [project-name]')
21
- .description('Initialize a new KUHUL-ES project')
22
- .action((projectName = 'my-kuhul-app') => {
23
- console.log(`Creating project: ${projectName}`);
24
- // Implementation would go here
25
- });
26
-
27
- program
28
- .command('compile <file>')
29
- .description('Compile KUHUL-ES source file')
30
- .action((file) => {
31
- console.log(`Compiling: ${file}`);
32
- // Implementation would go here
33
- });
34
-
35
- program
36
- .command('run <file>')
37
- .description('Run a KUHUL-ES program')
38
- .option('--record', 'Record deterministic execution trace')
39
- .option('--replay <hash>', 'Replay from a recorded trace')
40
- .action((file, options) => {
41
- console.log(`▶ Running KUHUL-ES file: ${file}`);
42
-
43
- if (options.record) {
44
- console.log('⏺ Recording execution trace');
45
- }
46
-
47
- if (options.replay) {
48
- console.log(`⏮ Replaying trace: ${options.replay}`);
49
- }
50
-
51
- // TEMP: stub runtime hook
52
- console.log('⚙ KUHUL runtime booting...');
53
- console.log('✓ Execution complete (stub)');
54
- });
55
-
56
-
57
- program.parse(process.argv);
58
-
59
- if (!process.argv.slice(2).length) {
60
- program.outputHelp();
61
- }
62
- '@ | Out-File bin/kuhul-es.js -Encoding UTF8
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+
4
+ // KUHUL-ES CLI
5
+
6
+ const { program } = require('commander');
7
+
8
+ console.log(`
9
+ ╔══════════════════════════════════════╗
10
+ ║ KUHUL-ES v1.0.8 ║
11
+ ║ ECMAScript syntax, KUHUL semantics ║
12
+ ╚══════════════════════════════════════╝
13
+ `);
14
+
15
+ program
16
+ .name('kuhul-es')
17
+ .description('KUHUL-ES - The Trojan Horse for KUHUL semantics')
18
+ .version('1.0.8');
19
+
20
+ program
21
+ .command('init [project-name]')
22
+ .description('Initialize a new KUHUL-ES project')
23
+ .action((projectName = 'my-kuhul-app') => {
24
+ console.log(`Creating project: ${projectName}`);
25
+ });
26
+
27
+ program
28
+ .command('compile <file>')
29
+ .description('Compile KUHUL-ES source file')
30
+ .action((file) => {
31
+ console.log(`Compiling: ${file}`);
32
+ });
33
+
34
+ program
35
+ .command('run <file>')
36
+ .description('Run a KUHUL-ES program')
37
+ .option('--record', 'Record deterministic execution trace')
38
+ .option('--replay <hash>', 'Replay from a recorded trace')
39
+ .action((file, options) => {
40
+ console.log(`▶ Running: ${file}`);
41
+ if (options.record) console.log('⏺ Recording execution');
42
+ if (options.replay) console.log(`⏮ Replaying ${options.replay}`);
43
+ console.log('✓ Execution complete (stub)');
44
+ });
45
+
46
+ program.parse(process.argv);
47
+
48
+ if (!process.argv.slice(2).length) {
49
+ program.outputHelp();
50
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
- {
1
+ {
2
2
  "name": "kuhul-es",
3
- "version": "1.0.6",
3
+ "version": "1.0.9",
4
4
  "main": "src/index.js",
5
5
  "bin": {
6
6
  "kuhul-es": "bin/kuhul-es.js"
@@ -18,5 +18,9 @@
18
18
  ],
19
19
  "engines": {
20
20
  "node": ">=14"
21
+ },
22
+ "dependencies": {
23
+ "commander": "^14.0.2",
24
+ "kuhul-es": "^1.0.7"
21
25
  }
22
26
  }