limixbot 0.3.131 → 0.3.133
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/NOTICE +119 -0
- package/README.md +3 -5
- package/dist/assets/{ActivityPanel-DLm-v_Kg.js → ActivityPanel-BTszBP4a.js} +1 -1
- package/dist/assets/App-B2fBpoRZ.js +250 -0
- package/dist/assets/{AppEventEditor-BdU7zTya.js → AppEventEditor-CDO2rLAR.js} +1 -1
- package/dist/assets/{BotSettingsDialog-DZbrG3Yu.js → BotSettingsDialog-bwIEtMBP.js} +7 -7
- package/dist/assets/{BrowserPanel-BAmkHZNW.js → BrowserPanel-Cm4lK77e.js} +1 -1
- package/dist/assets/{BrowserProfilesManager-DL_IVvlO.js → BrowserProfilesManager-zGt-sq4k.js} +1 -1
- package/dist/assets/{CloudAddDialog-Cs6tRBOu.js → CloudAddDialog-Bhz32gRM.js} +1 -1
- package/dist/assets/{ComputerFilesPane-Bl6NnCOe.js → ComputerFilesPane-BC49N1Pm.js} +1 -1
- package/dist/assets/{ComputerPanel-CzwDPKV_.js → ComputerPanel-B5BJuUqm.js} +2 -2
- package/dist/assets/{DataPanel-FEAZNWku.js → DataPanel-D-zD8ngK.js} +1 -1
- package/dist/assets/{DesktopViewer-Cb9PL6v1.js → DesktopViewer-CgTlC2ON.js} +1 -1
- package/dist/assets/{GrokMoveDialog-Bp0mxIE8.js → GrokMoveDialog-Diktcl5X.js} +1 -1
- package/dist/assets/{InspectorPanel-DJADxXPA.js → InspectorPanel-Dzl7wwRq.js} +1 -1
- package/dist/assets/{KeyboardShortcutsModal-CNiZBEA1.js → KeyboardShortcutsModal-Bo7yVUTs.js} +1 -1
- package/dist/assets/{LimixResizeHandles-nzE7n7jC.js → LimixResizeHandles-Bdcz_w8I.js} +1 -1
- package/dist/assets/{LiveDesktop-BvdjlV9Q.js → LiveDesktop-qk7oOKR-.js} +1 -1
- package/dist/assets/{LocalVmWorkspace-DmQTSD1_.js → LocalVmWorkspace-B7YaXgti.js} +1 -1
- package/dist/assets/{MacLocalControl-WWFi-S9U.js → MacLocalControl-YCjPm4U3.js} +1 -1
- package/dist/assets/{MarkdownFilePreview-BsGqiWI2.js → MarkdownFilePreview-uvNI77v4.js} +1 -1
- package/dist/assets/{MenuMotion-owWIcamS.js → MenuMotion-D8l5zOOH.js} +1 -1
- package/dist/assets/{NewBotDialog-sr2kfVv6.js → NewBotDialog-veYkUiA5.js} +1 -1
- package/dist/assets/{PhoneAppDialog-DC4JUrmh.js → PhoneAppDialog-CkE9M2PT.js} +1 -1
- package/dist/assets/{PlacesRail-BxdV2GDQ.js → PlacesRail-B0T5a390.js} +1 -1
- package/dist/assets/{PluginsPanel-BMHhkTNZ.js → PluginsPanel-BSv-aWR7.js} +1 -1
- package/dist/assets/{ProIntroduction-CLLJ3Vgd.js → ProIntroduction-BJMwoQGa.js} +1 -1
- package/dist/assets/{RemoteAgentSettingsPanel-DWTstMZc.js → RemoteAgentSettingsPanel-Dkaxe7IA.js} +1 -1
- package/dist/assets/{RoomPanel-DuE_Gpr5.js → RoomPanel-BIXVLWNZ.js} +1 -1
- package/dist/assets/{RoutinesPage-CPo3eSc1.js → RoutinesPage-B-QJRpZi.js} +2 -2
- package/dist/assets/SettingsModal-BtRFqxwn.js +20 -0
- package/dist/assets/{ShareTeamDialog-CDkcowQz.js → ShareTeamDialog-D3Ea5oSB.js} +1 -1
- package/dist/assets/{SignedInSites-DLDJv-6U.js → SignedInSites-CPLPNDp5.js} +1 -1
- package/dist/assets/{TeamLibraryPanel-X0NQqbX0.js → TeamLibraryPanel-D_pKnj54.js} +1 -1
- package/dist/assets/{TeamMapPage-C6K12Ejq.js → TeamMapPage-CBV2HmaF.js} +1 -1
- package/dist/assets/{TriggersPage-BAXbOt6i.js → TriggersPage-C9FIxQGD.js} +1 -1
- package/dist/assets/{VisibilitySection-CC7rEV8o.js → VisibilitySection-B0z1XJD4.js} +1 -1
- package/dist/assets/{WebhookTrigger-cHV0kIQv.js → WebhookTrigger-C7qvE8eC.js} +1 -1
- package/dist/assets/{WorksOnGrid-DZ5DXYgb.js → WorksOnGrid-BOLs3g9Y.js} +1 -1
- package/dist/assets/{abnfDiagram-YUKMZFIV-vvJbRPlq.js → abnfDiagram-YUKMZFIV-CBc7oFEe.js} +1 -1
- package/dist/assets/{activity-D26W1wR5.js → activity-BVpu0XkG.js} +1 -1
- package/dist/assets/{architectureDiagram-47P4ROYG-BxqUvVUX.js → architectureDiagram-47P4ROYG-B5jJZs7S.js} +1 -1
- package/dist/assets/{blockDiagram-E7TT5TSB-DDe2YxQP.js → blockDiagram-E7TT5TSB-DAjxXILv.js} +1 -1
- package/dist/assets/{c4Diagram-CRA5TL53-OdUvGZP-.js → c4Diagram-CRA5TL53-KWoy72TL.js} +1 -1
- package/dist/assets/{calendar-days-OEtSVrLe.js → calendar-days-DNA-E4Np.js} +1 -1
- package/dist/assets/channel-q-lG3psP.js +1 -0
- package/dist/assets/{chunk-2Q5K7J3B-DpnJlpzb.js → chunk-2Q5K7J3B-D3Ycc8P6.js} +1 -1
- package/dist/assets/{chunk-5VM5RSS4-C5UgOu8-.js → chunk-5VM5RSS4-C7mfSQVV.js} +1 -1
- package/dist/assets/{chunk-7TKQ45FW-Dv-gctKP.js → chunk-7TKQ45FW-BKvAYNH2.js} +1 -1
- package/dist/assets/{chunk-AW2ZBBNX-mehzuNgt.js → chunk-AW2ZBBNX-Ca8gRTzc.js} +1 -1
- package/dist/assets/{chunk-FVRAUYC3-6bArILty.js → chunk-FVRAUYC3-Bzkks_DT.js} +2 -2
- package/dist/assets/{chunk-HTAEGDNF-0w6XIlls.js → chunk-HTAEGDNF-Zo7ZYlx6.js} +1 -1
- package/dist/assets/{chunk-JWPE2WC7-DaZro178.js → chunk-JWPE2WC7-DuQPO5Rt.js} +1 -1
- package/dist/assets/{chunk-KQW6MTUR-CqA51RiN.js → chunk-KQW6MTUR-C3yGOwbc.js} +1 -1
- package/dist/assets/{chunk-XXDRQBXY-DPZH_wOz.js → chunk-XXDRQBXY-Dza0vL4n.js} +1 -1
- package/dist/assets/{classDiagram-v2-K4WV4PDN-Dgn2w_U2.js → classDiagram-v2-K4WV4PDN-DTtDRSzj.js} +1 -1
- package/dist/assets/{coins-D0EwvaZf.js → coins-Bn14rFjr.js} +1 -1
- package/dist/assets/{core-Lc3koHof.js → core-CGuF_Hr1.js} +1 -1
- package/dist/assets/{cose-bilkent-JH36ORCC-B9lVmBnW.js → cose-bilkent-JH36ORCC-wZ_7CqXu.js} +1 -1
- package/dist/assets/{cynefin-EF2NZ3EQ-BoirpSv2.js → cynefin-EF2NZ3EQ-CE0jDEB2.js} +1 -1
- package/dist/assets/{cynefinDiagram-3GCD6N5R-Cdmdj7_K.js → cynefinDiagram-3GCD6N5R-CHr9A4jc.js} +1 -1
- package/dist/assets/{dagre-W4DXFKR2-BFjlE582.js → dagre-W4DXFKR2-C3IEvn1u.js} +1 -1
- package/dist/assets/{diagram-2UJZ2QOL-OsLSZez_.js → diagram-2UJZ2QOL-D6GEShaY.js} +1 -1
- package/dist/assets/{diagram-OVF4WLC6-CwDUdKBh.js → diagram-OVF4WLC6-vc-kIw0c.js} +1 -1
- package/dist/assets/{diagram-PFPMY2P6-BLtFTcT4.js → diagram-PFPMY2P6-Dz6L5P0U.js} +1 -1
- package/dist/assets/{diagram-UMYRVEAY-BSLF9HqA.js → diagram-UMYRVEAY-BKH-KrgS.js} +1 -1
- package/dist/assets/{diagram-YEKJPTXX-9rCjHXiY.js → diagram-YEKJPTXX-BugCeBVB.js} +1 -1
- package/dist/assets/{diagram-ZIFT7M5P-C4BY_KLT.js → diagram-ZIFT7M5P-BYARFkzf.js} +1 -1
- package/dist/assets/{ebnfDiagram-VR2GEFS7-AhQ5NsrM.js → ebnfDiagram-VR2GEFS7-CKzxPCV8.js} +1 -1
- package/dist/assets/{elk-IJKZMXRS-UnH28E2R.js → elk-IJKZMXRS--PWP5h9X.js} +1 -1
- package/dist/assets/{erDiagram-O2IAPWRE-CO0nepRl.js → erDiagram-O2IAPWRE-OYgx1l4s.js} +1 -1
- package/dist/assets/{file-up-D-jXnd_Y.js → file-up-DmgXwNtQ.js} +1 -1
- package/dist/assets/{flowDiagram-OXPTDLAJ-DdStYfx7.js → flowDiagram-OXPTDLAJ-Cx9uOAhj.js} +1 -1
- package/dist/assets/{ganttDiagram-R7TSEDQI-DH8CA0Mt.js → ganttDiagram-R7TSEDQI-DF4G2mlV.js} +1 -1
- package/dist/assets/{gitGraphDiagram-XJZIOB7I-Ds4256L4.js → gitGraphDiagram-XJZIOB7I-D9CUZ9nv.js} +1 -1
- package/dist/assets/{import-name-CHPmMQSU.js → import-name-DUNKRTJV.js} +1 -1
- package/dist/assets/{index-CFBg45ji.js → index-CV61vbZS.js} +1 -1
- package/dist/assets/{index-CGhQDBT_.js → index-VDBTcIMw.js} +3 -3
- package/dist/assets/{infoDiagram-5W2HQ5XZ-mNLO1zPg.js → infoDiagram-5W2HQ5XZ-CZW1K3wV.js} +1 -1
- package/dist/assets/{ishikawaDiagram-K3B6WC7H-Daak_Ht_.js → ishikawaDiagram-K3B6WC7H-CnK_NQTK.js} +1 -1
- package/dist/assets/{journeyDiagram-COXZFDF6-U58GAPno.js → journeyDiagram-COXZFDF6-DSuoKe19.js} +1 -1
- package/dist/assets/{kanban-definition-P3RFRI5V-CcRE6J9f.js → kanban-definition-P3RFRI5V-DjmRhFSg.js} +1 -1
- package/dist/assets/{mermaid.core-QHRYQaNt.js → mermaid.core-DeRUYgIm.js} +4 -4
- package/dist/assets/{mindmap-definition-LZFPQGKD-CEyDomxS.js → mindmap-definition-LZFPQGKD-BJ3VBjfI.js} +1 -1
- package/dist/assets/{minimize-oQ71ZbVB.js → minimize-BXc-miDU.js} +1 -1
- package/dist/assets/{monitor-BmIglcrr.js → monitor-15mG3xlc.js} +1 -1
- package/dist/assets/{new-bot-tCPJjkMQ.js → new-bot-__CMk5sR.js} +1 -1
- package/dist/assets/{org-library-Dr5sX_Fu.js → org-library-DT_poCG3.js} +1 -1
- package/dist/assets/{package-format-heZrOI7V.js → package-format-CgaIxeTU.js} +1 -1
- package/dist/assets/{pegDiagram-BGZESJAR-CTxI-cP8.js → pegDiagram-BGZESJAR-BZ-1foJI.js} +1 -1
- package/dist/assets/{pieDiagram-CAPJLFHJ-B8DCNi6O.js → pieDiagram-CAPJLFHJ-v_kbKYIo.js} +1 -1
- package/dist/assets/{quadrantDiagram-GDMTTRAM-CWdpAW4W.js → quadrantDiagram-GDMTTRAM-fpE5oT7k.js} +1 -1
- package/dist/assets/{rail-WaxapGbo.js → rail-fintvt10.js} +1 -1
- package/dist/assets/{railroadDiagram-SM67HX2B-BCY8OR1i.js → railroadDiagram-SM67HX2B-C8JH_pmt.js} +1 -1
- package/dist/assets/{remote-desktop-panel-CRSqL4w9.js → remote-desktop-panel-DAU_1yzY.js} +1 -1
- package/dist/assets/{requirementDiagram-X7JNWC4A-BcX43ufU.js → requirementDiagram-X7JNWC4A-DIZkii0D.js} +1 -1
- package/dist/assets/{sankeyDiagram-UM26HJRW-C3YBTWo7.js → sankeyDiagram-UM26HJRW-D28LUPgJ.js} +1 -1
- package/dist/assets/{sequenceDiagram-ZO4K6R2Y-CNLzalKN.js → sequenceDiagram-ZO4K6R2Y-By6Qr2OZ.js} +1 -1
- package/dist/assets/{sizeCapture-INFHLROL-D55E_ZEd.js → sizeCapture-INFHLROL-B8ky8h-O.js} +1 -1
- package/dist/assets/{stateDiagram-v2-TBUQTH76-CRDCsicX.js → stateDiagram-v2-TBUQTH76-CtuCVgt_.js} +1 -1
- package/dist/assets/styles-DKlhnsr7.css +1 -0
- package/dist/assets/{swimlanes-N4OXWK64-Ah7OauuN.js → swimlanes-N4OXWK64-DxwcpFlC.js} +1 -1
- package/dist/assets/swimlanesDiagram-K3J5GTZL-B7Xl2xDR.js +8 -0
- package/dist/assets/{team-share-D3Hwdncm.js → team-share-Dl1JG3TI.js} +1 -1
- package/dist/assets/{timeline-definition-YOQAKGHF-DV-V6CCB.js → timeline-definition-YOQAKGHF-C76P0vUA.js} +1 -1
- package/dist/assets/{usecaseDiagram-VIAY4XPW-T9J5Wpir.js → usecaseDiagram-VIAY4XPW-CYHUVqRH.js} +1 -1
- package/dist/assets/{vennDiagram-BLWOH2XV-RqJjHEmQ.js → vennDiagram-BLWOH2XV-Da7BHd4-.js} +1 -1
- package/dist/assets/{wardleyDiagram-YMQ3BMBF-xZxQC8Rt.js → wardleyDiagram-YMQ3BMBF-Ckv9W8Fc.js} +1 -1
- package/dist/assets/{xychartDiagram-TAQBALBS-BgPG2lil.js → xychartDiagram-TAQBALBS-Dw876alP.js} +1 -1
- package/dist/index.html +3 -3
- package/dist/rail.html +5 -5
- package/dist-server/hybrid-plugin-gateway.js +11 -9
- package/dist-server/index.js +98 -88
- package/dist-server/package.json +1 -1
- package/dist-server/server/hybrid-plugin-manifest.js +2 -1
- package/dist-server/server/limix-skill-hub.js +3 -3
- package/dist-server/server/limix-skill-requirements.js +29 -11
- package/dist-server/server/routes/plugin-studio.js +11 -2
- package/dist-server/shared/plugin-hub.js +52 -0
- package/package.json +5 -1
- package/skills/limix-bot-factory/SKILL.md +2 -0
- package/skills/limix-bot-factory/references/vi.md +2 -0
- package/dist/assets/App-Co1EFoza.js +0 -250
- package/dist/assets/SettingsModal-BZzK-mss.js +0 -19
- package/dist/assets/channel-D_nJ6dC4.js +0 -1
- package/dist/assets/styles-Cr4TcnLq.css +0 -1
- package/dist/assets/swimlanesDiagram-K3J5GTZL-G_1ilp2C.js +0 -8
- /package/dist/assets/{styles-D7SaLPZf.js → styles-Bixj4Mfc.js} +0 -0
package/dist-server/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"0.3.
|
|
1
|
+
{"type":"module","version":"0.3.133"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { pluginContentKinds } from "../shared/plugin-hub.js";
|
|
3
|
+
import { pluginContentKinds, pluginIconKinds } from "../shared/plugin-hub.js";
|
|
4
4
|
import { isSkillName, parseSkillMd, scanSkillText, SKILL_FILE_MAX_BYTES } from "../shared/skill-md.js";
|
|
5
5
|
import { holdsCredential } from "../shared/redact.js";
|
|
6
6
|
export const pluginId = z.string().max(80).regex(/^[a-z0-9]+(?:[.-][a-z0-9]+)*$/);
|
|
@@ -14,6 +14,7 @@ const text = z.object({
|
|
|
14
14
|
const texts = z.array(text).max(32).refine(items => unique(items.map(item => item.name))).default([]);
|
|
15
15
|
const source = z.object({ server: serverName, uri: z.string().min(1).max(2048), revision: z.string().min(1).max(512) }).strict();
|
|
16
16
|
export const manifestSchema = z.object({
|
|
17
|
+
icon: z.enum(pluginIconKinds).optional(),
|
|
17
18
|
schemaVersion: z.literal("1.0.0"), id: pluginId, version: pluginVersion, name: labels(96), description: labels(1024),
|
|
18
19
|
license: z.string().trim().min(1).max(512), type: z.enum(["local", "remote-mcp", "hybrid"]),
|
|
19
20
|
components: z.object({
|
|
@@ -10,7 +10,7 @@ import { join } from "node:path";
|
|
|
10
10
|
import { isSkillName } from "../shared/skill-md.js";
|
|
11
11
|
import { writeFileAtomic } from "./atomic.js";
|
|
12
12
|
import { DATA_DIR } from "./config.js";
|
|
13
|
-
import { installLibrarySkill, readSkillLibraryIndex, retireLibrarySkill, setLibrarySkillReviewState } from "./skill-library.js";
|
|
13
|
+
import { librarySkillDirectory, skillsLibraryRoot, installLibrarySkill, readSkillLibraryIndex, retireLibrarySkill, setLibrarySkillReviewState } from "./skill-library.js";
|
|
14
14
|
import { lxs } from "./limix-lang.js";
|
|
15
15
|
export const HUB_REPO = "leomieo/limix-skill-hub";
|
|
16
16
|
const FILE_MAX_BYTES = SKILL_FOLDER_LIMITS.fileBytes;
|
|
@@ -200,12 +200,12 @@ export async function installHubSkill(id, options = {}) {
|
|
|
200
200
|
...(entry.tags.length ? { tags: entry.tags } : {}),
|
|
201
201
|
warnings: entry.notes,
|
|
202
202
|
skippedFiles: skipped,
|
|
203
|
-
reviewState: blocked ? "disabled" : "approved",
|
|
203
|
+
reviewState: blocked || installed?.reviewState === "disabled" ? "disabled" : "approved",
|
|
204
204
|
...(files.length ? { files } : {}),
|
|
205
205
|
});
|
|
206
206
|
if ("error" in result)
|
|
207
207
|
return { error: result.error };
|
|
208
|
-
return { ok: true, skipped };
|
|
208
|
+
return { ok: true, skipped, ...(options.allowTools ? { bundle: { directory: librarySkillDirectory(skillsLibraryRoot(), id), mcp: files.filter(file => MCP_FILE.test(file.path)).map(file => new TextDecoder().decode(file.content)) } } : {}) };
|
|
209
209
|
}
|
|
210
210
|
export function setHubSkillEnabled(id, enabled) {
|
|
211
211
|
if (!installedFromHub().has(id))
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { readdirSync, readFileSync, statSync, realpathSync } from "node:fs";
|
|
2
|
+
import { createHash } from "node:crypto";
|
|
2
3
|
import { homedir } from "node:os";
|
|
3
|
-
import { dirname, join, resolve, relative, isAbsolute, delimiter } from "node:path";
|
|
4
|
+
import { basename, dirname, join, resolve, relative, isAbsolute, delimiter } from "node:path";
|
|
4
5
|
import { execFile } from "node:child_process";
|
|
5
6
|
import { promisify } from "node:util";
|
|
6
7
|
import { parseDocument } from "yaml";
|
|
@@ -119,7 +120,7 @@ export function findSkillBinary(name, dirs, platform = process.platform) {
|
|
|
119
120
|
if (!BIN.test(name))
|
|
120
121
|
return null;
|
|
121
122
|
for (const dir of dirs)
|
|
122
|
-
for (const ext of platform === "win32" ? ["
|
|
123
|
+
for (const ext of platform === "win32" ? [".exe", ".cmd", ".bat", ".com", ""] : [""]) {
|
|
123
124
|
const file = join(dir, name + ext);
|
|
124
125
|
try {
|
|
125
126
|
if (statSync(file).isFile())
|
|
@@ -210,14 +211,19 @@ export async function scanSkillRequirements(bots, mcpServers = {}, projects = []
|
|
|
210
211
|
if (process.platform === "win32") {
|
|
211
212
|
try {
|
|
212
213
|
const { stdout } = await run("powershell.exe", ["-NoProfile", "-NonInteractive", "-Command", "[Environment]::GetEnvironmentVariable('Path','Machine')+';'+[Environment]::GetEnvironmentVariable('Path','User')"], { windowsHide: true, timeout: 8000 });
|
|
214
|
+
if (process.env.APPDATA)
|
|
215
|
+
dirs.push(join(process.env.APPDATA, "npm"));
|
|
213
216
|
dirs.push(...stdout.trim().split(";").map((p) => p.replace(/%([^%]+)%/g, (_m, key) => process.env[key] ?? "")));
|
|
214
217
|
}
|
|
215
218
|
catch {
|
|
216
219
|
warnings.push("Could not refresh Windows PATH");
|
|
217
220
|
}
|
|
218
221
|
}
|
|
222
|
+
const python = process.env.LIMIX_PYTHON ?? findSkillBinary("python", dirs) ?? findSkillBinary("python3", dirs);
|
|
219
223
|
const requirements = [];
|
|
220
224
|
for (const source of sources.values()) {
|
|
225
|
+
const bundleKey = createHash("sha256").update(source.directory).digest("hex");
|
|
226
|
+
const matchingProjects = projects.filter(project => basename(dirname(project)) !== "skill-bundles" || basename(project) === bundleKey);
|
|
221
227
|
const documents = [];
|
|
222
228
|
const readDocuments = (dir, depth = 0) => {
|
|
223
229
|
if (depth > 4) {
|
|
@@ -242,7 +248,7 @@ export async function scanSkillRequirements(bots, mcpServers = {}, projects = []
|
|
|
242
248
|
warnings.push(`Document too large: ${source.name}/${entry.name}`);
|
|
243
249
|
continue;
|
|
244
250
|
}
|
|
245
|
-
documents.push({ file: entry.name, text: readFileSync(file, "utf8") });
|
|
251
|
+
documents.push({ file: entry.name, path: file, text: readFileSync(file, "utf8") });
|
|
246
252
|
}
|
|
247
253
|
}
|
|
248
254
|
catch {
|
|
@@ -258,7 +264,7 @@ export async function scanSkillRequirements(bots, mcpServers = {}, projects = []
|
|
|
258
264
|
if (doc.file === "package.json") {
|
|
259
265
|
try {
|
|
260
266
|
const pkg = JSON.parse(doc.text);
|
|
261
|
-
for (const [name, version] of Object.entries({ ...pkg.dependencies, ...pkg.devDependencies, ...pkg.peerDependencies }))
|
|
267
|
+
for (const [name, version] of Object.entries({ ...pkg.dependencies, ...pkg.devDependencies, ...pkg.peerDependencies, ...pkg.optionalDependencies }))
|
|
262
268
|
found.push({ kind: "npm", name, required: String(version), evidence: "package.json" });
|
|
263
269
|
}
|
|
264
270
|
catch {
|
|
@@ -271,9 +277,22 @@ export async function scanSkillRequirements(bots, mcpServers = {}, projects = []
|
|
|
271
277
|
found.push(match ? { kind: "python", name: match[1], required: match[2] || undefined, evidence: "requirements.txt" } : { kind: "review", name: line, evidence: "requirements.txt" });
|
|
272
278
|
}
|
|
273
279
|
if (doc.file === "pyproject.toml") {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
280
|
+
try {
|
|
281
|
+
if (!python)
|
|
282
|
+
throw new Error("Python unavailable");
|
|
283
|
+
const code = "import json,sys,tomllib\nwith open(sys.argv[1],'rb') as f: data=tomllib.load(f)\np=data.get('project',{})\nprint(json.dumps([*p.get('dependencies',[]),*(s for group in p.get('optional-dependencies',{}).values() for s in group),*data.get('build-system',{}).get('requires',[])]))";
|
|
284
|
+
const { stdout } = await run(python, ["-I", "-c", code, doc.path], { timeout: 5000, windowsHide: true });
|
|
285
|
+
const specs = JSON.parse(stdout);
|
|
286
|
+
for (const spec of specs) {
|
|
287
|
+
const match = /^([\w.-]+)\s*((?:[<>=~!].*)?)$/.exec(spec);
|
|
288
|
+
found.push(match ? { kind: "python", name: match[1], required: match[2] || undefined, evidence: "pyproject.toml" } : { kind: "review", name: spec, evidence: "pyproject.toml" });
|
|
289
|
+
}
|
|
290
|
+
if (!specs.length)
|
|
291
|
+
found.push({ kind: "review", name: "pyproject.toml", evidence: "Check project-specific dependency configuration" });
|
|
292
|
+
}
|
|
293
|
+
catch {
|
|
294
|
+
found.push({ kind: "review", name: "pyproject.toml", evidence: "Python project dependencies need review" });
|
|
295
|
+
}
|
|
277
296
|
}
|
|
278
297
|
}
|
|
279
298
|
if (!found.length)
|
|
@@ -284,13 +303,13 @@ export async function scanSkillRequirements(bots, mcpServers = {}, projects = []
|
|
|
284
303
|
for (const req of unique.values()) {
|
|
285
304
|
const result = { ...req, skill: source.name, directory: source.directory, status: "review" };
|
|
286
305
|
if (req.kind === "bin") {
|
|
287
|
-
const where = findSkillBinary(req.name, dirs);
|
|
306
|
+
const where = findSkillBinary(req.name, [...dirs, ...source.projects.map(project => join(project, "node_modules", ".bin"))]);
|
|
288
307
|
result.status = where ? req.required ? "review" : "found" : "missing";
|
|
289
308
|
if (where)
|
|
290
309
|
result.where = where;
|
|
291
310
|
}
|
|
292
311
|
else if (req.kind === "npm") {
|
|
293
|
-
const pkg = findSkillNpmPackage(req.name, [source.directory, ...source.projects, ...
|
|
312
|
+
const pkg = findSkillNpmPackage(req.name, [source.directory, ...source.projects, ...matchingProjects, ...bots.filter((b) => !b.computer || b.computer === "local").map((b) => b.cwd ?? workspaceDir(b.id)), join(process.env.APPDATA ?? home, "npm")]);
|
|
294
313
|
result.status = pkg ? req.required && req.required !== "*" ? "review" : "found" : "missing";
|
|
295
314
|
if (pkg)
|
|
296
315
|
Object.assign(result, pkg);
|
|
@@ -300,7 +319,7 @@ export async function scanSkillRequirements(bots, mcpServers = {}, projects = []
|
|
|
300
319
|
else if (req.kind === "env")
|
|
301
320
|
result.status = process.env[req.name] ? "found" : "missing";
|
|
302
321
|
else if (req.kind === "python") {
|
|
303
|
-
const pkg = findSkillPythonPackage(req.name, [source.directory, ...source.projects, ...
|
|
322
|
+
const pkg = findSkillPythonPackage(req.name, [source.directory, ...source.projects, ...matchingProjects, ...bots.filter((b) => !b.computer || b.computer === "local").map((b) => b.cwd ?? workspaceDir(b.id))]);
|
|
304
323
|
if (pkg) {
|
|
305
324
|
Object.assign(result, pkg);
|
|
306
325
|
result.status = req.required ? "review" : "found";
|
|
@@ -311,7 +330,6 @@ export async function scanSkillRequirements(bots, mcpServers = {}, projects = []
|
|
|
311
330
|
requirements.push(result);
|
|
312
331
|
}
|
|
313
332
|
}
|
|
314
|
-
const python = process.env.LIMIX_PYTHON ?? findSkillBinary("python", dirs) ?? findSkillBinary("python3", dirs);
|
|
315
333
|
const pythonRows = requirements.filter((r) => r.kind === "python" && !r.version && PACKAGE.test(r.name));
|
|
316
334
|
if (python && pythonRows.length) {
|
|
317
335
|
try {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { inferPluginIcon, inferPluginServiceIcon } from "../../shared/plugin-hub.js";
|
|
2
3
|
import { manifestSchema } from "../hybrid-plugin-manifest.js";
|
|
3
4
|
import { ownerOrAdmin } from "../request-auth.js";
|
|
4
5
|
import { PASS } from "./table.js";
|
|
@@ -27,6 +28,7 @@ export function createPluginStudio(generate) {
|
|
|
27
28
|
"Draft a Limix Bot plugin manifest. Return one JSON object. Produce text components only. Never include shell code, credentials or new permissions.",
|
|
28
29
|
'Schema: {schemaVersion:"1.0.0",id:"kebab-case",version:"1.0.0",type:"local"|"hybrid",license:"UNLICENSED",name:{en,vi},description:{en,vi},localization:{core:"en",interface:"vi"},components:{skills:[{name,description,content}],resources:[],frameworks:[],guardrails:[],mcpServers:[],tools:[]}}.',
|
|
29
30
|
"Each skill content is an English SKILL.md beginning with YAML frontmatter with its exact name and English description, then workflow instructions. Include its Vietnamese display name and description in the package labels. Only reference servers selected below. Do not invent tool identifiers.",
|
|
31
|
+
"Leave the icon field unset. Limix Bot assigns it locally.",
|
|
30
32
|
JSON.stringify({ description, allowedServers: servers }),
|
|
31
33
|
].join("\n");
|
|
32
34
|
const raw = await generate(botId, prompt, abort.signal);
|
|
@@ -35,10 +37,17 @@ export function createPluginStudio(generate) {
|
|
|
35
37
|
const candidate = raw.trim().replace(/^\x60\x60\x60(?:json)?\s*\n/i, "").replace(/\n\x60\x60\x60$/, "");
|
|
36
38
|
if (Buffer.byteLength(candidate) > 512 * 1024)
|
|
37
39
|
throw Error();
|
|
38
|
-
const
|
|
40
|
+
const draft = JSON.parse(candidate);
|
|
41
|
+
if (!draft || typeof draft !== "object" || Array.isArray(draft))
|
|
42
|
+
throw Error();
|
|
43
|
+
const { icon: _generatedIcon, ...fields } = draft;
|
|
44
|
+
const manifest = manifestSchema.parse(fields);
|
|
39
45
|
if (manifest.source || manifest.components.mcpServers.some(s => !servers.includes(s)))
|
|
40
46
|
throw Error();
|
|
41
|
-
|
|
47
|
+
const icon = inferPluginServiceIcon(manifest.name.vi, manifest.name.en, manifest.id)
|
|
48
|
+
?? inferPluginServiceIcon(description, ...manifest.components.mcpServers)
|
|
49
|
+
?? inferPluginIcon(description, manifest.name.vi, manifest.name.en, manifest.id);
|
|
50
|
+
return json(res, 200, { manifest: { ...manifest, icon } });
|
|
42
51
|
}
|
|
43
52
|
catch {
|
|
44
53
|
return json(res, 422, { error: "The engine could not produce a valid draft" });
|
|
@@ -1,4 +1,56 @@
|
|
|
1
1
|
export const pluginContentKinds = ["skills", "resources", "frameworks", "guardrails"];
|
|
2
|
+
export const pluginServiceIcons = {
|
|
3
|
+
youtube: { label: "YouTube", domain: "youtube.com" },
|
|
4
|
+
github: { label: "GitHub", domain: "github.com" },
|
|
5
|
+
notion: { label: "Notion", domain: "notion.so" },
|
|
6
|
+
slack: { label: "Slack", domain: "slack.com" },
|
|
7
|
+
supabase: { label: "Supabase", domain: "supabase.com" },
|
|
8
|
+
googlecalendar: { label: "Google Calendar", domain: "calendar.google.com" },
|
|
9
|
+
googlesheets: { label: "Google Sheets", domain: "sheets.google.com" },
|
|
10
|
+
googledocs: { label: "Google Docs", domain: "docs.google.com" },
|
|
11
|
+
googledrive: { label: "Google Drive", domain: "drive.google.com" },
|
|
12
|
+
linear: { label: "Linear", domain: "linear.app" },
|
|
13
|
+
outlook: { label: "Outlook", domain: "outlook.com" },
|
|
14
|
+
hubspot: { label: "HubSpot", domain: "hubspot.com" },
|
|
15
|
+
airtable: { label: "Airtable", domain: "airtable.com" },
|
|
16
|
+
perplexity: { label: "Perplexity AI", domain: "perplexity.ai" },
|
|
17
|
+
composio: { label: "Composio", domain: "composio.dev" },
|
|
18
|
+
};
|
|
19
|
+
const serviceIcons = Object.keys(pluginServiceIcons);
|
|
20
|
+
export const pluginIconKinds = [...serviceIcons, "video", "research", "support", "commerce", "data", "automation", "plugin"];
|
|
21
|
+
export function isPluginServiceIcon(icon) {
|
|
22
|
+
return Object.hasOwn(pluginServiceIcons, icon);
|
|
23
|
+
}
|
|
24
|
+
export function inferPluginServiceIcon(...labels) {
|
|
25
|
+
const services = new Set();
|
|
26
|
+
for (const label of labels) {
|
|
27
|
+
const words = " " + label.toLowerCase().replace(/[^\p{L}\p{N}]+/gu, " ").trim() + " ";
|
|
28
|
+
for (const service of serviceIcons) {
|
|
29
|
+
const name = pluginServiceIcons[service].label.toLowerCase();
|
|
30
|
+
if (words.includes(" " + service + " ") || words.includes(" " + name + " "))
|
|
31
|
+
services.add(service);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
if (services.size === 1)
|
|
35
|
+
return services.values().next().value;
|
|
36
|
+
}
|
|
37
|
+
const pluginIconRules = [
|
|
38
|
+
["video", /\b(?:youtube|video|film|cinema|livestream|phim)\b|dựng phim|dựng clip/u],
|
|
39
|
+
["support", /\b(?:support|helpdesk)\b|hỗ trợ|chăm sóc/u],
|
|
40
|
+
["commerce", /\b(?:commerce|shop|store|sales|orders?)\b|bán hàng|đơn hàng|thương mại/u],
|
|
41
|
+
["data", /\b(?:analytics|database|dashboard|reporting|data)\b|dữ liệu|thống kê|báo cáo/u],
|
|
42
|
+
["research", /\b(?:research|search|lookup)\b|nghiên cứu|tìm kiếm|tra cứu/u],
|
|
43
|
+
["automation", /\b(?:automation|workflow|pipeline|scheduler)\b|tự động|quy trình|lập lịch/u],
|
|
44
|
+
];
|
|
45
|
+
export function inferPluginIcon(...labels) {
|
|
46
|
+
for (const label of labels) {
|
|
47
|
+
const words = label.normalize("NFC").toLowerCase();
|
|
48
|
+
const match = pluginIconRules.find(([, pattern]) => pattern.test(words));
|
|
49
|
+
if (match)
|
|
50
|
+
return match[0];
|
|
51
|
+
}
|
|
52
|
+
return "plugin";
|
|
53
|
+
}
|
|
2
54
|
export const pluginEvents = ["import", "approve", "reject", "install", "remove", "assign", "assign-pins", "invalidate", "attach-evaluation", "set-host-execution"];
|
|
3
55
|
export function pluginEnabled(plugin, bot, siblings = []) {
|
|
4
56
|
if (Object.hasOwn(plugin.bots, bot.id))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "limixbot",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.133",
|
|
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",
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"dist",
|
|
19
19
|
"skills",
|
|
20
20
|
"LICENSE",
|
|
21
|
+
"NOTICE",
|
|
21
22
|
"README.md"
|
|
22
23
|
],
|
|
23
24
|
"engines": {
|
|
@@ -28,6 +29,9 @@
|
|
|
28
29
|
"url": "https://github.com/leomieo/limix-bot.git"
|
|
29
30
|
},
|
|
30
31
|
"homepage": "https://github.com/leomieo/limix-bot#readme",
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/leomieo/limix-bot/issues"
|
|
34
|
+
},
|
|
31
35
|
"keywords": [
|
|
32
36
|
"limixbot",
|
|
33
37
|
"agents",
|
|
@@ -7,6 +7,8 @@ description: Build reusable AI Bot templates and safe draft BotSpec configuratio
|
|
|
7
7
|
|
|
8
8
|
## English Core
|
|
9
9
|
|
|
10
|
+
When drafting a Hybrid Plugin manifest in Plugin Studio, leave icon selection to the host. The user can pick a bundled icon during review. Preserve the selected `icon` when exporting a manifest.
|
|
11
|
+
|
|
10
12
|
In the Limix assistant, use the bundled limix-bot-factory MCP tools for template discovery, draft creation, validation, planning, evaluation, policy simulation and Hybrid skill authoring. Tell the user what was drafted and what still needs review. Use the bundled CLI for botpack export. Never claim a draft is an installed bot. Respond in the user's language.
|
|
11
13
|
|
|
12
14
|
Use this skill to design **Bot Mau (Bot Templates)** for an existing Limix Bot installation. The bundled Python CLI provides deterministic draft creation, validation, policy simulation, plan output, and export. The optional MCP server exposes the same LOCAL-ONLY draft capabilities.
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
## Mục đích
|
|
6
6
|
|
|
7
|
+
Khi tạo gói trong Plugin Studio, Limix Bot chọn biểu tượng và màu theo nhóm chức năng bằng bảng quy tắc có sẵn. Bạn có thể xem và đổi biểu tượng trước khi gửi duyệt. Biểu tượng đi cùng manifest khi xuất hoặc nhập gói.
|
|
8
|
+
|
|
7
9
|
Dùng Limix Bot Factory để tạo **Bot Mẫu** và các Skill đi kèm từ mô tả bằng ngôn ngữ tự nhiên. Bot có thể trò chuyện với khách bằng tiếng Việt, trong khi cấu trúc kỹ thuật, tên tool và quy tắc thao tác được giữ bằng tiếng Anh.
|
|
8
10
|
|
|
9
11
|
## Cách dùng
|