@grainulation/wheat 1.0.2 → 1.0.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/LICENSE +1 -1
- package/README.md +32 -31
- package/bin/wheat.js +47 -36
- package/compiler/detect-sprints.js +126 -92
- package/compiler/generate-manifest.js +116 -69
- package/compiler/wheat-compiler.js +789 -468
- package/lib/compiler.js +11 -6
- package/lib/connect.js +273 -134
- package/lib/disconnect.js +61 -40
- package/lib/guard.js +20 -17
- package/lib/index.js +8 -8
- package/lib/init.js +217 -142
- package/lib/install-prompt.js +26 -26
- package/lib/load-claims.js +88 -0
- package/lib/quickstart.js +225 -111
- package/lib/serve-mcp.js +495 -180
- package/lib/server.js +198 -111
- package/lib/stats.js +65 -39
- package/lib/status.js +65 -34
- package/lib/update.js +13 -11
- package/package.json +8 -4
- package/templates/claude.md +31 -17
- package/templates/commands/blind-spot.md +9 -2
- package/templates/commands/brief.md +11 -1
- package/templates/commands/calibrate.md +3 -1
- package/templates/commands/challenge.md +4 -1
- package/templates/commands/connect.md +12 -1
- package/templates/commands/evaluate.md +4 -0
- package/templates/commands/feedback.md +3 -1
- package/templates/commands/handoff.md +11 -7
- package/templates/commands/init.md +4 -1
- package/templates/commands/merge.md +4 -1
- package/templates/commands/next.md +1 -0
- package/templates/commands/present.md +3 -0
- package/templates/commands/prototype.md +2 -0
- package/templates/commands/pull.md +103 -0
- package/templates/commands/replay.md +8 -0
- package/templates/commands/research.md +1 -0
- package/templates/commands/resolve.md +4 -1
- package/templates/commands/status.md +4 -0
- package/templates/commands/sync.md +94 -0
- package/templates/commands/witness.md +6 -2
package/lib/compiler.js
CHANGED
|
@@ -8,24 +8,29 @@
|
|
|
8
8
|
* Zero npm dependencies.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import path from
|
|
12
|
-
import { execFileSync } from
|
|
13
|
-
import { fileURLToPath } from
|
|
11
|
+
import path from "path";
|
|
12
|
+
import { execFileSync } from "child_process";
|
|
13
|
+
import { fileURLToPath } from "url";
|
|
14
14
|
|
|
15
15
|
const __filename = fileURLToPath(import.meta.url);
|
|
16
16
|
const __dirname = path.dirname(__filename);
|
|
17
17
|
|
|
18
|
-
const COMPILER_PATH = path.join(
|
|
18
|
+
const COMPILER_PATH = path.join(
|
|
19
|
+
__dirname,
|
|
20
|
+
"..",
|
|
21
|
+
"compiler",
|
|
22
|
+
"wheat-compiler.js"
|
|
23
|
+
);
|
|
19
24
|
|
|
20
25
|
export async function run(dir, args) {
|
|
21
26
|
// Build argv for the real compiler: --dir <targetDir> + passthrough flags
|
|
22
|
-
const compilerArgs = [COMPILER_PATH,
|
|
27
|
+
const compilerArgs = [COMPILER_PATH, "--dir", dir, ...args];
|
|
23
28
|
|
|
24
29
|
try {
|
|
25
30
|
const result = execFileSync(process.execPath, compilerArgs, {
|
|
26
31
|
cwd: dir,
|
|
27
32
|
timeout: 30_000,
|
|
28
|
-
stdio: [
|
|
33
|
+
stdio: ["inherit", "inherit", "inherit"],
|
|
29
34
|
});
|
|
30
35
|
} catch (err) {
|
|
31
36
|
// execFileSync throws on non-zero exit — let it propagate
|