@ai-pip/core 0.1.6 → 0.1.7

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 (104) hide show
  1. package/CHANGELOG.md +181 -0
  2. package/README.md +8 -98
  3. package/dist/cpe/envelope.d.ts +2 -2
  4. package/dist/cpe/envelope.d.ts.map +1 -1
  5. package/dist/cpe/envelope.js +6 -6
  6. package/dist/cpe/envelope.js.map +1 -1
  7. package/dist/cpe/exceptions/index.d.ts +1 -1
  8. package/dist/cpe/exceptions/index.d.ts.map +1 -1
  9. package/dist/cpe/exceptions/index.js +1 -1
  10. package/dist/cpe/exceptions/index.js.map +1 -1
  11. package/dist/cpe/index.d.ts +8 -8
  12. package/dist/cpe/index.d.ts.map +1 -1
  13. package/dist/cpe/index.js +5 -5
  14. package/dist/cpe/index.js.map +1 -1
  15. package/dist/cpe/types.d.ts +1 -1
  16. package/dist/cpe/types.d.ts.map +1 -1
  17. package/dist/cpe/value-objects/Metadata.d.ts +2 -2
  18. package/dist/cpe/value-objects/Metadata.d.ts.map +1 -1
  19. package/dist/cpe/value-objects/Signature.d.ts +1 -1
  20. package/dist/cpe/value-objects/Signature.d.ts.map +1 -1
  21. package/dist/cpe/value-objects/index.d.ts +5 -5
  22. package/dist/cpe/value-objects/index.d.ts.map +1 -1
  23. package/dist/cpe/value-objects/index.js +3 -3
  24. package/dist/cpe/value-objects/index.js.map +1 -1
  25. package/dist/csl/classify.d.ts +4 -4
  26. package/dist/csl/classify.d.ts.map +1 -1
  27. package/dist/csl/classify.js +4 -4
  28. package/dist/csl/classify.js.map +1 -1
  29. package/dist/csl/exceptions/index.d.ts +2 -2
  30. package/dist/csl/exceptions/index.d.ts.map +1 -1
  31. package/dist/csl/exceptions/index.js +2 -2
  32. package/dist/csl/exceptions/index.js.map +1 -1
  33. package/dist/csl/index.d.ts +10 -10
  34. package/dist/csl/index.d.ts.map +1 -1
  35. package/dist/csl/index.js +8 -8
  36. package/dist/csl/index.js.map +1 -1
  37. package/dist/csl/lineage.d.ts +2 -2
  38. package/dist/csl/lineage.d.ts.map +1 -1
  39. package/dist/csl/lineage.js +1 -1
  40. package/dist/csl/lineage.js.map +1 -1
  41. package/dist/csl/segment.d.ts +1 -1
  42. package/dist/csl/segment.d.ts.map +1 -1
  43. package/dist/csl/segment.js +4 -4
  44. package/dist/csl/segment.js.map +1 -1
  45. package/dist/csl/types.d.ts +1 -1
  46. package/dist/csl/types.d.ts.map +1 -1
  47. package/dist/csl/value-objects/ContentHash.d.ts +1 -1
  48. package/dist/csl/value-objects/ContentHash.d.ts.map +1 -1
  49. package/dist/csl/value-objects/Origin-map.d.ts +1 -1
  50. package/dist/csl/value-objects/Origin-map.d.ts.map +1 -1
  51. package/dist/csl/value-objects/Origin-map.js +1 -1
  52. package/dist/csl/value-objects/Origin-map.js.map +1 -1
  53. package/dist/csl/value-objects/Origin.d.ts +1 -1
  54. package/dist/csl/value-objects/Origin.d.ts.map +1 -1
  55. package/dist/csl/value-objects/Origin.js +1 -1
  56. package/dist/csl/value-objects/Origin.js.map +1 -1
  57. package/dist/csl/value-objects/TrustLevel.d.ts +1 -1
  58. package/dist/csl/value-objects/TrustLevel.d.ts.map +1 -1
  59. package/dist/csl/value-objects/TrustLevel.js +1 -1
  60. package/dist/csl/value-objects/TrustLevel.js.map +1 -1
  61. package/dist/csl/value-objects/index.d.ts +9 -9
  62. package/dist/csl/value-objects/index.d.ts.map +1 -1
  63. package/dist/csl/value-objects/index.js +5 -5
  64. package/dist/csl/value-objects/index.js.map +1 -1
  65. package/dist/index.d.ts +8 -8
  66. package/dist/index.d.ts.map +1 -1
  67. package/dist/index.js +5 -5
  68. package/dist/index.js.map +1 -1
  69. package/dist/isl/exceptions/index.d.ts +1 -1
  70. package/dist/isl/exceptions/index.d.ts.map +1 -1
  71. package/dist/isl/exceptions/index.js +1 -1
  72. package/dist/isl/exceptions/index.js.map +1 -1
  73. package/dist/isl/index.d.ts +5 -5
  74. package/dist/isl/index.d.ts.map +1 -1
  75. package/dist/isl/index.js +3 -3
  76. package/dist/isl/index.js.map +1 -1
  77. package/dist/isl/sanitize.d.ts +2 -2
  78. package/dist/isl/sanitize.d.ts.map +1 -1
  79. package/dist/isl/sanitize.js +3 -3
  80. package/dist/isl/sanitize.js.map +1 -1
  81. package/dist/isl/types.d.ts +3 -3
  82. package/dist/isl/types.d.ts.map +1 -1
  83. package/dist/isl/value-objects/AnomalyScore.d.ts +1 -1
  84. package/dist/isl/value-objects/AnomalyScore.d.ts.map +1 -1
  85. package/dist/isl/value-objects/Pattern.d.ts +1 -1
  86. package/dist/isl/value-objects/Pattern.d.ts.map +1 -1
  87. package/dist/isl/value-objects/PiDetection.d.ts +1 -1
  88. package/dist/isl/value-objects/PiDetection.d.ts.map +1 -1
  89. package/dist/isl/value-objects/PiDetectionResult.d.ts +2 -2
  90. package/dist/isl/value-objects/PiDetectionResult.d.ts.map +1 -1
  91. package/dist/isl/value-objects/PolicyRule.d.ts +1 -1
  92. package/dist/isl/value-objects/PolicyRule.d.ts.map +1 -1
  93. package/dist/isl/value-objects/index.d.ts +8 -8
  94. package/dist/isl/value-objects/index.d.ts.map +1 -1
  95. package/dist/isl/value-objects/index.js +4 -4
  96. package/dist/isl/value-objects/index.js.map +1 -1
  97. package/dist/shared/index.d.ts +1 -1
  98. package/dist/shared/index.d.ts.map +1 -1
  99. package/dist/shared/index.js +1 -1
  100. package/dist/shared/index.js.map +1 -1
  101. package/dist/shared/lineage.d.ts +1 -1
  102. package/dist/shared/lineage.d.ts.map +1 -1
  103. package/package.json +3 -2
  104. package/tsconfig.json +0 -30
