@usine/executor 0.5.1-next.427.g89b2d00.1.1 → 0.5.1-next.429.g8c079aa.1.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/README.md CHANGED
@@ -10,6 +10,10 @@ Harness credential providers, login mounts, and login egress hosts come from the
10
10
 
11
11
  Worker preflight checks each coding-agent brain with the shared `admitBrain` policy before probing binaries or credentials. Pi's descriptor permits local children; remote and sandbox refusals include the role, missing placement, and adapter reason.
12
12
 
13
+ ## Orchestrator model access
14
+
15
+ `@usine/executor/gateway` exports `gatewayModelRouteFor(worker, repository, gateway)` for model runtimes on the orchestrator, including the coordinator and supervisor. It opens SSH forwards to the admin API and model proxy, checks the proxy's caller-token requirement, and registers an anonymous attachment. `credential(protocol)` reports the gateway's credential kind; `request(protocol, body, headers, signal)` streams a model response with the caller token. Provider credentials remain on the gateway. The attachment renews every two minutes, restores missing gateway state under the same ID, and detaches on scope closure.
16
+
13
17
  ## Attempt lifetime
14
18
 
15
19
  Call `Executor.prepare(request)` inside `Effect.scoped`, then `prepared.launch(io)` once. The `PreparedAttempt` owns the checkout and repo access. Its `workspace`, an `AttemptWorkspace` with the worker, run spec, and worktree path, serializes without credentials or live handles.
