holycodex 0.4.1 → 0.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "holycodex",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Lean Codex-only agent toolkit for ChatGPT Plus",
5
5
  "keywords": [
6
6
  "agents",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "holycodex",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Lean Codex-only agents, skills, hooks, and MCP defaults.",
5
5
  "author": {
6
6
  "name": "David Basile Filho",
@@ -115,12 +115,14 @@ async function readText(path) {
115
115
  var moduleDirectory = dirname(fileURLToPath(import.meta.url));
116
116
  var packageRoot = join(moduleDirectory, basename(moduleDirectory) === "runtime" ? "../.." : "..");
117
117
  function paths(home = process.env.CODEX_HOME ?? join(homedir(), ".codex")) {
118
- const cacheRoot = join(home, "plugins", "cache", "holycodex", "holycodex");
118
+ const marketplaceCache = join(home, "plugins", "cache", "holycodex");
119
+ const cacheRoot = join(marketplaceCache, "holycodex");
119
120
  return {
120
121
  home,
121
122
  config: join(home, "config.toml"),
123
+ marketplaceCache,
122
124
  cacheRoot,
123
- cache: join(cacheRoot, "0.4.1"),
125
+ cache: join(cacheRoot, "0.4.2"),
124
126
  agents: join(home, "holycodex", "agents"),
125
127
  legacy: [
126
128
  join(home, "plugins", "cache", "sisyphuslabs", "omo"),
@@ -137,13 +139,13 @@ async function install(options) {
137
139
  const root = backupRoot();
138
140
  const backups = [
139
141
  await backup(target.config, root),
140
- await backup(target.cacheRoot, root),
142
+ await backup(target.marketplaceCache, root),
141
143
  await backup(target.agents, root),
142
144
  ...await Promise.all(target.legacy.map((path) => backup(path, root)))
143
145
  ].filter((path) => path !== void 0);
144
146
  const config = installConfig(await readText(target.config), options.autonomous);
145
147
  await atomicWrite(target.config, config);
146
- await rm(target.cacheRoot, {
148
+ await rm(target.marketplaceCache, {
147
149
  recursive: true,
148
150
  force: true
149
151
  });
@@ -176,7 +178,7 @@ async function cleanup(_options) {
176
178
  const root = backupRoot();
177
179
  const backups = [
178
180
  await backup(target.config, root),
179
- await backup(target.cacheRoot, root),
181
+ await backup(target.marketplaceCache, root),
180
182
  await backup(target.agents, root)
181
183
  ].filter((path) => path !== void 0);
182
184
  const changed = [];
@@ -192,9 +194,9 @@ async function cleanup(_options) {
192
194
  changed.push(target.config);
193
195
  }
194
196
  }
195
- if (await exists(target.cacheRoot)) {
196
- await rm(target.cacheRoot, { recursive: true });
197
- changed.push(target.cacheRoot);
197
+ if (await exists(target.marketplaceCache)) {
198
+ await rm(target.marketplaceCache, { recursive: true });
199
+ changed.push(target.marketplaceCache);
198
200
  }
199
201
  if (await exists(target.agents)) {
200
202
  await rm(target.agents, { recursive: true });
@@ -208,7 +210,7 @@ async function cleanup(_options) {
208
210
  }
209
211
  //#endregion
210
212
  //#region src/cli.ts
211
- var VERSION = "0.4.1";
213
+ var VERSION = "0.4.2";
212
214
  var HELP = `HolyCodex ${VERSION}\n\nUsage: holycodex <install|cleanup> [options]\n\nOptions:\n --help Show help\n --version Show version\n --no-tui Accepted; commands are noninteractive\n --codex-autonomous Set autonomous Codex permissions\n --json Print machine-readable result\n`;
213
215
  async function main() {
214
216
  const args = process$1.argv.slice(2);
@@ -166,7 +166,7 @@ async function handleGitBashMcpRequest(input, options = {}) {
166
166
  capabilities: { tools: { listChanged: false } },
167
167
  serverInfo: {
168
168
  name: "git_bash",
169
- version: "0.4.1"
169
+ version: "0.4.2"
170
170
  },
171
171
  protocolVersion: protocolVersionFromInput(input) ?? "2024-11-05"
172
172
  });
@@ -3072,7 +3072,7 @@ function coerceToolArguments(value) {
3072
3072
  //#endregion
3073
3073
  //#region packages/lsp-core/src/mcp.ts
3074
3074
  var SERVER_NAME = "lsp";
3075
- var SERVER_VERSION = "0.4.1";
3075
+ var SERVER_VERSION = "0.4.2";
3076
3076
  async function handleLspMcpRequest(input) {
3077
3077
  if (!isPlainRecord(input)) return errorResponse(null, -32600, "Invalid Request");
3078
3078
  const id = jsonRpcId(input["id"]);