@matimo/core 0.1.0-alpha.12 → 0.1.0-alpha.13

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 (126) hide show
  1. package/README.md +169 -8
  2. package/dist/approval/approval-handler.d.ts +5 -1
  3. package/dist/approval/approval-handler.d.ts.map +1 -1
  4. package/dist/approval/approval-handler.js +6 -0
  5. package/dist/approval/approval-handler.js.map +1 -1
  6. package/dist/core/schema.d.ts +29 -8
  7. package/dist/core/schema.d.ts.map +1 -1
  8. package/dist/core/schema.js +10 -3
  9. package/dist/core/schema.js.map +1 -1
  10. package/dist/core/skill-content-parser.d.ts +91 -0
  11. package/dist/core/skill-content-parser.d.ts.map +1 -0
  12. package/dist/core/skill-content-parser.js +248 -0
  13. package/dist/core/skill-content-parser.js.map +1 -0
  14. package/dist/core/skill-loader.d.ts +46 -0
  15. package/dist/core/skill-loader.d.ts.map +1 -0
  16. package/dist/core/skill-loader.js +310 -0
  17. package/dist/core/skill-loader.js.map +1 -0
  18. package/dist/core/skill-registry.d.ts +131 -0
  19. package/dist/core/skill-registry.d.ts.map +1 -0
  20. package/dist/core/skill-registry.js +316 -0
  21. package/dist/core/skill-registry.js.map +1 -0
  22. package/dist/core/tfidf-embedding.d.ts +45 -0
  23. package/dist/core/tfidf-embedding.d.ts.map +1 -0
  24. package/dist/core/tfidf-embedding.js +199 -0
  25. package/dist/core/tfidf-embedding.js.map +1 -0
  26. package/dist/core/types.d.ts +192 -6
  27. package/dist/core/types.d.ts.map +1 -1
  28. package/dist/encodings/parameter-encoding.d.ts.map +1 -1
  29. package/dist/encodings/parameter-encoding.js +6 -2
  30. package/dist/encodings/parameter-encoding.js.map +1 -1
  31. package/dist/errors/matimo-error.d.ts +3 -1
  32. package/dist/errors/matimo-error.d.ts.map +1 -1
  33. package/dist/errors/matimo-error.js +2 -0
  34. package/dist/errors/matimo-error.js.map +1 -1
  35. package/dist/executors/command-executor.d.ts +9 -2
  36. package/dist/executors/command-executor.d.ts.map +1 -1
  37. package/dist/executors/command-executor.js +14 -2
  38. package/dist/executors/command-executor.js.map +1 -1
  39. package/dist/executors/function-executor.d.ts +10 -3
  40. package/dist/executors/function-executor.d.ts.map +1 -1
  41. package/dist/executors/function-executor.js +11 -4
  42. package/dist/executors/function-executor.js.map +1 -1
  43. package/dist/executors/http-executor.d.ts +16 -2
  44. package/dist/executors/http-executor.d.ts.map +1 -1
  45. package/dist/executors/http-executor.js +22 -6
  46. package/dist/executors/http-executor.js.map +1 -1
  47. package/dist/index.d.ts +20 -3
  48. package/dist/index.d.ts.map +1 -1
  49. package/dist/index.js +14 -1
  50. package/dist/index.js.map +1 -1
  51. package/dist/integrations/langchain.d.ts +55 -0
  52. package/dist/integrations/langchain.d.ts.map +1 -1
  53. package/dist/integrations/langchain.js +66 -0
  54. package/dist/integrations/langchain.js.map +1 -1
  55. package/dist/logging/winston-logger.d.ts.map +1 -1
  56. package/dist/logging/winston-logger.js +9 -1
  57. package/dist/logging/winston-logger.js.map +1 -1
  58. package/dist/matimo-instance.d.ts +210 -18
  59. package/dist/matimo-instance.d.ts.map +1 -1
  60. package/dist/matimo-instance.js +704 -40
  61. package/dist/matimo-instance.js.map +1 -1
  62. package/dist/mcp/mcp-server.d.ts +23 -0
  63. package/dist/mcp/mcp-server.d.ts.map +1 -1
  64. package/dist/mcp/mcp-server.js +119 -8
  65. package/dist/mcp/mcp-server.js.map +1 -1
  66. package/dist/mcp/tool-converter.d.ts.map +1 -1
  67. package/dist/mcp/tool-converter.js +10 -1
  68. package/dist/mcp/tool-converter.js.map +1 -1
  69. package/dist/policy/approval-manifest.d.ts +74 -0
  70. package/dist/policy/approval-manifest.d.ts.map +1 -0
  71. package/dist/policy/approval-manifest.js +178 -0
  72. package/dist/policy/approval-manifest.js.map +1 -0
  73. package/dist/policy/content-validator.d.ts +19 -0
  74. package/dist/policy/content-validator.d.ts.map +1 -0
  75. package/dist/policy/content-validator.js +196 -0
  76. package/dist/policy/content-validator.js.map +1 -0
  77. package/dist/policy/default-policy.d.ts +46 -0
  78. package/dist/policy/default-policy.d.ts.map +1 -0
  79. package/dist/policy/default-policy.js +241 -0
  80. package/dist/policy/default-policy.js.map +1 -0
  81. package/dist/policy/events.d.ts +71 -0
  82. package/dist/policy/events.d.ts.map +1 -0
  83. package/dist/policy/events.js +8 -0
  84. package/dist/policy/events.js.map +1 -0
  85. package/dist/policy/index.d.ts +13 -0
  86. package/dist/policy/index.d.ts.map +1 -0
  87. package/dist/policy/index.js +9 -0
  88. package/dist/policy/index.js.map +1 -0
  89. package/dist/policy/integrity-tracker.d.ts +62 -0
  90. package/dist/policy/integrity-tracker.d.ts.map +1 -0
  91. package/dist/policy/integrity-tracker.js +79 -0
  92. package/dist/policy/integrity-tracker.js.map +1 -0
  93. package/dist/policy/policy-loader.d.ts +58 -0
  94. package/dist/policy/policy-loader.d.ts.map +1 -0
  95. package/dist/policy/policy-loader.js +153 -0
  96. package/dist/policy/policy-loader.js.map +1 -0
  97. package/dist/policy/risk-classifier.d.ts +18 -0
  98. package/dist/policy/risk-classifier.d.ts.map +1 -0
  99. package/dist/policy/risk-classifier.js +43 -0
  100. package/dist/policy/risk-classifier.js.map +1 -0
  101. package/dist/policy/types.d.ts +126 -0
  102. package/dist/policy/types.d.ts.map +1 -0
  103. package/dist/policy/types.js +8 -0
  104. package/dist/policy/types.js.map +1 -0
  105. package/package.json +2 -2
  106. package/tools/matimo_approve_tool/definition.yaml +36 -0
  107. package/tools/matimo_approve_tool/matimo_approve_tool.ts +90 -0
  108. package/tools/matimo_create_skill/definition.yaml +46 -0
  109. package/tools/matimo_create_skill/matimo_create_skill.ts +75 -0
  110. package/tools/matimo_create_tool/definition.yaml +48 -0
  111. package/tools/matimo_create_tool/matimo_create_tool.ts +137 -0
  112. package/tools/matimo_get_skill/definition.yaml +60 -0
  113. package/tools/matimo_get_skill/matimo_get_skill.ts +182 -0
  114. package/tools/matimo_get_tool_status/definition.yaml +42 -0
  115. package/tools/matimo_get_tool_status/matimo_get_tool_status.ts +101 -0
  116. package/tools/matimo_list_skills/definition.yaml +52 -0
  117. package/tools/matimo_list_skills/matimo_list_skills.ts +138 -0
  118. package/tools/matimo_list_user_tools/definition.yaml +32 -0
  119. package/tools/matimo_list_user_tools/matimo_list_user_tools.ts +74 -0
  120. package/tools/matimo_reload_tools/definition.yaml +35 -0
  121. package/tools/matimo_reload_tools/matimo_reload_tools.ts +29 -0
  122. package/tools/matimo_validate_skill/definition.yaml +43 -0
  123. package/tools/matimo_validate_skill/matimo_validate_skill.ts +137 -0
  124. package/tools/matimo_validate_tool/definition.yaml +34 -0
  125. package/tools/matimo_validate_tool/matimo_validate_tool.ts +168 -0
  126. package/tools/shared/skill-validation.ts +335 -0
