@sweny-ai/core 0.1.187 → 0.1.189

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,5 +1,6 @@
1
1
  import * as fs from "node:fs";
2
2
  import * as path from "node:path";
3
+ import { parseEnv } from "node:util";
3
4
  import { parse as parseYaml } from "yaml";
4
5
  // Imported for its side effect too: the startup env snapshot is taken before loadDotenv runs.
5
6
  import { markWorkspaceEnv } from "../startup-env.js";
@@ -32,19 +33,9 @@ export function loadDotenv(cwd = process.cwd()) {
32
33
  catch {
33
34
  return; // no .env — silently skip
34
35
  }
35
- for (const line of content.split("\n")) {
36
- const trimmed = line.trim();
37
- if (!trimmed || trimmed.startsWith("#"))
38
- continue;
39
- const eqIndex = trimmed.indexOf("=");
40
- if (eqIndex === -1)
41
- continue;
42
- const key = trimmed.slice(0, eqIndex).trim();
43
- let value = trimmed.slice(eqIndex + 1).trim();
44
- // Strip surrounding quotes
45
- if ((value.startsWith('"') && value.endsWith('"')) || (value.startsWith("'") && value.endsWith("'"))) {
46
- value = value.slice(1, -1);
47
- }
36
+ // Node's own dotenv parser (util.parseEnv): inline `# comments`, quoted
37
+ // values, `export KEY=`, escaped and multiline double-quoted values, CRLF.
38
+ for (const [key, value] of Object.entries(parseEnv(content))) {
48
39
  if (process.env[key] !== undefined)
49
40
  continue;
50
41
  if (isDotenvDenied(key)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sweny-ai/core",
3
- "version": "0.1.187",
3
+ "version": "0.1.189",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "sweny": "./dist/cli/main.js"
@@ -8,7 +8,7 @@
8
8
  "description": "Skill library, DAG workflow orchestration, and E2E browser testing powered by Claude",
9
9
  "license": "MIT",
10
10
  "engines": {
11
- "node": ">=20"
11
+ "node": ">=22"
12
12
  },
13
13
  "exports": {
14
14
  ".": "./dist/index.js",
@@ -62,23 +62,23 @@
62
62
  "mutation": "stryker run"
63
63
  },
64
64
  "dependencies": {
65
- "@anthropic-ai/claude-agent-sdk": "^0.3.220",
66
- "@clack/prompts": "^1.7.0",
67
- "@modelcontextprotocol/sdk": "^1.29.0",
65
+ "@anthropic-ai/claude-agent-sdk": "^0.3.314",
66
+ "@clack/prompts": "^1.8.1",
67
+ "@modelcontextprotocol/sdk": "^1.32.2",
68
68
  "chalk": "^5",
69
69
  "commander": "^13",
70
- "yaml": "^2.9.0",
70
+ "yaml": "^2.9.1",
71
71
  "zod": "^4.0.0"
72
72
  },
73
73
  "devDependencies": {
74
- "@anthropic-ai/claude-code": "^2.1.220",
75
- "@stryker-mutator/core": "^10.0.0",
76
- "@stryker-mutator/vitest-runner": "^10.0.0",
74
+ "@anthropic-ai/claude-code": "^2.1.314",
75
+ "@stryker-mutator/core": "^10.1.1",
76
+ "@stryker-mutator/vitest-runner": "^10.1.1",
77
77
  "ajv": "^8.20.0",
78
- "esbuild": "^0.28.1",
78
+ "esbuild": "^0.28.2",
79
79
  "fast-check": "^3.23.2",
80
- "prettier": "^3.9.6",
81
- "vitest": "^4.1.11"
80
+ "prettier": "^3.9.10",
81
+ "vitest": "^4.1.12"
82
82
  },
83
83
  "publishConfig": {
84
84
  "access": "public"