@ai-pip/core 0.1.3 → 0.1.5

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 (74) hide show
  1. package/README.md +91 -30
  2. package/dist/cpe/index.d.ts +2 -2
  3. package/dist/cpe/index.d.ts.map +1 -1
  4. package/dist/cpe/index.js +1 -3
  5. package/dist/cpe/index.js.map +1 -1
  6. package/dist/cpe/value-objects/Metadata.js +1 -1
  7. package/dist/cpe/value-objects/index.d.ts +5 -3
  8. package/dist/cpe/value-objects/index.d.ts.map +1 -1
  9. package/dist/cpe/value-objects/index.js +3 -3
  10. package/dist/cpe/value-objects/index.js.map +1 -1
  11. package/dist/csl/exceptions/index.d.ts +2 -2
  12. package/dist/csl/exceptions/index.d.ts.map +1 -1
  13. package/dist/csl/exceptions/index.js +2 -2
  14. package/dist/csl/exceptions/index.js.map +1 -1
  15. package/dist/csl/index.d.ts +6 -3
  16. package/dist/csl/index.d.ts.map +1 -1
  17. package/dist/csl/index.js +4 -4
  18. package/dist/csl/index.js.map +1 -1
  19. package/dist/index.d.ts +15 -7
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +16 -8
  22. package/dist/index.js.map +1 -1
  23. package/dist/isl/exceptions/index.d.ts +1 -1
  24. package/dist/isl/exceptions/index.d.ts.map +1 -1
  25. package/dist/isl/exceptions/index.js +1 -1
  26. package/dist/isl/exceptions/index.js.map +1 -1
  27. package/dist/isl/index.d.ts +4 -3
  28. package/dist/isl/index.d.ts.map +1 -1
  29. package/dist/isl/index.js +2 -5
  30. package/dist/isl/index.js.map +1 -1
  31. package/dist/shared/index.d.ts +1 -1
  32. package/dist/shared/index.d.ts.map +1 -1
  33. package/dist/shared/index.js +1 -1
  34. package/dist/shared/index.js.map +1 -1
  35. package/package.json +1 -2
  36. package/src/cpe/envelope.ts +0 -115
  37. package/src/cpe/exceptions/EnvelopeError.ts +0 -11
  38. package/src/cpe/exceptions/index.ts +0 -6
  39. package/src/cpe/index.ts +0 -35
  40. package/src/cpe/types.ts +0 -68
  41. package/src/cpe/utils.ts +0 -65
  42. package/src/cpe/value-objects/Metadata.ts +0 -78
  43. package/src/cpe/value-objects/Nonce.ts +0 -57
  44. package/src/cpe/value-objects/Signature.ts +0 -83
  45. package/src/cpe/value-objects/index.ts +0 -8
  46. package/src/csl/classify.ts +0 -77
  47. package/src/csl/exceptions/ClassificationError.ts +0 -16
  48. package/src/csl/exceptions/SegmentationError.ts +0 -19
  49. package/src/csl/exceptions/index.ts +0 -3
  50. package/src/csl/index.ts +0 -34
  51. package/src/csl/lineage.ts +0 -40
  52. package/src/csl/segment.ts +0 -100
  53. package/src/csl/types.ts +0 -113
  54. package/src/csl/utils.ts +0 -30
  55. package/src/csl/value-objects/ContentHash.ts +0 -48
  56. package/src/csl/value-objects/LineageEntry.ts +0 -33
  57. package/src/csl/value-objects/Origin-map.ts +0 -51
  58. package/src/csl/value-objects/Origin.ts +0 -52
  59. package/src/csl/value-objects/TrustLevel.ts +0 -33
  60. package/src/csl/value-objects/index.ts +0 -14
  61. package/src/index.ts +0 -20
  62. package/src/isl/exceptions/SanitizationError.ts +0 -14
  63. package/src/isl/exceptions/index.ts +0 -2
  64. package/src/isl/index.ts +0 -20
  65. package/src/isl/sanitize.ts +0 -93
  66. package/src/isl/types.ts +0 -87
  67. package/src/isl/value-objects/AnomalyScore.ts +0 -40
  68. package/src/isl/value-objects/Pattern.ts +0 -158
  69. package/src/isl/value-objects/PiDetection.ts +0 -92
  70. package/src/isl/value-objects/PiDetectionResult.ts +0 -129
  71. package/src/isl/value-objects/PolicyRule.ts +0 -117
  72. package/src/isl/value-objects/index.ts +0 -41
  73. package/src/shared/index.ts +0 -13
  74. package/src/shared/lineage.ts +0 -53
