5import { EventEmitter, addAbortListener, on, once, setMaxListeners } from "node:events";
L6: import { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
L7: import path, { basename, delimiter, dirname, isAbsolute, normalize, resolve } from "node:path";
...
L35: * Constructs the CommanderError class
L36: * @param {number} exitCode suggested exit code which could be used with process.exit
L37: * @param {string} code an id string representing the error
...
L181: * @return {string}
L182: * @private
L183: */
...
L196: * TypeScript import types for JSDoc, used by Visual Studio Code IntelliSense and `npm run typescript-checkJS`
L197: * https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html#import-types
L198: * @typedef { import("./argument.js").Argument } A
CriticalHardcoded Runtime Data Exfiltration
Source sends credentials or rich application records to a package-controlled external receiver enabled by default.
dist/index.jsView on unpkg · L5 5Trigger-reachable chain: manifest.main -> dist/index.js
L5: import { EventEmitter, addAbortListener, on, once, setMaxListeners } from "node:events";
L6: import { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
L7: import path, { basename, delimiter, dirname, isAbsolute, normalize, resolve } from "node:path";
...
L35: * Constructs the CommanderError class
L36: * @param {number} exitCode suggested exit code which could be used with process.exit
L37: * @param {string} code an id string representing the error
...
L181: * @return {string}
L182: * @private
L183: */
...
L196: * TypeScript import types for JSDoc, used by Visual Studio Code IntelliSense and `npm run typescript-checkJS`
L197: * https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html#import-types
CriticalTrigger Reachable Dangerous Capability
A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
dist/index.jsView on unpkg · L5 5import { EventEmitter, addAbortListener, on, once, setMaxListeners } from "node:events";
L6: import { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
L7: import path, { basename, delimiter, dirname, isAbsolute, normalize, resolve } from "node:path";
HighChild Process
Package source references child process execution.
dist/index.jsView on unpkg · L5 17005try {
L17006: await execa(packageManager || getPackageManager(), ["install"], {
L17007: cwd: projectPath,
...
L17017: }
L17018: const TEMPLATES_API_URL = process.env.MASTRA_TEMPLATES_API_URL || "https://mastra.ai/api/templates.json";
L17019: async function loadTemplates() {
HighSame File Env Network Execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
dist/index.jsView on unpkg · L17005 5import { EventEmitter, addAbortListener, on, once, setMaxListeners } from "node:events";
L6: import { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
L7: import path, { basename, delimiter, dirname, isAbsolute, normalize, resolve } from "node:path";
...
L35: * Constructs the CommanderError class
L36: * @param {number} exitCode suggested exit code which could be used with process.exit
L37: * @param {string} code an id string representing the error
...
L181: * @return {string}
L182: * @private
L183: */
...
L196: * TypeScript import types for JSDoc, used by Visual Studio Code IntelliSense and `npm run typescript-checkJS`
L197: * https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html#import-types
L198: * @typedef { import("./argument.js").Argument } A
HighSandbox Evasion Gated Capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
dist/index.jsView on unpkg · L5