@amaster.ai/employee-runtime-connector 0.1.1-beta.351 → 0.1.1-beta.352

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.
@@ -6168,6 +6168,12 @@ var ERROR_PRESENTATIONS = {
6168
6168
  nextAction: null,
6169
6169
  tone: "danger"
6170
6170
  },
6171
+ pi_provider_request_timeout: {
6172
+ label: "\u6A21\u578B\u8BF7\u6C42\u8D85\u65F6",
6173
+ summary: "\u6A21\u578B\u670D\u52A1\u672A\u5728\u8BF7\u6C42\u65F6\u9650\u5185\u5B8C\u6210\u54CD\u5E94\uFF0C\u672C\u6B21\u6267\u884C\u5DF2\u505C\u6B62\u3002",
6174
+ nextAction: "\u7CFB\u7EDF\u5C06\u81EA\u52A8\u91CD\u8BD5\uFF1B\u82E5\u4ECD\u672A\u6062\u590D\uFF0C\u8BF7\u7A0D\u540E\u91CD\u65B0\u6267\u884C\u3002",
6175
+ tone: "warning"
6176
+ },
6171
6177
  runtime_connector_command_failed: {
6172
6178
  label: "\u6267\u884C\u547D\u4EE4\u5931\u8D25",
6173
6179
  summary: "\u8FD0\u884C\u5668\u62A5\u544A\u547D\u4EE4\u672A\u80FD\u5B8C\u6210\uFF0C\u5177\u4F53\u539F\u56E0\u8BF7\u67E5\u770B\u9519\u8BEF\u8BE6\u60C5\u3002",
@@ -27758,7 +27764,8 @@ function sanitizeRuntimeWebEvidence(input) {
27758
27764
  // src/amaster-runtime-daemon/executor-protocol/pi.mjs
27759
27765
  var PI_PROVIDER_AUTH_RE = /(?:(?:\b401\b|\b403\b)[^\n]*(?:unauthorized|forbidden|auth(?:entication|orization)?|api[_\s-]?key)|(?:invalid|missing|expired|revoked)\s+(?:provider\s+)?api[_\s-]?key|provider\s+authentication\s+required)/i;
27760
27766
  var PI_PROVIDER_QUOTA_EXHAUSTED_RE = /(?:\binsufficient[_\s-]?user[_\s-]?quota\b|河狸币余额不足|\b402\b[^\n]*(?:余额不足|insufficient[_\s-]?balance|payment\s+required))/i;
27761
- var PI_PROVIDER_TRANSIENT_RE = /(?:Stream ended without finish_reason|\b(?:429|5\d{2})\b|rate[-\s]?limit(?:ed)?|too\s+many\s+requests|billing\s+admission\s+failed|service\s+unavailable|upstream[^\n]*(?:unavailable|failed|timeout)|connect(?:ion)?[^\n]*refused|temporar(?:y|ily)[^\n]*(?:unavailable|failed)|try\s+again\s+later)/i;
27767
+ var PI_PROVIDER_REQUEST_TIMEOUT_RE = /^Request timed out\.?$/i;
27768
+ var PI_PROVIDER_TRANSIENT_RE = /(?:Request timed out|Stream ended without finish_reason|\b(?:429|5\d{2})\b|rate[-\s]?limit(?:ed)?|too\s+many\s+requests|billing\s+admission\s+failed|service\s+unavailable|upstream[^\n]*(?:unavailable|failed|timeout)|connect(?:ion)?[^\n]*refused|temporar(?:y|ily)[^\n]*(?:unavailable|failed)|try\s+again\s+later)/i;
27762
27769
  var PI_PROVIDER_PROTOCOL_RE = /provider[^\n]*finish_reason[^\n]*unexpected_state/i;
27763
27770
  var PI_PROVIDER_RETRY_AFTER_SECONDS_RE = /retry[-\s]?after\s*[:=]?\s*(\d{1,6})\s*(?:seconds?|secs?|s)\b/i;
27764
27771
  var PI_TERMINAL_CLEANUP_PERMISSION_RE = /(?:\bkill\b[^\n]*\bEPERM\b|\bEPERM\b[^\n]*\bkill\b)/i;
@@ -27877,6 +27884,12 @@ function extractPiProviderRetryNotBefore(errorMessage, now) {
27877
27884
  function classifyPiProviderError(input, now = /* @__PURE__ */ new Date()) {
27878
27885
  const errorMessage = readString(asRecord(input).errorMessage);
27879
27886
  if (!errorMessage) return null;
27887
+ if (PI_PROVIDER_REQUEST_TIMEOUT_RE.test(errorMessage)) {
27888
+ return {
27889
+ errorCode: "pi_provider_request_timeout",
27890
+ errorFamily: "transient_upstream"
27891
+ };
27892
+ }
27880
27893
  if (PI_PROVIDER_PROTOCOL_RE.test(errorMessage)) {
27881
27894
  return {
27882
27895
  errorCode: "pi_provider_protocol_failure",
@@ -33930,7 +33943,7 @@ function assertRequiredTaskAttachmentMaterialized(input, materialized) {
33930
33943
  }
33931
33944
 
33932
33945
  // src/amaster-runtime-daemon.mjs
33933
- var CONNECTOR_VERSION = "0.1.1-beta.351";
33946
+ var CONNECTOR_VERSION = "0.1.1-beta.352";
33934
33947
  var CONNECTOR_CONTRACT_VERSION = "2026-06-04.v1";
33935
33948
  var daemonRequire = createRequire(import.meta.url);
33936
33949
  var MAX_CHECKPOINT_BYTES = 20 * 1024 * 1024;
@@ -39429,7 +39442,7 @@ async function executeRunCommand(config, command) {
39429
39442
  });
39430
39443
  } catch (err) {
39431
39444
  const rolloutError = `${executor.kind}_managed_mcp_session_rollout_failed: ${err instanceof Error ? err.message : String(err)}`;
39432
- if (approvalRequiredSession || config.checkpointUploadEnabled) {
39445
+ if (approvalRequiredSession) {
39433
39446
  nativeSessionRolloutError = rolloutError;
39434
39447
  } else {
39435
39448
  nativeSessionRollout = {
@@ -7,7 +7,7 @@ import { homedir, hostname } from "node:os";
7
7
  import { fileURLToPath } from "node:url";
8
8
  import { BUILD_SUPPORTED_CAPABILITIES } from "./amaster-runtime-daemon/capability-registry.mjs";
9
9
 
10
- const CONNECTOR_VERSION = "0.1.1-beta.351";
10
+ const CONNECTOR_VERSION = "0.1.1-beta.352";
11
11
 
12
12
  const CONFIG_KEY_MAP = new Map([
13
13
  ["server_url", "AMASTER_EMPLOYEE_SERVER_URL"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amaster.ai/employee-runtime-connector",
3
- "version": "0.1.1-beta.351",
3
+ "version": "0.1.1-beta.352",
4
4
  "description": "MirrorX runtime connector CLI and daemon",
5
5
  "license": "MIT",
6
6
  "type": "module",