@nikelyh/metamorph 2.0.2 → 2.0.4

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/bin/metamorph.js CHANGED
@@ -1,18 +1,4 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- // For development, we use tsx to run the typescript file directly.
4
- import { spawnSync } from 'child_process';
5
- import { resolve, dirname } from 'path';
6
- import { fileURLToPath } from 'url';
7
-
8
- const __filename = fileURLToPath(import.meta.url);
9
- const __dirname = dirname(__filename);
10
-
11
- const indexPath = resolve(__dirname, '../src/index.ts');
12
-
13
- const result = spawnSync('npx', ['tsx', indexPath, ...process.argv.slice(2)], {
14
- stdio: 'inherit',
15
- shell: true
16
- });
17
-
18
- process.exit(result.status || 0);
3
+ // Production entry point for the CLI
4
+ import '../dist/index.js';
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  detectTechnologies
3
3
  } from "./chunk-3QN2Q75J.js";
4
- import "./chunk-VS2QQHAK.js";
4
+ import "./chunk-3RG5ZIWI.js";
5
5
  export {
6
6
  detectTechnologies
7
7
  };
@@ -0,0 +1,10 @@
1
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
2
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
3
+ }) : x)(function(x) {
4
+ if (typeof require !== "undefined") return require.apply(this, arguments);
5
+ throw Error('Dynamic require of "' + x + '" is not supported');
6
+ });
7
+
8
+ export {
9
+ __require
10
+ };
@@ -1,9 +1,5 @@
1
- import {
2
- RuntimeState,
3
- defineRuntime
4
- } from "./chunk-XHQSMB6V.js";
5
-
6
1
  // ../application/src/runtime.ts
2
+ import { defineRuntime, RuntimeState } from "@mozaik-ai/core";
7
3
  var MetamorphState = class extends RuntimeState {
8
4
  constructor(repository) {
9
5
  super();