limixbot 0.3.113 → 0.3.115

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 (57) hide show
  1. package/dist/assets/{ActivityPanel-BnJAHX7C.js → ActivityPanel-BKVVoPVs.js} +1 -1
  2. package/dist/assets/{App-zXzgmsaa.js → App-Bs3xsnrc.js} +8 -8
  3. package/dist/assets/{AppEventEditor-YtdtQa8B.js → AppEventEditor-OAf9a0tt.js} +1 -1
  4. package/dist/assets/{BotSettingsDialog-CDrJr2UC.js → BotSettingsDialog-BjXot86a.js} +1 -1
  5. package/dist/assets/{BrowserPanel-vQzHyzch.js → BrowserPanel-hL-eDB2c.js} +1 -1
  6. package/dist/assets/{BrowserProfilesManager-C6Myc96h.js → BrowserProfilesManager-C6T0zWzY.js} +1 -1
  7. package/dist/assets/{CloudAddDialog-XeestVn1.js → CloudAddDialog-DRM9yXbC.js} +1 -1
  8. package/dist/assets/{ComputerFilesPane-CniehXxD.js → ComputerFilesPane-BNu7R0f8.js} +1 -1
  9. package/dist/assets/{ComputerPanel-BosphTXK.js → ComputerPanel-DxKmRVYu.js} +2 -2
  10. package/dist/assets/{DataPanel-C0i8sYn5.js → DataPanel-DfN9iz0h.js} +1 -1
  11. package/dist/assets/{GrokMoveDialog-CcL_diUw.js → GrokMoveDialog-BjiqGVnQ.js} +1 -1
  12. package/dist/assets/{InspectorPanel-SKFc5UMJ.js → InspectorPanel-DwuollBI.js} +1 -1
  13. package/dist/assets/{KeyboardShortcutsModal-D6atHj9B.js → KeyboardShortcutsModal-Cqyls2vU.js} +1 -1
  14. package/dist/assets/{LimixResizeHandles-QmZY9rFQ.js → LimixResizeHandles-Cdd3ZWsF.js} +1 -1
  15. package/dist/assets/{LiveDesktop-5snY_MM9.js → LiveDesktop-BqYFy0dM.js} +1 -1
  16. package/dist/assets/{LocalVmWorkspace-BAnNDQrC.js → LocalVmWorkspace-fc7eYhrx.js} +1 -1
  17. package/dist/assets/{MacLocalControl-BHl8fsxn.js → MacLocalControl-DZ-mA_P5.js} +1 -1
  18. package/dist/assets/{MarkdownFilePreview-BtNeWStd.js → MarkdownFilePreview-Db67LyUo.js} +1 -1
  19. package/dist/assets/{NewBotDialog-8pPEW-5m.js → NewBotDialog-1eCNcdXB.js} +1 -1
  20. package/dist/assets/{PhoneAppDialog-CTUe-zXr.js → PhoneAppDialog-FAjmm1JH.js} +1 -1
  21. package/dist/assets/{PluginsPanel-CIlfXNRw.js → PluginsPanel-Ch6zuNsG.js} +1 -1
  22. package/dist/assets/{ProIntroduction-Cb-E8I1Q.js → ProIntroduction-B2GdPHit.js} +1 -1
  23. package/dist/assets/{RemoteAgentSettingsPanel-Dqyt630U.js → RemoteAgentSettingsPanel-LNFAibT2.js} +1 -1
  24. package/dist/assets/{RoomPanel-BxI3Xkyr.js → RoomPanel-Cx3DTlAR.js} +1 -1
  25. package/dist/assets/{RoutinesPage-CDLIIYQ-.js → RoutinesPage-Cxwi6eIR.js} +1 -1
  26. package/dist/assets/SettingsModal-Dyw-u2wY.js +19 -0
  27. package/dist/assets/{ShareTeamDialog-B130aXQC.js → ShareTeamDialog-DCdKihAm.js} +1 -1
  28. package/dist/assets/{SignedInSites-B_LCEJig.js → SignedInSites-DH7N9tUA.js} +1 -1
  29. package/dist/assets/{TeamLibraryPanel-BK_Fykb7.js → TeamLibraryPanel-CbQaWAWx.js} +1 -1
  30. package/dist/assets/{TeamMapPage-rpMbvEGz.js → TeamMapPage-DoYg4ueL.js} +1 -1
  31. package/dist/assets/{TriggersPage-DoxpgRhM.js → TriggersPage-CtDhsC18.js} +1 -1
  32. package/dist/assets/{VisibilitySection-CZTibcHo.js → VisibilitySection-DmAqf_a9.js} +1 -1
  33. package/dist/assets/{WebhookTrigger-BvdJPuCW.js → WebhookTrigger-DIkM9UMJ.js} +1 -1
  34. package/dist/assets/{WorksOnGrid-JImCaGXZ.js → WorksOnGrid-BXPjyVfb.js} +1 -1
  35. package/dist/assets/{core-4QWPiLR6.js → core-CLmWJmRN.js} +1 -1
  36. package/dist/assets/{import-name-VgPoDvHv.js → import-name-CuQ-o1MN.js} +1 -1
  37. package/dist/assets/{index-CmRpmyjY.js → index-B4GUPRYB.js} +1 -1
  38. package/dist/assets/{index-GbP41v43.js → index-CLQ_hYWY.js} +2 -2
  39. package/dist/assets/{mcp-servers-Br6png3v.js → mcp-servers-CE2IPhL7.js} +1 -1
  40. package/dist/assets/{new-bot-tUNS8lwM.js → new-bot-biSOJm6z.js} +1 -1
  41. package/dist/assets/{org-library-BNbjlNZh.js → org-library-4LsB5uzZ.js} +1 -1
  42. package/dist/assets/{package-format-8WaKcsJl.js → package-format-CBEJWXeV.js} +1 -1
  43. package/dist/assets/{remote-desktop-panel-Jq84tC0b.js → remote-desktop-panel-BUZzS8Qz.js} +1 -1
  44. package/dist/index.html +1 -1
  45. package/dist-server/index.js +103 -101
  46. package/dist-server/limixbot.js +44 -43
  47. package/dist-server/package.json +1 -1
  48. package/dist-server/pair-cli.js +44 -43
  49. package/dist-server/server/bot-api-host.js +12 -2
  50. package/dist-server/server/bot-channels/zalo-media.js +4 -4
  51. package/dist-server/server/drivers/acp/core.js +5 -1
  52. package/dist-server/server/drivers/acp/tool-items.js +2 -2
  53. package/dist-server/server/drivers/antigravity-guest.js +10 -2
  54. package/dist-server/server/index.js +6 -1
  55. package/dist-server/server/limix-skill-hub.js +27 -3
  56. package/package.json +1 -1
  57. package/dist/assets/SettingsModal-BmtZ02R7.js +0 -19
