cawdex 1.35.65 → 1.35.67

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 (59) hide show
  1. package/README.md +186 -186
  2. package/bin/anycode.js +2 -2
  3. package/bin/cawdex.js +408 -408
  4. package/bin/ecc-hooks.cjs +11 -11
  5. package/dist/agents.js +1424 -1424
  6. package/dist/autonomous-loops.js +287 -287
  7. package/dist/command-palette.js +1 -1
  8. package/dist/command-palette.js.map +1 -1
  9. package/dist/compaction.js +8 -8
  10. package/dist/content-engine.js +543 -543
  11. package/dist/coverage.js +39 -39
  12. package/dist/docs-sync.js +98 -98
  13. package/dist/evaluation.js +452 -452
  14. package/dist/git-workflow.js +49 -49
  15. package/dist/index.js +75 -46
  16. package/dist/index.js.map +1 -1
  17. package/dist/instant-answer.js +10 -0
  18. package/dist/instant-answer.js.map +1 -1
  19. package/dist/modes.js +355 -355
  20. package/dist/orchestration.js +15 -15
  21. package/dist/pm2-manager.js +26 -26
  22. package/dist/prompt-buffer.d.ts +7 -0
  23. package/dist/prompt-buffer.js +31 -0
  24. package/dist/prompt-buffer.js.map +1 -1
  25. package/dist/query.d.ts +4 -0
  26. package/dist/query.js +79 -64
  27. package/dist/query.js.map +1 -1
  28. package/dist/refactor.js +87 -87
  29. package/dist/search-first.js +92 -92
  30. package/dist/session-picker.d.ts +44 -0
  31. package/dist/session-picker.js +227 -0
  32. package/dist/session-picker.js.map +1 -0
  33. package/dist/skill-create.js +100 -100
  34. package/dist/stitch.js +1 -1
  35. package/dist/swarm.d.ts +34 -54
  36. package/dist/swarm.js +175 -63
  37. package/dist/swarm.js.map +1 -1
  38. package/dist/system-prompt.js +10 -10
  39. package/dist/verification.js +55 -55
  40. package/dist/walkthrough.js +5 -5
  41. package/package.json +1 -1
  42. package/resources/__init__.py +1 -1
  43. package/resources/exgentic/cawdex_agent/README.md +114 -114
  44. package/resources/exgentic/cawdex_agent/__init__.py +5 -5
  45. package/resources/exgentic/cawdex_agent/agent.py +605 -605
  46. package/resources/exgentic/cawdex_agent/requirements.txt +2 -2
  47. package/resources/exgentic/cawdex_agent/setup.sh +21 -21
  48. package/resources/exgentic/cawdex_agent/utils.py +1061 -1061
  49. package/resources/hal/cawdex_agent/README.md +24 -24
  50. package/resources/hal/cawdex_agent/__init__.py +1 -1
  51. package/resources/hal/cawdex_agent/main.py +550 -550
  52. package/resources/hal/cawdex_agent/requirements.txt +2 -2
  53. package/resources/kbench/cawdex_agent/README.md +107 -107
  54. package/resources/kbench/cawdex_agent/adapter.manifest.json +19 -19
  55. package/resources/kbench/cawdex_agent/runner.mjs +753 -753
  56. package/resources/open_agent_leaderboard/cawdex-agent-card.md +119 -119
  57. package/resources/terminal_bench/__init__.py +1 -1
  58. package/resources/terminal_bench/cawdex_agent.py +174 -174
  59. package/resources/terminal_bench/setup.sh +121 -121
package/bin/ecc-hooks.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * ECC-native hook dispatcher for Cawdex.
3
+ * ECC-native hook dispatcher for Cawdex.
4
4
  *
5
- * Reads Cawdex's hook env vars (CAWDEX_EVENT, CAWDEX_TOOL,
5
+ * Reads Cawdex's hook env vars (CAWDEX_EVENT, CAWDEX_TOOL,
6
6
  * CAWDEX_TOOL_INPUT, CAWDEX_TOOL_OUTPUT) and runs a single named check.
7
7
  *
8
8
  * Exit codes:
@@ -26,7 +26,7 @@ const checkName = process.argv[2] || '';
26
26
  // don't carry input, like SessionStart); a NON-empty payload that