package/README.md CHANGED
@@ -21,10 +21,13 @@ El protocolo AI-PIP está compuesto por las siguientes capas:
21
21
  - **ISL (Instruction Sanitization Layer)**: Sanitiza instrucciones según nivel de confianza
22
22
  - **CPE (Cryptographic Prompt Envelope)**: Genera envoltorio criptográfico con firma HMAC-SHA256
23
23
 
24
- ### Capas Pendientes
24
+ ### 🔧 Features Compartidas
25
25
 
26
- - **AAL (Agent Action Lock)**: Bloqueo de acciones de agentes
27
- - **Model Gateway**: Interfaz con modelos de IA
26
+ - **Shared**: Funciones compartidas y linaje global e incremental (no es una capa, son features compartidas entre capas)
27
+
28
+ ### 📝 Nota sobre AAL y Model Gateway
29
+
30
+ **AAL (Agent Action Lock)** y **Model Gateway** son componentes del SDK, no del core semántico. El core semántico se enfoca en funciones puras y señales, mientras que estas capas requieren decisiones operativas y efectos secundarios que pertenecen a la implementación (SDK).
28
31
 
29
32
  ## 📦 Instalación
30
33
 
@@ -38,50 +41,67 @@ yarn add @ai-pip/core
38
41
 
39
42
  ## 🚀 Uso Básico
40
43
 
41
- ### Importar capas completas
44
+ ### Importar desde el paquete principal
42
45
 
43
46
  ```typescript
44
47
  import { segment, sanitize, envelope } from '@ai-pip/core'
45
- ```
46
-
47
- ### Importar capas específicas
48
-
49
- ```typescript
50
- // CSL - Context Segmentation Layer
51
- import { segment, classifySource } from '@ai-pip/core/csl'
52
-
53
- // ISL - Instruction Sanitization Layer
54
- import { sanitize, createPolicyRule } from '@ai-pip/core/isl'
55
-
56
- // CPE - Cryptographic Prompt Envelope
57
- import { envelope, createNonce } from '@ai-pip/core/cpe'
58
-
59
- // Shared utilities
60
- import { addLineageEntry } from '@ai-pip/core/shared'
48
+ import type { CSLResult, ISLResult, CPEResult } from '@ai-pip/core'
61
49
  ```
62
50
 
63
51
  ### Ejemplo Completo
64
52
 
65
53
  ```typescript
66
- import { segment } from '@ai-pip/core/csl'
67
- import { sanitize } from '@ai-pip/core/isl'
68
- import { envelope } from '@ai-pip/core/cpe'
54
+ import { segment, sanitize, envelope } from '@ai-pip/core'
55
+ import type { CSLResult, ISLResult, CPEResult } from '@ai-pip/core'
69
56
 
70
57
  // 1. Segmentar contenido (CSL)
71
- const cslResult = segment({
58
+ const cslResult: CSLResult = segment({
72
59
  content: 'User input here',
73
60
  source: 'UI',
74
61
  metadata: {}
75
62
  })
76
63
 
77
64
  // 2. Sanitizar contenido (ISL)
78
- const islResult = sanitize(cslResult)
65
+ const islResult: ISLResult = sanitize(cslResult)
79
66
 
80
67
  // 3. Generar envelope criptográfico (CPE)
81
68
  const secretKey = 'your-secret-key'
82
- const cpeResult = envelope(islResult, secretKey)
69
+ const cpeResult: CPEResult = envelope(islResult, secretKey)
83
70
 
84
71
  // cpeResult.envelope contiene el prompt protegido
72
+ console.log(JSON.stringify(cpeResult, null, 2))
73
+ ```
74
+
75
+ ### Ejemplo con funciones adicionales
76
+
77
+ ```typescript
78
+ import {
79
+ segment,
80
+ sanitize,
81
+ envelope,
82
+ classifySource,
83
+ addLineageEntry,
84
+ createNonce
85
+ } from '@ai-pip/core'
86
+ import type {
87
+ CSLResult,
88
+ ISLResult,
89
+ CPEResult,
90
+ Source,
91
+ TrustLevel
92
+ } from '@ai-pip/core'
93
+
94
+ // Clasificar un source
95
+ const trust = classifySource('UI' as Source)
96
+
97
+ // Agregar entrada de linaje
98
+ const updatedLineage = addLineageEntry(cslResult.lineage, {
99
+ step: 'CUSTOM',
100
+ timestamp: Date.now()
101
+ })
102
+
103
+ // Generar nonce
104
+ const nonce = createNonce()
85
105
  ```