package/CHANGELOG.md ADDED
@@ -0,0 +1,181 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ---
9
+
10
+ ## [0.1.7] - 2026-01-04
11
+
12
+ ### 🐛 Critical Fixes
13
+
14
+ #### Type Resolution Fix
15
+ - **Fixed nested type resolution**: Changed `moduleResolution` from `"bundler"` to `"nodenext"` in `tsconfig.json`
16
+ - **Added explicit file extensions**: All relative imports now include `.js` extension (required by `nodenext`)
17
+ - **Fixed type accessibility**: Types with nested properties (e.g., `TrustLevel.value`) now resolve correctly in consuming projects
18
+
19
+ #### What This Fixes
20
+
21
+ **Problem**: When importing types from `@ai-pip/core` in SDK projects, TypeScript could not resolve nested type properties:
22
+ - `this.data.trust.value` appeared as `any` instead of `TrustLevelType`
23
+ - No autocompletado for nested properties
24
+ - Type inference failed for complex types
25
+
26
+ **Root Cause**: Incompatibility between `moduleResolution: "bundler"` (used in `@ai-pip-core`) and `moduleResolution: "nodenext"` (used in SDK projects). TypeScript couldn't follow the chain of type imports correctly.
27
+
28
+ **Solution**:
29
+ - Aligned `moduleResolution` to `"nodenext"` in both projects
30
+ - Added explicit `.js` extensions to all relative imports (required by Node.js ESM resolution)
31
+ - Changed `module` from `"ESNext"` to `"NodeNext"` for consistency
32
+
33
+ **Impact**:
34
+ - ✅ Nested types now resolve correctly
35
+ - ✅ Autocompletado works for all type properties
36
+ - ✅ Type inference works correctly in consuming projects
37
+ - ✅ Better compatibility with Node.js ESM module resolution
38
+
39
+ ### 🔧 Technical Changes
40
+
41
+ - **Removed `tsconfig.json` from package files**: `tsconfig.json` is only needed for development, not for published packages
42
+ - **Updated `tsconfig.json`**:
43
+ - `module: "ESNext"` → `module: "NodeNext"`
44
+ - `moduleResolution: "bundler"` → `moduleResolution: "nodenext"`
45
+ - **Updated all source files**: Added `.js` extension to 107+ relative imports across the codebase
46
+
47
+ ### 📦 Package Changes
48
+
49
+ - **Removed from `files` array**: `tsconfig.json` (only needed for development)
50
+ - **Package now includes**: `dist/`, `README.md`, `LICENSE` only
51
+
52
+ ### ⚠️ Breaking Changes
53
+
54
+ **None** - This is a patch version that fixes type resolution issues without changing the API.
55
+
56
+ ### 📚 Documentation
57
+
58
+ - Updated README to reference centralized CHANGELOG.md
59
+ - Added detailed explanation of type resolution fixes
60
+
61
+ ---
62
+
63
+ ## [0.1.6] - 2025-12-28
64
+
65
+ ### 📚 Documentation Improvements
66
+ - **Centralized documentation**: Moved all protocol documentation to `ai-pip-docs` repository
67
+ - **Updated README**: Added comprehensive links to centralized documentation
68
+ - **Documentation structure**: Reorganized documentation section with links to whitepaper, architecture, roadmap, and SDK guides
69
+
70
+ ### 🔧 Package Improvements
71
+ - **Documentation links**: All documentation now points to `ai-pip-docs` repository
72
+ - **README cleanup**: Removed redundant documentation sections, kept only code-specific documentation
73
+
74
+ ---
75
+
76
+ ## [0.1.5] - 2025-12-28
77
+
78
+ ### 📚 Documentation Improvements
79
+ - **Updated README**: Added links to whitepaper, roadmap, and complete layer documentation
80
+ - **Updated Roadmap**: Added SDK-browser in Phase 4, updated Phase 1 status to 100% completed
81
+ - **Architecture clarification**: Corrected documentation about Shared (not a layer, but shared features)
82
+ - **SDK note**: Updated explanation about AAL and Model Gateway (they are SDK components, not core)
83
+
84
+ ### 🔧 Optimizations
85
+ - **Package size reduction**: Removed `src/` from `files` field in `package.json` to make the package lighter
86
+ - **Optimized package**: Only necessary files are included (`dist/`, `tsconfig.json`, `README.md`, `LICENSE`)
87
+
88
+ ### ✨ Improvements
89
+ - **Layer documentation**: Added link to Shared documentation (shared features)
90
+ - **Documentation organization**: Reorganized documentation section with priority on whitepaper and roadmap
91
+
92
+ ---
93
+
94
+ ## [0.1.3] - 2025-12-28
95
+
96
+ ### ✨ New Features
97
+ - **JavaScript compilation**: The package now compiles to JavaScript (`dist/`) for better compatibility
98
+ - **Type declaration files**: `.d.ts` files are generated for full TypeScript support
99
+ - **Source maps**: Included for better debugging
100
+
101
+ ### 🔧 Technical Changes
102
+ - **Publication structure**: Changed from publishing `.ts` files directly to compiling to `dist/`
103
+ - **Improved exports**: Exports now point to compiled files (`.js` and `.d.ts`)
104
+ - **Relative paths**: Replaced path aliases (`@/`) with relative paths for compatibility
105
+ - **Build configuration**: Fixed generation of `.d.ts` files in `dist/` instead of `src/`
106
+ - **ESLint**: Configured to ignore generated `.d.ts` files
107
+
108
+ ### 🐛 Fixes
109
+ - **Type resolution**: TypeScript types now resolve correctly from `node_modules`
110
+ - **Imports from subpaths**: Fixed imports from `@ai-pip/core/csl`, `@ai-pip/core/isl`, etc.
111
+ - **Complete exports**: Added `default` field to all exports for Node.js ESM
112
+ - **File generation**: `.d.ts` files now generate correctly in `dist/`
113
+
114
+ ### 📚 Documentation
115
+ - **TypeScript requirements**: Improved documentation about required configuration
116
+ - **Updated examples**: Usage examples updated for new structure
117
+ - **Complete CHANGELOG**: Documentation of all versions and deprecations
118
+
119
+ ### 🛠️ Development Improvements
120
+ - **test:install script**: Script to verify installation before publishing
121
+ - **prepublishOnly script**: Automatically runs build, lint, tests, and test:install before publishing
122
+
123
+ ### ⚠️ Breaking Changes
124
+ - **TypeScript configuration required**: It's now **mandatory** to use `module: "NodeNext"` and `moduleResolution: "nodenext"` in `tsconfig.json`
125
+
126
+ ---
127
+
128
+ ## [0.1.2] - 2025-12-28
129
+
130
+ ### ⚠️ DEPRECATED
131
+
132
+ **Deprecation reason**: This version had issues with compilation and `.d.ts` file generation. Files were generated in incorrect locations (`src/` instead of `dist/`), causing linting errors and type resolution problems.
133
+
134
+ **Known issues**:
135
+ - `.d.ts` files were generated in `src/` instead of `dist/`
136
+ - ESLint tried to lint generated `.d.ts` files, causing errors
137
+ - Incomplete build configuration (`declarationDir` misconfigured)
138
+ - Types did not resolve correctly in some cases
139
+
140
+ **Recommendation**: Update to `0.1.3` or higher.
141
+
142
+ ---
143
+
144
+ ## [0.1.1] - 2025-12-28
145
+
146
+ ### ⚠️ DEPRECATED
147
+
148
+ **Deprecation reason**: This version had issues with path alias resolution (`@/`) that caused errors when importing from other projects. Types did not resolve correctly when the package was installed from npm.
149
+
150
+ **Known issues**:
151
+ - Errors: `Module '"@ai-pip/core/csl"' has no exported member 'CSLResult'`
152
+ - Path aliases did not work in consumer projects
153
+ - Types did not resolve correctly from `node_modules`
154
+
155
+ **Recommendation**: Update to `0.1.3` or higher.
156
+
157
+ ---
158
+
159
+ ## [0.1.0] - 2025-12-28
160
+
161
+ ### ⚠️ DEPRECATED
162
+
163
+ **Deprecation reason**: Initial version with fundamental compatibility issues. Exports did not include the `default` field required by Node.js ESM, causing `ERR_PACKAGE_PATH_NOT_EXPORTED` errors.
164
+
165
+ **Known issues**:
166
+ - Errors: `ERR_PACKAGE_PATH_NOT_EXPORTED` when importing subpaths
167
+ - Incomplete exports: Missing `default` field in exports
168
+ - Path aliases did not work correctly
169
+
170
+ **Recommendation**: Update to `0.1.3` or higher.
171
+
172
+ ### 📦 Initial Content
173
+ - **CSL (Context Segmentation Layer)**: Content segmentation and classification
174
+ - **ISL (Instruction Sanitization Layer)**: Instruction sanitization
175
+ - **CPE (Cryptographic Prompt Envelope)**: Cryptographic envelope with HMAC-SHA256
176
+
177
+ ---
178
+
179
+ **Current Version**: 0.1.7
180
+ **Status**: Phase 1 - Core Layers (100% completed)
181
+
package/README.md CHANGED
@@ -261,108 +261,18 @@ This will enable:
261
261
 
