agentid-sdk 0.1.32 → 0.1.34
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/{agentid-BgahmiuN.d.mts → agentid-M5I7-YqI.d.mts} +0 -1
- package/dist/{agentid-BgahmiuN.d.ts → agentid-M5I7-YqI.d.ts} +0 -1
- package/dist/{chunk-Z2M5A4YZ.mjs → chunk-FCOSLPMF.mjs} +1 -13
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -13
- package/dist/index.mjs +1 -1
- package/dist/langchain.d.mts +1 -1
- package/dist/langchain.d.ts +1 -1
- package/dist/langchain.js +1 -1
- package/dist/langchain.mjs +1 -1
- package/dist/transparency-badge.d.mts +1 -1
- package/dist/transparency-badge.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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.
|
|
1813
|
+
var AGENTID_SDK_VERSION_HEADER = "js-0.1.34".trim().length > 0 ? "js-0.1.34" : 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-
|
|
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-
|
|
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.
|
|
78
|
+
var AGENTID_SDK_VERSION_HEADER = "js-0.1.34".trim().length > 0 ? "js-0.1.34" : 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
package/dist/langchain.d.mts
CHANGED
package/dist/langchain.d.ts
CHANGED
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.
|
|
30
|
+
var AGENTID_SDK_VERSION_HEADER = "js-0.1.34".trim().length > 0 ? "js-0.1.34" : FALLBACK_SDK_VERSION;
|
|
31
31
|
|
|
32
32
|
// src/pii-national-identifiers.ts
|
|
33
33
|
var REGION_ANCHORS = {
|
package/dist/langchain.mjs
CHANGED