@caplets/core 0.26.0 → 0.27.0

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.
@@ -31,10 +31,12 @@ const CAPLETS_ERROR_CODES = [
31
31
  "SERVER_UNAVAILABLE",
32
32
  "SERVER_START_TIMEOUT",
33
33
  "UNKNOWN_OPERATION",
34
+ "CAPLET_NAMESPACE_COLLISION",
34
35
  "TOOL_NOT_FOUND",
35
36
  "TOOL_CALL_TIMEOUT",
36
37
  "AUTH_REQUIRED",
37
38
  "AUTH_FAILED",
39
+ "REMOTE_CREDENTIALS_REVOKED",
38
40
  "AUTH_REFRESH_FAILED",
39
41
  "DOWNSTREAM_PROTOCOL_ERROR",
40
42
  "DOWNSTREAM_TOOL_ERROR",
@@ -111,6 +113,7 @@ function errorResult(error, fallback) {
111
113
  //#endregion
112
114
  //#region src/config/validation.ts
113
115
  const SERVER_ID_PATTERN = /^[a-zA-Z0-9_-]{1,64}$/;
116
+ const NAMESPACE_ALIAS_LABEL_PATTERN = /^[a-z](?:[a-z0-9-]{0,30}[a-z0-9])?$/;
114
117
  const HEADER_NAME_PATTERN = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
115
118
  const HTTP_BASE_URL_PATTERN = /^(?![a-zA-Z][a-zA-Z0-9+.-]*:\/\/[^/?#]*@)[^?#]*$/;
116
119
  const FORBIDDEN_HEADERS = /* @__PURE__ */ new Set([
@@ -173,4 +176,4 @@ function isUrl(value) {
173
176
  }
174
177
  }
175
178
  //#endregion
176
- export { isAllowedHttpBaseUrl as a, validateHttpActionHeaders as c, errorResult as d, redactSecrets as f, SERVER_ID_PATTERN as i, CAPLETS_ERROR_CODES as l, HEADER_NAME_PATTERN as n, isAllowedRemoteUrl as o, toSafeError as p, HTTP_BASE_URL_PATTERN as r, isUrl as s, FORBIDDEN_HEADERS as t, CapletsError as u };
179
+ export { SERVER_ID_PATTERN as a, isUrl as c, CapletsError as d, errorResult as f, NAMESPACE_ALIAS_LABEL_PATTERN as i, validateHttpActionHeaders as l, toSafeError as m, HEADER_NAME_PATTERN as n, isAllowedHttpBaseUrl as o, redactSecrets as p, HTTP_BASE_URL_PATTERN as r, isAllowedRemoteUrl as s, FORBIDDEN_HEADERS as t, CAPLETS_ERROR_CODES as u };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caplets/core",
3
- "version": "0.26.0",
3
+ "version": "0.27.0",
4
4
  "description": "Core runtime library for Caplets Code Mode and progressive disclosure gateways.",
5
5
  "keywords": [
6
6
  "caplets",