@shareai-lab/kode 1.1.11 → 1.1.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.
Files changed (2) hide show
  1. package/cli.js +12 -10
  2. package/package.json +4 -4
package/cli.js CHANGED
@@ -39,13 +39,14 @@ function runWithNode() {
39
39
  : path.join(binDir, 'tsx')
40
40
 
41
41
  const runPathTsx = () => {
42
- const tsxArgs = process.platform === 'win32'
43
- ? ['--tsconfig-raw', '{"compilerOptions":{"module":"ESNext"}}', cliPath, ...args]
44
- : [cliPath, ...args];
45
- const child2 = spawn('tsx', tsxArgs, {
42
+ const child2 = spawn('tsx', [cliPath, ...args], {
46
43
  stdio: 'inherit',
47
44
  shell: process.platform === 'win32',
48
- env: { ...process.env, YOGA_WASM_PATH: path.join(__dirname, 'yoga.wasm') },
45
+ env: {
46
+ ...process.env,
47
+ YOGA_WASM_PATH: path.join(__dirname, 'yoga.wasm'),
48
+ TSX_TSCONFIG_PATH: process.platform === 'win32' ? 'noop' : undefined
49
+ },
49
50
  })
50
51
  child2.on('error', () => {
51
52
  console.error('\nError: tsx is required but not found.')
@@ -55,13 +56,14 @@ function runWithNode() {
55
56
  child2.on('exit', (code2) => process.exit(code2 || 0))
56
57
  }
57
58
 
58
- const tsxLocalArgs = process.platform === 'win32'
59
- ? ['--tsconfig-raw', '{"compilerOptions":{"module":"ESNext"}}', cliPath, ...args]
60
- : [cliPath, ...args];
61
- const child = spawn(tsxPath, tsxLocalArgs, {
59
+ const child = spawn(tsxPath, [cliPath, ...args], {
62
60
  stdio: 'inherit',
63
61
  shell: process.platform === 'win32',
64
- env: { ...process.env, YOGA_WASM_PATH: path.join(__dirname, 'yoga.wasm') },
62
+ env: {
63
+ ...process.env,
64
+ YOGA_WASM_PATH: path.join(__dirname, 'yoga.wasm'),
65
+ TSX_TSCONFIG_PATH: process.platform === 'win32' ? 'noop' : undefined
66
+ },
65
67
  })
66
68
 
67
69
  child.on('error', () => runPathTsx())
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shareai-lab/kode",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "bin": {
5
5
  "kode": "cli.js",
6
6
  "kwa": "cli.js",
@@ -54,7 +54,7 @@
54
54
  "@modelcontextprotocol/sdk": "^1.15.1",
55
55
  "@statsig/js-client": "^3.18.2",
56
56
  "@types/lodash-es": "^4.17.12",
57
- "@types/react": "^19.1.8",
57
+ "@types/react": "^19.1.12",
58
58
  "ansi-escapes": "^7.0.0",
59
59
  "chalk": "^5.4.1",
60
60
  "cli-highlight": "^2.1.11",
@@ -68,7 +68,7 @@
68
68
  "glob": "^11.0.3",
69
69
  "gray-matter": "^4.0.3",
70
70
  "highlight.js": "^11.11.1",
71
- "ink": "^5.2.1",
71
+ "ink": "^6.2.3",
72
72
  "ink-link": "^4.1.0",
73
73
  "ink-select-input": "^6.2.0",
74
74
  "ink-text-input": "^6.0.0",
@@ -79,7 +79,7 @@
79
79
  "node-fetch": "^3.3.2",
80
80
  "node-html-parser": "^7.0.1",
81
81
  "openai": "^4.104.0",
82
- "react": "18.3.1",
82
+ "react": "^19.1.1",
83
83
  "semver": "^7.7.2",
84
84
  "shell-quote": "^1.8.3",
85
85
  "spawn-rx": "^5.1.2",