@sjawhar/pi-legion 19.36.0 → 19.38.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/legion.js
CHANGED
|
@@ -18516,6 +18516,7 @@ var ActorOriginSchema = strictObject({
|
|
|
18516
18516
|
var DISPATCH_SCOPES = ["person", "approve"];
|
|
18517
18517
|
var ActorActSchema = strictObject({
|
|
18518
18518
|
session: string2().optional(),
|
|
18519
|
+
session_proven: literal(true).optional(),
|
|
18519
18520
|
token_id: string2().optional(),
|
|
18520
18521
|
token_name: string2().optional(),
|
|
18521
18522
|
scopes: array(_enum2(DISPATCH_SCOPES)).optional()
|
|
@@ -18524,7 +18525,8 @@ var ActorSchema = union([
|
|
|
18524
18525
|
strictObject({
|
|
18525
18526
|
kind: literal("user"),
|
|
18526
18527
|
id: string2(),
|
|
18527
|
-
act: ActorActSchema.optional()
|
|
18528
|
+
act: ActorActSchema.optional(),
|
|
18529
|
+
proven: literal(true).optional()
|
|
18528
18530
|
}).readonly(),
|
|
18529
18531
|
strictObject({
|
|
18530
18532
|
kind: literal("session"),
|
|
@@ -18532,7 +18534,8 @@ var ActorSchema = union([
|
|
|
18532
18534
|
origin: ActorOriginSchema.optional(),
|
|
18533
18535
|
owner: string2().optional(),
|
|
18534
18536
|
service: string2().optional(),
|
|
18535
|
-
project: string2().optional()
|
|
18537
|
+
project: string2().optional(),
|
|
18538
|
+
proven: literal(true).optional()
|
|
18536
18539
|
}).readonly(),
|
|
18537
18540
|
strictObject({ kind: literal("system"), id: string2() }).readonly()
|
|
18538
18541
|
]);
|
|
@@ -29916,7 +29919,7 @@ import { logger as logger3 } from "@oh-my-pi/pi-utils";
|
|
|
29916
29919
|
// package.json
|
|
29917
29920
|
var package_default = {
|
|
29918
29921
|
name: "@sjawhar/pi-legion",
|
|
29919
|
-
version: "19.
|
|
29922
|
+
version: "19.38.0",
|
|
29920
29923
|
license: "Apache-2.0",
|
|
29921
29924
|
type: "module",
|
|
29922
29925
|
omp: {
|
|
@@ -29928,7 +29931,7 @@ var package_default = {
|
|
|
29928
29931
|
]
|
|
29929
29932
|
},
|
|
29930
29933
|
legion: {
|
|
29931
|
-
daemonApiVersion:
|
|
29934
|
+
daemonApiVersion: 151
|
|
29932
29935
|
},
|
|
29933
29936
|
repository: {
|
|
29934
29937
|
type: "git",
|
|
@@ -12,9 +12,12 @@ An issue pod runs no heavy build and no whole test suite. The pod's six roles sh
|
|
|
12
12
|
limit. Near that limit the launcher's memory guard, where the deployment runs it (it is on by
|
|
13
13
|
default), stops, with SIGKILL, the largest process that is neither Legion's own nor an agent's own,
|
|
14
14
|
which in practice is a command an agent ran: a build, a test binary, a Python or JavaScript kernel.
|
|
15
|
-
It then tells that process's role why, in a message on the role's topic.
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
It then tells that process's role why, in a message on the role's topic. In a pod that runs in a
|
|
16
|
+
microVM, the pod's own kernel stops such a command in place of the guard where each of the pod's
|
|
17
|
+
requests equals its limit, and the role is told the same way; in a pod that requests less, it can
|
|
18
|
+
stop an agent instead. The command fails and the turn goes on. In a gVisor pod, a command that
|
|
19
|
+
fills the memory faster than the guard can stop it still takes the pod past its limit, and that
|
|
20
|
+
ends every role's turn, not only yours.
|
|
18
21
|
|
|
19
22
|
In the pod you compile the packages your change touches, run by name the tests you added or
|
|
20
23
|
changed (`go test -run '<TestName>' ./internal/<package>/`, or `bun test` with their files), build
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sjawhar/pi-legion",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.38.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"omp": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
]
|
|
13
13
|
},
|
|
14
14
|
"legion": {
|
|
15
|
-
"daemonApiVersion":
|
|
15
|
+
"daemonApiVersion": 151
|
|
16
16
|
},
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|