@agentshouse/kit 0.1.0-alpha.5 → 0.1.0-alpha.6
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/README.md +1 -1
- package/package.json +1 -1
- package/src/house.js +6 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ On Linux `amd64` or `arm64` with a working Docker Engine, run the published,
|
|
|
10
10
|
versioned bootstrap once:
|
|
11
11
|
|
|
12
12
|
```sh
|
|
13
|
-
bash <(curl -fsSL https://github.com/agentshouse/kit/releases/download/v0.1.0-alpha.
|
|
13
|
+
bash <(curl -fsSL https://github.com/agentshouse/kit/releases/download/v0.1.0-alpha.6/connect-linux.sh)
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
The release asset pins one immutable multi-architecture image digest. It creates
|
package/package.json
CHANGED
package/src/house.js
CHANGED
|
@@ -480,6 +480,11 @@ export async function reportLogin(session, login, outcome, signal = session.sign
|
|
|
480
480
|
|
|
481
481
|
const envelope = declarationReader("kit_acquire_rejected");
|
|
482
482
|
|
|
483
|
+
function routineInput(value, declaration) {
|
|
484
|
+
if (typeof value !== "string" || Array.from(value).length > 20_000) envelope.refuse(declaration);
|
|
485
|
+
return value;
|
|
486
|
+
}
|
|
487
|
+
|
|
483
488
|
function acquiredRoute(value, declaration) {
|
|
484
489
|
const route = envelope.plain(value, declaration);
|
|
485
490
|
if (!Array.isArray(route.arguments)) envelope.refuse(`${declaration}.arguments`);
|
|
@@ -551,7 +556,7 @@ function acquiredRequest(acquired, declaration) {
|
|
|
551
556
|
name: envelope.text(routine.name, `${declaration}.routine.name`, 256),
|
|
552
557
|
version: envelope.positiveCount(routine.version, `${declaration}.routine.version`),
|
|
553
558
|
},
|
|
554
|
-
payload:
|
|
559
|
+
payload: routineInput(request.payload, `${declaration}.request.payload`),
|
|
555
560
|
requested_by: envelope.text(
|
|
556
561
|
request.requested_by,
|
|
557
562
|
`${declaration}.request.requested_by`,
|