86
106
 
87
107
  ## 📚 Documentación
@@ -92,11 +112,14 @@ const cpeResult = envelope(islResult, secretKey)
92
112
  - **[ISL - Instruction Sanitization Layer](docs/layer/isl.md)**: Documentación completa de la capa de sanitización
93
113
  - **[CPE - Cryptographic Prompt Envelope](docs/layer/cpe.md)**: Documentación completa del envoltorio criptográfico
94
114
 
115
+
116
+ - **[Shared - Features Compartidas](docs/layer/shared.md)**: Funciones compartidas y linaje global
117
+
95
118
  ### Documentación General
96
119
 
120
+ - **[Whitepaper](docs/whitepaper.md)**: Especificación técnica completa del protocolo AI-PIP
121
+ - **[Roadmap](docs/roadmap.md)**: Plan de desarrollo y evolución del protocolo
97
122
  - **[Arquitectura](docs/architecture.md)**: Arquitectura semántica del protocolo
98
- - **[Roadmap](docs/roadmap.md)**: Plan de desarrollo y evolución
99
- - **[Whitepaper](docs/whitepaper.md)**: Especificación técnica completa
100
123
  - **[SDK Reference](docs/SDK.md)**: Referencia para desarrollo de SDKs
101
124
 
102
125
  ## 🧪 Testing
@@ -204,10 +227,48 @@ Las contribuciones son bienvenidas. Por favor:
204
227
  - **NPM Package**: https://www.npmjs.com/package/@ai-pip/core
205
228
  - **GitHub**: https://github.com/AI-PIP/ai-pip-core
206
229
 
230
+ ## 🔮 Mejoras Futuras
231
+
232
+ ### Imports por Capa Específica
233
+
234
+ Actualmente, se recomienda importar desde el paquete principal (`@ai-pip/core`) para evitar confusiones con nombres similares entre capas. En futuras versiones, se mejorará el soporte para imports directos desde capas específicas:
235
+
236
+ ```typescript
237
+ // Futuro (en desarrollo)
238
+ import { segment } from '@ai-pip/core/csl'
239
+ import { sanitize } from '@ai-pip/core/isl'
240
+ import { envelope } from '@ai-pip/core/cpe'
241
+ ```
242
+
243
+ Esto permitirá:
244
+ - **Mejor organización**: Importar solo lo necesario de cada capa
245
+ - **Evitar conflictos**: Prevenir confusiones con funciones de nombres similares
246
+ - **Tree-shaking mejorado**: Los bundlers podrán eliminar código no usado más eficientemente
247
+
248
+ **Nota**: Los exports por capa están técnicamente disponibles, pero se recomienda usar el paquete principal hasta que se complete la optimización de resolución de módulos.
249
+
207
250
  ---
208
251
 
209
252
  ## 📝 CHANGELOG
210
253
 
