@rudderhq/cli 0.2.9-canary.9 → 0.2.10-canary.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.
- package/dist/index.js +11 -5
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3882,7 +3882,7 @@ async function ensureRuntimeInstalled(options) {
|
|
|
3882
3882
|
const packageVersion = resolveRuntimePackageVersion(options.version);
|
|
3883
3883
|
const cacheDir = resolveRuntimeCacheDir(packageVersion, options.homeDir);
|
|
3884
3884
|
const packageSpec = resolveRuntimePackageSpec(packageVersion, packageName);
|
|
3885
|
-
const command =
|
|
3885
|
+
const command = formatRuntimeInstallCommand(cacheDir, packageSpec);
|
|
3886
3886
|
if (await isRuntimeCacheHit({ cacheDir, version: packageVersion, packageName })) {
|
|
3887
3887
|
await touchRuntimeInstallMetadata(cacheDir);
|
|
3888
3888
|
const prune2 = await maybePruneRuntimeCache({
|
|
@@ -3909,7 +3909,7 @@ async function ensureRuntimeInstalled(options) {
|
|
|
3909
3909
|
status: "hit",
|
|
3910
3910
|
cacheDir: fallbackCacheDir,
|
|
3911
3911
|
packageSpec: fallbackSpec,
|
|
3912
|
-
command:
|
|
3912
|
+
command: formatRuntimeInstallCommand(fallbackCacheDir, fallbackSpec),
|
|
3913
3913
|
output: ""
|
|
3914
3914
|
};
|
|
3915
3915
|
}
|
|
@@ -3931,7 +3931,7 @@ async function ensureRuntimeInstalled(options) {
|
|
|
3931
3931
|
status: "installed",
|
|
3932
3932
|
cacheDir: fallbackCacheDir,
|
|
3933
3933
|
packageSpec: fallbackSpec,
|
|
3934
|
-
command:
|
|
3934
|
+
command: formatRuntimeInstallCommand(fallbackCacheDir, fallbackSpec),
|
|
3935
3935
|
output: fallbackOutput
|
|
3936
3936
|
};
|
|
3937
3937
|
}
|
|
@@ -3968,7 +3968,7 @@ async function importRuntimeServerModule(cacheDir, packageName = RUNTIME_NPM_PAC
|
|
|
3968
3968
|
function runNpmRuntimeInstall(spawnSyncImpl, cacheDir, packageSpec) {
|
|
3969
3969
|
return spawnSyncImpl(
|
|
3970
3970
|
process.platform === "win32" ? "npm.cmd" : "npm",
|
|
3971
|
-
["install", "--prefix", cacheDir,
|
|
3971
|
+
["install", "--prefix", cacheDir, ...RUNTIME_NPM_INSTALL_FLAGS, packageSpec],
|
|
3972
3972
|
{
|
|
3973
3973
|
encoding: "utf8",
|
|
3974
3974
|
stdio: ["ignore", "pipe", "pipe"],
|
|
@@ -3976,6 +3976,9 @@ function runNpmRuntimeInstall(spawnSyncImpl, cacheDir, packageSpec) {
|
|
|
3976
3976
|
}
|
|
3977
3977
|
);
|
|
3978
3978
|
}
|
|
3979
|
+
function formatRuntimeInstallCommand(cacheDir, packageSpec) {
|
|
3980
|
+
return `npm install --prefix ${cacheDir} ${RUNTIME_NPM_INSTALL_FLAGS.join(" ")} ${packageSpec}`;
|
|
3981
|
+
}
|
|
3979
3982
|
function collectSpawnOutput(result) {
|
|
3980
3983
|
return [result.stdout, result.stderr, result.error instanceof Error ? result.error.message : null].filter((value) => typeof value === "string" && value.trim().length > 0).join("\n").trim();
|
|
3981
3984
|
}
|
|
@@ -4204,7 +4207,7 @@ function parseRuntimeVersion(version) {
|
|
|
4204
4207
|
canaryNumber: canaryMatch ? Number(canaryMatch[1]) : null
|
|
4205
4208
|
};
|
|
4206
4209
|
}
|
|
4207
|
-
var RUNTIME_NPM_PACKAGE_NAME, RUNTIME_METADATA_FILE, DEFAULT_RUNTIME_CACHE_MAX_ENTRIES, DEFAULT_RUNTIME_CACHE_MAX_AGE_MS, DEFAULT_RUNTIME_CACHE_MAX_BYTES, DEFAULT_RUNTIME_CACHE_KEEP_PREVIOUS, RuntimeInstallError;
|
|
4210
|
+
var RUNTIME_NPM_PACKAGE_NAME, RUNTIME_METADATA_FILE, DEFAULT_RUNTIME_CACHE_MAX_ENTRIES, DEFAULT_RUNTIME_CACHE_MAX_AGE_MS, DEFAULT_RUNTIME_CACHE_MAX_BYTES, DEFAULT_RUNTIME_CACHE_KEEP_PREVIOUS, RUNTIME_NPM_INSTALL_FLAGS, RuntimeInstallError;
|
|
4208
4211
|
var init_install = __esm({
|
|
4209
4212
|
"src/runtime/install.ts"() {
|
|
4210
4213
|
"use strict";
|
|
@@ -4215,6 +4218,7 @@ var init_install = __esm({
|
|
|
4215
4218
|
DEFAULT_RUNTIME_CACHE_MAX_AGE_MS = 14 * 24 * 60 * 60 * 1e3;
|
|
4216
4219
|
DEFAULT_RUNTIME_CACHE_MAX_BYTES = 2 * 1024 * 1024 * 1024;
|
|
4217
4220
|
DEFAULT_RUNTIME_CACHE_KEEP_PREVIOUS = 1;
|
|
4221
|
+
RUNTIME_NPM_INSTALL_FLAGS = ["--omit=dev", "--include=optional", "--no-audit", "--no-fund"];
|
|
4218
4222
|
RuntimeInstallError = class extends Error {
|
|
4219
4223
|
cacheDir;
|
|
4220
4224
|
command;
|
|
@@ -11200,6 +11204,8 @@ var RUDDER_AGENT_OPERATING_CONTRACT = [
|
|
|
11200
11204
|
"",
|
|
11201
11205
|
"When you write issue comments or chat replies, match the language of the user's or board's most recent substantive message unless they explicitly ask for a different language.",
|
|
11202
11206
|
"",
|
|
11207
|
+
"When an issue comment is meant to get another agent's attention, mention that agent explicitly with Rudder's agent mention syntax, such as `@AgentName` in the issue composer or a structured markdown link like `[@AgentName](agent://agent-id)`. Mentioning an agent requests attention or collaboration; it does not transfer issue ownership unless the comment also makes an explicit handoff and normal checkout rules allow it.",
|
|
11208
|
+
"",
|
|
11203
11209
|
"When an issue comment, done comment, or blocker comment cites visual evidence from a local screenshot/image path, attach the image with the Rudder CLI `--image <path>` option instead of leaving only the filesystem path in the text.",
|
|
11204
11210
|
"",
|
|
11205
11211
|
"## Memory and Planning",
|