@@ -1,21 +1,68 @@
1
- import { ToolDefinition } from './core/schema';
1
+ import { ToolRegistry } from './core/tool-registry';
2
+ import type { SemanticSearchResult } from './core/skill-registry';
3
+ import { ToolDefinition, SkillDefinition, SkillSummary, SearchSkillsOptions, SkillContentOptions, EmbeddingProvider } from './core/types';
2
4
  import { MatimoLogger, LoggerConfig } from './logging';
5
+ import type { ExecuteOptions } from './core/types';
6
+ import type { PolicyEngine, PolicyContext, PolicyConfig, HITLCallback } from './policy/types';
7
+ import { ToolIntegrityTracker } from './policy/integrity-tracker';
8
+ import { ApprovalManifest } from './policy/approval-manifest';
9
+ import type { MatimoEventHandler } from './policy/events';
10
+ /**
11
+ * Result of a hot-reload operation
12
+ */
13
+ export interface ReloadResult {
14
+ loaded: number;
15
+ removed: number;
16
+ revalidated: number;
17
+ rejected: string[];
18
+ /** True if a mid-load failure caused the registry to be restored to its previous state. */
19
+ rolledBack?: boolean;
20
+ }
3
21
  /**
4
22
  * Options for MatimoInstance initialization
5
23
  */
