@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.
Files changed (42) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +32 -31
  3. package/bin/wheat.js +47 -36
  4. package/compiler/detect-sprints.js +126 -92
  5. package/compiler/generate-manifest.js +116 -69
  6. package/compiler/wheat-compiler.js +789 -468
  7. package/lib/compiler.js +11 -6
  8. package/lib/connect.js +273 -134
  9. package/lib/disconnect.js +61 -40
  10. package/lib/guard.js +20 -17
  11. package/lib/index.js +8 -8
  12. package/lib/init.js +217 -142
  13. package/lib/install-prompt.js +26 -26
  14. package/lib/load-claims.js +88 -0
  15. package/lib/quickstart.js +225 -111
  16. package/lib/serve-mcp.js +495 -180
  17. package/lib/server.js +198 -111
  18. package/lib/stats.js +65 -39
  19. package/lib/status.js +65 -34
  20. package/lib/update.js +13 -11
  21. package/package.json +8 -4
  22. package/templates/claude.md +31 -17
  23. package/templates/commands/blind-spot.md +9 -2
  24. package/templates/commands/brief.md +11 -1
  25. package/templates/commands/calibrate.md +3 -1
  26. package/templates/commands/challenge.md +4 -1
  27. package/templates/commands/connect.md +12 -1
  28. package/templates/commands/evaluate.md +4 -0
  29. package/templates/commands/feedback.md +3 -1
  30. package/templates/commands/handoff.md +11 -7
  31. package/templates/commands/init.md +4 -1
  32. package/templates/commands/merge.md +4 -1
  33. package/templates/commands/next.md +1 -0
  34. package/templates/commands/present.md +3 -0
  35. package/templates/commands/prototype.md +2 -0
  36. package/templates/commands/pull.md +103 -0
  37. package/templates/commands/replay.md +8 -0
  38. package/templates/commands/research.md +1 -0
  39. package/templates/commands/resolve.md +4 -1
  40. package/templates/commands/status.md +4 -0
  41. package/templates/commands/sync.md +94 -0
  42. 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 'path';
12
- import { execFileSync } from 'child_process';
13
- import { fileURLToPath } from 'url';
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(__dirname, '..', 'compiler', 'wheat-compiler.js');
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, '--dir', dir, ...args];
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: ['inherit', 'inherit', 'inherit'],
33
+ stdio: ["inherit", "inherit", "inherit"],
29
34
  });
30
35
  } catch (err) {
31
36
  // execFileSync throws on non-zero exit — let it propagate