@fourier-labs/harbour-contracts 0.65.0 → 0.66.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.
package/contract-release.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": "harbour.contract-release/1.0",
|
|
3
|
-
"repositoryVersion": "0.
|
|
4
|
-
"publishVersion": "0.
|
|
5
|
-
"publishTag": "v0.
|
|
3
|
+
"repositoryVersion": "0.66.0.0",
|
|
4
|
+
"publishVersion": "0.66.0",
|
|
5
|
+
"publishTag": "v0.66.0",
|
|
6
6
|
"schemasDigest": "sha256:80c014af364c39472dc57ca097f4994daa0e8d57d094a3e4ca5631985246093e",
|
|
7
7
|
"aiFixturesDigest": "sha256:edac31c92e146ca1c40130f2fb5649db82e24b8cd1ac758153b90612052fddb6",
|
|
8
8
|
"generatedGoDigest": "sha256:2af05118fbdbb3d3e16a506074f50338d4646288d4ce530a60765028221041b2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const ContractRepositoryVersion: "0.
|
|
2
|
-
export declare const ContractPublishVersion: "0.
|
|
3
|
-
export declare const ContractPublishTag: "v0.
|
|
1
|
+
export declare const ContractRepositoryVersion: "0.66.0.0";
|
|
2
|
+
export declare const ContractPublishVersion: "0.66.0";
|
|
3
|
+
export declare const ContractPublishTag: "v0.66.0";
|
|
4
4
|
export declare const ContractSchemasDigest: "sha256:80c014af364c39472dc57ca097f4994daa0e8d57d094a3e4ca5631985246093e";
|
|
5
5
|
export declare const ContractAiFixturesDigest: "sha256:edac31c92e146ca1c40130f2fb5649db82e24b8cd1ac758153b90612052fddb6";
|
|
6
6
|
export declare const ContractGeneratedGoDigest: "sha256:2af05118fbdbb3d3e16a506074f50338d4646288d4ce530a60765028221041b2";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
// Code generated by tools/gen/gen.mjs from schema/*.json. DO NOT EDIT.
|
|
3
|
-
export const ContractRepositoryVersion = "0.
|
|
4
|
-
export const ContractPublishVersion = "0.
|
|
5
|
-
export const ContractPublishTag = "v0.
|
|
3
|
+
export const ContractRepositoryVersion = "0.66.0.0";
|
|
4
|
+
export const ContractPublishVersion = "0.66.0";
|
|
5
|
+
export const ContractPublishTag = "v0.66.0";
|
|
6
6
|
export const ContractSchemasDigest = "sha256:80c014af364c39472dc57ca097f4994daa0e8d57d094a3e4ca5631985246093e";
|
|
7
7
|
export const ContractAiFixturesDigest = "sha256:edac31c92e146ca1c40130f2fb5649db82e24b8cd1ac758153b90612052fddb6";
|
|
8
8
|
export const ContractGeneratedGoDigest = "sha256:2af05118fbdbb3d3e16a506074f50338d4646288d4ce530a60765028221041b2";
|
package/dist/resolver/index.js
CHANGED
|
@@ -43,15 +43,19 @@ export const RESOLVER_VERSION = "1.0.0";
|
|
|
43
43
|
const PII_INPUT_GUARDRAIL = { ruleId: "platform.pii.input", detectorId: "harbour.pii", detectorVersion: "1.0", phase: "input", action: "REDACT" };
|
|
44
44
|
const PII_OUTPUT_GUARDRAIL = { ruleId: "platform.pii.output", detectorId: "harbour.pii", detectorVersion: "1.0", phase: "output", action: "REDACT" };
|
|
45
45
|
const SECRET_OUTPUT_GUARDRAIL = { ruleId: "platform.secret.output", detectorId: "harbour.secret", detectorVersion: "1.0", phase: "output", action: "BLOCK" };
|
|
46
|
+
/** One request-size ceiling for the baseline and every class: the AI Gateway's
|
|
47
|
+
* JSON transport cap, so a 1-2 MB photo or generated PNG reaches the model.
|
|
48
|
+
* Token ceilings, not bytes, bound what the model reads. */
|
|
49
|
+
const MAX_REQUEST_BYTES = 20 * 1024 * 1024;
|
|
46
50
|
export const AI_PLATFORM_BASELINE = {
|
|
47
51
|
schema: "harbour.ai-platform-baseline/1.0",
|
|
48
|
-
artifactVersion: "1.
|
|
52
|
+
artifactVersion: "1.1.0",
|
|
49
53
|
controls: {
|
|
50
54
|
permittedProviderTypes: ["anthropic", "gemini", "higgsfield", "openai", "openrouter"],
|
|
51
55
|
requireApprovedModels: false,
|
|
52
56
|
maxCaptureMode: "BEST_EFFORT",
|
|
53
57
|
maxRetentionDays: 90,
|
|
54
|
-
maxRequestBytes:
|
|
58
|
+
maxRequestBytes: MAX_REQUEST_BYTES,
|
|
55
59
|
maxInputTokens: 200_000,
|
|
56
60
|
maxOutputTokens: 32_000,
|
|
57
61
|
maxRequestsPerMinute: 6_000,
|
|
@@ -66,7 +70,7 @@ export const AI_PLATFORM_BASELINE = {
|
|
|
66
70
|
* and are versioned by `artifactVersion` plus `RESOLVER_VERSION`. */
|
|
67
71
|
export const AI_CLASSIFICATION_MINIMUMS = {
|
|
68
72
|
schema: "harbour.ai-classification-minimums/1.0",
|
|
69
|
-
artifactVersion: "1.
|
|
73
|
+
artifactVersion: "1.1.0",
|
|
70
74
|
defaultClassification: "Yellow",
|
|
71
75
|
classes: {
|
|
72
76
|
Green: {
|
|
@@ -74,7 +78,7 @@ export const AI_CLASSIFICATION_MINIMUMS = {
|
|
|
74
78
|
requireApprovedModels: false,
|
|
75
79
|
maxCaptureMode: "BEST_EFFORT",
|
|
76
80
|
maxRetentionDays: 90,
|
|
77
|
-
maxRequestBytes:
|
|
81
|
+
maxRequestBytes: MAX_REQUEST_BYTES,
|
|
78
82
|
maxInputTokens: 200_000,
|
|
79
83
|
maxOutputTokens: 32_000,
|
|
80
84
|
maxRequestsPerMinute: 6_000,
|
|
@@ -88,7 +92,7 @@ export const AI_CLASSIFICATION_MINIMUMS = {
|
|
|
88
92
|
requireApprovedModels: true,
|
|
89
93
|
maxCaptureMode: "BEST_EFFORT",
|
|
90
94
|
maxRetentionDays: 60,
|
|
91
|
-
maxRequestBytes:
|
|
95
|
+
maxRequestBytes: MAX_REQUEST_BYTES,
|
|
92
96
|
maxInputTokens: 200_000,
|
|
93
97
|
maxOutputTokens: 32_000,
|
|
94
98
|
maxRequestsPerMinute: 6_000,
|
|
@@ -102,7 +106,7 @@ export const AI_CLASSIFICATION_MINIMUMS = {
|
|
|
102
106
|
requireApprovedModels: true,
|
|
103
107
|
maxCaptureMode: "BEST_EFFORT",
|
|
104
108
|
maxRetentionDays: 30,
|
|
105
|
-
maxRequestBytes:
|
|
109
|
+
maxRequestBytes: MAX_REQUEST_BYTES,
|
|
106
110
|
maxInputTokens: 100_000,
|
|
107
111
|
maxOutputTokens: 16_000,
|
|
108
112
|
maxRequestsPerMinute: 1_200,
|
|
@@ -116,7 +120,7 @@ export const AI_CLASSIFICATION_MINIMUMS = {
|
|
|
116
120
|
requireApprovedModels: true,
|
|
117
121
|
maxCaptureMode: "OFF",
|
|
118
122
|
maxRetentionDays: 7,
|
|
119
|
-
maxRequestBytes:
|
|
123
|
+
maxRequestBytes: MAX_REQUEST_BYTES,
|
|
120
124
|
maxInputTokens: 50_000,
|
|
121
125
|
maxOutputTokens: 8_000,
|
|
122
126
|
maxRequestsPerMinute: 300,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
// Code generated by tools/gen/gen.mjs from schema/*.json. DO NOT EDIT.
|
|
3
3
|
|
|
4
|
-
export const ContractRepositoryVersion = "0.
|
|
5
|
-
export const ContractPublishVersion = "0.
|
|
6
|
-
export const ContractPublishTag = "v0.
|
|
4
|
+
export const ContractRepositoryVersion = "0.66.0.0" as const;
|
|
5
|
+
export const ContractPublishVersion = "0.66.0" as const;
|
|
6
|
+
export const ContractPublishTag = "v0.66.0" as const;
|
|
7
7
|
export const ContractSchemasDigest = "sha256:80c014af364c39472dc57ca097f4994daa0e8d57d094a3e4ca5631985246093e" as const;
|
|
8
8
|
export const ContractAiFixturesDigest = "sha256:edac31c92e146ca1c40130f2fb5649db82e24b8cd1ac758153b90612052fddb6" as const;
|
|
9
9
|
export const ContractGeneratedGoDigest = "sha256:2af05118fbdbb3d3e16a506074f50338d4646288d4ce530a60765028221041b2" as const;
|
package/package.json
CHANGED