@stackone/agent-config
Advanced tools
+8
-3
@@ -40,6 +40,11 @@ var __create = Object.create; | ||
| var import_meta = {}; | ||
| var __filename = (0, import_node_url.fileURLToPath)(import_meta.url); | ||
| var __dirname = path.dirname(__filename); | ||
| function getDirname() { | ||
| if (typeof import_meta !== "undefined" && import_meta.url) { | ||
| return path.dirname((0, import_node_url.fileURLToPath)(import_meta.url)); | ||
| } | ||
| return typeof __dirname !== "undefined" ? __dirname : process.cwd(); | ||
| } | ||
| var packageDir = getDirname(); | ||
| function getAgentConfigPath() { | ||
| return path.join(__dirname, "..", "agent.md"); | ||
| return path.join(packageDir, "..", "agent.md"); | ||
| } | ||
@@ -46,0 +51,0 @@ function getConfig() { |
+8
-3
@@ -5,6 +5,11 @@ // src/index.ts | ||
| import { fileURLToPath } from "url"; | ||
| var __filename = fileURLToPath(import.meta.url); | ||
| var __dirname = path.dirname(__filename); | ||
| function getDirname() { | ||
| if (typeof import.meta !== "undefined" && import.meta.url) { | ||
| return path.dirname(fileURLToPath(import.meta.url)); | ||
| } | ||
| return typeof __dirname !== "undefined" ? __dirname : process.cwd(); | ||
| } | ||
| var packageDir = getDirname(); | ||
| function getAgentConfigPath() { | ||
| return path.join(__dirname, "..", "agent.md"); | ||
| return path.join(packageDir, "..", "agent.md"); | ||
| } | ||
@@ -11,0 +16,0 @@ function getConfig() { |
+1
-1
| { | ||
| "name": "@stackone/agent-config", | ||
| "version": "1.0.7", | ||
| "version": "1.0.8", | ||
| "description": "Configuration utilities and shared agent instructions for StackOne projects", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
37870
0.86%104
10.64%