262
262
  ## 📝 CHANGELOG
263
263
 
264
- ### [0.1.5] - 2025-12-28
264
+ ### [0.1.7] - 2026-01-01
265
265
 
266
- #### 📚 Documentation Improvements
267
- - **Updated README**: Added links to whitepaper, roadmap, and complete layer documentation
268
- - **Updated Roadmap**: Added SDK-browser in Phase 4, updated Phase 1 status to 100% completed
269
- - **Architecture clarification**: Corrected documentation about Shared (not a layer, but shared features)
270
- - **SDK note**: Updated explanation about AAL and Model Gateway (they are SDK components, not core)
266
+ #### 🐛 Critical Fixes
267
+ - **Fixed nested type resolution**: Changed `moduleResolution` from `"bundler"` to `"nodenext"` to fix type accessibility issues
268
+ - **Added explicit file extensions**: All relative imports now include `.js` extension (required by `nodenext`)
269
+ - **Removed `tsconfig.json` from package**: Only needed for development, not for published packages
271
270
 
272
- #### 🔧 Optimizations
273
- - **Package size reduction**: Removed `src/` from `files` field in `package.json` to make the package lighter
274
- - **Optimized package**: Only necessary files are included (`dist/`, `tsconfig.json`, `README.md`, `LICENSE`)
271
+ **What this fixes**: TypeScript now correctly recognizes and resolves all type properties in consuming projects. Previously, nested type properties were not recognized, appearing as `any` instead of their correct types, and autocompletado didn't work for type properties. This fix ensures proper type inference, autocompletado, and type checking for all exported types and their nested properties.
275
272
 
