@alan-ai-hq/agent-manager-darwin-arm64 0.1.172 → 0.1.173

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/alan-agent.cjs CHANGED
@@ -22043,7 +22043,8 @@ var init_github_proxy = __esm({
22043
22043
  GITHUB_PROXY_REFUSAL_CODES = [
22044
22044
  "host_not_proxied",
22045
22045
  "machine_not_allowed",
22046
- "github_not_connected"
22046
+ "github_not_connected",
22047
+ "github_installation_unavailable"
22047
22048
  ];
22048
22049
  gitHubProxyErrorSchema = external_exports.object({
22049
22050
  message: external_exports.string().min(1),
@@ -58395,7 +58396,7 @@ var import_node_worker_threads2 = require("worker_threads");
58395
58396
  // package.json
58396
58397
  var package_default = {
58397
58398
  name: "@alan-ai-hq/agent-manager",
58398
- version: "0.1.172",
58399
+ version: "0.1.173",
58399
58400
  private: true,
58400
58401
  type: "module",
58401
58402
  description: "Alan machine runtime (alan-agent): identity, link, reconciler, session holders, run log, uploader, local API",
@@ -58851,8 +58852,8 @@ function readBody(incoming, url3, maxBytes) {
58851
58852
  incoming.on("end", () => resolve14(Buffer.concat(chunks)));
58852
58853
  });
58853
58854
  }
58854
- function isConnectionReset(error62) {
58855
- return error62 instanceof Error && "code" in error62 && (error62.code === "ECONNRESET" || error62.code === "EPIPE");
58855
+ function isRetryableConnectionError(error62) {
58856
+ return error62 instanceof Error && "code" in error62 && (error62.code === "ECONNABORTED" || error62.code === "ECONNRESET" || error62.code === "EPIPE");
58856
58857
  }
58857
58858
  function exchange(request2, agents, attempt2 = 0) {
58858
58859
  const { signal, url: url3 } = request2;
@@ -58880,7 +58881,7 @@ function exchange(request2, agents, attempt2 = 0) {
58880
58881
  };
58881
58882
  let responded = false;
58882
58883
  const onError = (error62) => {
58883
- const stale = outgoing.reusedSocket && !responded && isConnectionReset(error62);
58884
+ const stale = outgoing.reusedSocket && !responded && isRetryableConnectionError(error62);
58884
58885
  if (stale && attempt2 < STALE_SOCKET_RETRIES && !signal.aborted) {
58885
58886
  settle2();
58886
58887
  resolve14(exchange(request2, agents, attempt2 + 1));
package/alan-holder.cjs CHANGED
@@ -22001,7 +22001,8 @@ var init_github_proxy = __esm({
22001
22001
  GITHUB_PROXY_REFUSAL_CODES = [
22002
22002
  "host_not_proxied",
22003
22003
  "machine_not_allowed",
22004
- "github_not_connected"
22004
+ "github_not_connected",
22005
+ "github_installation_unavailable"
22005
22006
  ];
22006
22007
  gitHubProxyErrorSchema = external_exports.object({
22007
22008
  message: external_exports.string().min(1),
@@ -48473,8 +48474,8 @@ function readBody(incoming, url2, maxBytes) {
48473
48474
  incoming.on("end", () => resolve8(Buffer.concat(chunks)));
48474
48475
  });
48475
48476
  }
48476
- function isConnectionReset(error62) {
48477
- return error62 instanceof Error && "code" in error62 && (error62.code === "ECONNRESET" || error62.code === "EPIPE");
48477
+ function isRetryableConnectionError(error62) {
48478
+ return error62 instanceof Error && "code" in error62 && (error62.code === "ECONNABORTED" || error62.code === "ECONNRESET" || error62.code === "EPIPE");
48478
48479
  }
48479
48480
  function exchange(request2, agents, attempt = 0) {
48480
48481
  const { signal, url: url2 } = request2;
@@ -48502,7 +48503,7 @@ function exchange(request2, agents, attempt = 0) {
48502
48503
  };
48503
48504
  let responded = false;
48504
48505
  const onError = (error62) => {
48505
- const stale = outgoing.reusedSocket && !responded && isConnectionReset(error62);
48506
+ const stale = outgoing.reusedSocket && !responded && isRetryableConnectionError(error62);
48506
48507
  if (stale && attempt < STALE_SOCKET_RETRIES && !signal.aborted) {
48507
48508
  settle2();
48508
48509
  resolve8(exchange(request2, agents, attempt + 1));
package/alan-lease.cjs CHANGED
@@ -21867,7 +21867,8 @@ var init_github_proxy = __esm({
21867
21867
  GITHUB_PROXY_REFUSAL_CODES = [
21868
21868
  "host_not_proxied",
21869
21869
  "machine_not_allowed",
21870
- "github_not_connected"
21870
+ "github_not_connected",
21871
+ "github_installation_unavailable"
21871
21872
  ];
21872
21873
  gitHubProxyErrorSchema = external_exports.object({
21873
21874
  message: external_exports.string().min(1),
@@ -22748,8 +22749,8 @@ function readBody(incoming, url2, maxBytes) {
22748
22749
  incoming.on("end", () => resolve(Buffer.concat(chunks)));
22749
22750
  });
22750
22751
  }
22751
- function isConnectionReset(error62) {
22752
- return error62 instanceof Error && "code" in error62 && (error62.code === "ECONNRESET" || error62.code === "EPIPE");
22752
+ function isRetryableConnectionError(error62) {
22753
+ return error62 instanceof Error && "code" in error62 && (error62.code === "ECONNABORTED" || error62.code === "ECONNRESET" || error62.code === "EPIPE");
22753
22754
  }
22754
22755
  function exchange(request, agents, attempt = 0) {
22755
22756
  const { signal, url: url2 } = request;
@@ -22777,7 +22778,7 @@ function exchange(request, agents, attempt = 0) {
22777
22778
  };
22778
22779
  let responded = false;
22779
22780
  const onError = (error62) => {
22780
- const stale = outgoing.reusedSocket && !responded && isConnectionReset(error62);
22781
+ const stale = outgoing.reusedSocket && !responded && isRetryableConnectionError(error62);
22781
22782
  if (stale && attempt < STALE_SOCKET_RETRIES && !signal.aborted) {
22782
22783
  settle2();
22783
22784
  resolve(exchange(request, agents, attempt + 1));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alan-ai-hq/agent-manager-darwin-arm64",
3
- "version": "0.1.172",
3
+ "version": "0.1.173",
4
4
  "description": "Alan machine runtime (alan-agent) for one platform: the official Node.js binary, the runtime bundle and its launcher. Installed by @alan-ai-hq/agent-manager.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "homepage": "https://tryalan.ai",