254
+ ### [0.1.5] - 2025-12-28
255
+
256
+ #### 📚 Mejoras de Documentación
257
+ - **README actualizado**: Agregados links a whitepaper, roadmap y documentación completa de capas
258
+ - **Roadmap actualizado**: Agregado SDK-browser en Fase 4, actualizado estado de Fase 1 a 100% completado
259
+ - **Clarificación de arquitectura**: Corregida documentación sobre Shared (no es una capa, son features compartidas)
260
+ - **Nota sobre SDK**: Actualizada explicación sobre AAL y Model Gateway (son componentes del SDK, no del core)
261
+
262
+ #### 🔧 Optimizaciones
263
+ - **Reducción de tamaño del paquete**: Removido `src/` del campo `files` en `package.json` para hacer el paquete más liviano
264
+ - **Paquete optimizado**: Solo se incluyen archivos necesarios (`dist/`, `tsconfig.json`, `README.md`, `LICENSE`)
265
+
266
+ #### ✨ Mejoras
267
+ - **Documentación de capas**: Agregado link a documentación de Shared (features compartidas)
268
+ - **Organización de documentación**: Reorganizada sección de documentación con prioridad en whitepaper y roadmap
269
+
270
+ ---
271
+
211
272
  ### [0.1.3] - 2025-12-28
212
273
 
213
274
  #### ✨ Nuevas características
@@ -293,5 +354,5 @@ Las contribuciones son bienvenidas. Por favor:
293
354
 
294
355
  ---
295
356
 
296
- **Versión actual**: 0.1.3
297
- **Estado**: Fase 1 - Capas Core (60% completado)
357
+ **Versión actual**: 0.1.5
358
+ **Estado**: Fase 1 - Capas Core (100% completado)
@@ -19,6 +19,6 @@ export type { Nonce } from './value-objects/Nonce';
19
19
  export { createMetadata, isValidMetadata, CURRENT_PROTOCOL_VERSION } from './value-objects/Metadata';
20
20
  export { createSignature } from './value-objects/Signature';
21
21
  export type { SignatureVO } from './value-objects/Signature';
22
- export * from './exceptions';
23
- export * from './types';
22
+ export { EnvelopeError } from './exceptions/EnvelopeError';
23
+ export type { ProtocolVersion, Timestamp, NonceValue, SignatureAlgorithm, Signature, CPEMetadata, CPEEvelope, CPEResult } from './types';
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,cAAc,cAAc,CAAA;AAG5B,cAAc,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,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"}
package/dist/cpe/index.js CHANGED
@@ -20,9 +20,7 @@ export { createNonce, isValidNonce, equalsNonce } from './value-objects/Nonce';
20
20
  export { createMetadata, isValidMetadata, CURRENT_PROTOCOL_VERSION } from './value-objects/Metadata';
21
21
  export { createSignature } from './value-objects/Signature';
22
22
  // Exceptions
23
- export * from './exceptions';
24
- // Types
25
- export * from './types';
23
+ export { EnvelopeError } from './exceptions/EnvelopeError';
26
24
  // Serialización y verificación NO son core - van al SDK
27
25
  // El core solo define la estructura del envelope, no implementa serialización
28
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,cAAc,cAAc,CAAA;AAE5B,QAAQ;AACR,cAAc,SAAS,CAAA;AAEvB,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,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"}
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Versión actual del protocolo
7
7
  */
8
- export const CURRENT_PROTOCOL_VERSION = '1.0.0';
8
+ export const CURRENT_PROTOCOL_VERSION = '0.1.4';
9
9
  /**
10
10
  * Crea metadata de seguridad para el envelope
11
11
  * Según especificación: timestamp, nonce, protocolVersion, previousSignatures opcionales
@@ -1,7 +1,9 @@
1
1
  /**
2
2
  * CPE Value Objects - Exports
3
3
  */
4
- export * from './Nonce';
5
- export * from './Metadata';
6
- export * from './Signature';
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';
7
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,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,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,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,7 +1,7 @@
1
1
  /**
2
2
  * CPE Value Objects - Exports
3
3
  */
4
- export * from './Nonce';
5
- export * from './Metadata';
6
- export * from './Signature';
4
+ export { createNonce, isValidNonce, equalsNonce } from './Nonce';
5
+ export { createMetadata, isValidMetadata } from './Metadata';
6
+ export { createSignature, verifySignature, isValidSignatureFormat } from './Signature';
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;AAEH,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,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,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,3 +1,3 @@
1
- export * from './ClassificationError';
2
- export * from './SegmentationError';
1
+ export { ClassificationError } from './ClassificationError';
2
+ export { SegmentationError } from './SegmentationError';
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,cAAc,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAA"}
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,3 +1,3 @@
1
- export * from './ClassificationError';
2
- export * from './SegmentationError';
1
+ export { ClassificationError } from './ClassificationError';
2
+ export { SegmentationError } from './SegmentationError';
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/csl/exceptions/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAA"}
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"}
@@ -17,8 +17,11 @@
17
17
  export { segment } from './segment';
