@rubytech/taskmaster 1.0.21 → 1.0.23
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/agents/apply-patch.js +3 -1
- package/dist/agents/bash-tools.exec.js +3 -1
- package/dist/agents/bash-tools.process.js +3 -1
- package/dist/build-info.json +3 -3
- package/dist/control-ui/assets/{index-CJPjbUly.css → index-BQEnHucA.css} +1 -1
- package/dist/control-ui/assets/{index-CII8VIT3.js → index-CkajwbDA.js} +164 -150
- package/dist/control-ui/assets/index-CkajwbDA.js.map +1 -0
- package/dist/control-ui/index.html +2 -2
- package/dist/infra/update-runner.js +26 -1
- package/package.json +1 -1
- package/dist/control-ui/assets/index-CII8VIT3.js.map +0 -1
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
<title>Taskmaster Control</title>
|
|
7
7
|
<meta name="color-scheme" content="dark light" />
|
|
8
8
|
<link rel="icon" type="image/png" href="./favicon.png" />
|
|
9
|
-
<script type="module" crossorigin src="./assets/index-
|
|
10
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
9
|
+
<script type="module" crossorigin src="./assets/index-CkajwbDA.js"></script>
|
|
10
|
+
<link rel="stylesheet" crossorigin href="./assets/index-BQEnHucA.css">
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|
|
13
13
|
<taskmaster-app></taskmaster-app>
|
|
@@ -10,6 +10,29 @@ const DEFAULT_TIMEOUT_MS = 20 * 60_000;
|
|
|
10
10
|
const MAX_LOG_CHARS = 8000;
|
|
11
11
|
const PREFLIGHT_MAX_COMMITS = 10;
|
|
12
12
|
const START_DIRS = ["cwd", "argv1", "process"];
|
|
13
|
+
/**
|
|
14
|
+
* Build an augmented PATH that includes common binary locations.
|
|
15
|
+
* The daemon's PATH may be minimal (system dirs only), so we
|
|
16
|
+
* prepend directories where pnpm, npm, bun, and Node typically live.
|
|
17
|
+
*/
|
|
18
|
+
function buildAugmentedPath() {
|
|
19
|
+
const home = os.homedir();
|
|
20
|
+
const extraDirs = [
|
|
21
|
+
path.dirname(process.execPath),
|
|
22
|
+
"/opt/homebrew/bin",
|
|
23
|
+
"/usr/local/bin",
|
|
24
|
+
path.join(home, ".local/share/pnpm"),
|
|
25
|
+
path.join(home, ".bun/bin"),
|
|
26
|
+
path.join(home, ".nvm/current/bin"),
|
|
27
|
+
path.join(home, ".fnm/current/bin"),
|
|
28
|
+
path.join(home, ".volta/bin"),
|
|
29
|
+
path.join(home, ".local/bin"),
|
|
30
|
+
path.join(home, ".npm-global/bin"),
|
|
31
|
+
];
|
|
32
|
+
const existingPath = process.env.PATH || "";
|
|
33
|
+
const allDirs = [...extraDirs, ...existingPath.split(path.delimiter)];
|
|
34
|
+
return [...new Set(allDirs.filter(Boolean))].join(path.delimiter);
|
|
35
|
+
}
|
|
13
36
|
function normalizeDir(value) {
|
|
14
37
|
if (!value)
|
|
15
38
|
return null;
|
|
@@ -213,6 +236,7 @@ export async function runGatewayUpdate(opts = {}) {
|
|
|
213
236
|
const candidates = buildStartDirs(opts);
|
|
214
237
|
let stepIndex = 0;
|
|
215
238
|
let gitTotalSteps = 0;
|
|
239
|
+
const augmentedPath = buildAugmentedPath();
|
|
216
240
|
const step = (name, argv, cwd, env) => {
|
|
217
241
|
const currentIndex = stepIndex;
|
|
218
242
|
stepIndex += 1;
|
|
@@ -222,7 +246,7 @@ export async function runGatewayUpdate(opts = {}) {
|
|
|
222
246
|
argv,
|
|
223
247
|
cwd,
|
|
224
248
|
timeoutMs,
|
|
225
|
-
env,
|
|
249
|
+
env: { PATH: augmentedPath, ...env },
|
|
226
250
|
progress,
|
|
227
251
|
stepIndex: currentIndex,
|
|
228
252
|
totalSteps: gitTotalSteps,
|
|
@@ -528,6 +552,7 @@ export async function runGatewayUpdate(opts = {}) {
|
|
|
528
552
|
argv: globalInstallArgs(globalManager, spec),
|
|
529
553
|
cwd: pkgRoot,
|
|
530
554
|
timeoutMs,
|
|
555
|
+
env: { PATH: augmentedPath },
|
|
531
556
|
progress,
|
|
532
557
|
stepIndex: 0,
|
|
533
558
|
totalSteps: 1,
|