@usine/durable 0.2.1-next.273.g2ca5ae8 → 0.2.1-next.276.g9af38cb

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
@@ -20,6 +20,10 @@ const attempts = durableLayer(instanceDirectory);
20
20
 
21
21
  Building the layer installs the usine extension and resumes tasks. Closing it writes no task outcome, so the next start resumes the same work.
22
22
 
23
+ Before opening the first harness, `/live` installs Pi's HTTP dispatcher once for the process. It uses HTTP/1.1, CONNECT proxy tunnels, five-minute body and header timeouts, and a two-second address-family connection attempt timeout. Pi's global `httpProxy` setting fills unset `HTTP_PROXY` and `HTTPS_PROXY` variables; existing environment values and `NO_PROXY` retain their precedence. Project settings do not configure the proxy.
24
+
25
+ The dispatcher applies to all server requests, including GitHub, gateway administration, and Boat. The adapter installs undici's fetch globals together with the dispatcher, preserving a fetch override made after importing `/live`. Reopening a harness reuses the dispatcher. Restart the server to apply proxy changes.
26
+
23
27
  The Pi packages are pinned together at 1.4.0. The attempt and hold documents use explicit checkpoint policies that keep ordinary updates as deltas, preserving their stored format and behavior from Pi 1.2.0.
24
28
 
25
29
  ## Run an attempt
