@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.
Files changed (73) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/LICENSE +21 -0
  3. package/README.md +50 -2
  4. package/THIRD-PARTY-NOTICES.md +100 -0
  5. package/dist/adv-context-SLTP32JQ.js +36 -0
  6. package/dist/advanced-EPLZB6DG.js +164 -0
  7. package/dist/agents-JYRQHH7R.js +181 -0
  8. package/dist/chat-AEHVCKXX.js +47 -0
  9. package/dist/chunk-2OH5KHWO.js +112 -0
  10. package/dist/chunk-2ZYSAYMJ.js +108 -0
  11. package/dist/chunk-4BZ4IXTO.js +161 -0
  12. package/dist/chunk-4ITJY25Z.js +144 -0
  13. package/dist/chunk-4JBLZQAQ.js +65 -0
  14. package/dist/chunk-6QLYRU3N.js +28 -0
  15. package/dist/chunk-7TACFVY2.js +57 -0
  16. package/dist/chunk-AY36KJTH.js +3023 -0
  17. package/dist/chunk-BJABQO7S.js +378 -0
  18. package/dist/chunk-C2GFK4JP.js +387 -0
  19. package/dist/chunk-CDC2K2KP.js +47 -0
  20. package/dist/chunk-DKCCXMSE.js +27 -0
  21. package/dist/chunk-FC3UOHOO.js +194 -0
  22. package/dist/chunk-FIASMDLX.js +216 -0
  23. package/dist/chunk-GMVDCQVW.js +88 -0
  24. package/dist/chunk-JQYZX56A.js +231 -0
  25. package/dist/chunk-JU5PGDOD.js +138 -0
  26. package/dist/chunk-JUZP5SXD.js +309 -0
  27. package/dist/chunk-KGA7VWQG.js +70 -0
  28. package/dist/chunk-L7VNR5LM.js +407 -0
  29. package/dist/chunk-LOSXCWHU.js +145 -0
  30. package/dist/chunk-NVC433AX.js +24 -0
  31. package/dist/chunk-QH27MDJM.js +248 -0
  32. package/dist/chunk-QUC5URWQ.js +708 -0
  33. package/dist/chunk-R2CPYTSP.js +31 -0
  34. package/dist/chunk-R5KQACGR.js +2833 -0
  35. package/dist/chunk-R6DONQKN.js +153 -0
  36. package/dist/chunk-RIX4S3J7.js +4747 -0
  37. package/dist/chunk-SZKAZ2VN.js +35 -0
  38. package/dist/chunk-T6DDNE3W.js +1338 -0
  39. package/dist/chunk-U4URD6TU.js +4605 -0
  40. package/dist/chunk-U5UIUB6L.js +51 -0
  41. package/dist/chunk-UMC77TR3.js +79 -0
  42. package/dist/chunk-UQURXFAE.js +80 -0
  43. package/dist/chunk-VBG7T7XY.js +1703 -0
  44. package/dist/chunk-VCCMJIAG.js +326 -0
  45. package/dist/chunk-VS375NYD.js +91 -0
  46. package/dist/chunk-WANZOLI5.js +1073 -0
  47. package/dist/chunk-WUF3TVAE.js +51 -0
  48. package/dist/chunk-XCWLFZSM.js +149 -0
  49. package/dist/chunk-YJEUXO5I.js +76 -0
  50. package/dist/chunk-YR6RCC6Y.js +894 -0
  51. package/dist/chunk-ZQFAX275.js +35 -0
  52. package/dist/config-ELG4FQ3K.js +30 -0
  53. package/dist/config-IEWRCG7R.js +50 -0
  54. package/dist/doctor-ZZC2D3RW.js +357 -0
  55. package/dist/ext-context-RIMZMEPB.js +37 -0
  56. package/dist/index.js +20 -0
  57. package/dist/init-UB3E47KM.js +22 -0
  58. package/dist/integrations-HW4VTLN4.js +183 -0
  59. package/dist/main-RAWWT22W.js +115 -0
  60. package/dist/mcp-SWD4SO35.js +232 -0
  61. package/dist/mcp-context-PM5FY665.js +28 -0
  62. package/dist/memory-QQ54GRCN.js +128 -0
  63. package/dist/memory-session-R6DGT6CS.js +14 -0
  64. package/dist/memory-summary-4P26B2ZY.js +18 -0
  65. package/dist/plugins-VUGTEUNV.js +166 -0
  66. package/dist/providers-O3WOVP5Q.js +417 -0
  67. package/dist/report-DDIZ6BLF.js +28 -0
  68. package/dist/sec-context-VQHW6TOZ.js +15 -0
  69. package/dist/security-SAYW4LU4.js +95 -0
  70. package/dist/sessions-CL6CRNQL.js +160 -0
  71. package/dist/skills-7KDGTTKX.js +126 -0
  72. package/dist/version-6E6A23B3.js +13 -0
  73. package/package.json +70 -4
