holycodex 0.4.1 → 0.4.3
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
|
@@ -18,8 +18,14 @@ async function readinessContext(pluginRoot) {
|
|
|
18
18
|
if (missing.length === 0) return CORE_INSTRUCTIONS;
|
|
19
19
|
return `${CORE_INSTRUCTIONS}\n\nHolyCodex incomplete: missing runtime/${missing.join(", runtime/")}. Reinstall HolyCodex before using its local MCPs or hooks.`;
|
|
20
20
|
}
|
|
21
|
+
async function readinessOutput(pluginRoot) {
|
|
22
|
+
const additionalContext = await readinessContext(pluginRoot);
|
|
23
|
+
return `${JSON.stringify({ hookSpecificOutput: {
|
|
24
|
+
hookEventName: "SessionStart",
|
|
25
|
+
additionalContext
|
|
26
|
+
} })}\n`;
|
|
27
|
+
}
|
|
21
28
|
//#endregion
|
|
22
29
|
//#region src/bootstrap-cli.ts
|
|
23
|
-
|
|
24
|
-
if (context.length > 0) process.stdout.write(`${JSON.stringify({ additionalContext: context })}\n`);
|
|
30
|
+
process.stdout.write(await readinessOutput(process.env.PLUGIN_ROOT ?? process.cwd()));
|
|
25
31
|
//#endregion
|
package/plugin/runtime/cli.js
CHANGED
|
@@ -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
|
|
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.
|
|
125
|
+
cache: join(cacheRoot, "0.4.3"),
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
196
|
-
await rm(target.
|
|
197
|
-
changed.push(target.
|
|
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.
|
|
213
|
+
var VERSION = "0.4.3";
|
|
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.
|
|
169
|
+
version: "0.4.3"
|
|
170
170
|
},
|
|
171
171
|
protocolVersion: protocolVersionFromInput(input) ?? "2024-11-05"
|
|
172
172
|
});
|
package/plugin/runtime/lsp.js
CHANGED
|
@@ -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.
|
|
3075
|
+
var SERVER_VERSION = "0.4.3";
|
|
3076
3076
|
async function handleLspMcpRequest(input) {
|
|
3077
3077
|
if (!isPlainRecord(input)) return errorResponse(null, -32600, "Invalid Request");
|
|
3078
3078
|
const id = jsonRpcId(input["id"]);
|