@alisio/core 0.4.4 → 0.4.5

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.
@@ -321,6 +321,22 @@ export async function createApplication(options = {}) {
321
321
  }
322
322
  }
323
323
  }
324
+ /**
325
+ * Plugin resources (`api.resources.agents`) register during activation, but the built-in
326
+ * subagents plugin discovers agent files in its own setup, which runs BEFORE external plugins
327
+ * (config, command line, plugin directories) are activated. Re-run its discovery once every
328
+ * plugin has registered, so the first `/api/agents` (web selector and Agents page, TUI cycle)
329
+ * already lists the plugin primary agents instead of waiting for a manual `/agents reload`.
330
+ */
331
+ const rediscoverAgents = plugins.commands.get("agents");
332
+ if (rediscoverAgents) {
333
+ try {
334
+ await rediscoverAgents("reload");
335
+ }
336
+ catch {
337
+ /* keeps the built-ins: agent discovery is best-effort */
338
+ }
339
+ }
324
340
  // Every plugin has registered its providers: start the configured one in the background
325
341
  // (`activate` is bounded, never fatal and never awaited here).
326
342
  decisionService.syncActive();
@@ -2,6 +2,19 @@
2
2
  export const CHANGELOG_DATA = {
3
3
  schema: 1,
4
4
  entries: [
5
+ {
6
+ version: "0.4.5",
7
+ date: "2026-10-07",
8
+ sections: [
9
+ {
10
+ title: "Fixed",
11
+ items: [
12
+ "The chat agent selector, the Agents page and Shift+Tab list a plugin's `primary` agents on the first open, instead of only the built-ins until you visited the Agents window and came back.",
13
+ 'Choosing "Full access" applies to the session that is already running: it stops asking for approvals from the next tool call, not only on the following turn.',
14
+ ],
15
+ },
16
+ ],
17
+ },
5
18
  {
6
19
  version: "0.4.4",
7
20
  date: "2026-10-04",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alisio/core",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "description": "Embeddable provider-agnostic Alisio agent core: tool loop, context compaction, local tools, MCP, plugin host and SQLite session store. Runs on Node >=22.16 and Bun.",
5
5
  "author": "Gustavo Gutiérrez",
6
6
  "license": "MIT",
@@ -41,7 +41,7 @@
41
41
  "node": ">=22.16"
42
42
  },
43
43
  "dependencies": {
44
- "@alisio/sdk": "0.4.4",
44
+ "@alisio/sdk": "0.4.5",
45
45
  "@mixmark-io/domino": "2.2.0",
46
46
  "@modelcontextprotocol/client": "2.1.0",
47
47
  "ajv": "8.20.0",