@@ -0,0 +1,160 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ launchChat
4
+ } from "./chunk-AY36KJTH.js";
5
+ import "./chunk-JU5PGDOD.js";
6
+ import "./chunk-FIASMDLX.js";
7
+ import "./chunk-VS375NYD.js";
8
+ import "./chunk-VBG7T7XY.js";
9
+ import "./chunk-7TACFVY2.js";
10
+ import "./chunk-NVC433AX.js";
11
+ import "./chunk-BJABQO7S.js";
12
+ import {
13
+ sessionRow,
14
+ shortDate
15
+ } from "./chunk-QUC5URWQ.js";
16
+ import "./chunk-T6DDNE3W.js";
17
+ import "./chunk-2OH5KHWO.js";
18
+ import "./chunk-U4URD6TU.js";
19
+ import "./chunk-R5KQACGR.js";
20
+ import "./chunk-L7VNR5LM.js";
21
+ import "./chunk-VCCMJIAG.js";
22
+ import "./chunk-RIX4S3J7.js";
23
+ import "./chunk-LOSXCWHU.js";
24
+ import "./chunk-WANZOLI5.js";
25
+ import "./chunk-JUZP5SXD.js";
26
+ import "./chunk-4ITJY25Z.js";
27
+ import "./chunk-CDC2K2KP.js";
28
+ import "./chunk-YJEUXO5I.js";
29
+ import "./chunk-KGA7VWQG.js";
30
+ import "./chunk-2ZYSAYMJ.js";
31
+ import {
32
+ confirm,
33
+ guard,
34
+ openMemoryEnv
35
+ } from "./chunk-YR6RCC6Y.js";
36
+ import "./chunk-SZKAZ2VN.js";
37
+ import "./chunk-DKCCXMSE.js";
38
+ import {
39
+ atomicWriteFile
40
+ } from "./chunk-U5UIUB6L.js";
41
+ import {
42
+ redactSensitive
43
+ } from "./chunk-XCWLFZSM.js";
44
+ import "./chunk-GMVDCQVW.js";
45
+ import "./chunk-JQYZX56A.js";
46
+ import "./chunk-R6DONQKN.js";
47
+ import "./chunk-QH27MDJM.js";
48
+ import "./chunk-4BZ4IXTO.js";
49
+ import "./chunk-C2GFK4JP.js";
50
+ import "./chunk-R2CPYTSP.js";
51
+ import "./chunk-ZQFAX275.js";
52
+ import {
53
+ ZgError
54
+ } from "./chunk-FC3UOHOO.js";
55
+ import {
56
+ redactSecrets
57
+ } from "./chunk-WUF3TVAE.js";
58
+
59
+ // src/cli/commands/sessions.ts
60
+ import { readFile } from "fs/promises";
61
+ import path from "path";
62
+ function registerSessions(program, ctx) {
63
+ const say = (t) => ctx.stdout(redactSecrets(t));
64
+ const cmd = program.command("sessions").description("Saved chat sessions: list, resume, search, export, delete");
65
+ const list = async (o) => {
66
+ const env = await openMemoryEnv(ctx);
67
+ const { sessions, skipped } = await guard(() => env.sessions.list(o.all ? { all: true } : {}));
68
+ if (o.json) return say(JSON.stringify(sessions, null, 2));
69
+ if (sessions.length === 0) say(o.all ? "No saved sessions." : `No saved sessions for ${env.project ? env.project.path : "this folder"}. (zg sessions list --all shows every project.)`);
70
+ for (const s of sessions) say(`${sessionRow(s, null)}${o.all ? ` ${s.projectPath}` : ""}`);
71
+ if (skipped > 0) say(`(${skipped} damaged session folder(s) were skipped)`);
72
+ if (sessions.length > 0) say(`Retention: ${env.config.sessions.retentionDays === 0 ? "kept until you delete them" : `${env.config.sessions.retentionDays} days (zg sessions cleanup)`}. Resume: zg sessions resume <id>`);
73
+ };
74
+ cmd.action(() => list({}));
75
+ cmd.command("list").description("List saved sessions of this project").option("--all", "include sessions of every project").option("--json", "machine-readable output").action(list);
76
+ cmd.command("show <id>").description("Show a session's details and summary").option("--json", "machine-readable output").action(async (id, o) => {
77
+ const env = await openMemoryEnv(ctx);
78
+ const l = await guard(() => env.sessions.load(id));
79
+ if (o.json) return say(JSON.stringify({ ...l.meta, summary: l.summary, damagedLines: l.skippedLines }, null, 2));
80
+ const m = l.meta;
81
+ say(`Id: ${m.id}
82
+ Title: ${m.title}
83
+ Project: ${m.projectPath}${env.project?.id === m.projectId ? "" : " (not the current project)"}
84
+ Created: ${shortDate(m.createdAt)}
85
+ Last activity: ${shortDate(m.lastActivityAt)}
86
+ Status: ${m.status}
87
+ Messages: ${m.messageCount}${m.truncated ? " (saving stopped at the limit)" : ""}
88
+ Provider / model: ${m.provider ?? "unknown"} / ${m.model ?? "unknown"}${l.skippedLines ? `
89
+ Damaged lines skipped: ${l.skippedLines}` : ""}
90
+
91
+ ${l.summary ?? "No summary yet."}`);
92
+ });
93
+ cmd.command("resume <id>").description("Open the chat with an earlier session of this project loaded").action(async (id) => {
94
+ const env = await openMemoryEnv(ctx);
95
+ const meta = await guard(() => env.sessions.resolve(id));
96
+ await guard(async () => env.sessions.assertResumable(meta));
97
+ await launchChat(ctx, { resume: meta.id });
98
+ });
99
+ cmd.command("search <query>").description("Search session titles, summaries and messages (case-insensitive)").option("--all", "search every project").option("--since <date>", "active on or after YYYY-MM-DD").option("--until <date>", "active on or before YYYY-MM-DD").option("--role <role>", "user or assistant").option("--session <id>", "only inside one session").option("--json", "machine-readable output").action(async (query, o) => {
100
+ const env = await openMemoryEnv(ctx);
101
+ if (o.role && o.role !== "user" && o.role !== "assistant") throw new ZgError('--role must be "user" or "assistant".');
102
+ const sid = o.session ? (await guard(() => env.sessions.resolve(o.session))).id : void 0;
103
+ const hits = await guard(() => env.sessions.search(query, { ...o.all ? { all: true } : {}, ...o.since ? { since: o.since } : {}, ...o.until ? { until: o.until } : {}, ...o.role ? { role: o.role } : {}, ...sid ? { sessionId: sid } : {} }));
104
+ if (o.json) return say(JSON.stringify(hits.map((h) => ({ id: h.session.id, title: h.session.title, where: h.where, seq: h.seq ?? null, snippet: h.snippet })), null, 2));
105
+ if (hits.length === 0) return say(`Nothing matches "${query}".`);
106
+ for (const h of hits) say(`${h.session.id.slice(0, 8)} ${shortDate(h.session.lastActivityAt)} ${h.where}${h.seq ? ` #${h.seq}` : ""} ${h.snippet}`);
107
+ });
108
+ cmd.command("rename <id> <title...>").description("Change a session's title").action(async (id, title) => {
109
+ const env = await openMemoryEnv(ctx);
110
+ const m = await guard(() => env.sessions.rename(id, title.join(" ")));
111
+ say(`Renamed ${m.id.slice(0, 8)} to "${m.title}".`);
112
+ });
113
+ cmd.command("export <id>").description("Export a redacted copy as Markdown or JSON (to the screen, or --output <file>)").option("--format <format>", "markdown or json", "markdown").option("--output <file>", "write to a file instead of printing").option("--force", "replace the file if it exists").action(async (id, o) => {
114
+ const f = o.format.toLowerCase();
115
+ if (!["markdown", "md", "json"].includes(f)) throw new ZgError('--format must be "markdown" or "json".');
116
+ const env = await openMemoryEnv(ctx);
117
+ const text = await guard(() => env.sessions.exportSession(id, f === "json" ? "json" : "markdown"));
118
+ if (!o.output) return ctx.stdout(text.replace(/\n$/, ""));
119
+ const file = path.resolve(o.output);
120
+ const exists = await readFile(file).then(() => true, () => false);
121
+ if (exists && !o.force) throw new ZgError(`${file} already exists and was not changed.`, { hint: "Add --force to replace it." });
122
+ await atomicWriteFile(file, text);
123
+ say(`Exported to ${file}. Sensitive-looking text was redacted; read it before sharing.`);
124
+ });
125
+ cmd.command("import <file>").description("Import a session exported with zg (validated first; never replaces a session without --force)").option("--force", "replace an existing session with the same id").action(async (file, o) => {
126
+ const env = await openMemoryEnv(ctx);
127
+ let text;
128
+ try {
129
+ text = await readFile(path.resolve(file), "utf8");
130
+ } catch {
131
+ throw new ZgError(`${file} could not be read.`);
132
+ }
133
+ const m = await guard(() => env.sessions.importSession(text, { overwrite: o.force === true }));
134
+ say(`Imported "${m.title}" (${m.id.slice(0, 8)}, ${m.messageCount} messages) for ${m.projectPath}. It can be resumed from that project.`);
135
+ });
136
+ cmd.command("delete <id>").description("Delete one saved session (asks first)").option("--yes", "do not ask").action(async (id, o) => {
137
+ const env = await openMemoryEnv(ctx);
138
+ const m = await guard(() => env.sessions.resolve(id));
139
+ say(`${m.id.slice(0, 8)} ${shortDate(m.lastActivityAt)} ${m.messageCount} messages ${redactSensitive(m.title)}`);
140
+ const ask = env.config.sessions.confirmBeforeDelete;
141
+ if (!await confirm(ctx, "Delete this session for good?", o.yes === true || !ask)) return say("Cancelled. Nothing was deleted.");
142
+ await guard(() => env.sessions.delete(m.id));
143
+ say(`Deleted ${m.id.slice(0, 8)}.`);
144
+ });
145
+ cmd.command("cleanup").description("Delete sessions older than sessions.retentionDays (lists them and asks first)").option("--yes", "do not ask").option("--dry-run", "only list what would be deleted").action(async (o) => {
146
+ const env = await openMemoryEnv(ctx);
147
+ const { candidates, retentionDays } = await guard(() => env.sessions.cleanupCandidates());
148
+ if (retentionDays === 0) return say("Retention is set to keep sessions until you delete them (sessions.retentionDays 0), so there is nothing to clean up.");
149
+ if (candidates.length === 0) return say(`No saved session is older than ${retentionDays} days.`);
150
+ say(`${candidates.length} session(s) not used for ${retentionDays}+ days (all projects):`);
151
+ for (const s of candidates) say(`${sessionRow(s, null)} ${s.projectPath}`);
152
+ if (o.dryRun) return say("Dry run: nothing was deleted.");
153
+ if (!await confirm(ctx, `Delete these ${candidates.length} session(s) for good?`, o.yes === true)) return say("Cancelled. Nothing was deleted.");
154
+ for (const s of candidates) await guard(() => env.sessions.delete(s.id));
155
+ say(`Deleted ${candidates.length} session(s).`);
156
+ });
157
+ }
158
+ export {
159
+ registerSessions
160
+ };
@@ -0,0 +1,126 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ extGuard,
4
+ openExtEnv,
5
+ requireOn
6
+ } from "./chunk-RIX4S3J7.js";
7
+ import "./chunk-LOSXCWHU.js";
8
+ import "./chunk-WANZOLI5.js";
9
+ import "./chunk-JUZP5SXD.js";
10
+ import "./chunk-4ITJY25Z.js";
11
+ import "./chunk-CDC2K2KP.js";
12
+ import "./chunk-YJEUXO5I.js";
13
+ import "./chunk-KGA7VWQG.js";
14
+ import "./chunk-2ZYSAYMJ.js";
15
+ import {
16
+ confirm
17
+ } from "./chunk-YR6RCC6Y.js";
18
+ import "./chunk-SZKAZ2VN.js";
19
+ import "./chunk-DKCCXMSE.js";
20
+ import "./chunk-U5UIUB6L.js";
21
+ import "./chunk-XCWLFZSM.js";
22
+ import "./chunk-GMVDCQVW.js";
23
+ import "./chunk-JQYZX56A.js";
24
+ import "./chunk-R6DONQKN.js";
25
+ import "./chunk-QH27MDJM.js";
26
+ import "./chunk-R2CPYTSP.js";
27
+ import "./chunk-ZQFAX275.js";
28
+ import "./chunk-FC3UOHOO.js";
29
+ import {
30
+ redactSecrets
31
+ } from "./chunk-WUF3TVAE.js";
32
+
33
+ // src/cli/commands/skills.ts
34
+ var skillRow = (v) => `${v.id.padEnd(24)} ${v.scope.padEnd(9)} ${v.version.padEnd(8)} ${!v.enabled ? "disabled" : v.compatible ? "ready " : "blocked "} ${v.description}`;
35
+ function planLines(p) {
36
+ return [
37
+ `Skill: ${p.id} ${p.version} by ${p.author}`,
38
+ `Scope: ${p.scope}`,
39
+ `Source: ${p.source}`,
40
+ `Files: ${p.files} (${p.bytes} bytes). Nothing in it is ever run: skills are text.`,
41
+ `Needs: capabilities ${p.capabilities.join(", ") || "none"}; tools ${p.tools.join(", ") || "none"}`,
42
+ `Depends on: ${p.dependencies.join(", ") || "nothing"}`,
43
+ ...p.replaces ? [`Replaces: version ${p.replaces.version}${p.replaces.same ? " (same version)" : ""}`] : [],
44
+ ...p.shadowsBuiltin ? ["Note: it replaces a built-in skill with the same id."] : [],
45
+ ...p.warnings.map((w) => `Warning: ${w}`),
46
+ "It is guidance for the AI. It cannot grant permissions or skip approvals."
47
+ ];
48
+ }
49
+ function registerSkills(program, ctx) {
50
+ const say = (t) => ctx.stdout(redactSecrets(t));
51
+ const cmd = program.command("skills").description("Skills: reusable guidance for the AI (built in, yours, or installed from a local folder or archive)");
52
+ const list = async () => {
53
+ const env = await openExtEnv(ctx);
54
+ if (!env.config.extensions.skills.enabled) say("Skills are off (turn on: zg config set extensions.skills.enabled true)");
55
+ for (const v of await env.svc.skills.list()) say(skillRow(v));
56
+ for (const b of await env.svc.skills.broken()) say(`! ${b.id ?? "?"} (${b.scope}): ${b.issues.map((i) => i.message).join("; ")}`);
57
+ say("\nSkills are activated per chat: /skills activate <id>. None is ever activated automatically.");
58
+ };
59
+ cmd.action(list);
60
+ cmd.command("list").description("List every skill and whether it is usable").action(list);
61
+ cmd.command("search <words...>").description("Find skills by name, description or trigger words").action(async (words) => {
62
+ const env = await openExtEnv(ctx);
63
+ const found = await env.svc.skills.search(words.join(" "));
64
+ say(found.length ? found.map(skillRow).join("\n") : "No skill matches.");
65
+ });
66
+ cmd.command("show <id>").description("Show a skill's details and instructions").action(async (id) => {
67
+ const env = await openExtEnv(ctx);
68
+ const { view: v, record } = await extGuard(() => env.svc.skills.show(id));
69
+ say([`${v.title} (${v.id}) ${v.version} by ${v.author}`, `Scope: ${v.scope} ${!v.enabled ? "disabled" : v.compatible ? "ready" : "blocked"}`, v.description, `Platforms: ${v.platforms.join(", ")}`, `Needs capabilities: ${v.capabilities.join(", ") || "none"}`, `Depends on: ${v.dependencies.join(", ") || "none"}`, ...v.problems.map((p) => `! Cannot be used: ${p}`), ...v.warnings.map((w) => `! ${w}`), "", record.instructions].join("\n"));
70
+ });
71
+ cmd.command("install <source>").description("Install a skill from a local folder or .zip/.tar/.tar.gz archive (shows what it contains and asks first)").option("--project", "install for the current project only").option("--update", "replace an installed skill with the same id").option("--yes", "do not ask").action(async (source, o) => {
72
+ const env = await openExtEnv(ctx);
73
+ requireOn(env, "skills");
74
+ const plan = await extGuard(
75
+ () => env.svc.skills.install(source, {
76
+ scope: o.project ? "project" : "user",
77
+ update: o.update === true,
78
+ approve: async (p) => {
79
+ for (const l of planLines(p)) say(l);
80
+ return confirm(ctx, "Install this skill?", o.yes === true);
81
+ }
82
+ })
83
+ );
84
+ say(`Installed ${plan.id} ${plan.version} (${plan.scope}). It is ${plan.scope === "project" ? "disabled until you enable it for this project: zg skills enable " + plan.id : "available now"}; activate it in chat with /skills activate ${plan.id}.`);
85
+ });
86
+ cmd.command("update <id>").description("Re-install a skill from the folder or archive it came from (shows the change and asks first)").option("--yes", "do not ask").action(async (id, o) => {
87
+ const env = await openExtEnv(ctx);
88
+ const plan = await extGuard(() => env.svc.skills.update(id, async (p) => {
89
+ for (const l of planLines(p)) say(l);
90
+ return confirm(ctx, "Apply this update?", o.yes === true);
91
+ }));
92
+ say(`Updated ${plan.id} to ${plan.version}.`);
93
+ });
94
+ cmd.command("remove <id>").description("Remove an installed skill (a backup is kept)").option("--yes", "do not ask").action(async (id, o) => {
95
+ const env = await openExtEnv(ctx);
96
+ await extGuard(() => env.svc.skills.show(id));
97
+ if (!await confirm(ctx, `Remove skill "${id}"?`, o.yes === true)) return say("Cancelled. Nothing was removed.");
98
+ await extGuard(() => env.svc.skills.remove(id));
99
+ say(`Removed "${id}". A backup is in the extension-state folder.`);
100
+ });
101
+ for (const on of [true, false]) {
102
+ cmd.command(`${on ? "enable" : "disable"} <id>`).description(on ? "Allow a skill to be activated (project skills start disabled)" : "Stop a skill from being activated").action(async (id) => {
103
+ const env = await openExtEnv(ctx);
104
+ const v = await extGuard(() => env.svc.skills.setEnabled(id, on));
105
+ say(`Skill "${v.id}" is ${v.enabled ? "enabled" : "disabled"}.`);
106
+ });
107
+ }
108
+ cmd.command("validate <path>").description("Check a skill folder or archive without installing it").action(async (p) => {
109
+ const env = await openExtEnv(ctx);
110
+ const r = await extGuard(() => env.svc.skills.validatePath(p));
111
+ for (const e of r.errors) say(`[fail] ${e}`);
112
+ for (const w of r.warnings) say(`[warn] ${w}`);
113
+ say(r.ok ? `[ok] valid: ${r.manifest?.name ?? "?"} ${r.manifest?.version ?? ""} (${r.files} files)` : "Not valid.");
114
+ if (!r.ok) process.exitCode = 1;
115
+ });
116
+ cmd.command("customize <id>").description("Copy a built-in skill into your own skills so you can edit it").action(async (id) => {
117
+ const env = await openExtEnv(ctx);
118
+ const dir = await extGuard(() => env.svc.skills.customize(id));
119
+ say(`Copied to ${dir}. Edit SKILL.md there; your copy now takes precedence over the built-in.`);
120
+ });
121
+ }
122
+ export {
123
+ planLines,
124
+ registerSkills,
125
+ skillRow
126
+ };
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ BIN_NAME,
4
+ MIN_NODE_MAJOR,
5
+ PRODUCT_NAME,
6
+ VERSION
7
+ } from "./chunk-GMVDCQVW.js";
8
+ export {
9
+ BIN_NAME,
10
+ MIN_NODE_MAJOR,
11
+ PRODUCT_NAME,
12
+ VERSION
13
+ };
package/package.json CHANGED
@@ -1,6 +1,72 @@
1
1
  {
2
2
  "name": "@zero-gravity/zero-gravity",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "ZERO GRAVITY (zg): an independent AI coding terminal. Multi-provider chat, agents, file editing, commands, Git, MCP, plugins and a permission system.",
5
+ "homepage": "https://github.com/Pratik-Verma-002/Zero-Gravity#readme",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/Pratik-Verma-002/Zero-Gravity.git",
9
+ "directory": "cli"
10
+ },
11
+ "bugs": {
12
+ "url": "https://github.com/Pratik-Verma-002/Zero-Gravity/issues"
13
+ },
14
+ "type": "module",
15
+ "bin": {
16
+ "zg": "./dist/index.js"
17
+ },
18
+ "files": [
19
+ "dist",
20
+ "README.md",
21
+ "LICENSE",
22
+ "CHANGELOG.md",
23
+ "THIRD-PARTY-NOTICES.md"
24
+ ],
25
+ "engines": {
26
+ "node": ">=22"
27
+ },
28
+ "scripts": {
29
+ "build": "tsup",
30
+ "dev": "tsx src/cli/index.ts",
31
+ "test": "vitest run",
32
+ "typecheck": "tsc --noEmit",
33
+ "lint": "eslint .",
34
+ "license:check": "npx --yes license-checker-rseidelsohn --production --onlyAllow \"MIT;ISC;BSD-2-Clause;BSD-3-Clause;Apache-2.0;0BSD;CC0-1.0;Unlicense;BlueOak-1.0.0\"",
35
+ "prepublishOnly": "npm run typecheck && npm run lint && npm run test && npm run build && node scripts/release-check.mjs --pack",
36
+ "release:check": "node scripts/release-check.mjs",
37
+ "pack:check": "npm pack --dry-run --json > /dev/null && node scripts/release-check.mjs --pack",
38
+ "audit:gate": "node scripts/audit-gate.mjs"
39
+ },
40
+ "dependencies": {
41
+ "@modelcontextprotocol/sdk": "^1.32.2",
42
+ "chalk": "^5.6.2",
43
+ "commander": "^13.1.0",
44
+ "zod": "^3.25.76"
45
+ },
46
+ "devDependencies": {
47
+ "@eslint/js": "^9.30.0",
48
+ "@types/node": "^22.15.0",
49
+ "eslint": "^9.30.0",
50
+ "tsup": "^8.5.0",
51
+ "tsx": "^4.20.0",
52
+ "typescript": "^5.9.2",
53
+ "typescript-eslint": "^8.38.0",
54
+ "vitest": "^3.2.4"
55
+ },
56
+ "keywords": [
57
+ "cli",
58
+ "ai",
59
+ "coding",
60
+ "terminal",
61
+ "agent",
62
+ "mcp",
63
+ "llm",
64
+ "developer-tools",
65
+ "zero-gravity",
66
+ "zg"
67
+ ],
68
+ "license": "MIT",
69
+ "publishConfig": {
70
+ "access": "public"
71
+ }
72
+ }