@@ -90,7 +90,7 @@ import { messageAttachmentName, messageFileRoots, } from "./message-file.js";
90
90
  import { avatarImageStatus } from "./avatar-image.js";
91
91
  import { imageGenerationReady } from "./image-generation.js";
92
92
  import { xingchiTurnImages } from "./xingchi-turn-images.js";
93
- import { createImageToolRoutes } from "./routes/image-tools.js";
93
+ import { createImageToolRoutes, IMAGE_MESSAGES } from "./routes/image-tools.js";
94
94
  import { createMeetingsHost } from "./host/meetings-host.js";
95
95
  import { meetingsUnavailablePrompt } from "./meetings/prompt.js";
96
96
  import { syncCredentialEnv } from "./config.js";
@@ -9885,6 +9885,9 @@ const botApi = createBotApiHost({ store, startTurn, threadBusy,
9885
9885
  guestImage: async (botId, threadId, messageId, prompt, signal) => {
9886
9886
  if (store.bot(botId)?.toolsOff?.includes("images"))
9887
9887
  return { status: "disabled" };
9888
+ const selected = turnSelection(botId, threadId);
9889
+ if (selected && providerConfigs()[selected.instanceId]?.driver === "antigravityAgent")
9890
+ return { status: "use_model" };
9888
9891
  let attachment;
9889
9892
  const result = await imageTools.channelImage(botId, threadId, messageId, prompt, image => {
9890
9893
  if (signal?.aborted)
@@ -9895,6 +9898,8 @@ const botApi = createBotApiHost({ store, startTurn, threadBusy,
9895
9898
  }, signal);
9896
9899
  if (attachment)
9897
9900
  return { status: "ok", attachment };
9901
+ if (result.status === 409 && "error" in result.body && result.body.error === IMAGE_MESSAGES.notSetUp)
9902
+ return { status: "use_model" };
9898
9903
  return { status: result.status === 429 ? "limit" : "unavailable" };
9899
9904
  }, careFacts: (botId, message) => { const bot = store.bot(botId); return bot ? industryGuestFacts(bot, message, servers => managedPolicy.filterMcp(servers)) : Promise.resolve(undefined); }, canStart: (botId, threadId) => canAdmitDirectTurn(botId, threadId, false), channelModelChanging: (botId, threadId) => {
9900
9905
  const selection = threadId ? turnSelection(botId, threadId) : store.bot(botId)?.modelSelection;
@@ -1,3 +1,4 @@
1
+ import { SKILL_FOLDER_LIMITS } from "./skill-folder.js";
1
2
  import { fetchHubFile } from "./limix-hub-download.js";
2
3
  // Limix Skill Hub client: keeps a cached copy of the hub catalog, installs a skill only after every file matches the
3
4
  // SHA-256 the catalog pins, and never installs scripts, binaries or MCP files unless the owner allows tools for that
@@ -12,9 +13,9 @@ import { DATA_DIR } from "./config.js";
12
13
  import { installLibrarySkill, readSkillLibraryIndex, retireLibrarySkill, setLibrarySkillReviewState } from "./skill-library.js";
13
14
  import { lxs } from "./limix-lang.js";
14
15
  export const HUB_REPO = "leomieo/limix-skill-hub";
16
+ const FILE_MAX_BYTES = SKILL_FOLDER_LIMITS.fileBytes;
15
17
  const HUB_BRANCH = "main";
16
18
  const SYNC_MIN_GAP_MS = 20 * 60 * 60 * 1000;
17
- const FILE_MAX_BYTES = 1024 * 1024;
18
19
  const DEFAULT_SETTINGS = { autoSync: true, autoInstall: false, lastSync: null, lastError: null, etag: null };
19
20
  const hubDir = () => join(DATA_DIR, "skill-hub");
20
21
  const settingsFile = () => join(hubDir(), "settings.json");
@@ -42,6 +43,29 @@ const rawUrl = (path) => `https://raw.githubusercontent.com/${HUB_REPO}/${HUB_BR
42
43
  async function fetchText(url, headers = {}) {
43
44
  return fetch(url, { signal: AbortSignal.timeout(30_000), headers: { "User-Agent": "limix-bot", ...headers } });
44
45
  }
46
+ async function withCatalogDates(entries) {
47
+ const cached = new Map(hubCatalog().map((skill) => [skill.id, skill.added_at]));
48
+ const dated = entries.map((skill) => ({ ...skill, added_at: skill.added_at || cached.get(skill.id) || null }));
49
+ if (dated.every((skill) => skill.added_at))
50
+ return dated;
51
+ try {
52
+ const response = await fetchText(rawUrl("registry/versions.json"));
53
+ if (!response.ok)
54
+ return dated;
55
+ const history = await response.json();
56
+ for (const skill of dated) {
57
+ if (skill.added_at || !Array.isArray(history[skill.id]))
58
+ continue;
59
+ const dates = history[skill.id].flatMap(({ at }) => at && Number.isFinite(Date.parse(at)) ? [Date.parse(at)] : []);
60
+ if (dates.length)
61
+ skill.added_at = new Date(Math.min(...dates)).toISOString();
62
+ }
63
+ }
64
+ catch {
65
+ // Older hubs may publish a catalog without version history.
66
+ }
67
+ return dated;
68
+ }
45
69
  let syncing = null;
46
70
  /** Refreshes the cached catalog (ETag, so an unchanged hub costs one tiny request). */
47
71
  export function syncHub() {
@@ -50,7 +74,7 @@ export function syncHub() {
50
74
  syncing = (async () => {
51
75
  const settings = hubSettings();
52
76
  try {
53
- const response = await fetchText(rawUrl("registry/catalog.json"), settings.etag && existsSync(catalogFile()) ? { "If-None-Match": settings.etag } : {});
77
+ const response = await fetchText(rawUrl("registry/catalog.json"), settings.etag && existsSync(catalogFile()) && hubCatalog().every((skill) => skill.added_at) ? { "If-None-Match": settings.etag } : {});
54
78
  if (response.status === 304) {
55
79
  saveSettings({ ...settings, lastSync: new Date().toISOString(), lastError: null });
56
80
  return { changed: false, count: hubCatalog().length };
@@ -62,7 +86,7 @@ export function syncHub() {
62
86
  if (!Array.isArray(parsed.skills))
63
87
  throw new Error(lxs("Danh mục Hub không đúng định dạng", "The hub catalog has the wrong format"));
64
88
  mkdirSync(hubDir(), { recursive: true, mode: 0o700 });
65
- writeFileAtomic(catalogFile(), text, { mode: 0o600 });
89
+ writeFileAtomic(catalogFile(), JSON.stringify({ ...parsed, skills: await withCatalogDates(parsed.skills) }), { mode: 0o600 });
66
90
  saveSettings({ ...settings, etag: response.headers.get("etag"), lastSync: new Date().toISOString(), lastError: null });
67
91
  if (settings.autoInstall)
68
92
  await autoInstallEligible();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "limixbot",
3
- "version": "0.3.113",
3
+ "version": "0.3.115",
4
4
  "description": "Run the Limix Bot server anywhere and pair your devices to it (Leox ৹ Limix AI)",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",