uncamp 0.0.0 → 0.1.2

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/dist/trash.js ADDED
@@ -0,0 +1,208 @@
1
+ import { lstat, readdir, readFile, rename, mkdir, realpath, readlink } from "node:fs/promises";
2
+ import path from "node:path";
3
+ import { createHash } from "node:crypto";
4
+ import { execFileSync } from "node:child_process";
5
+ import { spawnSync } from "node:child_process";
6
+ import { SchemaError } from "./core.js";
7
+ export class TrashError extends SchemaError {
8
+ constructor(message) {
9
+ super(message);
10
+ this.name = "TrashError";
11
+ }
12
+ }
13
+ const SWIFT_TRASH_SCRIPT = `import Foundation
14
+ let url = URL(fileURLWithPath: CommandLine.arguments[1])
15
+ var result: NSURL?
16
+ do {
17
+ try FileManager.default.trashItem(at: url, resultingItemURL: &result)
18
+ print(result?.path ?? "")
19
+ } catch {
20
+ fputs("\\(error)\\n", stderr)
21
+ exit(1)
22
+ }`;
23
+ /** Move an installer-owned path to the user's Trash without deleting it. */
24
+ export async function moveOwnedPathToTrash(target) {
25
+ const absolute = path.resolve(target);
26
+ const trashRoot = process.env.UNCAMP_TRASH_ROOT;
27
+ if (trashRoot) {
28
+ await mkdir(trashRoot, { recursive: true });
29
+ let destination = path.join(trashRoot, path.basename(absolute));
30
+ let suffix = 0;
31
+ while ((await fingerprint(destination)) !== "missing") {
32
+ destination = `${path.join(trashRoot, path.basename(absolute))}-${Date.now()}-${++suffix}`;
33
+ }
34
+ await rename(absolute, destination);
35
+ return destination;
36
+ }
37
+ if (process.platform !== "darwin")
38
+ throw new TrashError("UNCAMP_TRASH_ROOT is required outside macOS");
39
+ const result = spawnSync("swift", ["-", absolute], { input: SWIFT_TRASH_SCRIPT, encoding: "utf8" });
40
+ if (result.status !== 0 || !result.stdout.trim())
41
+ throw new TrashError(result.stderr || "Trash move failed");
42
+ return result.stdout.trim();
43
+ }
44
+ const neverPrefixes = [
45
+ "/System",
46
+ "/usr",
47
+ "/bin",
48
+ "/sbin",
49
+ "/Library",
50
+ "/private/var/db",
51
+ "/Applications",
52
+ "/opt/homebrew",
53
+ ];
54
+ const homeSuffixes = [
55
+ "/Documents",
56
+ "/Pictures",
57
+ "/Movies",
58
+ "/Music",
59
+ "/Library/Mail",
60
+ "/.ssh",
61
+ "/.gnupg",
62
+ "/.aws",
63
+ "/.config/gcloud",
64
+ ];
65
+ export function isUncampState(target) {
66
+ return path.resolve(target).split(path.sep).includes(".uncamp");
67
+ }
68
+ export async function isUncampTmp(target, root) {
69
+ const lexicalRoot = path.resolve(root), lexicalTmp = path.join(lexicalRoot, ".uncamp", "tmp"), raw = path.resolve(target);
70
+ if (raw === lexicalTmp || !raw.startsWith(lexicalTmp + path.sep))
71
+ return false;
72
+ let base;
73
+ try {
74
+ base = await realpath(path.resolve(root));
75
+ }
76
+ catch {
77
+ return false;
78
+ }
79
+ const tmp = path.join(base, ".uncamp", "tmp");
80
+ try {
81
+ const realTmp = await realpath(tmp), realTarget = await realpath(raw), expectedTarget = path.join(realTmp, path.relative(lexicalTmp, raw));
82
+ return realTmp === tmp && realTarget === expectedTarget;
83
+ }
84
+ catch {
85
+ return false;
86
+ }
87
+ }
88
+ export function isNeverDelete(target, neverTouch = []) {
89
+ const p = path.resolve(target), home = path.resolve(process.env.HOME || "~");
90
+ if (p === "/" ||
91
+ p === home ||
92
+ neverPrefixes.some((x) => p === x || p.startsWith(x + path.sep)) ||
93
+ homeSuffixes.some((x) => p === home + x || p.startsWith(home + x + path.sep)))
94
+ return true;
95
+ const name = path.basename(p);
96
+ if (name === ".env" ||
97
+ name.endsWith(".env") ||
98
+ name.startsWith("id_") ||
99
+ ["credentials", "credentials.json"].includes(name))
100
+ return true;
101
+ return neverTouch.some((x) => p === path.resolve(x) || p.startsWith(path.resolve(x) + path.sep));
102
+ }
103
+ export async function fingerprint(target) {
104
+ let s;
105
+ try {
106
+ s = await lstat(target);
107
+ }
108
+ catch {
109
+ return "missing";
110
+ }
111
+ const h = createHash("sha256");
112
+ if (s.isSymbolicLink()) {
113
+ h.update(await readlink(target));
114
+ return `link:${h.digest("hex")}`;
115
+ }
116
+ if (s.isFile()) {
117
+ h.update(await readFile(target));
118
+ return `file:${s.ino}:${s.size}:${s.mtimeMs}:${h.digest("hex")}`;
119
+ }
120
+ if (s.isDirectory()) {
121
+ for (const n of (await readdir(target)).sort()) {
122
+ h.update(n);
123
+ h.update(await fingerprint(path.join(target, n)));
124
+ }
125
+ return `dir:${s.ino}:${s.mtimeMs}:${s.nlink}:${h.digest("hex")}`;
126
+ }
127
+ return `other:${s.size}`;
128
+ }
129
+ export async function moveToTrash(root, relative, expected, opts = {}) {
130
+ const base = path.resolve(root), target = path.resolve(base, relative);
131
+ if ((opts.consent ?? [relative]).includes(relative) === false)
132
+ throw new TrashError(`explicit user approval required for exact retirement: ${relative}`);
133
+ if (!target.startsWith(base + path.sep))
134
+ throw new TrashError(`outside-selected-project: ${relative}`);
135
+ if (target === base)
136
+ throw new TrashError("refusing to move the project root");
137
+ const inTmp = await isUncampTmp(target, base);
138
+ if (isUncampState(target) &&
139
+ !inTmp &&
140
+ !(opts.allowUncampRecords && target.startsWith(path.join(base, ".uncamp", "memory") + path.sep)))
141
+ throw new TrashError(`uncamp-state: ${relative}`);
142
+ if (isNeverDelete(target, opts.neverTouch))
143
+ throw new TrashError(`never-delete: ${relative}`);
144
+ const fp = await fingerprint(target);
145
+ if (fp === "missing")
146
+ throw new TrashError(`missing: ${relative}`);
147
+ if (fp !== expected)
148
+ throw new TrashError(`fingerprint-mismatch: ${relative}`);
149
+ if (opts.enforceGitGuards !== false) {
150
+ try {
151
+ execFileSync("git", ["-C", base, "ls-files", "--error-unmatch", "--", path.relative(base, target)], {
152
+ stdio: "ignore",
153
+ });
154
+ throw new TrashError(`tracked-or-dirty-source: ${relative}`);
155
+ }
156
+ catch (e) {
157
+ if (e instanceof TrashError)
158
+ throw e;
159
+ }
160
+ }
161
+ const { isSuppressed } = await import("./preferences.js");
162
+ if (await isSuppressed(base, { location: target }))
163
+ throw new TrashError(`suppressed: ${relative}`);
164
+ if ((await fingerprint(target)) !== expected)
165
+ throw new TrashError(`fingerprint-mismatch: ${relative}`);
166
+ const trashRoot = process.env.UNCAMP_TRASH_ROOT;
167
+ if (trashRoot) {
168
+ await mkdir(trashRoot, { recursive: true });
169
+ let dest = path.join(trashRoot, path.basename(target)), n = 0;
170
+ while ((await fingerprint(dest)) !== "missing")
171
+ dest = `${path.join(trashRoot, path.basename(target))}-${Date.now()}-${++n}`;
172
+ await rename(target, dest);
173
+ return dest;
174
+ }
175
+ if (process.platform === "darwin") {
176
+ const r = spawnSync("swift", ["-", target], { input: SWIFT_TRASH_SCRIPT, encoding: "utf8" });
177
+ if (r.status !== 0)
178
+ throw new TrashError(r.stderr || "Trash move failed");
179
+ return r.stdout.trim();
180
+ }
181
+ throw new TrashError("UNCAMP_TRASH_ROOT is required outside macOS");
182
+ }
183
+ export async function moveMemoryNoteToTrash(root, file) {
184
+ const memory = path.join(path.resolve(root), ".uncamp", "memory"), target = path.resolve(file);
185
+ if (path.dirname(target) !== memory || !target.endsWith(".md"))
186
+ throw new TrashError("memory note path is outside this project memory directory");
187
+ const fp = await fingerprint(target);
188
+ if (fp === "missing")
189
+ throw new TrashError("memory note is missing");
190
+ const trashRoot = process.env.UNCAMP_TRASH_ROOT;
191
+ if (trashRoot) {
192
+ await mkdir(trashRoot, { recursive: true });
193
+ let dest = path.join(trashRoot, path.basename(target)), n = 0;
194
+ while ((await fingerprint(dest)) !== "missing")
195
+ dest = `${path.join(trashRoot, path.basename(target))}-${Date.now()}-${++n}`;
196
+ if ((await fingerprint(target)) !== fp)
197
+ throw new TrashError("fingerprint-mismatch: memory note");
198
+ await rename(target, dest);
199
+ return dest;
200
+ }
201
+ if (process.platform === "darwin") {
202
+ const r = spawnSync("swift", ["-", target], { input: SWIFT_TRASH_SCRIPT, encoding: "utf8" });
203
+ if (r.status !== 0 || !r.stdout.trim())
204
+ throw new TrashError(r.stderr || "macOS Trash move failed");
205
+ return r.stdout.trim();
206
+ }
207
+ throw new TrashError("UNCAMP_TRASH_ROOT is required outside macOS");
208
+ }
@@ -0,0 +1,162 @@
1
+ import { execFileSync, spawnSync } from "node:child_process";
2
+ import { createHash } from "node:crypto";
3
+ import path from "node:path";
4
+ /** Read process identities from the operating system process table. */
5
+ export function listProcesses() {
6
+ try {
7
+ const output = execFileSync("ps", ["-axo", "pid=,ppid=,pgid=,lstart=,stat=,command="], { encoding: "utf8" });
8
+ return output.split("\n").flatMap((line) => {
9
+ const match = line.trim().match(/^(\d+)\s+(\d+)\s+(\d+)\s+(.{24})\s+(\S+)\s+(.*)$/);
10
+ if (!match)
11
+ return [];
12
+ return [
13
+ {
14
+ pid: Number(match[1]),
15
+ ppid: Number(match[2]),
16
+ pgid: Number(match[3]),
17
+ started_at: match[4],
18
+ state: match[5],
19
+ command: match[6],
20
+ },
21
+ ];
22
+ });
23
+ }
24
+ catch {
25
+ return [];
26
+ }
27
+ }
28
+ const swiftInfo = `import Darwin
29
+ let pid = Int32(CommandLine.arguments[1]) ?? 0
30
+ var info = proc_bsdinfo()
31
+ let rc = proc_pidinfo(pid, PROC_PIDTBSDINFO, 0, &info, Int32(MemoryLayout<proc_bsdinfo>.size))
32
+ if rc <= 0 { exit(1) }
33
+ var buf = [CChar](repeating: 0, count: 4096)
34
+ let pathResult = proc_pidpath(pid, &buf, UInt32(buf.count))
35
+ let executable = pathResult > 0 ? String(decoding: buf.prefix(while: {$0 != 0}).map { UInt8(bitPattern: $0) }, as: UTF8.self) : ""
36
+ let name = withUnsafePointer(to: &info.pbi_comm) { $0.withMemoryRebound(to: CChar.self, capacity: 16) { String(cString: $0) } }
37
+ print("\\(pid)|\\(info.pbi_ppid)|\\(info.pbi_start_tvsec).\\(info.pbi_start_tvusec)|\\(name)|\\(executable)|\\(info.pbi_status)")`;
38
+ function nativeProcessFact(pid) {
39
+ if (process.platform !== "darwin")
40
+ return undefined;
41
+ const home = process.env.UNCAMP_HOME || path.join(process.env.HOME || "~", ".uncamp");
42
+ const result = spawnSync("/usr/bin/swift", ["-module-cache-path", path.join(home, "runtime", ".swift-module-cache"), "-", String(pid)], { input: swiftInfo, encoding: "utf8", timeout: 10000 });
43
+ if (result.status !== 0 || !result.stdout?.trim())
44
+ return undefined;
45
+ const [pidText, ppid, start, name, executable, status] = result.stdout.trim().split("|");
46
+ if (Number(status) === 5)
47
+ return undefined;
48
+ return {
49
+ pid: Number(pidText),
50
+ ppid: Number(ppid),
51
+ pgid: 0,
52
+ started_at: String(start),
53
+ command: `${name} ${executable}`.trim(),
54
+ state: "S",
55
+ };
56
+ }
57
+ /** Return the current process fact for a pid, if it exists. */
58
+ export function processFact(pid) {
59
+ return listProcesses().find((process) => process.pid === pid) ?? nativeProcessFact(pid);
60
+ }
61
+ /** Check that a live process still has the noted identity and is not a zombie. */
62
+ export function identityMatches(live, expected) {
63
+ return (!live.state.startsWith("Z") &&
64
+ live.pid === Number(expected.pid) &&
65
+ live.started_at === expected.started_at &&
66
+ live.command === expected.command);
67
+ }
68
+ /** Hash a command while ignoring process ids, port numbers and file paths. */
69
+ export function commandHash(command) {
70
+ const parts = String(command || "")
71
+ .trim()
72
+ .split(/\s+/);
73
+ if (!parts[0])
74
+ return null;
75
+ const kept = [
76
+ parts[0].split("/").at(-1),
77
+ ...parts.slice(1).filter((part) => !/^[-\w=.:]*\d+[-\w=.:]*$/.test(part) && !part.startsWith("/")),
78
+ ];
79
+ return createHash("sha256").update(kept.join(" ")).digest("hex").slice(0, 16);
80
+ }
81
+ /** List listening TCP ports owned by a process. */
82
+ export function listeningPorts(pid) {
83
+ try {
84
+ const output = execFileSync("lsof", ["-nP", "-a", "-p", String(pid), "-iTCP", "-sTCP:LISTEN", "-Fn"], {
85
+ encoding: "utf8",
86
+ });
87
+ return [
88
+ ...new Set([...output.matchAll(/(?:^|\n)n.*:(\d+)(?:\n|$)/g)].map((match) => Number(match[1])).filter(Number.isFinite)),
89
+ ].sort((a, b) => a - b);
90
+ }
91
+ catch {
92
+ return [];
93
+ }
94
+ }
95
+ /** Find all descendants of a process using one process table reading. */
96
+ export function childrenOf(pid, rows = listProcesses()) {
97
+ const found = new Set([pid]);
98
+ let changed = true;
99
+ while (changed) {
100
+ changed = false;
101
+ for (const row of rows) {
102
+ if (found.has(row.ppid) && !found.has(row.pid)) {
103
+ found.add(row.pid);
104
+ changed = true;
105
+ }
106
+ }
107
+ }
108
+ found.delete(pid);
109
+ return [...found];
110
+ }
111
+ /** Resolve a port to its unique listening process. */
112
+ export function listeningPid(port, runner = execFileSync) {
113
+ try {
114
+ const output = runner("lsof", ["-nP", `-iTCP:${port}`, "-sTCP:LISTEN", "-t"], { encoding: "utf8" });
115
+ const ids = [...new Set(output.trim().split(/\s+/).filter(Boolean).map(Number))];
116
+ if (ids.length === 1)
117
+ return ids[0];
118
+ if (!ids.length)
119
+ throw new Error(`nothing is listening on port ${port}`);
120
+ throw new Error(`several processes listen on port ${port} (${ids.join(", ")}); pass the pid you started`);
121
+ }
122
+ catch (error) {
123
+ throw new Error(error.message || `nothing is listening on port ${port}`);
124
+ }
125
+ }
126
+ /** Stop a process tree and verify that each noted process is gone. */
127
+ export function stopProcess(pid, grace = 5) {
128
+ const processFactNow = processFact(pid);
129
+ if (!processFactNow || processFactNow.state.startsWith("Z")) {
130
+ return { gone: true, stopped: false, also_stopped: [] };
131
+ }
132
+ const children = childrenOf(pid);
133
+ try {
134
+ process.kill(pid, "SIGTERM");
135
+ for (const child of children) {
136
+ try {
137
+ process.kill(child, "SIGTERM");
138
+ }
139
+ catch { }
140
+ }
141
+ }
142
+ catch { }
143
+ const deadline = Date.now() + Math.max(0, grace) * 1000;
144
+ while (Date.now() < deadline && isRunning(pid)) {
145
+ Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, 80);
146
+ }
147
+ if (isRunning(pid)) {
148
+ try {
149
+ process.kill(pid, "SIGKILL");
150
+ }
151
+ catch { }
152
+ }
153
+ return {
154
+ gone: !isRunning(pid),
155
+ stopped: !isRunning(pid),
156
+ also_stopped: children.filter((child) => !isRunning(child)),
157
+ };
158
+ }
159
+ function isRunning(pid) {
160
+ const processFactNow = processFact(pid);
161
+ return Boolean(processFactNow && !processFactNow.state.startsWith("Z"));
162
+ }
package/package.json CHANGED
@@ -1,10 +1,55 @@
1
1
  {
2
2
  "name": "uncamp",
3
- "version": "0.0.0",
4
- "description": "Placeholder; uncamp is coming soon.",
3
+ "version": "0.1.2",
4
+ "description": "Remembers what your coding agents start, and makes sure they clean up after themselves.",
5
5
  "license": "MIT",
6
- "author": "gksoriginals",
6
+ "author": "Gopikrishnan Sasikumar",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/gksoriginals/uncamp.git"
10
+ },
11
+ "homepage": "https://github.com/gksoriginals/uncamp#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/gksoriginals/uncamp/issues"
14
+ },
15
+ "keywords": [
16
+ "mcp",
17
+ "coding-agents",
18
+ "claude-code",
19
+ "codex",
20
+ "cursor",
21
+ "agent-memory",
22
+ "cleanup"
23
+ ],
24
+ "type": "module",
25
+ "bin": {
26
+ "uncamp": "dist/cli.js"
27
+ },
28
+ "engines": {
29
+ "node": ">=22"
30
+ },
7
31
  "files": [
8
- "README.md"
9
- ]
32
+ "dist/",
33
+ "!dist/test/",
34
+ "skills/",
35
+ "!**/__pycache__/",
36
+ "agent-rules/",
37
+ "plugins/",
38
+ "README.md",
39
+ "LICENSE"
40
+ ],
41
+ "scripts": {
42
+ "build": "tsc -p tsconfig.json && chmod +x dist/cli.js",
43
+ "test": "npm run build && node --test 'dist/test/**/*.test.js'",
44
+ "test:acceptance": "npm run build && python3 -m unittest discover -s tests/acceptance",
45
+ "check:sync": "npm run build && node dist/scripts/sync.js --check"
46
+ },
47
+ "dependencies": {
48
+ "@modelcontextprotocol/sdk": "^1.32.2",
49
+ "zod": "^4.6.7"
50
+ },
51
+ "devDependencies": {
52
+ "@types/node": "^22.20.7",
53
+ "typescript": "^7.0.2"
54
+ }
10
55
  }
