@christang/keel 5.1.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/LICENSE +21 -0
- package/README.md +250 -0
- package/README.zh-CN.md +295 -0
- package/assets/bootstrap/AGENTS.md +9 -0
- package/assets/openspec/schemas/keel-spec-driven/schema.yaml +166 -0
- package/assets/openspec/schemas/keel-spec-driven/templates/design.md +52 -0
- package/assets/openspec/schemas/keel-spec-driven/templates/proposal.md +21 -0
- package/assets/openspec/schemas/keel-spec-driven/templates/spec.md +8 -0
- package/assets/openspec/schemas/keel-spec-driven/templates/tasks.md +68 -0
- package/bin/keel.js +1490 -0
- package/package.json +35 -0
- package/plugins/keel/.claude-plugin/plugin.json +17 -0
- package/plugins/keel/.codex-plugin/plugin.json +29 -0
- package/plugins/keel/agents/keel-single-task-goal-claude.md +16 -0
- package/plugins/keel/agents/keel-single-task-goal-codex.md +16 -0
- package/plugins/keel/hooks/hooks.json +30 -0
- package/plugins/keel/scripts/pretooluse-guard.js +156 -0
- package/plugins/keel/scripts/session-start.js +182 -0
- package/plugins/keel/skills/keel-align-expectations/SKILL.md +53 -0
- package/plugins/keel/skills/keel-align-expectations/references/hardware-dsl.md +21 -0
- package/plugins/keel/skills/keel-align-expectations/references/hardware.md +21 -0
- package/plugins/keel/skills/keel-align-expectations/references/web.md +21 -0
- package/plugins/keel/skills/keel-debug-failure/SKILL.md +41 -0
- package/plugins/keel/skills/keel-handoff/SKILL.md +45 -0
- package/plugins/keel/skills/keel-review-checklist/SKILL.md +73 -0
- package/plugins/keel/skills/keel-run-single-task-goal/SKILL.md +68 -0
- package/plugins/keel/skills/keel-tdd-or-test-first/SKILL.md +45 -0
- package/scripts/install_to_repo.py +1122 -0
- package/scripts/run_python.js +63 -0
- package/scripts/validate_plugin.py +9869 -0
- package/src/core/capabilities.js +291 -0
- package/src/core/context.js +514 -0
- package/src/core/gates.js +643 -0
- package/src/core/goal.js +230 -0
- package/src/core/guard.js +295 -0
- package/src/core/helper.js +319 -0
- package/src/core/projection.js +195 -0
- package/src/core/task-contract.js +736 -0
- package/src/core/tasksview.js +123 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
const { spawnSync } = require("child_process");
|
|
5
|
+
|
|
6
|
+
function pythonCandidates() {
|
|
7
|
+
if (process.env.KEEL_PYTHON) {
|
|
8
|
+
return [{ command: process.env.KEEL_PYTHON, prefixArgs: [] }];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
if (process.platform === "win32") {
|
|
12
|
+
return [
|
|
13
|
+
{ command: "py", prefixArgs: ["-3"] },
|
|
14
|
+
{ command: "python", prefixArgs: [] },
|
|
15
|
+
{ command: "python3", prefixArgs: [] },
|
|
16
|
+
];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
return [
|
|
20
|
+
{ command: "python3", prefixArgs: [] },
|
|
21
|
+
{ command: "python", prefixArgs: [] },
|
|
22
|
+
];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function commandExists(candidate) {
|
|
26
|
+
const result = spawnSync(
|
|
27
|
+
candidate.command,
|
|
28
|
+
[...candidate.prefixArgs, "--version"],
|
|
29
|
+
{ encoding: "utf8" }
|
|
30
|
+
);
|
|
31
|
+
return !result.error && result.status === 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function main() {
|
|
35
|
+
const args = process.argv.slice(2);
|
|
36
|
+
if (args.length === 0) {
|
|
37
|
+
process.stderr.write("run_python: expected a Python script path.\n");
|
|
38
|
+
return 2;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const candidate = pythonCandidates().find(commandExists);
|
|
42
|
+
if (!candidate) {
|
|
43
|
+
process.stderr.write(
|
|
44
|
+
"run_python: could not find Python. Install python3/python or set KEEL_PYTHON.\n"
|
|
45
|
+
);
|
|
46
|
+
return 127;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const result = spawnSync(
|
|
50
|
+
candidate.command,
|
|
51
|
+
[...candidate.prefixArgs, ...args],
|
|
52
|
+
{ stdio: "inherit" }
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
if (result.error) {
|
|
56
|
+
process.stderr.write(`run_python: ${result.error.message}\n`);
|
|
57
|
+
return 127;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return result.status ?? 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
process.exit(main());
|