agent-enderun 0.0.2 → 0.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/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [0.0.4] - 2026-05-09
6
+
7
+ ### Changed
8
+ - Standardized package manager to npm across all documentation and CLI behavior.
9
+ - Removed pnpm and workspace protocol references from default agent setup.
10
+ - Simplified package manager detection to prefer npm and respect explicit overrides.
11
+
12
+ ## [0.0.3] - 2026-05-09
13
+
14
+ ### Fixed
15
+ - Updated the package to `0.0.3` for npm republish and workspace-compatible CLI install behavior.
16
+
5
17
  ## [0.0.2] - 2026-05-09
6
18
 
7
19
  ### Fixed
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Agent Enderun (v0.0.2)
1
+ # Agent Enderun (v0.0.4)
2
2
 
3
3
  [English](#english) | [Türkçe](#türkçe)
4
4
 
@@ -85,7 +85,6 @@ Agent Enderun detects the package manager automatically, but you can also force
85
85
  ```bash
86
86
  AGENT_ENDERUN_PACKAGE_MANAGER=npm npx agent-enderun init gemini
87
87
  AGENT_ENDERUN_PACKAGE_MANAGER=yarn npx agent-enderun init gemini
88
- AGENT_ENDERUN_PACKAGE_MANAGER=pnpm npx agent-enderun init gemini
89
88
  ```
90
89
 
91
90
  > Legacy environment variables `AI_ENDERUN_PACKAGE_MANAGER` and `AGENT_ENDERUN_PM` are still accepted for compatibility.
@@ -98,7 +97,7 @@ npm install && npm run enderun:build
98
97
  agent-enderun check
99
98
  ```
100
99
 
101
- If you already use `pnpm` or `yarn`, the CLI will prefer the correct lockfile and runtime environment.
100
+ > Agent Enderun is built and optimized for npm. If you prefer yarn, you can explicitly set `AGENT_ENDERUN_PACKAGE_MANAGER=yarn`.
102
101
 
103
102
  ## CLI Quick Reference
104
103
 
@@ -229,7 +228,6 @@ Agent Enderun, paket yöneticisini otomatik algılar; ancak aşağıdaki değiş
229
228
  ```bash
230
229
  AGENT_ENDERUN_PACKAGE_MANAGER=npm npx agent-enderun init gemini
231
230
  AGENT_ENDERUN_PACKAGE_MANAGER=yarn npx agent-enderun init gemini
232
- AGENT_ENDERUN_PACKAGE_MANAGER=pnpm npx agent-enderun init gemini
233
231
  ```
234
232
 
235
233
  ### Önerilen kurulum akışı
package/bin/cli.js CHANGED
@@ -5,6 +5,7 @@ import fs from "fs";
5
5
  import path from "path";
6
6
  import { fileURLToPath } from "url";
7
7
  import crypto from "crypto";
8
+ import { execSync } from "child_process";
8
9
 
9
10
  const __filename = fileURLToPath(import.meta.url);
10
11
  const __dirname = path.dirname(__filename);
@@ -158,11 +159,6 @@ function mergePackageJson(targetPath, sourcePath) {
158
159
  if (!targetPkg.version) targetPkg.version = "0.1.0";
159
160
  if (!targetPkg.type) targetPkg.type = "module";
160
161
 
161
- // Add workspaces if it's a new project or doesn't have them
162
- if (!targetPkg.workspaces && !fs.existsSync(path.join(process.cwd(), "pnpm-workspace.yaml"))) {
163
- targetPkg.workspaces = ["packages/*"];
164
- }
165
-
166
162
  // Add metadata
167
163
  targetPkg.enderun = {
168
164
  version: sourcePkg.version,
@@ -287,17 +283,10 @@ function getPackageManager() {
287
283
  if (override) return override.toLowerCase();
288
284
 
289
285
  const userAgent = process.env.npm_config_user_agent || "";
290
- if (userAgent.includes("pnpm")) return "pnpm";
291
- if (userAgent.includes("yarn")) return "yarn";
292
- if (userAgent.includes("npm")) return "npm";
293
-
294
286
  const npmExecPath = process.env.npm_execpath || "";
295
- if (npmExecPath.includes("pnpm")) return "pnpm";
296
- if (npmExecPath.includes("yarn")) return "yarn";
297
- if (npmExecPath.includes("npm")) return "npm";
298
287
 
299
- if (fs.existsSync(path.join(process.cwd(), "pnpm-lock.yaml"))) return "pnpm";
300
- if (fs.existsSync(path.join(process.cwd(), "yarn.lock")) || fs.existsSync(path.join(process.cwd(), "yarn.lock.json"))) return "yarn";
288
+ if (userAgent.includes("yarn") || npmExecPath.includes("yarn")) return "yarn";
289
+
301
290
  return "npm";
302
291
  }
303
292
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-enderun",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "agent-enderun": "./bin/cli.js"
@@ -1,3 +0,0 @@
1
- packages:
2
- - 'apps/*'
3
- - 'packages/*'