@olane/o-tool-registry 1.0.9

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 (147) hide show
  1. package/README.md +253 -0
  2. package/dist/apple/apple.tool.d.ts +70 -0
  3. package/dist/apple/apple.tool.d.ts.map +1 -0
  4. package/dist/apple/apple.tool.js +12 -0
  5. package/dist/apple/apple.tool.js.map +1 -0
  6. package/dist/apple/index.d.ts +1 -0
  7. package/dist/apple/index.d.ts.map +1 -0
  8. package/dist/apple/index.js +1 -0
  9. package/dist/apple/index.js.map +1 -0
  10. package/dist/apple/notes.tool.d.ts +78 -0
  11. package/dist/apple/notes.tool.d.ts.map +1 -0
  12. package/dist/apple/notes.tool.js +216 -0
  13. package/dist/apple/notes.tool.js.map +1 -0
  14. package/dist/auth/index.d.ts +4 -0
  15. package/dist/auth/index.d.ts.map +1 -0
  16. package/dist/auth/index.js +4 -0
  17. package/dist/auth/index.js.map +1 -0
  18. package/dist/auth/interfaces/index.d.ts +4 -0
  19. package/dist/auth/interfaces/index.d.ts.map +1 -0
  20. package/dist/auth/interfaces/index.js +4 -0
  21. package/dist/auth/interfaces/index.js.map +1 -0
  22. package/dist/auth/interfaces/oAuth-tokens.interface.d.ts +9 -0
  23. package/dist/auth/interfaces/oAuth-tokens.interface.d.ts.map +1 -0
  24. package/dist/auth/interfaces/oAuth-tokens.interface.js +2 -0
  25. package/dist/auth/interfaces/oAuth-tokens.interface.js.map +1 -0
  26. package/dist/auth/interfaces/oAuth-user-info.interface.d.ts +8 -0
  27. package/dist/auth/interfaces/oAuth-user-info.interface.d.ts.map +1 -0
  28. package/dist/auth/interfaces/oAuth-user-info.interface.js +2 -0
  29. package/dist/auth/interfaces/oAuth-user-info.interface.js.map +1 -0
  30. package/dist/auth/interfaces/oAuth.config.d.ts +14 -0
  31. package/dist/auth/interfaces/oAuth.config.d.ts.map +1 -0
  32. package/dist/auth/interfaces/oAuth.config.js +2 -0
  33. package/dist/auth/interfaces/oAuth.config.js.map +1 -0
  34. package/dist/auth/methods/auth.methods.d.ts +5 -0
  35. package/dist/auth/methods/auth.methods.d.ts.map +1 -0
  36. package/dist/auth/methods/auth.methods.js +303 -0
  37. package/dist/auth/methods/auth.methods.js.map +1 -0
  38. package/dist/auth/oAuth.tool.d.ts +20 -0
  39. package/dist/auth/oAuth.tool.d.ts.map +1 -0
  40. package/dist/auth/oAuth.tool.js +410 -0
  41. package/dist/auth/oAuth.tool.js.map +1 -0
  42. package/dist/embeddings/embeddings.tool.d.ts +70 -0
  43. package/dist/embeddings/embeddings.tool.d.ts.map +1 -0
  44. package/dist/embeddings/embeddings.tool.js +12 -0
  45. package/dist/embeddings/embeddings.tool.js.map +1 -0
  46. package/dist/embeddings/huggingface-text-embeddings.tool.d.ts +9 -0
  47. package/dist/embeddings/huggingface-text-embeddings.tool.d.ts.map +1 -0
  48. package/dist/embeddings/huggingface-text-embeddings.tool.js +23 -0
  49. package/dist/embeddings/huggingface-text-embeddings.tool.js.map +1 -0
  50. package/dist/embeddings/index.d.ts +4 -0
  51. package/dist/embeddings/index.d.ts.map +1 -0
  52. package/dist/embeddings/index.js +4 -0
  53. package/dist/embeddings/index.js.map +1 -0
  54. package/dist/embeddings/methods/text-embeddings.method.d.ts +5 -0
  55. package/dist/embeddings/methods/text-embeddings.method.d.ts.map +1 -0
  56. package/dist/embeddings/methods/text-embeddings.method.js +30 -0
  57. package/dist/embeddings/methods/text-embeddings.method.js.map +1 -0
  58. package/dist/embeddings/text-embeddings.tool.d.ts +72 -0
  59. package/dist/embeddings/text-embeddings.tool.d.ts.map +1 -0
  60. package/dist/embeddings/text-embeddings.tool.js +14 -0
  61. package/dist/embeddings/text-embeddings.tool.js.map +1 -0
  62. package/dist/index.d.ts +7 -0
  63. package/dist/index.d.ts.map +1 -0
  64. package/dist/index.js +7 -0
  65. package/dist/index.js.map +1 -0
  66. package/dist/init.d.ts +3 -0
  67. package/dist/init.d.ts.map +1 -0
  68. package/dist/init.js +37 -0
  69. package/dist/init.js.map +1 -0
  70. package/dist/intelligence/anthropic-intelligence.tool.d.ts +258 -0
  71. package/dist/intelligence/anthropic-intelligence.tool.d.ts.map +1 -0
  72. package/dist/intelligence/anthropic-intelligence.tool.js +447 -0
  73. package/dist/intelligence/anthropic-intelligence.tool.js.map +1 -0
  74. package/dist/intelligence/gemini-intelligence.tool.d.ts +78 -0
  75. package/dist/intelligence/gemini-intelligence.tool.d.ts.map +1 -0
  76. package/dist/intelligence/gemini-intelligence.tool.js +254 -0
  77. package/dist/intelligence/gemini-intelligence.tool.js.map +1 -0
  78. package/dist/intelligence/index.d.ts +6 -0
  79. package/dist/intelligence/index.d.ts.map +1 -0
  80. package/dist/intelligence/index.js +6 -0
  81. package/dist/intelligence/index.js.map +1 -0
  82. package/dist/intelligence/intelligence.tool.d.ts +76 -0
  83. package/dist/intelligence/intelligence.tool.d.ts.map +1 -0
  84. package/dist/intelligence/intelligence.tool.js +109 -0
  85. package/dist/intelligence/intelligence.tool.js.map +1 -0
  86. package/dist/intelligence/methods/intelligence.methods.d.ts +5 -0
  87. package/dist/intelligence/methods/intelligence.methods.d.ts.map +1 -0
  88. package/dist/intelligence/methods/intelligence.methods.js +99 -0
  89. package/dist/intelligence/methods/intelligence.methods.js.map +1 -0
  90. package/dist/intelligence/ollama-intelligence.tool.d.ts +79 -0
  91. package/dist/intelligence/ollama-intelligence.tool.d.ts.map +1 -0
  92. package/dist/intelligence/ollama-intelligence.tool.js +288 -0
  93. package/dist/intelligence/ollama-intelligence.tool.js.map +1 -0
  94. package/dist/intelligence/openai-intelligence.tool.d.ts +79 -0
  95. package/dist/intelligence/openai-intelligence.tool.d.ts.map +1 -0
  96. package/dist/intelligence/openai-intelligence.tool.js +242 -0
  97. package/dist/intelligence/openai-intelligence.tool.js.map +1 -0
  98. package/dist/intelligence/perplexity-intelligence.tool.d.ts +76 -0
  99. package/dist/intelligence/perplexity-intelligence.tool.d.ts.map +1 -0
  100. package/dist/intelligence/perplexity-intelligence.tool.js +292 -0
  101. package/dist/intelligence/perplexity-intelligence.tool.js.map +1 -0
  102. package/dist/mcp/index.d.ts +3 -0
  103. package/dist/mcp/index.d.ts.map +1 -0
  104. package/dist/mcp/index.js +3 -0
  105. package/dist/mcp/index.js.map +1 -0
  106. package/dist/mcp/mcp-bridge.tool.d.ts +76 -0
  107. package/dist/mcp/mcp-bridge.tool.d.ts.map +1 -0
  108. package/dist/mcp/mcp-bridge.tool.js +115 -0
  109. package/dist/mcp/mcp-bridge.tool.js.map +1 -0
  110. package/dist/mcp/mcp.tool.d.ts +85 -0
  111. package/dist/mcp/mcp.tool.d.ts.map +1 -0
  112. package/dist/mcp/mcp.tool.js +80 -0
  113. package/dist/mcp/mcp.tool.js.map +1 -0
  114. package/dist/mcp/methods/mcp-bridge.methods.d.ts +5 -0
  115. package/dist/mcp/methods/mcp-bridge.methods.d.ts.map +1 -0
  116. package/dist/mcp/methods/mcp-bridge.methods.js +52 -0
  117. package/dist/mcp/methods/mcp-bridge.methods.js.map +1 -0
  118. package/dist/nlp/index.d.ts +2 -0
  119. package/dist/nlp/index.d.ts.map +1 -0
  120. package/dist/nlp/index.js +2 -0
  121. package/dist/nlp/index.js.map +1 -0
  122. package/dist/nlp/methods/nlp.methods.d.ts +5 -0
  123. package/dist/nlp/methods/nlp.methods.d.ts.map +1 -0
  124. package/dist/nlp/methods/nlp.methods.js +16 -0
  125. package/dist/nlp/methods/nlp.methods.js.map +1 -0
  126. package/dist/nlp/ner.tool.d.ts +71 -0
  127. package/dist/nlp/ner.tool.d.ts.map +1 -0
  128. package/dist/nlp/ner.tool.js +26 -0
  129. package/dist/nlp/ner.tool.js.map +1 -0
  130. package/dist/tsconfig.tsbuildinfo +1 -0
  131. package/dist/vector-store/index.d.ts +3 -0
  132. package/dist/vector-store/index.d.ts.map +1 -0
  133. package/dist/vector-store/index.js +3 -0
  134. package/dist/vector-store/index.js.map +1 -0
  135. package/dist/vector-store/langchain-memory.vector-store.tool.d.ts +14 -0
  136. package/dist/vector-store/langchain-memory.vector-store.tool.d.ts.map +1 -0
  137. package/dist/vector-store/langchain-memory.vector-store.tool.js +64 -0
  138. package/dist/vector-store/langchain-memory.vector-store.tool.js.map +1 -0
  139. package/dist/vector-store/methods/vector-store.methods.d.ts +5 -0
  140. package/dist/vector-store/methods/vector-store.methods.d.ts.map +1 -0
  141. package/dist/vector-store/methods/vector-store.methods.js +61 -0
  142. package/dist/vector-store/methods/vector-store.methods.js.map +1 -0
  143. package/dist/vector-store/vector-memory.tool.d.ts +75 -0
  144. package/dist/vector-store/vector-memory.tool.d.ts.map +1 -0
  145. package/dist/vector-store/vector-memory.tool.js +14 -0
  146. package/dist/vector-store/vector-memory.tool.js.map +1 -0
  147. package/package.json +90 -0