18
18
  export { classifySource, classifyOrigin } from './classify';
19
19
  export { initLineage, createLineageEntry } from './lineage';
20
- export * from './value-objects';
21
- export * from './exceptions';
22
- export * from './types';
20
+ export type { TrustLevel, Origin, LineageEntry, ContentHash } from './value-objects';
21
+ export { createTrustLevel, isTrusted, isSemiTrusted, isUntrusted, createOrigin, isDom, isUser, isSystem, isInjected, isUnknown, isNetworkFetched, isExternal, isSha256, isSha512, originMap, createContentHash, validateOriginMap } from './value-objects';
22
+ export { ClassificationError } from './exceptions/ClassificationError';
23
+ export { SegmentationError } from './exceptions/SegmentationError';
24
+ export { OriginType, TrustLevelType } from './types';
25
+ export type { HashAlgorithm, Source, CSLInput, CSLSegment, CSLResult } from './types';
23
26
  export { generateId, splitByContextRules } from './utils';
24
27
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/csl/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAC3D,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAG3D,cAAc,iBAAiB,CAAA;AAG/B,cAAc,cAAc,CAAA;AAG5B,cAAc,SAAS,CAAA;AAGvB,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/csl/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAC3D,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAG3D,YAAY,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AACpF,OAAO,EACL,gBAAgB,EAChB,SAAS,EACT,aAAa,EACb,WAAW,EACX,YAAY,EACZ,KAAK,EACL,MAAM,EACN,QAAQ,EACR,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,iBAAiB,CAAA;AAGxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAGlE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AACpD,YAAY,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAGrF,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA"}
package/dist/csl/index.js CHANGED
@@ -18,12 +18,12 @@
18
18
  export { segment } from './segment';
19
19
  export { classifySource, classifyOrigin } from './classify';
20
20
  export { initLineage, createLineageEntry } from './lineage';
21
- // Value objects
22
- export * from './value-objects';
21
+ export { createTrustLevel, isTrusted, isSemiTrusted, isUntrusted, createOrigin, isDom, isUser, isSystem, isInjected, isUnknown, isNetworkFetched, isExternal, isSha256, isSha512, originMap, createContentHash, validateOriginMap } from './value-objects';
23
22
  // Exceptions
24
- export * from './exceptions';
23
+ export { ClassificationError } from './exceptions/ClassificationError';
24
+ export { SegmentationError } from './exceptions/SegmentationError';
25
25
  // Types
26
- export * from './types';
26
+ export { OriginType, TrustLevelType } from './types';
27
27
  // Utils
28
28
  export { generateId, splitByContextRules } from './utils';
29
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/csl/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,8BAA8B;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAC3D,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAE3D,gBAAgB;AAChB,cAAc,iBAAiB,CAAA;AAE/B,aAAa;AACb,cAAc,cAAc,CAAA;AAE5B,QAAQ;AACR,cAAc,SAAS,CAAA;AAEvB,QAAQ;AACR,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/csl/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,8BAA8B;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAC3D,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAI3D,OAAO,EACL,gBAAgB,EAChB,SAAS,EACT,aAAa,EACb,WAAW,EACX,YAAY,EACZ,KAAK,EACL,MAAM,EACN,QAAQ,EACR,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,iBAAiB,CAAA;AAExB,aAAa;AACb,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAElE,QAAQ;AACR,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAGpD,QAAQ;AACR,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA"}
package/dist/index.d.ts CHANGED
@@ -2,16 +2,24 @@
2
2
  * @ai-pip/core - Core implementation of the AI-PIP protocol
3
3
  *
4
4
  * @remarks
5
- * Main entry point that re-exports all layers (CSL, ISL, Shared)
5
+ * Main entry point that re-exports all layers (CSL, ISL, CPE, Shared)
6
6
  *
7
- * You can also import specific layers:
7
+ * You can import from specific layers:
8
8
  * - import { segment } from '@ai-pip/core/csl'
