@alisio/sdk 0.1.0-alpha.11 → 0.1.0-alpha.12

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
@@ -67,6 +67,12 @@ returns an unregister function.
67
67
  `/connect` profiles.
68
68
  - **providers** — `providers.register(registration)` adds a selectable model provider to `/connect`;
69
69
  registrations coexist instead of competing.
70
+ - **categories** — declare `categories` on `Plugin`/`PluginMetadata` from the accepted set:
71
+ `model-provider`, `methodology-harness`, `memory`, `subagents`, `search`, `tools`, `security`,
72
+ `analytics`, `mcp`, `storage`, `ui` (see the
73
+ [plugin categories table](https://gustavogutierrez.github.io/alisio/plugins#plugin-categories)).
74
+ The TUI groups `/plugins` rows by the first category, falling back to "General"; the host
75
+ derives `model-provider` automatically when a plugin registers providers.
70
76
  - **storage** — `storage.sqlite(path)` opens a private (0600) SQLite file (FTS5 available); the
71
77
  host provides the driver, so plugins never depend on a specific runtime.
72
78
  - **sessions** — child sessions (`spawn`, `create`, `run`, `get`, `children`, `cancel`, `enqueue`,
package/dist/index.d.ts CHANGED
@@ -235,6 +235,12 @@ export interface ToolContext {
235
235
  session?: string;
236
236
  /** Who is asking, e.g. an agent path such as "general › explore" (child sessions only). */
237
237
  label?: string;
238
+ /**
239
+ * Resolves a tool path under the session's mediated path policy (workspace plus declared extra
240
+ * directories). Out-of-root paths ask for directory approval when the host allows it; hosts that
241
+ * do not inject this fall back to the workspace-only `safePath` policy.
242
+ */
243
+ resolvePath?: (path: string) => Promise<string>;
238
244
  }
239
245
  export interface ToolDefinition {
240
246
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alisio/sdk",
3
- "version": "0.1.0-alpha.11",
3
+ "version": "0.1.0-alpha.12",
4
4
  "description": "Typed plugin SDK for Alisio: the stable contract for tools, commands, context, compaction and session hooks, model completions and storage. Types only plus tiny helpers; zero runtime dependencies.",
5
5
  "author": "Gustavo Gutiérrez",
6
6
  "license": "MIT",