agentid-sdk 0.1.32 → 0.1.33

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.
@@ -152,7 +152,6 @@ declare class AgentID {
152
152
  private resolveEffectiveStrictMode;
153
153
  private maybeRaiseStrictIngestDependencyError;
154
154
  private shouldRunLocalInjectionScan;
155
- private shouldRefreshCapabilityConfigBeforeLocalEnforcement;
156
155
  private refreshCapabilityConfigBeforeLocalEnforcement;
157
156
  private applyLocalPolicyChecks;
158
157
  prepareInputForDispatch(params: {
@@ -152,7 +152,6 @@ declare class AgentID {
152
152
  private resolveEffectiveStrictMode;
153
153
  private maybeRaiseStrictIngestDependencyError;
154
154
  private shouldRunLocalInjectionScan;
155
- private shouldRefreshCapabilityConfigBeforeLocalEnforcement;
156
155
  private refreshCapabilityConfigBeforeLocalEnforcement;
157
156
  private applyLocalPolicyChecks;
158
157
  prepareInputForDispatch(params: {
@@ -1810,7 +1810,7 @@ function getInjectionScanner() {
1810
1810
 
1811
1811
  // src/sdk-version.ts
1812
1812
  var FALLBACK_SDK_VERSION = "js-0.0.0-dev";
1813
- var AGENTID_SDK_VERSION_HEADER = "js-0.1.32".trim().length > 0 ? "js-0.1.32" : FALLBACK_SDK_VERSION;
1813
+ var AGENTID_SDK_VERSION_HEADER = "js-0.1.33".trim().length > 0 ? "js-0.1.33" : FALLBACK_SDK_VERSION;
1814
1814
 
1815
1815
  // src/local-security-enforcer.ts
1816
1816
  var DEFAULT_FAIL_OPEN_CONFIG = {
@@ -2662,19 +2662,7 @@ var AgentID = class {
2662
2662
  }
2663
2663
  return config.block_on_heuristic;
2664
2664
  }
2665
- shouldRefreshCapabilityConfigBeforeLocalEnforcement(config) {
2666
- if (config.shadow_mode) {
2667
- return false;
2668
- }
2669
- return this.shouldRunLocalInjectionScan(config) || config.block_db_access || config.block_code_execution || config.block_pii_leakage;
2670
- }
2671
2665
  async refreshCapabilityConfigBeforeLocalEnforcement(params) {
2672
- if (!this.shouldRefreshCapabilityConfigBeforeLocalEnforcement(params.capabilityConfig)) {
2673
- return {
2674
- capabilityConfig: params.capabilityConfig,
2675
- sdkConfigFetchMs: params.sdkConfigFetchMs
2676
- };
2677
- }
2678
2666
  const refreshed = await this.getCapabilityConfigWithTelemetry(true, params.options);
2679
2667
  return {
2680
2668
  capabilityConfig: refreshed.capabilityConfig,
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as AgentID, D as DependencyError, G as GuardParams, a as GuardResponse, L as LogParams, P as PreparedInput, R as RequestOptions, S as SecurityBlockError, T as TransparencyMetadata } from './agentid-BgahmiuN.mjs';
1
+ export { A as AgentID, D as DependencyError, G as GuardParams, a as GuardResponse, L as LogParams, P as PreparedInput, R as RequestOptions, S as SecurityBlockError, T as TransparencyMetadata } from './agentid-M5I7-YqI.mjs';
2
2
 
3
3
  type PIIMapping = Record<string, string>;
4
4
  declare class PIIManager {
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as AgentID, D as DependencyError, G as GuardParams, a as GuardResponse, L as LogParams, P as PreparedInput, R as RequestOptions, S as SecurityBlockError, T as TransparencyMetadata } from './agentid-BgahmiuN.js';
1
+ export { A as AgentID, D as DependencyError, G as GuardParams, a as GuardResponse, L as LogParams, P as PreparedInput, R as RequestOptions, S as SecurityBlockError, T as TransparencyMetadata } from './agentid-M5I7-YqI.js';
2
2
 
3
3
  type PIIMapping = Record<string, string>;
4
4
  declare class PIIManager {
package/dist/index.js CHANGED
@@ -75,7 +75,7 @@ var OpenAIAdapter = class {
75
75
 
76
76
  // src/sdk-version.ts
77
77
  var FALLBACK_SDK_VERSION = "js-0.0.0-dev";
78
- var AGENTID_SDK_VERSION_HEADER = "js-0.1.32".trim().length > 0 ? "js-0.1.32" : FALLBACK_SDK_VERSION;
78
+ var AGENTID_SDK_VERSION_HEADER = "js-0.1.33".trim().length > 0 ? "js-0.1.33" : FALLBACK_SDK_VERSION;
79
79
 
80
80
  // src/pii-national-identifiers.ts
81
81
  var MAX_CANDIDATES_PER_RULE = 256;
@@ -2695,19 +2695,7 @@ var AgentID = class {
2695
2695
  }
2696
2696
  return config.block_on_heuristic;
2697
2697
  }
2698
- shouldRefreshCapabilityConfigBeforeLocalEnforcement(config) {
2699
- if (config.shadow_mode) {
2700
- return false;
2701
- }
2702
- return this.shouldRunLocalInjectionScan(config) || config.block_db_access || config.block_code_execution || config.block_pii_leakage;
2703
- }
2704
2698
  async refreshCapabilityConfigBeforeLocalEnforcement(params) {
2705
- if (!this.shouldRefreshCapabilityConfigBeforeLocalEnforcement(params.capabilityConfig)) {
2706
- return {
2707
- capabilityConfig: params.capabilityConfig,
2708
- sdkConfigFetchMs: params.sdkConfigFetchMs
2709
- };
2710
- }
2711
2699
  const refreshed = await this.getCapabilityConfigWithTelemetry(true, params.options);
2712
2700
  return {
2713
2701
  capabilityConfig: refreshed.capabilityConfig,
package/dist/index.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  SecurityBlockError,
8
8
  getInjectionScanner,
9
9
  scanWithRegex
10
- } from "./chunk-Z2M5A4YZ.mjs";
10
+ } from "./chunk-TNBUENAF.mjs";
11
11
  export {
12
12
  AgentID,
13
13
  DependencyError,
@@ -1,5 +1,5 @@
1
1
  import { BaseCallbackHandler } from '@langchain/core/callbacks/base';
2
- import { A as AgentID } from './agentid-BgahmiuN.mjs';
2
+ import { A as AgentID } from './agentid-M5I7-YqI.mjs';
3
3
 
4
4
  /**
5
5
  * LangChainJS callback handler (dependency-free shape).
@@ -1,5 +1,5 @@
1
1
  import { BaseCallbackHandler } from '@langchain/core/callbacks/base';
2
- import { A as AgentID } from './agentid-BgahmiuN.js';
2
+ import { A as AgentID } from './agentid-M5I7-YqI.js';
3
3
 
4
4
  /**
5
5
  * LangChainJS callback handler (dependency-free shape).
package/dist/langchain.js CHANGED
@@ -27,7 +27,7 @@ var import_base = require("@langchain/core/callbacks/base");
27
27
 
28
28
  // src/sdk-version.ts
29
29
  var FALLBACK_SDK_VERSION = "js-0.0.0-dev";
30
- var AGENTID_SDK_VERSION_HEADER = "js-0.1.32".trim().length > 0 ? "js-0.1.32" : FALLBACK_SDK_VERSION;
30
+ var AGENTID_SDK_VERSION_HEADER = "js-0.1.33".trim().length > 0 ? "js-0.1.33" : FALLBACK_SDK_VERSION;
31
31
 
32
32
  // src/pii-national-identifiers.ts
33
33
  var REGION_ANCHORS = {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SecurityBlockError
3
- } from "./chunk-Z2M5A4YZ.mjs";
3
+ } from "./chunk-TNBUENAF.mjs";
4
4
 
5
5
  // src/langchain.ts
6
6
  import { BaseCallbackHandler } from "@langchain/core/callbacks/base";
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { T as TransparencyMetadata } from './agentid-BgahmiuN.mjs';
2
+ import { T as TransparencyMetadata } from './agentid-M5I7-YqI.mjs';
3
3
 
4
4
  type AgentIDTransparencyBadgeTelemetry = {
5
5
  systemId: string;
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { T as TransparencyMetadata } from './agentid-BgahmiuN.js';
2
+ import { T as TransparencyMetadata } from './agentid-M5I7-YqI.js';
3
3
 
4
4
  type AgentIDTransparencyBadgeTelemetry = {
5
5
  systemId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentid-sdk",
3
- "version": "0.1.32",
3
+ "version": "0.1.33",
4
4
  "description": "AgentID JavaScript/TypeScript SDK for guard, ingest, tracing, and analytics.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://agentid.ai",