276
- #### Improvements
277
- - **Layer documentation**: Added link to Shared documentation (shared features)
278
- - **Documentation organization**: Reorganized documentation section with priority on whitepaper and roadmap
273
+ For complete details and all version history, see [CHANGELOG.md](./CHANGELOG.md).
279
274
 
280
275
  ---
281
276
 
282
- ### [0.1.3] - 2025-12-28
283
-
284
- #### ✨ New Features
285
- - **JavaScript compilation**: The package now compiles to JavaScript (`dist/`) for better compatibility
286
- - **Type declaration files**: `.d.ts` files are generated for full TypeScript support
287
- - **Source maps**: Included for better debugging
288
-
289
- #### 🔧 Technical Changes
290
- - **Publication structure**: Changed from publishing `.ts` files directly to compiling to `dist/`
291
- - **Improved exports**: Exports now point to compiled files (`.js` and `.d.ts`)
292
- - **Relative paths**: Replaced path aliases (`@/`) with relative paths for compatibility
293
- - **Build configuration**: Fixed generation of `.d.ts` files in `dist/` instead of `src/`
294
- - **ESLint**: Configured to ignore generated `.d.ts` files
295
-
296
- #### 🐛 Fixes
297
- - **Type resolution**: TypeScript types now resolve correctly from `node_modules`
298
- - **Imports from subpaths**: Fixed imports from `@ai-pip/core/csl`, `@ai-pip/core/isl`, etc.
299
- - **Complete exports**: Added `default` field to all exports for Node.js ESM
300
- - **File generation**: `.d.ts` files now generate correctly in `dist/`
301
-
302
- #### 📚 Documentation
303
- - **TypeScript requirements**: Improved documentation about required configuration
304
- - **Updated examples**: Usage examples updated for new structure
305
- - **Complete CHANGELOG**: Documentation of all versions and deprecations
306
-
307
- #### 🛠️ Development Improvements
308
- - **test:install script**: Script to verify installation before publishing
309
- - **prepublishOnly script**: Automatically runs build, lint, tests, and test:install before publishing
310
-
311
- #### ⚠️ Breaking Changes
312
- - **TypeScript configuration required**: It's now **mandatory** to use `module: "NodeNext"` and `moduleResolution: "nodenext"` in `tsconfig.json`
313
-
314
- ---
315
-
316
- ### [0.1.2] - 2025-12-28
317
-
318
- #### ⚠️ DEPRECATED
319
-
320
- **Deprecation reason**: This version had issues with compilation and `.d.ts` file generation. Files were generated in incorrect locations (`src/` instead of `dist/`), causing linting errors and type resolution problems.
321
-
322
- **Known issues**:
323
- - `.d.ts` files were generated in `src/` instead of `dist/`
324
- - ESLint tried to lint generated `.d.ts` files, causing errors
325
- - Incomplete build configuration (`declarationDir` misconfigured)
326
- - Types did not resolve correctly in some cases
327
-
328
- **Recommendation**: Update to `0.1.3` or higher.
329
-
330
- ---
331
-
332
- ### [0.1.1] - 2025-12-28
333
-
334
- #### ⚠️ DEPRECATED
335
-
336
- **Deprecation reason**: This version had issues with path alias resolution (`@/`) that caused errors when importing from other projects. Types did not resolve correctly when the package was installed from npm.
337
-
338
- **Known issues**:
339
- - Errors: `Module '"@ai-pip/core/csl"' has no exported member 'CSLResult'`
340
- - Path aliases did not work in consumer projects
341
- - Types did not resolve correctly from `node_modules`
342
-
343
- **Recommendation**: Update to `0.1.3` or higher.
344
-
345
- ---
346
-
347
- ### [0.1.0] - 2025-12-28
348
-
349
- #### ⚠️ DEPRECATED
350
-
351
- **Deprecation reason**: Initial version with fundamental compatibility issues. Exports did not include the `default` field required by Node.js ESM, causing `ERR_PACKAGE_PATH_NOT_EXPORTED` errors.
352
-
353
- **Known issues**:
354
- - Errors: `ERR_PACKAGE_PATH_NOT_EXPORTED` when importing subpaths
355
- - Incomplete exports: Missing `default` field in exports
356
- - Path aliases did not work correctly
357
-
358
- **Recommendation**: Update to `0.1.3` or higher.
359
-
360
- #### 📦 Initial Content
361
- - **CSL (Context Segmentation Layer)**: Content segmentation and classification
362
- - **ISL (Instruction Sanitization Layer)**: Instruction sanitization
363
- - **CPE (Cryptographic Prompt Envelope)**: Cryptographic envelope with HMAC-SHA256
364
-
365
- ---
366
-
367
- **Current Version**: 0.1.5
277
+ **Current Version**: 0.1.7
368
278
  **Status**: Phase 1 - Core Layers (100% completed)
