@nikelyh/metamorph 2.0.6 → 2.0.7

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.
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  detectTechnologies
3
3
  } from "./chunk-3QN2Q75J.js";
4
- import "./chunk-3RG5ZIWI.js";
5
4
  export {
6
5
  detectTechnologies
7
6
  };
package/dist/index.js CHANGED
@@ -11,9 +11,6 @@ import {
11
11
  runLoop,
12
12
  sendEvent
13
13
  } from "./chunk-GNWRSZXT.js";
14
- import {
15
- __require
16
- } from "./chunk-3RG5ZIWI.js";
17
14
 
18
15
  // src/index.ts
19
16
  import { Command } from "commander";
@@ -992,7 +989,7 @@ async function createApiServer(store, migrationRunner) {
992
989
  });
993
990
  app.get("/api/detect", async (req, res) => {
994
991
  try {
995
- const { detectTechnologies: detectTechnologies2 } = await import("./TechDetector-TKTX5YAM.js");
992
+ const { detectTechnologies: detectTechnologies2 } = await import("./TechDetector-5YP44RVR.js");
996
993
  const targetPath = req.query.path ? String(req.query.path) : ".";
997
994
  const detected = detectTechnologies2(targetPath);
998
995
  res.json({
@@ -1590,7 +1587,7 @@ var reviewFileProcessor = {
1590
1587
  }
1591
1588
  };
1592
1589
  const { createAgent: createMozaikAgent } = await import("@mozaik-ai/core");
1593
- const { sendEvent: sendEvent3 } = await import("./runtime-MOEIRP73.js");
1590
+ const { sendEvent: sendEvent3 } = await import("./runtime-5OVGH2Y7.js");
1594
1591
  const reviewerId = `Reviewer-${Date.now()}-${Math.floor(Math.random() * 1e3)}`;
1595
1592
  const tempAgent = createMozaikAgent({
1596
1593
  name: reviewerId,
@@ -1697,7 +1694,7 @@ var reviewFileProcessor = {
1697
1694
  const syntaxErrors = diagnostics.filter((d) => d.getCode() >= 1e3 && d.getCode() < 2e3);
1698
1695
  if (syntaxErrors.length > 0) {
1699
1696
  console.error(`[ReviewerAgent:${reviewerId}] Syntax Error in ${payload.filePath}. Rejecting immediately.`);
1700
- const { sendEvent: sendEvent4 } = await import("./runtime-MOEIRP73.js");
1697
+ const { sendEvent: sendEvent4 } = await import("./runtime-5OVGH2Y7.js");
1701
1698
  sendEvent4({
1702
1699
  type: "file.rejected" /* FILE_REJECTED */,
1703
1700
  producerId: tempAgent.getId(),
@@ -1760,7 +1757,7 @@ Does it meet the criteria? You MUST respond in JSON.`;
1760
1757
  setTimeout(async () => {
1761
1758
  if (!isDone) {
1762
1759
  console.error(`[ReviewerAgent:${reviewerId}] \u23F0 TIMEOUT after 45s for ${payload.filePath}. Model never responded.`);
1763
- const { resolveRuntime: resolveRuntime2 } = await import("./runtime-MOEIRP73.js");
1760
+ const { resolveRuntime: resolveRuntime2 } = await import("./runtime-5OVGH2Y7.js");
1764
1761
  const runtime2 = resolveRuntime2();
1765
1762
  await runtime2.state.repository.updateTaskStatus(payload.planId, payload.filePath, "failed", "Inference timed out after 45s");
1766
1763
  leave(tempAgent);
@@ -1770,7 +1767,7 @@ Does it meet the criteria? You MUST respond in JSON.`;
1770
1767
  } catch (error) {
1771
1768
  console.error(`[ReviewerAgent:${reviewerId}] Sync error:`, error);
1772
1769
  if (!isDone) {
1773
- const { resolveRuntime: resolveRuntime2 } = await import("./runtime-MOEIRP73.js");
1770
+ const { resolveRuntime: resolveRuntime2 } = await import("./runtime-5OVGH2Y7.js");
1774
1771
  const runtime2 = resolveRuntime2();
1775
1772
  const errorMessage = error instanceof Error ? error.message : String(error);
1776
1773
  await runtime2.state.repository.updateTaskStatus(payload.planId, payload.filePath, "failed", errorMessage || "Sync error");
@@ -1840,7 +1837,7 @@ var managePackagesProcessor = {
1840
1837
  }
1841
1838
  const packageJsonPath = path4.join(shadowDir, "package.json");
1842
1839
  if (fs5.existsSync(packageJsonPath)) {
1843
- const { execSync: execSync2 } = __require("child_process");
1840
+ const { execSync: execSync2 } = await import("child_process");
1844
1841
  const execOpts = { cwd: shadowDir, stdio: "inherit" };
1845
1842
  try {
1846
1843
  let toRemove = [];
@@ -1951,7 +1948,7 @@ var startedProcessor = {
1951
1948
  var migratedProcessor = {
1952
1949
  async apply({ event }) {
1953
1950
  const p = event.payload;
1954
- const { resolveRuntime: resolveRuntime2 } = await import("./runtime-MOEIRP73.js");
1951
+ const { resolveRuntime: resolveRuntime2 } = await import("./runtime-5OVGH2Y7.js");
1955
1952
  const runtime = resolveRuntime2();
1956
1953
  const plan = await runtime.state.repository.getPlan(p.planId);
1957
1954
  if (!plan) return;
@@ -1962,7 +1959,7 @@ var migratedProcessor = {
1962
1959
  var reviewedProcessor = {
1963
1960
  async apply({ event }) {
1964
1961
  const p = event.payload;
1965
- const { resolveRuntime: resolveRuntime2 } = await import("./runtime-MOEIRP73.js");
1962
+ const { resolveRuntime: resolveRuntime2 } = await import("./runtime-5OVGH2Y7.js");
1966
1963
  const runtime = resolveRuntime2();
1967
1964
  const plan = await runtime.state.repository.getPlan(p.planId);
1968
1965
  if (!plan) return;
@@ -1972,7 +1969,7 @@ var reviewedProcessor = {
1972
1969
  var rejectedProcessor = {
1973
1970
  async apply({ event }) {
1974
1971
  const p = event.payload;
1975
- const { resolveRuntime: resolveRuntime2 } = await import("./runtime-MOEIRP73.js");
1972
+ const { resolveRuntime: resolveRuntime2 } = await import("./runtime-5OVGH2Y7.js");
1976
1973
  const runtime = resolveRuntime2();
1977
1974
  const plan = await runtime.state.repository.getPlan(p.planId);
1978
1975
  if (!plan) return;
@@ -1983,7 +1980,7 @@ var rejectedProcessor = {
1983
1980
  var fatalProcessor = {
1984
1981
  async apply({ event }) {
1985
1982
  const p = event.payload;
1986
- const { resolveRuntime: resolveRuntime2 } = await import("./runtime-MOEIRP73.js");
1983
+ const { resolveRuntime: resolveRuntime2 } = await import("./runtime-5OVGH2Y7.js");
1987
1984
  const runtime = resolveRuntime2();
1988
1985
  const plan = await runtime.state.repository.getPlan(p.planId);
1989
1986
  if (!plan) return;
@@ -1994,7 +1991,7 @@ var fatalProcessor = {
1994
1991
  var completedProcessor = {
1995
1992
  async apply({ event }) {
1996
1993
  const p = event.payload;
1997
- const { resolveRuntime: resolveRuntime2 } = await import("./runtime-MOEIRP73.js");
1994
+ const { resolveRuntime: resolveRuntime2 } = await import("./runtime-5OVGH2Y7.js");
1998
1995
  const runtime = resolveRuntime2();
1999
1996
  const plan = await runtime.state.repository.getPlan(p.planId);
2000
1997
  if (!plan) return;
@@ -2122,7 +2119,7 @@ function bootstrapMetamorph(repository, tools = []) {
2122
2119
  specification: new AllEventsSpecification(),
2123
2120
  processor: {
2124
2121
  async apply({ event }) {
2125
- const { resolveRuntime: resolveRuntime2 } = await import("./runtime-MOEIRP73.js");
2122
+ const { resolveRuntime: resolveRuntime2 } = await import("./runtime-5OVGH2Y7.js");
2126
2123
  const runtime = resolveRuntime2();
2127
2124
  const repository2 = runtime.state.repository;
2128
2125
  if (event.type.includes("migration") || event.type.includes("file")) {
@@ -9,7 +9,6 @@ import {
9
9
  sendEvent,
10
10
  sendMessage
11
11
  } from "./chunk-GNWRSZXT.js";
12
- import "./chunk-3RG5ZIWI.js";
13
12
  export {
14
13
  MetamorphState,
15
14
  initializeRuntime,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nikelyh/metamorph",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "main": "dist/index.js",
5
5
  "bin": {
6
6
  "metamorph": "./bin/metamorph.js"
@@ -1,10 +0,0 @@
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
- };