6
24
  export interface InitOptions extends LoggerConfig {
7
25
  toolPaths?: string[];
26
+ /** Skill paths for discovering SKILL.md files (Level 1 discovery) */
27
+ skillPaths?: string[];
8
28
  autoDiscover?: boolean;
9
29
  includeCore?: boolean;
30
+ /** Custom PolicyEngine implementation. Mutually exclusive with policyConfig and policyFile. */
31
+ policy?: PolicyEngine;
32
+ /** Shorthand to create a DefaultPolicyEngine. Ignored if `policy` is provided. */
33
+ policyConfig?: PolicyConfig;
34
+ /** Path to a policy.yaml file. Loaded into a DefaultPolicyEngine. Ignored if `policy` is provided. */
35
+ policyFile?: string;
36
+ /** Paths containing trusted (developer-authored) tools. Defaults to auto-discovered @matimo/* paths. */
37
+ trustedPaths?: string[];
38
+ /** Paths containing untrusted (agent-created) tools. These tools undergo content validation. */
39
+ untrustedPaths?: string[];
40
+ /** HMAC secret for approval manifest. Overrides MATIMO_APPROVAL_SECRET env. */
41
+ approvalSecret?: string;
42
+ /** Directory for .matimo-approvals.json. Defaults to process.cwd(). */
43
+ approvalDir?: string;
44
+ /** Event handler for audit events (tool creation, approval, execution, etc.) */
45
+ onEvent?: MatimoEventHandler;
46
+ /**
47
+ * Human-in-the-loop callback for quarantined tools.
48
+ * Called when a tool enters `pending_approval` state (medium-risk in prod with enableHITL).
49
+ * Return `true` to approve, `false` to reject.
50
+ * If not set, quarantined tools are rejected by default.
51
+ */
52
+ onHITL?: HITLCallback;
10
53
  }
11
54
  /**
12
55
  * Matimo Instance - Single initialization point for tool execution
13
56
  * Combines loader, registry, and executors into one interface
14
57
  */
