@kafca/agentdock 0.1.64 → 0.1.65

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 (34) hide show
  1. package/dist/renderer/assets/{AutomationList-uiR0seMA.js → AutomationList-fCves7JJ.js} +1 -1
  2. package/dist/renderer/assets/{Badge-BZwdECxe.js → Badge-03CgzC3O.js} +1 -1
  3. package/dist/renderer/assets/{Card-JMY-xmLX.js → Card-BG4attR1.js} +1 -1
  4. package/dist/renderer/assets/{Config-BMcWRfWu.js → Config-DLmfH4Fs.js} +1 -1
  5. package/dist/renderer/assets/{Dashboard-CSk6wUMx.js → Dashboard-tmYu-275.js} +2 -2
  6. package/dist/renderer/assets/{EmptyState-3J94zJRa.js → EmptyState-D3nq3XaN.js} +1 -1
  7. package/dist/renderer/assets/{HighlightedMarkdown-DKL7rO-G.js → HighlightedMarkdown-DFiXk_8l.js} +1 -1
  8. package/dist/renderer/assets/{Input-BGK524F9.js → Input-BuQ3SusB.js} +1 -1
  9. package/dist/renderer/assets/{KnowledgeDetail-XZ9sxTBY.js → KnowledgeDetail-2k6D-FBu.js} +1 -1
  10. package/dist/renderer/assets/{KnowledgeHome-CJlGiu7a.js → KnowledgeHome-Bv3_riqS.js} +1 -1
  11. package/dist/renderer/assets/{Logs-B5Y0yspB.js → Logs-DdDCHMXT.js} +1 -1
  12. package/dist/renderer/assets/{Modal-DlIfXQ8_.js → Modal-BOpQurFi.js} +1 -1
  13. package/dist/renderer/assets/{Page-B1i9DSW-.js → Page-DAZBFNqx.js} +1 -1
  14. package/dist/renderer/assets/{Select-DDpZ4sBt.js → Select-CjT5-m7R.js} +1 -1
  15. package/dist/renderer/assets/{ThreadChat-D63t_k2d.js → ThreadChat-Dd1d35z9.js} +3 -3
  16. package/dist/renderer/assets/{Workspace-BPkGxjuF.js → Workspace-CMHdpXa7.js} +1 -1
  17. package/dist/renderer/assets/{arrow-left-C6VSgxEk.js → arrow-left-DTisCSrr.js} +1 -1
  18. package/dist/renderer/assets/{book-open-DWJZSr5x.js → book-open-DGOtHxDK.js} +1 -1
  19. package/dist/renderer/assets/{channels-Dkik3Wxt.js → channels-DTwVsSq8.js} +1 -1
  20. package/dist/renderer/assets/{chevron-down-BHtOK5fW.js → chevron-down-Dw5IfnsR.js} +1 -1
  21. package/dist/renderer/assets/{index-TTj4JT0d.js → index-CDPdiGc6.js} +1 -1
  22. package/dist/renderer/assets/{index-DV9qeL9P.js → index-jESlfFTY.js} +2 -2
  23. package/dist/renderer/assets/{knowledge-C9mJpMmJ.js → knowledge-DnebW2tM.js} +1 -1
  24. package/dist/renderer/assets/{pencil-B7bBxE-w.js → pencil-BBgjg0RK.js} +1 -1
  25. package/dist/renderer/assets/{plus-DPOTxoL2.js → plus-C5OXMCrc.js} +1 -1
  26. package/dist/renderer/assets/{save-Drzhy5En.js → save-B9-o4ceK.js} +1 -1
  27. package/dist/renderer/assets/{search-m-2mVuF6.js → search-CetWQ9yl.js} +1 -1
  28. package/dist/renderer/assets/{shield-check-C8NOMoui.js → shield-check-Dts9cJZL.js} +1 -1
  29. package/dist/renderer/assets/{threads-BG4F9grx.js → threads-Co4JiiXY.js} +1 -1
  30. package/dist/renderer/assets/{trash-2-Bh0nSQUA.js → trash-2-CcjYdBI8.js} +1 -1
  31. package/dist/renderer/index.html +1 -1
  32. package/dist-electron/services/local-ai-core/src/acp/store/runtime-config-store.js +20 -6
  33. package/dist-electron/services/local-ai-core/src/runtime/local-core-controller.js +4 -0
  34. package/package.json +1 -1
