@holoscript/std 3.1.1 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/LICENSE +21 -0
  2. package/dist/__tests__/EconomicPrimitives.test.d.ts +2 -0
  3. package/dist/__tests__/EconomicTraits.test.d.ts +2 -0
  4. package/dist/__tests__/SimulationLabPrimitives.test.d.ts +2 -0
  5. package/dist/__tests__/collections.test.d.ts +2 -0
  6. package/dist/__tests__/events.test.d.ts +2 -0
  7. package/dist/__tests__/index.test.d.ts +2 -0
  8. package/dist/__tests__/index.test.d.ts.map +1 -0
  9. package/dist/__tests__/materials.test.d.ts +2 -0
  10. package/dist/__tests__/math.test.d.ts +2 -0
  11. package/dist/__tests__/physics.test.d.ts +2 -0
  12. package/dist/__tests__/spatial.test.d.ts +2 -0
  13. package/dist/__tests__/standard-library-fundamentals.test.d.ts +2 -0
  14. package/dist/__tests__/standard-library-fundamentals.test.d.ts.map +1 -0
  15. package/dist/__tests__/string-and-time-utilities.test.d.ts +2 -0
  16. package/dist/__tests__/string-and-time-utilities.test.d.ts.map +1 -0
  17. package/dist/__tests__/string-decoupled.test.d.ts +2 -0
  18. package/dist/__tests__/string.test.d.ts +2 -0
  19. package/dist/__tests__/time.test.d.ts +2 -0
  20. package/dist/chunk-DZHAVOCH.js +686 -0
  21. package/dist/chunk-DZHAVOCH.js.map +1 -0
  22. package/dist/chunk-P4O3WNG2.js +287 -0
  23. package/dist/chunk-P4O3WNG2.js.map +1 -0
  24. package/dist/chunk-PFX2JM4X.js +683 -0
  25. package/dist/chunk-PFX2JM4X.js.map +1 -0
  26. package/dist/chunk-PR4QN5HX.js +43 -0
  27. package/dist/chunk-PR4QN5HX.js.map +1 -0
  28. package/dist/chunk-WS6W35YC.js +443 -0
  29. package/dist/chunk-WS6W35YC.js.map +1 -0
  30. package/dist/chunk-XBA4ARST.js +9313 -0
  31. package/dist/chunk-XBA4ARST.js.map +1 -0
  32. package/dist/chunk-XJIFG7G3.js +348 -0
  33. package/dist/chunk-XJIFG7G3.js.map +1 -0
  34. package/dist/chunk-ZXVZAQCZ.js +470 -0
  35. package/dist/chunk-ZXVZAQCZ.js.map +1 -0
  36. package/dist/collections.cjs +715 -0
  37. package/dist/collections.cjs.map +1 -0
  38. package/dist/collections.d.ts +177 -0
  39. package/dist/collections.js +18 -0
  40. package/dist/collections.js.map +1 -0
  41. package/dist/events.d.ts +32 -0
  42. package/dist/fs/__tests__/file-watch-system.test.d.ts +2 -0
  43. package/dist/fs/__tests__/file-watch-system.test.d.ts.map +1 -0
  44. package/dist/fs/__tests__/path-utilities.test.d.ts +2 -0
  45. package/dist/fs/__tests__/path-utilities.test.d.ts.map +1 -0
  46. package/dist/fs/__tests__/path.test.d.ts +2 -0
  47. package/dist/fs/__tests__/path.test.d.ts.map +1 -0
  48. package/dist/fs/fs.d.ts +288 -0
  49. package/dist/fs/fs.d.ts.map +1 -0
  50. package/dist/fs/index.cjs +9338 -0
  51. package/dist/fs/index.cjs.map +1 -0
  52. package/dist/fs/index.d.ts +51 -0
  53. package/dist/fs/index.d.ts.map +1 -0
  54. package/dist/fs/index.js +204 -0
  55. package/dist/fs/index.js.map +1 -0
  56. package/dist/fs/path.d.ts +135 -0
  57. package/dist/fs/path.d.ts.map +1 -0
  58. package/dist/fs/watch.d.ts +133 -0
  59. package/dist/fs/watch.d.ts.map +1 -0
  60. package/dist/index.cjs +13326 -0
  61. package/dist/index.cjs.map +1 -0
  62. package/dist/index.d.ts +102 -0
  63. package/dist/index.d.ts.map +1 -1
  64. package/dist/index.js +1275 -190
  65. package/dist/index.js.map +1 -0
  66. package/dist/materials.d.ts +50 -0
  67. package/dist/math.cjs +595 -0
  68. package/dist/math.cjs.map +1 -0
  69. package/dist/math.d.ts +162 -0
  70. package/dist/math.js +54 -0
  71. package/dist/math.js.map +1 -0
  72. package/dist/physics.d.ts +59 -0
  73. package/dist/spatial.d.ts +82 -0
  74. package/dist/string.basic.test.d.ts +5 -0
  75. package/dist/string.basic.test.d.ts.map +1 -0
  76. package/dist/string.cjs +422 -0
  77. package/dist/string.cjs.map +1 -0
  78. package/dist/string.d.ts +212 -0
  79. package/dist/string.d.ts.map +1 -1
  80. package/dist/string.js +108 -0
  81. package/dist/string.js.map +1 -0
  82. package/dist/string.test.d.ts +5 -0
  83. package/dist/string.test.d.ts.map +1 -0
  84. package/dist/time.cjs +512 -0
  85. package/dist/time.cjs.map +1 -0
  86. package/dist/time.d.ts +215 -0
  87. package/dist/time.js +44 -0
  88. package/dist/time.js.map +1 -0
  89. package/dist/traits/ARTraits.d.ts +14 -0
  90. package/dist/traits/EconomicPrimitives.cjs +335 -0
  91. package/dist/traits/EconomicPrimitives.cjs.map +1 -0
  92. package/dist/traits/EconomicPrimitives.d.ts +345 -0
  93. package/dist/traits/EconomicPrimitives.js +56 -0
  94. package/dist/traits/EconomicPrimitives.js.map +1 -0
  95. package/dist/traits/EconomicTraits.cjs +471 -0
  96. package/dist/traits/EconomicTraits.cjs.map +1 -0
  97. package/dist/traits/EconomicTraits.d.ts +71 -0
  98. package/dist/traits/EconomicTraits.js +18 -0
  99. package/dist/traits/EconomicTraits.js.map +1 -0
  100. package/dist/traits/IoTTraits.d.ts +14 -0
  101. package/dist/traits/SimulationLabPrimitives.d.ts +187 -0
  102. package/dist/traits/SimulationLabTraits.d.ts +42 -0
  103. package/dist/traits/VRRTraits.d.ts +150 -0
  104. package/dist/traits/__tests__/ARTraits.test.d.ts +2 -0
  105. package/dist/traits/__tests__/ARTraits.test.d.ts.map +1 -0
  106. package/dist/traits/__tests__/EconomicPrimitives.test.d.ts +2 -0
  107. package/dist/traits/__tests__/EconomicPrimitives.test.d.ts.map +1 -0
  108. package/dist/traits/__tests__/EconomicTraits.test.d.ts +2 -0
  109. package/dist/traits/__tests__/EconomicTraits.test.d.ts.map +1 -0
  110. package/dist/types.d.ts +202 -0
  111. package/dist/types.d.ts.map +1 -1
  112. package/error-utf8.log +6 -0
  113. package/error.log +0 -0
  114. package/package.json +35 -18
  115. package/src/__tests__/index.test.ts +14 -0
  116. package/src/__tests__/{Sprint33.test.ts → standard-library-fundamentals.test.ts} +91 -74
  117. package/src/__tests__/{Sprint56.test.ts → string-and-time-utilities.test.ts} +64 -64
  118. package/src/__tests__/string-decoupled.test.ts +6 -9
  119. package/src/fs/__tests__/file-watch-system.test.ts +675 -0
  120. package/src/fs/__tests__/path-utilities.test.ts +375 -0
  121. package/src/fs/__tests__/path.test.ts +287 -0
  122. package/src/fs/fs.ts +692 -0
  123. package/src/fs/index.ts +194 -0
  124. package/src/fs/path.ts +310 -0
  125. package/src/fs/watch.ts +413 -0
  126. package/src/index.ts +3 -1
  127. package/src/math.ts +1 -1
  128. package/src/string.basic.test.ts +1 -1
  129. package/src/string.test.ts +4 -4
  130. package/src/string.ts +32 -17
  131. package/src/time.ts +1 -1
  132. package/src/traits/ARTraits.ts +2 -2
  133. package/src/traits/IoTTraits.ts +2 -2
  134. package/src/traits/VRRTraits.ts +2 -2
  135. package/src/traits/__tests__/ARTraits.test.ts +8 -0
  136. package/src/traits/__tests__/EconomicPrimitives.test.ts +14 -0
  137. package/src/traits/__tests__/EconomicTraits.test.ts +16 -0
  138. package/src/types.ts +10 -3
  139. package/std_error.log +5 -0
  140. package/tsup.config.ts +20 -0
  141. package/dist/__tests__/Sprint33.test.d.ts.map +0 -1
  142. package/dist/__tests__/Sprint56.test.d.ts.map +0 -1