@@ -28,7 +28,7 @@
28
28
  * // - lineage: linaje completo
29
29
  * ```
30
30
  */
31
- import type { ISLResult } from '../isl/types';
32
- import type { CPEResult } from './types';
31
+ import type { ISLResult } from '../isl/types.js';
32
+ import type { CPEResult } from './types.js';
33
33
  export declare function envelope(islResult: ISLResult, secretKey: string): CPEResult;
34
34
  //# sourceMappingURL=envelope.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"envelope.d.ts","sourceRoot":"","sources":["../../src/cpe/envelope.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,KAAK,EAAc,SAAS,EAAE,MAAM,SAAS,CAAA;AAUpD,wBAAgB,QAAQ,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,GAAG,SAAS,CAwE3E"}
1
+ {"version":3,"file":"envelope.d.ts","sourceRoot":"","sources":["../../src/cpe/envelope.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,KAAK,EAAc,SAAS,EAAE,MAAM,YAAY,CAAA;AAUvD,wBAAgB,QAAQ,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,GAAG,SAAS,CAwE3E"}
@@ -1,11 +1,11 @@
1
- import { createNonce } from './value-objects/Nonce';
2
- import { createMetadata } from './value-objects/Metadata';
3
- import { createSignature } from './value-objects/Signature';
4
- import { EnvelopeError } from './exceptions';
1
+ import { createNonce } from './value-objects/Nonce.js';
2
+ import { createMetadata } from './value-objects/Metadata.js';
3
+ import { createSignature } from './value-objects/Signature.js';
4
+ import { EnvelopeError } from './exceptions/index.js';
5
5
  // Serialización NO es core - va al SDK
6
6
  // El core solo define la estructura del envelope
7
- import { addLineageEntries } from '../shared/lineage';
8
- import { createLineageEntry } from '../csl/value-objects/LineageEntry';
7
+ import { addLineageEntries } from '../shared/lineage.js';
8
+ import { createLineageEntry } from '../csl/value-objects/LineageEntry.js';
9
9
  export function envelope(islResult, secretKey) {
10
10
  const startTime = Date.now();
11
11
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"envelope.js","sourceRoot":"","sources":["../../src/cpe/envelope.ts"],"names":[],"mappings":"AAgCA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,uCAAuC;AACvC,iDAAiD;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAEtE,MAAM,UAAU,QAAQ,CAAC,SAAoB,EAAE,SAAiB;IAC9D,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;IAE5B,IAAI,CAAC;QACH,mBAAmB;QACnB,IAAI,CAAC,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;YACjC,MAAM,IAAI,aAAa,CAAC,6CAA6C,CAAC,CAAA;QACxE,CAAC;QAED,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACzC,MAAM,IAAI,aAAa,CAAC,gDAAgD,CAAC,CAAA;QAC3E,CAAC;QAED,mCAAmC;QACnC,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;QAC5B,MAAM,KAAK,GAAG,WAAW,EAAE,CAAA;QAC3B,MAAM,QAAQ,GAAG,cAAc,CAAC,SAAS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CAAA;QACb,CAAC;QACD,MAAM,IAAI,aAAa,CACrB,gCAAgC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,EAAE,EAC1F,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAC3C,CAAA;IACH,CAAC;AACH,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * CPE Exceptions - Exports
3
3
  */
4
- export { EnvelopeError } from './EnvelopeError';
4
+ export { EnvelopeError } from './EnvelopeError.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cpe/exceptions/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cpe/exceptions/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA"}
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * CPE Exceptions - Exports
3
3
  */
4
- export { EnvelopeError } from './EnvelopeError';
4
+ export { EnvelopeError } from './EnvelopeError.js';
5
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/cpe/exceptions/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/cpe/exceptions/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA"}
@@ -13,12 +13,12 @@
13
13
  * - Construcción del envelope criptográfico
14
14
  * - Preservación del linaje completo
15
15
  */
16
- export { envelope } from './envelope';
17
- export { createNonce, isValidNonce, equalsNonce } from './value-objects/Nonce';
18
- export type { Nonce } from './value-objects/Nonce';
19
- export { createMetadata, isValidMetadata, CURRENT_PROTOCOL_VERSION } from './value-objects/Metadata';
20
- export { createSignature } from './value-objects/Signature';
21
- export type { SignatureVO } from './value-objects/Signature';
22
- export { EnvelopeError } from './exceptions/EnvelopeError';
23
- export type { ProtocolVersion, Timestamp, NonceValue, SignatureAlgorithm, Signature, CPEMetadata, CPEEvelope, CPEResult } from './types';
16
+ export { envelope } from './envelope.js';
17
+ export { createNonce, isValidNonce, equalsNonce } from './value-objects/Nonce.js';
18
+ export type { Nonce } from './value-objects/Nonce.js';
19
+ export { createMetadata, isValidMetadata, CURRENT_PROTOCOL_VERSION } from './value-objects/Metadata.js';
20
+ export { createSignature } from './value-objects/Signature.js';
21
+ export type { SignatureVO } from './value-objects/Signature.js';
22
+ export { EnvelopeError } from './exceptions/EnvelopeError.js';
23
+ export type { ProtocolVersion, Timestamp, NonceValue, SignatureAlgorithm, Signature, CPEMetadata, CPEEvelope, CPEResult } from './types.js';
24
24
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cpe/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAGrC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,YAAY,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAClD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAA;AACpG,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,YAAY,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAG5D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAG1D,YAAY,EACV,eAAe,EACf,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,SAAS,EACT,WAAW,EACX,UAAU,EACV,SAAS,EACV,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cpe/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAGxC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACjF,YAAY,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;AACvG,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAC9D,YAAY,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAG/D,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAG7D,YAAY,EACV,eAAe,EACf,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,SAAS,EACT,WAAW,EACX,UAAU,EACV,SAAS,EACV,MAAM,YAAY,CAAA"}
package/dist/cpe/index.js CHANGED
@@ -14,13 +14,13 @@
14
14
  * - Preservación del linaje completo
15
15
  */
16
16
  // Funciones puras principales
17
- export { envelope } from './envelope';
17
+ export { envelope } from './envelope.js';
18
18
  // Value objects
19
- export { createNonce, isValidNonce, equalsNonce } from './value-objects/Nonce';
20
- export { createMetadata, isValidMetadata, CURRENT_PROTOCOL_VERSION } from './value-objects/Metadata';
21
- export { createSignature } from './value-objects/Signature';
19
+ export { createNonce, isValidNonce, equalsNonce } from './value-objects/Nonce.js';
20
+ export { createMetadata, isValidMetadata, CURRENT_PROTOCOL_VERSION } from './value-objects/Metadata.js';
21
+ export { createSignature } from './value-objects/Signature.js';
22
22
  // Exceptions
23
- export { EnvelopeError } from './exceptions/EnvelopeError';
23
+ export { EnvelopeError } from './exceptions/EnvelopeError.js';
24
24
  // Serialización y verificación NO son core - van al SDK
25
25
  // El core solo define la estructura del envelope, no implementa serialización
26
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cpe/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,8BAA8B;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,gBAAgB;AAChB,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAE9E,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAA;AACpG,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAG3D,aAAa;AACb,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAc1D,wDAAwD;AACxD,8EAA8E"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cpe/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,8BAA8B;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExC,gBAAgB;AAChB,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAEjF,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;AACvG,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAG9D,aAAa;AACb,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAc7D,wDAAwD;AACxD,8EAA8E"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Types for CPE (Cryptographic Prompt Envelope) - Core Semántico
3
3
  */
4
- import type { LineageEntry } from '../csl/value-objects';
4
+ import type { LineageEntry } from '../csl/value-objects/index.js';
5
5
  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,EAAE,UAAU,CAAA;IAC7B,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;CACnC"}
@@ -2,8 +2,8 @@
2
2
  * CPEMetadata - Metadata de seguridad del envelope
3
3
  * Value Object puro e inmutable
4
4
  */
5
- import type { CPEMetadata, ProtocolVersion, Timestamp } from '../types';
6
- import type { Nonce as NonceVO } from './Nonce';
5
+ import type { CPEMetadata, ProtocolVersion, Timestamp } from '../types.js';
6
+ import type { Nonce as NonceVO } from './Nonce.js';
7
7
  /**
8
8
  * Versión actual del protocolo
9
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Metadata.d.ts","sourceRoot":"","sources":["../../../src/cpe/value-objects/Metadata.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AACvE,OAAO,KAAK,EAAE,KAAK,IAAI,OAAO,EAAE,MAAM,SAAS,CAAA;AAE/C;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,eAAyB,CAAA;AAEhE;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,OAAO,EACd,eAAe,GAAE,eAA0C,EAC3D,kBAAkB,CAAC,EAAE;IACnB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,GACA,WAAW,CA4Bb;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,WAAW,GAAG,OAAO,CAS9D"}
1
+ {"version":3,"file":"Metadata.d.ts","sourceRoot":"","sources":["../../../src/cpe/value-objects/Metadata.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC1E,OAAO,KAAK,EAAE,KAAK,IAAI,OAAO,EAAE,MAAM,YAAY,CAAA;AAElD;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,eAAyB,CAAA;AAEhE;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,OAAO,EACd,eAAe,GAAE,eAA0C,EAC3D,kBAAkB,CAAC,EAAE;IACnB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,GACA,WAAW,CA4Bb;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,WAAW,GAAG,OAAO,CAS9D"}
@@ -2,7 +2,7 @@
2
2
  * Signature - Firma criptográfica HMAC-SHA256
3
3
  * Value Object puro e inmutable
4
4
  */
5
- import type { SignatureAlgorithm } from '../types';
5
+ import type { SignatureAlgorithm } from '../types.js';
6
6
  /**
7
7
  * Signature - Firma criptográfica
8
8
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Signature.d.ts","sourceRoot":"","sources":["../../../src/cpe/value-objects/Signature.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAElD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,SAAS,EAAE,kBAAkB,CAAA;CACvC,CAAA;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,GAChB,WAAW,CAiBb;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,GAChB,OAAO,CAWT;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAGjE"}
1
+ {"version":3,"file":"Signature.d.ts","sourceRoot":"","sources":["../../../src/cpe/value-objects/Signature.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAErD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,SAAS,EAAE,kBAAkB,CAAA;CACvC,CAAA;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,GAChB,WAAW,CAiBb;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,GAChB,OAAO,CAWT;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAGjE"}
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * CPE Value Objects - Exports
3
3
  */
4
- export type { Nonce } from './Nonce';
5
- export { createNonce, isValidNonce, equalsNonce } from './Nonce';
6
- export { createMetadata, isValidMetadata } from './Metadata';
7
- export type { SignatureVO } from './Signature';
8
- export { createSignature, verifySignature, isValidSignatureFormat } from './Signature';
4
+ export type { Nonce } from './Nonce.js';
5
+ export { createNonce, isValidNonce, equalsNonce } from './Nonce.js';
6
+ export { createMetadata, isValidMetadata } from './Metadata.js';
7
+ export type { SignatureVO } from './Signature.js';
8
+ export { createSignature, verifySignature, isValidSignatureFormat } from './Signature.js';
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cpe/value-objects/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,YAAY,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAChE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAC5D,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cpe/value-objects/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,YAAY,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACnE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/D,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAA"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * CPE Value Objects - Exports
3
3
  */
4
- export { createNonce, isValidNonce, equalsNonce } from './Nonce';
5
- export { createMetadata, isValidMetadata } from './Metadata';
6
- export { createSignature, verifySignature, isValidSignatureFormat } from './Signature';
4
+ export { createNonce, isValidNonce, equalsNonce } from './Nonce.js';
5
+ export { createMetadata, isValidMetadata } from './Metadata.js';
6
+ export { createSignature, verifySignature, isValidSignatureFormat } from './Signature.js';
7
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/cpe/value-objects/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAChE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAE5D,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/cpe/value-objects/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACnE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAE/D,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAA"}
@@ -1,5 +1,5 @@
1
- import type { Origin } from './value-objects/Origin';
2
- import type { Source } from './types';
1
+ import type { Origin } from './value-objects/Origin.js';
2
+ import type { Source } from './types.js';
3
3
  /**
4
4
  * Clasifica un source y retorna su TrustLevel - función pura determinista
5
5
  *
@@ -22,7 +22,7 @@ import type { Source } from './types';
22
22
  * // Returns: { value: 'STC' }
23
23
  * ```
