@vorionsys/shared-constants 1.0.2 → 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/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- export { ALL_TIERS, TIER_THRESHOLDS, TierThreshold, TrustTier, TrustTierCode, TrustTierName, getTierCode, getTierColor, getTierMaxScore, getTierMinScore, getTierName, getTierThreshold, meetsTierRequirement, parseTier, scoreToTier } from './tiers.js';
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';
2
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';
3
4
  export { CAPABILITIES, CapabilityCategory, CapabilityDefinition, getAllCapabilityCodes, getCapabilitiesByCategory, getCapabilitiesForTier, getCapability, getCapabilityMinTier, isCapabilityAvailable } from './capabilities.js';
4
5
  export { AGENTANCHOR_PRODUCTS, ALL_PRODUCTS, ProductCategory, ProductDefinition, ProductStatus, VORION_PRODUCTS, getProduct, getProductsByCategory, getProductsByOrganization, getProductsByStatus } from './products.js';
@@ -7,6 +8,120 @@ export { AUTH_ERRORS, ERROR_CODES, EXTERNAL_ERRORS, ErrorCategory, ErrorCode, Er
7
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';
8
9
  export { ACTIVE_THEME, THEMES, ThemeId, ThemeTokens, getActiveTheme, getAllThemeIds, themeToCssVars } from './themes.js';
9
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
+
10
125
  /**
11
126
  * @vorionsys/shared-constants
12
127
  *
@@ -47,8 +162,8 @@ export { ACTIVE_THEME, THEMES, ThemeId, ThemeTokens, getActiveTheme, getAllTheme
47
162
  */
48
163
 
49
164
  /** Package version */
50
- declare const VERSION = "1.0.1";
165
+ declare const VERSION = "1.0.2";
51
166
  /** Last updated date */
52
167
  declare const LAST_UPDATED = "2026-02-16";
53
168
 
54
- export { LAST_UPDATED, VERSION };
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-JZJPDGG7.js";
33
+ } from "./chunk-CJQJGJZ6.js";
34
34
  import {
35
35
  AGENTANCHOR_DOMAINS,
36
36
  AGENTANCHOR_EMAILS,
@@ -69,7 +69,7 @@ import {
69
69
  getProductsByCategory,
70
70
  getProductsByOrganization,
71
71
  getProductsByStatus
72
- } from "./chunk-RZQZEF6Q.js";
72
+ } from "./chunk-JOS3AHBL.js";
73
73
  import {
74
74
  RATE_LIMITS,
75
75
  TIER_QUOTAS,
@@ -102,8 +102,320 @@ 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.1";
418
+ var VERSION = "1.0.2";
107
419
  var LAST_UPDATED = "2026-02-16";
108
420
  export {
109
421
  ACTIVE_THEME,
@@ -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 Agent Registry - Universal agent identification system",
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",
package/dist/products.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  getProductsByCategory,
9
9
  getProductsByOrganization,
10
10
  getProductsByStatus
11
- } from "./chunk-RZQZEF6Q.js";
11
+ } from "./chunk-JOS3AHBL.js";
12
12
  export {
13
13
  AGENTANCHOR_PRODUCTS,
14
14
  ALL_PRODUCTS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vorionsys/shared-constants",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Shared constants for Vorion ecosystem - single source of truth for tiers, domains, and configuration",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -68,7 +68,7 @@
68
68
  "ai-governance",
69
69
  "agent-trust",
70
70
  "cognigate",
71
- "agentanchor",
71
+ "vorion",
72
72
  "trust-tiers",
73
73
  "rate-limits",
74
74
  "error-codes",
@@ -78,13 +78,13 @@
78
78
  "license": "Apache-2.0",
79
79
  "repository": {
80
80
  "type": "git",
81
- "url": "git+https://github.com/voriongit/vorion.git",
81
+ "url": "git+https://github.com/vorionsys/vorion.git",
82
82
  "directory": "packages/shared-constants"
83
83
  },
84
84
  "homepage": "https://vorion.org",
85
85
  "devDependencies": {
86
- "tsup": "^8.0.0",
87
- "typescript": "^5.7.0",
86
+ "tsup": "^8.5.1",
87
+ "typescript": "^5.9.3",
88
88
  "vitest": "4.0.18"
89
89
  },
90
90
  "engines": {