9
9
  * - import { sanitize } from '@ai-pip/core/isl'
10
- * - import { addLineageEntry } from '@ai-pip/core/shared'
11
10
  * - import { envelope } from '@ai-pip/core/cpe'
11
+ *
12
+ * Or import everything from the main entry point:
13
+ * - import { addLineageEntry, segment, sanitize, envelope } from '@ai-pip/core'
14
+ *
15
+ * Note: Shared functions are only available from the main entry point, not as a subpath.
12
16
  */
13
- export * from './csl';
14
- export * from './isl';
15
- export * from './shared';
16
- export * from './cpe';
17
+ export { segment, classifySource, classifyOrigin, initLineage, createLineageEntry, generateId, splitByContextRules, OriginType, TrustLevelType, ClassificationError, SegmentationError } from './csl';
18
+ export type { HashAlgorithm, Source, CSLInput, CSLSegment, CSLResult, TrustLevel, Origin, LineageEntry, ContentHash } from './csl';
19
+ export { sanitize } from './isl';
20
+ export type { RiskScore, AnomalyAction, Position, BlockedIntent, SensitiveScope, ProtectedRole, ImmutableInstruction, RemovedInstruction, ISLSegment, ISLResult, PiDetection, PiDetectionResult, AnomalyScore, Pattern } from './isl';
21
+ export { createPiDetection, getDetectionLength, isHighConfidence, isMediumConfidence, isLowConfidence, createPiDetectionResult, hasDetections, getDetectionCount, getDetectionsByType, getHighestConfidenceDetection, createAnomalyScore, isHighRisk, isWarnRisk, isLowRisk, createPattern, matchesPattern, findMatch, MAX_CONTENT_LENGTH, MAX_PATTERN_LENGTH, MAX_MATCHES, SanitizationError } from './isl';
22
+ export { addLineageEntry, addLineageEntries, filterLineageByStep, getLastLineageEntry } from './shared';
23
+ export { envelope, createNonce, isValidNonce, equalsNonce, createMetadata, isValidMetadata, CURRENT_PROTOCOL_VERSION, createSignature, EnvelopeError } from './cpe';
24
+ export type { Nonce, SignatureVO, ProtocolVersion, Timestamp, NonceValue, SignatureAlgorithm, Signature, CPEMetadata, CPEEvelope, CPEResult } from './cpe';
17
25
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,cAAc,OAAO,CAAA;AACrB,cAAc,OAAO,CAAA;AACrB,cAAc,UAAU,CAAA;AACxB,cAAc,OAAO,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EACL,OAAO,EACP,cAAc,EACd,cAAc,EACd,WAAW,EACX,kBAAkB,EAClB,UAAU,EACV,mBAAmB,EACnB,UAAU,EACV,cAAc,EACd,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,OAAO,CAAA;AACd,YAAY,EACV,aAAa,EACb,MAAM,EACN,QAAQ,EACR,UAAU,EACV,SAAS,EACT,UAAU,EACV,MAAM,EACN,YAAY,EACZ,WAAW,EACZ,MAAM,OAAO,CAAA;AAGd,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,YAAY,EACV,SAAS,EACT,aAAa,EACb,QAAQ,EACR,aAAa,EACb,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,UAAU,EACV,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,OAAO,EACR,MAAM,OAAO,CAAA;AACd,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,uBAAuB,EACvB,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,6BAA6B,EAC7B,kBAAkB,EAClB,UAAU,EACV,UAAU,EACV,SAAS,EACT,aAAa,EACb,cAAc,EACd,SAAS,EACT,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,iBAAiB,EAClB,MAAM,OAAO,CAAA;AAGd,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,UAAU,CAAA;AAGjB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,eAAe,EAAE,wBAAwB,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AACnK,YAAY,EAAE,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,UAAU,EAAE,kBAAkB,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA"}
package/dist/index.js CHANGED
@@ -2,17 +2,25 @@
2
2
  * @ai-pip/core - Core implementation of the AI-PIP protocol
3
3
  *
4
4
  * @remarks
5
- * Main entry point that re-exports all layers (CSL, ISL, Shared)
5
+ * Main entry point that re-exports all layers (CSL, ISL, CPE, Shared)
6
6
  *
