omp-conductor 0.18.1 → 0.18.2
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/REFERENCE.md +1 -1
- package/agents/to-spec.md +6 -2
- package/package.json +1 -1
- package/schema/config.schema.json +6 -1
- package/src/arm-challenge.ts +250 -57
- package/src/briefs/orchestrator.md +21 -8
- package/src/briefs/to-spec.md +6 -2
- package/src/cli.ts +122 -1
- package/src/command-manifest.ts +16 -5
- package/src/commands/arm.ts +1 -1
- package/src/commands/intake.ts +4 -19
- package/src/commands/watch.ts +4 -17
- package/src/config-schema.ts +19 -6
- package/src/config.ts +23 -8
- package/src/daemon.ts +150 -241
- package/src/decisions.ts +19 -11
- package/src/doctor.ts +55 -129
- package/src/escalate.ts +22 -11
- package/src/fleet.ts +93 -218
- package/src/host.ts +7 -332
- package/src/omp-settings.ts +19 -0
- package/src/omp.ts +11 -56
- package/src/orchestrator-tick.ts +225 -37
- package/src/session-host.ts +6 -41
- package/src/setup-host.ts +27 -10
- package/src/setup-wizard.ts +141 -1
- package/src/setup.ts +54 -4
- package/src/status-render.ts +138 -1
- package/src/to-spec.ts +23 -2
- package/src/types.ts +62 -6
- package/src/verbs/server.ts +38 -3
- package/src/worker.ts +0 -13
package/src/worker.ts
CHANGED
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
|
|
13
13
|
import { mkdirSync, readFileSync, readdirSync, writeFileSync } from "node:fs";
|
|
14
14
|
import { join } from "node:path";
|
|
15
|
-
import type { WorkerIdentity } from "./host.ts";
|
|
16
15
|
import { createSession, disposeSession, SessionAdmissionClosedError, type AgentSessionLike } from "./omp.ts";
|
|
17
16
|
import type { GateShape, ReleaseBlockContext } from "./release-policy.ts";
|
|
18
17
|
import type { Caps, GraphToolsObservation, ResolvedGrants, RunState } from "./types.ts";
|
|
@@ -218,17 +217,6 @@ export interface WorkerOpts {
|
|
|
218
217
|
onReleaseBlocked?: (shape: GateShape, context: ReleaseBlockContext) => void;
|
|
219
218
|
/** The child's pid, the instant it exists. See {@link VerbListener.bindPid}. */
|
|
220
219
|
onSpawn?: (pid: number) => void;
|
|
221
|
-
/**
|
|
222
|
-
* The worker identity this session runs under (#798): the dedicated
|
|
223
|
-
* least-privilege account the daemon resolved for worker launch. Forwarded
|
|
224
|
-
* to `createSession`, which launches the child through the identity
|
|
225
|
-
* transition (setpriv), re-points its environment at the worker's own home,
|
|
226
|
-
* grants it the control socket, and refuses the session unless its kernel
|
|
227
|
-
* uid/gid match. The daemon supplies it for every worker launch and refuses
|
|
228
|
-
* to dispatch a worker without it; absent, the session runs as the
|
|
229
|
-
* caller's own identity (orchestrator, tests).
|
|
230
|
-
*/
|
|
231
|
-
workerIdentity?: WorkerIdentity;
|
|
232
220
|
/** Control socket for that child, beside the run's own session directory. */
|
|
233
221
|
socketPath?: string;
|
|
234
222
|
/**
|
|
@@ -571,7 +559,6 @@ export async function runWorker(
|
|
|
571
559
|
role: "worker",
|
|
572
560
|
...(o.releaseGrants === undefined ? {} : { releaseGrants: o.releaseGrants }),
|
|
573
561
|
...(o.onReleaseBlocked === undefined ? {} : { onReleaseBlocked: o.onReleaseBlocked }),
|
|
574
|
-
...(o.workerIdentity === undefined ? {} : { identity: o.workerIdentity }),
|
|
575
562
|
...(o.onSpawn === undefined ? {} : { onSpawn: o.onSpawn }),
|
|
576
563
|
...(o.socketPath === undefined ? {} : { socketPath: o.socketPath }),
|
|
577
564
|
...(o.verbSocketPath === undefined ? {} : { verbSocketPath: o.verbSocketPath }),
|