@vorionsys/shared-constants 1.0.1 → 1.0.3
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/CHANGELOG.md +39 -0
- package/LICENSE +190 -0
- package/README.md +418 -44
- package/dist/api-versions.d.ts +91 -0
- package/dist/capabilities.cjs +4 -3
- package/dist/capabilities.d.cts +3 -2
- package/dist/capabilities.d.ts +56 -0
- package/dist/capabilities.js +1 -1
- package/dist/chunk-CJQJGJZ6.js +216 -0
- package/dist/chunk-JOS3AHBL.js +176 -0
- package/dist/{chunk-IKLCEYZT.js → chunk-OEEPW54O.js} +4 -6
- package/dist/domains.cjs +4 -6
- package/dist/domains.d.cts +4 -8
- package/dist/domains.d.ts +246 -0
- package/dist/domains.js +1 -1
- package/dist/error-codes.d.ts +633 -0
- package/dist/index.cjs +349 -12
- package/dist/index.d.cts +119 -4
- package/dist/index.d.ts +169 -0
- package/dist/index.js +330 -5
- package/dist/products.cjs +1 -1
- package/dist/products.d.ts +80 -0
- package/dist/products.js +1 -1
- package/dist/rate-limits.d.ts +80 -0
- package/dist/themes.d.ts +85 -0
- package/dist/tiers.d.ts +75 -0
- package/package.json +30 -8
- package/dist/chunk-F2R6HBF5.js +0 -253
- package/dist/chunk-PHL3CB53.js +0 -159
- package/src/api-versions.ts +0 -250
- package/src/capabilities.ts +0 -272
- package/src/domains.ts +0 -216
- package/src/error-codes.ts +0 -494
- package/src/index.ts +0 -206
- package/src/products.ts +0 -285
- package/src/rate-limits.ts +0 -334
- package/src/themes.ts +0 -380
- package/src/tiers.ts +0 -239
- package/tsconfig.json +0 -25
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { TrustTier } from './tiers.js';
|
|
2
|
+
export { ALL_TIERS, TIER_THRESHOLDS, TierThreshold, TrustTierCode, TrustTierName, getTierCode, getTierColor, getTierMaxScore, getTierMinScore, getTierName, getTierThreshold, meetsTierRequirement, parseTier, scoreToTier } from './tiers.js';
|
|
3
|
+
export { AGENTANCHOR_DOMAINS, AGENTANCHOR_EMAILS, ALL_DOMAINS, API_ENDPOINTS, AgentAnchorDomain, COGNIGATE_DOMAINS, CognigateDomain, DOMAIN_ALIASES, GITHUB, NPM_PACKAGES, VORION_DOMAINS, VORION_EMAILS, VorionDomain } from './domains.js';
|
|
4
|
+
export { CAPABILITIES, CapabilityCategory, CapabilityDefinition, getAllCapabilityCodes, getCapabilitiesByCategory, getCapabilitiesForTier, getCapability, getCapabilityMinTier, isCapabilityAvailable } from './capabilities.js';
|
|
5
|
+
export { AGENTANCHOR_PRODUCTS, ALL_PRODUCTS, ProductCategory, ProductDefinition, ProductStatus, VORION_PRODUCTS, getProduct, getProductsByCategory, getProductsByOrganization, getProductsByStatus } from './products.js';
|
|
6
|
+
export { QuotaConfig, RATE_LIMITS, RateLimitConfig, TIER_QUOTAS, formatRateLimit, getMinTierForLimits, getQuota, getRateLimits, isUnlimited, wouldExceedLimit } from './rate-limits.js';
|
|
7
|
+
export { AUTH_ERRORS, ERROR_CODES, EXTERNAL_ERRORS, ErrorCategory, ErrorCode, ErrorDefinition, NOT_FOUND_ERRORS, RATE_LIMIT_ERRORS, SERVER_ERRORS, TRUST_ERRORS, VALIDATION_ERRORS, createErrorResponse, formatErrorMessage, getErrorByCode, getErrorsByCategory, getRetryableErrors } from './error-codes.js';
|
|
8
|
+
export { API_VERSIONS, ApiVersionDefinition, BASIS_CURRENT_VERSION, BASIS_SPEC_VERSION, BASIS_VERSIONS, CAR_SPEC_CURRENT_VERSION, CAR_SPEC_VERSIONS, COGNIGATE_CURRENT_VERSION, COGNIGATE_DEFAULT_VERSION, COGNIGATE_VERSIONS, LOGIC_API_VERSIONS, LOGIC_CURRENT_VERSION, TRUST_API_VERSIONS, TRUST_CURRENT_VERSION, VERSION_HEADERS, VersionStatus, buildApiUrl, getCurrentVersion, getStableVersions, getVersionDefinition, isVersionDeprecated, isVersionSupported } from './api-versions.js';
|
|
9
|
+
export { ACTIVE_THEME, THEMES, ThemeId, ThemeTokens, getActiveTheme, getAllThemeIds, themeToCssVars } from './themes.js';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @vorionsys/shared-constants - CAR Identity Category Taxonomy v2.0
|
|
13
|
+
*
|
|
14
|
+
* Hierarchical controlled vocabulary for agent classification.
|
|
15
|
+
* Used across all Vorion ecosystem products for consistent agent categorization.
|
|
16
|
+
*
|
|
17
|
+
* Categories define:
|
|
18
|
+
* - Minimum trust tier required for the category
|
|
19
|
+
* - EU AI Act high-risk classification
|
|
20
|
+
* - Subcategories for fine-grained classification
|
|
21
|
+
* - Trust dimensions most relevant to the category
|
|
22
|
+
*
|
|
23
|
+
* @see https://basis.vorion.org/car/categories
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Top-level category codes for agent classification
|
|
28
|
+
*/
|
|
29
|
+
declare enum CARCategory {
|
|
30
|
+
GOVERNANCE = "GOV",
|
|
31
|
+
REASONING = "RSN",
|
|
32
|
+
TOOL_USE = "TUL",
|
|
33
|
+
MEMORY = "MEM",
|
|
34
|
+
MULTI_AGENT = "MAG",
|
|
35
|
+
SAFETY = "SAF",
|
|
36
|
+
AUDIT = "AUD",
|
|
37
|
+
COMPLIANCE = "CMP",
|
|
38
|
+
FINANCE = "FIN",
|
|
39
|
+
HEALTHCARE = "HLT",
|
|
40
|
+
EMPLOYMENT = "EMP",
|
|
41
|
+
CREATIVE = "CRE",
|
|
42
|
+
RESEARCH = "RES",
|
|
43
|
+
SWARM = "SWM",
|
|
44
|
+
SELF_IMPROVEMENT = "SLF",
|
|
45
|
+
HUMAN_INTERFACE = "HIF",
|
|
46
|
+
SYSTEM = "SYS"
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Trust dimensions relevant to category classification
|
|
50
|
+
*/
|
|
51
|
+
type TrustDimension = 'behavioral' | 'compliance' | 'identity' | 'context' | 'reliability' | 'transparency';
|
|
52
|
+
/**
|
|
53
|
+
* Subcategory within a top-level category
|
|
54
|
+
*/
|
|
55
|
+
interface CARSubcategory {
|
|
56
|
+
readonly code: string;
|
|
57
|
+
readonly name: string;
|
|
58
|
+
readonly description: string;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Full category definition with metadata
|
|
62
|
+
*/
|
|
63
|
+
interface CARCategoryDefinition {
|
|
64
|
+
readonly code: CARCategory;
|
|
65
|
+
readonly name: string;
|
|
66
|
+
readonly description: string;
|
|
67
|
+
/** Minimum trust tier required to operate in this category */
|
|
68
|
+
readonly minTier: TrustTier;
|
|
69
|
+
/** Whether this category is high-risk under EU AI Act */
|
|
70
|
+
readonly euHighRisk: boolean;
|
|
71
|
+
/** Trust dimensions most relevant to this category */
|
|
72
|
+
readonly trustDimensions: readonly TrustDimension[];
|
|
73
|
+
/** Subcategories for fine-grained classification */
|
|
74
|
+
readonly subcategories: readonly CARSubcategory[];
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Complete CAR category taxonomy
|
|
78
|
+
*/
|
|
79
|
+
declare const CAR_CATEGORIES: readonly CARCategoryDefinition[];
|
|
80
|
+
/**
|
|
81
|
+
* Get a category by code
|
|
82
|
+
*/
|
|
83
|
+
declare function getCARCategory(code: CARCategory | string): CARCategoryDefinition | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* Get all categories available at a specific trust tier
|
|
86
|
+
*/
|
|
87
|
+
declare function getCARCategoriesForTier(tier: TrustTier): CARCategoryDefinition[];
|
|
88
|
+
/**
|
|
89
|
+
* Get all EU AI Act high-risk categories
|
|
90
|
+
*/
|
|
91
|
+
declare function getHighRiskCategories(): CARCategoryDefinition[];
|
|
92
|
+
/**
|
|
93
|
+
* Check if a category is available at a given trust tier
|
|
94
|
+
*/
|
|
95
|
+
declare function isCARCategoryAvailable(code: CARCategory | string, tier: TrustTier): boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Get the minimum tier required for a category
|
|
98
|
+
*/
|
|
99
|
+
declare function getCARCategoryMinTier(code: CARCategory | string): TrustTier | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* Get a subcategory by its full code (e.g., "GOV-POL")
|
|
102
|
+
*/
|
|
103
|
+
declare function getCARSubcategory(fullCode: string): CARSubcategory | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* Get the parent category for a subcategory code
|
|
106
|
+
*/
|
|
107
|
+
declare function getParentCategory(subcategoryCode: string): CARCategoryDefinition | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* Get all category codes
|
|
110
|
+
*/
|
|
111
|
+
declare function getAllCARCategoryCodes(): CARCategory[];
|
|
112
|
+
/**
|
|
113
|
+
* Get all subcategory codes
|
|
114
|
+
*/
|
|
115
|
+
declare function getAllCARSubcategoryCodes(): string[];
|
|
116
|
+
/**
|
|
117
|
+
* Validate that a category code is valid
|
|
118
|
+
*/
|
|
119
|
+
declare function isValidCARCategory(code: string): code is CARCategory;
|
|
120
|
+
/**
|
|
121
|
+
* Validate that a subcategory code is valid
|
|
122
|
+
*/
|
|
123
|
+
declare function isValidCARSubcategory(code: string): boolean;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @vorionsys/shared-constants
|
|
127
|
+
*
|
|
128
|
+
* Single source of truth for the Vorion ecosystem
|
|
129
|
+
*
|
|
130
|
+
* This package provides shared constants, types, and helper functions
|
|
131
|
+
* that ensure consistency across all Vorion products and sites:
|
|
132
|
+
*
|
|
133
|
+
* - Trust tiers and thresholds (T0-T7)
|
|
134
|
+
* - Domain and URL configuration
|
|
135
|
+
* - Capability definitions
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* ```typescript
|
|
139
|
+
* import {
|
|
140
|
+
* TrustTier,
|
|
141
|
+
* TIER_THRESHOLDS,
|
|
142
|
+
* scoreToTier,
|
|
143
|
+
* API_ENDPOINTS,
|
|
144
|
+
* CAPABILITIES,
|
|
145
|
+
* } from '@vorionsys/shared-constants';
|
|
146
|
+
*
|
|
147
|
+
* // Get tier from score
|
|
148
|
+
* const tier = scoreToTier(750); // TrustTier.T4_STANDARD
|
|
149
|
+
*
|
|
150
|
+
* // Get tier info
|
|
151
|
+
* const info = TIER_THRESHOLDS[TrustTier.T4_STANDARD];
|
|
152
|
+
* console.log(info.name); // "Standard"
|
|
153
|
+
* console.log(info.min, info.max); // 650, 799
|
|
154
|
+
*
|
|
155
|
+
* // Get API endpoint
|
|
156
|
+
* const apiUrl = API_ENDPOINTS.cognigate.production;
|
|
157
|
+
* // "https://cognigate.dev/v1"
|
|
158
|
+
* ```
|
|
159
|
+
*
|
|
160
|
+
* @see https://basis.vorion.org
|
|
161
|
+
* @see https://vorion.org
|
|
162
|
+
*/
|
|
163
|
+
|
|
164
|
+
/** Package version */
|
|
165
|
+
declare const VERSION = "1.0.2";
|
|
166
|
+
/** Last updated date */
|
|
167
|
+
declare const LAST_UPDATED = "2026-02-16";
|
|
168
|
+
|
|
169
|
+
export { CARCategory, type CARCategoryDefinition, type CARSubcategory, CAR_CATEGORIES, LAST_UPDATED, type TrustDimension, TrustTier, VERSION, getAllCARCategoryCodes, getAllCARSubcategoryCodes, getCARCategoriesForTier, getCARCategory, getCARCategoryMinTier, getCARSubcategory, getHighRiskCategories, getParentCategory, isCARCategoryAvailable, isValidCARCategory, isValidCARSubcategory };
|
package/dist/index.js
CHANGED
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
getCapability,
|
|
31
31
|
getCapabilityMinTier,
|
|
32
32
|
isCapabilityAvailable
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-CJQJGJZ6.js";
|
|
34
34
|
import {
|
|
35
35
|
AGENTANCHOR_DOMAINS,
|
|
36
36
|
AGENTANCHOR_EMAILS,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
NPM_PACKAGES,
|
|
43
43
|
VORION_DOMAINS,
|
|
44
44
|
VORION_EMAILS
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-OEEPW54O.js";
|
|
46
46
|
import {
|
|
47
47
|
AUTH_ERRORS,
|
|
48
48
|
ERROR_CODES,
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
getProductsByCategory,
|
|
70
70
|
getProductsByOrganization,
|
|
71
71
|
getProductsByStatus
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-JOS3AHBL.js";
|
|
73
73
|
import {
|
|
74
74
|
RATE_LIMITS,
|
|
75
75
|
TIER_QUOTAS,
|
|
@@ -102,9 +102,321 @@ import {
|
|
|
102
102
|
themeToCssVars
|
|
103
103
|
} from "./chunk-P3VPMVF3.js";
|
|
104
104
|
|
|
105
|
+
// src/car-categories.ts
|
|
106
|
+
var CARCategory = /* @__PURE__ */ ((CARCategory2) => {
|
|
107
|
+
CARCategory2["GOVERNANCE"] = "GOV";
|
|
108
|
+
CARCategory2["REASONING"] = "RSN";
|
|
109
|
+
CARCategory2["TOOL_USE"] = "TUL";
|
|
110
|
+
CARCategory2["MEMORY"] = "MEM";
|
|
111
|
+
CARCategory2["MULTI_AGENT"] = "MAG";
|
|
112
|
+
CARCategory2["SAFETY"] = "SAF";
|
|
113
|
+
CARCategory2["AUDIT"] = "AUD";
|
|
114
|
+
CARCategory2["COMPLIANCE"] = "CMP";
|
|
115
|
+
CARCategory2["FINANCE"] = "FIN";
|
|
116
|
+
CARCategory2["HEALTHCARE"] = "HLT";
|
|
117
|
+
CARCategory2["EMPLOYMENT"] = "EMP";
|
|
118
|
+
CARCategory2["CREATIVE"] = "CRE";
|
|
119
|
+
CARCategory2["RESEARCH"] = "RES";
|
|
120
|
+
CARCategory2["SWARM"] = "SWM";
|
|
121
|
+
CARCategory2["SELF_IMPROVEMENT"] = "SLF";
|
|
122
|
+
CARCategory2["HUMAN_INTERFACE"] = "HIF";
|
|
123
|
+
CARCategory2["SYSTEM"] = "SYS";
|
|
124
|
+
return CARCategory2;
|
|
125
|
+
})(CARCategory || {});
|
|
126
|
+
var CAR_CATEGORIES = [
|
|
127
|
+
// ---- Core Agent Functions ----
|
|
128
|
+
{
|
|
129
|
+
code: "GOV" /* GOVERNANCE */,
|
|
130
|
+
name: "Governance",
|
|
131
|
+
description: "Policy enforcement, decision arbitration, and oversight agents",
|
|
132
|
+
minTier: 4 /* T4_STANDARD */,
|
|
133
|
+
euHighRisk: false,
|
|
134
|
+
trustDimensions: ["compliance", "transparency", "reliability"],
|
|
135
|
+
subcategories: [
|
|
136
|
+
{ code: "GOV-POL", name: "Policy Enforcement", description: "Enforces organizational policies" },
|
|
137
|
+
{ code: "GOV-ARB", name: "Decision Arbitration", description: "Arbitrates between competing decisions" },
|
|
138
|
+
{ code: "GOV-ESC", name: "Escalation Management", description: "Manages escalation workflows" },
|
|
139
|
+
{ code: "GOV-AUT", name: "Authority Delegation", description: "Delegates authority to sub-agents" }
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
code: "RSN" /* REASONING */,
|
|
144
|
+
name: "Reasoning",
|
|
145
|
+
description: "Logical analysis, planning, and inference agents",
|
|
146
|
+
minTier: 2 /* T2_PROVISIONAL */,
|
|
147
|
+
euHighRisk: false,
|
|
148
|
+
trustDimensions: ["behavioral", "reliability"],
|
|
149
|
+
subcategories: [
|
|
150
|
+
{ code: "RSN-LOG", name: "Logical Inference", description: "Deductive and inductive reasoning" },
|
|
151
|
+
{ code: "RSN-PLN", name: "Planning", description: "Multi-step plan generation and optimization" },
|
|
152
|
+
{ code: "RSN-ANL", name: "Analysis", description: "Data analysis and pattern recognition" },
|
|
153
|
+
{ code: "RSN-DEC", name: "Decision Support", description: "Structured decision-making support" }
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
code: "TUL" /* TOOL_USE */,
|
|
158
|
+
name: "Tool Use",
|
|
159
|
+
description: "API invocation, code execution, and external system interaction",
|
|
160
|
+
minTier: 3 /* T3_MONITORED */,
|
|
161
|
+
euHighRisk: false,
|
|
162
|
+
trustDimensions: ["behavioral", "compliance", "context"],
|
|
163
|
+
subcategories: [
|
|
164
|
+
{ code: "TUL-API", name: "API Integration", description: "Calls external APIs" },
|
|
165
|
+
{ code: "TUL-COD", name: "Code Execution", description: "Executes code in sandbox or runtime" },
|
|
166
|
+
{ code: "TUL-FIL", name: "File Operations", description: "Reads, writes, and manages files" },
|
|
167
|
+
{ code: "TUL-DB", name: "Database Operations", description: "Queries and modifies databases" }
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
code: "MEM" /* MEMORY */,
|
|
172
|
+
name: "Memory",
|
|
173
|
+
description: "Context retention, knowledge management, and recall agents",
|
|
174
|
+
minTier: 2 /* T2_PROVISIONAL */,
|
|
175
|
+
euHighRisk: false,
|
|
176
|
+
trustDimensions: ["identity", "context", "reliability"],
|
|
177
|
+
subcategories: [
|
|
178
|
+
{ code: "MEM-STM", name: "Short-Term Memory", description: "Session and conversation context" },
|
|
179
|
+
{ code: "MEM-LTM", name: "Long-Term Memory", description: "Persistent knowledge storage" },
|
|
180
|
+
{ code: "MEM-RET", name: "Retrieval", description: "Knowledge retrieval and RAG" },
|
|
181
|
+
{ code: "MEM-SUM", name: "Summarization", description: "Context compression and summarization" }
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
// ---- Multi-Agent & Swarm ----
|
|
185
|
+
{
|
|
186
|
+
code: "MAG" /* MULTI_AGENT */,
|
|
187
|
+
name: "Multi-Agent",
|
|
188
|
+
description: "Inter-agent coordination, messaging, and collaboration",
|
|
189
|
+
minTier: 4 /* T4_STANDARD */,
|
|
190
|
+
euHighRisk: false,
|
|
191
|
+
trustDimensions: ["behavioral", "identity", "reliability"],
|
|
192
|
+
subcategories: [
|
|
193
|
+
{ code: "MAG-COM", name: "Communication", description: "Inter-agent message passing" },
|
|
194
|
+
{ code: "MAG-DEL", name: "Delegation", description: "Task delegation between agents" },
|
|
195
|
+
{ code: "MAG-CRD", name: "Coordination", description: "Multi-agent workflow coordination" },
|
|
196
|
+
{ code: "MAG-NEG", name: "Negotiation", description: "Inter-agent negotiation and consensus" }
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
code: "SWM" /* SWARM */,
|
|
201
|
+
name: "Swarm",
|
|
202
|
+
description: "Large-scale agent coordination, topology management, and contagion control",
|
|
203
|
+
minTier: 6 /* T6_CERTIFIED */,
|
|
204
|
+
euHighRisk: true,
|
|
205
|
+
trustDimensions: ["behavioral", "compliance", "reliability", "transparency"],
|
|
206
|
+
subcategories: [
|
|
207
|
+
{ code: "SWM-TOP", name: "Topology Management", description: "Agent network topology and routing" },
|
|
208
|
+
{ code: "SWM-CON", name: "Contagion Control", description: "Failure spread rate monitoring and containment" },
|
|
209
|
+
{ code: "SWM-SEG", name: "Segment Isolation", description: "Network segment isolation and quarantine" },
|
|
210
|
+
{ code: "SWM-HLT", name: "Health Monitoring", description: "Swarm-wide health and status tracking" }
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
// ---- Safety & Audit ----
|
|
214
|
+
{
|
|
215
|
+
code: "SAF" /* SAFETY */,
|
|
216
|
+
name: "Safety",
|
|
217
|
+
description: "Content filtering, harm prevention, and safety enforcement",
|
|
218
|
+
minTier: 3 /* T3_MONITORED */,
|
|
219
|
+
euHighRisk: false,
|
|
220
|
+
trustDimensions: ["compliance", "reliability", "transparency"],
|
|
221
|
+
subcategories: [
|
|
222
|
+
{ code: "SAF-FLT", name: "Content Filtering", description: "Input/output content safety filtering" },
|
|
223
|
+
{ code: "SAF-INJ", name: "Injection Detection", description: "Prompt injection and adversarial input detection" },
|
|
224
|
+
{ code: "SAF-BND", name: "Boundary Enforcement", description: "Operational boundary and scope enforcement" },
|
|
225
|
+
{ code: "SAF-KIL", name: "Kill Switch", description: "Emergency halt and containment" }
|
|
226
|
+
]
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
code: "AUD" /* AUDIT */,
|
|
230
|
+
name: "Audit",
|
|
231
|
+
description: "Decision logging, proof chains, and transparency agents",
|
|
232
|
+
minTier: 3 /* T3_MONITORED */,
|
|
233
|
+
euHighRisk: false,
|
|
234
|
+
trustDimensions: ["compliance", "transparency", "identity"],
|
|
235
|
+
subcategories: [
|
|
236
|
+
{ code: "AUD-LOG", name: "Decision Logging", description: "Records all decisions and rationale" },
|
|
237
|
+
{ code: "AUD-PRF", name: "Proof Generation", description: "Generates cryptographic decision proofs" },
|
|
238
|
+
{ code: "AUD-TRC", name: "Traceability", description: "Decision provenance and traceability" },
|
|
239
|
+
{ code: "AUD-RPT", name: "Reporting", description: "Audit report generation and compliance summaries" }
|
|
240
|
+
]
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
code: "CMP" /* COMPLIANCE */,
|
|
244
|
+
name: "Compliance",
|
|
245
|
+
description: "Regulatory compliance monitoring and enforcement",
|
|
246
|
+
minTier: 4 /* T4_STANDARD */,
|
|
247
|
+
euHighRisk: true,
|
|
248
|
+
trustDimensions: ["compliance", "transparency", "reliability"],
|
|
249
|
+
subcategories: [
|
|
250
|
+
{ code: "CMP-REG", name: "Regulatory Monitoring", description: "Monitors regulatory requirements" },
|
|
251
|
+
{ code: "CMP-DPR", name: "Data Protection", description: "GDPR, CCPA, and data privacy compliance" },
|
|
252
|
+
{ code: "CMP-STD", name: "Standards Compliance", description: "ISO, NIST, and industry standard compliance" },
|
|
253
|
+
{ code: "CMP-RPT", name: "Compliance Reporting", description: "Generates compliance reports and attestations" }
|
|
254
|
+
]
|
|
255
|
+
},
|
|
256
|
+
// ---- Domain-Specific (EU AI Act High-Risk) ----
|
|
257
|
+
{
|
|
258
|
+
code: "FIN" /* FINANCE */,
|
|
259
|
+
name: "Finance",
|
|
260
|
+
description: "Financial analysis, trading, risk assessment, and compliance",
|
|
261
|
+
minTier: 5 /* T5_TRUSTED */,
|
|
262
|
+
euHighRisk: true,
|
|
263
|
+
trustDimensions: ["compliance", "reliability", "transparency", "behavioral"],
|
|
264
|
+
subcategories: [
|
|
265
|
+
{ code: "FIN-TRD", name: "Trading", description: "Automated trading and portfolio management" },
|
|
266
|
+
{ code: "FIN-RSK", name: "Risk Assessment", description: "Financial risk analysis and scoring" },
|
|
267
|
+
{ code: "FIN-AML", name: "Anti-Money Laundering", description: "AML/KYC compliance and monitoring" },
|
|
268
|
+
{ code: "FIN-ADV", name: "Advisory", description: "Financial advice and recommendations" }
|
|
269
|
+
]
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
code: "HLT" /* HEALTHCARE */,
|
|
273
|
+
name: "Healthcare",
|
|
274
|
+
description: "Medical analysis, diagnostics support, and health data processing",
|
|
275
|
+
minTier: 5 /* T5_TRUSTED */,
|
|
276
|
+
euHighRisk: true,
|
|
277
|
+
trustDimensions: ["compliance", "reliability", "identity", "transparency"],
|
|
278
|
+
subcategories: [
|
|
279
|
+
{ code: "HLT-DGN", name: "Diagnostics Support", description: "Assists with medical diagnosis" },
|
|
280
|
+
{ code: "HLT-DAT", name: "Health Data Processing", description: "Processes PHI/ePHI data" },
|
|
281
|
+
{ code: "HLT-RES", name: "Medical Research", description: "Clinical research and trial analysis" },
|
|
282
|
+
{ code: "HLT-MON", name: "Patient Monitoring", description: "Continuous patient health monitoring" }
|
|
283
|
+
]
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
code: "EMP" /* EMPLOYMENT */,
|
|
287
|
+
name: "Employment",
|
|
288
|
+
description: "Hiring, HR decisions, performance evaluation, and workforce management",
|
|
289
|
+
minTier: 5 /* T5_TRUSTED */,
|
|
290
|
+
euHighRisk: true,
|
|
291
|
+
trustDimensions: ["compliance", "transparency", "behavioral", "identity"],
|
|
292
|
+
subcategories: [
|
|
293
|
+
{ code: "EMP-HIR", name: "Hiring", description: "Resume screening and candidate evaluation" },
|
|
294
|
+
{ code: "EMP-EVL", name: "Performance Evaluation", description: "Employee performance assessment" },
|
|
295
|
+
{ code: "EMP-WFM", name: "Workforce Management", description: "Scheduling, allocation, and planning" },
|
|
296
|
+
{ code: "EMP-TRN", name: "Training", description: "Employee training and development" }
|
|
297
|
+
]
|
|
298
|
+
},
|
|
299
|
+
// ---- Creative & Research ----
|
|
300
|
+
{
|
|
301
|
+
code: "CRE" /* CREATIVE */,
|
|
302
|
+
name: "Creative",
|
|
303
|
+
description: "Content generation, design, and creative production",
|
|
304
|
+
minTier: 1 /* T1_OBSERVED */,
|
|
305
|
+
euHighRisk: false,
|
|
306
|
+
trustDimensions: ["behavioral", "context"],
|
|
307
|
+
subcategories: [
|
|
308
|
+
{ code: "CRE-TXT", name: "Text Generation", description: "Copywriting, articles, and text content" },
|
|
309
|
+
{ code: "CRE-IMG", name: "Image Generation", description: "Visual content creation and editing" },
|
|
310
|
+
{ code: "CRE-AUD", name: "Audio Generation", description: "Music, voice, and audio content" },
|
|
311
|
+
{ code: "CRE-VID", name: "Video Generation", description: "Video content creation and editing" }
|
|
312
|
+
]
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
code: "RES" /* RESEARCH */,
|
|
316
|
+
name: "Research",
|
|
317
|
+
description: "Information gathering, literature review, and experimental analysis",
|
|
318
|
+
minTier: 2 /* T2_PROVISIONAL */,
|
|
319
|
+
euHighRisk: false,
|
|
320
|
+
trustDimensions: ["behavioral", "reliability", "context"],
|
|
321
|
+
subcategories: [
|
|
322
|
+
{ code: "RES-LIT", name: "Literature Review", description: "Academic and technical literature analysis" },
|
|
323
|
+
{ code: "RES-DAT", name: "Data Collection", description: "Structured data gathering and curation" },
|
|
324
|
+
{ code: "RES-EXP", name: "Experimentation", description: "Experimental design and execution" },
|
|
325
|
+
{ code: "RES-SYN", name: "Synthesis", description: "Research synthesis and meta-analysis" }
|
|
326
|
+
]
|
|
327
|
+
},
|
|
328
|
+
// ---- Advanced Capabilities ----
|
|
329
|
+
{
|
|
330
|
+
code: "SLF" /* SELF_IMPROVEMENT */,
|
|
331
|
+
name: "Self-Improvement",
|
|
332
|
+
description: "Self-modification, learning optimization, and capability enhancement",
|
|
333
|
+
minTier: 7 /* T7_AUTONOMOUS */,
|
|
334
|
+
euHighRisk: true,
|
|
335
|
+
trustDimensions: ["behavioral", "compliance", "transparency", "reliability"],
|
|
336
|
+
subcategories: [
|
|
337
|
+
{ code: "SLF-LRN", name: "Self-Learning", description: "Autonomous learning and adaptation" },
|
|
338
|
+
{ code: "SLF-OPT", name: "Self-Optimization", description: "Performance self-optimization" },
|
|
339
|
+
{ code: "SLF-MOD", name: "Self-Modification", description: "Configuration and behavior self-modification" }
|
|
340
|
+
]
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
code: "HIF" /* HUMAN_INTERFACE */,
|
|
344
|
+
name: "Human Interface",
|
|
345
|
+
description: "Human interaction, communication, and user experience",
|
|
346
|
+
minTier: 2 /* T2_PROVISIONAL */,
|
|
347
|
+
euHighRisk: false,
|
|
348
|
+
trustDimensions: ["behavioral", "context", "identity"],
|
|
349
|
+
subcategories: [
|
|
350
|
+
{ code: "HIF-CHT", name: "Chat", description: "Conversational user interface" },
|
|
351
|
+
{ code: "HIF-AST", name: "Assistant", description: "Task-oriented personal assistant" },
|
|
352
|
+
{ code: "HIF-TUT", name: "Tutorial", description: "Interactive teaching and guidance" },
|
|
353
|
+
{ code: "HIF-ACC", name: "Accessibility", description: "Accessibility and accommodation support" }
|
|
354
|
+
]
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
code: "SYS" /* SYSTEM */,
|
|
358
|
+
name: "System",
|
|
359
|
+
description: "Infrastructure management, deployment, and system operations",
|
|
360
|
+
minTier: 5 /* T5_TRUSTED */,
|
|
361
|
+
euHighRisk: false,
|
|
362
|
+
trustDimensions: ["compliance", "reliability", "identity"],
|
|
363
|
+
subcategories: [
|
|
364
|
+
{ code: "SYS-DEP", name: "Deployment", description: "Application deployment and release management" },
|
|
365
|
+
{ code: "SYS-MON", name: "Monitoring", description: "System monitoring and alerting" },
|
|
366
|
+
{ code: "SYS-SEC", name: "Security", description: "Security scanning and incident response" },
|
|
367
|
+
{ code: "SYS-INF", name: "Infrastructure", description: "Infrastructure provisioning and management" }
|
|
368
|
+
]
|
|
369
|
+
}
|
|
370
|
+
];
|
|
371
|
+
function getCARCategory(code) {
|
|
372
|
+
return CAR_CATEGORIES.find((cat) => cat.code === code);
|
|
373
|
+
}
|
|
374
|
+
function getCARCategoriesForTier(tier) {
|
|
375
|
+
return CAR_CATEGORIES.filter((cat) => cat.minTier <= tier);
|
|
376
|
+
}
|
|
377
|
+
function getHighRiskCategories() {
|
|
378
|
+
return CAR_CATEGORIES.filter((cat) => cat.euHighRisk);
|
|
379
|
+
}
|
|
380
|
+
function isCARCategoryAvailable(code, tier) {
|
|
381
|
+
const cat = getCARCategory(code);
|
|
382
|
+
return cat !== void 0 && cat.minTier <= tier;
|
|
383
|
+
}
|
|
384
|
+
function getCARCategoryMinTier(code) {
|
|
385
|
+
return getCARCategory(code)?.minTier;
|
|
386
|
+
}
|
|
387
|
+
function getCARSubcategory(fullCode) {
|
|
388
|
+
for (const cat of CAR_CATEGORIES) {
|
|
389
|
+
const sub = cat.subcategories.find((s) => s.code === fullCode);
|
|
390
|
+
if (sub) return sub;
|
|
391
|
+
}
|
|
392
|
+
return void 0;
|
|
393
|
+
}
|
|
394
|
+
function getParentCategory(subcategoryCode) {
|
|
395
|
+
for (const cat of CAR_CATEGORIES) {
|
|
396
|
+
if (cat.subcategories.some((s) => s.code === subcategoryCode)) {
|
|
397
|
+
return cat;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
return void 0;
|
|
401
|
+
}
|
|
402
|
+
function getAllCARCategoryCodes() {
|
|
403
|
+
return CAR_CATEGORIES.map((cat) => cat.code);
|
|
404
|
+
}
|
|
405
|
+
function getAllCARSubcategoryCodes() {
|
|
406
|
+
return CAR_CATEGORIES.flatMap(
|
|
407
|
+
(cat) => cat.subcategories.map((sub) => sub.code)
|
|
408
|
+
);
|
|
409
|
+
}
|
|
410
|
+
function isValidCARCategory(code) {
|
|
411
|
+
return CAR_CATEGORIES.some((cat) => cat.code === code);
|
|
412
|
+
}
|
|
413
|
+
function isValidCARSubcategory(code) {
|
|
414
|
+
return getCARSubcategory(code) !== void 0;
|
|
415
|
+
}
|
|
416
|
+
|
|
105
417
|
// src/index.ts
|
|
106
|
-
var VERSION = "1.0.
|
|
107
|
-
var LAST_UPDATED = "2026-02-
|
|
418
|
+
var VERSION = "1.0.2";
|
|
419
|
+
var LAST_UPDATED = "2026-02-16";
|
|
108
420
|
export {
|
|
109
421
|
ACTIVE_THEME,
|
|
110
422
|
AGENTANCHOR_DOMAINS,
|
|
@@ -120,6 +432,8 @@ export {
|
|
|
120
432
|
BASIS_SPEC_VERSION,
|
|
121
433
|
BASIS_VERSIONS,
|
|
122
434
|
CAPABILITIES,
|
|
435
|
+
CARCategory,
|
|
436
|
+
CAR_CATEGORIES,
|
|
123
437
|
CAR_SPEC_CURRENT_VERSION,
|
|
124
438
|
CAR_SPEC_VERSIONS,
|
|
125
439
|
COGNIGATE_CURRENT_VERSION,
|
|
@@ -161,8 +475,14 @@ export {
|
|
|
161
475
|
formatErrorMessage,
|
|
162
476
|
formatRateLimit,
|
|
163
477
|
getActiveTheme,
|
|
478
|
+
getAllCARCategoryCodes,
|
|
479
|
+
getAllCARSubcategoryCodes,
|
|
164
480
|
getAllCapabilityCodes,
|
|
165
481
|
getAllThemeIds,
|
|
482
|
+
getCARCategoriesForTier,
|
|
483
|
+
getCARCategory,
|
|
484
|
+
getCARCategoryMinTier,
|
|
485
|
+
getCARSubcategory,
|
|
166
486
|
getCapabilitiesByCategory,
|
|
167
487
|
getCapabilitiesForTier,
|
|
168
488
|
getCapability,
|
|
@@ -170,7 +490,9 @@ export {
|
|
|
170
490
|
getCurrentVersion,
|
|
171
491
|
getErrorByCode,
|
|
172
492
|
getErrorsByCategory,
|
|
493
|
+
getHighRiskCategories,
|
|
173
494
|
getMinTierForLimits,
|
|
495
|
+
getParentCategory,
|
|
174
496
|
getProduct,
|
|
175
497
|
getProductsByCategory,
|
|
176
498
|
getProductsByOrganization,
|
|
@@ -186,8 +508,11 @@ export {
|
|
|
186
508
|
getTierName,
|
|
187
509
|
getTierThreshold,
|
|
188
510
|
getVersionDefinition,
|
|
511
|
+
isCARCategoryAvailable,
|
|
189
512
|
isCapabilityAvailable,
|
|
190
513
|
isUnlimited,
|
|
514
|
+
isValidCARCategory,
|
|
515
|
+
isValidCARSubcategory,
|
|
191
516
|
isVersionDeprecated,
|
|
192
517
|
isVersionSupported,
|
|
193
518
|
meetsTierRequirement,
|
package/dist/products.cjs
CHANGED
|
@@ -64,7 +64,7 @@ var VORION_PRODUCTS = {
|
|
|
64
64
|
carId: {
|
|
65
65
|
id: "car-id",
|
|
66
66
|
name: "CAR ID",
|
|
67
|
-
description: "Categorical
|
|
67
|
+
description: "Categorical Agentic Registry - Universal agent identification system",
|
|
68
68
|
category: "open_source" /* OPEN_SOURCE */,
|
|
69
69
|
status: "ga" /* GA */,
|
|
70
70
|
url: "https://carid.vorion.org",
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @vorionsys/shared-constants - Product Definitions
|
|
3
|
+
*
|
|
4
|
+
* Single source of truth for all Vorion ecosystem products
|
|
5
|
+
* Used for consistent product references across all sites
|
|
6
|
+
*
|
|
7
|
+
* @see https://vorion.org
|
|
8
|
+
*/
|
|
9
|
+
declare enum ProductCategory {
|
|
10
|
+
/** Open source standards and specifications */
|
|
11
|
+
OPEN_SOURCE = "open_source",
|
|
12
|
+
/** Commercial SaaS products */
|
|
13
|
+
COMMERCIAL = "commercial",
|
|
14
|
+
/** Developer tools and SDKs */
|
|
15
|
+
DEVELOPER_TOOLS = "developer_tools",
|
|
16
|
+
/** Educational platforms */
|
|
17
|
+
EDUCATION = "education"
|
|
18
|
+
}
|
|
19
|
+
declare enum ProductStatus {
|
|
20
|
+
/** In active development, not yet released */
|
|
21
|
+
DEVELOPMENT = "development",
|
|
22
|
+
/** Released as alpha/preview */
|
|
23
|
+
ALPHA = "alpha",
|
|
24
|
+
/** Released as beta */
|
|
25
|
+
BETA = "beta",
|
|
26
|
+
/** Generally available */
|
|
27
|
+
GA = "ga",
|
|
28
|
+
/** Deprecated, still supported */
|
|
29
|
+
DEPRECATED = "deprecated",
|
|
30
|
+
/** End of life, no longer supported */
|
|
31
|
+
EOL = "eol"
|
|
32
|
+
}
|
|
33
|
+
interface ProductDefinition {
|
|
34
|
+
/** Unique product identifier */
|
|
35
|
+
id: string;
|
|
36
|
+
/** Human-readable name */
|
|
37
|
+
name: string;
|
|
38
|
+
/** Short description */
|
|
39
|
+
description: string;
|
|
40
|
+
/** Product category */
|
|
41
|
+
category: ProductCategory;
|
|
42
|
+
/** Current status */
|
|
43
|
+
status: ProductStatus;
|
|
44
|
+
/** Primary website URL */
|
|
45
|
+
url: string;
|
|
46
|
+
/** Documentation URL */
|
|
47
|
+
docsUrl?: string;
|
|
48
|
+
/** GitHub repository URL */
|
|
49
|
+
repoUrl?: string;
|
|
50
|
+
/** NPM package name */
|
|
51
|
+
npmPackage?: string;
|
|
52
|
+
/** Parent organization */
|
|
53
|
+
organization: 'vorion' | 'agentanchor';
|
|
54
|
+
/** Version (semver) */
|
|
55
|
+
version?: string;
|
|
56
|
+
}
|
|
57
|
+
declare const VORION_PRODUCTS: Record<string, ProductDefinition>;
|
|
58
|
+
declare const AGENTANCHOR_PRODUCTS: Record<string, ProductDefinition>;
|
|
59
|
+
declare const ALL_PRODUCTS: {
|
|
60
|
+
readonly vorion: Record<string, ProductDefinition>;
|
|
61
|
+
readonly agentAnchor: Record<string, ProductDefinition>;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Get a product by its ID
|
|
65
|
+
*/
|
|
66
|
+
declare function getProduct(productId: string): ProductDefinition | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Get all products by category
|
|
69
|
+
*/
|
|
70
|
+
declare function getProductsByCategory(category: ProductCategory): ProductDefinition[];
|
|
71
|
+
/**
|
|
72
|
+
* Get all products by status
|
|
73
|
+
*/
|
|
74
|
+
declare function getProductsByStatus(status: ProductStatus): ProductDefinition[];
|
|
75
|
+
/**
|
|
76
|
+
* Get all products by organization
|
|
77
|
+
*/
|
|
78
|
+
declare function getProductsByOrganization(org: 'vorion' | 'agentanchor'): ProductDefinition[];
|
|
79
|
+
|
|
80
|
+
export { AGENTANCHOR_PRODUCTS, ALL_PRODUCTS, ProductCategory, type ProductDefinition, ProductStatus, VORION_PRODUCTS, getProduct, getProductsByCategory, getProductsByOrganization, getProductsByStatus };
|