27
27
  // fails to parse is treated as a security event and the hook
28
28
  // blocks. Fail closed > fail open.
29
- const rawToolInput = process.env.CAWDEX_TOOL_INPUT || '';
29
+ const rawToolInput = process.env.CAWDEX_TOOL_INPUT || '';
30
30
  let toolInput = {};
31
31
  if (rawToolInput.length > 0) {
32
32
  try {
@@ -37,8 +37,8 @@ if (rawToolInput.length > 0) {
37
37
  }
38
38
  }
39
39
 
40
- const tool = process.env.CAWDEX_TOOL || '';
41
- const cwd = process.env.CAWDEX_CWD || process.cwd();
40
+ const tool = process.env.CAWDEX_TOOL || '';
41
+ const cwd = process.env.CAWDEX_CWD || process.cwd();
42
42
 
43
43
  // ── Helpers ─────────────────────────────────────────────
44
44
  function bashCommand() {
@@ -209,13 +209,13 @@ const checks = {
209
209
  */
210
210
  'gateguard': () => {
211
211
  // ── Disable knob ─────────────────────────────────────
212
- // Documented in the hint/block message below.
213
- const disableEnv = (process.env.CAWDEX_GATEGUARD || '').trim();
212
+ // Documented in the hint/block message below.
213
+ const disableEnv = (process.env.CAWDEX_GATEGUARD || '').trim();
214
214
  if (/^(off|false|0|no|disabled?)$/i.test(disableEnv)) return ok();
215
215
 
216
216
  // ── Mode selection ───────────────────────────────────
217
217
  // Pick warn (new default) vs block (legacy strict) vs off.
218
- const modeEnv = (process.env.CAWDEX_GATEGUARD_MODE || 'warn').toLowerCase().trim();
218
+ const modeEnv = (process.env.CAWDEX_GATEGUARD_MODE || 'warn').toLowerCase().trim();
219
219
  if (modeEnv === 'off') return ok();
220
220
  const strict = modeEnv === 'block' || modeEnv === 'strict';
221
221
 
@@ -226,7 +226,7 @@ const checks = {
226
226
  // yolo would mean the safest setting in cawdex is more
227
227
  // pedantic than the most-cautious, which is backwards. Silent
228
228
  // no-op so the user gets the unblocked flow they asked for.
229
- const perm = (process.env.CAWDEX_PERMISSION_MODE || '').toLowerCase().trim();
229
+ const perm = (process.env.CAWDEX_PERMISSION_MODE || '').toLowerCase().trim();
230
230
  if (perm === 'yolo') return ok();
231
231
 
232
232
  const fs = require('fs');
@@ -256,7 +256,7 @@ const checks = {
256
256
  // model-controlled file paths). Allow only [A-Za-z0-9_-], length
257
257
  // <=64. Anything else falls back to "unknown" — degraded UX
258
258
  // (gateguard tracking won't persist), not a security breach.
259
- const rawSessionId = process.env.CAWDEX_SESSION_ID || '';
259
+ const rawSessionId = process.env.CAWDEX_SESSION_ID || '';
260
260
  const sessionId = /^[A-Za-z0-9_-]{1,64}$/.test(rawSessionId) ? rawSessionId : 'unknown';
261
261
  const stateDir = pathMod.join(os.homedir(), '.cawdex', 'state', 'gateguard');
262
262
  const stateFile = pathMod.join(stateDir, `${sessionId}.json`);
@@ -409,7 +409,7 @@ const checks = {
409
409
  const fs = require('fs');
410
410
  const pathMod = require('path');
411
411
  const os = require('os');
412
- const rawSessionId = process.env.CAWDEX_SESSION_ID || '';
412
+ const rawSessionId = process.env.CAWDEX_SESSION_ID || '';
413
413
  const sessionId = /^[A-Za-z0-9_-]{1,64}$/.test(rawSessionId) ? rawSessionId : 'unknown';
414
414
  const stateDir = pathMod.join(os.homedir(), '.cawdex', 'state', 'quality-hint');
415
415
  const stateFile = pathMod.join(stateDir, `${sessionId}.json`);