holycodex 0.15.1-dev.35.1 → 0.15.2-dev.37.1
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 +3 -2
- package/dist/assets/plugin/agents/explorer.md +3 -0
- package/dist/assets/plugin/agents/librarian.md +4 -0
- package/dist/assets/plugin/agents/reviewer.md +4 -0
- package/dist/assets/plugin/agents/root.md +3 -5
- package/dist/assets/plugin/agents/worker.md +4 -2
- package/dist/assets/plugin/plugin.json +1 -2
- package/dist/assets/plugin/rules/holycodex.md +12 -11
- package/dist/assets/plugin/skills/babysit-ci/SKILL.md +1 -1
- package/dist/assets/plugin/skills/code-review/SKILL.md +2 -0
- package/dist/assets/plugin/skills/commit/SKILL.md +2 -2
- package/dist/assets/plugin/skills/compress/SKILL.md +1 -1
- package/dist/assets/plugin/skills/handoff/SKILL.md +1 -1
- package/dist/assets/plugin/skills/lsp/SKILL.md +1 -1
- package/dist/assets/plugin/skills/lsp-setup/SKILL.md +1 -1
- package/dist/assets/plugin/skills/plan-review/SKILL.md +1 -1
- package/dist/assets/plugin/skills/ponytail/SKILL.md +1 -13
- package/dist/assets/plugin/skills/ponytail/metadata.json +1 -1
- package/dist/assets/plugin/skills/programming/SKILL.md +2 -0
- package/dist/assets/plugin/skills/refactor/SKILL.md +1 -1
- package/dist/assets/plugin/skills/rules/SKILL.md +1 -1
- package/dist/assets/plugin/skills/stop-slop/LICENSE +21 -0
- package/dist/assets/plugin/skills/stop-slop/SKILL.md +42 -0
- package/dist/assets/plugin/skills/stop-slop/agents/openai.yaml +6 -0
- package/dist/assets/plugin/skills/stop-slop/references/examples.md +69 -0
- package/dist/assets/plugin/skills/stop-slop/references/phrases.md +128 -0
- package/dist/assets/plugin/skills/stop-slop/references/structures.md +134 -0
- package/dist/assets/plugin/skills/testing-quality.md +15 -0
- package/dist/assets/plugin/skills/workflows/SKILL.md +1 -1
- package/dist/assets/plugin/skills/writing-for-agents/LICENSE +21 -0
- package/dist/assets/plugin/skills/writing-for-agents/SKILL-MECHANICS.md +19 -0
- package/dist/assets/plugin/skills/writing-for-agents/SKILL.md +25 -14
- package/dist/{binary-BCtnZPMA.js → binary-CPh9zpjK.js} +2731 -2793
- package/dist/binary-th3XjkPd.js +3 -0
- package/dist/index.js +4 -4
- package/dist/src-d8LOMF1j.js +3 -0
- package/dist/{src-BmUZJGuC.js → src-le8tAupU.js} +249 -260
- package/package.json +2 -2
- package/dist/assets/plugin/hooks/hooks.json +0 -17
- package/dist/assets/plugin/hooks/version.ts +0 -54
- package/dist/assets/plugin/skills/ast-grep/SKILL.md +0 -7
- package/dist/assets/plugin/skills/ast-grep/agents/openai.yaml +0 -6
- package/dist/assets/plugin/skills/remove-slop/SKILL.md +0 -7
- package/dist/assets/plugin/skills/remove-slop/agents/openai.yaml +0 -6
- package/dist/binary-K1P4tTUI.js +0 -3
- package/dist/src-BrjytttX.js +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "holycodex",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.2-dev.37.1",
|
|
4
4
|
"bin": {
|
|
5
5
|
"holycodex": "./dist/index.js"
|
|
6
6
|
},
|
|
@@ -30,6 +30,6 @@
|
|
|
30
30
|
"release": {
|
|
31
31
|
"schemaVersion": "holycodex-release-v1",
|
|
32
32
|
"channel": "dev",
|
|
33
|
-
"sourceSha": "
|
|
33
|
+
"sourceSha": "74043fd846911bb4a1bd90e15a8544c24f41927b"
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"hooks": {
|
|
3
|
-
"SessionStart": [
|
|
4
|
-
{
|
|
5
|
-
"hooks": [
|
|
6
|
-
{
|
|
7
|
-
"type": "command",
|
|
8
|
-
"command": "bun \"${PLUGIN_ROOT}/hooks/version.ts\"",
|
|
9
|
-
"commandWindows": "\"C:/Program Files/Git/bin/bash.exe\" -lc \"bun \\\"${PLUGIN_ROOT}/hooks/version.ts\\\"\"",
|
|
10
|
-
"timeout": 10,
|
|
11
|
-
"statusMessage": "HolyCodex: reporting version"
|
|
12
|
-
}
|
|
13
|
-
]
|
|
14
|
-
}
|
|
15
|
-
]
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
-
|
|
3
|
-
import { readFile } from "node:fs/promises";
|
|
4
|
-
import { join } from "node:path";
|
|
5
|
-
|
|
6
|
-
const VERSION_PATTERN = /^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-[0-9A-Za-z.-]+)?$/u;
|
|
7
|
-
const WINDOWS_GIT_BASH_INSTRUCTION =
|
|
8
|
-
" Use C:/Program Files/Git/bin/bash.exe for every shell command.";
|
|
9
|
-
type VersionManifest = Readonly<{ readonly version: string }>;
|
|
10
|
-
|
|
11
|
-
export function renderVersionContext(version: string, platform: NodeJS.Platform): string {
|
|
12
|
-
const suffix = platform === "win32" ? WINDOWS_GIT_BASH_INSTRUCTION : "";
|
|
13
|
-
return `HolyCodex ${version}.${suffix}`;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export function renderSessionStartOutput(
|
|
17
|
-
version: string,
|
|
18
|
-
platform: NodeJS.Platform = process.platform,
|
|
19
|
-
): string {
|
|
20
|
-
return `${JSON.stringify({
|
|
21
|
-
hookSpecificOutput: {
|
|
22
|
-
hookEventName: "SessionStart",
|
|
23
|
-
additionalContext: renderVersionContext(version, platform),
|
|
24
|
-
},
|
|
25
|
-
})}\n`;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export async function readInstalledPluginVersion(pluginRoot: string): Promise<string> {
|
|
29
|
-
const manifestPath = join(pluginRoot, ".codex-plugin", "plugin.json");
|
|
30
|
-
const parsed: unknown = JSON.parse(await readFile(manifestPath, "utf8"));
|
|
31
|
-
if (!isVersionManifest(parsed)) {
|
|
32
|
-
throw new Error("HolyCodex plugin manifest has no valid version.");
|
|
33
|
-
}
|
|
34
|
-
return parsed.version;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function isVersionManifest(value: unknown): value is VersionManifest {
|
|
38
|
-
return (
|
|
39
|
-
typeof value === "object" &&
|
|
40
|
-
value !== null &&
|
|
41
|
-
!Array.isArray(value) &&
|
|
42
|
-
"version" in value &&
|
|
43
|
-
typeof value.version === "string" &&
|
|
44
|
-
VERSION_PATTERN.test(value.version)
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
if (import.meta.main) {
|
|
49
|
-
const pluginRoot = process.env["PLUGIN_ROOT"]?.trim();
|
|
50
|
-
if (!pluginRoot) {
|
|
51
|
-
throw new Error("PLUGIN_ROOT is required.");
|
|
52
|
-
}
|
|
53
|
-
process.stdout.write(await readInstalledPluginVersion(pluginRoot).then(renderSessionStartOutput));
|
|
54
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: ast-grep
|
|
3
|
-
description: Match or rewrite code by syntax shape with deterministic reviewed results.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Owner: Worker. Boundary: operate only on the assigned syntax seam and preserve interfaces, ownership, and behavior. Invalid or ambiguous matches fail closed.
|
|
7
|
-
Completion: the bounded transformation is inspected and its focused checks pass.
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
interface:
|
|
2
|
-
display_name: "AST grep"
|
|
3
|
-
short_description: "Match or rewrite code by syntax shape with deterministic reviewed results."
|
|
4
|
-
default_prompt: "Match the assigned syntax shape, make only the bounded change, and return evidence."
|
|
5
|
-
policy:
|
|
6
|
-
allow_implicit_invocation: true
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: remove-slop
|
|
3
|
-
description: Remove proven boilerplate or cruft from explicit changed files.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Owner: Worker. Boundary: clean only proven slop in changed files and preserve behavior, voice, and interfaces.
|
|
7
|
-
Completion: the cleanup has behavior-locked proof and no unrelated edits.
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
interface:
|
|
2
|
-
display_name: "Remove slop"
|
|
3
|
-
short_description: "Remove proven boilerplate or cruft from explicit changed files."
|
|
4
|
-
default_prompt: "Remove only proven cruft in the assigned changed files and report behavior proof."
|
|
5
|
-
policy:
|
|
6
|
-
allow_implicit_invocation: true
|
package/dist/binary-K1P4tTUI.js
DELETED
package/dist/src-BrjytttX.js
DELETED