@myagentroam/marctl 0.9.123 → 0.10.1
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/NOTICE +7 -0
- package/package.json +1 -1
- package/src/cli.mjs +1 -1
- package/src/config.mjs +1 -0
- package/src/direct.mjs +0 -3
- package/src/scp-worker.cjs +1 -0
package/NOTICE
CHANGED
|
@@ -2,3 +2,10 @@ MyAgentRoam
|
|
|
2
2
|
Copyright 2026 MyAgentRoam contributors
|
|
3
3
|
|
|
4
4
|
This product includes software developed by the MyAgentRoam project.
|
|
5
|
+
|
|
6
|
+
Enterprise implementation and product composition:
|
|
7
|
+
Copyright 2026 aCHAOS
|
|
8
|
+
Author and licensing contact: aCHAOS (achaosxyz@gmail.com)
|
|
9
|
+
Licensed under MyAgentRoam Enterprise Source-Available License 1.0; see
|
|
10
|
+
ee/LICENSE and LICENSING.md. Independent core and third-party notices remain
|
|
11
|
+
applicable; this attribution does not transfer any contributor's copyright.
|
package/package.json
CHANGED
package/src/cli.mjs
CHANGED
package/src/config.mjs
CHANGED
|
@@ -54,6 +54,7 @@ export async function loadConfig({
|
|
|
54
54
|
|
|
55
55
|
const keyValue = nonEmptyString(values.MAR_CTL_KEY);
|
|
56
56
|
if (keyValue === undefined) throw new MarctlError(translate('errors.configKeyMissing'));
|
|
57
|
+
// eslint-disable-next-line no-control-regex -- Reject control characters explicitly at the input boundary.
|
|
57
58
|
if (/[\u0000-\u001f\u007f]/u.test(keyValue))
|
|
58
59
|
throw new MarctlError(translate('errors.configKeyInvalid'));
|
|
59
60
|
|
package/src/direct.mjs
CHANGED
|
@@ -288,7 +288,6 @@ export async function openDirectTerminal({
|
|
|
288
288
|
class LiveControl {
|
|
289
289
|
#socket;
|
|
290
290
|
#timeoutMs;
|
|
291
|
-
#opened = false;
|
|
292
291
|
#ready = false;
|
|
293
292
|
#closed = false;
|
|
294
293
|
#waiters = new Set();
|
|
@@ -404,13 +403,11 @@ class LiveControl {
|
|
|
404
403
|
|
|
405
404
|
#waitForSocket(event, code) {
|
|
406
405
|
if (this.#socket.readyState === 1) {
|
|
407
|
-
this.#opened = true;
|
|
408
406
|
return Promise.resolve();
|
|
409
407
|
}
|
|
410
408
|
return new Promise((resolve, reject) => {
|
|
411
409
|
const onEvent = () => {
|
|
412
410
|
cleanup();
|
|
413
|
-
this.#opened = true;
|
|
414
411
|
resolve();
|
|
415
412
|
};
|
|
416
413
|
const onError = () => {
|
package/src/scp-worker.cjs
CHANGED
|
@@ -82,6 +82,7 @@ async function destinationPath() {
|
|
|
82
82
|
sourceBasename.includes('\0') ||
|
|
83
83
|
targetPath.basename(sourceBasename) !== sourceBasename ||
|
|
84
84
|
(process.platform === 'win32' &&
|
|
85
|
+
// eslint-disable-next-line no-control-regex -- Reject control characters explicitly at the input boundary.
|
|
85
86
|
(/[<>:"/\\|?*\x00-\x1f]/u.test(sourceBasename) ||
|
|
86
87
|
/[. ]$/u.test(sourceBasename) ||
|
|
87
88
|
/^(?:CON|PRN|AUX|NUL|COM[1-9¹²³]|LPT[1-9¹²³])(?:\.|$)/iu.test(sourceBasename)))
|