7
- * You can also import specific layers:
7
+ * You can import from specific layers:
8
8
  * - import { segment } from '@ai-pip/core/csl'
9
9
  * - import { sanitize } from '@ai-pip/core/isl'
10
- * - import { addLineageEntry } from '@ai-pip/core/shared'
11
10
  * - import { envelope } from '@ai-pip/core/cpe'
11
+ *
12
+ * Or import everything from the main entry point:
13
+ * - import { addLineageEntry, segment, sanitize, envelope } from '@ai-pip/core'
14
+ *
15
+ * Note: Shared functions are only available from the main entry point, not as a subpath.
12
16
  */
13
- // Re-export all layers
14
- export * from './csl';
15
- export * from './isl';
16
- export * from './shared';
17
- export * from './cpe';
17
+ // Re-export CSL
18
+ export { segment, classifySource, classifyOrigin, initLineage, createLineageEntry, generateId, splitByContextRules, OriginType, TrustLevelType, ClassificationError, SegmentationError } from './csl';
19
+ // Re-export ISL
20
+ export { sanitize } from './isl';
21
+ export { createPiDetection, getDetectionLength, isHighConfidence, isMediumConfidence, isLowConfidence, createPiDetectionResult, hasDetections, getDetectionCount, getDetectionsByType, getHighestConfidenceDetection, createAnomalyScore, isHighRisk, isWarnRisk, isLowRisk, createPattern, matchesPattern, findMatch, MAX_CONTENT_LENGTH, MAX_PATTERN_LENGTH, MAX_MATCHES, SanitizationError } from './isl';
22
+ // Re-export Shared
23
+ export { addLineageEntry, addLineageEntries, filterLineageByStep, getLastLineageEntry } from './shared';
24
+ // Re-export CPE
25
+ export { envelope, createNonce, isValidNonce, equalsNonce, createMetadata, isValidMetadata, CURRENT_PROTOCOL_VERSION, createSignature, EnvelopeError } from './cpe';
18
26
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,uBAAuB;AACvB,cAAc,OAAO,CAAA;AACrB,cAAc,OAAO,CAAA;AACrB,cAAc,UAAU,CAAA;AACxB,cAAc,OAAO,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,gBAAgB;AAChB,OAAO,EACL,OAAO,EACP,cAAc,EACd,cAAc,EACd,WAAW,EACX,kBAAkB,EAClB,UAAU,EACV,mBAAmB,EACnB,UAAU,EACV,cAAc,EACd,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,OAAO,CAAA;AAad,gBAAgB;AAChB,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAiBhC,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,uBAAuB,EACvB,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,6BAA6B,EAC7B,kBAAkB,EAClB,UAAU,EACV,UAAU,EACV,SAAS,EACT,aAAa,EACb,cAAc,EACd,SAAS,EACT,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,iBAAiB,EAClB,MAAM,OAAO,CAAA;AAEd,mBAAmB;AACnB,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,UAAU,CAAA;AAEjB,gBAAgB;AAChB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,eAAe,EAAE,wBAAwB,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA"}
@@ -1,2 +1,2 @@
1
- export * from './SanitizationError';
1
+ export { SanitizationError } from './SanitizationError';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/isl/exceptions/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/isl/exceptions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA"}
@@ -1,2 +1,2 @@
1
- export * from './SanitizationError';
1
+ export { SanitizationError } from './SanitizationError';
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/isl/exceptions/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/isl/exceptions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA"}
@@ -6,7 +6,8 @@
6
6
  * aplicando diferentes niveles de sanitización según el nivel de confianza.
7
7
  */
8
8
  export { sanitize } from './sanitize';
