limixbot 0.3.114 → 0.3.116

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 (51) hide show
  1. package/dist/assets/{ActivityPanel-DiLMgzph.js → ActivityPanel-CPyIoUmY.js} +1 -1
  2. package/dist/assets/{App-Ddh_DeKL.js → App-D_fqRJhk.js} +8 -8
  3. package/dist/assets/{AppEventEditor-DxveH-cr.js → AppEventEditor-DTYGJT1f.js} +1 -1
  4. package/dist/assets/{BotSettingsDialog-DMl_BpJ5.js → BotSettingsDialog-De6r2yvR.js} +1 -1
  5. package/dist/assets/{BrowserPanel-epB3EK-g.js → BrowserPanel-abUgbX2z.js} +1 -1
  6. package/dist/assets/{BrowserProfilesManager-BCHI-qVi.js → BrowserProfilesManager-IuxTSnih.js} +1 -1
  7. package/dist/assets/{CloudAddDialog-C6MFVLlA.js → CloudAddDialog-C8OGeyq3.js} +1 -1
  8. package/dist/assets/{ComputerFilesPane--Bw2H6YF.js → ComputerFilesPane-BCaN6XSL.js} +1 -1
  9. package/dist/assets/{ComputerPanel-C4Q3wifa.js → ComputerPanel-LPwMftDF.js} +2 -2
  10. package/dist/assets/{DataPanel-D6IvdVhd.js → DataPanel-X1VUpw1U.js} +1 -1
  11. package/dist/assets/{GrokMoveDialog-0QYeBKvp.js → GrokMoveDialog-D-z86fT9.js} +1 -1
  12. package/dist/assets/{InspectorPanel-DUqPg7KZ.js → InspectorPanel-DbJq2m5L.js} +1 -1
  13. package/dist/assets/{KeyboardShortcutsModal-BaPZ9Yfj.js → KeyboardShortcutsModal-DYTFL_aJ.js} +1 -1
  14. package/dist/assets/{LimixResizeHandles-Cgoym0Xl.js → LimixResizeHandles-DLDtm0nE.js} +1 -1
  15. package/dist/assets/{LiveDesktop-BGy8nqFB.js → LiveDesktop-B8KndeA2.js} +1 -1
  16. package/dist/assets/{LocalVmWorkspace-BUhMJYrY.js → LocalVmWorkspace-B2V9D2cJ.js} +1 -1
  17. package/dist/assets/{MacLocalControl-DDgUk1AE.js → MacLocalControl-6LKkmAKt.js} +1 -1
  18. package/dist/assets/{MarkdownFilePreview-0simEJp-.js → MarkdownFilePreview-BCxhBtBJ.js} +1 -1
  19. package/dist/assets/{NewBotDialog-DHQujvPN.js → NewBotDialog-o7l4HJW-.js} +1 -1
  20. package/dist/assets/{PhoneAppDialog-Cq-1ZBsB.js → PhoneAppDialog-C4mtXK2o.js} +1 -1
  21. package/dist/assets/{PluginsPanel-D0mOM94r.js → PluginsPanel-D-4XAvSO.js} +1 -1
  22. package/dist/assets/{ProIntroduction-CutUiKNu.js → ProIntroduction-BBpRtakG.js} +1 -1
  23. package/dist/assets/{RemoteAgentSettingsPanel-DZzqIhvL.js → RemoteAgentSettingsPanel-Ce3lFnoM.js} +1 -1
  24. package/dist/assets/{RoomPanel-DVkmk2hl.js → RoomPanel-CtqyNeOi.js} +1 -1
  25. package/dist/assets/{RoutinesPage-C3w9qdbF.js → RoutinesPage-D9VQa8Id.js} +1 -1
  26. package/dist/assets/SettingsModal-D1thqDC-.js +19 -0
  27. package/dist/assets/{ShareTeamDialog-CIvnf9Ql.js → ShareTeamDialog-CDAXGizM.js} +1 -1
  28. package/dist/assets/{SignedInSites-BE6eaSJq.js → SignedInSites-B9tzCm-B.js} +1 -1
  29. package/dist/assets/{TeamLibraryPanel-BIcy8Iyf.js → TeamLibraryPanel-CU39m2wr.js} +1 -1
  30. package/dist/assets/{TeamMapPage-DnXg1zmn.js → TeamMapPage-kKb_yOAX.js} +1 -1
  31. package/dist/assets/{TriggersPage-D9sr9f5M.js → TriggersPage-DRuKK0G6.js} +1 -1
  32. package/dist/assets/{VisibilitySection-j0PdMnH3.js → VisibilitySection-B-4LSDjd.js} +1 -1
  33. package/dist/assets/{WebhookTrigger-ByvIgnn0.js → WebhookTrigger-rBYKz_RM.js} +1 -1
  34. package/dist/assets/{WorksOnGrid-D__HSyhm.js → WorksOnGrid-DCpYS0ZD.js} +1 -1
  35. package/dist/assets/{core-DnKXzdi1.js → core-PnDBcOH3.js} +1 -1
  36. package/dist/assets/{import-name-DEPg2ht3.js → import-name-BSWA4Waq.js} +1 -1
  37. package/dist/assets/{index-BIFgmFd6.js → index-CD6r_oet.js} +2 -2
  38. package/dist/assets/{index-B48L2b4D.js → index-CRS8Hcp2.js} +1 -1
  39. package/dist/assets/{mcp-servers-CIoA0Z8X.js → mcp-servers-6KR1t77y.js} +1 -1
  40. package/dist/assets/{new-bot-DB8EcyfW.js → new-bot-Dapj-7yH.js} +1 -1
  41. package/dist/assets/{org-library-C-mDWISC.js → org-library-Q_EDTsK1.js} +1 -1
  42. package/dist/assets/{package-format-CYXsEP2B.js → package-format-G8_Vezo4.js} +1 -1
  43. package/dist/assets/{remote-desktop-panel-BTKO8ICQ.js → remote-desktop-panel-CaJgKj1v.js} +1 -1
  44. package/dist/index.html +1 -1
  45. package/dist-server/index.js +38 -36
  46. package/dist-server/package.json +1 -1
  47. package/dist-server/server/bot-channels/zalo-media.js +4 -4
  48. package/dist-server/server/chief-of-staff.js +1 -1
  49. package/dist-server/server/limix-skill-hub.js +27 -3
  50. package/package.json +1 -1
  51. package/dist/assets/SettingsModal-Dokjrp1d.js +0 -19