@@ -0,0 +1,187 @@
1
+ /**
2
+ * @fileoverview SimulationLab Primitives - Runtime math and types for hypothesis testing
3
+ * @module @holoscript/std/simulation
4
+ *
5
+ * Provides the mathematical building blocks for scientific hypothesis testing
6
+ * in HoloScript simulations. Run N epochs with parameter sweeps, collect metrics,
7
+ * and perform statistical analysis to prove or disprove hypotheses.
8
+ *
9
+ * The universe gets one sample. HoloScript gives you infinite.
10
+ *
11
+ * @version 1.0.0
12
+ * @category simulation
13
+ */
14
+ /**
15
+ * Direction of expected effect in a hypothesis.
16
+ */
17
+ export type HypothesisDirection = 'greater' | 'less' | 'different' | 'equal';
18
+ /**
19
+ * Status of a simulation run.
20
+ */
21
+ export type SimulationStatus = 'pending' | 'running' | 'completed' | 'failed';
22
+ /**
23
+ * A scientific hypothesis to test.
24
+ */
25
+ export interface Hypothesis {
26
+ /** Human-readable description */
27
+ description: string;
28
+ /** The null hypothesis (what we're trying to reject) */
29
+ null_hypothesis: string;
30
+ /** The alternative hypothesis (what we're testing for) */
31
+ alternative_hypothesis: string;
32
+ /** Expected direction of effect */
33
+ direction: HypothesisDirection;
34
+ /** Significance threshold (default: 0.05) */
35
+ alpha: number;
36
+ }
37
+ /**
38
+ * A range of parameter values to sweep.
39
+ */
40
+ export interface ParameterRange {
41
+ /** Parameter name */
42
+ name: string;
43
+ /** Start value */
44
+ min: number;
45
+ /** End value */
46
+ max: number;
47
+ /** Step size */
48
+ step: number;
49
+ }
50
+ /**
51
+ * A set of discrete parameter values to sweep.
52
+ */
53
+ export interface ParameterSet {
54
+ /** Parameter name */
55
+ name: string;
56
+ /** Discrete values to test */
57
+ values: number[];
58
+ }
59
+ /**
60
+ * Either a range or discrete set of parameter values.
61
+ */
62
+ export type ParameterSweep = ParameterRange | ParameterSet;
63
+ /**
64
+ * Metrics collected from a single simulation run.
65
+ */
66
+ export interface SimulationMetrics {
67
+ /** Named metric values */
68
+ values: Record<string, number>;
69
+ /** Seed used for this run */
70
+ seed: number;
71
+ /** Parameter values used */
72
+ params: Record<string, number>;
73
+ /** Wall-clock time in ms */
74
+ durationMs: number;
75
+ }
76
+ /**
77
+ * Result of a statistical test.
78
+ */
79
+ export interface StatisticalResult {
80
+ /** Test statistic value */
81
+ statistic: number;
82
+ /** p-value (probability of observing result under null hypothesis) */
83
+ pValue: number;
84
+ /** Whether the null hypothesis is rejected at the given alpha */
85
+ significant: boolean;
86
+ /** Confidence interval [lower, upper] */
87
+ confidenceInterval: [number, number];
88
+ /** Effect size (Cohen's d for t-test) */
89
+ effectSize: number;
90
+ /** Name of the test used */
91
+ testName: string;
92
+ /** Number of samples */
93
+ sampleSize: number;
94
+ }
95
+ /**
96
+ * Complete simulation experiment result.
97
+ */
98
+ export interface ExperimentResult {
99
+ /** The hypothesis tested */
100
+ hypothesis: Hypothesis;
101
+ /** Statistical results per metric */
102
+ results: Record<string, StatisticalResult>;
103
+ /** All collected metrics */
104
+ metrics: SimulationMetrics[];
105
+ /** Total epochs run */
106
+ totalEpochs: number;
107
+ /** Total wall-clock time */
108
+ totalDurationMs: number;
109
+ /** Status */
110
+ status: SimulationStatus;
111
+ /** Composition hash for reproducibility */
112
+ compositionHash: string;
113
+ }
114
+ /**
115
+ * Check if a parameter sweep is a range (vs discrete set).
116
+ */
117
+ export declare function isParameterRange(sweep: ParameterSweep): sweep is ParameterRange;
118
+ /**
119
+ * Generate all values from a parameter sweep.
120
+ */
121
+ export declare function expandSweep(sweep: ParameterSweep): number[];
122
+ /**
123
+ * Generate all parameter combinations from multiple sweeps.
124
+ * Returns an array of parameter maps.
125
+ */
126
+ export declare function generateSweepCombinations(sweeps: ParameterSweep[]): Record<string, number>[];
127
+ /**
128
+ * Calculate the arithmetic mean of an array of numbers.
129
+ */
130
+ export declare function mean(data: number[]): number;
131
+ /**
132
+ * Calculate the sample variance (Bessel's correction).
133
+ */
134
+ export declare function variance(data: number[]): number;
135
+ /**
136
+ * Calculate the sample standard deviation.
137
+ */
138
+ export declare function standardDeviation(data: number[]): number;
139
+ /**
140
+ * Calculate the standard error of the mean.
141
+ */
142
+ export declare function standardError(data: number[]): number;
143
+ /**
144
+ * Calculate Cohen's d effect size between two groups.
145
+ * d = (mean1 - mean2) / pooled_std
146
+ */
147
+ export declare function cohensD(group1: number[], group2: number[]): number;
148
+ /**
149
+ * Two-sample independent t-test.
150
+ *
151
+ * Tests whether two groups have significantly different means.
152
+ * Uses Welch's t-test (does not assume equal variances).
153
+ */
154
+ export declare function tTest(group1: number[], group2: number[], alpha?: number, direction?: HypothesisDirection): StatisticalResult;
155
+ /**
156
+ * One-sample t-test against a known value.
157
+ */
158
+ export declare function oneSampleTTest(data: number[], populationMean: number, alpha?: number, direction?: HypothesisDirection): StatisticalResult;
159
+ /**
160
+ * Mann-Whitney U test (non-parametric alternative to t-test).
161
+ * Tests whether one group tends to have larger values than the other.
162
+ */
163
+ export declare function mannWhitneyU(group1: number[], group2: number[], alpha?: number): StatisticalResult;
164
+ /**
165
+ * Chi-squared goodness-of-fit test.
166
+ * Tests whether observed frequencies match expected frequencies.
167
+ */
168
+ export declare function chiSquaredTest(observed: number[], expected: number[], alpha?: number): StatisticalResult;
169
+ /**
170
+ * Extract a named metric from an array of simulation results.
171
+ */
172
+ export declare function extractMetric(results: SimulationMetrics[], metricName: string): number[];
173
+ /**
174
+ * Group simulation results by a parameter value.
175
+ */
176
+ export declare function groupByParameter(results: SimulationMetrics[], paramName: string): Map<number, SimulationMetrics[]>;
177
+ /**
178
+ * Generate a summary of metrics across all runs.
179
+ */
180
+ export declare function summarizeMetrics(results: SimulationMetrics[], metricName: string): {
181
+ mean: number;
182
+ std: number;
183
+ min: number;
184
+ max: number;
185
+ n: number;
186
+ };
187
+ //# sourceMappingURL=SimulationLabPrimitives.d.ts.map
@@ -0,0 +1,42 @@
1
+ /**
2
+ * @fileoverview SimulationLab Trait Definition for HoloScript
3
+ * @module @holoscript/std/traits
4
+ *
5
+ * Defines the @simulation_lab trait that enables hypothesis testing
6
+ * on any HoloScript composition. Attach this trait to run parameter sweeps,
7
+ * collect metrics across N epochs, and produce statistical results.
8
+ *
9
+ * Composes with all economic traits for economy stress testing.
10
+ *
11
+ * @version 1.0.0
12
+ * @category simulation
13
+ */
14
+ import type { TraitDefinition } from '../types.js';
15
+ /**
16
+ * Extended trait definition with simulation-specific metadata.
17
+ */
18
+ export interface SimulationTraitDefinition extends TraitDefinition {
19
+ /** Compiler hints for batch execution */
20
+ compiler_hints?: {
21
+ requires_runtime?: string[];
22
+ thread_safety?: 'main_thread' | 'worker_thread' | 'any';
23
+ performance_budget_ms?: number;
24
+ batch_mode?: boolean;
25
+ };
26
+ /** Which economic/VR traits this composes with */
27
+ composesWith: string[];
28
+ }
29
+ /**
30
+ * The SimulationLab trait.
31
+ */
32
+ export declare const SimulationLabTraits: Record<string, SimulationTraitDefinition>;
33
+ /**
34
+ * Get all simulation trait names.
35
+ */
36
+ export declare function getSimulationTraitNames(): string[];
37
+ /**
38
+ * Look up a simulation trait definition by name.
39
+ */
40
+ export declare function getSimulationTrait(name: string): SimulationTraitDefinition | undefined;
41
+ export default SimulationLabTraits;
42
+ //# sourceMappingURL=SimulationLabTraits.d.ts.map
@@ -0,0 +1,150 @@
1
+ /**
2
+ * @fileoverview VRR (Virtual Reality Reality) Trait Definitions
3
+ * @module @holoscript/std/traits
4
+ *
5
+ * HIGH - Define VRR Trait Library for 1:1 Digital Twins
6
+ *
7
+ * PURPOSE:
8
+ * Define standard HoloScript traits for VRR (Virtual Reality Reality) features:
9
+ * 1:1 real-world mirroring, geo-anchoring, real-time sync (weather, events,
10
+ * inventory), business quests, layer transitions, and x402 payments.
11
+ *
12
+ * VISION:
13
+ * Developers annotate HoloScript compositions with @vrr_twin, @weather_sync,
14
+ * @inventory_sync, and VRRCompiler auto-generates Three.js code with real-time
15
+ * API integration. Example: @weather_sync → auto-generates weather.gov API calls
16
+ * and scene fog/precipitation updates.
17
+ *
18
+ * REQUIREMENTS:
19
+ * 1. Core VRR Traits: @vrr_twin, @reality_mirror, @geo_anchor
20
+ * 2. Real-Time Sync Traits: @weather_sync, @event_sync, @inventory_sync, @traffic_sync
21
+ * 3. Business Traits: @quest_hub, @business_marker, @coupon_reward
22
+ * 4. Layer Transition Traits: @layer_shift, @ar_portal, @vr_portal
23
+ * 5. Payment Traits: @x402_paywall, @subscription, @revenue_share
24
+ * 6. Geo-Location Traits: @geo_coords, @geo_sync, @geo_fence
25
+ *
26
+ * EXAMPLE USAGE:
27
+ * ```holoscript
28
+ * composition "PhoenixDowntownVRR" {
29
+ * zone#phoenix_downtown @vrr_twin @reality_mirror @geo_sync("phoenix_az_center") {
30
+ * geo_coords: { lat: 33.4484, lng: -112.0740 }
31
+ * weather_sync: @weather_sync { provider: "weather.gov", refresh: 5_minutes }
32
+ * event_sync: @event_sync { provider: "eventbrite", refresh: 5_minutes }
33
+ *
34
+ * business#phoenix_brew @quest_hub @inventory_sync @x402_paywall {
35
+ * geo_coords: { lat: 33.4484, lng: -112.0740 }
36
+ * inventory_api: @inventory_sync { provider: "square_pos", refresh: 1_minute }
37
+ * paywall: @x402_paywall { price: 5_usdc, asset: "USDC", network: "base" }
38
+ *
39
+ * quest "LatteLegend" @quest_hub {
40
+ * steps: [
41
+ * @ar_scan { location: "storefront_window" },
42
+ * @vrr_find_item { item: "oat_milk", hint: "Check the fridge" },
43
+ * @vr_taste_menu { menu_item: "oat_milk_latte" }
44
+ * ]
45
+ * reward: @coupon_reward { value: "Buy1Get1Free", expiry: 30_days }
46
+ * }
47
+ * }
48
+ * }
49
+ * }
50
+ * ```
51
+ *
52
+ * TRAIT DEFINITIONS:
53
+ *
54
+ * 1. @vrr_twin - Marks composition as VRR digital twin (1:1 real-world mirror)
55
+ * - Example: @vrr_twin { mirror: "phoenix_downtown" }
56
+ * - Compiler: Generates geo-anchored Three.js scene
57
+ *
58
+ * 2. @reality_mirror - Enables real-world synchronization
59
+ * - Example: @reality_mirror { sync: ["weather", "events", "inventory"] }
60
+ * - Compiler: Generates API integration code
61
+ *
62
+ * 3. @geo_anchor - Geo-location anchoring (lat/lng)
63
+ * - Example: @geo_anchor { lat: 33.4484, lng: -112.0740 }
64
+ * - Compiler: Converts lat/lng to scene coordinates
65
+ *
66
+ * 4. @weather_sync - Real-time weather synchronization
67
+ * - Example: @weather_sync { provider: "weather.gov", refresh: 5_minutes }
68
+ * - Compiler: Generates weather API polling code
69
+ * - Runtime: Updates scene fog, precipitation, temperature
70
+ *
71
+ * 5. @event_sync - Real-time event synchronization
72
+ * - Example: @event_sync { provider: "eventbrite", refresh: 5_minutes }
73
+ * - Compiler: Generates event API polling code
74
+ * - Runtime: Spawns NPC crowds, triggers quests on festivals
75
+ *
76
+ * 6. @inventory_sync - Real-time inventory synchronization
77
+ * - Example: @inventory_sync { provider: "square_pos", refresh: 1_minute }
78
+ * - Compiler: Generates POS API integration code
79
+ * - Runtime: Enables/disables quests based on stock
80
+ *
81
+ * 7. @quest_hub - Marks business as quest starting point
82
+ * - Example: @quest_hub { quests: ["latte_legend", "espresso_challenge"] }
83
+ * - Compiler: Generates quest NPC, interaction prompts
84
+ *
85
+ * 8. @layer_shift - AR/VRR/VR layer transitions
86
+ * - Example: @layer_shift { from: "ar", to: "vrr", price: 5_usdc }
87
+ * - Compiler: Generates x402 payment + redirect logic
88
+ * - Runtime: Persists state across layers (IndexedDB → Supabase)
89
+ *
90
+ * 9. @x402_paywall - HTTP 402 payment requirement
91
+ * - Example: @x402_paywall { price: 5, asset: "USDC", network: "base" }
92
+ * - Compiler: Generates 402 response + payment verification
93
+ * - Runtime: Grants access after payment confirmed
94
+ *
95
+ * 10. @geo_sync - Geographic data synchronization
96
+ * - Example: @geo_sync { center: "phoenix_az_center", radius: 5000 } // 5km
97
+ * - Compiler: Fetches nearby POIs, traffic, events
98
+ *
99
+ * INTEGRATION POINTS:
100
+ * - VRRCompiler.ts (trait parsing, code generation)
101
+ * - VRRRuntime.ts (real-time sync implementation)
102
+ * - x402PaymentService.ts (payment verification)
103
+ * - BusinessQuestTools.ts (quest builder uses traits)
104
+ *
105
+ * RESEARCH REFERENCES:
106
+ * - HOLOLAND_INTEGRATION_TASKS.md (VRRTraits section)
107
+ * - VRRCompiler.ts (trait requirements)
108
+ * - uAA2++_Protocol/5.GROW P.029: "Machine Customers for VR Platforms"
109
+ *
110
+ * IMPLEMENTATION TASKS:
111
+ * [x] Define VRRTrait interface
112
+ * [ ] Implement @vrr_twin trait definition
113
+ * [ ] Implement @reality_mirror trait definition
114
+ * [ ] Implement @geo_anchor trait definition
115
+ * [ ] Implement @weather_sync trait definition
116
+ * [ ] Implement @event_sync trait definition
117
+ * [ ] Implement @inventory_sync trait definition
118
+ * [ ] Implement @quest_hub trait definition
119
+ * [ ] Implement @layer_shift trait definition
120
+ * [ ] Implement @x402_paywall trait definition
121
+ * [ ] Implement @geo_sync trait definition
122
+ * [ ] Add trait validation (ensure required params present)
123
+ * [ ] Add trait composition (combine multiple traits)
124
+ * [ ] Add tests (VRRTraits.test.ts)
125
+ * [ ] Add documentation (trait usage examples)
126
+ *
127
+ * ESTIMATED COMPLEXITY: 6/10 (medium - trait definitions, validation)
128
+ * ESTIMATED TIME: 1 week (includes testing, documentation)
129
+ * PRIORITY: HIGH (blocks VRRCompiler implementation)
130
+ *
131
+ * BLOCKED BY:
132
+ * - Nothing (can implement now)
133
+ *
134
+ * UNBLOCKS:
135
+ * - VRRCompiler.ts (trait parsing)
136
+ * - VRRRuntime.ts (trait-driven initialization)
137
+ * - BusinessQuestTools.ts (trait-based quest builder)
138
+ */
139
+ import type { TraitDefinition } from '../types.js';
140
+ export interface VRRTrait extends TraitDefinition {
141
+ name: string;
142
+ params: Record<string, any>;
143
+ validator?: (params: Record<string, any>) => boolean;
144
+ compiler_hints?: {
145
+ requires_runtime?: string[];
146
+ generates_api_calls?: string[];
147
+ };
148
+ }
149
+ export declare const VRRTraits: Record<string, VRRTrait>;
150
+ //# sourceMappingURL=VRRTraits.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ARTraits.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ARTraits.test.d.ts","sourceRoot":"","sources":["../../../src/traits/__tests__/ARTraits.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=EconomicPrimitives.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EconomicPrimitives.test.d.ts","sourceRoot":"","sources":["../../../src/traits/__tests__/EconomicPrimitives.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=EconomicTraits.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EconomicTraits.test.d.ts","sourceRoot":"","sources":["../../../src/traits/__tests__/EconomicTraits.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,202 @@
1
+ /**
2
+ * Core Types for HoloScript
3
+ *
4
+ * Fundamental spatial and graphical types used throughout the language.
5
+ */
6
+ /**
7
+ * 2D Vector
8
+ */
9
+ export interface Vec2 {
10
+ x: number;
11
+ y: number;
12
+ }
13
+ /**
14
+ * 3D Vector - The fundamental spatial type
15
+ */
16
+ export interface Vec3 {
17
+ x: number;
18
+ y: number;
19
+ z: number;
20
+ }
21
+ /**
22
+ * 4D Vector
23
+ */
24
+ export interface Vec4 {
25
+ x: number;
26
+ y: number;
27
+ z: number;
28
+ w: number;
29
+ }
30
+ export type Vec2Array = [number, number];
31
+ export type Vec3Array = [number, number, number];
32
+ export type Vec4Array = [number, number, number, number];
33
+ /**
34
+ * Quaternion for rotation representation
35
+ */
36
+ export interface Quat {
37
+ x: number;
38
+ y: number;
39
+ z: number;
40
+ w: number;
41
+ }
42
+ export type QuatArray = [number, number, number, number];
43
+ /**
44
+ * Complete 3D transform
45
+ */
46
+ export interface Transform {
47
+ position: Vec3;
48
+ rotation: Quat;
49
+ scale: Vec3;
50
+ }
51
+ /**
52
+ * Euler angles (in degrees)
53
+ */
54
+ export interface EulerAngles {
55
+ x: number;
56
+ y: number;
57
+ z: number;
58
+ }
59
+ /**
60
+ * RGB Color (0-1 range)
61
+ */
62
+ export interface ColorRGB {
63
+ r: number;
64
+ g: number;
65
+ b: number;
66
+ }
67
+ /**
68
+ * RGBA Color (0-1 range)
69
+ */
70
+ export interface ColorRGBA extends ColorRGB {
71
+ a: number;
72
+ }
73
+ /**
74
+ * HSL Color
75
+ */
76
+ export interface ColorHSL {
77
+ h: number;
78
+ s: number;
79
+ l: number;
80
+ }
81
+ /**
82
+ * Color can be represented multiple ways
83
+ */
84
+ export type Color = string | ColorRGB | ColorRGBA | ColorHSL | number;
85
+ /**
86
+ * Axis-Aligned Bounding Box
87
+ */
88
+ export interface AABB {
89
+ min: Vec3;
90
+ max: Vec3;
91
+ }
92
+ /**
93
+ * Bounding Sphere
94
+ */
95
+ export interface BoundingSphere {
96
+ center: Vec3;
97
+ radius: number;
98
+ }
99
+ /**
100
+ * Ray for raycasting
101
+ */
102
+ export interface Ray {
103
+ origin: Vec3;
104
+ direction: Vec3;
105
+ }
106
+ /**
107
+ * Raycast hit result
108
+ */
109
+ export interface RaycastHit {
110
+ point: Vec3;
111
+ normal: Vec3;
112
+ distance: number;
113
+ objectId?: string;
114
+ }
115
+ /**
116
+ * Nullable type helper
117
+ */
118
+ export type Nullable<T> = T | null;
119
+ /**
120
+ * Optional type helper
121
+ */
122
+ export type Optional<T> = T | undefined;
123
+ /**
124
+ * Deep partial type
125
+ */
126
+ export type DeepPartial<T> = {
127
+ [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
128
+ };
129
+ /**
130
+ * Create a Vec2
131
+ */
132
+ export declare function vec2(x?: number, y?: number): Vec2;
133
+ /**
134
+ * Create a Vec3
135
+ */
136
+ export declare function vec3(x?: number, y?: number, z?: number): Vec3;
137
+ /**
138
+ * Create a Vec4
139
+ */
140
+ export declare function vec4(x?: number, y?: number, z?: number, w?: number): Vec4;
141
+ /**
142
+ * Create a Quaternion (identity by default)
143
+ */
144
+ export declare function quat(x?: number, y?: number, z?: number, w?: number): Quat;
145
+ /**
146
+ * Create a Transform
147
+ */
148
+ export declare function transform(position?: Vec3, rotation?: Quat, scale?: Vec3): Transform;
149
+ /**
150
+ * Create an RGB color
151
+ */
152
+ export declare function rgb(r: number, g: number, b: number): ColorRGB;
153
+ /**
154
+ * Create an RGBA color
155
+ */
156
+ export declare function rgba(r: number, g: number, b: number, a?: number): ColorRGBA;
157
+ /**
158
+ * Create an HSL color
159
+ */
160
+ export declare function hsl(h: number, s: number, l: number): ColorHSL;
161
+ /**
162
+ * Create an AABB
163
+ */
164
+ export declare function aabb(min?: Vec3, max?: Vec3): AABB;
165
+ /**
166
+ * Create a Ray
167
+ */
168
+ export declare function ray(origin: Vec3, direction: Vec3): Ray;
169
+ /**
170
+ * Convert Vec3 to array
171
+ */
172
+ export declare function vec3ToArray(v: Vec3): Vec3Array;
173
+ /**
174
+ * Convert array to Vec3
175
+ */
176
+ export declare function arrayToVec3(arr: Vec3Array | number[]): Vec3;
177
+ /**
178
+ * Convert Quat to array
179
+ */
180
+ export declare function quatToArray(q: Quat): QuatArray;
181
+ /**
182
+ * Convert array to Quat
183
+ */
184
+ export declare function arrayToQuat(arr: QuatArray | number[]): Quat;
185
+ /**
186
+ * Parse color from various formats
187
+ */
188
+ export declare function parseColor(color: Color): ColorRGBA;
189
+ /**
190
+ * Color to hex string
191
+ */
192
+ export declare function colorToHex(color: ColorRGB | ColorRGBA): string;
193
+ export interface TraitDefinition {
194
+ name: string;
195
+ description?: string;
196
+ type?: string;
197
+ params?: Record<string, any>;
198
+ parameters?: Record<string, any>;
199
+ validator?: (params: Record<string, any>) => boolean;
200
+ validation?: any;
201
+ }
202
+ //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAGD,MAAM,MAAM,SAAS,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,C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C;IACjC,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;IACrD,UAAU,CAAC,EAAE,GAAG,CAAC;CAClB"}
package/error-utf8.log ADDED
@@ -0,0 +1,6 @@
1
+ src/traits/ARTraits.ts(40,5): error TS2561: Object literal may only specify known properties, but 'validation' does not exist in type 'TraitDefinition'. Did you mean to write 'validator'?
2
+ src/traits/ARTraits.ts(65,5): error TS2561: Object literal may only specify known properties, but 'validation' does not exist in type 'TraitDefinition'. Did you mean to write 'validator'?
3
+ src/traits/ARTraits.ts(93,5): error TS2561: Object literal may only specify known properties, but 'validation' does not exist in type 'TraitDefinition'. Did you mean to write 'validator'?
4
+ src/traits/IoTTraits.ts(41,5): error TS2561: Object literal may only specify known properties, but 'validation' does not exist in type 'TraitDefinition'. Did you mean to write 'validator'?
5
+ src/traits/IoTTraits.ts(63,5): error TS2561: Object literal may only specify known properties, but 'validation' does not exist in type 'TraitDefinition'. Did you mean to write 'validator'?
6
+ src/traits/IoTTraits.ts(91,5): error TS2561: Object literal may only specify known properties, but 'validation' does not exist in type 'TraitDefinition'. Did you mean to write 'validator'?
package/error.log ADDED
Binary file