@enruana/claude-orka 0.1.0 → 0.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.
Files changed (3) hide show
  1. package/bin/orka.js +14 -12
  2. package/dist/cli.js +2433 -0
  3. package/package.json +5 -2
package/bin/orka.js CHANGED
@@ -1,19 +1,21 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { register } from 'tsx/esm/api'
4
- import { pathToFileURL } from 'url'
5
- import { resolve, dirname } from 'path'
6
3
  import { fileURLToPath } from 'url'
4
+ import { dirname, resolve } from 'path'
5
+
6
+ // Suppress experimental JSON import warnings
7
+ process.removeAllListeners('warning')
8
+ process.on('warning', (warning) => {
9
+ if (warning.name === 'ExperimentalWarning' &&
10
+ warning.message.includes('Importing JSON modules')) {
11
+ return
12
+ }
13
+ console.warn(warning)
14
+ })
7
15
 
8
16
  const __filename = fileURLToPath(import.meta.url)
9
17
  const __dirname = dirname(__filename)
10
18
 
11
- // Register tsx to handle TypeScript files
12
- const unregister = register()
13
-
14
- // Import and run the CLI
15
- const cliPath = resolve(__dirname, '../src/cli/index.ts')
16
- await import(pathToFileURL(cliPath).href)
17
-
18
- // Cleanup
19
- unregister()
19
+ // Run the bundled CLI
20
+ const cliPath = resolve(__dirname, '../dist/cli.js')
21
+ await import(cliPath)