@@ -0,0 +1,22 @@
1
+ import type { GatewayCredentialKind, GatewayLlmProtocol } from "@usine/core/worker";
2
+ import { Effect, Option, Schema } from "effect";
3
+ import { HttpClient } from "effect/http";
4
+ import { ChildProcessSpawner } from "effect/process";
5
+ import type { SshWorkerGateway } from "../model.ts";
6
+ declare const GatewayModelError_base: Schema.Class<GatewayModelError, Schema.TaggedStruct<"GatewayModelError", {
7
+ readonly message: Schema.NonEmptyString;
8
+ }>, import("effect/Cause").YieldableError & {
9
+ readonly brand: unique symbol;
10
+ }>;
11
+ /** A gateway model route that could not be checked or used. Contains no credentials. */
12
+ export declare class GatewayModelError extends GatewayModelError_base {
13
+ }
14
+ /** Model access for runtimes on the orchestrator, including the coordinator and supervisor. */
15
+ export interface GatewayModelRoute {
16
+ readonly credential: (protocol: GatewayLlmProtocol) => Effect.Effect<Option.Option<GatewayCredentialKind>, GatewayModelError>;
17
+ readonly request: (protocol: GatewayLlmProtocol, body: string, headers: Readonly<Record<string, string>>, signal?: AbortSignal) => Effect.Effect<Response, GatewayModelError>;
18
+ }
19
+ /** Opens SSH forwards and a renewable anonymous attachment, and detaches it when the scope closes. */
20
+ export declare const gatewayModelRouteFor: (worker: string & import("effect/Brand").Brand<"WorkerName">, repository: string & import("effect/Brand").Brand<"RepositoryName">, gateway: SshWorkerGateway) => Effect.Effect<GatewayModelRoute, GatewayModelError, ChildProcessSpawner.ChildProcessSpawner | HttpClient.HttpClient | import("effect/Scope").Scope>;
21
+ export {};
22
+ //# sourceMappingURL=model-route.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model-route.d.ts","sourceRoot":"","sources":["../../../src/ssh/gateway/model-route.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,kBAAkB,EAAc,MAAM,oBAAoB,CAAC;AAKhG,OAAO,EAAqB,MAAM,EAAE,MAAM,EAAE,MAAM,EAAqB,MAAM,QAAQ,CAAC;AACtF,OAAO,EAAE,UAAU,EAAqB,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;;;;oBAOhC,OAAO,MAAM;;AAHjC,wFAAwF;AACxF,qBAAa,iBAAkB,SAAQ,sBAGwD;CAAG;AAElG,+FAA+F;AAC/F,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,UAAU,EAAE,CACnB,QAAQ,EAAE,kBAAkB,KACzB,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAAC,EAAE,iBAAiB,CAAC,CAAC;IAC5E,QAAQ,CAAC,OAAO,EAAE,CAChB,QAAQ,EAAE,kBAAkB,EAC5B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EACzC,MAAM,CAAC,EAAE,WAAW,KACjB,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC;CACjD;AAED,sGAAsG;AACtG,eAAO,MAAM,oBAAoB,sTAoKhC,CAAC"}
@@ -0,0 +1,93 @@
1
+ import { GatewayAdminPort } from "@usine/core/worker";
2
+ import { AnonymousCredential } from "@usine/gateway";
3
+ import { AttachRequest } from "@usine/gateway/admin";
4
+ import { Context, DateTime, Effect, Option, Schema, Semaphore, Stream } from "effect";
5
+ import { HttpClient, HttpClientRequest } from "effect/http";
6
+ import { ChildProcessSpawner } from "effect/process";
7
+ import { DEFAULT_SSH, remoteCommandsFor } from "../../remote/commands.js";
8
+ import { gatewayAdminFor } from "./admin.js";
9
+ import { gatewayForwardFor } from "./forward.js";
10
+ /** A gateway model route that could not be checked or used. Contains no credentials. */
11
+ export class GatewayModelError extends Schema.TaggedError("@usine/executor/GatewayModelError")("GatewayModelError", { message: Schema.NonEmptyString }) {
12
+ }
13
+ /** Opens SSH forwards and a renewable anonymous attachment, and detaches it when the scope closes. */
14
+ export const gatewayModelRouteFor = Effect.fn("GatewayModelRoute.open")(function* (worker, repository, gateway) {
15
+ yield* Effect.annotateCurrentSpan({ worker, gateway: gateway.destination });
16
+ const spawner = yield* ChildProcessSpawner.ChildProcessSpawner;
17
+ const commands = yield* remoteCommandsFor;
18
+ const shell = commands.shellFor(DEFAULT_SSH, gateway.destination);
19
+ const adminForward = yield* gatewayForwardFor(spawner, shell, gateway.destination, gateway.adminPort);
20
+ const admin = yield* gatewayAdminFor(worker, gateway, adminForward);
21
+ const modelForward = yield* gatewayForwardFor(spawner, shell, gateway.destination, GatewayAdminPort.make(80));
22
+ const http = yield* HttpClient.HttpClient;
23
+ const opened = yield* modelForward.current.pipe(Effect.catchTag("GatewayForwardClosed", (error) => modelForward.reopen(error.generation)));
24
+ const probe = yield* http
25
+ .get(new URL("/openai-responses/v1/models", opened.url), {
26
+ headers: { host: `llm.${gateway.domain}` },
27
+ })
28
+ .pipe(Effect.timeoutOrElse({
29
+ duration: "30 seconds",
30
+ orElse: () => GatewayModelError.make({
31
+ message: `The model proxy on gateway ${gateway.destination} did not answer within 30 seconds.`,
32
+ }),
33
+ }));
34
+ if (probe.status !== 401 ||
35
+ probe.headers["x-usine-gateway-refusal"] !== "missing-caller-token") {
36
+ return yield* GatewayModelError.make({
37
+ message: `The coordinator can't reach the model proxy on gateway ${gateway.destination}.`,
38
+ });
39
+ }
40
+ const failed = (message) => GatewayModelError.make({ message });
41
+ const requestFor = Effect.map(DateTime.now, (now) => AttachRequest.make({
42
+ worker,
43
+ repository,
44
+ credential: AnonymousCredential.make(),
45
+ expiresAt: DateTime.add(now, { hours: 1 }),
46
+ }));
47
+ const turn = yield* Semaphore.make(1);
48
+ const attached = yield* Effect.acquireRelease(Effect.flatMap(requestFor, admin.attach), ({ attachment }) => admin.detach(attachment.id).pipe(Effect.tapError((error) => Effect.logWarning("Could not detach the orchestrator model route; it expires in one hour", {
49
+ worker,
50
+ message: error.message,
51
+ })), Effect.ignore, turn.withPermits(1)));
52
+ yield* Effect.forever(Effect.sleep("2 minutes").pipe(Effect.andThen(Effect.flatMap(requestFor, (request) => admin.renew(attached.attachment.id, request)).pipe(turn.withPermits(1), Effect.uninterruptible)), Effect.tapError((error) => Effect.logWarning("Could not renew the orchestrator model route; will retry", {
53
+ worker,
54
+ message: error.message,
55
+ })), Effect.ignore)).pipe(Effect.forkScoped);
56
+ const credential = Effect.fn("GatewayModelRoute.credential")(function* (protocol) {
57
+ yield* Effect.annotateCurrentSpan({ worker, protocol });
58
+ const listed = yield* admin.providers;
59
+ if (Option.isNone(listed))
60
+ return yield* failed("Upgrade @usine/gateway: the coordinator requires gateway credential reporting.");
61
+ return Option.fromUndefinedOr(listed.value.providers.find(({ provider }) => provider === protocol)?.credential);
62
+ });
63
+ const request = Effect.fn("GatewayModelRoute.request")(function* (protocol, body, headers, signal) {
64
+ yield* Effect.annotateCurrentSpan({ worker, protocol });
65
+ const forward = yield* modelForward.current.pipe(Effect.catchTag("GatewayForwardClosed", (error) => modelForward.reopen(error.generation)));
66
+ const path = protocol === "openai-responses" ? "responses" : "messages";
67
+ const response = yield* http.execute(HttpClientRequest.post(new URL(`/${protocol}/v1/${path}`, forward.url)).pipe(HttpClientRequest.setHeaders(headers), HttpClientRequest.removeHeader("x-api-key"), HttpClientRequest.removeHeader("chatgpt-account-id"), HttpClientRequest.setHeader("host", `llm.${gateway.domain}`), HttpClientRequest.bearerToken(attached.callerToken), HttpClientRequest.bodyText(body, "application/json")));
68
+ return new Response(Stream.toReadableStreamWith(response.stream, Context.empty(), { signal }), {
69
+ status: response.status,
70
+ headers: response.headers,
71
+ });
72
+ });
73
+ yield* Effect.logInfo("Opened the orchestrator gateway model route", {
74
+ worker,
75
+ gateway: gateway.destination,
76
+ });
77
+ const route = {
78
+ credential: (protocol) => credential(protocol).pipe(Effect.mapError((error) => error._tag === "GatewayModelError"
79
+ ? error
80
+ : failed(`Can't check gateway credential for ${protocol} at ${gateway.destination}.`))),
81
+ request: (protocol, body, headers, signal) => request(protocol, body, headers, signal).pipe(Effect.mapError(() => failed(`Can't call ${protocol} through gateway ${gateway.destination}.`))),
82
+ };
83
+ return route;
84
+ }, Effect.mapError((error) => error._tag === "GatewayModelError"
85
+ ? error
86
+ : GatewayModelError.make({
87
+ message: error._tag === "GatewayAdminError"
88
+ ? error.message
89
+ : error._tag === "GatewayForwardClosed"
90
+ ? `Can't reach gateway ${error.gateway}: ${error.reason}.`
91
+ : `Can't open the orchestrator gateway model route (${error._tag}).`,
92
+ })));
93
+ //# sourceMappingURL=model-route.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model-route.js","sourceRoot":"","sources":["../../../src/ssh/gateway/model-route.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAA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-next.429.g8c079aa.1.1",
4
4
  "description": "The usine scoped Worker contract with local, exe.dev, SSH, and Cloudflare adapters.",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {
@@ -34,17 +34,21 @@
34
34
  "./ssh": {
35
35
  "types": "./dist/ssh/ssh.d.ts",
36
36
  "default": "./dist/ssh/ssh.js"
37
+ },
38
+ "./gateway": {
39
+ "types": "./dist/ssh/gateway/model-route.d.ts",
40
+ "default": "./dist/ssh/gateway/model-route.js"
37
41
  }
38
42
  },
39
43
  "publishConfig": {
40
44
  "access": "public"
41
45
  },
42
46
  "dependencies": {
43
- "@usine/agents": "0.6.1-next.427.g89b2d00.1.1",
44
- "@usine/core": "0.6.1-next.427.g89b2d00.1.1",
45
- "@usine/gateway": "0.2.2-next.427.g89b2d00.1.1",
46
- "@usine/durable": "0.2.2-next.427.g89b2d00.1.1",
47
- "@usine/cloudflare": "0.1.2-next.427.g89b2d00.1.1"
47
+ "@usine/agents": "0.6.1-next.429.g8c079aa.1.1",
48
+ "@usine/core": "0.6.1-next.429.g8c079aa.1.1",
49
+ "@usine/durable": "0.2.2-next.429.g8c079aa.1.1",
50
+ "@usine/gateway": "0.2.2-next.429.g8c079aa.1.1",
51
+ "@usine/cloudflare": "0.1.2-next.429.g8c079aa.1.1"
48
52
  },
49
53
  "devDependencies": {
50
54
  "@effect/platform-node": "4.0.6",