@@ -0,0 +1,3 @@
1
+ import { Effect } from "effect";
2
+ export declare const configureHarnessHttp: (httpProxy: string | undefined) => Effect.Effect<void, import("./harness.ts").DurableHarnessError, never>;
3
+ //# sourceMappingURL=http-dispatcher.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-dispatcher.d.ts","sourceRoot":"","sources":["../src/http-dispatcher.ts"],"names":[],"mappings":"AAuBA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AA+BhC,eAAO,MAAM,oBAAoB,2GAsC/B,CAAC"}
@@ -0,0 +1,75 @@
1
+ // Adapted from @earendil-works/pi-coding-agent 1.4.0, src/core/http-dispatcher.ts.
2
+ // https://github.com/earendil-works/pi/blob/v1.4.0/packages/coding-agent/src/core/http-dispatcher.ts
3
+ // MIT License, Copyright (c) Mario Zechner and contributors.
4
+ //
5
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ // of this software and associated documentation files (the "Software"), to deal
7
+ // in the Software without restriction, including without limitation the rights
8
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ // copies of the Software, and to permit persons to whom the Software is
10
+ // furnished to do so, subject to the following conditions:
11
+ //
12
+ // The above copyright notice and this permission notice shall be included in all
13
+ // copies or substantial portions of the Software.
14
+ //
15
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ // SOFTWARE.
22
+ import { EventEmitter } from "node:events";
23
+ import { Effect } from "effect";
24
+ import { Client, EnvHttpProxyAgent, install, Pool, setGlobalDispatcher, } from "undici";
25
+ import { durableError } from "./harness.js";
26
+ const originalFetch = globalThis.fetch;
27
+ let installed = false;
28
+ // The response body still rejects; this prevents an unhandled EventEmitter error
29
+ // from terminating the orchestrator when undici tears down a broken stream.
30
+ const ignoreDispatcherError = () => { };
31
+ const withErrorListener = (dispatcher) => {
32
+ EventEmitter.prototype.on.call(dispatcher, "error", ignoreDispatcherError);
33
+ return dispatcher;
34
+ };
35
+ const createClient = (origin, options) => withErrorListener(new Client(origin, options));
36
+ const createOriginDispatcher = (origin, options) => options.connections === 1
37
+ ? createClient(origin, options)
38
+ : withErrorListener(new Pool(origin, { ...options, factory: createClient }));
39
+ export const configureHarnessHttp = Effect.fn("DurableHarness.configureHttp")(function* (httpProxy) {
40
+ if (installed) {
41
+ yield* Effect.logDebug("Durable harness HTTP dispatcher already installed");
42
+ return;
43
+ }
44
+ const replacedFetch = yield* Effect.try({
45
+ try: () => {
46
+ const proxy = httpProxy?.trim();
47
+ if (proxy) {
48
+ process.env.HTTP_PROXY ??= proxy;
49
+ process.env.HTTPS_PROXY ??= proxy;
50
+ }
51
+ const dispatcher = withErrorListener(new EnvHttpProxyAgent({
52
+ allowH2: false,
53
+ proxyTunnel: true,
54
+ bodyTimeout: 300_000,
55
+ headersTimeout: 300_000,
56
+ connect: { autoSelectFamilyAttemptTimeout: 2_000 },
57
+ clientFactory: createClient,
58
+ factory: createOriginDispatcher,
59
+ }));
60
+ setGlobalDispatcher(dispatcher);
61
+ const replaceFetch = globalThis.fetch === originalFetch;
62
+ if (replaceFetch)
63
+ install();
64
+ installed = true;
65
+ return replaceFetch;
66
+ },
67
+ catch: (cause) => durableError("configure the harness HTTP dispatcher", cause),
68
+ });
69
+ yield* Effect.logInfo("Durable harness HTTP dispatcher installed", {
70
+ bodyTimeoutMs: 300_000,
71
+ headersTimeoutMs: 300_000,
72
+ replacedFetch,
73
+ });
74
+ });
75
+ //# sourceMappingURL=http-dispatcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-dispatcher.js","sourceRoot":"","sources":["../src/http-dispatcher.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,qGAAqG;AACrG,6DAA6D;AAC7D,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,+EAA+E;AAC/E,4EAA4E;AAC5E,wEAAwE;AACxE,2DAA2D;AAC3D,EAAE;AACF,iFAAiF;AACjF,kDAAkD;AAClD,EAAE;AACF,6EAA6E;AAC7E,2EAA2E;AAC3E,8EAA8E;AAC9E,yEAAyE;AACzE,gFAAgF;AAChF,gFAAgF;AAChF,YAAY;AAEZ,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAA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AA+CjE;;;GAGG;AACH,eAAO,MAAM,YAAY,sBAAuB,iBAAiB,0GACc,CAAC;AAQhF,+FAA+F;AAC/F,eAAO,MAAM,iBAAiB,sLAAiE,CAAC;AAEhG;;;GAGG;AACH,eAAO,MAAM,KAAK,sBAAuB,iBAAiB,uQAIvD,CAAC"}
1
+ {"version":3,"file":"live.d.ts","sourceRoot":"","sources":["../src/live.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAsB,KAAK,EAAgB,MAAM,QAAQ,CAAC;AAiDjE;;;GAGG;AACH,eAAO,MAAM,YAAY,sBAAuB,iBAAiB,0GACc,CAAC;AAQhF,+FAA+F;AAC/F,eAAO,MAAM,iBAAiB,sLAAiE,CAAC;AAEhG;;;GAGG;AACH,eAAO,MAAM,KAAK,sBAAuB,iBAAiB,uQAIvD,CAAC"}
package/dist/live.js CHANGED
@@ -9,18 +9,20 @@ import { Effect, FileSystem, Layer, Option, Path } from "effect";
9
9
  import { layer as attemptRuntimeLayer } from "./attempt/runtime.js";
10
10
  import { durableError, layer as durableHarnessLayer, } from "./harness.js";
11
11
  import { durableStoragePath } from "./storage-path.js";
12
+ import { configureHarnessHttp } from "./http-dispatcher.js";
12
13
  const nodeOptions = Effect.fn("DurableHarness.nodeOptions")(function* (instanceDirectory) {
13
14
  const fileSystem = yield* FileSystem.FileSystem;
14
15
  const path = yield* Path.Path;
15
16
  const file = durableStoragePath(path, instanceDirectory);
16
- const models = yield* Effect.tryPromise({
17
- try: (signal) => ModelRuntime.create({ signal }),
18
- catch: (cause) => durableError("load the Pi model runtime", cause),
19
- });
20
17
  // Only the Pi user's global settings: the instance folder's own `.pi/` is not trusted.
21
18
  const settings = SettingsManager.create(instanceDirectory, getAgentDir(), {
22
19
  projectTrusted: false,
23
20
  });
21
+ yield* configureHarnessHttp(settings.getGlobalSettings().httpProxy);
22
+ const models = yield* Effect.tryPromise({
23
+ try: (signal) => ModelRuntime.create({ signal }),
24
+ catch: (cause) => durableError("load the Pi model runtime", cause),
25
+ });
24
26
  const defaultModel = Option.flatMap(Option.fromNullishOr(settings.getDefaultProvider()), (provider) => Option.map(Option.fromNullishOr(settings.getDefaultModel()), (modelId) => ({
25
27
  provider,
26
28
  modelId,
package/dist/live.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"live.js","sourceRoot":"","sources":["../src/live.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAE7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,gDAAgD,CAAC;AACvF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACjE,OAAO,EAAE,KAAK,IAAI,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAEL,YAAY,EACZ,KAAK,IAAI,mBAAmB,GAC7B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,MAAM,WAAW,GAAG,MAAM,CAAC,EAAE,CAAC,4BAA4B,CAAC,CAAC,QAAQ,CAAC,EACnE,iBAAoC;IAEpC,MAAM,UAAU,GAAG,KAAK,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC;IAChD,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI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AAC,CAAC;AAEvC;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,iBAAoC,EAAE,EAAE,CACnE,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,iBAAiB,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC;AAEhF,MAAM,oBAAoB,GAAG,KAAK,CAAC,QAAQ,CACzC,uBAAuB,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,EAC1D,sBAAsB,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,EAC9D,mBAAmB,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CACnD,CAAC;AAEF,+FAA+F;AAC/F,MAAM,CAAC,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC;AAEhG;;;GAGG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,iBAAoC,EAAE,EAAE,CAC5D,mBAAmB,CAAC,IAAI,CACtB,KAAK,CAAC,YAAY,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAC,EACnD,KAAK,CAAC,OAAO,CAAC,iBAAiB,CAAC,CACjC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usine/durable",
3
- "version": "0.2.1-next.273.g2ca5ae8",
3
+ "version": "0.2.1-next.276.g9af38cb",
4
4
  "description": "The usine Pi parent on pi-durable storage: one durable conversation per Attempt, resumed after an orchestrator restart.",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {
@@ -51,8 +51,9 @@
51
51
  "@earendil-works/pi-tui": "1.4.0",
52
52
  "@effect/platform-node": "4.0.6",
53
53
  "@effect/platform-node-shared": "4.0.6",
54
- "@usine/agents": "0.5.1-next.273.g2ca5ae8",
55
- "@usine/core": "0.5.1-next.273.g2ca5ae8"
54
+ "undici": "^8.12.2",
55
+ "@usine/agents": "0.5.1-next.276.g9af38cb",
56
+ "@usine/core": "0.5.1-next.276.g9af38cb"
56
57
  },
57
58
  "devDependencies": {
58
59
  "@effect/vitest": "4.0.6",