24
24
  */
25
- export declare function classifySource(source: Source): import("./value-objects").TrustLevel;
25
+ export declare function classifySource(source: Source): import("./value-objects/TrustLevel.js").TrustLevel;
26
26
  /**
27
27
  * Clasifica un Origin y retorna su TrustLevel - función pura determinista
28
28
  *
@@ -31,5 +31,5 @@ export declare function classifySource(source: Source): import("./value-objects"
31
31
  *
32
32
  * @throws {ClassificationError} Si el origin no está mapeado
33
33
  */
34
- export declare function classifyOrigin(origin: Origin): import("./value-objects").TrustLevel;
34
+ export declare function classifyOrigin(origin: Origin): import("./value-objects/TrustLevel.js").TrustLevel;
35
35
  //# sourceMappingURL=classify.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"classify.d.ts","sourceRoot":"","sources":["../../src/csl/classify.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAIpD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAErC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,wCAyB5C;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,wCAW5C"}
1
+ {"version":3,"file":"classify.d.ts","sourceRoot":"","sources":["../../src/csl/classify.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAIvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAExC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,sDAyB5C;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,sDAW5C"}
@@ -1,7 +1,7 @@
1
- import { createTrustLevel } from './value-objects/TrustLevel';
2
- import { originMap } from './value-objects/Origin-map';
3
- import { ClassificationError } from './exceptions';
4
- import { OriginType } from './types';
1
+ import { createTrustLevel } from './value-objects/TrustLevel.js';
2
+ import { originMap } from './value-objects/Origin-map.js';
3
+ import { ClassificationError } from './exceptions/index.js';
4
+ import { OriginType } from './types.js';
5
5
  /**
6
6
  * Clasifica un source y retorna su TrustLevel - función pura determinista
7
7
  *
@@ -1 +1 @@
1
- {"version":3,"file":"classify.js","sourceRoot":"","sources":["../../src/csl/classify.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAE7D,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAA;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAGpC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,cAAc,CAAC,MAAc;IAC3C,iDAAiD;IACjD,MAAM,kBAAkB,GAA+B;QACrD,IAAI,EAAE,UAAU,CAAC,gBAAgB,EAAO,kBAAkB;QAC1D,QAAQ,EAAE,UAAU,CAAC,gBAAgB,EAAI,cAAc;QACvD,KAAK,EAAE,UAAU,CAAC,WAAW,E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I,EAAE,UAAU,CAAC,gBAAgB,EAAO,kBAAkB;QAC1D,QAAQ,EAAE,UAAU,CAAC,gBAAgB,EAAI,cAAc;QACvD,KAAK,EAAE,UAAU,CAAC,WAAW,EAAY,YAAY;QACrD,KAAK,EAAE,UAAU,CAAC,eAAe,CAAQ,WAAW;KACrD,CAAA;IAED,MAAM,UAAU,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAA;IAE7C,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,MAAM,IAAI,mBAAmB,CAAC,WAAW,MAAM,wBAAwB,CAAC,CAAA;IAC1E,CAAC;IAED,MAAM,cAAc,GAAG,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IAEhD,IAAI,CAAC,cAAc,EAAE,CAAC;QACpB,MAAM,IAAI,mBAAmB,CAC3B,gBAAgB,UAAU,gCAAgC;YAC1D,qEAAqE,CACtE,CAAA;IACH,CAAC;IAED,OAAO,gBAAgB,CAAC,cAAc,CAAC,CAAA;AACzC,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,cAAc,CAAC,MAAc;IAC3C,MAAM,cAAc,GAAG,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IAEjD,IAAI,CAAC,cAAc,EAAE,CAAC;QACpB,MAAM,IAAI,mBAAmB,CAC3B,gBAAgB,MAAM,CAAC,IAAI,gCAAgC;YAC3D,qEAAqE,CACtE,CAAA;IACH,CAAC;IAED,OAAO,gBAAgB,CAAC,cAAc,CAAC,CAAA;AACzC,CAAC"}
@@ -1,3 +1,3 @@
1
- export { ClassificationError } from './ClassificationError';
2
- export { SegmentationError } from './SegmentationError';
1
+ export { ClassificationError } from './ClassificationError.js';
2
+ export { SegmentationError } from './SegmentationError.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/csl/exceptions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/csl/exceptions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA"}
@@ -1,3 +1,3 @@
1
- export { ClassificationError } from './ClassificationError';
2
- export { SegmentationError } from './SegmentationError';
1
+ export { ClassificationError } from './ClassificationError.js';
2
+ export { SegmentationError } from './SegmentationError.js';
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/csl/exceptions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/csl/exceptions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA"}