@forgespace/siza-gen 0.5.0 → 0.6.0

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/dist/index.js +5 -5
  2. package/package.json +10 -10
package/dist/index.js CHANGED
@@ -3786,7 +3786,7 @@ ${prompt}` : prompt,
3786
3786
  };
3787
3787
  } catch (err) {
3788
3788
  if (err.name === "AbortError") {
3789
- throw new Error(`Ollama request timed out after ${timeout}ms`);
3789
+ throw new Error(`Ollama request timed out after ${timeout}ms`, { cause: err });
3790
3790
  }
3791
3791
  throw err;
3792
3792
  } finally {
@@ -3872,7 +3872,7 @@ var OpenAIProvider = class {
3872
3872
  };
3873
3873
  } catch (err) {
3874
3874
  if (err.name === "AbortError") {
3875
- throw new Error(`OpenAI request timed out after ${timeout}ms`);
3875
+ throw new Error(`OpenAI request timed out after ${timeout}ms`, { cause: err });
3876
3876
  }
3877
3877
  throw err;
3878
3878
  } finally {
@@ -3964,7 +3964,7 @@ var AnthropicProvider = class {
3964
3964
  };
3965
3965
  } catch (err) {
3966
3966
  if (err.name === "AbortError") {
3967
- throw new Error(`Anthropic request timed out after ${timeout}ms`);
3967
+ throw new Error(`Anthropic request timed out after ${timeout}ms`, { cause: err });
3968
3968
  }
3969
3969
  throw err;
3970
3970
  } finally {
@@ -4225,7 +4225,7 @@ async function getExtractor() {
4225
4225
  return extractor;
4226
4226
  } catch (err) {
4227
4227
  logger7.error({ err, model: config.modelId }, "Failed to load embedding model");
4228
- throw new Error(`Failed to load embedding model: ${err}`);
4228
+ throw new Error(`Failed to load embedding model: ${err}`, { cause: err });
4229
4229
  }
4230
4230
  }
4231
4231
  async function embed(text) {
@@ -34071,7 +34071,7 @@ function composePageFromTemplate(compositionId, options) {
34071
34071
  };
34072
34072
  const results = searchComponents(query);
34073
34073
  const snippet = results[0];
34074
- let jsx = "";
34074
+ let jsx;
34075
34075
  let snippetId;
34076
34076
  if (snippet) {
34077
34077
  jsx = snippet.snippet.jsx;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forgespace/siza-gen",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Siza AI generation engine — multi-framework code generation, component registry, and ML-powered quality scoring",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -33,7 +33,7 @@
33
33
  "sidecar:start": "bash scripts/start-sidecar.sh",
34
34
  "sidecar:test": "cd python && source .venv/bin/activate && python -m pytest tests/ -v",
35
35
  "metrics:report": "curl -s http://localhost:8100/metrics/report | node -e \"process.stdin.resume();let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>console.log(JSON.stringify(JSON.parse(d),null,2)))\"",
36
- "prepare": "husky install || true",
36
+ "prepare": "husky || true",
37
37
  "prepublishOnly": "npm run build",
38
38
  "prepack": "npm run build"
39
39
  },
@@ -46,16 +46,16 @@
46
46
  "zod": "^4.0.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@eslint/js": "^9.17.0",
49
+ "@eslint/js": "^10.0.1",
50
50
  "@types/better-sqlite3": "^7.6.13",
51
- "@types/jest": "^29.5.14",
51
+ "@types/jest": "^30.0.0",
52
52
  "@types/node": "^22.19.11",
53
- "eslint": "^9.0.0",
54
- "eslint-config-prettier": "^9.0.0",
55
- "globals": "^14.0.0",
56
- "husky": "^8.0.3",
57
- "jest": "^29.7.0",
58
- "lint-staged": "^16.2.7",
53
+ "eslint": "^10.0.2",
54
+ "eslint-config-prettier": "^10.1.8",
55
+ "globals": "^17.3.0",
56
+ "husky": "^9.1.7",
57
+ "jest": "^30.2.0",
58
+ "lint-staged": "^16.3.0",
59
59
  "prettier": "^3.0.0",
60
60
  "ts-jest": "^29.4.6",
61
61
  "ts-node": "^10.9.2",