holycodex 0.4.2 → 0.4.4
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/README.md
CHANGED
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
|
@@ -122,7 +122,7 @@ function paths(home = process.env.CODEX_HOME ?? join(homedir(), ".codex")) {
|
|
|
122
122
|
config: join(home, "config.toml"),
|
|
123
123
|
marketplaceCache,
|
|
124
124
|
cacheRoot,
|
|
125
|
-
cache: join(cacheRoot, "0.4.
|
|
125
|
+
cache: join(cacheRoot, "0.4.4"),
|
|
126
126
|
agents: join(home, "holycodex", "agents"),
|
|
127
127
|
legacy: [
|
|
128
128
|
join(home, "plugins", "cache", "sisyphuslabs", "omo"),
|
|
@@ -210,8 +210,8 @@ async function cleanup(_options) {
|
|
|
210
210
|
}
|
|
211
211
|
//#endregion
|
|
212
212
|
//#region src/cli.ts
|
|
213
|
-
var VERSION = "0.4.
|
|
214
|
-
var HELP = `HolyCodex ${VERSION}\n\nUsage: holycodex <install|cleanup> [options]\n\nOptions:\n --help
|
|
213
|
+
var VERSION = "0.4.4";
|
|
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 (default)\n --no-codex-autonomous Preserve existing Codex permissions\n --json Print machine-readable result\n`;
|
|
215
215
|
async function main() {
|
|
216
216
|
const args = process$1.argv.slice(2);
|
|
217
217
|
if (args.includes("--help") || args.length === 0) {
|
|
@@ -224,7 +224,7 @@ async function main() {
|
|
|
224
224
|
}
|
|
225
225
|
const command = args.find((arg) => !arg.startsWith("--"));
|
|
226
226
|
const options = {
|
|
227
|
-
autonomous: args.includes("--codex-autonomous"),
|
|
227
|
+
autonomous: !args.includes("--no-codex-autonomous"),
|
|
228
228
|
json: args.includes("--json")
|
|
229
229
|
};
|
|
230
230
|
const result = command === "install" ? await install(options) : command === "cleanup" ? await cleanup(options) : void 0;
|
|
@@ -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.4"
|
|
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.4";
|
|
3076
3076
|
async function handleLspMcpRequest(input) {
|
|
3077
3077
|
if (!isPlainRecord(input)) return errorResponse(null, -32600, "Invalid Request");
|
|
3078
3078
|
const id = jsonRpcId(input["id"]);
|