@alfe.ai/gateway 0.11.1 → 0.11.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/dist/health.js CHANGED
@@ -3749,7 +3749,7 @@ function superRefine(fn) {
3749
3749
  * `PINNED_OPENCLAW_VERSION` — there is no `services/compute/Dockerfile` mirror to
3750
3750
  * keep in sync.
3751
3751
  */
3752
- const PINNED_CLAUDE_CODE_HOST_VERSION = "0.1.16";
3752
+ const PINNED_CLAUDE_CODE_HOST_VERSION = "0.1.17";
3753
3753
  /**
3754
3754
  * The `@anthropic-ai/claude-code` (the `claude` CLI) version Alfe installs for
3755
3755
  * the claude-code runtime: always on managed VMs (`alfe setup --managed`), and
@@ -4755,6 +4755,18 @@ function cliTooOldFields(errBody) {
4755
4755
  ...typeof currentCliVersion === "string" && currentCliVersion !== "" ? { currentCliVersion } : {}
4756
4756
  };
4757
4757
  }
4758
+ function isSharedAgentAudience(value) {
4759
+ return value === "public" || value === "team" || value === "scope";
4760
+ }
4761
+ /**
4762
+ * Connect's 409 `shared_use_confirmation_required` (an `alfe aws share` push
4763
+ * to an agent other people can use) says who. Forward only that enum value,
4764
+ * and only alongside that code.
4765
+ */
4766
+ function sharedUseFields(errBody) {
4767
+ if (errBody?.code !== "shared_use_confirmation_required") return {};
4768
+ return isSharedAgentAudience(errBody.sharedWith) ? { sharedWith: errBody.sharedWith } : {};
4769
+ }
4758
4770
  var AlfeApiClient = class {
4759
4771
  apiBaseUrl;
4760
4772
  getToken;
@@ -4833,7 +4845,8 @@ var AlfeApiClient = class {
4833
4845
  message
4834
4846
  })) } : {},
4835
4847
  ...isRetryAfterSeconds(errBody?.retryAfterSeconds) ? { retryAfterSeconds: errBody.retryAfterSeconds } : {},
4836
- ...cliTooOldFields(errBody)
4848
+ ...cliTooOldFields(errBody),
4849
+ ...sharedUseFields(errBody)
4837
4850
  }
4838
4851
  };
4839
4852
  }
@@ -10677,7 +10690,7 @@ async function executeCloudCommand(command) {
10677
10690
  pinnedVersion: target.version
10678
10691
  }, "runtime.update requested an OpenClaw version above the pin — upgrading to the pin instead");
10679
10692
  version = target.version;
10680
- } else version = payload?.version ?? (runtime === "claude-code" ? "0.1.16" : void 0);
10693
+ } else version = payload?.version ?? (runtime === "claude-code" ? "0.1.17" : void 0);
10681
10694
  upgradingRuntime = true;
10682
10695
  setTimeout(() => {
10683
10696
  (async () => {
@@ -150,7 +150,7 @@ declare function remediateManagedNode(runCommand: RemediationCommandRunner, base
150
150
  * `PINNED_OPENCLAW_VERSION` — there is no `services/compute/Dockerfile` mirror to
151
151
  * keep in sync.
152
152
  */
153
- declare const PINNED_CLAUDE_CODE_HOST_VERSION = "0.1.16";
153
+ declare const PINNED_CLAUDE_CODE_HOST_VERSION = "0.1.17";
154
154
  /**
155
155
  * The `@anthropic-ai/claude-code` (the `claude` CLI) version Alfe installs for
156
156
  * the claude-code runtime: always on managed VMs (`alfe setup --managed`), and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfe.ai/gateway",
3
- "version": "0.11.1",
3
+ "version": "0.11.2",
4
4
  "description": "Alfe local gateway daemon — persistent control plane for agent integrations",
5
5
  "type": "module",
6
6
  "bin": {
@@ -23,7 +23,7 @@
23
23
  "pino-roll": "^1.2.0",
24
24
  "smol-toml": ">=1.6.1",
25
25
  "ws": "^8.18.0",
26
- "@alfe.ai/agent-api-client": "^0.21.1",
26
+ "@alfe.ai/agent-api-client": "^0.21.2",
27
27
  "@alfe.ai/ai-proxy-local": "^0.0.17",
28
28
  "@alfe.ai/config": "^0.4.2",
29
29
  "@alfe.ai/integration-manifest": "^0.6.0",