@@ -1 +1 @@
1
- import{z as n,Z as l}from"./index-DV9qeL9P.js";function c(){return n("GET","/knowledge/config")}function f(){return n("GET","/knowledge/folders")}function g(e){return n("POST","/knowledge/folders",e)}function i(e,o){return n("PATCH",`/knowledge/folders/${encodeURIComponent(e)}`,o)}function w(e){return n("DELETE",`/knowledge/folders/${encodeURIComponent(e)}`)}function u(){return n("GET","/knowledge/bases")}function p(e){return n("POST","/knowledge/bases",e)}function E(e){return n("GET",`/knowledge/bases/${encodeURIComponent(e)}`)}function k(e,o){return n("PATCH",`/knowledge/bases/${encodeURIComponent(e)}`,o)}function m(e){return n("DELETE",`/knowledge/bases/${encodeURIComponent(e)}`)}function C(e){return n("GET",`/knowledge/bases/${encodeURIComponent(e)}/files`)}async function K(e,o){const s=new FormData;s.append("collection",o.collection),s.append("knowledgebase_id",e),o.folder&&s.append("folder",o.folder),o.files.forEach(a=>{s.append("files",a,a.name)});const d=await fetch(`${l}/knowledge/bases/${encodeURIComponent(e)}/files`,{method:"POST",body:s}),t=await d.json();if(!d.ok||!t.ok)throw new Error(t.error||`Local AI Core upload failed: ${d.status}`);return t.data}function T(e,o){return n("DELETE",`/knowledge/bases/${encodeURIComponent(e)}/files/${encodeURIComponent(o)}`)}function b(e,o){return n("POST",`/knowledge/bases/${encodeURIComponent(e)}/search`,o)}export{f as a,p as b,g as c,w as d,k as e,m as f,c as g,E as h,C as i,K as j,T as k,u as l,b as s,i as u};
1
+ import{z as n,Z as l}from"./index-jESlfFTY.js";function c(){return n("GET","/knowledge/config")}function f(){return n("GET","/knowledge/folders")}function g(e){return n("POST","/knowledge/folders",e)}function i(e,o){return n("PATCH",`/knowledge/folders/${encodeURIComponent(e)}`,o)}function w(e){return n("DELETE",`/knowledge/folders/${encodeURIComponent(e)}`)}function u(){return n("GET","/knowledge/bases")}function p(e){return n("POST","/knowledge/bases",e)}function E(e){return n("GET",`/knowledge/bases/${encodeURIComponent(e)}`)}function k(e,o){return n("PATCH",`/knowledge/bases/${encodeURIComponent(e)}`,o)}function m(e){return n("DELETE",`/knowledge/bases/${encodeURIComponent(e)}`)}function C(e){return n("GET",`/knowledge/bases/${encodeURIComponent(e)}/files`)}async function K(e,o){const s=new FormData;s.append("collection",o.collection),s.append("knowledgebase_id",e),o.folder&&s.append("folder",o.folder),o.files.forEach(a=>{s.append("files",a,a.name)});const d=await fetch(`${l}/knowledge/bases/${encodeURIComponent(e)}/files`,{method:"POST",body:s}),t=await d.json();if(!d.ok||!t.ok)throw new Error(t.error||`Local AI Core upload failed: ${d.status}`);return t.data}function T(e,o){return n("DELETE",`/knowledge/bases/${encodeURIComponent(e)}/files/${encodeURIComponent(o)}`)}function b(e,o){return n("POST",`/knowledge/bases/${encodeURIComponent(e)}/search`,o)}export{f as a,p as b,g as c,w as d,k as e,m as f,c as g,E as h,C as i,K as j,T as k,u as l,b as s,i as u};
@@ -1,4 +1,4 @@
1
- import{c as a}from"./index-DV9qeL9P.js";/**
1
+ import{c as a}from"./index-jESlfFTY.js";/**
2
2
  * @license lucide-react v0.487.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as e}from"./index-DV9qeL9P.js";/**
1
+ import{c as e}from"./index-jESlfFTY.js";/**
2
2
  * @license lucide-react v0.487.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as a}from"./index-DV9qeL9P.js";/**
1
+ import{c as a}from"./index-jESlfFTY.js";/**
2
2
  * @license lucide-react v0.487.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c}from"./index-DV9qeL9P.js";/**
1
+ import{c}from"./index-jESlfFTY.js";/**
2
2
  * @license lucide-react v0.487.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c}from"./index-DV9qeL9P.js";/**
1
+ import{c}from"./index-jESlfFTY.js";/**
2
2
  * @license lucide-react v0.487.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1 +1 @@
1
- import{z as t,D as r}from"./index-DV9qeL9P.js";function s(){return t("GET","/workspaces")}function a(e){return t("GET",`/threads${r({workspace_id:e})}`)}function d(e,n){return t("POST","/threads",{workspaceId:e,title:n})}function u(e){return t("GET",`/threads/${encodeURIComponent(e)}`)}function c(e,n){return t("PATCH",`/threads/${encodeURIComponent(e)}`,{title:n})}function i(e,n){return t("PATCH",`/threads/${encodeURIComponent(e)}/knowledge-bases`,{knowledgeBaseIds:n})}function T(e,n){return t("PATCH",`/threads/${encodeURIComponent(e)}/mode`,{mode:n})}function p(e){return t("DELETE",`/threads/${encodeURIComponent(e)}`)}function h(e,n){return t("POST",`/threads/${encodeURIComponent(e)}/messages`,{content:n})}function m(e,n){return t("POST",`/threads/${encodeURIComponent(e)}/actions`,{content:n})}function f(e){return t("POST",`/runs/${encodeURIComponent(e)}/interrupt`)}export{a,i as b,d as c,h as d,p as e,u as g,f as i,s as l,c as r,m as s,T as u};
1
+ import{z as t,D as r}from"./index-jESlfFTY.js";function s(){return t("GET","/workspaces")}function a(e){return t("GET",`/threads${r({workspace_id:e})}`)}function d(e,n){return t("POST","/threads",{workspaceId:e,title:n})}function u(e){return t("GET",`/threads/${encodeURIComponent(e)}`)}function c(e,n){return t("PATCH",`/threads/${encodeURIComponent(e)}`,{title:n})}function i(e,n){return t("PATCH",`/threads/${encodeURIComponent(e)}/knowledge-bases`,{knowledgeBaseIds:n})}function T(e,n){return t("PATCH",`/threads/${encodeURIComponent(e)}/mode`,{mode:n})}function p(e){return t("DELETE",`/threads/${encodeURIComponent(e)}`)}function h(e,n){return t("POST",`/threads/${encodeURIComponent(e)}/messages`,{content:n})}function m(e,n){return t("POST",`/threads/${encodeURIComponent(e)}/actions`,{content:n})}function f(e){return t("POST",`/runs/${encodeURIComponent(e)}/interrupt`)}export{a,i as b,d as c,h as d,p as e,u as g,f as i,s as l,c as r,m as s,T as u};
@@ -1,4 +1,4 @@
1
- import{c as e}from"./index-DV9qeL9P.js";/**
1
+ import{c as e}from"./index-jESlfFTY.js";/**
2
2
  * @license lucide-react v0.487.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -5,7 +5,7 @@
5
5
  <link rel="icon" type="image/svg+xml" href="./favicon.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>AgentDock</title>
8
- <script type="module" crossorigin src="./assets/index-DV9qeL9P.js"></script>
8
+ <script type="module" crossorigin src="./assets/index-jESlfFTY.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="./assets/index-B6WcpkJF.css">
10
10
  </head>
11
11
  <body class="bg-[#f5f5f7] dark:bg-[#151516]">
@@ -72,14 +72,28 @@ class LocalRuntimeConfigStore {
72
72
  const row = this.selectStmt.get(RUNTIME_CONFIG_ID);
73
73
  if (row) {
74
74
  const config = (0, utils_js_1.parseJson)(row.config_json, {});
75
- const migrated = (0, config_migration_js_1.migrateDesktopConnectConfig)(config);
76
- if (migrated.changed) {
77
- return this.writeRow(migrated.config, {
78
- migratedFromPath: row.migrated_from_path || undefined,
79
- warnings: migrated.warnings,
75
+ // If SQLite lost its projects (e.g. a partial save wrote {"config_version":2}),
76
+ // fall back to importing from config.toml rather than silently running empty.
77
+ const sqliteLostProjects = !Array.isArray(config.projects) || config.projects.length === 0;
78
+ if (!sqliteLostProjects) {
79
+ const migrated = (0, config_migration_js_1.migrateDesktopConnectConfig)(config);
80
+ if (migrated.changed) {
81
+ return this.writeRow(migrated.config, {
82
+ migratedFromPath: row.migrated_from_path || undefined,
83
+ warnings: migrated.warnings,
84
+ });
85
+ }
86
+ return this.toState(row, config, migrated.warnings);
87
+ }
88
+ // projects missing in SQLite — try to recover from the on-disk toml.
89
+ const legacy = this.readLegacyConfig();
90
+ if (legacy && !('error' in legacy)) {
91
+ return this.writeRow(legacy.config, {
92
+ migratedFromPath: legacy.path,
93
+ warnings: ['Recovered projects from disk after SQLite config lost them.', ...legacy.warnings],
80
94
  });
81
95
  }
82
- return this.toState(row, config, migrated.warnings);
96
+ // Fall through to the standard legacy path (which also handles the no-row case below).
83
97
  }
84
98
  const legacy = this.readLegacyConfig();
85
99
  if (legacy) {
@@ -110,6 +110,10 @@ class LocalCoreController extends node_events_1.EventEmitter {
110
110
  }
111
111
  async init() {
112
112
  await this.runtime.start();
113
+ // Bind and start channel gateways (e.g. Lark WS) now that plugins are registered.
114
+ // Without this, channels only (re)connect when runtime_config is later re-saved,
115
+ // so a fresh process boot silently leaves every channel disconnected.
116
+ await this.channelService.refreshBindings();
113
117
  await this.emitRuntime();
114
118
  setTimeout(() => {
115
119
  void this.runtimeDetection.refreshOnStartup();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kafca/agentdock",
3
- "version": "0.1.64",
3
+ "version": "0.1.65",
4
4
  "license": "PolyForm-Noncommercial-1.0.0",
5
5
  "type": "module",
6
6
  "main": "dist-electron/electron/main.js",