@ai-pip/core 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +153 -143
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,74 +5,74 @@
|
|
|
5
5
|
[](https://www.npmjs.com/package/@ai-pip/core)
|
|
6
6
|
[](LICENSE)
|
|
7
7
|
|
|
8
|
-
## 📋
|
|
8
|
+
## 📋 Description
|
|
9
9
|
|
|
10
|
-
**AI-PIP (AI Prompt Integrity Protocol)**
|
|
10
|
+
**AI-PIP (AI Prompt Integrity Protocol)** is a multi-layer security protocol designed to protect AI systems against prompt injection and malicious context manipulation.
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
This package contains the **core** implementation of the protocol, which includes pure functions, immutable value objects, and semantic contracts between layers.
|
|
13
13
|
|
|
14
|
-
## 🏗️
|
|
14
|
+
## 🏗️ Architecture
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
The AI-PIP protocol is composed of the following layers:
|
|
17
17
|
|
|
18
|
-
### ✅
|
|
18
|
+
### ✅ Implemented Layers
|
|
19
19
|
|
|
20
|
-
- **CSL (Context Segmentation Layer)**:
|
|
21
|
-
- **ISL (Instruction Sanitization Layer)**:
|
|
22
|
-
- **CPE (Cryptographic Prompt Envelope)**:
|
|
20
|
+
- **CSL (Context Segmentation Layer)**: Segments and classifies content according to its origin
|
|
21
|
+
- **ISL (Instruction Sanitization Layer)**: Sanitizes instructions according to trust level
|
|
22
|
+
- **CPE (Cryptographic Prompt Envelope)**: Generates cryptographic envelope with HMAC-SHA256 signature
|
|
23
23
|
|
|
24
|
-
### 🔧 Features
|
|
24
|
+
### 🔧 Shared Features
|
|
25
25
|
|
|
26
|
-
- **Shared**:
|
|
26
|
+
- **Shared**: Shared functions and global incremental lineage (not a layer, but features shared between layers)
|
|
27
27
|
|
|
28
|
-
### 📝
|
|
28
|
+
### 📝 Note on AAL and Model Gateway
|
|
29
29
|
|
|
30
|
-
**AAL (Agent Action Lock)**
|
|
30
|
+
**AAL (Agent Action Lock)** and **Model Gateway** are SDK components, not part of the semantic core. The semantic core focuses on pure functions and signals, while these layers require operational decisions and side effects that belong to the implementation (SDK).
|
|
31
31
|
|
|
32
|
-
## 📦
|
|
32
|
+
## 📦 Installation
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
35
|
pnpm add @ai-pip/core
|
|
36
|
-
#
|
|
36
|
+
# or
|
|
37
37
|
npm install @ai-pip/core
|
|
38
|
-
#
|
|
38
|
+
# or
|
|
39
39
|
yarn add @ai-pip/core
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
## 🚀
|
|
42
|
+
## 🚀 Basic Usage
|
|
43
43
|
|
|
44
|
-
###
|
|
44
|
+
### Import from main package
|
|
45
45
|
|
|
46
46
|
```typescript
|
|
47
47
|
import { segment, sanitize, envelope } from '@ai-pip/core'
|
|
48
48
|
import type { CSLResult, ISLResult, CPEResult } from '@ai-pip/core'
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
###
|
|
51
|
+
### Complete Example
|
|
52
52
|
|
|
53
53
|
```typescript
|
|
54
54
|
import { segment, sanitize, envelope } from '@ai-pip/core'
|
|
55
55
|
import type { CSLResult, ISLResult, CPEResult } from '@ai-pip/core'
|
|
56
56
|
|
|
57
|
-
// 1.
|
|
57
|
+
// 1. Segment content (CSL)
|
|
58
58
|
const cslResult: CSLResult = segment({
|
|
59
59
|
content: 'User input here',
|
|
60
60
|
source: 'UI',
|
|
61
61
|
metadata: {}
|
|
62
62
|
})
|
|
63
63
|
|
|
64
|
-
// 2.
|
|
64
|
+
// 2. Sanitize content (ISL)
|
|
65
65
|
const islResult: ISLResult = sanitize(cslResult)
|
|
66
66
|
|
|
67
|
-
// 3.
|
|
67
|
+
// 3. Generate cryptographic envelope (CPE)
|
|
68
68
|
const secretKey = 'your-secret-key'
|
|
69
69
|
const cpeResult: CPEResult = envelope(islResult, secretKey)
|
|
70
70
|
|
|
71
|
-
// cpeResult.envelope
|
|
71
|
+
// cpeResult.envelope contains the protected prompt
|
|
72
72
|
console.log(JSON.stringify(cpeResult, null, 2))
|
|
73
73
|
```
|
|
74
74
|
|
|
75
|
-
###
|
|
75
|
+
### Example with additional functions
|
|
76
76
|
|
|
77
77
|
```typescript
|
|
78
78
|
import {
|
|
@@ -91,59 +91,69 @@ import type {
|
|
|
91
91
|
TrustLevel
|
|
92
92
|
} from '@ai-pip/core'
|
|
93
93
|
|
|
94
|
-
//
|
|
94
|
+
// Classify a source
|
|
95
95
|
const trust = classifySource('UI' as Source)
|
|
96
96
|
|
|
97
|
-
//
|
|
97
|
+
// Add lineage entry
|
|
98
98
|
const updatedLineage = addLineageEntry(cslResult.lineage, {
|
|
99
99
|
step: 'CUSTOM',
|
|
100
100
|
timestamp: Date.now()
|
|
101
101
|
})
|
|
102
102
|
|
|
103
|
-
//
|
|
103
|
+
// Generate nonce
|
|
104
104
|
const nonce = createNonce()
|
|
105
105
|
```
|
|
106
106
|
|
|
107
|
-
## 📚
|
|
107
|
+
## 📚 Documentation
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
All AI-PIP protocol documentation is centralized in the [documentation repository](https://github.com/AI-PIP/ai-pip-docs):
|
|
110
110
|
|
|
111
|
-
|
|
112
|
-
- **[ISL - Instruction Sanitization Layer](docs/layer/isl.md)**: Documentación completa de la capa de sanitización
|
|
113
|
-
- **[CPE - Cryptographic Prompt Envelope](docs/layer/cpe.md)**: Documentación completa del envoltorio criptográfico
|
|
111
|
+
### Protocol Documentation
|
|
114
112
|
|
|
113
|
+
- **[Whitepaper](https://github.com/AI-PIP/ai-pip-docs/blob/main/docs/whitepaper.md)** - Complete technical specification
|
|
114
|
+
- **[Architecture](https://github.com/AI-PIP/ai-pip-docs/blob/main/docs/architecture.md)** - Semantic architecture
|
|
115
|
+
- **[Roadmap](https://github.com/AI-PIP/ai-pip-docs/blob/main/docs/roadmap.md)** - Development plan
|
|
115
116
|
|
|
116
|
-
|
|
117
|
+
### Core Documentation
|
|
117
118
|
|
|
118
|
-
|
|
119
|
+
- **[Core Overview](https://github.com/AI-PIP/ai-pip-docs/blob/main/docs/core/CORE.md)** - Semantic core description
|
|
120
|
+
- **[CSL (Context Segmentation Layer)](https://github.com/AI-PIP/ai-pip-docs/blob/main/docs/core/layers/CSL.md)** - Context segmentation layer
|
|
121
|
+
- **[ISL (Instruction Sanitization Layer)](https://github.com/AI-PIP/ai-pip-docs/blob/main/docs/core/layers/ISL.md)** - Instruction sanitization layer
|
|
122
|
+
- **[CPE (Cryptographic Prompt Envelope)](https://github.com/AI-PIP/ai-pip-docs/blob/main/docs/core/layers/CPE.md)** - Cryptographic prompt envelope
|
|
123
|
+
- **[Shared](https://github.com/AI-PIP/ai-pip-docs/blob/main/docs/core/layers/shared.md)** - Shared features and lineage
|
|
119
124
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
- **[
|
|
123
|
-
- **[SDK Reference](docs/
|
|
125
|
+
### SDK Documentation
|
|
126
|
+
|
|
127
|
+
- **[SDK](https://github.com/AI-PIP/ai-pip-docs/blob/main/docs/sdk/sdk.md)** - SDK implementation guide
|
|
128
|
+
- **[SDK Reference](https://github.com/AI-PIP/ai-pip-docs/blob/main/docs/sdk/sdk-reference.md)** - Complete SDK reference guide
|
|
129
|
+
|
|
130
|
+
### Code-Specific Documentation
|
|
131
|
+
|
|
132
|
+
- **[CHANGELOG](./CHANGELOG.md)** - Package version history
|
|
133
|
+
- **[API Reference](#-basic-usage)** - Usage examples in this README
|
|
124
134
|
|
|
125
135
|
## 🧪 Testing
|
|
126
136
|
|
|
127
137
|
```bash
|
|
128
|
-
#
|
|
138
|
+
# Run tests
|
|
129
139
|
pnpm test
|
|
130
140
|
|
|
131
|
-
# Tests
|
|
141
|
+
# Tests in watch mode
|
|
132
142
|
pnpm test:watch
|
|
133
143
|
|
|
134
|
-
# Tests
|
|
144
|
+
# Tests with coverage
|
|
135
145
|
pnpm test:coverage
|
|
136
146
|
|
|
137
|
-
# UI
|
|
147
|
+
# Test UI
|
|
138
148
|
pnpm test:ui
|
|
139
149
|
```
|
|
140
150
|
|
|
141
|
-
**
|
|
151
|
+
**Current coverage**: 87%
|
|
142
152
|
|
|
143
|
-
## 🔧
|
|
153
|
+
## 🔧 Development
|
|
144
154
|
|
|
145
155
|
```bash
|
|
146
|
-
#
|
|
156
|
+
# Install dependencies
|
|
147
157
|
pnpm install
|
|
148
158
|
|
|
149
159
|
# Type checking
|
|
@@ -152,21 +162,21 @@ pnpm type-check
|
|
|
152
162
|
# Linting
|
|
153
163
|
pnpm lint
|
|
154
164
|
|
|
155
|
-
#
|
|
165
|
+
# Development
|
|
156
166
|
pnpm dev
|
|
157
167
|
```
|
|
158
168
|
|
|
159
|
-
## 📋
|
|
169
|
+
## 📋 Requirements
|
|
160
170
|
|
|
161
171
|
### Runtime
|
|
162
172
|
- **Node.js**: >= 18.0.0
|
|
163
|
-
- **pnpm**: >= 8.0.0 (
|
|
173
|
+
- **pnpm**: >= 8.0.0 (recommended) or npm/yarn
|
|
164
174
|
|
|
165
|
-
### TypeScript ⚠️ **
|
|
175
|
+
### TypeScript ⚠️ **REQUIRED**
|
|
166
176
|
|
|
167
|
-
|
|
177
|
+
This package uses ESM (`"type": "module"`) and exports with subpaths. For TypeScript to correctly resolve imports and types, your project **MUST** have the following configuration in `tsconfig.json`:
|
|
168
178
|
|
|
169
|
-
**
|
|
179
|
+
**Minimum required configuration:**
|
|
170
180
|
|
|
171
181
|
```json
|
|
172
182
|
{
|
|
@@ -178,12 +188,12 @@ Este paquete utiliza ESM (`"type": "module"`) y exports con subpaths. Para que T
|
|
|
178
188
|
}
|
|
179
189
|
```
|
|
180
190
|
|
|
181
|
-
**⚠️
|
|
191
|
+
**⚠️ CRITICAL**: Without this configuration, you will get errors like:
|
|
182
192
|
- `Module '"@ai-pip/core/csl"' has no exported member 'CSLResult'`
|
|
183
193
|
- `ERR_PACKAGE_PATH_NOT_EXPORTED`
|
|
184
|
-
-
|
|
194
|
+
- Types will not resolve correctly
|
|
185
195
|
|
|
186
|
-
####
|
|
196
|
+
#### Recommended complete `tsconfig.json` example
|
|
187
197
|
|
|
188
198
|
```json
|
|
189
199
|
{
|
|
@@ -200,52 +210,52 @@ Este paquete utiliza ESM (`"type": "module"`) y exports con subpaths. Para que T
|
|
|
200
210
|
}
|
|
201
211
|
```
|
|
202
212
|
|
|
203
|
-
####
|
|
213
|
+
#### Important notes
|
|
204
214
|
|
|
205
|
-
- **
|
|
206
|
-
- **
|
|
207
|
-
- **JavaScript
|
|
215
|
+
- **From version 0.1.2+**: This configuration is mandatory. Previous versions (0.1.0, 0.1.1) are deprecated.
|
|
216
|
+
- **If you use `tsx` or `ts-node`**: Even if you run TypeScript directly, you **still need** this configuration in `tsconfig.json` for TypeScript to resolve types correctly.
|
|
217
|
+
- **Pure JavaScript**: If you use JavaScript without TypeScript, you don't need this configuration, but you will lose type support.
|
|
208
218
|
|
|
209
|
-
## 📄
|
|
219
|
+
## 📄 License
|
|
210
220
|
|
|
211
|
-
Apache-2.0 -
|
|
221
|
+
Apache-2.0 - See [LICENSE](LICENSE) for more details.
|
|
212
222
|
|
|
213
|
-
## 🤝
|
|
223
|
+
## 🤝 Contributing
|
|
214
224
|
|
|
215
|
-
|
|
225
|
+
Contributions are welcome. Please:
|
|
216
226
|
|
|
217
|
-
1.
|
|
218
|
-
2.
|
|
219
|
-
3.
|
|
227
|
+
1. Review the [Roadmap](https://github.com/AI-PIP/ai-pip-docs/blob/main/roadmap.md) to see what's pending
|
|
228
|
+
2. Open an issue to discuss major changes
|
|
229
|
+
3. Submit a pull request with your improvements
|
|
220
230
|
|
|
221
|
-
**
|
|
231
|
+
**Repository**: https://github.com/AI-PIP/ai-pip-core
|
|
222
232
|
**Issues**: https://github.com/AI-PIP/ai-pip-core/issues
|
|
223
233
|
|
|
224
|
-
## 🔗
|
|
234
|
+
## 🔗 Links
|
|
225
235
|
|
|
226
|
-
- **
|
|
236
|
+
- **Documentation**: [ai-pip-docs](https://github.com/AI-PIP/ai-pip-docs)
|
|
227
237
|
- **NPM Package**: https://www.npmjs.com/package/@ai-pip/core
|
|
228
238
|
- **GitHub**: https://github.com/AI-PIP/ai-pip-core
|
|
229
239
|
|
|
230
|
-
## 🔮
|
|
240
|
+
## 🔮 Future Improvements
|
|
231
241
|
|
|
232
|
-
### Imports
|
|
242
|
+
### Imports by Specific Layer
|
|
233
243
|
|
|
234
|
-
|
|
244
|
+
Currently, it's recommended to import from the main package (`@ai-pip/core`) to avoid confusion with similar names between layers. In future versions, support for direct imports from specific layers will be improved:
|
|
235
245
|
|
|
236
246
|
```typescript
|
|
237
|
-
//
|
|
247
|
+
// Future (in development)
|
|
238
248
|
import { segment } from '@ai-pip/core/csl'
|
|
239
249
|
import { sanitize } from '@ai-pip/core/isl'
|
|
240
250
|
import { envelope } from '@ai-pip/core/cpe'
|
|
241
251
|
```
|
|
242
252
|
|
|
243
|
-
|
|
244
|
-
- **
|
|
245
|
-
- **
|
|
246
|
-
- **
|
|
253
|
+
This will enable:
|
|
254
|
+
- **Better organization**: Import only what's needed from each layer
|
|
255
|
+
- **Avoid conflicts**: Prevent confusion with similarly named functions
|
|
256
|
+
- **Improved tree-shaking**: Bundlers will be able to eliminate unused code more efficiently
|
|
247
257
|
|
|
248
|
-
**
|
|
258
|
+
**Note**: Exports by layer are technically available, but it's recommended to use the main package until module resolution optimization is complete.
|
|
249
259
|
|
|
250
260
|
---
|
|
251
261
|
|
|
@@ -253,106 +263,106 @@ Esto permitirá:
|
|
|
253
263
|
|
|
254
264
|
### [0.1.5] - 2025-12-28
|
|
255
265
|
|
|
256
|
-
#### 📚
|
|
257
|
-
- **README
|
|
258
|
-
- **Roadmap
|
|
259
|
-
- **
|
|
260
|
-
- **
|
|
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)
|
|
261
271
|
|
|
262
|
-
#### 🔧
|
|
263
|
-
- **
|
|
264
|
-
- **
|
|
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`)
|
|
265
275
|
|
|
266
|
-
#### ✨
|
|
267
|
-
- **
|
|
268
|
-
- **
|
|
276
|
+
#### ✨ Improvements
|
|
277
|
+
- **Layer documentation**: Added link to Shared documentation (shared features)
|
|
278
|
+
- **Documentation organization**: Reorganized documentation section with priority on whitepaper and roadmap
|
|
269
279
|
|
|
270
280
|
---
|
|
271
281
|
|
|
272
282
|
### [0.1.3] - 2025-12-28
|
|
273
283
|
|
|
274
|
-
#### ✨
|
|
275
|
-
- **
|
|
276
|
-
- **
|
|
277
|
-
- **Source maps**:
|
|
278
|
-
|
|
279
|
-
#### 🔧
|
|
280
|
-
- **
|
|
281
|
-
- **
|
|
282
|
-
- **
|
|
283
|
-
- **
|
|
284
|
-
- **ESLint**:
|
|
285
|
-
|
|
286
|
-
#### 🐛
|
|
287
|
-
- **
|
|
288
|
-
- **Imports
|
|
289
|
-
- **
|
|
290
|
-
- **
|
|
291
|
-
|
|
292
|
-
#### 📚
|
|
293
|
-
- **
|
|
294
|
-
- **
|
|
295
|
-
- **CHANGELOG
|
|
296
|
-
|
|
297
|
-
#### 🛠️
|
|
298
|
-
- **
|
|
299
|
-
- **
|
|
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
|
|
300
310
|
|
|
301
311
|
#### ⚠️ Breaking Changes
|
|
302
|
-
- **
|
|
312
|
+
- **TypeScript configuration required**: It's now **mandatory** to use `module: "NodeNext"` and `moduleResolution: "nodenext"` in `tsconfig.json`
|
|
303
313
|
|
|
304
314
|
---
|
|
305
315
|
|
|
306
316
|
### [0.1.2] - 2025-12-28
|
|
307
317
|
|
|
308
|
-
#### ⚠️
|
|
318
|
+
#### ⚠️ DEPRECATED
|
|
309
319
|
|
|
310
|
-
**
|
|
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.
|
|
311
321
|
|
|
312
|
-
**
|
|
313
|
-
-
|
|
314
|
-
- ESLint
|
|
315
|
-
-
|
|
316
|
-
-
|
|
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
|
|
317
327
|
|
|
318
|
-
**
|
|
328
|
+
**Recommendation**: Update to `0.1.3` or higher.
|
|
319
329
|
|
|
320
330
|
---
|
|
321
331
|
|
|
322
332
|
### [0.1.1] - 2025-12-28
|
|
323
333
|
|
|
324
|
-
#### ⚠️
|
|
334
|
+
#### ⚠️ DEPRECATED
|
|
325
335
|
|
|
326
|
-
**
|
|
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.
|
|
327
337
|
|
|
328
|
-
**
|
|
329
|
-
-
|
|
330
|
-
- Path aliases
|
|
331
|
-
-
|
|
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`
|
|
332
342
|
|
|
333
|
-
**
|
|
343
|
+
**Recommendation**: Update to `0.1.3` or higher.
|
|
334
344
|
|
|
335
345
|
---
|
|
336
346
|
|
|
337
347
|
### [0.1.0] - 2025-12-28
|
|
338
348
|
|
|
339
|
-
#### ⚠️
|
|
349
|
+
#### ⚠️ DEPRECATED
|
|
340
350
|
|
|
341
|
-
**
|
|
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.
|
|
342
352
|
|
|
343
|
-
**
|
|
344
|
-
-
|
|
345
|
-
-
|
|
346
|
-
- Path aliases
|
|
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
|
|
347
357
|
|
|
348
|
-
**
|
|
358
|
+
**Recommendation**: Update to `0.1.3` or higher.
|
|
349
359
|
|
|
350
|
-
#### 📦
|
|
351
|
-
- **CSL (Context Segmentation Layer)**:
|
|
352
|
-
- **ISL (Instruction Sanitization Layer)**:
|
|
353
|
-
- **CPE (Cryptographic Prompt Envelope)**:
|
|
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
|
|
354
364
|
|
|
355
365
|
---
|
|
356
366
|
|
|
357
|
-
**
|
|
358
|
-
**
|
|
367
|
+
**Current Version**: 0.1.5
|
|
368
|
+
**Status**: Phase 1 - Core Layers (100% completed)
|
package/package.json
CHANGED