15
58
  export declare class MatimoInstance {
59
+ #private;
16
60
  private toolPaths;
61
+ private skillPaths;
17
62
  private loader;
18
63
  private registry;
64
+ private skillLoader;
65
+ private skillRegistry;
19
66
  private commandExecutor;
20
67
  private httpExecutor;
21
68
  private functionExecutor;
@@ -59,12 +106,19 @@ export declare class MatimoInstance {
59
106
  */
60
107
  getLogger(): MatimoLogger;
61
108
  /**
62
- * Execute a tool by name with parameters
109
+ * Execute a tool by name with parameters.
110
+ *
63
111
  * @param toolName - Name of the tool to execute
64
112
  * @param params - Tool parameters
113
+ * @param options - Optional execution options
114
+ * @param options.timeout - Execution timeout in milliseconds
115
+ * @param options.credentials - Per-call credential overrides (multi-tenant support).
116
+ * Keys must match the env-var names the tool references (e.g. `SLACK_BOT_TOKEN`).
117
+ * When provided, they take precedence over `process.env` for that single call.
118
+ * Values are never logged and held in memory only for the duration of the call.
65
119
  * @returns Tool execution result
66
120
  */
67
- execute(toolName: string, params: Record<string, unknown>): Promise<unknown>;
121
+ execute(toolName: string, params: Record<string, unknown>, options?: ExecuteOptions): Promise<unknown>;
68
122
  /**
69
123
  * Get a tool definition by name
70
124
  * @param toolName - Name of the tool
@@ -72,46 +126,140 @@ export declare class MatimoInstance {
72
126
  */
73
127
  getTool(toolName: string): ToolDefinition | undefined;
74
128
  /**
75
- * List all available tools
129
+ * List all available tools, optionally filtered by policy.
130
+ * @param context - PolicyContext for filtering. If omitted and policy is active, returns all tools (backward compatible).
76
131
  * @returns Array of tool definitions
77
132
  */
78
- listTools(): ToolDefinition[];
133
+ listTools(context?: PolicyContext): ToolDefinition[];
79
134
  /**
80
135
  * Get all available tools (alias for listTools)
81
136
  * @returns Array of tool definitions
82
137
  */
83
- getAllTools(): ToolDefinition[];
138
+ getAllTools(context?: PolicyContext): ToolDefinition[];
84
139
  /**
85
140
  * Search tools by name or description
86
141
  * @param query - Search query
87
142
  * @returns Matching tools
88
143
  */
89
- searchTools(query: string): ToolDefinition[];
144
+ searchTools(query: string, context?: PolicyContext): ToolDefinition[];
90
145
  /**
91
146
  * Get tools by tag
92
147
  * @param tag - Tag to search for
93
148
  * @returns Tools with the given tag
94
149
  */
95
- getToolsByTag(tag: string): ToolDefinition[];
150
+ getToolsByTag(tag: string, context?: PolicyContext): ToolDefinition[];
151
+ /**
152
+ * Return the credential key names that a tool expects.
153
+ *
154
+ * This lets multi-tenant callers know exactly what to put in `options.credentials`
155
+ * without having to read the tool's YAML definition.
156
+ *
157
+ * The returned strings are the keys you pass to `execute()`:
158
+ * ```typescript
159
+ * const keys = matimo.getRequiredCredentials('slack-send-message');
160
+ * // → ['SLACK_BOT_TOKEN']
161
+ *
162
+ * // Then collect from your secrets store:
163
+ * const credentials = Object.fromEntries(
164
+ * keys.map(k => [k, tenant.secrets[k]])
165
+ * );
166
+ * await matimo.execute('slack-send-message', params, { credentials });
167
+ * ```
168
+ *
169
+ * @param toolName - Exact tool name
170
+ * @returns Array of credential key names (may be empty if the tool needs no auth)
171
+ * @throws `MatimoError(TOOL_NOT_FOUND)` if the tool doesn't exist
172
+ */
173
+ getRequiredCredentials(toolName: string): string[];
174
+ /**
175
+ * List all available skills (Level 1 discovery - minimal context)
176
+ * @returns Array of skill summaries
177
+ */
178
+ listSkills(): SkillSummary[];
179
+ /**
180
+ * Get a single skill by name (Level 2 activation - full content)
181
+ * @param name - Skill name
182
+ * @returns Skill definition or null
183
+ */
184
+ getSkill(name: string): SkillDefinition | null;
185
+ /**
186
+ * Get selective skill content — only the sections an agent needs.
187
+ * Prevents dumping entire SKILL.md files into the LLM context window.
188
+ *
189
+ * @example
190
+ * // Get only error handling, max 500 tokens
191
+ * matimo.getSkillContent('postgres-query-operations', {
192
+ * sections: ['Error Handling'],
193
+ * maxTokens: 500,
194
+ * })
195
+ */
196
+ getSkillContent(name: string, options?: SkillContentOptions): string | null;
197
+ /**
198
+ * List all sections of a skill with their token costs.
199
+ * Agents use this to decide which sections to load before activating.
200
+ */
201
+ getSkillSections(name: string): Array<{
202
+ path: string;
203
+ level: number;
204
+ tokenEstimate: number;
205
+ }> | null;
206
+ /**
207
+ * Search skills by keyword, category, difficulty, etc.
208
+ * Set `options.semantic = true` for embedding-based similarity ranking.
209
+ * @param options - Search options
210
+ * @returns Matching skills
211
+ */
212
+ searchSkills(options?: SearchSkillsOptions): SkillSummary[];
213
+ /**
214
+ * Semantic search with relevance scores.
215
+ * Uses embeddings to find skills by meaning, not just keywords.
216
+ *
217
+ * @example
218
+ * const results = await matimo.semanticSearchSkills('How do I handle Postgres locking?');
219
+ * // → [{ skill: { name: 'postgres-query-operations' }, score: 0.82 }]
220
+ */
221
+ semanticSearchSkills(query: string, options?: {
222
+ limit?: number;
223
+ minScore?: number;
224
+ }): Promise<SemanticSearchResult[]>;
225
+ /**
226
+ * Set a custom embedding provider for semantic skill search.
227
+ * If not set, a built-in TF-IDF provider is used.
228
+ */
229
+ setSkillEmbeddingProvider(provider: EmbeddingProvider): void;
230
+ /**
231
+ * Get a bundled resource from a skill (Level 3 resources)
232
+ * @param skillName - Skill name
233
+ * @param resourcePath - Relative path to resource (e.g., "scripts/extract.py")
234
+ * @returns Resource content
235
+ */
236
+ getSkillResource(skillName: string, resourcePath: string): string;
237
+ /**
238
+ * Get all skill paths
239
+ * @returns Array of skill paths
240
+ */
241
+ getSkillPaths(): string[];
96
242
  /**
97
243
  * Automatically inject parameters from environment variables
98
244
  * Uses a YAML-native, scale-friendly approach:
99
245
  *
100
246
  * 1. Scans the execution config for all parameter placeholders
101
247
  * 2. For each parameter not provided by user, checks if it looks like auth (TOKEN, KEY, SECRET, etc.)
102
- * 3. If yes, attempts to load from environment: MATIMO_<PARAM_NAME> or <PARAM_NAME>
103
- *
104
- * This works for ANY tool with ANY auth parameter name - no hardcoding needed.
105
- * Scales to unlimited tools - contributors just submit YAML.
248
+ * 3. If yes, attempts to load from (in order of priority):
249
+ * a. `credentials[paramName]` — per-call override (multi-tenant)
250
+ * b. `credentials[MATIMO_${paramName}]` prefixed per-call override
251
+ * c. `process.env[MATIMO_${paramName}]` prefixed env var
252
+ * d. `process.env[paramName]` — direct env var
106
253
  *
107
- * Examples:
108
- * - GMAIL_ACCESS_TOKEN → looks in env vars
109
- * - GITHUB_TOKEN → looks in env vars
110
- * - SLACK_BOT_TOKEN → looks in env vars
111
- * - MY_CUSTOM_API_KEY → looks in env vars
112
- * - ANY_SECRET → looks in env vars
254
+ * Credential values are never logged.
113
255
  */
114
256
  private injectAuthParameters;
257
+ /**
258
+ * After injectAuthParameters(), verify no auth-looking placeholders remain unfilled.
259
+ * Only checks HTTP headers (where auth credentials are injected) — not query params or body.
260
+ * Throws AUTH_FAILED with actionable guidance naming the missing env var(s).
261
+ */
262
+ private assertAuthParamsFilled;
115
263
  /**
116
264
  * Extract all parameter placeholders from execution config
117
265
  * Scans headers, body, URL, and query_params for {paramName} patterns
@@ -125,6 +273,50 @@ export declare class MatimoInstance {
125
273
  * Get the appropriate executor for a tool
126
274
  */
127
275
  private getExecutor;
276
+ /**
277
+ * Hot-reload tools from all configured paths.
278
+ * Re-validates untrusted tools via content validator and integrity tracker.
279
+ * Tools that fail validation are rejected and not loaded.
280
+ *
281
+ * Atomic: if loading fails mid-way (e.g. I/O error), the registry is restored
282
+ * to its previous state and `rolledBack: true` is included in the result.
283
+ */
284
+ reloadTools(): Promise<ReloadResult>;
285
+ /**
286
+ * Check if a policy engine is active.
287
+ */
288
+ hasPolicy(): boolean;
289
+ /**
290
+ * Get the approval manifest (if policy engine is active).
291
+ */
292
+ getApprovalManifest(): ApprovalManifest | null;
293
+ /**
294
+ * Get the integrity tracker.
295
+ */
296
+ getIntegrityTracker(): ToolIntegrityTracker;
297
+ /**
298
+ * Get the tool registry (for advanced use cases).
299
+ */
300
+ getRegistry(): ToolRegistry;
301
+ /**
302
+ * Set a Human-in-the-Loop callback for quarantined tools.
303
+ * The callback is invoked when a tool with `pending_approval` status is executed.
304
+ * Return `true` to approve, `false` to reject.
305
+ */
306
+ setHITLCallback(callback: HITLCallback | null): void;
307
+ /**
308
+ * Hot-reload the policy engine at runtime.
309
+ *
310
+ * - If `configOrFile` is a `PolicyConfig` object, creates a new `DefaultPolicyEngine`.
311
+ * - If `configOrFile` is a string, re-reads and parses the YAML file.
312
+ * - If omitted and the instance was initialized with `policyFile`, re-reads that file.
313
+ *
314
+ * The new policy is validated before swap — if validation fails, the old policy remains active.
315
+ * After swap, all tools are re-validated against the new policy via `reloadTools()`.
316
+ *
317
+ * @returns The ReloadResult from the subsequent tool re-validation.
318
+ */
319
+ reloadPolicy(configOrFile?: PolicyConfig | string): Promise<ReloadResult>;
128
320
  }
129
321
  /**
130
322
  * Matimo namespace - Entry point for the SDK
@@ -1 +1 @@
1
- {"version":3,"file":"matimo-instance.d.ts","s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