package/README.md ADDED
@@ -0,0 +1,253 @@
1
+ # o-Tool Registry
2
+
3
+ A registry of tools for the oLane network, including the OllamaIntelligenceTool for interacting with local Ollama instances.
4
+
5
+ ## OllamaIntelligenceTool
6
+
7
+ The `OllamaIntelligenceTool` provides a comprehensive API interface to interact with a local Ollama instance. It supports chat completion, text generation, model management, and server status monitoring.
8
+
9
+ ### Features
10
+
11
+ - **Chat Completion**: Multi-turn conversations with Ollama models
12
+ - **Text Generation**: Single-prompt text generation
13
+ - **Model Management**: List, pull, delete, and get information about models
14
+ - **Server Status**: Check if Ollama server is running
15
+ - **Configurable**: Customizable base URL and default model
16
+
17
+ ### Configuration
18
+
19
+ The tool accepts the following configuration options:
20
+
21
+ ```typescript
22
+ {
23
+ ollamaUrl: 'http://localhost:11434', // Default Ollama server URL
24
+ defaultModel: 'llama2' // Default model to use
25
+ }
26
+ ```
27
+
28
+ ### Available Methods
29
+
30
+ #### 1. `completion` - Chat Completion
31
+
32
+ Performs chat completion with a conversation history.
33
+
34
+ **Parameters:**
35
+ - `model` (string, optional): Model name to use (defaults to configured default)
36
+ - `messages` (array, required): Array of chat messages with role and content
37
+ - `options` (object, optional): Generation options (temperature, top_p, etc.)
38
+
39
+ **Example:**
40
+ ```json
41
+ {
42
+ "method": "completion",
43
+ "params": {
44
+ "model": "llama2",
45
+ "messages": [
46
+ {"role": "system", "content": "You are a helpful assistant."},
47
+ {"role": "user", "content": "What is the capital of France?"}
48
+ ],
49
+ "options": {
50
+ "temperature": 0.7,
51
+ "top_p": 0.9
52
+ }
53
+ }
54
+ }
55
+ ```
56
+
57
+ #### 2. `generate` - Text Generation
58
+
59
+ Generates text from a single prompt.
60
+
61
+ **Parameters:**
62
+ - `model` (string, optional): Model name to use (defaults to configured default)
63
+ - `prompt` (string, required): Text prompt for generation
64
+ - `system` (string, optional): System prompt
65
+ - `options` (object, optional): Generation options
66
+
67
+ **Example:**
68
+ ```json
69
+ {
70
+ "method": "generate",
71
+ "params": {
72
+ "model": "llama2",
73
+ "prompt": "Write a short story about a robot learning to paint.",
74
+ "system": "You are a creative writing assistant.",
75
+ "options": {
76
+ "temperature": 0.8,
77
+ "num_predict": 200
78
+ }
79
+ }
80
+ }
81
+ ```
82
+
83
+ #### 3. `list_models` - List Available Models
84
+
85
+ Lists all available models on the Ollama server.
86
+
87
+ **Parameters:** None
88
+
89
+ **Example:**
90
+ ```json
91
+ {
92
+ "method": "list_models",
93
+ "params": {}
94
+ }
95
+ ```
96
+
97
+ #### 4. `pull_model` - Pull a Model
98
+
99
+ Downloads a model from the Ollama library.
100
+
101
+ **Parameters:**
102
+ - `model` (string, required): Model name to pull
103
+ - `insecure` (boolean, optional): Allow insecure registry connections (default: false)
104
+
105
+ **Example:**
106
+ ```json
107
+ {
108
+ "method": "pull_model",
109
+ "params": {
110
+ "model": "llama2:7b",
111
+ "insecure": false
112
+ }
113
+ }
114
+ ```
115
+
116
+ #### 5. `delete_model` - Delete a Model
117
+
118
+ Removes a model from the local Ollama installation.
119
+
120
+ **Parameters:**
121
+ - `model` (string, required): Model name to delete
122
+
123
+ **Example:**
124
+ ```json
125
+ {
126
+ "method": "delete_model",
127
+ "params": {
128
+ "model": "llama2:7b"
129
+ }
130
+ }
131
+ ```
132
+
133
+ #### 6. `model_info` - Get Model Information
134
+
135
+ Retrieves detailed information about a specific model.
136
+
137
+ **Parameters:**
138
+ - `model` (string, optional): Model name (defaults to configured default)
139
+
140
+ **Example:**
141
+ ```json
142
+ {
143
+ "method": "model_info",
144
+ "params": {
145
+ "model": "llama2"
146
+ }
147
+ }
148
+ ```
149
+
150
+ #### 7. `status` - Check Server Status
151
+
152
+ Checks if the Ollama server is running and accessible.
153
+
154
+ **Parameters:** None
155
+
156
+ **Example:**
157
+ ```json
158
+ {
159
+ "method": "status",
160
+ "params": {}
161
+ }
162
+ ```
163
+
164
+ ### Generation Options
165
+
166
+ All generation methods support the following options:
167
+
168
+ - `temperature` (number): Controls randomness (0.0 to 1.0)
169
+ - `top_p` (number): Nucleus sampling parameter (0.0 to 1.0)
170
+ - `top_k` (number): Top-k sampling parameter
171
+ - `num_predict` (number): Maximum number of tokens to generate
172
+ - `stop` (array): Array of strings to stop generation
173
+ - `seed` (number): Random seed for reproducible results
174
+ - `num_ctx` (number): Context window size
175
+ - `num_gpu` (number): Number of GPUs to use
176
+ - `num_thread` (number): Number of CPU threads to use
177
+ - `repeat_penalty` (number): Penalty for repeating tokens
178
+ - `repeat_last_n` (number): Number of tokens to consider for repetition penalty
179
+ - `tfs_z` (number): Tail free sampling parameter
180
+ - `mirostat` (number): Mirostat sampling algorithm (0, 1, or 2)
181
+ - `mirostat_tau` (number): Mirostat target entropy
182
+ - `mirostat_eta` (number): Mirostat learning rate
183
+ - `penalize_newline` (boolean): Penalize newline tokens
184
+ - `presence_penalty` (number): Presence penalty
185
+ - `frequency_penalty` (number): Frequency penalty
186
+
187
+ ### Response Format
188
+
189
+ All methods return a `ToolResult` object with the following structure:
190
+
191
+ **Success Response:**
192
+ ```json
193
+ {
194
+ "success": true,
195
+ "response": "Generated text content",
196
+ "model": "model_name",
197
+ "done": true,
198
+ "total_duration": 1234,
199
+ "eval_count": 50,
200
+ "eval_duration": 1000
201
+ }
202
+ ```
203
+
204
+ **Error Response:**
205
+ ```json
206
+ {
207
+ "success": false,
208
+ "error": "Error description"
209
+ }
210
+ ```
211
+
212
+ ### Prerequisites
213
+
214
+ 1. **Ollama Installation**: Make sure Ollama is installed and running locally
215
+ 2. **Model Availability**: Ensure the required models are available or can be pulled
216
+ 3. **Network Access**: The tool needs network access to pull models from the Ollama library
217
+
218
+ ### Getting Started
219
+
220
+ 1. Start your Ollama server:
221
+ ```bash
222
+ ollama serve
223
+ ```
224
+
225
+ 2. Pull a model (if not already available):
226
+ ```bash
227
+ ollama pull llama2
228
+ ```
229
+
230
+ 3. Use the tool through the oLane network with the appropriate method calls.
231
+
232
+ ### Error Handling
233
+
234
+ The tool provides comprehensive error handling for:
235
+ - Network connectivity issues
236
+ - Invalid model names
237
+ - Missing required parameters
238
+ - Ollama server errors
239
+ - Model availability issues
240
+
241
+ ### Performance Considerations
242
+
243
+ - **Streaming**: The tool currently uses non-streaming responses for simplicity
244
+ - **Timeout**: Consider setting appropriate timeouts for long-running operations
245
+ - **Memory**: Large models may require significant memory resources
246
+ - **GPU**: Enable GPU acceleration in Ollama for better performance
247
+
248
+ ### Security Notes
249
+
250
+ - The tool connects to localhost by default for security
251
+ - Use HTTPS when connecting to remote Ollama instances
252
+ - Be cautious with the `insecure` flag when pulling models
253
+ - Validate all input parameters before processing
@@ -0,0 +1,70 @@
1
+ import { oToolConfig } from '@olane/o-tool';
2
+ import { oAddress, oVirtualNode } from '@olane/o-core';
3
+ declare const AppleTool_base: (new (...args: any[]) => {
4
+ validateToolCall(oRequest: import("@olane/o-core").oRequest): boolean;
5
+ handleProtocol(address: oAddress): Promise<void>;
6
+ initialize(): Promise<void>;
7
+ use(address: oAddress, data: {
8
+ [key: string]: unknown;
9
+ }, config?: import("@olane/o-core").UseOptions): Promise<import("@olane/o-core").oResponse>;
10
+ handleStream(streamData: import("@olane/o-config/dist").IncomingStreamData): Promise<void>;
11
+ execute(req: import("@olane/o-core").oRequest, stream?: import("@olane/o-config/dist").Stream): Promise<import("@olane/o-tool").RunResult>;
12
+ run(request: import("@olane/o-core").oRequest, stream?: import("@olane/o-config/dist").Stream): Promise<import("@olane/o-tool").RunResult>;
13
+ myTools(): string[];
14
+ myToolParams(tool: string): Record<string, any>;
15
+ callMyTool(request: import("@olane/o-core").oRequest, stream?: import("@olane/o-config/dist").Stream): Promise<import("@olane/o-tool").ToolResult>;
16
+ index(): Promise<{
17
+ provider: string;
18
+ summary: string;
19
+ } | {
20
+ summary: string | null;
21
+ provider?: undefined;
22
+ }>;
23
+ _tool_index_network(request: import("@olane/o-core").oRequest): Promise<import("@olane/o-tool").ToolResult>;
24
+ whoami(): Promise<{
25
+ tools: string[];
26
+ description: string;
27
+ }>;
28
+ findMissingParams(methodName: string, params: any): import("@olane/o-protocol/dist").oParameter[];
29
+ readonly config: import("@olane/o-core").CoreConfig;
30
+ p2pNode: import("@olane/o-config/dist").Libp2p;
31
+ logger: import("@olane/o-core").Logger;
32
+ networkConfig: import("@olane/o-config/dist").Libp2pConfig;
33
+ address: oAddress;
34
+ readonly staticAddress: oAddress;
35
+ peerId: import("@olane/o-config/dist").PeerId;
36
+ state: import("@olane/o-core").NodeState;
37
+ errors: Error[];
38
+ connectionManager: import("@olane/o-core").oConnectionManager;
39
+ leaders: import("@olane/o-config/dist").Multiaddr[];
40
+ addressResolution: import("@olane/o-core").oAddressResolution;
41
+ readonly description: string;
42
+ dependencies: import("@olane/o-core").oDependency[];
43
+ methods: {
44
+ [key: string]: import("@olane/o-protocol/dist").oMethod;
45
+ };
46
+ successCount: number;
47
+ errorCount: number;
48
+ get type(): import("@olane/o-core").NodeType;
49
+ get transports(): string[];
50
+ get parent(): oAddress | null;
51
+ get parentTransports(): import("@olane/o-config/dist").Multiaddr[];
52
+ getTransports(address: oAddress): import("@olane/o-config/dist").Multiaddr[];
53
+ handleStaticAddressTranslation(addressInput: oAddress): Promise<oAddress>;
54
+ translateAddress(addressWithLeaderTransports: oAddress): Promise<{
55
+ nextHopAddress: oAddress;
56
+ targetAddress: oAddress;
57
+ }>;
58
+ advertiseToNetwork(): Promise<void>;
59
+ connectToParent(): Promise<void>;
60
+ register(): Promise<void>;
61
+ connect(nextHopAddress: oAddress, targetAddress: oAddress): Promise<import("@olane/o-core").oConnection>;
62
+ teardown(): Promise<void>;
63
+ start(): Promise<void>;
64
+ stop(): Promise<void>;
65
+ }) & typeof oVirtualNode;
66
+ export declare class AppleTool extends AppleTool_base {
67
+ constructor(config: oToolConfig);
68
+ }
69
+ export {};
70
+ //# sourceMappingURL=apple.tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apple.tool.d.ts","sourceRoot":"","sources":["../../src/apple/apple.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,WAAW,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;;;;;;;aAWiS,CAAC;;yDAA6I,CAAC;yDAAoE,CAAC;;;gEAAiK,CAAC;;;;;;gBAA4L,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAT34B,qBAAa,SAAU,SAAQ,cAAmB;gBACpC,MAAM,EAAE,WAAW;CAOhC"}
@@ -0,0 +1,12 @@
1
+ import { oTool } from '@olane/o-tool';
2
+ import { oAddress, oVirtualNode } from '@olane/o-core';
3
+ export class AppleTool extends oTool(oVirtualNode) {
4
+ constructor(config) {
5
+ super({
6
+ ...config,
7
+ address: new oAddress('o://apple'),
8
+ description: config.description || 'Base class tool for Apple tools',
9
+ });
10
+ }
11
+ }
12
+ //# sourceMappingURL=apple.tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apple.tool.js","sourceRoot":"","sources":["../../src/apple/apple.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAe,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAEvD,MAAM,OAAO,SAAU,SAAQ,KAAK,CAAC,YAAY,CAAC;IAChD,YAAY,MAAmB;QAC7B,KAAK,CAAC;YACJ,GAAG,MAAM;YACT,OAAO,EAAE,IAAI,QAAQ,CAAC,WAAW,CAAC;YAClC,WAAW,EAAE,MAAM,CAAC,WAAW,IAAI,iCAAiC;SACrE,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/apple/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/apple/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,78 @@
1
+ import { oToolConfig } from '@olane/o-tool';
2
+ import { oAddress, oRequest, oVirtualNode } from '@olane/o-core';
3
+ declare const NotesTool_base: (new (...args: any[]) => {
4
+ validateToolCall(oRequest: oRequest): boolean;
5
+ handleProtocol(address: oAddress): Promise<void>;
6
+ initialize(): Promise<void>;
7
+ use(address: oAddress, data: {
8
+ [key: string]: unknown;
9
+ }, config?: import("@olane/o-core").UseOptions): Promise<import("@olane/o-core").oResponse>;
10
+ handleStream(streamData: import("@olane/o-config/dist").IncomingStreamData): Promise<void>;
11
+ execute(req: oRequest, stream?: import("@olane/o-config/dist").Stream): Promise<import("@olane/o-tool").RunResult>;
12
+ run(request: oRequest, stream?: import("@olane/o-config/dist").Stream): Promise<import("@olane/o-tool").RunResult>;
13
+ myTools(): string[];
14
+ myToolParams(tool: string): Record<string, any>;
15
+ callMyTool(request: oRequest, stream?: import("@olane/o-config/dist").Stream): Promise<import("@olane/o-tool").ToolResult>;
16
+ index(): Promise<{
17
+ provider: string;
18
+ summary: string;
19
+ } | {
20
+ summary: string | null;
21
+ provider?: undefined;
22
+ }>;
23
+ _tool_index_network(request: oRequest): Promise<import("@olane/o-tool").ToolResult>;
24
+ whoami(): Promise<{
25
+ tools: string[];
26
+ description: string;
27
+ }>;
28
+ findMissingParams(methodName: string, params: any): import("@olane/o-protocol/dist").oParameter[];
29
+ readonly config: import("@olane/o-core").CoreConfig;
30
+ p2pNode: import("@olane/o-config/dist").Libp2p;
31
+ logger: import("@olane/o-core").Logger;
32
+ networkConfig: import("@olane/o-config/dist").Libp2pConfig;
33
+ address: oAddress;
34
+ readonly staticAddress: oAddress;
35
+ peerId: import("@olane/o-config/dist").PeerId;
36
+ state: import("@olane/o-core").NodeState;
37
+ errors: Error[];
38
+ connectionManager: import("@olane/o-core").oConnectionManager;
39
+ leaders: import("@olane/o-config/dist").Multiaddr[];
40
+ addressResolution: import("@olane/o-core").oAddressResolution;
41
+ readonly description: string;
42
+ dependencies: import("@olane/o-core").oDependency[];
43
+ methods: {
44
+ [key: string]: import("@olane/o-protocol/dist").oMethod;
45
+ };
46
+ successCount: number;
47
+ errorCount: number;
48
+ get type(): import("@olane/o-core").NodeType;
49
+ get transports(): string[];
50
+ get parent(): oAddress | null;
51
+ get parentTransports(): import("@olane/o-config/dist").Multiaddr[];
52
+ getTransports(address: oAddress): import("@olane/o-config/dist").Multiaddr[];
53
+ handleStaticAddressTranslation(addressInput: oAddress): Promise<oAddress>;
54
+ translateAddress(addressWithLeaderTransports: oAddress): Promise<{
55
+ nextHopAddress: oAddress;
56
+ targetAddress: oAddress;
57
+ }>;
58
+ advertiseToNetwork(): Promise<void>;
59
+ connectToParent(): Promise<void>;
60
+ register(): Promise<void>;
61
+ connect(nextHopAddress: oAddress, targetAddress: oAddress): Promise<import("@olane/o-core").oConnection>;
62
+ teardown(): Promise<void>;
63
+ start(): Promise<void>;
64
+ stop(): Promise<void>;
65
+ }) & typeof oVirtualNode;
66
+ export declare class NotesTool extends NotesTool_base {
67
+ private jxaScriptPath;
68
+ constructor(config: oToolConfig);
69
+ private executeJxaScript;
70
+ _tool_get_notes(request: oRequest): Promise<any>;
71
+ _tool_create_note(request: oRequest): Promise<any>;
72
+ _tool_update_note(request: oRequest): Promise<any>;
73
+ _tool_delete_note(request: oRequest): Promise<any>;
74
+ _tool_get_folders(request: oRequest): Promise<any>;
75
+ _tool_create_folder(request: oRequest): Promise<any>;
76
+ }
77
+ export {};
78
+ //# sourceMappingURL=notes.tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notes.tool.d.ts","sourceRoot":"","sources":["../../src/apple/notes.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,WAAW,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;;;;;;;aAwB5D,CAAA;;iCAIW,CAAC;iCAGX,CADN;;;wCAMS,CAAC;;;;;;gBAMqC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAnChD,qBAAa,SAAU,SAAQ,cAAmB;IAChD,OAAO,CAAC,aAAa,CAAS;gBAElB,MAAM,EAAE,WAAW;YAWjB,gBAAgB;IA0BxB,eAAe,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC;IA0BhD,iBAAiB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC;IA6ClD,iBAAiB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC;IA4ClD,iBAAiB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC;IAmClD,iBAAiB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC;IA0BlD,mBAAmB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC;CAmC3D"}
@@ -0,0 +1,216 @@
1
+ import { oTool } from '@olane/o-tool';
2
+ import { oAddress, oVirtualNode } from '@olane/o-core';
3
+ import { exec } from 'child_process';
4
+ import { promisify } from 'util';
5
+ import * as path from 'path';
6
+ const execAsync = promisify(exec);
7
+ export class NotesTool extends oTool(oVirtualNode) {
8
+ jxaScriptPath;
9
+ constructor(config) {
10
+ super({
11
+ ...config,
12
+ address: new oAddress('o://notes'),
13
+ description: 'Tool to interact with Apple Notes',
14
+ });
15
+ this.jxaScriptPath = path.join(__dirname, 'notes.jxa');
16
+ }
17
+ async executeJxaScript(command, args = []) {
18
+ try {
19
+ const commandArgs = [command, ...args]
20
+ .map((arg) => `"${arg.replace(/"/g, '\\"')}"`)
21
+ .join(' ');
22
+ const fullCommand = `${this.jxaScriptPath} ${commandArgs}`;
23
+ this.logger.debug(`Executing JXA command: ${fullCommand}`);
24
+ const { stdout, stderr } = await execAsync(fullCommand);
25
+ if (stderr) {
26
+ this.logger.warn(`JXA stderr: ${stderr}`);
27
+ }
28
+ const result = JSON.parse(stdout.trim());
29
+ return result;
30
+ }
31
+ catch (error) {
32
+ this.logger.error(`Failed to execute JXA script: ${error}`);
33
+ throw new Error(`JXA execution failed: ${error.message}`);
34
+ }
35
+ }
36
+ async _tool_get_notes(request) {
37
+ try {
38
+ this.logger.debug('Getting all notes from Apple Notes');
39
+ const result = await this.executeJxaScript('get_notes');
40
+ if (!result.success) {
41
+ return {
42
+ success: false,
43
+ error: result.error,
44
+ };
45
+ }
46
+ return {
47
+ success: true,
48
+ data: result.data,
49
+ message: `Retrieved ${result.data.length} notes successfully`,
50
+ };
51
+ }
52
+ catch (error) {
53
+ this.logger.error(`Error getting notes: ${error}`);
54
+ return {
55
+ success: false,
56
+ error: error.message,
57
+ };
58
+ }
59
+ }
60
+ async _tool_create_note(request) {
61
+ try {
62
+ const { title, body, folder } = request.params;
63
+ if (!title || !body) {
64
+ return {
65
+ success: false,
66
+ error: 'Title and body are required for creating a note',
67
+ };
68
+ }
69
+ this.logger.debug(`Creating note with title: ${title}`);
70
+ const args = [title, body];
71
+ if (folder) {
72
+ args.push(folder);
73
+ }
74
+ const result = await this.executeJxaScript('create_note', args);
75
+ if (!result.success) {
76
+ return {
77
+ success: false,
78
+ error: result.error,
79
+ };
80
+ }
81
+ return {
82
+ success: true,
83
+ data: result.data,
84
+ message: 'Note created successfully',
85
+ };
86
+ }
87
+ catch (error) {
88
+ this.logger.error(`Error creating note: ${error}`);
89
+ return {
90
+ success: false,
91
+ error: error.message,
92
+ };
93
+ }
94
+ }
95
+ async _tool_update_note(request) {
96
+ try {
97
+ const { id, title, body } = request.params;
98
+ if (!id || !title || !body) {
99
+ return {
100
+ success: false,
101
+ error: 'ID, title, and body are required for updating a note',
102
+ };
103
+ }
104
+ this.logger.debug(`Updating note with ID: ${id}`);
105
+ const result = await this.executeJxaScript('update_note', [
106
+ id,
107
+ title,
108
+ body,
109
+ ]);
110
+ if (!result.success) {
111
+ return {
112
+ success: false,
113
+ error: result.error,
114
+ };
115
+ }
116
+ return {
117
+ success: true,
118
+ data: result.data,
119
+ message: 'Note updated successfully',
120
+ };
121
+ }
122
+ catch (error) {
123
+ this.logger.error(`Error updating note: ${error}`);
124
+ return {
125
+ success: false,
126
+ error: error.message,
127
+ };
128
+ }
129
+ }
130
+ async _tool_delete_note(request) {
131
+ try {
132
+ const { id } = request.params;
133
+ if (!id) {
134
+ return {
135
+ success: false,
136
+ error: 'ID is required for deleting a note',
137
+ };
138
+ }
139
+ this.logger.debug(`Deleting note with ID: ${id}`);
140
+ const result = await this.executeJxaScript('delete_note', [id]);
141
+ if (!result.success) {
142
+ return {
143
+ success: false,
144
+ error: result.error,
145
+ };
146
+ }
147
+ return {
148
+ success: true,
149
+ message: result.message || 'Note deleted successfully',
150
+ };
151
+ }
152
+ catch (error) {
153
+ this.logger.error(`Error deleting note: ${error}`);
154
+ return {
155
+ success: false,
156
+ error: error.message,
157
+ };
158
+ }
159
+ }
160
+ async _tool_get_folders(request) {
161
+ try {
162
+ this.logger.debug('Getting all folders from Apple Notes');
163
+ const result = await this.executeJxaScript('get_folders');
164
+ if (!result.success) {
165
+ return {
166
+ success: false,
167
+ error: result.error,
168
+ };
169
+ }
170
+ return {
171
+ success: true,
172
+ data: result.data,
173
+ message: `Retrieved ${result.data.length} folders successfully`,
174
+ };
175
+ }
176
+ catch (error) {
177
+ this.logger.error(`Error getting folders: ${error}`);
178
+ return {
179
+ success: false,
180
+ error: error.message,
181
+ };
182
+ }
183
+ }
184
+ async _tool_create_folder(request) {
185
+ try {
186
+ const { name } = request.params;
187
+ if (!name) {
188
+ return {
189
+ success: false,
190
+ error: 'Name is required for creating a folder',
191
+ };
192
+ }
193
+ this.logger.debug(`Creating folder with name: ${name}`);
194
+ const result = await this.executeJxaScript('create_folder', [name]);
195
+ if (!result.success) {
196
+ return {
197
+ success: false,
198
+ error: result.error,
199
+ };
200
+ }
201
+ return {
202
+ success: true,
203
+ data: result.data,
204
+ message: 'Folder created successfully',
205
+ };
206
+ }
207
+ catch (error) {
208
+ this.logger.error(`Error creating folder: ${error}`);
209
+ return {
210
+ success: false,
211
+ error: error.message,
212
+ };
213
+ }
214
+ }
215
+ }
216
+ //# sourceMappingURL=notes.tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notes.tool.js","sourceRoot":"","sources":["../../src/apple/notes.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAe,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAY,YAAY,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AACjC,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,MAAM,SAAS,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;AAElC,MAAM,OAAO,SAAU,SAAQ,KAAK,CAAC,YAAY,CAAC;IACxC,aAAa,CAAS;IAE9B,YAAY,MAAmB;QAC7B,KAAK,CAAC;YACJ,GAAG,MAAM;YACT,OAAO,EAAE,IAAI,QAAQ,CAAC,WAAW,CAAC;YAClC,WAAW,EAAE,mCAAmC;SACjD,CAAC,CAAC;QAGH,IAAI,CAAC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AAK,EAAE,CAAC,CAAC;YACrD,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,KAAK,EAAE,KAAK,CAAC,OAAO;aACrB,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
@@ -0,0 +1,4 @@
1
+ export * from './oAuth.tool';
2
+ export * from './methods/auth.methods';
3
+ export * from './interfaces';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './oAuth.tool';
2
+ export * from './methods/auth.methods';
3
+ export * from './interfaces';
4
+ //# sourceMappingURL=index.js.map