@zero-gravity/zero-gravity 0.0.0-stage → 0.1.0
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/CHANGELOG.md +29 -0
- package/LICENSE +21 -0
- package/README.md +50 -2
- package/THIRD-PARTY-NOTICES.md +100 -0
- package/dist/adv-context-SLTP32JQ.js +36 -0
- package/dist/advanced-EPLZB6DG.js +164 -0
- package/dist/agents-JYRQHH7R.js +181 -0
- package/dist/chat-AEHVCKXX.js +47 -0
- package/dist/chunk-2OH5KHWO.js +112 -0
- package/dist/chunk-2ZYSAYMJ.js +108 -0
- package/dist/chunk-4BZ4IXTO.js +161 -0
- package/dist/chunk-4ITJY25Z.js +144 -0
- package/dist/chunk-4JBLZQAQ.js +65 -0
- package/dist/chunk-6QLYRU3N.js +28 -0
- package/dist/chunk-7TACFVY2.js +57 -0
- package/dist/chunk-AY36KJTH.js +3023 -0
- package/dist/chunk-BJABQO7S.js +378 -0
- package/dist/chunk-C2GFK4JP.js +387 -0
- package/dist/chunk-CDC2K2KP.js +47 -0
- package/dist/chunk-DKCCXMSE.js +27 -0
- package/dist/chunk-FC3UOHOO.js +194 -0
- package/dist/chunk-FIASMDLX.js +216 -0
- package/dist/chunk-GMVDCQVW.js +88 -0
- package/dist/chunk-JQYZX56A.js +231 -0
- package/dist/chunk-JU5PGDOD.js +138 -0
- package/dist/chunk-JUZP5SXD.js +309 -0
- package/dist/chunk-KGA7VWQG.js +70 -0
- package/dist/chunk-L7VNR5LM.js +407 -0
- package/dist/chunk-LOSXCWHU.js +145 -0
- package/dist/chunk-NVC433AX.js +24 -0
- package/dist/chunk-QH27MDJM.js +248 -0
- package/dist/chunk-QUC5URWQ.js +708 -0
- package/dist/chunk-R2CPYTSP.js +31 -0
- package/dist/chunk-R5KQACGR.js +2833 -0
- package/dist/chunk-R6DONQKN.js +153 -0
- package/dist/chunk-RIX4S3J7.js +4747 -0
- package/dist/chunk-SZKAZ2VN.js +35 -0
- package/dist/chunk-T6DDNE3W.js +1338 -0
- package/dist/chunk-U4URD6TU.js +4605 -0
- package/dist/chunk-U5UIUB6L.js +51 -0
- package/dist/chunk-UMC77TR3.js +79 -0
- package/dist/chunk-UQURXFAE.js +80 -0
- package/dist/chunk-VBG7T7XY.js +1703 -0
- package/dist/chunk-VCCMJIAG.js +326 -0
- package/dist/chunk-VS375NYD.js +91 -0
- package/dist/chunk-WANZOLI5.js +1073 -0
- package/dist/chunk-WUF3TVAE.js +51 -0
- package/dist/chunk-XCWLFZSM.js +149 -0
- package/dist/chunk-YJEUXO5I.js +76 -0
- package/dist/chunk-YR6RCC6Y.js +894 -0
- package/dist/chunk-ZQFAX275.js +35 -0
- package/dist/config-ELG4FQ3K.js +30 -0
- package/dist/config-IEWRCG7R.js +50 -0
- package/dist/doctor-ZZC2D3RW.js +357 -0
- package/dist/ext-context-RIMZMEPB.js +37 -0
- package/dist/index.js +20 -0
- package/dist/init-UB3E47KM.js +22 -0
- package/dist/integrations-HW4VTLN4.js +183 -0
- package/dist/main-RAWWT22W.js +115 -0
- package/dist/mcp-SWD4SO35.js +232 -0
- package/dist/mcp-context-PM5FY665.js +28 -0
- package/dist/memory-QQ54GRCN.js +128 -0
- package/dist/memory-session-R6DGT6CS.js +14 -0
- package/dist/memory-summary-4P26B2ZY.js +18 -0
- package/dist/plugins-VUGTEUNV.js +166 -0
- package/dist/providers-O3WOVP5Q.js +417 -0
- package/dist/report-DDIZ6BLF.js +28 -0
- package/dist/sec-context-VQHW6TOZ.js +15 -0
- package/dist/security-SAYW4LU4.js +95 -0
- package/dist/sessions-CL6CRNQL.js +160 -0
- package/dist/skills-7KDGTTKX.js +126 -0
- package/dist/version-6E6A23B3.js +13 -0
- package/package.json +70 -4
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
sanitizeForDisplay
|
|
4
|
+
} from "./chunk-YJEUXO5I.js";
|
|
5
|
+
|
|
6
|
+
// src/mcp/format.ts
|
|
7
|
+
var clean = (s, n = 200) => sanitizeForDisplay(s).replace(/\s+/g, " ").slice(0, n);
|
|
8
|
+
function statusLine(s) {
|
|
9
|
+
const caps = s.state === "connected" ? ` tools:${s.toolCount}${s.capabilities.resources ? " resources" : ""}${s.capabilities.prompts ? " prompts" : ""}` : "";
|
|
10
|
+
return `${s.name.padEnd(18)} ${s.state.padEnd(13)} ${s.transport.padEnd(5)} ${s.integration ? `[${s.integration}] ` : ""}${clean(s.target, 60)}${caps}`;
|
|
11
|
+
}
|
|
12
|
+
function statusDetail(s) {
|
|
13
|
+
const l = [`Server: ${s.name} State: ${s.state}${s.state === "connected" ? " (initialized, tools discovered)" : ""}`, `Transport: ${s.transport} Auth: ${s.authMethod} Target: ${clean(s.target, 120)}`];
|
|
14
|
+
if (s.serverName) l.push(`Reports itself as: ${clean(s.serverName, 80)} ${clean(s.serverVersion ?? "", 30)} (text from the server)`);
|
|
15
|
+
if (s.protocolVersion) l.push(`Protocol: ${clean(s.protocolVersion, 20)}`);
|
|
16
|
+
if (s.state === "connected") l.push(`Offers: ${s.toolCount} tool(s)${s.capabilities.resources ? ", resources" : ""}${s.capabilities.prompts ? ", prompts" : ""}`, `Connected since: ${s.connectedAt ?? "?"}${s.pid ? ` process id: ${s.pid}` : ""}`);
|
|
17
|
+
if (s.lastError) l.push(`Last problem: ${clean(s.lastError, 300)}`);
|
|
18
|
+
return l;
|
|
19
|
+
}
|
|
20
|
+
function toolLine(t, policy) {
|
|
21
|
+
return `${t.id.padEnd(34)} ${t.sensitivity.padEnd(11)} ${policy.padEnd(5)} ${clean(t.description, 70)}`;
|
|
22
|
+
}
|
|
23
|
+
function resourceLine(r) {
|
|
24
|
+
return `${clean(r.uri, 70)} ${r.mimeType ?? "?"}${r.size !== null ? ` ${r.size}B` : ""} ${clean(r.name || r.description, 50)}`;
|
|
25
|
+
}
|
|
26
|
+
function promptLine(p) {
|
|
27
|
+
return `${p.name.padEnd(24)} ${p.arguments.map((a) => a.required ? `<${a.name}>` : `[${a.name}]`).join(" ")} ${clean(p.description, 60)}`;
|
|
28
|
+
}
|
|
29
|
+
var AVAIL = { verified: "verified", restricted: "restricted", "unverified-details": "details-unverified", "community-dependent": "community-only", unavailable: "unavailable" };
|
|
30
|
+
function entryRow(e, connected) {
|
|
31
|
+
const badge = `[${e.publisher === "official" ? "official" : e.publisher === "community" ? "community" : "-"}]`;
|
|
32
|
+
return `${e.id.padEnd(13)} ${e.name.padEnd(12)} ${e.category.padEnd(19)} ${badge.padEnd(11)} ${AVAIL[e.availability].padEnd(18)} ${connected.length ? `connected as ${connected.join(", ")}` : "not connected"}`;
|
|
33
|
+
}
|
|
34
|
+
function entryDetail(e) {
|
|
35
|
+
const l = [`${e.name} (${e.id})`, `${e.description}`, "", `Publisher: ${e.publisher} Availability: ${AVAIL[e.availability]} Category: ${e.category}`, `Docs: ${e.docs.join(" ")}`];
|
|
36
|
+
if (e.repo) l.push(`Repo: ${e.repo}`);
|
|
37
|
+
l.push("", "Access requested:", ...e.access.map((a) => ` - ${a}`), "", `Auth: ${e.auth.kinds.join(" / ") || "unknown"}`, ` ${e.auth.note}`);
|
|
38
|
+
if (e.permissions.length) l.push("Permissions:", ...e.permissions.map((p) => ` - ${p}`));
|
|
39
|
+
if (e.capabilities.length) l.push("Capabilities (from the vendor's docs):", ...e.capabilities.map((c) => ` - ${c}`));
|
|
40
|
+
if (e.requires.length) l.push("Requires:", ...e.requires.map((c) => ` - ${c}`));
|
|
41
|
+
l.push("Platforms:", ` linux: ${e.platforms.linux}`, ` macos: ${e.platforms.macos}`, ` windows: ${e.platforms.windows}`, ` termux: ${e.platforms.termux}`);
|
|
42
|
+
if (e.template) l.push("Config zg would create:", ` ${e.template.transport === "http" ? e.template.url : [e.template.command, ...e.template.args ?? []].join(" ")}`, ...e.template.env ? [` env variable names: ${Object.values(e.template.env).join(", ")}`] : []);
|
|
43
|
+
else l.push("Config: none (zg will not guess one).");
|
|
44
|
+
if (e.warnings.length) l.push("Please note:", ...e.warnings.map((w) => ` ! ${w}`));
|
|
45
|
+
l.push("", `Verified on ${e.verification.checked} against:`, ...e.verification.sources.map((s) => ` ${s}`), ` confirmed: ${e.verification.verified.join("; ") || "-"}`, ` NOT confirmed: ${e.verification.unverified.join("; ") || "-"}`);
|
|
46
|
+
return l;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export {
|
|
50
|
+
statusLine,
|
|
51
|
+
statusDetail,
|
|
52
|
+
toolLine,
|
|
53
|
+
resourceLine,
|
|
54
|
+
promptLine,
|
|
55
|
+
entryRow,
|
|
56
|
+
entryDetail
|
|
57
|
+
};
|