@@ -0,0 +1,14 @@
1
+ # uncamp package sources and generated host bundles
2
+
3
+ `plugins/uncamp/uncamp-install.json` describes uncamp's components and the v1 hosts (Claude Code, Codex, Cursor);
4
+ `later_hosts` lists hosts that are planned but not shipped (Gemini CLI, Antigravity and others). Rule templates are in
5
+ `plugins/uncamp/hosts/`. Skills live under `skills/` and the runtime under `src/`.
6
+
7
+ Host bundles are generated, never edited by hand. `uncamp install` writes them to `~/.uncamp/runtime/plugins-build/`;
8
+ `node dist/scripts/sync.js` regenerates them and `--check` (run in CI) verifies the committed rule outputs.
9
+
10
+ Every host's MCP entry runs the installed runtime: `node ~/.uncamp/runtime/dist/cli.js mcp`. Claude Code installs the
11
+ marketplace bundle, copied to `~/.uncamp-plugins/marketplace`, as the plugin `uncamp@uncamp-local` (skills plus MCP
12
+ server). Codex gets `[mcp_servers.uncamp]`, the `uncamp-local` marketplace and the `uncamp@uncamp-local` plugin in
13
+ `~/.codex/config.toml`; Cursor gets `mcpServers.uncamp` in `~/.cursor/mcp.json` and the local plugin under
14
+ `~/.cursor/plugins/local/uncamp`.
@@ -0,0 +1,3 @@
1
+ <!-- uncamp-rule:start v=2.0 -->
2
+ If your work starts something that keeps running or keeps holding CPU, memory, or disk after its command (for example a server or preview, even for a quick check), note it with uncamp MCP right after launch, decide and record with uncamp what should happen to it when the work is done, and follow the uncamp-session-end skill before your final answer, including for side steps. Never assume a keep.
3
+ <!-- uncamp-rule:end -->
@@ -0,0 +1,8 @@
1
+ ---
2
+ description: uncamp session-end workload pointer.
3
+ alwaysApply: true
4
+ ---
5
+
6
+ <!-- uncamp-rule:start v=2.0 -->
7
+ If your work starts something that keeps running or keeps holding CPU, memory, or disk after its command (for example a server or preview, even for a quick check), note it with uncamp MCP right after launch, decide and record with uncamp what should happen to it when the work is done, and follow the uncamp-session-end skill before your final answer, including for side steps. Never assume a keep.
8
+ <!-- uncamp-rule:end -->
@@ -0,0 +1,191 @@
1
+ {
2
+ "schema_version": 2,
3
+ "name": "uncamp",
4
+ "version_source": "package.json",
5
+ "components": {
6
+ "cli": "src",
7
+ "skills": "skills",
8
+ "rules": "agent-rules",
9
+ "project_install": {
10
+ "owned_paths": [
11
+ ".cursor/rules/uncamp.mdc",
12
+ ".claude/rules/uncamp.md",
13
+ "AGENTS.md",
14
+ "CLAUDE.md",
15
+ "AGENTS.local.md",
16
+ "CLAUDE.local.md"
17
+ ],
18
+ "owned_dirs": [
19
+ ".cursor/rules",
20
+ ".claude/rules",
21
+ ".cursor",
22
+ ".claude",
23
+ ".codex"
24
+ ]
25
+ }
26
+ },
27
+ "hosts": {
28
+ "codex": {
29
+ "bins": [
30
+ "codex"
31
+ ],
32
+ "dirs": [
33
+ ".codex"
34
+ ],
35
+ "apps": [
36
+ "Codex.app"
37
+ ],
38
+ "rules": [
39
+ ".codex/AGENTS.md"
40
+ ],
41
+ "tier": "Tier 1",
42
+ "project_rules": [
43
+ "AGENTS.md"
44
+ ]
45
+ },
46
+ "claude": {
47
+ "bins": [
48
+ "claude"
49
+ ],
50
+ "dirs": [
51
+ ".claude"
52
+ ],
53
+ "apps": [
54
+ "Claude.app"
55
+ ],
56
+ "rules": [
57
+ ".claude/CLAUDE.md"
58
+ ],
59
+ "tier": "Tier 1",
60
+ "project_rules": [
61
+ "CLAUDE.md"
62
+ ]
63
+ },
64
+ "cursor": {
65
+ "bins": [
66
+ "cursor-agent",
67
+ "agent"
68
+ ],
69
+ "dirs": [
70
+ ".cursor"
71
+ ],
72
+ "apps": [
73
+ "Cursor.app"
74
+ ],
75
+ "rules": [],
76
+ "tier": "Tier 1",
77
+ "project_rules": [
78
+ ".cursor/rules/uncamp.mdc"
79
+ ]
80
+ }
81
+ },
82
+ "generated_root": "build/plugins",
83
+ "host_packages": {
84
+ "codex": {
85
+ "output": "codex",
86
+ "files": {
87
+ ".codex-plugin/plugin.json": {
88
+ "inline": {
89
+ "name": "uncamp",
90
+ "description": "uncamp: coding agents decide what happens to what their work starts, with per-project memory.",
91
+ "version": "${UNCAMP_VERSION}"
92
+ }
93
+ },
94
+ "skills/{skill_file}": "$SKILLS"
95
+ }
96
+ },
97
+ "cursor": {
98
+ "output": "cursor",
99
+ "files": {
100
+ ".cursor-plugin/plugin.json": {
101
+ "inline": {
102
+ "name": "uncamp",
103
+ "displayName": "uncamp",
104
+ "version": "${UNCAMP_VERSION}",
105
+ "description": "uncamp: coding agents decide what happens to what their work starts, with per-project memory.",
106
+ "rules": "./rules"
107
+ }
108
+ },
109
+ "rules/uncamp.mdc": "hosts/rules-src/project-cursor.mdc",
110
+ "skills/{skill_file}": "$SKILLS"
111
+ }
112
+ },
113
+ "marketplace": {
114
+ "output": "marketplaces/uncamp",
115
+ "files": {
116
+ "plugin.json": {
117
+ "inline": {
118
+ "name": "uncamp",
119
+ "description": "uncamp: per-project resource memory, workload notes, and safe stop and Trash mechanics for coding agents.",
120
+ "version": "${UNCAMP_VERSION}"
121
+ }
122
+ },
123
+ ".claude-plugin/plugin.json": {
124
+ "inline": {
125
+ "name": "uncamp",
126
+ "description": "uncamp: per-project resource memory, workload notes, and safe stop and Trash mechanics for coding agents.",
127
+ "version": "${UNCAMP_VERSION}"
128
+ }
129
+ },
130
+ ".codex-plugin/plugin.json": {
131
+ "inline": {
132
+ "name": "uncamp",
133
+ "description": "uncamp: per-project resource memory, workload notes, and safe stop and Trash mechanics for coding agents.",
134
+ "version": "${UNCAMP_VERSION}"
135
+ }
136
+ },
137
+ ".claude-plugin/marketplace.json": {
138
+ "inline": {
139
+ "name": "uncamp-local",
140
+ "owner": {
141
+ "name": "uncamp"
142
+ },
143
+ "metadata": {
144
+ "description": "uncamp for Claude Code: skills and the uncamp MCP server."
145
+ },
146
+ "plugins": [
147
+ {
148
+ "name": "uncamp",
149
+ "source": "./",
150
+ "description": "uncamp skills and MCP server (runs ~/.uncamp/runtime).",
151
+ "version": "${UNCAMP_VERSION}",
152
+ "category": "productivity"
153
+ }
154
+ ]
155
+ }
156
+ },
157
+ "uncamp-install.json": "uncamp-install.json",
158
+ "skills/{skill_file}": "$SKILLS",
159
+ ".mcp.json": {
160
+ "inline": {
161
+ "mcpServers": {
162
+ "uncamp": {
163
+ "command": "__UNCAMP_NODE__",
164
+ "args": [
165
+ "__UNCAMP_CLI__",
166
+ "mcp"
167
+ ]
168
+ }
169
+ }
170
+ }
171
+ }
172
+ }
173
+ }
174
+ },
175
+ "later_hosts": [
176
+ "antigravity",
177
+ "gemini",
178
+ "copilot",
179
+ "devin",
180
+ "cline",
181
+ "roo",
182
+ "amp",
183
+ "opencode",
184
+ "aider",
185
+ "goose",
186
+ "kiro",
187
+ "zed",
188
+ "junie",
189
+ "factory"
190
+ ]
191
+ }