9
- export * from './value-objects';
10
- export * from './exceptions';
11
- export * from './types';
9
+ export type { PiDetection, PiDetectionResult, AnomalyScore, Pattern } from './value-objects';
10
+ export { createPiDetection, getDetectionLength, isHighConfidence, isMediumConfidence, isLowConfidence, createPiDetectionResult, hasDetections, getDetectionCount, getDetectionsByType, getHighestConfidenceDetection, createAnomalyScore, isHighRisk, isWarnRisk, isLowRisk, createPattern, matchesPattern, findMatch, MAX_CONTENT_LENGTH, MAX_PATTERN_LENGTH, MAX_MATCHES } from './value-objects';
11
+ export { SanitizationError } from './exceptions/SanitizationError';
12
+ export type { RiskScore, AnomalyAction, Position, BlockedIntent, SensitiveScope, ProtectedRole, ImmutableInstruction, RemovedInstruction, ISLSegment, ISLResult } from './types';
12
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/isl/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAGrC,cAAc,iBAAiB,CAAA;AAG/B,cAAc,cAAc,CAAA;AAG5B,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/isl/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAGrC,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAC5F,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,uBAAuB,EACvB,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,6BAA6B,EAC7B,kBAAkB,EAClB,UAAU,EACV,UAAU,EACV,SAAS,EACT,aAAa,EACb,cAAc,EACd,SAAS,EACT,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACZ,MAAM,iBAAiB,CAAA;AAGxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAGlE,YAAY,EACV,SAAS,EACT,aAAa,EACb,QAAQ,EACR,aAAa,EACb,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,UAAU,EACV,SAAS,EACV,MAAM,SAAS,CAAA"}
package/dist/isl/index.js CHANGED
@@ -7,10 +7,7 @@
7
7
  */
8
8
  // Funciones puras principales
9
9
  export { sanitize } from './sanitize';
10
- // Value objects
11
- export * from './value-objects';
10
+ export { createPiDetection, getDetectionLength, isHighConfidence, isMediumConfidence, isLowConfidence, createPiDetectionResult, hasDetections, getDetectionCount, getDetectionsByType, getHighestConfidenceDetection, createAnomalyScore, isHighRisk, isWarnRisk, isLowRisk, createPattern, matchesPattern, findMatch, MAX_CONTENT_LENGTH, MAX_PATTERN_LENGTH, MAX_MATCHES } from './value-objects';
12
11
  // Exceptions
13
- export * from './exceptions';
14
- // Types
15
- export * from './types';
12
+ export { SanitizationError } from './exceptions/SanitizationError';
16
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/isl/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,8BAA8B;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,gBAAgB;AAChB,cAAc,iBAAiB,CAAA;AAE/B,aAAa;AACb,cAAc,cAAc,CAAA;AAE5B,QAAQ;AACR,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/isl/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,8BAA8B;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAIrC,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,uBAAuB,EACvB,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,6BAA6B,EAC7B,kBAAkB,EAClB,UAAU,EACV,UAAU,EACV,SAAS,EACT,aAAa,EACb,cAAc,EACd,SAAS,EACT,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACZ,MAAM,iBAAiB,CAAA;AAExB,aAAa;AACb,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA"}
@@ -5,5 +5,5 @@
5
5
  * Solo funciones básicas de manejo de linaje.
6
6
  * Auditoría y análisis avanzado van al SDK.
7
7
  */
8
- export * from './lineage';
8
+ export { addLineageEntry, addLineageEntries, filterLineageByStep, getLastLineageEntry } from './lineage';
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,cAAc,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,WAAW,CAAA"}
@@ -6,7 +6,7 @@
6
6
  * Auditoría y análisis avanzado van al SDK.
7
7
  */
8
8
  // Lineage básico
9
- export * from './lineage';
9
+ export { addLineageEntry, addLineageEntries, filterLineageByStep, getLastLineageEntry } from './lineage';
10
10
  // Funciones de auditoría NO son core - van al SDK/tooling
11
11
  // El core solo preserva linaje, no lo analiza
12
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,iBAAiB;AACjB,cAAc,WAAW,CAAA;AAEzB,0DAA0D;AAC1D,8CAA8C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,iBAAiB;AACjB,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,WAAW,CAAA;AAElB,0DAA0D;AAC1D,8CAA8C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-pip/core",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Core implementation of the AI-PIP protocol. Provides layered, zero-trust context processing (CSL, ISL, CPE, ALL, ModelGateway)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -34,7 +34,6 @@
34
34
  },
35
35
  "files": [
36
36
  "dist",
37
- "src",
38
37
  "tsconfig.json",
39
38
  "README.md",
40
39
  "LICENSE"