@@ -3,13 +3,13 @@ import { imageDimensions } from "../../shared/provider-icon.js";
3
3
  import { IMAGE_MAX_BYTES, saveFile, saveImage } from "../attachments.js";
4
4
  import { fetchPublicPage } from "../wait-probes.js";
5
5
  import { fetchChannelMedia, readChannelMedia } from "./channel-media.js";
6
- const VIDEO_LIMIT = 32 * 1024 * 1024;
6
+ const ZALO_FILE_LIMIT = 32 * 1024 * 1024;
7
7
  const ZALO_CDN = ["zaloapp.com", "zalo.me", "zdn.vn", "zadn.vn", "zalo.vn"];
8
8
  export function receiveZaloFile(url, name) {
9
- return fetchChannelMedia(url, ZALO_CDN, name);
9
+ return fetchChannelMedia(url, ZALO_CDN, name, ZALO_FILE_LIMIT);
10
10
  }
11
11
  export async function receiveZaloMedia(url, photo) {
12
- const limit = photo ? IMAGE_MAX_BYTES : VIDEO_LIMIT;
12
+ const limit = photo ? IMAGE_MAX_BYTES : ZALO_FILE_LIMIT;
13
13
  const target = new URL(url);
14
14
  if (target.protocol !== "https:" || !/(^|\.)(zaloapp\.com|zalo\.me|zdn\.vn|zadn\.vn|zalo\.vn)$/.test(target.hostname))
15
15
  throw Error("Unsupported Zalo media address");
@@ -29,7 +29,7 @@ export async function receiveZaloMedia(url, photo) {
29
29
  return { kind: "file", path: file.path, name: file.name, mime: file.mime };
30
30
  }
31
31
  export async function zaloUpload(file) {
32
- const { data, filename } = await readChannelMedia(file, file.mime === "video/mp4" ? VIDEO_LIMIT : IMAGE_MAX_BYTES);
32
+ const { data, filename } = await readChannelMedia(file, file.kind === "image" ? IMAGE_MAX_BYTES : ZALO_FILE_LIMIT);
33
33
  const dimensions = file.kind === "image" ? imageDimensions(data, file.mime) : undefined;
34
34
  if (file.kind === "image" && !dimensions)
35
35
  throw Error("Unsupported image");
@@ -42,7 +42,7 @@ export function chiefOfStaffSystemPrompt(chiefId, bots, canDelegate, also) {
42
42
  department: chiefSection,
43
43
  }) : "";
44
44
  const delegation = canDelegate
45
- ? "Use list_bots or list_room_targets for the live reachable roster. Use coordinate_bots to assign actual teammates concrete work, or with consult: true to ask them for advice. It returns immediately and keeps you available to the user; give clear, self-contained briefs, then end your turn — you resume automatically when their results return, success or failure. Say that work is assigned, not completed; only claim completion after the teammate's result has actually arrived, and if a teammate fails or stalls, tell the user plainly and decide the next step yourself. Leads can coordinate their own specialists. Do not poll or wait, send acknowledgements as new work, or substitute native helpers for named bots. On return, verify the requested outcome, resolve decisions within the user's scope, request concrete corrections with rework=true when necessary, and return one consolidated answer. Consultations are advice, not proof that work or tests ran. A refusal from coordinate_bots means nothing was sent: fix what it names (usually the id — copy it from list_bots or your roster; a unique teammate name also works) and retry, and never describe a handoff the tool did not accept."
45
+ ? "Use list_bots or list_room_targets for the live reachable roster. Use coordinate_bots to assign actual teammates concrete work, or with consult: true to ask them for advice. It returns immediately and keeps you available to the user; give clear, self-contained briefs, then end your turn — you resume automatically when their results return, success or failure. Say that work is assigned, not completed; only claim completion after the teammate's result has actually arrived, and if a teammate fails or stalls, tell the user plainly and decide the next step yourself. Leads can coordinate their own specialists. For a multi-part deliverable, give each work item one accountable owner. Send independent items in parallel with separate calls. Sequence dependent work after its prerequisite result. In each brief include the relevant inputs, the output to return and a verifiable done_when. Assign overlapping edits sequentially. If independent review is needed, give a different teammate the actual artifact and acceptance criteria. Reconcile their findings and surface any unresolved blocker before handoff. Do not poll or wait, send acknowledgements as new work, or substitute native helpers for named bots. On return, verify the requested outcome, resolve decisions within the user's scope, request concrete corrections with rework=true when necessary, and return one consolidated answer. Consultations are advice, not proof that work or tests ran. A refusal from coordinate_bots means nothing was sent: fix what it names (usually the id — copy it from list_bots or your roster; a unique teammate name also works) and retry, and never describe a handoff the tool did not accept."
46
46
  : "Your current engine cannot contact teammates. Be honest about that limitation and ask the user to choose a delegation-compatible engine before promising coordinated work.";
47
47
  const isChief = !chief?.defaultBot || chief.chiefOfStaff === true;
48
48
  return [
@@ -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.114",
3
+ "version": "0.3.116",
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",