@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/CHANGELOG.md +2 -2
- package/README.md +7 -7
- package/dist/capabilities.cjs +4 -3
- package/dist/capabilities.d.cts +3 -2
- package/dist/capabilities.d.ts +3 -2
- package/dist/capabilities.js +1 -1
- package/dist/chunk-CJQJGJZ6.js +216 -0
- package/dist/chunk-JOS3AHBL.js +176 -0
- package/dist/index.cjs +344 -5
- package/dist/index.d.cts +118 -3
- package/dist/index.d.ts +118 -3
- package/dist/index.js +328 -3
- package/dist/products.cjs +1 -1
- package/dist/products.js +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -34,6 +34,8 @@ __export(index_exports, {
|
|
|
34
34
|
BASIS_SPEC_VERSION: () => BASIS_SPEC_VERSION,
|
|
35
35
|
BASIS_VERSIONS: () => BASIS_VERSIONS,
|
|
36
36
|
CAPABILITIES: () => CAPABILITIES,
|
|
37
|
+
CARCategory: () => CARCategory,
|
|
38
|
+
CAR_CATEGORIES: () => CAR_CATEGORIES,
|
|
37
39
|
CAR_SPEC_CURRENT_VERSION: () => CAR_SPEC_CURRENT_VERSION,
|
|
38
40
|
CAR_SPEC_VERSIONS: () => CAR_SPEC_VERSIONS,
|
|
39
41
|
COGNIGATE_CURRENT_VERSION: () => COGNIGATE_CURRENT_VERSION,
|
|
@@ -75,8 +77,14 @@ __export(index_exports, {
|
|
|
75
77
|
formatErrorMessage: () => formatErrorMessage,
|
|
76
78
|
formatRateLimit: () => formatRateLimit,
|
|
77
79
|
getActiveTheme: () => getActiveTheme,
|
|
80
|
+
getAllCARCategoryCodes: () => getAllCARCategoryCodes,
|
|
81
|
+
getAllCARSubcategoryCodes: () => getAllCARSubcategoryCodes,
|
|
78
82
|
getAllCapabilityCodes: () => getAllCapabilityCodes,
|
|
79
83
|
getAllThemeIds: () => getAllThemeIds,
|
|
84
|
+
getCARCategoriesForTier: () => getCARCategoriesForTier,
|
|
85
|
+
getCARCategory: () => getCARCategory,
|
|
86
|
+
getCARCategoryMinTier: () => getCARCategoryMinTier,
|
|
87
|
+
getCARSubcategory: () => getCARSubcategory,
|
|
80
88
|
getCapabilitiesByCategory: () => getCapabilitiesByCategory,
|
|
81
89
|
getCapabilitiesForTier: () => getCapabilitiesForTier,
|
|
82
90
|
getCapability: () => getCapability,
|
|
@@ -84,7 +92,9 @@ __export(index_exports, {
|
|
|
84
92
|
getCurrentVersion: () => getCurrentVersion,
|
|
85
93
|
getErrorByCode: () => getErrorByCode,
|
|
86
94
|
getErrorsByCategory: () => getErrorsByCategory,
|
|
95
|
+
getHighRiskCategories: () => getHighRiskCategories,
|
|
87
96
|
getMinTierForLimits: () => getMinTierForLimits,
|
|
97
|
+
getParentCategory: () => getParentCategory,
|
|
88
98
|
getProduct: () => getProduct,
|
|
89
99
|
getProductsByCategory: () => getProductsByCategory,
|
|
90
100
|
getProductsByOrganization: () => getProductsByOrganization,
|
|
@@ -100,8 +110,11 @@ __export(index_exports, {
|
|
|
100
110
|
getTierName: () => getTierName,
|
|
101
111
|
getTierThreshold: () => getTierThreshold,
|
|
102
112
|
getVersionDefinition: () => getVersionDefinition,
|
|
113
|
+
isCARCategoryAvailable: () => isCARCategoryAvailable,
|
|
103
114
|
isCapabilityAvailable: () => isCapabilityAvailable,
|
|
104
115
|
isUnlimited: () => isUnlimited,
|
|
116
|
+
isValidCARCategory: () => isValidCARCategory,
|
|
117
|
+
isValidCARSubcategory: () => isValidCARSubcategory,
|
|
105
118
|
isVersionDeprecated: () => isVersionDeprecated,
|
|
106
119
|
isVersionSupported: () => isVersionSupported,
|
|
107
120
|
meetsTierRequirement: () => meetsTierRequirement,
|
|
@@ -388,12 +401,13 @@ var ALL_DOMAINS = {
|
|
|
388
401
|
// src/capabilities.ts
|
|
389
402
|
var CapabilityCategory = /* @__PURE__ */ ((CapabilityCategory2) => {
|
|
390
403
|
CapabilityCategory2["DATA_ACCESS"] = "data_access";
|
|
404
|
+
CapabilityCategory2["FILE_OPERATIONS"] = "file_operations";
|
|
391
405
|
CapabilityCategory2["API_ACCESS"] = "api_access";
|
|
392
406
|
CapabilityCategory2["CODE_EXECUTION"] = "code_execution";
|
|
393
407
|
CapabilityCategory2["AGENT_INTERACTION"] = "agent_interaction";
|
|
394
408
|
CapabilityCategory2["RESOURCE_MANAGEMENT"] = "resource_management";
|
|
409
|
+
CapabilityCategory2["SYSTEM_ADMINISTRATION"] = "system_administration";
|
|
395
410
|
CapabilityCategory2["GOVERNANCE"] = "governance";
|
|
396
|
-
CapabilityCategory2["ADMIN"] = "admin";
|
|
397
411
|
return CapabilityCategory2;
|
|
398
412
|
})(CapabilityCategory || {});
|
|
399
413
|
var CAPABILITIES = [
|
|
@@ -433,7 +447,7 @@ var CAPABILITIES = [
|
|
|
433
447
|
{
|
|
434
448
|
code: "CAP-FILE-WRITE",
|
|
435
449
|
name: "Write Files",
|
|
436
|
-
category: "
|
|
450
|
+
category: "file_operations" /* FILE_OPERATIONS */,
|
|
437
451
|
description: "Write to approved directories",
|
|
438
452
|
unlockTier: 2 /* T2_PROVISIONAL */,
|
|
439
453
|
constraints: ["Approved dirs only", "Size limited"]
|
|
@@ -549,7 +563,7 @@ var CAPABILITIES = [
|
|
|
549
563
|
{
|
|
550
564
|
code: "CAP-FULL-ADMIN",
|
|
551
565
|
name: "Full Administration",
|
|
552
|
-
category: "
|
|
566
|
+
category: "system_administration" /* SYSTEM_ADMINISTRATION */,
|
|
553
567
|
description: "Full administrative access",
|
|
554
568
|
unlockTier: 7 /* T7_AUTONOMOUS */
|
|
555
569
|
},
|
|
@@ -624,7 +638,7 @@ var VORION_PRODUCTS = {
|
|
|
624
638
|
carId: {
|
|
625
639
|
id: "car-id",
|
|
626
640
|
name: "CAR ID",
|
|
627
|
-
description: "Categorical
|
|
641
|
+
description: "Categorical Agentic Registry - Universal agent identification system",
|
|
628
642
|
category: "open_source" /* OPEN_SOURCE */,
|
|
629
643
|
status: "ga" /* GA */,
|
|
630
644
|
url: "https://carid.vorion.org",
|
|
@@ -1663,8 +1677,320 @@ function themeToCssVars(themeId = ACTIVE_THEME) {
|
|
|
1663
1677
|
`.trim();
|
|
1664
1678
|
}
|
|
1665
1679
|
|
|
1680
|
+
// src/car-categories.ts
|
|
1681
|
+
var CARCategory = /* @__PURE__ */ ((CARCategory2) => {
|
|
1682
|
+
CARCategory2["GOVERNANCE"] = "GOV";
|
|
1683
|
+
CARCategory2["REASONING"] = "RSN";
|
|
1684
|
+
CARCategory2["TOOL_USE"] = "TUL";
|
|
1685
|
+
CARCategory2["MEMORY"] = "MEM";
|
|
1686
|
+
CARCategory2["MULTI_AGENT"] = "MAG";
|
|
1687
|
+
CARCategory2["SAFETY"] = "SAF";
|
|
1688
|
+
CARCategory2["AUDIT"] = "AUD";
|
|
1689
|
+
CARCategory2["COMPLIANCE"] = "CMP";
|
|
1690
|
+
CARCategory2["FINANCE"] = "FIN";
|
|
1691
|
+
CARCategory2["HEALTHCARE"] = "HLT";
|
|
1692
|
+
CARCategory2["EMPLOYMENT"] = "EMP";
|
|
1693
|
+
CARCategory2["CREATIVE"] = "CRE";
|
|
1694
|
+
CARCategory2["RESEARCH"] = "RES";
|
|
1695
|
+
CARCategory2["SWARM"] = "SWM";
|
|
1696
|
+
CARCategory2["SELF_IMPROVEMENT"] = "SLF";
|
|
1697
|
+
CARCategory2["HUMAN_INTERFACE"] = "HIF";
|
|
1698
|
+
CARCategory2["SYSTEM"] = "SYS";
|
|
1699
|
+
return CARCategory2;
|
|
1700
|
+
})(CARCategory || {});
|
|
1701
|
+
var CAR_CATEGORIES = [
|
|
1702
|
+
// ---- Core Agent Functions ----
|
|
1703
|
+
{
|
|
1704
|
+
code: "GOV" /* GOVERNANCE */,
|
|
1705
|
+
name: "Governance",
|
|
1706
|
+
description: "Policy enforcement, decision arbitration, and oversight agents",
|
|
1707
|
+
minTier: 4 /* T4_STANDARD */,
|
|
1708
|
+
euHighRisk: false,
|
|
1709
|
+
trustDimensions: ["compliance", "transparency", "reliability"],
|
|
1710
|
+
subcategories: [
|
|
1711
|
+
{ code: "GOV-POL", name: "Policy Enforcement", description: "Enforces organizational policies" },
|
|
1712
|
+
{ code: "GOV-ARB", name: "Decision Arbitration", description: "Arbitrates between competing decisions" },
|
|
1713
|
+
{ code: "GOV-ESC", name: "Escalation Management", description: "Manages escalation workflows" },
|
|
1714
|
+
{ code: "GOV-AUT", name: "Authority Delegation", description: "Delegates authority to sub-agents" }
|
|
1715
|
+
]
|
|
1716
|
+
},
|
|
1717
|
+
{
|
|
1718
|
+
code: "RSN" /* REASONING */,
|
|
1719
|
+
name: "Reasoning",
|
|
1720
|
+
description: "Logical analysis, planning, and inference agents",
|
|
1721
|
+
minTier: 2 /* T2_PROVISIONAL */,
|
|
1722
|
+
euHighRisk: false,
|
|
1723
|
+
trustDimensions: ["behavioral", "reliability"],
|
|
1724
|
+
subcategories: [
|
|
1725
|
+
{ code: "RSN-LOG", name: "Logical Inference", description: "Deductive and inductive reasoning" },
|
|
1726
|
+
{ code: "RSN-PLN", name: "Planning", description: "Multi-step plan generation and optimization" },
|
|
1727
|
+
{ code: "RSN-ANL", name: "Analysis", description: "Data analysis and pattern recognition" },
|
|
1728
|
+
{ code: "RSN-DEC", name: "Decision Support", description: "Structured decision-making support" }
|
|
1729
|
+
]
|
|
1730
|
+
},
|
|
1731
|
+
{
|
|
1732
|
+
code: "TUL" /* TOOL_USE */,
|
|
1733
|
+
name: "Tool Use",
|
|
1734
|
+
description: "API invocation, code execution, and external system interaction",
|
|
1735
|
+
minTier: 3 /* T3_MONITORED */,
|
|
1736
|
+
euHighRisk: false,
|
|
1737
|
+
trustDimensions: ["behavioral", "compliance", "context"],
|
|
1738
|
+
subcategories: [
|
|
1739
|
+
{ code: "TUL-API", name: "API Integration", description: "Calls external APIs" },
|
|
1740
|
+
{ code: "TUL-COD", name: "Code Execution", description: "Executes code in sandbox or runtime" },
|
|
1741
|
+
{ code: "TUL-FIL", name: "File Operations", description: "Reads, writes, and manages files" },
|
|
1742
|
+
{ code: "TUL-DB", name: "Database Operations", description: "Queries and modifies databases" }
|
|
1743
|
+
]
|
|
1744
|
+
},
|
|
1745
|
+
{
|
|
1746
|
+
code: "MEM" /* MEMORY */,
|
|
1747
|
+
name: "Memory",
|
|
1748
|
+
description: "Context retention, knowledge management, and recall agents",
|
|
1749
|
+
minTier: 2 /* T2_PROVISIONAL */,
|
|
1750
|
+
euHighRisk: false,
|
|
1751
|
+
trustDimensions: ["identity", "context", "reliability"],
|
|
1752
|
+
subcategories: [
|
|
1753
|
+
{ code: "MEM-STM", name: "Short-Term Memory", description: "Session and conversation context" },
|
|
1754
|
+
{ code: "MEM-LTM", name: "Long-Term Memory", description: "Persistent knowledge storage" },
|
|
1755
|
+
{ code: "MEM-RET", name: "Retrieval", description: "Knowledge retrieval and RAG" },
|
|
1756
|
+
{ code: "MEM-SUM", name: "Summarization", description: "Context compression and summarization" }
|
|
1757
|
+
]
|
|
1758
|
+
},
|
|
1759
|
+
// ---- Multi-Agent & Swarm ----
|
|
1760
|
+
{
|
|
1761
|
+
code: "MAG" /* MULTI_AGENT */,
|
|
1762
|
+
name: "Multi-Agent",
|
|
1763
|
+
description: "Inter-agent coordination, messaging, and collaboration",
|
|
1764
|
+
minTier: 4 /* T4_STANDARD */,
|
|
1765
|
+
euHighRisk: false,
|
|
1766
|
+
trustDimensions: ["behavioral", "identity", "reliability"],
|
|
1767
|
+
subcategories: [
|
|
1768
|
+
{ code: "MAG-COM", name: "Communication", description: "Inter-agent message passing" },
|
|
1769
|
+
{ code: "MAG-DEL", name: "Delegation", description: "Task delegation between agents" },
|
|
1770
|
+
{ code: "MAG-CRD", name: "Coordination", description: "Multi-agent workflow coordination" },
|
|
1771
|
+
{ code: "MAG-NEG", name: "Negotiation", description: "Inter-agent negotiation and consensus" }
|
|
1772
|
+
]
|
|
1773
|
+
},
|
|
1774
|
+
{
|
|
1775
|
+
code: "SWM" /* SWARM */,
|
|
1776
|
+
name: "Swarm",
|
|
1777
|
+
description: "Large-scale agent coordination, topology management, and contagion control",
|
|
1778
|
+
minTier: 6 /* T6_CERTIFIED */,
|
|
1779
|
+
euHighRisk: true,
|
|
1780
|
+
trustDimensions: ["behavioral", "compliance", "reliability", "transparency"],
|
|
1781
|
+
subcategories: [
|
|
1782
|
+
{ code: "SWM-TOP", name: "Topology Management", description: "Agent network topology and routing" },
|
|
1783
|
+
{ code: "SWM-CON", name: "Contagion Control", description: "Failure spread rate monitoring and containment" },
|
|
1784
|
+
{ code: "SWM-SEG", name: "Segment Isolation", description: "Network segment isolation and quarantine" },
|
|
1785
|
+
{ code: "SWM-HLT", name: "Health Monitoring", description: "Swarm-wide health and status tracking" }
|
|
1786
|
+
]
|
|
1787
|
+
},
|
|
1788
|
+
// ---- Safety & Audit ----
|
|
1789
|
+
{
|
|
1790
|
+
code: "SAF" /* SAFETY */,
|
|
1791
|
+
name: "Safety",
|
|
1792
|
+
description: "Content filtering, harm prevention, and safety enforcement",
|
|
1793
|
+
minTier: 3 /* T3_MONITORED */,
|
|
1794
|
+
euHighRisk: false,
|
|
1795
|
+
trustDimensions: ["compliance", "reliability", "transparency"],
|
|
1796
|
+
subcategories: [
|
|
1797
|
+
{ code: "SAF-FLT", name: "Content Filtering", description: "Input/output content safety filtering" },
|
|
1798
|
+
{ code: "SAF-INJ", name: "Injection Detection", description: "Prompt injection and adversarial input detection" },
|
|
1799
|
+
{ code: "SAF-BND", name: "Boundary Enforcement", description: "Operational boundary and scope enforcement" },
|
|
1800
|
+
{ code: "SAF-KIL", name: "Kill Switch", description: "Emergency halt and containment" }
|
|
1801
|
+
]
|
|
1802
|
+
},
|
|
1803
|
+
{
|
|
1804
|
+
code: "AUD" /* AUDIT */,
|
|
1805
|
+
name: "Audit",
|
|
1806
|
+
description: "Decision logging, proof chains, and transparency agents",
|
|
1807
|
+
minTier: 3 /* T3_MONITORED */,
|
|
1808
|
+
euHighRisk: false,
|
|
1809
|
+
trustDimensions: ["compliance", "transparency", "identity"],
|
|
1810
|
+
subcategories: [
|
|
1811
|
+
{ code: "AUD-LOG", name: "Decision Logging", description: "Records all decisions and rationale" },
|
|
1812
|
+
{ code: "AUD-PRF", name: "Proof Generation", description: "Generates cryptographic decision proofs" },
|
|
1813
|
+
{ code: "AUD-TRC", name: "Traceability", description: "Decision provenance and traceability" },
|
|
1814
|
+
{ code: "AUD-RPT", name: "Reporting", description: "Audit report generation and compliance summaries" }
|
|
1815
|
+
]
|
|
1816
|
+
},
|
|
1817
|
+
{
|
|
1818
|
+
code: "CMP" /* COMPLIANCE */,
|
|
1819
|
+
name: "Compliance",
|
|
1820
|
+
description: "Regulatory compliance monitoring and enforcement",
|
|
1821
|
+
minTier: 4 /* T4_STANDARD */,
|
|
1822
|
+
euHighRisk: true,
|
|
1823
|
+
trustDimensions: ["compliance", "transparency", "reliability"],
|
|
1824
|
+
subcategories: [
|
|
1825
|
+
{ code: "CMP-REG", name: "Regulatory Monitoring", description: "Monitors regulatory requirements" },
|
|
1826
|
+
{ code: "CMP-DPR", name: "Data Protection", description: "GDPR, CCPA, and data privacy compliance" },
|
|
1827
|
+
{ code: "CMP-STD", name: "Standards Compliance", description: "ISO, NIST, and industry standard compliance" },
|
|
1828
|
+
{ code: "CMP-RPT", name: "Compliance Reporting", description: "Generates compliance reports and attestations" }
|
|
1829
|
+
]
|
|
1830
|
+
},
|
|
1831
|
+
// ---- Domain-Specific (EU AI Act High-Risk) ----
|
|
1832
|
+
{
|
|
1833
|
+
code: "FIN" /* FINANCE */,
|
|
1834
|
+
name: "Finance",
|
|
1835
|
+
description: "Financial analysis, trading, risk assessment, and compliance",
|
|
1836
|
+
minTier: 5 /* T5_TRUSTED */,
|
|
1837
|
+
euHighRisk: true,
|
|
1838
|
+
trustDimensions: ["compliance", "reliability", "transparency", "behavioral"],
|
|
1839
|
+
subcategories: [
|
|
1840
|
+
{ code: "FIN-TRD", name: "Trading", description: "Automated trading and portfolio management" },
|
|
1841
|
+
{ code: "FIN-RSK", name: "Risk Assessment", description: "Financial risk analysis and scoring" },
|
|
1842
|
+
{ code: "FIN-AML", name: "Anti-Money Laundering", description: "AML/KYC compliance and monitoring" },
|
|
1843
|
+
{ code: "FIN-ADV", name: "Advisory", description: "Financial advice and recommendations" }
|
|
1844
|
+
]
|
|
1845
|
+
},
|
|
1846
|
+
{
|
|
1847
|
+
code: "HLT" /* HEALTHCARE */,
|
|
1848
|
+
name: "Healthcare",
|
|
1849
|
+
description: "Medical analysis, diagnostics support, and health data processing",
|
|
1850
|
+
minTier: 5 /* T5_TRUSTED */,
|
|
1851
|
+
euHighRisk: true,
|
|
1852
|
+
trustDimensions: ["compliance", "reliability", "identity", "transparency"],
|
|
1853
|
+
subcategories: [
|
|
1854
|
+
{ code: "HLT-DGN", name: "Diagnostics Support", description: "Assists with medical diagnosis" },
|
|
1855
|
+
{ code: "HLT-DAT", name: "Health Data Processing", description: "Processes PHI/ePHI data" },
|
|
1856
|
+
{ code: "HLT-RES", name: "Medical Research", description: "Clinical research and trial analysis" },
|
|
1857
|
+
{ code: "HLT-MON", name: "Patient Monitoring", description: "Continuous patient health monitoring" }
|
|
1858
|
+
]
|
|
1859
|
+
},
|
|
1860
|
+
{
|
|
1861
|
+
code: "EMP" /* EMPLOYMENT */,
|
|
1862
|
+
name: "Employment",
|
|
1863
|
+
description: "Hiring, HR decisions, performance evaluation, and workforce management",
|
|
1864
|
+
minTier: 5 /* T5_TRUSTED */,
|
|
1865
|
+
euHighRisk: true,
|
|
1866
|
+
trustDimensions: ["compliance", "transparency", "behavioral", "identity"],
|
|
1867
|
+
subcategories: [
|
|
1868
|
+
{ code: "EMP-HIR", name: "Hiring", description: "Resume screening and candidate evaluation" },
|
|
1869
|
+
{ code: "EMP-EVL", name: "Performance Evaluation", description: "Employee performance assessment" },
|
|
1870
|
+
{ code: "EMP-WFM", name: "Workforce Management", description: "Scheduling, allocation, and planning" },
|
|
1871
|
+
{ code: "EMP-TRN", name: "Training", description: "Employee training and development" }
|
|
1872
|
+
]
|
|
1873
|
+
},
|
|
1874
|
+
// ---- Creative & Research ----
|
|
1875
|
+
{
|
|
1876
|
+
code: "CRE" /* CREATIVE */,
|
|
1877
|
+
name: "Creative",
|
|
1878
|
+
description: "Content generation, design, and creative production",
|
|
1879
|
+
minTier: 1 /* T1_OBSERVED */,
|
|
1880
|
+
euHighRisk: false,
|
|
1881
|
+
trustDimensions: ["behavioral", "context"],
|
|
1882
|
+
subcategories: [
|
|
1883
|
+
{ code: "CRE-TXT", name: "Text Generation", description: "Copywriting, articles, and text content" },
|
|
1884
|
+
{ code: "CRE-IMG", name: "Image Generation", description: "Visual content creation and editing" },
|
|
1885
|
+
{ code: "CRE-AUD", name: "Audio Generation", description: "Music, voice, and audio content" },
|
|
1886
|
+
{ code: "CRE-VID", name: "Video Generation", description: "Video content creation and editing" }
|
|
1887
|
+
]
|
|
1888
|
+
},
|
|
1889
|
+
{
|
|
1890
|
+
code: "RES" /* RESEARCH */,
|
|
1891
|
+
name: "Research",
|
|
1892
|
+
description: "Information gathering, literature review, and experimental analysis",
|
|
1893
|
+
minTier: 2 /* T2_PROVISIONAL */,
|
|
1894
|
+
euHighRisk: false,
|
|
1895
|
+
trustDimensions: ["behavioral", "reliability", "context"],
|
|
1896
|
+
subcategories: [
|
|
1897
|
+
{ code: "RES-LIT", name: "Literature Review", description: "Academic and technical literature analysis" },
|
|
1898
|
+
{ code: "RES-DAT", name: "Data Collection", description: "Structured data gathering and curation" },
|
|
1899
|
+
{ code: "RES-EXP", name: "Experimentation", description: "Experimental design and execution" },
|
|
1900
|
+
{ code: "RES-SYN", name: "Synthesis", description: "Research synthesis and meta-analysis" }
|
|
1901
|
+
]
|
|
1902
|
+
},
|
|
1903
|
+
// ---- Advanced Capabilities ----
|
|
1904
|
+
{
|
|
1905
|
+
code: "SLF" /* SELF_IMPROVEMENT */,
|
|
1906
|
+
name: "Self-Improvement",
|
|
1907
|
+
description: "Self-modification, learning optimization, and capability enhancement",
|
|
1908
|
+
minTier: 7 /* T7_AUTONOMOUS */,
|
|
1909
|
+
euHighRisk: true,
|
|
1910
|
+
trustDimensions: ["behavioral", "compliance", "transparency", "reliability"],
|
|
1911
|
+
subcategories: [
|
|
1912
|
+
{ code: "SLF-LRN", name: "Self-Learning", description: "Autonomous learning and adaptation" },
|
|
1913
|
+
{ code: "SLF-OPT", name: "Self-Optimization", description: "Performance self-optimization" },
|
|
1914
|
+
{ code: "SLF-MOD", name: "Self-Modification", description: "Configuration and behavior self-modification" }
|
|
1915
|
+
]
|
|
1916
|
+
},
|
|
1917
|
+
{
|
|
1918
|
+
code: "HIF" /* HUMAN_INTERFACE */,
|
|
1919
|
+
name: "Human Interface",
|
|
1920
|
+
description: "Human interaction, communication, and user experience",
|
|
1921
|
+
minTier: 2 /* T2_PROVISIONAL */,
|
|
1922
|
+
euHighRisk: false,
|
|
1923
|
+
trustDimensions: ["behavioral", "context", "identity"],
|
|
1924
|
+
subcategories: [
|
|
1925
|
+
{ code: "HIF-CHT", name: "Chat", description: "Conversational user interface" },
|
|
1926
|
+
{ code: "HIF-AST", name: "Assistant", description: "Task-oriented personal assistant" },
|
|
1927
|
+
{ code: "HIF-TUT", name: "Tutorial", description: "Interactive teaching and guidance" },
|
|
1928
|
+
{ code: "HIF-ACC", name: "Accessibility", description: "Accessibility and accommodation support" }
|
|
1929
|
+
]
|
|
1930
|
+
},
|
|
1931
|
+
{
|
|
1932
|
+
code: "SYS" /* SYSTEM */,
|
|
1933
|
+
name: "System",
|
|
1934
|
+
description: "Infrastructure management, deployment, and system operations",
|
|
1935
|
+
minTier: 5 /* T5_TRUSTED */,
|
|
1936
|
+
euHighRisk: false,
|
|
1937
|
+
trustDimensions: ["compliance", "reliability", "identity"],
|
|
1938
|
+
subcategories: [
|
|
1939
|
+
{ code: "SYS-DEP", name: "Deployment", description: "Application deployment and release management" },
|
|
1940
|
+
{ code: "SYS-MON", name: "Monitoring", description: "System monitoring and alerting" },
|
|
1941
|
+
{ code: "SYS-SEC", name: "Security", description: "Security scanning and incident response" },
|
|
1942
|
+
{ code: "SYS-INF", name: "Infrastructure", description: "Infrastructure provisioning and management" }
|
|
1943
|
+
]
|
|
1944
|
+
}
|
|
1945
|
+
];
|
|
1946
|
+
function getCARCategory(code) {
|
|
1947
|
+
return CAR_CATEGORIES.find((cat) => cat.code === code);
|
|
1948
|
+
}
|
|
1949
|
+
function getCARCategoriesForTier(tier) {
|
|
1950
|
+
return CAR_CATEGORIES.filter((cat) => cat.minTier <= tier);
|
|
1951
|
+
}
|
|
1952
|
+
function getHighRiskCategories() {
|
|
1953
|
+
return CAR_CATEGORIES.filter((cat) => cat.euHighRisk);
|
|
1954
|
+
}
|
|
1955
|
+
function isCARCategoryAvailable(code, tier) {
|
|
1956
|
+
const cat = getCARCategory(code);
|
|
1957
|
+
return cat !== void 0 && cat.minTier <= tier;
|
|
1958
|
+
}
|
|
1959
|
+
function getCARCategoryMinTier(code) {
|
|
1960
|
+
return getCARCategory(code)?.minTier;
|
|
1961
|
+
}
|
|
1962
|
+
function getCARSubcategory(fullCode) {
|
|
1963
|
+
for (const cat of CAR_CATEGORIES) {
|
|
1964
|
+
const sub = cat.subcategories.find((s) => s.code === fullCode);
|
|
1965
|
+
if (sub) return sub;
|
|
1966
|
+
}
|
|
1967
|
+
return void 0;
|
|
1968
|
+
}
|
|
1969
|
+
function getParentCategory(subcategoryCode) {
|
|
1970
|
+
for (const cat of CAR_CATEGORIES) {
|
|
1971
|
+
if (cat.subcategories.some((s) => s.code === subcategoryCode)) {
|
|
1972
|
+
return cat;
|
|
1973
|
+
}
|
|
1974
|
+
}
|
|
1975
|
+
return void 0;
|
|
1976
|
+
}
|
|
1977
|
+
function getAllCARCategoryCodes() {
|
|
1978
|
+
return CAR_CATEGORIES.map((cat) => cat.code);
|
|
1979
|
+
}
|
|
1980
|
+
function getAllCARSubcategoryCodes() {
|
|
1981
|
+
return CAR_CATEGORIES.flatMap(
|
|
1982
|
+
(cat) => cat.subcategories.map((sub) => sub.code)
|
|
1983
|
+
);
|
|
1984
|
+
}
|
|
1985
|
+
function isValidCARCategory(code) {
|
|
1986
|
+
return CAR_CATEGORIES.some((cat) => cat.code === code);
|
|
1987
|
+
}
|
|
1988
|
+
function isValidCARSubcategory(code) {
|
|
1989
|
+
return getCARSubcategory(code) !== void 0;
|
|
1990
|
+
}
|
|
1991
|
+
|
|
1666
1992
|
// src/index.ts
|
|
1667
|
-
var VERSION = "1.0.
|
|
1993
|
+
var VERSION = "1.0.2";
|
|
1668
1994
|
var LAST_UPDATED = "2026-02-16";
|
|
1669
1995
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1670
1996
|
0 && (module.exports = {
|
|
@@ -1682,6 +2008,8 @@ var LAST_UPDATED = "2026-02-16";
|
|
|
1682
2008
|
BASIS_SPEC_VERSION,
|
|
1683
2009
|
BASIS_VERSIONS,
|
|
1684
2010
|
CAPABILITIES,
|
|
2011
|
+
CARCategory,
|
|
2012
|
+
CAR_CATEGORIES,
|
|
1685
2013
|
CAR_SPEC_CURRENT_VERSION,
|
|
1686
2014
|
CAR_SPEC_VERSIONS,
|
|
1687
2015
|
COGNIGATE_CURRENT_VERSION,
|
|
@@ -1723,8 +2051,14 @@ var LAST_UPDATED = "2026-02-16";
|
|
|
1723
2051
|
formatErrorMessage,
|
|
1724
2052
|
formatRateLimit,
|
|
1725
2053
|
getActiveTheme,
|
|
2054
|
+
getAllCARCategoryCodes,
|
|
2055
|
+
getAllCARSubcategoryCodes,
|
|
1726
2056
|
getAllCapabilityCodes,
|
|
1727
2057
|
getAllThemeIds,
|
|
2058
|
+
getCARCategoriesForTier,
|
|
2059
|
+
getCARCategory,
|
|
2060
|
+
getCARCategoryMinTier,
|
|
2061
|
+
getCARSubcategory,
|
|
1728
2062
|
getCapabilitiesByCategory,
|
|
1729
2063
|
getCapabilitiesForTier,
|
|
1730
2064
|
getCapability,
|
|
@@ -1732,7 +2066,9 @@ var LAST_UPDATED = "2026-02-16";
|
|
|
1732
2066
|
getCurrentVersion,
|
|
1733
2067
|
getErrorByCode,
|
|
1734
2068
|
getErrorsByCategory,
|
|
2069
|
+
getHighRiskCategories,
|
|
1735
2070
|
getMinTierForLimits,
|
|
2071
|
+
getParentCategory,
|
|
1736
2072
|
getProduct,
|
|
1737
2073
|
getProductsByCategory,
|
|
1738
2074
|
getProductsByOrganization,
|
|
@@ -1748,8 +2084,11 @@ var LAST_UPDATED = "2026-02-16";
|
|
|
1748
2084
|
getTierName,
|
|
1749
2085
|
getTierThreshold,
|
|
1750
2086
|
getVersionDefinition,
|
|
2087
|
+
isCARCategoryAvailable,
|
|
1751
2088
|
isCapabilityAvailable,
|
|
1752
2089
|
isUnlimited,
|
|
2090
|
+
isValidCARCategory,
|
|
2091
|
+
isValidCARSubcategory,
|
|
1753
2092
|
isVersionDeprecated,
|
|
1754
2093
|
isVersionSupported,
|
|
1755
2094
|
meetsTierRequirement,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { TrustTier } from './tiers.cjs';
|
|
2
|
+
export { ALL_TIERS, TIER_THRESHOLDS, TierThreshold, TrustTierCode, TrustTierName, getTierCode, getTierColor, getTierMaxScore, getTierMinScore, getTierName, getTierThreshold, meetsTierRequirement, parseTier, scoreToTier } from './tiers.cjs';
|
|
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.cjs';
|
|
3
4
|
export { CAPABILITIES, CapabilityCategory, CapabilityDefinition, getAllCapabilityCodes, getCapabilitiesByCategory, getCapabilitiesForTier, getCapability, getCapabilityMinTier, isCapabilityAvailable } from './capabilities.cjs';
|
|
4
5
|
export { AGENTANCHOR_PRODUCTS, ALL_PRODUCTS, ProductCategory, ProductDefinition, ProductStatus, VORION_PRODUCTS, getProduct, getProductsByCategory, getProductsByOrganization, getProductsByStatus } from './products.cjs';
|
|
@@ -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.cjs';
|
|
8
9
|
export { ACTIVE_THEME, THEMES, ThemeId, ThemeTokens, getActiveTheme, getAllThemeIds, themeToCssVars } from './themes.cjs';
|
|
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.
|
|
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 };
|