@polka-codes/core 0.9.88 → 0.9.90

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 CHANGED
@@ -10,9 +10,10 @@ Core AI services and agent implementations for Polka Codes framework.
10
10
 
11
11
  - Multiple AI provider support (Anthropic, DeepSeek, GoogleVertex, Ollama, OpenAI, and OpenRouter)
12
12
  - Extensible agent architecture
13
- - Tool integration system
13
+ - Tool integration system with safety enhancements
14
14
  - Type-safe API
15
15
  - Logging and monitoring
16
+ - File operation safety (read-first enforcement, line numbers, partial reading)
16
17
 
17
18
  ## Installation
18
19
 
@@ -110,6 +111,31 @@ bun run build
110
111
  bun test
111
112
  ```
112
113
 
114
+ ### Line Numbers
115
+
116
+ All file reads include line numbers for easy reference:
117
+
118
+ ```
119
+ 1→import React from 'react';
120
+ 2→
121
+ 3→function App() {
122
+ 4→ return <div>Hello</div>;
123
+ 5→}
124
+ ```
125
+
126
+ ### Partial File Reading
127
+
128
+ You can read specific sections of a file using `offset` and `limit` parameters:
129
+
130
+ ```typescript
131
+ // Read lines 100-150 of a large file
132
+ await readFile.handler(provider, {
133
+ path: 'large-file.ts',
134
+ offset: 100, // Skip first 100 lines
135
+ limit: 50 // Read 50 lines
136
+ });
137
+ ```
138
+
113
139
  ---
114
140
 
115
141
  *This README was generated by polka.codes*